/* Until Red. One flat ground at a time; its colour says where the day stands.
   Black while there is room, amber at half, ember near the end, red at the lock. */
@font-face { font-family: "Inter"; src: url("/Inter.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }

:root {
  --night: #0A0A0B; --amber: #8F5F00; --ember: #B83D0B; --red: #B3122A; --paper: #FFFFFF;
  --ground: var(--night); --ink: #fff; --soft: rgba(255,255,255,.72); --hair: rgba(255,255,255,.24);
  --gutter: clamp(20px, 5vw, 64px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--ground); color: var(--ink);
  font: 400 18px/1.5 "Inter", system-ui, -apple-system, sans-serif; letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  transition: background-color .6s ease, color .6s ease;
}
body[data-phase="clear"]  { --ground: var(--night); --soft: rgba(255,255,255,.72); }
body[data-phase="halfway"]{ --ground: var(--amber); --soft: rgba(255,255,255,.88); }
body[data-phase="nearly"] { --ground: var(--ember); --soft: rgba(255,255,255,.88); }
body[data-phase="locked"] { --ground: var(--red);   --soft: rgba(255,255,255,.84); }
body[data-phase="paper"]  { --ground: var(--paper); --ink: #0A0A0B; --soft: rgba(10,10,11,.62); --hair: rgba(10,10,11,.16); }
@media (prefers-reduced-motion: reduce) { body { transition: none; } html { scroll-behavior: auto; } }
a { color: inherit; }

/* Top bar: wordmark, the four-segment track, links. */
.bar {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 24px;
  padding: 18px var(--gutter); background: var(--ground); transition: background-color .6s ease;
}
.mark { font-weight: 800; font-size: 19px; letter-spacing: -.03em; text-decoration: none; }
.track { display: flex; gap: 6px; flex: 1; max-width: 220px; margin: 0 auto; }
.track i { flex: 1; height: 6px; border-radius: 6px; border: 1.5px solid currentColor; transition: background-color .4s ease; }
.track i.on { background: currentColor; }
.bar nav { display: flex; gap: 20px; font-size: 15px; font-weight: 500; }
.bar nav a { text-decoration: none; color: var(--soft); }
.bar nav a:hover, .bar nav a[aria-current] { color: var(--ink); }

/* A phase: the numeral and caption on one side, the real screen on the other. */
.phase {
  min-height: 100svh; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 48px;
  padding: 72px var(--gutter);
  max-width: 1240px; margin: 0 auto;
}
.status { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; }
.status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
h1, h2 { font-weight: 850; letter-spacing: -.05em; line-height: .92; }
h1 { font-size: clamp(64px, 11vw, 168px); margin-top: 20px; }
h2 { font-size: clamp(52px, 8vw, 120px); margin-top: 20px; }
h1 em, h2 em { font-style: italic; font-weight: 800; }
.copy { font-size: clamp(19px, 2vw, 23px); line-height: 1.4; color: var(--soft); max-width: 30ch; margin-top: 28px; }
.numeral { font-weight: 850; font-size: clamp(120px, 20vw, 260px); line-height: .8; letter-spacing: -.07em; }
.phone {
  justify-self: center; width: min(340px, 78vw); aspect-ratio: 1206 / 2622; border-radius: 48px;
  background: center / cover no-repeat; border: 10px solid #111; outline: 1.5px solid rgba(255,255,255,.14);
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.45);
}
body[data-phase="paper"] .phone { outline-color: rgba(0,0,0,.1); box-shadow: 0 40px 80px -24px rgba(0,0,0,.22); }

.cta { display: inline-flex; align-items: center; gap: 10px; margin-top: 40px; padding: 17px 30px; border-radius: 999px;
  background: var(--ink); color: var(--ground); font-weight: 650; font-size: 17px; text-decoration: none;
  transition: transform .15s ease; }
.cta:hover { transform: translateY(-1px); }
.cta small { font-weight: 500; opacity: .7; }
.quiet { display: block; margin-top: 16px; font-size: 15px; color: var(--soft); }

/* The closing facts: plain rows on hairlines, like Settings. */
.facts { max-width: 1240px; margin: 0 auto; padding: 120px var(--gutter); }
.rows { margin-top: 48px; border-top: 1.5px solid var(--hair); }
.rows div { display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px; padding: 26px 0; border-bottom: 1.5px solid var(--hair); }
.rows b { font-size: clamp(20px, 2.2vw, 26px); font-weight: 700; letter-spacing: -.02em; }
.rows span { color: var(--soft); }

/* Long-form pages: privacy, support, terms. */
.doc { max-width: 720px; margin: 0 auto; padding: 72px var(--gutter) 40px; }
.doc h1 { font-size: clamp(56px, 10vw, 104px); }
.doc .copy { max-width: 36ch; }
.doc h3 { font-size: 22px; font-weight: 750; letter-spacing: -.02em; margin-top: 44px; }
.doc p, .doc li { color: var(--soft); margin-top: 12px; }
.doc ul { padding-left: 20px; }
.doc strong { color: var(--ink); font-weight: 600; }
.updated { font-size: 15px; margin-top: 16px; color: var(--soft); }

footer { max-width: 1240px; margin: 0 auto; padding: 40px var(--gutter) 56px; display: flex; flex-wrap: wrap; gap: 12px 28px;
  font-size: 15px; color: var(--soft); border-top: 1.5px solid var(--hair); }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }
footer span { margin-right: auto; }

@media (max-width: 820px) {
  .phase { grid-template-columns: 1fr; min-height: auto; padding: 56px var(--gutter) 72px; gap: 40px; }
  .phone { width: min(300px, 74vw); }
  .rows div { grid-template-columns: 1fr; gap: 6px; }
  .bar nav { gap: 14px; }
  .track { display: none; }
}

/* Resource pages keep the product's quiet, high-contrast visual language. */
.resource { max-width: 900px; margin: 0 auto; padding: 100px var(--gutter) 120px; }
.resource h1 { font-size: clamp(48px, 8vw, 104px); line-height: .98; max-width: 13ch; }
.resource h2 { font-size: clamp(27px, 4vw, 40px); line-height: 1.12; margin-top: 52px; }
.resource .eyebrow, .resource .byline { color: var(--soft); font-size: 15px; }
.resource .lead { color: var(--soft); font-size: clamp(20px, 2.5vw, 25px); line-height: 1.45; max-width: 38ch; margin: 28px 0; }
.resource article { max-width: 720px; }
.resource article p, .resource article li, .resource-note { color: var(--soft); margin-top: 18px; line-height: 1.7; }
.resource article strong { color: var(--ink); }
.resource ol { padding-left: 24px; }
.resource a { text-underline-offset: 4px; }
.resource-list, .related { margin-top: 64px; border-top: 1px solid var(--hair); }
.resource-row, .related > a { display: flex; justify-content: space-between; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--hair); text-decoration: none; }
.resource-row strong { display: block; font-size: 22px; }
.resource-row small { display: block; color: var(--soft); font-size: 16px; margin-top: 7px; }
.resource-row:hover strong, .related > a:hover { text-decoration: underline; }
.source { margin-top: 52px; padding-top: 22px; border-top: 1px solid var(--hair); }
.source p { font-size: 16px; }
.resource form { max-width: 420px; display: grid; gap: 12px; margin-top: 42px; }
.resource label { font-weight: 600; margin-top: 12px; }
.resource input { width: 100%; font: inherit; padding: 14px; border: 1px solid #999; border-radius: 6px; background: #fff; color: #111; }
.resource form .cta { justify-self: start; border: 0; cursor: pointer; margin-top: 12px; }
.result { max-width: 600px; margin-top: 36px; }
.result p { margin-top: 12px; }
:focus-visible { outline: 3px solid #ffc65c; outline-offset: 4px; }
@media (max-width: 600px) { .resource { padding-top: 64px; } .bar { gap: 12px; } .bar nav { gap: 12px; font-size: 14px; } }

.product-intro, .product-reading { max-width: 65ch; color: var(--soft); line-height: 1.6; margin-top: 32px; }
.product-reading a { text-underline-offset: 4px; }
@media (max-width: 420px) { .bar { flex-wrap: wrap; } .bar nav { flex-wrap: wrap; } }
