/* Orion — Direction A "Constellation" · space-driven revision
   Tokens from ORION-PLAN.md §4 (The Belt). */

:root {
  --night: #06080e;
  --deep: #0a0d16;
  --starlight: #e9ecf4;
  --amber: #e8b64c;
  --amber-soft: rgba(232, 182, 76, 0.5);
  --signal: #6ee7a0;
  --ink-72: rgba(233, 236, 244, 0.72);
  --ink-68: rgba(233, 236, 244, 0.68);
  --ink-60: rgba(233, 236, 244, 0.6);
  --ink-45: rgba(233, 236, 244, 0.45);
  --ink-40: rgba(233, 236, 244, 0.4);
  --hairline: rgba(233, 236, 244, 0.08);
  --hairline-strong: rgba(233, 236, 244, 0.14);
  --font-display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-body: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--night);
  color: var(--starlight);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(232, 182, 76, 0.3); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; margin: 0; }
p { margin: 0; }
a { color: var(--amber); text-decoration: none; transition: color 0.25s ease; }
a:hover { color: #f2cf7e; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }

/* Motion-managed elements: hidden ONLY when JS + motion are active.
   .split headlines are hidden until JS splits them into words. */
.motion .anim-fade,
.motion .anim-nav,
.motion .split,
.motion [data-stagger] > * { opacity: 0; }
.motion .sky-star, .motion .sky-label { opacity: 0; }
.split .w { display: inline-block; }
.split .c { display: inline-block; white-space: pre; }
[data-scramble] { font-variant-ligatures: none; }

/* ---------- Scroll progress hairline ---------- */
.progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--amber), rgba(232, 182, 76, 0.35));
  transform: scaleX(0);
  transform-origin: left;
  z-index: 100;
}

/* ---------- Deep-space background ---------- */
.space {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.space__layer { position: absolute; inset: -10% 0; }
.space .st {
  position: absolute;
  border-radius: 50%;
  background: var(--starlight);
}

/* ---------- The Voyager ---------- */
.voyager-layer {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.voyager-layer svg { display: block; }
.voyager {
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 0;
  opacity: 0;
}
.voyager > svg {
  position: absolute;
  left: -8px; top: -8px;
}
.voyager__tail {
  position: absolute;
  right: 6px; top: -1px;
  width: 54px; height: 2px;
  background: linear-gradient(270deg, rgba(232, 182, 76, 0.85), rgba(232, 182, 76, 0));
  border-radius: 1px;
}
.voyager__glow {
  position: absolute;
  left: -16px; top: -16px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 182, 76, 0.45), transparent 70%);
}
@media (max-width: 900px) { .voyager-layer { display: none; } }

