/* =========================================================
   Learn with Palla — Design System
   Modern dark theme with code/developer accents
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --bg:          #0a0e14;
  --bg-2:        #0d121b;
  --surface:     #111824;
  --surface-2:   #161f2e;
  --surface-3:   #1d2737;
  --border:      #1e2a3a;
  --border-2:    #2a3a4f;

  --text:        #e6edf3;
  --muted:       #93a4b8;
  --faint:       #7e8da2;

  --primary:     #34d399; /* emerald */
  --primary-2:   #22d3ee; /* cyan    */
  --accent:      #818cf8; /* indigo  */
  --purple:      #c084fc;
  --pink:        #f472b6;
  --amber:       #fbbf24;

  --grad:        linear-gradient(135deg, #34d399 0%, #22d3ee 45%, #818cf8 100%);
  --grad-soft:   linear-gradient(135deg, rgba(52,211,153,.16), rgba(129,140,248,.16));

  --ring:        rgba(52,211,153,.45);
  --shadow:      0 18px 50px -18px rgba(0,0,0,.7);
  --shadow-glow: 0 0 0 1px rgba(52,211,153,.18), 0 18px 50px -20px rgba(34,211,238,.35);

  --radius:      14px;
  --radius-lg:   22px;
  --radius-sm:   10px;

  --container:   1140px;
  --font-sans:   "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono:   "JetBrains Mono", ui-monospace, SFMono-Regular, "Fira Code", Consolas, monospace;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

/* ---------- Background texture ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(700px 500px at 12% -5%, rgba(52,211,153,.10), transparent 60%),
    radial-gradient(800px 600px at 95% 0%, rgba(129,140,248,.12), transparent 55%),
    radial-gradient(600px 500px at 50% 110%, rgba(34,211,238,.07), transparent 60%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 40%, transparent 100%);
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }
.section { padding: 84px 0; }
.section-sm { padding: 56px 0; }
.center { text-align: center; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mono { font-family: var(--font-mono); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { line-height: 1.15; font-weight: 800; letter-spacing: -.02em; color: #f4f8fc; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p  { color: var(--muted); }
.lead { font-size: clamp(1.02rem, 2vw, 1.18rem); color: var(--muted); max-width: 60ch; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--primary);
  background: rgba(52,211,153,.08);
  border: 1px solid rgba(52,211,153,.22);
  padding: 6px 12px; border-radius: 999px;
}
.eyebrow::before { content: "//"; opacity: .7; }

.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head p { margin-top: 14px; }

/* ---------- Buttons ---------- */
.btn {
  --pad: 13px 22px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: var(--pad);
  border-radius: 12px;
  font-weight: 650; font-size: .98rem;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { --pad: 9px 16px; font-size: .9rem; border-radius: 10px; }
.btn-lg { --pad: 16px 28px; font-size: 1.05rem; }

.btn-primary {
  background: var(--grad); color: #04120c; font-weight: 750;
  box-shadow: 0 10px 30px -10px rgba(52,211,153,.6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -10px rgba(34,211,238,.65); }

.btn-ghost {
  background: rgba(255,255,255,.03);
  border-color: var(--border-2);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--primary); color: #fff; background: rgba(52,211,153,.06); transform: translateY(-2px); }

.btn-wa { background: #25D366; color: #04120c; box-shadow: 0 10px 28px -10px rgba(37,211,102,.6); }
.btn-wa:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(37,211,102,.7); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(10,14,20,.72);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); background: rgba(10,14,20,.9); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }

.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.12rem; letter-spacing: -.02em; }
.brand-mark {
  font-family: var(--font-mono); font-weight: 700;
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--grad-soft); border: 1px solid rgba(52,211,153,.3); color: var(--primary);
  box-shadow: inset 0 0 18px rgba(52,211,153,.12);
}
.brand-name .grad { padding: 0 1px; }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links > a:not(.btn) { color: var(--muted); font-weight: 550; font-size: .96rem; position: relative; }
.nav-links > a:not(.btn):hover { color: var(--text); }
.nav-links > a:not(.btn).active { color: var(--text); }
.nav-links > a:not(.btn).active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -22px; height: 2px;
  background: var(--grad); border-radius: 2px;
}

