/* =========================================================
   MohanadScales — design tokens (Marketized palette)
   Swap the main highlight by changing --accent / --accent-hover.
   --highlight is the steel-blue used for "actually scale." and numbers.
   ========================================================= */
:root {
  --accent: #F1F0EA;          /* Marketized cream: buttons, filled pill */
  --accent-hover: #C9D8EC;    /* Marketized ice */
  --on-accent: #0E1128;       /* Marketized ink */
  --highlight: #86A3C8;       /* Marketized steel-2 */

  --bg: #060915;              /* midnight */
  --surface: #0B1024;         /* midnight-2 */
  --surface-2: #0E1128;       /* ink */
  --badge-bg: #10162E;
  --border: #1A2238;
  --border-strong: #2C3852;

  --text: #EEF2F8;
  --text-muted: #A3B1C6;
  --text-dim: #8F9DB4;

  --cream: #F1F0EA;
  --cream-2: #E7E5DB;
  --ink: #0E1128;
  --navy: #033C6F;
  --slate: #3A4F66;

  --font-head: "Montserrat", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Montserrat", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --max: 1160px;
  --gutter: 24px;
  --section-y: 72px;
  --radius-card: 16px;
  --radius-lg: 24px;
  --radius-xl: 40px;
}
@media (min-width: 768px) { :root { --section-y: 100px; } }

/* ========== Base ========== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.03em;
  line-height: 1.06;
  text-wrap: balance;
}
p { margin: 0; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 700; }
img, svg { display: block; }
[id] { scroll-margin-top: 24px; }
[hidden] { display: none !important; }

.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--accent); color: var(--on-accent);
  padding: 12px 20px; border-radius: 999px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--highlight); outline-offset: 3px; border-radius: 6px; }
.band-cream :focus-visible, .plan-light :focus-visible { outline-color: var(--navy); }
.accent { color: var(--highlight); }

/* ========== Buttons ========== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border-radius: 999px; border: 1px solid transparent;
  font-family: var(--font-body); font-size: 15px; font-weight: 700; letter-spacing: .01em; line-height: 1.2;
  text-align: center; text-decoration: none; cursor: pointer;
  transition: background-color .25s ease, border-color .25s ease, color .25s ease, transform .2s ease;
}
.btn:focus-visible { border-radius: 999px; }
.btn .arrow {
  width: 28px; height: 28px; margin-right: -12px; border-radius: 50%;
  display: grid; place-items: center; transition: transform .35s ease;
}
.btn:hover .arrow { transform: rotate(-45deg); }
.btn-accent { background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 40px -12px rgba(93, 125, 166, .7); }
.btn-accent:hover { background: var(--accent-hover); }
.btn-accent .arrow { background: var(--on-accent); color: var(--accent); }
.btn-outline { background: rgba(255, 255, 255, .02); color: var(--text); border-color: var(--border-strong); }
.btn-outline:hover { border-color: var(--highlight); background: rgba(255, 255, 255, .05); }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { background: var(--navy); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 14px; }
.btn-lg { min-height: 56px; padding: 0 32px; font-size: 16px; }
.btn-block { width: 100%; }
@media (prefers-reduced-motion: no-preference) { .btn:active { transform: scale(.98); } }

/* ========== Eyebrows / heads ========== */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--highlight);
  margin-bottom: 16px;
}
.band-cream .eyebrow { color: var(--navy); }
h2, .section-title { font-size: clamp(30px, 4vw, 46px); line-height: 1.08; }
.section-title { max-width: 820px; }
.section-sub { margin-top: 18px; max-width: 640px; color: var(--text-muted); }
.section { padding-block: var(--section-y); }
.section-tight-top { padding-top: 0; }

/* ========== Header ========== */
.site-header { border-bottom: 1px solid var(--border); }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand {
  font-family: var(--font-head); font-size: 19px; font-weight: 900; letter-spacing: -0.02em;
  text-decoration: none; white-space: nowrap; min-height: 44px;
  display: inline-flex; align-items: center;
}
.brand-mark {
  width: 30px; height: 30px; margin-right: 10px; border-radius: 9px;
  background: var(--cream); color: var(--ink);
  display: grid; place-items: center; font-size: 16px; font-weight: 900;
}
.brand-thin { font-weight: 300; color: var(--text-muted); }

