/* Pre-Flight Surface — the public site. Tokens from brand/brand.css (Pre-Flight Brand Guidelines v1.0).
   Layout: a printed-manual rhythm — paper pages alternate with deep teal "flight deck" bands; section tabs in a
   left margin column like a manual's tab; the numbered checklist is the one recurring device. Single light theme by
   design (the guide commits to light paper). */
:root {
  --teal: #0F3D44; --teal-2: #164B53; --orange: #FF5A1F; --horizon: #2A9D9F; --sky: #DDF1F1;
  --grey: #5F7478; --paper: #F2F7F7; --white: #FFFFFF; --rule: #D3E1E1; --on-teal-muted: #A9C6C6;
  --font: "Archivo", Arial, system-ui, sans-serif;
  --wide: "wdth" 125;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { background: var(--paper); scroll-padding-top: 88px; }
body { margin: 0; background: var(--paper); color: var(--teal); font-family: var(--font); font-size: 17px; line-height: 1.6; }
img, svg { max-width: 100%; }
a { color: var(--teal); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-family: var(--font); font-variation-settings: var(--wide); line-height: 1.08; margin: 0; text-wrap: balance; }
h1 { font-weight: 800; font-size: clamp(34px, 6vw, 64px); text-transform: uppercase; }
h2 { font-weight: 800; font-size: clamp(26px, 3.6vw, 40px); text-transform: uppercase; }
h3 { font-weight: 700; font-size: 20px; line-height: 1.25; }
p { margin: 0; max-width: 64ch; }
.label { font-variation-settings: var(--wide); font-weight: 700; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--grey); }
.lede { font-size: clamp(18px, 2vw, 21px); line-height: 1.5; max-width: 58ch; }
.muted { color: var(--grey); }
.stack { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

/* header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--white); border-bottom: 1px solid var(--rule); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 21; background: var(--white); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 72px; flex-wrap: wrap; padding-block: 8px; }
.site-header .logo img { display: block; width: 210px; height: auto; }
.site-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-nav a { font-variation-settings: var(--wide); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; padding-block: 6px; border-bottom: 3px solid transparent; }
.site-nav a[aria-current="page"], .site-nav a:hover { border-bottom-color: var(--orange); }
.contact { margin-left: auto; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: 15px; }
.contact a { font-weight: 600; text-decoration: none; }
@media (max-width: 760px) {
  .site-header .logo img { width: 170px; }
  .contact { margin-left: 0; width: 100%; }
  .site-nav { gap: 16px; }
}

/* buttons: one orange call to action per page; everything else is quiet */
.btn { display: inline-flex; align-items: center; gap: 10px; font-variation-settings: var(--wide); font-weight: 700; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; padding: 15px 22px; border-radius: 4px; border: 2px solid currentColor; }
.btn.primary { background: var(--orange); border-color: var(--orange); color: var(--white); }
.btn.quiet { background: transparent; color: inherit; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* bands */
section { padding-block: 80px; border-top: 1px solid var(--rule); }
section.white { background: var(--white); }
section.deck { background: var(--teal); color: var(--white); border-top: 0; }
section.deck a { color: var(--white); }
section.deck .label, section.deck .muted { color: var(--on-teal-muted); }
.page { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 40px; }
.tab { font-variation-settings: var(--wide); font-weight: 700; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--grey); padding-top: 8px; }
.deck .tab { color: var(--on-teal-muted); }
.rule { height: 8px; width: 120px; background: var(--orange); }
@media (max-width: 760px) { section { padding-block: 56px; } .page { grid-template-columns: minmax(0, 1fr); gap: 14px; } }

/* hero */
.hero { padding-block: 72px 80px; }
.hero .stack { gap: 26px; max-width: 820px; }
.hero h1 .hi { color: var(--orange); }

/* doors */
.doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 0; border: 1px solid var(--rule); background: var(--white); }
.door { padding: 30px; display: flex; flex-direction: column; gap: 14px; border-right: 1px solid var(--rule); min-width: 0; color: var(--teal); text-decoration: none; }
.door:last-child { border-right: 0; }
.door img { width: 100%; max-width: 330px; height: auto; }
.door .tagline { font-variation-settings: var(--wide); font-weight: 800; text-transform: uppercase; font-size: 18px; line-height: 1.2; }
.door .go { margin-top: auto; font-variation-settings: var(--wide); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; padding-top: 6px; }
.door:hover .go { color: var(--orange); }
@media (max-width: 980px) { .door { border-right: 0; border-bottom: 1px solid var(--rule); } .door:last-child { border-bottom: 0; } }

