/* ==========================================================================
   Girnii — girnii.in
   Indigo ink on chalk, one turmeric millstone.
   Layout: a left-aligned column of large type; the stone is the single bold object.
   ========================================================================== */

@font-face {
  font-family: 'Anek Latin';
  src: url('../fonts/anek-latin-wght.woff2') format('woff2');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  /* Colour: the Indigo and Turmeric system from the app */
  --chalk: #FFF9EC;
  --paper: #FFFFFF;
  --indigo: #1B2A6B;
  --indigo-deep: #141F52;
  --slate: #5A6592;
  --turmeric: #F2A100;
  --turmeric-tint: #FDEBC4;
  --hair: rgba(27, 42, 107, .14);
  --hair-strong: rgba(27, 42, 107, .26);
  --on-indigo: #FFF9EC;
  --on-indigo-mute: #A8B0D0;
  --hair-on-indigo: rgba(255, 249, 236, .16);

  /* Type: one family, as in the app */
  --font: 'Anek Latin', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --fs-hero: clamp(2.875rem, 1.45rem + 5.9vw, 5.5rem);
  --fs-h1: clamp(2.5rem, 1.7rem + 3.4vw, 4rem);
  --fs-h2: clamp(2rem, 1.45rem + 2.3vw, 3.125rem);
  --fs-h3: clamp(1.3125rem, 1.2rem + .45vw, 1.5625rem);
  --fs-lead: clamp(1.125rem, 1.06rem + .32vw, 1.3125rem);
  --fs-body: 1.0625rem;
  --fs-small: .9375rem;
  --fs-xs: .8125rem;

  /* Space and shape */
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(72px, 10vw, 136px);
  --radius-panel: 28px;
  --shadow: 0 2px 10px rgba(27, 42, 107, .06), 0 8px 24px rgba(27, 42, 107, .05);
  --header-h: 72px;
}

/* ---------- Base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--chalk);
  color: var(--indigo);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
img, svg { max-width: 100%; }
svg { display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
strong, b { font-weight: 600; }

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

::selection { background: var(--turmeric); color: var(--indigo); }

.wrap {
  width: min(100% - 2 * var(--gutter), 1200px);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--indigo);
  color: var(--on-indigo);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 249, 236, .9);
  -webkit-backdrop-filter: saturate(1.5) blur(14px);
  backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1.5px solid var(--hair);
}

.site-header__row {
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  margin-right: auto;
  color: var(--indigo);
  text-decoration: none;
  border-radius: 8px;
}
.brand svg { height: 36px; width: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.6vw, 36px);
  margin-right: clamp(8px, 1.4vw, 20px);
}
.nav a {
  font-size: var(--fs-small);
  font-weight: 500;
  text-decoration: none;
  padding: 10px 0;
}
.nav a:hover { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 6px; }

.menu { display: none; position: relative; }
.menu summary {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--hair-strong);
  border-radius: 999px;
  cursor: pointer;
  list-style: none;
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 20px; height: 20px; }
.menu[open] summary { background: var(--indigo); border-color: var(--indigo); color: var(--on-indigo); }
.menu__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: min(300px, calc(100vw - 2 * var(--gutter)));
  padding: 10px;
  background: var(--paper);
  border: 1.5px solid var(--hair);
  border-radius: 22px;
  box-shadow: 0 18px 48px rgba(27, 42, 107, .16);
}
.menu__panel a {
  display: block;
  padding: 13px 14px;
  border-radius: 14px;
  font-weight: 500;
  text-decoration: none;
}
.menu__panel a:hover { background: var(--chalk); }
.menu__panel hr { height: 1.5px; margin: 6px 14px; border: 0; background: var(--hair); }

@media (max-width: 820px) {
  .nav { display: none; }
  .menu { display: block; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--indigo);
  color: var(--on-indigo);
  font-size: var(--fs-body);
  font-weight: 600;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease;
}
.btn:hover { background: var(--indigo-deep); }
.btn--small { min-height: 44px; padding: 0 20px; font-size: var(--fs-small); }
.btn--outline {
  background: transparent;
  color: var(--indigo);
  box-shadow: inset 0 0 0 1.5px var(--hair-strong);
}
.btn--outline:hover { background: rgba(27, 42, 107, .06); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.textlink {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
  text-decoration-color: rgba(27, 42, 107, .55);
}
.textlink:hover { text-decoration-color: var(--turmeric); }

/* Store buttons: outlined until the listing is live, filled once it is. */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  flex: 1 1 148px;
  max-width: 196px;
  min-height: 62px;
  padding: 9px 24px 9px 22px;
  border-radius: 18px;
  box-shadow: inset 0 0 0 1.5px var(--hair-strong);
  color: var(--indigo);
  text-decoration: none;
  line-height: 1.15;
}
.store__small { font-size: var(--fs-xs); font-weight: 500; color: var(--slate); }
.store__big { font-size: 1.25rem; font-weight: 600; letter-spacing: -.02em; }
.store.is-live { background: var(--indigo); box-shadow: none; color: var(--on-indigo); transition: background-color .15s ease; }
.store.is-live .store__small { color: var(--on-indigo-mute); }
.store.is-live:hover { background: var(--indigo-deep); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  overflow: clip;
  padding-block: clamp(36px, 5vw, 64px) clamp(40px, 5vw, 64px);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(36px, 4.4vw, 64px);
}
.hero__copy { position: relative; z-index: 2; }
.hero__title {
  font-size: var(--fs-hero);
  font-weight: 600;
  line-height: .98;
  letter-spacing: -.04em;
}
.hero__title span { display: block; }
.hero__title i { font-style: normal; color: var(--turmeric); }
.hero__lead {
  max-width: 27em;
  margin-top: clamp(22px, 2.6vw, 32px);
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--slate);
}
.hero__cta { margin-top: clamp(28px, 3vw, 40px); }
.hero__more { margin-top: 22px; font-size: var(--fs-small); }

