/*
Theme Name: Round Connect
Description: Site theme for roundconnect.uk — the philosophy and logic of Round Connect. Multilingual via Polylang + i18n/<lang>.php.
Version: 1.0
Text Domain: round-connect
*/

:root {
	/* Comfortable dark palette: graphite background, warm grey text — body ≈8:1, headings ≈10:1, no white. */
	--ink: #1a1d21;
	--surface: #21252a;
	--surface-2: #272c32;
	--line: #343b43;
	--heading: #c9c8c4;
	--text: #b3b2ae;
	--muted: #96989d;
	--accent: #62aed0;        /* soft brand blue for buttons and accents; the logo keeps its own #00a8e8 */
	--accent-text: #62aed0;   /* links and highlights in text */
	--accent-ink: #0f2733;
	--amber: #f5a524;
	--z1: #6b7785; --z2: #2f8fe0; --z3: #2fbf71; --z4: #f2c230; --z5: #ef4b4b;
	--wrap: 1120px;
	--read: 720px;
	--radius: 14px;
	--font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
	color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--text); font: 17px/1.7 var(--font); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent-text); text-underline-offset: 3px; }
a:hover { color: #86c2dc; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { color: var(--heading); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); margin-top: 1.6em; }
h3 { font-size: 1.2rem; margin-top: 1.4em; }
p, ul { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
li { margin: .3em 0; }
li::marker { color: var(--accent); }
strong { color: var(--heading); font-weight: 650; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; }
.wrap { max-width: calc(var(--wrap) + 40px); margin: 0 auto; padding: 0 20px; }

/* Header */
/* Solid sticky header: no backdrop blur — it re-renders on every scroll frame and stutters on phones. */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ink); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: block; line-height: 0; margin-right: auto; }
.brand img { width: 132px; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; }
.site-nav li { margin: 0; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: .95rem; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); padding-bottom: 4px; }
.langs { gap: 4px !important; border-left: 1px solid var(--line); padding-left: 18px !important; }
.langs a { font-size: .8rem !important; letter-spacing: .06em; padding: 4px 7px; border-radius: 6px; }
.langs a[aria-current="true"] { color: var(--accent-ink) !important; background: var(--accent); }
.nav-toggle { display: none; }

@media (max-width: 1100px) and (min-width: 861px) { .site-nav, .site-nav ul { gap: 14px; } .site-nav a { font-size: .88rem; } }
@media (max-width: 860px) {
	.nav-toggle { display: block; width: 44px; height: 44px; background: none; border: 1px solid var(--line); border-radius: 10px; position: relative; cursor: pointer; }
	.nav-toggle span:first-child, .nav-toggle span:first-child::before, .nav-toggle span:first-child::after { position: absolute; left: 12px; width: 18px; height: 2px; background: var(--text); content: ""; transition: transform .2s; }
	.nav-toggle span:first-child { top: 21px; }
	.nav-toggle span:first-child::before { left: 0; top: -6px; }
	.nav-toggle span:first-child::after { left: 0; top: 6px; }
	.nav-open .nav-toggle span:first-child { background: transparent; }
	.nav-open .nav-toggle span:first-child::before { transform: translateY(6px) rotate(45deg); }
	.nav-open .nav-toggle span:first-child::after { transform: translateY(-6px) rotate(-45deg); }
	.site-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--ink); border-bottom: 1px solid var(--line); padding: 12px 20px 20px; flex-direction: column; align-items: stretch; gap: 12px; }
	.nav-open .site-nav { display: flex; }
	.site-nav ul { flex-direction: column; gap: 0; }
	.site-nav ul:not(.langs) a { display: block; padding: 12px 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
	.langs { flex-direction: row !important; border: 0; padding: 8px 0 0 !important; }
	.langs a { font-size: .95rem !important; padding: 8px 12px; }
}

/* Page layout */
.page-hero { padding-top: clamp(48px, 8vw, 96px); padding-bottom: 8px; }
.page-hero h1 { max-width: 18ch; }
.lead, .page-hero .lead { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--muted); max-width: 46ch; }
.content { padding: 8px 20px clamp(64px, 10vw, 120px); }
.content > *, .section > * { max-width: var(--wrap); margin-left: auto; margin-right: auto; }
/* Text runs at reading width, aligned to the left edge of the page grid. */
:is(.content, .section) > :is(p, ul, h2, h3, .kicker, .wp-block-buttons, .note, .nope) { padding-right: max(0px, calc(min(100%, var(--wrap)) - var(--read))); }
.content > .coach { margin-left: max(0px, calc((100% - var(--wrap)) / 2)); }
.content-home { padding-top: 0; }

/* Sections */
.section { padding: clamp(40px, 7vw, 88px) 0 0; }
.section > h2:first-child, .section > .kicker + h2 { margin-top: 0; }
.kicker { color: var(--accent-text); text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; margin-bottom: .8em; }

/* Home hero */
.hero { padding: clamp(56px, 10vw, 128px) 0 clamp(24px, 4vw, 40px); max-width: var(--wrap); }
.hero h1 { font-size: clamp(2.4rem, 6.4vw, 4.6rem); max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--accent-text); }
.hero > p { font-size: clamp(1.1rem, 2.1vw, 1.35rem); color: var(--muted); max-width: 44ch; }

/* Buttons */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6em 0 0; }
.wp-block-button__link { display: inline-block; background: var(--accent); color: var(--accent-ink); font-weight: 650; text-decoration: none; padding: 13px 22px; border-radius: 999px; }
.wp-block-button__link:hover { background: #7dbcd9; color: var(--accent-ink); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 1.6em; margin-bottom: 1em; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin-top: 0; font-size: 1.12rem; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card p { color: var(--muted); }
.steps { counter-reset: step; }
.steps .card { position: relative; padding-top: 58px; }
.steps .card::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; top: 20px; left: 24px; font-weight: 700; color: var(--accent-text); letter-spacing: .08em; font-size: .9rem; }

/* Statement */
.statement { margin-top: clamp(40px, 7vw, 88px); padding: clamp(28px, 5vw, 48px); border-left: 3px solid var(--accent); background: linear-gradient(90deg, rgba(98,174,208,.08), transparent 70%); border-radius: 0 var(--radius) var(--radius) 0; }
.statement > * { padding-right: 0 !important; max-width: 52ch !important; margin-left: 0 !important; }
.statement p { font-size: clamp(1.25rem, 2.6vw, 1.7rem); line-height: 1.35; color: var(--text); margin: 0; letter-spacing: -0.01em; }
.statement p + p { margin-top: .6em; font-size: 1rem; color: var(--muted); }

/* "We don't do" */
.nope ul { list-style: none; padding: 0; }
.nope li { padding-left: 34px; position: relative; margin: .7em 0; }
.nope li::before { content: "✕"; position: absolute; left: 0; top: 0; color: var(--z5); font-weight: 700; width: 22px; text-align: center; }

/* Compare */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 1.6em; }
.compare > .wp-block-group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.compare > .wp-block-group:last-child { border-color: rgba(98,174,208,.5); }
.compare h3 { margin-top: 0; }
@media (max-width: 700px) { .compare { grid-template-columns: 1fr; } }

/* Coach signals */
.signals { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 1.6em; }
.signal { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--amber); border-radius: var(--radius); padding: 22px 24px; }
.signal.under { border-top-color: var(--z2); }
.signal h3 { margin-top: 0; }
.signal p { color: var(--muted); }
.signal p:last-child { margin-bottom: 0; }

/* Note */
.note { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; color: var(--muted); font-size: .95rem; margin-top: 1.6em; }
.note p:last-child { margin: 0; }

/* CTA */
.cta { margin-top: clamp(56px, 9vw, 112px); text-align: center; padding: clamp(36px, 6vw, 64px) 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; }
.cta > * { max-width: 40ch; margin-left: auto !important; margin-right: auto !important; padding-right: 0 !important; }
.cta p { color: var(--muted); }
.cta .wp-block-buttons { justify-content: center; }

