/* ==========================================================================
   pikk.one — marketing site
   Dark-first. Every token below is lifted verbatim from the app's design
   system (expo-app/design-system/) — brand sheet v5.1. If a value here ever
   disagrees with one of those cards, the card wins.
   No framework, no build step. Hand-authored.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Surfaces — foundations/colors.html */
  --bg:        #12061F;            /* Ink — page background            */
  --card:      #1C0E2B;            /* Surface 1 — cards, sheets        */
  --surface2:  #271539;            /* Surface 2 — inputs, pressed      */
  --fg:        #FFF7F9;            /* Paper — default text             */
  --muted:     #A991BF;            /* Captions on Ink — 7.0:1          */
  --line:      rgba(255, 247, 249, .13);

  /* The brand six + accessible extensions */
  --violet:        #8B5CF6;
  --magenta:       #EC4899;
  --rose:          #F0509B;
  --coral:         #FF7A59;
  --violet-deep:   #6D28D9;        /* accessible solid fill — 7.1:1    */
  --violet-press:  #5B21B6;
  --accent:        var(--rose);    /* dark-mode links & accent         */

  /* Gradients — exact stops and angles from the brand sheet */
  --grad-icon:  linear-gradient(135deg, #8B5CF6 0%, #EC4899 55%, #FF7A59 100%);
  --grad-mark:  linear-gradient(140deg, #8B5CF6, #EC4899);
  --grad-heart: linear-gradient(140deg, #F0509B, #FF7A59);

  /* Type */
  --sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Spacing scale — 4 · 8 · 12 · 16 · 24 · 32 */
  --sp-xs: 4px;  --sp-sm: 8px;  --sp-md: 12px;
  --sp-lg: 16px; --sp-xl: 24px; --sp-xxl: 32px;

  /* Radii */
  --r-pill: 999px;
  --r-control: 16px;
  --r-card: 18px;
  --r-card-lg: 22px;
  --r-tile: 14px;

  /* Layout */
  --wrap: 1160px;
  --gutter: 24px;
  --header-h: 72px;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
img { height: auto; display: block; }

a { color: var(--fg); text-decoration: none; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--magenta); color: #fff; }

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

/* Skip link — keyboard users land here first */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  padding: 12px 18px; background: var(--violet-deep); color: #fff;
  border-radius: 0 0 var(--r-tile) 0; font-weight: 600;
}
.skip:focus { left: 0; }

/* --------------------------------------------------------------------------
   3. Typography
   Outfit is geometric and opens up at size, so display sizes tighten
   (-.035em at the top of the scale) and body sits at 0. Only the uppercase
   Label goes positive. — foundations/typography.html
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 { margin: 0 0 var(--sp-lg); text-wrap: balance; }

.display {
  font-size: clamp(38px, 6.4vw, 64px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.04;
}

.title {
  font-size: clamp(27px, 3.8vw, 42px);
  font-weight: 700;
  letter-spacing: -.028em;
  line-height: 1.12;
}

.heading {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.25;
}

.lede {
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.6;
  color: var(--muted);
  max-width: 56ch;
}

.caption {
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--muted);
}

/* Eyebrow — the mono label step, the one place tracking goes positive */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 var(--sp-md);
  display: block;
}

.accent { color: var(--accent); }

/* --------------------------------------------------------------------------
   4. Layout primitives
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(64px, 9vw, 116px); position: relative; }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.split--reverse .split__media { order: -1; }

.center { text-align: center; margin-inline: auto; }
.center .lede { margin-inline: auto; }

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

/* --------------------------------------------------------------------------
   5. The bloom
   Stops sampled off the shipped splash artwork (design-system/screens/
   login.html) so the site's light source matches the app's launch screen.
   -------------------------------------------------------------------------- */
.bloom {
  position: absolute;
  left: 50%;
  top: 22%;
  transform: translate(-50%, -50%);
  width: 146%;
  max-width: 1500px;
  aspect-ratio: 1;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle closest-side,
    rgb(69,36,103) 0%,   rgb(69,36,102) 6.8%,  rgb(68,32,92) 13.7%,
    rgb(68,31,88) 20.5%, rgb(65,27,79) 27.4%,  rgb(64,26,74) 34.2%,
    rgb(61,22,66) 41.1%, rgb(56,20,58) 47.9%,  rgb(51,16,52) 54.8%,
    rgb(44,14,46) 61.6%, rgb(37,12,42) 68.5%,  rgb(34,10,40) 75.3%,
    rgb(28,9,36) 82.2%,  rgb(24,8,34) 89.0%,   rgb(20,7,32) 95.9%,
    rgb(18,6,31) 100%);
}