.hero__visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 640px;
  container-type: inline-size;
}
/* The stone may spill past its column by no more than the gap beside it. */
.stone {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(52vw, 700px);
  width: min(118cqi, 700px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
}
.stone svg { width: 100%; height: 100%; will-change: transform; animation: stone-turn 240s linear infinite; }
@keyframes stone-turn { to { transform: rotate(360deg); } }

@media (max-width: 940px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__visual { min-height: 0; padding-block: 28px 8px; }
  .stone { width: min(128vw, 620px); }
}

/* ---------- Phone ---------- */

.phone {
  position: relative;
  z-index: 1;
  width: 296px;
  padding: 9px;
  border-radius: 46px;
  background: var(--indigo-deep);
  box-shadow: 0 30px 60px -18px rgba(20, 31, 82, .45), 0 10px 22px rgba(20, 31, 82, .16);
}
.phone__screen {
  overflow: hidden;
  border-radius: 38px;
  background: var(--chalk);
  font-size: 12px;
  line-height: 1.35;
  color: var(--indigo);
}
.app-head {
  padding: 30px 16px 15px;
  border-radius: 0 0 22px 22px;
  background: var(--indigo);
  color: var(--on-indigo);
}
.app-head__row { display: flex; align-items: center; gap: 10px; }
.app-head__row svg { width: 19px; height: 19px; flex-shrink: 0; }
.app-head__t { font-size: 13.5px; font-weight: 600; }
.app-head__s { margin: 3px 0 0 29px; font-size: 10.5px; color: rgba(255, 249, 236, .72); }
.app-body { display: flex; flex-direction: column; gap: 8px; padding: 12px 12px 16px; }
.app-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 15px;
  background: var(--paper);
  box-shadow: 0 1px 6px rgba(27, 42, 107, .05);
}
.app-check {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--indigo);
  flex-shrink: 0;
}
.app-check svg { width: 12px; height: 12px; }
.app-row__t { display: flex; flex-direction: column; flex-grow: 1; min-width: 0; }
.app-row__t b { font-size: 12.5px; }
.app-row__t span, .app-row__time { font-size: 10.5px; color: var(--slate); }
.app-row__time { font-variant-numeric: tabular-nums; white-space: nowrap; }
.app-card {
  overflow: hidden;
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 2px 10px rgba(27, 42, 107, .06);
}
.app-card__top { padding: 13px 13px 11px; }
.app-h { font-size: 21px; font-weight: 700; line-height: 1.1; letter-spacing: -.03em; }
.app-now { display: flex; align-items: center; gap: 7px; margin-top: 7px; font-size: 13px; font-weight: 600; }
.app-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--turmeric); flex-shrink: 0; }
.app-line { margin-top: 5px; font-size: 11px; color: var(--slate); }
.app-map { width: 100%; height: auto; }
.app-rider { display: flex; align-items: center; gap: 10px; padding: 11px 13px 12px; }
.app-av {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border-radius: 50%;
  background: var(--turmeric-tint);
  font-size: 13.5px;
  font-weight: 700;
  flex-shrink: 0;
}
.app-who { display: flex; flex-direction: column; flex-grow: 1; min-width: 0; }
.app-who b { font-size: 12.5px; }
.app-who span { font-size: 10.5px; color: var(--slate); }
.app-call {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 34px;
  padding: 0 13px 0 11px;
  border-radius: 999px;
  background: var(--indigo);
  color: var(--on-indigo);
  font-size: 12px;
  font-weight: 600;
}
.app-call svg { width: 13px; height: 13px; }
.app-facts { padding: 11px 13px; border: 1.5px solid rgba(27, 42, 107, .12); border-radius: 18px; }
.app-facts b { display: block; font-size: 12.5px; }
.app-facts p { margin-top: 4px; font-size: 11.2px; font-weight: 500; color: rgba(27, 42, 107, .85); }

