/* Future Life Report — design system.
   One accent, near-white ground, oversized type, generous rhythm.
   Mobile-first; transform/opacity animations only. */

:root {
  --bg: #fafaf9;
  --surface: #ffffff;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #e5e5e3;
  --accent: #0e7c66;
  --accent-ink: #0a5d4d;
  --accent-soft: #e7f2ee;
  --warn: #b26a00;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px; line-height: 1.55;
}
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; text-wrap: balance; margin: 0 0 .4em; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 4vw, 2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: .5em 0; }
a { color: var(--accent-ink); }
main { max-width: 720px; margin: 0 auto; padding: 24px 20px 80px; }
.landing main { max-width: 980px; padding-top: 0; }

/* Header / footer */
.site-header {
  position: sticky; top: 0; z-index: 50; height: 56px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; background: rgba(250,250,249,.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}
.wordmark { font-weight: 700; text-decoration: none; color: var(--ink); font-size: 15px; letter-spacing: -.01em; }
.login-link { font-size: 14px; color: var(--muted); text-decoration: none; opacity: .8; }
.site-footer { max-width: 980px; margin: 0 auto; padding: 32px 20px 56px; border-top: 1px solid var(--line); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.footer-safety { font-size: 12px; color: var(--muted); margin-top: 14px; }

/* Buttons */
.btn {
  display: inline-block; border: 0; cursor: pointer; text-decoration: none; text-align: center;
  font: inherit; font-weight: 600; border-radius: 999px; padding: 14px 28px;
  background: var(--accent); color: #fff; font-size: 17px;
  transition: transform .12s ease, background .15s ease;
}
.btn:active { transform: scale(.97); }
.btn.big { width: 100%; padding: 17px 28px; font-size: 18px; }
.btn.ghost { background: transparent; color: var(--accent-ink); border: 1.5px solid var(--line); }
.btn.quiet { background: var(--accent-soft); color: var(--accent-ink); }
.micro { font-size: 13px; color: var(--muted); }

/* ---------- Landing ---------- */
.hero { min-height: 78svh; display: flex; flex-direction: column; justify-content: center; text-align: center; padding: 48px 8px 32px; }
.hero p.sub { font-size: clamp(1.05rem, 2.6vw, 1.3rem); color: var(--muted); max-width: 34em; margin: 0 auto 1.6em; }
.hero .btn { margin: 0 auto; min-width: 280px; }
.hero .micro { margin-top: 14px; }
.section { padding: 56px 0; border-top: 1px solid var(--line); }
.section > h2 { text-align: center; margin-bottom: 1.2em; }
.steps { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step-card, .panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.panel { margin-bottom: 20px; }
.panel h3 { color: var(--accent-ink); }
.badges { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 20px; }
.badges span { font-size: 13px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; }
.arch-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.arch-tile {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; text-decoration: none; color: var(--ink); transition: transform .15s ease;
}
.arch-tile:active { transform: scale(.98); }
.arch-tile b { display: block; font-size: 14px; }
.arch-tile span { font-size: 12px; color: var(--muted); }
details.faq { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin: 10px 0; }
details.faq summary { font-weight: 600; cursor: pointer; }
details.faq p { color: var(--muted); font-size: 15px; }
.final-cta { text-align: center; padding: 72px 0; }

/* ---------- Quiz ---------- */
.quiz main { max-width: 560px; }
.progress { margin: 4px 0 26px; }
.progress .meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.progress .bar { height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
.progress .fill { height: 100%; background: var(--accent); border-radius: 2px; transition: width .3s ease; }
.q-prompt { font-size: clamp(1.3rem, 5vw, 1.7rem); font-weight: 700; letter-spacing: -.015em; margin-bottom: 6px; }
.q-help { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.opts { display: grid; gap: 10px; margin-top: 22px; }
.opt-btn {
  display: block; width: 100%; text-align: left; font: inherit; font-size: 16.5px; cursor: pointer;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; color: var(--ink);
  transition: transform .1s ease, border-color .12s ease, background .12s ease;
}
.opt-btn:active { transform: scale(.985); border-color: var(--accent); background: var(--accent-soft); }
.opt-btn.selected { border-color: var(--accent); background: var(--accent-soft); }
.opt-check { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 14px 16px; cursor: pointer; }
.opt-check input { margin-top: 4px; accent-color: var(--accent); }
.slider-wrap { margin: 30px 0 8px; }
.slider-wrap input[type=range] { width: 100%; accent-color: var(--accent); }
.slider-labels { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.slider-val { text-align: center; font-size: 2.2rem; font-weight: 700; color: var(--accent-ink); margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.quiz-nav { margin-top: 26px; display: flex; justify-content: space-between; align-items: center; }
.back-link { font-size: 14px; color: var(--muted); text-decoration: none; }
.break-page { text-align: center; padding: 12vh 0; }
.break-page h1 { font-size: clamp(1.6rem, 5vw, 2.4rem); }
.break-page p { color: var(--muted); max-width: 30em; margin: 0 auto 2em; }

/* ---------- Report ---------- */
.report main { max-width: 760px; }
.arch-card {
  text-align: center; background: linear-gradient(180deg, var(--accent-soft), var(--surface));
  border: 1px solid var(--line); border-radius: 20px; padding: 40px 24px 32px; margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.arch-card .eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); font-weight: 700; }
.arch-card h1 { font-size: clamp(1.9rem, 6vw, 2.8rem); margin: .2em 0 .1em; }
.arch-card .suffix { color: var(--muted); font-weight: 600; }
.arch-card .hook { color: var(--muted); font-size: 1.05rem; max-width: 30em; margin: .6em auto 0; }
.gpa-row { display: flex; gap: 16px; align-items: center; justify-content: center; margin: 26px 0; }
.gpa-num { font-size: 3.4rem; font-weight: 800; letter-spacing: -.03em; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.gpa-label { text-align: left; font-size: 13px; color: var(--muted); max-width: 12em; }
.grade-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 10px; margin-bottom: 30px; }
.grade-tile { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 10px; text-align: center; }
.grade-tile .g { font-size: 1.5rem; font-weight: 800; color: var(--accent-ink); }
.grade-tile .g.band { font-size: .95rem; font-weight: 700; }
.grade-tile .d { font-size: 11.5px; color: var(--muted); }
.domain-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin: 14px 0; box-shadow: var(--shadow); }
.domain-card header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.domain-card .grade { font-size: 1.6rem; font-weight: 800; color: var(--accent-ink); white-space: nowrap; }
.domain-card .grade.band { font-size: 1rem; }
.subbars { margin: 14px 0 4px; }
.subbar { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; font-size: 13.5px; color: var(--muted); margin: 7px 0 2px; }
.subbar .track { grid-column: 1 / -1; height: 5px; background: var(--line); border-radius: 3px; overflow: hidden; }
.subbar .fillb { height: 100%; background: var(--accent); border-radius: 3px; }
.tag-list { margin: 10px 0; padding-left: 1.2em; font-size: 15px; }
.tag-list li { margin: 5px 0; }
.locked-cut { color: var(--muted); font-style: italic; }
.lock-pill { display: inline-block; font-size: 12px; font-weight: 700; color: var(--warn); background: #f7eedd; border-radius: 999px; padding: 2px 10px; margin-left: 8px; }
.reading-block { background: var(--accent-soft); border-radius: 12px; padding: 16px 18px; margin-top: 14px; font-size: 15.5px; }
.reading-block .byline { font-size: 12px; color: var(--accent-ink); margin-top: 10px; font-weight: 600; }
.combo-card { background: var(--surface); border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0; border-top: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 18px; margin: 10px 0; }
.paywall-card { background: var(--ink); color: #fff; border-radius: 20px; padding: 30px 26px; margin: 30px 0; }
.paywall-card h2 { color: #fff; }
.paywall-card ul { padding-left: 1.2em; font-size: 15px; opacity: .92; }
.paywall-card .price { font-size: 1.3rem; font-weight: 700; margin: 14px 0 4px; }
.paywall-card .micro { color: rgba(255,255,255,.65); }
.paywall-card .btn { background: #fff; color: var(--ink); margin-top: 14px; }
.section-h { margin-top: 44px; }
.chat-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-top: 14px; }
.chat-head { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; }
.chat-log { max-height: 420px; overflow-y: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 85%; padding: 10px 14px; border-radius: 14px; font-size: 15px; white-space: pre-wrap; }
.msg.user { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.msg.assistant { align-self: flex-start; background: var(--bg); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; font: inherit; font-size: 15px; border: 1.5px solid var(--line); border-radius: 999px; padding: 10px 16px; }
.chat-form button { border: 0; background: var(--accent); color: #fff; border-radius: 999px; padding: 10px 20px; font-weight: 600; cursor: pointer; }
.starter-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 18px 4px; }
.starter-chips button { font-size: 13px; background: var(--accent-soft); color: var(--accent-ink); border: 0; border-radius: 999px; padding: 7px 14px; cursor: pointer; }
.crisis-banner { background: #fdf1ef; border: 1px solid #eccfc8; color: #8a3324; border-radius: 12px; padding: 12px 16px; font-size: 14px; margin: 10px 18px; }
.interstitial { background: #fdf6ec; border: 1px solid #eadfc8; border-radius: var(--radius); padding: 20px 22px; margin-bottom: 22px; }
.plan-list { counter-reset: plan; list-style: none; padding: 0; }
.plan-list li { counter-increment: plan; display: flex; gap: 14px; margin: 12px 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.plan-list li::before { content: counter(plan); font-weight: 800; color: var(--accent-ink); font-size: 1.2rem; }
.pack-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.pack-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.pack-card h3 { margin-bottom: 4px; }
.pack-card p { font-size: 13.5px; color: var(--muted); }
.friend-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.copy-row { display: flex; gap: 8px; margin-top: 10px; }
.copy-row input { flex: 1; font-size: 13px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; color: var(--muted); }
.gap-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: 14.5px; margin: 10px 0; }
.gap-kind { font-size: 12px; font-weight: 700; }
.gap-kind.hidden_strength { color: var(--accent-ink); }
.gap-kind.blind_spot { color: var(--warn); }
.inventory { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 16px 0; }
.inventory b { font-size: 1.2rem; }
.inventory ul { color: var(--muted); font-size: 14.5px; }
.dev-note { background: #fff8e6; border: 1px solid #f0e0b0; border-radius: 10px; padding: 12px 14px; font-size: 13px; color: #7a5b00; margin: 14px 0; }

/* Forms */
.field { margin: 16px 0; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field input[type=email], .field input[type=text] {
  width: 100%; font: inherit; font-size: 17px; padding: 14px 16px;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface);
}
.field input:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.error-note { color: #b3382c; font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
