:root {
  color-scheme: light;
  --orange: #ec582e;
  --mint: #89bdb2;
  --linen: #dbd7c5;
  --blonde: #a57434;
  --charcoal: #0f1212;
  --ink: var(--charcoal);
  --muted: #555b58;
  --paper: #f4f1e8;
  --card: #ffffff;
  --line: #cdc8b8;
  --mint-soft: #dbeae6;
  --orange-soft: #f8d9cf;
  --shadow: 0 24px 70px rgba(15, 18, 18, 0.1);
  font-family: "Poppins", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 5%, rgba(236, 88, 46, 0.16), transparent 32rem),
    linear-gradient(145deg, var(--linen) 0%, var(--paper) 44%, #e7efeb 100%);
}

button { font: inherit; }
button:disabled { cursor: not-allowed; opacity: 0.45; }
input { font: inherit; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10;
  padding: 10px 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--charcoal);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 64px;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 52px;
  color: var(--charcoal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand-mark { font-size: 1rem; font-weight: 900; letter-spacing: -0.03em; }
.brand-mark::after { content: "."; color: var(--orange); }
.eyebrow { color: var(--orange); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }

h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-weight: 800; letter-spacing: -0.055em; }
h1 { max-width: 820px; margin-bottom: 24px; font-size: clamp(3rem, 8vw, 6.8rem); line-height: 0.92; }
h2 { font-size: clamp(2.2rem, 5vw, 4.5rem); line-height: 0.98; }

.lede { max-width: 660px; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.3rem); line-height: 1.65; }