/* A quieter version for mid-page sections */
.bloom--soft { opacity: .55; top: 50%; width: 110%; }

/* --------------------------------------------------------------------------
   6. Brand
   The site uses the horizontal pikk.one wordmark on its own — no separate p
   mark anywhere. The lockup SVGs in logo-design/ bake in an opaque background
   rect, so the transparent <symbol> outline is used instead.
   -------------------------------------------------------------------------- */
/* The letterforms are fill="currentColor" so they follow the text colour; the
   Coral full stop carries its own fill and is never overridden. */
.wordmark { display: block; height: auto; color: var(--fg); }

.lockup { display: inline-flex; align-items: center; }
.lockup .wordmark { width: 112px; }

/* --------------------------------------------------------------------------
   7. Buttons — 54px tall, 16px radius, Outfit Semibold
   -------------------------------------------------------------------------- */
.btn {
  height: 54px;
  padding-inline: 26px;
  border-radius: var(--r-control);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.01em;
  cursor: pointer;
  border: 0;
  transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }

.btn--solid { background: var(--violet-deep); color: #fff; }        /* 7.1:1 */
.btn--solid:hover { background: #7C3AED; }
.btn--solid:active { background: var(--violet-press); box-shadow: inset 0 2px 8px rgba(0,0,0,.35); }

.btn--ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid rgba(255, 247, 249, .22);
}
.btn--ghost:hover { background: rgba(255, 247, 249, .06); }

.btn--sm { height: 42px; padding-inline: 18px; font-size: 14.5px; }

/* --------------------------------------------------------------------------
   8. Chips
   -------------------------------------------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: var(--sp-sm); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: var(--r-pill);
  background: rgba(255, 247, 249, .06);
  border: 1px solid rgba(255, 247, 249, .14);
  font-size: 12px;
  font-weight: 500;
  color: #EBDFF2;
  white-space: nowrap;
}
.chip svg { width: 13px; height: 13px; fill: var(--rose); flex: none; }

/* The two claim glyphs shared with the app's login screen are drawn as strokes on
   a 24-unit grid, not as filled shapes in a 24×24 box, so they need the fill off.
   Kept as a modifier rather than changed on .chip svg: a filled glyph is still the
   default for any chip that isn't one of the pair. */
.chip--stroke svg { fill: none; stroke: var(--rose); stroke-width: 2.1; }

/* The brand used as a verb — the only coloured word in the claim, matching the
   app's login row. Full-strength Magenta here rather than the app's 90%: the chip
   sits on its own lighter surface, so full strength lands at the same weight the
   90% does against bare Ink.

   Keep the whole phrase inside .chip__label. .chip is a flex container, so a bare
   text node next to this span would be two flex items and the 6px gap would land
   between the words instead of a word space. */
.chip__verb { color: var(--magenta); }

/* --------------------------------------------------------------------------
   9. Store badges
   PLACEHOLDER ARTWORK. Apple and Google both require their own official
   badge images, which are not in this repo. These are faithful dark stand-ins
   at the correct proportions — replace them with the official assets, and
   point the hrefs at the real listings, before launch.
   -------------------------------------------------------------------------- */
.badges { display: flex; flex-wrap: wrap; gap: var(--sp-md); }
.badges--center { justify-content: center; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  height: 56px;
  padding: 0 18px;
  border-radius: var(--r-tile);
  background: rgba(255, 247, 249, .07);
  border: 1px solid rgba(255, 247, 249, .18);
  color: var(--fg);
  transition: background-color .15s ease, border-color .15s ease;
}
a.badge:hover { background: rgba(255, 247, 249, .12); border-color: rgba(255, 247, 249, .3); }
/* Pre-launch the badges are rendered as <span> — there is nothing to link to */
span.badge { cursor: default; }
.badge svg { width: 24px; height: 24px; flex: none; }
.badge__text { display: flex; flex-direction: column; line-height: 1.15; }
.badge__sup {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.badge__name { font-size: 17px; font-weight: 600; letter-spacing: -.02em; }

/* --------------------------------------------------------------------------
   10. Cards
   -------------------------------------------------------------------------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: clamp(20px, 2.6vw, 30px);
}

.card__icon {
  width: 44px; height: 44px;
  border-radius: var(--r-tile);
  display: grid; place-items: center;
  margin-bottom: var(--sp-lg);
  background: rgba(255, 247, 249, .06);
  border: 1px solid var(--line);
}
.card__icon svg { width: 21px; height: 21px; fill: var(--rose); }
.card__icon--grad { background: var(--grad-mark); border-color: transparent; }
.card__icon--grad svg { fill: #fff; }
.card__icon--heart { background: var(--grad-heart); border-color: transparent; }
.card__icon--heart svg { fill: #fff; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--sp-xl);
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }

/* A tick list — used for the claims under each USP section */
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ticks li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
}
.ticks li b { color: var(--fg); font-weight: 600; }
.ticks li::before {
  content: "";
  width: 22px; height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--grad-heart);
  /* checkmark, drawn as a mask so it inherits the gradient */
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.6 16.2 5.4 12l1.4-1.4 2.8 2.8 7.6-7.6L18.6 7.2z'/%3E%3C/svg%3E") center / 20px 20px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.6 16.2 5.4 12l1.4-1.4 2.8 2.8 7.6-7.6L18.6 7.2z'/%3E%3C/svg%3E") center / 20px 20px no-repeat;
}

