@font-face {
  font-family: Inter;
  src: url('/assets/inter.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: 'DM Serif Text';
  src: url('/assets/dm-serif-text.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #142c3b;
  --navy: #102d40;
  --text: #314754;
  --muted: #526776;
  --page: #f6f7f4;
  --white: #ffffff;
  --line: #cbd9de;
  --green: #16634f;
  --green-deep: #0e4d3b;
  --mint: #c9edd5;
  --low: #ad3546;
  --medium: #92501f;
  --high: #24744c;
  --serif: 'DM Serif Text', Georgia, serif;
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.6;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 1.5rem; }
body { margin: 0; color: var(--ink); background: var(--page); }
main { display: block; min-height: 68vh; }
p { margin: 0 0 1rem; }
p, li { overflow-wrap: break-word; }
h1, h2, h3 { margin: 0 0 .65em; line-height: 1.09; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.018em; }
h1 { font-size: clamp(2.25rem, 4.8vw, 4.45rem); }
h2 { font-size: clamp(1.85rem, 3.65vw, 3.05rem); }
h3 { font-size: 1.13rem; }
a { color: var(--green-deep); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .12em; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: progress; opacity: .7; }
:focus-visible { outline: 3px solid #b16924; outline-offset: 4px; }
img { display: block; max-width: 100%; }
.shell { width: min(1184px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: fixed; top: 0; left: 1rem; transform: translateY(-150%); background: white; z-index: 2; padding: .6rem 1rem; }
.skip:focus { transform: translateY(0); }
.site-header { background: var(--white); border-bottom: 1px solid #e1e8e9; }
.head-row { display: flex; align-items: center; justify-content: space-between; min-height: 92px; gap: 1rem; }
.brand { display: block; flex: 0 1 203px; }
.brand img { width: 203px; height: auto; border-radius: 4px; }
nav { display: flex; gap: clamp(1rem, 4vw, 2.5rem); text-align: right; }
nav a { color: var(--ink); font-size: .93rem; font-weight: 600; text-decoration: none; }
nav a:hover { text-decoration: underline; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  margin-top: 34px;
  min-height: 500px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
}
.hero-copy { align-self: center; padding: clamp(32px, 6vw, 78px); padding-right: clamp(24px, 4vw, 55px); }
.eyebrow { margin: 0 0 1.2rem; color: #c2e7d8; font-size: .86rem; font-weight: 650; letter-spacing: .055em; }
.hero h1 { max-width: 18ch; margin-bottom: 1.25rem; text-wrap: balance; }
.hero-intro { max-width: 34rem; color: #e5eef2; font-size: clamp(1rem, 1.55vw, 1.19rem); margin-bottom: 1.55rem; }
.hero-photo { width: 100%; height: 100%; object-fit: cover; object-position: 53% 69%; }
.hero-meta { margin: .8rem 0 0; font-size: .87rem; color: #d7e6ea; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: .65rem; min-height: 47px; border: 1px solid transparent; border-radius: 7px; padding: .68rem 1.08rem; background: var(--green); color: white; font-weight: 650; line-height: 1.35; text-align: center; text-decoration: none; }
.button:hover { background: var(--green-deep); }
.button-light { background: var(--mint); color: #123e31; }
.button-light:hover { background: #e1f6e7; }
.button-outline { border-color: var(--green); color: var(--green-deep); background: transparent; }
.button-outline:hover { background: #e9f1ec; }
.button-row { display: flex; flex-wrap: wrap; gap: .7rem; }
.text-button { padding: .6rem .2rem; background: transparent; border: 0; color: var(--green-deep); text-decoration: underline; text-underline-offset: 3px; }

.about { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(1rem, 6vw, 5rem); align-items: center; padding-block: clamp(48px, 7vw, 90px); }
.about h2 { max-width: 19ch; margin-bottom: .45em; }
.section-lead { font-size: 1.16rem; font-weight: 550; color: #284d5d; }
.about p { max-width: 38rem; }
.about .button { margin-top: .4rem; }
.benefits { margin: 0; padding: 1rem 1.45rem; border: 1px solid #cbdad9; border-radius: 12px; background: #eaf2ee; list-style: none; }
.benefits li { padding: .8rem 0; font-weight: 600; }
.benefits li + li { border-top: 1px solid #c5d9d1; }
.book { background: #173950; color: white; }
.book-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; gap: clamp(1.5rem, 6vw, 5.4rem); padding-block: 56px; }
.book h2 { margin-bottom: .24em; }
.book p { max-width: 31rem; }
.book .button { margin-top: .5rem; }
.project { border-left: 1px solid #6c929e; padding-left: clamp(1.4rem, 4vw, 3.7rem); }
.project a { color: #dcf5e6; font-weight: 600; }
.site-footer { border-top: 1px solid #dce3e2; background: #eff3f2; color: #405966; font-size: .88rem; }
.foot-row { display: flex; justify-content: space-between; gap: .75rem 1rem; padding-block: 24px; }

.form-shell, .results-shell { width: min(775px, calc(100% - 40px)); margin: 0 auto; padding: clamp(34px, 5vw, 64px) 0 64px; }
.form-heading { font-size: clamp(2rem, 4.2vw, 3.2rem); margin-bottom: .55em; }
.panel { border: 1px solid var(--line); border-radius: 13px; background: var(--white); padding: clamp(19px, 4.5vw, 36px); }
.progress-caption { display: flex; align-items: baseline; justify-content: space-between; gap: .65rem; color: var(--muted); font-size: .87rem; font-weight: 650; }
progress { display: block; width: 100%; height: 7px; appearance: none; border: 0; border-radius: 8px; margin: .65rem 0 1.7rem; color: var(--green); }
progress::-webkit-progress-bar { background: #e2ebec; border-radius: 8px; }
progress::-webkit-progress-value { background: var(--green); border-radius: 8px; }
progress::-moz-progress-bar { background: var(--green); border-radius: 8px; }
#step fieldset { margin: 0; border: 0; padding: 0; min-width: 0; }
.question-title { font-family: Inter, system-ui, sans-serif; font-size: clamp(1.27rem, 3.1vw, 1.9rem); margin: 0 0 1.05rem; padding: 0; font-weight: 680; line-height: 1.32; letter-spacing: -.015em; }
.options { display: grid; gap: .52rem; }
.option { display: flex; align-items: start; gap: .7rem; padding: .72rem .85rem; border: 1px solid var(--line); border-radius: 7px; cursor: pointer; }
.option:hover { border-color: #397e68; }
.option:has(input:checked) { border-color: var(--green); background: #eaf5ed; }
.option input { margin: .3rem 0 0; accent-color: var(--green); flex-shrink: 0; }
.field-help { color: var(--text); }
.field-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; margin: 1.3rem 0; }
.field { display: grid; gap: .35rem; font-size: .92rem; font-weight: 650; }
.field-wide { grid-column: 1/-1; }
.field input { width: 100%; min-height: 45px; padding: .5rem .65rem; color: var(--ink); background: #fff; border: 1px solid #78919b; border-radius: 6px; font-weight: 450; }
.contact-note, .small { font-size: .88rem; color: var(--muted); }
.form-actions { display: flex; gap: 1rem; align-items: center; margin-top: 1.1rem; flex-wrap: wrap; }
.form-error { color: #a22e41; font-weight: 600; margin: .8rem 0 0; }
.form-error:empty, #waitlist-status:empty { margin: 0; }
#challenge { min-width: 0; max-width: 100%; }

.results-shell h1 { font-size: clamp(2rem, 4.5vw, 3.6rem); margin-bottom: .35em; }
.delivery { color: var(--green-deep); font-size: .94rem; font-weight: 550; }
.score-panel { text-align: center; margin-top: 1.4rem; }
.score-label { font-family: Inter, system-ui, sans-serif; font-size: 1.07rem; font-weight: 650; letter-spacing: 0; margin: 0 0 .65rem; }
.dial { position: relative; width: min(240px, 100%); height: auto; aspect-ratio: 2 / 1; margin: .55rem auto 0; overflow: hidden; }
.dial-track, .dial-fill { position: absolute; inset: 0; border-radius: 999px 999px 0 0; }
.dial-track { background: #e6edef; }
.dial-fill { background: conic-gradient(from 270deg at 50% 100%, var(--low) 0deg 72deg, #e2edf0 72deg 74deg, #bc6c2d 74deg 144deg, #e2edf0 144deg 146deg, var(--high) 146deg 180deg, transparent 180deg); }
.dial-fill::after { position: absolute; content: ''; inset: 0; border-radius: inherit; background: conic-gradient(from 270deg at 50% 100%, transparent 0deg var(--angle, 0deg), #e6edef var(--angle, 0deg) 180deg, transparent 180deg); }
.dial::after { position: absolute; content: ''; left: 11%; right: 11%; bottom: 0; height: 78%; background: white; border-radius: 999px 999px 0 0; }
.score-value { margin-top: -.23em; position: relative; font-family: var(--serif); font-size: clamp(3rem, 6.5vw, 4.55rem); line-height: 1.1; }
.tier { display: inline-block; margin: .4rem 0 0; padding: .2rem .65rem; border-radius: 999px; font-size: .84rem; font-weight: 700; }
.tier-low { color: var(--low); background: #f9e7e9; }
.tier-medium { color: var(--medium); background: #f9ecdc; }
.tier-high { color: var(--high); background: #e6f3e8; }
.score-key { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.35rem; margin: 1.2rem 0 0; padding: 0; list-style: none; font-size: .86rem; }
.score-key li { display: flex; align-items: center; gap: .35rem; }
.score-key li::before { content: ''; width: .62rem; height: .62rem; border-radius: 50%; }
.key-low::before { background: var(--low); }
.key-medium::before { background: #bc6c2d; }
.key-high::before { background: var(--high); }
.score-key span { color: var(--muted); }
.feedback { padding-block: 2.4rem 1.25rem; }
.feedback h2 { margin-bottom: .35em; }
.feedback h3 { margin: 1.2rem 0 .55em; }
.feedback ol { padding-left: 1.5rem; }
.feedback li + li { margin-top: .32rem; }
.result-book h2, .waitlist h2 { font-size: clamp(1.55rem, 4vw, 2.2rem); margin-bottom: .42em; }
.result-book { background: #eaf2ee; }
.result-book .button-row { margin-bottom: 1rem; }
.result-book p:last-child, .waitlist .small { margin-bottom: 0; }
.waitlist { margin-top: 1rem; }
.waitlist .button, .waitlist .delivery { margin-bottom: .7rem; }
.result-meta { margin: 1.3rem 0 0; color: var(--muted); font-size: .84rem; }
.result-meta p { margin-bottom: .25rem; }

@media (max-width: 740px) {
  .shell { width: calc(100% - 36px); }
  .head-row { min-height: 75px; }
  .brand { flex-basis: 155px; }
  nav a { font-size: .82rem; }
  .hero { margin-top: 20px; min-height: 0; grid-template-columns: 1fr; }
  .hero-copy { padding: 32px 24px; }
  .hero-photo { height: 235px; object-position: 50% 70%; }
  .about, .book-grid { grid-template-columns: 1fr; }
  .project { border-left: 0; border-top: 1px solid #6c929e; padding: 1.2rem 0 0; }
}

@media (max-width: 420px) {
  .brand { flex-basis: 118px; }
  nav { gap: .8rem; }
  .field-grid { grid-template-columns: 1fr; }
  .foot-row { flex-wrap: wrap; }
  .hero-copy { padding-inline: 20px; }
}
