/* ============================================================
   AI Flashcard Maker — website styles
   Tokens mirror the extension design system (Inter, #3366FF)
   ============================================================ */

:root {
  --brand-50:  #EEF4FF;
  --brand-100: #D9E5FF;
  --brand-200: #BBCFFF;
  --brand-300: #8DB0FF;
  --brand-400: #5985FF;
  --brand-500: #3366FF;
  --brand-600: #2952CC;
  --brand-700: #1F3D99;

  --bg:        #FFFFFF;
  --bg-2:      #F9FAFB;
  --bg-3:      #F3F4F6;
  --elevated:  #FFFFFF;
  --border:    #E5E7EB;
  --text-1:    #111827;
  --text-2:    #374151;
  --text-3:    #6B7280;
  --muted:     #6B7280;
  --accent:    #3366FF;
  --accent-strong: #2952CC;
  --accent-text: #1F3D99;
  --accent-bg: #EEF4FF;

  --success:   #10B981;
  --success-bg:#ECFDF5;
  --success-text:#047857;
  --warning:   #F59E0B;
  --warning-bg:#FFFBEB;
  --warning-text:#92400E;
  --danger:    #EF4444;
  --purple-text:#6D28D9;
  --purple-bg: #F5F3FF;

  --shadow-sm: 0 1px 2px rgb(17 24 39 / .05);
  --shadow-md: 0 4px 12px -2px rgb(17 24 39 / .08);
  --shadow-lg: 0 10px 30px -6px rgb(17 24 39 / .14);

  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
}

html[data-theme="dark"] {
  --bg:        #0F1117;
  --bg-2:      #1A1D27;
  --bg-3:      #252836;
  --elevated:  #2A2D3A;
  --border:    #32364A;
  --text-1:    #F1F2F6;
  --text-2:    #B0B4C0;
  --text-3:    #A2A8BB;
  --muted:     #8A90A6;
  --accent:    #3366FF;
  --accent-strong: #5985FF;
  --accent-text: #8DB0FF;
  --accent-bg: #1A2547;

  --success-bg: rgb(16 185 129 / .12);
  --success-text: #34D399;
  --warning-bg: rgb(245 158 11 / .12);
  --warning-text: #FBBF24;
  --purple-bg: rgb(139 92 246 / .14);
  --purple-text: #A78BFA;

  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: 0 10px 30px -6px rgb(0 0 0 / .5);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background .2s ease, color .2s ease;
}

h1, h2, h3, h4 { color: var(--text-1); line-height: 1.25; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--accent-strong); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
code, .mono { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; }

code {
  font-size: .85em;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 6px;
  color: var(--text-1);
  white-space: nowrap;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-row { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text-1); font-weight: 700; font-size: 15px; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px;
  display: block; flex-shrink: 0;
}

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav-links a {
  color: var(--text-3); font-size: 14px; font-weight: 500;
  padding: 7px 12px; border-radius: var(--radius-md);
}
.nav-links a:hover { color: var(--text-1); background: var(--bg-3); text-decoration: none; }
.nav-links a.active { color: var(--accent-strong); background: var(--accent-bg); }

.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  width: 36px; height: 36px; border-radius: var(--radius-md);
  border: 1px solid var(--border); background: transparent;
  color: var(--text-3); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.theme-toggle:hover { background: var(--bg-3); color: var(--text-1); }
.theme-toggle svg { width: 17px; height: 17px; }
html[data-theme="dark"] .icon-moon { display: none; }
html:not([data-theme="dark"]) .icon-sun { display: none; }

.nav-burger { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 14px; font-weight: 500; font-family: inherit;
  border-radius: var(--radius-md);
  padding: 10px 16px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--brand-500); color: #fff; }
.btn-primary:hover { background: var(--brand-600); }
.btn-secondary { background: transparent; border-color: var(--border); color: var(--text-1); }
.btn-secondary:hover { background: var(--bg-2); }
.btn-lg { padding: 13px 22px; font-size: 15px; border-radius: 10px; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-tight { padding: 64px 0; }
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent-strong);
  margin-bottom: 12px;
}
.section-title { font-size: 32px; font-weight: 700; letter-spacing: -.02em; }
.section-sub { font-size: 16px; color: var(--text-3); margin-top: 12px; max-width: 560px; }
.section-head { margin-bottom: 48px; }
.section-head.center { text-align: center; }
.section-head.center .section-sub { margin-left: auto; margin-right: auto; }

.divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ---------- Cards / grids ---------- */
.card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
}
.card h3, .card h2 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.card p { font-size: 14px; color: var(--text-3); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--accent-bg); color: var(--accent-strong);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.feature-icon svg { width: 19px; height: 19px; }

/* ---------- Badges & chips ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 500;
  padding: 2px 9px; border-radius: 999px;
}
.badge-brand { background: var(--accent-bg); color: var(--accent-text); }
.badge-green { background: var(--success-bg); color: var(--success-text); }
.badge-purple { background: var(--purple-bg); color: var(--purple-text); }
.badge-amber { background: var(--warning-bg); color: var(--warning-text); }
.badge-gray { background: var(--bg-3); color: var(--text-2); }

.chip {
  display: inline-flex; align-items: center;
  font-size: 13.5px; font-weight: 500; color: var(--text-2);
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 999px; padding: 7px 15px;
}

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
}
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px;
  font-size: 15px; font-weight: 600; color: var(--text-1);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; margin-left: auto; flex-shrink: 0;
  width: 8px; height: 8px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform .15s;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq .faq-body { padding: 0 20px 18px; font-size: 14px; color: var(--text-3); line-height: 1.65; }
.faq .faq-body a { font-weight: 500; }

/* ---------- Steps ---------- */
.step-num {
  width: 28px; height: 28px; border-radius: 999px; flex-shrink: 0;
  background: var(--brand-500); color: #fff;
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Callouts ---------- */
.callout {
  display: flex; gap: 12px;
  padding: 14px 16px; border-radius: var(--radius-lg);
  font-size: 14px; line-height: 1.55;
  border: 1px solid;
}
.callout svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 2px; }
.callout-info { background: var(--accent-bg); border-color: color-mix(in srgb, var(--accent) 25%, transparent); color: var(--accent-text); }
.callout-warn { background: var(--warning-bg); border-color: color-mix(in srgb, var(--warning) 35%, transparent); color: var(--warning-text); }
.callout strong { font-weight: 600; }

