@import url('https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&family=Rubik:wght@400;500;600;700&display=swap');

:root {
  color-scheme: light;
  --navy-950: oklch(19% .055 258);
  --navy-900: oklch(23% .065 258);
  --navy-800: oklch(30% .06 258);
  --navy-700: oklch(39% .05 258);
  --gold-600: oklch(63% .12 84);
  --gold-500: oklch(72% .13 84);
  --gold-200: oklch(88% .07 84);
  --gold-100: oklch(95% .035 84);
  --paper: oklch(98.5% .006 230);
  --ground: oklch(96.5% .009 230);
  --line: oklch(88% .012 240);
  --muted: oklch(43% .025 250);
  --success: oklch(40% .09 158);
  --success-bg: oklch(94% .025 158);
  --danger: oklch(46% .16 28);
  --danger-bg: oklch(95% .025 28);
  --bg: var(--ground);
  --fg: var(--navy-950);
  --card: var(--paper);
  --a: var(--gold-500);
  --aink: var(--navy-950);
  --b: var(--navy-800);
  --bub: var(--ground);
  --alt: var(--gold-100);
  --hf: 'Amiri', Georgia, serif;
  --bf: 'Rubik', sans-serif;
  --r: 16px;
  --ease: cubic-bezier(.16, 1, .32, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; min-height: 100dvh; background: var(--ground); color: var(--navy-950); font: 400 16px/1.65 var(--bf); -webkit-font-smoothing: antialiased; }
body.nav-open { overflow: hidden; }
main { min-height: 60dvh; }
img, svg { display: block; }
a { color: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; }
::selection { background: var(--gold-200); color: var(--navy-950); }
[hidden] { display: none !important; }
.site-icon { flex: 0 0 auto; }
.skip-link { position: fixed; z-index: 80; top: 8px; left: 8px; padding: 10px 14px; background: var(--paper); color: var(--navy-950); border-radius: 8px; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 20px; }
section { padding: 56px 0; }
h1, h2, h3 { margin: 0; color: var(--navy-950); font-family: var(--hf); line-height: 1.08; letter-spacing: -.025em; }
h1 { font-size: clamp(44px, 11vw, 74px); font-weight: 400; }
h2 { max-width: 18em; font-size: clamp(34px, 8vw, 50px); font-weight: 400; }
h3 { font-size: 25px; font-weight: 700; }
p { text-wrap: pretty; }
.sub { max-width: 650px; margin: 14px 0 32px; color: var(--muted); font-size: 16px; line-height: 1.75; }
.fine { max-width: 720px; margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.fine a { color: var(--navy-800); font-weight: 600; }
.meta { color: var(--muted); font-size: 12px; line-height: 1.6; }
.muted { color: var(--muted); }

/* Shared navigation */
.site-header { position: sticky; z-index: 40; top: 0; padding-top: env(safe-area-inset-top, 0px); border-bottom: 1px solid oklch(88% .012 240 / .8); background: oklch(98.5% .006 230 / .92); backdrop-filter: blur(18px); }
.site-nav { position: relative; min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--navy-950); font-size: 22px; font-weight: 600; letter-spacing: -.045em; text-decoration: none; }
.logo > span:last-child > span { color: var(--gold-600); }
.logo-mark { width: 33px; height: 37px; display: grid; place-items: center; border: 1px solid var(--gold-600); color: var(--gold-600); font-family: var(--hf); font-size: 24px; line-height: 1; }
.nav-toggle { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: transparent; cursor: pointer; }
.links { position: absolute; top: calc(100% + 1px); right: -20px; left: -20px; display: grid; gap: 4px; padding: 16px 20px 22px; border-bottom: 1px solid var(--line); background: var(--paper); box-shadow: 0 20px 35px oklch(19% .055 258 / .08); opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity .18s ease, transform .18s var(--ease); }
.nav-open .links { opacity: 1; pointer-events: auto; transform: translateY(0); }
.links a { min-height: 44px; display: flex; align-items: center; padding: 10px 12px; border-radius: 8px; color: var(--navy-700); font-size: 14px; font-weight: 500; text-decoration: none; }
.links a:not(.btn):hover { background: var(--ground); color: var(--navy-950); }
.links .btn { justify-content: center; margin-top: 6px; color: var(--paper); }

/* Buttons and forms */
.btn { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 19px; border: 1px solid var(--navy-950); border-radius: 9px; background: var(--navy-950); color: var(--paper); font: 600 13px/1.3 var(--bf); text-decoration: none; cursor: pointer; transition: transform .18s var(--ease), background .18s ease, border-color .18s ease, color .18s ease; }
.btn:hover { border-color: var(--navy-700); background: var(--navy-700); transform: translateY(-1px); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.alt, .btn.ghost { border-color: var(--line); background: transparent; color: var(--navy-950); }
.btn.alt:hover, .btn.ghost:hover { border-color: var(--navy-950); background: var(--paper); }
.btn.gold { border-color: var(--gold-500); background: var(--gold-500); color: var(--navy-950); }
.btn.gold:hover { border-color: var(--gold-200); background: var(--gold-200); }
.btn-small { min-height: 42px; padding: 9px 16px; }
.text-link { min-height: 44px; display: inline-flex; align-items: center; gap: 7px; color: var(--navy-800); font-size: 13px; font-weight: 600; text-decoration: none; }
.text-link:hover { color: var(--gold-600); }
.field { display: grid; gap: 7px; margin-top: 17px; color: var(--navy-800); font-size: 13px; font-weight: 600; }
.field input, .field select, .field textarea, .verify-form input { width: 100%; min-height: 50px; margin: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px; outline: 0; background: var(--paper); color: var(--navy-950); font: 400 15px var(--bf); transition: border-color .18s ease, box-shadow .18s ease; }
.field input:focus, .field select:focus, .field textarea:focus, .verify-form input:focus { border-color: var(--gold-600); box-shadow: 0 0 0 3px var(--gold-100); }
.field input.bad { border-color: var(--danger); }
.field input.good { border-color: var(--success); }
.field input.locked { background: var(--ground); }
.msg { display: block; min-height: 18px; color: var(--muted); font-size: 12px; font-weight: 400; }
.msg.ok { color: var(--success); }
.msg.err { color: var(--danger); }
.alert { margin: 18px 0 0; padding: 13px 16px; border: 1px solid transparent; border-radius: 10px; font-size: 14px; font-weight: 500; }
.alert.ok { border-color: oklch(42% .09 158 / .2); background: var(--success-bg); color: var(--success); }
.alert.err { border-color: oklch(48% .16 28 / .18); background: var(--danger-bg); color: var(--danger); }
.tag, .catalog-chip { display: inline-flex; align-items: center; min-height: 26px; padding: 4px 9px; border-radius: 6px; background: var(--gold-100); color: var(--navy-800); font-size: 11px; font-weight: 600; }

/* Homepage */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: 0; background: var(--navy-950); color: var(--paper); }
.hero::before { content: ''; position: absolute; z-index: -1; top: -230px; right: -190px; width: 540px; height: 540px; border: 1px solid oklch(72% .13 84 / .18); border-radius: 50%; box-shadow: 0 0 0 70px oklch(72% .13 84 / .025), 0 0 0 140px oklch(72% .13 84 / .018); }
.hero .wrap { display: grid; gap: 42px; align-items: center; padding-top: 62px; padding-bottom: 58px; }
.hero h1 { max-width: 700px; color: var(--paper); font-size: clamp(48px, 12vw, 79px); }
.hero h1 em { color: var(--gold-500); font-style: normal; }
.hero-kicker, .section-kicker { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 15px; color: var(--gold-500); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.hero-kicker::before, .section-kicker::before { content: ''; width: 24px; height: 1px; background: currentColor; }
.hero .lead { max-width: 590px; margin: 20px 0 0; color: oklch(84% .018 245); font-size: 16px; line-height: 1.8; }
.leadrow { display: flex; align-items: flex-start; gap: 13px; }
.spk { flex: 0 0 44px; width: 44px; height: 44px; display: grid; place-items: center; margin-top: 20px; border: 1px solid oklch(98.5% .006 230 / .25); border-radius: 50%; background: transparent; color: var(--gold-500); cursor: pointer; }
.spk:hover { background: oklch(98.5% .006 230 / .08); }
.cta { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 27px; }
.hero .btn { border-color: var(--gold-500); background: var(--gold-500); color: var(--navy-950); }
.hero .btn:hover { border-color: var(--gold-200); background: var(--gold-200); }
.hero .btn.alt { border-color: oklch(98.5% .006 230 / .3); background: transparent; color: var(--paper); }
.hero .btn.alt:hover { border-color: var(--paper); background: oklch(98.5% .006 230 / .07); }
.hero .note { margin: 15px 0 0; color: oklch(75% .02 245); font-size: 12px; }
.hero-product { position: relative; min-width: 0; padding: 10px; border: 1px solid oklch(98.5% .006 230 / .14); border-radius: 23px; background: oklch(98.5% .006 230 / .055); box-shadow: 0 28px 70px oklch(10% .04 258 / .28); backdrop-filter: blur(10px); }
.product-window { overflow: hidden; border-radius: 16px; background: var(--ground); color: var(--navy-950); }
.product-top { min-height: 49px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 15px; border-bottom: 1px solid var(--line); background: var(--paper); }
.product-dots { display: flex; gap: 5px; }
.product-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.product-top span { color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.product-body { padding: 20px; }
.product-greeting { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.product-greeting small { color: var(--muted); font-size: 10px; }
.product-greeting h2 { margin-top: 3px; font-family: var(--bf); font-size: 20px; font-weight: 600; letter-spacing: -.035em; }
.product-avatar { width: 35px; height: 35px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: var(--navy-950); color: var(--gold-500); font-family: var(--hf); font-size: 20px; }
.product-progress { margin-top: 19px; padding: 17px; border-radius: 12px; background: var(--navy-950); color: var(--paper); }
.product-progress-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 11px; }
.product-progress-head strong { color: var(--gold-500); font-size: 20px; }
.product-track, .bar { height: 6px; overflow: hidden; border-radius: 99px; background: oklch(98.5% .006 230 / .14); }
.product-track { margin-top: 12px; }
.product-track i, .bar i { display: block; height: 100%; border-radius: inherit; background: var(--gold-500); }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.product-stat { min-width: 0; padding: 12px 9px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.product-stat strong { display: block; font-size: 17px; letter-spacing: -.03em; }
.product-stat span { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; line-height: 1.4; }
.product-ai { display: flex; align-items: center; gap: 11px; margin-top: 10px; padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: var(--paper); }
.product-ai-icon { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; background: var(--gold-100); color: var(--gold-600); }
.product-ai strong, .product-ai small { display: block; }
.product-ai strong { font-size: 11px; }
.product-ai small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.hero-proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); background: var(--paper); }
.hero-proof .wrap { padding-top: 0; padding-bottom: 0; }
.proof-item { padding: 22px 12px; text-align: center; }
.proof-item + .proof-item { border-left: 1px solid var(--line); }
.proof-item strong { display: block; font-family: var(--hf); font-size: 28px; line-height: 1; }
.proof-item span { display: block; margin-top: 6px; color: var(--muted); font-size: 10px; line-height: 1.45; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.section-head .sub { margin-bottom: 0; }
.section-kicker { margin-bottom: 10px; color: var(--gold-600); }
.alt { background: var(--paper); }
.dark-section { background: var(--navy-950); color: var(--paper); }
.dark-section h2, .dark-section h3 { color: var(--paper); }
.dark-section .sub { color: oklch(84% .018 245); }
.steps { display: grid; gap: 0; counter-reset: step; }
.step { position: relative; padding: 24px 0; border-top: 1px solid var(--line); counter-increment: step; }
.step::before { content: '0' counter(step); display: block; margin-bottom: 18px; color: var(--gold-600); font-family: var(--hf); font-size: 28px; }
.step h3 { margin-bottom: 8px; font-family: var(--bf); font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.step p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.split { display: grid; gap: 30px; align-items: start; }
.feature-list { display: grid; gap: 0; }
.feature-row { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.feature-row > span { color: var(--gold-600); }
.feature-row h3 { font-family: var(--bf); font-size: 16px; font-weight: 600; }
.feature-row p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }

/* Course and plan cards */
.courses { display: grid; gap: 16px; }
.course { min-width: 0; overflow: hidden; display: flex; flex-direction: column; gap: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); transition: transform .2s var(--ease), box-shadow .2s ease; }
.course:hover { transform: translateY(-3px); box-shadow: 0 18px 38px oklch(19% .055 258 / .07); }
.course-cover { position: relative; min-height: 120px; display: flex; align-items: flex-end; padding: 17px; overflow: hidden; background: var(--navy-950); color: var(--gold-500); }
.course:nth-child(2n) .course-cover { background: var(--navy-800); }
.course-cover::after { content: ''; position: absolute; right: -48px; bottom: -85px; width: 170px; height: 170px; border: 22px solid oklch(72% .13 84 / .1); border-radius: 50%; }
.course-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .65; }
.course-cover .site-icon { position: relative; z-index: 1; }
.course-content { flex: 1; display: flex; flex-direction: column; gap: 11px; padding: 0 19px 20px; }
.course h3 { font-size: 27px; }
.course p { flex: 1; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.course .price { margin-top: auto; }
.price { color: var(--navy-950); font-family: var(--hf); font-size: 30px; font-weight: 700; line-height: 1.1; }
.price small { color: var(--muted); font-family: var(--bf); font-size: 12px; font-weight: 400; }
.course-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.course form { margin: 0; }
.course .fine { margin: 0; font-size: 12px; }
.cats { display: flex; gap: 8px; margin: 0 0 24px; padding-bottom: 5px; overflow-x: auto; }
.cats button, .pill { min-height: 44px; flex: 0 0 auto; padding: 9px 15px; border: 1px solid var(--line); border-radius: 99px; background: transparent; color: var(--navy-700); font: 500 13px var(--bf); cursor: pointer; }
.cats button:hover, .cats button.on, .pill:hover { border-color: var(--navy-950); background: var(--navy-950); color: var(--paper); }
.catalog-tools { display: grid; gap: 13px; margin-bottom: 25px; }
.catalog-search { position: relative; }
.catalog-search .site-icon { position: absolute; top: 50%; left: 14px; color: var(--muted); transform: translateY(-50%); }
.catalog-search input { width: 100%; min-height: 48px; padding: 11px 14px 11px 43px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--navy-950); }
.empty-state { padding: 34px 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); text-align: center; }
.empty-state h3 { font-size: 28px; }
.empty-state p { max-width: 480px; margin: 9px auto 18px; color: var(--muted); font-size: 14px; }
.page-intro { padding: 45px 0 22px; }
.page-intro h1 { max-width: 800px; font-size: clamp(42px, 10vw, 64px); }
.page-intro .sub { margin-bottom: 0; }

.plans { display: grid; gap: 17px; margin-top: 10px; }
.plan { position: relative; min-width: 0; display: flex; flex-direction: column; gap: 14px; padding: 25px; border: 1px solid var(--line); border-radius: 17px; background: var(--paper); }
.plan.hot { border-color: var(--gold-600); box-shadow: 0 17px 40px oklch(19% .055 258 / .07); }
.plan .tag { align-self: flex-start; }
.plan h3 { font-size: 31px; }
.plan .fine { margin: 0; }
.plan ul { flex: 1; display: grid; gap: 10px; margin: 4px 0 8px; padding: 18px 0 0; border-top: 1px solid var(--line); list-style: none; }
.plan li { position: relative; padding-left: 20px; color: var(--navy-700); font-size: 13px; }
.plan li::before { content: ''; position: absolute; top: .7em; left: 2px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-600); }
.plan form { margin: 0; }
.plan .btn { width: 100%; }
.plan-note { margin-top: 24px; padding: 15px 17px; border-left: 2px solid var(--gold-600); background: var(--gold-100); color: var(--navy-700); font-size: 13px; }