/* ---------- Sections ---------- */

.section { padding-block: var(--section); }
.section--tight { padding-top: 0; }
.section__head { max-width: 46rem; margin-bottom: clamp(36px, 5vw, 64px); }
.section__head h2, .h2 {
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.035em;
}
.section__head p, .lead {
  margin-top: 18px;
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--slate);
}

/* How it works: four stops on one round trip */
.steps { border-bottom: 1.5px solid var(--hair); }
.step {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) minmax(0, 1.3fr) 132px;
  align-items: start;
  gap: 6px 32px;
  padding-block: clamp(26px, 3vw, 38px);
  border-top: 1.5px solid var(--hair);
}
.step__n {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--turmeric);
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1;
}
.step__t {
  padding-top: 7px;
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.025em;
}
.step__d { padding-top: 9px; color: var(--slate); max-width: 34em; }
.step__place {
  padding-top: 12px;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--slate);
  text-align: right;
}
@media (max-width: 940px) {
  .step { grid-template-columns: 62px minmax(0, 1fr); }
  .step__n { grid-row: 1 / span 3; }
  .step__t { padding-top: 0; }
  .step__place { order: -1; grid-column: 2; padding-top: 0; text-align: left; }
  .step__d { grid-column: 2; padding-top: 2px; }
}

/* Two ways to order: one panel, two halves */
.ways {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1.5px solid var(--hair);
  border-radius: var(--radius-panel);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.way { display: flex; flex-direction: column; padding: clamp(28px, 4vw, 52px); }
.way + .way { border-left: 1.5px solid var(--hair); }
.way h3 { font-size: clamp(1.625rem, 1.35rem + 1.1vw, 2.125rem); font-weight: 600; line-height: 1.08; letter-spacing: -.035em; }
.way > p { margin-top: 14px; color: var(--slate); max-width: 30em; }
.bill { margin-top: 28px; }
.bill__label { font-size: var(--fs-small); font-weight: 500; color: var(--slate); }
.bill ul { margin-top: 10px; border-bottom: 1.5px solid var(--hair); }
.bill li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 12px;
  border-top: 1.5px solid var(--hair);
  font-weight: 600;
}
.bill li span:last-child { font-weight: 400; color: var(--slate); text-align: right; }
.way__note { margin-top: auto; padding-top: 22px; font-size: var(--fs-small); color: var(--slate); }
.ways__foot { margin-top: 22px; font-size: var(--fs-small); color: var(--slate); }
@media (max-width: 820px) {
  .ways { grid-template-columns: minmax(0, 1fr); }
  .way + .way { border-left: 0; border-top: 1.5px solid var(--hair); }
}

