/* RosterAmigo — rosteramigo.com
   Static site, no frameworks. System font stacks only (zero font requests).
   Light by default, dark via prefers-color-scheme, data-theme overrides both ways.
   Hero, marquee, CTA band and footer are fixed "brand worlds" (navy/orange)
   and render identically in both themes. */

:root {
  --brand: #FF751F;
  --brand-deep: #E2610C;
  --brand-grad: linear-gradient(135deg, #FF9A4D 0%, #FF751F 55%, #F05A00 100%);
  --navy: #16324F;

  --bg: #F7F9FC;
  --surface: #FFFFFF;
  --surface-2: #EEF3F9;
  --line: #DCE4EE;
  --ink: #16324F;
  --body: #33475C;
  --muted: #5E7185;
  --chip-bg: #FFF1E7;
  --chip-ink: #B34E0A;
  --header-bg: rgba(247, 249, 252, 0.82);
  --card-shadow: 0 18px 44px rgba(22, 50, 79, 0.10);
  --card-shadow-hover: 0 26px 60px rgba(22, 50, 79, 0.16);

  --ok: #2E8F63;
  --warn: #B97A17;
  --violation: #C63A34;

  /* Fixed navy world (hero, phone, footer) */
  --deck-a: #122C47;
  --deck-b: #081524;
  --deck-ink: #F2F6FA;
  --deck-muted: #9FB4C8;
  --deck-line: rgba(255, 255, 255, 0.13);

  --radius: 14px;
  --radius-lg: 24px;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, Menlo, monospace;
  --sans: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system,
    "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B1725;
    --surface: #12233A;
    --surface-2: #192F4A;
    --line: #23394F;
    --ink: #EAF1F8;
    --body: #C4D2DF;
    --muted: #8FA3B8;
    --chip-bg: #3A2413;
    --chip-ink: #FFB27A;
    --header-bg: rgba(11, 23, 37, 0.80);
    --card-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
    --card-shadow-hover: 0 26px 60px rgba(0, 0, 0, 0.45);
    --ok: #4CBA8A;
    --warn: #E0A44A;
    --violation: #E86560;
  }
}

:root[data-theme="dark"] {
  --bg: #0B1725;
  --surface: #12233A;
  --surface-2: #192F4A;
  --line: #23394F;
  --ink: #EAF1F8;
  --body: #C4D2DF;
  --muted: #8FA3B8;
  --chip-bg: #3A2413;
  --chip-ink: #FFB27A;
  --header-bg: rgba(11, 23, 37, 0.80);
  --card-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
  --card-shadow-hover: 0 26px 60px rgba(0, 0, 0, 0.45);
  --ok: #4CBA8A;
  --warn: #E0A44A;
  --violation: #E86560;
}

/* ---------- Base ---------- */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 1.08;
  text-wrap: balance;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.7rem, 7vw, 4.6rem); font-weight: 850; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.7rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }
a { color: var(--brand-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}
:root[data-theme="dark"] a { color: var(--brand); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) a { color: var(--brand); }
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-deep);
  margin: 0 0 18px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px;
  background: var(--brand-grad); flex-shrink: 0;
}
:root[data-theme="dark"] .eyebrow { color: var(--brand); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .eyebrow { color: var(--brand); }
}

