/*
Theme Name: Steady Mobile
Theme URI: https://steadymobile.co.uk/
Author: Inventative Connect Group Ltd
Author URI: https://inventative.net/
Description: Hand-coded marketing theme for Steady Mobile, a UK student MVNO and a trading name of Hadeda Mobile Ltd. Brochure only — no WooCommerce, no accounts, no checkout. Every buy action leaves for the Hadeda WooCommerce stack. All brand-specific values live in brand-config.php so a third brand can be stood up by replacing that one file.
Version: 0.1.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
License: Proprietary
Text Domain: steady-mobile

TODO(Ed): the brief called this a "child theme". As specified — its own
front-page.php, header.php, footer.php, page.php and page templates — it is a
complete standalone classic theme, and a parent's templates would only fight
it. If a parent is genuinely wanted, add a `Template: <parent-slug>` line above
and delete whichever templates the parent should own. Flagged, not assumed.
*/

/* ==========================================================================
   Tokens
   --------------------------------------------------------------------------
   These are FALLBACKS. functions.php prints a :root block from
   brand-config.php immediately after this stylesheet, which overrides every
   value below. Never hardcode a brand colour anywhere else in this file.
   ========================================================================== */

:root {
	--sm-night-ink: #0F1D2B;
	--sm-brass: #C29B53;
	--sm-ivory: #F5F0E6;
	--sm-slate: #546475;
	--sm-green-on-dark: #2FA372;  /* dark surfaces only */
	--sm-green-on-light: #1B6B4A; /* light surfaces only */
	--sm-surface-page: #F5F0E6;
	--sm-surface-band: #EDE6D9;
	--sm-surface-card: #FFFCF6;

	--sm-font-display: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
	--sm-font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	/* Derived, non-brand. Safe to leave alone when rebranding. */
	--sm-ink-on-dark: #F3EFE8;
	--sm-muted-on-dark: rgba(243, 239, 232, 0.68);
	--sm-muted-on-light: #5B6A7A;
	--sm-rule-on-dark: rgba(243, 239, 232, 0.16);
	--sm-rule-on-light: rgba(15, 29, 43, 0.14);

	--sm-radius: 10px;
	--sm-radius-lg: 16px;
	--sm-gutter: clamp(20px, 5vw, 64px);
	--sm-max: 1200px;
	--sm-section-y: clamp(56px, 8vw, 104px);
}

/* ==========================================================================
   Reset and base
   ========================================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

body {
	margin: 0;
	background: var(--sm-surface-page);
	color: var(--sm-night-ink);
	font-family: var(--sm-font-body);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img,
svg {
	max-width: 100%;
	display: block;
}

a {
	color: inherit;
}

h1, h2, h3, h4 {
	font-family: var(--sm-font-display);
	font-weight: 600;
	line-height: 1.12;
	letter-spacing: -0.01em;
	margin: 0;
}

p {
	margin: 0 0 1em;
}

p:last-child {
	margin-bottom: 0;
}

ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* ==========================================================================
   Layout primitives
   ========================================================================== */

.sm-wrap {
	width: 100%;
	max-width: var(--sm-max);
	margin-inline: auto;
	padding-inline: var(--sm-gutter);
}

.sm-section {
	padding-block: var(--sm-section-y);
}

.sm-section--tight {
	padding-block: clamp(28px, 4vw, 48px);
}

/* Surfaces. A section declares its surface; the greens and rules follow. */
.sm-surface--dark {
	background: var(--sm-night-ink);
	color: var(--sm-ink-on-dark);
}

.sm-surface--light {
	background: var(--sm-surface-page);
	color: var(--sm-night-ink);
}

.sm-surface--band {
	background: var(--sm-surface-band);
	color: var(--sm-night-ink);
}

.sm-eyebrow {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	margin: 0 0 14px;
}

.sm-surface--dark .sm-eyebrow {
	color: var(--sm-brass);
}

.sm-surface--light .sm-eyebrow,
.sm-surface--band .sm-eyebrow {
	color: var(--sm-slate);
}