/* Your grind: the three choices on the order screen, and a flour sample that follows them */
.grind__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
}
.spec { margin-top: clamp(28px, 4vw, 44px); border-bottom: 1.5px solid var(--hair); }
.spec__row {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  align-items: center;
  gap: 8px 20px;
  padding: 18px 0;
  border-top: 1.5px solid var(--hair);
}
.spec__label { font-size: var(--fs-small); font-weight: 500; color: var(--slate); }
.spec__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.spec__list { font-size: var(--fs-lead); font-weight: 600; letter-spacing: -.015em; line-height: 1.3; }
.chip { position: relative; display: inline-flex; cursor: pointer; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px var(--hair-strong);
  font-weight: 600;
  transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.chip:hover span { background: rgba(27, 42, 107, .06); }
.chip input:checked + span { background: var(--indigo); box-shadow: none; color: var(--on-indigo); }
.chip input:focus-visible + span { outline: 3px solid var(--turmeric); outline-offset: 3px; }

.sample { display: grid; justify-items: center; gap: 20px; }
.sample svg { width: min(100%, 380px); height: auto; overflow: visible; }
.sample__tex, .sample__bran { transition: opacity .25s ease; }
.sample__tex { opacity: 0; }
.sample__tex--medium { opacity: 1; }
.sample__caption { font-size: var(--fs-small); color: var(--slate); text-align: center; }
.sample__caption b { color: var(--indigo); }
.sample__word { display: none; }
.sample__word--medium, .sample__word--in { display: inline; }

/* state from script */
.grind[data-tex="fine"] .sample__tex--fine,
.grind[data-tex="coarse"] .sample__tex--coarse { opacity: 1; }
.grind[data-tex="fine"] .sample__tex--medium,
.grind[data-tex="coarse"] .sample__tex--medium { opacity: 0; }
.grind[data-bran="out"] .sample__bran { opacity: 0; }
.grind[data-tex="fine"] .sample__word--fine,
.grind[data-tex="coarse"] .sample__word--coarse,
.grind[data-bran="out"] .sample__word--out { display: inline; }
.grind[data-tex="fine"] .sample__word--medium,
.grind[data-tex="coarse"] .sample__word--medium,
.grind[data-bran="out"] .sample__word--in { display: none; }
/* same state without script, where :has() is supported */
.grind:has(#tex-fine:checked) .sample__tex--fine { opacity: 1; }
.grind:has(#tex-coarse:checked) .sample__tex--coarse { opacity: 1; }
.grind:has(#tex-fine:checked) .sample__tex--medium { opacity: 0; }
.grind:has(#tex-coarse:checked) .sample__tex--medium { opacity: 0; }
.grind:has(#bran-out:checked) .sample__bran { opacity: 0; }
.grind:has(#tex-fine:checked) .sample__word--fine { display: inline; }
.grind:has(#tex-coarse:checked) .sample__word--coarse { display: inline; }
.grind:has(#bran-out:checked) .sample__word--out { display: inline; }
.grind:has(#tex-fine:checked) .sample__word--medium { display: none; }
.grind:has(#tex-coarse:checked) .sample__word--medium { display: none; }
.grind:has(#bran-out:checked) .sample__word--in { display: none; }

@media (max-width: 940px) {
  .grind__grid { grid-template-columns: minmax(0, 1fr); }
  .sample svg { width: min(72vw, 300px); }
}
@media (max-width: 520px) {
  .spec__row { grid-template-columns: minmax(0, 1fr); }
  .chip span { padding: 0 17px; }
}

/* The promise: the one indigo band on the page */
.band { background: var(--indigo); color: var(--on-indigo); }
.band__grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.band .lead { color: var(--on-indigo-mute); max-width: 22em; }
.promises { border-bottom: 1.5px solid var(--hair-on-indigo); }
.promises li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: baseline;
  padding-block: clamp(18px, 2.2vw, 26px);
  border-top: 1.5px solid var(--hair-on-indigo);
  font-size: clamp(1.3125rem, 1.05rem + 1.15vw, 2rem);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -.028em;
}
.promises li::before {
  content: "";
  width: .42em;
  height: .42em;
  border-radius: 50%;
  background: var(--turmeric);
  transform: translateY(-.12em);
}
.promises small {
  display: block;
  margin-top: 6px;
  font-size: var(--fs-body);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.45;
  color: var(--on-indigo-mute);
}
@media (max-width: 940px) {
  .band__grid { grid-template-columns: minmax(0, 1fr); }
}

/* In the app */
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px) clamp(24px, 4vw, 56px);
}
.feature { padding-top: 26px; border-top: 1.5px solid var(--hair); }
.feature svg { width: 30px; height: 30px; }
.feature h3 { margin-top: 20px; font-size: var(--fs-h3); font-weight: 600; line-height: 1.15; letter-spacing: -.025em; }
.feature p { margin-top: 8px; color: var(--slate); }
@media (max-width: 940px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .features { grid-template-columns: minmax(0, 1fr); } }

/* Get the app */
.cta {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 7vw, 96px);
  border-radius: clamp(28px, 4vw, 44px);
  background: var(--turmeric);
}
.cta__copy { position: relative; z-index: 1; max-width: 37rem; }
.cta h2 { font-size: var(--fs-h2); font-weight: 600; line-height: 1.02; letter-spacing: -.04em; }
.cta p { margin-top: 18px; font-size: var(--fs-lead); line-height: 1.5; max-width: 27em; }
.cta .stores { margin-top: clamp(26px, 3vw, 38px); }
.cta .store { box-shadow: inset 0 0 0 1.5px rgba(27, 42, 107, .5); }
.cta .store__small { color: var(--indigo); }
.cta .store.is-live { box-shadow: none; }
.cta .store.is-live .store__small { color: var(--on-indigo-mute); }
.cta__stone {
  position: absolute;
  right: clamp(-260px, -14vw, -120px);
  top: 50%;
  width: clamp(420px, 46vw, 640px);
  aspect-ratio: 1;
  transform: translateY(-50%);
  pointer-events: none;
}
@media (max-width: 820px) {
  .cta__stone { right: -52%; top: -30%; width: 104%; transform: none; }
}

/* ---------- Footer ---------- */

.site-footer { padding-block: clamp(48px, 6vw, 80px) 36px; border-top: 1.5px solid var(--hair); }
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 40px 32px;
}
.site-footer .brand svg { height: 30px; }
.site-footer__about { margin-top: 18px; max-width: 24em; font-size: var(--fs-small); color: var(--slate); }
.site-footer h2 { font-size: var(--fs-small); font-weight: 500; color: var(--slate); letter-spacing: 0; }
.site-footer ul { margin-top: 12px; }
.site-footer li a { display: inline-block; padding: 6px 0; font-weight: 500; text-decoration: none; }
.site-footer li a:hover { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 22px;
  border-top: 1.5px solid var(--hair);
  font-size: var(--fs-xs);
  color: var(--slate);
}
@media (max-width: 820px) {
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__brand { grid-column: 1 / -1; }
}

/* ---------- Document pages (privacy, terms, support, account deletion) ---------- */

.doc__head { padding-block: clamp(44px, 6vw, 88px) clamp(32px, 4vw, 52px); }
.doc__head h1 {
  max-width: 14em;
  font-size: var(--fs-h1);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.042em;
}
.doc__meta { margin-top: 18px; font-size: var(--fs-small); color: var(--slate); }
.doc__head .lead { max-width: 38em; margin-top: 22px; }

.doc__grid {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
  padding-bottom: var(--section);
}
.doc__grid--single { grid-template-columns: minmax(0, 1fr); }

.toc { position: sticky; top: calc(var(--header-h) + 28px); }
.toc summary {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--slate);
  list-style: none;
  pointer-events: none;
}
.toc summary::-webkit-details-marker { display: none; }
.toc summary svg { display: none; }
.toc ol { margin-top: 12px; border-left: 1.5px solid var(--hair); }
.toc a {
  display: block;
  padding: 6px 0 6px 16px;
  margin-left: -1.5px;
  border-left: 1.5px solid transparent;
  font-size: var(--fs-small);
  line-height: 1.35;
  text-decoration: none;
}
.toc a:hover { border-left-color: var(--turmeric); }

@media (max-width: 940px) {
  .doc__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .toc {
    position: static;
    border: 1.5px solid var(--hair);
    border-radius: 20px;
    background: var(--paper);
  }
  .toc summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 18px;
    font-size: var(--fs-body);
    font-weight: 600;
    color: var(--indigo);
    cursor: pointer;
    pointer-events: auto;
  }
  .toc summary svg { display: block; width: 18px; height: 18px; transition: transform .2s ease; }
  .toc[open] summary svg { transform: rotate(180deg); }
  .toc ol { margin: 0 18px 14px; }
}

.prose { max-width: 43rem; line-height: 1.65; }
.prose > :first-child { margin-top: 0; }
.prose h2 {
  margin: 3.25rem 0 .9rem;
  font-size: clamp(1.5rem, 1.32rem + .75vw, 1.9375rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.03em;
}
.prose h3 { margin: 2rem 0 .5rem; font-size: 1.1875rem; font-weight: 600; line-height: 1.25; letter-spacing: -.012em; }
.prose p { margin-bottom: 1rem; }
.prose ul, .prose ol { margin-bottom: 1.1rem; padding-left: 1.25em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-block: .4rem; padding-left: .2em; }
.prose li::marker { color: var(--turmeric); font-weight: 600; }
.prose ol > li::marker { color: var(--indigo); }
.prose a {
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  text-decoration-color: rgba(27, 42, 107, .55);
  overflow-wrap: anywhere;
}
.prose a:hover { text-decoration-color: var(--turmeric); }
.prose address { font-style: normal; }
.muted { color: var(--slate); }

/* term + explanation pairs, used in place of tables so nothing scrolls sideways */
.pairs { margin: 1.25rem 0 1.5rem; border-bottom: 1.5px solid var(--hair); }
.pairs > div {
  display: grid;
  grid-template-columns: minmax(0, 12.5rem) minmax(0, 1fr);
  gap: 4px 28px;
  padding-block: 15px;
  border-top: 1.5px solid var(--hair);
}
.pairs dt { font-weight: 600; line-height: 1.4; }
.pairs dd { color: var(--slate); }
.pairs dd strong { color: var(--indigo); }
@media (max-width: 640px) { .pairs > div { grid-template-columns: minmax(0, 1fr); } }

.brief {
  padding: clamp(22px, 3vw, 32px);
  border: 1.5px solid var(--hair);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.brief h2 { margin: 0 0 .7rem; font-size: 1.25rem; letter-spacing: -.015em; }
.brief ul { margin: 0; padding: 0; list-style: none; }
.brief li { position: relative; margin-block: .55rem; padding: 0 0 0 22px; }
.brief li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--turmeric);
}

.note { margin: 1.5rem 0; padding: 22px 26px; border-radius: 20px; background: var(--turmeric-tint); }
.routes + .note { margin: 20px 0 0; }
.after { max-width: 44rem; margin-top: clamp(28px, 4vw, 44px); color: var(--slate); }
.note > :last-child { margin-bottom: 0; }
.note h3 { margin: 0 0 .4rem; font-size: 1.1875rem; font-weight: 600; letter-spacing: -.012em; }
.note p { margin-bottom: .6rem; max-width: 46rem; }

/* Contact block */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  border: 1.5px solid var(--hair);
  border-radius: var(--radius-panel);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.contact > div { padding: clamp(26px, 3.6vw, 44px); }
.contact > div + div { border-left: 1.5px solid var(--hair); }
.contact__label { font-size: var(--fs-small); font-weight: 500; color: var(--slate); }
.contact__email {
  display: inline-block;
  margin-top: 6px;
  font-size: clamp(1.5rem, 1.1rem + 1.9vw, 2.5rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.035em;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.contact__email:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--turmeric); }
.contact__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.contact__hint { margin-top: 16px; font-size: var(--fs-small); color: var(--slate); }
.contact h2 { font-size: 1.1875rem; font-weight: 600; letter-spacing: -.012em; }
.contact ul { margin-top: 12px; padding-left: 1.2em; list-style: disc; color: var(--slate); }
.contact li { margin-block: .4rem; }
.contact li::marker { color: var(--turmeric); }
@media (max-width: 820px) {
  .contact { grid-template-columns: minmax(0, 1fr); }
  .contact > div + div { border-left: 0; border-top: 1.5px solid var(--hair); }
}

/* Questions */
.faq-group { margin-top: clamp(40px, 5vw, 64px); }
.faq-group--first { margin-top: 0; }
.faq-group > h3 { margin-bottom: 14px; font-size: var(--fs-small); font-weight: 500; color: var(--slate); }
.faq { border-bottom: 1.5px solid var(--hair); }
.faq details { border-top: 1.5px solid var(--hair); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 20px;
  font-size: clamp(1.125rem, 1.06rem + .3vw, 1.3125rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.018em;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 22px; height: 22px; flex-shrink: 0; transition: transform .2s ease; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details > div { max-width: 42rem; padding-bottom: 22px; color: var(--slate); }
.faq details > div p + p { margin-top: .7rem; }
.faq details > div a { color: var(--indigo); font-weight: 500; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }

/* Account deletion: two routes, then what goes and what stays */
.routes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.route {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3.4vw, 40px);
  border: 1.5px solid var(--hair);
  border-radius: var(--radius-panel);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.route__label { font-size: var(--fs-small); font-weight: 500; color: var(--slate); }
.route h3 { margin-top: 4px; font-size: clamp(1.5rem, 1.3rem + .8vw, 1.875rem); font-weight: 600; line-height: 1.1; letter-spacing: -.03em; }
.route ol { margin-top: 20px; counter-reset: route; }
.route ol li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: start;
  padding-block: 13px;
  border-top: 1.5px solid var(--hair);
  counter-increment: route;
}
.route ol li::before {
  content: counter(route);
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--turmeric);
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 1;
}
.route__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 24px; }
.route__foot { margin-top: 14px; font-size: var(--fs-small); color: var(--slate); }
.route__foot a, .route ol a { font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 820px) { .routes { grid-template-columns: minmax(0, 1fr); } }

.ledger { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 72px); }
.ledger h3 { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -.025em; line-height: 1.15; }
.ledger > div > p { margin-top: 8px; color: var(--slate); }
.ledger ul { margin-top: 18px; border-bottom: 1.5px solid var(--hair); }
.ledger li { padding-block: 13px; border-top: 1.5px solid var(--hair); }
.ledger li b { display: block; }
.ledger li span { display: block; margin-top: 2px; font-size: var(--fs-small); color: var(--slate); }
@media (max-width: 820px) { .ledger { grid-template-columns: minmax(0, 1fr); } }

.block { padding-bottom: var(--section); }
.block__head { max-width: 44rem; margin-bottom: clamp(26px, 3.4vw, 40px); }
.block__head h2 { font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem); font-weight: 600; line-height: 1.06; letter-spacing: -.036em; }
.block__head p { margin-top: 12px; font-size: var(--fs-lead); line-height: 1.5; color: var(--slate); }

.copied { margin-top: 10px; font-size: var(--fs-small); font-weight: 500; color: var(--slate); min-height: 1.4em; }
@media (max-width: 520px) {
  .contact__actions .btn, .route__actions .btn { flex: 1 1 100%; }
}

/* Not found */
.lost { padding-block: clamp(72px, 14vw, 180px); }
.lost h1 { font-size: var(--fs-h1); font-weight: 600; line-height: 1; letter-spacing: -.042em; max-width: 12em; }
.lost p { margin-top: 20px; font-size: var(--fs-lead); color: var(--slate); max-width: 30em; }
.lost .btn { margin-top: 32px; }

/* ---------- Motion ---------- */

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

@media print {
  .site-header, .site-footer, .toc, .hero__visual, .skip { display: none !important; }
  body { background: #fff; }
}