/* Dashboard mock (class screen) */
.dash { margin: clamp(32px, 6vw, 56px) auto 0; max-width: var(--wrap); background: #05080b; border: 1px solid var(--line); border-radius: 18px; padding: clamp(12px, 2vw, 20px); box-shadow: 0 14px 32px rgba(0,0,0,.35); }
.dash-bar { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: .85rem; padding: 2px 4px 12px; gap: 12px; }
.dash-bar b { color: var(--text); font-variant-numeric: tabular-nums; font-size: 1.05rem; }
.dash-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tile { border-radius: 12px; padding: 12px 14px 14px; color: #e9e8e4; position: relative; min-height: 112px; display: flex; flex-direction: column; justify-content: space-between; }
.tile .who { font-size: .9rem; font-weight: 600; opacity: .95; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .pct { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 750; line-height: 1; font-variant-numeric: tabular-nums; }
.tile .pct small { font-size: .45em; opacity: .8; margin-left: 2px; }
.tile .bpm { font-size: .8rem; opacity: .85; font-variant-numeric: tabular-nums; }
.tile.z1 { background: var(--z1); } .tile.z2 { background: var(--z2); } .tile.z3 { background: var(--z3); }
.tile.z4 { background: var(--z4); color: #1d1600; } .tile.z5 { background: var(--z5); }
.tile .mark { position: absolute; top: 10px; right: 10px; width: 24px; height: 24px; border-radius: 50%; background: rgba(0,0,0,.35); display: grid; place-items: center; font-weight: 800; font-size: .85rem; color: #e9e8e4; }
.tile .mark.warn { background: var(--amber); color: #201400; box-shadow: 0 0 0 3px rgba(245,165,36,.35); }
.content > .dash-caption { color: var(--muted); font-size: .9rem; text-align: center; margin: 14px auto 0; max-width: 64ch; padding-right: 0; }
@media (max-width: 760px) { .dash-grid { grid-template-columns: repeat(2, 1fr); } .tile:nth-child(n+7) { display: none; } }

/* Coach tablet mock */
.coach { max-width: 420px; margin: 1.6em 0 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.coach .row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.coach .row:first-of-type { border-top: 0; }
.coach .dot { flex: 0 0 10px; height: 10px; border-radius: 50%; margin-top: 7px; background: var(--amber); }
.coach .dot.under { background: var(--z2); }
.coach .row b { display: block; }
.coach .row span { color: var(--muted); font-size: .92rem; }
.coach h4 { margin: 0 0 6px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* Flow diagram */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 1.6em auto 0; max-width: var(--wrap); }
.flow > div { padding: 18px 18px 18px 0; border-top: 2px solid var(--line); position: relative; }
.flow > div::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.flow b { display: block; margin-bottom: 4px; }
.flow span { color: var(--muted); font-size: .95rem; }
@media (max-width: 760px) { .flow { grid-template-columns: 1fr; } .flow > div { border-top: 0; border-left: 2px solid var(--line); padding: 0 0 22px 22px; } .flow > div::before { top: 4px; left: -7px; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; color: var(--muted); font-size: .92rem; }
.footer-row { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: start; }
.footer-row img { width: 112px; }
.footer-address { margin: 10px 0 0; font-style: normal; line-height: 1.5; }
.footer-note { max-width: 52ch; margin: 0; }
.footer-cta { font-weight: 600; text-decoration: none; white-space: nowrap; }
@media (max-width: 760px) { .footer-row { grid-template-columns: 1fr; gap: 16px; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Topics: calm two-column rows (topic | text) */
.topics { margin-top: 1.4em; }
.topic { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 8px 40px; padding: 26px 0; border-top: 1px solid var(--line); }
.topic > h3 { grid-column: 1; grid-row: 1 / span 9; margin: 0; font-size: 1.15rem; }
.topic > p { grid-column: 2; margin: 0; }
.topic > p + p { margin-top: .6em; color: var(--muted); }
@media (max-width: 760px) { .topic { grid-template-columns: 1fr; } .topic > h3, .topic > p { grid-column: 1; grid-row: auto; } }

/* Audience split on the home page */
.audience { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 1.6em; }
.audience > .wp-block-group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.audience h3 { margin-top: 0; font-size: 1.35rem; }
.audience ul { color: var(--muted); }
.audience .wp-block-buttons { margin-top: 1em; }
.audience .wp-block-button__link { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.audience .wp-block-button__link:hover { background: var(--accent); color: var(--accent-ink); }
@media (max-width: 760px) { .audience { grid-template-columns: 1fr; } }

/* Timeline (a class from start to finish) */
.timeline { margin-top: 1.6em; border-left: 2px solid var(--line); padding-left: 26px; }
.timeline > .wp-block-group { position: relative; padding-bottom: 8px; }
.timeline > .wp-block-group::before { content: ""; position: absolute; left: -33px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.timeline h3 { margin-top: 0; }
.timeline p { color: var(--muted); }

/* Header CTA */
.nav-cta { background: var(--accent); color: var(--accent-ink) !important; font-weight: 650; font-size: .9rem; text-decoration: none; padding: 8px 16px; border-radius: 999px; white-space: nowrap; }
.nav-cta:hover { background: #7dbcd9; }
.nav-login { color: var(--muted) !important; font-size: .9rem; text-decoration: none; white-space: nowrap; }
.nav-login:hover { color: var(--text) !important; }
@media (max-width: 860px) { .nav-login { order: 1; padding: 8px 0 0; font-size: 1rem; } .site-nav .langs { order: 2; } }
@media (max-width: 860px) { .nav-cta { align-self: flex-start; margin-top: 8px; padding: 11px 20px; font-size: 1rem; } }

/* Footer navigation */
.footer-nav { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-nav li { margin: 0; }
.footer-nav a { color: var(--text); text-decoration: none; }
.footer-nav a:hover { color: var(--accent); }

/* Status badges */
.badge { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; vertical-align: middle; margin-left: 6px; border: 1px solid currentColor; }
.badge.live { color: var(--z3); }
.badge.dev { color: var(--amber); }
.badge.next { color: var(--muted); }
h3 .badge { position: relative; top: -2px; }

/* Comparison table */
.compare-table { margin: 1.6em 0 0; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.compare-table table { border-collapse: collapse; width: 100%; min-width: 760px; font-size: .92rem; }
.compare-table th, .compare-table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.compare-table tr:last-child td { border-bottom: 0; }
.compare-table thead th { color: var(--muted); font-weight: 600; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; background: var(--surface-2); }
.compare-table td:first-child, .compare-table th:first-child { position: sticky; left: 0; background: var(--surface-2); color: var(--text); font-weight: 600; min-width: 150px; }
.compare-table td:nth-child(2), .compare-table th:nth-child(2) { background: rgba(98,174,208,.08); color: var(--text); }
.compare-table td { color: var(--muted); }
.content > .compare-table, .section > .compare-table { max-width: var(--wrap); }
.table-note { font-size: .85rem; color: var(--muted); }

/* Pricing plans */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-top: 1.6em; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; display: flex; flex-direction: column; }
.plan.featured { border-color: rgba(98,174,208,.6); box-shadow: 0 0 0 1px rgba(98,174,208,.3) inset; }
.plan h3 { margin: 0 0 .2em; font-size: 1.1rem; color: var(--muted); font-weight: 600; }
.plan > h3 + p { font-size: 2.4rem; font-weight: 750; letter-spacing: -0.02em; color: var(--text); margin: 0 0 .1em; line-height: 1.1; }
.plan > h3 + p + p { color: var(--muted); font-size: .92rem; }
.plan ul { margin: .4em 0 0; }
.plan li { margin: .35em 0; }

/* Request form */
.lead-form { max-width: var(--read) !important; margin-top: 1.4em !important; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px, 4vw, 32px); scroll-margin-top: 90px; }
.lead-form .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin-bottom: 14px; }
.field { display: block; }
.field > span { display: block; font-size: .88rem; color: var(--muted); margin-bottom: 6px; }
.field em { font-style: normal; opacity: .75; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; }
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.field.invalid input, .field.invalid select, .check.invalid span { border-color: var(--z5); color: #ffb4b4; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 20px; font-size: .92rem; color: var(--muted); }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--accent); flex: 0 0 auto; }
.lead-form button { font: inherit; font-weight: 650; background: var(--accent); color: var(--accent-ink); border: 0; padding: 13px 24px; border-radius: 999px; cursor: pointer; }
.lead-form button:hover { background: #7dbcd9; }
.form-error { color: #ffb4b4; margin-top: 0; }
.lead-form.sent { border-color: rgba(47,191,113,.6); }
.lead-form.sent p { margin: 0; color: var(--text); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 640px) { .lead-form .grid { grid-template-columns: 1fr; } }

/* Override core table block borders; keep forms on the text column. */
.compare-table thead, .compare-table th, .compare-table td { border: 0; border-bottom: 1px solid var(--line); }
.section > .lead-form, .content > .lead-form { margin-left: 0 !important; }
@media (max-width: 640px) { .compare-table td:first-child, .compare-table th:first-child { min-width: 112px; } .compare-table table { font-size: .88rem; } }
.content > .compare-table, .section > .compare-table { margin: 1.6em auto 0; width: 100%; }
.compare-table table { min-width: 0; }
.compare-table table:has(th:nth-child(4)) { min-width: 760px; }

/* Price calculator */
.calc { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; margin: 1.6em auto 0; background: var(--surface); border: 1px solid rgba(98,174,208,.5); border-radius: 18px; overflow: hidden; }
.calc-in { padding: clamp(20px, 3vw, 32px); display: grid; gap: 22px; align-content: start; }
.calc-in > div > span { display: block; color: var(--muted); font-size: .9rem; margin-bottom: 8px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.stepper button { width: 46px; height: 46px; font-size: 1.4rem; color: var(--text); background: var(--surface-2); border: 0; cursor: pointer; }
.stepper button:hover { background: var(--line); }
.stepper input { width: 64px; height: 46px; text-align: center; font: inherit; font-size: 1.2rem; font-weight: 700; color: var(--text); background: var(--ink); border: 0; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: inline-block; padding: 11px 16px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); }
.seg input:checked + span { border-color: var(--accent); color: var(--text); background: rgba(98,174,208,.12); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.calc-out { padding: clamp(20px, 3vw, 32px); background: linear-gradient(135deg, rgba(98,174,208,.16), rgba(98,174,208,.04)); border-left: 1px solid rgba(98,174,208,.35); display: flex; flex-direction: column; justify-content: center; }
.calc-out small { color: var(--muted); }
.calc-price { font-size: clamp(2.6rem, 6vw, 3.6rem); font-weight: 750; letter-spacing: -0.02em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.calc-why { color: var(--muted); margin: 8px 0 18px; min-height: 2.8em; }
.calc-go { align-self: flex-start; background: var(--accent); color: var(--accent-ink) !important; font-weight: 650; text-decoration: none; padding: 13px 22px; border-radius: 999px; }
.calc-go:hover { background: #7dbcd9; }
@media (max-width: 720px) { .calc { grid-template-columns: 1fr; } .calc-out { border-left: 0; border-top: 1px solid rgba(98,174,208,.35); } }

/* Reassurance row */
.assure { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px 24px; margin-top: 1.4em; }
.assure p { margin: 0; padding-left: 26px; position: relative; color: var(--muted); font-size: .95rem; }
.assure p::before { content: "✓"; position: absolute; left: 0; color: var(--z3); font-weight: 700; }
.assure strong { color: var(--text); }

/* ---------- Product illustrations (inc/mocks.php). Base size per frame in cqw, everything inside in em. */
.mock { margin: 0; }
.mock figcaption { color: var(--muted); font-size: .9rem; text-align: center; margin-top: 14px; }
.device { container-type: inline-size; position: relative; }
.device .bezel { position: relative; }
.device.tv .bezel { background: #000; border: 1px solid #252c35; border-radius: 1.4cqw; padding: 1.1cqw; box-shadow: 0 8px 16px rgba(0,0,0,.35); }
.device.tablet .bezel { background: #1a2028; border: 1px solid #2b333d; border-radius: 6cqw; padding: 4cqw; box-shadow: 0 6px 14px rgba(0,0,0,.35); }
.device.phone .bezel { background: #1a2028; border: 1px solid #2b333d; border-radius: 13cqw; padding: 4.5cqw; box-shadow: 0 6px 14px rgba(0,0,0,.35); }
.device.browser .bezel { background: #1a2028; border: 1px solid #2b333d; border-radius: 1.2cqw; padding: 2.4cqw .8cqw .8cqw; box-shadow: 0 8px 16px rgba(0,0,0,.3); }
.device.browser .dots { position: absolute; top: .8cqw; left: 1.2cqw; width: .9cqw; height: .9cqw; border-radius: 50%; background: #ef4b4b; box-shadow: 1.4cqw 0 #f2c230, 2.8cqw 0 #2fbf71; }
.device.solo.tablet { max-width: 440px; }
.device.solo.phone { max-width: 260px; }

.m-screen { font-size: 1.55cqw; aspect-ratio: 16 / 9; background: #05080b; border-radius: .6em; padding: .9em; color: #e9e8e4; display: grid; grid-template-rows: auto 1fr; gap: .7em; line-height: 1.25; }
.m-screen.m-stations { grid-template-rows: auto auto 1fr auto; }
.m-bar { display: flex; justify-content: space-between; align-items: baseline; gap: 1em; color: var(--muted); font-size: .9em; }
.m-bar b { color: #e9e8e4; font-size: 1.5em; font-variant-numeric: tabular-nums; }
.m-brand { letter-spacing: .12em; color: #cfd8e3; }
.m-tiles { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; gap: .55em; }
.m-tile { position: relative; border-radius: .55em; padding: .6em .75em .7em; min-height: 5.6em; display: flex; flex-direction: column; justify-content: space-between; }
.m-tile.z1 { background: var(--z1); } .m-tile.z2 { background: var(--z2); } .m-tile.z3 { background: var(--z3); } .m-tile.z4 { background: var(--z4); color: #1d1600; } .m-tile.z5 { background: var(--z5); }
.m-who { font-size: .85em; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 1.6em; }
.m-pct { font-size: 2.6em; font-weight: 750; line-height: 1; font-variant-numeric: tabular-nums; }
.m-pct small { font-size: .42em; opacity: .8; }
.m-bpm { font-size: .75em; opacity: .85; }
.m-mark { position: absolute; top: .45em; right: .45em; width: 1.45em; height: 1.45em; border-radius: 50%; background: rgba(0,0,0,.35); display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: .85em; color: #e9e8e4; }
.m-mark.warn { background: var(--amber); color: #201400; box-shadow: 0 0 0 .2em rgba(245,165,36,.35); }

.m-phase { position: relative; display: flex; justify-content: space-between; align-items: center; background: #14181d; border-left: .25em solid var(--accent); border-radius: .5em; padding: .7em 1em 1em; overflow: hidden; }
.m-phase b { display: block; font-size: 1.5em; letter-spacing: .02em; }
.m-phase span { color: var(--muted); font-size: .8em; }
.m-phase .m-big { font-size: 3em; font-variant-numeric: tabular-nums; }
.m-phase > i { position: absolute; left: 1em; right: 1em; bottom: .45em; height: .22em; border-radius: 1em; background: #2a3038; }
.m-phase > i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p); background: var(--accent); border-radius: 1em; }
.m-st-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .55em; }
.m-st { background: #0d1116; border: 1px solid #1c232c; border-radius: .55em; padding: .6em .8em .7em; display: flex; flex-direction: column; justify-content: space-between; min-height: 7.5em; color: #9fdcf4; }
.m-st svg { width: 5.5em; height: auto; align-self: center; margin-top: .4em; }
.m-st span { color: #e9e8e4; font-weight: 700; font-size: .95em; text-transform: uppercase; display: flex; align-items: center; gap: .5em; }
.m-st span i { font-style: normal; width: 1.6em; height: 1.6em; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-size: .85em; flex: 0 0 auto; }
.m-strip { display: flex; flex-wrap: wrap; gap: .35em; }
.m-strip span { font-size: .75em; padding: .3em .7em; border-radius: 1em; background: var(--z3); }
.m-strip span.z4 { background: var(--z4); color: #1d1600; } .m-strip span.z5 { background: var(--z5); } .m-strip span.z2 { background: var(--z2); }

.m-tablet { font-size: 4.1cqw; background: var(--surface); border-radius: 3cqw; padding: 1em; color: var(--text); line-height: 1.3; }
.m-tab-top { display: flex; justify-content: space-between; align-items: center; gap: .6em; font-size: .85em; }
.m-ctl { display: flex; gap: .3em; }
.m-ctl i { font-style: normal; font-size: .8em; padding: .3em .6em; border: 1px solid var(--line); border-radius: .5em; color: var(--muted); }
.m-tablet h5 { margin: 1em 0 .3em; font-size: .68em; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.m-row { display: flex; gap: .6em; padding: .5em 0; border-top: 1px solid var(--line); }
.m-row:first-of-type { border-top: 0; }
.m-dot { flex: 0 0 .55em; height: .55em; border-radius: 50%; background: var(--amber); margin-top: .35em; }
.m-dot.under { background: var(--z2); }
.m-row b { display: block; font-size: .9em; }
.m-row span { color: var(--muted); font-size: .78em; }
.m-chips { display: flex; flex-wrap: wrap; gap: .35em; }
.m-chip { font-size: .72em; padding: .35em .65em; border-radius: 1em; border: 1px solid; color: var(--muted); }
.m-chip b { color: var(--text); font-weight: 600; }
.m-chip.new { border-color: var(--accent); } .m-chip.back { border-color: var(--z3); } .m-chip.mile { border-color: var(--z4); } .m-chip.heavy { border-color: var(--z5); }

.m-phone { font-size: 6.4cqw; background: #0e1319; border-radius: 9cqw; padding: 1.1em .9em; color: var(--text); display: grid; gap: .55em; line-height: 1.25; }
.m-ph-brand { font-size: .6em; letter-spacing: .14em; color: var(--accent); text-align: center; }
.m-ph-title b { display: block; font-size: 1.3em; }
.m-ph-title span { color: var(--muted); font-size: .72em; }
.m-ph-stat { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: .45em; font-size: .78em; color: var(--muted); }
.m-ph-stat b { color: var(--text); font-size: 1.35em; font-variant-numeric: tabular-nums; }
.m-ph-zones { display: flex; height: .55em; border-radius: 1em; overflow: hidden; gap: 2px; }
.m-ph-zones i, .m-zbar i { display: block; }
.m-ph-zones .z1, .m-zbar .z1 { background: var(--z1); } .m-ph-zones .z2, .m-zbar .z2 { background: var(--z2); } .m-ph-zones .z3, .m-zbar .z3 { background: var(--z3); } .m-ph-zones .z4, .m-zbar .z4 { background: var(--z4); } .m-ph-zones .z5, .m-zbar .z5 { background: var(--z5); }
.m-ph-spark { width: 100%; height: 2.4em; }
.m-ph-spark path, .m-console svg path { fill: none; stroke: var(--accent); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.m-ph-hist span { display: block; font-size: .62em; color: var(--muted); margin-bottom: .3em; }
.m-ph-hist div { display: flex; align-items: flex-end; gap: .25em; height: 2.6em; }
.m-ph-hist i { flex: 1; background: rgba(98,174,208,.55); border-radius: .2em .2em 0 0; }

.m-console { font-size: 1.25cqw; display: grid; grid-template-columns: 17% 1fr; background: #0d1116; border-radius: .6em; overflow: hidden; color: var(--text); line-height: 1.3; }
.m-side { background: #0a0d11; padding: 1.2em .9em; display: grid; gap: .5em; align-content: start; border-right: 1px solid var(--line); }
.m-side b { font-size: .75em; letter-spacing: .14em; color: var(--accent); margin-bottom: .6em; }
.m-side span { font-size: .9em; padding: .35em .6em; border-radius: .4em; color: var(--muted); }
.m-side span.on { background: #162330; color: var(--accent); }
.m-main { padding: 1.2em 1.4em; }
.m-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: .8em; }
.m-h b { font-size: 1.15em; }
.m-h span { font-size: .8em; border: 1px solid var(--line); padding: .3em .7em; border-radius: .4em; color: var(--muted); }
.m-sum { background: rgba(98,174,208,.08); border-radius: .5em; padding: .6em .9em; margin-bottom: .6em; }
.m-sum p { margin: .15em 0; font-size: .88em; }
.m-console table { width: 100%; border-collapse: collapse; font-size: .9em; }
.m-console th { text-align: left; color: var(--muted); font-weight: 500; font-size: .85em; padding: .5em .4em; border-bottom: 1px solid var(--line); }
.m-console td { padding: .55em .4em; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.m-console td svg { width: 9em; height: 1.8em; display: block; }
.m-zbar { display: flex; width: 10em; height: .55em; border-radius: 1em; overflow: hidden; gap: 1px; }

/* Hero composite: TV with tablet and phone in front of it. */
.mock-hero { position: relative; aspect-ratio: 16 / 9.3; margin-top: clamp(28px, 5vw, 48px); }
.mock-hero .device.tv { position: absolute; top: 0; right: 3%; width: 84%; }
.mock-hero .device.tablet { position: absolute; left: 0; top: 30%; width: 33%; }
.mock-hero .device.phone { position: absolute; right: 0; top: 36%; width: 17%; }
@media (max-width: 700px) {
	.mock-hero { aspect-ratio: 1 / 1.05; }
	.mock-hero .device.tv { width: 100%; right: 0; }
	.mock-hero .device.tablet { width: 58%; top: 40%; }
	.mock-hero .device.phone { width: 32%; top: 47%; }
}

/* Studio scene illustration */
.scene { margin: 1.6em auto 0; max-width: var(--wrap); }
.scene img { display: block; width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--line); }

/* ---------- Page blocks */
/* Feature rows: copy and visual side by side, alternating. */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 64px); align-items: center; max-width: var(--wrap); margin: clamp(56px, 9vw, 112px) auto 0; }
.feature.reverse { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.feature.reverse > .copy { order: 2; }
.feature .copy > *:last-child { margin-bottom: 0; }
.feature .copy h2 { margin-top: 0; }
.feature .copy ul { color: var(--muted); }
.feature .copy a { font-weight: 600; text-decoration: none; }
.feature .mock .device.tablet, .feature .mock .device.phone { margin: 0 auto; }
@media (max-width: 820px) { .feature, .feature.reverse { grid-template-columns: 1fr; } .feature.reverse > .copy { order: 0; } }

/* Hero buttons and microcopy */
.hero .wp-block-buttons { margin-top: 1.4em; }
.wp-block-buttons > .wp-block-button + .wp-block-button .wp-block-button__link { background: transparent; color: var(--text); border: 1px solid #3a4756; }
.wp-block-buttons > .wp-block-button + .wp-block-button .wp-block-button__link:hover { border-color: var(--accent); color: var(--accent); }
.microcopy { color: var(--muted); font-size: .9rem; margin-top: 12px; }
.microcopy p { margin: 0; }

/* Compatibility strip */
.compat { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin: clamp(40px, 6vw, 64px) auto 0; padding: 18px 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
.compat p { margin: 0; }
.compat p:first-child { color: var(--text); font-weight: 600; width: 100%; text-align: center; }
.compat p:not(:first-child)::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 10px; vertical-align: middle; }

/* FAQ (core details block) */
.wp-block-details { border-top: 1px solid var(--line); padding: 4px 0; max-width: var(--read); }
.wp-block-details:last-of-type { border-bottom: 1px solid var(--line); }
.wp-block-details summary { cursor: pointer; list-style: none; padding: 16px 36px 16px 0; font-weight: 600; font-size: 1.05rem; position: relative; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 1.5rem; color: var(--accent); transition: transform .2s; }
.wp-block-details[open] summary::after { transform: rotate(45deg); }
.wp-block-details p { color: var(--muted); margin: 0 0 16px; }
.section > .wp-block-details { margin-left: 0; }

/* Mobile sticky CTA */
.sticky-cta { display: none; }
@media (max-width: 760px) {
	.sticky-cta { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; justify-content: center; align-items: center; gap: 8px; padding: 14px 18px; border-radius: 999px; background: var(--accent); color: var(--accent-ink) !important; font-weight: 700; text-decoration: none; box-shadow: 0 10px 30px rgba(0,0,0,.5); transition: transform .25s, opacity .25s; }
	.sticky-cta small { font-weight: 500; opacity: .8; }
	.sticky-cta.hide { transform: translateY(140%); opacity: 0; }
	body { padding-bottom: 76px; }
}

/* Price teaser cards */
.price-cards .card h3 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin-bottom: .2em; }
.price-cards .card p { margin-bottom: 0; }
.section > .wp-block-buttons { margin-top: 1.6em; }
.section > .mock, .content > .mock { margin-top: 2em; }
.section > .mock .device.tablet, .section > .mock .device.phone, .content > .mock .device.tablet { margin: 0 auto; }

/* Card grids without orphans: 3 columns by default, 4 when there are exactly four cards. */
.cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
@media (min-width: 1000px) { .cards:has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 640px) and (max-width: 999px) { .cards:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, 1fr); } }
/* Standalone wide mocks stay secondary to the text around them. */
.section > .mock:has(.device.tv), .section > .mock:has(.device.browser), .content > .mock:has(.device.browser) { max-width: 880px; }

/* Closing CTA band added by page.php */
.cta-band { margin: 0 20px clamp(64px, 10vw, 112px); }
.cta-band .cta { max-width: var(--wrap); margin: 0 auto; }

/* Pilates / video screen */
.m-screen.m-video { grid-template-rows: auto auto 1fr; }
.m-cue { display: block; color: #d6d5d1 !important; font-size: .95em !important; margin: .15em 0; }
.m-vid { position: relative; border-radius: .55em; overflow: hidden; background: #151c25; }
.m-video-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.m-play { position: absolute; left: .8em; bottom: .7em; font-size: .8em; color: #e9e8e4; background: rgba(0,0,0,.45); padding: .3em .6em; border-radius: .4em; }
/* Cycling */
.m-cy-row { display: grid; grid-template-columns: 1.35fr 1fr; gap: .55em; min-height: 0; }
.m-road { width: 100%; height: 100%; border-radius: .55em; display: block; }
.m-cy-tiles { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: .45em; }
.m-cy-tiles .m-tile { min-height: 0; }
.m-cy-tiles .m-pct { font-size: 1.9em; }
.m-cy-tiles .m-pct small { font-size: .45em; }
.m-screen.m-cyc { grid-template-rows: auto auto 1fr; }
/* Boxing */
.m-screen.m-box { grid-template-rows: auto 1fr auto; }
.m-bx-main { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #14181d; border-radius: .55em; border-top: .25em solid var(--z5); }
.m-bx-round { letter-spacing: .14em; color: var(--muted); font-size: 1em; }
.m-bx-time { font-size: 7em; line-height: 1; font-variant-numeric: tabular-nums; }
.m-bx-cue { font-size: 1.5em; font-weight: 700; color: var(--amber); margin-top: .2em; }
.m-bx-bar { position: absolute; left: 1em; right: 1em; bottom: .7em; height: .25em; background: #2a3038; border-radius: 1em; }
.m-bx-bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p); background: var(--z5); border-radius: 1em; }
/* Media library */
.m-up { background: var(--accent) !important; color: var(--accent-ink) !important; border: 0 !important; font-weight: 700; }
.m-lib { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8em; }
.m-lib-item i { display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: .45em; font-style: normal; color: rgba(255,255,255,.8); font-size: 1.3em; background: linear-gradient(135deg, hsl(var(--h) 35% 32%), hsl(var(--h) 30% 16%)); }
.m-lib-item em { font-style: normal; font-size: .6em; background: rgba(0,0,0,.5); padding: .3em .6em; border-radius: .3em; color: var(--amber); }
.m-lib-item b { display: block; font-size: .9em; margin-top: .4em; }
.m-lib-item span { font-size: .78em; color: var(--muted); }
/* Coach remote */
.m-live { font-size: .7em; color: #f25f5f; letter-spacing: .08em; }
.m-now { position: relative; background: #14181d; border-left: .2em solid var(--accent); border-radius: .4em; padding: .6em .8em 1em; margin: .8em 0 .5em; display: grid; grid-template-columns: 1fr auto; }
.m-now span { grid-column: 1 / -1; font-size: .65em; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.m-now b { font-size: 1.3em; }
.m-now em { font-style: normal; font-size: 1.3em; font-variant-numeric: tabular-nums; }
.m-now i { position: absolute; left: .8em; right: .8em; bottom: .4em; height: .18em; background: #2a3038; border-radius: 1em; }
.m-now i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p); background: var(--accent); border-radius: 1em; }
.m-seg { display: flex; justify-content: space-between; padding: .4em .2em; border-top: 1px solid var(--line); font-size: .85em; color: var(--muted); }
.m-seg em { font-style: normal; font-variant-numeric: tabular-nums; }
.m-seg.done { opacity: .45; text-decoration: line-through; }
.m-seg.cur { color: var(--accent); }
.m-btns { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: .4em; margin-top: .7em; }
.m-btns i { font-style: normal; text-align: center; font-size: .8em; padding: .6em .3em; border-radius: .5em; background: #1c2530; border: 1px solid var(--line); }
.m-btns i:first-child { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 700; }

/* Header dropdown: studio types */
.site-nav .has-sub { position: relative; }
.site-nav .sub-toggle { background: none; border: 0; padding: 0; font: inherit; font-size: .95rem; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.site-nav .sub-toggle::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.site-nav .sub-toggle:hover, .has-sub.current .sub-toggle { color: var(--text); }
.site-nav .sub { display: none; position: absolute; top: calc(100% + 14px); left: -16px; min-width: 240px; flex-direction: column; gap: 0; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 24px rgba(0,0,0,.4); }
.site-nav .sub a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--text); font-size: .95rem; }
.site-nav .sub a:hover { background: var(--surface-2); color: var(--accent); }
.site-nav .sub a[aria-current="page"] { box-shadow: none; color: var(--accent); }
.has-sub.open .sub, .has-sub:focus-within .sub { display: flex; }
@media (hover: hover) and (min-width: 861px) { .has-sub:hover .sub { display: flex; } .has-sub::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 16px; } }
@media (max-width: 860px) {
	.site-nav .has-sub { border-bottom: 1px solid var(--line); }
	.site-nav .sub-toggle { display: none; }
	.site-nav .sub { display: flex; position: static; box-shadow: none; border: 0; background: none; padding: 0 0 8px; min-width: 0; }
	.site-nav .sub a { padding: 10px 0; border-bottom: 0 !important; }
}

/* Studio-type picker: the whole card is the link */
.formats-pick .card { position: relative; transition: border-color .2s, transform .2s; }
.formats-pick .card:hover { border-color: rgba(98,174,208,.6); transform: translateY(-2px); }
.formats-pick .card p:last-child a { font-weight: 600; text-decoration: none; }
.formats-pick .card p:last-child a::after { content: ""; position: absolute; inset: 0; }
.formats-pick .card .badge { margin-left: 0; }
.content > .mock, .section > .mock { margin-left: auto; margin-right: auto; }
.content > .mock:has(.device.tv) { max-width: 880px; }

/* Personalisation by studio type: .only-<seg> shows for that segment, .only-default when none is chosen, .except-<seg> hides. */
.only { display: none; }
html:not([data-seg]) .only.only-default { display: block; }
html[data-seg="pilates"] .only.only-pilates { display: block; }
html[data-seg="pilates"] .except-pilates { display: none !important; }
html[data-seg="pilates"] .formats-pick .pick-pilates { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
html[data-seg="cycling"] .only.only-cycling { display: block; }
html[data-seg="cycling"] .except-cycling { display: none !important; }
html[data-seg="cycling"] .formats-pick .pick-cycling { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
html[data-seg="boxing"] .only.only-boxing { display: block; }
html[data-seg="boxing"] .except-boxing { display: none !important; }
html[data-seg="boxing"] .formats-pick .pick-boxing { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
html[data-seg="hiit"] .only.only-hiit { display: block; }
html[data-seg="hiit"] .except-hiit { display: none !important; }
html[data-seg="hiit"] .formats-pick .pick-hiit { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.hero .only > p:not(.kicker) { font-size: clamp(1.1rem, 2.1vw, 1.35rem); color: var(--muted); max-width: 44ch; }
.hero .only h1 { font-size: clamp(2.4rem, 6.4vw, 4.6rem); max-width: 15ch; }
.hero .only h1 em { font-style: normal; color: var(--accent-text); }
.hero .only > .kicker { margin-bottom: .8em; }
.seg-note { color: var(--muted); }

/* First-visit studio picker: a bottom sheet that never blocks the page. */
.seg-sheet { position: fixed; left: 50%; bottom: 16px; z-index: 70; width: min(760px, calc(100% - 24px)); transform: translate(-50%, 140%); transition: transform .25s ease; background: var(--surface); border: 1px solid rgba(98,174,208,.5); border-radius: 16px; padding: 16px 18px; box-shadow: 0 10px 28px rgba(0,0,0,.45); }
.seg-sheet.in { transform: translate(-50%, 0); }
.seg-sheet p { margin: 0 0 12px; color: var(--muted); }
.seg-sheet p b { color: var(--text); margin-right: 6px; }
.seg-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.seg-opts button { font: inherit; font-size: .95rem; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; cursor: pointer; }
.seg-opts button:hover { border-color: var(--accent); color: var(--accent); }
.seg-opts .seg-skip { background: none; border-color: transparent; color: var(--muted); }
body.sheet-open .sticky-cta { transform: translateY(140%); opacity: 0; }
@media (prefers-reduced-motion: reduce) { .seg-sheet { transition: none; } }
html[data-seg="pilates"] .feature.only-pilates, html[data-seg="cycling"] .feature.only-cycling, html[data-seg="boxing"] .feature.only-boxing, html[data-seg="hiit"] .feature.only-hiit, html:not([data-seg]) .feature.only-default { display: grid; }
@media (max-width: 640px) {
	.seg-sheet { padding: 12px; bottom: 10px; border-radius: 14px; }
	.seg-sheet p { margin-bottom: 8px; font-size: .9rem; padding-right: 92px; }
	.seg-sheet p span { display: none; }
	.seg-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
	.seg-opts button { padding: 8px 10px; font-size: .88rem; line-height: 1.2; }
	.seg-opts .seg-skip { position: absolute; top: 6px; right: 6px; padding: 8px 10px; font-size: .82rem; }
}

@media (max-width: 860px) { .site-nav { top: 100%; } }
@media (prefers-reduced-motion: reduce) { html.seg-changed main { animation: none; } }

.m-tabs { display: flex; gap: .4em; margin-bottom: .8em; }
.m-tabs span { font-size: .78em; padding: .3em .8em; border-radius: 1em; border: 1px solid var(--line); color: var(--muted); }
.m-tabs span.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* Carriage mocks: lines A/B/C */
:root { --ln-a: #8f9196; --ln-b: #d9b64a; --ln-c: #62aed0; }
.m-lines { display: flex; flex-wrap: wrap; gap: .35em; }
.m-lines .ln { font-size: .74em; padding: .35em .7em; border-radius: 1em; border: 1px solid; color: var(--muted); }
.m-lines .ln b { color: var(--text); }
.ln-a { border-color: var(--ln-a); } .ln-b { border-color: var(--ln-b); } .ln-c { border-color: var(--ln-c); }
.m-brow { display: grid; grid-template-columns: 2.2em 4.5em .9em 1fr; align-items: center; gap: .4em; padding: .4em 0; border-top: 1px solid var(--line); font-size: .82em; }
.m-brow i { font-style: normal; color: var(--muted); font-variant-numeric: tabular-nums; }
.m-brow em { font-style: normal; color: var(--muted); font-size: .92em; }
.ln-dot { width: .7em; height: .7em; border-radius: 50%; }
.ln-dot.ln-a { background: var(--ln-a); } .ln-dot.ln-b { background: var(--ln-b); } .ln-dot.ln-c { background: var(--ln-c); }
.m-next { margin-top: .7em; background: #14181d; border-left: .2em solid var(--ln-b); border-radius: .4em; padding: .5em .7em; font-size: .8em; }
.m-next span { display: block; font-size: .8em; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.m-me-ref { display: flex; justify-content: space-between; align-items: center; background: #14181d; border-radius: .6em; padding: .5em .7em; font-size: .78em; color: var(--muted); }
.m-me-ref b { font-size: 1.8em; color: var(--text); }
.m-me-q { margin: .2em 0 0; font-size: .8em; color: var(--text); }
.m-me-opt { display: block; font-size: .74em; padding: .5em .7em; border-radius: .6em; border: 1px solid var(--line); color: var(--muted); }
.m-me-opt.on { border-color: var(--accent); color: var(--text); background: rgba(98,174,208,.12); }
.m-me-after span { display: block; font-size: .62em; color: var(--muted); margin: .3em 0; letter-spacing: .1em; text-transform: uppercase; }
.m-me-after div { display: grid; grid-template-columns: repeat(3, 1fr); gap: .3em; }
.m-me-after i { font-style: normal; text-align: center; font-size: .7em; padding: .45em .2em; border-radius: .5em; background: #1c2530; border: 1px solid var(--line); }
/* Tablet + phone side by side */
.mock-duo { position: relative; max-width: 760px; margin: clamp(28px, 5vw, 48px) auto 0; padding-right: 22%; }
.mock-duo .device.tablet { width: 100%; }
.mock-duo .device.phone { position: absolute; right: 0; bottom: -6%; width: 30%; }
@media (max-width: 640px) { .mock-duo { padding-right: 18%; } .mock-duo .device.phone { width: 36%; } }

.m-when { font-size: .7em; color: var(--muted); }

/* Platform diagram */
.platform { max-width: var(--wrap); margin: 1.6em auto 0; display: grid; gap: 10px; }
.pf-layer { display: grid; grid-template-columns: 150px 1fr; gap: 14px; align-items: stretch; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; background: var(--surface); }
.pf-core { border-color: rgba(98,174,208,.55); background: linear-gradient(135deg, rgba(98,174,208,.10), rgba(98,174,208,.03)); }
.pf-studio { background: none; border-style: dashed; }
.pf-name { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); align-self: center; }
.pf-core .pf-name { color: var(--accent-text); }
.pf-items { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.pf-item { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.pf-item b { display: block; color: var(--heading); font-size: .95rem; font-weight: 600; }
.pf-item span { display: block; color: var(--muted); font-size: .82rem; line-height: 1.4; margin-top: 2px; }
.pf-item.main { border-color: var(--accent); }
.pf-item.wide { grid-column: 1 / -1; background: none; border: 0; padding: 0; }
@media (max-width: 640px) { .pf-layer { grid-template-columns: 1fr; gap: 8px; } }
@media (min-width: 900px) { .pf-items { grid-template-columns: repeat(4, 1fr); } .pf-item.wide { grid-column: 1 / -1; } }

/* Product sub-navigation (Carriage pages) */
.product-nav { border-bottom: 1px solid var(--line); background: var(--surface); }
.product-nav .wrap { display: flex; align-items: center; gap: 6px 18px; overflow-x: auto; scrollbar-width: none; min-height: 46px; white-space: nowrap; }
.product-nav .wrap::-webkit-scrollbar { display: none; }
.product-nav b { color: var(--heading); font-weight: 650; margin-right: 6px; }
.product-nav a { color: var(--muted); text-decoration: none; font-size: .92rem; padding: 12px 0; }
.product-nav a:hover { color: var(--text); }
.product-nav a[aria-current="page"] { color: var(--heading); box-shadow: inset 0 -2px 0 var(--accent); }

.footer-product b { color: var(--heading); font-weight: 650; }
.footer-product { margin-top: -4px; }

/* Signaller diagram */
.sgl { max-width: var(--wrap); margin: 1.6em auto 0; display: grid; grid-template-columns: 1fr 28px 1.15fr 28px 1fr; gap: 10px; align-items: stretch; }
.sgl-col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.sgl-core { border-color: var(--accent); background: linear-gradient(135deg, rgba(98,174,208,.12), rgba(98,174,208,.03)); }
.sgl-h { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.sgl-core .sgl-h { color: var(--accent-text); font-size: .9rem; letter-spacing: .08em; }
.sgl-chip { font-size: .88rem; color: var(--text); padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); }
.sgl-level, .sgl-who { padding: 8px 10px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); }
.sgl-level b, .sgl-who b { display: block; color: var(--heading); font-size: .95rem; font-weight: 600; }
.sgl-level span, .sgl-who span { display: block; color: var(--muted); font-size: .84rem; line-height: 1.4; }
.sgl-arrow { position: relative; }
.sgl-arrow::before { content: ""; position: absolute; top: 50%; left: 2px; right: 6px; height: 2px; background: var(--line); }
.sgl-arrow::after { content: ""; position: absolute; top: calc(50% - 5px); right: 2px; border: 6px solid transparent; border-left-color: var(--accent); border-right: 0; }
.sgl-decide { grid-column: 1 / -1; text-align: center; padding: 12px 16px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--heading); }
@media (max-width: 820px) {
	.sgl { grid-template-columns: 1fr; }
	.sgl-arrow { height: 22px; }
	.sgl-arrow::before { top: 0; bottom: 4px; left: 50%; right: auto; width: 2px; height: auto; }
	.sgl-arrow::after { top: auto; bottom: 0; left: calc(50% - 5px); right: auto; border: 6px solid transparent; border-top-color: var(--accent); border-bottom: 0; }
}

/* Indoor cycling: personal range tiles, watch, ride card, owner digest */
.m-rt-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; grid-auto-rows: 1fr; gap: .45em; }
.m-rt { background: #121a22; border-radius: .55em; padding: .5em .6em .55em; display: flex; flex-direction: column; justify-content: space-between; gap: .3em; border-top: .2em solid var(--accent); }
.m-rt-n { font-size: .8em; color: var(--muted); font-variant-numeric: tabular-nums; }
.m-rt b { font-size: 1.7em; line-height: 1; font-variant-numeric: tabular-nums; }
.m-rt b small { font-size: .42em; color: var(--muted); font-weight: 400; }
.m-rt-bar { position: relative; height: .45em; border-radius: 1em; background: #26303a; }
.m-rt-bar i { position: absolute; top: 0; bottom: 0; border-radius: 1em; background: rgba(98,174,208,.55); }
.m-rt-bar u { position: absolute; top: -.25em; width: .3em; height: .95em; margin-left: -.15em; border-radius: .2em; background: #e9e8e4; }
.m-rt em { font-style: normal; font-size: .72em; color: var(--accent); }
.m-rt.st-ease, .m-rt.st-seat { border-top-color: #d9b64a; }
.m-rt.st-ease em, .m-rt.st-seat em { color: #d9b64a; }
.device.watch { max-width: 200px; }
.device.watch .bezel { background: #1a2028; border: 1px solid #2b333d; border-radius: 26cqw; padding: 6cqw; box-shadow: 0 6px 14px rgba(0,0,0,.35); }
.device.watch::before, .device.watch::after { content: ""; position: absolute; left: 50%; width: 116%; height: 116%; translate: -50% -50%; top: 50%; border-radius: 50%; border: 2px solid rgba(98,174,208,.28); border-left-color: transparent; border-right-color: transparent; pointer-events: none; }
.device.watch::after { display: none; width: 132%; height: 132%; border-color: rgba(98,174,208,.14); border-left-color: transparent; border-right-color: transparent; }
.m-watch { font-size: 9cqw; aspect-ratio: 1; background: #05080b; border-radius: 20cqw; color: #e9e8e4; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .15em; line-height: 1.15; padding: .6em; }
.m-wa-time { font-size: .6em; color: var(--muted); }
.m-watch b { font-size: 2.3em; line-height: 1; color: #d9b64a; font-variant-numeric: tabular-nums; }
.m-wa-t { font-size: .78em; }
.m-watch em { font-style: normal; font-size: .58em; color: var(--muted); }
.watch-duo { overflow-x: clip; overflow-clip-margin: 0; }
.watch-duo .device.watch { position: absolute; right: 3%; bottom: -8%; width: 26%; }
@media (max-width: 640px) { .mock-duo.watch-duo { padding-right: 0; } .watch-duo .device.watch { position: relative; right: auto; bottom: auto; width: 42%; margin: -6% 6% 0 auto; } }
.m-card-route { width: 100%; height: 2.2em; }
.m-card-big b { display: block; font-size: 2.2em; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.m-card-big span { font-size: .72em; color: var(--muted); }
.m-card-did { margin: 0; font-size: 1em; color: var(--heading); }
.m-card-tip { margin: 0; font-size: .7em; color: var(--muted); }
.m-card-btn { display: block; text-align: center; font-size: .72em; padding: .6em; border-radius: .6em; background: var(--accent); color: var(--accent-ink); }
.m-digest { font-size: 1.35cqw; background: #0d1116; border-radius: .6em; padding: 1.4em 1.6em; color: var(--text); line-height: 1.3; }
.m-dg-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7em; margin-bottom: 1em; }
.m-dg-stats div { background: #141a21; border-radius: .5em; padding: .8em .9em; display: grid; gap: .25em; }
.m-dg-stats span { font-size: .8em; color: var(--muted); }
.m-dg-stats b { font-size: 2em; color: var(--heading); font-variant-numeric: tabular-nums; }
.m-dg-stats em { font-style: normal; font-size: .78em; color: var(--accent); }
.m-dg-row { margin: 0; padding: .55em 0; border-top: 1px solid var(--line); font-size: .9em; }
.m-dg-row i { font-style: normal; display: inline-block; min-width: 9em; color: var(--muted); }

/* Boxing & martial arts: round timer with bag tiles, sparring pairs, path to sparring */
.m-ro-row { display: grid; grid-template-columns: 1.1fr 1fr; gap: .55em; min-height: 0; }
.m-bx-main.rest { border-top-color: var(--accent); }
.m-bx-main.rest .m-bx-bar::after { background: var(--accent); }
.m-rounds .m-bx-time { font-size: 6em; }
.m-rounds .m-bx-cue { font-size: 1.1em; color: var(--text); font-weight: 500; }
.m-screen.m-rounds { grid-template-rows: auto 1fr; }
.m-ro-tiles { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: .45em; }
.m-ro { background: #121a22; border-radius: .55em; padding: .5em .65em; display: grid; grid-template-columns: 1fr auto; align-content: space-between; gap: .25em .5em; }
.m-ro b { font-size: 1.35em; font-variant-numeric: tabular-nums; text-align: right; }
.m-ro .m-ro-z { grid-column: 1 / -1; height: .35em; border-radius: 1em; }
.m-ro-z.z2 { background: var(--z2); } .m-ro-z.z3 { background: var(--z3); } .m-ro-z.z4 { background: var(--z4); } .m-ro-z.z5 { background: var(--z5); }
.m-ro em { grid-column: 1 / -1; font-style: normal; font-size: .72em; color: var(--accent); }
.m-ro.st-slow { outline: .15em solid #d9b64a; }
.m-ro.st-slow em { color: #d9b64a; }
.m-pair { display: grid; grid-template-columns: auto auto auto 1.2em 1fr; align-items: center; gap: .45em; padding: .45em 0; border-top: 1px solid var(--line); font-size: .82em; }
.m-pair span { color: var(--muted); }
.m-pair i { font-style: normal; text-align: center; font-weight: 700; color: var(--accent); }
.m-pair.warn i { color: #d9b64a; }
.m-pair em { font-style: normal; color: var(--muted); font-size: .92em; }
.m-pair.warn em { color: #d9b64a; }
.m-pairs .m-brow { grid-template-columns: 0 5.5em .9em 1fr; }
.m-step { margin: 0; display: flex; align-items: center; gap: .5em; font-size: .78em; color: var(--muted); }
.m-step i { font-style: normal; width: 1.3em; height: 1.3em; border-radius: 50%; border: 1px solid var(--line); display: inline-grid; place-items: center; font-size: .8em; flex: none; }
.m-step.done { color: var(--text); }
.m-step.done i { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* Functional & HIIT: station tiles with each person's version */
.m-bx-main.work { border-top-color: var(--z3); }
.m-bx-main.work .m-bx-bar::after { background: var(--z3); }
.m-hv b { text-align: left; font-size: 1.15em; }
.m-hv .m-rt-n { grid-column: 1 / -1; }
.m-hv b { grid-column: 1 / -1; }
.m-hv-v { grid-column: 1 / -1; font-size: .78em; color: var(--text); }
.m-ro.st-slow, .m-ro.st-easy { outline: .15em solid #d9b64a; }
.m-ro.st-easy em { color: #d9b64a; }
.m-me-after i.on { border-color: var(--accent); background: rgba(98,174,208,.15); }

/* Menu groups: dropdowns with a one-line description per page; the footer repeats the same groups as columns. */
.site-nav .sub { min-width: 300px; }
.site-nav .sub a { display: grid; gap: 2px; white-space: normal; }
.site-nav .sub a b { font-weight: 500; color: var(--heading); }
.site-nav .sub a span { font-size: .82rem; color: var(--muted); line-height: 1.35; }
.site-nav .sub a:hover b, .site-nav .sub a[aria-current="page"] b { color: var(--accent); }
@media (max-width: 860px) { .site-nav .sub a span { display: none; } .site-nav .sub a b { font-weight: 400; color: var(--text); } }
.footer-grid { display: grid; grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 32px 28px; align-items: start; }
.footer-brand img { width: 112px; }
.footer-brand .footer-note { font-size: .86rem; margin-top: 14px; }
.footer-col h2 { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 6px 0 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-col a { color: var(--text); text-decoration: none; }
.footer-col a:hover { color: var(--accent); }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 860px) {
	.site-nav .has-sub .sub-toggle { display: block; pointer-events: none; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 16px 0 2px; }
	.site-nav .has-sub .sub-toggle::after { display: none; }
	.site-nav > ul > li > a { color: var(--text); }
}
/* Segments added with the Flow and Rowing products */
html[data-seg="flow"] .only.only-flow { display: block; }
html[data-seg="flow"] .except-flow { display: none !important; }
html[data-seg="flow"] .formats-pick .pick-flow { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
html[data-seg="rowing"] .only.only-rowing { display: block; }
html[data-seg="rowing"] .except-rowing { display: none !important; }
html[data-seg="rowing"] .formats-pick .pick-rowing { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
html[data-seg="flow"] .feature.only-flow, html[data-seg="rowing"] .feature.only-rowing { display: grid; }

/* Rowing: crew mode and technique tiles */
.m-crew { position: relative; background: #101820; border-radius: .55em; overflow: hidden; }
.m-crew svg { display: block; width: 100%; height: 100%; }
.m-crew-l { position: absolute; left: .9em; bottom: .7em; font-size: .85em; color: var(--muted); }
.m-crew-n { position: absolute; right: .9em; bottom: .45em; font-size: 2em; color: var(--accent); font-variant-numeric: tabular-nums; }
.m-rt-ratio { font-size: .8em; color: var(--text); font-variant-numeric: tabular-nums; }
.m-rt.st-drag, .m-rt.st-rush, .m-rt.st-easy { border-top-color: #d9b64a; }
.m-rt.st-drag em, .m-rt.st-rush em, .m-rt.st-easy em { color: #d9b64a; }

/* Flow: mat map, poses with tags, before/after */
.m-mats { display: grid; grid-template-columns: repeat(5, 1fr); gap: .35em; margin: .3em 0 .8em; }
.m-mat { position: relative; border: 1px solid var(--line); border-radius: .35em; min-height: 3.2em; padding: .25em .35em; display: flex; flex-direction: column; justify-content: space-between; background: #14181d; }
.m-mat i { font-style: normal; font-size: .62em; color: var(--muted); }
.m-mat em { font-style: normal; font-size: .58em; line-height: 1.15; color: var(--text); }
.m-mat.new { border-color: #d9b64a; } .m-mat.care { border-color: var(--accent); } .m-mat.stage { border-color: #7fb894; }
.m-mat.notouch::after { content: "✋"; position: absolute; top: .15em; right: .25em; font-size: .6em; opacity: .8; }
.m-pose { display: flex; justify-content: space-between; gap: .6em; padding: .35em 0; border-top: 1px solid var(--line); font-size: .78em; }
.m-pose span { color: var(--muted); }
.m-pose.flag b { color: #d9b64a; }
.m-ba-row { display: flex; align-items: center; justify-content: space-around; background: #14181d; border-radius: .6em; padding: .5em; }
.m-ba-row div { text-align: center; }
.m-ba-row span { display: block; font-size: .6em; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.m-ba-row b { font-size: 2em; color: var(--accent); }
.m-ba-row i { font-style: normal; color: var(--muted); }
/* Scrolling: each illustration is laid out and painted on its own, so scrolling past one never touches the rest of the page. */
figure.mock, .scene { contain: layout style; }
.device:not(.watch) .bezel { contain: layout paint; }
.m-screen, .m-tablet, .m-phone, .m-console, .m-digest { contain: layout paint; }

/* Race: weekly load against each person's usual */
.m-load { display: grid; grid-template-columns: 4.5em 1fr; gap: .2em .6em; align-items: center; padding: .4em 0; border-top: 1px solid var(--line); font-size: .8em; }
.m-load-bar { height: .45em; border-radius: 1em; background: #26303a; position: relative; overflow: hidden; }
.m-load-bar::before { content: ""; position: absolute; left: 62.5%; top: 0; bottom: 0; width: 1px; background: var(--muted); }
.m-load-bar i { display: block; height: 100%; border-radius: 1em; background: rgba(98,174,208,.6); }
.m-load em { grid-column: 2; font-style: normal; color: var(--muted); font-size: .92em; }
.m-load.flag b, .m-load.flag em { color: #d9b64a; }
.m-load.flag .m-load-bar i { background: #d9b64a; }
html[data-seg="race"] .only.only-race { display: block; }
html[data-seg="race"] .except-race { display: none !important; }
html[data-seg="race"] .formats-pick .pick-race { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
html[data-seg="race"] .feature.only-race { display: grid; }

/* Card grids follow the number of cards, so no row ends with a lonely card. */
@media (min-width: 720px) { .cards:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .cards:has(> :nth-child(4):last-child), .cards:has(> :nth-child(7):last-child), .cards:has(> :nth-child(8):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 720px) and (max-width: 999px) { .cards:has(> :nth-child(5):last-child) > :last-child, .cards:has(> :nth-child(7):last-child) > :last-child { grid-column: 1 / -1; } }
/* Product sub-navigation on phones: a soft fade shows there is more to scroll. */
@media (max-width: 860px) { .product-nav .wrap { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 32px; } }

/* ---------- Motion. Only opacity and transform, so scrolling stays smooth; nothing moves for people who ask for less motion. */
@media (prefers-reduced-motion: no-preference) {
	/* Logo: fades in, then one soft light sweep across the letters. */
	.brand { position: relative; display: inline-block; animation: rc-logo-in .7s cubic-bezier(.2,.7,.2,1) both; }
	.brand::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, transparent 35%, rgba(201,200,196,.75) 50%, transparent 65%) no-repeat; background-size: 250% 100%; background-position: 150% 0; -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat; animation: rc-logo-sweep 1.4s .5s ease-in-out 1 both; }
	@keyframes rc-logo-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
	@keyframes rc-logo-sweep { from { background-position: 150% 0; } to { background-position: -60% 0; } }

	/* First screen: heading, text and buttons arrive one after another. */
	.hero > *, .page-hero > * { animation: rc-up .7s cubic-bezier(.2,.7,.2,1) both; }
	.hero > :nth-child(2), .page-hero > :nth-child(2) { animation-delay: .08s; }
	.hero > :nth-child(3), .page-hero > :nth-child(3) { animation-delay: .16s; }
	.hero > :nth-child(4), .page-hero > :nth-child(4) { animation-delay: .24s; }
	.hero > :nth-child(n+5) { animation-delay: .32s; }
	@keyframes rc-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

	/* Blocks further down appear as they scroll into view (classes set by site.js). */
	.rc-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 70ms); }
	.rc-reveal.in { opacity: 1; transform: none; }

	/* Small signs of life inside the illustrations. */
	.device.watch::before { animation: rc-buzz 2.4s ease-out infinite; will-change: opacity, scale; }
	@keyframes rc-buzz { 0% { opacity: .9; scale: .92; } 70%, 100% { opacity: 0; scale: 1.12; } }
	.m-live { animation: rc-blink 1.6s steps(2, jump-none) infinite; will-change: opacity; }
	@keyframes rc-blink { 50% { opacity: .35; } }
	.cards > .card.rc-reveal { transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1), border-color .2s; }
}

/* Products menu on desktop: two columns, so every product fits on screen. */
@media (min-width: 861px) {
	.site-nav .sub.wide { min-width: 580px; display: none; grid-template-columns: 1fr 1fr; gap: 2px 8px; }
	.has-sub.open .sub.wide, .has-sub:focus-within .sub.wide { display: grid; }
}
@media (hover: hover) and (min-width: 861px) { .has-sub:hover .sub.wide { display: grid; } }
/* Dropdowns after the first open towards the left, so they never run off the right edge of the screen. */
@media (min-width: 861px) { .site-nav > ul > .has-sub:not(:first-child) .sub { left: auto; right: -16px; } }
/* The wide Products menu hangs from the right edge of the whole navigation, so it fits from 861px up. */
@media (min-width: 861px) {
	.site-nav { position: relative; }
	.site-nav > ul > .has-sub:has(.sub.wide) { position: static; }
	.site-nav .sub.wide { left: auto; right: 0; top: calc(100% + 6px); }
}
/* Desktop dropdowns: the hover bridge belongs to the open panel itself and covers only the gap above it,
   so passing under other menu items never opens Products. */
@media (min-width: 861px) {
	.has-sub::after { content: none !important; }
	.site-nav .sub::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 20px; }
}
