:root {
  --bg: #fbf7ef;
  --bg-alt: #f1e8d8;
  --ink: #182420;
  --muted: #59655f;
  --brand: #163e38;
  --brand-dark: #0e2e29;
  --accent: #c37532;
  --accent-soft: #ffe2c2;
  --card: #ffffff;
  --line: #ded3c2;
  --success: #2e6a5f;
  --shadow: 0 22px 55px rgba(22, 62, 56, 0.14);
  --soft-shadow: 0 10px 26px rgba(22, 62, 56, 0.08);
  --radius: 24px;
  --radius-sm: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }

.container { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.narrow { width: min(860px, calc(100% - 40px)); margin-inline: auto; }
.center { text-align: center; }
.skip-link { position: absolute; left: -999px; top: 10px; background: var(--brand); color: #fff; padding: 8px 12px; z-index: 1000; }
.skip-link:focus { left: 10px; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 247, 239, 0.93);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(222, 211, 194, 0.9);
}
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 15px; background: var(--brand); color: #fff; font-weight: 900; letter-spacing: -0.06em; box-shadow: var(--soft-shadow); }
.brand strong { display: block; font-size: 1.02rem; }
.brand small { display: block; color: var(--muted); font-size: 0.78rem; margin-top: -3px; }
.site-nav { display: flex; align-items: center; gap: 20px; font-size: 0.95rem; }
.site-nav a { color: var(--ink); font-weight: 650; }
.site-nav .nav-cta { color: #fff; background: var(--brand); padding: 10px 15px; border-radius: 999px; }
.nav-toggle { display: none; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 13px; color: var(--ink); font-weight: 800; }

.section { padding: 82px 0; }
.hero { padding: 94px 0 74px; overflow: hidden; }
.alt { background: var(--bg-alt); }
.hero-grid, .two-column, .pricing-grid, .about-grid, .contact-grid, .resource-grid { display: grid; gap: 48px; align-items: center; }
.hero-grid { grid-template-columns: minmax(0, 1.16fr) minmax(320px, 0.84fr); }
.two-column { grid-template-columns: 1fr 1fr; }
.pricing-grid { grid-template-columns: minmax(0, 1fr) 390px; }
.about-grid { grid-template-columns: 260px 1fr; }
.contact-grid { grid-template-columns: minmax(0, 1fr) 430px; }
.resource-grid { grid-template-columns: minmax(0, 1fr) 390px; align-items: start; }

.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; font-weight: 900; margin: 0 0 12px; }
h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 18px; }
h1 { font-size: clamp(2.45rem, 5.8vw, 4.8rem); letter-spacing: -0.055em; }
h2 { font-size: clamp(1.85rem, 4vw, 3.1rem); letter-spacing: -0.04em; }
h3 { font-size: 1.28rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 16px; }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 700px; }
.small, .note, .fine-print { font-size: 0.92rem; color: var(--muted); }
.offer-line { background: #fff7ec; border: 1px solid #f0c79d; border-radius: 14px; padding: 12px 14px; }
.note { margin-top: 16px; }
.fine-print { font-size: 0.82rem; }

.button-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 13px 18px; border-radius: 999px; font-weight: 900; border: 1px solid transparent; cursor: pointer; }
.button:hover { text-decoration: none; transform: translateY(-1px); }
.primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px rgba(22, 62, 56, 0.22); }
.secondary { color: var(--brand); background: #fff; border-color: var(--line); }
.ghost { background: transparent; border-color: rgba(255,255,255,0.55); color: #fff; }

.hero-card, .card, .schedule-card, .contact-card, .cta-card, .resource-card, .app-card, .guide-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.hero-card { padding: 30px; position: relative; }
.hero-card::before { content: ""; position: absolute; inset: 0; border-radius: var(--radius); background: radial-gradient(circle at top right, rgba(195,117,50,0.22), transparent 45%); pointer-events: none; }
.hero-card > * { position: relative; }
.price-badge { margin: 24px 0 14px; padding: 18px; border-radius: 19px; background: #eef7f4; border: 1px solid #cfe4de; }
.price-badge span { display: block; color: var(--brand); font-size: 2.5rem; font-weight: 950; line-height: 1; letter-spacing: -0.04em; }
.price-badge small { color: var(--muted); font-weight: 800; }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 12px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--brand); font-weight: 950; }
.compact-list { margin: 0; padding-left: 1.2rem; }
.compact-list li { margin-bottom: 8px; }

.steps { display: grid; gap: 12px; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; background: #fff; padding: 16px; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.step span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 950; }
.step p { margin: 0; }
.cards { display: grid; gap: 18px; margin-top: 26px; }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.card { padding: 24px; box-shadow: var(--soft-shadow); }
.card p { color: var(--muted); }
.card .icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--accent-soft); color: var(--brand); font-weight: 950; margin-bottom: 16px; }

.schedule-card, .contact-card, .resource-card, .cta-card { padding: 28px; }
.schedule-list { padding-left: 22px; font-weight: 850; }
.schedule-list li { margin: 10px 0; }
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.badge { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 12px; font-weight: 750; font-size: 0.9rem; }

.portrait-placeholder { width: 230px; height: 230px; border-radius: 36px; background: linear-gradient(145deg, var(--brand), var(--accent)); display: grid; place-items: center; box-shadow: var(--shadow); }
.portrait-placeholder span { color: #fff; font-size: 4rem; font-weight: 950; letter-spacing: -0.08em; }

.faq-list { display: grid; gap: 12px; margin-top: 26px; }
details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; }
summary { cursor: pointer; font-weight: 850; }
details p { color: var(--muted); margin: 12px 0 0; }

