/* MC Fitness Studio Ltd. website. No framework, no web fonts, no third-party anything. */

/* ---------- Theme ---------- */
/* The company palette is the owner-approved MC Fitness Studio identity (brand/README.md):
   Ink #10243B (primary), Bronze #C08A54 (accent on light), Bronze Light #D6A36D (accent on dark), Paper #F4F2EE, White.
   Bronze is only 2.7:1 on Paper, so on light backgrounds it is used for fills (with Ink text on it, 5.2:1) and decoration;
   bronze-coloured text and links use the darker --accent #8A5A2B (5.3:1 on Paper, 4.8:1 on --bg-2).
   Contrast checks for every pair are in the website README. Bridge Battle keeps its own navy, red and gold. */
:root {
  --bg: #F4F2EE;
  --bg-2: #ECE8E1;
  --surface: #FFFFFF;
  --surface-2: #F7F5F1;
  --line: rgba(16, 36, 59, 0.13);
  --text: #10243B;
  --muted: #4B5A6B;
  --accent: #8A5A2B;
  --accent-fill: #C08A54;
  --accent-strong: #C08A54;
  --accent-ink: #10243B;
  --accent-rgb: 192, 138, 84;
  --warm: #10243B;
  --field-border: #7A8492;
  --focus: #8A5A2B;
  --shadow: 0 1px 2px rgba(16, 36, 59, 0.06), 0 12px 32px -12px rgba(16, 36, 59, 0.2);
  --header-bg: rgba(244, 242, 238, 0.86);
  --grid-line: rgba(16, 36, 59, 0.055);
  --orb-a: rgba(192, 138, 84, 0.2);
  --orb-b: rgba(16, 36, 59, 0.1);
  --logo-ink: #10243B;
  --logo-bronze: #C08A54;
  --radius: 18px;
  --radius-sm: 12px;
  --wrap: 1180px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, monospace;
  color-scheme: light;
}

