/* ═══════════════════════════════════════════════════════════════════
   Peaksur — web design system (white + aurora era)
   Ported from the app's Solead Design System: WHITE sheets with the
   FoldedSheetCornerGlow aurora bleed hanging from their top edge,
   Bright Mint fills (always black text + black traced outline),
   ChamferRect corners (cut ≈ 21% of control height, capped on cards),
   and a whisper of surface grain.

   Brand rules that are load-bearing:
   - Mint #37F4B5 is a FILL color: black text + black outline, always.
     It is NEVER text on white (~1.6:1) — accent text uses --mint-ink
     (#0F6B4E, the app's light-mode brandText).
   - Chamfered corners, never rounded. Shapes live on ::before/::after
     pseudo layers so the outline TRACES the chamfer (a box-shadow ring
     would vanish at the cut corners).
   - The footer's legal entity + postal address are checked by Apple and
     required by CAN-SPAM. Never remove.
   ═══════════════════════════════════════════════════════════════════ */

/* Plus Jakarta Sans — display face for titles (self-hosted, latin) */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal; font-weight: 500; font-display: swap;
  src: url("/assets/fonts/jakarta-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2013-2014, U+2018-201D, U+2026;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal; font-weight: 600; font-display: swap;
  src: url("/assets/fonts/jakarta-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2013-2014, U+2018-201D, U+2026;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal; font-weight: 700; font-display: swap;
  src: url("/assets/fonts/jakarta-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2013-2014, U+2018-201D, U+2026;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal; font-weight: 800; font-display: swap;
  src: url("/assets/fonts/jakarta-800.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2013-2014, U+2018-201D, U+2026;
}

:root {
  --bg: #F6F8F7;   /* soft grey-green — white surfaces lift off it */
  --surface: #FFFFFF;
  --surface2: #F4F7F5;
  --line: rgba(0, 0, 0, 0.12);
  --line-strong: rgba(0, 0, 0, 0.22);

  --text: #0B0F0D;
  --muted: #5F6B66;
  --faint: #8A948F;

  /* Trail palette (SoleadTheme) */
  --mint: #37F4B5;
  --mint-ink: #0F6B4E;     /* brandText on light */
  --mint-soft: #A8F5D6;
  --mint-dark: #0D2F2B;

  /* Aurora — SoleadTheme.Aurora, the cool colour bleed */
  --aurora-deep: #2E6FE8;
  --aurora-royal: #2E86F0;
  --aurora-sky: #3E9CF0;

  --wrap: 1120px;
  --nav-h: 64px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Plus Jakarta Sans", var(--font);

  /* Legacy aliases for page-scoped styles (light-theme values) */
  --bg0: var(--bg);
  --bg1: var(--surface);
  --bg2: var(--surface2);
  --camp: #8F8A20;   /* campColor's light-mode olive — washed lemon vanishes on white */
  --chamfer: polygon(12px 0, calc(100% - 12px) 0, 100% 12px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px), 0 12px);
  --chamfer-sm: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px);

  /* Grain texture — one inline SVG, blended into chamfer fills */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html, .page-scroll { scroll-behavior: auto !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; }

::selection { background: var(--mint); color: #000; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ── Chamfer shell ───────────────────────────────────────────────────
   ChamferRect port. The element itself stays an ordinary box (so plain
   text children work); the shape is drawn beneath it:
     ::before = the ring (outline color), chamfered
     ::after  = the fill, chamfered slightly tighter, inset by --ringw
   Cut sizes follow the app's ratio (12/56 ≈ 21% of control height),
   capped on large surfaces the way morphing cards settle in the app. */
.ch, .chclip, .btn, .plan, .stats, .contact-card .email,
.chip, .ctl, .input-shell, .seg, .seg-btn, .nav-ava {
  position: relative;
  isolation: isolate;
  background: transparent;
  --cut: 10px;
  --ringw: 1px;
  --ring: var(--line);
  --fill: var(--surface);
  /* ChamferRect smoothing, browser-proof: the app's rounded chamfer
     (cut c, vertex radius 1.08c) sampled as a 24-point polygon — arcs
     via shape() render differently across engines, polygon() does not.
     Max deviation from the true arc ≈ 0.02·c (sub-pixel). */
  --poly: polygon(calc(100% - 1.4474*var(--cut)) 0%, calc(100% - 1.0341*var(--cut)) calc(0% + 0.0822*var(--cut)), calc(100% - 0.6837*var(--cut)) calc(0% + 0.3163*var(--cut)), calc(100% - 0.3163*var(--cut)) calc(0% + 0.6837*var(--cut)), calc(100% - 0.0822*var(--cut)) calc(0% + 1.0341*var(--cut)), 100% calc(0% + 1.4474*var(--cut)), 100% calc(100% - 1.4474*var(--cut)), calc(100% - 0.0822*var(--cut)) calc(100% - 1.0341*var(--cut)), calc(100% - 0.3163*var(--cut)) calc(100% - 0.6837*var(--cut)), calc(100% - 0.6837*var(--cut)) calc(100% - 0.3163*var(--cut)), calc(100% - 1.0341*var(--cut)) calc(100% - 0.0822*var(--cut)), calc(100% - 1.4474*var(--cut)) 100%, calc(0% + 1.4474*var(--cut)) 100%, calc(0% + 1.0341*var(--cut)) calc(100% - 0.0822*var(--cut)), calc(0% + 0.6837*var(--cut)) calc(100% - 0.3163*var(--cut)), calc(0% + 0.3163*var(--cut)) calc(100% - 0.6837*var(--cut)), calc(0% + 0.0822*var(--cut)) calc(100% - 1.0341*var(--cut)), 0% calc(100% - 1.4474*var(--cut)), 0% calc(0% + 1.4474*var(--cut)), calc(0% + 0.0822*var(--cut)) calc(0% + 1.0341*var(--cut)), calc(0% + 0.3163*var(--cut)) calc(0% + 0.6837*var(--cut)), calc(0% + 0.6837*var(--cut)) calc(0% + 0.3163*var(--cut)), calc(0% + 1.0341*var(--cut)) calc(0% + 0.0822*var(--cut)), calc(0% + 1.4474*var(--cut)) 0%);
  /* (2-√2)·ringw: the inner chamfer sits exactly --ringw inside the outer
     one on the 45° cut as well as the flats. A fixed 1px thinned every 1px
     ring to 0.71px at the corners and fattened 2px rings to 2.12px. */
  --cut-in: calc(var(--cut) - 0.5858 * var(--ringw));
  --poly-in: polygon(calc(100% - 1.4474*var(--cut-in)) 0%, calc(100% - 1.0341*var(--cut-in)) calc(0% + 0.0822*var(--cut-in)), calc(100% - 0.6837*var(--cut-in)) calc(0% + 0.3163*var(--cut-in)), calc(100% - 0.3163*var(--cut-in)) calc(0% + 0.6837*var(--cut-in)), calc(100% - 0.0822*var(--cut-in)) calc(0% + 1.0341*var(--cut-in)), 100% calc(0% + 1.4474*var(--cut-in)), 100% calc(100% - 1.4474*var(--cut-in)), calc(100% - 0.0822*var(--cut-in)) calc(100% - 1.0341*var(--cut-in)), calc(100% - 0.3163*var(--cut-in)) calc(100% - 0.6837*var(--cut-in)), calc(100% - 0.6837*var(--cut-in)) calc(100% - 0.3163*var(--cut-in)), calc(100% - 1.0341*var(--cut-in)) calc(100% - 0.0822*var(--cut-in)), calc(100% - 1.4474*var(--cut-in)) 100%, calc(0% + 1.4474*var(--cut-in)) 100%, calc(0% + 1.0341*var(--cut-in)) calc(100% - 0.0822*var(--cut-in)), calc(0% + 0.6837*var(--cut-in)) calc(100% - 0.3163*var(--cut-in)), calc(0% + 0.3163*var(--cut-in)) calc(100% - 0.6837*var(--cut-in)), calc(0% + 0.0822*var(--cut-in)) calc(100% - 1.0341*var(--cut-in)), 0% calc(100% - 1.4474*var(--cut-in)), 0% calc(0% + 1.4474*var(--cut-in)), calc(0% + 0.0822*var(--cut-in)) calc(0% + 1.0341*var(--cut-in)), calc(0% + 0.3163*var(--cut-in)) calc(0% + 0.6837*var(--cut-in)), calc(0% + 0.6837*var(--cut-in)) calc(0% + 0.3163*var(--cut-in)), calc(0% + 1.0341*var(--cut-in)) calc(0% + 0.0822*var(--cut-in)), calc(0% + 1.4474*var(--cut-in)) 0%);
}
.ch::before, .btn::before, .plan::before, .stats::before,
.contact-card .email::before,
.chip::before, .ctl::before, .input-shell::before, .seg::before {
  content: "";
  position: absolute; inset: 0; z-index: -2;
  background: var(--ring);
  clip-path: var(--poly);
}
.ch::after, .btn::after, .plan::after, .stats::after,
.contact-card .email::after,
.chip::after, .ctl::after, .input-shell::after, .seg::after {
  content: "";
  position: absolute; inset: var(--ringw); z-index: -1;
  background: var(--grain), linear-gradient(var(--fill), var(--fill));
  background-blend-mode: multiply, normal;
  clip-path: var(--poly-in);
}


/* Clip-only variant: the smooth chamfer as a clip on the element itself
   (media cells whose content fills the whole box — no ring, no fill). */
.chclip { clip-path: var(--poly); }

/* ── Aurora bleed — FoldedSheetCornerGlow (frozen spread pose) ───────
   Four blobs hanging from the surface's top edge, gaussian falloff
   (peak → 55% @38% → 22% @68% → clear), saturation lift, then the
   white readability scrim band so text keeps contrast. Positions and
   peaks are the app's frozen `animated: false` pose.
   CARD-scoped variant: used only inside the sign-in card
   (authui.js `.pau-wash.aurora`). Pages do NOT put `aurora` on <main>
   — they carry the fixed `.aurora-veil` from the page shell below. */
.aurora { position: relative; overflow: hidden; }
.aurora > * { position: relative; z-index: 1; }
.aurora::before {
  content: "";
  position: absolute; z-index: 0;
  left: 0; right: 0; top: -60px; height: 340px;
  pointer-events: none;
  filter: saturate(1.12) blur(6px);
  background:
    /* deep blue — dominant (peak .62) */
    radial-gradient(230px 230px at 55% 40px,
      rgba(46, 111, 232, 0.62) 0, rgba(46, 111, 232, 0.34) 38%,
      rgba(46, 111, 232, 0.14) 68%, transparent 100%),
    /* mint — crosses the blue (peak .60) */
    radial-gradient(215px 215px at 72% 50px,
      rgba(55, 244, 181, 0.60) 0, rgba(55, 244, 181, 0.33) 38%,
      rgba(55, 244, 181, 0.13) 68%, transparent 100%),
    /* royal blue — supporting (peak .32) */
    radial-gradient(190px 190px at 30% 55px,
      rgba(46, 134, 240, 0.32) 0, rgba(46, 134, 240, 0.18) 38%,
      rgba(46, 134, 240, 0.07) 68%, transparent 100%),
    /* sky blue — accent only (peak .38 × .15) */
    radial-gradient(200px 200px at 45% 40px,
      rgba(62, 156, 240, 0.06) 0, rgba(62, 156, 240, 0.03) 38%,
      transparent 100%);
}
.aurora::after {
  /* readability scrim — melts the wash toward the page exactly where
     content sits, top edge stays vivid */
  content: "";
  position: absolute; z-index: 0;
  left: 0; right: 0; top: -60px; height: 340px;
  pointer-events: none;
  background: linear-gradient(180deg,
    transparent 0%, rgba(255, 255, 255, 0.30) 45%,
    rgba(255, 255, 255, 0.30) 62%, var(--bg) 96%);
}
/* ── Page shell — the homepage's three layers, on EVERY page ─────────
   z0   .aurora-veil  fixed aurora band across the top of the viewport.
                      Never scrolls — the app pins FoldedSheetCornerGlow
                      to the top edge and lets content pass beneath it
                      (JournalDetailView / PaywallView auroraBand).
   z1   .page-scroll  fixed inset scroller; its mask crops content at the
                      nav line so nothing ever paints under the links.
   z100 .nav          transparent, floats above (unchanged).
   Markup: <div class="aurora-veil" aria-hidden="true"></div> first in
   <body>, then <div class="page-scroll" id="page-scroll" tabindex="-1">
   wrapping <main>…</main> (+ footer). explore.html is a full-viewport
   map with its own .topbar and does not use the shell (the app's map
   has no aurora either — the Discover sheet carries it). */
body:has(> .page-scroll) { overflow: hidden; }
.aurora-veil {
  position: fixed; top: 0; left: 0; right: 0; height: 420px;
  z-index: 0; pointer-events: none; overflow: hidden;
}
.aurora-veil::before {
  content: ""; position: absolute;
  left: 0; right: 0; top: -60px; height: 420px;
  filter: saturate(1.12) blur(6px);
  background:
    radial-gradient(340px 300px at 58% 40px,
      rgba(46, 111, 232, 0.55) 0, rgba(46, 111, 232, 0.30) 38%,
      rgba(46, 111, 232, 0.12) 68%, transparent 100%),
    radial-gradient(320px 280px at 78% 60px,
      rgba(55, 244, 181, 0.52) 0, rgba(55, 244, 181, 0.29) 38%,
      rgba(55, 244, 181, 0.11) 68%, transparent 100%),
    radial-gradient(280px 250px at 26% 60px,
      rgba(46, 134, 240, 0.30) 0, rgba(46, 134, 240, 0.17) 38%,
      rgba(46, 134, 240, 0.07) 68%, transparent 100%),
    radial-gradient(300px 260px at 42% 40px,
      rgba(62, 156, 240, 0.06) 0, rgba(62, 156, 240, 0.03) 38%,
      transparent 100%);
}
.aurora-veil::after {
  content: ""; position: absolute;
  left: 0; right: 0; top: -60px; height: 420px;
  background: linear-gradient(180deg,
    transparent 0%, rgba(255, 255, 255, 0.30) 45%,
    rgba(255, 255, 255, 0.30) 62%, var(--bg) 96%);
}
.page-scroll {
  position: fixed; inset: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-padding-top: var(--nav-h); /* focus()/scrollIntoView land below the nav, never under it */
  z-index: 1;
  -webkit-mask-image: linear-gradient(180deg, transparent var(--nav-h), #000 var(--nav-h));
  mask-image: linear-gradient(180deg, transparent var(--nav-h), #000 var(--nav-h));
}
.page-scroll:focus { outline: none; }
/* anchor + focus targets land below the crop line */
.page-scroll [id] { scroll-margin-top: calc(var(--nav-h) + 48px); }

/* ── Buttons ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  white-space: nowrap;
  --h: 48px;
  height: var(--h); padding: 0 26px;
  font: 700 15px/1.2 var(--font);
  text-decoration: none;
  cursor: pointer;
  border: 0;
  transition: transform 0.15s ease, opacity 0.15s ease;
  /* ChamferRect: cut = 12/56 of the control height; the vertex radius
     13/12·cut is baked into --poly. ONE ring weight for every button —
     1.5px, the app's black-on-mint outline (ProfileView / RouteHub /
     WeeklyStats). Bare .btn = the white (ghost) button.
     Any page-level height/min-height override on .btn must set --h too,
     or the cut stays sized for 48px. */
  --cut: calc(var(--h) * 0.2143);
  --ringw: 1.5px;
  --ring: var(--line-strong);
  --fill: var(--surface);
}
.btn:active { transform: scale(0.98); }
.btn:hover::after { filter: brightness(1.03); }

/* Mint fill: black text, black outline — always (brand law). */
.btn-mint { color: #000; --ring: #000; --fill: var(--mint); }

/* White CTA, hairline outline (the app's white secondary buttons: ink 0.18–0.25) */
.btn-ghost { color: var(--text); --ring: var(--line-strong); --fill: var(--surface); }

/* Black fill */
.btn-dark { color: #fff; --ring: #000; --fill: #101512; }

.btn-sm { --h: 38px; padding: 0 18px; font-size: 13.5px; }

/* ── Home segmented toggle — the app's Discover | Map capsule ──────
   Outer shell = white glass chamfer (ring/fill via the shared pseudo
   shells); the active segment is a mint chamfer with a black traced
   ring, black-on-mint per brand law. */
.seg {
  display: inline-flex; gap: 4px; padding: 4px;
  --cut: 9.9px; --ringw: 1px; --ring: var(--line);   /* 46px × 0.2143; container keeps the app's 1pt glass hairline */
  --fill: rgba(255, 255, 255, 0.9);
}
.seg::after { -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.seg-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 38px; padding: 0 22px;
  border: 0; cursor: pointer; background: transparent;
  text-decoration: none;
  color: var(--muted); font: 700 14.5px/1 var(--font);
  --cut: 8.1px; --ringw: 1.5px;   /* 38 × 0.2143; on-state ring = the shared button weight */
}
.seg-btn:hover { color: var(--text); }
.seg-btn.on { color: #000; }
.seg-btn.on::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: #000; clip-path: var(--poly);
}
.seg-btn.on::after {
  content: ""; position: absolute; inset: var(--ringw); z-index: -1;
  background: var(--mint); clip-path: var(--poly-in);
}

:is(a, button, input, [tabindex]):focus-visible {
  outline: 2px solid var(--mint-ink);
  outline-offset: 2px;
}

/* ── Nav ───────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  /* no background, ever — the links float over the page */
  background: transparent;
  pointer-events: none;
}
.nav a, .nav .nav-cta, .nav .nav-links { pointer-events: auto; }
/* Log in floats over the aurora: the SAME shell as every other button,
   translucent fill so the bleed shows through. (A transparent fill is
   impossible here — ::before is a solid ring-colour polygon.) This one
   rule covers the nav Log in on every page; no per-page edits. */
.nav .btn-ghost { --fill: rgba(255, 255, 255, 0.82); }

.nav-inner {
  position: relative; z-index: 2;
  max-width: var(--wrap); margin: 0 auto; padding: 0 24px;
  height: 100%;
  display: flex; align-items: center; gap: 26px;
}
.nav-logo { display: flex; align-items: center; text-decoration: none; margin-right: 4px; }
.nav-logo img { height: 26px; width: auto; }
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a {
  color: var(--muted); text-decoration: none;
  font-size: 14px; font-weight: 600;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-spacer { flex: 1; }
.nav-cta { display: flex; gap: 10px; align-items: center; }
/* Chamfered-octagon avatar — AvatarView.swift parity. The app steps its
   geometry by size band (not a ratio):
     >=60pt: ring 3.5, gap 2.5 (photo inset 6),   outer cut 12, photo cut 8.5
     40-59:  ring 2.5, gap 2   (photo inset 4.5), outer cut 8,  photo cut 5.4
     <40:    ring 2,   gap 1.5 (photo inset 3.5), outer cut 6,  photo cut 4
   Resting ring = half the ring width, gray 0.15. Story callers set --ring
   (conic gradient) + --ringw = full ring width. octAvatar() adds .md/.sm.
   --poly-img = the same 24-pt smoothed chamfer keyed to --cut-img, so the
   photo's corner matches the ring's (AvatarView.innerCut correction).
   Vertex smoothing is approximate by design: --poly/--poly-in/--poly-img
   bake a fixed vertex radius of 1.08·cut, while the app uses smooth
   14/10/5 for cut 12/8/6 (and 16 on the edit-profile ring). Sub-pixel at
   28-100px — do not "fix". */
.oava {
  --osize: 72px;
  --cut: 12px;
  --cut-img: 8.5px;
  --inset: 6px;
  --ringw: 1.75px;
  --ring: rgba(0, 0, 0, 0.15);
  --fill: var(--surface);
  --poly-img: polygon(calc(100% - 1.4474*var(--cut-img)) 0%, calc(100% - 1.0341*var(--cut-img)) calc(0% + 0.0822*var(--cut-img)), calc(100% - 0.6837*var(--cut-img)) calc(0% + 0.3163*var(--cut-img)), calc(100% - 0.3163*var(--cut-img)) calc(0% + 0.6837*var(--cut-img)), calc(100% - 0.0822*var(--cut-img)) calc(0% + 1.0341*var(--cut-img)), 100% calc(0% + 1.4474*var(--cut-img)), 100% calc(100% - 1.4474*var(--cut-img)), calc(100% - 0.0822*var(--cut-img)) calc(100% - 1.0341*var(--cut-img)), calc(100% - 0.3163*var(--cut-img)) calc(100% - 0.6837*var(--cut-img)), calc(100% - 0.6837*var(--cut-img)) calc(100% - 0.3163*var(--cut-img)), calc(100% - 1.0341*var(--cut-img)) calc(100% - 0.0822*var(--cut-img)), calc(100% - 1.4474*var(--cut-img)) 100%, calc(0% + 1.4474*var(--cut-img)) 100%, calc(0% + 1.0341*var(--cut-img)) calc(100% - 0.0822*var(--cut-img)), calc(0% + 0.6837*var(--cut-img)) calc(100% - 0.3163*var(--cut-img)), calc(0% + 0.3163*var(--cut-img)) calc(100% - 0.6837*var(--cut-img)), calc(0% + 0.0822*var(--cut-img)) calc(100% - 1.0341*var(--cut-img)), 0% calc(100% - 1.4474*var(--cut-img)), 0% calc(0% + 1.4474*var(--cut-img)), calc(0% + 0.0822*var(--cut-img)) calc(0% + 1.0341*var(--cut-img)), calc(0% + 0.3163*var(--cut-img)) calc(0% + 0.6837*var(--cut-img)), calc(0% + 0.6837*var(--cut-img)) calc(0% + 0.3163*var(--cut-img)), calc(0% + 1.0341*var(--cut-img)) calc(0% + 0.0822*var(--cut-img)), calc(0% + 1.4474*var(--cut-img)) 0%);
  width: var(--osize); height: var(--osize);
  flex-shrink: 0;
  display: block;
}
.oava.md { --cut: 8px; --cut-img: 5.4px; --inset: 4.5px; --ringw: 1.25px; }
.oava.sm { --cut: 6px; --cut-img: 4px;   --inset: 3.5px; --ringw: 1px; }
.oava img, .oava .fb {
  position: absolute;
  inset: var(--inset);
  /* abs-pos replaced elements ignore inset for auto sizing — a portrait
     photo renders at intrinsic aspect and spills the octagon. Pin both. */
  width: calc(var(--osize) - 2 * var(--inset)); height: calc(var(--osize) - 2 * var(--inset));
  object-fit: cover;
  clip-path: var(--poly-img);
  background: var(--surface2);
}
.oava .fb {
  display: flex; align-items: center; justify-content: center;
  font: 800 calc(var(--osize) * 0.38)/1 var(--font);
  color: var(--text);
}

/* PremiumBadge — white chamfer tile with the aurora wash and the black
   mark (PremiumBadge.swift parity: no outline, no shadow). */
.pbadge {
  position: relative;
  display: inline-block;
  width: 18px; height: 18px;
  vertical-align: -3px;
  margin-left: 6px;
  clip-path: polygon(3.5px 0, calc(100% - 3.5px) 0, 100% 3.5px, 100% calc(100% - 3.5px), calc(100% - 3.5px) 100%, 3.5px 100%, 0 calc(100% - 3.5px), 0 3.5px);
  background:
    radial-gradient(70% 70% at 18% 15%, rgba(46,111,232,0.75), transparent 70%),
    radial-gradient(70% 70% at 85% 20%, rgba(55,244,181,0.7), transparent 70%),
    radial-gradient(70% 70% at 20% 85%, rgba(62,156,240,0.6), transparent 70%),
    radial-gradient(70% 70% at 85% 85%, rgba(46,134,240,0.6), transparent 70%),
    #FFFFFF;
}
.pbadge svg { position: absolute; inset: 19%; width: 62%; height: 62%; }

/* Red unread badge — SoleadTheme.badge chamfer chip */
.noti-badge {
  position: absolute; top: -5px; right: -7px;
  min-width: 16px; height: 15px;
  padding: 0 4px;
  display: flex; align-items: center; justify-content: center;
  background: rgb(255, 69, 58);
  color: #fff;
  font: 900 10px/1 var(--font);
  clip-path: polygon(3px 0, calc(100% - 3px) 0, 100% 3px, 100% calc(100% - 3px), calc(100% - 3px) 100%, 3px 100%, 0 calc(100% - 3px), 0 3px);
}

/* Premium badge chip — aurora tile, shared by account + feed */
.premium-chip {
  display: inline-flex; align-items: center;
  margin-left: 10px; padding: 4px 10px;
  clip-path: var(--chamfer-sm);
  background: linear-gradient(120deg, var(--aurora-deep), var(--aurora-sky) 55%, var(--mint));
  color: #fff; font: 800 10.5px/1 var(--font);
  letter-spacing: 0.12em;
  vertical-align: 3px;
}

/* Signed-in avatar chip (navauth.js / feed.html swap it in for "Log in").
   Same octagon as every other avatar — markup is `ch oava sm nav-ava`;
   36px sits in the app's <40 band (cut 6, ring 1, photo inset 3.5). */
.nav-ava { --osize: 36px; text-decoration: none; }
@media (max-width: 760px) {
  .nav-links { display: none; }
}

main { padding-top: var(--nav-h); }

/* ── Hero ──────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  /* pull up under the transparent nav so the aurora starts at y=0 */
  margin-top: calc(-1 * var(--nav-h));
  padding: calc(56px + var(--nav-h)) 0 40px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 44px;
  align-items: center;
}
/* Neutral type, brand geometry: eyebrow text is gray, only the little
   ▲ keeps the brand green. Titles and body stay black — no green type. */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--muted);
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: lowercase;
}
.eyebrow .tri { font-size: 11px; color: var(--mint-ink); }
h1.display {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: clamp(36px, 5.4vw, 58px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
}
h1.display em { font-style: normal; }

/* One display face on every title, site-wide — lighter tier */
h1, h2, h3, .title { font-family: var(--font-display); }
.title { font-weight: 600; }
.feature-row .copy h3 { font-weight: 600; }
.hero-sub {
  margin-top: 18px;
  max-width: 480px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}
.hero-ctas { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 14px; color: var(--faint); font-size: 13px; }
.hero-note a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }

/* Stats strip — hairline-outlined chamfer bar, complete rows always */
.stats {
  margin-top: 40px;
  --cut: 14px; --ring: #000; --ringw: 1.5px; --fill: var(--surface);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stats .stat { padding: 16px 20px; }
.stats .stat + .stat { border-left: 1px solid var(--line); }
.stat b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.stat span { color: var(--muted); font-size: 12.5px; }
@media (max-width: 820px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats .stat:nth-child(3) { border-left: 0; }
  .stats .stat:nth-child(1), .stats .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
}

/* ── Phone frame (hardware, stays dark) ────────────────────────────── */
.phone {
  position: relative;
  isolation: isolate; /* keeps the glow above ancestor card fills */
  width: min(280px, 72vw);
  margin: 0 auto;
  border-radius: 44px;
  background: #0A0A0F;
  padding: 4px;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 30px 60px -18px rgba(11, 15, 13, 0.35);
}
/* Aurora bleed around every device — the wash hugging the hardware */
.phone::before {
  content: "";
  /* glow wraps sides + bottom but tucks under the top bezel — a halo
     reaching above the phone slices sharply at the nav crop line */
  position: absolute; inset: 5% -26% -20% -26%;
  z-index: -1;
  pointer-events: none;
  filter: blur(32px) saturate(1.12);
  background:
    radial-gradient(46% 38% at 22% 16%, rgba(46, 111, 232, 0.40), transparent 70%),
    radial-gradient(44% 38% at 80% 26%, rgba(55, 244, 181, 0.38), transparent 70%),
    radial-gradient(40% 34% at 28% 84%, rgba(46, 134, 240, 0.24), transparent 70%),
    radial-gradient(38% 32% at 78% 80%, rgba(62, 156, 240, 0.20), transparent 70%);
}
.phone video, .phone img.screen {
  width: 100%;
  aspect-ratio: 884 / 1920;
  object-fit: cover;
  border-radius: 40px;
  background: #141816;
}
.phone-sm { width: min(224px, 62vw); border-radius: 36px; padding: 3.5px; }
.phone-sm video, .phone-sm img.screen { border-radius: 32.5px; }

/* ── Sections ──────────────────────────────────────────────────────── */
.section { padding: 64px 0; }
.section-head { max-width: 720px; }
h2.title {
  margin-top: 10px;
  font-size: clamp(27px, 3.8vw, 40px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
}
.section-head p.sub { margin-top: 12px; color: var(--muted); font-size: 16px; max-width: 560px; }

/* Feature rows — copy and phone side by side from 720px up */
.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 40px;
  align-items: center;
  padding: 26px 0;
}
.feature-row h3 {
  margin-top: 10px;
  font-size: clamp(23px, 2.8vw, 31px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
}
.feature-row p.body { margin-top: 10px; color: var(--muted); font-size: 15.5px; max-width: 440px; }
.feature-row ul.points { margin-top: 14px; list-style: none; }
.feature-row ul.points li {
  position: relative;
  padding: 5px 0 5px 24px;
  color: var(--muted);
  font-size: 14.5px;
}
.feature-row ul.points li::before {
  content: "▲";
  position: absolute; left: 0; top: 6px;
  color: var(--mint-ink);
  font-size: 10px;
}
.feature-row ul.points li b { color: var(--text); font-weight: 650; }
.feature-row .learn {
  display: inline-block; margin-top: 14px;
  font-weight: 650; font-size: 14px;
  color: var(--mint-ink);
  text-decoration: underline; text-underline-offset: 3px;
}

/* ── Pricing ───────────────────────────────────────────────────────── */
.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  align-items: stretch;
}
.plan {
  --cut: 14px; --ring: var(--line); --ringw: 1px; --fill: var(--surface);
  padding: 28px 26px;
  display: flex; flex-direction: column;
}
.plan.premium { --ring: rgba(0, 0, 0, 0.55); --ringw: 1.5px; }
.plan .plan-name { font-size: 13px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.plan .plan-name.mint { color: var(--text); }
.plan .price { margin-top: 12px; font-size: 36px; font-weight: 800; letter-spacing: -0.03em; }
.plan .price small { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan .alt-price { color: var(--muted); font-size: 14px; margin-top: 4px; }
.plan .alt-price b { color: var(--text); font-weight: 700; }
.plan ul { list-style: none; margin-top: 18px; flex: 1; }
.plan ul li { position: relative; padding: 6px 0 6px 24px; color: var(--muted); font-size: 14px; }
.plan ul li::before { content: "▲"; position: absolute; left: 0; top: 7px; font-size: 10px; color: var(--mint-ink); }
.plan ul li b { color: var(--text); font-weight: 650; }
.plan .plan-cta { margin-top: 22px; }
.plan .plan-foot { margin-top: 12px; color: var(--faint); font-size: 12.5px; }

/* ── App Store badge + QR placeholder ──────────────────────────────── */
.store-row {
  margin-top: 28px;
  display: flex; gap: 26px; align-items: center; justify-content: center;
  flex-wrap: wrap;
}
/* Hero: bare QR on the LEFT, [badge over outlined Explore] beside it */
.hero-ctas { display: flex; align-items: flex-start; gap: 26px; flex-wrap: wrap; }
.get-col { display: flex; flex-direction: column; gap: 12px; width: 166px; }
.get-col .btn { width: 100%; }

/* Branded App Store button — the site's outlined chamfer, not the
   stock black badge */
.store-btn {
  --h: 54px; padding: 0 16px; gap: 10px;
  --ring: #000; --fill: var(--surface);   /* outlined badge: black ring, same 1.5px shell */
}
.store-btn .ap { width: 21px; height: 21px; flex-shrink: 0; }
.store-btn .st { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.12; }
.store-btn .st small { font: 500 9.5px var(--font); letter-spacing: 0.02em; }
.store-btn .st b { font: 700 16.5px var(--font); letter-spacing: -0.01em; }
.store-btn.pending { color: var(--muted); } /* crisp ring, quiet label until release */
.qr-side { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.qr-side img { width: 104px; height: 104px; image-rendering: pixelated; }
.qr-side span { font-size: 10px; color: var(--muted); }
@media (max-width: 900px) {
  .qr-side { display: none; }
  .get-col { width: auto; }
}

/* ── Forms (waitlist / auth) ───────────────────────────────────────── */
.field label { display: block; font-size: 13px; font-weight: 650; margin: 18px 0 6px; }
/* Inputs can't carry pseudo-element shells (form elements render no
   ::before/::after), so a border+clip-path combo leaves the border
   floating where the corners are cut. The chamfer lives on a wrapper
   shell instead; the input inside is a plain transparent field. */
.input-shell {
  display: flex;
  --cut: 9px;
  --ring: var(--line-strong);
  --ringw: 1px;
  --fill: var(--surface);
}
.input-shell:focus-within { --ring: var(--mint-ink); --ringw: 1.5px; }
.input {
  flex: 1;
  width: 100%;
  height: 46px;
  background: transparent;
  color: var(--text);
  border: 0;
  padding: 0 14px;
  font-size: 16px; /* 16px stops iOS Safari zooming on focus */
  font-family: inherit;
}
.input::placeholder { color: var(--faint); }
.input:focus { outline: none; }

.notify-form { display: flex; gap: 10px; flex-wrap: wrap; max-width: 460px; }
.notify-form .input-shell { flex: 1; min-width: 220px; }
.form-msg { margin-top: 12px; font-size: 14px; }
.form-msg.ok { color: var(--mint-ink); }
.form-msg.err { color: #B3261E; }

/* ── Footer ────────────────────────────────────────────────────────── */
footer.site {
  border-top: 1px solid var(--line);
  padding: 48px 0 40px;
  background: var(--bg);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
}
.foot-brand img { height: 24px; width: auto; }
.foot-brand p { margin-top: 14px; color: var(--faint); font-size: 13px; max-width: 260px; }
.foot-col h5 { font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.foot-col a { display: block; margin-top: 12px; color: var(--muted); text-decoration: none; font-size: 14px; }
.foot-col a:hover { color: var(--text); }
/* Registered entity + address. Apple checks the website for the legal
   name during Organization enrollment, and CAN-SPAM requires a postal
   address on marketing email — this footer is the canonical source for
   both. Never remove. */
.foot-legal {
  margin-top: 40px; padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 16px;
  justify-content: space-between;
  color: var(--faint); font-size: 12.5px; line-height: 1.7;
}
.foot-legal a { color: var(--faint); text-decoration: none; }
.foot-legal a:hover { color: var(--muted); }
@media (max-width: 860px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Legal / content pages (light shell, text preserved) ───────────── */
main.page { padding: calc(var(--nav-h) + 44px) 0 80px; }
main.page .wrap, main.wrap.page { max-width: 760px; }
main.wrap.page { padding: calc(var(--nav-h) + 44px) 24px 80px; }
main.page h1 { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; }
main.page p.updated { color: var(--faint); font-size: 13px; margin-top: 6px; }
main.page h2 { font-size: 19px; font-weight: 750; margin: 34px 0 10px; }
main.page p, main.page li { color: #38443E; font-size: 15.5px; margin-top: 10px; }
main.page ul { padding-left: 22px; margin-top: 8px; }
main.page a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
main.page strong, main.page b { color: var(--text); }

.contact-card {
  margin-top: 28px;
  --cut: 12px; --ring: var(--line); --ringw: 1px; --fill: var(--surface);
  padding: 26px;
}
.contact-card .email {
  display: inline-block;
  position: relative; isolation: isolate;
  margin-top: 10px;
  color: #000;
  --cut: 10.6px; --ring: #000; --ringw: 1.5px; --fill: var(--mint);   /* ~50px tall (line-height 1.6) × 0.2143; shared ring weight */
  padding: 12px 20px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
}
.contact-card p.small { font-size: 13.5px; color: var(--muted); }

/* ── Minimal centered pages (404, deep-link fallbacks) ─────────────── */
main.center {
  min-height: calc(100vh - var(--nav-h));
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 40px) 24px 80px;
}
main.center h1 { font-size: clamp(28px, 4.6vw, 42px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
main.center h1 em { font-style: normal; }
main.center p.sub { margin-top: 14px; color: var(--muted); font-size: 16px; max-width: 420px; }

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding-top: calc(36px + var(--nav-h)); }
  /* Single column: copy always leads, media follows — no flip. */
  .feature-row { grid-template-columns: 1fr; gap: 22px; padding: 22px 0; }
  .section { padding: 48px 0; }
}
@media (min-width: 721px) {
  .feature-row.flip .media { order: -1; }
}
