/* ============================================================
   AI Academy — styles
   Full-bleed orange theme: saturated orange background, white
   text, hairline white borders, white content cards, dark
   rectangular buttons, black footer. Geometric rounded sans.
   ============================================================ */

:root {
  --orange: #f4603e;
  --orange-deep: #de4c2b;
  --dark: #140b04;          /* near-black with a warm tint */
  --dark-band: #1a0f06;     /* dark section background */
  --white: #ffffff;
  --hairline: rgba(255, 255, 255, .4);
  --hairline-soft: rgba(255, 255, 255, .25);
  --white-dim: rgba(255, 255, 255, .85);
  --card-text: #1c1c1c;
  --card-dim: #565049;
  --green: #1a9e4b;
  --red: #d93025;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* overflow-x must be `hidden`, not `clip`: `clip` on the root element disables
   ALL page scrolling (incl. scrollTo) in Chromium-based browsers. */
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: linear-gradient(172deg, #f0552f 0%, #f4653f 45%, #fb8a5c 100%) fixed;
  color: var(--white);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--white); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { font-weight: 500; color: var(--white); }

/* ---------- topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: stretch; justify-content: space-between; gap: 16px;
  padding: 0 28px;
  background: #f0552f;
  border-bottom: 1px solid var(--hairline-soft);
}
.brand {
  display: flex; align-items: center; gap: 10px; padding: 16px 0;
  font-weight: 600; font-size: 1rem; color: var(--white);
  letter-spacing: .02em; white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand-logo {
  width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center;
  background: var(--dark); font-size: 1rem;
}
.brand-logo-text {
  color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .03em;
}
.brand-logo-svg { display: flex; align-items: center; }
.brand-logo-svg svg { height: 26px; width: auto; display: block; }
.brand #brand-name {
  font-size: .92rem; font-weight: 500; color: rgba(255, 255, 255, .82);
  padding-left: 2px;
}
.topbar-left { display: flex; align-items: stretch; gap: 14px; }
.topbar-nav { display: flex; align-items: stretch; gap: 0; }
.topbar-nav a, .topbar-nav button {
  display: flex; align-items: center; padding: 0 18px;
  color: var(--white); font-weight: 500; font-size: .92rem;
  background: none; border: none; font-family: inherit; cursor: pointer;
}
.topbar-nav a:hover, .topbar-nav button:hover { text-decoration: none; opacity: .75; }
.topbar-nav .nav-sep { border-left: 1px solid var(--hairline-soft); margin: 0; }

#app { max-width: 1100px; margin: 0 auto; padding: 0 32px 90px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 34px; border-radius: 2px; border: none;
  font-size: .98rem; font-weight: 500; font-family: inherit;
  cursor: pointer; transition: opacity .15s, background .15s;
  text-decoration: none !important;
}
.btn:active { opacity: .8; }
.btn-primary { background: var(--dark); color: #fff; }
.btn-primary:hover { background: #000; }
.btn-outline { background: transparent; color: var(--white); border: 1px solid var(--white); }
.btn-outline:hover { background: rgba(255, 255, 255, .12); }
.btn-ghost { background: transparent; color: var(--white-dim); }
.btn-ghost:hover { color: var(--white); }
.btn-success { background: rgba(255, 255, 255, .15); color: #fff; border: 1px solid var(--white); cursor: default; }
.btn-lg { padding: 17px 42px; font-size: 1.05rem; }
.btn-wide { width: 100%; margin-top: 10px; }

/* full-width dark CTA bar */
.cta-bar {
  display: block; width: 100%; margin-top: 34px;
  background: var(--dark); color: #fff;
  border: none; border-radius: 2px; cursor: pointer;
  font-family: inherit; font-size: 1.35rem; font-weight: 500;
  padding: 24px; text-align: center; transition: background .15s;
}
.cta-bar:hover { background: #000; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 110px 0 90px; }
.hero-eyebrow { font-size: 1.05rem; font-weight: 500; color: var(--white); margin-bottom: 8px; }
.hero h1 {
  font-size: clamp(3rem, 9vw, 6.2rem);
  line-height: 1.02; letter-spacing: .01em;
  text-transform: uppercase; font-weight: 500;
  position: relative; z-index: 2;
}
.hero-sub {
  max-width: 620px; margin-top: 26px;
  color: var(--white); font-size: 1.12rem; font-weight: 400;
  position: relative; z-index: 2;
}
.hero-sub strong { font-weight: 600; }

/* 3D-ish knot artwork */
.hero-art {
  position: absolute; top: -20px; right: -170px; width: 620px; height: 620px;
  z-index: 1; pointer-events: none;
}
@media (max-width: 900px) { .hero-art { opacity: .5; right: -300px; } }

/* ---------- split: facts panel + prose ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 0; border: 1px solid var(--hairline); border-radius: 20px; overflow: hidden; position: relative; z-index: 2; background: rgba(244,96,62,.4); backdrop-filter: blur(3px); box-shadow: 0 20px 50px rgba(120,30,10,.18); }
.facts-panel { padding: 22px 26px; display: flex; flex-direction: column; border-right: 1px solid var(--hairline); }
.facts-head, .prose-eyebrow { font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.82); margin-bottom: 6px; }
.fact { display: flex; gap: 14px; align-items: center; font-size: .92rem; color: var(--white); padding: 9px 10px; border-radius: 14px; transition: background .18s ease, transform .18s ease; }
.fact + .fact { border-top: 1px solid rgba(255,255,255,.16); }
.fact:hover { background: rgba(255,255,255,.12); transform: translateX(3px); border-top-color: transparent; }
.fact strong { font-weight: 600; }
.fact-icon { flex-shrink: 0; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.4); }
.fact-icon svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.split-prose { padding: 24px 30px; display: flex; flex-direction: column; }
.split-prose h3 { font-size: clamp(1.5rem, 2.7vw, 2rem); font-weight: 600; margin-bottom: 16px; line-height: 1.12; }
.split-prose p { color: rgba(255,255,255,.92); margin-bottom: 14px; font-size: .98rem; }
.split-prose p strong { font-weight: 600; color: #fff; }
.prose-callout {
  margin-top: auto; padding: 16px 20px; border-radius: 14px; color: #fff;
  background: rgba(255,255,255,.13);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid rgba(255,255,255,.4);
  box-shadow: 0 10px 30px rgba(120,30,10,.16), inset 0 1px 0 rgba(255,255,255,.25);
}
.prose-callout span { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.85); margin-bottom: 7px; }
.prose-callout strong { font-weight: 500; font-size: 1.06rem; line-height: 1.5; color: #fff; }
.prose-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.prose-pills > span { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; padding: 7px 14px; border: 1px solid var(--hairline); border-radius: 999px; }
.prose-pills .icon { width: 14px; height: 14px; color: #6dfba4; border: none; padding: 0; }

/* ---------- stats bar (gamification) ---------- */
.stats-bar {
  display: grid; grid-template-columns: 1fr 2fr 1fr 1fr; gap: 14px;
  border: 1px solid var(--hairline);
  padding: 20px 26px; margin: 60px 0 0;
}
.stat { display: flex; align-items: center; gap: 12px; min-width: 0; }
.stat > div { min-width: 0; flex: 1; }
.stat-icon { font-size: 1.4rem; }
.stat-value { font-weight: 600; font-size: .95rem; color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-label { font-size: .78rem; color: var(--white-dim); }
.stat-link { color: var(--white); }
.stat-link:hover { text-decoration: none; opacity: .8; }
.level-track, .progress-track {
  display: block; height: 5px; background: rgba(255, 255, 255, .25);
  overflow: hidden; margin-top: 6px;
}
.level-fill, .progress-fill {
  display: block; height: 100%;
  background: var(--white);
  transition: width .5s ease;
}

/* ---------- sections ---------- */
.section { margin-top: 110px; }
.section-title {
  font-size: clamp(1.9rem, 4.5vw, 2.8rem); margin-bottom: 34px;
  font-weight: 500; line-height: 1.15;
}

/* ---------- tools row ---------- */
.tools-row {
  display: flex; gap: 34px; flex-wrap: wrap; align-items: center;
  margin-bottom: 44px;
}
.tools-row span { font-weight: 600; font-size: 1.35rem; color: var(--white); opacity: .95; }

/* ---------- reviews ---------- */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.review-card {
  display: flex; flex-direction: column; gap: 18px;
  padding: 26px 24px;
  background: var(--white); color: var(--card-text);
}
.review-card blockquote { color: var(--card-text); font-size: .92rem; line-height: 1.6; }
.review-card figcaption { display: flex; align-items: center; gap: 12px; font-size: .82rem; color: var(--card-dim); margin-top: auto; }
.review-card figcaption strong { color: var(--card-text); font-weight: 600; }
.review-card figcaption em { font-style: normal; }

/* ---------- founding cohort (honest pre-launch social proof) ---------- */
.founding { max-width: 780px; margin: 0 auto; }
.founding-lead { color: var(--card-text); font-size: 1.05rem; line-height: 1.6; text-align: center; margin-bottom: 26px; }
.founding-lead strong { font-weight: 600; }
.founding-perks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 24px; }
.founding-perk {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--white); padding: 16px 18px; border-radius: 16px;
  box-shadow: 0 10px 30px rgba(120,30,10,.08);
}
.founding-perk > .icon { width: 24px; height: 24px; color: var(--orange); flex-shrink: 0; margin-top: 2px; }
.founding-perk strong { display: block; color: var(--card-text); font-weight: 600; font-size: .95rem; }
.founding-perk span { display: block; color: var(--card-dim); font-size: .82rem; margin-top: 2px; line-height: 1.45; }
.founding-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 20px; margin-bottom: 24px; }
.founding-count { display: inline-flex; align-items: center; gap: 8px; color: var(--card-text); font-weight: 600; }
.founding-count > .icon { width: 18px; height: 18px; color: var(--orange); }
.founding-count strong { color: var(--orange); }
.founding-wall-link { color: var(--orange); font-weight: 600; }
.founding .btn-lg { display: block; margin: 0 auto; }
@media (max-width: 560px) { .founding-perks { grid-template-columns: 1fr; } }

