/* Palette borrowed from FAA sectional charts: chart paper, Class B blue, Class C magenta, terrain tan. */
:root {
  --paper: #F2F4EF;
  --paper-2: #E8ECE4;
  --ink: #16202B;
  --muted: #56616D;
  --line: #C6CDC4;
  --blue: #1F4E99;
  --blue-ink: #173B74;
  --magenta: #9E2A68;
  --tan: #E5DBC3;
  --tan-ink: #6B5A33;
  --max: 72rem;
  --measure: 38rem;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
}
img, svg, iframe { max-width: 100%; display: block; }
a { color: var(--blue); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--magenta); }
:focus-visible { outline: 3px solid var(--magenta); outline-offset: 3px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 48rem) { .wrap { padding: 0 2rem; } }

h1, h2, h3 { line-height: 1.1; margin: 0 0 .6em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-stretch: 125%; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-stretch: 112%; }
h3 { font-size: 1.25rem; font-stretch: 100%; }
p { margin: 0 0 1em; }
.lede { font-size: 1.25rem; line-height: 1.5; color: var(--ink); max-width: var(--measure); }
.prose { max-width: var(--measure); }
.prose h2 { margin-top: 2rem; font-size: 1.5rem; }
.prose h3 { margin-top: 1.5rem; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose li { margin-bottom: .35em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; line-height: 1.5; }

/* ---------- Header ---------- */
.site-head { border-bottom: 1px solid var(--line); background: var(--paper); position: relative; z-index: 5; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 4rem; gap: 1rem; }
.brand { font-weight: 800; font-stretch: 125%; font-size: 1.1rem; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.brand:hover { color: var(--ink); }
.nav { display: flex; gap: 1.5rem; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--blue); box-shadow: inset 0 -2px 0 currentColor; }
.nav .shop-link { background: var(--blue); color: #fff; padding: .45rem .9rem; border-radius: 2px; box-shadow: none; }
.nav .shop-link:hover, .nav .shop-link[aria-current="page"] { background: var(--blue-ink); color: #fff; box-shadow: none; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--ink); font: inherit; padding: .35rem .7rem; border-radius: 2px; }
@media (max-width: 47.99rem) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start; padding: 1rem 1.25rem 1.25rem; gap: .9rem; }
  .nav-open .nav { display: flex; }
}

/* ---------- Hero + day strip (the one bold element) ---------- */
.hero { padding: 3.5rem 0 3rem; }
@media (min-width: 48rem) { .hero { padding: 5rem 0 4rem; } }
.hero h1 { max-width: 14ch; }
.hero .lede { margin-bottom: 2.5rem; }

.day { position: relative; margin-top: .5rem; }
.day-track { position: relative; display: grid; grid-template-columns: repeat(48, 1fr); height: 4.25rem; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line);
  background-image: repeating-linear-gradient(to right, var(--line) 0 1px, transparent 1px calc(100% / 24)); }
.seg { grid-row: 1; margin: .5rem 1px; padding: .35rem .5rem; font-size: .8rem; line-height: 1.2; font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; border-left: 3px solid; }
.seg-markets { background: rgba(158,42,104,.12); border-color: var(--magenta); color: var(--magenta); }
.seg-work { background: var(--paper-2); border-color: var(--muted); color: var(--muted); }
.seg-study { background: rgba(31,78,153,.12); border-color: var(--blue); color: var(--blue-ink); }
.seg.is-now { outline: 2px solid currentColor; outline-offset: -2px; }
.day-hours { display: grid; grid-template-columns: repeat(8, 1fr); font-size: .75rem; color: var(--muted); padding-top: .35rem; }
.needle { position: absolute; top: -.75rem; height: calc(4.25rem + 1.5rem); width: 2px; background: var(--magenta); transform: translateX(-1px); }
.needle::before { content: ""; position: absolute; top: 0; left: -5px; border: 6px solid transparent; border-top-color: var(--magenta); }
.day-now { margin-top: 1rem; font-size: .95rem; color: var(--muted); }
.day-now::before { content: ""; display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; background: var(--magenta); margin-right: .5rem; vertical-align: .05em; }
@media (max-width: 40rem) {
  .seg { font-size: 0; padding: 0; }
  .day-key { display: flex !important; }
}
.day-key { display: none; flex-wrap: wrap; gap: .4rem 1rem; margin-top: .8rem; font-size: .85rem; }
.day-key span::before { content: ""; display: inline-block; width: .7rem; height: .7rem; margin-right: .35rem; vertical-align: -.05em; }
.k-m::before { background: var(--magenta); } .k-w::before { background: var(--muted); } .k-s::before { background: var(--blue); }

/* ---------- Sections ---------- */
.section { padding: 3.5rem 0; border-top: 1px solid var(--line); }
@media (min-width: 48rem) { .section { padding: 4.5rem 0; } }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.section-head h2 { margin: 0; }

.pillars { display: grid; gap: 0; grid-template-columns: 1fr; border-top: 2px solid var(--ink); }
@media (min-width: 48rem) { .pillars { grid-template-columns: 1fr 1fr; } }
.pillar { padding: 1.5rem 0 1.75rem; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); display: block; }
@media (min-width: 48rem) { .pillar:nth-child(odd) { padding-right: 2.5rem; border-right: 1px solid var(--line); } .pillar:nth-child(even) { padding-left: 2.5rem; } }
.pillar h3 { font-size: 1.6rem; font-stretch: 118%; margin-bottom: .35rem; }
.pillar p { color: var(--muted); margin: 0 0 .75rem; max-width: 30rem; }
.pillar .go { color: var(--blue); font-weight: 600; }
.pillar:hover h3 { color: var(--blue); }

