/* ==========================================================
   ATOMICWARDROBE — Marketing site
   Web design system. Distinct from the app's design-system.css:
   larger optical sizes, editorial measure, no phone chrome.
   Palette + radii inherited from the Design Bible v1.0.
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght,SOFT,WONK@0,9..144,200..700,0..100,0..1;1,9..144,200..700,0..100,0..1&family=Instrument+Sans:ital,wght@0,400..700;1,400..700&display=swap');

/* ---------- Tokens ---------- */
:root {
  --bg:        #F0EDE7;
  --bg-raise:  #F8F6F2;
  --bg-sink:   #E8E3DB;
  --ink:       #3B2F2A;
  --ink-2:     #8E8175;
  --ink-3:     #A69E95;
  --ink-4:     #C4BAB0;
  --accent:    #B8935A;
  --rule:      #DDD5C8;
  --rule-soft: rgba(59,47,42,0.10);
  --field:     #E8E3DB;

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans:  'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Editorial scale — larger than the app; display is set, not scaled */
  --t-display: clamp(3rem, 9.2vw, 7.25rem);
  --t-h1:      clamp(2.4rem, 6vw, 4.5rem);
  --t-h2:      clamp(1.9rem, 4vw, 3.1rem);
  --t-h3:      clamp(1.25rem, 2vw, 1.6rem);
  --t-lead:    clamp(1.0625rem, 1.5vw, 1.3125rem);
  --t-body:    1.0625rem;
  --t-small:   0.9375rem;
  --t-fine:    0.8125rem;

  --gut:   clamp(1.5rem, 5vw, 5.5rem);   /* page gutter */
  --bay:   clamp(5.5rem, 12vh, 10rem);   /* vertical rhythm between sections */

  --ease:   cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-o: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(0.32, 0.72, 0, 1);

  --page: 1440px;
}

