/* Sorry Scroll — marketing site. Palette and type mirror the app. */
:root {
  --cream: #F6F1E7;
  --paper: #FFFDF8;
  --ink: #1A1814;
  --ink-raised: #2A261F;
  --ink-line: #3A352D;
  --ink-muted: #B8AF9F;
  --tomato: #FF5A36;
  --tomato-deep: #E04A29;
  --muted: #5E574C;
  --line: #E4DCCD;
  --hairline: #EFE8DB;
  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, Menlo, monospace;
  --gutter: clamp(16px, 5vw, 72px);
  --radius: 24px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.display {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.92;
  font-variation-settings: "opsz" 96;
}
.display .word { display: inline-block; }
h2.display { font-size: clamp(2.4rem, 6vw, 4.6rem); max-width: 14ch; }
.eyebrow {
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--tomato); box-shadow: 0 0 0 4px rgba(255,90,54,.18); }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 48ch; }
.fineprint { font-size: .85rem; color: var(--muted); }
.fineprint.center { text-align: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 56px; padding: 0 26px; border-radius: 16px;
  font-weight: 700; font-size: 1.02rem; text-decoration: none; border: 2px solid transparent;
  transition: transform .18s ease, background .18s ease, color .18s ease;
  cursor: pointer; font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--tomato); outline-offset: 3px; }
