/* Alpha Admissions: component styles. Every value comes from tokens.css (--token-name).
   Class prefix: aa- . Plain HTML + CSS so it pastes into GHL custom-code blocks. */
@import url("https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,400;8..60,500;8..60,600&family=Outfit:wght@400;500;600;700&family=Geist+Mono:wght@400;500&display=swap");

.aa-root, .aa-root * { box-sizing: border-box; }
.aa-root { font-family: var(--font-sans); color: var(--ink); background: var(--surface); -webkit-font-smoothing: antialiased; }

/* ---------- Eyebrow + section header ---------- */
.aa-eyebrow { font-family: var(--font-mono); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--link); display: inline-flex; align-items: center; gap: var(--space-2); margin: 0; }
.aa-eyebrow::before { content: ""; width: 16px; height: 2px; background: var(--signal); }
.aa-section-head { display: grid; gap: var(--space-2); max-width: var(--measure); }
.aa-section-head h2 { margin: 0; font-family: var(--font-display); font-size: 30px; line-height: 36px; font-weight: 500; letter-spacing: -.005em; text-wrap: balance; }
.aa-section-head p { margin: 0; font-size: 18px; line-height: 28px; color: var(--ink-muted); }

/* ---------- Buttons ---------- */
.aa-btn { font-family: var(--font-sans); font-size: 15px; font-weight: 600; line-height: 20px; min-height: var(--control-height); padding: 0 var(--space-6); border-radius: var(--radius-md); border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); cursor: pointer; text-decoration: none; transition: background-color .15s, box-shadow .2s, color .15s; }
.aa-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.aa-btn-primary { background: var(--cta); color: var(--on-cta); }
.aa-btn-primary:hover { background: var(--cta-hover); box-shadow: var(--shadow-glow); }
[data-theme="light"] .aa-btn-primary:hover, .aa-btn-primary.is-day:hover { color: var(--on-cta-strong); }
.aa-btn-primary .aa-arrow { font-family: var(--font-mono); transition: transform .15s; }
.aa-btn-primary:hover .aa-arrow { transform: translateX(3px); }
.aa-btn-secondary { background: transparent; color: var(--ink); border-color: var(--line-control); }
.aa-btn-secondary:hover { border-color: var(--signal); color: var(--link); }
.aa-btn-block { width: 100%; }

/* ---------- Form card + fields ---------- */
.aa-card { background: var(--surface-raised); border-radius: var(--radius-lg); padding: var(--space-6); box-shadow: var(--shadow-card); display: grid; gap: var(--space-3); transition: box-shadow .2s; }
.aa-card:focus-within { box-shadow: var(--shadow-card), var(--shadow-glow); }
.aa-card h3 { margin: 0; font-family: var(--font-display); font-size: 22px; line-height: 28px; font-weight: 500; }
.aa-card .aa-card-sub { margin: 0 0 var(--space-1); font-size: 14px; line-height: 22px; color: var(--ink-muted); }
.aa-field { display: grid; gap: var(--space-2); }
.aa-field label { font-size: 15px; line-height: 20px; font-weight: 500; color: var(--ink); }
.aa-field input, .aa-field select { font: 400 16px/24px var(--font-sans); color: var(--ink); background: var(--surface); min-height: var(--control-height); padding: 0 var(--space-3); border: 1px solid var(--line-control); border-radius: var(--radius-md); width: 100%; }
.aa-field input:focus-visible, .aa-field select:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
.aa-field.is-error input, .aa-field.is-error select { border-color: var(--danger); }
.aa-field-help { font-size: 14px; line-height: 22px; color: var(--ink-muted); margin: 0; }
.aa-field-error { font-size: 14px; line-height: 22px; color: var(--danger); margin: 0; display: flex; gap: var(--space-1); align-items: baseline; }
.aa-field-error::before { content: "!"; font-family: var(--font-mono); font-weight: 500; }
.aa-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
@media (max-width: 480px) { .aa-row2 { grid-template-columns: 1fr; } }

