:root {
  --mc-purple: #6b238e;
  --mc-purple-dark: #47155f;
  --mc-lime: #b9e800;
  --mc-cyan: #159db5;
  --mc-paper: #fcfbfd;
  --mc-ink: #17131c;
  --mc-night: #1d1722;
  --mc-line: rgba(29, 23, 34, .14);
  --mc-soft: #f3f1f5;
}

* { letter-spacing: 0; }
body { overflow-x: hidden; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
.mobile-codex-page .site-brand img { width: 174px; height: 32px; object-fit: contain; object-position: left center; }
.mc-kicker { margin: 0 0 16px; color: var(--mc-purple); font-size: 13px; font-weight: 800; }

.mc-hero { position: relative; min-height: 680px; overflow: hidden; border-bottom: 1px solid var(--mc-line); background: #eee9e2; }
.mc-hero::before { position: absolute; z-index: 1; inset: 0 auto 0 0; width: 52%; background: rgba(252, 251, 253, .84); content: ""; }
.mc-hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.mc-hero-copy { position: relative; z-index: 2; display: grid; align-content: center; min-height: 680px; padding-block: 64px; }
.mc-hero h1 { max-width: 680px; margin: 0; color: var(--mc-ink); font-family: var(--font-display); font-size: 72px; font-weight: 800; line-height: 1.02; }
.mc-lead { max-width: 620px; margin: 28px 0 0; color: #3f3943; font-size: 19px; line-height: 1.8; }
.mc-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.mc-actions button { border: 0; cursor: pointer; }
.mc-actions .btn-primary, .mc-actions .btn-secondary { gap: 8px; border-radius: 8px; }
.mc-proof { display: flex; flex-wrap: wrap; gap: 18px; margin: 26px 0 0; color: #4f4853; font-size: 13px; font-weight: 700; }
.mc-proof span::before { margin-right: 6px; color: #5d7600; content: "✓"; }

.mc-outcome { border-bottom: 1px solid var(--mc-line); background: #fff; }
.mc-outcome-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mc-outcome-grid div { min-height: 112px; padding: 26px 24px; border-left: 1px solid var(--mc-line); }
.mc-outcome-grid div:last-child { border-right: 1px solid var(--mc-line); }
.mc-outcome-grid strong, .mc-outcome-grid span { display: block; }
.mc-outcome-grid strong { color: var(--mc-ink); font-size: 22px; }
.mc-outcome-grid span { margin-top: 4px; color: #6a636e; font-size: 13px; }

.mc-section { padding: 112px 0; }
.mc-section-heading { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .75fr); align-items: end; gap: 72px; margin-bottom: 52px; }
.mc-section-heading h2, .mc-flow h2, .mc-acceptance-layout h2, .mc-faq-layout h2, .mc-final h2 { margin: 0; font-family: var(--font-display); font-size: 48px; line-height: 1.16; }
.mc-section-heading > p { margin: 0; color: #615a65; font-size: 16px; }

.mc-route-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.mc-route { position: relative; min-height: 430px; padding: 36px; border: 1px solid var(--mc-line); border-radius: 8px; background: #fff; }
.mc-route.recommended { border-top: 6px solid var(--mc-lime); }
.mc-route.advanced { border-top: 6px solid var(--mc-purple); background: var(--mc-night); color: #fff; }
.mc-route-label { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.mc-route-label span { padding: 4px 10px; border-radius: 6px; color: #2c3700; background: var(--mc-lime); font-size: 12px; font-weight: 900; }
.advanced .mc-route-label span { color: #fff; background: var(--mc-purple); }
.mc-route-label small { color: #77707b; }
.advanced .mc-route-label small { color: #c8c0cc; }
.mc-route h3 { margin: 30px 0 14px; font-size: 30px; }
.mc-route > p { color: #5f5863; }
.mc-route.advanced > p { color: #d6cfd9; }
.mc-route ol { display: grid; gap: 10px; margin: 28px 0 32px; padding-left: 22px; }
.mc-route a, .mc-text-action { color: var(--mc-purple); font-weight: 800; }
.mc-route.advanced a, .mc-route.advanced .mc-text-action { color: #d5f86d; }
.mc-text-action { padding: 0; border: 0; background: transparent; cursor: pointer; }
.mc-boundary { margin: 24px 0 0; padding: 20px 24px; border-left: 4px solid var(--mc-cyan); color: #4f4853; background: #f0f8fa; }

.mc-flow { padding: 104px 0; color: #fff; background: var(--mc-night); }
.mc-flow .mc-kicker { color: #d5f86d; }
.mc-flow-head { display: grid; grid-template-columns: 220px 1fr; align-items: start; gap: 48px; }
.mc-flow-line { display: grid; grid-template-columns: 1fr 28px 1fr 28px 1fr 28px 1fr; align-items: center; gap: 10px; margin-top: 64px; }
.mc-flow-line > div { min-height: 150px; padding: 24px; border-top: 3px solid var(--mc-lime); background: #2b2430; }
.mc-flow-line span, .mc-flow-line strong, .mc-flow-line small { display: block; }
.mc-flow-line span { color: #d5f86d; font-size: 12px; font-weight: 800; }
.mc-flow-line strong { margin-top: 18px; font-size: 20px; }
.mc-flow-line small { margin-top: 4px; color: #c9c1cd; }
.mc-flow-line i { color: #d5f86d; font-size: 26px; font-style: normal; text-align: center; }
.mc-flow blockquote { max-width: 880px; margin: 54px 0 0 auto; padding: 0 0 0 24px; border-left: 4px solid var(--mc-cyan); color: #eee8f0; font-family: var(--font-display); font-size: 24px; }

.prompt-section { background: var(--mc-soft); }
.mc-prompt-tool { overflow: hidden; border: 1px solid #332c38; border-radius: 8px; background: #17141a; }
.mc-prompt-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 10px 14px; border-bottom: 1px solid #38313d; }
.mc-tabs { display: flex; gap: 6px; }
.mc-tabs button { min-height: 40px; padding: 0 15px; border: 1px solid transparent; border-radius: 6px; color: #c9c2cc; background: transparent; cursor: pointer; }
.mc-tabs button[aria-selected="true"] { border-color: #6b5f72; color: #fff; background: #332c38; }
.mc-prompt-actions { display: flex; gap: 8px; }
.mc-icon-button, .mc-icon-link { display: inline-grid; width: 40px; height: 40px; place-items: center; border: 1px solid #574e5c; border-radius: 6px; color: #fff; background: transparent; text-decoration: none; cursor: pointer; }
.mc-prompt-tool pre { min-height: 480px; max-height: 620px; margin: 0; padding: 28px; overflow: auto; color: #eee8f0; background: #17141a; font: 14px/1.8 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.mc-prompt-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 18px; border-top: 1px solid #38313d; color: #aaa1ae; font-size: 13px; }
.mc-prompt-footer .btn-primary { gap: 8px; min-height: 42px; border: 0; border-radius: 8px; cursor: pointer; }

.lesson-section { background: #fff; }
.mc-lesson-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--mc-line); border-bottom: 1px solid var(--mc-line); }
.mc-lesson-grid article { min-height: 290px; padding: 30px 26px; border-left: 1px solid var(--mc-line); }
.mc-lesson-grid article:last-child { border-right: 1px solid var(--mc-line); }
.mc-lesson-grid span { color: var(--mc-purple); font-size: 12px; font-weight: 900; }
.mc-lesson-grid h3 { margin: 40px 0 12px; font-size: 22px; }
.mc-lesson-grid p { margin: 0; color: #665f6a; }

.acceptance-section { color: #fff; background: var(--mc-purple-dark); }
.mc-acceptance-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(420px, 1.2fr); gap: 86px; }
.mc-acceptance-layout .mc-kicker { color: #d5f86d; }
.mc-acceptance-layout > div > p:not(.mc-kicker) { max-width: 500px; color: #e0d5e5; }
.mc-acceptance-layout .btn-secondary { margin-top: 22px; border-color: #d5f86d; color: #283400; background: #d5f86d; cursor: pointer; }
.mc-checklist { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.22); }
.mc-checklist li { display: grid; grid-template-columns: 58px 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,.22); }
.mc-checklist li > span { color: #d5f86d; font-weight: 900; }
.mc-checklist strong { font-size: 18px; }
.mc-checklist p { margin: 3px 0 0; color: #d7cddd; font-size: 14px; }

.mc-faq-layout { display: grid; grid-template-columns: minmax(240px, .55fr) minmax(0, 1.45fr); gap: 80px; }
.mc-faq-list { border-top: 1px solid var(--mc-line); }
.mc-faq-list details { border-bottom: 1px solid var(--mc-line); }
.mc-faq-list summary { position: relative; padding: 24px 44px 24px 0; font-size: 18px; font-weight: 800; cursor: pointer; list-style: none; }
.mc-faq-list summary::-webkit-details-marker { display: none; }
.mc-faq-list summary::after { position: absolute; top: 24px; right: 4px; color: var(--mc-purple); content: "+"; }
.mc-faq-list details[open] summary::after { content: "−"; }
.mc-faq-list details p { max-width: 760px; margin: 0 0 24px; color: #625b66; }

.mc-final { padding: 88px 0; color: #fff; background: #164b57; }
.mc-final .mc-kicker { color: #d5f86d; }
.mc-final-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 70px; }
.mc-final-layout > div:last-child { display: grid; justify-items: start; gap: 18px; }
.mc-final .btn-primary { border: 0; border-radius: 8px; color: #243000; background: var(--mc-lime); cursor: pointer; }
.mc-final p { margin: 0; color: #cce0e4; }
.mc-final a { color: #fff; }

@media (max-width: 960px) {
  .mc-hero::before { width: 66%; }
  .mc-hero h1 { font-size: 58px; }
  .mc-outcome-grid { grid-template-columns: 1fr 1fr; }
  .mc-outcome-grid div:nth-child(3) { border-top: 1px solid var(--mc-line); }
  .mc-outcome-grid div:nth-child(4) { border-top: 1px solid var(--mc-line); }
  .mc-section-heading { grid-template-columns: 1fr; gap: 24px; }
  .mc-flow-head { grid-template-columns: 1fr; gap: 12px; }
  .mc-flow-line { grid-template-columns: 1fr 20px 1fr; }
  .mc-flow-line i:nth-of-type(2) { display: none; }
  .mc-flow-line > div:nth-of-type(3), .mc-flow-line > div:nth-of-type(4) { margin-top: 12px; }
  .mc-lesson-grid { grid-template-columns: 1fr 1fr; }
  .mc-lesson-grid article:nth-child(3), .mc-lesson-grid article:nth-child(4) { border-top: 1px solid var(--mc-line); }
  .mc-acceptance-layout { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 767px) {
  .mobile-codex-page .site-brand img { width: 32px; height: 32px; object-fit: cover; object-position: left; }
  .mc-hero { min-height: 620px; }
  .mc-hero::before { width: 100%; background: rgba(252, 251, 253, .80); }
  .mc-hero-media { object-position: 42% center; }
  .mc-hero-copy { min-height: 620px; padding-block: 52px; }
  .mc-hero h1 { font-size: 44px; }
  .mc-lead { max-width: 36ch; font-size: 16px; }
  .mc-actions { align-items: stretch; flex-direction: column; }
  .mc-actions .btn-primary, .mc-actions .btn-secondary { width: 100%; }
  .mc-proof { gap: 8px 14px; }
  .mc-outcome-grid div { min-height: 96px; padding: 20px 16px; }
  .mc-outcome-grid strong { font-size: 18px; }
  .mc-section { padding: 76px 0; }
  .mc-section-heading { margin-bottom: 34px; }
  .mc-section-heading h2, .mc-flow h2, .mc-acceptance-layout h2, .mc-faq-layout h2, .mc-final h2 { font-size: 34px; }
  .mc-route-grid { grid-template-columns: 1fr; }
  .mc-route { min-height: 0; padding: 26px 22px; }
  .mc-route h3 { font-size: 25px; }
  .mc-flow { padding: 76px 0; }
  .mc-flow-line { grid-template-columns: 1fr; gap: 8px; margin-top: 42px; }
  .mc-flow-line i { transform: rotate(90deg); }
  .mc-flow-line i:nth-of-type(2) { display: block; }
  .mc-flow-line > div:nth-of-type(3), .mc-flow-line > div:nth-of-type(4) { margin-top: 0; }
  .mc-flow-line > div { min-height: 118px; }
  .mc-flow blockquote { margin-top: 38px; font-size: 20px; }
  .mc-prompt-toolbar { align-items: stretch; flex-direction: column; }
  .mc-tabs { display: grid; grid-template-columns: 1fr; }
  .mc-tabs button { text-align: left; }
  .mc-prompt-actions { justify-content: flex-end; }
  .mc-prompt-tool pre { min-height: 420px; max-height: 540px; padding: 20px; font-size: 12px; }
  .mc-prompt-footer { align-items: stretch; flex-direction: column; }
  .mc-prompt-footer .btn-primary { width: 100%; }
  .mc-lesson-grid { grid-template-columns: 1fr; }
  .mc-lesson-grid article { min-height: 0; border-right: 1px solid var(--mc-line); border-bottom: 1px solid var(--mc-line); }
  .mc-lesson-grid article + article { border-top: 0; }
  .mc-lesson-grid article:last-child { border-bottom: 0; }
  .mc-lesson-grid h3 { margin-top: 24px; }
  .mc-acceptance-layout { gap: 38px; }
  .mc-checklist li { grid-template-columns: 44px 1fr; }
  .mc-faq-layout { grid-template-columns: 1fr; gap: 36px; }
  .mc-final-layout { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 360px) {
  .mc-hero h1 { font-size: 38px; }
  .mc-outcome-grid { grid-template-columns: 1fr; }
  .mc-outcome-grid div { border-right: 1px solid var(--mc-line); border-bottom: 1px solid var(--mc-line); }
  .mc-outcome-grid div:last-child { border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .mc-hero-media { animation: none; }
}
