/* Learn AI with Meghana — brand tokens */
:root {
  --cream: #FFFAE7;
  --cream-2: #F6EFD6;
  --red: #D02E2E;
  --red-dark: #A82222;
  --ink: #2F2D2D;
  --ink-2: #1C1917;
  --muted: #6B6560;
  --line: #E0DBCB;
  --radius: 4px;
  --wrap: 1180px;
  --head: "Anton", "Arial Narrow", sans-serif;
  --body: "Open Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { font-family: var(--head); font-weight: 400; text-transform: uppercase; line-height: 0.98; letter-spacing: 0.01em; margin: 0; }
h1 { font-size: clamp(56px, 11vw, 120px); }
h2 { font-size: clamp(40px, 6.5vw, 68px); }
h3 { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.1; }
p { margin: 0; }
.red { color: var(--red); }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.lede { font-size: clamp(17px, 2vw, 20px); max-width: 560px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px;
  font-family: var(--body); font-weight: 700; font-size: 15px;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-red { background: var(--red); color: var(--cream); }
.btn-red:hover { background: var(--red-dark); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-line:hover { border-color: var(--ink); }
.btn-cream { background: var(--cream); color: var(--ink); }
.btn .arr { transition: transform .2s ease; }
.btn:hover .arr { transform: translate(2px, -2px); }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Top bar + header */
.topbar { background: var(--red); color: var(--cream); text-align: center; font-size: 13px; font-weight: 600; padding: 9px 16px; }
.topbar a { text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.site-header { border-bottom: 1px solid var(--line); background: var(--cream); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.mark { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--red); color: var(--cream); font-family: var(--head); font-size: 20px; text-decoration: none; }
.nav { display: flex; gap: 24px; align-items: center; font-size: 14px; font-weight: 600; }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--red); }
@media (max-width: 720px) { .nav a:not(.btn) { display: none; } .nav .btn { padding: 10px 18px; font-size: 14px; } }

/* Sections */
section { padding: clamp(64px, 9vw, 112px) 0; }
.section-head { display: grid; gap: 14px; margin-bottom: 40px; max-width: 760px; }

/* Hero */
.hero { padding-top: clamp(40px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero-copy { display: grid; gap: 22px; }
.hero h1 span { display: block; }
.hero .tagline { font-family: var(--head); text-transform: uppercase; font-size: clamp(22px, 3vw, 30px); color: var(--red); line-height: 1.1; }
.photo { border-radius: var(--radius); overflow: hidden; background: var(--cream-2); aspect-ratio: 4/5; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .photo { aspect-ratio: 4/4.4; } }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: clamp(48px, 7vw, 80px); }
.stat { padding: 28px 20px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-family: var(--head); font-weight: 400; font-size: clamp(36px, 5vw, 56px); line-height: 1; color: var(--red); }
.stat span { font-size: 14px; color: var(--muted); font-weight: 600; }
@media (max-width: 720px) { .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(3) { border-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-copy { display: grid; gap: 22px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600; }
.chip.solid { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* Dark band */
.dark { background: var(--ink-2); color: var(--cream); }
.dark .eyebrow { color: #B5AC9C; }
.dark .btn-line { color: var(--cream); border-color: #4A4540; }
.dark .btn-line:hover { border-color: var(--cream); }
.flagship { display: grid; gap: 22px; max-width: 820px; }

/* Marquee */
.marquee { background: var(--red); color: var(--cream); overflow: hidden; padding: 14px 0; white-space: nowrap; }
.marquee.ink { background: var(--ink); }
.marquee-track { display: inline-flex; gap: 40px; animation: marquee 28s linear infinite; font-family: var(--head); font-size: 24px; text-transform: uppercase; letter-spacing: .02em; }
.marquee-track span::after { content: "✦"; margin-left: 40px; font-size: 16px; vertical-align: middle; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }
.card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  display: grid; gap: 12px; align-content: start; text-decoration: none; background: var(--cream);
  transition: border-color .2s ease, transform .2s ease;
}
a.card:hover { border-color: var(--ink); transform: translateY(-3px); }
.card .num { font-family: var(--head); font-size: 18px; color: var(--red); }
.card .meta { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.card .go { font-weight: 700; color: var(--red); font-size: 14px; margin-top: 6px; }

/* Guides list */
.guides { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.guide { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: baseline; padding: 18px 4px; border-bottom: 1px solid var(--line); text-decoration: none; }
.guide:nth-child(odd) { padding-right: 24px; }
.guide:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
.guide .n { font-family: var(--head); color: var(--red); font-size: 18px; }
.guide b { display: block; }
.guide small { color: var(--muted); font-size: 14px; }
.guide .arr { color: var(--red); font-weight: 700; }
.guide:hover b { color: var(--red); }
@media (max-width: 720px) { .guides { grid-template-columns: 1fr; } .guide:nth-child(n) { padding: 18px 4px; border-left: 0; } }

/* Challenge: price + days */
.price-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 16px; background: var(--cream); color: var(--ink); }
.price { display: flex; align-items: baseline; gap: 12px; }
.price b { font-family: var(--head); font-weight: 400; font-size: 64px; line-height: 1; color: var(--red); }
.price s { color: var(--muted); font-size: 20px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ticks li { padding-left: 26px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 8px; border-left: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(-45deg); }
.ticks.cross li::before { width: 14px; height: 14px; top: 5px; border: 0; transform: none; background: linear-gradient(45deg, transparent 44%, var(--muted) 44%, var(--muted) 56%, transparent 56%), linear-gradient(-45deg, transparent 44%, var(--muted) 44%, var(--muted) 56%, transparent 56%); }

.before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.before-after > div { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 8px; }
.before-after > div:last-child { background: var(--red); color: var(--cream); border-color: var(--red); }
.before-after .eyebrow { color: inherit; opacity: .75; }
.before-after p { font-family: var(--head); text-transform: uppercase; font-size: 26px; line-height: 1.05; }
@media (max-width: 560px) { .before-after { grid-template-columns: 1fr; } }

.days { border-top: 1px solid var(--line); }
.day { display: grid; grid-template-columns: 72px 1fr auto; gap: 20px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line); }
.day .n { font-family: var(--head); font-size: 40px; color: var(--red); line-height: 1; }
.day p { color: var(--muted); }
.day .time { font-size: 13px; font-weight: 700; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; white-space: nowrap; }
@media (max-width: 560px) { .day { grid-template-columns: 48px 1fr; } .day .time { grid-column: 2; justify-self: start; } .day .n { font-size: 30px; } }

.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fit > div { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 14px; align-content: start; }
@media (max-width: 720px) { .fit { grid-template-columns: 1fr; } }

.quote { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: center; }
.quote .photo { aspect-ratio: 1; border-radius: 50%; }
.quote .sig { font-weight: 700; color: var(--red); }
@media (max-width: 720px) { .quote { grid-template-columns: 1fr; } .quote .photo { width: 160px; } }

/* FAQ */
.faq { border-top: 1px solid var(--line); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font-weight: 700; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 28px; color: var(--red); font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 680px; }

/* Forms */
.form { display: grid; gap: 12px; width: 100%; max-width: 460px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .form .row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 700; }
.field input {
  width: 100%; padding: 14px 16px; font: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.field input:focus { outline: 2px solid var(--red); outline-offset: 1px; border-color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { font-size: 14px; font-weight: 600; min-height: 1.4em; }
.form-msg.ok { color: #1F7A3E; }
.form-msg.err { color: var(--red); }
.dark .form-msg.ok { color: #8FD3A5; }
.dark .form-msg.err { color: #FF8A8A; }
.small { font-size: 13px; color: var(--muted); }
.dark .small { color: #B5AC9C; }

/* Final CTA */
.final { text-align: center; }
.final .wrap { display: grid; gap: 24px; justify-items: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; font-weight: 600; }
.site-footer a:hover { color: var(--red); }

/* Notice */
.notice { background: var(--ink); color: var(--cream); text-align: center; padding: 12px 16px; font-size: 14px; font-weight: 600; }

/* Auth + learn */
.auth { min-height: 72vh; display: grid; place-items: center; padding: 64px 0; }
.auth-box { width: 100%; max-width: 460px; display: grid; gap: 20px; }
.learn-layout { display: grid; grid-template-columns: 260px 1fr; gap: 40px; padding: 40px 0 80px; }
.lesson-nav { position: sticky; top: 88px; align-self: start; display: grid; gap: 4px; }
.lesson-nav button {
  text-align: left; background: transparent; border: 1px solid transparent; border-radius: var(--radius);
  padding: 12px 14px; font: inherit; font-size: 15px; cursor: pointer; color: var(--ink); display: flex; gap: 12px; align-items: baseline;
}
.lesson-nav button .n { font-family: var(--head); color: var(--red); }
.lesson-nav button:hover { border-color: var(--line); }
.lesson-nav button[aria-current="true"] { background: var(--ink); color: var(--cream); }
.lesson-nav button.done .n::after { content: " ✓"; font-family: var(--body); font-size: 12px; }
.lesson { display: grid; gap: 22px; align-content: start; }
.video { aspect-ratio: 16/9; background: var(--ink); border-radius: var(--radius); overflow: hidden; display: grid; place-items: center; color: #B5AC9C; font-size: 14px; }
.video iframe { width: 100%; height: 100%; border: 0; }
.lesson-body { display: grid; gap: 14px; max-width: 720px; }
.lesson-body ul, .lesson-body ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.downloads { display: flex; flex-wrap: wrap; gap: 10px; }
.lesson-note { border-left: 3px solid var(--red); padding: 12px 16px; background: var(--cream-2); border-radius: 0 var(--radius) var(--radius) 0; }
.checklist { display: grid; gap: 8px; }
.checklist label { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; background: #fff; }
.checklist input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--red); flex-shrink: 0; }
.checklist input:checked + span { text-decoration: line-through; color: var(--muted); }
@media (max-width: 860px) { .learn-layout { grid-template-columns: 1fr; } .lesson-nav { position: static; grid-auto-flow: column; overflow-x: auto; } .lesson-nav button { white-space: nowrap; } }

:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

[hidden] { display: none !important; }