/* ---------- Consent checkbox (never pre-ticked) ---------- */
.aa-consent { display: grid; grid-template-columns: 20px 1fr; gap: var(--space-3); align-items: start; font-size: 14px; line-height: 22px; color: var(--ink); cursor: pointer; }
.aa-consent input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; margin: 1px 0 0; border: 1.5px solid var(--line-control); border-radius: var(--radius-sm); background: var(--surface); display: grid; place-content: center; cursor: pointer; }
.aa-consent input::after { content: ""; width: 10px; height: 6px; border-left: 2px solid var(--on-cta); border-bottom: 2px solid var(--on-cta); transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.aa-consent input:checked { background: var(--signal); border-color: var(--signal); }
.aa-consent input:checked::after { opacity: 1; border-color: var(--surface); }
.aa-consent input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.aa-consent .aa-optional { color: var(--ink-muted); font-style: italic; }
.aa-notice { font-size: 12px; line-height: 18px; color: var(--ink-subtle); margin: 0; }

/* ---------- Fact strip ---------- */
.aa-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.aa-fact { background: var(--surface-tint); padding: var(--space-3) var(--space-4); display: grid; gap: var(--space-1); }
.aa-fact dt { font-family: var(--font-mono); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--link); }
.aa-fact dd { margin: 0; font-size: 16px; line-height: 22px; font-weight: 600; color: var(--ink); }
@media (max-width: 640px) { .aa-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Wage range ---------- */
.aa-wage { display: grid; gap: var(--space-3); max-width: 640px; }
.aa-wage-bar { position: relative; height: 6px; border-radius: var(--radius-pill); background: linear-gradient(90deg, var(--line), var(--signal)); margin: var(--space-6) 0 var(--space-2); }
.aa-wage-bar i { position: absolute; top: 50%; width: 14px; height: 14px; border-radius: var(--radius-pill); background: var(--surface); border: 3px solid var(--signal); transform: translate(-50%, -50%); }
.aa-wage-figs { display: grid; grid-template-columns: repeat(3, 1fr); }
.aa-wage-figs div { display: grid; gap: 2px; }
.aa-wage-figs div:nth-child(2) { text-align: center; }
.aa-wage-figs div:nth-child(3) { text-align: right; }
.aa-wage-figs b { font-family: var(--font-mono); font-size: 32px; line-height: 36px; font-weight: 500; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--ink); }
.aa-wage-figs span { font-family: var(--font-mono); font-size: 12px; line-height: 16px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); }
.aa-source { font-size: 12px; line-height: 18px; color: var(--ink-subtle); margin: 0; max-width: var(--measure); }
@media (max-width: 480px) { .aa-wage-figs b { font-size: 22px; line-height: 28px; } }

/* ---------- Disclosure: how Alpha is paid ---------- */
.aa-disclosure { background: var(--surface-tint); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-6); display: grid; gap: var(--space-3); max-width: var(--measure); }
.aa-disclosure h3 { margin: 0; font-family: var(--font-display); font-size: 20px; line-height: 28px; font-weight: 500; }
.aa-disclosure p { margin: 0; font-size: 16px; line-height: 26px; color: var(--ink); }
.aa-disclosure .aa-free { display: flex; gap: var(--space-3); align-items: baseline; padding-top: var(--space-3); border-top: 1px solid var(--line); }
.aa-disclosure .aa-free::before { content: "$0"; font-family: var(--font-mono); font-weight: 500; color: var(--link); }

/* ---------- FAQ ---------- */
.aa-faq { border-top: 1px solid var(--line); max-width: var(--measure); }
.aa-faq details { border-bottom: 1px solid var(--line); }
.aa-faq summary { list-style: none; cursor: pointer; padding: var(--space-4) 0; display: flex; justify-content: space-between; gap: var(--space-4); font-size: 17px; line-height: 26px; font-weight: 600; }
.aa-faq summary::-webkit-details-marker { display: none; }
.aa-faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--signal); }
.aa-faq details[open] summary::after { content: "−"; }
.aa-faq summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.aa-faq p { margin: 0 0 var(--space-4); font-size: 16px; line-height: 26px; color: var(--ink-muted); max-width: var(--measure); }

