/* =============================================================
   Sundry — landing site
   Aesthetic: "the quiet instrument" — deep-ink canvas, teal used
   strictly as data, graph-paper texture, mono readouts, hairlines.
   Light + dark are both first-class.
   ============================================================= */

/* ---- Self-hosted variable fonts (no runtime network) ---- */
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk.woff2") format("woff2");
  font-weight: 400 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk.woff2") format("woff2");
  font-weight: 300 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
}

/* ============================ TOKENS ============================ */
:root {
  /* base = DARK (deep ink) */
  --ink-900: #0B0F14;
  --ink-850: #0E141C;
  --ink-800: #10151D;
  --ink-750: #141C28;
  --ink-700: #18212F;
  --ink-600: #1F2A3A;

  --surface:        var(--ink-800);
  --surface-2:      #131B26;
  --surface-raised: #17202D;
  --bg:             var(--ink-900);

  --text:   #E9F1F6;
  --text-2: #C2CEDA;
  --slate:  #93A3B6;
  --slate-dim: #6C7C8E;

  --teal-hi:   #2CE0F2;
  --teal:      #16C6DC;
  --teal-lo:   #0E9FB4;
  --teal-deep: #0B8296;

  --line:        rgba(147, 163, 182, 0.14);
  --line-strong: rgba(147, 163, 182, 0.24);
  --grid:        rgba(147, 163, 182, 0.045);
  --grid-major:  rgba(147, 163, 182, 0.075);

  --accent-grad: linear-gradient(135deg, var(--teal-hi), var(--teal-lo));
  --glow: rgba(44, 224, 242, 0.16);

  --card-bg: linear-gradient(180deg, rgba(255,255,255,0.028), rgba(255,255,255,0.006));
  --card-line: rgba(147,163,182,0.16);
  --card-shadow: 0 1px 0 rgba(255,255,255,0.03) inset, 0 24px 60px -30px rgba(0,0,0,0.8);

  --shot-frame: #05080C;
  --shot-fill: #0E141C;

  --focus: #47ECFF;

  --maxw: 1200px;
  --radius: 18px;
  --radius-sm: 12px;

  --ff-display: "Schibsted Grotesk", "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  --ff-body: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ff-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --header-h: 68px;
  color-scheme: dark;
}

/* ---- LIGHT theme (system pref when un-toggled, or forced) ---- */
:root[data-theme="light"],
:root[data-theme="light"] body {
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) { color-scheme: light; }
}

/* one light palette, applied to both "forced light" and "system light, untoggled" */
:root[data-theme="light"] {
  --bg: #F4F7FA;
  --surface: #FFFFFF;
  --surface-2: #FBFDFE;
  --surface-raised: #FFFFFF;

  --text: #101720;
  --text-2: #33414F;
  --slate: #566575;
  --slate-dim: #8492A1;

  --teal-hi: #12B7CE;
  --teal: #0FA6BD;
  --teal-lo: #0C8CA0;
  --teal-deep: #0B8296;

  --line: rgba(24, 40, 60, 0.10);
  --line-strong: rgba(24, 40, 60, 0.16);
  --grid: rgba(24, 40, 60, 0.038);
  --grid-major: rgba(24, 40, 60, 0.06);

  --glow: rgba(18, 183, 206, 0.12);
  --accent-grad: linear-gradient(135deg, #12B7CE, #0C8CA0);

  --card-bg: linear-gradient(180deg, #FFFFFF, #FAFCFD);
  --card-line: rgba(24, 40, 60, 0.10);
  --card-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 22px 48px -30px rgba(15, 42, 60, 0.35);

  --shot-frame: #DCE4EC;
  --shot-fill: #EDF2F6;

  --focus: #0C8CA0;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --bg: #F4F7FA;
    --surface: #FFFFFF;
    --surface-2: #FBFDFE;
    --surface-raised: #FFFFFF;
    --text: #101720;
    --text-2: #33414F;
    --slate: #566575;
    --slate-dim: #8492A1;
    --teal-hi: #12B7CE;
    --teal: #0FA6BD;
    --teal-lo: #0C8CA0;
    --teal-deep: #0B8296;
    --line: rgba(24, 40, 60, 0.10);
    --line-strong: rgba(24, 40, 60, 0.16);
    --grid: rgba(24, 40, 60, 0.038);
    --grid-major: rgba(24, 40, 60, 0.06);
    --glow: rgba(18, 183, 206, 0.12);
    --accent-grad: linear-gradient(135deg, #12B7CE, #0C8CA0);
    --card-bg: linear-gradient(180deg, #FFFFFF, #FAFCFD);
    --card-line: rgba(24, 40, 60, 0.10);
    --card-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 22px 48px -30px rgba(15, 42, 60, 0.35);
    --shot-frame: #DCE4EC;
    --shot-fill: #EDF2F6;
    --focus: #0C8CA0;
  }
}

/* ============================ RESET ============================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--ff-body);
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: clamp(16px, 0.6vw + 15px, 18px);
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color 0.5s ease, color 0.5s ease;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--ff-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; margin: 0; }
p { margin: 0; }
::selection { background: var(--teal-hi); color: #04121a; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================ ATMOSPHERE ======================== */
/* graph-paper plot texture fixed behind everything */
.plot-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px);
  background-size: 32px 32px, 32px 32px, 160px 160px, 160px 160px;
  background-position: -1px -1px;
  transition: background-color 0.5s ease;
}
.plot-bg::after { /* vignette so grid fades at edges */
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 50% -10%, transparent 40%, var(--bg) 100%);
}
.aura {
  position: fixed;
  z-index: -1;
  pointer-events: none;
  filter: blur(20px);
}
.aura--hero {
  top: -240px; right: -120px;
  width: 720px; height: 720px;
  background: radial-gradient(circle at 50% 50%, var(--glow), transparent 62%);
}

