/* Lineal on the web: the app's tokens (DESIGN.md §1). Warm near-black ground, near-white text, desaturated line
   accents for identity only, spacing on the 4pt scale, a 20px keyline on phones, Instrument Sans for the
   interface and Newsreader for reading. Phone first; wider screens only rearrange. */
:root {
  --ground: #121113; --surface: #1A181B; --raised: #232026; --hairline: #2A272B; --field-line: #34303A;
  --text: #EDEAE4; --reading: #C9C4BE; --secondary: #9A948E; --inactive: #857F79;
  --unknown: #1C1A1E; --empty: #2A272B; --hollow: #6E6863; --on-image: #B5AFA8; --record: #E0645A;
  --bezel: #08080A;
  --lichen: #A9BA8C; --lake: #7FA8C9;
  --sans: 'Instrument Sans', system-ui, -apple-system, sans-serif;
  --serif: 'Newsreader', Georgia, serif;
  --keyline: 20px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--ground); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ground); color: var(--text); font: 400 15px/22px var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -48px; z-index: 20; padding: 12px 16px; border-radius: 12px; background: var(--text); color: var(--ground); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1216px; margin: 0 auto; padding: 0 var(--keyline); }
@media (min-width: 720px) { :root { --keyline: 32px; } }
@media (min-width: 1024px) { :root { --keyline: 48px; } }

/* Type tokens */
.display, .title1, .title2 { text-wrap: balance; }
.display { margin: 0; font-size: 34px; line-height: 40px; font-weight: 600; letter-spacing: -0.025em; }
@media (min-width: 720px) { .display { font-size: 48px; line-height: 52px; letter-spacing: -0.03em; } }
@media (min-width: 1024px) { .hero .display { font-size: 60px; line-height: 64px; } }
.title1 { margin: 0; font-size: 28px; line-height: 34px; font-weight: 600; letter-spacing: -0.02em; }
.title2 { margin: 0; font-size: 28px; line-height: 34px; font-weight: 600; letter-spacing: -0.02em; }
@media (min-width: 1024px) { .title2 { font-size: 40px; line-height: 44px; letter-spacing: -0.025em; } }
.lead { margin: 0; font-size: 17px; line-height: 26px; color: var(--reading); }
@media (min-width: 1024px) { .lead { font-size: 19px; line-height: 28px; } }
.read { margin: 0; font: 400 17px/26px var(--serif); color: var(--reading); }
.body { margin: 0; color: var(--reading); }
.foot { margin: 0; font-size: 13px; line-height: 18px; color: var(--secondary); }
.eyebrow { margin: 0 0 12px; font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--secondary); }

/* Buttons and fields */
.primary { display: inline-flex; align-items: center; justify-content: center; height: 50px; padding: 0 20px; border: 0; border-radius: 12px;
  background: var(--text); color: var(--ground); font: 600 17px var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; }
.primary:hover { background: #FFFFFF; }
.primary:disabled { opacity: 0.4; cursor: default; background: var(--text); }
.primary.small { height: 44px; padding: 0 16px; font-size: 15px; }
.pill { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; margin: 0 0 20px; border-radius: 14px;
  border: 1px solid var(--field-line); font-size: 13px; font-weight: 500; color: var(--reading); }

.waitlist { margin-top: 32px; max-width: 520px; }
.waitlist label { display: block; font-size: 15px; line-height: 22px; font-weight: 600; margin-bottom: 8px; }
.field { display: flex; gap: 8px; }
.field input { flex: 1 1 auto; min-width: 0; height: 50px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--field-line);
  background: var(--raised); color: var(--text); font: 500 17px var(--sans); outline: none; }
.field input::placeholder { color: var(--inactive); }
.field input:focus-visible { border-color: var(--text); }
@media (max-width: 480px) { .field { flex-direction: column; } .field .primary { width: 100%; } }
.waitlist .foot { margin-top: 8px; }
.error { color: var(--record); }
.done { display: flex; align-items: center; gap: 12px; margin-top: 32px; max-width: 520px; padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--hairline); }
.done p { margin: 0; }
.done .check { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 16px; background: var(--text); display: flex; align-items: center; justify-content: center; }

/* Navigation: sticky, translucent like the app's bars, one call to action. */
.top { display: inline-flex; align-items: center; gap: 8px; height: 64px; font-size: 17px; font-weight: 600; text-decoration: none; }
.top svg { display: block; }
.nav { position: sticky; top: 0; z-index: 10; background: rgba(18,17,19,0.8); -webkit-backdrop-filter: blur(20px) saturate(140%); backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--hairline); }
.nav-inner { display: flex; align-items: center; gap: 32px; height: 64px; }
.nav nav { display: none; gap: 32px; margin-left: auto; }
.nav nav a { color: var(--secondary); text-decoration: none; font-size: 15px; font-weight: 500; line-height: 44px; }
.nav nav a:hover { color: var(--text); }
.nav .primary { margin-left: auto; }
@media (min-width: 880px) { .nav nav { display: flex; } .nav nav + .primary { margin-left: 0; } }

