:root {
  /* Brand — canonical BoonDocs purple (matches the logo) */
  --brand: #534AB7;
  --brand-hover: #6258c9;

  /* Neutral ramp — shared with the app so the two surfaces cannot drift again */
  --ink: #191826;
  --ink-2: #5c5a72;
  --ink-3: #8b89a3;
  --panel: #ffffff;
  --panel-2: #f2f1f9;
  --line: #e7e6f1;
  --line-2: #dcdaee;
  --good: #12996b;

  /* Radii, shadow, type — shared */
  --r: 14px;
  --r-sm: 10px;
  --sh: 0 1px 2px rgba(25,20,50,.05), 0 6px 20px rgba(25,20,50,.05);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;

  /* Surface-specific: the landing page is white, the app's is tinted. Intentional. */
  --bg: #ffffff;
  --maxw: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand: #9a92f3;
    --brand-hover: #7d74e8;

    --ink: #eceaf7;
    --ink-2: #a6a3bd;
    --ink-3: #726f8c;
    --panel: #16151f;
    --panel-2: #1e1c2b;
    --line: #292734;
    --line-2: #35324a;
    --good: #35c48c;
    --sh: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.28);

    --bg: #0c0b12;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { color: var(--ink); }
em { font-style: normal; color: var(--brand); font-weight: 600; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }
.center { text-align: center; }
.muted { color: var(--ink-2); }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; }
.brand-mark {
  display: inline-block;
  width: 34px; height: 34px;
  background: url("logo.svg") center/contain no-repeat; color: transparent; font-size: 0; line-height: 1;
}
.brand-mark.sm { width: 26px; height: 26px; font-size: 15px; border-radius: 7px; }
.brand-word { color: var(--ink); }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 0.95rem; }
.nav-links a:not(.btn) { color: var(--ink-2); }
.nav-links a:not(.btn):hover { color: var(--ink); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: 1rem; font-weight: 600; cursor: pointer;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .06s ease, background .15s ease, border-color .15s ease;
}
.btn:active { transform: scale(.98); }
.btn-sm { padding: 9px 16px; font-size: 0.92rem; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn.full { width: 100%; }

/* hero */
.hero { padding: 84px 0 64px; text-align: center; }
.eyebrow {
  display: inline-block; font-size: 0.85rem; font-weight: 600; letter-spacing: .02em;
  color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, transparent);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { margin: 0 auto 20px; max-width: 16ch; }
.hero .accent { color: var(--brand); }
.lede { font-size: 1.2rem; color: var(--ink-2); max-width: 60ch; margin: 0 auto 30px; }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 0.9rem; color: var(--ink-2); }

/* strip */
.strip { background: var(--panel-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; }
.strip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.strip-grid div { display: flex; flex-direction: column; gap: 2px; }
.strip-grid strong { font-size: 1rem; }
.strip-grid span { font-size: 0.9rem; color: var(--ink-2); }

/* differentiator / versus */
.diff-sub { max-width: 64ch; margin: 0 auto 40px; }
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 880px; margin: 0 auto; }
.vs-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 24px 26px; box-shadow: var(--sh); }
.vs-card h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; font-size: 1.05rem; }
.vs-card ul { list-style: none; display: flex; flex-direction: column; gap: 15px; }
.vs-card li { font-size: 0.95rem; line-height: 1.45; }
.dim { display: block; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 3px; }
.vs-generic { opacity: .9; }
.vs-generic li, .vs-generic .dim { color: var(--ink-2); }
.vs-delta { border: 2px solid var(--brand); }
.vs-delta .dim { color: var(--brand); }
.diff-close { margin: 34px auto 0; font-size: 1.2rem; font-weight: 600; max-width: 36ch; }

/* sections */
.section { padding: 72px 0; }
.section.alt { background: var(--panel-2); }
.section h2.center { margin-bottom: 14px; }
.section .center.muted { margin-bottom: 42px; }
#problem h2 { margin-bottom: 18px; }
#problem .muted { font-size: 1.1rem; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; box-shadow: var(--sh); }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; margin-bottom: 14px;
  background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand); font-weight: 700;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: 0.98rem; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.card { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; box-shadow: var(--sh); display: flex; flex-direction: column; }
.card-icon { font-size: 1.8rem; margin-bottom: 12px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-2); font-size: 0.98rem; flex: 1; }
.tag { align-self: flex-start; margin-top: 16px; font-size: 0.75rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, transparent); padding: 4px 10px; border-radius: 6px; }

