/* quickcram.app's home page, in the app's look: hintStyle's colours, type
   and radii (app/lib/ui/styles.dart, tokens.dart). Weights stop at 600; the
   only large type is Instrument Serif numerals; content sits straight on the
   two materials (bg / surface) with hairlines, no boxed cards. */
@font-face { font-family: Inter; src: url(fonts/inter-latin.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url(fonts/instrument-serif-latin.woff2) format("woff2"); font-display: swap; }
:root {
  --bg: #F7F9FB; --surface: #FFFFFF; --sunken: #F4F4F5; --ink: #09090B; --muted: #71717B; --faint: #A1A1AA;
  --line: #E4E4E7; --line-strong: #D4D4D8; --primary: #18181B; --on-primary: #FAFAFA;
  --accent: #4F7CAC; --rim: #D4D4D8;
  /* The quiet first line of a two-line statement: the app's faint grey,
     darkened until large type on it passes 3:1. */
  --dim: #8A8A94;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) { :root {
  --bg: #0B0B0D; --surface: #161618; --sunken: #202024; --ink: #F4F4F5; --muted: #A1A1AA; --faint: #71717A;
  --line: #27272A; --line-strong: #3F3F46; --primary: #FAFAFA; --on-primary: #09090B;
  --accent: #8FB3DA; --rim: #3F3F46;
} }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body { font: 400 16px/1.6 Inter, system-ui, -apple-system, "PingFang SC", "Noto Sans SC", sans-serif; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, p, ol, figure { margin: 0; }
.in { max-width: 1040px; margin: 0 auto; }

.lab { font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--muted); display: block; }
.cap { font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.cap a, .refs a, footer a { text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--line-strong); }
.t-hero { font-size: clamp(34px, 3.5vw, 50px); font-weight: 600; line-height: 1.1; letter-spacing: -.028em; }
.t-hero > span { display: block; text-wrap: balance; }
.t-title { font-size: 25px; font-weight: 600; line-height: 1.25; letter-spacing: -.3px; text-wrap: balance; }
.dim { color: var(--dim); }
.num { font-family: "Instrument Serif", "Songti SC", serif; font-weight: 400; line-height: .9; }
.hl { background: color-mix(in srgb, var(--accent) 34%, transparent); padding: 0 .12em; margin: 0 -.04em; border-radius: .08em; }
.word { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -.02em; }
.pill { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 22px; border-radius: 999px;
  background: var(--primary); color: var(--on-primary); font-weight: 600; font-size: 16px; line-height: 1; box-shadow: 0 5px 0 var(--rim); white-space: nowrap; }
.pill:active { transform: translateY(2px); box-shadow: 0 3px 0 var(--rim); }
.pill svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.cluster { display: inline-flex; align-items: center; gap: 4px; height: 48px; padding: 0 6px; border-radius: 999px; background: var(--surface);
  box-shadow: 0 0 0 1px var(--line), 0 5px 0 var(--rim); font-size: 14px; font-weight: 500; }
.cluster a { white-space: nowrap; padding: 0 14px; height: 36px; display: inline-flex; align-items: center; border-radius: 999px; }
.cluster a:hover { background: var(--sunken); }
.cat { display: block; }

nav { display: flex; justify-content: space-between; align-items: center; padding: 28px 44px; }
.head { padding: 72px 44px 96px; max-width: 1128px; margin: 0 auto; }
.head .pill { margin-top: 36px; }

/* the slogan */
.only { background: var(--surface); border-top: 1px solid var(--line); padding: 128px 44px 136px; }
.only .in { display: flex; align-items: center; gap: 44px; }
.only h2 { font-size: clamp(38px, 5.4vw, 72px); font-weight: 600; line-height: 1.04; letter-spacing: -.035em; text-wrap: balance; }
.only .num { font-size: 300px; line-height: .78; }
.only p { color: var(--muted); margin-top: 26px; font-size: clamp(24px, 2.8vw, 39px); font-weight: 600; line-height: 1.3; letter-spacing: -.022em; text-wrap: balance; }
.only p .hl { color: var(--ink); white-space: nowrap; }

/* the comparisons: the numbers lead, the line sits under them */
.grid { background: var(--surface); border-top: 1px solid var(--line); padding: 0 44px; }
.grid .in { display: grid; grid-template-columns: 1fr 1fr; }
.cell { padding: 56px 48px 52px 0; border-bottom: 1px solid var(--line); }
.cell:nth-child(even) { padding: 56px 0 52px 48px; border-left: 1px solid var(--line); }
.cell.wide { grid-column: 1 / -1; padding-right: 0; border-bottom: 0; }
.what { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tag { font-size: 12.5px; font-weight: 600; line-height: 1.45; color: var(--muted); background: var(--sunken); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.pair { display: flex; align-items: baseline; gap: 10px; margin: 8px 0 14px; }
.pair .num { font-size: 104px; }
.pair .them { font-size: 44px; color: var(--faint); }
.bars { margin-top: 26px; display: grid; gap: 14px; max-width: 520px; }
.bar { font-size: 14px; color: var(--muted); }
.bar.us { color: var(--ink); font-weight: 600; }
.bar > span { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.track { height: 6px; border-radius: 3px; background: var(--sunken); overflow: hidden; }
.track i { display: block; height: 100%; border-radius: 3px; background: var(--line-strong); }
.us .track i { background: var(--ink); }
.cell .cap { display: block; margin-top: 16px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 96px; margin-top: 32px; }
.two .bars { margin-top: 8px; }

/* the close */
.close { background: var(--surface); border-top: 1px solid var(--line); padding: 96px 44px 72px; }
.close .t-hero { margin-top: 20px; }
.close .hl { background: linear-gradient(transparent 55%, color-mix(in srgb, var(--accent) 34%, transparent) 55%); padding: 0 .1em; margin: 0 -.1em; border-radius: 0; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); margin: 56px 0 44px; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.steps li { padding: 18px 20px 0 0; font-weight: 600; line-height: 1.35; }
.steps .num { font-size: 39px; color: var(--faint); display: block; margin-bottom: 10px; }
.refs { font-size: 12.5px; color: var(--muted); line-height: 1.45; padding-left: 18px; margin-top: 88px; columns: 2; column-gap: 48px; }
.refs li { margin-bottom: 6px; break-inside: avoid; overflow-wrap: anywhere; }
footer { font-size: 12.5px; color: var(--muted); margin-top: 40px; }

@media (max-width: 760px) {
  body { background: var(--surface); }
  nav { padding: 22px; }
  .head { padding: 40px 22px 56px; }
  .only { padding: 72px 22px 80px; }
  .only .in { gap: 20px; }
  .only .num { font-size: 150px; }
  .grid { padding: 0 22px; }
  .grid .in { grid-template-columns: 1fr; }
  .cell, .cell:nth-child(even) { padding: 40px 0 36px; border-left: 0; }
  .pair .num { font-size: 80px; }
  .pair .them { font-size: 36px; }
  .two { grid-template-columns: 1fr; gap: 44px; }
  .close { padding: 64px 22px 56px; }
  .steps { grid-template-columns: 1fr 1fr; margin: 40px 0 36px; }
  .steps li { padding-bottom: 14px; }
  .refs { columns: 1; margin-top: 56px; }
}
@media (max-width: 400px) {
  .only .in { gap: 14px; }
  .only .num { font-size: 108px; }
  .only p .hl { white-space: normal; }
}
@media (prefers-reduced-motion: no-preference) { .pill { transition: transform .12s, box-shadow .12s; } }