/* Dark: a deep Ink night, Ink itself for cards, Paper text and Bronze Light accents (the colours of mc-logo-white.svg). */
:root[data-theme="dark"] {
  --bg: #0B1A2C;
  --bg-2: #0E2033;
  --surface: #10243B;
  --surface-2: #163050;
  --line: rgba(244, 242, 238, 0.12);
  --text: #F4F2EE;
  --muted: #A9B4C2;
  --accent: #D6A36D;
  --accent-fill: #D6A36D;
  --accent-strong: #D6A36D;
  --accent-ink: #10243B;
  --accent-rgb: 214, 163, 109;
  --warm: #F4F2EE;
  --focus: #D6A36D;
  --field-border: #6C819A;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 18px 40px -18px rgba(0, 0, 0, 0.7);
  --header-bg: rgba(11, 26, 44, 0.82);
  --grid-line: rgba(244, 242, 238, 0.045);
  --orb-a: rgba(214, 163, 109, 0.11);
  --orb-b: rgba(74, 118, 168, 0.2);
  --logo-ink: #FFFFFF;
  --logo-bronze: #D6A36D;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B1A2C;
    --bg-2: #0E2033;
    --surface: #10243B;
    --surface-2: #163050;
    --line: rgba(244, 242, 238, 0.12);
    --text: #F4F2EE;
    --muted: #A9B4C2;
    --accent: #D6A36D;
    --accent-fill: #D6A36D;
    --accent-strong: #D6A36D;
    --accent-ink: #10243B;
    --accent-rgb: 214, 163, 109;
    --warm: #F4F2EE;
    --focus: #D6A36D;
    --field-border: #6C819A;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 18px 40px -18px rgba(0, 0, 0, 0.7);
    --header-bg: rgba(11, 26, 44, 0.82);
    --grid-line: rgba(244, 242, 238, 0.045);
    --orb-a: rgba(214, 163, 109, 0.11);
    --orb-b: rgba(74, 118, 168, 0.2);
    --logo-ink: #FFFFFF;
    --logo-bronze: #D6A36D;
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
h1, h2, h3, .h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 0.5em; font-weight: 800; }
h1 { font-size: clamp(2.3rem, 1.4rem + 4.4vw, 4.6rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem); }
h3, .h3 { font-size: 1.22rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
h1, h2, h3, .lead, .section-lead, .status-pill, .eyebrow, .foot-note, .demo-caption { text-wrap: balance; }
a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
b, strong { font-weight: 700; }
ul, ol { padding-left: 1.25em; }
li { margin: 0.25em 0; }
address { font-style: normal; }
hr { border: 0; border-top: 1px solid var(--line); }
::selection { background: var(--accent-fill); color: var(--accent-ink); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--text); color: var(--bg); padding: 0.7rem 1rem; border-radius: 10px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.wrap.narrow { max-width: 860px; }
.muted { color: var(--muted); }

/* ---------- Logo ---------- */
/* The approved lockup (brand/final/mc-logo.svg), inlined by build.mjs. Light theme: Ink + Bronze (mc-logo.svg);
   dark theme: White + Bronze Light (mc-logo-white.svg). Never below 160 px wide (brand rule); clear space of at least
   the M's height (44/120 of the logo height) is kept by the header height and the footer margins. */
.brand { display: inline-flex; align-items: center; color: var(--text); text-decoration: none; flex: none; border-radius: 8px; }
.logo { display: block; width: 176px; height: 44px; flex: none; }
.lg-ink { fill: var(--logo-ink); }
.lg-br { fill: var(--logo-bronze); }
.lg-ink-s { stroke: var(--logo-ink); }
.lg-br-s { stroke: var(--logo-bronze); }
.brand-foot .logo { width: 200px; height: 50px; }

/* The approved Bridge Battle logo (brand/bb-approved), inlined by build.mjs. Night Ink text on light, white on dark
   (as logo-white.svg); the Span Red mark is the same in both. Clear space is built into the SVGs.
   Minimum sizes: stacked lockup 120 px wide, one-line wordmark 160 px wide. */
.bb-ink { fill: #0B1324; }
.bb-ink-s { stroke: #0B1324; }
:root[data-theme-effective="dark"] .bb-ink { fill: #FFFFFF; }
:root[data-theme-effective="dark"] .bb-ink-s { stroke: #FFFFFF; }
.bb-logo, .bb-line { display: block; height: auto; }
/* No negative margins: the clear space built into the SVGs is kept clear. */
.bb-h1 { margin: 0 0 0.2rem; line-height: 0; }
.bb-h1 .bb-logo { width: clamp(260px, 30vw, 400px); }
.bb-h2 { margin: 0 0 0.4rem; line-height: 0; }
.bb-h2 .bb-line { width: clamp(240px, 26vw, 340px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 1.25rem; min-height: 78px; }
.site-nav { margin-left: auto; }
.nav-list { list-style: none; display: flex; align-items: center; gap: 0.25rem; margin: 0; padding: 0; flex-wrap: wrap; }
.nav-list > li { margin: 0; }
.nav-list a, .navdrop summary {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.55rem 0.8rem; border-radius: 999px; color: var(--text); text-decoration: none; font-weight: 650; font-size: 0.97rem;
  cursor: pointer; transition: background-color 0.2s, color 0.2s;
}
.nav-list a:hover, .navdrop summary:hover { background: var(--surface-2); }
.nav-list a[aria-current="page"], .navdrop summary[aria-current="page"] { color: var(--accent); background: var(--surface-2); }
.navdrop { position: relative; }
.navdrop summary { list-style: none; }
.navdrop summary::-webkit-details-marker { display: none; }
.chev { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s; }
.navdrop[open] .chev { transform: rotate(180deg); }
.navdrop-list {
  list-style: none; margin: 0; padding: 0.4rem; position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  animation: drop 0.18s ease-out;
}
.navdrop-list li { margin: 0; }
.navdrop-list a { display: flex; border-radius: 10px; width: 100%; }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.header-tools { display: flex; align-items: center; gap: 0.4rem; }
.theme-btn, .menu-btn {
  width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  color: var(--text); display: inline-grid; place-items: center; cursor: pointer; padding: 0;
  transition: transform 0.2s, background-color 0.2s;
}
.theme-btn:hover, .menu-btn:hover { background: var(--surface-2); }
.theme-btn:active { transform: scale(0.94); }
.theme-btn svg { width: 20px; height: 20px; grid-area: 1 / 1; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; transition: transform 0.35s, opacity 0.35s; }
.theme-btn .i-moon { fill: currentColor; stroke: none; }
:root[data-theme-effective="dark"] .theme-btn .i-moon, :root:not([data-theme-effective]) .theme-btn .i-moon { opacity: 0; transform: rotate(-60deg) scale(0.6); }
:root[data-theme-effective="light"] .theme-btn .i-sun { opacity: 0; transform: rotate(60deg) scale(0.6); }
.menu-btn { display: none; }
.theme-btn { display: none; }
.js .theme-btn { display: inline-grid; }
.menu-bars { display: grid; gap: 4px; width: 18px; }
.menu-bars span { height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.25s, opacity 0.25s; }
.menu-btn[aria-expanded="true"] .menu-bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-bars span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .menu-bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 880px) {
  .js .menu-btn { display: inline-grid; }
  .js .site-nav {
    position: fixed; inset: 78px 0 auto 0; margin: 0; padding: 0.75rem clamp(1rem, 4vw, 2rem) 1.25rem;
    background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 24px 48px -12px rgba(10, 22, 38, 0.45);
    max-height: calc(100vh - 78px); overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: transform 0.22s, opacity 0.22s, visibility 0.22s;
  }
  .js .site-nav.open { transform: none; opacity: 1; visibility: visible; transition: transform 0.22s, opacity 0.22s, visibility 0s; }
  .nav-scrim { position: fixed; inset: 78px 0 0 0; z-index: 40; background: rgba(10, 22, 38, 0.5); opacity: 0; transition: opacity 0.22s; }
  .nav-scrim.show { opacity: 1; }
  .menu-open, .menu-open body { overflow: hidden; }
  .js .nav-list { flex-direction: column; align-items: stretch; gap: 0.15rem; }
  .js .nav-list a, .js .navdrop summary { width: 100%; padding: 0.8rem 0.9rem; font-size: 1.05rem; border-radius: 12px; }
  .js .navdrop-list { position: static; box-shadow: none; border: 0; background: transparent; padding: 0 0 0 0.8rem; animation: none; }
  .js .header-tools { margin-left: auto; }
  .site-nav { order: 3; width: 100%; }
  .header-row { flex-wrap: wrap; }
  .js .header-row { flex-wrap: nowrap; }
}

/* ---------- Buttons ---------- */
.btn {
  --b: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.75rem 1.3rem; border-radius: 999px; font-weight: 750; font-size: 1rem; line-height: 1.2;
  text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: inherit; text-align: center; overflow-wrap: anywhere;
  transition: transform 0.18s, box-shadow 0.18s, background-color 0.18s, border-color 0.18s;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn:active { transform: translateY(0); }
/* Primary: a Bronze fill with Ink text (5.2:1 light, 7.0:1 dark) and a slow sheen on hover. */
.btn-primary {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--accent-fill); color: var(--accent-ink); box-shadow: 0 10px 24px -12px rgba(var(--accent-rgb), 0.9);
}
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 0.7s cubic-bezier(.2,.7,.2,1);
}
.btn-primary:hover { box-shadow: 0 16px 32px -12px rgba(var(--accent-rgb), 0.95); }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--text); }
/* Bridge Battle: the approved app theme, Night Ink #0B1324 and Span Red #E3283B (white on Span Red is 4.5:1). */
.btn-bb { background: #E3283B; color: #FFFFFF; box-shadow: 0 10px 24px -12px #E3283B; }
.btn-sm { min-height: 40px; padding: 0.5rem 1rem; font-size: 0.95rem; }
.textlink { font-weight: 700; }
.copy-btn {
  font: inherit; font-size: 0.85rem; font-weight: 700; color: var(--text); background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 0.35rem 0.8rem; cursor: pointer; min-height: 34px;
  transition: background-color 0.2s;
}
.copy-btn:hover { background: var(--bg-2); }
.copy-btn.copied { background: var(--accent-fill); color: var(--accent-ink); border-color: var(--accent-fill); }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.6rem 0 0; }
.cta-col { display: flex; flex-direction: column; gap: 0.75rem; align-items: stretch; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(3.5rem, 7vw, 6rem); isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; -webkit-mask-image: linear-gradient(#000 65%, transparent); mask-image: linear-gradient(#000 65%, transparent); }
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 72%);
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 72%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(60px); }
.orb-a { width: 520px; height: 520px; background: var(--orb-a); top: -160px; left: -120px; animation: drift 18s ease-in-out infinite alternate; }
.orb-b { width: 460px; height: 460px; background: var(--orb-b); bottom: -200px; right: -100px; animation: drift 22s ease-in-out infinite alternate-reverse; }
.orb-a.bb { background: rgba(227, 40, 59, 0.16); }
.orb-b.bb { background: rgba(227, 179, 76, 0.22); }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(60px, 40px) scale(1.12); } }
.hero-pulse { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 160px; opacity: 0.35; }
.pulse-line { fill: none; stroke: var(--accent-fill); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 2600; stroke-dashoffset: 2600; animation: draw 3.2s 0.3s cubic-bezier(.6,.1,.2,1) forwards, pulseglow 4s 3.5s ease-in-out infinite; vector-effect: non-scaling-stroke; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pulseglow { 50% { opacity: 0.45; } }

.hero h1 { font-size: clamp(2.3rem, 1.3rem + 3.3vw, 4.1rem); }
.hero-inner { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem; font-size: 0.85rem; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); background: var(--surface); border: 1px solid var(--line); padding: 0.4rem 0.85rem; border-radius: 999px; margin-bottom: 1.4rem;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-strong); box-shadow: 0 0 0 0 var(--accent-strong); animation: ping 2.2s infinite; flex: none; }
.dot-bb { background: #E3283B; box-shadow: 0 0 0 0 #E3283B; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.6); } 80%, 100% { box-shadow: 0 0 0 10px rgba(var(--accent-rgb), 0); } }
.status-pill.bb .dot, .dot-bb { animation-name: ping-bb; }
@keyframes ping-bb { 0% { box-shadow: 0 0 0 0 rgba(227, 40, 59, 0.5); } 80%, 100% { box-shadow: 0 0 0 10px rgba(227, 40, 59, 0); } }
/* The headline's second line: solid accent text (dark bronze on light, Bronze Light on dark) over a bronze rule that draws in. */
.hl-accent {
  color: var(--accent); padding-bottom: 0.06em;
  background: linear-gradient(var(--accent-fill), var(--accent-fill)) left bottom / 0% max(3px, 0.06em) no-repeat;
  animation: rule 1.4s 0.6s cubic-bezier(.6,.1,.2,1) forwards;
}
@keyframes rule { to { background-size: 100% max(3px, 0.06em); } }
.lead { font-size: clamp(1.1rem, 1rem + 0.45vw, 1.3rem); color: var(--muted); max-width: 40rem; }
.lead-strong { color: var(--text); font-weight: 700; margin-bottom: 0.6rem; }
.hero-points { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; color: var(--muted); font-weight: 650; font-size: 0.95rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 0.5rem; margin: 0; }
.hero-points li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); -webkit-mask: url("check.svg") center / 12px no-repeat; mask: url("check.svg") center / 12px no-repeat; }

