/* ============================================================
   OzReel marketing + legal site — shared styles
   Tokens lifted verbatim from the app design system (tokens.jsx).
   Theme: system default + manual override via [data-theme] on <html>.
   ============================================================ */

/* ---- Tokens: light (default) ---- */
:root {
  --bg: #f3ead7;
  --bg-elev: #fbf6e9;
  --surface: #ffffff;
  --surface-2: #f8f1de;
  --text: #1a2730;
  --text-2: #4a5a64;
  --text-3: #7e8c96;
  --border: rgba(26,39,48,0.10);
  --border-strong: rgba(26,39,48,0.18);
  --primary: #0d5664;
  --primary-2: #0a4351;
  --on-primary: #fff8ea;
  --accent: #ef6b3a;
  --accent-ink: #fff8ea;
  --success: #4a8a4f;
  --success-ink: #0f2812;
  --success-bg: #dde9d9;
  --warning: #d94534;
  --warning-ink: #fff5f1;
  --warning-bg: #fadcd2;
  --protected: #cf8a18;
  --protected-ink: #2a1d04;
  --protected-bg: #f4e3b6;
  --water: #7eb6c1;
  --sky: #e9d8a8;

  --shadow-sm: 0 1px 3px rgba(26,39,48,0.06), 0 1px 2px rgba(26,39,48,0.04);
  --shadow-md: 0 8px 24px rgba(26,39,48,0.08), 0 2px 6px rgba(26,39,48,0.05);
  --shadow-lg: 0 30px 70px rgba(26,39,48,0.16), 0 8px 22px rgba(26,39,48,0.10);

  --font: "Archivo", -apple-system, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", monospace;

  --r-card: 22px;
  --r-hero: 24px;
  --r-pill: 999px;
  --pad-card: 16px;
  --gutter: 16px;
  --gap-card: 12px;

  --maxw: 1140px;
  --header-h: 68px;
  color-scheme: light;
}

/* ---- Tokens: dark via system ---- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c161a;
    --bg-elev: #10202a;
    --surface: #172832;
    --surface-2: #1d3441;
    --text: #f3ead7;
    --text-2: #b0bbc2;
    --text-3: #788692;
    --border: rgba(243,234,215,0.10);
    --border-strong: rgba(243,234,215,0.22);
    --primary: #3aa6b8;
    --primary-2: #67c4d3;
    --on-primary: #072028;
    --accent: #ff8252;
    --accent-ink: #1a0a04;
    --success: #7bbd80;
    --success-ink: #0f2812;
    --success-bg: rgba(123,189,128,0.16);
    --warning: #ff6a55;
    --warning-ink: #2a0a04;
    --warning-bg: rgba(255,106,85,0.18);
    --protected: #f3b94a;
    --protected-ink: #2a1d04;
    --protected-bg: rgba(243,185,74,0.16);
    --water: #1f4a55;
    --sky: #2a3a44;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.45);
    --shadow-lg: 0 30px 70px rgba(0,0,0,0.6), 0 8px 22px rgba(0,0,0,0.4);
    color-scheme: dark;
  }
}

/* ---- Tokens: dark via manual override ---- */
:root[data-theme="dark"] {
  --bg: #0c161a;
  --bg-elev: #10202a;
  --surface: #172832;
  --surface-2: #1d3441;
  --text: #f3ead7;
  --text-2: #b0bbc2;
  --text-3: #788692;
  --border: rgba(243,234,215,0.10);
  --border-strong: rgba(243,234,215,0.22);
  --primary: #3aa6b8;
  --primary-2: #67c4d3;
  --on-primary: #072028;
  --accent: #ff8252;
  --accent-ink: #1a0a04;
  --success: #7bbd80;
  --success-ink: #0f2812;
  --success-bg: rgba(123,189,128,0.16);
  --warning: #ff6a55;
  --warning-ink: #2a0a04;
  --warning-bg: rgba(255,106,85,0.18);
  --protected: #f3b94a;
  --protected-ink: #2a1d04;
  --protected-bg: rgba(243,185,74,0.16);
  --water: #1f4a55;
  --sky: #2a3a44;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
  --shadow-md: 0 10px 30px rgba(0,0,0,0.45);
  --shadow-lg: 0 30px 70px rgba(0,0,0,0.6), 0 8px 22px rgba(0,0,0,0.4);
  color-scheme: dark;
}