[data-theme="dark"] {
  --bg:        #1A1510;
  --bg-raise:  #2A231D;
  --bg-sink:   #231D17;
  --ink:       #F0EDE7;
  --ink-2:     #A69E95;
  --ink-3:     #8A8078;
  --ink-4:     #6B6058;
  --accent:    #C9A66B;
  --rule:      #3B3229;
  --rule-soft: rgba(240,237,231,0.10);
  --field:     #332B24;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background 600ms var(--ease), color 600ms var(--ease);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

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

::selection { background: var(--accent); color: var(--bg); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: var(--bg);
  padding: 0.75rem 1.25rem; border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; }

/* ---------- Type roles ---------- */
.display {
  font-family: var(--serif);
  font-variation-settings: 'opsz' 144, 'wght' 300, 'SOFT' 20, 'WONK' 1;
  font-size: var(--t-display);
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.h1 {
  font-family: var(--serif);
  font-variation-settings: 'opsz' 96, 'wght' 320, 'SOFT' 18, 'WONK' 1;
  font-size: var(--t-h1);
  line-height: 1.02;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
.h2 {
  font-family: var(--serif);
  font-variation-settings: 'opsz' 64, 'wght' 350, 'SOFT' 14, 'WONK' 0;
  font-size: var(--t-h2);
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.h3 {
  font-family: var(--serif);
  font-variation-settings: 'opsz' 32, 'wght' 400, 'SOFT' 10, 'WONK' 0;
  font-size: var(--t-h3);
  line-height: 1.25;
  letter-spacing: -0.008em;
}
.lead {
  font-size: var(--t-lead);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 34ch;
}
.prose { max-width: 62ch; color: var(--ink-2); }
.prose + .prose { margin-top: 1.1em; }
.fine { font-size: var(--t-fine); color: var(--ink-3); line-height: 1.5; }
.num {
  font-family: var(--serif);
  font-variation-settings: 'opsz' 144, 'wght' 250, 'SOFT' 30, 'WONK' 1;
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  line-height: 0.85;
  letter-spacing: -0.04em;
  font-feature-settings: 'tnum';
}
em, .italic {
  font-style: italic;
  font-variation-settings: 'opsz' 96, 'wght' 300, 'SOFT' 40, 'WONK' 1;
}


/* ---------- Layout ---------- */
.shell {
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gut);
}
.bay { padding-block: var(--bay); }
.rule-top { border-top: 1px solid var(--rule); }

/* Section marker: a short accent dash + a label. */
.tick {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: clamp(2rem, 5vh, 3.5rem);
  color: var(--ink-3);
  font-size: var(--t-fine);
  letter-spacing: 0.02em;
}
.tick::before {
  content: '';
  flex: 0 0 auto;
  width: clamp(18px, 2.5vw, 32px);
  height: 1px;
  background: var(--accent);
  transform: translateY(-0.35em);
}

/* ---------- Nav ---------- */
/* Floating glass island, detached from the top edge. */
.nav {
  position: fixed; top: 0.9rem; left: 50%; z-index: 20;
  transform: translateX(-50%);
  width: min(calc(100% - 1.5rem), 1080px);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(22px) saturate(1.3);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  box-shadow: inset 0 0 0 1px var(--rule-soft), 0 12px 40px -24px rgba(40,28,18,0.35);
  transition: box-shadow 400ms var(--ease-o), background 400ms var(--ease-o);
}
.nav.stuck { box-shadow: inset 0 0 0 1px var(--rule-soft), 0 18px 50px -20px rgba(40,28,18,0.45); }
.nav-in {
  padding: 0.45rem 0.45rem 0.45rem 1.4rem;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
}
.wordmark {
  font-family: var(--serif);
  font-variation-settings: 'opsz' 24, 'wght' 400, 'SOFT' 10, 'WONK' 1;
  font-size: 1.28rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.nav-links {
  display: flex;
  gap: clamp(1rem, 2.2vw, 2rem);
  margin-left: auto;
  font-size: var(--t-small);
  color: var(--ink-2);
}
.nav-links a { position: relative; padding-block: 0.25rem; }
.nav-links a::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left;
  transition: transform 260ms var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
@media (max-width: 900px) { .nav-links { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  height: 52px;
  padding-inline: 1.65rem;
  border: none;
  border-radius: 999px;
  font-size: var(--t-small);
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: background 220ms var(--ease), color 220ms var(--ease),
              transform 500ms var(--spring), box-shadow 220ms var(--ease);
}
.btn:active { transform: scale(0.98); }
/* Button-in-button: the arrow gets its own circle, flush to the right edge. */
.btn .arr {
  width: 34px; height: 34px; margin-right: -1.15rem; border-radius: 50%;
  display: grid; place-items: center; flex: 0 0 auto;
  background: color-mix(in srgb, currentColor 14%, transparent);
  transition: transform 600ms var(--spring);
}
.btn .arr svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover .arr { transform: translate(3px, -1px) scale(1.06); }
.btn-sm .arr { width: 28px; height: 28px; margin-right: -0.75rem; }
.btn-fill { background: var(--ink); color: var(--bg); }
.btn-fill:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(59,47,42,0.18); }
[data-theme="dark"] .btn-fill:hover { box-shadow: 0 10px 28px rgba(0,0,0,0.5); }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--rule); }
.btn-line:hover { box-shadow: inset 0 0 0 1.5px var(--ink-3); transform: translateY(-2px); }
.btn-sm { height: 42px; padding-inline: 1.15rem; font-size: var(--t-fine); }
.btn-quiet {
  background: none; border: none; cursor: pointer;
  color: var(--ink-2); font-size: var(--t-small);
  padding: 0.4rem 0; position: relative;
}
.btn-quiet::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: currentColor; opacity: 0.4;
  transition: opacity 220ms var(--ease);
}
.btn-quiet:hover { color: var(--ink); }
.btn-quiet:hover::after { opacity: 1; }

/* Theme toggle — a small sun/moon pill, part of the chrome not a feature */
.theme-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--rule);
  display: grid; place-items: center;
  cursor: pointer; border: none;
  flex: 0 0 auto;
  transition: box-shadow 220ms var(--ease), background 220ms var(--ease);
}
.theme-btn:hover { box-shadow: inset 0 0 0 1px var(--ink-3); }
.theme-btn svg { width: 17px; height: 17px; stroke: var(--ink); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.theme-btn .moon { display: none; }
[data-theme="dark"] .theme-btn .sun { display: none; }
[data-theme="dark"] .theme-btn .moon { display: block; }

/* ---------- Asset slots ----------
   Real garment photography and real app renders only — never illustrated
   flats. Until the assets land these slots render as honest, labelled
   placeholders stating the exact file and pixel size required. */
.slot {
  position: relative;
  background: var(--bg-sink);
  border: 1px dashed var(--rule);
  border-radius: 16px;
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 160px;
}
.slot img { width: 100%; height: 100%; object-fit: cover; }
.slot:has(img) { border-style: none; background: none; }
.slot-note {
  padding: 1.25rem;
  text-align: center;
  font-size: var(--t-fine);
  color: var(--ink-3);
  line-height: 1.6;
}
.slot-note code {
  font-family: var(--sans);
  color: var(--ink-2);
  font-weight: 600;
}
.slot:has(img) .slot-note { display: none; }

/* ---------- Forms ---------- */
.field {
  display: flex;
  gap: 0.6rem;
  max-width: 480px;
  flex-wrap: wrap;
}
.field input[type="email"] {
  flex: 1 1 240px;
  height: 52px;
  padding-inline: 1.1rem;
  background: var(--field);
  border: 1.5px solid transparent;
  border-radius: 14px;
  outline: none;
  transition: border-color 220ms var(--ease), background 220ms var(--ease);
}
.field input::placeholder { color: var(--ink-3); }
.field input:focus { border-color: var(--accent); background: var(--bg-raise); }
.form-note { margin-top: 0.85rem; }

/* ---------- Store badges ---------- */
.stores { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.store {
  display: inline-flex; align-items: center; gap: 0.65rem;
  height: 52px; padding-inline: 1.15rem 1.4rem;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1.5px var(--rule);
  transition: box-shadow 220ms var(--ease), transform 220ms var(--ease-o);
}
.store:hover { box-shadow: inset 0 0 0 1.5px var(--ink-3); transform: translateY(-2px); }
.store svg { width: 20px; height: 20px; fill: var(--ink); }
.store span { line-height: 1.15; }
.store b { display: block; font-size: var(--t-small); font-weight: 600; }
.store i { display: block; font-size: 0.6875rem; font-style: normal; color: var(--ink-3); }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--rule); }
.foot-in {
  max-width: var(--page); margin-inline: auto;
  padding: clamp(3rem, 7vh, 5rem) var(--gut) 2.5rem;
  display: grid;
  grid-template-columns: minmax(200px, 1.4fr) repeat(3, minmax(120px, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
}
@media (max-width: 860px) { .foot-in { grid-template-columns: 1fr 1fr; } }
.foot h4 { font-size: var(--t-fine); font-weight: 600; color: var(--ink); margin-bottom: 1rem; }
.foot ul { list-style: none; display: grid; gap: 0.7rem; }
.foot li a { font-size: var(--t-small); color: var(--ink-2); }
.foot li a:hover { color: var(--ink); }
.foot-base {
  max-width: var(--page); margin-inline: auto;
  padding: 1.5rem var(--gut) 2.5rem;
  border-top: 1px solid var(--rule);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================
   ACTS — scroll-driven mood. The page opens in the dark and
   daylight arrives as you scroll. Theme is a narrative device
   here, not just a preference; the toggle still overrides it.
   ========================================================== */
.act { position: relative; }
body.cinema { transition: background 900ms var(--ease), color 900ms var(--ease); }

/* Big centred stage used by the opening and the spotlight */
.stage {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Oversized display, set edge to edge */
.mega {
  font-family: var(--serif);
  font-variation-settings: 'opsz' 144, 'wght' 250, 'SOFT' 30, 'WONK' 1;
  font-size: clamp(3.25rem, 13vw, 12rem);
  line-height: 0.86;
  letter-spacing: -0.045em;
}

/* ==========================================================
   COLOUR FIELDS — the pre-photography state.
   The app already extracts each garment's dominant colour, so
   until real photographs land we show that colour as a field.
   Honest, on-brand, and deliberately not an illustrated flat.
   Adding an <img> inside replaces the field automatically.
   ========================================================== */
.field-swatch {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--sw, var(--bg-sink));
  box-shadow: inset 0 0 0 1px var(--rule-soft);
}
.field-swatch::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(255,255,255,0.10), transparent 45%, rgba(0,0,0,0.12));
}
.field-swatch img { position: relative; z-index: 2; width: 100%; height: 100%; object-fit: cover; }
.field-swatch:has(img)::after { display: none; }
.field-swatch .await {
  position: absolute; z-index: 3; left: 0.85rem; bottom: 0.75rem;
  font-size: 0.6875rem; letter-spacing: 0.04em;
  color: rgba(255,255,255,0.72);
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.field-swatch:has(img) .await { display: none; }

/* ==========================================================
   SHARED SECTIONS — used across pages.
   ========================================================== */
.split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(2rem,6vw,5rem); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.steps { margin-top: clamp(2rem,5vh,3rem); }
.step {
  display: grid; grid-template-columns: 3rem minmax(0,20ch) minmax(0,1fr);
  gap: clamp(1rem,3vw,2.5rem); align-items: start;
  padding-block: clamp(1.75rem,4vh,2.75rem); border-top: 1px solid var(--rule);
}
.step:last-child { border-bottom: 1px solid var(--rule); }
.step-n { font-family: var(--serif); font-variation-settings: 'opsz' 24,'wght' 400,'WONK' 1; font-size: 1rem; color: var(--accent); padding-top: 0.3rem; }
.step p { color: var(--ink-2); max-width: 46ch; font-size: var(--t-small); }
@media (max-width: 720px) { .step { grid-template-columns: 2.25rem 1fr; } .step p { grid-column: 2; } }
.fact { display: grid; grid-template-columns: minmax(0,10rem) minmax(0,1fr); gap: clamp(1.25rem,4vw,3rem); align-items: baseline; padding-block: clamp(1.5rem,3.5vh,2.25rem); border-top: 1px solid var(--rule); }
.fact:last-child { border-bottom: 1px solid var(--rule); }
.fact-v { font-family: var(--serif); font-variation-settings: 'opsz' 96,'wght' 300,'SOFT' 24,'WONK' 1; font-size: clamp(2rem,4vw,3rem); line-height: 1; letter-spacing: -0.03em; }
.fact p { color: var(--ink-2); max-width: 52ch; font-size: var(--t-small); margin-top: 0.4rem; }
@media (max-width: 620px) { .fact { grid-template-columns: 1fr; gap: 0.5rem; } }
.facts { margin-top: clamp(2rem,5vh,3rem); }
.close-cta { display: grid; gap: 1.5rem; margin-top: clamp(2rem,5vh,3rem); }

/* Inner-page opening: same voice as the homepage, a third of the height. */
.page-head { padding-block: calc(clamp(4rem, 12vh, 8rem) + 4.5rem) clamp(3rem, 8vh, 5rem); }
.page-head .mega { font-size: clamp(3rem, 9vw, 8rem); max-width: 14ch; text-wrap: balance; }
.page-head .lead { margin-top: clamp(1.5rem, 4vh, 2.5rem); }

/* FAQ — native <details>, one hairline per question. */
.faq { margin-top: clamp(2rem,5vh,3rem); max-width: 60rem; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; gap: 1.5rem; align-items: baseline;
  padding-block: clamp(1.25rem, 3vh, 1.75rem);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 1.25rem; line-height: 1; transition: transform 220ms var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); max-width: 60ch; font-size: var(--t-small); padding-bottom: clamp(1.25rem, 3vh, 1.75rem); }

/* ==========================================================
   MOTION CHROME — film grain (added by motion.js)
   ========================================================== */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none;
  opacity: 0.07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-4%, 3%); } 40% { transform: translate(3%, -5%); }
  60% { transform: translate(-6%, -2%); } 80% { transform: translate(5%, 4%); } 100% { transform: translate(0, 0); }
}