/* Public course details and learning */
.course-hero { padding: 42px 0 28px; }
.course-hero h1 { max-width: 850px; margin-top: 15px; font-size: clamp(42px, 9vw, 65px); }
.course-hero .sub { margin-bottom: 22px; }
.course-progress { max-width: 700px; margin: 22px 0; }
.course-progress .bar { background: var(--line); }
.course-progress-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; color: var(--muted); font-size: 12px; }
.two { display: grid; gap: 18px; align-items: start; }
.panel { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); }
.panel h3 { font-size: 29px; }
.lessons { display: grid; gap: 7px; }
.lessons a, .lessons .lesson-locked { min-height: 50px; display: flex; align-items: center; gap: 10px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px; color: var(--navy-700); font-size: 13px; text-decoration: none; }
.lessons a:hover, .lessons a.on { border-color: var(--gold-600); background: var(--gold-100); color: var(--navy-950); }
.lessons a.is-locked, .lessons .lesson-locked { opacity: .65; }
.lesson-body { margin-top: 18px; color: var(--navy-700); font-size: 16px; line-height: 1.85; overflow-wrap: anywhere; }
.lesson-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.learn-grid { display: grid; gap: 18px; align-items: start; }
.aichat { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); }
.lt { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 17px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.lt span:last-child { color: var(--muted); font-size: 11px; font-weight: 400; }
.chat, .aichat-msgs { min-height: 270px; max-height: 390px; display: flex; flex-direction: column; gap: 10px; padding: 18px; overflow-y: auto; }
.chat .msg, .aichat-msgs .msg { max-width: 88%; padding: 11px 14px; border-radius: 14px; font-size: 14px; line-height: 1.6; white-space: pre-wrap; }
.chat .me, .aichat-msgs .me { align-self: flex-end; border-bottom-right-radius: 4px; background: var(--navy-800); color: var(--paper); }
.chat .bot, .aichat-msgs .bot { align-self: flex-start; border-bottom-left-radius: 4px; background: var(--ground); color: var(--navy-800); }
.qr { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 16px 13px; }
.qr button { min-height: 40px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 99px; background: transparent; color: var(--navy-700); font: 500 12px var(--bf); cursor: pointer; }
.qr button:hover { border-color: var(--gold-600); background: var(--gold-100); }
.ask { display: flex; gap: 8px; padding: 0 16px 17px; }
.ask input { flex: 1; min-width: 0; min-height: 46px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 9px; outline: 0; background: var(--paper); color: var(--navy-950); font: 400 14px var(--bf); }
.ask input:focus { border-color: var(--gold-600); box-shadow: 0 0 0 3px var(--gold-100); }

/* Authentication */
.auth-section { padding: 40px 0 64px; }
.auth-layout { display: grid; gap: 22px; align-items: stretch; }
.auth-aside { position: relative; isolation: isolate; overflow: hidden; padding: 31px 26px; border-radius: 19px; background: var(--navy-950); color: var(--paper); }
.auth-aside::after { content: ''; position: absolute; z-index: -1; right: -110px; bottom: -130px; width: 280px; height: 280px; border: 1px solid oklch(72% .13 84 / .28); border-radius: 50%; box-shadow: 0 0 0 42px oklch(72% .13 84 / .035); }
.auth-aside h2 { max-width: 420px; color: var(--paper); font-size: 40px; }
.auth-aside p { max-width: 430px; color: oklch(84% .018 245); font-size: 14px; }
.auth-points { display: grid; gap: 13px; margin-top: 28px; }
.auth-point { display: flex; align-items: center; gap: 11px; font-size: 13px; }
.auth-point .site-icon { color: var(--gold-500); }
.auth { width: 100%; max-width: 520px; margin: 0 auto; padding: 27px 23px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: 0 14px 36px oklch(19% .055 258 / .045); }
.auth h1 { font-size: 42px; }
.auth-intro { margin: 9px 0 23px; color: var(--muted); font-size: 14px; }
.auth .btn { width: 100%; margin-top: 22px; }
.auth .fine { text-align: center; }
.reg { padding: 35px 0 65px; }
.reg-grid { display: grid; gap: 22px; align-items: start; }
.reg-side { position: relative; isolation: isolate; overflow: hidden; padding: 29px 25px; border-radius: 19px; background: var(--navy-950); color: var(--paper); }
.reg-side::after { content: ''; position: absolute; z-index: -1; right: -100px; bottom: -100px; width: 240px; height: 240px; border: 1px solid oklch(72% .13 84 / .25); border-radius: 50%; box-shadow: 0 0 0 42px oklch(72% .13 84 / .03); }
.reg-side h2 { max-width: 430px; color: var(--paper); font-size: 39px; }
.reg-side > p { color: oklch(84% .018 245); font-size: 14px; }
.perks { position: relative; z-index: 1; display: grid; gap: 13px; margin: 24px 0; padding: 0; list-style: none; }
.perks li { display: flex; align-items: flex-start; gap: 11px; font-size: 13px; }
.perks i { flex: 0 0 24px; width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid var(--gold-500); border-radius: 50%; color: var(--gold-500); font-style: normal; font-size: 12px; }
.pv { position: relative; z-index: 1; display: flex; align-items: center; gap: 13px; margin: 22px 0 13px; padding: 16px; border: 1px solid oklch(98.5% .006 230 / .18); border-radius: 13px; background: oklch(98.5% .006 230 / .07); }
.pv-av { width: 50px; height: 50px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: var(--gold-500); color: var(--navy-950); font-family: var(--hf); font-size: 21px; font-weight: 700; }
.pv b, .pv small { display: block; overflow-wrap: anywhere; }
.pv b { font-size: 15px; }
.pv small { color: oklch(84% .018 245); font-size: 11px; }
.reg-side .fine { color: oklch(75% .02 245) !important; }
.reg-side .fine span { color: var(--gold-200) !important; }
.reg-form { min-width: 0; padding: 26px 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: 0 14px 36px oklch(19% .055 258 / .045); }
.reg-form h1 { font-size: 40px; }
.upline { display: flex; align-items: center; gap: 13px; margin-top: 18px; padding: 14px; border: 1px solid var(--gold-600); border-radius: 12px; background: var(--gold-100); }
.upline small { color: var(--muted); }
.stp { display: flex; gap: 10px; margin: 23px 0 7px; }
.stp span { flex: 1; padding-top: 9px; border-top: 3px solid var(--line); color: var(--muted); font-size: 12px; }
.stp span.on { border-color: var(--gold-600); color: var(--navy-950); font-weight: 600; }
.grid2 { display: grid; gap: 0; }
.phone { display: flex; }
.phone > span { display: grid; place-items: center; padding: 0 13px; border: 1px solid var(--line); border-right: 0; border-radius: 9px 0 0 9px; background: var(--ground); }
.phone input { border-radius: 0 9px 9px 0 !important; }
.pwrow { position: relative; display: block; }
.pwrow button { position: absolute; top: 3px; right: 4px; min-width: 44px; min-height: 44px; border: 0; background: transparent; color: var(--gold-600); font: 600 12px var(--bf); cursor: pointer; }
.pwrow input { padding-right: 61px; }
.meter { display: block; height: 5px; overflow: hidden; margin-top: 8px; border-radius: 99px; background: var(--line); }
.meter i { display: block; width: 0; height: 100%; transition: width .2s ease; }
.nav2 { display: flex; gap: 10px; margin-top: 24px; }
.nav2 .btn { flex: 1; margin-top: 0; text-align: center; }

/* Tables, wallet demo and final CTA */
.tw { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 13px; }
table { width: 100%; border-collapse: collapse; background: var(--paper); }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 13px; text-align: left; }
th { background: var(--navy-950); color: var(--paper); font-size: 11px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
.wallet { padding: 23px; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); }
.bal { margin-top: 4px; font-family: var(--hf); font-size: 44px; font-weight: 700; }
.bal-l { color: var(--muted); font-size: 12px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; margin: 15px 0; }
.buy { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.buy em { display: block; color: var(--muted); font-size: 12px; font-style: normal; }
.buy button { min-height: 42px; padding: 8px 14px; border: 0; border-radius: 8px; background: var(--navy-950); color: var(--paper); cursor: pointer; }
.final { position: relative; isolation: isolate; overflow: hidden; background: var(--navy-950); text-align: left; }
.final::after { content: ''; position: absolute; z-index: -1; top: -190px; right: -120px; width: 390px; height: 390px; border: 1px solid oklch(72% .13 84 / .22); border-radius: 50%; box-shadow: 0 0 0 55px oklch(72% .13 84 / .03); }
.final h2 { max-width: 700px; color: var(--paper); }
.final .sub { color: oklch(84% .018 245); }
.final .btn { border-color: var(--gold-500); background: var(--gold-500); color: var(--navy-950); }

/* Certificate verification */
.verify-section { padding: 44px 0 70px; }
.verify-card { max-width: 820px; margin-inline: auto; overflow: hidden; border: 1px solid var(--line); border-radius: 19px; background: var(--paper); box-shadow: 0 18px 45px oklch(19% .055 258 / .06); }
.verify-top { position: relative; isolation: isolate; overflow: hidden; padding: 29px 24px; background: var(--navy-950); color: var(--paper); }
.verify-top::after { content: ''; position: absolute; z-index: -1; top: -110px; right: -70px; width: 230px; height: 230px; border: 1px solid oklch(72% .13 84 / .25); border-radius: 50%; }
.verify-badge { display: inline-flex; align-items: center; gap: 7px; color: var(--gold-500); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.verify-top h1 { margin-top: 12px; color: var(--paper); font-size: clamp(37px, 9vw, 50px); }
.verify-top p { max-width: 570px; margin: 10px 0 0; color: oklch(84% .018 245); font-size: 13px; }
.verify-content { padding: 24px; }
.verify-status { margin: 0 0 19px; font-size: 14px; }
.verify-status.valid { color: var(--success); }
.verify-status.invalid { color: var(--danger); }
.verify-grid { display: grid; gap: 10px; margin: 20px 0; }
.verify-item { min-width: 0; padding: 13px; border: 1px solid var(--line); border-radius: 10px; overflow-wrap: anywhere; }
.verify-item small { display: block; color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
.verify-item strong { display: block; margin-top: 4px; font-size: 13px; }
.verify-form { display: grid; gap: 10px; margin: 20px 0; }
.verify-form label { color: var(--navy-800); font-size: 13px; font-weight: 600; }
.verify-foot { padding: 16px 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }

/* Footer */
.site-footer { padding: 42px 0 calc(22px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: var(--paper); }
.footer-grid { display: grid; gap: 30px; }
.footer-logo { margin-bottom: 14px; }
.footer-grid p { margin: 0; color: var(--muted); font-size: 13px; }
.footer-links { display: grid; align-content: start; gap: 8px; }
.footer-links strong { margin-bottom: 4px; font-size: 12px; }
.footer-links a { min-height: 32px; color: var(--muted); font-size: 12px; text-decoration: none; }
.footer-links a:hover { color: var(--gold-600); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }

@media (min-width: 560px) {
  .wrap { padding-inline: 26px; }
  .courses, .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-tools { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
  .cats { margin-bottom: 0; }
  .verify-grid, .grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid2 { gap: 13px; }
  .verify-form { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
  .verify-form label { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .auth, .reg-form { padding: 32px; }
}
@media (min-width: 760px) {
  section { padding: 76px 0; }
  .hero .wrap { padding-top: 82px; padding-bottom: 72px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
  .split { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 60px; }
  .two { grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr); }
  .learn-grid { grid-template-columns: minmax(210px, .65fr) minmax(0, 1.35fr); }
  .auth-layout { grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr); }
  .auth-aside { padding: 42px 35px; }
  .auth { margin: 0; }
  .reg-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 28px; }
  .reg-side { position: sticky; top: 96px; padding: 35px 30px; }
  .hero-proof .proof-item { padding: 25px 20px; }
  .proof-item strong { font-size: 34px; }
  .proof-item span { font-size: 11px; }
}
@media (min-width: 860px) {
  body.nav-open { overflow: auto; }
  .nav-toggle { display: none; }
  .links { position: static; display: flex; align-items: center; gap: 4px; padding: 0; border: 0; background: transparent; box-shadow: none; opacity: 1; pointer-events: auto; transform: none; }
  .links a { padding: 9px 11px; font-size: 13px; }
  .links .btn { margin: 0 0 0 6px; color: var(--paper); }
}
@media (min-width: 980px) {
  .hero .wrap { grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); gap: 55px; }
  .hero h1 { font-size: clamp(64px, 6.4vw, 82px); }
  .hero-product { transform: rotate(1.2deg); }
  .courses { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 25px; }
  .step { min-height: 220px; }
}
@media (min-width: 1180px) {
  .wrap { padding-inline: 32px; }
  .links { gap: 9px; }
  .links a { padding-inline: 13px; }
}
@media (max-width: 390px) {
  .wrap { padding-inline: 16px; }
  .links { right: -16px; left: -16px; }
  .hero .wrap { padding-top: 48px; }
  .hero h1 { font-size: 45px; }
  .hero .cta .btn { width: 100%; }
  .product-body { padding: 15px; }
  .product-stat { padding: 10px 6px; }
  .product-stat strong { font-size: 15px; }
  .auth, .reg-form { padding: 23px 17px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ==========================================================
   Lernova premium homepage — navy, gold and warm neutral palette
   Home-only styles; shared course, auth and dashboard styles remain intact.
   ========================================================== */

/* Give the public navigation a more considered, premium finish. */
.site-header { border-bottom-color: oklch(88% .018 250 / .72); box-shadow: 0 5px 24px oklch(19% .055 258 / .025); }
.site-nav { min-height: 76px; }
.logo { font-size: 24px; }
.logo-mark { width: 36px; height: 39px; border-radius: 9px 3px 9px 3px; background: linear-gradient(145deg, oklch(72% .13 84 / .12), transparent); }
.links a:not(.btn) { transition: color .18s ease, background .18s ease; }
.links a:not(.btn):hover { color: var(--navy-950); }
.links .btn { border-radius: 999px; box-shadow: 0 6px 16px oklch(19% .055 258 / .12); }

/* HERO */
.hero.hero-premium { position: relative; isolation: isolate; overflow: hidden; padding: 0; background: radial-gradient(ellipse at 78% 20%, oklch(37% .075 248 / .75), transparent 34%), linear-gradient(118deg, var(--navy-950) 0%, #162944 57%, #1b2e4a 100%); color: var(--paper); }
.hero.hero-premium::before { content: ''; position: absolute; z-index: -1; top: -270px; right: -130px; width: 660px; height: 660px; border: 1px solid oklch(72% .13 84 / .24); border-radius: 50%; box-shadow: 0 0 0 45px oklch(72% .13 84 / .035), 0 0 0 95px oklch(98.5% .006 230 / .025), 0 0 0 155px oklch(98.5% .006 230 / .016); pointer-events: none; }
.hero.hero-premium::after { content: ''; position: absolute; z-index: -1; left: -220px; bottom: -370px; width: 600px; height: 600px; border: 1px solid oklch(98.5% .006 230 / .09); border-radius: 50%; box-shadow: 0 0 0 45px oklch(98.5% .006 230 / .025), 0 0 0 95px oklch(98.5% .006 230 / .018); pointer-events: none; }
.hero-glow { position: absolute; z-index: -1; display: block; width: 240px; height: 240px; border-radius: 50%; filter: blur(2px); pointer-events: none; }
.hero-glow-one { top: 36%; left: 42%; background: radial-gradient(circle, oklch(72% .13 84 / .09), transparent 70%); }
.hero-glow-two { right: 8%; bottom: 2%; width: 180px; height: 180px; background: radial-gradient(circle, oklch(61% .12 245 / .16), transparent 72%); }
.hero .wrap.hero-layout { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 38px; padding-top: clamp(44px, 7vw, 88px); padding-bottom: clamp(46px, 6vw, 78px); }
.hero-copy { min-width: 0; max-width: 670px; }
.hero-kicker { width: fit-content; margin: 0 0 22px; padding: 8px 13px; border: 1px solid oklch(72% .13 84 / .3); border-radius: 999px; background: oklch(72% .13 84 / .085); color: var(--gold-200); font-size: 10px; letter-spacing: .13em; }
.hero-kicker::before { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-500); box-shadow: 0 0 0 4px oklch(72% .13 84 / .13); }
.hero h1 { max-width: 720px; font-size: clamp(45px, 8vw, 76px); font-weight: 400; letter-spacing: -.048em; line-height: 1.035; }
.hero h1 em { color: var(--gold-500); font-style: normal; text-shadow: 0 7px 35px oklch(72% .13 84 / .11); }
.hero .lead { max-width: 540px; margin: 16px 0 0; color: oklch(86% .018 245); font-size: clamp(14px, 1.35vw, 16px); line-height: 1.85; }
.leadrow { align-items: flex-start; gap: 12px; }
.spk { width: 42px; height: 42px; flex-basis: 42px; margin-top: 17px; border-color: oklch(98.5% .006 230 / .23); background: oklch(98.5% .006 230 / .035); color: var(--gold-200); transition: background .2s ease, transform .2s ease, border-color .2s ease; }
.spk:hover, .spk.on { border-color: var(--gold-500); background: oklch(72% .13 84 / .13); transform: translateY(-2px); }
.hero-actions { gap: 12px; margin-top: 27px; }
.hero .cta .btn { min-height: 51px; padding: 13px 20px; border-radius: 11px; font-size: 13px; }
.hero .btn:not(.alt) { border-color: var(--gold-500); background: var(--gold-500); color: var(--navy-950); box-shadow: 0 9px 24px oklch(72% .13 84 / .12); }
.hero .btn:not(.alt):hover { border-color: var(--gold-200); background: var(--gold-200); transform: translateY(-2px); }
.hero .btn.alt { border-color: oklch(98.5% .006 230 / .28); background: oklch(98.5% .006 230 / .045); color: var(--paper); }
.hero .btn.alt:hover { border-color: oklch(98.5% .006 230 / .6); background: oklch(98.5% .006 230 / .09); }
.hero .note { margin-top: 14px; color: oklch(76% .022 245); font-size: 11px; line-height: 1.6; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 17px; margin-top: 25px; padding-top: 19px; border-top: 1px solid oklch(98.5% .006 230 / .13); }
.hero-points span { display: inline-flex; align-items: center; gap: 7px; color: oklch(88% .015 245); font-size: 11px; line-height: 1.4; }
.hero-points .site-icon { color: var(--gold-500); }
.hero-bottom-rule { height: 1px; background: linear-gradient(90deg, transparent, oklch(72% .13 84 / .45), transparent); }

/* Premium interactive Lerna chat card */
.hero-product.hero-chat-shell { width: 100%; max-width: 600px; min-width: 0; justify-self: center; padding: 7px; border: 1px solid oklch(98.5% .006 230 / .24); border-radius: 27px; background: linear-gradient(135deg, oklch(98.5% .006 230 / .18), oklch(72% .13 84 / .075)); box-shadow: 0 35px 85px oklch(7% .04 258 / .38), 0 0 0 1px oklch(98.5% .006 230 / .035) inset; backdrop-filter: blur(16px); transform: none; }
.home-ai-card { position: relative; overflow: hidden; isolation: isolate; border: 1px solid oklch(88% .02 255 / .92); border-radius: 21px; background: linear-gradient(180deg, #fff 0%, #fff 58%, #fbfaff 100%); color: var(--navy-950); box-shadow: 0 12px 36px oklch(19% .055 258 / .12); }
.home-ai-card::before { content: ''; position: absolute; z-index: -1; top: -110px; right: -70px; width: 285px; height: 285px; border-radius: 50%; background: radial-gradient(circle, oklch(72% .13 84 / .19), oklch(69% .11 285 / .11) 38%, transparent 70%); pointer-events: none; }
.home-ai-card::after { content: ''; position: absolute; z-index: -1; left: -100px; bottom: 110px; width: 230px; height: 230px; border-radius: 50%; background: radial-gradient(circle, oklch(73% .1 245 / .1), transparent 70%); pointer-events: none; }
.home-ai-head { position: relative; z-index: 1; min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 19px; border-bottom: 1px solid oklch(89% .012 250 / .8); background: oklch(99% .006 230 / .9); }
.home-ai-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.home-ai-orb { position: relative; width: 47px; height: 47px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid oklch(70% .10 287 / .27); border-radius: 50%; background: linear-gradient(145deg, #fff, #eee8ff); box-shadow: 0 5px 18px oklch(59% .12 292 / .14); }
.home-ai-orb::before { content: ''; position: absolute; inset: -4px; border: 1px solid oklch(72% .13 84 / .5); border-left-color: transparent; border-radius: inherit; animation: premium-orbit 10s linear infinite; }
.home-ai-orb img { width: 56px; height: 56px; object-fit: contain; animation: premium-mascot-float 4.2s ease-in-out infinite; }
.home-ai-identity { display: grid; gap: 4px; min-width: 0; }
.home-ai-identity strong { color: var(--navy-950); font-size: 15px; line-height: 1.2; letter-spacing: -.02em; }
.home-ai-identity strong span { color: var(--gold-600); }
.home-ai-identity small { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.home-ai-identity small i, .showcase-status i { width: 7px; height: 7px; border-radius: 50%; background: #28a86b; box-shadow: 0 0 0 3px oklch(68% .15 154 / .13); }
.home-ai-badge { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border: 1px solid var(--gold-200); border-radius: 999px; background: linear-gradient(135deg, var(--gold-100), #fff); color: var(--gold-600); font-size: 9px; font-weight: 700; letter-spacing: .075em; white-space: nowrap; }
.home-ai-welcome { position: relative; min-height: 142px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 22px 13px; }
.home-ai-welcome-copy { position: relative; z-index: 2; max-width: 290px; }
.home-ai-eyebrow { display: inline-flex; align-items: center; gap: 7px; color: var(--gold-600); font-size: 9px; font-weight: 700; letter-spacing: .11em; line-height: 1.5; }
.home-ai-welcome h2 { margin: 7px 0 6px; color: var(--navy-950); font-family: var(--bf); font-size: clamp(22px, 2.5vw, 29px); font-weight: 700; letter-spacing: -.045em; line-height: 1.15; }
.home-ai-welcome p { max-width: 290px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.home-ai-mascot-stage { position: relative; width: clamp(98px, 12vw, 142px); height: clamp(98px, 12vw, 142px); flex: 0 0 auto; display: grid; place-items: center; }
.home-ai-welcome-mascot { position: relative; z-index: 2; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 8px 14px oklch(62% .14 294 / .22)); animation: premium-mascot-float 4.6s ease-in-out infinite; }
.mascot-ring { position: absolute; z-index: 1; inset: 12%; border: 1px solid oklch(68% .13 288 / .32); border-radius: 50%; }
.mascot-ring-a { transform: scaleX(1.2) rotate(-24deg); }
.mascot-ring-b { inset: 21% 3%; border-color: oklch(72% .13 84 / .38); transform: rotate(28deg) scaleY(.62); }
.mascot-spark { position: absolute; z-index: 3; color: var(--gold-600); text-shadow: 0 1px 12px oklch(72% .13 84 / .4); }
.mascot-spark-a { top: 10%; right: 3%; font-size: 20px; }
.mascot-spark-b { left: 1%; bottom: 17%; color: #8771e8; font-size: 17px; }
.home-chat-label { display: flex; align-items: center; gap: 8px; padding: 7px 21px 10px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.conversation-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-500); box-shadow: 0 0 0 4px var(--gold-100); }
.home-chat-label-line { height: 1px; flex: 1; background: var(--line); }
.new-chat-btn { flex: 0 0 auto; min-height: 29px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--navy-800); font: 600 10px var(--bf); letter-spacing: 0; cursor: pointer; transition: border-color .2s ease, background .2s ease; }
.new-chat-btn:hover:not(:disabled) { border-color: var(--gold-600); background: var(--gold-100); }
.new-chat-btn:disabled { opacity: .5; cursor: wait; }
.home-chat-transcript { position: relative; z-index: 1; margin: 0 17px; overflow: hidden; border: 1px solid oklch(89% .016 250); border-radius: 14px; background: linear-gradient(180deg, #fff, oklch(98.5% .012 252)); box-shadow: 0 2px 8px oklch(19% .055 258 / .025) inset; }
.home-chat-transcript .chat { min-height: 112px; max-height: 164px; display: flex; flex-direction: column; gap: 8px; padding: 12px; overflow-y: auto; overscroll-behavior: contain; scrollbar-color: var(--line) transparent; scrollbar-width: thin; }
.home-chat-transcript .chat .msg { position: relative; max-width: 92%; padding: 9px 12px; border: 1px solid transparent; border-radius: 13px; font-size: 11px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.home-chat-transcript .chat .bot { align-self: flex-start; border-color: oklch(88% .025 275 / .7); border-bottom-left-radius: 4px; background: linear-gradient(135deg, oklch(97.5% .018 278), oklch(98.8% .006 230)); color: var(--navy-900); }
.home-chat-transcript .chat .me { align-self: flex-end; border-bottom-right-radius: 4px; background: linear-gradient(135deg, var(--navy-800), var(--navy-950)); color: var(--paper); box-shadow: 0 4px 10px oklch(19% .055 258 / .12); }
.home-chat-transcript .chat .is-typing { color: var(--muted); }
.home-chat-transcript .chat .is-typing::after { content: ''; display: inline-block; width: 16px; height: 4px; margin-left: 7px; vertical-align: middle; background: radial-gradient(circle, var(--gold-600) 1px, transparent 2px) 0 50%/6px 4px repeat-x; animation: premium-typing 1s ease-in-out infinite; }
.home-chat-quick { position: relative; z-index: 1; padding-top: 12px; }
.home-chat-quick-head { padding: 0 21px 7px; }
.home-chat-quick .qr { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 17px 13px; }
.home-chat-quick .qr button { min-height: 34px; flex: 1 1 calc(50% - 7px); padding: 7px 10px; border: 1px solid oklch(88% .02 265); border-radius: 10px; background: oklch(99% .006 230); color: var(--navy-800); font: 500 10px/1.35 var(--bf); text-align: left; cursor: pointer; transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.home-chat-quick .qr button:hover { border-color: var(--gold-600); background: var(--gold-100); box-shadow: 0 4px 12px oklch(19% .055 258 / .05); transform: translateY(-1px); }
.home-ask { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; margin: 0; padding: 0 17px 10px; }
.home-ask input { width: 100%; min-width: 0; min-height: 49px; padding: 11px 14px; border-color: oklch(85% .025 258); border-radius: 12px; background: #fff; font-size: 11px; box-shadow: 0 2px 7px oklch(19% .055 258 / .03) inset; }
.home-ask input:focus { border-color: #8473dc; box-shadow: 0 0 0 3px oklch(70% .12 285 / .12); }
.home-ask .home-send { flex: 0 0 auto; min-height: 48px; gap: 7px; padding: 10px 15px; border-color: var(--gold-500); border-radius: 12px; background: var(--gold-500); color: var(--navy-950); font-size: 11px; box-shadow: 0 5px 15px oklch(72% .13 84 / .15); }
.home-ask .home-send:hover { border-color: var(--gold-200); background: var(--gold-200); }
.home-ask.is-thinking .home-send { opacity: .68; }
.home-ai-foot { display: flex; align-items: flex-start; justify-content: center; gap: 6px; margin: 0; padding: 0 13px 14px; color: var(--muted); font-size: 9px; line-height: 1.5; text-align: center; }
.home-ai-foot .site-icon { margin-top: 1px; color: var(--success); }

/* Three-part proof strip */
.hero-proof.premium-proof { display: block; border: 0; background: var(--paper); box-shadow: 0 12px 32px oklch(19% .055 258 / .035); }
.premium-proof .proof-grid { display: grid; grid-template-columns: 1fr; gap: 0; padding-top: 0; padding-bottom: 0; }
.premium-proof .proof-item { display: flex; align-items: center; justify-content: flex-start; gap: 14px; padding: 20px 10px; text-align: left; }
.premium-proof .proof-item + .proof-item { border-top: 1px solid var(--line); border-left: 0; }
.proof-icon { width: 44px; height: 44px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 13px; }
.proof-gold { background: var(--gold-100); color: var(--gold-600); }
.proof-blue { background: oklch(95% .025 245); color: #3b65ad; }
.proof-green { background: oklch(94% .03 158); color: #267d57; }
.premium-proof .proof-item strong { display: block; color: var(--navy-950); font-family: var(--bf); font-size: 14px; font-weight: 700; }
.premium-proof .proof-item span:not(.proof-icon) { display: block; max-width: none; margin-top: 4px; color: var(--muted); font-size: 11px; }

/* Course cards: editorial, spacious, no price or amount shown. */
.courses-section { position: relative; overflow: hidden; background: var(--ground); }
.courses-section::before { content: ''; position: absolute; top: 60px; right: -190px; width: 350px; height: 350px; border: 1px solid oklch(72% .13 84 / .12); border-radius: 50%; box-shadow: 0 0 0 45px oklch(72% .13 84 / .025); pointer-events: none; }
.courses-section .wrap { position: relative; z-index: 1; }
.section-head { align-items: flex-end; margin-bottom: 35px; }
.section-head > div { max-width: 690px; }
.section-head h2, .center-section-head h2 { max-width: 780px; font-size: clamp(34px, 5vw, 52px); line-height: 1.09; }
.section-head .sub { margin-top: 14px; margin-bottom: 0; font-size: 14px; }
.section-kicker { margin-bottom: 13px; font-size: 10px; letter-spacing: .14em; }
.catalog-link { flex: 0 0 auto; min-height: 43px; margin-bottom: 1px; padding: 0 0 4px; border-bottom: 1px solid var(--gold-600); }
.premium-courses { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.premium-course { position: relative; gap: 0; min-height: 100%; border: 1px solid oklch(88% .015 245); border-radius: 19px; background: var(--paper); box-shadow: 0 8px 24px oklch(19% .055 258 / .035); transition: transform .24s var(--ease), box-shadow .24s ease, border-color .24s ease; }
.premium-course:hover { border-color: oklch(78% .07 84 / .65); box-shadow: 0 22px 48px oklch(19% .055 258 / .095); transform: translateY(-5px); }
.premium-course-cover { position: relative; min-height: 184px; height: 184px; display: block; padding: 0; overflow: hidden; border-radius: 18px 18px 0 0; color: var(--gold-200); text-decoration: none; }
.premium-course:nth-child(1) .premium-course-cover { background: linear-gradient(135deg, #15243a, #31577c); }
.premium-course:nth-child(2) .premium-course-cover { background: linear-gradient(135deg, #33375f, #6e63a8); }
.premium-course:nth-child(3) .premium-course-cover { background: linear-gradient(135deg, #174b4c, #41887a); }
.premium-course-cover::before { content: ''; position: absolute; z-index: 1; inset: 0; background: linear-gradient(135deg, oklch(16% .04 258 / .06), oklch(16% .04 258 / .28)); pointer-events: none; }
.premium-course-cover::after { z-index: 1; right: -36px; bottom: -98px; width: 205px; height: 205px; border-width: 1px; box-shadow: 0 0 0 24px oklch(98.5% .006 230 / .06), 0 0 0 48px oklch(98.5% .006 230 / .035); }
.premium-course-cover img { z-index: 0; opacity: .5; transition: transform .5s var(--ease), opacity .3s ease; }
.premium-course:hover .premium-course-cover img { opacity: .62; transform: scale(1.045); }
.course-cover-category { position: absolute; z-index: 2; top: 17px; left: 17px; max-width: calc(100% - 34px); overflow: hidden; padding: 7px 10px; border: 1px solid oklch(98.5% .006 230 / .25); border-radius: 999px; background: oklch(19% .055 258 / .4); color: #fff; font-size: 9px; font-weight: 600; letter-spacing: .06em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; backdrop-filter: blur(10px); }
.course-cover-orbit { position: absolute; z-index: 1; right: 20px; top: 17px; width: 120px; height: 120px; border: 1px solid oklch(98.5% .006 230 / .25); border-radius: 50%; transform: scaleX(1.2) rotate(26deg); }
.course-cover-orbit::before, .course-cover-orbit::after { content: ''; position: absolute; inset: 15px -20px; border: 1px solid oklch(72% .13 84 / .38); border-radius: 50%; transform: rotate(-35deg); }
.course-cover-orbit::after { inset: 30px -31px; border-color: oklch(98.5% .006 230 / .13); transform: rotate(53deg); }
.course-cover-art { position: absolute; z-index: 2; left: 23px; bottom: 21px; width: 56px; height: 56px; display: grid; place-items: center; border: 1px solid oklch(98.5% .006 230 / .3); border-radius: 17px; background: oklch(98.5% .006 230 / .1); color: var(--gold-200); box-shadow: 0 9px 24px oklch(10% .04 258 / .15); backdrop-filter: blur(8px); }
.course-cover-index { position: absolute; z-index: 2; right: 20px; bottom: 14px; color: oklch(98.5% .006 230 / .7); font-family: var(--hf); font-size: 34px; line-height: 1; }
.premium-course-content { gap: 13px; padding: 22px 22px 23px; }
.course-meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.course-meta-row .tag { border: 1px solid var(--gold-200); border-radius: 999px; background: var(--gold-100); color: var(--navy-800); font-size: 10px; }
.course-lesson-count { color: var(--muted); font-size: 10px; }
.premium-course h3 { min-height: 2.1em; font-family: var(--hf); font-size: clamp(24px, 2.3vw, 30px); font-weight: 700; line-height: 1.1; }
.premium-course p { flex: 1; color: var(--muted); font-size: 12px; line-height: 1.75; }
.course-explore-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; padding-top: 13px; border-top: 1px solid var(--line); color: var(--navy-800); font-size: 12px; font-weight: 700; text-decoration: none; transition: color .2s ease; }
.course-explore-link span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--gold-100); color: var(--gold-600); font-size: 18px; transition: transform .2s ease, background .2s ease; }
.course-explore-link:hover { color: var(--gold-600); }
.course-explore-link:hover span { background: var(--gold-200); transform: translate(2px, -2px); }
.catalog-footnote { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 23px; padding-top: 17px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.catalog-footnote > span, .catalog-footnote a { display: inline-flex; align-items: center; gap: 7px; }
.catalog-footnote > span .site-icon { color: var(--success); }
.catalog-footnote a { color: var(--navy-800); font-weight: 600; text-decoration: none; }
.catalog-footnote a:hover { color: var(--gold-600); }
.course-empty { position: relative; z-index: 1; }

/* How-it-works cards */
.how-section { position: relative; overflow: hidden; background: linear-gradient(180deg, #fff 0%, oklch(96.5% .015 247) 100%); }
.how-section::before { content: ''; position: absolute; left: -150px; top: 12%; width: 320px; height: 320px; border: 1px solid oklch(72% .13 84 / .12); border-radius: 50%; box-shadow: 0 0 0 35px oklch(72% .13 84 / .025); pointer-events: none; }
.center-section-head { position: relative; z-index: 1; max-width: 760px; margin: 0 auto 37px; text-align: center; }
.center-section-head .section-kicker { justify-content: center; }
.center-section-head h2 { margin-inline: auto; }
.center-section-head .sub { max-width: 600px; margin: 14px auto 0; font-size: 14px; }
.premium-steps { position: relative; z-index: 1; grid-template-columns: minmax(0, 1fr); gap: 13px; counter-reset: none; }
.premium-steps .step { min-height: 0; padding: 25px 22px 24px; border: 1px solid oklch(88% .015 245); border-radius: 16px; background: oklch(99% .006 230 / .92); box-shadow: 0 8px 24px oklch(19% .055 258 / .035); counter-increment: none; transition: transform .2s var(--ease), border-color .2s ease, box-shadow .2s ease; }
.premium-steps .step:hover { border-color: oklch(78% .07 84 / .55); box-shadow: 0 16px 34px oklch(19% .055 258 / .06); transform: translateY(-3px); }
.premium-steps .step::before { display: none; }
.step-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 20px; border-radius: 14px; }
.step-icon-gold { background: var(--gold-100); color: var(--gold-600); }
.step-icon-blue { background: oklch(95% .025 245); color: #3b65ad; }
.step-icon-violet { background: oklch(95% .025 285); color: #7962c7; }
.step-icon-green { background: oklch(94% .03 158); color: #267d57; }
.step-label { display: block; margin-bottom: 9px; color: var(--gold-600); font-size: 9px; font-weight: 700; letter-spacing: .13em; }
.premium-steps .step h3 { margin-bottom: 9px; font-size: 16px; }
.premium-steps .step p { color: var(--muted); font-size: 12px; line-height: 1.75; }

/* Lerna story and visual mascot card */
.lerna-section.premium-lerna-section { position: relative; overflow: hidden; background: linear-gradient(120deg, #fff 0%, oklch(97% .012 248) 100%); }
.premium-lerna-section::before { content: ''; position: absolute; top: -100px; right: -120px; width: 340px; height: 340px; border: 1px solid oklch(70% .1 286 / .13); border-radius: 50%; box-shadow: 0 0 0 40px oklch(70% .1 286 / .025), 0 0 0 80px oklch(70% .1 286 / .018); pointer-events: none; }
.lerna-split { position: relative; z-index: 1; grid-template-columns: minmax(0, 1fr); gap: 36px; align-items: center; }
.lerna-section-copy { min-width: 0; }
.lerna-section-copy h2 { max-width: 590px; font-size: clamp(35px, 5vw, 52px); }
.lerna-section-copy .sub { margin-top: 16px; font-size: 14px; }
.premium-feature-list { margin-top: 24px; }
.premium-feature-list .feature-row { grid-template-columns: 43px minmax(0, 1fr); gap: 14px; padding: 17px 0; border-top-color: oklch(88% .015 245 / .8); }
.premium-feature-list .feature-icon { width: 41px; height: 41px; display: grid; place-items: center; border-radius: 12px; }
.feature-icon-gold { background: var(--gold-100); color: var(--gold-600); }
.feature-icon-blue { background: oklch(95% .025 245); color: #3b65ad; }
.feature-icon-green { background: oklch(94% .03 158); color: #267d57; }
.premium-feature-list .feature-row h3 { font-size: 14px; }
.premium-feature-list .feature-row p { margin-top: 5px; font-size: 12px; line-height: 1.7; }
.lerna-learn-link { margin-top: 15px; padding-bottom: 4px; border-bottom: 1px solid var(--gold-600); }
.premium-lerna-showcase { position: relative; isolation: isolate; overflow: hidden; min-width: 0; padding: 22px; border: 1px solid oklch(83% .04 278 / .45); border-radius: 24px; background: linear-gradient(145deg, #fff, oklch(96.5% .02 278) 65%, oklch(97% .015 245)); box-shadow: 0 25px 70px oklch(43% .07 280 / .1), 0 5px 18px oklch(19% .055 258 / .035); }
.showcase-glow { position: absolute; z-index: -1; top: 5%; right: -10%; width: 75%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, oklch(71% .12 286 / .2), oklch(72% .13 84 / .08) 42%, transparent 72%); }
.lerna-showcase-head { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 15px; border-bottom: 1px solid oklch(79% .04 280 / .25); }
.showcase-label { color: var(--navy-800); font-size: 9px; font-weight: 700; letter-spacing: .11em; }
.showcase-status { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 9px; }
.lerna-showcase-main { display: grid; place-items: center; padding: 18px 0 20px; text-align: center; }
.lerna-showcase-mascot { position: relative; width: clamp(150px, 19vw, 215px); aspect-ratio: 1; display: grid; place-items: center; }
.lerna-showcase-mascot img { position: relative; z-index: 2; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 12px 20px oklch(62% .14 294 / .22)); animation: premium-mascot-float 4.8s ease-in-out infinite; }
.showcase-orbit { position: absolute; inset: 16%; border: 1px solid oklch(67% .12 287 / .32); border-radius: 50%; transform: rotate(28deg) scaleX(1.25); }
.showcase-orbit::before { content: ''; position: absolute; inset: 15px -27px; border: 1px solid oklch(72% .13 84 / .42); border-radius: 50%; transform: rotate(-47deg); }
.lerna-quote { max-width: 380px; margin: 5px auto 0; color: var(--navy-800); font-family: var(--hf); font-size: clamp(20px, 2.5vw, 27px); font-weight: 700; line-height: 1.3; }
.lerna-capabilities { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 5px 0 17px; }
.lerna-capabilities > div { min-width: 0; display: grid; align-content: start; justify-items: center; gap: 7px; padding: 13px 8px; border: 1px solid oklch(86% .025 278 / .55); border-radius: 13px; background: oklch(99% .006 230 / .82); text-align: center; }
.cap-icon { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 10px; }
.cap-gold { background: var(--gold-100); color: var(--gold-600); }
.cap-blue { background: oklch(95% .025 245); color: #3b65ad; }
.cap-green { background: oklch(94% .03 158); color: #267d57; }
.lerna-capabilities strong { color: var(--navy-950); font-size: 10px; line-height: 1.3; }
.lerna-capabilities small { color: var(--muted); font-size: 9px; line-height: 1.45; }
.lerna-showcase-cta { width: 100%; min-height: 47px; border-color: var(--navy-950); border-radius: 11px; background: var(--navy-950); color: #fff; }
.lerna-showcase-cta:hover { border-color: var(--navy-800); background: var(--navy-800); }

/* Referral community section */
.dark-section.premium-community { position: relative; isolation: isolate; overflow: hidden; background: radial-gradient(ellipse at 88% 20%, oklch(39% .075 245 / .5), transparent 38%), linear-gradient(120deg, var(--navy-950), #172a45); }
.premium-community::after { content: ''; position: absolute; z-index: -1; top: -210px; right: -130px; width: 480px; height: 480px; border: 1px solid oklch(72% .13 84 / .2); border-radius: 50%; box-shadow: 0 0 0 45px oklch(72% .13 84 / .035), 0 0 0 95px oklch(98.5% .006 230 / .018); pointer-events: none; }
.community-layout { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 32px; }
.community-copy h2 { max-width: 560px; font-size: clamp(36px, 5.2vw, 56px); }
.community-copy .sub { margin: 16px 0 23px; font-size: 14px; }
.community-copy .btn.gold { min-height: 49px; border-color: var(--gold-500); background: var(--gold-500); color: var(--navy-950); }
.community-note { display: flex; align-items: flex-start; gap: 7px; margin: 14px 0 0; color: oklch(77% .018 245); font-size: 10px; line-height: 1.5; }
.community-note .site-icon { flex: 0 0 auto; color: var(--gold-200); }
.community-table-wrap { min-width: 0; overflow: hidden; border: 1px solid oklch(98.5% .006 230 / .16); border-radius: 18px; background: oklch(98.5% .006 230 / .045); box-shadow: 0 18px 50px oklch(8% .04 258 / .18); backdrop-filter: blur(12px); }
.community-table-heading { display: flex; align-items: center; gap: 12px; padding: 18px 19px; border-bottom: 1px solid oklch(98.5% .006 230 / .14); }
.community-table-heading > span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: oklch(72% .13 84 / .13); color: var(--gold-200); }
.community-table-heading strong, .community-table-heading small { display: block; }
.community-table-heading strong { color: var(--paper); font-size: 12px; }
.community-table-heading small { margin-top: 4px; color: oklch(78% .018 245); font-size: 10px; }
.community-table-wrap .tw { overflow-x: auto; border: 0; border-radius: 0; }
.community-table-wrap table { width: 100%; min-width: 320px; border-collapse: collapse; background: transparent; }
.community-table-wrap th { padding: 11px 14px; border: 0; background: oklch(98.5% .006 230 / .06); color: var(--gold-200); font-size: 9px; font-weight: 600; text-align: left; }
.community-table-wrap td { padding: 12px 14px; border-bottom: 1px solid oklch(98.5% .006 230 / .09); color: oklch(88% .015 245); font-size: 11px; }
.community-table-wrap tr:last-child td { border-bottom: 0; }
.community-table-wrap tr:hover td { background: oklch(98.5% .006 230 / .035); }
.community-table-wrap td strong { color: var(--gold-200); font-size: 13px; }
.level-pill { display: inline-grid; place-items: center; width: 28px; height: 28px; border: 1px solid oklch(72% .13 84 / .25); border-radius: 9px; background: oklch(72% .13 84 / .1); color: var(--gold-200); font-size: 10px; font-weight: 700; }

/* Clear, focused final call to action */
.final.final-premium { position: relative; isolation: isolate; overflow: hidden; padding: clamp(60px, 8vw, 100px) 0; background: radial-gradient(ellipse at 88% 10%, oklch(43% .085 245 / .36), transparent 35%), linear-gradient(120deg, #101a2d, #192d49); text-align: center; }
.final-premium .wrap { position: relative; z-index: 1; }
.final-inner { display: flex; flex-direction: column; align-items: center; }
.final-premium .section-kicker { justify-content: center; color: var(--gold-200); }
.final-premium h2 { max-width: 800px; color: var(--paper); font-size: clamp(38px, 6.5vw, 65px); line-height: 1.04; }
.final-premium .sub { max-width: 610px; margin: 17px auto 0; color: oklch(84% .018 245); font-size: 14px; }
.final-actions { justify-content: center; margin-top: 27px; }
.final-premium .cta .btn { min-height: 49px; border-radius: 11px; }
.final-premium .btn:not(.alt) { border-color: var(--gold-500); background: var(--gold-500); color: var(--navy-950); }
.final-premium .btn:not(.alt):hover { border-color: var(--gold-200); background: var(--gold-200); }
.final-premium .btn.alt { border-color: oklch(98.5% .006 230 / .28); background: oklch(98.5% .006 230 / .045); color: var(--paper); }
.final-premium .btn.alt:hover { border-color: oklch(98.5% .006 230 / .55); background: oklch(98.5% .006 230 / .09); }
.final-decoration { position: absolute; z-index: -1; width: 260px; height: 260px; border: 1px solid oklch(72% .13 84 / .16); border-radius: 50%; box-shadow: 0 0 0 35px oklch(72% .13 84 / .025); pointer-events: none; }
.final-decoration-one { left: -130px; top: 10%; }
.final-decoration-two { right: -150px; bottom: -180px; width: 360px; height: 360px; border-color: oklch(98.5% .006 230 / .12); }

@keyframes premium-mascot-float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-5px) rotate(1deg); } }
@keyframes premium-orbit { to { transform: rotate(360deg); } }
@keyframes premium-typing { 0%, 100% { opacity: .45; background-position: 0 50%; } 50% { opacity: 1; background-position: 6px 50%; } }

@media (min-width: 560px) {
  .premium-proof .proof-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .premium-proof .proof-item { padding: 22px 12px; }
  .premium-proof .proof-item + .proof-item { border-top: 0; border-left: 1px solid var(--line); }
  .premium-courses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .premium-course-cover { height: 175px; min-height: 175px; }
  .premium-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .community-table-wrap td, .community-table-wrap th { padding-inline: 16px; }
}
@media (min-width: 760px) {
  .hero .wrap.hero-layout { padding-top: 76px; padding-bottom: 70px; }
  .premium-proof .proof-item { padding: 24px 18px; }
  .premium-proof .proof-item strong { font-size: 15px; }
  .premium-proof .proof-item span:not(.proof-icon) { font-size: 11px; }
  .lerna-split { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(35px, 5vw, 70px); }
  .community-layout { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 35px; }
}
@media (min-width: 980px) {
  .hero .wrap.hero-layout { grid-template-columns: minmax(0, 1.02fr) minmax(405px, .98fr); gap: clamp(35px, 4.2vw, 64px); }
  .hero h1 { font-size: clamp(58px, 5.5vw, 76px); }
  .hero-product.hero-chat-shell { justify-self: end; max-width: 570px; }
  .premium-courses { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .premium-course-cover { height: 190px; min-height: 190px; }
  .premium-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
  .premium-steps .step { padding: 25px 19px 22px; }
  .premium-steps .step h3 { min-height: 2.2em; }
}
@media (min-width: 1180px) {
  .hero .wrap.hero-layout { padding-top: 86px; padding-bottom: 80px; }
  .premium-course-content { padding: 24px 24px 25px; }
  .premium-lerna-showcase { padding: 26px; }
}
@media (max-width: 759px) {
  .hero .wrap.hero-layout { gap: 32px; }
  .hero-copy { max-width: 680px; }
  .hero h1 { max-width: 650px; }
  .hero-product.hero-chat-shell { max-width: 540px; }
  .catalog-link { margin-top: 13px; }
  .section-head { display: block; }
  .premium-course h3 { min-height: 0; }
  .community-copy { max-width: 630px; }
}
@media (max-width: 480px) {
  .site-nav { min-height: 67px; }
  .logo { font-size: 21px; }
  .hero .wrap.hero-layout { padding-top: 43px; padding-bottom: 41px; }
  .hero-kicker { margin-bottom: 18px; padding: 7px 10px; font-size: 9px; }
  .hero h1 { font-size: clamp(39px, 11vw, 52px); letter-spacing: -.045em; }
  .hero .lead { margin-top: 11px; font-size: 13px; line-height: 1.75; }
  .leadrow { gap: 9px; }
  .spk { width: 38px; height: 38px; flex-basis: 38px; margin-top: 14px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; gap: 9px; margin-top: 22px; }
  .hero .cta .btn { width: 100%; }
  .hero-points { gap: 9px 13px; margin-top: 19px; padding-top: 16px; }
  .hero-points span { font-size: 10px; }
  .hero-product.hero-chat-shell { padding: 5px; border-radius: 22px; }
  .home-ai-card { border-radius: 17px; }
  .home-ai-head { min-height: 66px; padding: 12px 13px; }
  .home-ai-brand { gap: 9px; }
  .home-ai-orb { width: 40px; height: 40px; }
  .home-ai-orb img { width: 49px; height: 49px; }
  .home-ai-identity strong { font-size: 13px; }
  .home-ai-identity small { font-size: 9px; }
  .home-ai-badge { gap: 4px; padding: 6px 7px; font-size: 8px; }
  .home-ai-welcome { min-height: 126px; gap: 5px; padding: 14px 13px 9px; }
  .home-ai-welcome-copy { max-width: 65%; }
  .home-ai-eyebrow { font-size: 8px; letter-spacing: .08em; }
  .home-ai-welcome h2 { font-size: 22px; }
  .home-ai-welcome p { font-size: 10px; }
  .home-ai-mascot-stage { width: 93px; height: 93px; margin-right: -3px; }
  .mascot-spark-a { font-size: 16px; }
  .home-chat-label { padding: 7px 13px 9px; font-size: 8px; }
  .home-chat-transcript { margin-inline: 11px; }
  .home-chat-transcript .chat { min-height: 104px; max-height: 148px; padding: 10px; }
  .home-chat-transcript .chat .msg { max-width: 96%; padding: 8px 10px; font-size: 10px; }
  .home-chat-quick-head { padding-inline: 13px; }
  .home-chat-quick .qr { gap: 6px; padding-inline: 11px; }
  .home-chat-quick .qr button { min-height: 35px; padding: 7px 8px; font-size: 9px; }
  .home-ask { gap: 6px; padding-inline: 11px; }
  .home-ask input { min-height: 45px; padding-inline: 10px; font-size: 10px; }
  .home-ask .home-send { min-height: 45px; padding-inline: 10px; font-size: 10px; }
  .home-ai-foot { padding-inline: 10px; font-size: 8px; }
  .premium-proof .proof-item { gap: 11px; padding: 15px 6px; }
  .proof-icon { width: 39px; height: 39px; border-radius: 11px; }
  .premium-proof .proof-item span:not(.proof-icon) { font-size: 10px; }
  .section-head h2, .center-section-head h2 { font-size: 34px; }
  .catalog-link { margin-top: 10px; }
  .premium-course-cover { height: 170px; min-height: 170px; }
  .premium-course-content { padding: 19px 17px 19px; }
  .premium-course h3 { font-size: 25px; }
  .catalog-footnote { align-items: flex-start; flex-direction: column; font-size: 10px; }
  .premium-steps .step { padding: 21px 18px; }
  .lerna-section-copy h2 { font-size: 36px; }
  .premium-lerna-showcase { padding: 16px; border-radius: 19px; }
  .lerna-capabilities { gap: 6px; }
  .lerna-capabilities > div { padding: 10px 6px; }
  .lerna-capabilities strong { font-size: 9px; }
  .lerna-capabilities small { font-size: 8px; }
  .community-table-wrap { border-radius: 14px; }
  .community-table-heading { padding: 14px; }
  .community-table-wrap td, .community-table-wrap th { padding: 10px 9px; }
  .community-table-wrap td { font-size: 10px; }
  .final-actions { width: 100%; display: grid; grid-template-columns: 1fr; }
  .final-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .home-ai-orb::before, .home-ai-orb img, .home-ai-welcome-mascot, .lerna-showcase-mascot img { animation: none !important; }
  .premium-course, .premium-steps .step, .course-cover img, .course-explore-link span { transition: none !important; }
}
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

/* Login gate retained for public featured courses */
.premium-course-cover .course-lock-badge { position: absolute; z-index: 3; top: 15px; right: 15px; display: inline-flex; align-items: center; gap: 5px; max-width: calc(100% - 34px); padding: 7px 9px; border: 1px solid oklch(98.5% .006 230 / .24); border-radius: 999px; background: oklch(16% .04 258 / .76); color: #fff; font-size: 9px; font-weight: 700; white-space: nowrap; backdrop-filter: blur(9px); }
.premium-course-cover .course-lock-badge .site-icon { color: var(--gold-200); }
button.course-explore-link { width: 100%; border: 0; background: transparent; font: 700 12px/1.4 var(--bf); text-align: left; cursor: pointer; }
button.course-explore-link:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 4px; }

.login-modal-backdrop { position: fixed; z-index: 9999; inset: 0; display: none; align-items: center; justify-content: center; padding: 20px; overflow-y: auto; background: oklch(10% .04 258 / .76); backdrop-filter: blur(7px); }
.login-modal-backdrop.is-open { display: flex; }
.login-modal { position: relative; width: min(100%, 460px); margin: auto; padding: clamp(23px, 5vw, 34px); border: 1px solid oklch(88% .012 240); border-radius: 23px; background: linear-gradient(180deg, #fff, oklch(98.5% .009 245)); color: var(--navy-950); box-shadow: 0 30px 90px oklch(7% .04 258 / .32); }
.login-modal-close { position: absolute; top: 13px; right: 13px; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--navy-800); font: 400 24px/1 var(--bf); cursor: pointer; transition: border-color .18s ease, background .18s ease; }
.login-modal-close:hover { border-color: var(--gold-600); background: var(--gold-100); }
.login-modal-icon { width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 17px; border: 1px solid oklch(72% .13 84 / .23); border-radius: 16px; background: linear-gradient(145deg, var(--navy-950), var(--navy-800)); color: var(--gold-200); box-shadow: 0 8px 20px oklch(19% .055 258 / .13); }
.login-modal .section-kicker { margin-bottom: 10px; font-size: 9px; }
.login-modal h2 { margin: 0 30px 10px 0; font-size: clamp(27px, 5vw, 35px); line-height: 1.12; }
.login-modal p:not(.section-kicker) { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; overflow-wrap: anywhere; }
.login-modal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 23px; }
.login-modal-actions .btn { flex: 1 1 145px; min-height: 47px; border-radius: 11px; }
.login-modal-actions .btn.alt { border-color: var(--line); background: transparent; color: var(--navy-950); }
.login-modal-actions .btn.alt:hover { border-color: var(--navy-800); background: var(--ground); }
@media (max-width: 390px) { .login-modal-actions { display: grid; grid-template-columns: 1fr; } .login-modal-actions .btn { width: 100%; } .premium-course-cover .course-lock-badge { top: 11px; right: 11px; padding: 6px 7px; font-size: 8px; } }

/* Lerna chat-only refinement: readable, non-overlapping bubbles; all other site styling remains unchanged. */
.hero-chat-shell .home-ai-card {
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(225, 230, 239, .95);
  box-shadow: 0 18px 45px rgba(7, 20, 43, .16);
}
.hero-chat-shell .home-ai-head {
  min-height: 64px;
  padding: 12px 17px;
  background: #fff;
  border-bottom: 1px solid #e9edf4;
}
.hero-chat-shell .home-ai-orb { width: 42px; height: 42px; }
.hero-chat-shell .home-ai-orb img { width: 49px; height: 49px; }
.hero-chat-shell .home-ai-identity strong { font-size: 17px; }
.hero-chat-shell .home-ai-identity small { font-size: 12px; }
.hero-chat-shell .home-ai-badge { font-size: 10px; }
/* Keep the chat focused like a classic chat window, without the extra promotional panel. */
.hero-chat-shell .home-ai-welcome { display: none; }
.hero-chat-shell .home-chat-label { padding: 12px 17px 10px; font-size: 11px; letter-spacing: .08em; }
.hero-chat-shell .new-chat-btn { min-height: 33px; padding: 6px 11px; font-size: 12px; }
.hero-chat-shell .home-chat-transcript {
  margin: 0 13px;
  border: 1px solid #e4e9f2;
  border-radius: 13px;
  background: #fbfcff;
  box-shadow: none;
}
.hero-chat-shell .home-chat-transcript .chat {
  min-height: 260px;
  max-height: 380px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 13px;
  padding: 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #c6cddd transparent;
}
.hero-chat-shell .home-chat-transcript .chat .msg {
  position: relative;
  display: block;
  flex: 0 0 auto; /* Prevent flexbox from shrinking bubbles and making their text overlap. */
  box-sizing: border-box;
  width: fit-content;
  height: auto;
  min-height: 0;
  max-width: 90%;
  margin: 0;
  padding: 13px 16px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: normal;
}
.hero-chat-shell .home-chat-transcript .chat .bot {
  align-self: flex-start;
  border-color: #e4defa;
  border-bottom-left-radius: 5px;
  background: linear-gradient(135deg, #f4f0ff, #f8faff);
  color: #17243b;
}
.hero-chat-shell .home-chat-transcript .chat .me {
  align-self: flex-end;
  border-bottom-right-radius: 5px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-950));
  color: #fff;
  box-shadow: 0 4px 10px rgba(19, 34, 60, .12);
}
.hero-chat-shell .home-chat-transcript .chat .is-typing { color: var(--muted); }
.hero-chat-shell .home-chat-transcript .chat .is-typing::after {
  content: '';
  display: inline-block;
  width: 16px;
  height: 4px;
  margin-left: 7px;
  vertical-align: middle;
  background: radial-gradient(circle, var(--gold-600) 1px, transparent 2px) 0 50%/6px 4px repeat-x;
  animation: premium-typing 1s ease-in-out infinite;
}
.hero-chat-shell .home-chat-quick { padding-top: 15px; }
.hero-chat-shell .home-chat-quick-head { padding: 0 17px 9px; }
.hero-chat-shell .home-chat-quick-head .home-ai-eyebrow { font-size: 11px; }
.hero-chat-shell .home-chat-quick .qr { gap: 8px; padding: 0 13px 14px; }
.hero-chat-shell .home-chat-quick .qr button {
  min-height: 43px;
  flex: 1 1 calc(50% - 8px);
  padding: 10px 12px;
  border: 1px solid #dfe5ef;
  border-radius: 11px;
  background: #fff;
  color: var(--navy-800);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}
.hero-chat-shell .home-chat-quick .qr button:hover,
.hero-chat-shell .home-chat-quick .qr button:focus-visible {
  border-color: var(--gold-500);
  background: #fff9e8;
  outline: none;
}
.hero-chat-shell .home-ask { gap: 9px; padding: 0 13px 12px; }
.hero-chat-shell .home-ask input {
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid #dce3ee;
  border-radius: 11px;
  font-family: var(--bf);
  font-size: 16px; /* Avoids iOS Safari zoom and keeps the entry field readable. */
  line-height: 1.4;
}
.hero-chat-shell .home-ask .home-send {
  min-height: 52px;
  padding: 11px 17px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 700;
}
.hero-chat-shell .home-ai-foot { padding: 0 14px 14px; font-size: 11px; line-height: 1.5; }
@media (max-width: 600px) {
  .hero-chat-shell { padding: 5px; border-radius: 21px; }
  .hero-chat-shell .home-ai-head { padding: 11px 12px; }
  .hero-chat-shell .home-ai-badge { padding: 6px 8px; font-size: 9px; }
  .hero-chat-shell .home-chat-transcript .chat {
    min-height: 250px;
    max-height: 350px;
    gap: 12px;
    padding: 12px;
  }
  .hero-chat-shell .home-chat-transcript .chat .msg {
    max-width: 96%;
    padding: 12px 13px;
    font-size: 16px;
    line-height: 1.6;
  }
  .hero-chat-shell .home-chat-quick .qr button { flex-basis: 100%; min-height: 44px; font-size: 13px; }
  .hero-chat-shell .home-ask { align-items: stretch; gap: 7px; }
  .hero-chat-shell .home-ask input { width: 100%; min-width: 0; font-size: 16px; }
  .hero-chat-shell .home-ask .home-send { flex: 0 0 auto; padding-inline: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-chat-shell .home-chat-transcript .chat { scroll-behavior: auto; }
}

/* Registration gender cards: a considered alternative to a select dropdown. */
/* Two clear, accessible gender choices. The visual state follows the checked radio. */
.reg-gender-field { min-width: 0; margin: 0 0 19px; padding: 0; border: 0; }
.reg-gender-field legend { display:flex; flex-wrap:wrap; align-items:baseline; gap:8px; margin-bottom:11px; color:var(--navy, #14233d); font-size:14px; font-weight:800; }
.reg-optional { color:var(--muted, #737d8c); font-size:11px; font-weight:500; }
.reg-gender-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.reg-gender-card { position:relative; display:grid; grid-template-columns:46px minmax(0,1fr) 20px; align-items:center; gap:11px; min-width:0; min-height:86px; padding:14px; overflow:hidden; border:1px solid #dfe5ef; border-radius:16px; background:linear-gradient(145deg,#fff 0%,#f7f9fd 100%); cursor:pointer; transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease,background .18s ease; }
.reg-gender-card::before { position:absolute; inset:0 auto 0 0; width:3px; background:transparent; content:""; transition:background .18s ease; }
.reg-gender-card:hover { border-color:#c8a044; transform:translateY(-1px); box-shadow:0 8px 22px rgba(16,26,45,.07); }
.reg-gender-card.is-selected { border-color:#c99a2e; background:linear-gradient(145deg,#fffaf0 0%,#fff 100%); box-shadow:0 0 0 3px rgba(201,154,46,.14),0 8px 22px rgba(16,26,45,.04); }
.reg-gender-card.is-selected::before { background:#c99a2e; }
.reg-gender-card input { position:absolute; inset:0; width:100%; height:100%; margin:0; opacity:0; cursor:pointer; }
.reg-gender-card:focus-within { outline:3px solid rgba(201,154,46,.3); outline-offset:3px; }
.reg-gender-icon { position:relative; z-index:1; display:grid; place-items:center; width:46px; height:46px; border:1px solid #eadbb5; border-radius:14px; background:linear-gradient(145deg,#fff5d9,#f5e7bd); color:#8c6818; }
.reg-gender-card:nth-child(2) .reg-gender-icon { border-color:#d9e2f7; background:linear-gradient(145deg,#edf3ff,#dfe8fc); color:#405a91; }
.reg-gender-icon svg { width:25px; height:25px; fill:none; stroke:currentColor; stroke-width:1.65; stroke-linecap:round; stroke-linejoin:round; }
.reg-gender-copy { position:relative; z-index:1; display:grid; min-width:0; gap:4px; }
.reg-gender-copy strong { color:#17243b; font-size:14px; line-height:1.3; }
.reg-gender-copy small { color:#727d8e; font-size:11px; line-height:1.35; }
.reg-gender-check { position:relative; z-index:1; display:grid; place-items:center; width:20px; height:20px; border:1.5px solid #d2d9e5; border-radius:50%; color:transparent; font-size:12px; font-weight:800; }
.reg-gender-card.is-selected .reg-gender-check { border-color:#c99a2e; background:#c99a2e; color:#101a2d; }
@media (max-width:540px) { .reg-gender-options { grid-template-columns:minmax(0,1fr); gap:9px; } .reg-gender-card { min-height:76px; padding:12px; } }
@media (prefers-reduced-motion:reduce) { .reg-gender-card,.reg-gender-card::before { transition:none; } }


/* Readability pass: lesson/course text is learning material, not fine print. */
.lesson-body { color: #17243b; font-size: 17px; font-weight: 500; line-height: 1.95; }
.lesson-body p, .lesson-body li { font-size: inherit; font-weight: 500; line-height: inherit; }
.lesson-body h2, .lesson-body h3, .lesson-body h4 { color: #101a2d; font-weight: 750; line-height: 1.35; margin-top: 1.35em; }
.course-hero .sub, .course .course-content > p, .public-chapter > p, .two .panel > p, .two .panel li { color: #26344b; font-size: 16px; font-weight: 500; line-height: 1.85; }
.two .panel h3, .two .panel h4, .public-chapter summary strong { color: #101a2d; font-weight: 750; }
.lnv-ad-section { padding: 30px 0; margin: 20px auto; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lnv-ad-section-head { margin-bottom: 14px; }
.lnv-ad-section-head > span, .lnv-sponsored-label { display: inline-block; color: var(--gold-600); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.lnv-ad-section-head h2 { margin: 5px 0 0; font-size: clamp(22px,4vw,30px); }
.lnv-ad-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.lnv-sponsored-card, .lnv-adsense-unit { min-width: 0; overflow: hidden; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.lnv-sponsored-card { display: flex; flex-direction: column; gap: 10px; }
.lnv-sponsored-card img { width: 100%; max-height: 160px; object-fit: cover; border-radius: 9px; }
.lnv-sponsored-card h3 { margin: 8px 0 4px; font-size: 18px; font-weight: 750; }
.lnv-sponsored-card p { margin: 0 0 10px; color: var(--navy-700); font-size: 14px; line-height: 1.65; }
.lnv-sponsored-card a { color: var(--navy-950); font-weight: 750; text-decoration: underline; text-decoration-color: var(--gold-500); text-underline-offset: 4px; }
.lnv-adsense-unit { min-height: 120px; }
.lnv-social-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.lnv-social-links a { color: inherit; opacity: .8; font-size: 12px; }
@media(max-width:760px) { .lnv-ad-grid { grid-template-columns: minmax(0,1fr); } .lesson-body { font-size: 16.5px; } }


/* High-readability course material: designed for long reading sessions. */
.lesson-body { color:#15233b; font-size:18px; font-weight:550; line-height:1.95; overflow-wrap:anywhere; }
.lesson-body p,.lesson-body li { color:#24344e; font-size:inherit; font-weight:550; line-height:inherit; }
.lesson-body h2,.lesson-body h3,.lesson-body h4 { margin:1.45em 0 .55em; color:#101a2d; font-weight:850; line-height:1.3; }
.lesson-body strong,.lesson-body b { color:#101a2d; font-weight:850; }
.course-hero h1 { font-weight:850; letter-spacing:-.035em; }
.course-hero .sub { color:#26344b; font-weight:550; line-height:1.9; }
.public-chapter summary { color:#15233b; font-weight:800; }
.public-chapter .lessons a,.public-chapter .lesson-locked { color:#24344e; font-size:15px; font-weight:600; line-height:1.7; }
.lnv-task-social-link { padding:10px 12px; border:1px solid #dfd7f3; border-radius:10px; background:#faf7ff; }
.lnv-task-social-link a { color:#6043a3; font-weight:800; text-underline-offset:3px; }
.lnv-task-social-link small { display:block; margin-top:6px; color:#56647b; font-size:12px; line-height:1.65; }
@media(max-width:760px){.lesson-body{font-size:16.5px}.lesson-body h2{font-size:1.35em}.lesson-body h3{font-size:1.2em}}

/* Accessible social links in the public footer */
.lnv-social-links{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:10px;margin-inline-start:auto}
.lnv-social-link{display:inline-flex;align-items:center;gap:7px;min-height:42px;padding:8px 12px;border:1px solid rgba(255,255,255,.16);border-radius:999px;background:rgba(255,255,255,.06);color:inherit;text-decoration:none;font-weight:700;font-size:.84rem;transition:background .18s ease,border-color .18s ease,transform .18s ease}
.lnv-social-link:hover,.lnv-social-link:focus-visible{background:rgba(255,255,255,.13);border-color:rgba(224,185,91,.7);transform:translateY(-1px);outline:none}
.lnv-social-icon{flex:0 0 auto}
.lnv-social-link span{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lnv-task-cooldown{margin:0 0 16px;padding:12px 15px;border-radius:14px;background:#f3f0ff;border:1px solid #ded6ff;color:#342d62;font-size:.94rem}
.lnv-task-cooldown strong{font-variant-numeric:tabular-nums}
.lnv-task-course-tag{display:inline-flex;max-width:100%;margin:4px 0 10px;padding:6px 9px;border-radius:8px;background:#eef6ff;color:#234b81;font-size:.8rem;font-weight:700}
.lnv-task-challenge{margin:12px 0;padding:13px 14px;border:1px solid #e5e1f8;border-radius:12px;background:#f8f7ff}
.lnv-task-challenge strong{display:block;margin-bottom:5px;color:#352a76;font-size:.88rem}
.lnv-task-challenge p{margin:0;white-space:pre-line;font-weight:600;line-height:1.55}
.lnv-task-validation-note{display:block;margin-top:8px;color:#5b6474;line-height:1.45}
.lnv-daily-task button:disabled{opacity:.55;cursor:not-allowed;transform:none}
@media(max-width:650px){.lnv-social-links{justify-content:flex-start;margin:12px 0 0}.lnv-social-link{min-height:40px;padding:7px 10px}.lnv-social-link span{max-width:130px}}