.sm-h1 {
	font-size: clamp(38px, 5.6vw, 60px);
}

.sm-h2 {
	font-size: clamp(28px, 3.6vw, 40px);
}

.sm-h3 {
	font-size: clamp(19px, 2vw, 22px);
}

.sm-lede {
	font-size: clamp(16px, 1.4vw, 18px);
	max-width: 54ch;
}

.sm-surface--dark .sm-lede {
	color: var(--sm-muted-on-dark);
}

.sm-surface--light .sm-lede,
.sm-surface--band .sm-lede {
	color: var(--sm-muted-on-light);
}

.sm-note {
	font-size: 13px;
	line-height: 1.5;
}

.sm-surface--dark .sm-note {
	color: var(--sm-muted-on-dark);
}

.sm-surface--light .sm-note,
.sm-surface--band .sm-note {
	color: var(--sm-muted-on-light);
}

/* ==========================================================================
   Skip link and focus
   ========================================================================== */

.sm-skip {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 999;
	padding: 12px 18px;
	background: var(--sm-brass);
	color: var(--sm-night-ink);
	font-weight: 700;
}

.sm-skip:focus {
	left: 12px;
	top: 12px;
}

a:focus-visible,
summary:focus-visible,
.sm-btn:focus-visible {
	outline: 3px solid var(--sm-brass);
	outline-offset: 3px;
	border-radius: 2px;
}

/* ==========================================================================
   Wordmark and glyph
   ========================================================================== */

.sm-wordmark {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	line-height: 1;
}

.sm-glyph {
	width: 22px;
	height: 18px;
	flex: none;
	color: var(--sm-brass);
}

.sm-surface--light .sm-glyph,
.sm-surface--band .sm-glyph {
	color: var(--sm-night-ink);
}

.sm-wordmark__text {
	font-family: var(--sm-font-display);
	font-weight: 700;
	font-size: 19px;
	letter-spacing: -0.01em;
}

/* ==========================================================================
   Buttons and links
   ========================================================================== */

.sm-btn {
	display: inline-block;
	padding: 14px 24px;
	border-radius: var(--sm-radius);
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	border: 1px solid transparent;
	cursor: pointer;
}

.sm-btn--primary {
	background: var(--sm-brass);
	color: var(--sm-night-ink);
}

.sm-btn--primary:hover {
	filter: brightness(1.06);
}

.sm-btn--ghost {
	background: transparent;
	border-color: currentColor;
}

.sm-btn--link {
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	text-decoration: underline;
	text-underline-offset: 5px;
}

/* A CTA whose product ID is still unset. Loud on purpose. */
.sm-btn--todo {
	background: repeating-linear-gradient(
		135deg,
		rgba(194, 155, 83, 0.28) 0 8px,
		rgba(194, 155, 83, 0.12) 8px 16px
	);
	color: inherit;
	border: 2px dashed var(--sm-brass);
	cursor: not-allowed;
}

.sm-link {
	text-decoration: underline;
	text-underline-offset: 5px;
	font-weight: 600;
	font-size: 15px;
}

/* ==========================================================================
   Ticks — never chosen by hand, always via steady_tick()
   ========================================================================== */

.sm-tick {
	width: 16px;
	height: 16px;
	flex: none;
	margin-top: 4px;
}

.sm-tick--on-dark {
	color: var(--sm-green-on-dark);
}

.sm-tick--on-light {
	color: var(--sm-green-on-light);
}

.sm-ticklist {
	display: grid;
	gap: 12px;
}

.sm-ticklist li {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 15px;
	line-height: 1.45;
}

/* ==========================================================================
   TODO placeholder token
   ========================================================================== */

.sm-todo {
	display: inline-block;
	padding: 0 6px;
	border: 1px dashed currentColor;
	border-radius: 4px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.82em;
	font-weight: 600;
	letter-spacing: 0;
	opacity: 0.85;
	white-space: nowrap;
}

/* ==========================================================================
   Photography slots
   ========================================================================== */

.sm-photo {
	width: 100%;
	border-radius: var(--sm-radius-lg);
	object-fit: cover;
}