/* ==========================================================
   PRODUCT KIT — eyebrow pills, double-bezel frames, phone.
   ========================================================== */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.38rem 0.85rem; border-radius: 999px;
  font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-2); background: color-mix(in srgb, var(--ink) 5%, transparent);
  box-shadow: inset 0 0 0 1px var(--rule-soft);
}
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* Double bezel: a glass plate sitting in a tray. Outer shell + inner core with concentric radii. */
.bezel {
  --r: 2rem; --p: 0.4rem;
  padding: var(--p); border-radius: var(--r);
  background: color-mix(in srgb, var(--ink) 4%, transparent);
  box-shadow: inset 0 0 0 1px var(--rule-soft), 0 40px 90px -50px rgba(40,28,18,0.45);
}
.bezel > .core {
  height: 100%; border-radius: calc(var(--r) - var(--p)); overflow: hidden;
  background: var(--bg-raise);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.55), inset 0 0 0 1px var(--rule-soft);
}
[data-theme="dark"] .bezel { background: rgba(255,255,255,0.04); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08), 0 40px 90px -50px rgba(0,0,0,0.8); }
[data-theme="dark"] .bezel > .core { background: rgba(255,255,255,0.035); box-shadow: inset 0 1px 1px rgba(255,255,255,0.08), inset 0 0 0 1px rgba(255,255,255,0.06); }