/* pricing */
.pricing .card { padding: 30px 26px; }
.price h3 { font-size: 1.1rem; color: var(--ink-2); font-weight: 600; }
.price-amt { font-size: 2.3rem; font-weight: 700; letter-spacing: -0.02em; margin: 8px 0 18px; }
.price-amt .from { font-size: 0.85rem; font-weight: 600; color: var(--ink-2); vertical-align: middle; margin-right: 4px; }
.price-amt .per { font-size: 1rem; font-weight: 600; color: var(--ink-2); }
.price ul { list-style: none; margin: 0 0 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.price li { position: relative; padding-left: 26px; color: var(--ink); font-size: 0.96rem; }
.price li::before { content: "✓"; position: absolute; left: 0; color: var(--good); font-weight: 700; }
.card.featured { border-color: var(--brand); border-width: 2px; }
.ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; font-size: 0.78rem; font-weight: 600; padding: 5px 14px; border-radius: 999px; white-space: nowrap; }

/* drill */
.drill { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); padding: 24px; max-width: 600px; margin: 0 auto; }
.drill-top { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--ink-2); margin-bottom: 16px; }
.drill-score { font-weight: 600; color: var(--brand); }
.drill-card { min-height: 120px; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 12px 4px; }
.drill-q { font-size: 1.18rem; font-weight: 600; }
.drill-a { font-size: 1rem; color: var(--ink); background: var(--panel-2); border-left: 3px solid var(--brand); border-radius: 0 8px 8px 0; padding: 12px 16px; }
.drill-actions, .drill-rate { display: flex; gap: 12px; margin-top: 18px; }
.drill-actions .btn, .drill-rate .btn { flex: 1; }
.btn-rate { background: var(--panel-2); border: 1px solid var(--line); color: var(--ink); font-weight: 600; padding: 12px; border-radius: 10px; cursor: pointer; transition: border-color .15s, color .15s; }
.btn-rate:hover { border-color: var(--brand); color: var(--brand); }
.disclaimer { font-size: 0.82rem; color: var(--ink-2); margin-top: 16px; }

/* quotes */
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.quotes blockquote { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; box-shadow: var(--sh); }
.quotes p { font-size: 1.05rem; margin-bottom: 12px; }
.quotes cite { font-style: normal; font-size: 0.9rem; color: var(--ink-2); font-weight: 600; }

/* faq */
#faq details { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-sm); margin-bottom: 12px; padding: 4px 20px; }
#faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; position: relative; padding-right: 28px; }
#faq summary::-webkit-details-marker { display: none; }
#faq summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 1.3rem; color: var(--brand); transition: transform .2s; }
#faq details[open] summary::after { transform: rotate(45deg); }
#faq details p { color: var(--ink-2); padding-bottom: 16px; font-size: 0.98rem; }

/* final cta */
.cta-final { text-align: center; }
.cta-final h2 { margin-bottom: 12px; }
.cta-final .muted { max-width: 48ch; margin: 0 auto 28px; }
.waitlist-form { max-width: 420px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.waitlist-form input[type="email"] {
  font-family: inherit; font-size: 1rem; padding: 14px 16px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--panel); color: var(--ink); width: 100%;
}
.waitlist-form input[type="email"]:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.campus { display: flex; gap: 18px; justify-content: center; font-size: 0.92rem; color: var(--ink-2); }
.campus label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.form-msg { font-size: 0.92rem; min-height: 1.2em; }
.form-msg.ok { color: var(--good); font-weight: 600; }
.form-msg.err { color: #d3503f; font-weight: 600; }

/* footer */
.footer { background: var(--panel-2); border-top: 1px solid var(--line); padding: 44px 0; text-align: center; }
.foot-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.1rem; margin-bottom: 14px; }
.fine { font-size: 0.82rem; color: var(--ink-2); max-width: 60ch; margin: 0 auto 10px; line-height: 1.6; }
.fine a { color: var(--brand); font-weight: 600; }

/* legal pages */
.legal-wrap { max-width: 760px; margin: 0 auto; padding: 32px 24px 64px; }
.legal-back { display: inline-block; color: var(--brand); font-weight: 600; font-size: 0.95rem; margin-bottom: 18px; }
.legal-wrap h1 { margin-bottom: 6px; }
.legal-updated { color: var(--ink-2); font-size: 0.9rem; margin-bottom: 4px; }
.legal-banner { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 20px; margin: 22px 0; font-size: 0.95rem; color: var(--ink-2); line-height: 1.6; }
.legal-banner strong { color: var(--ink); }
.legal-wrap h2 { font-size: 1.2rem; margin: 30px 0 10px; }
.legal-wrap p, .legal-wrap li { color: var(--ink); font-size: 1rem; line-height: 1.7; }
.legal-wrap ul { margin: 0 0 1rem 1.25rem; }
.legal-wrap li { margin-bottom: 6px; }
.legal-wrap em { color: var(--ink-2); font-style: italic; font-weight: 400; }