/* ---------- Skip link & focus ---------- */
.skip {
  position: fixed;
  top: -60px; left: 16px;
  z-index: 200;
  background: var(--amber);
  color: #14100a;
  padding: 12px 20px;
  border-radius: 2px;
  font-weight: 600;
  transition: top 0.2s ease;
}
.skip:focus { top: 12px; color: #14100a; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 2px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}
.nav--scrolled {
  background: rgba(6, 8, 14, 0.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--hairline);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(20px, 4vw, 40px);
  max-width: 1240px;
  margin: 0 auto;
}
.mark { transition: transform 0.35s ease; }
.nav__brand:hover .mark { transform: rotate(10deg); }
.nav__brand { display: inline-flex; align-items: center; gap: 12px; color: var(--starlight); }
.nav__word { font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: 0.04em; }
.nav__links { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); font-size: 15px; }
.nav__links > a { color: var(--ink-72); }
.nav__links > a:hover { color: var(--starlight); }
.nav__links > .btn { color: #14100a; }
@media (max-width: 760px) {
  .nav__links > a:not(.btn) { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 2px;
  font-weight: 600;
  font-size: 15px;
  font-family: var(--font-body);
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}
.btn--lg { padding: 18px 36px; font-size: 16px; white-space: nowrap; }
.btn--solid { background: var(--amber); color: #14100a; }
.btn--solid:hover {
  background: #f2cf7e; color: #14100a;
  box-shadow: 0 0 24px rgba(232, 182, 76, 0.35);
  transform: translateY(-1px);
}
.btn--ghost { border: 1px solid rgba(233, 236, 244, 0.25); color: rgba(233, 236, 244, 0.85); font-weight: 500; }
.btn--ghost:hover { border-color: var(--amber-soft); color: var(--starlight); }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--amber);
  font-weight: 600;
}
.eyebrow__rule {
  display: inline-block;
  width: 36px; height: 1px;
  background: var(--amber-soft);
  transform-origin: left;
}
.lede { font-size: 19px; color: var(--ink-72); max-width: 620px; }
.section__meta {
  position: absolute;
  top: 4px; right: 0;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.24em;
  color: var(--ink-40);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - 90px);
  display: flex;
  align-items: center;
  overflow: hidden;
  z-index: 1;
}
.hero__horizon {
  position: absolute;
  left: 50%;
  bottom: calc(-1 * min(72vw, 900px) + clamp(40px, 8vh, 90px));
  transform: translateX(-50%);
  width: 170vw;
  min-width: 1800px;
  height: min(72vw, 900px);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background: #04050a;
  box-shadow:
    0 -1px 0 rgba(232, 182, 76, 0.55),
    0 -10px 40px rgba(232, 182, 76, 0.16),
    0 -60px 160px rgba(232, 182, 76, 0.07);
  pointer-events: none;
}
.hero__sky {
  position: absolute;
  right: 4vw;
  top: 6vh;
  opacity: 0.9;
  width: min(600px, 44vw);
  height: auto;
}
@media (max-width: 900px) { .hero__sky { opacity: 0.22; right: -90px; } }
.sky-star { transform-box: fill-box; transform-origin: center; }
.sky-label {
  fill: rgba(233, 236, 244, 0.55);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.1em;
}
.hero__copy { position: relative; display: flex; flex-direction: column; gap: 28px; padding-bottom: 8vh; }
.hero__copy h1 {
  font-size: clamp(40px, 5.2vw, 74px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  max-width: 15ch;
}
.hero__copy h1 em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--amber); }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 6px; }
.hero__scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--ink-40);
  font-family: var(--font-display);
}
.hero__scroll-line { width: 1px; height: 34px; background: linear-gradient(180deg, transparent, var(--amber-soft)); }

/* ---------- Proof ---------- */
.proof-wrap { position: relative; z-index: 1; padding: clamp(56px, 9vh, 100px) 0 0; }
.proof {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--hairline-strong);
  border-bottom: 1px solid var(--hairline);
}
.proof__cell {
  padding: 40px clamp(20px, 3vw, 44px) 40px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-right: 1px solid var(--hairline);
}
.proof__cell:last-child { border-right: none; }
.proof__cell:not(:first-child) { padding-left: clamp(20px, 3vw, 44px); }
.proof__num { font-family: var(--font-display); font-size: 36px; font-weight: 600; font-variant-numeric: tabular-nums; }
.proof__label { font-size: 14px; color: var(--ink-60); }
@media (max-width: 900px) {
  .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof__cell:nth-child(2n) { border-right: none; }
  .proof__cell:nth-child(-n+2) { border-bottom: 1px solid var(--hairline); }
}

/* ---------- Sections ---------- */
.section { position: relative; z-index: 1; padding: clamp(80px, 12vh, 140px) 0; }
.section--tinted {
  background: linear-gradient(180deg, rgba(10, 13, 22, 0), rgba(10, 13, 22, 0.85) 12%, rgba(10, 13, 22, 0.85) 88%, rgba(10, 13, 22, 0));
}
.section__head { position: relative; display: flex; flex-direction: column; gap: 18px; max-width: 760px; margin-bottom: clamp(48px, 7vh, 72px); }
.section__head h2 { font-size: clamp(30px, 3.2vw, 44px); letter-spacing: -0.015em; line-height: 1.12; max-width: 18ch; }
.section__sub { font-size: 17px; color: var(--ink-68); }