/* --------------------------------------------------------------------------
   11. Header
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .25s ease, border-color .25s ease, backdrop-filter .25s ease;
}
.header.is-stuck {
  background: rgba(18, 6, 31, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.header .wrap { display: flex; align-items: center; gap: var(--sp-xl); }

.nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
  transition: color .15s ease;
}
.nav a:hover { color: var(--fg); }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; fill: var(--fg); }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* --------------------------------------------------------------------------
   12. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(48px, 8vw, 96px));
  padding-bottom: clamp(56px, 8vw, 104px);
  overflow: hidden;
}
.hero .wrap { position: relative; z-index: 1; }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

/* The hero opens on the tagline — the wordmark sits in the header directly
   above it, so there is no lockup here. */
.hero h1 { margin: 0 0 var(--sp-lg); }
.hero .lede { margin-bottom: var(--sp-xl); }
.hero .badges { margin-bottom: var(--sp-xl); }

.hero__media { display: flex; justify-content: center; }

/* --------------------------------------------------------------------------
   13. Device frames
   Screenshots are used exactly as captured — nothing cropped, nothing
   retouched. Each frame therefore takes its own image's aspect ratio: the
   image sets the height, the frame wraps it, and frames are sized
   individually rather than to a grid.
   -------------------------------------------------------------------------- */
.frame {
  position: relative;
  width: 100%;
  max-width: 310px;
  padding: 11px;
  border-radius: 44px;
  background: #08040D;
  box-shadow: 0 40px 90px -32px rgba(139, 92, 246, .6),
              0 0 0 1.5px rgba(255, 247, 249, .08) inset;
}
.frame img {
  width: 100%;
  border-radius: 34px;
  display: block;
}