/* ---------- Hero band ---------- */
.aa-hero { position: relative; color: var(--ink); overflow: hidden; background-color: var(--hero-a); background-image: radial-gradient(55% 90% at 88% 0%, var(--hero-glow), transparent 70%), linear-gradient(115deg, var(--hero-a) 35%, var(--hero-b)); }
.aa-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--signal) 30%, var(--cta) 70%, transparent); }
.aa-hero h1 { margin: 0; font-family: var(--font-display); font-size: 44px; line-height: 50px; font-weight: 500; letter-spacing: -.015em; text-wrap: balance; }
.aa-hero h1 .aa-accent { color: var(--headline-accent); }
.aa-hero .aa-facts { background: rgba(255, 255, 255, 0.10); border-color: rgba(255, 255, 255, 0.12); }
.aa-hero .aa-fact { background: var(--glass); }
.aa-hero .aa-offered { margin: 0; font-size: 18px; line-height: 28px; color: var(--ink-muted); }
.aa-hero .aa-offered b { color: var(--ink); font-weight: 600; }
@media (max-width: 640px) { .aa-hero h1 { font-size: 32px; line-height: 38px; } }

/* ---------- Advisor dialog (the FormCard in a modal overlay) ---------- */
.aa-dialog { border: 0; padding: 0; background: transparent; width: min(600px, calc(100vw - 2 * var(--space-4))); max-height: calc(100dvh - 2 * var(--space-4)); overflow: visible; color: var(--ink); }
.aa-dialog::backdrop { background: rgba(2, 30, 48, 0.72); }
.aa-dialog[open] { animation: aa-rise .18s ease-out; }
.aa-dialog .aa-card { max-height: calc(100dvh - 2 * var(--space-4)); overflow-y: auto; position: relative; }
.aa-dialog-close { position: absolute; top: var(--space-3); right: var(--space-3); width: 36px; height: 36px; border-radius: var(--radius-md); border: 1px solid var(--line); background: transparent; color: var(--ink-muted); font: 500 18px/1 var(--font-mono); cursor: pointer; display: grid; place-content: center; }
.aa-dialog-close:hover { color: var(--ink); border-color: var(--signal); }
.aa-dialog-close:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.aa-dialog .aa-card h3 { padding-right: 44px; }
@keyframes aa-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
body:has(.aa-dialog[open]) { overflow: hidden; }

/* ---------- Section tabs ---------- */
.aa-tabs { position: sticky; top: var(--nav-h, 0px); z-index: 5; background: var(--surface); border-bottom: 1px solid var(--line); }
.aa-tablist { display: flex; flex-wrap: wrap; gap: 0 var(--space-6); }
.aa-tab { appearance: none; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: var(--space-4) 0 calc(var(--space-4) - 2px); font: 500 15px/20px var(--font-sans); color: var(--ink-muted); cursor: pointer; white-space: nowrap; }
.aa-tab:hover { color: var(--ink); }
.aa-tab[aria-selected="true"] { color: var(--ink); font-weight: 600; border-bottom-color: var(--signal); }
.aa-tab:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--radius-sm); }
.aa-tabpanel[hidden] { display: none; }
.aa-tabpanel:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
@media (max-width: 640px) { .aa-tablist { gap: 0 var(--space-4); } .aa-tab { padding-block: var(--space-3) calc(var(--space-3) - 2px); font-size: 14px; } }