/* ========== Hero ========== */
.hero { padding-block: 48px var(--section-y); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70%; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(10, 76, 138, .35), transparent);
  pointer-events: none;
}
@media (min-width: 768px) { .hero { padding-top: 72px; } }
.hero-grid { position: relative; display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1fr 400px; gap: 56px; } }
@media (min-width: 1200px) { .hero-grid { grid-template-columns: 1fr 440px; } }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--badge-bg); color: var(--cream);
  font-size: 14px; font-weight: 600;
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border-strong);
}
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: #3DDC97; box-shadow: 0 0 0 4px rgba(61, 220, 151, .15); }
.hero h1 {
  margin-top: 24px;
  font-size: clamp(40px, 7vw, 84px);
  font-weight: 900; line-height: 1.02; letter-spacing: -0.035em;
}
@media (min-width: 1024px) { .hero h1 { font-size: clamp(48px, 5.4vw, 72px); } }
.hero-sub { margin-top: 24px; max-width: 600px; font-size: 18px; color: var(--text-muted); }
.btn-row { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 479px) { .btn-row .btn { flex: 1 1 100%; } }

.portrait {
  position: relative; margin: 0;
  border-radius: var(--radius-xl); overflow: hidden;
  aspect-ratio: 4 / 4.6;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  max-width: 520px;
}
@media (min-width: 1024px) { .portrait { max-width: none; } }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.portrait::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(6, 9, 21, .9));
  pointer-events: none;
}
.portrait-tag {
  position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 12px 12px 18px; border-radius: 18px;
  background: rgba(6, 9, 21, .82);
  border: 1px solid rgba(201, 216, 236, .18);
}
.portrait-tag > span { display: grid; line-height: 1.3; }
.portrait-tag b { font-weight: 700; font-size: 16px; }
.portrait-tag span span { font-size: 13px; color: var(--text-muted); }
.portrait-tag a {
  width: 44px; height: 44px; border-radius: 12px; flex: none;
  display: grid; place-items: center; background: var(--cream); color: var(--ink);
}
.portrait-tag a:hover { background: var(--accent-hover); }