.frame--sm { max-width: 236px; padding: 9px; border-radius: 34px; }
.frame--sm img { border-radius: 26px; }

.frame--tilt { transform: rotate(-2.5deg); }
.frame--tilt-r { transform: rotate(2.5deg); }

/* Two frames overlapping — used in the "stop swiping" section.
   The overlap comes from a negative margin, not from `gap`: gap doesn't
   accept negative lengths and the whole declaration would be discarded. */
.frame-pair {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-block: 12px;
}
.frame-pair .frame--sm:first-child { margin-right: -56px; z-index: 2; }
.frame-pair .frame--sm:last-child { margin-top: 44px; }

/* --------------------------------------------------------------------------
   14. The locked deck
   The privacy section deliberately shows no screenshot: there is no screen
   in the app that lists women, because no such screen exists. This is a
   drawing of the absence.
   -------------------------------------------------------------------------- */
.deck {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-md);
  padding: var(--sp-xl);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card-lg);
  overflow: hidden;
}

.deck__card {
  aspect-ratio: 3 / 4;
  border-radius: var(--r-tile);
  background: var(--surface2);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
/* An unreadable smear of brand colour where a face would be */
.deck__card::before {
  content: "";
  position: absolute;
  inset: -30%;
  background: var(--grad-mark);
  opacity: .5;
  filter: blur(18px);
}
.deck__card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(18, 6, 31, .55);
}
.deck__card:nth-child(2n)::before { background: var(--grad-heart); opacity: .42; }
.deck__card:nth-child(3n)::before { opacity: .34; }

.deck__scrim {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 50%,
              rgba(18, 6, 31, .72) 0%,
              rgba(18, 6, 31, .93) 62%,
              rgba(18, 6, 31, .98) 100%);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.deck__seal { text-align: center; padding: var(--sp-xl); }
.deck__seal svg { width: 46px; height: 46px; fill: var(--rose); margin-bottom: var(--sp-md); }
.deck__seal .heading { margin-bottom: 6px; }

/* --------------------------------------------------------------------------
   15. FAQ
   -------------------------------------------------------------------------- */
.faq { max-width: 760px; margin-inline: auto; display: grid; gap: var(--sp-md); }

.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
}
.faq details[open] { border-color: rgba(255, 247, 249, .2); }

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 56px 20px 24px;
  position: relative;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 24px; top: 50%;
  width: 14px; height: 14px;
  margin-top: -7px;
  background: var(--rose);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 5h2v14h-2z'/%3E%3Cpath d='M5 11h14v2H5z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 5h2v14h-2z'/%3E%3Cpath d='M5 11h14v2H5z'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq__body { padding: 0 24px 22px; color: var(--muted); }

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(48px, 6vw, 72px) 32px;
}
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: var(--sp-xl);
  margin-bottom: 44px;
}
.footer__brand .lockup { margin-bottom: var(--sp-md); }
.footer__brand p { max-width: 34ch; }
.footer h4 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--sp-lg);
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer ul a { font-size: 15px; color: var(--muted); }
.footer ul a:hover { color: var(--fg); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-lg);
  align-items: center;
  justify-content: space-between;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
/* The company disclosure takes its own full-width line under the two short
   notices rather than competing with them for space on the same row. */
.footer__legal { flex-basis: 100%; max-width: 88ch; opacity: .85; }
.footer__legal strong { color: var(--fg); font-weight: 600; }

/* --------------------------------------------------------------------------
   17. Cookie consent
   The site keeps the existing GA4 property, so it sets cookies — the tag is
   injected by site.js only after an explicit Accept. Nothing loads before.
   -------------------------------------------------------------------------- */