/* responsive */
@media (max-width: 860px) {
  .strip-grid, .steps, .cards, .quotes, .versus { grid-template-columns: 1fr; }
  .nav-links a:not(.btn) { display: none; }
  .section { padding: 56px 0; }
  .hero { padding: 60px 0 48px; }
  body { font-size: 16px; }
  .bundle-cta { flex-direction: column; text-align: center; }
}

/* bundle callout (pricing) */
.bundle-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; max-width: 720px; margin: 26px auto 0; padding: 20px 26px; border-radius: var(--r); background: color-mix(in srgb, var(--brand) 9%, var(--panel)); border: 2px solid var(--brand); box-shadow: var(--sh); }
.bundle-name { font-size: 1.15rem; font-weight: 700; }
.bundle-desc { color: var(--ink-2); font-size: 0.92rem; margin-top: 2px; }
.bundle-price { display: flex; align-items: baseline; gap: 9px; }
.bundle-price .strike { color: var(--ink-2); text-decoration: line-through; font-size: 1rem; }
.bundle-price .now { font-size: 1.9rem; font-weight: 700; letter-spacing: -0.02em; }
.bundle-price .save { color: var(--brand); font-weight: 700; font-size: 0.82rem; }
.pricing .card.price { align-items: flex-start; }

/* ===================== 2024 landing redesign additions ===================== */
.hero { position: relative; overflow: hidden; padding: 94px 0 74px; }
.hero-inner { position: relative; z-index: 1; }
.hero-glow {
  position: absolute; inset: -25% -10% auto -10%; height: 640px; z-index: 0; pointer-events: none;
  background:
    radial-gradient(58% 60% at 50% 0%, color-mix(in srgb, var(--brand) 26%, transparent), transparent 70%),
    radial-gradient(38% 44% at 82% 8%, color-mix(in srgb, var(--good) 16%, transparent), transparent 70%);
}
.pill-badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 650; color: var(--brand);
  background: color-mix(in srgb, var(--brand) 12%, var(--panel));
  border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
  padding: 7px 15px; border-radius: 999px; margin-bottom: 24px;
}
.hero h1 { max-width: 18ch; }
.hero-trust { margin-top: 26px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; font-size: .88rem; color: var(--ink-2); }
.hero-trust strong { color: var(--ink); }
.dot-sep { opacity: .4; }

.btn-lg { padding: 14px 26px; font-size: 1.02rem; border-radius: 12px; }
.btn-white { background: #fff; color: var(--brand); font-weight: 700; border: none; }
.btn-white:hover { background: #efedfb; }

.story h2 { margin: 6px 0 20px; }
.story-lead { font-size: 1.18rem; margin-bottom: 14px; }
.story-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 46px; }
.story-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; box-shadow: var(--sh); }
.sc-big { font-size: 1.15rem; font-weight: 700; color: var(--brand); margin-bottom: 6px; letter-spacing: -.01em; }
.sc-sub { font-size: .94rem; color: var(--ink-2); line-height: 1.5; }

.free-callout { background: linear-gradient(120deg, var(--brand), var(--brand-hover)); }
.free-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.eyebrow.light { color: #fff; background: rgba(255,255,255,.18); }
.on-brand { color: #fff; max-width: 24ch; }
.on-brand-sub { color: rgba(255,255,255,.92); max-width: 56ch; margin-top: 10px; font-size: 1.02rem; }

.price-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 860px; margin: 32px auto 0; align-items: start; }
.price-cell { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 30px 24px 26px; text-align: center; box-shadow: var(--sh); }
.price-cell.feature { border: 2px solid var(--brand); }
.price-flag { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.price-cell .price-amt { margin: 0 0 2px; }
.price-lbl { font-weight: 650; }
.price-note { font-size: .88rem; color: var(--ink-2); margin-top: 6px; }
.price-note .save { color: var(--brand); font-weight: 700; }
.price-cell .btn { margin-top: 16px; width: 100%; }

@media (max-width: 720px) {
  .story-strip, .price-row { grid-template-columns: 1fr; }
  .free-inner { flex-direction: column; align-items: flex-start; }
}

/* ===== lecture-mastery loop ===== */
.loop-strip { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; gap: 12px; margin: 36px auto 0; max-width: 940px; }
.loop-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 20px; box-shadow: var(--sh); text-align: left; }
.loop-ic { font-size: 1.8rem; line-height: 1; }
.loop-step { margin-top: 10px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--brand); }
.loop-card h3 { margin: 3px 0 7px; font-size: 1.05rem; }
.loop-card p { font-size: .92rem; color: var(--ink-2); line-height: 1.5; }
.loop-arrow { display: flex; align-items: center; font-size: 1.5rem; color: var(--brand); opacity: .7; }
@media (max-width: 780px) { .loop-strip { grid-template-columns: 1fr; } .loop-arrow { justify-content: center; transform: rotate(90deg); } }

