/* Hallmark · theme: inherited (the Vocably app's design system, app/lib/Shared) · idea: "the page plays like the game: tiles spell the name, a board to try, then the meaning" · vibe: "warm paper, game tiles, a word worth keeping" · paper: the app's paper and ink · accent: the app's deep sage · faces: Urbanist, Fraunces (bundled with the app) · posture: restrained · signature: a round you can play, ending in the word's meaning */
/* critique: the brand is the app's, so tokens copy AppColors exactly; the tiles carry the colour, the page stays quiet around them. */
/* waive 22/23 (OKLCH): every colour is the app's hex token, and app/test/website/website_test.dart checks they still match AppColors. */
/* waive 7b (pure white): tile, key and button text are AppColors' white (tileText, keyText, onPrimary), kept equal to the app. */
/* waive 40 (3.9:1 on green tiles and keys): the app's own palette, which test/design/theme_test.dart holds to 3:1 for bold tile and key glyphs; each also names its state in its label. */
/* waive 58, 59, 77, 78 on privacy.html and support.html: they are documents, not landing screens; the policy must match the app's word for word, and a readable measure beats ten columns. */
/* waive 77 on index.html (Questions, Get Vocably) and 404.html: the questions keep a readable measure and the closing band is one statement with its badges; the 404 is short by nature. */
/* waive 58 on 404.html: the screen's words are mostly the footer's credits and trademark lines, which every page must carry. */
/* waive 58 on index.html at y=3700: the count includes the closed questions' answers; about 115 words show on that screen. */

/* ── Fonts: the app's own files, as WOFF (tools/brand/build_brand_assets.py) ── */

@font-face {
  font-family: "Urbanist";
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/urbanist-400.woff") format("woff");
}

@font-face {
  font-family: "Urbanist";
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/urbanist-600.woff") format("woff");
}

@font-face {
  font-family: "Urbanist";
  font-weight: 800;
  font-display: swap;
  src: url("/fonts/urbanist-800.woff") format("woff");
}

@font-face {
  font-family: "Fraunces";
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/fraunces-text-400.woff") format("woff");
}

@font-face {
  font-family: "Fraunces Display";
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/fraunces-display-600.woff") format("woff");
}

/* ── Tokens. Light is paper, dark is ink; each name says which AppColors value it is ── */

:root {
  color-scheme: light dark;

  /* AppColors.paper, paperLow, paperContainer, paperHigh */
  --color-paper: #FAF6EE;
  --color-paper-2: #F5EFE4;
  --color-paper-3: #F0E8DB;
  --color-paper-4: #EAE1D2;
  /* AppColors.paperText, paperTextMuted, paperOutline, paperOutlineSoft */
  --color-ink: #1C1B1A;
  --color-muted: #57534E;
  --color-outline: #857E75;
  --color-rule: #D6CCBB;
  /* AppColors.sageDeep (primary), white (on primary), sagePale, sageInk */
  --color-accent: #3A6B53;
  --color-accent-ink: #FFFFFF;
  --color-accent-soft: #CFE5D7;
  --color-accent-soft-ink: #0F2E1F;
  /* AppColors.errorLight */
  --color-error: #B3261E;
  /* GameColors.light: AppColors.tileCorrectLight, tilePresentLight, tileAbsentLight */
  --color-tile-correct: #3B7A5A;
  --color-tile-present: #E3A33A;
  --color-tile-absent: #878D96;
  /* AppColors.tileTextLight (on correct and absent), tileTextDark (on present) */
  --color-tile-text: #FFFFFF;
  --color-tile-text-present: #1C1B1A;
  /* AppColors.tileTypedLight, tileTypedBorderLight, paperOutlineSoft (an empty tile's border) */
  --color-tile-typed: #FFFDF8;
  --color-tile-typed-border: #8C857B;
  --color-tile-empty-border: #D6CCBB;
  /* AppColors.keyLight, paperText */
  --color-key: #E4DBCB;
  --color-key-text: #1C1B1A;
  /* Badges are black in both themes, as Apple's and Google's guidelines show them */
  --color-shadow: rgb(28 27 26 / 0.08);

  --font-body: "Urbanist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Fraunces Display", "Fraunces", Georgia, "Times New Roman", serif;
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;

  --text-xs: 0.875rem;
  --text-sm: 0.9375rem;
  --text-md: 1.0625rem;
  --text-lg: 1.25rem;
  --text-xl: clamp(1.5rem, 1.1rem + 1.2vw, 1.875rem);
  --text-2xl: clamp(1.875rem, 1.2rem + 2.2vw, 2.75rem);
  --text-display: clamp(2.5rem, 1.4rem + 3.6vw, 4.25rem);

  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  --radius-sm: 0.5rem;
  --radius-md: 0.875rem;
  --radius-lg: 1.25rem;
  --radius-pill: 999px;
  /* AppDimensions.tileRadiusFactor */
  --tile-radius: 0.16;

  --container: 72rem;
  --measure: 40rem;
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2rem);
  --header-height: 4.25rem;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 120ms;
  --dur-short: 220ms;
  /* AppMotion.tileFlip */
  --dur-flip: 500ms;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* AppColors.ink, inkLow, inkContainer, inkHigh */
    --color-paper: #151515;
    --color-paper-2: #1A1A1A;
    --color-paper-3: #1F1F1F;
    --color-paper-4: #262626;
    /* AppColors.inkText, inkTextMuted, inkOutline, inkOutlineSoft */
    --color-ink: #F1EDE6;
    --color-muted: #BDB6AC;
    --color-outline: #8E877E;
    --color-rule: #3B3936;
    /* AppColors.sage (primary), sageInk (on primary), sageShadow, sagePale */
    --color-accent: #97C2AA;
    --color-accent-ink: #0F2E1F;
    --color-accent-soft: #2C4A3B;
    --color-accent-soft-ink: #CFE5D7;
    /* AppColors.errorDark */
    --color-error: #FFB4AB;
    /* GameColors.dark: AppColors.tileCorrectDark, tilePresentDark, tileAbsentDark */
    --color-tile-correct: #4F8D6C;
    --color-tile-present: #D9A040;
    --color-tile-absent: #3D4249;
    --color-tile-text: #FFFFFF;
    --color-tile-text-present: #1C1B1A;
    /* AppColors.tileTypedDark, tileTypedBorderDark, tileEmptyBorderDark */
    --color-tile-typed: #1D1D1D;
    --color-tile-typed-border: #6F6B66;
    --color-tile-empty-border: #383635;
    /* AppColors.keyDark, white */
    --color-key: #6B6864;
    --color-key-text: #FFFFFF;
    --color-shadow: rgb(0 0 0 / 0.3);
  }
}