/* ---------- Catalogue: line-driven reveal ---------- */
.catalogue {
  position: relative;
  padding-left: clamp(48px, 6vw, 88px);
  display: flex;
  flex-direction: column;
}
.catalogue__route {
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--hairline);
}
.catalogue__bar {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--amber), rgba(232, 182, 76, 0.4));
  transform: scaleY(0);
  transform-origin: top;
}
.catalogue__row {
  position: relative;
  display: grid;
  grid-template-columns: 150px 380px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  padding: 44px 0;
  border-bottom: 1px solid var(--hairline);
  align-items: baseline;
}
.catalogue__row:first-of-type { border-top: 1px solid var(--hairline-strong); }
.catalogue__node {
  position: absolute;
  left: calc(-1 * clamp(48px, 6vw, 88px) + 5px);
  top: 56px;
  width: 12px; height: 12px;
  background: var(--amber);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
.catalogue__id { font-family: var(--font-display); font-size: 14px; letter-spacing: 0.18em; color: var(--amber); }
.catalogue__row h3 { font-size: 25px; letter-spacing: -0.01em; }
.catalogue__row p { font-size: 15px; color: var(--ink-68); max-width: 54ch; }
@media (max-width: 1000px) {
  .catalogue__row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .catalogue__node { top: 50px; }
}

/* ---------- Sectors strip ---------- */
.sectors {
  margin-top: clamp(48px, 6vh, 72px);
  padding-top: clamp(32px, 4vh, 44px);
  border-top: 1px solid var(--hairline-strong);
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.sectors__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(14px, 2.2vw, 30px);
}
.sector {
  display: inline-flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 30px);
  font-family: var(--font-display);
  font-size: clamp(16px, 1.7vw, 22px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-72);
  transition: color 0.3s ease;
}
.sector:hover { color: var(--starlight); }
.sector:not(:last-child)::after {
  content: '';
  flex: none;
  width: 8px; height: 8px;
  background: var(--amber);
  opacity: 0.55;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
.sectors__note { font-size: 15px; color: var(--ink-45); }

/* ---------- Products ---------- */
.products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--hairline-strong);
}
.product {
  padding: 56px clamp(28px, 4vw, 64px) 56px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: background 0.3s ease;
}
.product:first-child { border-right: 1px solid var(--hairline); }
.product:last-child { padding: 56px 0 56px clamp(28px, 4vw, 64px); }
.product:hover { background: rgba(233, 236, 244, 0.02); }
/* No hover transform on product logos. These are real brand marks now, not the
   generic glyph this once decorated — CareOp's brand fixes the seam's angle
   ("a rotated seam is a different mark"), and each logo carries its own motion. */
.product__name { display: flex; align-items: center; gap: 16px; min-height: 48px; }
.product__name h3 { font-size: clamp(30px, 3vw, 40px); letter-spacing: -0.015em; }

/* ---------- MySienna lockup ----------
   Built the way their own Logo.svelte builds it — SVG mark plus live type —
   rather than from static/brand/logo-full.svg, which is stale (sienna petals
   and Inter/Fraunces, where the product now ships coral/pink petals and
   Hanken Grotesk + Bricolage Grotesque).
   Two changes for a dark surface, both within their own palette:
   the mark's mix-blend-mode: multiply is dropped (multiply against near-black
   erases it), and "Sienna" steps from pink-700 to pink-500, which lifts it from
   3.7:1 to 6.9:1 on this background. */
.sienna-logo { display: flex; align-items: center; gap: 14px; }
.sienna-mark { width: 46px; height: 46px; flex: none; display: block; }
.sienna-word {
  /* Sized so its cap height matches CareOp's wordmark rather than its box —
     two names side by side must read at the same size. */
  font-family: 'Hanken Grotesk', 'IBM Plex Sans', system-ui, sans-serif;
  font-weight: 500;
  font-size: 42px;
  letter-spacing: -0.02em;
  color: #fff8f2;              /* their cream-50 */
  line-height: 1.1;
}
.sienna-word__accent {
  font-family: 'Bricolage Grotesque', 'Instrument Serif', Georgia, serif;
  font-weight: 600;
  color: #ee6fa0;              /* their pink-500 — the dark-surface step */
}
.sn-petal, .sn-core { transform-box: view-box; transform-origin: 32px 32px; }
.motion .sienna-logo .sn-petal,
.motion .sienna-logo .sn-core { opacity: 0; }
@media (max-width: 520px) {
  .sienna-mark { width: 38px; height: 38px; }
  .sienna-word { font-size: 34px; }
}

/* ---------- CareOp wordmark ----------
   Derived from brand/svg/careop-wordmark-animated.svg with the on-dark palette
   that brand/README.md sanctions (#ffffff / #b6b2cc / ring #7b74f0). Class names
   are prefixed co- because the source's are generic (.c already means "headline
   character" here) and its inline <style> would otherwise leak page-wide.
   Brand rules honoured: clearspace >= half the ring's diameter, no container,
   no shadow, no recolour beyond the table, no rotation, uniform scale only. */
.product__name--logo { margin: 0; line-height: 0; }
.careop-logo svg { display: block; width: auto; height: 36px; overflow: visible; }
@media (max-width: 520px) { .careop-logo svg { height: 30px; } }