.sm-photo--placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	text-align: center;
	padding: 24px;
	background-color: #C9C4BA;
	background-image: repeating-linear-gradient(
		135deg,
		rgba(15, 29, 43, 0.16) 0 14px,
		rgba(15, 29, 43, 0.06) 14px 28px
	);
	border: 2px dashed rgba(15, 29, 43, 0.38);
	color: #24333F;
}

.sm-photo__label {
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.sm-photo__hint {
	font-size: 12px;
	opacity: 0.75;
}

/* ==========================================================================
   Site header
   ========================================================================== */

.sm-header {
	background: var(--sm-night-ink);
	color: var(--sm-ink-on-dark);
}

.sm-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	/* Header row at ~1.5x its original height. Nothing sets an explicit height,
	   so the bar is content + 2x this padding. Measured at 1440px: content is
	   27.2px, so 22px padding gave a 71.2px bar; 40px gives 107.2px — 1.51x.
	   align-items:center above keeps the wordmark and nav centred as it grows. */
	padding-block: 40px;
}

/* In the taller bar a 19px wordmark read small — about 18% of the bar height,
   against a ~30% norm. Scaled ~1.2x, not the full 1.5x, which would have
   dominated the nav. Scoped to .sm-header on purpose: .sm-glyph and
   .sm-wordmark__text are shared with the footer, which is unchanged. */
.sm-header .sm-wordmark__text {
	font-size: 23px;
}

.sm-header .sm-glyph {
	width: 27px;
	height: 22px;
}

.sm-nav__list {
	display: flex;
	gap: clamp(16px, 2.4vw, 34px);
}

.sm-nav__list a {
	text-decoration: none;
	font-size: 15px;
	color: var(--sm-ink-on-dark);
}

.sm-nav__list a:hover {
	color: var(--sm-brass);
}

.sm-nav--desktop {
	display: none;
}

.sm-nav--mobile > summary {
	list-style: none;
	cursor: pointer;
	padding: 8px 14px;
	border: 1px solid var(--sm-rule-on-dark);
	border-radius: var(--sm-radius);
	font-size: 14px;
	font-weight: 700;
}

.sm-nav--mobile > summary::-webkit-details-marker {
	display: none;
}

.sm-nav--mobile .sm-nav__list {
	flex-direction: column;
	gap: 0;
	padding-block: 12px;
}

.sm-nav--mobile .sm-nav__item a {
	display: block;
	padding: 12px 0;
	border-top: 1px solid var(--sm-rule-on-dark);
}

@media (min-width: 860px) {
	.sm-nav--desktop {
		display: block;
	}

	.sm-nav--mobile {
		display: none;
	}
}

/* ==========================================================================
   Hero
   ========================================================================== */

/* The hero sits directly under the header, so it does not need the full
   section rhythm above it — clamp(56px, 8vw, 104px) left the title floating.
   Overrides only the TOP; the bottom keeps --sm-section-y so the hero still
   separates properly from the statement band below.
   At 1440px: 104px -> 34px. The taller header above adds 36px back, so the
   net effect is the title ~34px higher than before. */
.sm-hero {
	padding-top: clamp(16px, 2.4vw, 34px);
}

.sm-hero__grid {
	display: grid;
	gap: clamp(32px, 5vw, 56px);
	align-items: center;
}

/* Mobile-first hero: lead with the photograph, not a wall of copy.
   Below 900px the grid is a single column, so source order put the image
   after the headline, subcopy, CTAs and chips — measured at 380x844 it
   started at y=770, i.e. off-screen. Reordering is done with grid `order`
   only: the DOM is untouched, so desktop, reading order and the eager /
   fetchpriority LCP hint on the image all stay exactly as they were.
   Paired with the min-width rule below, which never sees these orders. */
