/* AI FDE School — site styles. No external fonts or scripts: system fonts only. */
:root {
  --maroon: #650a10;
  --maroon-deep: #45070b;
  --maroon-soft: #7d1a21;
  --gold: #b8872e;
  --gold-bright: #dcb257;
  --gold-text: #8a6212;       /* gold safe for small text on cream */
  --ink: #17130f;
  --ink-2: #4d463e;
  --ink-3: #6f665b;
  --cream: #fbf8f1;
  --paper: #ffffff;
  --line: #e8e0d0;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(23,19,15,.06), 0 8px 24px rgba(23,19,15,.07);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--maroon); text-underline-offset: 3px; }
a:hover { color: var(--maroon-soft); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--maroon); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.eyebrow { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); font-weight: 600; margin: 0 0 14px; }
.on-dark .eyebrow { color: var(--gold-bright); }
section { padding: 88px 0; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 14px; }
.section-head p { color: var(--ink-2); font-size: 18px; margin: 0; }
.on-dark .section-head p { color: #eadfd0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 16px/1 var(--sans); padding: 15px 24px; border-radius: 999px; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: transform .15s ease, background .15s ease, box-shadow .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--maroon); color: #fff; box-shadow: 0 6px 18px rgba(101,10,16,.28); }
.btn-primary:hover { background: var(--maroon-soft); color: #fff; }
.btn-ghost { background: transparent; color: var(--maroon); border-color: var(--maroon); }
.btn-ghost:hover { background: var(--maroon); color: #fff; }
.btn-gold { background: var(--gold-bright); color: var(--maroon-deep); }
.btn-gold:hover { background: #e8c273; color: var(--maroon-deep); }
.btn-sm { padding: 11px 18px; font-size: 15px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251,248,241,.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 40px; height: 48px; object-fit: contain; }
.brand img.wm, .foot-brand img.wm { width: auto; height: 28px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; white-space: nowrap; }
.nav a:not(.btn):hover { color: var(--maroon); }
.menu-btn { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; color: var(--ink); }
.menu-btn svg { display: block; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 72px 0 96px; overflow: hidden;
  background:
    radial-gradient(900px 500px at 88% 10%, rgba(220,178,87,.22), transparent 60%),
    radial-gradient(700px 500px at -5% 100%, rgba(101,10,16,.07), transparent 60%),
    var(--cream); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); margin-bottom: 22px; }
.hero h1 em { font-style: italic; color: var(--maroon); }
.hero .lead { font-size: 20px; color: var(--ink-2); max-width: 34em; margin-bottom: 30px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.badges li { font-size: 13.5px; color: var(--ink-2); background: rgba(255,255,255,.7); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; }
.crest-stage { position: relative; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.crest-stage::before { content: ""; position: absolute; top: 0; left: 7%; width: 86%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(220,178,87,.35), rgba(220,178,87,0) 68%); }
.crest-stage img { position: relative; width: min(100%, 440px); filter: drop-shadow(0 24px 30px rgba(69,7,11,.25)); animation: float 7s ease-in-out infinite; }
.stage-chip { position: relative; white-space: nowrap; text-align: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px; font-size: 14px; color: var(--ink-2); box-shadow: var(--shadow); }
.stage-chip b { color: var(--maroon); font-weight: 650; }
@keyframes float { 50% { transform: translateY(-8px); } }

/* ---------- what is an FDE ---------- */
.white { background: var(--paper); }
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 14px; align-items: stretch; margin-bottom: 14px; }
.flow-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 20px; background: var(--cream); }
.flow-box h3 { font-size: 20px; margin-bottom: 6px; }
.flow-box p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.flow-box.hi { background: var(--maroon); border-color: var(--maroon); color: #fff; box-shadow: 0 14px 30px rgba(101,10,16,.25); }
.flow-box.hi p { color: #f1e6d8; }
.flow-arrow { align-self: center; color: var(--gold); }
.flow-back { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--ink-3); font-size: 14.5px; margin: 0 0 54px; }
.flow-back svg { color: var(--gold); flex: none; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; padding: 26px 20px 20px; border-top: 3px solid var(--gold-bright); background: var(--cream); border-radius: 0 0 var(--radius) var(--radius); }
.steps li::before { counter-increment: step; content: "0" counter(step); font-family: var(--serif); font-size: 15px; color: var(--gold-text); font-weight: 700; display: block; margin-bottom: 8px; }
.steps h3 { font-size: 19px; margin-bottom: 6px; }
.steps p { margin: 0; font-size: 15.5px; color: var(--ink-2); }
.example-note { margin-top: 18px; font-size: 14px; color: var(--ink-3); }

/* ---------- market (dark) ---------- */
.on-dark { background: linear-gradient(160deg, var(--maroon-deep), var(--maroon)); color: #fff; }
.on-dark h2, .on-dark h3 { color: #fff; }
.market-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center; }
.stats { display: grid; gap: 16px; }
.stat { display: grid; grid-template-columns: 148px 1fr; gap: 18px; align-items: center; padding: 18px 20px; border-radius: var(--radius); background: rgba(255,255,255,.07); border: 1px solid rgba(220,178,87,.28); }
.stat b { font-family: var(--serif); font-size: 38px; line-height: 1; color: var(--gold-bright); font-weight: 650; }
.stat span { font-size: 15.5px; color: #eadfd0; }
.chart-card { background: rgba(255,255,255,.06); border: 1px solid rgba(220,178,87,.28); border-radius: var(--radius); padding: 24px 22px 18px; }
.chart-card h3 { font-size: 18px; font-family: var(--sans); font-weight: 600; margin-bottom: 4px; }
.chart-card .sub { font-size: 14px; color: #d9ccb9; margin-bottom: 10px; }
.chart-card svg { width: 100%; height: auto; display: block; }
.chart-card svg text { font-family: var(--sans); }
.fine { font-size: 13.5px; color: #d9ccb9; margin: 18px 0 0; max-width: 78ch; }
.fine a { color: var(--gold-bright); }

/* ---------- learn ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(23,19,15,.06), 0 16px 34px rgba(23,19,15,.11); }
.card .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--maroon); color: var(--gold-bright); display: grid; place-items: center; margin-bottom: 18px; }
.card h3 { font-size: 21px; margin-bottom: 8px; }
.card p { margin: 0; font-size: 16px; color: var(--ink-2); }
.outline-note { margin-top: 22px; font-size: 14.5px; color: var(--ink-3); }

/* ---------- program at a glance ---------- */
.glance { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
.glance-table { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--cream); }
.glance-table div { display: grid; grid-template-columns: 170px 1fr; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--line); font-size: 16px; }
.glance-table div:last-child { border-bottom: 0; }
.glance-table dt { color: var(--ink-3); font-weight: 600; }
.glance-table dd { margin: 0; color: var(--ink); }
.soon { display: inline-block; font-size: 13px; font-weight: 600; color: var(--gold-text); background: #f4ead3; border-radius: 999px; padding: 3px 12px; }
.who h3 { font-size: 24px; margin-bottom: 14px; }
.who ul { list-style: none; padding: 0; margin: 0 0 22px; }
.who li { position: relative; padding: 10px 0 10px 32px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.who li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 14px; height: 8px; border-left: 3px solid var(--gold); border-bottom: 3px solid var(--gold); transform: rotate(-45deg); }

/* ---------- teams ---------- */
.teams { background: var(--cream); }
.teams-card { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: 48px; box-shadow: var(--shadow); }
.teams-card h2 { font-size: clamp(28px, 3.4vw, 38px); margin-bottom: 14px; }
.teams-card p { color: var(--ink-2); }
.teams-list { list-style: none; padding: 0; margin: 0 0 24px; }
.teams-list li { padding: 8px 0 8px 30px; position: relative; color: var(--ink-2); }
.teams-list li::before { content: ""; position: absolute; left: 3px; top: 16px; width: 12px; height: 7px; border-left: 3px solid var(--gold); border-bottom: 3px solid var(--gold); transform: rotate(-45deg); }
.teams-side { background: linear-gradient(160deg, var(--maroon-deep), var(--maroon)); color: #fff; border-radius: 18px; padding: 30px; text-align: center; }
.teams-side img { width: 120px; margin: 0 auto 14px; }
.teams-side p { color: #f1e6d8; margin: 0 0 18px; font-size: 16px; }

/* ---------- faq ---------- */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 4px; font-family: var(--serif); font-size: 20px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 28px/1 var(--sans); color: var(--gold-text); transition: transform .2s ease; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 4px 22px; margin: 0; color: var(--ink-2); max-width: 66ch; }

/* ---------- interest form ---------- */
.interest { background: var(--cream); }
.form-card { display: grid; grid-template-columns: .9fr 1.1fr; background: var(--paper); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); }
.form-side { background: linear-gradient(160deg, var(--maroon-deep), var(--maroon)); color: #fff; padding: 44px 38px; }
.form-side h2 { font-size: 34px; margin-bottom: 14px; color: #fff; }
.form-side p { color: #f1e6d8; }
.form-side ul { list-style: none; padding: 0; margin: 24px 0 0; }
.form-side li { padding: 8px 0 8px 28px; position: relative; color: #f1e6d8; font-size: 15.5px; }
.form-side li::before { content: ""; position: absolute; left: 2px; top: 16px; width: 11px; height: 6px; border-left: 3px solid var(--gold-bright); border-bottom: 3px solid var(--gold-bright); transform: rotate(-45deg); }
form { padding: 44px 40px; }
.field { margin-bottom: 18px; }
label, legend { display: block; font-size: 14.5px; font-weight: 600; margin-bottom: 7px; color: var(--ink); }
input[type=text], input[type=email], select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--cream);
  border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 14px; transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--maroon); box-shadow: 0 0 0 4px rgba(101,10,16,.12); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border: 0; padding: 0; margin: 0 0 18px; }
.seg label { margin: 0; font-weight: 500; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; text-align: center; padding: 13px 10px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; background: var(--cream); font-size: 15.5px; transition: all .15s ease; }
.seg input:checked + span { border-color: var(--maroon); background: var(--maroon); color: #fff; font-weight: 600; }
.seg input:focus-visible + span { outline: 3px solid var(--gold-bright); outline-offset: 2px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); margin-bottom: 22px; }
.consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--maroon); flex: none; }
.consent label { font-weight: 400; margin: 0; font-size: 14px; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-msg { margin-top: 16px; padding: 14px 16px; border-radius: 12px; font-size: 15px; display: none; }
.form-msg.ok { display: block; background: #eaf4ea; color: #1d4d24; border: 1px solid #c9e2cc; }
.form-msg.err { display: block; background: #fbeaea; color: #7a1a1a; border: 1px solid #efc8c8; }

/* ---------- footer ---------- */
.site-footer { background: var(--maroon-deep); color: #eadfd0; padding: 60px 0 32px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.foot-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.foot-brand img { width: 52px; }
.site-footer h4 { font: 600 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-bright); margin: 0 0 14px; }
.site-footer a { color: #eadfd0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 8px 0; font-size: 15px; }
.site-footer p { font-size: 15px; margin: 0 0 10px; }
.disclaimer { border-top: 1px solid rgba(220,178,87,.28); padding-top: 24px; font-size: 13.5px; color: #cdbfac; max-width: 100ch; }
.disclaimer p { margin: 0 0 8px; font-size: 13.5px; }

/* ---------- legal pages ---------- */
.legal { padding: 64px 0 90px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(34px, 5vw, 48px); margin-bottom: 8px; }
.legal .updated { color: var(--ink-3); font-size: 15px; margin-bottom: 30px; }
.legal h2 { font-size: 24px; margin: 38px 0 10px; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { padding-left: 22px; }
.draft-banner { background: #fff6dc; border: 1px solid #ecd48b; color: #5e4708; padding: 14px 18px; border-radius: 12px; font-size: 15px; margin-bottom: 28px; }
.ph { background: #fff1c2; padding: 0 4px; border-radius: 4px; }
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 20px; }
.notfound h1 { font-size: clamp(40px, 7vw, 72px); margin-bottom: 12px; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  section { padding: 68px 0; }
  .hero-grid, .market-grid, .glance, .teams-card, .form-card { grid-template-columns: 1fr; }
  .crest-stage { order: -1; max-width: 340px; margin: 0 auto; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: 1fr; }
  .flow-arrow { transform: rotate(90deg); justify-self: center; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
  .teams-card { padding: 30px 24px; }
}
@media (max-width: 1080px) {
  .menu-btn { display: block; }
  .nav { position: absolute; left: 0; right: 0; top: 72px; background: var(--cream); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; display: none; }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav .btn { margin-top: 16px; }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .hero { padding: 40px 0 64px; }
  .hero .lead { font-size: 18px; }
  .cards, .steps { grid-template-columns: 1fr; }
  .stat { grid-template-columns: 1fr; gap: 6px; }
  .glance-table div { grid-template-columns: 1fr; gap: 2px; }
  .form-side, form { padding: 30px 22px; }
  .foot-grid { grid-template-columns: 1fr; }
  .stage-chip { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .crest-stage img { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
}