/* ── Base ── */

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

html {
  overflow-x: clip;
  scrollbar-color: var(--color-outline) var(--color-paper);
  scroll-padding-top: calc(var(--header-height) + var(--space-md));
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

body {
  margin: 0;
  overflow-x: clip;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: 1.55;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  text-wrap: balance;
  overflow-wrap: break-word;
  min-width: 0;
}

h1 {
  font-size: var(--text-display);
  line-height: 1.04;
  letter-spacing: -0.025em;
  max-width: 16ch;
}

h2 {
  font-size: var(--text-2xl);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 24ch;
}

h3 {
  font-size: var(--text-xl);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--color-accent);
}

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

strong {
  font-weight: 600;
}

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

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

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.skip-link {
  position: absolute;
  inset-inline-start: var(--space-md);
  top: var(--space-xs);
  z-index: 400;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-sm);
  background: var(--color-ink);
  color: var(--color-paper);
  transform: translateY(-200%);
}

.skip-link:focus-visible {
  transform: none;
}

/* ── Header ── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 300;
  background: var(--color-paper);
  border-bottom: 1px solid var(--color-rule);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  min-height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  min-height: 44px;
  font-weight: 800;
  font-size: var(--text-lg);
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand img {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  gap: var(--space-lg);
  margin-inline-start: auto;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-muted);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--color-ink);
}

.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-decoration-thickness: 2px;
}

@media (max-width: 47.99rem) {
  .site-nav .wide-only {
    display: none;
  }

  .site-nav {
    gap: var(--space-md);
  }
}

/* ── Buttons ── */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  min-height: 48px;
  padding: 0 var(--space-lg);
  border: 1.5px solid var(--color-outline);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--color-ink);
  font: 600 var(--text-sm) / 1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out),
    transform var(--dur-micro) var(--ease-out);
}

.button:hover {
  border-color: var(--color-ink);
  background: var(--color-paper-3);
  color: var(--color-ink);
}

.button:active {
  transform: translateY(1px);
}

.button--primary {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: var(--color-accent-ink);
}

.button--primary:hover {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: var(--color-accent-ink);
  transform: translateY(-1px);
}