.careop-logo .co-c,
.careop-logo .co-are,
.careop-logo .co-tail,
.careop-logo .co-ring {
  animation-duration: 1620ms;
  animation-iteration-count: 1;
  animation-fill-mode: both;
}
.careop-logo .co-c { animation-name: co-c; animation-timing-function: cubic-bezier(0.2, 0.8, 0.3, 1); }
.careop-logo .co-are { animation-name: co-are; animation-timing-function: cubic-bezier(0.2, 0.8, 0.3, 1); }
.careop-logo .co-tail { animation-name: co-tail; animation-timing-function: cubic-bezier(0.2, 0.8, 0.3, 1); }
.careop-logo .co-ring {
  animation-name: co-ring;
  animation-timing-function: cubic-bezier(0.77, 0, 0.175, 1);
  transform-origin: 260.188px 37.25px;
}
.careop-logo .co-seam { animation: co-seam 1620ms cubic-bezier(0.77, 0, 0.175, 1) 1 both; }

@keyframes co-c    { 0%, 31.173% { opacity: 0 } 42.284%, 100% { opacity: 1 } }
@keyframes co-are  { 0%, 57.716% { opacity: 0 } 66.667%, 100% { opacity: 1 } }
@keyframes co-tail { 0%, 64.198% { opacity: 0 } 77.16%, 100% { opacity: 1 } }
@keyframes co-ring {
  0%       { opacity: 0; transform: translateX(-223.313px) rotate(-54deg) scale(.92) }
  14.506%  { opacity: 1; transform: translateX(-223.313px) rotate(-54deg) scale(1) }
  24.383%  { transform: translateX(-223.313px) rotate(35deg) scale(1) }
  29.63%   { transform: translateX(-223.313px) rotate(35deg) scale(1) }
  54.321%  { transform: translateX(0) rotate(-57.5deg) scale(1) }
  57.716%, 100% { opacity: 1; transform: translateX(0) rotate(-54deg) scale(1) }
}
@keyframes co-seam {
  0%, 14.815%      { stroke-dasharray: 172.202 25.765 }
  24.383%, 41.975% { stroke-dasharray: 159.474 38.492 }
  54.321%, 100%    { stroke-dasharray: 172.202 25.765 }
}

/* Hold at the first frame until the card is scrolled into view, so the mark
   performs once where it can be seen rather than looping unwatched. */
.motion .careop-logo .co-c,
.motion .careop-logo .co-are,
.motion .careop-logo .co-tail,
.motion .careop-logo .co-ring,
.motion .careop-logo .co-seam { animation-play-state: paused; }
.motion .careop-logo.is-playing .co-c,
.motion .careop-logo.is-playing .co-are,
.motion .careop-logo.is-playing .co-tail,
.motion .careop-logo.is-playing .co-ring,
.motion .careop-logo.is-playing .co-seam { animation-play-state: running; }

/* Momentary hard reset. Toggling play-state alone only pauses and resumes —
   once the sequence has finished there is nothing left to resume, so a replay
   needs the animation torn down and rebuilt to start from the top again. */
.careop-logo.is-rewinding .co-c,
.careop-logo.is-rewinding .co-are,
.careop-logo.is-rewinding .co-tail,
.careop-logo.is-rewinding .co-ring,
.careop-logo.is-rewinding .co-seam { animation: none !important; }

@media (prefers-reduced-motion: reduce) {
  .careop-logo .co-c,
  .careop-logo .co-are,
  .careop-logo .co-tail,
  .careop-logo .co-ring,
  .careop-logo .co-seam { animation: none; opacity: 1; transform: none; }
}
.product__tag { font-family: var(--font-serif); font-style: italic; font-size: 21px; color: rgba(233, 236, 244, 0.85); }
.product__desc { font-size: 15px; color: var(--ink-68); max-width: 52ch; }
.product__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  max-width: 52ch;
  margin-top: 8px;
}
.product__meta a { font-size: 15px; font-weight: 500; }
.product__status { font-size: 11px; letter-spacing: 0.22em; color: var(--ink-45); }
@media (max-width: 900px) {
  .products { grid-template-columns: minmax(0, 1fr); }
  .product, .product:last-child { padding: 40px 0; }
  .product:first-child { border-right: none; border-bottom: 1px solid var(--hairline); }
}
.products__next {
  border-top: 1px solid var(--hairline);
  padding-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: baseline;
  justify-content: space-between;
}
.products__next p { font-size: 16px; color: var(--ink-72); }
.products__next a { font-size: 15px; font-weight: 600; }