/* ============================ LAYOUT =========================== */
.wrap { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }
section { position: relative; }
.section-pad { padding-block: clamp(72px, 10vw, 140px); }

.eyebrow {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--teal-lo);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.section-head { max-width: 640px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head h2 {
  font-size: clamp(2rem, 4.6vw, 3.15rem);
  margin-top: 18px;
  letter-spacing: -0.03em;
}
.section-head p { margin-top: 18px; color: var(--slate); font-size: 1.08rem; max-width: 56ch; }

/* ============================ HEADER =========================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--ff-display); font-weight: 600; }
.brand .mark { width: 30px; height: 30px; border-radius: 8px; flex: none; box-shadow: 0 4px 14px -6px var(--glow); }
.brand .name { font-size: 1.18rem; letter-spacing: -0.01em; }
.brand .name b { color: var(--text); font-weight: 600; }
.brand .name span { color: var(--slate); font-weight: 500; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a.navlink {
  padding: 8px 14px; border-radius: 10px; color: var(--slate);
  font-size: 0.94rem; font-weight: 500; transition: color .2s, background .2s;
}
.nav a.navlink:hover { color: var(--text); background: color-mix(in srgb, var(--slate) 12%, transparent); }
@media (max-width: 720px) { .nav a.navlink { display: none; } }

.theme-toggle {
  width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--card-bg);
  border: 1px solid var(--card-line);
  color: var(--text);
  transition: transform .2s, border-color .2s, background .2s;
}
.theme-toggle:hover { transform: translateY(-1px); border-color: var(--teal-lo); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme]) .theme-toggle .icon-moon { display: none; }
}

/* ============================ BUTTONS ========================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px; border-radius: 13px;
  font-weight: 600; font-size: 0.98rem; letter-spacing: -0.005em;
  border: 1px solid transparent; white-space: nowrap;
  transition: transform .18s ease, box-shadow .25s ease, background .2s, border-color .2s, color .2s;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary {
  color: #04141b;
  background: var(--accent-grad);
  box-shadow: 0 10px 30px -12px var(--teal-lo), 0 0 0 1px rgba(44,224,242,0.25) inset;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -14px var(--teal-lo), 0 0 0 1px rgba(44,224,242,0.4) inset; }
.btn-ghost {
  color: var(--text);
  background: var(--card-bg);
  border-color: var(--card-line);
}
.btn-ghost:hover { border-color: var(--teal-lo); transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; }

/* ============================ HERO ============================= */
.hero { padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(56px, 8vw, 110px); overflow: hidden; }
/* faint trend line drawn across the hero background, echoing the app mark */
.hero-trend {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none; opacity: 0.5;
}
.hero-trend .trace {
  fill: none; stroke: url(#heroStroke); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1600; stroke-dashoffset: 1600;
  animation: draw 2.6s cubic-bezier(.6,.05,.2,1) .35s forwards;
  filter: drop-shadow(0 0 10px var(--glow));
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .hero-trend .trace { animation: none; stroke-dashoffset: 0; } }
.hero .wrap { position: relative; z-index: 1; }
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
}
.hero-copy { max-width: 40ch; }
.hero-copy .eyebrow { margin-bottom: 22px; }
.hero h1 {
  font-size: clamp(2.6rem, 6.6vw, 4.6rem);
  letter-spacing: -0.04em;
  line-height: 0.98;
}
.hero h1 .accent {
  background: linear-gradient(120deg, var(--teal-hi), var(--teal-lo));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  position: relative;
}
.hero .sub {
  margin-top: 24px; font-size: clamp(1.05rem, 1.4vw, 1.24rem);
  color: var(--slate); max-width: 44ch; line-height: 1.55;
}
.hero-cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta {
  margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px 22px;
  font-family: var(--ff-mono); font-size: 0.74rem; letter-spacing: 0.06em;
  color: var(--slate-dim); text-transform: uppercase;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal); box-shadow: 0 0 10px var(--teal);
}

