/* ==========================================================================
   Four Traps — design system. Written for phones first, then widened.
   Idea: a marked-up exam page. Paper, black ink, yellow highlighter, blue pen.
   ========================================================================== */

:root {
  --bg: #faf9f5;
  --surface: #ffffff;
  --ink: #15171a;
  --ink-2: #40464e;
  --muted: #6b717a;
  --line: #e8e5dd;
  --line-2: #d6d2c6;
  --marker: #ffe24a;
  --marker-soft: #fff6c4;
  --pen: #2747d6;
  --pen-soft: #e9edfd;
  --good: #11795a;
  --good-soft: #e2f4eb;
  --bad: #cc4125;
  --bad-soft: #fce8e2;
  --r: 18px;
  --r-sm: 12px;
  --shadow: 0 1px 2px rgba(21, 23, 26, 0.05), 0 10px 30px -16px rgba(21, 23, 26, 0.25);
  --shadow-lg: 0 2px 6px rgba(21, 23, 26, 0.06), 0 32px 70px -32px rgba(21, 23, 26, 0.45);
  --display: "Bricolage Grotesque", "Instrument Sans", system-ui, -apple-system, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --hand: "Caveat", "Segoe Script", cursive;
  --pad: 20px;
  --max: 1140px;
  --tabbar: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
p, h1, h2, h3, h4, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.03em; line-height: 1.04; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 9.6vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 6.4vw, 3rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.02em; line-height: 1.2; }

:focus-visible { outline: 3px solid var(--pen); outline-offset: 2px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: 60px 0; }
.band { background: #f3f1ea; }
.center { text-align: center; }

.hl {
  background: linear-gradient(101deg, rgba(255, 226, 74, 0) 1%, var(--marker) 3.5%, var(--marker) 96%, rgba(255, 226, 74, 0) 99%);
  padding: 0 0.16em; margin: 0 -0.1em; border-radius: 0.18em 0.42em 0.22em 0.36em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; color: inherit;
}
mark.hl { font-style: normal; }
.hand { font-family: var(--hand); color: var(--pen); font-size: 1.45rem; line-height: 1.05; font-weight: 600; }

.kicker {
  display: inline-flex; align-items: center; gap: 8px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-2); margin-bottom: 14px;
}
.kicker::before { content: ""; width: 18px; height: 3px; border-radius: 2px; background: var(--marker); box-shadow: 0 0 0 1px rgba(21, 23, 26, 0.08); }
.lede { font-size: 1.06rem; color: var(--ink-2); max-width: 36rem; }
.head { margin-bottom: 28px; }
.head h2 + .lede { margin-top: 14px; }
.head.center .lede { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px;
  border-radius: 14px; border: 1.5px solid transparent; font-weight: 700; font-size: 1rem; line-height: 1; text-decoration: none;
  white-space: nowrap; transition: transform 0.14s ease, background-color 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.98); }
