/**
 * AIU Web — Surface Styles (V.1.0)
 * =================================
 * ONLY what is web-specific. Everything shared (buttons, cards, the choice row,
 * forms, colours) lives in /shared/aiu-design.css. This file is the header, the
 * marketing sections, and desktop layout — the things a phone app has no use for.
 */

/* ── Header ───────────────────────────────────────────────────────────────── */
.site-head {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.logo { text-decoration: none; }
.logo .brand { font-size: 1.5rem; }
.site-nav { display: none; gap: 4px; }
@media (min-width: 760px) { .site-nav { display: flex; } }
.site-nav a { padding: 8px 14px; border-radius: var(--r-pill); color: var(--ink-soft);
  font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--navy); background: var(--bg-alt); }
.btn--inline { width: auto; min-height: 40px; padding: 8px 16px; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  background: radial-gradient(120% 120% at 80% -10%, #16305F 0%, var(--navy) 45%, var(--navy-deep) 100%);
  color: #fff; padding: clamp(48px, 9vw, 110px) 0; overflow: hidden;
}
.hero h1 { color: #fff; max-width: 16ch; }
.hero .lede { color: #C6D2E8; max-width: 52ch; margin: 1.2em 0 2em; }
.hero .row { gap: 14px; }
.hero .price-line { margin-top: 18px; color: #8FA3C6; font-size: .95rem; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px;
  border: 1px solid rgba(255,255,255,.2); border-radius: var(--r-pill);
  color: #A7F3D0; font-weight: 600; font-size: .85rem; margin-bottom: 20px; }
.hero-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); }

/* ── Sections ─────────────────────────────────────────────────────────────── */
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section--alt { background: var(--bg-alt); }
.section-title { text-align: center; max-width: 20ch; margin: 0 auto .6em; }
.section-lede { text-align: center; max-width: 54ch; margin: 0 auto 2.5em; }

.grid-3 { display: grid; gap: 20px; }
@media (min-width: 720px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.feature { text-align: left; }
.feature__num { display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: var(--emerald);
  font-family: var(--font-display); font-weight: 800; margin-bottom: 14px; }

/* ── Sage band ────────────────────────────────────────────────────────────── */
.sage-band { background: var(--navy); color: #fff; }
.sage-band h2 { color: #fff; }
.sage-band .lede { color: #C6D2E8; }
.sage-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 820px) { .sage-grid { grid-template-columns: 1fr 1fr; } }
.sage-demo { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-lg); padding: 20px; }
.sage-demo .msg { max-width: 90%; padding: 10px 14px; border-radius: 14px; margin-bottom: 10px; font-size: .95rem; }
.sage-demo .msg--me { background: var(--emerald); color: var(--primary-ink); margin-left: auto; border-bottom-right-radius: 4px; }
.sage-demo .msg--sage { background: rgba(255,255,255,.1); color: #fff; border-bottom-left-radius: 4px; }

/* ── Pricing ──────────────────────────────────────────────────────────────── */
.price-card { max-width: 420px; margin: 0 auto; text-align: center; border: 2px solid var(--emerald);
  border-radius: var(--r-lg); padding: 36px 28px; box-shadow: var(--shadow-lift); }
.price-big { font-family: var(--font-display); font-size: 4rem; font-weight: 800; color: var(--navy); line-height: 1; }
.price-big sup { font-size: 1.6rem; vertical-align: super; }
.price-per { color: var(--ink-soft); margin: 6px 0 20px; }
.price-list { list-style: none; padding: 0; margin: 0 0 24px; text-align: left; }
.price-list li { padding: 8px 0 8px 28px; position: relative; }
.price-list li::before { content: "✓"; position: absolute; left: 0; color: var(--emerald); font-weight: 800; }

/* ── Program cards ────────────────────────────────────────────────────────── */
.prog-grid { display: grid; gap: 20px; }
@media (min-width: 720px) { .prog-grid { grid-template-columns: 1fr 1fr; } }
.prog { border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 26px; }
.prog__code { font-family: var(--font-display); color: var(--emerald); font-weight: 700; letter-spacing: .05em; }
.prog__meta { display: flex; gap: 18px; margin: 14px 0; color: var(--ink-soft); font-size: .9rem; }
.prog__meta b { color: var(--navy); font-family: var(--font-display); font-size: 1.3rem; display: block; }
.prog--link { cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .06s; }
.prog--link:hover { border-color: var(--emerald); box-shadow: var(--shadow); }
.prog--link:active { transform: translateY(1px); }

/* ── FAQ ──────────────────────────────────────────────────────────────────── */
.faq { max-width: 680px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--emerald); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { padding: 0 0 18px; color: var(--ink-soft); }

/* ── App views (authenticated) ────────────────────────────────────────────── */
.app-view { padding: clamp(28px, 5vw, 56px) 0; min-height: 60vh; }

/* ── Dashboard — market snapshot ──────────────────────────────────────────── */
.snap-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .snap-grid { grid-template-columns: repeat(3, 1fr); } }
.snap { padding: 16px 18px; }
.snap .tiny { margin: 0 0 4px; }
.snap strong { font-size: 1.05rem; line-height: 1.35; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 6px 12px; border-radius: var(--r-pill); background: var(--bg-sunk);
  color: var(--navy); font-size: .85rem; font-weight: 600; }

/* ── Curriculum — course cards + status ───────────────────────────────────── */
.course { padding: 18px; border: 1.5px solid var(--line); border-radius: var(--r-lg);
  background: var(--bg); border-left-width: 4px; }
.course--done { border-left-color: var(--emerald); }
.course--active { border-left-color: var(--amber); }
.course--upcoming { border-left-color: var(--line); }
.course__seq { display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--bg-sunk);
  color: var(--navy); font-weight: 700; font-size: .8rem; font-family: var(--font-display); }
.course__why { margin: 8px 0 0; color: var(--ink-soft); font-size: .92rem; line-height: 1.5; }
.course__why .tiny { display: block; color: var(--emerald); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.badge { padding: 4px 10px; border-radius: var(--r-pill); font-size: .75rem; font-weight: 700; white-space: nowrap; }
.badge--done { background: #E7F6EF; color: var(--primary-ink); }
.badge--active { background: #FFF6E5; color: #7A5A00; }
.badge--upcoming { background: var(--bg-sunk); color: var(--ink-soft); }
.course--link { cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .06s; }
.course--link:hover { border-left-color: var(--emerald); box-shadow: var(--shadow); }
.course--link:active { transform: translateY(1px); }

/* Course syllabus lists */
.ticks { list-style: none; padding: 0; margin: 10px 0 0; }
.ticks li { position: relative; padding: 6px 0 6px 26px; line-height: 1.55; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 6px; color: var(--emerald); font-weight: 800; }
.mods { margin: 10px 0 0; padding-left: 22px; }
.mods li { padding: 6px 0 6px 4px; line-height: 1.55; }
.mods li::marker { color: var(--emerald); font-weight: 700; }

/* ── Footer choice band — every page ends with the Next-Three row ─────────── */
.choice-band { padding: clamp(40px, 7vw, 72px) 0; border-top: 1px solid var(--line); background: var(--bg-alt); }
.choice-band h2 { text-align: center; font-size: 1.4rem; }

/* ── Chat (app) ───────────────────────────────────────────────────────────── */
.chatbox { display: flex; flex-direction: column; height: min(70vh, 620px);
  border: 1.5px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.chatlog { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 80%; padding: 11px 15px; border-radius: 16px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.msg--me { align-self: flex-end; background: var(--emerald); color: var(--primary-ink); border-bottom-right-radius: 4px; }
.msg--sage { align-self: flex-start; background: var(--bg-alt); border-bottom-left-radius: 4px; }
.composer { display: flex; gap: 10px; padding: 14px; border-top: 1.5px solid var(--line); }
.composer textarea { flex: 1; resize: none; min-height: 48px; max-height: 130px; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: 22px; font: 1rem var(--font); }
.composer textarea:focus { outline: none; border-color: var(--emerald); }

/* ── Accreditation transparency band ──────────────────────────────────────── */
.accred { max-width: 760px; margin: 0 auto; text-align: center; }
.accred__badge { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
  padding: 6px 14px; border-radius: var(--r-pill); background: #FFF6E5; color: #7A5A00;
  border: 1px solid #F0DCA8; font-weight: 700; font-size: .82rem; }
.accred__badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }

/* ── Final call-to-action ─────────────────────────────────────────────────── */
.final-cta { padding: clamp(56px, 9vw, 104px) 0;
  background: radial-gradient(120% 120% at 20% -20%, #16305F 0%, var(--navy) 50%, var(--navy-deep) 100%);
  color: #fff; }
.final-cta h2 { color: #fff; }
.final-cta .lede { color: #C6D2E8; max-width: 46ch; margin: .6em auto 0; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site-foot { padding: 48px 0 40px; border-top: 1px solid var(--line);
  background: var(--bg-alt); color: var(--ink-soft); }
.foot-grid { display: grid; gap: 28px 32px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 720px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.foot-brand .brand { color: var(--emerald); }
.foot-col h4 { font-family: var(--font); font-size: .8rem; text-transform: uppercase;
  letter-spacing: .06em; color: var(--ink); margin: 0 0 10px; }
.foot-col .tiny { display: block; margin-bottom: 6px; }
.foot-link { color: var(--ink-soft); text-decoration: none; cursor: pointer; }
.foot-link:hover { color: var(--navy); text-decoration: underline; }
.foot-rights { grid-column: 1 / -1; margin: 8px 0 0; padding-top: 20px;
  border-top: 1px solid var(--line); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.dot--amber { background: var(--amber); }