/* ============================================================
   Base
   ============================================================ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 500;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
  transition: background .35s ease, color .35s ease;
}

h1, h2, h3, h4 { font-family: var(--font); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

.eyebrow {
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3);
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 56px; padding: 0 26px; border-radius: var(--r-pill);
  font-family: var(--font); font-size: 17px; font-weight: 700; letter-spacing: -0.01em;
  border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-lg { height: 60px; padding: 0 32px; font-size: 18px; border-radius: var(--r-hero); }
.btn-sm { height: 44px; padding: 0 18px; font-size: 15px; }

.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-md); }
.btn-primary:hover { box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.btn-teal { background: var(--primary); color: var(--on-primary); }
.btn-teal:hover { background: var(--primary-2); }
.btn-secondary { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-secondary:hover { background: color-mix(in srgb, var(--primary) 8%, transparent); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-2); }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .bar {
  height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand .mark { width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0; }
.brand .word { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }

.logo-coral { display: block; }
.logo-teal { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-coral { display: none; }
  :root:not([data-theme="light"]) .logo-teal { display: block; }
}
:root[data-theme="dark"] .logo-coral { display: none; }
:root[data-theme="dark"] .logo-teal { display: block; }
:root[data-theme="light"] .logo-coral { display: block; }
:root[data-theme="light"] .logo-teal { display: none; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 9px 14px; border-radius: var(--r-pill); font-size: 15px; font-weight: 600; color: var(--text-2);
  transition: color .15s ease, background .15s ease;
}
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a.active { color: var(--text); }

.header-actions { display: flex; align-items: center; gap: 8px; }

.theme-toggle {
  width: 42px; height: 42px; border-radius: var(--r-pill); flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  cursor: pointer; transition: background .15s ease, transform .12s ease;
}
.theme-toggle:hover { background: var(--surface); }
.theme-toggle:active { transform: scale(0.92); }
.theme-toggle .i-moon { display: none; }
.theme-toggle .i-sun { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: block; }
}
:root[data-theme="dark"] .theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: block; }
:root[data-theme="light"] .theme-toggle .i-sun { display: block; }
:root[data-theme="light"] .theme-toggle .i-moon { display: none; }

.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 16px 16px;
    background: var(--bg); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
  }
  .nav a { padding: 13px 14px; font-size: 16px; }
  body.nav-open .nav { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: var(--r-pill);
    background: var(--surface-2); border: 1px solid var(--border); color: var(--text); cursor: pointer;
  }
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-elev); margin-top: 96px; }
.site-footer .inner { padding: 56px 0 40px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer .word { font-size: 20px; font-weight: 800; letter-spacing: -0.03em; }
.site-footer p.tag { color: var(--text-2); margin-top: 12px; max-width: 30ch; font-size: 15px; }
.foot-col h4 { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 14px; }
.foot-col a, .foot-col span { display: block; color: var(--text-2); font-size: 15px; padding: 5px 0; }
.foot-col a:hover { color: var(--text); }
.foot-bottom { border-top: 1px solid var(--border); padding: 22px 0 34px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--text-3); font-size: 13.5px; }
.foot-bottom .mono { font-size: 12.5px; letter-spacing: 0.04em; }
@media (max-width: 760px) {
  .site-footer .inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .site-footer .brand-col { grid-column: 1 / -1; }
}

/* ============================================================
   Status badges (color + icon + text — never color alone)
   ============================================================ */
