/* ============================================================
   True Course — shared stylesheet
   Aviation-sky brand built from the Tomato Planes app palette.
   ============================================================ */

/* ---- Design tokens ---------------------------------------- */
:root {
  --font-display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Sky + brand blues (from the app's welcome gradient + appPrimary) */
  --sky-1: #2b62c4;
  --sky-2: #337FE6;
  --sky-3: #6fb0ff;
  --sky-4: #a9d4ff;
  --blue: #2672E0;
  --blue-600: #1f61c8;
  --navy: #0F1F47;      /* app dark-sky top */
  --navy-2: #16295c;

  /* Ink + neutrals */
  --ink: #15233f;
  --body: #4a5772;
  --muted: #7f8ca6;
  --paper: #eef3fb;
  --paper-2: #f6f9fe;
  --white: #ffffff;

  /* Accents (gold = achievements, tomato = mascot pop) */
  --gold: #FFB52E;
  --gold-deep: #c77a1a;
  --tomato: #e4573d;
  --tomato-deep: #c8402a;
  --green: #2fb457;

  --line: rgba(15, 31, 71, .12);
  --line-soft: rgba(15, 31, 71, .07);
  --shadow-sm: 0 2px 10px rgba(20, 45, 95, .07);
  --shadow: 0 22px 60px -24px rgba(20, 45, 95, .45);
  --shadow-card: 0 14px 40px -22px rgba(20, 45, 95, .5);

  --radius: 22px;
  --radius-lg: 30px;
  --wrap: 1140px;
}

/* ---- Reset + base ----------------------------------------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--body);
  background: var(--paper-2);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-600); }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); line-height: 1.05; margin: 0; letter-spacing: -0.02em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* Mono eyebrow label */
.eyebrow {
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: .6em;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: currentColor;
  opacity: .5;
}

/* ---- Buttons ---------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  padding: .85em 1.5em; border-radius: 100px; border: 0; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap; text-decoration: none;
}
.btn-primary {
  background: var(--blue); color: #fff;
  box-shadow: 0 10px 24px -8px rgba(38, 114, 224, .65);
}
.btn-primary:hover { background: var(--blue-600); color: #fff; transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(38, 114, 224, .7); }
.btn-primary:active { transform: translateY(0); }
.btn-gold { background: var(--gold); color: #3a2600; box-shadow: 0 10px 24px -8px rgba(255, 181, 46, .6); }
.btn-gold:hover { color: #3a2600; transform: translateY(-2px); }
.btn-ghost { background: rgba(255, 255, 255, .14); color: #fff; border: 1.5px solid rgba(255, 255, 255, .5); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .24); color: #fff; }
.btn-lg { font-size: 1.08rem; padding: 1em 1.8em; }

/* ---- Nav -------------------------------------------------- */
.nav {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  padding: 22px 0;
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand img { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 4px 12px rgba(0,0,0,.18); }
.brand .name { font-family: var(--font-display); font-weight: 800; font-size: 1.22rem; color: #fff; letter-spacing: -0.02em; }
.brand .name span { color: var(--gold); }
.nav.dark .brand .name { color: var(--ink); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-weight: 600; font-size: .96rem; color: rgba(255,255,255,.9); }
.nav-links a:hover { color: #fff; }
.nav.dark .nav-links a { color: var(--body); }
.nav.dark .nav-links a:hover { color: var(--ink); }

/* ============================================================
   HERO — the sky
   ============================================================ */
.hero {
  position: relative;
  padding: 168px 0 110px;
  background:
    radial-gradient(120% 80% at 82% -6%, rgba(255,255,255,.55), rgba(255,255,255,0) 42%),
    linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 46%, var(--sky-3) 100%);
  overflow: hidden;
  isolation: isolate;
}
/* soft cloud field */
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(50% 40% at 18% 78%, rgba(255,255,255,.85), rgba(255,255,255,0) 60%),
    radial-gradient(38% 30% at 68% 88%, rgba(255,255,255,.7), rgba(255,255,255,0) 62%),
    radial-gradient(30% 26% at 90% 60%, rgba(255,255,255,.6), rgba(255,255,255,0) 64%);
  pointer-events: none;
}
/* grain overlay for depth */
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  opacity: .05; mix-blend-mode: overlay; pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; }

.hero-copy { max-width: 560px; }
.hero .eyebrow { color: #eaf3ff; }
.hero h1 {
  color: #fff;
  font-size: clamp(2.6rem, 5.4vw, 4.05rem);
  font-weight: 800;
  margin: 20px 0 0;
  text-shadow: 0 2px 24px rgba(9, 24, 61, .28);
}
.hero h1 em { font-style: normal; color: var(--gold); }
.hero-sub {
  color: #eaf3ff; font-size: 1.2rem; line-height: 1.55; margin: 22px 0 0;
  max-width: 480px; text-shadow: 0 1px 12px rgba(9, 24, 61, .25);
}
.pill {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-mono); font-size: .74rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  background: rgba(255, 255, 255, .16); color: #fff;
  border: 1px solid rgba(255,255,255,.35);
  padding: .5em 1em; border-radius: 100px; backdrop-filter: blur(6px);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(255,181,46,.35); }

/* Waitlist form */
.signup { margin-top: 30px; }
.signup-row {
  display: flex; gap: 9px; background: #fff; padding: 8px;
  border-radius: 100px; box-shadow: var(--shadow); max-width: 440px;
}
.signup-row input {
  flex: 1; border: 0; outline: 0; background: transparent;
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: 0 8px 0 16px; min-width: 0;
}
.signup-row input::placeholder { color: var(--muted); }
.signup-note { margin: 12px 2px 0; font-size: .9rem; color: #dcebff; display: flex; align-items: center; gap: .5em; }
.signup-note svg { flex: none; }
.signup.done .signup-row { display: none; }
.signup-success {
  display: none; align-items: center; gap: 12px; max-width: 440px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.4);
  color: #fff; padding: 16px 20px; border-radius: 18px; backdrop-filter: blur(6px);
  font-weight: 600;
}
.signup.done .signup-success { display: flex; }
.signup-success img { width: 40px; height: 40px; }

/* Hero visual — plane flying an arc */
.hero-visual { position: relative; min-height: 360px; }
.hero-arc { position: absolute; inset: -4% -6% 0 -6%; width: 112%; height: 100%; z-index: 1; overflow: visible; }
.hero-arc path { stroke: rgba(255,255,255,.6); stroke-width: 2.5; stroke-dasharray: 3 12; stroke-linecap: round; fill: none; }
.hero-plane {
  position: absolute; right: 2%; top: 30%; width: 74%; max-width: 430px; z-index: 3;
  filter: drop-shadow(0 26px 34px rgba(9, 24, 61, .34));
  transform-origin: center;
}
.cloud { position: absolute; z-index: 2; border-radius: 100px; background: rgba(255,255,255,.9); filter: blur(2px); }
.cloud::before, .cloud::after { content: ""; position: absolute; background: inherit; border-radius: 100px; }
.cloud-a { width: 120px; height: 26px; left: -4%; top: 16%; opacity: .9; }
.cloud-a::before { width: 60px; height: 44px; left: 26px; top: -20px; }
.cloud-b { width: 90px; height: 20px; right: 8%; bottom: 12%; opacity: .8; }
.cloud-b::before { width: 46px; height: 34px; left: 20px; top: -15px; }

/* ============================================================
   Sections (generic)
   ============================================================ */
section { position: relative; }
.band { padding: 92px 0; }
.band-paper { background: var(--paper); }
.section-head { max-width: 640px; margin: 0 auto 54px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head h2 { font-size: clamp(2rem, 3.6vw, 2.85rem); font-weight: 800; margin-top: 16px; }
.section-head p { font-size: 1.15rem; margin: 16px 0 0; color: var(--body); }

/* ---- "What is it" split ----------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .lead { font-size: 1.3rem; color: var(--ink); font-weight: 500; line-height: 1.45; }
.split p { margin: 18px 0 0; }
.aha {
  margin-top: 26px; padding: 22px 24px; border-radius: 18px;
  background: #fff; border: 1px solid var(--line-soft); box-shadow: var(--shadow-sm);
  position: relative;
}
.aha .quote { font-family: var(--font-display); font-size: 1.28rem; color: var(--ink); line-height: 1.35; letter-spacing: -0.01em; }
.aha .who { margin-top: 12px; font-family: var(--font-mono); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--tomato); }
.media-frame {
  position: relative; border-radius: var(--radius-lg); padding: 40px;
  background: radial-gradient(120% 100% at 30% 0%, #fff, var(--paper) 90%);
  border: 1px solid var(--line-soft); box-shadow: var(--shadow-card);
  display: flex; align-items: center; justify-content: center;
}
.media-frame img { width: 78%; filter: drop-shadow(0 24px 30px rgba(20,45,95,.22)); }
.media-frame .tag {
  position: absolute; bottom: 22px; left: 22px;
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); background: #fff; padding: .4em .8em; border-radius: 100px; box-shadow: var(--shadow-sm);
}

/* ============================================================
   Curriculum — "night flight" navy panel with gold waypoints
   ============================================================ */
.curriculum { background: linear-gradient(180deg, var(--navy) 0%, #0b1734 100%); color: #cdd8f0; overflow: hidden; }
.curriculum .section-head h2 { color: #fff; }
.curriculum .section-head p { color: #9fb2d8; }
.curriculum .eyebrow { color: var(--gold); }
.curr-list { max-width: 760px; margin: 0 auto; position: relative; }
/* dashed flight-path spine */
.curr-list::before {
  content: ""; position: absolute; left: 27px; top: 8px; bottom: 8px; width: 2px;
  background: repeating-linear-gradient(180deg, rgba(255,181,46,.55) 0 6px, transparent 6px 16px);
}
.curr-item { position: relative; display: flex; gap: 24px; padding: 15px 0; align-items: baseline; }
.curr-num {
  flex: none; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; position: relative; z-index: 2;
  background: rgba(255,181,46,.1); border: 1.5px solid rgba(255,181,46,.5);
  font-family: var(--font-mono); font-weight: 600; font-size: 1.05rem; color: var(--gold);
}
.curr-body h3 { color: #fff; font-size: 1.3rem; font-weight: 700; }
.curr-body p { margin: 4px 0 0; color: #9fb2d8; font-size: 1rem; }
.curr-foot { text-align: center; margin-top: 46px; color: #9fb2d8; }
.curr-foot strong { color: #fff; }

/* ============================================================
   Feature cards — "feels like a game"
   ============================================================ */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.card .ic {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center;
  font-size: 1.5rem; margin-bottom: 18px;
}
.ic-blue { background: rgba(38,114,224,.12); }
.ic-gold { background: rgba(255,181,46,.16); }
.ic-tomato { background: rgba(228,87,61,.12); }
.ic-green { background: rgba(47,180,87,.14); }
.ic-navy { background: rgba(15,31,71,.09); }
.ic-sky { background: rgba(111,176,255,.2); }
.card h3 { font-size: 1.24rem; font-weight: 700; }
.card p { margin: 10px 0 0; font-size: 1rem; }

/* ---- Honesty strip ---------------------------------------- */
.honesty {
  background: linear-gradient(120deg, #fff, var(--paper));
  border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  padding: 46px; display: grid; grid-template-columns: auto 1fr; gap: 34px; align-items: center;
  box-shadow: var(--shadow-sm);
}
.honesty img { width: 128px; }
.honesty h3 { font-size: 1.7rem; font-weight: 800; }
.honesty p { margin: 12px 0 0; font-size: 1.1rem; }

/* ---- About True Course ------------------------------------ */
.about { text-align: center; max-width: 720px; margin: 0 auto; }
.about .lockup { display: inline-flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.about .lockup img { width: 58px; height: 58px; border-radius: 16px; box-shadow: var(--shadow-sm); }
.about .lockup span { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; color: var(--ink); }
.about .lockup span em { font-style: normal; color: var(--tomato); }
.about p { font-size: 1.2rem; color: var(--body); }
.about .facts { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 14px; margin-top: 26px; }
.about .facts span {
  font-family: var(--font-mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); background: #fff; border: 1px solid var(--line-soft);
  padding: .5em 1em; border-radius: 100px;
}

/* ============================================================
   CTA band (bookends the hero sky)
   ============================================================ */
.cta {
  position: relative; overflow: hidden; text-align: center; color: #fff;
  padding: 88px 0;
  background: linear-gradient(160deg, var(--sky-1), var(--sky-2) 55%, var(--sky-3));
}
.cta::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 80% at 50% 120%, rgba(255,255,255,.4), transparent 60%);
  pointer-events: none;
}
.cta .wrap { position: relative; z-index: 2; }
.cta img.mascot { width: 118px; margin: 0 auto 6px; filter: drop-shadow(0 18px 22px rgba(9,24,61,.3)); }
.cta h2 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; text-shadow: 0 2px 20px rgba(9,24,61,.28); }
.cta p { color: #eaf3ff; font-size: 1.2rem; margin: 16px auto 0; max-width: 500px; }
.cta .signup { display: flex; flex-direction: column; align-items: center; margin-top: 30px; }
.cta .signup-row { width: 100%; }

/* ============================================================
   Footer
   ============================================================ */
.footer { background: var(--navy); color: #9fb2d8; padding: 64px 0 40px; }
.footer .top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 34px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer .brand .name { color: #fff; }
.footer .blurb { max-width: 340px; margin-top: 16px; font-size: .96rem; line-height: 1.6; }
.footer nav { display: flex; gap: 54px; flex-wrap: wrap; }
.footer nav h4 { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: #66799f; margin: 0 0 14px; font-weight: 500; }
.footer nav a { display: block; color: #c3d0ea; margin: 9px 0; font-size: .98rem; }
.footer nav a:hover { color: #fff; }
.footer .disclaimer { margin-top: 28px; font-size: .86rem; line-height: 1.6; color: #7186ac; max-width: 720px; }
.footer .legal-line { margin-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .84rem; color: #66799f; }

/* ============================================================
   Reveal on scroll
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

/* Hero load-in stagger */
.hero .anim { opacity: 0; transform: translateY(20px); animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards; }
.hero .a1 { animation-delay: .1s; }
.hero .a2 { animation-delay: .22s; }
.hero .a3 { animation-delay: .34s; }
.hero .a4 { animation-delay: .46s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.hero-plane { opacity: 0; animation: flyIn 1.5s cubic-bezier(.16,.7,.3,1) .3s forwards; }
@keyframes flyIn {
  0%   { opacity: 0; transform: translate(-46px, 66px) rotate(-9deg) scale(.94); }
  100% { opacity: 1; transform: translate(0,0) rotate(-3deg) scale(1); }
}
.hero-plane.float { animation: flyIn 1.5s cubic-bezier(.16,.7,.3,1) .3s forwards, bob 6s ease-in-out 1.9s infinite; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-14px) rotate(-2deg); } }
.cloud { animation: drift 26s linear infinite; }
.cloud-b { animation-duration: 34s; animation-direction: reverse; }
@keyframes drift { 0% { transform: translateX(0); } 50% { transform: translateX(22px); } 100% { transform: translateX(0); } }
.hero-arc path { stroke-dasharray: 3 12; stroke-dashoffset: 200; animation: dash 2.4s ease forwards .4s; }
@keyframes dash { to { stroke-dashoffset: 0; } }

/* ============================================================
   Legal pages
   ============================================================ */
.legal-hero { background: linear-gradient(180deg, var(--sky-2), var(--sky-3)); padding: 128px 0 56px; color: #fff; }
.legal-hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 800; }
.legal-hero .meta { font-family: var(--font-mono); font-size: .82rem; letter-spacing: .08em; margin-top: 14px; color: #eaf3ff; }
.legal { max-width: 760px; margin: 0 auto; padding: 56px 24px 90px; }
.legal p { margin: 0 0 15px; color: #3f4c66; }
.legal h2 { font-family: var(--font-mono); font-size: .85rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin: 40px 0 12px; }
.legal ul { margin: 0 0 15px; padding-left: 1.3rem; }
.legal li { margin: 6px 0; }
.legal a { text-decoration: underline; text-underline-offset: 2px; }
.legal .backlink { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; margin-bottom: 8px; }
.legal hr { border: 0; border-top: 1px solid var(--line); margin: 44px 0 20px; }
.legal .fine { font-size: .92rem; color: var(--muted); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .hero { padding: 128px 0 84px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 8px; }
  .hero-copy { max-width: 640px; }
  .hero-visual { min-height: 300px; order: 2; margin-top: 12px; }
  .hero-plane { position: relative; right: auto; top: auto; width: 66%; margin: 0 auto; max-width: 340px; }
  .hero-arc { display: none; }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .cards { grid-template-columns: 1fr; }
  .honesty { grid-template-columns: 1fr; text-align: center; padding: 34px; }
  .honesty img { margin: 0 auto; width: 104px; }
  .nav-links a:not(.btn) { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .band { padding: 68px 0; }
  .wrap { padding: 0 18px; }
  .signup-row { flex-direction: column; padding: 12px; border-radius: 22px; }
  .signup-row input { padding: 10px 14px; }
  .signup-row .btn { width: 100%; }
  .curr-item { gap: 16px; }
  .curr-num { width: 46px; height: 46px; font-size: .92rem; }
  .curr-list::before { left: 22px; }
  .footer .top { flex-direction: column; gap: 26px; }
}

/* ---- Reduced motion --------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero .anim { opacity: 1; transform: none; animation: none; }
  .hero-plane, .hero-plane.float { opacity: 1; animation: none; transform: rotate(-3deg); }
  .cloud { animation: none; }
  .hero-arc path { stroke-dashoffset: 0; animation: none; }
}