.btn-tomato { background: var(--tomato); color: var(--ink); }
.btn-tomato:hover { background: var(--tomato-deep); }
.btn-ink { background: var(--ink); color: var(--cream); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-sm { height: 44px; padding: 0 18px; font-size: .95rem; border-radius: 12px; }

/* Nav */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gutter);
  background: color-mix(in srgb, var(--cream) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.wordmark { font-family: var(--display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.03em; text-decoration: none; }
.wordmark span { color: var(--tomato); }
.nav-links { display: flex; gap: 22px; }
.nav-links a { text-decoration: none; font-weight: 500; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
@media (max-width: 760px) { .nav-links { display: none; } }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center;
  padding: clamp(40px, 7vw, 96px) var(--gutter) 40px;
  max-width: 1280px; margin: 0 auto;
}
.hero-copy { display: grid; gap: 22px; }
.hero-title { font-size: clamp(3.2rem, 9vw, 7.4rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-phone { position: relative; justify-self: center; padding: 20px 0; }
.sticker {
  position: absolute; background: var(--paper); border: 2px solid var(--ink); border-radius: 999px;
  padding: 10px 16px; font-weight: 700; font-size: .95rem; box-shadow: 4px 4px 0 var(--ink);
  white-space: nowrap;
}
.sticker-a { top: 8%; left: -8%; transform: rotate(-8deg); }
.sticker-b { bottom: 12%; right: -10%; transform: rotate(6deg); background: var(--tomato); }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 32px; }
  .hero-phone { padding: 40px 0 10px; }
  .sticker-a { left: 0; } .sticker-b { right: 0; }
}

/* Phone */
.phone {
  width: min(320px, 78vw); aspect-ratio: 9 / 19; border-radius: 44px;
  background: var(--ink); padding: 12px;
  box-shadow: 0 40px 80px -30px rgba(26,24,20,.55), 0 0 0 2px var(--ink-line) inset;
  position: relative; transform-style: preserve-3d;
}
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; width: 90px; height: 26px; margin-left: -45px; background: var(--ink); border-radius: 999px; z-index: 3; }
.phone-screen {
  position: absolute; inset: 12px; border-radius: 34px; overflow: hidden;
  padding: 58px 20px 22px; display: flex; flex-direction: column; gap: 12px;
  font-size: 14px;
}
.how-screen { opacity: 0; visibility: hidden; }
.how-screen.is-on { opacity: 1; visibility: visible; }

.screen-shield { background: var(--ink); color: var(--cream); }
.shield-app { align-self: flex-start; background: var(--ink-raised); color: var(--cream); padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: 12px; }
.shield-title { font-family: var(--display); font-weight: 800; font-size: 52px; line-height: .9; letter-spacing: -.04em; margin-top: 6px; }
.shield-title em { font-style: normal; color: var(--tomato); }
.shield-sub { color: #D9D1C2; font-size: 14px; }
.shield-card { background: var(--ink-raised); border-radius: 16px; padding: 14px; display: grid; gap: 8px; margin-top: auto; }
.row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.row.small { font-size: 12px; color: var(--ink-muted); }
.row b { font-weight: 700; }
.bar { height: 8px; border-radius: 999px; background: var(--ink-line); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--tomato); border-radius: 999px; }
.shield-btn { border-radius: 14px; padding: 14px; text-align: center; font-weight: 700; border: 2px solid var(--ink-line); }
.shield-btn.primary { background: var(--tomato); color: var(--ink); border-color: var(--tomato); }

.screen-card { background: var(--cream); color: var(--ink); }
.card-progress { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 12px; }
.card-progress i { flex: 1; height: 5px; border-radius: 999px; background: var(--line); }
.card-progress i.done { background: var(--ink); } .card-progress i.now { background: var(--tomato); }
.card-progress span { margin-left: 6px; }
.flashcard { background: #fff; border-radius: 18px; padding: 22px 12px; text-align: center; display: grid; gap: 6px; }
.flashcard small { font-weight: 700; letter-spacing: .1em; color: var(--muted); font-size: 10px; }
.flashcard b { font-family: var(--display); font-size: 34px; letter-spacing: -.03em; }
.flashcard em { font-style: normal; color: var(--muted); font-size: 14px; }
.flashcard .flash-en { font-weight: 700; font-size: 18px; border-top: 2px solid var(--hairline); padding-top: 8px; margin-top: 4px; }
.flashcard small.new-word { justify-self: center; background: var(--tomato); color: var(--ink); padding: 4px 10px; border-radius: 999px; }
.option { background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 11px 14px; font-size: 14px; }
.option.correct { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.card-foot { margin-top: auto; text-align: center; color: var(--muted); font-size: 12px; }

.screen-paid { background: var(--tomato); color: var(--ink); }
.pill { align-self: flex-start; background: var(--ink); color: var(--cream); padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: 11px; }
.paid-title { font-family: var(--display); font-weight: 800; font-size: 27px; line-height: .95; letter-spacing: -.03em; }
.paid-card { background: var(--ink); color: var(--cream); border-radius: 18px; padding: 16px; display: grid; gap: 10px; margin-top: auto; }
.paid-card small { color: var(--ink-muted); }
.paid-date { font-family: var(--display); font-size: 36px; color: var(--tomato); letter-spacing: -.03em; line-height: 1; }
.paid-date s { font-family: var(--body); font-size: 14px; color: #8A8273; margin-left: 8px; }

.screen-home { background: var(--cream); color: var(--ink); gap: 10px; }
.home-brand { font-family: var(--display); font-weight: 800; font-size: 16px; letter-spacing: -.02em; }
.home-brand span { color: var(--tomato); }
.home-card { background: var(--ink); color: var(--cream); border-radius: 20px; padding: 16px; display: grid; gap: 8px; }
.home-card small { color: var(--ink-muted); }
.home-pct { font-family: var(--display); font-size: 56px; line-height: 1; letter-spacing: -.04em; }
.home-pct span { font-size: 26px; }
.home-card .tom { color: var(--tomato); }
.home-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.home-stats div { background: #fff; border-radius: 14px; padding: 10px; display: grid; gap: 2px; }
.home-stats b { font-family: var(--display); font-size: 22px; }
.home-stats small { font-size: 10px; color: var(--muted); }

/* Ticker */
.ticker { overflow: hidden; background: var(--ink); color: var(--cream); padding: 14px 0; border-block: 2px solid var(--ink); }
.ticker-track { display: flex; gap: 32px; width: max-content; font-family: var(--display); font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; white-space: nowrap; }
.ticker-track span:nth-child(even) { color: var(--tomato); }

/* Why */
.why { padding: clamp(64px, 9vw, 120px) var(--gutter); max-width: 1280px; margin: 0 auto; display: grid; gap: 40px; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.why-card { background: var(--paper); border-radius: var(--radius); padding: 28px; display: grid; gap: 10px; border: 1px solid var(--hairline); }
.why-card h3 { font-family: var(--display); font-size: 1.5rem; letter-spacing: -.02em; }
.why-card p { color: var(--muted); }
.why-num { font-family: var(--display); font-size: 2.6rem; letter-spacing: -.04em; color: var(--tomato); line-height: 1; }
@media (max-width: 860px) { .why-grid { grid-template-columns: 1fr; } }

/* How it works */
.how { background: var(--ink); color: var(--cream); }
.how-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  min-height: 100vh; padding: 56px var(--gutter); max-width: 1280px; margin: 0 auto;
}
.how .eyebrow { color: var(--ink-muted); }
.steps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 22px; }
.step { display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; row-gap: 0; opacity: .35; transition: opacity .35s ease; }
.step.is-active { opacity: 1; }
.step-index { font-family: var(--mono); color: var(--tomato); font-size: .95rem; padding-top: 6px; grid-row: 1 / span 2; }
.step h3, .step p { grid-column: 2; }
.step h3 { font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2.2rem); letter-spacing: -.03em; line-height: 1; }
.step p { color: var(--ink-muted); margin-top: 6px; max-width: 42ch; }
.how-phone { justify-self: center; }
.how-phone .phone { box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), 0 0 0 2px var(--ink-line) inset; }
@media (max-width: 900px) {
  .how-inner { grid-template-columns: 1fr; min-height: auto; gap: 32px; }
  .how-phone { order: -1; }
  .how-phone .phone { width: min(260px, 70vw); }
}

/* Math */
.math {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  padding: clamp(64px, 9vw, 120px) var(--gutter); max-width: 1280px; margin: 0 auto;
}
.math-copy { display: grid; gap: 18px; }
.slider-label { display: flex; justify-content: space-between; font-weight: 700; margin-top: 12px; }
.slider-label output { font-family: var(--display); font-size: 1.6rem; color: var(--tomato); }
input[type="range"] { width: 100%; accent-color: var(--tomato); height: 40px; }
.slider-ends { display: flex; justify-content: space-between; font-size: .85rem; color: var(--muted); }
.math-result { background: var(--ink); color: var(--cream); border-radius: 28px; padding: 32px; display: grid; gap: 18px; }
.result-line { color: var(--ink-muted); }
.result-line b { color: var(--cream); }
.result-big small { color: var(--ink-muted); display: block; margin-bottom: 6px; }
.result-date { font-size: clamp(3rem, 7vw, 5.4rem); color: var(--tomato); }
.result-alt { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--ink-line); padding-top: 14px; }
.result-alt > b { font-family: var(--display); font-size: 1.6rem; }
.result-foot { font-size: .85rem; color: var(--ink-muted); }
@media (max-width: 900px) { .math { grid-template-columns: 1fr; } }

/* Receipt */
.receipt-section {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  padding: clamp(64px, 9vw, 120px) var(--gutter); max-width: 1280px; margin: 0 auto;
}
.receipt-copy { display: grid; gap: 18px; }
.checks { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 10px; font-weight: 500; }
.checks li::before { content: "✓"; color: var(--tomato); font-weight: 800; margin-right: 10px; }
.receipt-stage { position: relative; display: grid; place-items: center; padding: 30px 0; }
.receipt-stage::before { content: ""; position: absolute; inset: 10% 8%; background: var(--tomato); border-radius: 32px; transform: rotate(-3deg); z-index: 0; }
.receipt {
  position: relative; z-index: 1; width: min(340px, 86vw); background: var(--paper); color: var(--ink);
  font-family: var(--mono); font-size: 13px; padding: 26px 22px; border-radius: 6px;
  box-shadow: 0 30px 60px -30px rgba(26,24,20,.6); transform: rotate(-1.5deg); display: grid; gap: 10px;
}
.r-brand { font-family: var(--display); font-weight: 800; font-size: 22px; text-align: center; letter-spacing: -.03em; }
.r-brand span { color: var(--tomato); }
.r-sub, .r-foot { text-align: center; color: var(--muted); }
.r-dash { border-top: 2px dashed var(--ink); }
.r-row { display: flex; justify-content: space-between; }
.r-row.big { font-weight: 500; font-size: 15px; }
@media (max-width: 900px) { .receipt-section { grid-template-columns: 1fr; } }

/* Pricing */
.pricing { padding: clamp(64px, 9vw, 120px) var(--gutter); max-width: 1280px; margin: 0 auto; display: grid; gap: 28px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan { position: relative; background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 14px; align-content: start; }
.plan h3 { font-family: var(--display); font-size: 1.3rem; letter-spacing: -.02em; }
.price { font-family: var(--display); font-size: 3rem; letter-spacing: -.04em; line-height: 1; }
.price small { font-family: var(--body); font-size: 1rem; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.per { color: var(--muted); font-size: .95rem; }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--muted); }
.plan ul li::before { content: "—"; margin-right: 8px; color: var(--tomato); }
.plan .btn { margin-top: auto; }
.plan-pro { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.plan-pro .per, .plan-pro ul { color: var(--ink-muted); }
.plan-pro .price small { color: var(--ink-muted); }
.badge { position: absolute; top: -14px; right: 20px; background: var(--tomato); color: var(--ink); font-weight: 800; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }

/* FAQ */
.faq { padding: clamp(64px, 9vw, 120px) var(--gutter); max-width: 900px; margin: 0 auto; display: grid; gap: 28px; }
.faq-list { display: grid; gap: 8px; }
details { background: var(--paper); border-radius: 18px; border: 1px solid var(--hairline); padding: 0 22px; }
summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 700; font-size: 1.1rem; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--display); font-size: 1.6rem; color: var(--tomato); line-height: 1; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 0 20px; color: var(--muted); max-width: 62ch; }