.badge {
  display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 13px 0 7px;
  border-radius: var(--r-pill); font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.06em;
}
.badge .dot { width: 18px; height: 18px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.badge.lg { height: 38px; font-size: 13px; padding: 0 16px 0 8px; }
.badge.lg .dot { width: 24px; height: 24px; font-size: 14px; }
.badge-legal { background: var(--success-bg); color: var(--success); }
.badge-legal .dot { background: var(--success); color: var(--success-bg); }
.badge-under { background: var(--warning-bg); color: var(--warning); }
.badge-under .dot { background: var(--warning); color: var(--warning-bg); }
.badge-protected { background: var(--protected-bg); color: var(--protected); }
.badge-protected .dot { background: var(--protected); color: var(--protected-bg); }
.badge-closed { background: var(--warning-bg); color: var(--warning); }
.badge-closed .dot { background: var(--warning); color: var(--warning-bg); }

/* ============================================================
   Generic card
   ============================================================ */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card);
  padding: var(--pad-card); box-shadow: var(--shadow-sm);
}

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: 64px 0 40px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero-copy h1 { font-size: clamp(38px, 6vw, 62px); font-weight: 900; }
.hero-copy .lede { font-size: clamp(17px, 2.2vw, 21px); color: var(--text-2); margin-top: 22px; max-width: 30ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero-note { margin-top: 18px; display: flex; align-items: center; gap: 8px; color: var(--text-3); font-size: 14px; }
.hero-note svg { color: var(--success); flex-shrink: 0; }

.store-badges { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.hero-phone-stage { display: flex; justify-content: center; align-items: center; position: relative; }
.hero-phone-stage::before {
  content: ""; position: absolute; width: 115%; height: 115%; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--primary) 16%, transparent), transparent 62%);
  z-index: 0;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-copy { text-align: center; }
  .hero-copy .lede { margin-left: auto; margin-right: auto; }
  .hero-cta, .store-badges { justify-content: center; }
  .hero-note { justify-content: center; }
}

/* ---- Store badge (placeholder) ---- */
.store-badge {
  display: inline-flex; align-items: center; gap: 11px; height: 56px; padding: 0 18px;
  background: var(--text); color: var(--bg); border-radius: 14px; border: 1px solid var(--border-strong);
  transition: transform .12s ease, opacity .2s ease; cursor: default;
}
.store-badge:hover { transform: translateY(-1px); }
.store-badge .glyph { width: 26px; height: 26px; flex-shrink: 0; }
.store-badge .txt { display: flex; flex-direction: column; line-height: 1.1; text-align: left; white-space: nowrap; }
.store-badge .txt .small { font-size: 10px; font-family: var(--mono); letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.8; }
.store-badge .txt .big { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.store-badge .soon { margin-left: 4px; font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: 0.1em; padding: 3px 6px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); }

/* ============================================================
   Phone mockup (CSS device — recreates the app Result screen)
   ============================================================ */
.phone {
  position: relative; z-index: 1;
  width: 320px; aspect-ratio: 320 / 670;
  background: #0a1418; border-radius: 46px; padding: 11px;
  box-shadow: var(--shadow-lg), 0 0 0 2px rgba(0,0,0,0.6) inset;
  flex-shrink: 0;
}
.phone-screen {
  position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden;
  background: var(--bg); display: flex; flex-direction: column;
}
.phone-notch {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 36%; height: 22px; background: #0a1418; border-radius: 0 0 14px 14px; z-index: 30;
}
.phone-status {
  position: absolute; top: 0; left: 0; right: 0; height: 38px; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; padding: 13px 22px 0;
  font-size: 13px; font-weight: 700; pointer-events: none;
}
.phone-status .right { display: flex; align-items: center; gap: 5px; }