.cta-band { background: var(--brand); color: #fff; border-radius: 32px; padding: 34px; box-shadow: var(--shadow); }
.cta-band p { color: rgba(255,255,255,0.82); }
.cta-band .eyebrow { color: #ffd5aa; }
.cta-band .button.secondary { color: var(--brand); }
.contact-card a { font-weight: 850; }

.disclaimer { border-left: 4px solid var(--accent); padding-left: 18px; }
.downloads { display: grid; gap: 12px; margin-top: 16px; }
.download-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; font-weight: 850; }
.download-link span { color: var(--muted); font-size: 0.87rem; font-weight: 650; }

.site-footer { padding: 36px 0; background: var(--brand-dark); color: #fff; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer a { color: #fff; }
.site-footer p { margin: 0; color: rgba(255,255,255,0.78); }


.cost-breakdown { margin: 18px 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px; box-shadow: var(--soft-shadow); }
.cost-breakdown h3 { margin-bottom: 12px; }
.cost-row { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; border-top: 1px solid var(--line); padding: 10px 0; }
.cost-row:first-of-type { border-top: 0; }
.cost-row strong { color: var(--brand); white-space: nowrap; }
.cost-row.total { background: #eef7f4; margin: 8px -8px 0; padding: 12px 8px; border-radius: 12px; border-top: 1px solid #cfe4de; }
.cost-row.total strong { color: var(--accent); }
@media (max-width: 520px) { .cost-row { display: grid; gap: 4px; } .cost-row strong { white-space: normal; } }

/* Student guide */
.guide-hero { padding: 64px 0 42px; background: linear-gradient(135deg, var(--brand), #245e55); color: #fff; }
.guide-hero .lead { color: rgba(255,255,255,0.86); }
.guide-hero .eyebrow { color: #ffd5aa; }
.guide-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 34px; align-items: start; }
.guide-nav { position: sticky; top: 96px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--soft-shadow); }
.guide-nav a { display: block; padding: 8px 0; color: var(--ink); font-weight: 700; }
.guide-content { display: grid; gap: 22px; }
.guide-card { padding: 28px; box-shadow: var(--soft-shadow); }
.table-wrap { overflow-x: auto; margin: 18px 0; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
th { background: #efe3d0; font-weight: 900; }
.callout { background: #fff7ec; border-left: 4px solid var(--accent); border-radius: 12px; padding: 14px 16px; margin: 16px 0; }
.callout p:last-child { margin-bottom: 0; }

/* Mobile app page */
.app-body { background: #efe7dc; }
.app-shell { max-width: 480px; margin: 0 auto; min-height: 100vh; background: var(--bg); box-shadow: 0 0 0 1px rgba(0,0,0,0.04); }
.app-top { background: var(--brand); color: #fff; padding: 24px 20px 28px; border-bottom-left-radius: 28px; border-bottom-right-radius: 28px; }
.app-top p { color: rgba(255,255,255,0.8); margin: 0; }
.app-top h1 { font-size: 2rem; margin-bottom: 8px; }
.app-main { padding: 18px; display: grid; gap: 16px; }
.app-card { padding: 18px; box-shadow: var(--soft-shadow); border-radius: 20px; }
.app-card h2 { font-size: 1.25rem; margin-bottom: 10px; }
.app-card p, .app-card li { font-size: 0.95rem; }
.tracker-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin: 12px 0; }
.day-check { display: grid; place-items: center; gap: 4px; font-weight: 800; font-size: 0.8rem; }
.day-check input { width: 24px; height: 24px; accent-color: var(--brand); }
.form-field { display: grid; gap: 6px; margin: 12px 0; }
.form-field input, .form-field textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fff; }
.form-field input[type="range"] { padding: 0; }
.app-footer-nav { position: sticky; bottom: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
.app-footer-nav a { background: #fff; padding: 12px 6px; text-align: center; font-weight: 850; font-size: 0.82rem; color: var(--ink); }

@media (max-width: 980px) {
  .hero-grid, .two-column, .pricing-grid, .about-grid, .contact-grid, .resource-grid { grid-template-columns: 1fr; }
  .cards.four, .cards.three { grid-template-columns: repeat(2, 1fr); }
  .about-grid { align-items: start; }
  .portrait-placeholder { width: 180px; height: 180px; border-radius: 28px; }
  .guide-layout { grid-template-columns: 1fr; }
  .guide-nav { position: static; }
}

@media (max-width: 760px) {
  .container, .narrow { width: min(100% - 28px, 1120px); }
  .header-inner { min-height: 68px; }
  .brand small { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-nav { position: absolute; left: 14px; right: 14px; top: 72px; display: none; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 10px; box-shadow: var(--shadow); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 14px; border-radius: 12px; }
  .site-nav .nav-cta { text-align: center; margin-top: 6px; }
  .section { padding: 58px 0; }
  .hero { padding: 66px 0 52px; }
  .hero-card, .schedule-card, .contact-card, .resource-card, .cta-card, .guide-card { padding: 22px; }
  .cards.four, .cards.three { grid-template-columns: 1fr; }
  .button { width: 100%; }
  .cta-band { border-radius: 24px; padding: 24px; }
  .footer-inner { display: grid; gap: 10px; }
  th, td { min-width: 160px; }
}
/* Make tracker update buttons readable on white backgrounds */
#tracker .button.ghost,
#tracker button.button.ghost {
  color: #111827 !important;
  background: #ffffff;
  border: 1px solid #cbd5e1;
}

#tracker .button.ghost:hover,
#tracker button.button.ghost:hover {
  color: #111827 !important;
  background: #f8fafc;
  border-color: #94a3b8;
}

/* Classic blue text links inside normal page content */
.classic-link {
  color: #0000ee;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.classic-link:visited {
  color: #551a8b;
}

.classic-link:hover,
.classic-link:focus {
  color: #0000ee;
  text-decoration-thickness: 2px;
}