/* Waitlist */
.waitlist { padding: clamp(64px, 9vw, 120px) var(--gutter); background: var(--tomato); color: var(--ink); }
.waitlist-inner { max-width: 760px; margin: 0 auto; display: grid; gap: 22px; text-align: center; justify-items: center; }
.waitlist .lede { color: var(--ink); opacity: .85; }
.waitlist-form { display: grid; gap: 12px; width: min(520px, 100%); }
.waitlist-form input[type="email"] {
  height: 56px; border-radius: 16px; border: 2px solid var(--ink); background: var(--paper); padding: 0 18px;
  font: inherit; font-size: 1.05rem; width: 100%;
}
.waitlist-form input[type="email"]:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.platform { display: flex; gap: 18px; justify-content: center; font-weight: 600; }
.platform input { accent-color: var(--ink); margin-right: 6px; }
.waitlist .btn-tomato { background: var(--ink); color: var(--cream); }
.waitlist .btn-tomato:hover { background: #000; }
.form-note { min-height: 1.4em; font-weight: 600; }

/* Footer */
.footer { padding: 48px var(--gutter) calc(48px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 12px; justify-items: center; text-align: center; color: var(--muted); }
.footer nav { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.footer nav a { color: var(--ink); }
.footer .email { font-family: var(--mono); font-size: .9rem; user-select: all; }
.copyright { font-size: .85rem; }

/* Legal pages */
.legal { max-width: 720px; margin: 0 auto; padding: 48px var(--gutter) 96px; display: grid; gap: 18px; }
.legal h1 { font-family: var(--display); font-size: clamp(2.4rem, 6vw, 3.6rem); letter-spacing: -.035em; line-height: .95; }
.legal h2 { font-family: var(--display); font-size: 1.4rem; letter-spacing: -.02em; margin-top: 18px; }
.legal p { color: var(--muted); max-width: 68ch; }
.legal .updated { color: var(--muted); font-size: .9rem; }
.legal .short { background: var(--ink); color: var(--cream); padding: 18px 20px; border-radius: 18px; }

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}

/* What's inside */
.inside { gap: 16px; }
.inside h2 { max-width: 20ch; }
.inside .why-grid { margin-top: 24px; }