.hero-grid, .results-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr); gap: 28px; align-items: end; }
.hero-card, .question-card, .score-card, .pattern-card {
  border: 1px solid rgba(15, 18, 18, 0.1);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.hero-card { padding: 28px; border-top: 8px solid var(--mint); }
.hero-card strong { display: block; margin-bottom: 8px; font-size: 1.35rem; font-weight: 700; letter-spacing: -0.025em; }
.hero-card p { color: var(--muted); line-height: 1.6; }

.capture-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr); gap: clamp(32px, 7vw, 84px); align-items: center; }
.capture-copy h1 { max-width: 700px; font-size: clamp(2.8rem, 7vw, 5.8rem); }
.capture-benefits { display: grid; gap: 12px; margin: 30px 0 0; padding: 0; list-style: none; }
.capture-benefits li { position: relative; padding-left: 30px; color: var(--muted); line-height: 1.55; }
.capture-benefits li::before { content: "✓"; position: absolute; left: 0; color: var(--orange); font-weight: 900; }
.capture-card { padding: clamp(26px, 4vw, 38px); border: 1px solid rgba(15, 18, 18, 0.1); border-top: 8px solid var(--mint); border-radius: 28px; background: rgba(255,255,255,0.9); box-shadow: var(--shadow); }
.form-field { display: grid; gap: 8px; }
.form-field + .form-field { margin-top: 20px; }
.form-field label { font-size: 0.82rem; font-weight: 800; }
.form-field input { width: 100%; min-height: 52px; padding: 0 15px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: #fff; }
.form-field input:focus { border-color: var(--mint); outline: 3px solid rgba(137, 189, 178, 0.35); }
.consent-row { display: grid; grid-template-columns: auto 1fr; gap: 11px; align-items: start; margin: 22px 0; color: var(--muted); font-size: 0.74rem; line-height: 1.5; }
.consent-row input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--orange); }
.capture-card .primary { width: 100%; }
.capture-card .text-button { display: block; margin: 14px auto 0; }
.form-error { margin: -8px 0 16px; color: #9f2f17; font-size: 0.8rem; font-weight: 650; line-height: 1.45; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.primary, .secondary {
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 750;
}
.primary { color: #fff; background: var(--orange); }
.primary:hover { background: #ce4320; }
.primary:focus-visible, .secondary:focus-visible, .choice:focus-visible { outline: 3px solid rgba(137, 189, 178, 0.7); outline-offset: 3px; }
.secondary { color: var(--charcoal); border-color: var(--line); background: transparent; }

.progress-wrap { margin-bottom: 28px; }
.progress-meta { display: flex; justify-content: space-between; margin-bottom: 10px; color: var(--muted); font-size: 0.88rem; font-weight: 700; }
.progress-track { height: 6px; overflow: hidden; border-radius: 999px; background: #d1cec2; }
.progress-fill { height: 100%; border-radius: inherit; background: var(--orange); transition: width 220ms ease; }

.question-card { max-width: 820px; margin: 0 auto; padding: clamp(28px, 5vw, 56px); }
.question-card h2 { margin: 16px 0 34px; font-size: clamp(2rem, 4vw, 3.35rem); }
.choices { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.choice { min-height: 86px; padding: 12px 8px; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); background: #fff; cursor: pointer; }
.choice:hover, .choice[aria-pressed="true"] { border-color: var(--mint); background: var(--mint-soft); }
.choice[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--mint); }
.choice-number { display: block; margin-bottom: 6px; font-size: 1.25rem; font-weight: 800; }
.choice-label { display: block; color: var(--muted); font-size: 0.74rem; }
.question-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }

.results-header { margin-bottom: 44px; }
.results-header h1 { max-width: 940px; font-size: clamp(3rem, 7vw, 6rem); }
.results-grid { align-items: stretch; }
.pattern-card { padding: clamp(28px, 5vw, 52px); background: var(--charcoal); color: #fff; }
.pattern-card .eyebrow { color: var(--mint); }
.pattern-card > p:not(.eyebrow) { margin-top: 28px; color: #e5e2d6; font-size: 1.2rem; line-height: 1.7; }
.quotes { margin: 34px 0 0; padding: 0; list-style: none; }
.quotes li { padding: 16px 0; border-top: 1px solid rgba(255,255,255,0.16); font-size: 1.08rem; font-style: italic; }

.score-card { padding: 28px; }
.score-card h3 { margin-bottom: 24px; font-size: 1.55rem; font-weight: 700; letter-spacing: -0.03em; }
.score-row + .score-row { margin-top: 22px; }
.score-top { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 8px; font-size: 0.9rem; font-weight: 800; }
.score-top span:last-child { color: var(--orange); }
.score-bar { height: 10px; overflow: hidden; border-radius: 999px; background: #e5ebe8; }
.score-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blonde), var(--orange)); }
.score-note { margin: 8px 0 0; color: var(--muted); font-size: 0.78rem; line-height: 1.45; }
.results-actions { display: grid; gap: 12px; margin-top: 28px; text-align: center; }
.results-actions .primary { width: 100%; }
.text-button {
  justify-self: center;
  padding: 2px 6px;
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.text-button:hover { color: var(--charcoal); }
.text-button:focus-visible { outline: 3px solid rgba(137, 189, 178, 0.7); outline-offset: 3px; }

.plan-section { margin-top: 88px; }
.plan-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 0.75fr); gap: 44px; align-items: end; margin-bottom: 30px; }
.plan-heading h2 { max-width: 650px; margin-bottom: 0; }
.plan-heading .lede { margin-bottom: 0; font-size: 1rem; }
.weeks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.week-card { padding: 30px; border: 1px solid rgba(15, 18, 18, 0.1); border-top: 8px solid var(--orange); border-radius: 24px; background: rgba(255,255,255,0.82); }
.week-number { margin-bottom: 14px; color: var(--orange); font-size: 0.76rem; font-weight: 850; letter-spacing: 0.14em; text-transform: uppercase; }
.week-card h3 { margin-bottom: 12px; font-size: 1.65rem; font-weight: 700; letter-spacing: -0.03em; }
.week-card > p, .week-card li { color: var(--muted); line-height: 1.6; }
.week-card ul { margin: 20px 0; padding-left: 20px; }
.week-card li + li { margin-top: 8px; }
.daily-prompt { display: grid; gap: 6px; padding: 18px; border-radius: 15px; background: var(--mint-soft); }
.daily-prompt span { color: #426f66; font-size: 0.7rem; font-weight: 850; letter-spacing: 0.12em; text-transform: uppercase; }
.daily-prompt strong { font-size: 1.02rem; font-weight: 600; line-height: 1.45; }
.print-button { display: block; margin: 28px auto 0; background: rgba(255,255,255,0.75); }

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 72px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
footer span:first-child { color: var(--charcoal); font-weight: 850; }

@media (max-width: 760px) {
  .shell { width: min(100% - 24px, 680px); padding-top: 22px; }
  .brand { margin-bottom: 36px; }
  .brand > span:last-child { display: none; }
  .hero-grid, .results-grid, .capture-wrap { grid-template-columns: 1fr; }
  .plan-heading, .weeks { grid-template-columns: 1fr; }
  .choices { grid-template-columns: 1fr; }
  .choice { min-height: 56px; display: flex; align-items: center; gap: 12px; text-align: left; }
  .choice-number { margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

@media print {
  @page { margin: 0.6in; }
  body { background: #fff; }
  .shell { width: 100%; padding: 0; }
  .brand { margin-bottom: 24px; }
  .results-header h1 { font-size: 3.5rem; }
  .results-grid { grid-template-columns: 1.4fr 0.8fr; }
  .pattern-card, .score-card, .week-card { break-inside: avoid; box-shadow: none; }
  .pattern-card { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .plan-section { margin-top: 44px; }
  .weeks { grid-template-columns: repeat(2, 1fr); }
  .results-actions, .print-button, footer { display: none; }
}
