/* Speaklit website. Reading-friendly: Lexend, generous line height, warm off-white, short line lengths. */
[hidden] { display: none !important; }
:root {
  --ink: #241b33;
  --ink-soft: #5b5170;
  --paper: #fbf8f3;
  --card: #ffffff;
  --line: #e7e0f0;
  --night: #1a1226;
  --night-2: #241a36;
  --night-line: #3d2f5c;
  --violet: #8b5cf6;
  --violet-strong: #7c3aed;
  --violet-soft: #a78bfa;
  --lavender: #c4b5fd;
  --wash: #f1ebfe;
  --word: #e9d5ff;
  --ok: #157f4a;
  --bad: #b42318;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(36,27,51,.06), 0 8px 24px rgba(36,27,51,.08);
  --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Lexend", "Segoe UI", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--violet-strong); text-underline-offset: 3px; }
a:hover { color: var(--violet); }
:focus-visible { outline: 3px solid var(--violet-soft); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--violet-strong); margin-bottom: .8rem; }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 38em; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1;
  padding: 15px 24px; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .12s ease, background .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--violet-strong); color: #fff; }
.btn-primary:hover { background: #6d28d9; color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--violet-soft); color: var(--ink); }
.btn-light { background: #fff; color: var(--night); }
.btn-light:hover { background: var(--wash); color: var(--night); }
.btn-outline-light { color: #fff; border-color: rgba(255,255,255,.35); background: transparent; }
.btn-outline-light:hover { border-color: #fff; color: #fff; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(251,248,243,.88); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.home .site-header:not(.scrolled):not(.menu-open) { background: transparent; backdrop-filter: none; }
.home .site-header:not(.scrolled):not(.menu-open) .brand,
.home .site-header:not(.scrolled):not(.menu-open) .nav-links a,
.home .site-header:not(.scrolled):not(.menu-open) .nav-auth a.link,
.home .site-header:not(.scrolled):not(.menu-open) .menu-btn { color: #ece6f7; }
.home .site-header:not(.scrolled):not(.menu-open) .nav-links a:hover,
.home .site-header:not(.scrolled):not(.menu-open) .nav-auth a.link:hover { color: #fff; }
.nav { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.25rem; color: inherit; text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.nav-links { display: flex; gap: 26px; margin-left: 12px; }
.nav-links a, .nav-auth a.link { color: var(--ink-soft); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav-links a:hover, .nav-auth a.link:hover { color: var(--ink); }
.nav-auth { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.nav-auth .btn { padding: 11px 18px; font-size: .92rem; }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; padding: 8px; color: inherit; cursor: pointer; }
.menu-btn svg { width: 26px; height: 26px; }

/* ---------- hero ---------- */
.hero { background: radial-gradient(1200px 500px at 85% -10%, #3b2766 0%, transparent 60%), linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%); color: #f4f0fb; padding: 72px 0 96px; overflow: hidden; margin-top: -72px; padding-top: 144px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; }
.hero h1 .hl { background: linear-gradient(transparent 58%, rgba(167,139,250,.45) 58%); padding: 0 .08em; }
.hero .lead { color: #cfc5e6; }
.hero .eyebrow { color: var(--lavender); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-note { margin-top: 18px; font-size: .9rem; color: #a99dc6; }

/* reader demo */
.demo { background: #231a36; border: 1px solid var(--night-line); border-radius: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.45); overflow: hidden; }
.demo-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: #2b2042; border-bottom: 1px solid var(--night-line); font-size: .85rem; color: #b9acd6; }
.demo-bar img { width: 20px; height: 20px; border-radius: 5px; }
.demo-bar .status { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.demo-bar .dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74,222,128,.6); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(74,222,128,0); } 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); } }
.demo-text { padding: 28px 28px 22px; font-size: 1.22rem; line-height: 1.85; color: #e8e2f5; min-height: 230px; }
.demo-text .s { border-radius: 4px; transition: background .2s; }
.demo-text .s.on { background: rgba(167,139,250,.2); }
.demo-text .w { border-radius: 4px; padding: 1px 0; transition: background .12s, color .12s; }
.demo-text .w.on { background: var(--word); color: #231a36; box-shadow: 0 0 0 3px var(--word); }
.demo-controls { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--night-line); background: #2b2042; }
.demo-controls .tile { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: #3b2d5c; color: #f1ecfb; font-size: .8rem; font-weight: 700; border: 1px solid #5a4787; }
.demo-controls .tile.primary { background: var(--violet-soft); border-color: var(--violet-soft); color: #1a1226; }
.wave { display: flex; gap: 3px; align-items: center; height: 24px; margin-left: 6px; }
.wave i { width: 3px; border-radius: 2px; background: var(--violet-soft); height: 30%; animation: wave 1s ease-in-out infinite; }
.wave i:nth-child(2) { animation-delay: .1s } .wave i:nth-child(3) { animation-delay: .2s } .wave i:nth-child(4) { animation-delay: .3s } .wave i:nth-child(5) { animation-delay: .4s } .wave i:nth-child(6) { animation-delay: .5s } .wave i:nth-child(7) { animation-delay: .6s }
@keyframes wave { 50% { height: 100%; } }
.demo-controls .speed { margin-left: auto; font-size: .82rem; color: #b9acd6; font-variant-numeric: tabular-nums; }
.paused .wave i, .paused .dot { animation-play-state: paused; }

/* ---------- sections ---------- */
section { padding: 96px 0; }
.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); position: relative; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--wash); color: var(--violet-strong); font-weight: 700; margin-bottom: 18px; }
.step p { color: var(--ink-soft); margin: 0; }
kbd { font-family: inherit; font-size: .85em; font-weight: 600; background: var(--wash); border: 1px solid #ddd0fb; border-bottom-width: 2px; border-radius: 6px; padding: 1px 7px; color: var(--ink); white-space: nowrap; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.feature .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--wash); color: var(--violet-strong); display: grid; place-items: center; margin-bottom: 18px; }
.feature .ico svg { width: 24px; height: 24px; }
.feature p { color: var(--ink-soft); margin: 0; font-size: 1rem; }

.alt { background: #f4eefc; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 6px; }
.chip { background: #fff; border: 1px solid #ddd0fb; border-radius: 999px; padding: 8px 15px; font-size: .92rem; font-weight: 500; }
.explain-card { background: var(--card); border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.explain-card .q { padding: 22px 24px; border-bottom: 1px solid var(--line); color: var(--ink-soft); font-size: .98rem; }
.explain-card .q b { color: var(--ink); display: block; margin-bottom: 6px; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.explain-card .a { padding: 22px 24px; background: #fdfbff; }
.explain-card .a b { display: inline-block; margin-bottom: 8px; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--violet-strong); }
.explain-card ol { margin: 0; padding-left: 1.2em; }
.explain-card li { margin-bottom: .35em; }

.who { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.who-card { padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); }
.who-card h3 { margin-bottom: .35em; }
.who-card p { margin: 0; color: var(--ink-soft); font-size: .98rem; }

.band { background: linear-gradient(135deg, var(--night) 0%, #2d1d4f 100%); color: #f4f0fb; border-radius: 24px; padding: 56px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.band h2 { color: #fff; }
.band p { color: #cfc5e6; margin: 0; }
.band .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

.faq { max-width: 780px; margin: 0 auto; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 20px 24px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--violet-strong); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 24px 20px; margin: 0; color: var(--ink-soft); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; color: var(--ink-soft); font-size: .92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; }
.site-footer nav { display: flex; gap: 22px; margin-left: auto; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* ---------- auth + account ---------- */
.auth-page { min-height: calc(100vh - 72px); display: grid; place-items: center; padding: 48px 20px 80px; }
.auth-card { width: 100%; max-width: 440px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 40px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 1.9rem; }
.auth-card .sub { color: var(--ink-soft); margin-bottom: 28px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 7px; }
.field input, .field select {
  width: 100%; font: inherit; font-size: 1rem; padding: 13px 15px; border-radius: 10px;
  border: 1.5px solid #d9d1e6; background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(139,92,246,.18); }
.field.invalid input, .field.invalid select { border-color: var(--bad); }
.field .hint { font-size: .85rem; color: var(--ink-soft); margin-top: 6px; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 76px; }
.pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; font: inherit; font-size: .85rem; font-weight: 600; color: var(--violet-strong); cursor: pointer; padding: 6px 8px; }
.alert { border-radius: 10px; padding: 12px 15px; font-size: .95rem; margin-bottom: 18px; display: none; }
.alert.show { display: block; }
.alert.error { background: #fdecea; color: var(--bad); border: 1px solid #f6c9c4; }
.alert.success { background: #e8f6ee; color: var(--ok); border: 1px solid #bfe5cf; }
.alert.info { background: #f1edfd; color: #3b2a6b; border: 1px solid #d9cffb; }
.auth-foot { margin-top: 22px; text-align: center; color: var(--ink-soft); font-size: .95rem; }
.roles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.roles label { display: flex; align-items: center; gap: 9px; border: 1.5px solid #d9d1e6; border-radius: 10px; padding: 10px 12px; font-weight: 500; font-size: .95rem; cursor: pointer; margin: 0; }
.roles input { accent-color: var(--violet-strong); width: 18px; height: 18px; margin: 0; }
.roles label:has(input:checked) { border-color: var(--violet); background: var(--wash); }

.account { padding: 56px 0 96px; }
.account-head { display: flex; align-items: center; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; }
.avatar { width: 64px; height: 64px; border-radius: 18px; background: linear-gradient(135deg, var(--violet-strong), var(--violet-soft)); color: #fff; display: grid; place-items: center; font-size: 1.6rem; font-weight: 700; }
.account-head h1 { font-size: 2rem; margin: 0; }
.account-head p { margin: 0; color: var(--ink-soft); }
.account-head .btn { margin-left: auto; }
.grid-2 { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: start; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); margin-bottom: 24px; }
.panel h2 { font-size: 1.3rem; }
.panel .muted { color: var(--ink-soft); font-size: .95rem; }
.download-panel { background: linear-gradient(135deg, var(--night) 0%, #2d1d4f 100%); color: #f4f0fb; border: 0; }
.download-panel h2 { color: #fff; }
.download-panel p { color: #cfc5e6; }
.dl-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.tag { display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: rgba(167,139,250,.2); color: var(--lavender); margin-bottom: 14px; }
dl.facts { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; margin: 0; }
dl.facts dt { color: var(--ink-soft); font-size: .95rem; }
dl.facts dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }

/* ---------- schools page ---------- */
.page-hero { padding: 72px 0 40px; }
.list-check { list-style: none; padding: 0; margin: 0; }
.list-check li { position: relative; padding-left: 34px; margin-bottom: 14px; }
.list-check li::before { content: ""; position: absolute; left: 0; top: .35em; width: 20px; height: 20px; border-radius: 50%; background: var(--wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%237c3aed' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 34px; box-shadow: var(--shadow); }
.contact-card .email { font-size: 1.3rem; font-weight: 600; }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 40px 20px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .split, .grid-2, .band { grid-template-columns: 1fr; }
  .band .actions { justify-content: flex-start; }
  .features, .steps { grid-template-columns: 1fr 1fr; }
  .who { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .wrap { padding: 0 16px; }
  section { padding: 64px 0; }
  .nav-links, .nav-auth { display: none; }
  .menu-btn { display: block; }
  .nav.open { flex-wrap: wrap; height: auto; padding: 14px 0 18px; }
  .nav.open .nav-links, .nav.open .nav-auth { display: flex; flex-direction: column; align-items: flex-start; width: 100%; margin: 6px 0 0; gap: 14px; }
  .nav.open .nav-auth .btn { width: 100%; }
  .features, .steps, .who { grid-template-columns: 1fr; }
  .band { padding: 36px 24px; }
  .auth-card { padding: 28px 22px; }
  .demo-text { font-size: 1.05rem; padding: 22px; }
  .site-footer nav { margin-left: 0; flex-wrap: wrap; gap: 12px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.role-set { border: 0; padding: 0; margin: 0 0 22px; }
.role-set legend { font-weight: 600; font-size: .95rem; margin-bottom: 7px; padding: 0; }
.tight-top { padding-top: 24px; }
.split.top { align-items: start; }
.flush { margin: 0; }
.nf-lead { margin: 0 auto 24px; }

/* ---------- AI: hero chat strip ---------- */
.demo-chat { padding: 16px 18px 18px; border-top: 1px solid var(--night-line); background: #1f1730; display: flex; flex-direction: column; gap: 8px; }
.bubble { max-width: 85%; padding: 10px 14px; border-radius: 16px; font-size: .92rem; line-height: 1.5; }
.bubble.me { align-self: flex-end; background: var(--violet-strong); color: #fff; border-bottom-right-radius: 5px; }
.bubble.ai { align-self: flex-start; background: #33274d; color: #ece6f7; border-bottom-left-radius: 5px; }
.chat-input { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; border: 1px solid #4a3a6e; border-radius: 999px; padding: 7px 7px 7px 16px; color: #9b8fbb; font-size: .9rem; }
.chat-input .send { width: 30px; height: 30px; border-radius: 50%; background: var(--violet-soft); color: #1a1226; display: grid; place-items: center; font-weight: 700; }

/* ---------- AI Explain showcase ---------- */
.explainer { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.ex-source, .ex-result { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: var(--shadow); }
.ex-source p { color: var(--ink-soft); font-size: .95rem; line-height: 1.75; margin: 0; }
.ex-label { display: flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 14px; }
.count { letter-spacing: 0; text-transform: none; font-weight: 600; font-size: .8rem; padding: 3px 10px; border-radius: 999px; background: #f1edf6; color: var(--ink-soft); }
.count.good { background: #e8f6ee; color: var(--ok); }
.ex-result { display: flex; flex-direction: column; background: linear-gradient(180deg, #fdfbff, #fff); border-color: #ddd0fb; }
.ex-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; background: var(--wash); border-radius: 12px; margin-bottom: 22px; }
.ex-tabs button { flex: 1 1 auto; font: inherit; font-size: .9rem; font-weight: 600; border: 0; background: transparent; color: var(--ink-soft); padding: 9px 12px; border-radius: 9px; cursor: pointer; white-space: nowrap; }
.ex-tabs button:hover { color: var(--ink); }
.ex-tabs button[aria-selected="true"] { background: #fff; color: var(--violet-strong); box-shadow: 0 1px 3px rgba(36,27,51,.12); }
.ex-panel { flex: 1; }
.ex-panel .ex-label { color: var(--violet-strong); }
.ex-panel p { font-size: 1.1rem; margin: 0; }
.ex-panel ol { margin: 0; padding-left: 1.3em; }
.ex-panel li { margin-bottom: .45em; }
dl.terms { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; font-size: .98rem; }
dl.terms dt { font-weight: 600; }
dl.terms dd { margin: 0; color: var(--ink-soft); }
.ex-foot { display: flex; align-items: center; gap: 10px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--ink-soft); }
.wave.small { height: 16px; margin: 0; }
.wave.small i { width: 3px; }

/* ---------- chat showcase ---------- */
.chat-demo { background: var(--night); border-radius: 20px; padding: 0 0 18px; box-shadow: 0 30px 70px rgba(26,18,38,.3); overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 14px 20px; background: #2b2042; color: #d8cff0; font-size: .9rem; font-weight: 600; border-bottom: 1px solid var(--night-line); }
.chat-head img { width: 22px; height: 22px; border-radius: 6px; }
.chat-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 20px 6px; }
.chat-body .bubble { font-size: .95rem; }
.bubble.speaking { display: flex; align-items: center; gap: 10px; color: var(--lavender); }
.chat-demo .chat-input { margin: 8px 20px 0; }

@media (max-width: 960px) { .explainer { grid-template-columns: 1fr; } }

/* ---------- pricing + plan ---------- */
.pricing { padding: 56px 0 96px; }
.pricing-head { text-align: center; }
.pricing-head .lead { margin: 0 auto; }
.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); gap: 28px; justify-content: center; }
.price-card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.price-card.featured { border: 2px solid var(--violet-strong); box-shadow: 0 20px 50px rgba(124, 58, 237, .18); }
.price-card .tag { position: absolute; top: -13px; left: 30px; }
.price-card h2 { font-size: 1.3rem; margin-bottom: .3em; }
.price { margin: 0 0 22px; color: var(--ink-soft); }
.price b { font-size: 2.6rem; color: var(--ink); letter-spacing: -.02em; }
.price-list { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.price-list li { position: relative; padding-left: 28px; }
.price-list li::before { content: ""; position: absolute; left: 0; top: .3em; width: 16px; height: 16px; border-radius: 50%; background: var(--violet-strong); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8'/%3E%3C/svg%3E"); }
.price-list li::after { content: ""; position: absolute; left: 5px; top: calc(.3em + 4px); width: 4px; height: 7px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.price-note { margin: 12px 0 0; text-align: center; font-size: .85rem; color: var(--ink-soft); }
.plan-panel .tag { margin-bottom: 10px; }
.plan-panel .btn + .btn { margin-left: 10px; }
.plan-panel.is-premium { border: 2px solid var(--violet-strong); }
@media (max-width: 760px) { .price-grid { grid-template-columns: 1fr; } }
.price-card .tag { background: var(--violet-strong); color: #fff; }
.plan-panel .tag { background: rgba(124, 58, 237, .12); color: var(--violet-strong); }
.plan-panel.is-premium .tag { background: var(--violet-strong); color: #fff; }

/* ---------- homepage hero: a working copy of the app ---------- */
.hero-grid { grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: 40px; }
.hero .wrap.hero-grid { max-width: 1260px; }
.hero-try { position: relative; }
.hero-try::before { content: ""; position: absolute; inset: -30px -20px; z-index: 0; border-radius: 40px; background: radial-gradient(60% 55% at 45% 45%, rgba(167, 139, 250, .22), transparent 70%); pointer-events: none; }
.hero-try .slui { position: relative; z-index: 1; }
@media (max-width: 1000px) { .hero-grid { grid-template-columns: 1fr; } }

.hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
.hero-try .appdemo { position: relative; z-index: 1; }

/* ---------- forgot password link, email confirmation banner, notice pages ---------- */
.forgot-link { margin: -6px 0 16px; text-align: right; font-size: .9rem; }
.verify-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin: 0 0 24px; padding: 14px 18px; border-radius: 14px; background: #fff7e6; border: 1px solid #f5d79e; color: #6b4a06; }
.verify-banner p { margin: 0; }
.notice-card .sub { margin-bottom: 24px; }

/* ---------- access code page (private preview) ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.gate-page { min-height: 100vh; margin: 0; color: #f4f0fb; background: radial-gradient(900px 500px at 75% -10%, #3b2766 0%, transparent 60%), radial-gradient(700px 420px at 0% 110%, rgba(124, 58, 237, .22), transparent 70%), linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%); }
.gate { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.gate-card { width: 100%; max-width: 400px; text-align: center; padding: 40px 32px 30px; border-radius: 22px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(196, 181, 253, .18); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); backdrop-filter: blur(6px); }
.gate-logo { display: block; margin: 0 auto 14px; filter: drop-shadow(0 6px 22px rgba(167, 139, 250, .55)); }
.gate-card h1 { color: #fff; font-size: 2rem; margin: 0 0 6px; }
.gate-sub { margin: 0 0 22px; color: #cfc5e6; }
.gate-form { display: grid; gap: 12px; }
.gate-form input { width: 100%; box-sizing: border-box; font: inherit; font-size: 1.15rem; letter-spacing: .14em; text-align: center; text-transform: uppercase; padding: 13px 14px; border-radius: 12px; border: 1.5px solid rgba(196, 181, 253, .35); background: rgba(0, 0, 0, .25); color: #fff; }
.gate-form input::placeholder { letter-spacing: .04em; text-transform: none; color: #8f84ab; }
.gate-form input:focus { outline: none; border-color: #a78bfa; box-shadow: 0 0 0 4px rgba(167, 139, 250, .25); }
.gate-card .alert { text-align: left; }
.gate-foot { margin: 22px 0 0; font-size: .85rem; color: #a99dc6; }
.gate-foot a { color: #c4b5fd; }
.ext-card { max-width: 520px; }
.ext-steps { margin: 0 0 18px; padding-left: 1.2em; line-height: 1.7; }
.ext-steps li { margin-bottom: 6px; }
.ext-tip { font-size: .88rem; color: var(--ink-soft); margin: 14px 0; }
.ext-card kbd { font: inherit; font-size: .8rem; padding: 1px 5px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; background: #fff; }

/* ---------- /start: set up Speaklit for Chrome ---------- */
.start { padding: 64px 0 88px; }
.start-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.start h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: .3em; }
.start .lead { margin-bottom: 26px; }
.ok-eye { color: var(--ok); }
.start-steps { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 14px; }
.start-steps li { display: flex; gap: 14px; align-items: flex-start; font-size: 1.05rem; line-height: 1.5; }
.start-steps li > span { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--wash); color: var(--violet-strong); font-weight: 700; font-size: .9rem; }
.start-steps.small li { font-size: .95rem; }
.start-steps.small li > span { width: 26px; height: 26px; font-size: .8rem; }
.start-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.start-note { font-size: .9rem; color: var(--ink-soft); max-width: 36em; }
.start kbd { font: inherit; font-size: .8em; padding: 1px 6px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; background: #fff; }
/* the picture: a document in Chrome with Speaklit floating over it */
.start-art { position: relative; }
.sa-window { position: relative; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 2px 6px rgba(36, 27, 51, .08), 0 30px 70px rgba(36, 27, 51, .18); border: 1px solid var(--line); }
.sa-chrome { display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; background: #efeaf6; }
.sa-chrome i { width: 10px; height: 10px; border-radius: 50%; background: #d5cce4; }
.sa-chrome span { margin-left: 10px; flex: 1; font-size: .74rem; color: #7a7090; background: #fff; border-radius: 7px; padding: 4px 10px; }
.sa-page { padding: 34px 40px 46px; min-height: 300px; }
.sa-h { width: 55%; height: 18px; border-radius: 6px; background: #e3dcef; margin-bottom: 22px; }
.sa-page p { margin: 0 0 18px; font-size: 1.02rem; line-height: 1.75; color: #3a3150; }
.sa-sent { background: rgba(167, 139, 250, .25); color: inherit; border-radius: 3px; }
.sa-word { background: #f59e0b; color: #241b33; border-radius: 3px; padding: 0 2px; font-weight: 500; }
.sa-line { height: 10px; border-radius: 5px; background: #ece7f4; margin: 12px 0; }
.sa-line.short { width: 62%; }
.sa-bar { position: absolute; right: 22px; top: 62px; display: grid; grid-template-columns: repeat(3, 44px); gap: 6px; padding: 8px; border-radius: 12px; background: #2e2347; border: 1px solid #5a4787; box-shadow: 0 14px 34px rgba(36, 27, 51, .35); }
.sa-tile { display: grid; place-items: center; height: 44px; border-radius: 9px; font-weight: 700; font-size: .9rem; color: #f1ecfb; background: #3b2d5c; border: 1px solid #5a4787; }
.sa-tile.on { background: #a78bfa; color: #1e1530; border-color: #c4b5fd; }
.sa-tile.ghost { border-style: dashed; color: #b9acd6; }
.sa-status { grid-column: 1 / -1; text-align: center; font-size: .68rem; color: #d9cff0; border: 1px solid #5a4787; border-radius: 6px; padding: 3px; }
@media (max-width: 900px) { .start-grid { grid-template-columns: 1fr; } .start-art { order: -1; } }
@media (max-width: 600px) { .start-art { display: none; } } /* phones: the message first, no picture to scroll past */

/* ---------- privacy / terms ---------- */
.legal { padding: 56px 0 80px; }
.legal-wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.6rem); margin-bottom: .2em; }
.legal-date { color: var(--ink-soft); margin: 0 0 24px; font-size: .9rem; }
.legal h2 { font-size: 1.25rem; margin: 30px 0 8px; }
.legal p, .legal li { line-height: 1.7; color: #3a3150; }
.legal ul { padding-left: 1.2em; }
.install-steps { display: grid; gap: 18px; margin: 4px 0 22px; }
.istep { display: flex; gap: 14px; align-items: flex-start; font-size: 1.02rem; line-height: 1.55; }
.istep > span { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--violet-strong); color: #fff; font-weight: 700; font-size: .9rem; margin-top: 2px; }
.istep img { display: block; width: 100%; max-width: 560px; height: auto; margin-top: 10px; border-radius: 10px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.istep .start-actions { margin: 10px 0 0; }
.copy-addr { font: inherit; font-size: .9rem; font-family: ui-monospace, Menlo, Consolas, monospace; padding: 3px 9px; border-radius: 7px; border: 1px dashed var(--violet-soft); background: var(--wash); color: var(--violet-strong); cursor: pointer; }
.linkish { font: inherit; color: var(--violet-strong); background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
.start-store { margin-bottom: 22px; font-size: 1.1rem; padding: 16px 28px; }

.price-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 1040px; }
@media (max-width: 900px) { .price-grid.three { grid-template-columns: 1fr; } }
.switch-box { max-width: 640px; margin: 0 auto 28px; padding: 18px 20px; border-radius: 16px; background: var(--wash); border: 1px solid var(--lavender); display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.switch-box p { flex: 1 1 100%; margin: 0; }
.center { text-align: center; }

/* launch deal on a plan: crossed-out after-launch price, warm tag, short note */
.price-card.deal .deal-tag { background: linear-gradient(90deg, #f97316, #ec4899); color: #fff; box-shadow: 0 6px 18px rgba(236, 72, 153, .3); }
.price .was { font-size: 1.25rem; font-weight: 600; color: var(--ink-soft); text-decoration: line-through; text-decoration-color: #ec4899; text-decoration-thickness: 2px; margin-right: 6px; vertical-align: 6px; }
.deal-note { margin: -12px 0 18px; font-size: .86rem; line-height: 1.45; color: #be185d; background: #fdf2f8; border: 1px solid #fbcfe8; border-radius: 10px; padding: 8px 11px; }
/* pricing page: link to the school license */
.school-link { margin: 26px auto 0; }
.school-link a { display: inline-block; padding: 14px 22px; border-radius: 14px; background: var(--night); color: #ece6fa; text-decoration: none; box-shadow: var(--shadow); }
.school-link a b:last-of-type { color: #fbbf24; }
.school-link a:hover { color: #fff; background: #241a36; }
/* referral code box (ref-code.js): sign-up form and pricing */
.refc { margin: 4px 0 16px; }
.refc-open, .refc-change { background: none; border: 0; padding: 0; color: var(--violet-strong); font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.refc-label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; } .refc-label span { color: var(--ink-soft); font-weight: 400; }
.refc-in { display: flex; gap: 8px; } .refc-in input { flex: 1; min-width: 0; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; text-transform: lowercase; }
.refc-in .btn { height: 44px; padding: 0 16px; }
.refc-msg { margin: 8px 0 0; font-size: .92rem; } .refc-msg.ok { color: #15803d; font-weight: 600; } .refc-msg.bad { color: #b91c1c; }
.pr-refc { max-width: 440px; margin: 18px auto 0; text-align: center; } .pr-refc .refc-in input { text-align: left; } .pr-refc .refc-label { text-align: left; }
.refc-perk { color: #15803d; margin-left: 4px; text-decoration: none; display: inline-block; }

/* header: menu words never break onto two lines; same spacing as always; ☰ menu below 980px (2026-11-11) */
.nav-links { align-items: center; }
.nav-links a, .nav-auth a, .nav-auth .btn { white-space: nowrap; }
@media (max-width: 980px) {
  .nav-links, .nav-auth { display: none; }
  .menu-btn { display: block; }
  /* open menu: keep the side gutter, and keep ☰ on the top row next to the logo */
  .nav.open { flex-wrap: wrap; height: auto; padding: 14px 24px 18px; row-gap: 8px; }
  .nav.open .nav-links, .nav.open .nav-auth { order: 2; }
  .nav.open .nav-links, .nav.open .nav-auth { display: flex; flex-direction: column; align-items: flex-start; width: 100%; margin: 6px 0 0; gap: 14px; }
  .nav.open .nav-auth .btn { width: 100%; }
}
@media (max-width: 760px) { .nav.open { padding: 14px 16px 18px; } }
/* header: "Earn 30%" (the affiliate program), a warm accent next to Pricing */
.nav-links a.nav-earn { color: #b45309; font-weight: 600; }
.nav-links a.nav-earn:hover { color: #92400e; }
.home .site-header:not(.scrolled):not(.menu-open) .nav-links a.nav-earn { color: #fcd34d; }
.home .site-header:not(.scrolled):not(.menu-open) .nav-links a.nav-earn:hover { color: #fde68a; }