/* ---------- Utility bar + navigation ---------- */
.aa-topbar { background: var(--bar); color: var(--on-bar); font-size: 13px; line-height: 18px; }
.aa-topbar-in { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); padding-block: 7px; }
.aa-topbar a { color: var(--on-bar); text-decoration: none; }
.aa-topbar a:hover { text-decoration: underline; }
.aa-topbar .aa-dot { display: inline-block; width: 7px; height: 7px; border-radius: var(--radius-pill); background: #7ce3a8; margin-right: var(--space-2); vertical-align: 1px; }
.aa-topbar-right { display: flex; align-items: center; gap: var(--space-4); }
.aa-theme-toggle { appearance: none; background: none; border: 0; color: var(--on-bar); cursor: pointer; width: 28px; height: 28px; border-radius: var(--radius-sm); display: grid; place-content: center; font: 500 15px/1 var(--font-mono); }
.aa-theme-toggle:focus-visible { outline: 2px solid var(--on-bar); outline-offset: 1px; }
.aa-nav { position: sticky; top: 0; z-index: 10; background: rgba(2, 30, 48, 0.94); backdrop-filter: saturate(140%) blur(8px); border-bottom: 1px solid var(--line); color: var(--ink); }
.aa-nav-in { display: flex; align-items: center; gap: var(--space-6); min-height: 64px; }
.aa-nav img { height: 48px; width: auto; display: block; }
.aa-nav-links { display: flex; gap: var(--space-6); margin-inline: auto; }
.aa-nav-links a { color: var(--ink-muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.aa-nav-links a:hover { color: var(--ink); }
.aa-nav-cta { display: flex; gap: var(--space-2); }
.aa-nav .aa-btn { min-height: 40px; padding: 0 var(--space-4); font-size: 14px; }
@media (max-width: 860px) { .aa-nav-links { display: none; } .aa-nav-cta { margin-left: auto; } .aa-nav-cta .aa-btn-secondary { display: none; } }
@media (max-width: 480px) { .aa-topbar-left { display: none; } .aa-topbar-in { justify-content: flex-end; } }

/* ---------- Program cards (modules, areas) ---------- */
.aa-cardgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: var(--space-4); }
.aa-tile { background-color: var(--surface-raised); background-image: radial-gradient(circle at 100% 0%, var(--card-glow), transparent 55%); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-6); display: grid; grid-template-rows: auto auto 1fr; gap: var(--space-3); transition: border-color .15s, transform .15s; }
.aa-tile:hover { border-color: var(--signal); transform: translateY(-2px); }
.aa-tile-code { font: 500 12px/16px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--link); }
.aa-tile h3 { margin: 0; font-family: var(--font-display); font-size: 20px; line-height: 26px; font-weight: 500; text-wrap: balance; }
.aa-tile ul { margin: 0; padding: var(--space-3) 0 0; border-top: 1px solid var(--line); list-style: none; display: grid; gap: var(--space-2); font-size: 15px; line-height: 22px; color: var(--ink-muted); align-content: start; }
.aa-tile li { display: grid; grid-template-columns: 12px 1fr; gap: var(--space-2); }
.aa-tile li::before { content: ""; width: 6px; height: 6px; margin-top: 8px; border-radius: 1px; background: var(--signal); }

/* ---------- Floating advisor button ---------- */
.aa-fab { position: fixed; right: var(--space-4); bottom: calc(var(--space-4) + env(safe-area-inset-bottom, 0px)); z-index: 20; display: inline-flex; align-items: center; gap: var(--space-2); min-height: 48px; padding: 0 var(--space-6); border-radius: var(--radius-pill); background: var(--cta); color: var(--on-cta); font: 600 15px/20px var(--font-sans); text-decoration: none; box-shadow: 0 8px 24px rgba(2, 30, 48, 0.28); }
.aa-fab:hover { background: var(--orange-300); }
.aa-fab:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

/* Hero call-to-action row */
.aa-cta-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }

@media (prefers-reduced-motion: reduce) { .aa-root *, .aa-btn, .aa-card { transition: none !important; } .aa-dialog[open] { animation: none; } .aa-tile:hover { transform: none; } }