.grad-text {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: 0; cursor: pointer;
  border-radius: 999px;
  padding: 13px 26px;
  font-family: var(--sans); font-weight: 750; font-size: 0.98rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: transform 0.22s cubic-bezier(0.3, 1.4, 0.5, 1), box-shadow 0.25s ease, filter 0.2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn--brand {
  background: var(--brand-grad);
  color: #FFFFFF;
  box-shadow: 0 8px 24px rgba(255, 117, 31, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.btn--brand:hover {
  box-shadow: 0 14px 34px rgba(255, 117, 31, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  filter: brightness(1.04);
}
.btn--ghost {
  background: rgba(255, 255, 255, 0.07);
  color: #FFFFFF;
  border: 1px solid var(--deck-line);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.13); }
.btn--onbrand { background: #FFFFFF; color: var(--brand-deep); box-shadow: 0 10px 30px rgba(140, 50, 0, 0.35); }
.btn--onbrand:hover { box-shadow: 0 16px 40px rgba(140, 50, 0, 0.45); }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header--scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px rgba(10, 25, 41, 0.08);
}
.site-header--deck {
  background: rgba(8, 21, 36, 0.62);
  border-bottom-color: transparent;
}
.site-header--deck.site-header--scrolled {
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}
.site-header .container {
  display: flex; align-items: center; gap: 30px;
  padding-top: 14px; padding-bottom: 14px;
}
.brand {
  display: flex; align-items: center; gap: 11px;
  color: var(--ink); font-weight: 800; font-size: 1.1rem;
  letter-spacing: -0.015em; text-decoration: none;
}
.site-header--deck .brand, .site-footer .brand { color: #FFFFFF; }
.brand:hover { text-decoration: none; }
.brand svg {
  width: 36px; height: 36px; display: block;
  border-radius: 9px;
  box-shadow: 0 4px 14px rgba(255, 117, 31, 0.35);
  transition: transform 0.3s cubic-bezier(0.3, 1.4, 0.5, 1);
}
.brand:hover svg { transform: rotate(-8deg) scale(1.06); }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.site-nav a { color: var(--body); font-size: 0.95rem; font-weight: 650; position: relative; }
.site-header--deck .site-nav a { color: #D9E4EE; }
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -5px;
  height: 2px; border-radius: 2px; background: var(--brand-grad);
  transition: right 0.28s cubic-bezier(0.6, 0, 0.2, 1);
}
.site-nav a:not(.btn):hover { text-decoration: none; }
.site-nav a:not(.btn):hover::after { right: 0; }
.site-nav .btn { padding: 9px 20px; font-size: 0.88rem; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background:
    radial-gradient(1100px 520px at 82% -10%, rgba(255, 117, 31, 0.28), transparent 62%),
    radial-gradient(900px 600px at -12% 110%, rgba(255, 117, 31, 0.16), transparent 58%),
    linear-gradient(158deg, var(--deck-a), var(--deck-b) 72%);
  color: var(--deck-ink);
  overflow: hidden;
}
.hero-routes {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none;
}
.hero-routes path {
  fill: none; stroke-width: 1.6; stroke-linecap: round;
  stroke-dasharray: 3 10;
}
.hero-routes .r1 { stroke: rgba(255, 154, 77, 0.24); }
.hero-routes .r2 { stroke: rgba(255, 255, 255, 0.09); }
.hero-routes .r3 { stroke: rgba(255, 117, 31, 0.14); }

.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 40px;
  align-items: center;
  padding-top: 96px;
  padding-bottom: 116px;
}
.hero h1 { color: #FFFFFF; margin-bottom: 0.4em; }
.hero .eyebrow { color: var(--brand); }
.hero-sub { color: var(--deck-muted); font-size: 1.16rem; max-width: 32em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 32px 0 22px; }
.store-pill {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--deck-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(6px);
  padding: 12px 22px;
  color: #FFFFFF;
  font-weight: 700; font-size: 0.95rem;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s cubic-bezier(0.3, 1.4, 0.5, 1);
}
.store-pill:hover { border-color: rgba(255, 117, 31, 0.65); background: rgba(255, 117, 31, 0.1); transform: translateY(-2px); }
.store-pill small {
  font-family: var(--mono); font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #FFB27A;
  background: rgba(255, 117, 31, 0.18);
  border-radius: 999px; padding: 3px 9px;
}
.hero-note {
  font-family: var(--mono); font-size: 0.76rem;
  color: var(--deck-muted); max-width: 42em; margin: 0;
}

/* Hero entrance (no-JS safe: pure CSS keyframes) */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { opacity: 0; animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
  .hero-copy > *:nth-child(1) { animation-delay: 0.05s; }
  .hero-copy > *:nth-child(2) { animation-delay: 0.15s; }
  .hero-copy > *:nth-child(3) { animation-delay: 0.28s; }
  .hero-copy > *:nth-child(4) { animation-delay: 0.4s; }
  .hero-copy > *:nth-child(5) { animation-delay: 0.5s; }
  .hero-stage { opacity: 0; animation: rise 1.1s 0.35s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Phone mockup ---------- */

.hero-stage { position: relative; }
.hero-stage::before {
  content: ""; position: absolute;
  width: 480px; height: 480px; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 117, 31, 0.34), transparent 66%);
  filter: blur(14px);
  pointer-events: none;
}
.phone-float { position: relative; }
.phone {
  position: relative;
  width: min(300px, 78vw);
  margin: 0 auto;
  border-radius: 42px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(165deg, #14283E, #0A1929);
  padding: 12px;
  box-shadow:
    0 50px 110px rgba(3, 10, 18, 0.6),
    0 0 0 6px rgba(255, 255, 255, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
/* Physical phone details: side buttons on the frame */
.phone::before {
  content: ""; position: absolute;
  right: -2.5px; top: 116px;
  width: 3.5px; height: 58px; border-radius: 2px;
  background: #2B4159;
}
.phone::after {
  content: ""; position: absolute;
  left: -2.5px; top: 98px;
  width: 3.5px; height: 34px; border-radius: 2px;
  background: #2B4159;
  box-shadow: 0 44px 0 #2B4159;
}
/* The screen mirrors the actual app: light UI, orange accents (see app theme.ts) */
.phone-screen {
  position: relative;
  border-radius: 32px;
  background: #FFFFFF;
  overflow: hidden;
  font-size: 12.5px;
  line-height: 1.35;
  padding-bottom: 16px;
}
/* Camera island + home indicator */
.phone-screen::before {
  content: ""; position: absolute;
  top: 10px; left: 50%; transform: translateX(-50%);
  width: 62px; height: 18px; border-radius: 12px;
  background: #10151C;
}
.phone-screen::after {
  content: ""; position: absolute;
  bottom: 6px; left: 50%; transform: translateX(-50%);
  width: 86px; height: 4px; border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
}
.phone-status {
  display: flex; justify-content: space-between;
  padding: 12px 18px 6px;
  font-family: var(--mono); font-size: 10px; color: #6B7686;
}
.phone-title {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 6px 18px 12px;
}
.phone-title strong { color: #1D2733; font-size: 17px; letter-spacing: -0.01em; }
.phone-title span { font-family: var(--mono); font-size: 10px; color: #D95F12; }
.day {
  display: flex; gap: 12px;
  padding: 10px 16px;
  border-top: 1px solid #E6E9EF;
}
.day-date {
  font-family: var(--mono); font-size: 10px; color: #9AA4B2;
  width: 40px; flex-shrink: 0; padding-top: 2px;
}
.day-body { color: #1D2733; min-width: 0; flex: 1; }
.day-body .leg {
  display: flex; justify-content: space-between; gap: 10px;
  font-family: var(--mono); font-size: 11px;
}
.day--today {
  background: #FFF1E8;
  border-left: 3px solid var(--brand);
  padding-left: 13px;
}
.day--today .day-date { color: #D95F12; }
.tag {
  display: inline-block;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.08em;
  border-radius: 5px; padding: 2px 7px; margin-top: 5px;
  background: #EEF1F5; color: #6B7686;
}
.tag--fdp { background: #FFE3CE; color: #B34E0A; }
.day-off { color: #9AA4B2; font-size: 11.5px; }

/* Floating cards around the phone */
/* Floating cards look like fragments of the (light) app UI */
.float-card {
  position: absolute; z-index: 2;
  background: #FFFFFF;
  border: 1px solid #E6E9EF;
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: 0 24px 50px rgba(3, 10, 18, 0.45);
  font-family: var(--mono);
  color: #1D2733;
}
.float-card .fc-label {
  font-size: 8.5px; letter-spacing: 0.14em; text-transform: uppercase; color: #9AA4B2;
  margin-bottom: 5px;
}
.float-card .fc-value { font-size: 13px; font-variant-numeric: tabular-nums; }
.float-card .fc-value b { color: #D95F12; font-weight: 600; }
.float-card--legality { right: -34px; top: 16%; }
.float-card--landed { left: -44px; bottom: 14%; }
.float-card .fc-bar {
  width: 124px; height: 5px; border-radius: 99px;
  background: #EEF1F5; overflow: hidden; margin-top: 7px;
}
.float-card .fc-bar i { display: block; height: 100%; width: 74%; border-radius: 99px; background: var(--brand-grad); }
.fc-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: #4CBA8A; margin-right: 7px;
  box-shadow: 0 0 0 0 rgba(76, 186, 138, 0.5);
}
@media (prefers-reduced-motion: no-preference) {
  .fc-dot { animation: ping 2.4s ease-out infinite; }
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(76, 186, 138, 0.55); }
  70%, 100% { box-shadow: 0 0 0 9px rgba(76, 186, 138, 0); }
}

/* ---------- Brand strip (static ticker) ---------- */

.marquee {
  background: var(--brand-grad);
  padding: 16px 24px;
}
.marquee-track {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px 26px;
  max-width: 1120px; margin: 0 auto;
  font-family: var(--mono); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #FFFFFF;
}
.marquee-track span { white-space: nowrap; }
.marquee-track span + span::before {
  content: "\25C6";
  margin-right: 26px;
  font-size: 0.62em;
  color: rgba(22, 50, 79, 0.6);
  vertical-align: 1px;
}
.marquee-track em { font-style: normal; color: #16324F; }

/* ---------- Stats band ---------- */

.stats { padding: 88px 0 8px; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 26px 22px;
  box-shadow: var(--card-shadow);
}
.stat-value {
  font-size: clamp(2rem, 3.6vw, 2.7rem);
  font-weight: 850; letter-spacing: -0.03em; line-height: 1;
  font-variant-numeric: tabular-nums;
  background: var(--brand-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { margin-top: 10px; font-size: 0.88rem; color: var(--muted); line-height: 1.45; }

/* ---------- Sections & features ---------- */

.section { padding: 96px 0; }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head p { font-size: 1.08rem; }

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 72px;
  align-items: center;
  padding: 44px 0;
}
.feature--flip .feature-art { order: -1; }
.feature h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); letter-spacing: -0.025em; }
.feature p { max-width: 32em; }
.feature .rule {
  font-family: var(--mono); font-size: 0.75rem; color: var(--muted);
  letter-spacing: 0.06em;
}
.feature-icon {
  width: 46px; height: 46px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-grad);
  box-shadow: 0 8px 20px rgba(255, 117, 31, 0.35);
  margin-bottom: 20px;
}
.feature-icon svg { width: 23px; height: 23px; stroke: #FFFFFF; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.vignette {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--card-shadow);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s ease;
}
.vignette:hover { transform: translateY(-6px); box-shadow: var(--card-shadow-hover); }
.vignette-title {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 16px;
}
.vignette-title b { color: var(--ink); font-weight: 700; }

/* Legality bars — animate to --w when revealed */
.limit { margin-bottom: 16px; }
.limit:last-child { margin-bottom: 0; }
.limit-label {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 0.86rem; color: var(--body); margin-bottom: 6px;
}
.limit-label span:last-child {
  font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--ink);
}
.limit-bar {
  height: 9px; border-radius: 999px; background: var(--surface-2); overflow: hidden;
}
.limit-fill {
  height: 100%; border-radius: 999px;
  background: var(--brand-grad);
  width: var(--w, 60%);
}
.limit-fill--warn { background: linear-gradient(90deg, #E8A13C, #D98A18); }
html.js .reveal .limit-fill { width: 0; transition: width 1.2s cubic-bezier(0.22, 0.8, 0.3, 1) 0.25s; }
html.js .reveal.in .limit-fill { width: var(--w, 60%); }

/* Logbook table */
.logtable {
  width: 100%; border-collapse: collapse;
  font-family: var(--mono); font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  color: var(--body);
}
.logtable th {
  text-align: left; font-weight: 600; font-size: 0.66rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
  padding: 0 10px 8px 0;
}
.logtable td { padding: 7px 10px 7px 0; border-top: 1px solid var(--line); }
.logtable td:last-child, .logtable th:last-child { text-align: right; padding-right: 0; }

.chip {
  display: inline-block;
  background: var(--chip-bg); color: var(--chip-ink);
  font-family: var(--mono); font-size: 0.74rem;
  border-radius: 8px; padding: 4px 10px; margin: 12px 6px 0 0;
}
.chip--plain { background: var(--surface-2); color: var(--muted); }

/* Friends rows */
.friend-row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 0; border-top: 1px solid var(--line);
  font-size: 0.9rem; color: var(--body);
}
.friend-row:first-of-type { border-top: 0; padding-top: 0; }
.friend-row .when {
  font-family: var(--mono); font-size: 0.76rem; color: var(--muted);
  margin-left: auto; white-space: nowrap;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex-shrink: 0; }
.dot--layover { background: var(--brand); }

/* Live map */
.livemap svg { display: block; width: 100%; height: auto; }
.livemap-caption {
  font-family: var(--mono); font-size: 0.76rem; color: var(--muted);
  display: flex; justify-content: space-between; margin-top: 10px;
}

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  background:
    radial-gradient(700px 340px at 18% 0%, rgba(255, 255, 255, 0.2), transparent 60%),
    var(--brand-grad);
  color: #FFFFFF;
  overflow: hidden;
}
.cta-band .container {
  position: relative;
  padding-top: 96px; padding-bottom: 96px;
  text-align: center;
}
.cta-band h2 { color: #FFFFFF; font-size: clamp(2.1rem, 4.6vw, 3.3rem); }
.cta-band p { color: rgba(255, 255, 255, 0.9); font-size: 1.12rem; max-width: 34em; margin: 0 auto 30px; }
.cta-watermark {
  position: absolute; right: -70px; bottom: -90px;
  width: 380px; height: 380px;
  opacity: 0.13; transform: rotate(18deg);
  pointer-events: none;
}
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.cta-band .store-pill { border-color: rgba(255, 255, 255, 0.45); background: rgba(255, 255, 255, 0.1); }
.cta-band .store-pill small { color: #FFFFFF; background: rgba(22, 50, 79, 0.35); }
.cta-band .hero-note { color: rgba(255, 255, 255, 0.75); margin: 26px auto 0; }

/* ---------- Trust band ---------- */

.trust { background: var(--surface); border-top: 1px solid var(--line); }
.trust .container { padding-top: 88px; padding-bottom: 88px; }
.trust-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px; margin-top: 44px;
}
.trust-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.3s ease;
}
.trust-card:hover { transform: translateY(-4px); border-color: rgba(255, 117, 31, 0.45); }
.trust-card h3 { font-size: 1rem; margin-bottom: 6px; }
.trust-card p { font-size: 0.9rem; color: var(--muted); margin: 0; }

/* ---------- Footer (navy world) ---------- */

.site-footer {
  background: linear-gradient(165deg, var(--deck-a), var(--deck-b));
  color: var(--deck-muted);
  padding: 64px 0 56px;
}
.site-footer .container {
  display: flex; flex-wrap: wrap; gap: 28px 48px;
  justify-content: space-between; align-items: flex-start;
}
.site-footer a { color: #D9E4EE; }
.site-footer a:hover { color: #FFFFFF; }
.footer-id { font-size: 0.88rem; max-width: 30em; }
.footer-id .brand { margin-bottom: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 9px; font-size: 0.92rem; }
.footer-disclaimer {
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 40px; padding-top: 22px;
  font-family: var(--mono); font-size: 0.72rem;
  line-height: 1.7;
}

/* ---------- Legal / support pages ---------- */

.page-head { padding: 72px 0 8px; }
.page-head .meta { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }
.prose { padding: 24px 0 80px; }
.prose h2 { font-size: 1.35rem; margin-top: 2.2em; }
.prose h3 { font-size: 1.05rem; margin-top: 1.6em; }
.prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: 0.45em; }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.92rem; }
.prose th, .prose td {
  text-align: left; padding: 10px 14px 10px 0;
  border-bottom: 1px solid var(--line); vertical-align: top;
}
.prose th { color: var(--ink); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }
.callout {
  background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius);
  padding: 18px 22px; margin: 28px 0;
  box-shadow: var(--card-shadow);
}
.callout p:last-child { margin-bottom: 0; }

details {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface);
  padding: 0 20px; margin-bottom: 12px;
  transition: border-color 0.25s ease;
}
details:hover { border-color: rgba(255, 117, 31, 0.45); }
summary {
  cursor: pointer; font-weight: 700; color: var(--ink);
  padding: 16px 0; list-style: none; position: relative;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; right: 2px; top: 14px;
  font-family: var(--mono); color: var(--brand);
  transition: transform 0.25s ease;
}
details[open] summary::after { content: "\2212"; }
details > p, details > ul { margin-top: 0; padding-bottom: 16px; }

/* ---------- Scroll reveal ---------- */

html.js .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--d, 0s);
}
html.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Reduced motion & responsive ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html.js .reveal { opacity: 1; transform: none; }
  html.js .reveal .limit-fill { width: var(--w, 60%); }
}

@media (max-width: 920px) {
  .hero .container { grid-template-columns: 1fr; padding-top: 64px; padding-bottom: 88px; }
  .hero-stage { margin-top: 28px; }
  .float-card--legality { right: 0; }
  .float-card--landed { left: 0; }
  .feature { grid-template-columns: 1fr; gap: 30px; padding: 32px 0; }
  .feature--flip .feature-art { order: 0; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-nav { gap: 18px; }
  .section { padding: 72px 0; }
}
@media (max-width: 520px) {
  .stats-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .site-nav a:not(.btn) { display: none; }
  .float-card--legality { top: 6%; }
}