/* Phones: the real app, in a frame. Concentric corners: screen radius = frame radius − bezel. */
.phone { margin: 0; width: 100%; max-width: 280px; padding: 8px; border-radius: 48px; background: var(--bezel); border: 1px solid #2E2C31;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5); }
.phone img { display: block; width: 100%; height: auto; border-radius: 40px; }

/* Hero */
.hero { display: grid; gap: 48px; padding-top: 32px; padding-bottom: 64px; }
.hero .lead { margin-top: 16px; max-width: 560px; }
.hero-shots { position: relative; display: flex; justify-content: center; }
.hero-shots .front { display: none; }   /* narrow: Today here, so Lineage isn't shown twice in a row */
@media (max-width: 1023px) { .hero-shots .back { max-width: 280px; } }
@media (min-width: 1024px) {
  .hero { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; padding-top: 64px; padding-bottom: 96px; }
  .hero-shots { height: 660px; }
  .hero-shots .phone { position: absolute; max-width: 290px; }
  .hero-shots .front { right: 0; top: 48px; }
  .hero-shots .front { display: block; }
  .hero-shots .back { display: block; right: 216px; top: 0; transform: scale(.88); transform-origin: top right; opacity: .55; }
}

/* Principles strip */
.principles { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.principles ul { list-style: none; margin: 0 auto; display: grid; gap: 20px; padding-top: 32px; padding-bottom: 32px; }
.principles li { display: flex; gap: 12px; align-items: flex-start; color: var(--reading); }
.principles svg { flex: 0 0 auto; color: var(--text); margin-top: 1px; }
.principles strong { color: var(--text); font-weight: 600; }
@media (min-width: 880px) { .principles ul { grid-template-columns: repeat(3, 1fr); gap: 32px; } }

/* Section rhythm */
.band { padding: 64px 0; border-bottom: 1px solid var(--hairline); }
@media (min-width: 1024px) { .band { padding: 96px 0; } }
.band .lead { margin-top: 16px; }
.narrow { max-width: 560px; }

.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 16px; }
.steps li { padding: 24px; border-radius: 16px; background: var(--surface); border: 1px solid var(--hairline); }
.steps .n { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 16px; border: 1px solid var(--field-line);
  font-size: 13px; font-weight: 600; color: var(--secondary); }
.steps h3 { margin: 16px 0 0; font-size: 20px; line-height: 25px; font-weight: 600; }
.steps p { margin: 8px 0 0; color: var(--reading); }
@media (min-width: 880px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

/* Features: a promise beside the screen that keeps it. */
.feature { display: grid; gap: 40px; padding-top: 64px; padding-bottom: 64px; border-bottom: 1px solid var(--hairline); }
.feature .phone { justify-self: center; }
.feature-text { align-self: center; }
.feature-text .lead { margin-top: 16px; max-width: 520px; }
@media (max-width: 719px) { .feature .phone { order: 2; max-width: 260px; } }
/* Tablet and up: screen beside text, alternating sides. */
@media (min-width: 720px) {
  .feature { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; }
  .feature.flip { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
  .feature.flip .phone { order: 2; }
  .feature .phone { max-width: 260px; }
}
@media (min-width: 1024px) {
  .feature { gap: 96px; padding-top: 96px; padding-bottom: 96px; }
  .feature .phone { max-width: 300px; }
}
.ticks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 28px; color: var(--reading); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 12px; height: 7px; border-left: 2px solid var(--text); border-bottom: 2px solid var(--text); transform: rotate(-45deg); }

/* Pricing */
.plans { display: grid; gap: 16px; margin-top: 40px; }
.plan { padding: 28px; border-radius: 20px; background: var(--surface); border: 1px solid var(--hairline); }
.plan.plus { border: 1.5px solid var(--text); }
.plan h3 { margin: 0; font-size: 17px; line-height: 22px; font-weight: 600; }
.plan .price { margin: 12px 0 0; font-size: 40px; line-height: 44px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.plan .price span { font-size: 17px; font-weight: 500; letter-spacing: 0; color: var(--secondary); }
.plan .foot { margin-top: 4px; }
.plans-note { margin-top: 16px; }
@media (min-width: 880px) { .plans { grid-template-columns: 1fr 1fr; gap: 24px; max-width: 880px; } }

/* FAQ */
.faq-grid { display: grid; gap: 32px; }
@media (min-width: 1024px) { .faq-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 96px; } }
.faq details { border-top: 1px solid var(--hairline); }
.faq details:last-child { border-bottom: 1px solid var(--hairline); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px;
  font-size: 17px; line-height: 24px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: 0 0 auto; width: 10px; height: 10px; border-right: 2px solid var(--secondary); border-bottom: 2px solid var(--secondary);
  transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }
.faq details p { margin: 0 0 24px; max-width: 620px; color: var(--reading); }

/* Final call to action */
.final { padding-top: 96px; padding-bottom: 96px; }
.final .display { max-width: 760px; }

/* Footer */
.site-footer { border-top: 1px solid var(--hairline); padding: 48px 0 40px; }
.footer-grid { display: grid; gap: 32px; }
.footer-grid nav { display: flex; flex-direction: column; gap: 4px; }
.footer-grid h2 { margin: 0 0 8px; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--text); }
.footer-grid nav a { color: var(--secondary); text-decoration: none; font-size: 15px; line-height: 32px; }
.footer-grid nav a:hover { color: var(--text); }
.site-footer .top { height: auto; }
.site-footer .top + .foot { margin-top: 8px; }
.copyright { margin-top: 40px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }

/* Legal and credits pages: a reading measure, whatever the screen. */
.doc { max-width: 640px; padding: 24px 0 48px; }
@media (min-width: 1024px) { .doc { padding: 48px 0 96px; } }
.doc h1 { margin: 0 0 8px; }
.doc h2 { margin: 32px 0 8px; font-size: 17px; line-height: 22px; font-weight: 600; }
.doc p, .doc li { color: var(--reading); }
.doc ul { padding-left: 20px; margin: 8px 0; }
.doc li + li { margin-top: 4px; }
body:not(.landing) footer { padding: 32px 0 48px; border-top: 1px solid var(--hairline); display: flex; flex-wrap: wrap; gap: 8px 24px;
  font-size: 13px; line-height: 18px; color: var(--secondary); }
body:not(.landing) footer a { color: var(--secondary); display: inline-flex; min-height: 24px; align-items: center; }