/* staggered load reveal */
.reveal { opacity: 0; transform: translateY(16px); animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards; }
.reveal.d1 { animation-delay: .05s; }
.reveal.d2 { animation-delay: .16s; }
.reveal.d3 { animation-delay: .27s; }
.reveal.d4 { animation-delay: .38s; }
.reveal.d5 { animation-delay: .5s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
}

/* ---- Hero stage: phone + floating readout ---- */
.hero-stage { position: relative; justify-self: center; width: 100%; max-width: 420px; }

/* Phone mockup */
.phone {
  position: relative; z-index: 1;
  width: 100%; aspect-ratio: 292 / 600;
  border-radius: 46px;
  padding: 8px; /* thin, modern Dynamic-Island-era bezel */
  background:
    linear-gradient(160deg, #202b3a, #0b0f15);
  box-shadow:
    0 2px 2px rgba(255,255,255,0.06) inset,
    0 40px 80px -30px rgba(0,0,0,0.75),
    0 0 0 1px rgba(147,163,182,0.10);
}
:root[data-theme="light"] .phone { background: linear-gradient(160deg, #c9d4df, #9fb0c0); box-shadow: 0 2px 2px rgba(255,255,255,0.5) inset, 0 40px 70px -34px rgba(20,40,60,0.5), 0 0 0 1px rgba(24,40,60,0.10); }
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .phone { background: linear-gradient(160deg, #c9d4df, #9fb0c0); box-shadow: 0 2px 2px rgba(255,255,255,0.5) inset, 0 40px 70px -34px rgba(20,40,60,0.5), 0 0 0 1px rgba(24,40,60,0.10); }
}
.phone-screen {
  position: relative; height: 100%; width: 100%;
  border-radius: 38px; overflow: hidden;
  background: var(--shot-fill);
  border: 1px solid rgba(0,0,0,0.5);
}

/* floating readout card echoing the app's "hero data point" */
.readout {
  position: absolute; z-index: 2; right: -22px; bottom: 46px;
  width: 190px; padding: 16px 16px 14px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface-raised) 88%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-line);
  box-shadow: var(--card-shadow);
}
@media (max-width: 480px) { .readout { right: -6px; width: 168px; } }
.readout .r-label { font-family: var(--ff-mono); font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--slate); }
.readout .r-value { font-family: var(--ff-display); font-weight: 600; font-size: 2.1rem; letter-spacing: -0.03em; margin-top: 4px; line-height: 1; }
.readout .r-value small { font-size: 0.9rem; color: var(--slate); font-weight: 500; margin-left: 3px; }
.readout .r-trend { margin-top: 6px; font-family: var(--ff-mono); font-size: 0.72rem; color: var(--teal-lo); display: inline-flex; align-items: center; gap: 5px; }
.readout .r-spark { margin-top: 12px; width: 100%; height: 34px; }

/* ============================ MARQUEE ========================= */
.trackstrip { border-block: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 40%, transparent); }
.trackstrip .wrap { display: flex; align-items: center; gap: 14px; padding-block: 18px; flex-wrap: wrap; justify-content: center; }
.trackstrip .lead { font-family: var(--ff-mono); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--slate-dim); }
.chip {
  font-family: var(--ff-mono); font-size: 0.78rem; letter-spacing: 0.02em;
  padding: 6px 13px; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--text-2);
  background: var(--card-bg);
}
.chip b { color: var(--teal-lo); font-weight: 600; }