.btn svg { flex: none; }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 10px 22px -12px rgba(21, 23, 26, 0.7); }
.btn-primary:hover { background: #000; }
.btn-marker { background: var(--marker); color: var(--ink); border-color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.btn-marker:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn-marker:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-ghost { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-quiet { background: transparent; color: var(--ink-2); min-height: 44px; padding: 0 12px; font-weight: 600; }
.btn-quiet:hover { color: var(--ink); background: rgba(21, 23, 26, 0.05); }
.btn-danger { background: var(--surface); border-color: #efc4b8; color: var(--bad); }
.btn-sm { min-height: 42px; padding: 0 16px; font-size: 0.94rem; border-radius: 12px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }
.link { font-weight: 700; text-decoration: underline; text-decoration-color: var(--marker); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.link:hover { text-decoration-color: var(--ink); }

/* ---------- Forms ---------- */
.field { display: grid; gap: 7px; }
.field > label, .field > .label { font-size: 0.86rem; font-weight: 700; color: var(--ink-2); }
.input {
  width: 100%; min-height: 52px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--surface);
  font-size: 1rem; /* 16px keeps iOS from zooming */ transition: border-color 0.14s ease, box-shadow 0.14s ease;
}
textarea.input { padding: 12px 14px; min-height: 96px; resize: vertical; line-height: 1.45; }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--marker); }
.seg { display: inline-flex; background: #eceae2; border-radius: 12px; padding: 4px; gap: 4px; }
.seg button { border: 0; background: transparent; min-height: 42px; padding: 0 16px; border-radius: 9px; font-weight: 700; font-size: 0.95rem; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(21, 23, 26, 0.16); }
.seg.wide { display: flex; }
.seg.wide button { flex: 1; }
.form-error { background: var(--bad-soft); color: #8e2c17; border-radius: 12px; padding: 12px 14px; font-size: 0.94rem; font-weight: 600; }
.form-ok { background: var(--good-soft); color: #0b5a43; border-radius: 12px; padding: 12px 14px; font-size: 0.94rem; font-weight: 600; }
.hint { font-size: 0.86rem; color: var(--muted); }

.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 0.76rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: #eceae2; color: var(--ink-2); white-space: nowrap; flex: none; }
.pill.yellow { background: var(--marker); color: var(--ink); }
.pill.good { background: var(--good-soft); color: #0b5a43; }
.pill.bad { background: var(--bad-soft); color: #8e2c17; }
.pill.pen { background: var(--pen-soft); color: var(--pen); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.tick { width: 22px; height: 22px; border-radius: 50%; background: var(--marker); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; flex: none; }

/* ---------- Top strip + header ---------- */
.strip { background: var(--ink); color: #f1efe8; text-align: center; font-size: 0.82rem; padding: 8px 14px; line-height: 1.35; }
.strip b { color: var(--marker); font-weight: 700; }
.strip .more { display: none; }

.site-header { position: sticky; top: 0; z-index: 60; background: rgba(250, 249, 245, 0.9); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid transparent; transition: border-color 0.2s ease; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.wordmark { font-family: var(--display); font-weight: 800; font-size: 1.42rem; letter-spacing: -0.045em; text-decoration: none; line-height: 1; display: inline-flex; align-items: center; }
.wordmark span { background: var(--marker); padding: 3px 7px 4px; border-radius: 7px 9px 6px 10px; margin-right: 1px; transform: rotate(-2deg); display: inline-block; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav .nav-link { display: none; }
.nav .nav-cta { display: none; }
.menu-btn { width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--surface); display: inline-flex; align-items: center; justify-content: center; }

.sheet { position: fixed; inset: 0; z-index: 90; background: var(--bg); padding: 14px var(--pad) calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; transform: translateY(-102%); transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1); visibility: hidden; }
.sheet.is-open { transform: none; visibility: visible; }
.sheet-top { display: flex; align-items: center; justify-content: space-between; height: 46px; }
.sheet nav { margin-top: 18px; display: grid; }
.sheet nav a { font-family: var(--display); font-weight: 700; font-size: 1.9rem; letter-spacing: -0.03em; text-decoration: none; padding: 14px 0; border-bottom: 1px solid var(--line); }
.sheet .sheet-foot { margin-top: auto; display: grid; gap: 10px; }

/* ---------- Hero ---------- */
.hero { padding: 26px 0 44px; }
.hero-grid { display: grid; gap: 30px; }
.hero h1 { margin-top: 4px; }
.hero .lede { margin-top: 16px; font-size: 1.08rem; }
.hero-cta { margin-top: 22px; display: grid; gap: 10px; }
.micro { font-size: 0.86rem; color: var(--muted); text-align: center; }
.proof { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.proof li { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 600; color: var(--ink-2); }

.try { position: relative; }
.try-note { display: flex; align-items: flex-end; gap: 6px; margin: 0 0 6px 8px; transform: rotate(-2deg); }
.try-note svg { margin-bottom: -4px; color: var(--pen); }
.try-after { margin-top: 14px; display: none; }
.try-after.is-on { display: grid; gap: 10px; }
.try-after p { font-size: 0.95rem; color: var(--ink-2); }

/* ---------- Question card (shared by every page) ---------- */
.q-card { background: var(--surface); border: 1.5px solid var(--ink); border-radius: 20px; box-shadow: 5px 5px 0 var(--ink); padding: 20px 18px 18px; }
.q-card.soft { border: 1px solid var(--line); box-shadow: var(--shadow); }
.q-label { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.q-stem { font-size: 1rem; line-height: 1.55; }
.q-ask { margin-top: 12px; font-family: var(--display); font-weight: 700; font-size: 1.22rem; line-height: 1.22; letter-spacing: -0.02em; }
.q-options { margin-top: 16px; display: grid; gap: 9px; }
.q-opt {
  width: 100%; display: flex; align-items: flex-start; gap: 12px; text-align: left; background: var(--surface); border: 1.5px solid var(--line-2);
  border-radius: 14px; padding: 13px 14px; min-height: 54px; font-size: 0.98rem; line-height: 1.38;
  transition: border-color 0.12s ease, background-color 0.12s ease, transform 0.12s ease; -webkit-tap-highlight-color: transparent;
}
.q-opt:hover { border-color: var(--ink); }
.q-opt:active { transform: scale(0.99); }
.q-letter { flex: none; width: 28px; height: 28px; border-radius: 8px; background: #eceae2; color: var(--ink-2); font-weight: 800; font-size: 0.82rem; display: inline-flex; align-items: center; justify-content: center; }
.q-text { flex: 1; padding-top: 3px; }
.q-note { font-size: 0.92rem; line-height: 1.45; color: var(--ink-2); margin: 7px 2px 3px 6px; padding-left: 12px; border-left: 2px solid var(--line-2); }
.q-row.is-selected .q-opt { border-color: var(--ink); background: var(--marker-soft); }
.q-row.is-selected .q-letter { background: var(--ink); color: #fff; }
.q-row.is-locked .q-opt { cursor: default; transform: none; }
.q-row.is-locked .q-opt:hover { border-color: var(--line-2); }
.q-row.is-correct .q-opt, .q-row.is-correct .q-opt:hover { border-color: var(--good); background: var(--good-soft); font-weight: 600; }
.q-row.is-correct .q-letter { background: var(--good); color: #fff; }
.q-row.is-correct .q-note { border-left-color: var(--good); color: #0b5a43; }
.q-row.is-wrong .q-opt, .q-row.is-wrong .q-opt:hover { border-color: var(--bad); background: var(--bad-soft); }
.q-row.is-wrong .q-letter { background: var(--bad); color: #fff; }
.q-row.is-wrong .q-note { border-left-color: var(--bad); }
.q-row.is-locked:not(.is-correct):not(.is-wrong) .q-opt { opacity: 0.7; }
.q-feedback { margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: #f3f1ea; }
.q-feedback.is-correct { background: var(--good-soft); }
.q-verdict { font-family: var(--display); font-weight: 700; font-size: 1.12rem; letter-spacing: -0.02em; margin-bottom: 6px; }
.q-trap { font-size: 0.93rem; color: var(--ink-2); margin-bottom: 6px; }
.q-trap-tag { display: inline-block; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; background: var(--marker); color: var(--ink); padding: 3px 8px; border-radius: 6px; margin-right: 4px; vertical-align: 1px; }
.q-rule { font-size: 0.95rem; }
.q-keys { display: none; }

/* ---------- Numbers ---------- */
.stats { padding: 34px 0; }
.stats-title { font-family: var(--hand); font-size: 1.5rem; color: var(--pen); font-weight: 600; margin-bottom: 14px; transform: rotate(-1deg); }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 14px; }
.stat b { display: block; font-family: var(--display); font-weight: 800; font-size: 1.85rem; letter-spacing: -0.04em; line-height: 1; margin-bottom: 8px; white-space: nowrap; }
.stat p { font-size: 0.88rem; color: var(--ink-2); line-height: 1.35; }
.stats-note { margin-top: 12px; font-size: 0.76rem; color: var(--muted); }

/* ---------- Traps (swipe row on phones) ---------- */
.rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--pad) 18px; margin: 0 calc(var(--pad) * -1); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { flex: 0 0 78%; scroll-snap-align: center; }
.trap { background: var(--surface); border: 1.5px solid var(--ink); border-radius: 18px; padding: 18px 18px 20px; box-shadow: 4px 4px 0 var(--ink); }
.trap .num { display: inline-flex; width: 30px; height: 30px; border-radius: 50%; background: var(--marker); align-items: center; justify-content: center; font-weight: 800; font-size: 0.85rem; margin-bottom: 14px; }
.trap h3 { margin-bottom: 8px; }
.trap p { font-size: 0.94rem; color: var(--ink-2); }
.trap p strong { color: var(--ink); }
.swipe-hint { font-size: 0.8rem; color: var(--muted); text-align: center; }

.familiar { margin-top: 36px; display: grid; gap: 22px; }
.photo { position: relative; border-radius: 20px; overflow: hidden; background: #2a2c2e; aspect-ratio: 4 / 3; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-tag { position: absolute; left: 12px; bottom: 12px; background: var(--marker); color: var(--ink); font-size: 0.78rem; font-weight: 700; padding: 5px 10px; border-radius: 8px; transform: rotate(-1.5deg); }
.thoughts { display: grid; gap: 12px; margin-top: 4px; }
.thoughts li { font-family: var(--display); font-weight: 600; font-size: 1.14rem; line-height: 1.25; letter-spacing: -0.02em; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; }
.after { margin-top: 16px; font-size: 1.02rem; color: var(--ink-2); }
.after strong { color: var(--ink); }

/* ---------- Steps + app preview + planner ---------- */
.steps { display: grid; gap: 4px; counter-reset: s; }
.step { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: 0; }
.step .n { width: 40px; height: 40px; border-radius: 12px; background: var(--ink); color: var(--marker); font-family: var(--display); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.step h3 { margin-bottom: 4px; }
.step p { font-size: 0.95rem; color: var(--ink-2); }

.how-grid { display: grid; gap: 30px; }
.phone { width: min(300px, 82vw); margin: 0 auto; background: var(--ink); border-radius: 38px; padding: 10px; box-shadow: var(--shadow-lg); position: relative; }
.phone-screen { background: var(--bg); border-radius: 29px; overflow: hidden; padding: 16px 14px 14px; display: grid; gap: 10px; }
.phone-top { display: flex; justify-content: space-between; align-items: center; font-size: 0.72rem; font-weight: 700; color: var(--muted); }
.phone h4 { font-family: var(--display); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.03em; }
.p-today { background: var(--ink); color: #fff; border-radius: 16px; padding: 14px; }
.p-today b { display: block; font-family: var(--display); font-size: 1.05rem; letter-spacing: -0.02em; }
.p-today span { font-size: 0.74rem; color: rgba(255, 255, 255, 0.72); }
.p-today i { display: block; margin-top: 10px; background: var(--marker); color: var(--ink); font-style: normal; font-weight: 800; font-size: 0.78rem; text-align: center; padding: 9px; border-radius: 10px; }
.p-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.p-box { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; font-size: 0.72rem; color: var(--muted); font-weight: 600; }
.p-box b { display: block; font-family: var(--display); font-size: 1.4rem; color: var(--ink); letter-spacing: -0.03em; line-height: 1.1; }
.p-bars { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: grid; gap: 8px; }
.note-pin { position: absolute; right: -10px; top: -16px; z-index: 2; transform: rotate(5deg); background: var(--marker); border-radius: 6px; padding: 6px 10px; font-family: var(--hand); font-size: 1.15rem; font-weight: 600; box-shadow: 2px 3px 0 rgba(21, 23, 26, 0.25); }

.planner { margin-top: 34px; background: var(--ink); color: #f1efe8; border-radius: 22px; padding: 22px 18px; display: grid; gap: 18px; }
.planner h3 { font-size: 1.5rem; color: #fff; }
.planner .sub { color: rgba(241, 239, 232, 0.74); margin-top: 6px; font-size: 0.96rem; }
.planner form { display: grid; gap: 14px; margin-top: 16px; }
.planner .field > label, .planner .field > .label { color: rgba(241, 239, 232, 0.8); }
.planner .input { border-color: transparent; }
.planner .seg { background: rgba(255, 255, 255, 0.12); }
.planner .seg button { color: rgba(241, 239, 232, 0.85); }
.planner .seg button[aria-pressed="true"] { background: var(--marker); color: var(--ink); box-shadow: none; }
.plan-out { background: var(--surface); color: var(--ink); border-radius: 16px; padding: 18px; min-height: 150px; display: flex; flex-direction: column; justify-content: center; }
.plan-out .empty { color: var(--muted); font-size: 0.95rem; }
.plan-days { font-family: var(--display); font-weight: 800; font-size: 2.8rem; line-height: 1; letter-spacing: -0.04em; }
.plan-days small { display: block; font-family: var(--body); font-size: 0.88rem; font-weight: 600; letter-spacing: 0; color: var(--muted); margin-top: 6px; }
.plan-lines { margin-top: 14px; display: grid; gap: 9px; }
.plan-lines li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; color: var(--ink-2); }
.plan-lines li .tick { margin-top: 1px; }
.plan-lines strong { color: var(--ink); }
.plan-note { margin-top: 12px; font-size: 0.84rem; color: var(--muted); }

/* ---------- Feature list ---------- */
.feats { display: grid; gap: 10px; }
.feat { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.feat .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--marker-soft); border: 1.5px solid var(--ink); display: flex; align-items: center; justify-content: center; }
.feat h3 { font-size: 1.05rem; margin-bottom: 3px; }
.feat p { font-size: 0.92rem; color: var(--ink-2); line-height: 1.42; }

/* ---------- Dark band ---------- */
.dark { background: var(--ink); color: #f1efe8; }
.dark h2 { color: #fff; }
.dark .kicker { color: rgba(241, 239, 232, 0.8); }
.dark p { color: rgba(241, 239, 232, 0.82); font-size: 1.02rem; margin-top: 14px; }
.dark p strong { color: #fff; }
.retake-grid { display: grid; gap: 24px; }
.tip { background: var(--marker); color: var(--ink); border-radius: 18px 18px 18px 4px; padding: 20px; transform: rotate(-1deg); }
.tip h3 { margin-bottom: 8px; font-size: 1.25rem; }
.tip p { color: var(--ink); font-size: 0.96rem; margin: 0; }

/* ---------- Guarantee, pricing ---------- */
.promise { background: var(--surface); border: 1.5px solid var(--ink); border-radius: 22px; box-shadow: 5px 5px 0 var(--ink); padding: 30px 20px; text-align: center; }
.seal { width: 62px; height: 62px; border-radius: 50%; background: var(--marker); border: 1.5px solid var(--ink); margin: 0 auto 18px; display: flex; align-items: center; justify-content: center; }
.promise .lede { margin: 14px auto 0; }
.terms { margin-top: 16px; font-size: 0.84rem; color: var(--muted); }

.price-grid { display: grid; gap: 26px; }
.cost-list { margin-top: 18px; border-top: 1px solid var(--line-2); }
.cost-list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-2); font-size: 0.98rem; color: var(--ink-2); }
.cost-list b { font-family: var(--display); font-weight: 700; color: var(--ink); white-space: nowrap; }
.cost-foot { margin-top: 16px; font-size: 1rem; color: var(--ink-2); }
.cost-foot strong { color: var(--ink); }
.price-card { background: var(--surface); border: 1.5px solid var(--ink); border-radius: 22px; box-shadow: 5px 5px 0 var(--ink); padding: 26px 20px 22px; position: relative; }
.price-card > .pill { position: absolute; top: -13px; left: 18px; }
.price-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; }
.price-top h3 { font-size: 1.3rem; }
.price { font-family: var(--display); font-weight: 800; font-size: 3.2rem; line-height: 0.9; letter-spacing: -0.05em; }
.price sup { font-size: 1.3rem; vertical-align: 1.2rem; margin-right: 1px; letter-spacing: 0; }
.price-sub { margin-top: 8px; color: var(--muted); font-size: 0.92rem; }
.level-pick { margin: 20px 0 4px; }
.includes { margin: 20px 0 22px; display: grid; gap: 11px; }
.includes li { display: flex; gap: 11px; align-items: flex-start; font-size: 0.97rem; }
.price-fine { margin-top: 14px; text-align: center; font-size: 0.88rem; color: var(--muted); }

/* ---------- Expert, FAQ, final ---------- */
.expert { display: grid; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px; }
.expert .who { display: flex; gap: 14px; align-items: center; }
.expert .who img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.expert .who b { display: block; font-family: var(--display); font-size: 1.1rem; }
.expert .who span { font-size: 0.9rem; color: var(--muted); }

.faq-grid { display: grid; gap: 22px; }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq details:first-child { border-top: 1px solid var(--line-2); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 36px 18px 0; position: relative; font-family: var(--display); font-weight: 700; font-size: 1.08rem; line-height: 1.25; letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--marker); display: flex; align-items: center; justify-content: center; font-family: var(--body); font-weight: 700; font-size: 1.1rem; }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 8px 18px 0; color: var(--ink-2); font-size: 0.97rem; }

.final-card { background: var(--marker); border: 1.5px solid var(--ink); border-radius: 24px; overflow: hidden; box-shadow: 5px 5px 0 var(--ink); display: grid; }
.final-photo { aspect-ratio: 16 / 11; position: relative; border-bottom: 1.5px solid var(--ink); }
.final-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.final-copy { padding: 24px 20px 22px; }
.final-copy p { margin-top: 10px; font-size: 1.02rem; color: var(--ink); }
.final-copy .hero-cta { margin-top: 18px; }

.site-footer { padding: 34px 0 calc(96px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 16px; }
.foot-links a { text-decoration: none; color: var(--ink-2); font-size: 0.92rem; font-weight: 600; }
.legal { margin-top: 18px; font-size: 0.78rem; color: var(--muted); line-height: 1.55; }

.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: rgba(250, 249, 245, 0.94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom)); transform: translateY(110%); transition: transform 0.25s ease; }
.sticky-cta.is-on { transform: none; }

dialog.modal { border: 1.5px solid var(--ink); border-radius: 22px; padding: 0; width: calc(100% - 28px); max-width: 440px; background: var(--surface); color: var(--ink); box-shadow: 6px 6px 0 var(--ink); }
dialog.modal::backdrop { background: rgba(21, 23, 26, 0.55); }
.modal-body { padding: 26px 20px 22px; position: relative; display: grid; gap: 12px; }
.modal-body h3 { font-size: 1.5rem; padding-right: 40px; }
.modal-body p { color: var(--ink-2); font-size: 0.97rem; }
.modal-close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 12px; border: 0; background: #eceae2; display: flex; align-items: center; justify-content: center; }
.modal form { display: grid; gap: 10px; margin-top: 4px; }

.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Bars, rings ---------- */
.bars { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 84px 1fr 44px; gap: 10px; align-items: center; font-size: 0.86rem; color: var(--ink-2); font-weight: 600; }
.bar { height: 10px; border-radius: 999px; background: #eceae2; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 999px; background: var(--ink); width: 0; transition: width 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.bar.is-weak i { background: var(--bad); }
.bar-row b { text-align: right; color: var(--ink); font-weight: 700; }
.ring-track { stroke: #eceae2; }
.ring-fill { stroke: var(--ink); stroke-linecap: round; transition: stroke-dashoffset 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.ring-text { font-family: var(--display); font-weight: 800; fill: var(--ink); }

/* ==========================================================================
   Diagnostic
   ========================================================================== */
.flow-body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.flow-header { position: sticky; top: 0; z-index: 20; background: rgba(250, 249, 245, 0.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.flow-header .header-in { height: 56px; }
.progress { flex: 1; height: 8px; border-radius: 999px; background: #eceae2; overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--ink); border-radius: 999px; transition: width 0.35s ease; }
.count { font-size: 0.86rem; font-weight: 700; color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.flow-main { flex: 1; padding: 22px 0 120px; }
.flow-wrap { width: 100%; max-width: 720px; margin: 0 auto; padding: 0 16px; }
.intro { padding-top: 14px; }
.intro h1 { font-size: clamp(2.1rem, 9vw, 3.4rem); }
.intro .lede { margin-top: 14px; }
.facts { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.intro .field { margin-top: 24px; }
.intro .btn { margin-top: 22px; }
.small { margin-top: 14px; font-size: 0.82rem; color: var(--muted); }
.next-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(250, 249, 245, 0.95); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
.next-bar .in { max-width: 688px; margin: 0 auto; display: flex; gap: 10px; }
.next-bar .btn { flex: 1; }

.result-top { text-align: center; padding-top: 6px; }
.score-ring { width: 150px; height: 150px; margin: 0 auto 14px; }
.result-top h1 { font-size: clamp(1.8rem, 7.4vw, 2.6rem); }
.result-top .lede { margin: 12px auto 0; }
.block { margin-top: 14px; padding: 20px 18px; }
.trap-result { border: 1.5px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); border-radius: 20px; background: var(--surface); margin-top: 22px; padding: 20px 18px; }
.trap-result h2 { font-size: 1.7rem; margin: 10px 0 8px; }
.trap-result p { color: var(--ink-2); font-size: 0.98rem; }
.trap-result p + p { margin-top: 10px; }
.trap-result strong { color: var(--ink); }
.block h3 { margin-bottom: 14px; }
.caveat { margin-top: 14px; font-size: 0.84rem; color: var(--muted); }
.offer { margin-top: 14px; background: var(--ink); color: #f1efe8; border-radius: 22px; padding: 24px 20px; }
.offer h2 { color: #fff; font-size: 1.7rem; }
.offer p { margin-top: 10px; color: rgba(241, 239, 232, 0.84); font-size: 0.98rem; }
.offer ul { margin: 16px 0 20px; display: grid; gap: 10px; }
.offer li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.96rem; color: #fff; }
.offer .micro { color: rgba(241, 239, 232, 0.7); margin-top: 10px; }
.again { margin-top: 22px; text-align: center; font-size: 0.92rem; }

/* ==========================================================================
   Study room (app)
   ========================================================================== */
.app-body { min-height: 100vh; min-height: 100dvh; padding-bottom: calc(var(--tabbar) + env(safe-area-inset-bottom)); }
.app-body.is-focus { padding-bottom: 0; }
.app-top { position: sticky; top: 0; z-index: 30; background: rgba(250, 249, 245, 0.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.app-top .header-in { height: 56px; }
.app-top .chips { display: flex; gap: 6px; align-items: center; }
.side { display: none; }
.app-main { padding: 18px 0 30px; }
.app-wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 16px; }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; height: calc(var(--tabbar) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: rgba(255, 255, 255, 0.96); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); }
.tabbar button { border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 0.68rem; font-weight: 700; color: var(--muted); -webkit-tap-highlight-color: transparent; }
.tabbar button span { width: 44px; height: 28px; border-radius: 999px; display: flex; align-items: center; justify-content: center; transition: background-color 0.15s ease; }
.tabbar button[aria-current="page"] { color: var(--ink); }
.tabbar button[aria-current="page"] span { background: var(--marker); }
.is-focus .tabbar, .is-focus .app-top, .is-auth .tabbar { display: none; }

.page-head { margin-bottom: 16px; }
.page-head h1 { font-size: 1.9rem; }
.page-head p { margin-top: 6px; color: var(--ink-2); font-size: 0.97rem; }
.stack { display: grid; gap: 12px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 16px; }
.panel h2 { font-size: 1.15rem; letter-spacing: -0.02em; }
.panel .sub { color: var(--muted); font-size: 0.88rem; margin-top: 3px; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }

.today { background: var(--ink); color: #f1efe8; border-radius: 22px; padding: 20px 18px 18px; position: relative; overflow: hidden; }
.today::after { content: ""; position: absolute; right: -70px; top: -90px; width: 220px; height: 220px; border-radius: 50%; background: var(--marker); opacity: 0.16; }
.today > * { position: relative; }
.today .label { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--marker); }
.today h2 { color: #fff; font-size: 1.75rem; margin-top: 6px; }
.today p { color: rgba(241, 239, 232, 0.8); font-size: 0.95rem; margin-top: 6px; }
.today .btn { margin-top: 16px; }
.week { margin-top: 18px; display: flex; gap: 6px; }
.week div { flex: 1; text-align: center; font-size: 0.68rem; font-weight: 700; color: rgba(241, 239, 232, 0.6); }
.week i { display: block; height: 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); margin-bottom: 6px; }
.week .is-done i { background: var(--marker); }
.week .is-today { color: #fff; }

.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.quick button { text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 12px; display: grid; gap: 8px; min-height: 104px; align-content: space-between; transition: border-color 0.12s ease, transform 0.12s ease; }
.quick button:hover { border-color: var(--ink); }
.quick button:active { transform: scale(0.98); }
.quick b { display: block; font-family: var(--display); font-size: 1.5rem; letter-spacing: -0.03em; line-height: 1; }
.quick span { font-size: 0.78rem; font-weight: 700; color: var(--ink-2); line-height: 1.25; }
.quick .ico { width: 30px; height: 30px; border-radius: 9px; background: var(--marker-soft); display: flex; align-items: center; justify-content: center; }

.ready { display: flex; gap: 16px; align-items: center; }
.ready .ring { width: 96px; height: 96px; flex: none; }
.ready p { font-size: 0.92rem; color: var(--ink-2); margin-top: 4px; }

.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.kpi b { display: block; font-family: var(--display); font-weight: 800; font-size: 1.7rem; letter-spacing: -0.04em; line-height: 1.05; }
.kpi span { font-size: 0.8rem; font-weight: 600; color: var(--muted); }

.list { display: grid; gap: 10px; }
.row-btn { width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; min-height: 72px; transition: border-color 0.12s ease, transform 0.12s ease; }
.row-btn:hover { border-color: var(--ink); }
.row-btn:active { transform: scale(0.99); }
.row-btn .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--marker-soft); border: 1.5px solid var(--ink); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; }
.row-btn b { display: block; font-weight: 700; }
.row-btn small { display: block; font-size: 0.84rem; color: var(--muted); margin-top: 1px; }
.row-btn .chev { color: var(--muted); }
.row-btn[disabled] { opacity: 0.5; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1.5px solid var(--line-2); background: var(--surface); min-height: 40px; padding: 0 14px; border-radius: 999px; font-weight: 700; font-size: 0.9rem; color: var(--ink-2); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.item { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.item summary { list-style: none; cursor: pointer; padding: 14px; display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; }
.item summary::-webkit-details-marker { display: none; }
.item summary p { font-size: 0.94rem; font-weight: 600; line-height: 1.38; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item[open] summary p { -webkit-line-clamp: unset; display: none; }
.item .inner { padding: 0 14px 14px; }
.item .q-card { border: 0; box-shadow: none; padding: 0; background: transparent; }
.empty { text-align: center; padding: 34px 18px; border: 1.5px dashed var(--line-2); border-radius: var(--r); background: rgba(255, 255, 255, 0.5); }
.empty h3 { margin-bottom: 6px; }
.empty p { color: var(--ink-2); font-size: 0.95rem; }

.tools { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.tool { border: 1.5px solid var(--line-2); background: var(--surface); border-radius: 12px; min-height: 42px; padding: 0 12px; font-weight: 700; font-size: 0.88rem; display: inline-flex; align-items: center; gap: 7px; color: var(--ink-2); }
.tool[aria-pressed="true"] { background: var(--marker); border-color: var(--ink); color: var(--ink); }
.note-box { margin-top: 10px; display: grid; gap: 8px; }

/* focus mode: practice sessions and mock exams */
.focus-top { position: sticky; top: 0; z-index: 20; background: rgba(250, 249, 245, 0.95); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.focus-top .in { max-width: 760px; margin: 0 auto; padding: 0 12px; height: 56px; display: flex; align-items: center; gap: 12px; }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; border: 0; background: transparent; display: inline-flex; align-items: center; justify-content: center; flex: none; color: var(--ink-2); }
.icon-btn:hover { background: rgba(21, 23, 26, 0.06); }
.icon-btn[aria-pressed="true"] { background: var(--marker); color: var(--ink); }
.timer { font-family: var(--display); font-weight: 800; font-size: 1.05rem; font-variant-numeric: tabular-nums; padding: 6px 10px; border-radius: 10px; background: #eceae2; }
.timer.is-low { background: var(--bad-soft); color: var(--bad); }
.focus-main { max-width: 760px; margin: 0 auto; padding: 16px 16px 130px; }
.done { text-align: center; padding: 26px 0 10px; }
.done h1 { font-size: 2.6rem; margin: 8px 0 10px; }
.done .lede { margin: 0 auto; }
.done .actions { margin-top: 22px; display: grid; gap: 10px; }
.done .kpis { margin-top: 22px; text-align: left; }

.navigator { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.navigator button { aspect-ratio: 1; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--surface); font-weight: 700; font-size: 0.92rem; position: relative; }
.navigator button.is-answered { background: var(--ink); border-color: var(--ink); color: #fff; }
.navigator button.is-current { box-shadow: 0 0 0 3px var(--marker); border-color: var(--ink); }
.navigator button.is-flagged::after { content: ""; position: absolute; top: 4px; right: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 0.8rem; color: var(--muted); margin-top: 12px; }

.chart { width: 100%; height: 150px; }
.chart .axis { stroke: var(--line); stroke-width: 1; }
.chart .line { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: var(--marker); opacity: 0.45; }
.chart .dot { fill: var(--ink); }
.chart text { font-size: 10px; fill: var(--muted); font-family: var(--body); }
.heat { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.heat i { aspect-ratio: 1; border-radius: 8px; background: #eceae2; }
.heat i.l1 { background: #ffec86; }
.heat i.l2 { background: var(--marker); box-shadow: inset 0 0 0 1.5px var(--ink); }
.heat i.is-future { opacity: 0.35; }
.heat-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; font-size: 0.68rem; font-weight: 700; color: var(--muted); text-align: center; margin-bottom: 6px; }

.auth { max-width: 440px; margin: 0 auto; padding: 22px 0 40px; }
.auth h1 { font-size: 2.2rem; }
.auth .lede { margin-top: 10px; }
.auth form { margin-top: 20px; display: grid; gap: 14px; }
.auth .switch { margin-top: 16px; font-size: 0.94rem; color: var(--ink-2); text-align: center; }
.carry { margin-top: 16px; background: var(--marker-soft); border: 1.5px solid var(--ink); border-radius: 14px; padding: 12px 14px; font-size: 0.92rem; font-weight: 600; }
.settings { display: grid; gap: 12px; }
.settings form { display: grid; gap: 14px; margin-top: 14px; }
.toast { position: fixed; left: 50%; bottom: calc(var(--tabbar) + 18px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 12px; font-weight: 600; font-size: 0.92rem; z-index: 100; opacity: 0; pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease; max-width: calc(100% - 32px); text-align: center; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.loading { padding: 80px 0; text-align: center; color: var(--muted); font-weight: 600; }

/* ==========================================================================
   Wider screens
   ========================================================================== */
@media (min-width: 600px) {
  :root { --pad: 28px; }
  .strip .more { display: inline; }
  .hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
  .micro { text-align: left; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .rail > * { flex-basis: 46%; }
  .q-card { padding: 26px 26px 24px; }
  .q-stem { font-size: 1.05rem; }
  .q-ask { font-size: 1.36rem; }
  .q-note { margin-left: 46px; }
  .done .actions { display: flex; justify-content: center; }
  .kpis { grid-template-columns: repeat(4, 1fr); }
  .navigator { grid-template-columns: repeat(10, 1fr); }
  .promise { padding: 44px 40px; }
  .final-copy .hero-cta .btn, .hero-cta .btn { min-width: 220px; }
}

@media (min-width: 900px) {
  body { font-size: 17px; }
  .section { padding: 100px 0; }
  .head { margin-bottom: 48px; }
  .lede { font-size: 1.16rem; }
  .header-in { height: 72px; }
  .wordmark { font-size: 1.6rem; }
  .nav { gap: 26px; }
  .nav .nav-link { display: inline; font-size: 0.95rem; font-weight: 600; color: var(--ink-2); text-decoration: none; }
  .nav .nav-link:hover { color: var(--ink); }
  .nav .nav-cta { display: inline-flex; }
  .menu-btn { display: none; }
  .sticky-cta { display: none; }
  .site-footer { padding-bottom: 60px; }

  .hero { padding: 64px 0 84px; }
  .hero-grid { grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr); gap: 64px; align-items: center; }
  .hero .lede { font-size: 1.22rem; margin-top: 22px; }
  .hero-cta { margin-top: 30px; }
  .proof { margin-top: 28px; }
  .try-note { margin-left: 26px; }
  .try .q-card { transform: rotate(0.6deg); }

  .stats { padding: 56px 0; }
  .stats-title { font-size: 1.8rem; }
  .stat { padding: 22px 20px; }
  .stat b { font-size: 2.5rem; }
  .stat p { font-size: 0.96rem; }
  .rail { overflow: visible; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .swipe-hint { display: none; }
  .familiar { margin-top: 72px; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
  .photo { aspect-ratio: 4 / 5; border-radius: 26px; }
  .thoughts li { font-size: 1.4rem; padding: 18px 22px; }
  .after { font-size: 1.12rem; }

  .how-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 72px; align-items: center; }
  .step { grid-template-columns: 48px 1fr; gap: 18px; padding: 22px 0; }
  .step .n { width: 48px; height: 48px; font-size: 1.15rem; }
  .step h3 { font-size: 1.4rem; }
  .step p { font-size: 1.02rem; }
  .planner { margin-top: 72px; padding: 44px; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; border-radius: 28px; }
  .planner h3 { font-size: 2rem; }
  .plan-out { padding: 28px; min-height: 240px; }
  .plan-days { font-size: 3.6rem; }
  .feats { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .feat { padding: 22px; grid-template-columns: 50px 1fr; gap: 18px; }
  .feat .ico { width: 50px; height: 50px; }
  .feat h3 { font-size: 1.2rem; }
  .feat p { font-size: 0.98rem; }
  .retake-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 64px; align-items: center; }
  .dark p { font-size: 1.12rem; }
  .tip { padding: 28px; transform: rotate(1.5deg); }
  .promise { max-width: 860px; margin: 0 auto; padding: 60px 56px; }
  .price-grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 60px; align-items: center; }
  .price-card { padding: 38px 36px 32px; }
  .price { font-size: 4.2rem; }
  .faq-grid { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 64px; }
  .faq summary { font-size: 1.24rem; padding: 22px 44px 22px 0; }
  .final-card { grid-template-columns: 1fr 1fr; border-radius: 30px; }
  .final-photo { aspect-ratio: auto; min-height: 420px; border-bottom: 0; border-left: 1.5px solid var(--ink); order: 2; }
  .final-copy { padding: 64px 52px; display: flex; flex-direction: column; justify-content: center; }
  .final-copy p { font-size: 1.16rem; }

  .flow-main { padding-top: 44px; }
  .intro { text-align: center; }
  .intro .lede { margin-left: auto; margin-right: auto; }
  .facts { justify-content: center; }
  .intro .field { justify-items: center; }
  .next-bar { position: static; background: none; border: 0; padding: 20px 0 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .next-bar .in { justify-content: flex-end; }
  .next-bar .btn { flex: none; min-width: 200px; }
  .q-keys { display: inline; font-weight: 600; letter-spacing: 0; text-transform: none; font-size: 0.78rem; }

  /* app: sidebar instead of the bottom bar */
  .app-body { padding-bottom: 0; display: grid; grid-template-columns: 232px minmax(0, 1fr); }
  .app-body.is-focus, .app-body.is-auth { display: block; }
  .tabbar { display: none; }
  .app-top { display: none; }
  .is-auth .app-top { display: block; }
  .side { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; padding: 22px 14px; border-right: 1px solid var(--line); background: #f5f3ec; }
  .is-focus .side, .is-auth .side { display: none; }
  .side .wordmark { margin: 4px 8px 22px; }
  .side button { border: 0; background: transparent; display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 12px; border-radius: 12px; font-weight: 700; font-size: 0.96rem; color: var(--ink-2); text-align: left; }
  .side button:hover { background: rgba(21, 23, 26, 0.06); }
  .side button[aria-current="page"] { background: var(--marker); color: var(--ink); }
  .side .foot { margin-top: auto; padding: 12px; font-size: 0.8rem; color: var(--muted); }
  .app-main { padding: 40px 0 60px; }
  .app-wrap { max-width: 900px; padding: 0 36px; }
  .page-head h1 { font-size: 2.4rem; }
  .two { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 12px; align-items: start; }
  .today { padding: 28px; }
  .today h2 { font-size: 2.2rem; }
  .panel { padding: 22px; }
  .toast { bottom: 28px; }
  .focus-main { padding-bottom: 60px; }
}

@media (min-width: 1180px) {
  .try .q-card { padding: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .q-opt, .bar i, .ring-fill, .sheet, .sticky-cta { transition: none; }
}

/* focus views take the whole screen */
.is-focus .app-main { padding: 0; }
.is-focus .app-wrap { max-width: none; padding: 0; }
.app-col { min-width: 0; }
.wordmark span { padding: 2px 6px 3px; margin-right: 1px; }
.nav-panel { background: var(--surface); border-bottom: 1px solid var(--line); padding: 16px; }
.nav-panel .in { max-width: 728px; margin: 0 auto; }
.inline { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.muted { color: var(--muted); }
.mt { margin-top: 12px; }
.mt-lg { margin-top: 22px; }
.section-title { font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; margin: 22px 0 10px; }
.bar-row.wide { grid-template-columns: 96px 1fr 52px; }
@media (min-width: 900px) { .quick button { padding: 18px 16px; min-height: 120px; } }
.heat, .heat-days { max-width: 340px; }

/* ---------- proof, sources, legal ---------- */
.q-ref { margin-top: 8px; font-size: 0.84rem; color: var(--muted); }
.q-ref span { font-weight: 700; color: var(--ink-2); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; color: var(--ink-2); }
.check input { width: 22px; height: 22px; flex: none; accent-color: var(--ink); margin-top: 1px; }
.honest { background: var(--surface); border: 1.5px solid var(--ink); border-radius: 22px; box-shadow: 5px 5px 0 var(--ink); padding: 24px 20px; }
.honest h3 { font-size: 1.4rem; margin-bottom: 10px; }
.honest p { color: var(--ink-2); }
.honest p + p { margin-top: 10px; }
.members { display: inline-flex; align-items: baseline; gap: 8px; margin-top: 16px; background: var(--marker); border-radius: 12px; padding: 10px 14px; font-weight: 700; }
.members b { font-family: var(--display); font-size: 1.5rem; letter-spacing: -0.03em; }
.quotes { display: grid; gap: 12px; margin-top: 16px; }
.quote { background: var(--surface); border: 1px solid var(--line); border-radius: 18px 18px 18px 4px; padding: 18px; }
.quote p { font-family: var(--display); font-weight: 600; font-size: 1.1rem; line-height: 1.3; letter-spacing: -0.02em; }
.quote footer { margin-top: 10px; font-size: 0.86rem; color: var(--muted); font-weight: 600; }
.standards { display: grid; gap: 10px; margin-top: 22px; }
.sources { margin-top: 22px; font-size: 0.9rem; color: var(--ink-2); display: grid; gap: 8px; }
.sources a { font-weight: 600; }
.legal-page { max-width: 720px; margin: 0 auto; padding: 30px 20px 80px; }
.legal-page h1 { font-size: clamp(2rem, 7vw, 3rem); margin: 22px 0 8px; }
.legal-page h2 { font-size: 1.3rem; margin: 30px 0 8px; }
.legal-page p, .legal-page li { color: var(--ink-2); margin-top: 10px; }
.legal-page ul { list-style: disc; padding-left: 20px; }
.legal-page ol { list-style: decimal; padding-left: 22px; }
.legal-page .fill { background: var(--marker-soft); border: 1.5px dashed var(--ink); border-radius: 12px; padding: 12px 14px; font-size: 0.92rem; font-weight: 600; color: var(--ink); }
@media (min-width: 900px) {
  .proof-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
  .honest { padding: 34px; }
  .quotes { grid-template-columns: 1fr 1fr; }
  .standards { grid-template-columns: 1fr 1fr; margin-top: 0; }
}

.nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.nums div { background: var(--marker-soft); border: 1.5px solid var(--ink); border-radius: 14px; padding: 12px 8px; text-align: center; }
.nums b { display: block; font-family: var(--display); font-weight: 800; font-size: 1.6rem; letter-spacing: -0.04em; line-height: 1.05; }
.nums span { font-size: 0.74rem; font-weight: 700; color: var(--ink-2); line-height: 1.2; display: block; margin-top: 3px; }
.built { display: flex; flex-wrap: wrap; gap: 8px; }
.built span { border: 1.5px solid var(--ink); border-radius: 999px; padding: 7px 13px; font-weight: 700; font-size: 0.86rem; background: var(--surface); }

/* ---------- tighter page: outside voices, tucked-away details ---------- */
.stats-grid.three { grid-template-columns: 1fr 1fr; }
.stats-grid.three .stat:last-child { grid-column: 1 / -1; }
.stats-note a { color: inherit; font-weight: 600; }
.voices { display: grid; gap: 12px; }
.voice { background: var(--surface); border: 1.5px solid var(--ink); border-radius: 20px; box-shadow: 4px 4px 0 var(--ink); padding: 20px 18px; }
.voice blockquote { margin: 14px 0 12px; font-family: var(--display); font-weight: 600; font-size: 1.14rem; line-height: 1.3; letter-spacing: -0.02em; }
.voice figcaption { font-size: 0.86rem; font-weight: 600; color: var(--muted); }
.voice figcaption a { color: inherit; text-decoration-color: var(--marker); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.voices-foot { margin-top: 18px; font-size: 1.02rem; color: var(--ink-2); max-width: 36rem; }
details.more { margin-top: 12px; }
details.more summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--surface); font-weight: 700; font-size: 0.95rem; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::after { content: "+"; font-size: 1.1rem; }
details.more[open] summary::after { content: "–"; }
details.more .feats { margin-top: 12px; }
.notfor { margin-top: 26px; }
.notfor h3 { margin-bottom: 10px; }
.notfor li { position: relative; padding-left: 22px; margin-top: 8px; font-size: 0.96rem; color: var(--ink-2); }
.notfor li::before { content: "×"; position: absolute; left: 0; top: -1px; font-weight: 800; color: var(--bad); font-size: 1.1rem; }
.promise-inline { margin-top: 16px; display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; background: var(--marker-soft); border-radius: 14px; padding: 14px; }
.promise-inline p { font-size: 0.88rem; color: var(--ink-2); line-height: 1.45; }
.promise-inline strong { color: var(--ink); }
@media (min-width: 600px) {
  .stats-grid.three { grid-template-columns: repeat(3, 1fr); }
  .stats-grid.three .stat:last-child { grid-column: auto; }
}
@media (min-width: 900px) {
  .voices { grid-template-columns: 1fr 1fr; gap: 20px; }
  .voice { padding: 30px 28px; }
  .voice blockquote { font-size: 1.36rem; }
  .voices-foot { font-size: 1.14rem; margin-top: 28px; }
  .proof-side { padding-top: 60px; }
}

/* ==========================================================================
   Colour, texture and media
   ========================================================================== */
:root { --blue: #2238b8; --coral-soft: #ffe1d6; }
.dots { background-image: radial-gradient(rgba(21, 23, 26, 0.14) 1.2px, transparent 1.3px); background-size: 22px 22px; background-position: 0 0; }
.ruled { background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 35px, rgba(39, 71, 214, 0.065) 35px, rgba(39, 71, 214, 0.065) 36px); }
.soft { background: var(--marker-soft); }
.yellow { background: var(--marker); }
.yellow .stats-title { color: var(--ink); }
.yellow .stat { border: 1.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.yellow .stats-note { color: var(--ink-2); }

.marquee { background: var(--ink); color: var(--marker); overflow: hidden; white-space: nowrap; padding: 13px 0; font-family: var(--display); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }
.marquee .track { display: inline-flex; gap: 34px; padding-left: 34px; animation: marquee 46s linear infinite; }
.marquee span::after { content: "✳"; margin-left: 34px; color: #fff; font-size: 0.85em; }
@keyframes marquee { to { transform: translateX(-50%); } }

.polaroid { margin: 0; background: #fff; padding: 8px 8px 0; border-radius: 6px; box-shadow: 0 1px 2px rgba(21, 23, 26, 0.12), 0 16px 34px -14px rgba(21, 23, 26, 0.45); }
.polaroid img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 3px; background: #2a2c2e; }
.polaroid figcaption { font-family: var(--hand); font-size: 1.2rem; font-weight: 600; color: var(--ink); text-align: center; padding: 6px 4px 9px; line-height: 1; }
.polaroid-hero { position: absolute; right: 2px; top: -52px; width: 104px; transform: rotate(7deg); z-index: 2; }
.polaroid-hero figcaption { font-size: 0.95rem; padding: 4px 2px 6px; }
.try { margin-top: 34px; }
.collage { position: relative; height: 340px; max-width: 420px; margin: 0 auto; width: 100%; }
.collage .polaroid { position: absolute; width: 55%; }
.collage .tilt-l { left: 0; top: 0; transform: rotate(-5deg); }
.collage .tilt-r { right: 0; bottom: 0; transform: rotate(4deg); }

.works { background: var(--blue); color: #fff; border-radius: 28px; margin: 0 10px; }
.works h2 { color: #fff; }
.works .kicker { color: rgba(255, 255, 255, 0.85); }
.works .voice { border-color: var(--ink); color: var(--ink); }
.works .voices-foot { color: rgba(255, 255, 255, 0.9); }

.steps-row { margin-bottom: 26px; }
.shots-note { margin: 0 0 4px 6px; transform: rotate(-2deg); display: inline-block; }
.shots { align-items: flex-start; padding-top: 10px; }
.shots > * { flex: 0 0 62%; }
.shot { margin: 0; }
.device { background: var(--ink); border-radius: 30px; padding: 8px; box-shadow: var(--shadow-lg); }
.device img { width: 100%; border-radius: 23px; display: block; }
.shot figcaption { text-align: center; font-weight: 700; font-size: 0.92rem; margin-top: 12px; }

.feat:nth-child(4n + 2) .ico { background: var(--pen-soft); }
.feat:nth-child(4n + 3) .ico { background: var(--good-soft); }
.feat:nth-child(4n + 4) .ico { background: var(--coral-soft); }
.soft .feat { border: 1.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.soft details.more summary { border-color: var(--ink); }

.retake-photo { position: relative; overflow: hidden; border-radius: 28px; margin: 0 10px; background: #15171a; }
.retake-photo::before { content: ""; position: absolute; inset: 0; background: url("../assets/kitchen2.webp") center 30% / cover no-repeat; opacity: 0.8; }
.retake-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21, 23, 26, 0.45), rgba(21, 23, 26, 0.84)); }
.retake-photo .wrap { position: relative; z-index: 1; }

@media (min-width: 600px) {
  .shots > * { flex-basis: 36%; }
  .collage { height: 400px; }
}
@media (min-width: 900px) {
  .marquee { font-size: 1.4rem; padding: 16px 0; }
  .try { margin-top: 0; }
  .polaroid-hero { width: 150px; right: -40px; left: auto; top: -122px; bottom: auto; transform: rotate(8deg); }
  .polaroid-hero figcaption { font-size: 1.25rem; padding: 6px 4px 9px; }
  .collage { height: 500px; max-width: none; }
  .collage .polaroid { width: 56%; }
  .works, .retake-photo { margin: 0 24px; border-radius: 40px; }
  .steps-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-bottom: 44px; }
  .steps-row .step { border-bottom: 0; grid-template-columns: 48px 1fr; padding: 0; }
  .shots { overflow: visible; padding: 10px 0 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
  .shots + .swipe-hint { display: none; }
  .shot:nth-child(even) { margin-top: 34px; }
}
@media (prefers-reduced-motion: reduce) { .marquee .track { animation: none; } }

.hero { overflow-x: clip; }
@media (min-width: 900px) and (max-width: 1260px) { .polaroid-hero { right: -6px; width: 130px; top: -108px; } }
@media (min-width: 900px) { .retake-photo::after { background: linear-gradient(90deg, rgba(21, 23, 26, 0.9) 0%, rgba(21, 23, 26, 0.72) 48%, rgba(21, 23, 26, 0.3) 100%); } }

/* ============ Founding offer, waiting list, exam-date lines ============ */
.founding { margin: 18px 0 14px; padding: 12px 14px; border: 1.5px dashed var(--ink); border-radius: 14px; background: var(--marker-soft); font-size: 0.95rem; color: var(--ink); }
.founding p { margin: 0; }
.founding.is-full { background: var(--surface); border-style: solid; }
.founding-count { margin-top: 10px; }
.founding-count p { margin-top: 6px; font-size: 0.86rem; color: var(--ink-2); }
.meter { height: 8px; border-radius: 99px; background: rgba(21, 23, 26, 0.12); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: var(--ink); border-radius: 99px; transition: width 0.8s ease; }
.waitlist { display: grid; gap: 10px; margin-top: 12px; }
.waitlist .micro { text-align: left; color: var(--ink-2); font-weight: 600; }
.auth form.waitlist { margin-top: 20px; }
.plan-retake { margin-top: 12px; padding: 10px 12px; border-left: 3px solid var(--bad); background: var(--bad-soft); border-radius: 0 10px 10px 0; font-size: 0.9rem; color: #5c2012; }
.plan-retake strong { color: #5c2012; }
.examdate .input { max-width: 240px; }
.examdate-out { margin-top: 12px; font-size: 0.95rem; color: var(--ink-2); line-height: 1.5; }
.examdate-out strong { color: var(--ink); }

/* ============ Unlock card (paid mode, free starter accounts) ============ */
.panel.unlock { background: var(--marker-soft); border: 1.5px dashed var(--ink); }
.panel.unlock .label { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.panel.unlock h2 { margin-top: 4px; }
.panel.unlock p { margin-top: 6px; color: var(--ink-2); }
.panel.unlock .btn { margin-top: 14px; }

/* ============ Continue with Google, Sign in with Apple ============ */
.gsi { margin-top: 20px; }
.gsi-btn { display: flex; justify-content: center; min-height: 44px; }
/* Apple's button fills the box it is given. The box is as wide as Google's button (set in
   app.js) and as tall as Google's: 40px, at the top of the same 44px row. */
.gsi-btn:not([hidden]) + .apple-btn { margin-top: 6px; }
.apple-btn { align-items: flex-start; }
#appleid-signin { max-width: 100%; height: 40px; cursor: pointer; }
.gsi .or { display: flex; align-items: center; gap: 12px; margin-top: 16px; color: var(--muted); font-size: 0.86rem; }
.gsi .or::before, .gsi .or::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.auth .gsi + form { margin-top: 14px; }

/* ============ Free test: scoring pause, teaser result, lock boxes ============ */
.scoring { text-align: center; padding: 70px 0 40px; }
.scoring h2 { font-size: 1.6rem; min-height: 2.4em; }
.spinner { width: 54px; height: 54px; margin: 0 auto 22px; border-radius: 50%; border: 6px solid var(--line-2); border-top-color: var(--ink); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.marks { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 4px 0 2px; }
.marks li { display: grid; place-items: center; height: 46px; border-radius: 12px; font-family: var(--display); font-weight: 800; font-size: 1.05rem; border: 2px solid var(--ink); }
.marks .is-right { background: var(--good-soft); color: var(--good); border-color: var(--good); }
.marks .is-wrong { background: var(--bad); color: #fff; border-color: var(--bad); }
@media (min-width: 600px) { .marks { grid-template-columns: repeat(10, 1fr); } }
.lock-title { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 800; font-size: 1.05rem; color: var(--ink); margin: 0; }
.lock-title .lock { flex: none; }
.locked-box { margin-top: 14px; padding: 14px; border-radius: 14px; border: 1.5px dashed var(--ink); background: rgba(255, 255, 255, 0.6); }
.skeleton { display: grid; gap: 8px; margin: 12px 0 10px; }
.skeleton i { display: block; height: 12px; border-radius: 99px; background: linear-gradient(90deg, rgba(21, 23, 26, 0.18), rgba(21, 23, 26, 0.07)); filter: blur(1.5px); }
.lock-note { font-size: 0.88rem; color: var(--ink-2); margin: 0; }
.locked-why .why-stem { margin-top: 10px; color: var(--ink-2); font-size: 0.95rem; }
.locked-why .why-pick { margin-top: 8px; font-weight: 600; color: var(--ink); font-size: 0.95rem; }
.result-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(250, 249, 245, 0.95); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
.result-bar .btn { max-width: 688px; margin: 0 auto; display: flex; }
.leave { position: fixed; inset: 0; z-index: 60; background: rgba(21, 23, 26, 0.55); display: grid; place-items: center; padding: 20px; }
.leave-card { background: var(--surface); border: 2px solid var(--ink); border-radius: 22px; box-shadow: 6px 6px 0 var(--ink); padding: 24px 20px; max-width: 420px; width: 100%; display: grid; gap: 12px; }
.leave-card h2 { font-size: 1.5rem; }
.leave-card p { color: var(--ink-2); margin: 0; }
.result-bar[hidden], .leave[hidden], .scoring[hidden] { display: none; }

/* ============ After the free test: the reasons, and the lock screen ============ */
.panel.trapfix { background: var(--marker-soft); border: 2px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); }
.panel.trapfix .label { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.panel.trapfix h2 { margin-top: 4px; }
.panel.trapfix p { margin-top: 8px; color: var(--ink); }
.unlock-list { display: grid; gap: 9px; margin: 14px 0 4px; }
.unlock-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); font-size: 0.96rem; }
.panel .marks { margin-top: 12px; }
.sub.center { text-align: center; margin-top: 10px; }