@media (max-width: 899.98px) {
	.sm-hero__media {
		order: 1;
	}

	.sm-hero__copy {
		order: 2;
	}

	/* Bring the photograph closer to the header.
	   The header and the hero are both Night Ink, so the gap a visitor sees is
	   the header's bottom padding plus the hero's top padding, with no visible
	   boundary between them — measured at 380px that was 40 + 16 = 56px of
	   dead space under the Menu row.
	   padding-TOP on the header is deliberately left at 40px, so the wordmark
	   and Menu button do not move and the bar still reads as the taller one.
	   Only the invisible space below them is trimmed: 56px -> 32px. */
	.sm-header__inner {
		padding-bottom: 24px;
	}

	.sm-hero {
		padding-top: 8px;
	}

	/* Compact: a slice of the top of the screen, never the whole screen, so
	   the headline and "Choose your plan" stay within easy reach.
	   The source is 3:2 landscape (2528x1696), so a near-square mobile window
	   crops the WIDTH and keeps full height — no letterboxing, no stretch.
	   object-position 58% keeps the walking figure (she spans roughly 47-78%
	   of the frame) and the Arrivals signage, rather than centring on the
	   empty seating to her left.
	   aspect-ratio is overridden because steady_photo() sets it inline. */
	.sm-hero__media .sm-photo {
		aspect-ratio: auto !important;
		height: clamp(240px, 42vh, 360px);
		height: clamp(240px, 42svh, 360px);
		object-fit: cover;
		object-position: 58% center;
	}
}

@media (min-width: 900px) {
	.sm-hero__grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
	}
}

.sm-hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 22px;
	margin-top: 28px;
}

.sm-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 32px;
	padding-top: 28px;
	border-top: 1px solid var(--sm-rule-on-dark);
}

.sm-chip {
	padding: 7px 14px;
	border: 1px solid var(--sm-rule-on-dark);
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
}

.sm-hero__media {
	position: relative;
}

.sm-hero__badge {
	position: absolute;
	right: 16px;
	bottom: 16px;
	display: flex;
	gap: 10px;
	align-items: flex-start;
	max-width: 250px;
	padding: 12px 16px;
	border-radius: var(--sm-radius);
	background: rgba(15, 29, 43, 0.94);
	color: var(--sm-ink-on-dark);
}

.sm-hero__badge strong {
	display: block;
	font-size: 14px;
}

.sm-hero__badge span {
	font-size: 13px;
	color: var(--sm-muted-on-dark);
}

/* ==========================================================================
   Statement band and reassurance strip
   ========================================================================== */

.sm-statement p {
	font-family: var(--sm-font-display);
	font-size: clamp(18px, 2vw, 22px);
	line-height: 1.45;
	max-width: 68ch;
}

.sm-reassure {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding-block: 18px;
	font-size: 15px;
}

.sm-reassure strong {
	font-weight: 700;
}

.sm-reassure span {
	color: var(--sm-muted-on-light);
}

/* ==========================================================================
   Steps
   ========================================================================== */

.sm-steps {
	display: grid;
	gap: clamp(28px, 3.5vw, 44px);
	margin-top: 44px;
	/* This is an <ol> and each step already prints its own "01" label. The
	   base reset only covers <ul>, so without this the browser marker renders
	   too and every step shows two numbers. Scoped rather than resetting all
	   <ol>, so ordered lists inside .sm-prose keep their numbering. */
	list-style: none;
	padding-left: 0;
}