/* three-up principles / features */
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 28px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 28px 40px; }
.point { border-left: 6px solid var(--orange); padding: 4px 0 4px 18px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.point h3 { font-size: 15px; letter-spacing: .12em; text-transform: uppercase; }
.feature { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding-top: 14px; border-top: 2px solid var(--teal); }
.feature p { color: var(--grey); font-size: 16px; }
.deck .feature { border-top-color: var(--horizon); }
.deck .feature p { color: var(--on-teal-muted); }

/* the checklist — the brand's signature device */
.checklist { background: var(--white); border: 2px solid var(--teal); max-width: 600px; color: var(--teal); }
.checklist header { background: var(--teal); color: var(--white); padding: 14px 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-variation-settings: var(--wide); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.checklist header span:last-child { color: var(--sky); }
.deck .checklist { border-color: var(--white); }
.checklist ol { list-style: none; margin: 0; padding: 0; counter-reset: c; }
.checklist li { counter-increment: c; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 20px; border-top: 1px solid var(--rule); }
.checklist li::before { content: counter(c, decimal-leading-zero); font-variation-settings: var(--wide); font-weight: 800; color: var(--grey); font-size: 14px; font-variant-numeric: tabular-nums; }
.checklist b { display: block; font-weight: 700; }
.checklist small { display: block; color: var(--grey); font-size: 14px; }
.checklist .box { width: 22px; height: 22px; border: 3px solid var(--teal); border-radius: 3px; position: relative; }
.checklist .box.on::after { content: ""; position: absolute; left: 4px; top: -2px; width: 7px; height: 13px; border: solid var(--orange); border-width: 0 4px 4px 0; transform: rotate(40deg); }

/* steps (a real sequence) */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 0; border: 1px solid var(--rule); background: var(--white); counter-reset: s; }
.step { padding: 24px; border-right: 1px solid var(--rule); display: flex; flex-direction: column; gap: 8px; min-width: 0; counter-increment: s; }
.step:last-child { border-right: 0; }
.step::before { content: counter(s, decimal-leading-zero); font-variation-settings: var(--wide); font-weight: 800; font-size: 28px; color: var(--orange); line-height: 1; }
.step p { color: var(--grey); font-size: 16px; }
@media (max-width: 980px) { .step { border-right: 0; border-bottom: 1px solid var(--rule); } .step:last-child { border-bottom: 0; } }

/* lists that read like a spec sheet */
.spec { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.spec li { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.spec li b { font-variation-settings: var(--wide); font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.spec li span { color: var(--grey); }
@media (max-width: 640px) { .spec li { grid-template-columns: minmax(0, 1fr); gap: 4px; } }
.deck .spec, .deck .spec li { border-color: rgba(255,255,255,.18); }
.deck .spec li span { color: var(--on-teal-muted); }

.badges { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.badges img { width: min(320px, 100%); height: auto; }
.note { background: var(--sky); padding: 14px 18px; border-left: 6px solid var(--horizon); font-size: 15px; max-width: 64ch; }

/* footer */
.site-footer { background: var(--teal); color: var(--on-teal-muted); padding-block: 48px; font-size: 15px; }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.site-footer img { width: 220px; height: auto; display: block; }
.site-footer h3 { color: var(--white); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .follow { display: flex; flex-wrap: wrap; gap: 8px; }
.site-footer .follow-btn { display: inline-block; padding: 8px 16px; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; color: var(--white); font-size: 14px; font-weight: 600; line-height: 1.2; }
.site-footer .follow-btn:hover, .site-footer .follow-btn:focus-visible { background: var(--white); color: var(--teal); text-decoration: none; }
.site-footer .legal { max-width: none; grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.15); padding-top: 18px; font-size: 13px; }
@media (max-width: 860px) { .site-footer .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .site-footer .brand { grid-column: 1 / -1; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* forms (site.js sends them) */
.lead { display: grid; gap: 14px; background: var(--white); color: var(--teal); border: 2px solid var(--teal); padding: 24px; max-width: 560px; }
.lead .row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; }
.lead label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.lead input, .lead textarea, .lead select { font: inherit; font-size: 16px; color: var(--teal); background: var(--paper); border: 1px solid var(--rule); border-radius: 4px; padding: 12px; width: 100%; }
.lead textarea { min-height: 96px; resize: vertical; }
.lead .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead .form-status { font-size: 15px; color: var(--grey); min-height: 1em; }
.lead.sent > :not(.thanks) { display: none; }
.lead .thanks { display: grid; gap: 10px; }
.lead .thanks[hidden], [hidden] { display: none !important; }
.lead .thanks h3 { font-size: 22px; text-transform: uppercase; font-variation-settings: var(--wide); font-weight: 800; }
.lead button { cursor: pointer; justify-self: start; }
.lead button:disabled { opacity: .6; cursor: default; }

/* stakes: what skipping the check costs */
.stakes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 0; border: 1px solid var(--rule); background: var(--white); }
.stake { padding: 24px; border-right: 1px solid var(--rule); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.stake:last-child { border-right: 0; }
.stake .x { width: 28px; height: 28px; border: 3px solid var(--grey); border-radius: 3px; position: relative; }
.stake .x::before, .stake .x::after { content: ""; position: absolute; left: 10px; top: 2px; width: 3px; height: 18px; background: var(--grey); transform: rotate(45deg); }
.stake .x::after { transform: rotate(-45deg); }
.stake p { color: var(--grey); font-size: 16px; }
@media (max-width: 980px) { .stake { border-right: 0; border-bottom: 1px solid var(--rule); } .stake:last-child { border-bottom: 0; } }

/* proof: numbers that are true */
.proof { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 24px; }
.proof div { display: grid; gap: 4px; border-top: 2px solid var(--orange); padding-top: 12px; }
.proof b { font-variation-settings: var(--wide); font-weight: 800; font-size: clamp(28px, 4vw, 40px); line-height: 1; }
.proof span { color: var(--grey); font-size: 15px; }
.deck .proof span { color: var(--on-teal-muted); }

/* the free checklist offer */
.offer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
@media (max-width: 860px) { .offer { grid-template-columns: minmax(0, 1fr); } }

/* blocks Dave still has to fill in — shown in the preview only, taken out of the live site by the build */
.todo { border: 2px dashed var(--orange); background: #FFF4EE; color: var(--teal); padding: 16px 18px; font-size: 15px; max-width: 70ch; }
.todo b { display: block; font-variation-settings: var(--wide); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); margin-bottom: 4px; }

/* a printable checklist page */
.print-sheet { max-width: 760px; margin: 0 auto; padding-block: 40px; display: grid; gap: 22px; }
.print-sheet .checklist { max-width: none; }
@media print { .site-header, .site-footer, .no-print { display: none !important; } body { background: #fff; } section { border: 0; padding: 0; } }

/* Photos and stories (Dave's stories, 10/29) */
.photo { margin: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.photo img { width: 100%; height: auto; display: block; border-radius: 4px; border: 1px solid var(--rule); background: var(--sky); }
.photo figcaption { font-size: 14px; color: var(--grey); }
.photo.tall img { aspect-ratio: 4 / 5; object-fit: cover; }
.story { border-left: 6px solid var(--horizon); background: var(--paper); padding: 18px 22px; display: flex; flex-direction: column; gap: 10px; max-width: 70ch; }
.white .story { background: var(--paper); }
section:not(.white):not(.deck) .story { background: var(--white); }
.story p { margin: 0; }
.quote { margin: 0; border-left: 6px solid var(--orange); padding: 6px 0 6px 22px; display: flex; flex-direction: column; gap: 12px; max-width: 70ch; }
.quote p { margin: 0; font-size: clamp(18px, 2vw, 21px); line-height: 1.5; }
.quote cite { font-style: normal; font-weight: 700; font-size: 15px; }
.quote cite span { display: block; font-weight: 400; color: var(--grey); }
.mistakes { margin: 0; padding: 0; list-style: none; display: grid; gap: 18px; counter-reset: m; }
.mistakes li { counter-increment: m; display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start; }
.mistakes li::before { content: "0" counter(m); font-variation-settings: var(--wide); font-weight: 800; font-size: 28px; color: var(--orange); line-height: 1; }
.mistakes b { display: block; font-size: 18px; }
.mistakes span { color: var(--grey); }
.clients { color: var(--grey); font-size: 15px; max-width: 70ch; }

/* Next class (Academy) and its line on Home */
.next-class { border: 2px solid var(--teal); border-left: 8px solid var(--orange); border-radius: 14px; padding: 24px 26px; display: grid; gap: 8px; max-width: 760px; }
.next-class h2 { margin: 0; }
.next-class p { margin: 0; }
.next-class .nc-when { font-size: 18px; }
.next-class .nc-price { font-size: 20px; color: var(--teal); }
.next-class .btn-row { margin-top: 8px; }
.next-line { margin-top: 14px; font-size: 15px; }
.next-line .label { margin-right: 8px; }
.next-line a { color: inherit; }