.nav-toggle { display: none; background: none; border: 0; width: 42px; height: 42px; position: relative; }
.nav-toggle span { position: absolute; left: 9px; right: 9px; height: 2px; background: var(--text); border-radius: 2px; transition: .25s; }
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 26px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 64px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 54px; align-items: center; }
.hero h1 { margin: 18px 0 18px; }
.hero .lead { margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 22px; color: var(--faint); font-size: .9rem; font-family: var(--font-mono); }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 10px var(--primary); }

/* Terminal / code window */
.code-window {
  background: linear-gradient(180deg, #0c121c, #0a0f17);
  border: 1px solid var(--border-2);
  border-radius: 16px;
  box-shadow: var(--shadow), var(--shadow-glow);
  overflow: hidden;
  max-width: 100%;
  min-width: 0;
  font-family: var(--font-mono);
}
.code-bar { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--border); background: rgba(255,255,255,.02); }
.code-bar .dots { display: flex; gap: 6px; }
.code-bar .dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.code-bar .dots i:nth-child(1){ background:#ff5f57; }
.code-bar .dots i:nth-child(2){ background:#febc2e; }
.code-bar .dots i:nth-child(3){ background:#28c840; }
.code-bar .file { margin-left: 8px; font-size: .8rem; color: var(--faint); }
.code-bar .file b { color: var(--muted); font-weight: 600; }
.code-body { padding: 18px 20px; font-size: .86rem; line-height: 1.85; overflow-x: auto; }
.code-body pre { white-space: pre; }
.cl { color: #5f7186; user-select: none; padding-right: 16px; display: inline-block; min-width: 22px; text-align: right; }
.k  { color: #c084fc; }   /* keyword */
.f  { color: #22d3ee; }   /* function */
.s  { color: #34d399; }   /* string */
.c  { color: #5f7186; font-style: italic; } /* comment */
.v  { color: #f472b6; }   /* variable */
.p  { color: #93a4b8; }   /* punctuation/plain */
.typ{ color: #fbbf24; }   /* type */

.caret { display: inline-block; width: 8px; height: 1.05em; background: var(--primary); vertical-align: text-bottom; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Marquee / tech strip ---------- */
.tech-strip { border-block: 1px solid var(--border); background: rgba(255,255,255,.012); padding: 22px 0; }
.tech-strip .row { display: flex; flex-wrap: wrap; gap: 12px 14px; justify-content: center; align-items: center; }
.chip {
  font-family: var(--font-mono); font-size: .85rem; color: var(--muted);
  padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface);
  display: inline-flex; align-items: center; gap: 8px;
}
.chip b { color: var(--primary); font-weight: 700; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px; text-align: center; }
.stat .num { font-family: var(--font-mono); font-size: 2rem; font-weight: 800; }
.stat .lbl { color: var(--muted); font-size: .92rem; margin-top: 6px; }

/* ---------- Cards / features ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  position: relative;
  transition: transform .2s ease, border-color .2s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-2); box-shadow: var(--shadow); }
.card .ico {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid rgba(52,211,153,.22);
  font-size: 1.4rem; margin-bottom: 16px;
}
.card h3 { margin-bottom: 9px; }
.card p { font-size: .96rem; }
.card.feature::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--grad); opacity: 0; transition: opacity .25s ease;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.card.feature:hover::after { opacity: .55; }

/* ---------- Split (image/text) ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 50px; align-items: center; }
.hero-grid > *, .split > * { min-width: 0; }
.split .panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px; }

/* checklist */
.check { display: grid; gap: 12px; margin-top: 8px; }
.check li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); }
.check li::before {
  content: "✓"; flex: 0 0 22px; height: 22px; margin-top: 2px;
  display: grid; place-items: center; border-radius: 6px;
  background: rgba(52,211,153,.12); color: var(--primary); font-weight: 800; font-size: .8rem;
}
.check li b { color: var(--text); font-weight: 650; }

/* ---------- Timeline (about) ---------- */
.timeline { position: relative; margin-top: 10px; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--primary), var(--accent)); }
.tl-item { position: relative; padding: 0 0 30px 18px; }
.tl-item::before { content: ""; position: absolute; left: -28px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--primary); box-shadow: 0 0 0 4px rgba(52,211,153,.12); }
.tl-item .when { font-family: var(--font-mono); font-size: .82rem; color: var(--primary); letter-spacing: .04em; }
.tl-item h3 { margin: 4px 0 6px; font-size: 1.1rem; }

/* ---------- About photo ---------- */
.about-photo { position: relative; width: 200px; height: 200px; margin: 0 auto; border-radius: 50%; padding: 4px; background: var(--grad); box-shadow: 0 18px 50px -18px rgba(34,211,238,.5); }
.about-photo::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; background: var(--grad); filter: blur(24px); opacity: .22; z-index: -1; }
.about-photo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; border: 3px solid var(--bg); background: var(--surface); }
.about-cap { text-align: center; margin-top: 16px; }
.about-cap b { display: block; color: var(--text); font-size: 1.05rem; }
.about-cap span { color: var(--primary); font-family: var(--font-mono); font-size: .85rem; }

/* ---------- Syllabus / modules ---------- */
.module { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; transition: border-color .2s, transform .2s; }
.module:hover { border-color: var(--border-2); transform: translateY(-3px); }
.module .no { font-family: var(--font-mono); font-size: .8rem; color: var(--primary); font-weight: 700; }
.module h3 { font-size: 1.08rem; margin: 6px 0 10px; }
.module ul { display: grid; gap: 7px; }
.module ul li { color: var(--muted); font-size: .92rem; padding-left: 16px; position: relative; }
.module ul li::before { content: "▹"; position: absolute; left: 0; color: var(--primary-2); }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px 26px; display: flex; flex-direction: column; position: relative; }
.plan.popular { border-color: rgba(52,211,153,.5); box-shadow: var(--shadow-glow); }
.plan .tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #04120c; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 5px 14px; border-radius: 999px; }
.plan h3 { font-size: 1.2rem; }
.plan .price { font-family: var(--font-mono); font-size: 2.1rem; font-weight: 800; margin: 12px 0 4px; }
.plan .price small { font-size: .9rem; color: var(--faint); font-weight: 500; }
.plan .desc { color: var(--muted); font-size: .92rem; min-height: 42px; }
.plan .check { flex: 1; margin: 18px 0 22px; }

/* ---------- Testimonials ---------- */
.quote { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.quote p { color: var(--text); font-size: 1rem; }
.quote .stars { color: var(--amber); letter-spacing: 2px; margin-bottom: 12px; }
.quote .who { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.quote .av { width: 42px; height: 42px; border-radius: 50%; background: var(--grad-soft); border: 1px solid var(--border-2); display: grid; place-items: center; font-weight: 800; color: var(--primary); font-family: var(--font-mono); }
.quote .who b { display: block; color: var(--text); font-size: .95rem; }
.quote .who span { color: var(--faint); font-size: .84rem; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--border-2); background: linear-gradient(135deg, rgba(52,211,153,.10), rgba(129,140,248,.12)); padding: 52px 40px; text-align: center; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 200px at 50% -20%, rgba(52,211,153,.25), transparent 70%); pointer-events: none; }
.cta-band h2 { position: relative; }
.cta-band p { position: relative; margin: 14px auto 26px; max-width: 56ch; }
.cta-band .hero-cta { position: relative; justify-content: center; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .9rem; color: var(--muted); font-weight: 600; }
.field label .req { color: var(--primary); }
.input, .textarea, select.input {
  width: 100%; background: var(--bg-2); border: 1px solid var(--border-2); color: var(--text);
  border-radius: 10px; padding: 13px 14px; font-size: .96rem; font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.input:focus, .textarea:focus, select.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(52,211,153,.16); }
.textarea { resize: vertical; min-height: 120px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: .84rem; color: var(--faint); }
.form-status { font-size: .92rem; padding: 12px 14px; border-radius: 10px; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: rgba(52,211,153,.1); border: 1px solid rgba(52,211,153,.3); color: #8af0c8; }
.form-status.err { background: rgba(244,114,182,.08); border: 1px solid rgba(244,114,182,.3); color: #f7a8cf; }

/* contact tiles */
.contact-tiles { display: grid; gap: 14px; }
.ctile { display: flex; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; transition: border-color .2s, transform .2s; }
.ctile:hover { border-color: var(--border-2); transform: translateX(3px); }
.ctile .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem; background: var(--grad-soft); border: 1px solid rgba(52,211,153,.22); flex: none; }
.ctile b { color: var(--text); display: block; }
.ctile span { color: var(--muted); font-size: .9rem; }

/* QR card */
.qr-card { display: flex; gap: 20px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-top: 14px; }
.qr-card img { width: 150px; height: 150px; border-radius: 12px; background: #fff; padding: 8px; flex: none; box-shadow: 0 8px 24px -10px rgba(0,0,0,.6); }
.qr-card b { display: block; color: var(--text); margin-bottom: 6px; font-size: 1.02rem; }
.qr-card span { color: var(--muted); font-size: .92rem; }
.qr-card a { color: var(--primary); font-weight: 600; }
@media (max-width: 460px) { .qr-card { flex-direction: column; text-align: center; } }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; display: grid; place-items: center;
  box-shadow: 0 12px 30px -8px rgba(37,211,102,.6);
  transition: transform .2s; color: #04120c;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: 56px 0 28px; margin-top: 20px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.site-footer h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); margin-bottom: 16px; font-weight: 700; }
.site-footer a { color: var(--muted); font-size: .94rem; }
.site-footer a:hover { color: var(--primary); }
.foot-links { display: grid; gap: 10px; }
.foot-about p { font-size: .94rem; margin: 14px 0 16px; }
.foot-social { display: flex; gap: 10px; }
.foot-social a { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border); display: grid; place-items: center; color: var(--muted); transition: .2s; }
.foot-social a:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.foot-bottom { border-top: 1px solid var(--border); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: var(--faint); font-size: .86rem; }
.foot-bottom .mono { color: var(--faint); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 60px 0 30px; text-align: center; }
.page-hero .lead { margin: 16px auto 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 38px; }
  .split { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 760px) {
  .section { padding: 64px 0; }
  .nav-links {
    position: fixed; inset: 70px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: rgba(12,17,25,.98); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 16px 22px 24px;
    transform: translateY(-130%);
    transition: transform .3s ease, visibility .3s ease;
    pointer-events: none; visibility: hidden;
  }
  .nav-links.open { transform: translateY(0); pointer-events: auto; visibility: visible; }
  .nav-links > a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid var(--border); }
  .nav-links > a:not(.btn).active::after { display: none; }
  .nav-links .btn { margin-top: 10px; }
  .nav-toggle { display: block; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .row-2 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 22px; }
}
@media (max-width: 460px) {
  .grid-4 { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
}

/* ---------- Curriculum / 45-day plan ---------- */
.plan-stats { display:flex; flex-wrap:wrap; gap:12px; justify-content:center; margin-top:26px; }
.plan-stats .pill { font-family:var(--font-mono); font-size:.88rem; color:var(--text); background:var(--surface); border:1px solid var(--border); border-radius:999px; padding:10px 18px; display:inline-flex; gap:8px; align-items:center; }
.plan-stats .pill b { color:var(--primary); }

.phase { margin-bottom:34px; }
.phase-head { display:flex; align-items:flex-start; gap:18px; margin-bottom:18px; }
.phase-num { flex:none; width:54px; height:54px; border-radius:14px; display:grid; place-items:center; font-family:var(--font-mono); font-weight:800; font-size:1.05rem; background:var(--grad-soft); border:1px solid rgba(52,211,153,.3); color:var(--primary); }
.phase-head h3 { font-size:1.3rem; }
.phase-head .range { font-family:var(--font-mono); font-size:.8rem; color:var(--primary); letter-spacing:.04em; }
.phase-head p { font-size:.94rem; margin-top:4px; }

.days { display:grid; gap:10px; }
.day { display:grid; grid-template-columns:auto 1fr auto; gap:16px; align-items:center; background:var(--surface); border:1px solid var(--border); border-radius:12px; padding:14px 18px; transition:border-color .2s, transform .2s; }
.day:hover { border-color:var(--border-2); transform:translateX(3px); }
.day .d { font-family:var(--font-mono); font-weight:700; font-size:.78rem; color:var(--primary); border:1px solid rgba(52,211,153,.25); border-radius:8px; padding:7px 10px; white-space:nowrap; background:rgba(52,211,153,.06); text-align:center; }
.day .body b { display:block; color:var(--text); font-size:1rem; }
.day .body span { color:var(--muted); font-size:.88rem; }
.day .min { font-family:var(--font-mono); font-size:.8rem; color:var(--faint); white-space:nowrap; }

.qa { display:flex; align-items:center; gap:12px; padding:12px 18px; border:1px dashed rgba(129,140,248,.5); border-radius:12px; background:rgba(129,140,248,.06); }
.qa .tag { font-family:var(--font-mono); font-size:.76rem; font-weight:700; color:#aab4ff; background:rgba(129,140,248,.14); border-radius:6px; padding:5px 10px; white-space:nowrap; }
.qa span { color:var(--muted); font-size:.9rem; }

.bonus { display:flex; gap:18px; align-items:center; background:linear-gradient(135deg, rgba(251,191,36,.10), rgba(52,211,153,.10)); border:1px solid rgba(251,191,36,.38); border-radius:var(--radius-lg); padding:24px 26px; }
.bonus .gift { flex:none; width:56px; height:56px; border-radius:14px; display:grid; place-items:center; font-size:1.7rem; background:rgba(251,191,36,.14); border:1px solid rgba(251,191,36,.4); }
.bonus h3 { font-size:1.15rem; color:#ffe9b0; }
.bonus p { font-size:.94rem; margin-top:4px; }

.bonus-badge { display:inline-flex; align-items:center; gap:8px; font-family:var(--font-mono); font-size:.8rem; color:#ffd877; background:rgba(251,191,36,.1); border:1px solid rgba(251,191,36,.32); border-radius:999px; padding:7px 14px; }

@media (max-width:760px){
  .day { grid-template-columns:auto 1fr; }
  .day .min { grid-column:2; }
  .phase-head { gap:12px; }
  .bonus { flex-direction:column; text-align:center; }
}

/* ---------- Track tabs ---------- */
.tabs-wrap { text-align:center; }
.track-tabs { display:inline-flex; gap:6px; padding:6px; background:var(--surface); border:1px solid var(--border); border-radius:14px; }
.track-tab { font-family:var(--font-sans); font-weight:650; font-size:.96rem; color:var(--muted); background:transparent; border:0; border-radius:10px; padding:11px 20px; display:inline-flex; align-items:center; gap:8px; transition:color .2s, background .2s, box-shadow .2s; }
.track-tab:hover { color:var(--text); }
.track-tab[aria-selected="true"] { color:#04120c; background:var(--grad); box-shadow:0 8px 22px -10px rgba(52,211,153,.6); }
.track-tab .lang { font-family:var(--font-mono); font-size:.72rem; opacity:.8; }
.track-tab[aria-selected="true"] .lang { opacity:.9; }
.track-panel[hidden] { display:none; }
@media (max-width:460px){
  .track-tab { padding:10px 14px; font-size:.88rem; }
  .track-tab .lang { display:none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