/* ===== sample: tabs ===== */
.sample-tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 26px 0 16px; }
.stab { font-family: inherit; font-size: .95rem; font-weight: 600; cursor: pointer; padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--panel); color: var(--ink-2); display: inline-flex; align-items: center; gap: 7px; transition: all .12s ease; }
.stab:hover { color: var(--ink); border-color: var(--brand); }
.stab.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.stab-tag { font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 2px 6px; border-radius: 5px;
  background: color-mix(in srgb, var(--brand) 20%, transparent); color: var(--brand); }
.stab.active .stab-tag { background: rgba(255,255,255,.24); color: #fff; }

/* ===== sample: MCQ drill ===== */
.drill { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); padding: 22px 22px 20px; }
.drill-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.drill-progress { font-size: .82rem; font-weight: 600; color: var(--ink-2); }
.drill-topic { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--brand);
  background: color-mix(in srgb, var(--brand) 12%, transparent); padding: 4px 10px; border-radius: 999px; }
.drill-stem { font-size: 1.06rem; line-height: 1.5; font-weight: 500; margin-bottom: 16px; }
.qopts { display: flex; flex-direction: column; gap: 9px; }
.qopt { display: flex; align-items: flex-start; gap: 11px; text-align: left; font-family: inherit; font-size: .97rem; line-height: 1.4;
  cursor: pointer; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--line); background: transparent; color: var(--ink); transition: border-color .12s, background .12s; }
.qopt:not(:disabled):hover { border-color: var(--brand); }
.qk { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; background: var(--panel-2); border: 1px solid var(--line);
  font-size: .78rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; color: var(--ink-2); }
