/* bon mec. site styles.
   Layout: one calm column on a warm ground; the routine is drawn as a line of
   four colored stations (the brand device), reused on every page. */
:root {
  --bg: #FAF2E5;
  --bg-alt: #F3E9D8;
  --surface: #FFFDF8;
  --fg: #19274A;
  --muted: #4B5675;
  --rule: #E2D6C2;
  --accent: #2454D6;
  --on-accent: #FFFDF8;
  --focus: #2454D6;
  --card-bg: #2454D6;
  --card-fg: #FFFDF8;
  --callout-bg: #FBE1D9;
  --callout-fg: #19274A;
  --error: #B4321C;
  --success: #1F6B3A;
  --step-1: #2454D6;
  --step-2: #EF674E;
  --step-3: #F2CE58;
  --step-4: #A8C5A0;
  --on-step-1: #FFFDF8;
  --on-step: #19274A;
  --dot: #EF674E;
  --display: 'Manrope', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --body: 'DM Sans', 'Helvetica Neue', 'Segoe UI', system-ui, sans-serif;
  --max: 1080px;
  --text: 68ch;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111833; --bg-alt: #0D1329; --surface: #1A2346; --fg: #F3ECE0; --muted: #B5BCD2; --rule: #2F3A63;
    --accent: #6E92F5; --on-accent: #0F1530; --focus: #9DB4FF;
    --callout-bg: #3B2532; --callout-fg: #F3ECE0;
    --error: #FF9C88; --success: #8FD3A6; --dot: #F07A63;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.6 var(--body);
}
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; margin: 0; line-height: 1.1; }
p, ul, ol, figure { margin: 0; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
b, strong { font-weight: 700; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.focus-target:focus { outline: none; }
.focus-target:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 6px; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); color: var(--fg); padding: 10px 16px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header and footer */
.site-header { padding-top: max(16px, env(safe-area-inset-top, 0px)); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.wordmark { font-family: var(--display); font-weight: 800; font-size: 28px; letter-spacing: -0.05em; color: var(--fg); text-decoration: none; }
.wordmark .dot { color: var(--dot); }
.site-nav { display: flex; align-items: center; gap: 20px; }
.site-nav a:not(.btn) { color: var(--fg); font-weight: 700; text-decoration: none; }
.page-title { font-size: clamp(36px, 6vw, 60px); letter-spacing: -0.04em; line-height: 1.02; }
.card-title { font-size: 22px; }
.site-nav a:not(.btn):hover { color: var(--accent); }
.site-footer { margin-top: 96px; border-top: 1px solid var(--rule); padding-block: 40px max(40px, env(safe-area-inset-bottom, 0px)); background: var(--bg-alt); }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 32px; }
.footer-inner ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-inner a { color: var(--fg); text-decoration: none; }
.footer-inner a:hover { color: var(--accent); }
.footer-note { font-size: 14px; color: var(--muted); max-width: 40ch; margin-top: 10px; }
.footer-legal { font-size: 13px; color: var(--muted); margin-top: 32px; }

/* Shared text */
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.eyebrow.accent { color: var(--accent); }
.label { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }
.fine { font-size: 14px; color: var(--muted); }
.lede { font-size: clamp(18px, 2.2vw, 21px); max-width: 38ch; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 16px/1 var(--body); min-height: 48px; padding: 14px 26px; border-radius: 999px;
  border: 2px solid var(--fg); background: transparent; color: var(--fg); cursor: pointer; text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, filter 0.15s;
}
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { min-height: 40px; padding: 10px 18px; font-size: 15px; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; filter: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Station line (brand device) */
.line { display: flex; align-items: center; }
.line-seg { flex: 1; height: 4px; background: var(--fg); min-width: 12px; }
.stop { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font: 800 24px/1 var(--display); flex: none; }
.s1 { background: var(--step-1); color: var(--on-step-1); }
.s2 { background: var(--step-2); color: var(--on-step); }
.s3 { background: var(--step-3); color: var(--on-step); }
.s4 { background: var(--step-4); color: var(--on-step); }

/* Sections */
.section { padding-block: 72px 0; display: flex; flex-direction: column; gap: 32px; }
.section-head { display: flex; flex-direction: column; gap: 10px; max-width: 52ch; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 44px); letter-spacing: -0.035em; }

/* Home: hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-block: 40px 8px; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.hero h1 { font-size: clamp(48px, 8vw, 92px); letter-spacing: -0.05em; line-height: 0.95; }
.hero-card { background: var(--surface); border: 1px solid var(--rule); border-radius: 28px; padding: 28px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.hero-card .eyebrow { color: var(--muted); }
.hero-card-label { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -0.02em; line-height: 1.2; }
.hero-card .line .stop { width: 40px; height: 40px; font-size: 17px; }
.hero-card .line-seg { height: 3px; }
.hero-card ul { padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }

/* Home: how it works */
.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.how-item { border-top: 3px solid var(--fg); padding-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.how-item h3 { font-size: 22px; }

/* Home: four steps */
.steps-line { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.step-tile { background: var(--surface); border: 1px solid var(--rule); border-radius: 22px; padding: 24px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.step-tile .stop { width: 52px; height: 52px; }
.step-tile h3 { font-size: 24px; }
.step-tile .when { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; color: var(--muted); }

/* Home: promise */
.promise { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.promise-item { background: var(--card-bg); color: var(--card-fg); border-radius: 22px; padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.promise-item h3 { font-size: 22px; }

/* Guide cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: 22px; padding: 26px; display: flex; flex-direction: column; gap: 12px; color: var(--fg); text-decoration: none; transition: border-color 0.15s, transform 0.15s; min-width: 0; }
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card h3 { font-size: 22px; }
.card .more { margin-top: auto; color: var(--accent); font-weight: 700; }

/* Waitlist */
.waitlist-band { background: var(--surface); border: 2px solid var(--fg); border-radius: 28px; padding: clamp(24px, 5vw, 48px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.waitlist-band h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.035em; }
.waitlist-copy { display: flex; flex-direction: column; gap: 14px; }
form.waitlist { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 700; }
.field input {
  font: 400 17px/1.4 var(--body); min-height: 52px; padding: 12px 16px; border-radius: 14px;
  border: 2px solid var(--fg); background: var(--surface); color: var(--fg); width: 100%;
}
.field input[aria-invalid="true"], .check input[aria-invalid="true"] { border-color: var(--error); outline-color: var(--error); }
.check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 15px; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); }
.error-text { font-size: 14px; color: var(--error); min-height: 0; }
.error-text:empty { display: none; }
.form-status { font-size: 15px; font-weight: 700; min-height: 1.2em; }
.form-status[data-tone="error"] { color: var(--error); }
.form-status[data-tone="success"] { color: var(--success); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
form.waitlist.is-done .field, form.waitlist.is-done .check, form.waitlist.is-done button { opacity: 0.5; }

/* FAQ */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--rule); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--rule); padding-block: 18px; }
.faq summary { cursor: pointer; font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -0.01em; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; line-height: 1; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; max-width: var(--text); color: var(--muted); }

/* Articles (guides, legal) */
.article { max-width: 760px; margin: 0 auto; padding-top: 32px; display: flex; flex-direction: column; gap: 22px; }
.article h1 { font-size: clamp(36px, 6vw, 60px); letter-spacing: -0.04em; line-height: 1.02; }
.article .dek { font-size: 20px; color: var(--muted); max-width: 46ch; }
.article .meta { font-size: 14px; color: var(--muted); }
.prose { display: flex; flex-direction: column; gap: 18px; max-width: var(--text); }
.prose h2 { font-size: 28px; letter-spacing: -0.025em; margin-top: 18px; }
.prose h3 { font-size: 21px; margin-top: 8px; }
.prose ul, .prose ol { padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.prose .callout { margin-top: 8px; }
.cta-box { background: var(--card-bg); color: var(--card-fg); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; margin-top: 16px; }
.cta-box h2 { font-size: 28px; color: var(--card-fg); }
.cta-box .btn { background: var(--card-fg); color: #19274A; border-color: var(--card-fg); }
.back-link { font-weight: 700; text-decoration: none; }

/* Simple centered pages (thanks, 404) */
.simple { max-width: 640px; margin: 0 auto; padding-top: 64px; display: flex; flex-direction: column; gap: 20px; }
.simple h1 { font-size: clamp(40px, 7vw, 64px); letter-spacing: -0.045em; }

/* ---------- Quiz ---------- */
.quiz-wrap { max-width: 920px; padding-top: 16px; }
.view { display: flex; flex-direction: column; gap: 28px; animation: rise 0.28s ease-out; }
@keyframes rise { from { transform: translateY(6px); opacity: 0.4; } to { transform: none; opacity: 1; } }
.status { font-size: 15px; font-weight: 700; color: var(--accent); min-height: 1em; }

.q-meta { display: flex; flex-direction: column; gap: 12px; }
.count { font-size: 14px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.progress { display: flex; align-items: center; max-width: 520px; }
.seg { flex: 1; height: 3px; background: var(--rule); }
.seg.done { background: var(--accent); }
.stn { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--rule); background: var(--bg); flex: none; }
.stn.done { background: var(--accent); border-color: var(--accent); }
.stn.current { width: 20px; height: 20px; border: 5px solid var(--accent); }
.q-body { display: flex; flex-direction: column; gap: 14px; max-width: 680px; }
.q-body h1 { font-size: clamp(28px, 4.6vw, 40px); letter-spacing: -0.03em; }
.help { color: var(--muted); }
.options { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.option {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; min-height: 60px;
  padding: 15px 20px; border: 2px solid var(--fg); border-radius: 14px; background: var(--surface);
  color: var(--fg); font: 500 17px/1.35 var(--body); text-align: left; cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.option:hover { border-color: var(--accent); }
.option[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.option-label { font-weight: 700; }
.option-detail { font-size: 15px; color: var(--muted); }
.option[aria-pressed="true"] .option-detail { color: inherit; }
.hint { font-size: 15px; color: var(--muted); }
.q-nav { display: flex; justify-content: space-between; gap: 12px; max-width: 680px; }

.profile-card { background: var(--card-bg); color: var(--card-fg); border-radius: 28px; padding: clamp(24px, 5vw, 44px); display: flex; flex-direction: column; gap: 14px; }
.profile-card h1 { font-size: clamp(30px, 5.4vw, 52px); letter-spacing: -0.035em; }
.profile-card .fine { color: var(--card-fg); opacity: 0.85; }
.profile-summary { font-size: 19px; max-width: 52ch; }
.callout { background: var(--callout-bg); color: var(--callout-fg); border-radius: 18px; padding: 22px 26px; display: flex; flex-direction: column; gap: 10px; }
.callout-title { font-size: 20px; }
.callout ul { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.result .section-head h2, .panel h2 { font-size: 26px; }

.steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.step { background: var(--surface); border: 1px solid var(--rule); border-radius: 22px; padding: 24px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.step.skipped { background: transparent; border: 2px dashed var(--rule); }
.step-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.step-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.step-title h3 { font-size: 24px; }
.num { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font: 800 22px/1 var(--display); flex: none; }
.num.sm { width: 40px; height: 40px; font-size: 18px; }
.num.hollow { background: var(--bg); border: 2px solid var(--rule); }
.chips { display: flex; gap: 6px; }
.chip { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; padding: 5px 10px; border-radius: 999px; border: 1.5px solid var(--fg); white-space: nowrap; }
.chip.off { border-color: var(--rule); color: var(--muted); }
.why { color: var(--muted); }
.block { display: flex; flex-direction: column; gap: 4px; }
.block ul { padding-left: 18px; display: flex; flex-direction: column; gap: 3px; }
.note { font-size: 15px; padding: 12px 14px; border-radius: 12px; background: var(--bg); }
.note.strong { font-weight: 700; }
.panel { background: var(--surface); border: 1px solid var(--rule); border-radius: 22px; padding: 24px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.plain-list { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.sched-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: start; }
.sched-title { font-weight: 700; padding-top: 9px; }
.sched-line { display: flex; align-items: flex-start; }
.sched-seg { flex: 1; height: 3px; background: var(--fg); margin-top: 19px; min-width: 8px; }
.sched-stn { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 64px; flex: none; }
.sched-cap { font-size: 13px; font-weight: 700; }
.sched-stn.off .sched-cap { color: var(--muted); font-weight: 500; }
.copy-area { width: 100%; font: 400 14px/1.5 ui-monospace, 'SF Mono', Menlo, monospace; padding: 14px; border-radius: 12px; border: 2px solid var(--rule); background: var(--surface); color: var(--fg); resize: vertical; }
.kit { border: 2px solid var(--fg); border-radius: 22px; padding: clamp(20px, 4vw, 32px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.kit h2 { font-size: 26px; }
.kit-copy { display: flex; flex-direction: column; gap: 12px; }

/* Responsive */
@media (max-width: 900px) {
  .steps-line { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards, .promise, .how { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .hero, .waitlist-band, .kit { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .steps, .two-col { grid-template-columns: minmax(0, 1fr); }
  .section { padding-block: 56px 0; }
}
@media (max-width: 480px) {
  .steps-line { grid-template-columns: minmax(0, 1fr); }
  .site-nav { gap: 12px; }
  .site-nav .nav-guides { display: none; }
  .sched-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .sched-title { padding-top: 0; }
  .sched-stn { width: 56px; }
  .stop { width: 46px; height: 46px; font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .view { animation: none; }
  .btn, .option, .card { transition: none; }
  .card:hover { transform: none; }
}