.hero-visual { position: relative; min-height: 420px; display: grid; place-items: center; }
.mini-phone {
  width: 250px; border-radius: 34px; padding: 14px; background: #F3F4F8; border: 8px solid #0B1324;
  box-shadow: 0 40px 80px -30px rgba(10, 22, 38, 0.6); transform: rotate(-6deg); animation: bob 6s ease-in-out infinite;
}
@keyframes bob { 50% { transform: rotate(-6deg) translateY(-12px); } }
.mp-top { background: #0B1324; border-radius: 18px; padding: 16px; display: grid; gap: 4px; }
.mp-kicker { color: #E3B34C; font-weight: 800; font-size: 9px; letter-spacing: 0.18em; }
.mp-day { color: #FFF; font-weight: 900; font-size: 24px; letter-spacing: -0.02em; }
.mp-btn { margin-top: 10px; background: #E3283B; color: #FFF; font-weight: 800; font-size: 12px; text-align: center; border-radius: 10px; padding: 10px; }
.mp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.mp-card { background: #FFF; border: 1px solid #E2E4EC; border-radius: 12px; padding: 8px 10px; display: grid; }
.mp-card small { color: #5E6480; font-size: 10px; font-weight: 700; }
.mp-card b { color: #0B1324; font-size: 20px; font-weight: 900; }
.mp-bars { display: flex; align-items: flex-end; gap: 6px; height: 70px; margin-top: 10px; background: #FFF; border: 1px solid #E2E4EC; border-radius: 12px; padding: 10px; }
.mp-bars i { flex: 1; background: linear-gradient(#E3283B, #E3B34C); border-radius: 4px; animation: grow 1.6s cubic-bezier(.3,.7,.2,1) both; transform-origin: bottom; }
.mp-bars i:nth-child(1) { height: 35%; animation-delay: 0.2s; } .mp-bars i:nth-child(2) { height: 55%; animation-delay: 0.3s; }
.mp-bars i:nth-child(3) { height: 45%; animation-delay: 0.4s; } .mp-bars i:nth-child(4) { height: 70%; animation-delay: 0.5s; }
.mp-bars i:nth-child(5) { height: 62%; animation-delay: 0.6s; } .mp-bars i:nth-child(6) { height: 84%; animation-delay: 0.7s; }
.mp-bars i:nth-child(7) { height: 100%; animation-delay: 0.8s; }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.mp-label { margin: 8px 0 0; text-align: center; color: #5E6480; font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.float-card {
  position: absolute; z-index: 2; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0.6rem 0.9rem;
  box-shadow: var(--shadow); display: grid; line-height: 1.25; animation: float 7s ease-in-out infinite;
}
.fc-k { font-size: 0.72rem; font-weight: 750; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.fc-v { font-weight: 800; }
.fc-1 { top: 0; left: -2%; } .fc-2 { top: 44%; right: -6%; animation-delay: -2s; } .fc-3 { bottom: -2%; left: -4%; animation-delay: -4s; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* Bridge Battle hero badge */
.badge-ring { position: relative; width: min(360px, 80vw); aspect-ratio: 1; display: grid; place-items: center; }
.ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(227, 40, 59, 0.5); animation: spin 26s linear infinite; }
.ring.r1 { border-style: dashed; }
.ring.r2 { inset: 12%; border-color: rgba(227, 179, 76, 0.7); border-width: 3px; border-right-color: transparent; animation-duration: 9s; }
.ring.r3 { inset: 24%; background: #0B1324; border: 0; box-shadow: 0 30px 60px -20px rgba(11, 19, 36, 0.8), inset 0 0 0 6px rgba(255, 255, 255, 0.06); animation: none; }
.badge-num { position: relative; font-size: clamp(4rem, 14vw, 6.5rem); font-weight: 900; color: #FFF; letter-spacing: -0.05em; line-height: 1; margin-top: -0.6rem; }
.badge-cap { position: absolute; top: 62%; color: #E3B34C; font-weight: 800; letter-spacing: 0.4em; font-size: 0.85rem; padding-left: 0.4em; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section.tight { padding: clamp(2rem, 4vw, 3rem) 0; }
.band { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { max-width: 46rem; margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.section-lead { color: var(--muted); font-size: 1.12rem; }
.kicker { font-size: 0.82rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin: 0 0 0.7rem; }
.kicker-warm { color: var(--warm); }
.kicker-bb { color: #B81C2E; }
:root[data-theme-effective="dark"] .kicker-bb { color: #FF6B7D; }

.cards { display: grid; gap: clamp(1rem, 2vw, 1.4rem); }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.3rem, 2.5vw, 1.8rem);
  box-shadow: var(--shadow); transition: transform 0.25s, border-color 0.25s; overflow: hidden;
}
.card > *:last-child { margin-bottom: 0; }
.card p { color: var(--muted); }
.card h3 { color: var(--text); }
.card.glow::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), var(--orb-a), transparent 45%);
}
.card.glow:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.card.glow:hover::before { opacity: 1; }
.card.highlight { border: 2px solid var(--accent); }
.card-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 1rem; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.card-icon svg { width: 24px; height: 24px; fill: currentColor; }
.card-icon.bb { background: rgba(227, 40, 59, 0.1); color: #E3283B; }
:root[data-theme-effective="dark"] .card-icon.bb { color: #FF6B7D; background: rgba(255, 107, 125, 0.12); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split.top { align-items: start; }
.split-copy p { color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 1.2rem 0; display: grid; gap: 0.45rem; }
.ticks li { position: relative; padding-left: 2rem; margin: 0; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.2em; width: 1.3rem; height: 1.3rem; border-radius: 50%;
  background: var(--accent); -webkit-mask: url("check.svg") center / 0.85rem no-repeat; mask: url("check.svg") center / 0.85rem no-repeat;
}
.status-pill { display: inline-flex; align-items: center; gap: 0.6rem; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 0.5rem 1rem; font-weight: 750; margin: 0.4rem 0 0; }
.status-pill.bb .dot { background: #E3283B; }

.stack { position: relative; display: grid; gap: 0.8rem; max-width: 420px; margin-inline: auto; }
.stack-card { display: flex; align-items: center; gap: 0.9rem; background: #FFFFFF; color: #141A33; border: 1px solid #E2E4EC; border-radius: 16px; padding: 0.9rem 1.1rem; box-shadow: var(--shadow); transition: transform 0.3s; }
.stack-card:hover { transform: translateX(6px); }
.stack-card.s2 { margin-left: 1.5rem; } .stack-card.s3 { margin-left: 3rem; }
.sc-rank { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; color: #0B1324; background: #EEF0F6; flex: none; }
.sc-rank.gold { background: #E3B34C; }
.sc-name { font-weight: 700; flex: 1; }
.sc-pts { font-weight: 900; color: #0B1324; }
.stack-bubble { justify-self: start; background: #0B1324; color: #FFF; border-radius: 16px 16px 16px 4px; padding: 0.7rem 1rem; font-weight: 600; box-shadow: var(--shadow); margin-top: 0.4rem; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; counter-reset: s; }
.step { margin: 0; padding: 1.4rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.step p { color: var(--muted); margin: 0; }
.step-n { display: inline-block; font-family: var(--mono); font-weight: 700; color: var(--accent); font-size: 0.95rem; margin-bottom: 0.8rem; padding: 0.15rem 0.55rem; border-radius: 8px; background: color-mix(in srgb, var(--accent) 8%, transparent); }

.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.timeline li { margin: 0; display: flex; gap: 1rem; padding: 1.3rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.timeline p { color: var(--muted); margin: 0; }
.timeline h3 { margin-bottom: 0.35rem; }
.tl-n { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 900; background: #0B1324; color: #E3B34C; }

.contact-panel {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 2rem; align-items: center;
  padding: clamp(1.6rem, 4vw, 3rem); border-radius: 28px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  background-image: radial-gradient(600px circle at 0% 0%, var(--orb-a), transparent 60%), radial-gradient(500px circle at 100% 100%, var(--orb-b), transparent 60%);
}
.contact-panel.bb { background-image: radial-gradient(600px circle at 0% 0%, rgba(227, 40, 59, 0.12), transparent 60%), radial-gradient(500px circle at 100% 100%, rgba(227, 179, 76, 0.2), transparent 60%); }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.contact-list li { margin: 0; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0.2rem 0.8rem; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 0.8rem 1rem; }
.contact-list .cl-k { grid-column: 1 / -1; font-size: 0.78rem; font-weight: 750; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.contact-list a { font-weight: 700; overflow-wrap: anywhere; }
.contact-block { line-height: 1.7; }
.contact-block.big { font-size: 1.1rem; margin-bottom: 1rem; }
.fineprint { margin-top: 2rem; font-size: 0.95rem; color: var(--muted); max-width: 50rem; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(1.5rem, 3vw, 2.5rem); position: relative; }
.page-hero h1 { font-size: clamp(2.1rem, 1.4rem + 3.4vw, 3.8rem); max-width: 18em; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 0; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts div { background: var(--surface); padding: 1.2rem 1.4rem; }
.facts dt { font-size: 0.78rem; font-weight: 750; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.facts dd { margin: 0.2rem 0 0; font-weight: 700; overflow-wrap: anywhere; }

/* ---------- Support ---------- */
.support-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 1.2rem; }
.big-link { font-size: clamp(1rem, 0.9rem + 0.35vw, 1.15rem); font-weight: 800; overflow-wrap: anywhere; }
.faq-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.search { flex: 1; min-width: 220px; }
.search input, .field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--field-border); border-radius: 12px; padding: 0.75rem 1rem; min-height: 48px;
}
.search input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: 3px solid color-mix(in srgb, var(--accent) 30%, transparent); outline-offset: 0; }
.faq-count { margin: 0; color: var(--muted); font-size: 0.95rem; }
.faq-count:empty { display: none; }
.faq { display: grid; gap: 0.7rem; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; transition: border-color 0.2s, box-shadow 0.2s; }
.faq-item[open] { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); box-shadow: var(--shadow); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.05rem 1.25rem; cursor: pointer; font-weight: 750; list-style: none; border-radius: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.pm { position: relative; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); flex: none; transition: transform 0.25s, background-color 0.25s; }
.pm::before, .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--text); border-radius: 2px; transition: transform 0.25s; }
.pm::after { transform: rotate(90deg); }
.faq-item[open] .pm { transform: rotate(180deg); background: var(--accent-fill); }
.faq-item[open] .pm::before, .faq-item[open] .pm::after { background: var(--accent-ink); }
.faq-item[open] .pm::after { transform: rotate(0deg); }
.faq-body { padding: 0 1.25rem 1.1rem; color: var(--muted); }
.faq-item[open] .faq-body { animation: fadeDown 0.28s ease-out; }
.faq-body p:last-child { margin-bottom: 0; }
.faq-empty { color: var(--muted); }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.report-form { display: grid; gap: 1rem; }
.field { display: grid; gap: 0.35rem; }
.field label { font-weight: 700; }
.opt { color: var(--muted); font-weight: 500; }
.field textarea { resize: vertical; min-height: 130px; }
.field-error { color: #B81C2E; font-weight: 700; margin: 0; }
:root[data-theme-effective="dark"] .field-error { color: #FF8A98; }
.form-note { margin: 0; color: var(--muted); font-size: 0.95rem; }
.report-form .btn { justify-self: start; }

/* ---------- Legal pages ---------- */
.legal-layout > *, .contact-panel > *, .split > *, .hero-inner > *, .demo-layout > * { min-width: 0; }
.legal-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: clamp(2rem, 5vw, 4rem); padding-top: clamp(2.5rem, 6vw, 4.5rem); padding-bottom: clamp(3rem, 6vw, 5rem); align-items: start; }
.legal-intro { grid-column: 2; grid-row: 1; max-width: 760px; }
.legal-layout > .toc { grid-column: 1; grid-row: 1 / span 2; }
.legal-layout > .legal-body { grid-column: 2; grid-row: 2; }
.legal-intro .summary { margin-bottom: 0; }
.toc { position: sticky; top: 96px; font-size: 0.93rem; max-height: calc(100vh - 120px); overflow-y: auto; padding-right: 0.5rem; }
.toc-h { font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.78rem; color: var(--muted); margin-bottom: 0.6rem; }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.toc li { margin: 0; }
.toc a { display: block; padding: 0.35rem 0 0.35rem 0.9rem; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--text); }
.toc a.active { color: var(--accent); border-left-color: var(--accent); font-weight: 700; }
.legal-body { max-width: 760px; }
.legal-intro .legal-head h1, .legal-head h1 { font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem); }
.legal-head .meta { color: var(--muted); }
.legal-body h2 { font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.7rem); margin-top: 2.6rem; padding-top: 0.4rem; }
.legal-body h3 { font-size: 1.1rem; margin-top: 1.6rem; }
.legal-body p, .legal-body li { color: var(--text); }
.legal-body > h2:first-child { margin-top: 2.2rem; }
.legal-body li { margin: 0.4em 0; }
.summary {
  margin: 1.8rem 0 1rem; padding: 1.4rem 1.6rem; border-radius: var(--radius); border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line));
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
}
.summary-h { font-size: 1.05rem !important; text-transform: uppercase; letter-spacing: 0.1em; margin: 0 0 0.6rem !important; padding: 0 !important; color: var(--accent); }
.summary ul { margin: 0; }
.howto { counter-reset: h; list-style: none; padding: 0; }
.howto li { counter-increment: h; position: relative; padding: 0.15rem 0 0.15rem 2.8rem; margin: 0.9rem 0; min-height: 2rem; }
.howto li::before { content: counter(h); position: absolute; left: 0; top: 0; width: 2rem; height: 2rem; border-radius: 10px; display: grid; place-items: center; background: var(--accent-fill); color: var(--accent-ink); font-weight: 800; }
.mail-card { border: 1px dashed var(--line); border-radius: var(--radius); padding: 1.2rem 1.4rem; background: var(--surface); margin: 1rem 0 1.4rem; }
.mail-card p { margin: 0.35rem 0; }
.mc-k { display: inline-block; min-width: 5.5rem; font-weight: 750; color: var(--muted); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); margin: 1rem 0 1.4rem; }
table { border-collapse: collapse; width: 100%; font-size: 0.97rem; background: var(--surface); }
th, td { text-align: left; vertical-align: top; padding: 0.85rem 1rem; border-bottom: 1px solid var(--line); }
thead th { background: var(--surface-2); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: 700; min-width: 11rem; }

/* ---------- 404 ---------- */
.nf { text-align: center; padding-bottom: 6rem; }
.nf .lead { margin-inline: auto; }
.nf h1 { margin-inline: auto; }
.nf-code { font-size: clamp(5rem, 18vw, 10rem); font-weight: 900; letter-spacing: -0.06em; line-height: 1; margin: 0 0 1rem; color: var(--accent); }
.nf-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem; margin-top: 2rem; }
.nf-links li { margin: 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: clamp(2.5rem, 6vw, 4rem) 0 2rem; font-size: 0.95rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.3fr; gap: 2rem; }
.foot-brand p { color: var(--muted); margin-top: 1rem; }
.foot-note { font-weight: 700; color: var(--text) !important; }
.foot-h { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin: 0 0 0.8rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0.45rem 0; }
.site-footer nav a { color: var(--text); text-decoration: none; }
.site-footer nav a:hover { color: var(--accent); text-decoration: underline; }
.foot-mail li { display: grid; }
.foot-label { font-size: 0.78rem; color: var(--muted); font-weight: 700; }
.foot-mail a { overflow-wrap: break-word; }
.foot-base { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr auto; gap: 1rem 2rem; align-items: start; color: var(--muted); font-size: 0.88rem; }
.foot-base p { margin: 0; }
.tm { max-width: 46rem; }
.to-top { font-weight: 700; }

/* ---------- Demo phone (mirrors the real app's theme: Night Ink #0B1324, Span Red #E3283B, gold #E3B34C) ---------- */
.demo-section { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.demo-layout { display: grid; grid-template-columns: 1fr auto; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.demo-stage { display: grid; justify-items: center; gap: 1rem; }
.demo-caption { color: var(--muted); font-size: 0.9rem; margin: 0; text-align: center; }
.phone {
  --navy: #0B1324; --navy-soft: #1A2540; --red: #E3283B; --gold: #E3B34C; --abg: #F3F4F8; --card: #FFFFFF; --ink: #141A33; --quiet: #5E6480; --aline: #E2E4EC; --good: #177A4C;
  position: relative; width: min(360px, calc(100vw - 2rem)); height: 720px; border-radius: 48px; padding: 12px; background: #05081A;
  box-shadow: 0 0 0 2px #2A3150, 0 50px 100px -40px rgba(7, 11, 31, 0.75), inset 0 0 0 2px #1A2040;
}
.phone-notch { position: absolute; top: 20px; left: 50%; width: 96px; height: 26px; margin-left: -48px; background: #05081A; border-radius: 999px; z-index: 5; }
.phone-screen { position: relative; height: 100%; border-radius: 38px; overflow: hidden; background: var(--abg); display: flex; flex-direction: column; font-family: var(--font); color: var(--ink); line-height: 1.35; }
.demo-flag { position: absolute; top: 18px; right: 22px; z-index: 6; background: var(--gold); color: var(--navy); font-size: 10px; font-weight: 900; letter-spacing: 0.14em; border-radius: 6px; padding: 3px 7px; }
.app-top { height: 54px; background: var(--navy); flex: none; }
.app-body { flex: 1; overflow-y: auto; padding: 14px; scrollbar-width: thin; overscroll-behavior: contain; }
.app-body:focus { outline: none; }
.demo-noscript { padding: 1rem; }
.app-tabs { flex: none; display: grid; grid-template-columns: repeat(5, 1fr); background: #FFF; border-top: 1px solid var(--aline); padding: 6px 4px 18px; }
.app-tabs button { font: inherit; background: none; border: 0; padding: 6px 0 2px; display: grid; justify-items: center; gap: 2px; color: var(--quiet); font-size: 11px; font-weight: 800; cursor: pointer; border-radius: 10px; }
.app-tabs button svg { width: 22px; height: 22px; fill: currentColor; opacity: 0.55; }
.app-tabs button[aria-pressed="true"] { color: var(--red); }
.app-tabs button[aria-pressed="true"] svg { opacity: 1; }
.app-tabs button:focus-visible { outline: 2px solid var(--navy); outline-offset: -2px; }
.app-notice { position: absolute; left: 16px; right: 16px; bottom: 84px; z-index: 8; border-radius: 12px; padding: 12px; background: var(--good); color: #FFF; font-weight: 700; font-size: 14px; text-align: center; opacity: 0; transform: translateY(10px); transition: opacity 0.25s, transform 0.25s; pointer-events: none; }
.app-notice.show { opacity: 1; transform: none; }
.app-notice.bad { background: var(--red); }

.a-hero { background: var(--navy); border-radius: 20px; padding: 18px; margin-bottom: 12px; }
.a-kicker { color: var(--gold); font-weight: 800; letter-spacing: 2px; font-size: 11px; margin: 0; }
.a-status { color: #FFF; font-weight: 900; font-size: 30px; margin: 4px 0 2px; letter-spacing: -0.02em; }
.a-hi { color: #C9CEE3; font-size: 14px; margin: 0 0 14px; }
.a-btn { font: inherit; width: 100%; min-height: 46px; border-radius: 12px; border: 0; background: var(--red); color: #FFF; font-weight: 800; font-size: 15px; letter-spacing: 0.3px; cursor: pointer; transition: transform 0.12s, opacity 0.12s; }
.a-btn:active { transform: scale(0.98); opacity: 0.85; }
.a-btn.navy { background: var(--navy); }
.a-btn.ghost { background: transparent; color: var(--navy); border: 1px solid var(--aline); }
.a-btn.danger { background: transparent; color: var(--red); border: 1px solid var(--red); }
.a-btn.small { min-height: 34px; width: auto; padding: 0 12px; font-size: 13px; border-radius: 10px; }
/* Focus rings inside the light phone screen are navy (16:1 on white); on the navy hero card they are gold. */
.phone :focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.a-hero :focus-visible { outline-color: var(--gold); }
.a-done { background: var(--navy-soft); border-radius: 12px; padding: 13px; text-align: center; color: #FFF; font-weight: 800; font-size: 15px; }
.a-link { font: inherit; background: none; border: 0; color: #C9CEE3; text-decoration: underline; font-size: 12px; margin-top: 10px; cursor: pointer; padding: 4px 0; }
.a-row { display: flex; gap: 10px; }
.a-row > * { flex: 1; }
.a-card { background: var(--card); border: 1px solid var(--aline); border-radius: 16px; padding: 14px; margin-bottom: 12px; }
.a-h { font-size: 12px; font-weight: 800; color: var(--navy); letter-spacing: 1px; text-transform: uppercase; margin: 0 0 10px; }
.a-quiet { font-size: 12.5px; color: var(--quiet); margin: 0; line-height: 1.4; }
.a-big { font-size: 26px; font-weight: 900; color: var(--navy); margin: 0; line-height: 1.15; }
.a-big small { font-size: 13px; color: var(--quiet); font-weight: 700; }
.a-big.bump { animation: bump 0.45s ease-out; }
@keyframes bump { 40% { transform: scale(1.18); color: var(--red); } }
.a-stats { display: flex; justify-content: space-between; gap: 6px; }
.a-stats .a-big { font-size: 20px; }
.a-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--aline); }
.a-line:first-of-type { border-top: 0; }
.a-line > div { flex: 1; min-width: 0; }
.a-name { font-size: 14.5px; font-weight: 700; color: var(--ink); margin: 0; }
.a-pts { font-weight: 900; font-size: 15px; color: var(--navy); white-space: nowrap; }
.a-pts.good { color: var(--good); }
.a-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.a-chip { font: inherit; border: 1px solid var(--aline); border-radius: 999px; padding: 6px 12px; background: #FFF; font-size: 13px; font-weight: 700; color: var(--navy); cursor: pointer; }
.a-chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #FFF; }
.a-rank { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; color: var(--navy); background: #EEF0F6; flex: none !important; font-size: 14px; }
.a-rank.first { background: var(--gold); }
.a-you { background: #FFF6E0; border-radius: 10px; margin: 0 -8px; padding-left: 8px; padding-right: 8px; }
.a-dot-blue { background: #1F6FEB; }
.a-dotc { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.a-bubbles { display: grid; gap: 8px; margin-bottom: 10px; }
.a-msg { max-width: 86%; justify-self: start; }
.a-msg.mine { justify-self: end; }
.a-bubble { font: inherit; text-align: left; display: block; width: 100%; background: #EEF0F6; color: var(--ink); border: 0; border-radius: 14px; padding: 8px 12px; font-size: 14.5px; cursor: pointer; overflow-wrap: anywhere; }
.a-msg.mine .a-bubble { background: var(--navy); color: #FFF; }
.a-meta { font-size: 11px; color: var(--quiet); margin: 2px 2px 0; }
.a-msg.mine .a-meta { text-align: right; }
.a-actions { display: flex; gap: 6px; margin-top: 4px; }
.a-compose { display: flex; gap: 8px; align-items: flex-end; }
.a-input { font: inherit; flex: 1; min-height: 42px; border: 1px solid var(--aline); border-radius: 10px; padding: 8px 12px; font-size: 14.5px; color: var(--ink); background: #FAFBFD; min-width: 0; }
.a-input:focus { outline: 2px solid var(--navy); outline-offset: 0; }
.a-label { display: block; font-size: 12.5px; font-weight: 800; color: var(--navy); margin: 12px 0 6px; }
.a-confirm { display: flex; gap: 8px; flex-wrap: wrap; }
.a-done:focus { outline: 3px solid var(--gold); outline-offset: 2px; }
.a-flag { display: inline-block; background: #FFF6E0; color: #6B4A00; font-size: 11px; font-weight: 800; border-radius: 6px; padding: 2px 6px; margin-left: 4px; }
.a-loading { display: inline-flex; gap: 4px; align-items: center; }
.a-loading i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: blink 1s infinite; }
.a-loading i:nth-child(2) { animation-delay: 0.15s; } .a-loading i:nth-child(3) { animation-delay: 0.3s; }
@keyframes blink { 50% { opacity: 0.25; } }
.a-note { background: #EEF3FF; border-radius: 10px; padding: 10px; margin-top: 10px; }
.a-prize { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--aline); }
.a-prize:first-of-type { border-top: 0; }
.a-prize-icon { width: 34px; height: 34px; border-radius: 10px; background: #FFF6E0; display: grid; place-items: center; flex: none; }
.a-prize-icon svg { width: 20px; height: 20px; fill: var(--gold); }
.a-for { font-size: 11.5px; font-weight: 800; color: var(--red); margin: 2px 0 0; letter-spacing: 0.04em; }
.a-linkrow { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-top: 1px solid var(--aline); font-weight: 700; color: var(--ink); text-decoration: none; font-size: 14.5px; }
.a-linkrow:first-child { border-top: 0; }
.a-linkrow::after { content: "\203A"; color: var(--quiet); font-size: 20px; }
.a-stack { display: grid; gap: 10px; justify-items: start; }
.view-in { animation: viewIn 0.28s ease-out; }
@keyframes viewIn { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }

/* ---------- Reveal on scroll ---------- */
/* Content is hidden for its entry animation only after site.js has set up the reveal (it adds .reveal-ready),
   so a script that fails to load or breaks never leaves the page blank. */
.reveal-ready .reveal { opacity: 0; }
.js .reveal.in { opacity: 1; animation: rise 0.7s cubic-bezier(.2,.7,.2,1) backwards; }
/* The first screen animates in by CSS alone, so it never waits on a script or on scrolling. */
.js .hero .reveal, .js .page-hero .reveal { opacity: 1; transform: none; transition: none; animation: rise 0.8s cubic-bezier(.2,.7,.2,1) backwards; }
.js .hero .reveal:nth-child(2), .js .page-hero .reveal:nth-child(2) { animation-delay: 0.08s; }
.js .hero .reveal:nth-child(3), .js .page-hero .reveal:nth-child(3) { animation-delay: 0.16s; }
.js .hero .reveal:nth-child(n+4), .js .page-hero .reveal:nth-child(n+4) { animation-delay: 0.24s; }
/* Safety net: if a browser never runs the entry animations (some screenshot tools and throttled tabs), the content still shows. */
.js .reveal.shown { animation: none !important; opacity: 1 !important; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1060px) {
  .foot-grid { grid-template-columns: 1fr 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .hero-inner, .split, .contact-panel, .demo-layout { grid-template-columns: 1fr; }
  .hero-visual { min-height: 380px; }
  .cards.three, .timeline { grid-template-columns: 1fr 1fr; }
  .support-grid { grid-template-columns: 1fr 1fr; }
  .support-grid .highlight { grid-column: 1 / -1; }
  .facts { grid-template-columns: 1fr 1fr; }
  .legal-layout { grid-template-columns: minmax(0, 1fr); }
  .legal-intro, .legal-layout > .toc, .legal-layout > .legal-body { grid-column: 1; grid-row: auto; }
  .toc { position: static; max-height: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; background: var(--surface); margin-top: 1.5rem; }
  .demo-copy { order: 0; }
  .foot-base { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .cards.three, .cards.two, .timeline, .steps, .support-grid, .facts { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > .foot-contact { grid-column: 1 / -1; }
  /* Phones: the three chips sit in a row under the mock phone instead of on top of it. */
  .hero-visual { min-height: 0; grid-template-columns: repeat(3, auto); justify-content: center; gap: 2.4rem 0.5rem; }
  .hero-visual .mini-phone { grid-column: 1 / -1; order: -1; width: 230px; }
  .float-card { position: static; padding: 0.45rem 0.7rem; font-size: 0.9rem; }
  .fc-k { font-size: 0.66rem; }
  .stack-card.s2 { margin-left: 0.8rem; } .stack-card.s3 { margin-left: 1.6rem; }
  .cta-row .btn { flex: 1 1 auto; }
  .contact-list li { grid-template-columns: 1fr; }
  .contact-list .copy-btn { justify-self: start; }
  tbody th { min-width: 8rem; }
  .phone { height: 680px; border-radius: 40px; }
  .phone-screen { border-radius: 30px; }
}
@media (max-width: 560px) {
  .table-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table-stack, .table-stack tbody, .table-stack tr, .table-stack th, .table-stack td { display: block; width: 100%; }
  .table-stack tr { border-bottom: 1px solid var(--line); padding: 0.4rem 0; }
  .table-stack tbody tr:last-child { border-bottom: 0; }
  .table-stack th, .table-stack td { border: 0; padding: 0.3rem 1rem; min-width: 0; }
  .table-stack tbody th { padding-top: 0.7rem; }
  .table-stack td::before { content: attr(data-label); display: block; font-size: 0.75rem; font-weight: 750; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
}
@media (max-width: 380px) {
  .logo { width: 160px; height: 40px; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero-points { flex-direction: column; }
  .float-card { display: none; }
  .phone { padding: 8px; }
  .app-body { padding: 10px; }
  .a-status { font-size: 26px; }
}

/* ---------- Motion and print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hl-accent { animation: none; background-size: 100% max(3px, 0.06em); }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js .reveal, .reveal-ready .reveal { opacity: 1; transform: none; }
  .pulse-line { stroke-dashoffset: 0; }
  .mini-phone { transform: rotate(-6deg); }
}
@media print {
  .site-header, .site-footer nav, .theme-btn, .menu-btn, .toc, .demo-section, .hero-bg, .skip { display: none !important; }
  body { background: #FFF; color: #000; }
  .js .reveal, .reveal-ready .reveal { opacity: 1; transform: none; }
  a { color: #000; }
}