/* uploaded logo (header + admin preview) */
.brand-logo-img { height: 30px; width: auto; display: block; }
.cust-logo-row { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.cust-logo-preview { max-height: 42px; max-width: 180px; border-radius: 6px; background: #fff; padding: 3px 6px; }
.btn-sm { padding: 6px 12px; font-size: .82rem; }
.avatar {
  width: 42px; height: 42px; flex-shrink: 0; display: grid; place-items: center;
  border-radius: 50%; background: var(--orange); color: #fff;
  font-weight: 600; font-size: .85rem; letter-spacing: .02em;
}

/* ---------- learn panel (outcomes) ---------- */
.learn-panel { border: 1px solid var(--hairline); padding: 44px 40px; }
.learn-panel h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 500; margin-bottom: 40px; }
.learn-cols { display: grid; grid-template-columns: repeat(4, 1fr); }
.learn-col { padding: 0 26px; border-left: 1px solid var(--hairline-soft); }
.learn-col:first-child { border-left: none; padding-left: 0; }
.learn-icon { display: block; width: 56px; height: 56px; margin-bottom: 22px; }
.learn-icon svg { width: 100%; height: 100%; stroke: #fff; fill: none; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.learn-col p { color: var(--white); font-weight: 500; font-size: .98rem; }

/* ---------- structure / chapter cards ---------- */
.chapter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.chapter {
  background: var(--white); color: var(--card-text);
  padding: 26px 22px; display: flex; flex-direction: column; gap: 10px;
  cursor: pointer; transition: transform .15s;
}
.chapter:hover { transform: translateY(-3px); }
.chapter-icon { font-size: 2.6rem; line-height: 1; margin-bottom: 8px; }
.chapter-num {
  font-size: .74rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--card-dim);
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
}
.chapter h3 { font-size: 1.2rem; font-weight: 600; color: var(--card-text); line-height: 1.3; }
.chapter-tagline { color: var(--card-dim); font-size: .85rem; }
.chapter-lessons { list-style: none; margin: 6px 0; }
.chapter-lessons li { position: relative; padding: 3px 0 3px 16px; font-size: .84rem; color: var(--card-text); }
.chapter-lessons li::before { content: ""; position: absolute; left: 0; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.chapter-meta { color: var(--card-dim); font-size: .76rem; margin-top: auto; }
.chapter .progress-track { background: #eee2da; }
.chapter .progress-fill { background: var(--orange); }
.chapter-cta { margin-top: 10px; }
.chapter-cta .btn { pointer-events: none; width: 100%; padding: 12px; font-size: .9rem; }
.chapter.locked .chapter-icon { filter: grayscale(.5); opacity: .8; }
.tag { font-size: .7rem; font-weight: 600; letter-spacing: .06em; }
.tag-free { color: var(--green); }
.tag-locked, .tag-premium { color: var(--orange); }

/* ---------- lead band (dark, full-bleed) ---------- */
.lead-band {
  width: 100vw; margin-left: calc(50% - 50vw);
  background: var(--dark-band); margin-top: 110px;
}
.lead-inner {
  max-width: 1100px; margin: 0 auto; padding: 70px 32px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.lead-promo {
  background: linear-gradient(135deg, var(--orange), #fb8a5c);
  padding: 44px 36px; min-height: 300px;
  display: flex; flex-direction: column; justify-content: center; gap: 10px;
}
.lead-promo-title { font-size: 2rem; font-weight: 600; color: #fff; line-height: 1.15; }
.lead-promo-sub { color: rgba(255, 255, 255, .9); font-size: .95rem; }
.lead-body h2 { font-size: 1.7rem; font-weight: 500; margin-bottom: 10px; }
.lead-body > p { color: var(--white-dim); margin-bottom: 28px; font-size: .95rem; }

.lead-form { display: flex; flex-direction: column; gap: 22px; }
.lead-form label {
  display: block; font-size: .85rem; font-weight: 600; color: var(--white); margin-bottom: 6px;
}
.lead-form input {
  width: 100%; padding: 8px 2px; border: none; border-bottom: 1px solid var(--hairline);
  background: transparent; font-family: inherit; font-size: .95rem; color: var(--white);
  border-radius: 0;
}
.lead-form input:focus { outline: none; border-bottom-color: var(--white); }
.lead-form input::placeholder { color: rgba(255, 255, 255, .45); }
.lead-form .btn { align-self: stretch; }

/* ---------- price ---------- */
.price-sec .section-title { margin-bottom: 30px; }
.price-card-w {
  background: var(--white); color: var(--card-text);
  padding: 54px 50px;
  display: grid; grid-template-columns: auto 1fr; gap: 60px; align-items: center;
}
.price-circle { position: relative; display: inline-block; width: fit-content; padding: 26px 40px; }
.price-circle svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.price-amount { font-size: clamp(2.8rem, 6vw, 4rem); font-weight: 600; color: var(--card-text); position: relative; z-index: 1; white-space: nowrap; }
.price-inc h4 { font-size: 1.15rem; font-weight: 600; color: var(--card-text); margin-bottom: 14px; }
.price-inc ul { list-style: none; }
.price-inc li { position: relative; padding: 5px 0 5px 20px; color: var(--card-text); font-size: .95rem; }
.price-inc li::before { content: ""; position: absolute; left: 0; top: 13px; width: 7px; height: 7px; border-radius: 50%; background: var(--card-text); }
.price-note-line { color: var(--card-dim); font-size: .85rem; margin-top: 14px; }
.price-cta { grid-column: 1 / -1; }
.price-cta .cta-bar { margin-top: 10px; }

/* ---------- FAQ (flat Q/A list) ---------- */
.faq-item { border-top: 1px solid var(--hairline-soft); padding: 26px 4px; }
.faq-item:last-child { border-bottom: 1px solid var(--hairline-soft); }
.faq-item h4 { font-size: 1.1rem; font-weight: 600; margin-bottom: 10px; }
.faq-item p { color: var(--white); font-size: .95rem; max-width: 780px; }

/* ---------- course page ---------- */
.breadcrumb { margin: 28px 0 26px; }
.breadcrumb a { color: var(--white-dim); font-weight: 500; font-size: .9rem; }
.breadcrumb a:hover { color: var(--white); }
.course-header { display: flex; gap: 22px; align-items: flex-start; margin-bottom: 32px; }
.course-icon-lg { font-size: 3.2rem; line-height: 1; }
.course-header h1 { font-size: clamp(1.8rem, 4.4vw, 2.6rem); font-weight: 500; }
.course-header p { color: var(--white-dim); margin: 6px 0 12px; }
.course-meta { display: flex; gap: 8px; color: var(--white-dim); font-size: .85rem; margin-bottom: 10px; flex-wrap: wrap; }
.done-flag { color: var(--white); font-weight: 600; }

.lesson-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.lesson-item a {
  display: flex; align-items: center; gap: 18px; padding: 20px 24px;
  background: var(--white); color: var(--card-text);
  transition: transform .15s;
}
.lesson-item a:hover { text-decoration: none; transform: translateY(-2px); }
.lesson-num {
  width: 36px; height: 36px; flex-shrink: 0; display: grid; place-items: center;
  background: var(--orange); color: #fff;
  border-radius: 50%; font-weight: 600; font-size: .95rem;
}
.lesson-item.done .lesson-num { background: #f4ece6; }
.lesson-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lesson-title { font-weight: 600; color: var(--card-text); }
.lesson-meta { color: var(--card-dim); font-size: .82rem; }
.lesson-cta { color: var(--orange); font-weight: 600; font-size: .88rem; white-space: nowrap; }

/* "By the end you'll be able to" outcomes on the course page */
.outcomes {
  background: var(--white); border-radius: 14px; padding: 16px 20px; margin: 0 0 18px;
  box-shadow: 0 8px 24px rgba(120,30,10,.05);
}
.outcomes-title {
  display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink);
  font-size: .95rem; margin-bottom: 8px;
}
.outcomes-title .icon { width: 20px; height: 20px; color: var(--orange); }
.outcomes ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.outcomes li { color: var(--card-text); font-size: .93rem; padding-left: 20px; position: relative; }
.outcomes li::before { content: "→"; position: absolute; left: 0; color: var(--orange); font-weight: 700; }

/* Locked course state (paywall on the course page) */
.course-lock {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: #fff4f0; border: 1px solid rgba(244,96,62,.3);
  border-radius: 14px; padding: 16px 18px; margin: 0 0 18px;
}
.course-lock > .icon { width: 26px; height: 26px; color: var(--orange); flex-shrink: 0; }
.course-lock-text { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 2px; }
.course-lock-text strong { color: var(--ink); }
.course-lock-text span { color: var(--ink-dim); font-size: .9rem; }
.course-lock .btn { flex-shrink: 0; }
.lesson-item.locked a { opacity: .68; }
.lesson-item.locked a:hover { opacity: 1; transform: translateY(-2px); }
.lesson-item.locked .lesson-num { background: #f0e6e0; }
.lesson-item.locked .lesson-num .icon { width: 18px; height: 18px; color: var(--orange); }
.lesson-free-tag {
  display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 20px;
  background: var(--orange); color: #fff; font-size: .62rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; vertical-align: middle;
}
.preview-banner {
  display: flex; align-items: center; gap: 8px; margin: 0 0 16px;
  background: #fff4f0; border: 1px solid rgba(244,96,62,.3); border-radius: 12px;
  padding: 12px 16px; font-size: .92rem; color: var(--ink);
}
.preview-banner > .icon { width: 20px; height: 20px; color: var(--orange); flex-shrink: 0; }
.preview-unlock {
  background: none; border: none; color: var(--orange); font-weight: 700;
  font-family: inherit; font-size: .92rem; cursor: pointer; padding: 0; text-decoration: underline;
}

/* Hero link to the readiness test */
.hero-test-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
  color: var(--ink); font-weight: 600; font-size: .95rem;
}
.hero-test-link .icon { width: 18px; height: 18px; color: var(--orange); }
.hero-test-link:hover { color: var(--orange); text-decoration: none; }

/* AI Readiness Test */
.ready-intro, .ready-result { text-align: center; max-width: 640px; margin: 0 auto; }
.ready-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px;
  background: #fff4f0; border: 1px solid rgba(244,96,62,.3); border-radius: 30px;
  color: var(--orange); font-weight: 600; font-size: .82rem; letter-spacing: .04em;
  text-transform: uppercase; margin-bottom: 18px;
}
.ready-badge .icon { width: 16px; height: 16px; }
.ready-title { font-size: clamp(1.7rem, 4.5vw, 2.6rem); margin-bottom: 12px; color: var(--ink); }
.ready-sub { color: var(--ink-dim); margin-bottom: 22px; }
.ready-score { font-size: clamp(3.2rem, 9vw, 5rem); font-weight: 600; color: var(--orange); line-height: 1; }
.ready-score span { font-size: .35em; color: var(--ink-dim); font-weight: 500; }
.ready-bar { height: 10px; background: #f0e6e0; border-radius: 6px; max-width: 340px; margin: 14px auto 20px; overflow: hidden; }
.ready-fill { height: 100%; background: linear-gradient(90deg, var(--orange), #fb8a5c); border-radius: 6px; }
.ready-tier { font-size: clamp(1.4rem, 3.5vw, 2rem); color: var(--ink); margin-bottom: 8px; }
.ready-line { color: var(--ink-dim); max-width: 480px; margin: 0 auto 22px; }
.ready-reco {
  background: var(--white); border-radius: 16px; padding: 22px 20px; margin-bottom: 18px;
  box-shadow: 0 10px 30px rgba(120,30,10,.08);
}
.ready-reco-label { color: var(--orange); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; }
.ready-reco-course { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 1.15rem; color: var(--ink); margin-bottom: 6px; }
.ready-reco-course .icon { width: 22px; height: 22px; color: var(--orange); }
.ready-reco .btn { margin-top: 12px; }
.ready-actions { display: flex; gap: 10px; justify-content: center; margin-bottom: 22px; flex-wrap: wrap; }
.ready-capture {
  background: #fff4f0; border: 1px solid rgba(244,96,62,.25); border-radius: 16px;
  padding: 18px; text-align: left;
}
.ready-capture p { margin-bottom: 10px; color: var(--ink); }
/* lead-form defaults were styled for the dark footer — re-skin on light surfaces */
.ready-capture .lead-form label, #modal-content .lead-form label { color: var(--ink-dim); }
.ready-capture .lead-form input, #modal-content .lead-form input {
  color: var(--ink); background: #fff; border: 1.5px solid #d8cfc7; border-radius: 10px;
  padding: 11px 14px;
}
.ready-capture .lead-form input::placeholder, #modal-content .lead-form input::placeholder { color: #b3a89f; }
.ready-capture .lead-form input:focus, #modal-content .lead-form input:focus { outline: none; border-color: var(--orange); }
.ready-capture .lead-form, #modal-content .lead-form { display: flex; flex-direction: column; gap: 10px; }
#modal-content .lead-form { margin: 14px 0 8px; text-align: left; }

/* Course finder */
.finder-banner {
  display: flex; align-items: center; gap: 12px; margin: 0 0 18px;
  background: var(--white); border: 1.5px solid rgba(244,96,62,.35); border-radius: 14px;
  padding: 14px 18px; color: var(--ink); box-shadow: 0 8px 24px rgba(120,30,10,.06);
  transition: transform .15s, box-shadow .15s;
}
.finder-banner:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(120,30,10,.1); }
.finder-banner > .icon { width: 24px; height: 24px; color: var(--orange); flex-shrink: 0; }
.finder-banner > span:first-of-type { flex: 1; font-size: .95rem; }
.finder-banner-cta { color: var(--orange); font-weight: 700; white-space: nowrap; }
.finder-trail { margin-bottom: 18px; }
@media (max-width: 640px) {
  .finder-banner { flex-direction: column; align-items: flex-start; gap: 8px; }
  .finder-banner-cta { align-self: flex-end; }
}
.finder-options { text-align: left; max-width: 560px; margin: 0 auto; }
.finder-result .btn { margin: 6px 4px 0; }
.finder-plan {
  background: #fff4f0; border-radius: 10px; padding: 10px 14px; margin: 12px 0;
  color: var(--ink); font-size: .92rem;
}

/* Pricing trust boosters */
.tier-save {
  background: #eaf7ee; color: #1e7c3c; border-radius: 8px; font-size: .82rem;
  font-weight: 600; padding: 6px 10px; margin: 8px 0 4px;
}
.trust-row { display: flex; justify-content: center; gap: 26px; flex-wrap: wrap; margin-top: 16px; }
.trust-item { display: flex; align-items: center; gap: 8px; color: var(--ink-dim); font-size: .88rem; }
.trust-item .icon { width: 18px; height: 18px; color: var(--orange); }

/* "Magic moment" highlight box inside lesson content */
.magic-box {
  background: linear-gradient(135deg, #fff4f0, #ffeee6);
  border: 1.5px solid rgba(244,96,62,.35); border-radius: 14px;
  padding: 18px 20px; margin: 0 0 22px;
}
.magic-box-label {
  display: inline-block; background: var(--orange); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 20px; margin-bottom: 10px;
}
.magic-box p { margin-bottom: 10px; }
.magic-box .prompt-box { margin: 10px 0; }
.magic-box-note { color: var(--ink-dim); font-size: .92rem; margin-bottom: 0 !important; }

/* Personal 48h offer banner (post-readiness-test) */
.offer-banner {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: linear-gradient(135deg, var(--orange), #fb8a5c); color: #fff;
  border-radius: 14px; padding: 12px 18px; margin: 0 0 16px;
}
.offer-banner > .icon { width: 20px; height: 20px; color: #fff; flex-shrink: 0; }
.offer-banner span { flex: 1; min-width: 220px; font-size: .95rem; }
.offer-banner s { opacity: .8; }
.offer-banner #offer-countdown { font-variant-numeric: tabular-nums; }
.offer-banner .btn { background: #fff; color: var(--orange); flex-shrink: 0; }
.offer-banner .btn:hover { background: #fff4f0; }

/* Streak upgrade nudge */
.streak-nudge {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; position: relative;
  background: #fff4f0; border: 1px solid rgba(244,96,62,.3); border-radius: 14px;
  padding: 12px 18px; margin: 0 0 16px;
}
.streak-nudge > .icon { width: 20px; height: 20px; color: var(--orange); flex-shrink: 0; }
.streak-nudge span { flex: 1; min-width: 220px; color: var(--ink); font-size: .95rem; }
.streak-nudge .btn { flex-shrink: 0; }
.streak-nudge-x { background: none; border: none; color: var(--ink-dim); cursor: pointer; font-size: 1rem; padding: 4px 8px; }

/* Certificate viral CTA (for shared-link viewers) */
.cert-viral {
  text-align: center; max-width: 480px; margin: 22px auto 0;
  background: #fff4f0; border: 1px solid rgba(244,96,62,.25); border-radius: 16px; padding: 20px;
}
.cert-viral-title { display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.cert-viral-title .icon { width: 20px; height: 20px; color: var(--orange); }
.cert-viral p { color: var(--ink-dim); margin-bottom: 12px; }
.cert-viral-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* Post-free-course upsell */
.upsell-card {
  background: linear-gradient(135deg, #fff4f0, #ffe9df); border: 1.5px solid rgba(244,96,62,.35);
  border-radius: 16px; padding: 22px; margin: 18px auto; max-width: 540px; text-align: center;
}
.upsell-title { display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 1.05rem; color: var(--ink); margin-bottom: 8px; }
.upsell-title .icon { width: 22px; height: 22px; color: var(--orange); }
.upsell-card p { color: var(--card-text); margin-bottom: 14px; }
.upsell-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 8px; }

/* Email-verification banner */
.verify-banner {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 14px;
  background: #fff7ed; border: 1px solid rgba(244,96,62,.35); border-radius: 12px; padding: 14px 16px;
}
.verify-banner > .icon { width: 22px; height: 22px; color: var(--orange); flex-shrink: 0; margin-top: 2px; }
.verify-banner strong { display: block; color: var(--ink); }
.verify-banner span { color: var(--ink-dim); font-size: .9rem; display: block; margin-top: 2px; }
.verify-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.verify-actions .btn { padding: 8px 16px; font-size: .9rem; }

/* Founders Wall */
.founders-hero { text-align: center; max-width: 640px; margin: 0 auto 24px; }
.founders-you {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 8px;
  background: linear-gradient(135deg, #fff5e0, #ffe9c7); border: 1px solid #e0a92e;
  color: #8a5a12; font-weight: 700; padding: 10px 18px; border-radius: 30px;
}
.founders-you .icon { width: 18px; height: 18px; color: #c8871a; }
.founders-grid { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 900px; margin: 0 auto; }
.founder-chip {
  display: inline-flex; align-items: center; gap: 6px; background: #fff;
  border: 1px solid #e6d3a8; border-radius: 30px; padding: 8px 16px; font-weight: 600; color: var(--ink);
}
.founder-chip .icon { width: 15px; height: 15px; color: #c8871a; }
.founders-empty { text-align: center; color: var(--ink-dim); max-width: 460px; margin: 20px auto; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.founders-empty .icon { width: 28px; height: 28px; color: #c8871a; }

/* Legal pages (Privacy / Terms) */
.legal-updated { color: var(--ink-dim); font-size: .9rem; margin: -6px 0 14px; }
.legal-template-note {
  display: flex; align-items: flex-start; gap: 10px; background: #fff7ed;
  border: 1px solid rgba(244,96,62,.35); font-size: .9rem; color: var(--ink);
}
.legal-template-note > .icon { width: 20px; height: 20px; color: var(--orange); flex-shrink: 0; margin-top: 1px; }
.legal-prose h2 { font-size: 1.1rem; margin: 20px 0 6px; color: var(--ink); }
.legal-prose h2:first-child, .legal-prose > p:first-child { margin-top: 0; }
.legal-prose h3 { font-size: .98rem; margin: 14px 0 4px; color: var(--ink); }
.legal-prose p, .legal-prose li { color: var(--card-text); line-height: 1.6; }
.legal-prose ul { margin: 6px 0 6px 18px; }
.legal-prose a { color: var(--orange); }
.legal-prose code { background: #f4ece6; padding: 1px 5px; border-radius: 5px; font-size: .88em; }
.legal-table { width: 100%; border-collapse: collapse; margin: 10px 0 6px; font-size: .92rem; }
.legal-table th, .legal-table td { border: 1px solid #e7ddd4; padding: 7px 10px; text-align: left; vertical-align: top; color: var(--card-text); }
.legal-table th { background: #fff4f2; font-weight: 600; color: var(--ink); }
.legal-crosslink { margin-top: 16px; color: var(--ink-dim); }

/* ---------- lesson content ---------- */
.lesson { padding-top: 6px; }
.lesson h1 { font-size: clamp(1.8rem, 4.4vw, 2.6rem); margin-bottom: 8px; font-weight: 500; }
.lesson-meta-row { color: var(--white-dim); font-size: .9rem; margin-bottom: 28px; }
.lesson-content {
  background: var(--white); color: var(--card-text);
  padding: 40px 44px; font-size: 1rem;
}
.lesson-content h3 { margin: 24px 0 10px; font-size: 1.12rem; color: var(--orange); font-weight: 600; }
.lesson-content p { margin-bottom: 14px; color: var(--card-text); }
.lesson-content a { color: var(--orange); }
.lesson-content ul, .lesson-content ol { margin: 0 0 14px 22px; }
.lesson-content li { margin-bottom: 8px; }
.lesson-content blockquote {
  border-left: 3px solid var(--orange); padding: 12px 20px; margin: 18px 0;
  background: #fff3ec; font-weight: 500; color: var(--card-text);
}
.lesson-content code {
  background: #f5efe9; padding: 2px 7px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em;
}
.lesson-quiz-cta {
  text-align: center; margin-top: 30px; padding: 44px 30px;
  background: var(--dark-band); color: #fff;
}
.lesson-quiz-cta h3 { font-size: 1.5rem; margin-bottom: 6px; font-weight: 500; }
.lesson-quiz-cta p { color: var(--white-dim); margin-bottom: 22px; }
.lesson-quiz-cta .btn-primary { background: var(--orange); }
.lesson-quiz-cta .btn-primary:hover { background: var(--orange-deep); }

/* ---------- quiz ---------- */
.quiz { max-width: 680px; margin: 0 auto; padding-top: 40px; }
.quiz-top { display: flex; align-items: center; gap: 16px; margin-bottom: 40px; }
.quiz-quit { color: var(--white-dim); font-weight: 500; font-size: .9rem; }
.quiz-quit:hover { color: var(--white); text-decoration: none; }
.quiz-progress { flex: 1; display: flex; gap: 6px; justify-content: center; }
.quiz-dot { width: 30px; height: 4px; background: rgba(255, 255, 255, .3); }
.quiz-dot.past { background: var(--white); }
.quiz-dot.current { background: var(--dark); }
.quiz-count { color: var(--white-dim); font-weight: 600; font-size: .9rem; }
.quiz-question { font-size: 1.55rem; margin-bottom: 30px; line-height: 1.35; font-weight: 500; }
.quiz-options { display: flex; flex-direction: column; gap: 10px; }
.quiz-option {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: 17px 20px; font-family: inherit; font-size: .98rem;
  background: var(--white); border: none; color: var(--card-text);
  cursor: pointer; transition: transform .12s, box-shadow .12s;
}
.quiz-option:hover:not(:disabled) { transform: translateY(-2px); }
.quiz-option:disabled { cursor: default; opacity: .55; }
.quiz-option.correct { box-shadow: inset 0 0 0 3px var(--green); opacity: 1; }
.quiz-option.wrong { box-shadow: inset 0 0 0 3px var(--red); opacity: 1; }
.option-letter {
  width: 30px; height: 30px; flex-shrink: 0; display: grid; place-items: center;
  background: #f4ece6; font-weight: 600; font-size: .82rem; color: var(--card-text);
}
.feedback { margin-top: 24px; padding: 22px 24px; background: var(--white); color: var(--card-text); }
.feedback-correct { border-left: 4px solid var(--green); }
.feedback-wrong { border-left: 4px solid var(--red); }
.feedback strong { color: var(--card-text); }
.feedback p { margin: 8px 0 16px; color: var(--card-dim); }

/* ---------- results ---------- */
.quiz-results { text-align: center; padding: 90px 0; }
.results-emoji { font-size: 4.5rem; margin-bottom: 14px; }
.quiz-results h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 12px; font-weight: 500; }
.results-score { font-size: 1.2rem; color: var(--white-dim); }
.results-xp { font-size: 1.05rem; color: var(--white); font-weight: 600; margin-top: 10px; }
.results-course-done { margin-top: 16px; font-size: 1.1rem; color: var(--white); font-weight: 600; }
.results-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }

/* ---------- progress page ---------- */
.page-title { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 30px 0 22px; font-weight: 500; }
.progress-list { display: flex; flex-direction: column; gap: 12px; }
.progress-row {
  display: flex; align-items: center; gap: 18px; padding: 18px 22px;
  background: var(--white); color: var(--card-text);
}
.progress-row:hover { text-decoration: none; transform: translateY(-2px); }
.progress-row .course-icon { font-size: 1.8rem; }
.progress-row.locked { opacity: .85; }
.progress-row-info { flex: 1; min-width: 0; }
.progress-row-info strong { color: var(--card-text); font-weight: 600; }
.progress-row-info .progress-track { margin-top: 7px; background: #eee2da; }
.progress-row-info .progress-fill { background: var(--orange); }
.progress-pct { font-weight: 600; color: var(--card-text); }

.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 14px; }
.badge {
  text-align: center; padding: 22px 12px;
  background: var(--white); color: var(--card-text);
  filter: grayscale(1); opacity: .5;
}
.badge.earned { filter: none; opacity: 1; }
.badge-icon { font-size: 2rem; }
.badge-name { font-weight: 600; font-size: .88rem; margin-top: 8px; color: var(--card-text); }
.badge-desc { font-size: .76rem; color: var(--card-dim); margin-top: 3px; }

/* ---------- modal ---------- */
#modal-overlay {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(20, 11, 4, .65);
  align-items: center; justify-content: center; padding: 20px;
}
#modal-overlay.open { display: flex; }
#modal-content {
  background: #fff; color: var(--card-text);
  max-width: 470px; width: 100%; padding: 38px 36px;
  max-height: 85vh; overflow-y: auto;
}
#modal-content h2 { font-size: 1.35rem; margin-bottom: 14px; font-weight: 600; color: var(--card-text); }
#modal-content p { color: var(--card-dim); margin-bottom: 12px; }
#modal-content ol { margin: 0 0 12px 20px; color: var(--card-dim); }
#modal-content li { margin-bottom: 6px; }
#modal-content a { color: var(--orange); }
#modal-content code { background: #f5efe9; padding: 2px 6px; font-size: .85em; }
#modal-content .btn-primary { background: var(--orange); }
#modal-content .btn-primary:hover { background: var(--orange-deep); }
#modal-content .btn-ghost { color: var(--card-dim); }
.modal-icon { font-size: 2.6rem; text-align: center; margin-bottom: 10px; }
.modal-perks { list-style: none; margin-bottom: 10px; }
.modal-perks li { padding: 4px 0 4px 20px; color: var(--card-dim); font-size: .93rem; position: relative; }
.modal-perks li::before { content: ""; position: absolute; left: 0; top: 12px; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }

/* ---------- toasts ---------- */
#toasts { position: fixed; bottom: 20px; right: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--dark); color: #fff;
  padding: 15px 24px; font-weight: 500; font-size: .9rem;
  opacity: 0; transform: translateY(12px); transition: opacity .3s, transform .3s;
  max-width: 340px;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* ---------- confetti ---------- */
.confetti-container { position: fixed; inset: 0; pointer-events: none; z-index: 300; overflow: hidden; }
.confetti {
  position: absolute; top: -12px; width: 9px; height: 14px;
  animation: confetti-fall linear forwards;
}
@keyframes confetti-fall {
  to { transform: translateY(105vh) rotate(720deg); opacity: .6; }
}

/* ---------- footer (black, 3 columns) ---------- */
.footer { background: #000; color: #fff; padding: 80px 32px 60px; margin-top: 110px; }
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1.2fr 1fr .8fr; gap: 60px;
}
.footer-brand {
  font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 500; line-height: 1.1;
  text-transform: uppercase; margin-bottom: 26px;
}
.footer-mission p { color: rgba(255, 255, 255, .85); font-size: .92rem; margin-bottom: 14px; }
.footer-heading { font-weight: 600; font-size: 1.05rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px; }
.footer-news p { color: rgba(255, 255, 255, .8); font-size: .9rem; margin-bottom: 22px; }
.footer .lead-form input { border-bottom-color: rgba(255, 255, 255, .4); }
.footer .lead-form input:focus { border-bottom-color: #fff; }
.btn-footer { background: transparent; color: #fff; border: 1px solid #fff; }
.btn-footer:hover { background: rgba(255, 255, 255, .12); }
.footer-social { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-social a {
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .6); border-radius: 50%;
  color: #fff; font-weight: 600; font-size: .72rem; letter-spacing: .02em;
}
.footer-social a:hover { text-decoration: none; background: rgba(255, 255, 255, .15); }
/* ---------- checkout page ---------- */
.checkout-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 22px; max-width: 960px; margin: 0 auto; align-items: start; }
.checkout-h { font-size: 1.1rem; margin: 0 0 16px; color: var(--ink); }
.checkout-summary, .checkout-pay { padding: 26px; }
.checkout-plan { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid #eee2d8; }
.checkout-plan-name { font-weight: 600; font-size: 1.05rem; color: var(--card-text); }
.checkout-plan-price { font-weight: 600; color: var(--card-text); white-space: nowrap; text-align: right; }
.checkout-plan-price span { display: block; font-weight: 400; font-size: .76rem; color: var(--card-dim); }
.checkout-includes { list-style: none; margin: 16px 0; padding: 0; }
.checkout-includes li { display: flex; gap: 10px; align-items: flex-start; color: var(--card-text); font-size: .92rem; line-height: 1.5; margin-bottom: 9px; }
.checkout-tick { color: #16a34a; font-weight: 700; flex-shrink: 0; }
.checkout-total { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-top: 1px solid #eee2d8; font-size: 1.02rem; color: var(--card-text); }
.checkout-total strong { font-size: 1.3rem; color: var(--ink); }
.checkout-after { color: var(--card-dim); font-size: .85rem; margin: 0 0 12px; }
.checkout-terms { color: var(--card-dim); font-size: .82rem; line-height: 1.55; }
.checkout-lead { color: var(--card-text); font-size: .92rem; line-height: 1.55; margin-bottom: 16px; }
.checkout-notice { display: flex; gap: 12px; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 14px; padding: 16px; margin-bottom: 16px; }
.checkout-notice > .icon { width: 24px; height: 24px; color: #ea580c; flex-shrink: 0; margin-top: 2px; }
.checkout-notice strong { display: block; color: #9a3412; margin-bottom: 4px; }
.checkout-notice p { color: #7c2d12; font-size: .86rem; line-height: 1.5; margin: 0; }
.checkout-notice a { color: #9a3412; text-decoration: underline; }
.checkout-pay .btn[disabled] { opacity: .55; cursor: not-allowed; }
.checkout-trust { display: flex; flex-wrap: wrap; gap: 14px; margin: 18px 0 14px; }
.checkout-trust-item { display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; color: var(--card-dim); }
.checkout-trust-item > .icon { width: 16px; height: 16px; color: var(--orange); }
.checkout-fineprint { color: var(--card-dim); font-size: .75rem; line-height: 1.5; }
.checkout-fineprint a { color: var(--orange); }
.checkout-step-note { display: flex; gap: 10px; align-items: flex-start; background: #fff; border-radius: 14px; padding: 14px 16px; margin-bottom: 14px; color: var(--card-text); font-size: .88rem; line-height: 1.5; box-shadow: 0 10px 30px rgba(120,30,10,.08); }
.checkout-step-note > .icon { width: 20px; height: 20px; color: var(--orange); flex-shrink: 0; margin-top: 2px; }
.checkout-grid .account-auth { grid-column: auto; }
@media (max-width: 760px) { .checkout-grid { grid-template-columns: 1fr; } }

.footer-business {
  max-width: 1100px; margin: 56px auto 0; padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .25);
  color: rgba(255, 255, 255, .72); font-size: .82rem; line-height: 1.7;
}
.footer-business a { color: rgba(255, 255, 255, .8); }
.footer-legal {
  max-width: 1100px; margin: 14px auto 0; padding-top: 14px;
  color: rgba(255, 255, 255, .6); font-size: .8rem;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .learn-cols { grid-template-columns: 1fr 1fr; gap: 30px 0; }
  .learn-col:nth-child(3) { border-left: none; padding-left: 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 44px; }
  .lead-inner { grid-template-columns: 1fr; gap: 40px; }
  .price-card-w { grid-template-columns: 1fr; gap: 30px; text-align: left; }
}

@media (max-width: 640px) {
  #app { padding: 0 18px 70px; }
  .split { grid-template-columns: 1fr; }
  .facts-panel { border-right: none; border-bottom: 1px solid var(--hairline); }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .learn-cols { grid-template-columns: 1fr; }
  .learn-col { border-left: none; padding: 0; }
  .course-header { flex-direction: column; gap: 12px; }
  .topbar { padding: 0 14px; }
  .topbar-nav a, .topbar-nav button { padding: 0 10px; font-size: .8rem; }
  .topbar-nav .nav-hide-mobile { display: none; }
  .brand { font-size: .88rem; gap: 7px; }
  .brand-logo { width: 27px; height: 27px; }
  .brand-logo-svg svg { height: 22px; }
  .brand #brand-name { display: none; }
  .lesson-content { padding: 24px 20px; }
  .hero { padding: 70px 0 60px; }
  .cta-bar { font-size: 1.1rem; padding: 18px; }
  .lead-inner { padding: 50px 18px; }
  .price-card-w { padding: 34px 24px; }
}

/* ============================================================
   Additions: exercises, account section, motion & polish
   ============================================================ */

/* ---------- selection & focus ---------- */
::selection { background: var(--dark); color: #fff; }
:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.chapter :focus-visible, .review-card :focus-visible { outline-color: var(--orange); }

/* ---------- hero art float ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-art { animation: art-float 9s ease-in-out infinite alternate; }
  @keyframes art-float {
    from { transform: translateY(-10px) rotate(-1deg); }
    to { transform: translateY(14px) rotate(1.5deg); }
  }
}

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- lesson exercise box ---------- */
.exercise {
  border: 1px solid var(--hairline); padding: 34px 36px; margin-top: 30px;
  color: var(--white);
}
.exercise-label {
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--white); opacity: .85; margin-bottom: 10px;
}
.exercise h3 { font-size: 1.4rem; font-weight: 600; margin-bottom: 14px; }
.exercise ol { margin: 0 0 16px 22px; }
.exercise li { margin-bottom: 8px; font-size: .97rem; }
.exercise a { text-decoration: underline; font-weight: 600; }
.exercise em { font-style: normal; font-weight: 600; }
.exercise-note { font-size: .85rem; opacity: .8; margin-top: 14px; }

.prompt-box {
  position: relative; background: var(--dark-band); color: #fff;
  padding: 20px 22px; margin: 10px 0;
}
.prompt-box pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .86rem; line-height: 1.55; white-space: pre-wrap; word-break: break-word;
  padding-right: 70px;
}
.copy-btn {
  position: absolute; top: 12px; right: 12px;
  background: transparent; border: 1px solid rgba(255, 255, 255, .5); color: #fff;
  font-family: inherit; font-size: .74rem; font-weight: 600;
  padding: 5px 12px; border-radius: 2px; cursor: pointer;
}
.copy-btn:hover { background: rgba(255, 255, 255, .12); }

/* ---------- account section ---------- */
.account-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; }
.account-card { background: var(--white); color: var(--card-text); padding: 30px 28px; }
.account-card p { color: var(--card-dim); font-size: .93rem; margin-bottom: 12px; }
.account-card-label {
  font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--card-dim); margin-bottom: 8px;
}
.profile-card { display: flex; gap: 24px; align-items: center; }
.profile-avatar {
  width: 92px; height: 92px; flex-shrink: 0; display: grid; place-items: center;
  background: var(--orange); font-size: 3rem; border-radius: 50%;
}
.profile-fields { flex: 1; min-width: 0; }
.profile-fields label {
  display: block; font-size: .74rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--card-dim); margin-bottom: 6px;
}
.profile-fields input {
  width: 100%; padding: 9px 2px; border: none; border-bottom: 1.5px solid #d8cfc7;
  background: transparent; font-family: inherit; font-size: 1.05rem; font-weight: 600;
  color: var(--card-text); border-radius: 0;
}
.profile-fields input:focus { outline: none; border-bottom-color: var(--orange); }
.avatar-row { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.avatar-pick {
  width: 38px; height: 38px; display: grid; place-items: center;
  background: #f6f0ea; border: 2px solid transparent; border-radius: 50%;
  font-size: 1.15rem; cursor: pointer;
}
.avatar-pick:hover { border-color: #d8cfc7; }
.avatar-pick.active { border-color: var(--orange); background: #ffe9dd; }
.plan-name { font-size: 1.6rem; font-weight: 600; color: var(--card-text); margin-bottom: 8px; }
.plan-card .btn-primary { background: var(--orange); }
.plan-card .btn-primary:hover { background: var(--orange-deep); }

.account-stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 26px; }
.astat { background: var(--white); color: var(--card-text); padding: 20px 12px; text-align: center; }
.astat-num { font-size: 1.45rem; font-weight: 600; }
.astat-label { font-size: .74rem; color: var(--card-dim); margin-top: 2px; }
.level-line {
  display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  font-size: .85rem; font-weight: 600; margin-bottom: 8px;
}

.data-card p { max-width: 640px; }
.data-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.data-actions .btn-outline { color: var(--card-text); border-color: var(--card-text); }
.data-actions .btn-outline:hover { background: #f6f0ea; }
.data-actions .btn-ghost { color: var(--card-dim); }
.data-import { cursor: pointer; }
.data-note { font-size: .82rem; margin-top: 14px; }
.data-note code { background: #f5efe9; padding: 2px 6px; font-size: .85em; }

@media (max-width: 760px) {
  .account-grid { grid-template-columns: 1fr; }
  .account-stats { grid-template-columns: repeat(3, 1fr); }
  .profile-card { flex-direction: column; align-items: flex-start; }
  .exercise { padding: 24px 20px; }
}

/* ============================================================
   Additions: continue card, streak calendar, takeaways, combos
   ============================================================ */

/* ---------- continue-learning card ---------- */
.continue-card {
  display: flex; align-items: center; gap: 20px;
  background: var(--white); color: var(--card-text);
  padding: 24px 28px; margin-top: 40px;
  transition: transform 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
.continue-card:hover { text-decoration: none; transform: translateY(-3px); }
.continue-card:hover .continue-arrow { transform: translateX(6px); }
.continue-info { flex: 1; min-width: 0; }
.continue-label {
  color: var(--orange); font-weight: 600; font-size: .74rem;
  text-transform: uppercase; letter-spacing: .12em; margin-bottom: 6px;
}
.continue-title { font-weight: 600; font-size: 1.25rem; color: var(--card-text); }
.continue-meta { color: var(--card-dim); font-size: .85rem; margin: 4px 0 10px; }
.continue-card .progress-track { background: #eee2da; max-width: 320px; }
.continue-card .progress-fill { background: var(--orange); }
.continue-arrow {
  font-size: 2rem; color: var(--orange); flex-shrink: 0;
  transition: transform 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- streak calendar ---------- */
.streak-cal {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  border: 1px solid var(--hairline); border-top: none;
  padding: 18px 26px;
}
.account-stats-sec .streak-cal { border-top: 1px solid var(--hairline); margin-top: 26px; }
.streak-cal-title { font-weight: 600; font-size: 1.02rem; }
.streak-cal-hint { color: var(--white-dim); font-size: .8rem; }
.streak-days { display: flex; gap: 8px; }
.streak-day {
  width: 40px; height: 48px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px;
  border: 1px solid var(--hairline-soft);
}
.streak-day b { font-size: 1rem; line-height: 1; min-height: 16px; }
.streak-day i { font-style: normal; font-size: .68rem; font-weight: 600; color: var(--white-dim); }
.streak-day.lit { background: rgba(255, 255, 255, .14); border-color: var(--white); }
.streak-day.today { border-color: var(--white); border-width: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .streak-day.lit b { animation: flame-pop 300ms cubic-bezier(0, 0, 0.2, 1) backwards; }
  .streak-day:nth-child(5).lit b { animation-delay: 40ms; }
  .streak-day:nth-child(6).lit b { animation-delay: 80ms; }
  .streak-day:nth-child(7).lit b { animation-delay: 120ms; }
  @keyframes flame-pop {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
  }
}

/* ---------- takeaway box ---------- */
.takeaway {
  display: flex; flex-direction: column; gap: 6px;
  background: var(--dark-band); color: #fff;
  padding: 22px 26px; margin-top: 18px;
  border-left: 4px solid var(--white);
}
.takeaway span {
  font-size: .72rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; opacity: .8;
}
.takeaway p { font-size: 1.05rem; font-weight: 500; line-height: 1.5; }
.takeaway-results { max-width: 560px; margin: 26px auto 0; text-align: left; }

/* ---------- combo chip ---------- */
.combo-chip {
  display: inline-block; margin-left: 10px;
  background: var(--orange); color: #fff;
  font-size: .76rem; font-weight: 600; padding: 3px 12px;
  vertical-align: middle;
}
@media (prefers-reduced-motion: no-preference) {
  .combo-chip { animation: chip-pop 180ms cubic-bezier(0, 0, 0.2, 1) backwards; }
  @keyframes chip-pop {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
  }
}

/* ---------- component entrances (modal, quiz feedback) ---------- */
@media (prefers-reduced-motion: no-preference) {
  #modal-overlay.open #modal-content { animation: modal-in 250ms cubic-bezier(0, 0, 0.2, 1); }
  @keyframes modal-in {
    from { transform: scale(0.96) translateY(8px); opacity: 0; }
    to { transform: none; opacity: 1; }
  }
  .feedback { animation: feedback-in 200ms cubic-bezier(0, 0, 0.2, 1); }
  @keyframes feedback-in {
    from { transform: translateY(10px); opacity: 0; }
    to { transform: none; opacity: 1; }
  }
}

@media (max-width: 640px) {
  .streak-cal { justify-content: center; }
  .streak-day { width: 34px; height: 44px; }
  .continue-card { flex-direction: column; align-items: flex-start; gap: 10px; }
  .continue-arrow { display: none; }
  .account-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   Line-icon system (replaces all emojis)
   ============================================================ */
.icon { display: inline-flex; width: 1.1em; height: 1.1em; vertical-align: -0.18em; flex-shrink: 0; }
.icon svg {
  width: 100%; height: 100%;
  stroke: currentColor; fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

.brand-logo svg { width: 18px; height: 18px; }

/* stats bar */
.stat-icon { display: flex; }
.stat-icon .icon { width: 26px; height: 26px; color: var(--white); }

/* streak calendar */
.streak-cal-title .icon { width: 20px; height: 20px; margin-right: 4px; }
.streak-day b .icon { width: 16px; height: 16px; color: var(--white); }

/* continue card */
.continue-label .icon { width: 12px; height: 12px; margin-right: 4px; }

/* chapter / course icons */
.chapter-icon .icon { width: 44px; height: 44px; color: var(--orange); }
.chapter-icon .icon svg { stroke-width: 1.4; }
.course-icon-lg .icon { width: 54px; height: 54px; color: var(--white); }
.course-icon-lg .icon svg { stroke-width: 1.3; }
.progress-row .course-icon .icon { width: 30px; height: 30px; color: var(--orange); }

/* lesson list check */
.lesson-num .icon { width: 16px; height: 16px; color: #fff; }
.lesson-item.done .lesson-num { background: #f4ece6; }
.lesson-item.done .lesson-num .icon { color: var(--orange); }
.done-flag .icon { width: 15px; height: 15px; }

/* badges */
.badge-icon { display: flex; justify-content: center; }
.badge-icon .icon { width: 36px; height: 36px; color: var(--orange); }
.badge-icon .icon svg { stroke-width: 1.5; }

/* quiz feedback + combo */
.feedback strong .icon { width: 17px; height: 17px; margin-right: 2px; }
.icon-good { color: var(--green); }
.icon-bad { color: var(--red); }
.combo-chip .icon { width: 12px; height: 12px; margin-right: 2px; }

/* results */
.results-icon { display: flex; justify-content: center; margin-bottom: 18px; }
.results-icon .icon { width: 78px; height: 78px; color: var(--white); }
.results-icon .icon svg { stroke-width: 1.1; }

/* modal */
.modal-icon { display: flex; justify-content: center; margin-bottom: 14px; }
.modal-icon .icon { width: 46px; height: 46px; color: var(--orange); }
.modal-icon .icon svg { stroke-width: 1.4; }

/* account */
.profile-avatar .icon { width: 44px; height: 44px; color: #fff; }
.profile-avatar .icon svg { stroke-width: 1.4; }
.avatar-pick { color: var(--card-text); }
.avatar-pick .icon { width: 19px; height: 19px; }
.avatar-pick.active { color: var(--orange); }

/* tags */
.tag .icon { width: 12px; height: 12px; vertical-align: -0.12em; }

/* ============================================================
   Pricing offer: badge, anchor price, countdown timer, local FX
   ============================================================ */
.offer-badge {
  display: inline-block; background: var(--dark); color: #fff;
  font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  padding: 8px 18px; margin-bottom: 14px;
}
.price-left { text-align: center; }
.price-anchor { color: var(--card-dim); font-size: .95rem; margin-bottom: 6px; }
.price-anchor s { text-decoration-thickness: 2px; text-decoration-color: var(--red); font-weight: 600; }
.price-amount em { font-style: normal; font-size: .45em; font-weight: 600; color: var(--card-dim); }
.price-period { color: var(--card-dim); font-size: .85rem; margin-top: 4px; }
.price-local { color: var(--card-text); font-weight: 600; font-size: .95rem; margin-top: 10px; }

.offer-timer {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.offer-timer-label {
  font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--card-dim); margin-right: 4px;
}
.timer-unit {
  display: flex; flex-direction: column; align-items: center;
  background: var(--dark); color: #fff; padding: 8px 12px; min-width: 54px;
}
.timer-unit b { font-size: 1.3rem; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.timer-unit i { font-style: normal; font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }

/* timer inside the paywall modal */
#modal-content .offer-timer { justify-content: center; margin: 4px 0 16px; }
#modal-content .offer-timer-label { width: 100%; text-align: center; margin: 0 0 6px; }
#modal-content h2 s, .plan-card s { color: var(--card-dim); text-decoration-color: var(--red); }
#modal-content p s { color: var(--card-dim); text-decoration-color: var(--red); font-weight: 600; }

@media (max-width: 640px) {
  .timer-unit { min-width: 46px; padding: 6px 8px; }
  .timer-unit b { font-size: 1.05rem; }
}


/* ============================================================
   Soft coral restyle: pill buttons + rounded cards (per reference)
   ============================================================ */
.btn, .cta-bar, .btn-footer { border-radius: 999px; }
.offer-badge { border-radius: 999px; }
.timer-unit { border-radius: 12px; }
.chapter, .review-card, .account-card, .astat, .price-card-w,
.lesson-content, .exercise, .learn-panel, .split, .stats-bar,
.streak-cal, .continue-card, .lead-promo, #modal-content,
.lesson-item a, .progress-row, .badge { border-radius: 18px; }
.quiz-option, .feedback, .takeaway, .prompt-box { border-radius: 14px; }
.streak-day { border-radius: 10px; }
.brand-logo { border-radius: 10px; }
.lesson-quiz-cta { border-radius: 18px; }
.account-stats-sec .streak-cal { border-radius: 18px; }
.stats-bar { margin-bottom: 14px; }
.streak-cal { border-top: 1px solid var(--hairline); }

/* block layout (not flex): raw text around <strong> must flow as one
   paragraph — flex would split it into separate "column" items */
.unlock-note {
  display: block;
  color: var(--white); font-size: 1rem; font-weight: 500;
  margin: -14px 0 26px;
}
.unlock-note .icon { width: 20px; height: 20px; display: inline-block; vertical-align: -4px; margin-right: 7px; }


/* ============================================================
   Admin panel
   ============================================================ */
.admin-sec { margin-top: 60px; }
.cfg-row {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  padding: 12px 0; border-bottom: 1px solid #eee2da;
}
.cfg-row:last-child { border-bottom: none; }
.cfg-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; align-self: center; }
.cfg-dot.on { background: var(--green); }
.cfg-dot.off { background: var(--red); }
.cfg-name { font-weight: 600; color: var(--card-text); min-width: 220px; }
.cfg-hint { color: var(--card-dim); font-size: .88rem; flex: 1; }

.admin-warn { color: var(--red); font-size: .88rem; font-weight: 500; }
.admin-key-form { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.admin-key-form input {
  flex: 1 1 260px; padding: 12px 18px; border-radius: 999px;
  border: 1.5px solid #d8cfc7; background: #fff; font-family: inherit;
  font-size: .92rem; color: var(--card-text);
}
.admin-key-form input:focus { outline: none; border-color: var(--orange); }
.admin-key-form .btn-primary { background: var(--orange); }

.admin-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.admin-actions .btn-outline { color: var(--white); border-color: var(--white); }
.admin-actions .btn-ghost { color: var(--white-dim); }

.admin-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 20px; }
.admin-tiles .astat { background: #faf6f2; border-radius: 12px; }

.admin-chart {
  display: flex; align-items: flex-end; gap: 5px; height: 80px;
  padding: 10px 0 4px; margin-bottom: 20px; border-bottom: 1.5px solid #eee2da;
}
.admin-bar { flex: 1; height: 100%; display: flex; align-items: flex-end; }
.admin-bar i { display: block; width: 100%; min-height: 3px; background: var(--orange); border-radius: 4px 4px 0 0; }

.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.admin-table th {
  text-align: left; padding: 8px 12px; color: var(--card-dim);
  font-size: .72rem; text-transform: uppercase; letter-spacing: .08em;
  border-bottom: 1.5px solid #eee2da;
}
.admin-table td { padding: 9px 12px; border-bottom: 1px solid #f4ece6; color: var(--card-text); }

.admin-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.admin-link { display: flex; flex-direction: column; gap: 6px; transition: transform 150ms cubic-bezier(0.4, 0, 0.2, 1); }
.admin-link:hover { text-decoration: none; transform: translateY(-3px); }
.admin-link strong { color: var(--card-text); font-size: 1.05rem; }
.admin-link span { color: var(--card-dim); font-size: .88rem; }

.footer-legal a { color: rgba(255, 255, 255, .55); }


/* ============================================================
   Admin v2: customize form, announcement bar, purchase rows
   ============================================================ */
.announce-bar {
  background: var(--dark); color: #fff; text-align: center;
  padding: 10px 18px; font-size: .9rem; font-weight: 500;
}
.draft-flag {
  font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(255, 255, 255, .18); border: 1px solid var(--white);
  padding: 4px 12px; border-radius: 999px; vertical-align: middle; margin-left: 10px;
}
.cust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 20px; }
.cust-grid label, .cust-icons-grid label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--card-dim);
}
.cust-wide { grid-column: 1 / -1; }
.cust-grid input[type="text"], .cust-grid input[type="number"], .cust-grid input[type="datetime-local"],
.cust-grid textarea, .cust-icons-grid select {
  padding: 11px 14px; border: 1.5px solid #d8cfc7; border-radius: 12px;
  background: #fff; font-family: inherit; font-size: .92rem; color: var(--card-text);
  text-transform: none; letter-spacing: 0; font-weight: 400;
}
.cust-grid textarea { resize: vertical; }
.cust-grid input:focus, .cust-grid textarea:focus, .cust-icons-grid select:focus { outline: none; border-color: var(--orange); }
.cust-grid input[type="color"] { padding: 4px; height: 46px; border: 1.5px solid #d8cfc7; border-radius: 12px; background: #fff; cursor: pointer; }
.cust-icons { margin-bottom: 18px; }
.cust-icons .cfg-name { margin-bottom: 10px; }
.cust-icons-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.cust-actions .btn-primary { background: var(--orange); }
.cust-actions .btn-primary:hover { background: var(--orange-deep); }
.cust-card > .admin-warn { margin: 6px 0 14px; }
.admin-table .row-purchase td { background: #f2fbf4; font-weight: 500; }


/* ============================================================
   Admin v3: sidebar dashboard layout (light admin chrome)
   ============================================================ */
body.admin-mode .footer, body.admin-mode #announce-bar { display: none; }
body.admin-mode #app { max-width: none; padding: 0; }

.admin-shell { display: flex; min-height: calc(100vh - 65px); align-items: stretch; }

.admin-side {
  width: 240px; flex-shrink: 0; display: flex; flex-direction: column;
  background: #1d2127; padding: 20px 0 16px;
}
.admin-side-title {
  padding: 0 24px 14px; color: rgba(255, 255, 255, .55);
  font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
.admin-side-nav { display: flex; flex-direction: column; }
.admin-nav {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 24px; color: #c4c9d2; font-size: .94rem; font-weight: 500;
  border-left: 3px solid transparent;
}
.admin-nav .icon { width: 18px; height: 18px; }
.admin-nav:hover { background: #262b33; color: #fff; text-decoration: none; }
.admin-nav.active { background: #2a3038; color: #fff; border-left-color: var(--orange); }
.side-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); margin-left: auto; }
.admin-side-links { margin-top: auto; border-top: 1px solid #2c313a; padding-top: 8px; }
.admin-side-links .admin-nav { font-size: .86rem; color: #9aa1ad; }

.admin-main { flex: 1; min-width: 0; padding: 34px 42px 60px; }
.admin-title { color: #1c1c1c; font-size: 1.65rem; font-weight: 600; margin-bottom: 24px; }
.admin-card-title { color: #1c1c1c; font-size: 1.02rem; font-weight: 600; margin-bottom: 14px; }

body.admin-mode .account-card {
  border: 1px solid #e3e6ea; box-shadow: 0 1px 3px rgba(20, 24, 32, .05);
  border-radius: 12px; margin-bottom: 18px;
}
body.admin-mode .admin-actions .btn-outline { color: #1c1c1c; border-color: #c9ced6; background: #fff; }
body.admin-mode .admin-actions .btn-outline:hover { background: #f2f4f7; }
body.admin-mode .admin-actions .btn-ghost { color: #6a707b; }
body.admin-mode .admin-actions .btn-ghost:hover { color: #1c1c1c; }
body.admin-mode .admin-tiles .astat { background: #fff; border: 1px solid #e3e6ea; }
body.admin-mode .admin-links { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
body.admin-mode .admin-link { border: 1px solid #e3e6ea; box-shadow: none; margin-bottom: 0; }
body.admin-mode .breadcrumb { display: none; }

.dash-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; margin-top: 18px; }

@media (max-width: 860px) {
  .admin-shell { flex-direction: column; }
  .admin-side { width: 100%; flex-direction: row; align-items: center; padding: 0; overflow-x: auto; }
  .admin-side-title, .admin-side-links { display: none; }
  .admin-side-nav { flex-direction: row; }
  .admin-nav { padding: 13px 16px; border-left: none; border-bottom: 3px solid transparent; white-space: nowrap; }
  .admin-nav.active { border-bottom-color: var(--orange); }
  .admin-main { padding: 22px 18px 50px; }
  .dash-grid { grid-template-columns: 1fr; }
}


/* cloud sync restore form on the account page (white card) */
.sync-restore { margin-top: 16px; }
.sync-restore .btn-outline { color: var(--card-text); border-color: #c9ced6; }
.sync-restore .btn-outline:hover { background: #f4efe9; }


/* ============================================================
   Business (ERP) page: funnel, finance, tasks
   ============================================================ */
.funnel-row {
  display: flex; align-items: baseline; gap: 14px;
  padding: 12px 0; border-bottom: 1px solid #eef1f4;
}
.funnel-row:last-child { border-bottom: none; }
.funnel-row span { min-width: 100px; color: var(--card-dim); font-size: .88rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.funnel-row b { font-size: 1.5rem; color: var(--card-text); font-weight: 600; }
.funnel-row i { font-style: normal; color: var(--card-dim); font-size: .85rem; }

.biz-form { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.biz-form input {
  flex: 1 1 160px; padding: 11px 16px; border: 1.5px solid #d8dde3; border-radius: 10px;
  background: #fff; font-family: inherit; font-size: .92rem; color: var(--card-text);
}
.biz-form input:focus { outline: none; border-color: var(--orange); }
.biz-form #exp-amount { flex: 0 1 110px; }
.biz-form .btn-primary { background: var(--orange); padding: 11px 24px; }
.biz-form .btn-primary:hover { background: var(--orange-deep); }

.task-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 4px; border-bottom: 1px solid #eef1f4; color: var(--card-text);
}
.task-row:last-child { border-bottom: none; }
.task-row input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--orange); cursor: pointer; }
.task-row span { flex: 1; font-size: .95rem; }
.task-row.done span { text-decoration: line-through; color: var(--card-dim); }
.row-del {
  background: none; border: none; color: #b6bcc4; cursor: pointer;
  font-size: .9rem; padding: 4px 8px; border-radius: 6px;
}
.row-del:hover { color: var(--red); background: #fdf1f0; }


/* ============================================================
   Live counter (hero)
   ============================================================ */
.live-counter {
  position: relative; z-index: 2;
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 30px; padding: 12px 24px;
  border: 1px solid var(--hairline); border-radius: 999px;
  color: var(--white); font-size: .95rem;
}
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #6dfba4; flex-shrink: 0; }
.live-label {
  font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: #6dfba4; margin-right: 4px;
}
.live-counter b { font-size: 1.9rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.live-text { color: rgba(255,255,255,.9); }
@media (prefers-reduced-motion: no-preference) {
  .live-dot { animation: live-pulse 2s ease-in-out infinite; }
  @keyframes live-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(109, 251, 164, .55); }
    50% { box-shadow: 0 0 0 7px rgba(109, 251, 164, 0); }
  }
  #live-count.ticked { animation: count-tick 400ms cubic-bezier(0, 0, 0.2, 1); }
  @keyframes count-tick {
    0% { transform: translateY(-6px); opacity: .3; }
    100% { transform: none; opacity: 1; }
  }
}
.cust-grid select {
  padding: 11px 14px; border: 1.5px solid #d8cfc7; border-radius: 12px;
  background: #fff; font-family: inherit; font-size: .92rem; color: var(--card-text);
  text-transform: none; letter-spacing: 0; font-weight: 400;
}

/* ============================================================
   Rotating reviews (auto-cycling carousel)
   ============================================================ */
#reviews-rotator .review-card {
  transition: opacity .45s ease, transform .45s ease;
}
#reviews-rotator.rotating .review-card {
  opacity: 0; transform: translateY(10px);
}
@media (prefers-reduced-motion: reduce) {
  #reviews-rotator .review-card { transition: none; }
  #reviews-rotator.rotating .review-card { opacity: 1; transform: none; }
}

/* ============================================================
   LIGHT THEME v2 — primary white, orange as accent
   (overrides the earlier full-bleed orange theme)
   ============================================================ */
:root {
  --hairline: rgba(28,20,12,.13);
  --hairline-soft: rgba(28,20,12,.07);
  --ink: #1c1c1c;
  --ink-dim: #6a6259;
}
body { background: #fdf8f5; color: var(--ink); }
a { color: var(--orange); }
a:hover { color: var(--orange-deep); }
h1, h2, h3, h4 { color: var(--ink); }

/* ---- topbar ---- */
.topbar { background: #fff; border-bottom: 1px solid var(--hairline); }
.brand, .brand #brand-name { color: var(--ink); }
.brand #brand-name { color: var(--ink-dim); }
.brand-logo-svg svg path { fill: var(--ink) !important; }
.topbar-nav a, .topbar-nav button { color: var(--ink); }
.topbar-nav .nav-sep { border-left-color: var(--hairline); }

/* ---- buttons ---- */
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-deep); }
.btn-outline { color: var(--ink); border: 1px solid var(--ink); }
.btn-outline:hover { background: rgba(28,20,12,.06); }
.btn-ghost { color: var(--ink-dim); }
.btn-ghost:hover { color: var(--ink); }

/* ---- split hero ---- */
.hero-split {
  display: grid; grid-template-columns: 320px 1fr; margin-top: 26px;
  border: 1px solid var(--hairline); border-radius: 22px; overflow: hidden;
  background: #fff; box-shadow: 0 20px 50px rgba(120,30,10,.10);
}
.hero-left {
  background: linear-gradient(158deg, #f0552f 0%, #fb8a5c 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 34px 30px; min-height: 440px;
}
.hero-brandmark { font-size: clamp(3.4rem, 7vw, 5.6rem); font-weight: 700; color: #fff; line-height: .88; letter-spacing: -.03em; }
.hero-brandmark span { color: #fff; }
.hero-left-foot { color: rgba(255,255,255,.9); font-weight: 600; margin-top: 12px; text-transform: uppercase; letter-spacing: .12em; font-size: .74rem; }
.hero-right { position: relative; padding: 46px 46px; overflow: hidden; }
.hero-right .hero-eyebrow { color: var(--orange); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: .82rem; margin-bottom: 12px; }
.hero-right h1 { color: var(--ink); font-size: clamp(2.3rem, 4.6vw, 3.6rem); text-transform: uppercase; font-weight: 600; line-height: 1.02; letter-spacing: -.01em; position: relative; z-index: 2; }
.hero-right .hero-sub { color: var(--ink-dim); position: relative; z-index: 2; }
.hero-cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; position: relative; z-index: 2; }
.hero-split .hero-art { position: absolute; right: -150px; top: 30px; width: 480px; height: 480px; opacity: 1; }
.hero-split .hero-art g { stroke: rgba(244,96,62,.16) !important; }

/* ---- section titles & eyebrows ---- */
.section-title, .page-title { color: var(--ink); }
.eyebrow, .prose-eyebrow, .facts-head, .continue-label { color: var(--orange); }

/* ---- split facts panel ---- */
.split { background: #fff; border-color: var(--hairline); box-shadow: 0 16px 40px rgba(120,30,10,.08); }
.facts-panel { border-right-color: var(--hairline); }
.fact { color: var(--ink); }
.fact + .fact { border-top-color: var(--hairline-soft); }
.fact:hover { background: rgba(244,96,62,.06); }
.fact-icon { background: rgba(244,96,62,.1); border-color: rgba(244,96,62,.3); }
.fact-icon svg { stroke: var(--orange); }
.fact strong, .split-prose p strong { color: var(--ink); }
.split-prose p { color: var(--ink-dim); }
.prose-callout { background: var(--orange); color: #fff; border: none; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 10px 26px rgba(244,96,62,.3); }
.prose-callout span { color: rgba(255,255,255,.88); }
.prose-callout strong { color: #fff; }

/* ---- stats bar + streak calendar ---- */
.stats-bar, .streak-cal { border-color: var(--hairline); background: #fff; }
.stat-value, .stat-link { color: var(--ink); }
.stat-label { color: var(--ink-dim); }
.stat-icon .icon { color: var(--orange); }
.level-track, .progress-track { background: rgba(28,20,12,.1); }
.level-fill, .progress-fill { background: var(--orange); }
.streak-cal-title { color: var(--ink); }
.streak-cal-hint { color: var(--ink-dim); }
.streak-day { border-color: var(--hairline); }
.streak-day i { color: var(--ink-dim); }
.streak-day.lit { background: rgba(244,96,62,.12); border-color: var(--orange); }
.streak-day.today { border-color: var(--orange); }
.streak-day.lit b .icon { color: var(--orange); }

/* ---- tools row + reviews ---- */
.tools-row span { color: var(--ink); opacity: 1; }
#reviews .section-title { color: var(--ink); }
.avatar { background: var(--orange); }

/* ---- live counter ---- */
.live-counter { border-color: var(--hairline); color: var(--ink); }
.live-counter b { color: var(--ink); }
.live-dot { background: #16a34a; }
.live-label { color: #15803d; }
.live-text { color: var(--ink-dim); }

/* ---- learn panel ---- */
.learn-panel { border-color: var(--hairline); }
.learn-panel h2 { color: var(--ink); }
.learn-col { border-left-color: var(--hairline-soft); }
.learn-col p { color: var(--ink); }
.learn-icon svg { stroke: var(--orange); }

/* ---- unlock note ---- */
.unlock-note { color: var(--ink); }
.unlock-note .icon { color: var(--orange); }

/* ---- price section ---- */
.price-sec .section-title, .price-amount { color: var(--ink); }
.price-card-w { border: 1px solid var(--hairline); box-shadow: 0 16px 40px rgba(120,30,10,.08); }

/* ---- FAQ ---- */
.faq-item { border-top-color: var(--hairline); }
.faq-item:last-child { border-bottom-color: var(--hairline); }
.faq-item h4 { color: var(--ink); }
.faq-item p { color: var(--ink-dim); }

/* ---- lead band stays dark: keep its inputs light ---- */
.lead-band .lead-form input { border-bottom-color: rgba(255,255,255,.4); color: #fff; }
.lead-body h2 { color: #fff; }

/* ---- course pages / lessons / quiz (white bg) ---- */
.breadcrumb a { color: var(--orange); }
.course-header p, .course-meta { color: var(--ink-dim); }
.lesson-meta-row { color: var(--ink-dim); }
.exercise { color: var(--ink); border-color: var(--hairline); }
.exercise h3 { color: var(--ink); }
.exercise-label { color: var(--orange); }
.exercise a { color: var(--orange); }
.exercise-note { color: var(--ink-dim); }
.takeaway { color: #fff; }             /* dark band, keep white */
.quiz-quit, .quiz-count { color: var(--ink-dim); }
.quiz-dot { background: rgba(28,20,12,.15); }
.quiz-dot.past { background: var(--ink); }
.quiz-dot.current { background: var(--orange); }
.results-score { color: var(--ink-dim); }
.results-xp { color: var(--orange); }
.results-course-done { color: #15803d; }
.results-icon .icon { color: var(--orange); }
.takeaway-results { color: #fff; }

/* ---- account extras ---- */
.level-line { color: var(--ink); }
.data-note { color: var(--ink-dim); }
.data-note code { background: #f4ece6; }

/* ---- responsive split hero ---- */
@media (max-width: 760px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-left { min-height: 200px; padding: 26px 24px; }
  .hero-brandmark { font-size: 3.4rem; }
  .hero-right { padding: 30px 24px; }
  .hero-split .hero-art { display: none; }
}

/* ============================================================
   LIGHT THEME v3 — open hero, glass panels, orange logo
   ============================================================ */
/* orange logo in the top bar */
.brand-logo-svg svg path { fill: var(--orange) !important; }

/* open, airy hero (no orange square) */
.hero-open { position: relative; padding: 70px 0 40px; overflow: hidden; }
.hero-open .hero-art { position: absolute; right: -120px; top: -20px; width: 560px; height: 560px; opacity: 1; pointer-events: none; }
.hero-open .hero-art g { stroke: rgba(244,96,62,.14) !important; }
.hero-open .hero-eyebrow { color: var(--orange); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: .84rem; margin-bottom: 14px; position: relative; z-index: 2; }
.hero-open h1 { color: var(--ink); font-size: clamp(2.6rem, 6.5vw, 5rem); text-transform: uppercase; font-weight: 600; line-height: 1.01; letter-spacing: -.01em; position: relative; z-index: 2; }
.hero-open .hero-sub { color: var(--ink-dim); max-width: 620px; margin-top: 22px; font-size: 1.12rem; position: relative; z-index: 2; }
.hero-open .hero-cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; position: relative; z-index: 2; }

/* glass button + glass panels */
.btn-glass {
  background: rgba(255,255,255,.5); color: var(--ink);
  border: 1px solid var(--hairline);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.btn-glass:hover { background: rgba(255,255,255,.8); }

.glass, .split, .stats-bar, .streak-cal, .learn-panel, .price-card-w {
  background: rgba(255,255,255,.55) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.05);
  backdrop-filter: blur(14px) saturate(1.05);
  border: 1px solid rgba(255,255,255,.75) !important;
  box-shadow: 0 18px 44px rgba(120,30,10,.10);
}
.live-counter.glass { color: var(--ink); border-radius: 999px; }
.live-counter.glass b { color: var(--ink); }

/* kids section */
.kids-grid .chapter { border-top: 3px solid var(--orange); }
.tag-kids { color: var(--orange); font-weight: 600; }

@media (max-width: 640px) {
  .hero-open { padding: 40px 0 24px; }
  .hero-open .hero-art { display: none; }
}

/* price tag on buy-once (separate) course cards */
.tag-price { color: var(--orange); font-weight: 700; }
.tag-price s { color: var(--ink-dim); font-weight: 500; margin-right: 2px; }
.modal-anchor { color: var(--card-dim); }
.modal-anchor s { color: var(--card-dim); }
#fields .chapter { border-top: 3px solid var(--orange); }

/* ============================================================
   Pricing tiers (3-up)
   ============================================================ */
.price-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.tier {
  background: #fff; border: 1px solid var(--hairline); border-radius: 18px;
  padding: 30px 26px; display: flex; flex-direction: column;
  box-shadow: 0 10px 30px rgba(120,30,10,.06);
}
.tier-featured { border: 2px solid var(--orange); box-shadow: 0 20px 50px rgba(244,96,62,.18); position: relative; }
.tier-flag {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  white-space: nowrap; max-width: none;
  background: var(--orange); color: #fff; font-size: .68rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; padding: 5px 14px; border-radius: 999px;
  box-shadow: 0 4px 12px rgba(244,96,62,.3);
}
.tier-name { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-dim); }
.tier-price { font-size: 2.6rem; font-weight: 700; color: var(--ink); margin: 8px 0 2px; letter-spacing: -.02em; }
.tier-price span { font-size: .9rem; font-weight: 500; color: var(--ink-dim); }
.tier-sub { color: var(--ink-dim); font-size: .9rem; margin-bottom: 16px; }
.tier-list { list-style: none; margin: 0 0 20px; padding: 0; flex: 1; }
.tier-list li { position: relative; padding: 7px 0 7px 22px; font-size: .93rem; color: var(--ink); border-top: 1px solid var(--hairline-soft); }
.tier-list li:first-child { border-top: none; }
.tier-list li::before { content: ""; position: absolute; left: 2px; top: 14px; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.tier .btn-wide { margin-top: auto; }
.tier .btn-wide + .btn-wide { margin-top: 8px; }

/* plan lineup — wraps gracefully, annual scaled up */
.price-tiers-5 { grid-template-columns: repeat(5, 1fr); gap: 14px; align-items: stretch; }
.price-tiers-5 .tier { padding: 26px 20px; }
.price-tiers-5 .tier-price { font-size: 2.1rem; }
.price-tiers-4 { grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.price-tiers-4 .tier { padding: 26px 22px; }
.price-tiers-4 .tier-price { font-size: 2.2rem; }
.tier-trial { border: 1.5px solid rgba(244,96,62,.4); background: linear-gradient(180deg, #fff6f2, #fff); }
.tier-trial .tier-price span, .tier-price span { white-space: nowrap; }
@media (max-width: 900px) { .price-tiers-4 { grid-template-columns: repeat(2, 1fr); } }
.price-intro { text-align: center; color: var(--ink-dim); max-width: 640px; margin: -6px auto 22px; }
.tier-permonth { color: var(--orange); font-weight: 700; font-size: 1rem; margin-top: -2px; }
.tier-featured { transform: scale(1.04); z-index: 1; }
.tier-lifetime { border: 1.5px solid #d9a441; background: linear-gradient(180deg, #fffdf7, #fff); }
.tier-flag-gold { background: linear-gradient(135deg, #e0a92e, #c8871a); display: inline-flex; align-items: center; gap: 4px; }
.tier-flag-gold .icon { width: 13px; height: 13px; color: #fff; }
.tier-note { color: var(--ink-dim) !important; font-size: .82rem !important; display: flex; align-items: center; gap: 6px; }
.tier-note::before { display: none !important; }
.tier-note .icon { width: 15px; height: 15px; color: #1e7c3c; flex-shrink: 0; }
#lifetime-remaining { color: var(--orange); }

@media (max-width: 1100px) { .price-tiers-5 { grid-template-columns: repeat(3, 1fr); } .tier-featured { transform: none; } }
@media (max-width: 820px) {
  .price-tiers { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .price-tiers-5 { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
}

/* ============================================================
   Certificate of completion
   ============================================================ */
.cert-cta {
  display: flex; align-items: center; gap: 16px;
  background: linear-gradient(135deg, var(--orange), #fb8a5c); color: #fff;
  padding: 20px 24px; border-radius: 16px; margin: 4px 0 22px;
  box-shadow: 0 14px 34px rgba(244,96,62,.28);
}
.cert-cta:hover { text-decoration: none; filter: brightness(1.03); }
.cert-cta-icon .icon { width: 34px; height: 34px; color: #fff; }
.cert-cta span { color: #fff; }
.cert-cta-arrow { margin-left: auto; font-size: 1.6rem; }

.cert-wrap { display: flex; justify-content: center; margin: 10px 0 24px; }
.certificate {
  position: relative;
  width: 100%; max-width: 820px; aspect-ratio: 1.414 / 1;
  background:
    radial-gradient(120% 140% at 8% 4%, #fff8f4 0%, rgba(255,248,244,0) 46%),
    radial-gradient(120% 140% at 96% 96%, #fff3ec 0%, rgba(255,243,236,0) 42%),
    #fffdfb;
  border-radius: 14px;
  box-shadow: 0 30px 70px rgba(120,30,10,.18), 0 2px 0 rgba(255,255,255,.9) inset;
  padding: clamp(12px, 2.4%, 22px);
  color: var(--ink);
  overflow: hidden;
}
/* Double hairline frame */
.certificate::before {
  content: ""; position: absolute; inset: clamp(10px, 2%, 20px);
  border: 1.5px solid var(--orange); border-radius: 9px; pointer-events: none;
}
.certificate::after {
  content: ""; position: absolute; inset: clamp(15px, 3%, 27px);
  border: 1px solid rgba(244,96,62,.35); border-radius: 6px; pointer-events: none;
}
/* Corner accents */
.cc { position: absolute; width: clamp(22px, 4.4%, 40px); height: clamp(22px, 4.4%, 40px); z-index: 2; }
.cc::before, .cc::after { content: ""; position: absolute; background: var(--orange); }
.cc::before { width: 100%; height: 2px; } .cc::after { width: 2px; height: 100%; }
.cc-tl { top: clamp(10px, 2%, 20px); left: clamp(10px, 2%, 20px); }
.cc-tl::before { top: 0; left: 0; } .cc-tl::after { top: 0; left: 0; }
.cc-tr { top: clamp(10px, 2%, 20px); right: clamp(10px, 2%, 20px); }
.cc-tr::before { top: 0; right: 0; } .cc-tr::after { top: 0; right: 0; }
.cc-bl { bottom: clamp(10px, 2%, 20px); left: clamp(10px, 2%, 20px); }
.cc-bl::before { bottom: 0; left: 0; } .cc-bl::after { bottom: 0; left: 0; }
.cc-br { bottom: clamp(10px, 2%, 20px); right: clamp(10px, 2%, 20px); }
.cc-br::before { bottom: 0; right: 0; } .cc-br::after { bottom: 0; right: 0; }

/* Full ABA. watermark behind everything — complete logo, never cropped */
.cert-watermark {
  position: absolute; inset: 0; z-index: 0;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; pointer-events: none;
}
.cert-watermark svg {
  width: 94%; max-width: 94%; height: auto; flex-shrink: 0;
  color: var(--orange); opacity: .06;
}
.cert-inner {
  position: relative; z-index: 1; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: clamp(20px, 6%, 62px) clamp(24px, 9%, 90px);
}
.cert-logo { display: flex; justify-content: center; color: var(--orange); margin-bottom: 1.2%; }
.cert-logo svg { height: clamp(22px, 4vw, 34px); width: auto; }
.cert-org {
  font-size: clamp(.56rem, 1.35vw, .74rem); font-weight: 600;
  letter-spacing: .34em; text-transform: uppercase; color: var(--ink-dim);
  margin-bottom: 4.5%;
}
.cert-title {
  font-family: inherit; font-weight: 600;
  font-size: clamp(1.3rem, 3.8vw, 2.35rem); color: var(--ink);
  line-height: 1.08; letter-spacing: -.01em;
}
.cert-orn { color: var(--orange); width: clamp(120px, 26%, 200px); margin: 2.4% 0 3.4%; }
.cert-orn svg { width: 100%; height: auto; display: block; }
.cert-presented { color: var(--ink-dim); font-size: clamp(.72rem, 1.6vw, .92rem); }
.cert-name {
  font-family: inherit; font-weight: 600;
  font-size: clamp(1.6rem, 4.6vw, 2.8rem); color: var(--orange);
  margin: 1.4% 0 1.2%; line-height: 1.08; letter-spacing: -.01em;
}
.cert-for { color: var(--ink-dim); font-size: clamp(.72rem, 1.6vw, .92rem); }
.cert-course {
  font-size: clamp(1.05rem, 2.9vw, 1.7rem); font-weight: 600; color: var(--ink);
  margin: 1% 0 1.4%;
}
.cert-detail { color: var(--ink-dim); font-size: clamp(.66rem, 1.5vw, .86rem); }
.cert-foot { display: flex; align-items: flex-end; justify-content: space-between; width: 100%; margin-top: auto; padding-top: 4.5%; gap: 4%; }
.cert-foot-col { flex: 1; min-width: 0; }
.cert-foot-val { font-weight: 600; color: var(--ink); font-size: clamp(.72rem, 1.6vw, .92rem); border-top: 1.5px solid var(--hairline); padding-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cert-sign { font-family: inherit; font-weight: 600; }
.cert-foot-label { color: var(--ink-dim); font-size: clamp(.58rem, 1.3vw, .72rem); text-transform: uppercase; letter-spacing: .08em; margin-top: 3px; }
.cert-seal { flex-shrink: 0; width: clamp(48px, 12%, 96px); margin-bottom: -2%; }
.cert-seal svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 6px 12px rgba(194,62,34,.28)); }
.cert-id { margin-top: 3%; color: var(--ink-dim); font-size: clamp(.52rem, 1.25vw, .68rem); letter-spacing: .06em; }
.cert-actions { display: flex; gap: 12px; justify-content: center; }
.cert-hint { text-align: center; color: var(--ink-dim); font-size: .85rem; margin-top: 12px; }
.cert-name-prompt { max-width: 460px; margin: 0 auto 18px; }
.cert-name-prompt input { padding: 12px 16px; border: 1.5px solid #d8cfc7; border-radius: 10px; width: 100%; font-family: inherit; font-size: 1rem; color: var(--ink); }
.cert-name-prompt input:focus { outline: none; border-color: var(--orange); }

@media print {
  .topbar, .footer, #announce-bar, .no-print, .breadcrumb { display: none !important; }
  body { background: #fff !important; }
  #app { padding: 0 !important; max-width: none !important; }
  .cert-wrap { margin: 0; }
  .certificate { box-shadow: none; max-width: none; width: 100%; }
  @page { size: landscape; margin: 12mm; }
}

/* ============================================================
   User accounts (login / register)
   ============================================================ */
.auth-card { max-width: none; } /* sized by the account grid */
.account-auth { grid-column: 1 / -1; } /* login / status spans full width; plan + profile sit balanced below */
.auth-tabs { display: flex; gap: 8px; margin: 14px 0; }
.auth-tab {
  flex: 1; padding: 10px; border: 1.5px solid var(--hairline); background: #fff;
  border-radius: 10px; font-family: inherit; font-size: .92rem; font-weight: 600;
  color: var(--ink-dim); cursor: pointer;
}
.auth-tab.active { border-color: var(--orange); color: var(--orange); background: #fff4f0; }
.auth-form { display: flex; flex-direction: column; gap: 10px; }
.auth-form input {
  padding: 12px 16px; border: 1.5px solid #d8cfc7; border-radius: 10px;
  font-family: inherit; font-size: .95rem; color: var(--ink); background: #fff;
}
.auth-form input:focus { outline: none; border-color: var(--orange); }
.auth-check {
  display: flex; align-items: flex-start; gap: 8px; font-size: .85rem;
  color: var(--ink-dim); line-height: 1.4; cursor: pointer;
}
.auth-check input[type="checkbox"] {
  width: 16px; height: 16px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--orange); cursor: pointer;
}
.auth-check a { color: var(--orange); }
.auth-form .btn-primary { background: var(--orange); }
.auth-form .btn-primary:hover { background: var(--orange-deep); }
.auth-loggedin { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.auth-loggedin .btn-outline { color: var(--ink); border-color: #d8cfc7; }

/* auth certificate note + results certificate celebration.
   Block layout (not flex): raw text around <strong> must flow as one
   paragraph — flex would split it into separate "column" items. */
.auth-note {
  display: block; line-height: 1.55;
  background: #fff4f0; border: 1px solid rgba(244,96,62,.3); border-radius: 12px;
  padding: 12px 14px; margin: 12px 0; font-size: .9rem; color: var(--card-text);
}
.auth-note .icon { width: 18px; height: 18px; color: var(--orange); display: inline-block; vertical-align: -4px; margin-right: 6px; }
.results-cert {
  background: linear-gradient(135deg, var(--orange), #fb8a5c); color: #fff;
  border-radius: 16px; padding: 22px 20px; margin: 18px auto; max-width: 480px;
  box-shadow: 0 16px 40px rgba(244,96,62,.28);
}
.results-cert-icon .icon { width: 44px; height: 44px; color: #fff; }
.results-cert .results-course-done { color: #fff; margin: 8px 0 14px; }
.results-cert .btn-primary { background: #fff; color: var(--orange); }
.results-cert .btn-primary:hover { background: #fff4f0; }
.cert-actions { flex-wrap: wrap; }
.cert-actions .btn-outline { color: var(--ink); border-color: #d8cfc7; }