/* Striped photo placeholder (matches OzrPhoto) */
.ph-photo { position: relative; width: 100%; overflow: hidden; }
.ph-photo .label {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(255,255,255,0.82); text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
.ph-sunset { background: repeating-linear-gradient(45deg, #e6824a 0 7px, #c25a30 7px 14px); }
.ph-water  { background: repeating-linear-gradient(45deg, #3a7a8a 0 7px, #1f4a55 7px 14px); }
.ph-deep   { background: repeating-linear-gradient(45deg, #0e3142 0 7px, #091a24 7px 14px); }
.ph-sand   { background: repeating-linear-gradient(45deg, #c9b078 0 7px, #8a7449 7px 14px); }

/* Result screen内 layout */
.rs-hero { position: relative; height: 220px; flex-shrink: 0; }
.rs-hero .ph-photo { height: 100%; }
.rs-hero .fade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, var(--bg) 100%); }
.rs-hero .chip-btn {
  position: absolute; top: 44px; width: 32px; height: 32px; border-radius: 999px;
  background: rgba(0,0,0,0.4); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; color: #fff;
}
.rs-hero .badge { position: absolute; bottom: 14px; left: 16px; z-index: 6; }
.rs-body { flex: 1; padding: 2px 16px 0; overflow: hidden; }
.rs-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: 4px; }
.rs-species { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }
.rs-latin { font-size: 11px; color: var(--text-3); font-style: italic; margin-top: 1px; }
.rs-chips { display: flex; gap: 6px; margin-top: 7px; }
.rs-chip { padding: 3px 9px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 0.04em; color: var(--text-2); }
.rs-len { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 38px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.rs-len small { font-size: 14px; color: var(--text-2); font-weight: 600; }
.rs-len-sub { font-family: var(--mono); font-size: 10px; color: var(--text-3); margin-top: 2px; text-align: right; }
.rs-status {
  margin-top: 12px; padding: 12px; border-radius: 16px; display: flex; align-items: center; gap: 11px;
  background: var(--success-bg); color: var(--success);
}
.rs-status .ico { width: 36px; height: 36px; border-radius: 999px; flex-shrink: 0; background: currentColor; display: flex; align-items: center; justify-content: center; }
.rs-status .ico svg { color: var(--bg); }
.rs-status .msg { font-size: 14px; font-weight: 800; letter-spacing: -0.01em; }
.rs-status .sub { font-size: 11.5px; opacity: 0.85; margin-top: 1px; font-weight: 500; }
.rs-reg { margin-top: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; }
.rs-reg .head { padding: 10px 14px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; }
.rs-reg .state-chip { width: 26px; height: 18px; border-radius: 3px; background: var(--accent); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 9px; font-weight: 800; }
.rs-reg .head span { font-size: 13px; font-weight: 700; }
.rs-reg .grid { padding: 11px 14px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.rs-reg .grid .k { font-family: var(--mono); font-size: 9px; color: var(--text-3); letter-spacing: 0.08em; }
.rs-reg .grid .v { font-family: var(--mono); font-size: 16px; font-weight: 700; margin-top: 1px; }
.rs-action { padding: 10px 16px 20px; border-top: 1px solid var(--border); display: flex; gap: 8px; flex-shrink: 0; }
.rs-action .b {
  flex: 1; height: 48px; border-radius: 999px; background: var(--accent); color: var(--accent-ink);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px;
}
.rs-action .r { width: 48px; height: 48px; border-radius: 999px; border: 1.5px solid var(--border-strong); display: flex; align-items: center; justify-content: center; color: var(--text-2); flex-shrink: 0; }

/* ============================================================
   Section scaffolding
   ============================================================ */
.section { padding: 72px 0; }
.section-head { max-width: 60ch; margin-bottom: 8px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); }
.section-head p { color: var(--text-2); font-size: 18px; margin-top: 14px; }

/* Features — alternating rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 44px 0; }
.feature:nth-child(even) .feature-visual { order: -1; }
.feature-icon { width: 52px; height: 52px; border-radius: 15px; background: var(--surface-2); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--primary); margin-bottom: 20px; }
.feature-copy .num { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; color: var(--accent); }
.feature-copy h3 { font-size: clamp(24px, 3vw, 30px); margin-top: 6px; }
.feature-copy p { color: var(--text-2); font-size: 17px; margin-top: 14px; max-width: 42ch; }
.feature-visual { display: flex; justify-content: center; }
@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; gap: 28px; padding: 30px 0; }
  .feature:nth-child(even) .feature-visual { order: 0; }
  .feature-copy { text-align: left; }
}

/* Vignette card (holds UI snippets) */
.vignette {
  width: 100%; max-width: 440px; background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: var(--r-card); padding: 24px; box-shadow: var(--shadow-md);
}

/* badge legend grid */
.badge-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.badge-legend .row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.badge-legend .row .desc { font-size: 12px; color: var(--text-2); }

/* state chips row (jurisdictions) */
.jur-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.jur { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; padding: 6px 11px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--text-2); }

/* AR vignette */
.ar-frame { position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: #0a1418; }
.ar-readout { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,0.55); color: #fff; font-family: var(--mono); font-weight: 700; font-size: 15px; padding: 7px 14px; border-radius: 999px; }

/* tide vignette */
.tide-strip { display: flex; gap: 6px; margin-top: 16px; }
.tide-strip .day { flex: 1; text-align: center; }
.tide-strip .day .d { font-family: var(--mono); font-size: 10px; color: var(--text-3); letter-spacing: 0.04em; }
.tide-strip .day .bar { height: 36px; border-radius: 6px; margin-top: 6px; background: color-mix(in srgb, var(--primary) 22%, transparent); position: relative; }
.tide-strip .day.best .bar { background: var(--accent); }
.tide-strip .day .t { font-family: var(--mono); font-size: 9px; color: var(--text-2); margin-top: 4px; }

/* logbook vignette rows */
.log-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--border); }
.log-row:first-child { border-top: none; }
.log-thumb { width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0; }
.log-row .name { font-size: 14px; font-weight: 700; }
.log-row .meta { font-family: var(--mono); font-size: 10px; color: var(--text-3); margin-top: 2px; }
.log-row .len { margin-left: auto; font-family: var(--mono); font-weight: 700; font-size: 15px; text-align: right; }

/* trust strip */
.trust { background: var(--surface-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust .inner { padding: 30px 0; display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; text-align: center; }
.trust .item { display: flex; align-items: center; gap: 12px; }
.trust .item svg { color: var(--primary); flex-shrink: 0; }
.trust .item .t { font-weight: 700; font-size: 15px; }
.trust .item .s { font-size: 13px; color: var(--text-2); }

/* big closing CTA */
.cta-band { padding: 80px 0; }
.cta-card {
  background: var(--primary); color: var(--on-primary); border-radius: 32px; padding: 56px 48px; text-align: center; position: relative; overflow: hidden;
}
.cta-card h2 { font-size: clamp(28px, 4vw, 44px); color: var(--on-primary); }
.cta-card p { color: color-mix(in srgb, var(--on-primary) 80%, transparent); font-size: 18px; margin-top: 16px; max-width: 44ch; margin-left: auto; margin-right: auto; }
.cta-card .store-badges { justify-content: center; margin-top: 30px; }
.cta-card .store-badge { background: var(--on-primary); color: var(--primary); border-color: transparent; }

/* ============================================================
   Legal / doc pages
   ============================================================ */
.doc-hero { padding: 56px 0 24px; border-bottom: 1px solid var(--border); }
.doc-hero .eyebrow { color: var(--accent); }
.doc-hero h1 { font-size: clamp(34px, 5vw, 50px); margin-top: 12px; }
.doc-hero .updated { color: var(--text-3); font-family: var(--mono); font-size: 13px; margin-top: 16px; }
.doc-hero .intro { color: var(--text-2); font-size: 18px; margin-top: 20px; max-width: 62ch; }

.doc-layout { display: grid; grid-template-columns: 240px 1fr; gap: 56px; padding: 48px 0; align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); }
.toc h4 { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }
.toc a { display: block; padding: 7px 12px; border-radius: 10px; font-size: 14px; color: var(--text-2); border-left: 2px solid transparent; }
.toc a:hover { color: var(--text); background: var(--surface-2); }
.toc a.active { color: var(--primary); border-left-color: var(--accent); font-weight: 600; }

.doc-body { max-width: 70ch; }
.doc-body section { padding-top: 12px; margin-bottom: 40px; scroll-margin-top: calc(var(--header-h) + 20px); }
.doc-body h2 { font-size: 24px; margin-bottom: 16px; display: flex; align-items: baseline; gap: 12px; }
.doc-body h2 .n { font-family: var(--mono); font-size: 14px; color: var(--text-3); font-weight: 700; }
.doc-body h3 { font-size: 17px; margin: 24px 0 10px; }
.doc-body p { color: var(--text-2); font-size: 16px; margin-bottom: 14px; line-height: 1.65; }
.doc-body ul { color: var(--text-2); font-size: 16px; line-height: 1.65; padding-left: 20px; margin: 0 0 16px; }
.doc-body li { margin-bottom: 8px; }
.doc-body li::marker { color: var(--accent); }
.doc-body a.inline { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.doc-body strong { color: var(--text); font-weight: 700; }

.callout {
  border-radius: var(--r-card); padding: 20px 22px; margin: 22px 0; display: flex; gap: 14px; align-items: flex-start;
  background: var(--protected-bg); border: 1px solid color-mix(in srgb, var(--protected) 30%, transparent);
}
.callout .ico { color: var(--protected); flex-shrink: 0; margin-top: 2px; }
.callout .ct { font-size: 15px; line-height: 1.6; color: var(--text); }
.callout .ct strong { color: var(--text); }
.callout.legal-key { background: var(--warning-bg); border-color: color-mix(in srgb, var(--warning) 30%, transparent); }
.callout.legal-key .ico { color: var(--warning); }

.data-table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14.5px; }
.data-table th, .data-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.data-table th { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.data-table td { color: var(--text-2); }
.data-table tr:last-child td { border-bottom: none; }

@media (max-width: 820px) {
  .doc-layout { grid-template-columns: 1fr; gap: 0; }
  .toc { position: static; margin-bottom: 8px; display: none; }
}

/* FAQ (support) */
.faq { max-width: 70ch; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 20px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 18px; font-weight: 700; letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev { transition: transform .2s ease; color: var(--text-3); flex-shrink: 0; }
.faq-item[open] summary .chev { transform: rotate(90deg); }
.faq-item .ans { padding: 0 0 22px; color: var(--text-2); font-size: 16px; line-height: 1.65; max-width: 64ch; }
.faq-item .ans p { margin-bottom: 12px; }

/* support contact cards */
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0; }
.support-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 24px; box-shadow: var(--shadow-sm); }
.support-card .ico { width: 46px; height: 46px; border-radius: 13px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; color: var(--primary); margin-bottom: 16px; }
.support-card h3 { font-size: 19px; }
.support-card p { color: var(--text-2); font-size: 15px; margin-top: 8px; }
.support-card a.mail { display: inline-block; margin-top: 14px; color: var(--primary); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 620px) { .support-grid { grid-template-columns: 1fr; } }

/* steps list (account deletion) */
.steps { counter-reset: step; margin: 18px 0; padding: 0; list-style: none; }
.steps li { counter-increment: step; position: relative; padding: 0 0 18px 46px; color: var(--text-2); font-size: 16px; line-height: 1.6; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px;
  width: 30px; height: 30px; border-radius: 999px; background: var(--primary); color: var(--on-primary);
  display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-weight: 700; font-size: 14px;
}
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 14px; top: 32px; bottom: 4px; width: 2px; background: var(--border); }
.steps li strong { color: var(--text); }

/* page intro spacing helpers */
.lead-back { display: inline-flex; align-items: center; gap: 7px; color: var(--text-2); font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.lead-back:hover { color: var(--text); }