.button[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ── Tiles: the game's squares, drawn as the app draws them ── */

.tile {
  --size: 3rem;
  display: inline-grid;
  place-items: center;
  width: var(--size);
  height: var(--size);
  flex-shrink: 0;
  border-radius: calc(var(--size) * var(--tile-radius));
  font: 800 calc(var(--size) * 0.52) / 1 var(--font-body);
  text-transform: uppercase;
}

.tile--correct {
  background: var(--color-tile-correct);
  color: var(--color-tile-text);
}

.tile--present {
  background: var(--color-tile-present);
  color: var(--color-tile-text-present);
}

.tile--absent {
  background: var(--color-tile-absent);
  color: var(--color-tile-text);
}

.tile--typed {
  background: var(--color-tile-typed);
  border: 2px solid var(--color-tile-typed-border);
  color: var(--color-ink);
}

.tile--empty {
  border: 2px solid var(--color-tile-empty-border);
}

/* ── Hero ── */

.hero {
  padding-block: var(--space-xl) var(--space-2xl);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-xl);
  align-items: center;
}

@media (min-width: 60rem) {
  .hero__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: var(--space-2xl);
  }

  /* Keep the phone close to the words it shows, not adrift in its column. */
  .hero__grid > .hero__shot {
    justify-self: start;
  }
}

.hero__copy {
  display: grid;
  gap: var(--space-lg);
  container-type: inline-size;
}

/* The wordmark: VOCABLY in tiles that cycle correct, present and absent, as the app's TileWordmark does. */
.wordmark {
  --gap: clamp(0.3rem, 1.4cqi, 0.6rem);
  display: flex;
  gap: var(--gap);
  margin-bottom: var(--space-xs);
}

.wordmark .tile {
  --size: min(4.25rem, calc((100cqi - 6 * var(--gap)) / 7));
  position: relative;
}

.hero .lede {
  max-width: 34rem;
  font-size: var(--text-lg);
  color: var(--color-muted);
}

@media (prefers-reduced-motion: no-preference) {
  /* Each tile turns over from a typed letter to its colour, one after another, as a guess does. */
  .wordmark .tile {
    animation: tile-flip var(--dur-flip) var(--ease-in-out) backwards;
  }

  .wordmark .tile::before {
    content: attr(data-letter);
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 2px solid var(--color-tile-typed-border);
    border-radius: inherit;
    background: var(--color-tile-typed);
    color: var(--color-ink);
    opacity: 0;
    animation: tile-face var(--dur-flip) linear backwards;
  }

  .wordmark .tile:nth-child(1),
  .wordmark .tile:nth-child(1)::before {
    animation-delay: 300ms;
  }

  .wordmark .tile:nth-child(2),
  .wordmark .tile:nth-child(2)::before {
    animation-delay: 450ms;
  }

  .wordmark .tile:nth-child(3),
  .wordmark .tile:nth-child(3)::before {
    animation-delay: 600ms;
  }

  .wordmark .tile:nth-child(4),
  .wordmark .tile:nth-child(4)::before {
    animation-delay: 750ms;
  }

  .wordmark .tile:nth-child(5),
  .wordmark .tile:nth-child(5)::before {
    animation-delay: 900ms;
  }

  .wordmark .tile:nth-child(6),
  .wordmark .tile:nth-child(6)::before {
    animation-delay: 1050ms;
  }

  .wordmark .tile:nth-child(7),
  .wordmark .tile:nth-child(7)::before {
    animation-delay: 1200ms;
  }
}

@keyframes tile-flip {
  0% {
    transform: rotateX(0);
  }

  50% {
    transform: rotateX(90deg);
  }

  100% {
    transform: rotateX(0);
  }
}

@keyframes tile-face {
  0%,
  49.9% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
}

.badges a {
  display: block;
  border-radius: var(--radius-sm);
  transition: transform var(--dur-micro) var(--ease-out);
}

.badges a:hover {
  transform: translateY(-1px);
}

.badges img {
  height: 3rem;
  width: auto;
}

.promises {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-lg);
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: 600;
  font-size: var(--text-sm);
}

.promises li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}

.promises li::before {
  content: "";
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 0.12rem;
  background: var(--color-tile-correct);
}

.hero__shot {
  margin: 0;
  justify-self: center;
  width: min(100%, 19rem);
}

.screen {
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-rule);
  box-shadow: 0 1px 2px var(--color-shadow);
  background: var(--color-paper-2);
}

.screen--phone {
  border-radius: 1.75rem;
}

/* ── Sections ── */

.section {
  padding-block: var(--space-2xl);
}

@media (min-width: 60rem) {
  .section {
    padding-block: var(--space-3xl);
  }
}

.section--well {
  background: var(--color-paper-2);
  border-block: 1px solid var(--color-rule);
}