@media (min-width: 820px) {
	.sm-steps {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.sm-step {
	border-top: 1px solid var(--sm-rule-on-light);
	padding-top: 22px;
}

.sm-step__num {
	font-family: var(--sm-font-display);
	font-size: 26px;
	margin-bottom: 16px;
}

.sm-step h3 {
	font-family: var(--sm-font-body);
	font-size: 16px;
	font-weight: 700;
	margin-bottom: 8px;
}

.sm-step p {
	font-size: 14.5px;
	color: var(--sm-muted-on-light);
}

/* ==========================================================================
   Comparison
   ========================================================================== */

.sm-compare {
	display: grid;
	gap: clamp(24px, 4vw, 56px);
	margin-top: 40px;
}

@media (min-width: 860px) {
	.sm-compare {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.sm-compare__head {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--sm-rule-on-dark);
}

.sm-compare__col--from .sm-compare__head {
	color: var(--sm-muted-on-dark);
}

.sm-compare__col--to .sm-compare__head {
	color: var(--sm-brass);
}

.sm-compare__row {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	padding-block: 18px;
	border-bottom: 1px solid var(--sm-rule-on-dark);
	font-size: 15px;
}

.sm-compare__col--from .sm-compare__row {
	color: var(--sm-muted-on-dark);
}

/* ==========================================================================
   Plans
   ========================================================================== */

.sm-plans__grid {
	display: grid;
	gap: clamp(20px, 2.4vw, 28px);
	margin-top: 40px;
	align-items: start;
}

@media (min-width: 760px) {
	.sm-plans__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 1060px) {
	.sm-plans__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 0.94fr);
	}
}

/* The all-plans page: seven equal cards, no reasons panel, so it uses its own
   track sizing rather than the homepage's 3-cards-plus-panel layout. */
.sm-plans__grid--all {
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	margin-top: 32px;
}

@media (min-width: 760px) {
	.sm-plans__grid--all {
		grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	}
}

@media (min-width: 1060px) {
	.sm-plans__grid--all {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.sm-plan {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 18px;
	height: 100%;
	padding: 26px 24px;
	border-radius: var(--sm-radius-lg);
	background: var(--sm-surface-card);
	border: 1px solid var(--sm-rule-on-light);
}

.sm-plan--featured {
	background: var(--sm-night-ink);
	color: var(--sm-ink-on-dark);
	border-color: var(--sm-night-ink);
}

.sm-plan__flag {
	position: absolute;
	top: -12px;
	left: 24px;
	padding: 5px 12px;
	border-radius: 6px;
	background: var(--sm-brass);
	color: var(--sm-night-ink);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.sm-plan__name {
	font-family: var(--sm-font-display);
	font-size: 30px;
	font-weight: 600;
}

.sm-plan__price {
	font-size: 19px;
	font-weight: 700;
}

.sm-plan__period {
	font-size: 14px;
	font-weight: 400;
	color: var(--sm-muted-on-light);
}

.sm-plan--featured .sm-plan__period {
	color: var(--sm-muted-on-dark);
}

.sm-plan__features {
	flex: 1 1 auto;
}

.sm-plan__cta {
	margin-top: auto;
}

/* Per-tile "Details" control and its dialog.
   The trigger carries .sm-btn .sm-btn--ghost in the markup, so it inherits the
   Choose button's shape at lower visual weight and needs no size or colour of
   its own. It is an <a>, so the only additions are the ones that stop it
   reading as body copy. a:focus-visible is already covered by the global focus
   rule above, so the brass focus ring applies without a further declaration. */
.sm-plan__details-open {
	display: block;
	text-align: center;
	text-decoration: none;
}

/* The dialog itself. Closed <dialog> is display:none in the UA stylesheet, so
   nothing here needs to hide it. */
.sm-plan__dialog {
	/* Readable measure, never wider than the viewport. On a phone this lands
	   at "full width minus a thumb's margin", which is the sheet behaviour we
	   want without a separate mobile rule. */
	width: min(66ch, calc(100vw - 32px));
	max-width: min(66ch, calc(100vw - 32px));
	max-height: calc(100vh - 48px);
	overflow-y: auto;                 /* scroll INSIDE, never the page behind */
	overscroll-behavior: contain;
	padding: 0;                       /* inner element owns the padding */
	border: 1px solid var(--sm-rule-on-light);
	border-radius: var(--sm-radius-lg);
	background: var(--sm-surface-card);
	color: var(--sm-night-ink);
	font-family: var(--sm-font-body);
}

.sm-plan__dialog::backdrop {
	background: rgba(15, 29, 43, 0.55);   /* Night Ink, softened */
}

.sm-plan__dialog-inner {
	padding: 22px 24px 24px;
}

.sm-plan__dialog-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 4px;
}

.sm-plan__dialog-title {
	font-family: var(--sm-font-display);
	font-size: clamp(20px, 2.2vw, 24px);
	margin: 0;
}

.sm-plan__dialog-close {
	flex: none;
	border: 0;
	background: none;
	cursor: pointer;
	font-size: 26px;
	line-height: 1;
	padding: 0 4px;
	color: inherit;
	opacity: 0.65;
}

.sm-plan__dialog-close:hover {
	opacity: 1;
}

.sm-plan__dialog-foot {
	margin: 18px 0 0;
	text-align: right;
}

.sm-plan__details-panel {
	margin-top: 14px;
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--sm-muted-on-light);
}

.sm-plan__details-panel p {
	margin: 0 0 12px;
}

.sm-plan__details-panel p:last-child {
	margin-bottom: 0;
}

/* NO-JAVASCRIPT FALLBACK.
   The trigger is a real link to the dialog's id. Without the enhancement the
   fragment navigation still happens, and this rule makes the target visible in
   the page flow — not modal, no backdrop, but the copy is readable and the
   close controls still work once script arrives. A button would have degraded
   to doing nothing at all, which is why the trigger is an anchor. */
.sm-plan__dialog:target {
	display: block;
	margin: 16px auto;
	position: relative;
}

.sm-plan__fairuse {
	font-size: 12px;
}

.sm-plan--featured .sm-plan__fairuse {
	color: var(--sm-muted-on-dark);
}

.sm-plan:not(.sm-plan--featured) .sm-plan__fairuse {
	color: var(--sm-muted-on-light);
}

/* Reason-to-act panel beside the plan cards. */
.sm-reasons {
	padding: 26px 24px;
	border-radius: var(--sm-radius-lg);
	background: var(--sm-night-ink);
	color: var(--sm-ink-on-dark);
}

.sm-reasons .sm-eyebrow {
	color: var(--sm-brass);
}

.sm-reasons .sm-btn {
	display: block;
	width: 100%;
	margin-top: 22px;
	text-align: center;
}

.sm-plans__foot {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 24px;
	align-items: baseline;
	justify-content: space-between;
	margin-top: 32px;
}

/* The one route from the homepage's larger tiers to the full ladder. */
.sm-plans__more {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 20px;
	margin-top: 24px;
}

.sm-plans__more-hint {
	margin: 0;
}

.sm-callout {
	margin-top: 26px;
	padding: 18px 22px;
	border-radius: var(--sm-radius);
	background: var(--sm-surface-band);
	font-size: 15px;
}

/* ==========================================================================
   Feature grid ("Why Steady works")
   ========================================================================== */

.sm-features {
	display: grid;
	gap: clamp(26px, 3vw, 40px);
	margin-top: 40px;
}

@media (min-width: 760px) {
	.sm-features {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.sm-feature h3 {
	font-family: var(--sm-font-body);
	font-size: 16px;
	font-weight: 700;
	margin-bottom: 6px;
}

.sm-feature p {
	font-size: 14.5px;
	color: var(--sm-muted-on-light);
}

/* The grid is reused on the dark Pause section, where the light muted tone
   would be unreadable. Scoped to the surface, not to a modifier class, so any
   future dark section gets it for free. */
.sm-surface--dark .sm-feature p {
	color: var(--sm-muted-on-dark);
}

/* ==========================================================================
   Split sections (calls home, for parents)
   ========================================================================== */

.sm-split {
	display: grid;
	gap: clamp(32px, 5vw, 60px);
	align-items: center;
}

@media (min-width: 900px) {
	.sm-split {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.sm-split--media-first .sm-split__media {
		order: -1;
	}
}

.sm-ratecard {
	margin: 26px 0 22px;
	padding: 22px 24px;
	border-radius: var(--sm-radius);
	background: var(--sm-night-ink);
	color: var(--sm-ink-on-dark);
}

.sm-ratecard__line {
	font-family: var(--sm-font-display);
	font-size: clamp(20px, 2.4vw, 26px);
	margin-bottom: 8px;
}

.sm-ratecard__note {
	font-size: 12px;
	color: var(--sm-muted-on-dark);
}

.sm-countries {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin-bottom: 18px;
}

.sm-country {
	padding: 7px 16px;
	border: 1px solid var(--sm-rule-on-light);
	border-radius: 999px;
	background: var(--sm-surface-card);
	font-size: 13px;
	font-weight: 600;
}

.sm-countries__more {
	font-size: 13px;
	color: var(--sm-muted-on-light);
}

.sm-deflist {
	display: grid;
	margin-top: 26px;
}

.sm-deflist__item {
	padding-block: 16px;
	border-bottom: 1px solid var(--sm-rule-on-dark);
}

.sm-deflist__item:first-child {
	border-top: 1px solid var(--sm-rule-on-dark);
}

.sm-deflist__item h3 {
	font-family: var(--sm-font-body);
	font-size: 15px;
	font-weight: 700;
	margin-bottom: 4px;
}

.sm-deflist__item p {
	font-size: 14px;
	color: var(--sm-muted-on-dark);
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.sm-faq {
	display: grid;
	gap: 0 clamp(24px, 4vw, 48px);
	margin-top: 36px;
}

@media (min-width: 820px) {
	.sm-faq {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.sm-faq__item {
	border-bottom: 1px solid var(--sm-rule-on-light);
}

.sm-faq__item > summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-block: 18px;
	cursor: pointer;
	list-style: none;
	font-size: 15px;
	font-weight: 600;
}

.sm-faq__item > summary::-webkit-details-marker {
	display: none;
}

.sm-faq__item > summary::after {
	content: "";
	width: 9px;
	height: 9px;
	flex: none;
	border-right: 1.6px solid currentColor;
	border-bottom: 1.6px solid currentColor;
	transform: rotate(45deg) translate(-2px, -2px);
	opacity: 0.6;
}

.sm-faq__item[open] > summary::after {
	transform: rotate(225deg) translate(-2px, -2px);
}

.sm-faq__answer {
	padding-bottom: 20px;
	font-size: 14.5px;
	color: var(--sm-muted-on-light);
}

/* ==========================================================================
   Partner strip
   ========================================================================== */

.sm-partners {
	text-align: center;
	font-size: 14px;
	color: var(--sm-muted-on-light);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.sm-footer {
	background: var(--sm-night-ink);
	color: var(--sm-ink-on-dark);
	padding-block: 40px;
}

.sm-footer__top {
	display: flex;
	flex-wrap: wrap;
	gap: 20px 32px;
	align-items: center;
	justify-content: space-between;
}

.sm-footer .sm-glyph {
	color: var(--sm-brass);
}

.sm-footer__links {
	display: flex;
	flex-wrap: wrap;
	gap: 14px 26px;
}

.sm-footer__links a {
	font-size: 14px;
	text-decoration: none;
	color: var(--sm-muted-on-dark);
}

.sm-footer__links a:hover {
	color: var(--sm-brass);
}

.sm-footer__legal {
	margin-top: 22px;
	max-width: 78ch;
	font-size: 12.5px;
	line-height: 1.65;
	color: var(--sm-muted-on-dark);
}

/* ==========================================================================
   Generic page content (page.php and the page templates)
   ========================================================================== */

.sm-page__header {
	padding-block: clamp(44px, 6vw, 72px) 0;
}

.sm-prose {
	max-width: 70ch;
	margin-top: 28px;
}

.sm-prose h2 {
	font-size: clamp(22px, 2.4vw, 28px);
	margin-top: 40px;
	margin-bottom: 12px;
}

.sm-prose h3 {
	font-family: var(--sm-font-body);
	font-size: 17px;
	font-weight: 700;
	margin-top: 26px;
	margin-bottom: 8px;
}

.sm-prose ul {
	list-style: disc;
	padding-left: 1.2em;
	margin-bottom: 1em;
}

.sm-prose li {
	margin-bottom: 0.4em;
}

/* Legal pages: tighter, more readable at length. */
.sm-prose--legal {
	max-width: 78ch;
}

.sm-prose--legal h2 {
	font-size: clamp(19px, 2vw, 23px);
	margin-top: 44px;
}

.sm-prose--legal h2:first-child {
	margin-top: 0;
}

.sm-prose--legal p,
.sm-prose--legal li {
	font-size: 15.5px;
}

.sm-prose--legal ul {
	list-style: disc;
	padding-left: 1.2em;
}

/* Inline price ladder (EU travel packs). */
.sm-pricerow__lead {
	margin-bottom: 12px;
}

.sm-pricerow__ladder {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.sm-pricerow__ladder li {
	display: flex;
	align-items: baseline;
	gap: 8px;
	padding: 8px 16px;
	border: 1px solid var(--sm-rule-on-light);
	border-radius: 999px;
	background: var(--sm-surface-card);
}

.sm-pricerow__size {
	font-size: 13px;
	font-weight: 700;
}

.sm-pricerow__price {
	font-size: 13px;
	color: var(--sm-muted-on-light);
}

/* Plans table on the all-plans view. */
.sm-table-scroll {
	overflow-x: auto;
	margin-top: 36px;
}

.sm-table {
	width: 100%;
	min-width: 640px;
	border-collapse: collapse;
	font-size: 15px;
}

.sm-table th,
.sm-table td {
	text-align: left;
	padding: 16px 14px;
	border-bottom: 1px solid var(--sm-rule-on-light);
	vertical-align: top;
}

.sm-table thead th {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--sm-slate);
}

.sm-table tbody tr:nth-child(odd) {
	background: rgba(255, 252, 246, 0.6);
}

.sm-table__allowance {
	font-family: var(--sm-font-display);
	font-size: 21px;
	font-weight: 600;
}

/* Badge on a plan row — "Our Pick", "High data". Same brass chip as the
   card flag, sized down to sit inside a table cell. */
.sm-table__flag {
	display: inline-block;
	margin-left: 8px;
	padding: 3px 9px;
	vertical-align: 3px;
	border-radius: 6px;
	background: var(--sm-brass);
	color: var(--sm-night-ink);
	font-family: var(--sm-font-body);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	white-space: nowrap;
}

.sm-table__price {
	font-weight: 700;
	white-space: nowrap;
}

/* ==========================================================================
   Print
   ========================================================================== */

@media print {
	.sm-header,
	.sm-footer__links,
	.sm-btn {
		display: none;
	}

	body {
		background: #fff;
		color: #000;
	}
}

/* ==========================================================================
   Porting (bring your number) — 2026-08-21
   ========================================================================== */

/* Four steps, not three: two-up from tablet, four-up on wide screens. */
@media (min-width: 820px) {
	.sm-steps--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1060px) {
	.sm-steps--4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.sm-porting__cta {
	margin-top: 36px;
	max-width: 56ch;
}

.sm-porting__cta .sm-note {
	margin-top: 14px;
}

.sm-porting__cta .sm-note + .sm-note {
	margin-top: 8px;
}

/* ==========================================================================
   WhatsApp float — site-wide general support — 2026-08-21
   z-index 900: above page content, BELOW Complianz (banner 99999, manage-consent
   tab 9998). The tab sits at right:40px/bottom:0, so the float is offset up and
   right of it. Bottom inset honours the iOS home-bar safe area.
   ========================================================================== */

.sm-wa-float {
	position: fixed;
	right: 20px;
	bottom: calc(24px + env(safe-area-inset-bottom, 0px));
	z-index: 900;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 52px;
	padding: 12px 18px 12px 14px;
	border-radius: 999px;
	background: var(--sm-brass);
	color: var(--sm-night-ink);
	font-weight: 700;
	font-size: 14px;
	line-height: 1;
	text-decoration: none;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}

.sm-wa-float:hover,
.sm-wa-float:focus-visible {
	text-decoration: none;
	filter: brightness(1.06);
}

.sm-wa-float svg {
	flex: none;
}

/* Phones: glyph only, so it never covers a plan card's price or button. */
@media (max-width: 759px) {
	.sm-wa-float {
		right: 16px;
		bottom: calc(16px + env(safe-area-inset-bottom, 0px));
		padding: 12px;
		min-height: 0;
	}

	.sm-wa-float__label {
		position: absolute;
		left: -9999px;
	}
}