/* ---------- Code block ---------- */
.codeblock {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 13px; color: var(--text-1);
  overflow-x: auto; white-space: pre;
}
.codeblock-label { font-size: 11px; color: var(--muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px;
  padding: 56px 0 40px;
}
.footer-brand p { font-size: 13.5px; color: var(--text-3); margin-top: 12px; max-width: 300px; }
.footer-col h4 { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--text-3); margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { color: var(--text-2); font-size: 14px; }
.footer-col a:hover { color: var(--accent-strong); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0; font-size: 13px; color: var(--muted);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}

/* ============================================================
   Landing v3 — light editorial hero, exact product mockups
   ============================================================ */

.hero-lit {
  position: relative;
  padding: 84px 0 100px;
  background:
    radial-gradient(56% 46% at 50% 96%, var(--accent-bg) 0%, transparent 100%),
    var(--bg);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.hero-lit h1 {
  font-size: clamp(38px, 5vw, 62px);
  letter-spacing: -.033em;
  line-height: 1.1;
  max-width: 840px;
  margin: 0 auto;
}
.hero-lit .hero-sub {
  font-size: 17.5px; color: var(--text-3);
  max-width: 570px; margin: 22px auto 0;
}
.hero-lit .hero-ctas { justify-content: center; }
.hero-lit .hero-note { justify-content: center; }

/* The headline demonstrates the product: amber selection + trigger */
.hl-word {
  background: #FEF3C7; border-radius: 6px; padding: 0 .09em;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
  color: var(--text-1);
}
html[data-theme="dark"] .hl-word { background: #4A3A12; }
.hl-trigger {
  display: inline-flex; align-items: center; justify-content: center;
  width: .8em; height: .8em; border-radius: .17em;
  background: var(--brand-500);
  box-shadow: 0 .06em .16em rgb(16 24 64 / .3), 0 0 0 1px rgb(0 0 0 / .05);
  vertical-align: -.06em; margin-left: .16em;
}
.hl-trigger svg { width: 76%; height: 76%; }

/* Demo stage under the headline */
.hero-stage {
  position: relative;
  max-width: 660px;
  margin: 60px auto 0;
  text-align: left;
}
.hero-stage .mock-popover { width: min(310px, 88%); }
.hero-stage .pop-word { font-size: 17px; }
.hero-stage .pop-trans { font-size: 18px; }
.hero-stage .mock-page { box-shadow: 0 30px 70px -18px rgb(16 24 64 / .28); }
html[data-theme="dark"] .hero-stage .mock-page { box-shadow: 0 30px 70px -14px rgb(0 0 0 / .6); }

/* Article styling inside the demo — a real page being read */
.article-prose { padding: 28px 36px 34px; }
.article-kicker { font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #9CA3AF; }
.article-title { font-family: Lora, Georgia, serif; font-size: 25px; font-weight: 600; color: #111827; letter-spacing: -.01em; margin: 5px 0 2px; }
.article-byline { font-size: 12.5px; color: #9CA3AF; margin-bottom: 16px; }
.article-prose .body-text { font-family: Lora, Georgia, serif; font-size: 16.5px; line-height: 1.85; color: #374151; margin: 0; }

/* Animated hero demo (9s loop) */
.anim9 { animation-duration: 9s; animation-iteration-count: infinite; animation-timing-function: ease; animation-fill-mode: both; }
@keyframes heroHl {
  0%, 4% { background: transparent; }
  9%, 93% { background: #FEF3C7; }
  98%, 100% { background: transparent; }
}
.anim-hl { background: #FEF3C7; border-radius: 2px; padding: 0 2px; color: #111827; font-weight: 500; }
@keyframes heroTrigger {
  0%, 10% { opacity: 0; transform: scale(.3); }
  14%, 92% { opacity: 1; transform: scale(1); }
  97%, 100% { opacity: 0; transform: scale(.6); }
}
.anim-trigger { transform-origin: center; }
@keyframes heroPopover {
  0%, 17% { opacity: 0; transform: translateY(10px) scale(.96); }
  23%, 92% { opacity: 1; transform: translateY(0) scale(1); }
  97%, 100% { opacity: 0; transform: translateY(4px) scale(.98); }
}
.anim-popover { transform-origin: top left; }
/* CTA label ↔ saved state crossfade (stacked) */
.pop-swap { position: relative; margin: 0 16px 16px; height: 42px; }
.mock-popover .pop-swap .pop-cta, .mock-popover .pop-swap .pop-saved { position: absolute; inset: 0; margin: 0; width: 100%; height: 100%; padding: 0; }
.pop-saved {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  background: #ECFDF5; color: #059669; border: 1px solid #A7F3D0;
  font-size: 13.5px; font-weight: 500; border-radius: 8px;
}
.pop-saved svg { width: 15px; height: 15px; }
@keyframes heroCta { 0%, 23% { opacity: 0; } 26%, 55% { opacity: 1; } 59%, 100% { opacity: 0; } }
@keyframes heroSaved { 0%, 56% { opacity: 0; } 60%, 92% { opacity: 1; } 97%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .anim9 { animation: none !important; }
  .pop-swap .pop-saved { opacity: 0; }
}

/* How it works v2 */
.how-card .how-lead { font-size: 14px; color: var(--text-3); margin-top: -6px; }

/* Mini export screen mock */
.mock-export { width: 250px; background: #fff; border: 1px solid #E5E7EB; border-radius: 14px; box-shadow: var(--shadow-md); overflow: hidden; }
.mock-export .ex-head { padding: 13px 16px 9px; }
.mock-export .ex-title { font-size: 13.5px; font-weight: 700; color: #111827; }
.mock-export .ex-sub { font-size: 10.5px; color: #9CA3AF; margin-top: 1px; }
.mock-radio { display: flex; align-items: flex-start; gap: 9px; border: 1px solid #E5E7EB; border-radius: 10px; padding: 9px 11px; margin: 0 12px 8px; }
.mock-radio.sel { border: 2px solid #3366FF; background: rgb(238 244 255 / .35); padding: 8px 10px; }
.mock-radio .r-dot { width: 13px; height: 13px; border-radius: 99px; border: 1.5px solid #D1D5DB; margin-top: 2px; flex-shrink: 0; }
.mock-radio.sel .r-dot { border: 4px solid #3366FF; }
.mock-radio .r-name { font-size: 12px; font-weight: 600; color: #111827; }
.mock-radio .r-desc { font-size: 10.5px; color: #9CA3AF; margin-top: 1px; line-height: 1.35; }
.mock-export .ex-btn { margin: 4px 12px 14px; background: #3366FF; color: #fff; font-size: 12px; font-weight: 500; text-align: center; border-radius: 8px; padding: 9px 0; }

/* Feature cards v2 — one-liners + micro visuals */
.feature-grid-v2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fcard {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 22px 22px 20px;
  display: flex; flex-direction: column; gap: 6px;
}
.fcard h3 { font-size: 15.5px; font-weight: 600; }
.fcard .fline { font-size: 13.5px; color: var(--text-3); }
.fcard .fmini {
  margin-top: 14px; background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 14px;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  min-height: 46px;
}
.fmini .fm-word { font-size: 13px; font-weight: 600; color: var(--text-1); }
.fmini .fm-trans { font-size: 13px; font-weight: 500; color: var(--accent-strong); }
.fmini .fm-arrow { color: var(--muted); font-size: 12px; }
.fmini .fm-dim { font-size: 12px; color: var(--text-3); }
.fmini code { font-size: 11.5px; }

/* Export v2 (two integrations) */
.export-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 880px; margin: 0 auto; }
.export-steps { list-style: none; margin: 14px 0 0; padding: 14px 0 0; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 9px; }
.export-steps li { display: flex; gap: 10px; font-size: 13.5px; color: var(--text-2); align-items: baseline; }
.export-steps .n { width: 20px; height: 20px; border-radius: 99px; background: var(--accent-bg); color: var(--accent-text); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; position: relative; top: 3px; }

/* Languages v2 — two distinct groups */
.lang-groups { display: flex; flex-direction: column; gap: 28px; max-width: 860px; margin: 0 auto; }
.lang-group h3 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--text-3); text-align: center; margin-bottom: 14px; }
.lang-group h3 b { color: var(--accent-strong); }
.lang-row { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; max-width: 980px; margin: 0 auto; }
.price-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 26px;
  display: flex; flex-direction: column; position: relative;
}
.price-card.featured { border: 2px solid var(--brand-500); box-shadow: 0 12px 32px -8px rgb(51 102 255 / .25); }
.plan-badge {
  position: absolute; top: -11px; left: 24px;
  background: var(--brand-500); color: #fff;
  font-size: 11px; font-weight: 600; letter-spacing: .04em;
  border-radius: 999px; padding: 3px 11px;
}
.price-name { font-size: 14px; font-weight: 600; color: var(--text-3); }
.price-row { display: flex; align-items: baseline; gap: 6px; margin-top: 10px; }
.price-num { font-size: 38px; font-weight: 700; color: var(--text-1); letter-spacing: -.02em; }
.price-per { font-size: 14px; color: var(--muted); }
.price-note { font-size: 12.5px; color: var(--muted); margin-top: 2px; min-height: 18px; }
.price-list { list-style: none; margin: 18px 0 22px; padding: 18px 0 0; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; flex: 1; }
.price-list li { display: flex; gap: 9px; font-size: 13.5px; color: var(--text-2); align-items: baseline; }
.price-list svg { width: 14px; height: 14px; color: var(--success); flex-shrink: 0; position: relative; top: 2px; }
.price-card .btn { width: 100%; }

@media (max-width: 960px) {
  .feature-grid-v2 { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 440px; }
  .export-grid-2 { grid-template-columns: 1fr; max-width: 440px; }
  .hero-lit { padding: 64px 0 76px; }
}
@media (max-width: 680px) {
  .feature-grid-v2 { grid-template-columns: 1fr; }
  .article-prose { padding: 20px 20px 24px; }
}

/* ============================================================
   Mockup primitives — recreations of the extension UI
   (always light, like the product's default theme,
    with a subtle desk backdrop that adapts)
   ============================================================ */
.mock-desk {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
}
.mock-page {
  background: #FFFFFF; border: 1px solid #E5E7EB;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.mock-page-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-bottom: 1px solid #F3F4F6;
}
.mock-dot { width: 10px; height: 10px; border-radius: 999px; background: #E5E7EB; }
.mock-url {
  flex: 1; margin-left: 6px;
  background: #F3F4F6; border-radius: 999px;
  font-size: 11px; color: #9CA3AF;
  padding: 4px 12px;
  font-family: ui-monospace, Menlo, monospace;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mock-prose { padding: 22px 24px; font-size: 15px; line-height: 1.75; color: #374151; }
.mock-hl {
  background: #FEF3C7; border-radius: 2px; padding: 0 2px;
  color: #111827; font-weight: 500;
}

/* Popover recreation (280px, matches extension) */
.mock-popover {
  width: 280px;
  background: #FFFFFF; border: 1px solid #E5E7EB;
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 25px -5px rgb(0 0 0 / .15);
  overflow: hidden;
  font-size: 14px;
}
.mock-popover .pop-head {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 16px 0;
  font-size: 12px; color: #6B7280;
}
.mock-popover .pop-head svg { width: 12px; height: 12px; color: #D1D5DB; }
.mock-popover .pop-x { margin-left: auto; color: #9CA3AF; display: flex; }
.mock-popover .pop-x svg { width: 15px; height: 15px; }
.mock-popover .pop-word { padding: 8px 16px 0; font-size: 16px; font-weight: 600; color: #111827; }
.mock-popover .pop-trans { padding: 2px 16px 12px; font-size: 17px; font-weight: 500; color: #0A42F5; }
/* anchored-arrow variant (matches product popover) */
.mock-popover.pop-arrow { overflow: visible; position: relative; }
.mock-popover.pop-arrow::before {
  content: ''; position: absolute; top: -6.5px; left: 24px;
  width: 12px; height: 12px; background: #fff;
  border-left: 1px solid #E5E7EB; border-top: 1px solid #E5E7EB;
  transform: rotate(45deg);
}
.mock-popover .pop-cta {
  margin: 0 16px 16px; width: calc(100% - 32px);
  display: flex; align-items: center; justify-content: center; gap: 7px;
  background: #3366FF; color: #fff; border: none;
  font-family: inherit; font-size: 14px; font-weight: 500;
  border-radius: 8px; padding: 11px 0; cursor: default;
}
.mock-popover .pop-cta svg { width: 16px; height: 16px; }

/* Floating trigger icon — blue button, white tilted cards (exact product icon) */
.mock-trigger {
  width: 30px; height: 30px; border-radius: 8px;
  background: #3366FF;
  box-shadow: 0 3px 8px rgb(0 0 0 / .18), 0 0 0 1px rgb(0 0 0 / .05);
  display: inline-flex; align-items: center; justify-content: center;
}
.mock-trigger svg { width: 22px; height: 22px; }

/* Sidebar frame (360px extension panel) */
.mock-panel {
  width: 320px;
  background: #FFFFFF; border: 1px solid #E5E7EB;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.mock-panel .panel-head { padding: 16px 18px 10px; border-bottom: 1px solid #F3F4F6; }
.mock-panel .panel-title { font-size: 15px; font-weight: 700; color: #111827; }
.mock-panel .panel-sub { font-size: 11.5px; color: #9CA3AF; margin-top: 2px; }

/* Mini flashcard row */
.mock-cardrow { padding: 12px 18px; border-bottom: 1px solid #F3F4F6; }
.mock-cardrow .cr-word { font-size: 14px; font-weight: 600; color: #111827; display: flex; align-items: center; gap: 8px; }
.mock-cardrow .cr-trans { font-size: 13px; color: #2952CC; margin-top: 1px; }
.mock-badge {
  display: inline-flex; font-size: 10.5px; font-weight: 500;
  padding: 1px 7px; border-radius: 999px;
}
.mock-badge.b-pos { background: #EEF4FF; color: #1F3D99; }
.mock-badge.b-cefr { background: #ECFDF5; color: #047857; }
.mock-badge.b-phrase { background: #F5F3FF; color: #6D28D9; }

/* Context menu recreation */
.mock-ctxmenu {
  width: 230px;
  background: #FFFFFF; border: 1px solid #E5E7EB;
  border-radius: 10px; box-shadow: 0 8px 24px rgb(0 0 0 / .16);
  padding: 6px; font-size: 13px; color: #374151;
}
.mock-ctxmenu .mi { padding: 7px 10px; border-radius: 6px; }
.mock-ctxmenu .mi.dim { color: #9CA3AF; }
.mock-ctxmenu .mi.hot { background: #EEF4FF; color: #1F3D99; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.mock-ctxmenu .mi.hot svg { width: 14px; height: 14px; color: #3366FF; }
.mock-ctxmenu .sep { border-top: 1px solid #F3F4F6; margin: 5px 4px; }

/* ---------- Docs layout ---------- */
.docs-wrap { display: grid; grid-template-columns: 230px 1fr; gap: 56px; align-items: start; padding-top: 48px; padding-bottom: 96px; }
.docs-nav { position: sticky; top: 96px; }
.docs-nav .docs-nav-h { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 0 0 10px 12px; }
.docs-nav ul { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.docs-nav a {
  display: block; font-size: 13.5px; font-weight: 500; color: var(--text-3);
  padding: 6px 12px; border-radius: var(--radius-md);
  border-left: 2px solid transparent;
}
.docs-nav a:hover { color: var(--text-1); background: var(--bg-3); text-decoration: none; }
.docs-nav a.active { color: var(--accent-strong); background: var(--accent-bg); }

.docs-content { max-width: 720px; min-width: 0; }
.docs-content section { scroll-margin-top: 90px; }
.docs-content h1 { font-size: 30px; letter-spacing: -.02em; margin-bottom: 10px; }
.docs-content .lede { font-size: 16px; color: var(--text-3); }
.docs-content h2 {
  font-size: 21px; font-weight: 700; letter-spacing: -.01em;
  margin: 56px 0 8px; padding-top: 28px; border-top: 1px solid var(--border);
}
.docs-content h3 { font-size: 16px; font-weight: 600; margin: 28px 0 8px; }
.docs-content p { font-size: 14.5px; margin: 10px 0; color: var(--text-2); }
.docs-content p.dim, .docs-content li.dim { color: var(--text-3); }
.docs-content ol, .docs-content ul { font-size: 14.5px; padding-left: 22px; margin: 10px 0; }
.docs-content li { margin: 6px 0; }
.docs-content li::marker { color: var(--muted); font-weight: 600; font-size: 13px; }

.docs-figure {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px; margin: 18px 0;
  display: flex; justify-content: center; align-items: center; gap: 24px; flex-wrap: wrap;
}
.docs-figcap { font-size: 12px; color: var(--muted); text-align: center; margin-top: -8px; margin-bottom: 18px; }

/* Platform tabs (docs TTS) */
.tabs { display: flex; gap: 4px; background: var(--bg-3); border-radius: 10px; padding: 4px; margin: 16px 0 0; width: max-content; max-width: 100%; }
.tab-btn {
  border: none; background: transparent; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 500;
  color: var(--text-2); padding: 7px 14px; border-radius: 7px;
  transition: background .12s, color .12s;
}
.tab-btn:hover { color: var(--text-1); }
.tab-btn.active { background: var(--bg); color: var(--text-1); font-weight: 600; box-shadow: var(--shadow-sm); }
html[data-theme="dark"] .tab-btn.active { background: var(--elevated); }
.tab-pane { display: none; padding: 6px 2px 0; }
.tab-pane.active { display: block; }

/* ---------- Release notes ---------- */
.release { display: grid; grid-template-columns: 150px 1fr; gap: 32px; padding: 36px 0; border-top: 1px solid var(--border); }
.release:first-of-type { border-top: none; }
.release-meta { position: sticky; top: 96px; align-self: start; }
.release-version { font-size: 19px; font-weight: 700; color: var(--text-1); letter-spacing: -.01em; }
.release-date { font-size: 13px; color: var(--muted); margin-top: 4px; }
.release-body h3 { font-size: 16px; font-weight: 600; margin: 0 0 4px; }
.release-body > p { font-size: 14.5px; color: var(--text-3); margin: 0 0 18px; }
.release-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.release-list li { display: flex; gap: 12px; align-items: baseline; font-size: 14.5px; color: var(--text-2); }
.release-list .badge { flex-shrink: 0; position: relative; top: -1px; }

/* ---------- Welcome page ---------- */
.welcome-hero { text-align: center; padding: 72px 0 20px; }
.welcome-check {
  width: 56px; height: 56px; border-radius: 999px;
  background: var(--success-bg); color: var(--success);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.welcome-check svg { width: 26px; height: 26px; }
.welcome-steps { display: flex; flex-direction: column; gap: 20px; padding: 40px 0 0; }
.wstep {
  display: grid; grid-template-columns: 1fr 340px; gap: 32px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 32px;
  align-items: center;
}
.wstep-text h2 { font-size: 19px; font-weight: 700; display: flex; align-items: center; gap: 12px; }
.wstep-text p { font-size: 14.5px; color: var(--text-3); margin-top: 10px; }
.wstep-visual { display: flex; justify-content: center; }


/* ---------- Hero ---------- */
.hero { padding: 88px 0 96px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.hero h1 { font-size: 46px; font-weight: 700; letter-spacing: -.025em; line-height: 1.12; }
.hero .hero-sub { font-size: 17px; color: var(--text-3); margin-top: 20px; max-width: 460px; }
.hero-ctas { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero-note { font-size: 13px; color: var(--muted); margin-top: 16px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hero-note span { display: inline-flex; align-items: center; gap: 5px; }
.hero-note svg { width: 14px; height: 14px; color: var(--success); }

/* How it works */
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.how-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 26px;
  display: flex; flex-direction: column; gap: 18px;
}
.how-card .how-head { display: flex; align-items: center; gap: 12px; }
.how-card h3 { font-size: 16px; font-weight: 600; }
.how-card > p { font-size: 14px; color: var(--text-3); margin-top: -6px; }
.how-visual {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  min-height: 170px;
  display: flex; align-items: center; justify-content: center;
  padding: 18px; margin-top: auto;
  overflow: hidden;
}

/* Export integrations */
.export-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.export-card { display: flex; flex-direction: column; }
.export-card .export-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.export-logo {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; color: #fff;
}
.export-card h3 { margin: 0; }
.export-card .fmt { font-size: 12px; color: var(--muted); }
.export-card ul { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.export-card ul li { font-size: 13.5px; color: var(--text-3); display: flex; gap: 8px; align-items: baseline; }
.export-card ul li::before { content: ''; width: 5px; height: 5px; border-radius: 99px; background: var(--brand-300); flex-shrink: 0; position: relative; top: -2px; }
.export-card .card-link { margin-top: 14px; font-size: 13.5px; font-weight: 500; }

/* Language chips */
.lang-cloud { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 720px; margin: 0 auto; }

/* Free banner */
.free-banner {
  background: var(--accent-bg);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: var(--radius-xl);
  padding: 40px 44px;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center;
}
.free-banner h2 { font-size: 26px; letter-spacing: -.02em; }
.free-banner .free-sub { font-size: 15px; color: var(--text-3); margin-top: 10px; }
.quota-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.quota-list li {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 10px 16px;
  font-size: 14px; color: var(--text-2);
}
.quota-list .q-num { font-weight: 600; color: var(--text-1); font-size: 13.5px; white-space: nowrap; }

/* Final CTA */
.final-cta { text-align: center; padding: 96px 0; }
.final-cta h2 { font-size: 34px; letter-spacing: -.02em; }
.final-cta p { color: var(--text-3); margin-top: 12px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.email-box {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 12px 16px;
  margin-top: 16px;
}
.email-box .addr { font-size: 15px; font-weight: 600; color: var(--text-1); min-width: 0; overflow-wrap: break-word; }
.copy-btn {
  margin-left: auto; flex-shrink: 0;
  border: 1px solid var(--border); background: var(--bg);
  color: var(--text-3); font-family: inherit; font-size: 12.5px; font-weight: 500;
  border-radius: 7px; padding: 6px 12px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.copy-btn:hover { color: var(--text-1); background: var(--bg-3); }
.copy-btn svg { width: 13px; height: 13px; }
.copy-btn.copied { color: var(--success-text); border-color: color-mix(in srgb, var(--success) 40%, transparent); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 72px 0 0; }
.page-hero h1 { font-size: 38px; letter-spacing: -.02em; }
.page-hero .lede { font-size: 16.5px; color: var(--text-3); margin-top: 14px; max-width: 620px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero h1 { font-size: 38px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .feature-grid, .how-grid, .export-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .free-banner { grid-template-columns: 1fr; padding: 32px; }
  .wstep { grid-template-columns: 1fr; }
  .wstep-visual { order: 2; }
  .docs-wrap { grid-template-columns: 1fr; gap: 24px; }
  .docs-nav { position: static; display: flex; gap: 24px; flex-wrap: wrap; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; }
  .docs-nav nav { min-width: 160px; }
  .docs-nav ul { margin-bottom: 0; }
  .release { grid-template-columns: 1fr; gap: 12px; }
  .release-meta { position: static; display: flex; align-items: baseline; gap: 12px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .section { padding: 64px 0; }
  .feature-grid, .how-grid, .export-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 64px; }
  .hero h1 { font-size: 32px; }
  .section-title { font-size: 26px; }
  .mock-desk { padding: 18px; }
  .free-banner { padding: 26px 22px; }
  .final-cta h2 { font-size: 27px; }
  .page-hero h1 { font-size: 30px; }
}


/* ============================================================
   v4 — bento features, integration demos, language panel
   ============================================================ */

/* ---- Bento feature grid ---- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bento .span2 { grid-column: span 2; }
.bcard {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 24px;
  display: flex; flex-direction: column; gap: 6px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.bcard:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px -12px rgb(16 24 64 / .18);
  border-color: color-mix(in srgb, var(--accent) 30%, var(--border));
}
html[data-theme="dark"] .bcard:hover { box-shadow: 0 14px 34px -10px rgb(0 0 0 / .5); }
.bcard h3 { font-size: 16px; font-weight: 600; }
.bcard .fline { font-size: 13.5px; color: var(--text-3); }
.bviz { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.bviz-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* Full flashcard vignette (always product-light, like the extension) */
.flashcard-mock {
  background: #fff; border: 1px solid #E5E7EB; border-radius: 12px;
  padding: 16px 18px; box-shadow: 0 1px 3px rgb(17 24 39 / .06);
}
.fc-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fc-word { font-size: 16px; font-weight: 700; color: #111827; }
.fc-trans { font-size: 15px; font-weight: 500; color: #0A42F5; margin-top: 3px; }
.fc-ex { margin-top: 12px; padding-top: 12px; border-top: 1px solid #F3F4F6; font-size: 13px; color: #374151; line-height: 1.5; }
.fc-ex-tr { font-size: 12px; color: #9CA3AF; margin-top: 3px; }

/* Phrase breakdown chips */
.comp-chip {
  display: inline-flex; align-items: baseline; gap: 7px;
  background: #F5F3FF; border: 1px solid #EDE9FE; border-radius: 8px;
  padding: 5px 11px; font-size: 12.5px;
}
.comp-chip b { color: #6D28D9; font-weight: 600; }
.comp-chip span { color: #6B7280; }

/* TTS vignette with animated equalizer */
.tts-demo {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid #E5E7EB; border-radius: 12px;
  padding: 14px 16px; box-shadow: 0 1px 3px rgb(17 24 39 / .06);
}
.tts-btn {
  width: 36px; height: 36px; border-radius: 999px; flex-shrink: 0;
  background: #EEF4FF; color: #0A42F5;
  display: flex; align-items: center; justify-content: center;
}
.tts-btn svg { width: 17px; height: 17px; }
.tts-word { font-size: 15px; font-weight: 600; color: #111827; }
.tts-locale { font-size: 11px; color: #9CA3AF; margin-top: 1px; }
.eq { display: flex; gap: 3px; align-items: center; height: 24px; margin-left: auto; }
.eq i { display: block; width: 3.5px; border-radius: 2px; background: #3366FF; height: 8px; animation: eqBar 1.15s ease-in-out infinite; }
.eq i:nth-child(1) { animation-delay: 0s; }
.eq i:nth-child(2) { animation-delay: .18s; }
.eq i:nth-child(3) { animation-delay: .36s; }
.eq i:nth-child(4) { animation-delay: .1s; }
.eq i:nth-child(5) { animation-delay: .28s; }
@keyframes eqBar { 0%, 100% { height: 7px; } 50% { height: 22px; } }
@media (prefers-reduced-motion: reduce) { .eq i { animation: none; height: 14px; } }

/* Deck rows vignette */
.deck-row {
  display: flex; align-items: center; gap: 9px;
  background: #fff; border: 1px solid #E5E7EB; border-radius: 10px;
  padding: 10px 14px; font-size: 13px;
  box-shadow: 0 1px 3px rgb(17 24 39 / .05);
}
.deck-row svg { width: 14px; height: 14px; color: #9CA3AF; flex-shrink: 0; }
.deck-row .d-name { font-weight: 600; color: #111827; }
.deck-row .d-count { color: #9CA3AF; font-size: 12px; margin-left: auto; }

/* Privacy strip under bento */
.privacy-strip {
  margin-top: 16px;
  display: flex; gap: 12px; align-items: center; justify-content: center;
  background: var(--bg); border: 1px dashed var(--border);
  border-radius: var(--radius-lg); padding: 14px 22px;
  font-size: 13.5px; color: var(--text-3); text-align: center; flex-wrap: wrap;
}
.privacy-strip svg { width: 16px; height: 16px; color: var(--muted); flex-shrink: 0; }
.privacy-strip strong { color: var(--text-2); font-weight: 600; }

/* ---- Integration cards with after-import demos ---- */
.int-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 940px; margin: 0 auto; }
.int-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 26px;
  display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.int-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px -12px rgb(16 24 64 / .18);
  border-color: color-mix(in srgb, var(--accent) 30%, var(--border));
}
html[data-theme="dark"] .int-card:hover { box-shadow: 0 14px 34px -10px rgb(0 0 0 / .5); }
.int-demo { margin: 18px 0 4px; }

/* Anki review-screen mock */
.anki-mock { background: #fff; border: 1px solid #E5E7EB; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 3px rgb(17 24 39 / .06); }
.anki-bar { font-size: 10.5px; color: #9CA3AF; padding: 8px 14px; border-bottom: 1px solid #F3F4F6; display: flex; justify-content: space-between; gap: 8px; }
.anki-body { text-align: center; padding: 20px 14px 6px; }
.anki-word { font-size: 19px; font-weight: 700; color: #111827; display: inline-flex; align-items: center; gap: 9px; }
.anki-word .spk { width: 26px; height: 26px; border-radius: 999px; background: #EEF4FF; color: #0A42F5; display: inline-flex; align-items: center; justify-content: center; }
.anki-word .spk svg { width: 13px; height: 13px; }
.anki-ans { text-align: center; font-size: 15px; font-weight: 500; color: #0A42F5; border-top: 1px dashed #E5E7EB; margin: 14px 14px 0; padding: 12px 0 14px; }
.anki-btns { display: flex; gap: 8px; padding: 0 14px 14px; }
.anki-btn { flex: 1; text-align: center; font-size: 11px; font-weight: 500; padding: 7px 0; border-radius: 7px; background: #F3F4F6; color: #6B7280; }
.anki-btn.good { background: #ECFDF5; color: #047857; }

/* Quizlet set mock */
.quiz-mock { background: #fff; border: 1px solid #E5E7EB; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 3px rgb(17 24 39 / .06); }
.quiz-head { display: flex; justify-content: space-between; gap: 8px; padding: 10px 14px; border-bottom: 1px solid #F3F4F6; font-size: 11px; color: #9CA3AF; }
.quiz-head b { color: #111827; font-size: 12px; font-weight: 600; }
.quiz-row { display: grid; grid-template-columns: 1fr 1.2fr; gap: 12px; padding: 10px 14px; border-bottom: 1px solid #F3F4F6; font-size: 12.5px; }
.quiz-row:last-child { border-bottom: none; }
.quiz-row .qt { color: #111827; font-weight: 500; }
.quiz-row .qd { color: #6B7280; }

.int-steps { list-style: none; margin: 14px 0 0; padding: 14px 0 0; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 9px; }
.int-steps li { display: flex; gap: 10px; font-size: 13.5px; color: var(--text-2); align-items: baseline; }
.int-steps .n { width: 20px; height: 20px; border-radius: 99px; background: var(--accent-bg); color: var(--accent-text); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; position: relative; top: 3px; }
.int-card .card-link { margin-top: 14px; font-size: 13.5px; font-weight: 500; }

/* ---- Language pair panel ---- */
.lang-panel {
  display: grid; grid-template-columns: 330px 1fr; gap: 48px;
  align-items: center; max-width: 920px; margin: 0 auto;
}
.lang-pick {
  background: #fff; border: 1px solid #E5E7EB; border-radius: 16px;
  padding: 22px; box-shadow: 0 14px 38px -14px rgb(16 24 64 / .18);
}
html[data-theme="dark"] .lang-pick { box-shadow: 0 14px 38px -12px rgb(0 0 0 / .5); }
.lang-pick label { display: block; font-size: 10.5px; font-weight: 600; color: #6B7280; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 6px; }
.lang-pick .sel {
  display: flex; align-items: center; justify-content: space-between;
  background: #F9FAFB; border: 1px solid #E5E7EB; border-radius: 10px;
  padding: 10px 13px; font-size: 14px; color: #111827; font-weight: 500;
  margin-bottom: 14px;
}
.lang-pick .sel svg { width: 14px; height: 14px; color: #9CA3AF; }
.lang-pick .auto-note {
  display: flex; gap: 8px; align-items: flex-start;
  background: #EEF4FF; border-radius: 10px; padding: 10px 12px;
  font-size: 12px; color: #1F3D99; line-height: 1.5;
}
.lang-pick .auto-note svg { width: 14px; height: 14px; color: #3366FF; flex-shrink: 0; margin-top: 1px; }
.lang-cols { display: grid; grid-template-columns: 1fr 1.7fr; gap: 40px; }
.lang-col h3 { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 0 0 12px; }
.lang-col h3 b { color: var(--accent-strong); }
.lang-col ul { list-style: none; margin: 0; padding: 0; }
.lang-col.cols2 ul { column-count: 2; column-gap: 28px; }
.lang-col li { font-size: 14px; color: var(--text-2); padding: 4.5px 0; break-inside: avoid; }

@media (max-width: 960px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .int-grid { grid-template-columns: 1fr; max-width: 480px; }
  .lang-panel { grid-template-columns: 1fr; gap: 32px; max-width: 480px; }
  .lang-cols { gap: 28px; }
}
@media (max-width: 680px) {
  .bento { grid-template-columns: 1fr; }
  .bento .span2 { grid-column: span 1; }
  .lang-cols { grid-template-columns: 1fr; }
}


/* ============================================================
   v5 — clean pass: eyebrow pill, flat features, real templates
   ============================================================ */

/* Bigger hero eyebrow as a pill badge */
.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 600; letter-spacing: .01em;
  color: var(--accent-text); background: var(--accent-bg);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-radius: 999px; padding: 8px 16px;
  margin-bottom: 24px; text-transform: none;
}
.eyebrow-pill svg { width: 15px; height: 15px; color: var(--accent-strong); }

/* Clean feature grid — no vignettes, just icon + title + one line */
.feat6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 26px 26px 24px;
}
.feat-card .feature-icon { margin-bottom: 16px; }
.feat-card h3 { font-size: 16.5px; font-weight: 600; margin-bottom: 7px; }
.feat-card p { font-size: 14px; color: var(--text-3); line-height: 1.6; }

/* Anki template render — front & back side by side */
.tmpl-pair { display: grid; grid-template-columns: 1fr 1.35fr; gap: 10px; }
.tmpl-label { font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.tmpl-card {
  background: #fff; border: 1px solid #E5E7EB; border-radius: 12px;
  padding: 16px 14px; box-shadow: 0 1px 3px rgb(17 24 39 / .06);
  display: flex; flex-direction: column;
}
.tmpl-card.front { align-items: center; justify-content: center; text-align: center; gap: 8px; }
.tmpl-front-word { font-size: 21px; font-weight: 700; color: #111827; letter-spacing: -.01em; }
.tmpl-spk { width: 28px; height: 28px; border-radius: 999px; background: #EEF4FF; color: #0A42F5; display: inline-flex; align-items: center; justify-content: center; }
.tmpl-spk svg { width: 14px; height: 14px; }
.tmpl-back-word { font-size: 12px; color: #9CA3AF; }
.tmpl-back-trans { font-size: 18px; font-weight: 700; color: #111827; margin-top: 1px; }
.tmpl-badges { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 8px; }
.tmpl-ex { margin-top: 10px; padding-top: 10px; border-top: 1px solid #F3F4F6; font-size: 12px; color: #374151; line-height: 1.5; }
.tmpl-ex span { display: block; color: #9CA3AF; font-size: 11.5px; margin-top: 2px; }
.tmpl-meta { margin-top: 8px; font-size: 11px; color: #6B7280; }
.tmpl-meta b { color: #374151; font-weight: 600; }

/* Quizlet set-page look */
.qz-set { background: #fff; border: 1px solid #E5E7EB; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 3px rgb(17 24 39 / .06); }
.qz-title { padding: 13px 16px 3px; font-size: 15px; font-weight: 700; color: #111827; }
.qz-sub { padding: 0 16px 11px; font-size: 11px; color: #9CA3AF; border-bottom: 1px solid #F3F4F6; }
.qz-row { display: grid; grid-template-columns: 1fr 1.3fr 24px; align-items: center; gap: 12px; padding: 11px 16px; border-bottom: 1px solid #F3F4F6; }
.qz-row:last-child { border-bottom: none; }
.qz-term { font-size: 13px; font-weight: 600; color: #111827; border-right: 1px solid #F3F4F6; padding-right: 12px; }
.qz-def { font-size: 13px; color: #374151; }
.qz-row svg { width: 14px; height: 14px; color: #D1D5DB; }

/* Language list headers — explicit, not cryptic */
.lang-col .lang-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; padding: 0 7px;
  background: var(--accent-bg); color: var(--accent-text);
  font-size: 11.5px; font-weight: 700; border-radius: 999px;
  margin-left: 7px; position: relative; top: -1px;
}
.lang-col h3 { text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--text-1); font-weight: 600; }
.lang-col .h-sub { font-size: 12.5px; color: var(--muted); margin: 2px 0 12px; }

@media (max-width: 960px) {
  .feat6 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .feat6 { grid-template-columns: 1fr; }
  .tmpl-pair { grid-template-columns: 1fr; }
}


/* v6 — Anki template mock matched to the real render */
.tmpl-card { position: relative; align-items: center; text-align: center; padding: 20px 14px 16px; }
.tmpl-lang { position: absolute; top: 10px; right: 12px; font-size: 8.5px; font-weight: 600; letter-spacing: .1em; color: #C3C8D4; }
.tmpl-front-word { font-size: 24px; }
.tmpl-back-src { font-size: 14px; font-weight: 700; color: #111827; }
.tmpl-back-trans { font-size: 21px; font-weight: 700; color: #111827; margin-top: 2px; letter-spacing: -.01em; }
.tmpl-spk2 { width: 30px; height: 30px; border-radius: 999px; border: 1px solid #E5E7EB; background: #fff; color: #3366FF; display: flex; align-items: center; justify-content: center; margin: 9px auto 0; }
.tmpl-spk2 svg { width: 14px; height: 14px; }
.tmpl-chips { display: flex; gap: 5px; justify-content: center; margin-top: 10px; flex-wrap: wrap; }
.tmpl-chip { font-size: 10.5px; font-weight: 500; padding: 2.5px 10px; border-radius: 999px; background: #F3F4F6; color: #374151; }
.tmpl-chip.blue { background: #EEF4FF; color: #0A42F5; }
.tmpl-exbox { margin-top: 12px; width: 100%; box-sizing: border-box; display: flex; gap: 9px; align-items: center; background: #F8F9FB; border-left: 3px solid #3366FF; border-radius: 6px; padding: 9px 11px; text-align: left; }
.tmpl-exbox .spk-sm { width: 24px; height: 24px; border-radius: 999px; background: #fff; border: 1px solid #E5E7EB; color: #3366FF; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tmpl-exbox .spk-sm svg { width: 11px; height: 11px; }
.tmpl-ex-src { font-size: 12px; font-weight: 600; color: #111827; }
.tmpl-ex-tr { font-size: 11.5px; color: #6B7280; margin-top: 1px; }


/* v7 — Quizlet import editor, matched to the real dark UI */
.qz-set { background: #0D1020; border: 1px solid #20263C; border-radius: 14px; padding: 13px; }
.qz-row2 { background: #2A3350; border-radius: 12px; padding: 11px 13px 12px; }
.qz-row2 + .qz-row2 { margin-top: 10px; }
.qz-rhead { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.qz-num { font-size: 12px; font-weight: 700; color: #E7E9F2; }
.qz-tools { margin-left: auto; display: flex; gap: 11px; color: #9AA1BA; }
.qz-tools svg { width: 14px; height: 14px; }
.qz-body { display: grid; grid-template-columns: 1fr 1.55fr 48px; gap: 9px; align-items: start; }
.qz-input { background: #0E1226; border-radius: 8px; padding: 9px 11px; font-size: 11.5px; color: #F0F2F8; line-height: 1.5; }
.qz-def2 { color: #DFE3EF; }
.qz-lbl { font-size: 8.5px; font-weight: 700; letter-spacing: .11em; color: #8D94AD; margin: 5px 0 0 2px; }
.qz-img { align-self: start; height: 50px; border: 1.5px dashed #565F7E; border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #8D94AD; }
.qz-img svg { width: 15px; height: 15px; }
.qz-img span { font-size: 8px; letter-spacing: .04em; }


/* v8 — Quizlet set: theme-adaptive (overrides v7 dark), real term/definition content */
.qz-set { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); padding: 0; }
.qz-header { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 13px 16px 12px; border-bottom: 1px solid var(--border); }
.qz-header b { font-size: 14px; font-weight: 700; color: var(--text-1); }
.qz-header span { font-size: 11.5px; color: var(--muted); }
.qz-colhead { display: grid; grid-template-columns: minmax(82px, .72fr) 2fr; gap: 16px; padding: 9px 16px; background: var(--bg-2); border-bottom: 1px solid var(--border); }
.qz-colhead span { font-size: 9.5px; font-weight: 700; letter-spacing: .1em; color: var(--muted); }
.qz-row { display: grid; grid-template-columns: minmax(82px, .72fr) 2fr; gap: 16px; align-items: start; padding: 12px 16px; border-top: 1px solid var(--border); }
.qz-row:first-of-type { border-top: none; }
.qz-term { font-size: 13.5px; font-weight: 600; color: var(--text-1); }
.qz-def { font-size: 12.5px; color: var(--text-2); line-height: 1.55; }
.qz-def .qz-tr { color: var(--text-1); font-weight: 600; }


/* ============================================================
   v9 — feature cards: visual vignette + short bullets
   ============================================================ */
.feat-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.feat-viz { height: 132px; background: var(--bg-2); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: center; padding: 16px; }
.feat-body { padding: 18px 22px 22px; }
.feat-body h3 { font-size: 16px; font-weight: 600; margin-bottom: 13px; }
.feat-bullets { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.feat-bullets li { display: flex; gap: 9px; align-items: flex-start; font-size: 13.5px; color: var(--text-2); }
.feat-bullets svg { width: 15px; height: 15px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }

/* mini product vignettes — always product-light, like a screenshot */
.mini-card { width: 100%; max-width: 250px; background: #fff; border: 1px solid #E5E7EB; border-radius: 10px; padding: 12px 14px; box-shadow: 0 1px 3px rgb(17 24 39 / .06); }
.mini-card .mc-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mini-word { font-size: 15px; font-weight: 700; color: #111827; }
.mini-trans { font-size: 14px; font-weight: 500; color: #0A42F5; margin-top: 2px; }
.mini-ex { font-size: 11.5px; color: #6B7280; margin-top: 9px; padding-top: 9px; border-top: 1px solid #F3F4F6; }

.mini-decks { width: 100%; max-width: 250px; display: flex; flex-direction: column; gap: 8px; }
.deck-chip { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #E5E7EB; border-radius: 9px; padding: 9px 12px; font-size: 12px; color: #111827; font-weight: 500; box-shadow: 0 1px 3px rgb(17 24 39 / .05); }
.deck-chip svg { width: 14px; height: 14px; color: #9CA3AF; flex-shrink: 0; }
.deck-chip .dc-count { margin-left: auto; color: #9CA3AF; font-size: 11px; font-weight: 400; }
.deck-chip .mock-badge { padding: 1px 7px; font-size: 9.5px; }

.app-tiles { display: flex; gap: 10px; align-items: center; }
.app-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; background: #fff; border: 1px solid #E5E7EB; border-radius: 12px; padding: 13px 18px; box-shadow: 0 1px 3px rgb(17 24 39 / .05); }
.app-tile .at-logo { width: 30px; height: 30px; border-radius: 8px; color: #fff; font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.app-tile .at-name { font-size: 12px; font-weight: 600; color: #111827; }
.app-tile .at-fmt { font-size: 9.5px; color: #9CA3AF; }
.app-arrow { color: #C3C8D4; }
.app-arrow svg { width: 18px; height: 18px; }

.mini-pick { width: 100%; max-width: 230px; background: #fff; border: 1px solid #E5E7EB; border-radius: 12px; padding: 12px; box-shadow: 0 1px 3px rgb(17 24 39 / .05); }
.mp-row { display: flex; align-items: center; justify-content: space-between; background: #F9FAFB; border: 1px solid #E5E7EB; border-radius: 8px; padding: 8px 11px; }
.mp-row + .mp-row { margin-top: 7px; }
.mp-row .mp-lbl { font-size: 9px; font-weight: 700; letter-spacing: .06em; color: #9CA3AF; text-transform: uppercase; }
.mp-row .mp-val { font-size: 12.5px; font-weight: 600; color: #111827; }

.mini-tmpl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; max-width: 244px; }
.mt-side { background: #fff; border: 1px solid #E5E7EB; border-radius: 9px; padding: 10px; text-align: center; box-shadow: 0 1px 3px rgb(17 24 39 / .05); min-height: 78px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.mt-label { font-size: 8px; font-weight: 700; letter-spacing: .1em; color: #C3C8D4; text-transform: uppercase; }
.mt-word { font-size: 15px; font-weight: 700; color: #111827; }
.mt-trans { font-size: 13px; font-weight: 600; color: #111827; }
.mt-spk { width: 22px; height: 22px; border-radius: 999px; border: 1px solid #E5E7EB; color: #3366FF; display: flex; align-items: center; justify-content: center; }
.mt-spk svg { width: 11px; height: 11px; }

.tts-mini { display: flex; align-items: center; gap: 11px; background: #fff; border: 1px solid #E5E7EB; border-radius: 12px; padding: 11px 14px; box-shadow: 0 1px 3px rgb(17 24 39 / .05); }
.tts-mini .tm-btn { width: 32px; height: 32px; border-radius: 999px; background: #EEF4FF; color: #0A42F5; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tts-mini .tm-btn svg { width: 15px; height: 15px; }
.tts-mini .tm-word { font-size: 14px; font-weight: 600; color: #111827; }
.tts-mini .tm-loc { font-size: 10px; color: #9CA3AF; margin-top: 1px; }


/* ============================================================
   v10 — calmer feature grid: flat, theme-aware, muted, uniform
   ============================================================ */
.feat6 { gap: 18px; }
.feat-card { padding: 26px; overflow: visible; border-radius: 16px; display: flex; flex-direction: column; }
.feat-card:hover { transform: none; box-shadow: none; border-color: color-mix(in srgb, var(--accent) 22%, var(--border)); }

/* visual sits on the card itself — no gray band, no divider line */
.feat-viz { min-height: 96px; height: auto; background: transparent; border-bottom: none; padding: 4px 0 22px; margin: 0; display: flex; align-items: center; justify-content: center; }
.feat-body { padding: 0; }
.feat-body h3 { font-size: 16px; font-weight: 600; margin-bottom: 12px; }

/* bullets recede — muted checks, calm text */
.feat-bullets { gap: 8px; }
.feat-bullets li { font-size: 13.5px; color: var(--text-3); }
.feat-bullets svg { width: 13px; height: 13px; color: var(--muted); margin-top: 3px; }

/* one calm accent per vignette: neutralize badges, keep flat surfaces */
.feat-viz .mock-badge { background: var(--bg-3); color: var(--text-2); }
.mini-card, .deck-chip, .app-tile, .mini-pick, .mt-side, .tts-mini { box-shadow: none; }
.mini-card { background: var(--bg-2); border-color: var(--border); max-width: 224px; }
.mini-word { color: var(--text-1); }
.mini-trans { color: var(--accent-strong); }
.mini-ex { color: var(--text-3); border-top-color: var(--border); }
.mini-decks { max-width: 224px; }
.deck-chip { background: var(--bg-2); border-color: var(--border); color: var(--text-1); }
.deck-chip svg { color: var(--text-3); }
.deck-chip .dc-count { color: var(--muted); }
.app-tile { background: var(--bg-2); border-color: var(--border); padding: 12px 16px; }
.app-tile .at-name { color: var(--text-1); }
.app-tile .at-fmt { color: var(--muted); }
.app-arrow { color: var(--muted); }
.mini-pick { background: var(--bg-2); border-color: var(--border); max-width: 220px; }
.mp-row { background: var(--bg); border-color: var(--border); }
.mp-row .mp-val { color: var(--text-1); }
.mp-row .mp-lbl { color: var(--muted); }
.mini-tmpl { max-width: 224px; }
.mt-side { background: var(--bg-2); border-color: var(--border); }
.mt-word, .mt-trans { color: var(--text-1); }
.mt-spk { background: var(--bg); border-color: var(--border); }
.tts-mini { background: var(--bg-2); border-color: var(--border); max-width: 224px; }
.tts-mini .tm-word { color: var(--text-1); }
.tts-mini .tm-loc { color: var(--muted); }
.tts-mini .tm-btn { background: var(--accent-bg); color: var(--accent-strong); }


/* ============================================================
   v11 — Features as bento: hero core-loop + outcome headlines
   ============================================================ */
.bento2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.b-hero { grid-column: span 2; }
.bcard2 { background: var(--bg); border: 1px solid var(--border); border-radius: 16px; padding: 26px; display: flex; flex-direction: column; transition: border-color .18s ease; }
.bcard2:hover { border-color: color-mix(in srgb, var(--accent) 22%, var(--border)); }
.bcard2 .b-viz { min-height: 96px; display: flex; align-items: center; justify-content: center; padding: 2px 0 22px; }
.bcard2 h3 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 13px; }
.bcard2 .feat-bullets { gap: 8px; }
.bcard2 .feat-bullets li { font-size: 13.5px; color: var(--text-3); }
.bcard2 .feat-bullets svg { width: 13px; height: 13px; color: var(--muted); margin-top: 3px; }

/* neutralize badges inside visuals for calm; keep one blue accent (translation) */
.b-viz .mock-badge { background: var(--bg-3); color: var(--text-2); }
.b-viz .comp-chip { background: var(--bg); border-color: var(--border); }
.b-viz .comp-chip b { color: var(--accent-strong); }
.b-viz .comp-chip span { color: var(--text-3); }

/* hero cell: text left, core-loop visual right */
.b-hero .b-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; height: 100%; }
.b-hero h3 { font-size: 23px; line-height: 1.2; margin-bottom: 8px; }
.b-hero .b-lead { font-size: 14.5px; color: var(--text-3); margin-bottom: 16px; line-height: 1.6; }

.loop { display: flex; flex-direction: column; gap: 9px; width: 100%; }
.loop-src { background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; padding: 13px 15px; }
.loop-kicker { font-size: 9.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.loop-text { font-family: Lora, Georgia, serif; font-size: 14px; line-height: 1.7; color: var(--text-2); margin-top: 6px; }
.loop-trig { display: inline-flex; width: 16px; height: 16px; border-radius: 4px; background: #3366FF; align-items: center; justify-content: center; vertical-align: -3px; margin-left: 4px; }
.loop-trig svg { width: 12px; height: 12px; }
.loop-arrow { align-self: center; color: var(--muted); display: flex; }
.loop-arrow svg { width: 18px; height: 18px; }
.loop .mini-card { max-width: none; }

@media (max-width: 960px) {
  .bento2 { grid-template-columns: 1fr 1fr; }
  .b-hero { grid-column: span 2; }
  .b-hero .b-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .bento2 { grid-template-columns: 1fr; }
  .b-hero { grid-column: span 1; }
  .b-hero .b-inner { grid-template-columns: 1fr; gap: 22px; }
}


/* v12 — balanced bento: hero 2x2, four compact cells beside it */
.bento2 { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; }
.b-hero { grid-column: span 2; grid-row: span 2; }
.b-hero .b-inner { display: flex; flex-direction: column; grid-template-columns: none; gap: 20px; height: 100%; align-items: stretch; }
.b-hero h3 { font-size: 24px; }
.b-hero .loop { margin-top: auto; }
.b-hero .loop-text { font-size: 14.5px; }

@media (max-width: 960px) {
  .bento2 { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; }
  .b-hero { grid-column: span 2; grid-row: auto; }
  .b-hero .b-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
  .b-hero .loop { margin-top: 0; }
}
@media (max-width: 680px) {
  .bento2 { grid-template-columns: 1fr; }
  .b-hero { grid-column: span 1; }
  .b-hero .b-inner { grid-template-columns: 1fr; gap: 22px; }
}


/* v13 — hero full-width on top (text + loop side by side), 4 cells in a row below */
.bento2 { grid-template-columns: repeat(4, 1fr); grid-auto-rows: auto; align-items: stretch; }
.b-hero { grid-column: span 4; grid-row: auto; }
.b-hero .b-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: center; height: auto; }
.b-hero .loop { margin: 0; max-width: 470px; }
.b-hero h3 { font-size: 25px; margin-bottom: 10px; }
.b-hero .b-lead { margin-bottom: 18px; }
.b-hero .loop-text { font-size: 15px; }

@media (max-width: 960px) {
  .bento2 { grid-template-columns: 1fr 1fr; }
  .b-hero { grid-column: span 2; }
  .b-hero .b-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 680px) {
  .bento2 { grid-template-columns: 1fr; }
  .b-hero { grid-column: span 1; }
  .b-hero .b-inner { grid-template-columns: 1fr; gap: 22px; }
  .b-hero .loop { max-width: none; }
}


/* ============================================================
   v14 — audit fixes: a11y, contrast, conversion components
   ============================================================ */

/* ---- Skip link (visually hidden until focused) ---- */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--accent); color: #fff;
  padding: 10px 16px; border-radius: 8px;
  font-size: 14px; font-weight: 600;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; text-decoration: none; outline: 2px solid #fff; outline-offset: 2px; }

/* ---- Global focus-visible ring (site.css previously had none) ---- */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
:focus:not(:focus-visible) { outline: none; }
#main:focus { outline: none; }

/* ---- 44px touch targets for icon/copy buttons (visual stays compact) ---- */
.theme-toggle, .nav-burger, .copy-btn { position: relative; }
.theme-toggle::after, .nav-burger::after { content: ''; position: absolute; inset: -4px; }
.copy-btn::after { content: ''; position: absolute; inset: -7px; }

/* ---- Copy button error state ---- */
.copy-btn.copy-error { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 45%, transparent); }

/* ---- Footer: 4th (Legal) column + trademark line ---- */
.footer-col .footer-h {
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .07em; color: var(--text-3); margin: 0 0 14px;
}
.footer-tm { max-width: 560px; }

/* ---- Social-proof bar under the hero ---- */
.proof-bar-wrap { background: var(--bg); border-bottom: 1px solid var(--border); }
.proof-bar {
  display: flex; align-items: center; justify-content: center;
  gap: 14px 22px; flex-wrap: wrap;
  padding: 16px 24px; font-size: 14px; color: var(--text-3); text-align: center;
}
.proof-item { display: inline-flex; align-items: center; gap: 8px; }
.proof-item strong { color: var(--text-1); font-weight: 700; }
.proof-stars { color: #E8930C; letter-spacing: 1px; font-size: 13px; }
html[data-theme="dark"] .proof-stars { color: #FBBF24; }
.proof-dot { width: 4px; height: 4px; border-radius: 999px; background: var(--muted); flex-shrink: 0; }
@media (max-width: 560px) { .proof-dot { display: none; } }

/* ---- Testimonials ---- */
.tmony-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tmony {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 22px 22px 20px;
  display: flex; flex-direction: column; gap: 12px;
}
.tmony .tmony-stars { color: #E8930C; font-size: 12px; letter-spacing: 1.5px; }
html[data-theme="dark"] .tmony .tmony-stars { color: #FBBF24; }
.tmony blockquote { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text-1); }
.tmony figcaption { font-size: 13px; color: var(--text-3); margin-top: auto; }
@media (max-width: 900px) { .tmony-grid { grid-template-columns: 1fr; max-width: 540px; margin: 0 auto; } }

/* ---- Hero: problem line + "free to try" chip + section CTA ---- */
.hero-lit .hero-problem {
  font-size: 18px; font-weight: 600; color: var(--text-2);
  max-width: 600px; margin: 20px auto 0; text-wrap: balance;
}
.hero-free {
  display: inline-flex; align-items: center;
  background: var(--accent-bg); color: var(--accent-text);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  font-weight: 600; border-radius: 999px; padding: 3px 11px;
}
.section-cta { display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 40px; }

/* ---- Feature card-anatomy showpiece ---- */
.b-copy .b-tag {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .03em;
  color: var(--accent-text); background: var(--accent-bg);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: 999px; padding: 4px 12px; margin-bottom: 14px;
}
.b-hero .anatomy { justify-self: end; width: 100%; max-width: 460px; }
.an-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 14px; padding: 16px 20px; box-shadow: var(--shadow-sm);
}
.an-row {
  display: grid; grid-template-columns: 116px 1fr; gap: 14px; align-items: baseline;
  padding: 10px 0; border-top: 1px solid var(--border);
}
.an-row:first-child { border-top: none; padding-top: 2px; }
.an-lbl {
  font-size: 9.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--muted); line-height: 1.5;
}
.an-val { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.an-lemma { font-size: 17px; font-weight: 700; color: var(--text-1); }
.an-trans { font-size: 15px; font-weight: 600; color: var(--accent-strong); }
.an-ex-src { font-size: 13px; color: var(--text-1); display: block; }
.an-ex-tr { font-size: 12.5px; color: var(--text-3); display: block; margin-top: 1px; }
.an-src-sent { font-family: Lora, Georgia, serif; font-style: italic; font-size: 12.5px; color: var(--text-2); }
.an-row .mock-badge { font-size: 10.5px; }
.b-gender { background: var(--purple-bg); color: var(--purple-text); }
.b-reg { background: var(--warning-bg); color: var(--warning-text); }
/* anatomy badges follow the theme (the card surface is theme-aware) */
.an-card .mock-badge.b-pos { background: var(--accent-bg); color: var(--accent-text); }
.an-card .mock-badge.b-cefr { background: var(--success-bg); color: var(--success-text); }

/* ---- Languages: compact counts + "See all" details ---- */
.lang-summary { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 4px; }
.lang-summary .lang-stat {
  display: inline-flex; align-items: baseline; gap: 8px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 16px; font-size: 14px; color: var(--text-2);
}
.lang-summary .ls-num { font-size: 22px; font-weight: 700; color: var(--text-1); letter-spacing: -.01em; }
.lang-all { margin-top: 6px; }
.lang-all > summary {
  list-style: none; cursor: pointer; width: max-content;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 600; color: var(--accent-strong); padding: 8px 0;
}
.lang-all > summary::-webkit-details-marker { display: none; }
.lang-all > summary::after {
  content: ''; width: 7px; height: 7px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform .15s;
}
.lang-all[open] > summary::after { transform: rotate(-135deg); }
.lang-group { margin-top: 14px; }
.lang-group .lg-h { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 10px; }
.lang-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lang-chip {
  font-size: 13px; font-weight: 500; color: var(--text-2);
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 999px; padding: 6px 13px;
}

/* ---- Pricing polish ---- */
.pricing-note { text-align: center; font-size: 13.5px; color: var(--text-3); margin-top: 24px; }
.price-list .li-note { display: block; color: var(--muted); font-size: 12px; margin-top: 1px; }
.save-chip {
  display: inline-block; background: var(--success-bg); color: var(--success-text);
  font-size: 11px; font-weight: 700; border-radius: 999px; padding: 2px 9px; margin-left: 6px;
}

/* ---- Legal pages prose ---- */
.legal { padding-top: 8px; padding-bottom: 88px; }
.legal-updated { font-size: 13px; color: var(--muted); margin-top: 14px; }
.legal h2 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; margin: 40px 0 10px; }
.legal h3 { font-size: 16px; font-weight: 600; letter-spacing: -.01em; margin: 24px 0 6px; }
.legal p { font-size: 15px; color: var(--text-2); margin: 10px 0; line-height: 1.7; }
.legal ul { font-size: 15px; color: var(--text-2); margin: 10px 0; padding-left: 22px; line-height: 1.7; }
.legal li { margin: 7px 0; }
.legal li::marker { color: var(--muted); }
.legal p.dim { color: var(--text-3); }

/* ---- Raise mobile-nav breakpoint so the header never wraps (was 680) ---- */
@media (max-width: 940px) {
  .nav-links {
    display: none;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: stretch; padding: 12px 16px; gap: 4px; margin: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px 12px; font-size: 15px; }
  .nav-burger {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: var(--radius-md);
    border: 1px solid var(--border); background: transparent; color: var(--text-3); cursor: pointer;
  }
  .nav-burger svg { width: 18px; height: 18px; }
  .nav-cta-desktop { display: none; }
}

/* ---- No-JS OS dark-mode fallback (JS bootstrap sets data-theme when available) ---- */
@media (prefers-color-scheme: dark) {
  html:not([data-theme]) {
    --bg:        #0F1117;
    --bg-2:      #1A1D27;
    --bg-3:      #252836;
    --elevated:  #2A2D3A;
    --border:    #32364A;
    --text-1:    #F1F2F6;
    --text-2:    #B0B4C0;
    --text-3:    #A2A8BB;
    --muted:     #8A90A6;
    --accent:    #3366FF;
    --accent-strong: #5985FF;
    --accent-text: #8DB0FF;
    --accent-bg: #1A2547;
    --success-bg: rgb(16 185 129 / .12);
    --success-text: #34D399;
    --warning-bg: rgb(245 158 11 / .12);
    --warning-text: #FBBF24;
    --purple-bg: rgb(139 92 246 / .14);
    --purple-text: #A78BFA;
    --shadow-sm: none;
    --shadow-md: none;
    --shadow-lg: 0 10px 30px -6px rgb(0 0 0 / .5);
  }
  html:not([data-theme]) .icon-moon { display: none; }
  html:not([data-theme]) .icon-sun { display: inline; }
}