/* ---------- Steps: shared trajectory line ---------- */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
  padding-top: 30px;
}
.steps__track {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--hairline);
}
.steps__track::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--amber), rgba(232, 182, 76, 0.4));
  transform: scaleX(var(--track, 0));
  transform-origin: left;
}
.step { position: relative; display: flex; flex-direction: column; gap: 16px; }
.step__node {
  position: absolute;
  top: -35px; left: 0;
  width: 10px; height: 10px;
  background: var(--amber);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
.step__id { font-family: var(--font-display); font-size: 13px; letter-spacing: 0.16em; color: rgba(233, 236, 244, 0.5); }
.step h3 { font-size: 21px; }
.step p { font-size: 15px; color: var(--ink-68); }
@media (max-width: 900px) {
  .steps { grid-template-columns: minmax(0, 1fr); padding-top: 0; padding-left: 30px; }
  .steps__track { top: 0; bottom: 0; left: 4px; right: auto; width: 2px; height: auto; }
  .steps__track::after { transform: scaleY(var(--track, 0)); transform-origin: top; }
  .step__node { top: 6px; left: -30px; }
}

/* ---------- CTA ---------- */
.cta-wrap { position: relative; z-index: 1; padding: clamp(80px, 12vh, 140px) 0; overflow: hidden; }
.cta-wrap__glow {
  position: absolute;
  left: 50%;
  bottom: -55%;
  transform: translateX(-50%);
  width: 120vw;
  height: 90%;
  background: radial-gradient(ellipse at 50% 100%, rgba(232, 182, 76, 0.13), transparent 62%);
  pointer-events: none;
}
.cta {
  border-top: 1px solid var(--hairline-strong);
  border-bottom: 1px solid var(--hairline-strong);
  padding-top: 72px;
  padding-bottom: 72px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
}
.cta__copy { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.cta__copy h2 { font-size: clamp(26px, 2.8vw, 36px); letter-spacing: -0.015em; }
.cta__copy p { font-size: 16px; color: var(--ink-72); }

/* ---------- Document pages (privacy / terms / security) ---------- */
.doc { position: relative; z-index: 1; padding: clamp(56px, 8vh, 96px) 0 clamp(64px, 9vh, 110px); }
.doc__head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: clamp(32px, 5vh, 48px);
  margin-bottom: clamp(32px, 5vh, 48px);
  border-bottom: 1px solid var(--hairline-strong);
}
.doc__head h1 {
  font-size: clamp(34px, 4.4vw, 56px);
  letter-spacing: -0.02em;
  line-height: 1.08;
}
.doc__meta { font-size: 14px; color: var(--ink-45); }
.doc__lede { font-size: 18px; color: var(--ink-72); max-width: 68ch; }

.prose { max-width: 72ch; display: flex; flex-direction: column; gap: 28px; }
.prose h2 {
  font-size: clamp(20px, 2.1vw, 25px);
  letter-spacing: -0.01em;
  margin-top: 22px;
  padding-top: 26px;
  border-top: 1px solid var(--hairline);
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.prose h3 { font-size: 17px; color: var(--starlight); margin-top: 4px; }
.prose p, .prose li { font-size: 16px; color: var(--ink-72); line-height: 1.7; }
.prose ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.prose li::marker { color: var(--amber); }
.prose strong { color: var(--starlight); font-weight: 600; }
.prose dl { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.prose dt { font-family: var(--font-display); font-size: 15px; color: var(--starlight); font-weight: 600; }
.prose dd { margin: 4px 0 0; font-size: 15px; color: var(--ink-68); line-height: 1.65; }
.prose__note {
  border-left: 2px solid var(--amber-soft);
  padding: 4px 0 4px 20px;
  font-size: 15px;
  color: var(--ink-68);
}
.doc__back { font-size: 15px; font-weight: 500; }

/* ---------- Footer ---------- */
.footer { position: relative; z-index: 1; padding: 80px 0 48px; }
.footer__cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 48px; }
.footer__brand { display: flex; flex-direction: column; gap: 16px; max-width: 320px; }
.footer__brand p { font-size: 14px; color: rgba(233, 236, 244, 0.55); }
.footer__col { display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.footer__col h4 {
  margin: 0;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--ink-40);
  font-weight: 600;
}
.footer__col a, .footer__col span { color: rgba(233, 236, 244, 0.65); }
.footer__col a:hover { color: var(--starlight); }
.footer__address { line-height: 1.5; }
.footer__base {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  border-top: 1px solid var(--hairline);
  padding-top: 28px;
  margin-top: 48px;
  font-size: 13px;
  color: var(--ink-40);
}