.section__head {
  display: grid;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.section__head p {
  max-width: var(--measure);
  color: var(--color-muted);
  font-size: var(--text-lg);
}

/* ── Play a round ── */

.play {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-xl);
  align-items: start;
}

@media (min-width: 60rem) {
  .play {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: var(--space-2xl);
  }
}

.play__rules {
  display: grid;
  gap: var(--space-lg);
}

.play__rules > p {
  max-width: var(--measure);
  color: var(--color-muted);
  font-size: var(--text-lg);
}

.legend {
  display: grid;
  gap: var(--space-sm);
  margin: 0;
  padding: 0;
  list-style: none;
}

.legend li {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.legend .tile {
  --size: 2.5rem;
}

.demo {
  display: grid;
  justify-items: center;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-md);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-lg);
  background: var(--color-paper);
  container-type: inline-size;
}

.demo__board {
  --size: min(3.5rem, calc((100cqi - 4 * 0.375rem) / 5));
  display: grid;
  gap: 0.375rem;
  border-radius: var(--radius-sm);
}

.demo__row {
  display: flex;
  gap: 0.375rem;
}

.demo__board .tile {
  --size: inherit;
}

/* A row of tiles in the page: How to play's example, the not-found page. */
.tile-row {
  display: flex;
  gap: 0.375rem;
}

.tile-row .tile {
  --size: 2.75rem;
}

.demo__row.is-shaking {
  animation: row-shake 400ms var(--ease-out);
}

.demo__row .tile.is-flipping {
  animation: tile-flip var(--dur-flip) var(--ease-in-out);
}

.demo__row .tile.is-popping {
  animation: tile-pop var(--dur-micro) var(--ease-out);
}

@keyframes row-shake {
  0%,
  100% {
    transform: translateX(0);
  }

  20%,
  60% {
    transform: translateX(-6px);
  }

  40%,
  80% {
    transform: translateX(6px);
  }
}

@keyframes tile-pop {
  50% {
    transform: scale(1.08);
  }
}

.demo__status {
  min-height: 1.6em;
  font-weight: 600;
  font-size: var(--text-sm);
  text-align: center;
}

.demo__status.is-error {
  color: var(--color-error);
}

.keyboard {
  display: grid;
  gap: 0.375rem;
  width: 100%;
  max-width: 30rem;
}

.keyboard__row {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 0.3rem;
}

.keyboard__row--middle {
  padding-inline: 5%;
  grid-template-columns: repeat(9, minmax(0, 1fr));
}

.keyboard__row--bottom {
  grid-template-columns: minmax(0, 1.5fr) repeat(7, minmax(0, 1fr)) minmax(0, 1.5fr);
}

.key {
  min-width: 0;
  min-height: 48px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--color-key);
  color: var(--color-key-text);
  font: 800 clamp(0.875rem, 3.2cqi, 1.125rem) / 1 var(--font-body);
  cursor: pointer;
  touch-action: manipulation;
  transition: transform var(--dur-micro) var(--ease-out);
}

.key:hover {
  transform: translateY(-1px);
}

.key:active {
  transform: translateY(1px);
}

.key--wide {
  font-size: var(--text-xs);
}

.key--correct {
  background: var(--color-tile-correct);
  color: var(--color-tile-text);
}

.key--present {
  background: var(--color-tile-present);
  color: var(--color-tile-text-present);
}

.key--absent {
  background: var(--color-tile-absent);
  color: var(--color-tile-text);
}

.demo__result {
  display: grid;
  gap: var(--space-sm);
  width: 100%;
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  background: var(--color-paper-3);
}

.demo__result[hidden] {
  display: none;
}

.demo__word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-2xl);
  line-height: 1.1;
}

.demo__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-md);
  color: var(--color-muted);
  font-size: var(--text-sm);
}

.demo__meaning {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  line-height: 1.5;
}

.demo__example {
  font-family: var(--font-serif);
  color: var(--color-muted);
}

.demo__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-xs);
}

.demo__fallback {
  display: grid;
  gap: var(--space-md);
  justify-items: center;
  text-align: center;
  color: var(--color-muted);
}

/* ── Moments: what the app shows, screen by screen ── */

.moments {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(15rem, 72%);
  gap: var(--space-lg);
  margin: 0;
  padding: 0 0 var(--space-md);
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

@media (min-width: 40rem) {
  .moments {
    grid-auto-columns: minmax(15rem, 42%);
  }
}

@media (min-width: 64rem) {
  .moments {
    grid-auto-flow: row;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow-x: visible;
    padding-bottom: 0;
  }
}

.moment {
  display: grid;
  gap: var(--space-md);
  align-content: start;
  scroll-snap-align: start;
}

.moment figure {
  margin: 0;
}

.moment h3 {
  font-size: var(--text-lg);
  font-family: var(--font-body);
  font-weight: 800;
  letter-spacing: -0.005em;
}

.moment p {
  color: var(--color-muted);
}

/* ── Tablet ── */

.tablet {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-xl);
  align-items: center;
}

