@font-face { font-family: Literata; src: url(/fonts/literata-600.woff) format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: Literata; src: url(/fonts/literata-italic.woff) format("woff"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: Commissioner; src: url(/fonts/commissioner-400.woff) format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: Commissioner; src: url(/fonts/commissioner-600.woff) format("woff"); font-weight: 600; font-display: swap; }

:root {
  --paper: #F1ECE0; --card: #FBF8F1; --ink: #1D2A44; --soft: #586074;
  --line: #DED5C2; --red: #A93226; --blue: #2B4C8C;
  --serif: Literata, Georgia, serif; --sans: Commissioner, -apple-system, system-ui, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #16181D; --card: #1F2228; --ink: #ECE6D8; --soft: #A9A49A; --line: #2C3038; --red: #E07A6E; --blue: #8FA8DA; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--sans); }
a { color: var(--blue); text-underline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.mark { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font: 600 22px/1 var(--serif); color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.mark img { width: 30px; height: 30px; border-radius: 7px; }
.top nav { display: flex; gap: 20px; }
.top nav a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.015em; margin: 0; }
h1 { font-size: clamp(40px, 7vw, 76px); line-height: 1.02; max-width: 12ch; }
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.1; max-width: 18ch; }
h3 { font-size: 20px; line-height: 1.25; }
h1, h2, h3 { text-wrap: balance; }
.lede, .body, .fact { text-wrap: pretty; }
.lede, .body { font-size: 19px; max-width: 32em; margin: 20px 0 0; }
.fact { margin: 14px 0 0; color: var(--soft); font-size: 15px; max-width: 30em; }

.btn { display: inline-flex; align-items: center; min-height: 52px; padding: 0 26px; border-radius: 12px;
  background: var(--ink); color: var(--card); font: 600 17px/1.2 var(--sans); text-decoration: none; margin-top: 28px; }

.phone { width: 300px; max-width: 78vw; border-radius: 40px; border: 1px solid var(--line); overflow: hidden; background: var(--card); }
.phone img { width: 100%; }

.hero > *, .closeup > *, .feature > * { min-width: 0; }
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding: 32px 0 72px; }
.hero .phone { justify-self: end; width: 100%; max-width: 480px; border-radius: 20px; }

main section { padding: 72px 0; }
.closeup { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; }

.sheet { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 28px; max-width: 560px; }
.sheet .q { font: 600 21px/1.3 var(--serif); margin: 0; }
.sheet .score { color: var(--soft); font-size: 15px; font-weight: 600; margin: 24px 0 8px; }
.sheet .said { font: italic 400 21px/1.6 var(--serif); margin: 0; }
.hit { position: relative; white-space: nowrap; }
.hit::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0.08em; height: 2px; background: var(--blue); transform-origin: left; }
.sheet .missed { color: var(--red); font-size: 15px; font-weight: 600; margin: 22px 0 6px; }
.sheet ul { list-style: none; margin: 0; padding: 0; }
.sheet li { color: var(--red); font-size: 17px; padding: 4px 0; }
.sheet li span { display: block; color: var(--blue); font-weight: 600; font-size: 15px; }

.js .sheet .hit::after { transform: scaleX(0); transition: transform 420ms ease-out; }
.js .sheet .hit:nth-of-type(2)::after { transition-delay: 200ms; }
.js .sheet .hit:nth-of-type(3)::after { transition-delay: 400ms; }
.js .sheet .hit:nth-of-type(4)::after { transition-delay: 600ms; }
.js .sheet li { opacity: 0; transform: translateY(6px); transition: opacity 260ms ease-out, transform 260ms ease-out; }
.js .sheet li:nth-child(1) { transition-delay: 900ms; }
.js .sheet li:nth-child(2) { transition-delay: 1060ms; }
.js .sheet.on .hit::after { transform: scaleX(1); }
.js .sheet.on li { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .sheet .hit::after, .js .sheet li { transition: none; transform: none; opacity: 1; }
}

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin: 40px 0 0; list-style: none; padding: 0; }
.steps li { display: grid; gap: 12px; align-content: start; }
.steps .num { font: 400 15px/1 var(--sans); color: var(--soft); }
.steps p { margin: 0; color: var(--soft); font-size: 16px; max-width: 22em; }
.steps .phone { width: 100%; max-width: 300px; border-radius: 32px; margin-top: 8px; }
.steps .crop { width: 100%; max-width: 300px; border-radius: 20px; border: 1px solid var(--line); overflow: hidden; margin-top: 8px; }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature.flip .text { order: 2; }
.feature .phone { justify-self: center; }

.decks { margin: 28px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); max-width: 34em; }
.decks li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.decks li { font: 600 18px/1.3 var(--serif); }

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }

.faq dl { margin: 32px 0 0; max-width: 40em; }
.faq dt { font: 600 19px/1.35 var(--serif); margin-top: 26px; }
.faq dd { margin: 6px 0 0; }

.final { padding: 88px 0 96px; }

.foot { border-top: 1px solid var(--line); padding: 20px 0 40px; color: var(--soft); font-size: 15px; display: flex; gap: 4px 20px; flex-wrap: wrap; align-items: center; }
.foot a { color: var(--soft); display: inline-flex; align-items: center; min-height: 44px; }

.doc { max-width: 42em; padding: 24px 0 64px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); max-width: none; margin-bottom: 8px; }
.doc h2 { font-size: 24px; max-width: none; margin: 40px 0 8px; }
.doc h3 { font-size: 19px; margin: 28px 0 6px; }
.doc p, .doc li { max-width: 40em; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 16px 0; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.doc th { font-weight: 600; }
.doc .updated { color: var(--soft); font-size: 15px; margin: 0 0 24px; }
.table-scroll { overflow-x: auto; }

@media (max-width: 820px) {
  .hero, .closeup, .feature, .pair { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding-top: 16px; }
  .feature .phone { justify-self: start; width: 280px; }
  .hero .phone { justify-self: stretch; width: 100%; max-width: 440px; border-radius: 18px; }
  .steps .crop { width: 260px; }
  .feature.flip .text { order: 0; }
  .steps { grid-template-columns: 1fr; gap: 44px; }
  .steps .phone { width: 260px; }
  main section { padding: 56px 0; }
  .sheet { padding: 22px; }
  .sheet .q, .sheet .said { font-size: 19px; }
  .top nav { gap: 14px; }
}

@media (max-width: 600px) {
  .doc table, .doc tbody, .doc tr, .doc td { display: block; width: 100%; }
  .doc thead { display: none; }
  .doc tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .doc td { border: 0; padding: 2px 0; }
  .doc td:first-child { font-weight: 600; }
  .doc td + td { color: var(--soft); }
  .doc td[data-label]:not(:first-child)::before { content: attr(data-label) ": "; color: var(--ink); }
}