/* ============================ FEATURES ========================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 880px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features-grid { grid-template-columns: 1fr; } }
.feature {
  position: relative;
  padding: 26px 24px 28px;
  border-radius: var(--radius);
  background: var(--card-bg);
  border: 1px solid var(--card-line);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease;
}
.feature::before { /* corner plot ticks */
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 100%;
  background:
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px) 0 0/48px 48px;
  opacity: 0.4; pointer-events: none;
  -webkit-mask-image: radial-gradient(120% 80% at 100% 0, #000, transparent 60%);
  mask-image: radial-gradient(120% 80% at 100% 0, #000, transparent 60%);
}
.feature:hover { transform: translateY(-4px); border-color: var(--teal-lo); }
.feature .f-ico {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 18px;
  color: var(--teal-hi);
  background: color-mix(in srgb, var(--teal-lo) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--teal-lo) 34%, transparent);
}
.feature .f-ico svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.22rem; letter-spacing: -0.02em; }
.feature p { margin-top: 10px; color: var(--slate); font-size: 0.98rem; }
.feature .f-idx {
  position: absolute; top: 20px; right: 22px;
  font-family: var(--ff-mono); font-size: 0.7rem; color: var(--slate-dim); letter-spacing: 0.1em;
}

/* ============================ PRIVACY ========================= */
.privacy-band { border-block: 1px solid var(--line); background: linear-gradient(180deg, color-mix(in srgb, var(--teal-deep) 8%, transparent), transparent 60%); }
.privacy-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
@media (max-width: 860px) { .privacy-grid { grid-template-columns: 1fr; gap: 44px; } }
.privacy-copy h2 { font-size: clamp(2rem, 4.4vw, 3rem); letter-spacing: -0.03em; }
.privacy-copy h2 em { font-style: normal; color: var(--teal-lo); }
.privacy-copy p { margin-top: 20px; color: var(--slate); max-width: 46ch; font-size: 1.06rem; }
.privacy-copy .btn-ghost { margin-top: 28px; }

.assure-list { display: grid; gap: 14px; }
.assure {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px 22px; border-radius: 15px;
  background: var(--card-bg); border: 1px solid var(--card-line);
  box-shadow: var(--card-shadow);
}
.assure .a-ico { flex: none; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: var(--teal-hi); background: color-mix(in srgb, var(--teal-lo) 14%, transparent); border: 1px solid color-mix(in srgb, var(--teal-lo) 30%, transparent); }
.assure .a-ico svg { width: 21px; height: 21px; }
.assure h4 { font-family: var(--ff-display); font-size: 1.06rem; font-weight: 600; letter-spacing: -0.01em; }
.assure p { margin-top: 5px; color: var(--slate); font-size: 0.94rem; }

/* ============================ SCREENSHOTS ===================== */
.gallery-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 22px; overflow-x: auto; padding-bottom: 14px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
@media (min-width: 900px) { .gallery-scroll { grid-template-columns: repeat(4, 1fr); grid-auto-flow: row; overflow: visible; } }
.gallery-scroll::-webkit-scrollbar { height: 8px; }
.gallery-scroll::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 8px; }