.stats {
  position: relative;
  margin: 56px 0 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border);
  border-radius: var(--radius-card); overflow: hidden;
}
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); margin-top: 72px; } }
.stat { background: var(--bg); padding: 22px 18px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
@media (min-width: 768px) { .stat { padding: 28px 26px; } }
.stat-num {
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(24px, 3.2vw, 38px); line-height: 1.05; letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}
.stat-label { margin: 0; font-size: 14px; line-height: 1.45; color: var(--text-dim); }

/* ========== Bands ========== */
.band { position: relative; border-radius: var(--radius-xl); margin-inline: clamp(8px, 1.5vw, 20px); overflow: hidden; }
.band-cream { background: var(--cream); color: var(--ink); }
.band-cream::before {
  content: ""; position: absolute; inset: 0; opacity: .3; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/><feColorMatrix values='0 0 0 0 0.23 0 0 0 0 0.31 0 0 0 0 0.4 0 0 0 .5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.band-cream > .container { position: relative; }
.band-navy {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 140% at 85% 0%, #0A4C8A 0%, #033C6F 38%, #0B1638 100%);
  color: var(--text);
  border: 1px solid rgba(134, 163, 200, .18);
}
.band-navy::after {
  content: ""; position: absolute; right: -8%; top: -25%; width: 46%; aspect-ratio: 1;
  background: url(/assets/marketized-mark.webp) center / contain no-repeat;
  opacity: .06; filter: grayscale(1) brightness(3); pointer-events: none;
}

/* ========== Goal ========== */
.goal { padding-block: var(--section-y); }
.goal-grid { display: grid; gap: 32px; }
@media (min-width: 1024px) { .goal-grid { grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; } }
.goal-body { display: grid; gap: 20px; color: var(--slate); }
.goal-body strong { color: var(--ink); }

/* ========== Track record ========== */
.track { border-radius: var(--radius-lg); padding: 36px 24px; }
@media (min-width: 768px) { .track { padding: 56px; } }
.track > * { position: relative; z-index: 1; }
.track .eyebrow { color: var(--highlight); }
.track-head { display: grid; gap: 20px; }
@media (min-width: 1024px) { .track-head { grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: end; } }
.track-sub { color: rgba(238, 242, 248, .78); }
.track-stats {
  margin: 40px 0 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 20px;
}
@media (min-width: 768px) { .track-stats { grid-template-columns: repeat(4, 1fr); } }
.tstat { border-top: 1px solid rgba(201, 216, 236, .22); padding-top: 18px; min-width: 0; }
.tstat-num {
  font-family: var(--font-head); font-weight: 900;
  font-size: clamp(34px, 4.6vw, 56px); line-height: 1; letter-spacing: -0.04em;
}
.tstat dd { margin: 10px 0 0; font-size: 14px; line-height: 1.45; color: rgba(238, 242, 248, .78); }
.track-note { margin-top: 32px; font-size: 13px; color: rgba(238, 242, 248, .7); }
.track-note a { color: var(--text); text-underline-offset: 3px; }

/* ========== Curriculum ========== */
.topics {
  margin-top: 48px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 12px;
}
.topic {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 18px;
  font-weight: 600; line-height: 1.4; min-height: 132px;
  transition: border-color .2s ease;
}
.topic:hover { border-color: var(--border-strong); }
@media (max-width: 599px) {
  .topic { flex-direction: row; align-items: baseline; gap: 16px; min-height: 0; padding: 18px 20px; }
  .topic-num { flex: none; width: 24px; }
}
.topic-num { font-family: var(--font-mono); font-weight: 500; font-size: 14px; color: var(--highlight); }

/* ========== Outcome ========== */
.outcome {
  margin-top: 64px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px 24px;
}
@media (min-width: 768px) { .outcome { padding: 56px; } }
.outcome h2 { max-width: 860px; }
.pills { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px;
  border-radius: 999px; border: 1px solid var(--border-strong); font-weight: 600; color: var(--text);
}
.pill-accent { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 700; }

/* ========== Student stories ========== */
.stories { padding-block: var(--section-y); }
.stories .section-title { color: var(--ink); }
.stories-grid {
  margin-top: 40px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 16px;
}
.story {
  margin: 0; background: #fff; border: 1px solid #DAD8CE; border-radius: var(--radius-lg);
  padding: 28px; display: flex; flex-direction: column; gap: 20px;
}
.story-result {
  align-self: flex-start; font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  background: var(--ink); color: var(--cream); padding: 6px 12px; border-radius: 999px;
}
.story blockquote { margin: 0; color: var(--slate); font-size: 16px; }
.story figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.story-avatar {
  width: 48px; height: 48px; border-radius: 14px; flex: none; object-fit: cover;
  background: var(--ink); color: var(--cream); display: grid; place-items: center; font-weight: 800;
}
.story figcaption b { display: block; color: var(--ink); }
.story figcaption span span { font-size: 14px; color: var(--slate); }

/* ========== Programs ========== */
.plans { margin-top: 48px; display: grid; gap: 20px; }
@media (min-width: 900px) { .plans { grid-template-columns: 1fr 1fr; gap: 24px; } }
.plan { border-radius: var(--radius-lg); padding: 32px 24px; display: flex; flex-direction: column; }
@media (min-width: 768px) { .plan { padding: 40px; } }
.plan-light { background: var(--cream); color: var(--ink); }
.plan-dark { background: var(--surface); border: 1px solid var(--border-strong); }
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.plan-name { font-family: var(--font-mono); font-size: 14px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.14em; }
.plan-badge { font-size: 13px; font-weight: 700; padding: 6px 14px; border-radius: 999px; white-space: nowrap; }
.plan-badge-dark { background: var(--ink); color: var(--cream); }
.plan-badge-outline { border: 1px solid var(--border-strong); color: var(--text); }
.plan-desc { margin-top: 20px; color: var(--text-muted); }
.plan-light .plan-desc { color: var(--slate); }
.price { margin-top: 28px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; }
.price-now { font-family: var(--font-head); font-weight: 900; font-size: clamp(48px, 6vw, 64px); line-height: 1; letter-spacing: -0.04em; }
.price-was { font-family: var(--font-head); font-size: 22px; font-weight: 500; color: var(--text-dim); text-decoration-thickness: 2px; }
.plan-light .price-was, .plan-light .price-note { color: #4A5568; }
.price-note { margin-top: 10px; font-size: 14px; color: var(--text-dim); }
.checklist {
  margin: 28px 0 32px; padding-top: 28px; border-top: 1px solid var(--border);
  display: grid; gap: 14px; flex: 1; align-content: start;
}
.plan-light .checklist { border-top-color: #D9D7CC; }
.checklist li { position: relative; padding-left: 32px; line-height: 1.5; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.6L14 7.5' fill='none' stroke='%230E1128' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.plan-light .checklist li::before {
  background-color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.6L14 7.5' fill='none' stroke='%23F1F0EA' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
@media (max-width: 479px) {
  .plan { padding: 28px 20px; }
  .plan .btn-block { padding-inline: 16px; font-size: 14px; }
}
.plan .btn-block [data-price] { white-space: nowrap; }

/* ========== Final CTA ========== */
.final { border-top: 1px solid var(--border); padding-block: var(--section-y); }
.final-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.final h2 { max-width: 760px; font-size: clamp(34px, 5vw, 60px); font-weight: 900; }
.final .section-sub { margin-inline: auto; }
.final .btn-lg { margin-top: 36px; }
@media (max-width: 479px) { .final .btn-lg { width: 100%; padding-inline: 20px; } }

/* ========== Footer ========== */
.site-footer { border-top: 1px solid var(--border); }
.footer-inner {
  min-height: 88px; padding-block: 20px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px;
  font-size: 15px; color: var(--text-dim);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footer-links a { color: var(--text); text-underline-offset: 4px; min-height: 44px; display: inline-flex; align-items: center; }
.footer-links a:hover { color: var(--highlight); }

/* ========== Sticky mobile CTA ========== */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(6, 9, 21, .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  transform: translateY(110%); visibility: hidden;
  transition: transform .25s ease, visibility 0s linear .25s;
}
.sticky-cta.is-visible { transform: none; visibility: visible; transition: transform .25s ease, visibility 0s; }
@media (min-width: 768px) { .sticky-cta { display: none; } }
@media (max-width: 767px) {
  body.has-sticky .site-footer { padding-bottom: 80px; }
  body.has-sticky .consent { bottom: 88px; }
}

/* ========== Consent bar ========== */
.consent {
  position: fixed; z-index: 50; left: 12px; right: 12px; bottom: 12px;
  max-width: 560px; margin-inline: auto;
  background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: var(--radius-card);
  padding: 16px 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px;
  font-size: 14px; color: var(--text-muted); box-shadow: 0 12px 40px rgba(0, 0, 0, .5);
}
.consent p { flex: 1 1 240px; }
.consent-actions { display: flex; gap: 8px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* small-phone fit (Montserrat runs wide) */
.header-inner .btn-sm { white-space: nowrap; }
.stat-num { overflow-wrap: normal; }
@media (max-width: 479px) {
  .brand { font-size: 17px; }
  .brand-mark { width: 26px; height: 26px; margin-right: 8px; font-size: 14px; border-radius: 8px; }
  .header-inner .btn-sm { padding: 0 14px; font-size: 13px; }
  .stat { padding: 20px 16px; }
  .stat-num { font-size: 22px; letter-spacing: -0.04em; }
}
@media (max-width: 400px) {
  .brand-mark { display: none; }
}
@media (max-width: 360px) {
  :root { --gutter: 16px; }
  .brand { font-size: 15px; }
  .header-inner { gap: 8px; }
  .header-inner .btn-sm { padding: 0 12px; font-size: 12px; }
}
