/* A, Your call. One real card you answer, on paper. Space is a 4 point unit; corners are 28 for a card, 20 for a
   small card, 16 for a key, and round for a pill. */
:root {
  --ink: #0a0a0a;
  --paper: #ffffff;
  --ground: #f2f2f2;
  --muted: #6b6b6b;
  --faint: rgba(10, 10, 10, 0.08);
  --line: rgba(10, 10, 10, 0.12);
  --right: #69db86;
  --close: #ffe372;
  --off: #ff8e83;
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', Inter, system-ui, sans-serif;
  --gutter: 16px;
  --card: 28px;
  --small: 20px;
  --key: 16px;
  --shadow: 0 1px 0 rgba(10, 10, 10, 0.04), 0 28px 56px -28px rgba(10, 10, 10, 0.32);
  --out: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --ground: #0a0a0a;
    --muted: rgba(255, 255, 255, 0.64);
    --faint: rgba(255, 255, 255, 0.1);
    --line: rgba(255, 255, 255, 0.16);
    --shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 28px 56px -28px rgba(0, 0, 0, 0.8);
  }
}
:root[data-theme='dark'] {
  --ground: #0a0a0a;
  --muted: rgba(255, 255, 255, 0.64);
  --faint: rgba(255, 255, 255, 0.1);
  --line: rgba(255, 255, 255, 0.16);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 17px/1.45 var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) body { color: var(--paper); } }
a { color: inherit; }
button { font: inherit; color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid #0a84ff; outline-offset: 3px; border-radius: 8px; }

/* The bar: the name, and the one action. */
.bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: max(12px, env(safe-area-inset-top)) var(--gutter) 12px;
  max-width: 1120px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: -0.04em; }
.brand svg { width: 28px; height: 28px; }
.get {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px;
  border-radius: 999px; background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 600; font-size: 16px;
  transition: transform 120ms var(--out), opacity 120ms;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .get { background: var(--paper); color: var(--ink); } }
.get:active { transform: scale(0.97); opacity: 0.86; }
.get.wide { width: 100%; min-height: 56px; font-size: 17px; }

main { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }

/* The card. */
.stage { display: grid; justify-items: center; gap: 16px; padding: 8px 0 24px; }
.card {
  position: relative; width: 100%; max-width: 440px; min-height: clamp(260px, 40svh, 380px);
  background: var(--paper); color: var(--ink); border-radius: var(--card);
  padding: 24px; display: flex; flex-direction: column; gap: 12px;
  box-shadow: var(--shadow); overflow: hidden; isolation: isolate;
  transition: background-color 380ms var(--out);
}
.card[data-tone='right'] { background: var(--right); }
.card[data-tone='close'] { background: var(--close); }
.card[data-tone='off'] { background: var(--off); }
.topic { font-size: 14px; font-weight: 500; color: rgba(10, 10, 10, 0.7); }
.question { margin: 0; font-size: 27px; line-height: 1.16; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
.card.done .question { font-size: 19px; line-height: 1.25; }
.call { margin-top: auto; display: flex; align-items: baseline; gap: 8px; min-height: clamp(72px, 12svh, 104px); }
.digits {
  font-size: clamp(64px, 11svh, 96px); line-height: 1; font-weight: 700; letter-spacing: -0.05em; font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.digits.empty { color: rgba(10, 10, 10, 0.16); }
.unit { font-size: 17px; font-weight: 600; color: rgba(10, 10, 10, 0.6); }
.result { display: none; margin-top: auto; }
.card.done .call { display: none; }
.card.done .result { display: grid; gap: 4px; animation: rise 420ms var(--out) both; }
.said { font-size: 15px; font-weight: 600; color: rgba(10, 10, 10, 0.66); }
.said:empty { display: none; }
.answer { display: flex; align-items: baseline; gap: 8px; }
.answer b { font-size: 96px; line-height: 1; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.verdict { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.mark {
  position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink); display: grid; place-items: center; transform: scale(0); transition: transform 300ms var(--out) 120ms;
}
.mark svg { width: 24px; height: 24px; }
.card.done .mark { transform: scale(1); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

/* The number pad: a key answers on the way down. */
.pad { width: 100%; max-width: 440px; display: grid; gap: 12px; }
.keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.keys button {
  height: clamp(48px, 6.6svh, 56px); border: 0; background: transparent; border-radius: var(--key); font-size: 28px; font-weight: 500;
  font-variant-numeric: tabular-nums; cursor: pointer; touch-action: manipulation;
}
.keys button:active, .keys button.down { background: var(--faint); }
.keys .erase svg { width: 26px; height: 26px; }
.lock {
  min-height: 56px; border: 0; border-radius: 999px; background: var(--ink); color: var(--paper);
  font-size: 17px; font-weight: 600; cursor: pointer; transition: opacity 160ms, transform 120ms var(--out);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .lock { background: var(--paper); color: var(--ink); } }
.lock:disabled { opacity: 0.24; cursor: default; }
.lock:not(:disabled):active { transform: scale(0.98); }
.pad.gone { display: none; }

.after { width: 100%; max-width: 440px; display: none; gap: 8px; }
.after.on { display: grid; animation: rise 420ms var(--out) 160ms both; }
.dare { margin: 8px 0 0; text-align: center; font-size: 17px; font-weight: 600; color: var(--muted); letter-spacing: -0.01em; text-wrap: balance; }
/* After a call his line takes the place of the five-a-day line under Send (his words, 19 November 2026). */
.stage.called h1.line { display: none; }
.send {
  min-height: 56px; border-radius: 999px; border: 1.5px solid var(--line); background: transparent; font-size: 17px;
  font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.send svg { width: 20px; height: 20px; }
.small { font-size: 13px; color: var(--muted); text-align: center; margin: 0; }

h1.line { margin: 8px 0 0; font-size: 17px; font-weight: 600; color: var(--muted); text-align: center; letter-spacing: -0.01em; }

/* More cards, below the fold. */
.more { padding: 40px 0 8px; }
.more ul { list-style: none; margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 48px; scroll-padding: 0 var(--gutter); display: grid; grid-auto-flow: column; grid-auto-columns: 220px; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; }
.more li { scroll-snap-align: start; }
.mini {
  width: 100%; height: 260px; border: 0; text-align: left; border-radius: var(--small); background: var(--paper); color: var(--ink);
  padding: 18px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: var(--shadow); cursor: pointer;
  transition: transform 160ms var(--out);
}
.mini:active { transform: scale(0.98); }
.mini .q { font-size: 18px; line-height: 1.22; font-weight: 700; letter-spacing: -0.01em; }
.mini .t { font-size: 13px; color: rgba(10, 10, 10, 0.6); font-weight: 500; }
.mini .n { font-size: 56px; line-height: 1; font-weight: 700; letter-spacing: -0.05em; color: rgba(10, 10, 10, 0.14); }

/* The foot. */
footer { max-width: 1120px; margin: 0 auto; padding: 32px var(--gutter) max(32px, env(safe-area-inset-bottom)); display: grid; gap: 16px; font-size: 14px; color: var(--muted); }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer nav a { text-decoration: none; min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; font-weight: 500; color: inherit; }
footer p { margin: 0; }
.qr { display: none; }

/* A round. */
.who { margin: 8px 0 0; text-align: center; font-size: 26px; line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; max-width: 440px; text-wrap: balance; }
.who strong { display: block; font-size: 64px; line-height: 1; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; max-width: 440px; }
.duo div { background: var(--paper); color: var(--ink); border-radius: var(--small); padding: 14px 16px; box-shadow: var(--shadow); }
.duo span { display: block; font-size: 13px; font-weight: 600; color: rgba(10, 10, 10, 0.6); }
.duo b { font-size: 32px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.duo div[data-tone='right'] { background: var(--right); }
.duo div[data-tone='close'] { background: var(--close); }
.duo div[data-tone='off'] { background: var(--off); }
.rest { display: flex; gap: 6px; justify-content: center; }
.rest i { width: 22px; height: 30px; border-radius: 6px; background: var(--paper); box-shadow: var(--shadow); display: block; }
.rest i.played { background: var(--ink); }

/* The card a mate was sent, before it turns. */
.sent {
  width: 100%; max-width: 440px; aspect-ratio: 0.8; border-radius: 36px; background: var(--right); color: var(--ink);
  padding: 28px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: var(--shadow);
}
.sent .said-label { font-size: 17px; font-weight: 600; }
.sent .big { font-size: 140px; line-height: 1; font-weight: 700; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; margin-left: -4px; }
.sent .foot { display: flex; justify-content: space-between; align-items: flex-end; }
.sent .foot b { font-size: 28px; letter-spacing: -0.02em; }
.sent .foot span { font-weight: 700; font-size: 20px; letter-spacing: -0.04em; }
.flip { animation: turn 520ms var(--out) both; }
@keyframes turn { from { transform: perspective(1200px) rotateY(-90deg); opacity: 0.4; } }

/* Legal pages: set for reading. */
.doc { max-width: 680px; margin: 0 auto; padding: 16px var(--gutter) 48px; }
.doc h1 { font-size: 34px; line-height: 1.1; letter-spacing: -0.03em; margin: 16px 0 4px; }
.doc .updated { color: var(--muted); font-size: 15px; margin: 0 0 24px; }
.doc .toc { list-style: none; padding: 16px 20px; margin: 0 0 32px; background: var(--paper); color: var(--ink); border-radius: var(--small); box-shadow: var(--shadow); columns: 2 200px; column-gap: 24px; font-size: 15px; }
.doc .toc li { break-inside: avoid; padding: 0; }
.doc .toc a { text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.doc h2 { font-size: 24px; letter-spacing: -0.02em; line-height: 1.2; margin: 40px 0 12px; scroll-margin-top: 16px; }
.doc h3 { font-size: 19px; margin: 28px 0 8px; }
.doc p, .doc li { line-height: 1.6; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc .table { overflow-x: auto; margin: 16px 0; }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.doc code { font-size: 0.9em; }
mark.draft { background: rgba(255, 227, 114, 0.6); color: inherit; padding: 0 2px; border-radius: 4px; }
.draft-note { border-left: 3px solid var(--close); padding-left: 12px; color: var(--muted); }
.draft-heading { color: var(--muted); }

/* 404. */
.lost { min-height: 70vh; display: grid; place-items: center; }

@media (min-width: 900px) {
  :root { --gutter: 32px; }
  .stage.home { grid-template-columns: 440px 320px; justify-content: center; align-items: center; gap: 48px; padding: 48px 0 24px; }
  .stage.home .card { min-height: 520px; }
  .stage.home .question { font-size: 34px; }
  .stage.home .pad, .stage.home .after { grid-column: 2; grid-row: 1; align-self: center; }
  .stage.home h1.line { grid-column: 1 / -1; }
  .more ul { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; margin: 0; padding: 4px 0 24px; }
  footer { grid-template-columns: 1fr auto; align-items: end; }
  .qr { display: flex; align-items: center; gap: 12px; color: var(--muted); }
  .qr img { width: 96px; height: 96px; border-radius: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
  .card.done .result, .after.on { animation: fade 200ms both !important; }
}
@keyframes fade { from { opacity: 0; } }

[hidden] { display: none !important; }
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.options button { min-height: 64px; border-radius: var(--small); border: 0; background: var(--paper); color: var(--ink); font-size: 24px; font-weight: 700; letter-spacing: -0.02em; box-shadow: var(--shadow); cursor: pointer; transition: transform 120ms var(--out); }
.options button:active { transform: scale(0.97); }

/* Step 8, held beside its references (flows/site.md): Knower's own black from edge to edge, as Cash App fills its first
   frame with its own colour; the app's opening line as the headline, large and tight at the left edge; the card on the
   deck of green and red the mark throws, the object of the page as Apple Card's card is; the keys only once the card is
   tapped; one action pinned at the thumb. */
:root[data-theme='dark'] body { color: var(--paper); }
:root[data-theme='dark'] .get, :root[data-theme='dark'] .lock { background: var(--paper); color: var(--ink); }
:root[data-theme='dark'] .send { border-color: rgba(255, 255, 255, 0.22); }
:root[data-theme='dark'] .keys button:active, :root[data-theme='dark'] .keys button.down { background: rgba(255, 255, 255, 0.12); }
.hero { width: 100%; max-width: 440px; padding: 4px 0 0; }
.hello { margin: 0; font-size: clamp(40px, 11.4vw, 60px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 600; text-wrap: balance; }
.sub { margin: 10px 0 0; font-size: 17px; line-height: 1.35; font-weight: 500; color: var(--muted); }
.deck { position: relative; width: 100%; max-width: 440px; margin-top: 18px; isolation: isolate; }
.peek { position: absolute; inset: 0; border-radius: var(--card); z-index: -1; transition: transform 420ms var(--out), opacity 300ms; }
.peek.miss { background: var(--off); transform: rotate(-5.5deg) translate(-8px, 6px); }
.peek.right { background: var(--right); transform: rotate(4deg) translate(9px, 4px); }
.stage.called .peek { opacity: 0; transform: rotate(0) scale(0.96); }
.deck .card { min-height: clamp(230px, 34svh, 360px); }
.open { position: absolute; inset: 0; border: 0; background: transparent; border-radius: var(--card); cursor: pointer; }
.card.done .open, .card.open-now .open { display: none; }
.digits.empty { animation: breathe 1.8s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: 0.45; } }
.pad.shut { display: none; }
.pad:not(.shut) { animation: rise 320ms var(--out) both; }
body { padding-bottom: 96px; }
.get.pin { position: fixed; left: var(--gutter); right: var(--gutter); bottom: max(16px, env(safe-area-inset-bottom)); min-height: 56px; font-size: 17px; z-index: 10; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45); }
@media (min-width: 900px) {
  .stage.home .hero { grid-column: 1 / -1; max-width: 808px; }
  .stage.home .deck { grid-column: 1; grid-row: 2; }
  .stage.home .pad, .stage.home .after { grid-row: 2; }
  .get.pin { left: auto; right: 32px; width: 320px; }
  /* A desktop has a keyboard, so the keys stand beside the card from the start. */
  .pad.shut { display: grid; }
  .open { display: none; }
  .more { padding-bottom: 96px; }
}
@media (prefers-reduced-motion: reduce) { .digits.empty { animation: none; } }