.shot { scroll-snap-align: start; }
.shot-frame {
  position: relative;
  aspect-ratio: 292 / 600;
  border-radius: 30px;
  padding: 9px;
  background: linear-gradient(160deg, var(--shot-frame), color-mix(in srgb, var(--shot-frame) 60%, #000));
  box-shadow: var(--card-shadow), 0 0 0 1px var(--line);
}
.shot-screen { position: relative; height: 100%; border-radius: 22px; overflow: hidden; background: var(--shot-fill); }
/* <picture> is inline by default — make it fill the screen so the img's height:100% resolves */
.shot-screen picture { display: block; height: 100%; }
.shot-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
/* hero phone mockup: the figure IS the screen, with the phone's own corner radius */
.shot-hero { margin: 0; height: 100%; }
.shot-hero .shot-screen { border-radius: 38px; }
/* styled placeholder shown until a real PNG is dropped in */
.shot-ph {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 10px;
  padding: 20px;
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px);
  background-size: 22px 22px;
  color: var(--slate-dim);
}
.shot-ph .ph-mark { width: 40px; height: 40px; margin: 0 auto; opacity: 0.85; }
.shot-ph .ph-name { font-family: var(--ff-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--slate); }
.shot-ph .ph-hint { font-family: var(--ff-mono); font-size: 0.6rem; letter-spacing: 0.05em; color: var(--slate-dim); }
.shot.has-img .shot-ph { display: none; }
/* until a real capture loads, keep the (broken) img fully hidden so no alt text shows */
.shot:not(.has-img) .shot-screen img { opacity: 0; }
.shot-cap { margin-top: 14px; text-align: center; font-size: 0.9rem; color: var(--slate); }
.shot-cap b { color: var(--text); font-weight: 600; display: block; font-family: var(--ff-display); letter-spacing: -0.01em; }

/* ============================ DOWNLOAD ======================== */
.download { text-align: center; }
.download-inner {
  border-radius: 26px; padding: clamp(44px, 6vw, 72px) clamp(24px, 5vw, 64px);
  background:
    radial-gradient(90% 140% at 50% -20%, color-mix(in srgb, var(--teal-lo) 18%, transparent), transparent 60%),
    var(--card-bg);
  border: 1px solid var(--card-line);
  box-shadow: var(--card-shadow);
  position: relative; overflow: hidden;
}
.download-inner .glow-mark { width: 60px; height: 60px; margin: 0 auto 22px; filter: drop-shadow(0 8px 26px var(--glow)); }
.download h2 { font-size: clamp(2rem, 4.6vw, 3rem); letter-spacing: -0.03em; }
.download p { margin: 16px auto 0; max-width: 48ch; color: var(--slate); }
.store-row { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 20px; min-width: 210px; border-radius: 14px;
  background: var(--surface-raised); border: 1px solid var(--card-line);
  color: var(--text); text-align: left;
  position: relative; transition: transform .2s, border-color .2s;
}
.store-btn:hover { transform: translateY(-2px); border-color: var(--teal-lo); }
.store-btn[aria-disabled="true"] { opacity: 0.72; cursor: default; }
.store-btn[aria-disabled="true"]:hover { transform: none; border-color: var(--card-line); }
.store-btn svg { width: 26px; height: 26px; flex: none; color: var(--text); }
.store-btn .s-txt { display: flex; flex-direction: column; line-height: 1.15; }
.store-btn .s-top { font-size: 0.66rem; font-family: var(--ff-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate); }
.store-btn .s-name { font-family: var(--ff-display); font-weight: 600; font-size: 1.02rem; }
.store-btn .s-flag {
  position: absolute; top: -9px; right: 12px;
  font-family: var(--ff-mono); font-size: 0.58rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 999px;
  background: var(--accent-grad); color: #04141b; font-weight: 600;
}
.download .health-note { margin-top: 30px; font-size: 0.82rem; color: var(--slate-dim); max-width: 60ch; margin-inline: auto; }

/* ============================ FOOTER ========================== */
.site-footer { border-top: 1px solid var(--line); padding-block: 54px 40px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-start; }
.footer-brand { max-width: 320px; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { color: var(--slate); font-size: 0.92rem; }
.footer-links { display: flex; gap: clamp(32px, 6vw, 72px); flex-wrap: wrap; }
.footer-col h5 { font-family: var(--ff-mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--slate-dim); margin: 0 0 14px; font-weight: 500; }
.footer-col a, .footer-col span { display: block; color: var(--slate); font-size: 0.94rem; margin-bottom: 9px; transition: color .2s; }
.footer-col a:hover { color: var(--teal-lo); }
/* Static footer text — must not read as a link next to real ones. */
.footer-col .f-note { color: var(--slate-dim); font-size: 0.84rem; cursor: default; }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: 0.84rem; color: var(--slate-dim); }
.footer-bottom .foot-mono { font-family: var(--ff-mono); font-size: 0.74rem; letter-spacing: 0.06em; color: var(--slate-dim); }

/* ============================ FAQ ============================= */
.faq { border-top: 1px solid var(--line); }
.faq-list { display: grid; gap: 12px; max-width: 820px; }
.faq-item {
  border-radius: var(--radius);
  background: var(--card-bg);
  border: 1px solid var(--card-line);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: border-color .25s ease;
}
.faq-item[open] { border-color: color-mix(in srgb, var(--teal-lo) 45%, var(--card-line)); }
.faq-item:hover { border-color: var(--teal-lo); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px 22px;
  cursor: pointer; list-style: none;
  font-family: var(--ff-display); font-weight: 600; letter-spacing: -0.01em;
  color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q { font-size: 1.08rem; line-height: 1.35; }
.faq-chevron {
  width: 22px; height: 22px; flex: none; color: var(--teal-lo);
  transition: transform .25s ease;
}
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-a { padding: 0 22px 22px; }
.faq-a p { color: var(--slate); font-size: 1rem; max-width: 68ch; }
@media (prefers-reduced-motion: reduce) { .faq-chevron { transition: none; } }

/* ============================ LEGAL PAGE ====================== */
.legal { max-width: 760px; margin-inline: auto; }
.legal-hero { padding-top: clamp(48px, 7vw, 88px); padding-bottom: 20px; }
.legal-hero .eyebrow { margin-bottom: 18px; }
.legal-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -0.035em; }
.legal-hero .meta { margin-top: 18px; font-family: var(--ff-mono); font-size: 0.78rem; letter-spacing: 0.06em; color: var(--slate-dim); }
.legal-tldr {
  margin: 36px 0 8px; padding: 24px 26px; border-radius: var(--radius);
  background: var(--card-bg); border: 1px solid var(--card-line); box-shadow: var(--card-shadow);
}
.legal-tldr h2 { font-size: 1.1rem; display: flex; align-items: center; gap: 10px; }
.legal-tldr h2 svg { width: 20px; height: 20px; color: var(--teal-hi); }
.legal-tldr ul { margin: 14px 0 0; padding-left: 20px; color: var(--text-2); }
.legal-tldr li { margin-bottom: 8px; }
.legal-tldr li::marker { color: var(--teal-lo); }

.legal-body { padding-bottom: clamp(60px, 9vw, 120px); }
.legal-body section { scroll-margin-top: calc(var(--header-h) + 20px); }
.legal-body h2 {
  font-size: 1.5rem; margin-top: 48px; padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex; align-items: baseline; gap: 14px;
}
.legal-body h2 .num { font-family: var(--ff-mono); font-size: 0.9rem; color: var(--teal-lo); font-weight: 400; }
.legal-body h3 { font-size: 1.1rem; margin-top: 26px; color: var(--text); }
.legal-body p { margin-top: 14px; color: var(--text-2); }
.legal-body ul { margin-top: 14px; padding-left: 22px; color: var(--text-2); }
.legal-body li { margin-bottom: 10px; }
.legal-body li::marker { color: var(--teal-lo); }
.legal-body strong { color: var(--text); font-weight: 600; }
.legal-body a { color: var(--teal-lo); text-decoration: underline; text-underline-offset: 3px; }
.perm-table { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 0.94rem; }
.perm-table th, .perm-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.perm-table th { font-family: var(--ff-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--slate); font-weight: 500; }
.perm-table td:first-child { color: var(--text); font-weight: 600; white-space: nowrap; }
.perm-table td { color: var(--slate); }
.legal-back { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--slate); font-size: 0.92rem; }
.legal-back:hover { color: var(--teal-lo); }

/* skip link */
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--teal-hi); color: #04141b; padding: 10px 16px; border-radius: 10px; font-weight: 600;
  transition: top .2s;
}
.skip:focus { top: 12px; }