.consent {
  position: fixed;
  left: var(--gutter);
  bottom: var(--gutter);
  z-index: 200;
  width: min(420px, calc(100vw - 2 * var(--gutter)));
  padding: 20px;
  background: var(--card);
  border: 1px solid rgba(255, 247, 249, .2);
  border-radius: var(--r-card);
  box-shadow: 0 24px 60px -22px rgba(0, 0, 0, .8);
}
.consent[hidden] { display: none; }
.consent p { font-size: 14px; line-height: 1.55; color: var(--muted); }
.consent a { color: #C9B4DC; text-decoration: underline; }
.consent__actions { display: flex; gap: var(--sp-md); margin-top: var(--sp-lg); }
.consent__actions .btn { flex: 1; }

/* --------------------------------------------------------------------------
   18. Prose — privacy / terms / support
   -------------------------------------------------------------------------- */
.page-head {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(48px, 6vw, 80px));
  padding-bottom: clamp(32px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
}
.page-head .wrap { position: relative; z-index: 1; }
.page-head .bloom { top: -10%; opacity: .6; }

.prose { max-width: 70ch; }
.prose h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.2;
  margin: 48px 0 var(--sp-md);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.01em;
  margin: 30px 0 var(--sp-sm);
}
.prose p, .prose li { color: var(--muted); font-size: 16px; line-height: 1.7; }
.prose strong { color: var(--fg); font-weight: 600; }
.prose a { color: #C9B4DC; text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--fg); }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 22px; display: grid; gap: 8px; }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 1.5em; font-size: 15px; }
.prose th, .prose td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--muted);
}
.prose th { color: var(--fg); font-weight: 600; }
.prose__wrap { overflow-x: auto; }

.note {
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 18px;
  margin: var(--sp-xl) 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

.toc {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 22px 24px;
  margin-bottom: 44px;
}
.toc h4 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 var(--sp-md);
}
.toc ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.toc a { color: var(--muted); font-size: 15px; }
.toc a:hover { color: var(--fg); }

/* --------------------------------------------------------------------------
   19. Reveal on scroll
   -------------------------------------------------------------------------- */
/* Gated on the `js` class, which an inline script in <head> sets before
   first paint. With scripting off the class never appears and the content
   is simply visible — the page must never depend on JS to be readable. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
  will-change: opacity, transform;
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   20. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero .lede { margin-inline: auto; }
  .hero .badges, .hero .chips { justify-content: center; }
  .hero__media { margin-top: var(--sp-xl); }
}

@media (max-width: 860px) {
  :root { --gutter: 20px; }

  .nav-toggle { display: inline-flex; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: var(--sp-sm) var(--gutter) var(--sp-xl);
    background: rgba(18, 6, 31, .97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a {
    padding: 15px 0;
    font-size: 17px;
    color: var(--fg);
    border-bottom: 1px solid var(--line);
  }
  .nav .btn { margin-top: var(--sp-lg); }

  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .grid--2 { grid-template-columns: 1fr; }

  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }

  .frame-pair .frame--sm:first-child { margin-right: -40px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .frame { max-width: 268px; }
  .deck { grid-template-columns: repeat(2, 1fr); }
  .deck__card:nth-child(n + 5) { display: none; }
  .badges { flex-direction: column; }
  .badge { width: 100%; }
  .footer__top { grid-template-columns: 1fr; }
  .consent { left: 12px; right: 12px; bottom: 12px; width: auto; }
  /* Stacked rather than overlapped — at this width an overlap just hides
     one of the two screens. */
  .frame-pair { flex-direction: column; align-items: center; gap: var(--sp-xl); }
  .frame-pair .frame--sm:first-child { margin-right: 0; }
  .frame-pair .frame--sm:last-child { margin-top: 0; }
}

/* --------------------------------------------------------------------------
   21. Motion & print
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .frame--tilt, .frame--tilt-r { transform: none; }
}

@media print {
  .header, .consent, .footer__bottom, .nav-toggle { display: none; }
  body { background: #fff; color: #000; }
  .prose p, .prose li { color: #000; }
}