@media (min-width: 52rem) {
  .tablet {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: var(--space-2xl);
  }
}

.tablet .section__head {
  margin-bottom: 0;
}

.tablet__shot {
  margin: 0;
  justify-self: center;
  width: min(100%, 30rem);
}

/* ── Hints ── */

.hints {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-xl);
}

@media (min-width: 60rem) {
  .hints {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--space-2xl);
    align-items: start;
  }
}

.hints__copy {
  display: grid;
  gap: var(--space-md);
}

.hints__copy p {
  max-width: var(--measure);
}

.hints__copy .muted {
  color: var(--color-muted);
}

.hint-list {
  display: grid;
  margin: 0;
}

.hint-list div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-2xs) var(--space-md);
  padding-block: var(--space-md);
  border-top: 1px solid var(--color-rule);
}

.hint-list div:last-child {
  border-bottom: 1px solid var(--color-rule);
}

.hint-list dt {
  font-weight: 800;
}

.hint-list dd {
  margin: 0;
}

.hint-list .cost {
  grid-column: 2;
  grid-row: 1;
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-muted);
  font-variant-numeric: tabular-nums;
}

.hint-list .what {
  grid-column: 1 / -1;
  color: var(--color-muted);
}

/* ── Questions ── */

.faq {
  display: grid;
  max-width: 48rem;
}

.faq details {
  border-top: 1px solid var(--color-rule);
}

.faq details:last-of-type {
  border-bottom: 1px solid var(--color-rule);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  min-height: 3.5rem;
  padding-block: var(--space-sm);
  font-weight: 600;
  font-size: var(--text-lg);
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex-shrink: 0;
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-muted);
  transition: transform var(--dur-short) var(--ease-out);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq summary:hover {
  color: var(--color-accent);
}

.faq .answer {
  display: grid;
  gap: var(--space-sm);
  max-width: var(--measure);
  padding-bottom: var(--space-lg);
  color: var(--color-muted);
}

.more {
  margin-top: var(--space-lg);
}

/* ── Get the app ── */

.download {
  display: grid;
  gap: var(--space-lg);
  justify-items: start;
}

.download__icon {
  width: 4.5rem;
  height: 4.5rem;
}

.download p {
  max-width: var(--measure);
  color: var(--color-muted);
  font-size: var(--text-lg);
}

/* ── Footer ── */

.site-footer {
  padding-block: var(--space-xl);
  border-top: 1px solid var(--color-rule);
  font-size: var(--text-sm);
  color: var(--color-muted);
}

.site-footer__grid {
  display: grid;
  gap: var(--space-lg);
}

@media (min-width: 48rem) {
  .site-footer__grid {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-lg);
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--color-ink);
}

.site-footer .fine {
  display: grid;
  gap: var(--space-xs);
  max-width: 48rem;
  font-size: var(--text-xs);
}

/* ── Text pages: privacy, support, not found ── */

.page {
  padding-block: var(--space-xl) var(--space-2xl);
}

.prose {
  display: grid;
  gap: var(--space-xl);
  max-width: 44rem;
}

.prose h1 {
  font-size: var(--text-2xl);
  max-width: none;
}

.prose section {
  display: grid;
  gap: var(--space-sm);
}

.prose h2 {
  font-size: var(--text-xl);
  max-width: none;
}

.prose p,
.prose li {
  line-height: 1.7;
}

.prose .lede {
  font-size: var(--text-lg);
  color: var(--color-muted);
}

.prose .updated {
  font-size: var(--text-sm);
  color: var(--color-muted);
}

.contact-card {
  display: grid;
  gap: var(--space-sm);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  background: var(--color-paper-2);
  border: 1px solid var(--color-rule);
}

.contact-card .email {
  font-weight: 800;
  font-size: var(--text-xl);
  overflow-wrap: anywhere;
}

.not-found {
  display: grid;
  gap: var(--space-lg);
  justify-items: start;
  padding-block: var(--space-2xl) var(--space-3xl);
}

.not-found .tile-row .tile {
  --size: clamp(2.75rem, 12vw, 3.5rem);
}

.not-found p {
  max-width: var(--measure);
  color: var(--color-muted);
  font-size: var(--text-lg);
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* ── Reduced motion: everything at its end state, at once ── */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