.qopt:disabled { cursor: default; }
.qopt.correct { border-color: var(--good); background: color-mix(in srgb, var(--good) 12%, transparent); }
.qopt.correct .qk { background: var(--good); color: #fff; border-color: var(--good); }
.qopt.wrong { border-color: #d2544e; background: color-mix(in srgb, #d2544e 12%, transparent); }
.qopt.wrong .qk { background: #d2544e; color: #fff; border-color: #d2544e; }
.qexpl { margin-top: 15px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .95rem; line-height: 1.55; color: var(--ink-2); }
.ex-right { font-weight: 700; color: var(--good); }
.ex-wrong { font-weight: 700; color: #d2544e; }
.qnav { margin-top: 16px; display: flex; justify-content: flex-end; }
.drill-done { text-align: center; padding: 14px 6px; }
.drill-done-h { font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em; margin-bottom: 8px; }
.drill-done p { color: var(--ink-2); max-width: 46ch; margin: 0 auto 18px; }

/* ===================== v3 visual upgrade ===================== */
/* display font (closest web match to the logo wordmark) */
h1, h2, h3, .price-amt, .num-val, .drill-done-h, .price-flag, .stab { font-family: "Chakra Petch", var(--font); }
h1, h2 { letter-spacing: -0.01em; }

/* exact-logo wordmark images for the brand name */
.brand-word-img { height: 21px; width: auto; display: block; }
.foot-word-img { height: 18px; width: auto; vertical-align: middle; }
@media (prefers-color-scheme: light) { .brand-word-img, .foot-word-img { filter: invert(1) brightness(.12); } }

/* gradient primary button + glow */
.btn-primary { background: linear-gradient(135deg, var(--brand) 0%, #6f63e6 100%);
  box-shadow: 0 8px 22px -8px color-mix(in srgb, var(--brand) 70%, transparent); }
.btn-primary:hover { background: linear-gradient(135deg, #6157d2 0%, #7d72f0 100%); filter: brightness(1.04); }

/* scroll-reveal motion */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .65s cubic-bezier(.2,.7,.2,1), transform .65s cubic-bezier(.2,.7,.2,1); will-change: opacity, transform; }
.reveal.revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* hover lift */
.card, .vs-card, .loop-card, .price-cell, .mock { transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.card:hover, .loop-card:hover, .mock:hover { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(20,16,60,.14); }
.price-cell:not(.feature):hover { transform: translateY(-3px); border-color: var(--brand); }

/* SVG icons */
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic-lg { width: 26px; height: 26px; }
.card-icon { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px;
  background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand); margin-bottom: 14px; }
.loop-ic { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 11px;
  background: color-mix(in srgb, var(--brand) 15%, transparent); color: var(--brand); }
.loop-ic .ic { width: 21px; height: 21px; }

/* by the numbers */
.numbers { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--panel-2); padding: 30px 0; }
.num-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; text-align: center; }
.num-val { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 700; color: var(--brand); line-height: 1; }
.num-plus { font-size: clamp(1.3rem, 3vw, 1.7rem); }
.num-lbl { margin-top: 6px; font-size: .86rem; color: var(--ink-2); }
@media (max-width: 640px) { .num-grid { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; } }

/* loop cycle */
.loop-cycle { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 940px; margin: 34px auto 0; position: relative; }
.loop-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 20px; box-shadow: var(--sh); text-align: left; position: relative; }
.loop-card:not(:last-of-type)::after { content: "\2192"; position: absolute; right: -13px; top: 50%; transform: translateY(-50%);
  color: var(--brand); font-size: 1.3rem; z-index: 2; }
.loop-step { margin-top: 12px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--brand); }
.loop-card h3 { margin: 3px 0 7px; font-size: 1.05rem; }
.loop-card p { font-size: .92rem; color: var(--ink-2); line-height: 1.5; }
.loop-return { grid-column: 1 / -1; margin-top: 6px; display: flex; align-items: center; justify-content: center; gap: 9px;
  font-size: .84rem; font-weight: 600; color: var(--brand); }
.loop-return .ic { width: 18px; height: 18px; }
@media (max-width: 780px) { .loop-cycle { grid-template-columns: 1fr; } .loop-card:not(:last-of-type)::after { content: "\2193"; right: 50%; top: auto; bottom: -14px; transform: translateX(50%); } }

/* showcase mockups */
.showcase-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 22px; max-width: 900px; margin: 0 auto; align-items: start; }
@media (max-width: 760px) { .showcase-grid { grid-template-columns: 1fr; } }
.mock { position: relative; }
.mock-cap { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); margin-bottom: 8px; }
/* doc page */
.doc-page { background: #f6f1e2; border: 1px solid #e6dcc2; border-radius: 12px; overflow: hidden; box-shadow: var(--sh);
  font-family: Georgia, "Times New Roman", serif; color: #2a2618; }
.doc-h { background: #534AB7; color: #fff; font-weight: 700; padding: 12px 18px; font-size: 1.02rem; font-family: "Chakra Petch", var(--font); }
.doc-body { padding: 16px 18px 20px; font-size: .92rem; line-height: 1.55; }
.doc-body p { color: #3a3422; margin-bottom: 12px; }
.doc-hy { background: #efeafc; border-left: 4px solid #534AB7; border-radius: 0 8px 8px 0; padding: 11px 14px; }
.doc-hy-h { font-family: "Chakra Petch", var(--font); font-weight: 700; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: #534AB7; margin-bottom: 6px; }
.doc-hy ul { margin: 0; padding-left: 18px; }
.doc-hy li { margin: 4px 0; color: #35301f; }
/* anki deck */
.anki-stack { position: relative; padding: 0 10px 12px 0; }
.anki-card { border-radius: 12px; border: 1px solid var(--line); }
.anki-back, .anki-mid { position: absolute; inset: 0; background: var(--panel); }
.anki-back { transform: translate(12px, 12px) rotate(2deg); opacity: .5; }
.anki-mid { transform: translate(6px, 6px) rotate(1deg); opacity: .8; }
.anki-front { position: relative; background: var(--panel); box-shadow: var(--sh); padding: 20px 20px 16px; }
.anki-topic { display: inline-block; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, transparent); padding: 4px 10px; border-radius: 999px; }
.anki-q { margin: 14px 0 16px; font-size: 1.02rem; line-height: 1.5; }
.cloze { color: var(--brand); font-weight: 700; background: color-mix(in srgb, var(--brand) 12%, transparent); padding: 1px 7px; border-radius: 5px; }
.anki-tag { font-size: .74rem; color: var(--ink-2); }

/* nav wordmark spacing */
.brand { gap: 9px; }
.num-cap { text-align: center; margin: 16px auto 0; font-size: .88rem; color: var(--ink-2); }