/* Phone: machined frame, app screen inside. A real screenshot (img.shot) sits on top when present. */
.phone {
  --pw: 300px; position: relative; width: var(--pw); aspect-ratio: 9 / 19.5; flex: 0 0 auto;
  padding: calc(var(--pw) * 0.03); border-radius: calc(var(--pw) * 0.16);
  background: linear-gradient(160deg, #3a322b, #120e0b 55%, #2a231d);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08), inset 0 0 0 3px rgba(0,0,0,0.5),
              0 60px 120px -50px rgba(40,26,14,0.6), 0 24px 50px -30px rgba(40,26,14,0.4);
}
.phone .screen {
  position: relative; height: 100%; overflow: hidden; isolation: isolate;
  border-radius: calc(var(--pw) * 0.13);
  background: #F7F4EE; color: #3B2F2A; font-size: calc(var(--pw) * 0.043);
}
.phone .screen::before {  /* dynamic island */
  content: ''; position: absolute; z-index: 30; top: calc(var(--pw) * 0.03); left: 50%;
  width: 32%; height: calc(var(--pw) * 0.085); transform: translateX(-50%);
  border-radius: 999px; background: #0c0a08;
}
.phone .shot { position: absolute; inset: 0; z-index: 20; width: 100%; height: 100%; object-fit: cover; }
.status {
  display: flex; justify-content: space-between; align-items: center;
  padding: 5.2% 9% 0; font-size: 0.78em; font-weight: 600; letter-spacing: 0.01em;
}
.status i { font-style: normal; letter-spacing: 0.1em; }
@media (max-width: 480px) {
  .nav-in { padding-left: 1.1rem; gap: 0.6rem; }
  .nav .btn-sm .arr { display: none; }
  .nav .btn-sm { padding-inline: 1rem; }
  .wordmark { font-size: 1.12rem; }
}

/* ==========================================================
   LEGAL PAGES — privacy.html, terms.html
   ========================================================== */
.legal-grid { display: grid; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
@media (min-width: 960px) { .legal-grid { grid-template-columns: 15rem minmax(0, 46rem); } }
.toc { font-size: var(--t-fine); }
@media (min-width: 960px) { .toc { position: sticky; top: 6.5rem; max-height: calc(100vh - 8rem); overflow: auto; } }
.toc p { color: var(--ink-3); letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.6875rem; margin-bottom: 0.9rem; }
.toc ol { list-style: none; display: grid; gap: 0.15rem; border-left: 1px solid var(--rule); }
.toc a { display: block; padding: 0.35rem 0 0.35rem 1rem; margin-left: -1px; border-left: 1px solid transparent; color: var(--ink-2); transition: color 250ms var(--ease), border-color 250ms var(--ease); }
.toc a:hover { color: var(--ink); }
.toc a.on { color: var(--ink); border-left-color: var(--accent); }
@media (max-width: 959px) { .toc ol { grid-template-columns: 1fr 1fr; border-left: 0; } .toc a { padding-left: 0; border-left: 0; } }

.legal-meta { margin-top: 1.25rem; font-size: var(--t-fine); color: var(--ink-3); }
.legal-summary { --r: 1.75rem; --p: 0.4rem; margin-bottom: clamp(2.5rem, 6vh, 3.5rem); }
.legal-summary .core { padding: clamp(1.4rem, 3vw, 2rem); }
.legal-summary h2 { font-family: var(--serif); font-weight: 400; font-size: var(--t-h3); margin-bottom: 0.9rem; }
.legal-summary ul { display: grid; gap: 0.55rem; padding-left: 1.1rem; color: var(--ink-2); font-size: var(--t-small); }

.legal-body { counter-reset: sec; }
.legal-body section { padding-block: clamp(1.75rem, 4vh, 2.5rem); border-top: 1px solid var(--rule); scroll-margin-top: 6.5rem; }
.legal-body section:first-of-type { border-top: 0; padding-top: 0; }
.legal-body h2 { counter-increment: sec; font-family: var(--serif); font-weight: 400; font-size: var(--t-h3); letter-spacing: -0.01em; margin-bottom: 1rem; }
.legal-body h2::before { content: counter(sec) '.'; color: var(--accent); margin-right: 0.6rem; }
.legal-body h3 { font-size: var(--t-small); font-weight: 600; margin: 1.25rem 0 0.5rem; }
.legal-body p, .legal-body li { color: var(--ink-2); font-size: var(--t-small); line-height: 1.7; }
.legal-body p + p { margin-top: 0.8rem; }
.legal-body ul { display: grid; gap: 0.45rem; padding-left: 1.15rem; margin-top: 0.6rem; }
.legal-body b { color: var(--ink); font-weight: 600; }
.legal-body a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.legal-body .todo { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--ink); padding: 0 0.3em; border-radius: 4px; }
.legal-table { width: 100%; border-collapse: collapse; margin-top: 0.8rem; font-size: var(--t-small); }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 0.7rem 0.75rem 0.7rem 0; border-bottom: 1px solid var(--rule); color: var(--ink-2); }
.legal-table th { color: var(--ink); font-weight: 600; }
@media (max-width: 620px) { .legal-table, .legal-table tbody, .legal-table tr, .legal-table td { display: block; } .legal-table thead { display: none; } .legal-table td:first-child { color: var(--ink); font-weight: 600; padding-bottom: 0; border: 0; } }