/* ---------- Shop band ---------- */
.band { background: var(--tan); }
.band .section { border-top: 0; }
.offers { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 52rem) { .offers { grid-template-columns: 3fr 2fr; gap: 3rem; } }
.offer { background: var(--paper); padding: 1.75rem; border-top: 4px solid var(--blue); }
.offer.free { border-top-color: var(--tan-ink); }
.offer h3 { font-size: 1.6rem; font-stretch: 115%; }
.price { font-size: 2.25rem; font-weight: 800; font-stretch: 110%; line-height: 1; margin: .5rem 0 .25rem; }
.price small { font-size: .9rem; font-weight: 500; color: var(--muted); font-stretch: 100%; }

.btn { display: inline-block; font: inherit; font-weight: 700; text-decoration: none; padding: .8rem 1.3rem; border-radius: 2px; border: 2px solid var(--blue); background: var(--blue); color: #fff; cursor: pointer; }
.btn:hover { background: var(--blue-ink); border-color: var(--blue-ink); color: #fff; }
.btn.ghost { background: transparent; color: var(--blue); }
.btn.ghost:hover { background: var(--blue); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: 1.25rem; }

/* ---------- Pages ---------- */
.page-head { padding: 3rem 0 2rem; }
@media (min-width: 48rem) { .page-head { padding: 4.5rem 0 2.5rem; } }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.crumb { font-size: .9rem; margin-bottom: 1rem; }
.crumb a { color: var(--muted); }

.two-col { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 56rem) { .two-col { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 4rem; } }

.video { aspect-ratio: 16 / 9; background: var(--ink); }
.video iframe { width: 100%; height: 100%; border: 0; }

/* Flight path: a real sequence, so numbered */
.route { list-style: none; padding: 0; margin: 0; counter-reset: leg; border-left: 2px solid var(--line); }
.route li { position: relative; padding: 0 0 1.6rem 2rem; counter-increment: leg; }
.route li::before { content: counter(leg); position: absolute; left: -.9rem; top: -.1rem; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--paper); border: 2px solid var(--line); font-size: .8rem; font-weight: 700; display: grid; place-items: center; color: var(--muted); }
.route li.done::before { background: var(--blue); border-color: var(--blue); color: #fff; }
.route li.current::before { background: var(--magenta); border-color: var(--magenta); color: #fff; }
.route h3 { margin-bottom: .25rem; }
.route p { margin: 0; color: var(--muted); max-width: 34rem; }
.route .status { font-size: .85rem; font-weight: 600; color: var(--magenta); }

/* Curriculum */
.curriculum { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--ink); counter-reset: vol; }
.curriculum li { display: grid; grid-template-columns: 3rem 1fr auto; gap: .75rem; padding: 1rem 0; border-bottom: 1px solid var(--line); counter-increment: vol; align-items: baseline; }
.curriculum li::before { content: "Vol " counter(vol); font-size: .8rem; color: var(--muted); font-weight: 600; }
.curriculum h3 { font-size: 1.1rem; margin: 0 0 .2rem; }
.curriculum p { margin: 0; color: var(--muted); font-size: .95rem; }
.curriculum .len { font-size: .9rem; color: var(--muted); white-space: nowrap; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 1.5rem 0; }
.facts div { background: var(--paper); padding: .9rem 1rem; }
.facts b { display: block; font-size: 1.4rem; font-stretch: 110%; }
.facts span { font-size: .85rem; color: var(--muted); }

.notice { border-left: 4px solid var(--tan-ink); background: var(--paper-2); padding: 1rem 1.25rem; font-size: .9rem; line-height: 1.55; color: var(--ink); margin: 1.5rem 0; }
.notice p:last-child { margin: 0; }
.notice strong { display: block; margin-bottom: .25rem; }

details { border-bottom: 1px solid var(--line); padding: .9rem 0; }
details summary { cursor: pointer; font-weight: 700; }
details p { margin: .6rem 0 0; color: var(--ink); max-width: var(--measure); }

/* ---------- Signup ---------- */
.signup { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; max-width: 30rem; }
.signup input[type="email"] { flex: 1 1 14rem; font: inherit; padding: .75rem .9rem; border: 2px solid var(--ink); border-radius: 2px; background: #fff; color: var(--ink); min-width: 0; }
.signup input[type="email"]:focus-visible { outline-offset: 1px; }
.form-note { flex-basis: 100%; font-size: .85rem; color: var(--muted); margin: .2rem 0 0; min-height: 1.2em; }

/* ---------- Footer ---------- */
.site-foot { background: var(--ink); color: #DCE2E8; padding: 3.5rem 0 2rem; margin-top: 0; }
.site-foot a { color: #fff; }
.site-foot a:hover { color: var(--tan); }
.foot-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 52rem) { .foot-grid { grid-template-columns: 3fr 2fr; } }
.site-foot h2 { color: #fff; font-size: 1.6rem; }
.site-foot .signup input[type="email"] { border-color: #fff; }
.site-foot .btn { background: var(--tan); border-color: var(--tan); color: var(--ink); }
.site-foot .btn:hover { background: #fff; border-color: #fff; }
.site-foot .form-note { color: #AEB8C2; }
.foot-links { list-style: none; padding: 0; margin: 0; columns: 2; font-size: .95rem; }
.foot-links li { margin-bottom: .45rem; }
.fine { border-top: 1px solid #33404D; margin-top: 2.5rem; padding-top: 1.5rem; font-size: .8rem; line-height: 1.55; color: #AEB8C2; }
.fine p { max-width: 60rem; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: .5rem; background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: .5rem; }

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