/*
 * @file lexswap-launch/site/assets/style.css
 * @responsibility Shared styles for every LexSwap landing page variant (generated by build-site.ps1) and privacy.html.
 * @brand blue #2f6fed, amber #e3a008 (learning), grey underline (known) - same colour language as the extension.
 */
:root {
  --blue: #2f6fed;
  --blue-dark: #2154c4;
  --blue-soft: #eaf1ff;
  --amber: #e3a008;
  --amber-soft: #fff4dc;
  --ink: #111827;
  --text: #2b3240;
  --muted: #5b6475;
  --line: #e4e8ef;
  --soft: #f6f8fc;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(17, 24, 39, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(34px, 5.2vw, 56px); font-weight: 800; }
h2 { font-size: clamp(27px, 3.6vw, 40px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- header ------------------------------------------------------------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid rgba(228, 232, 239, 0.7);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--ink); text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 10px; border: 0; cursor: pointer;
  background: var(--blue); color: #fff; font: inherit; font-weight: 700; text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}
.btn:hover { background: var(--blue-dark); }
.btn:active { transform: translateY(1px); }
.btn.small { padding: 9px 16px; font-size: 15px; }
.btn.ghost { background: var(--soft); color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { background: #edf1f7; }

/* ---- hero ------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  padding: 64px 0 72px;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(47, 111, 237, 0.16), transparent 70%),
    radial-gradient(700px 380px at -10% 30%, rgba(227, 160, 8, 0.10), transparent 70%),
    linear-gradient(#fbfcff, #ffffff);
}
.hero .wrap { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
  padding: 6px 12px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-dark);
  font-size: 14px; font-weight: 700;
}
.kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(227, 160, 8, 0.22); }
.hero .sub { margin: 20px 0 28px; font-size: 19px; color: var(--muted); max-width: 560px; }
.hero h1 .accent { color: var(--blue); }

/* ---- waitlist form ------------------------------------------------------ */
.signup { max-width: 560px; }
.signup .row { display: flex; gap: 10px; flex-wrap: wrap; }
.signup input[type="email"], .signup select {
  font: inherit; font-size: 16px; padding: 13px 14px; border-radius: 10px;
  border: 1px solid #cfd6e2; background: #fff; color: var(--ink); min-width: 0;
}
.signup input[type="email"] { flex: 1 1 240px; }
.signup select { flex: 0 1 190px; }
.signup input:focus, .signup select:focus, .btn:focus-visible { outline: 3px solid rgba(47, 111, 237, 0.35); outline-offset: 2px; border-color: var(--blue); }
.signup .btn { flex: 1 0 100%; padding: 14px 20px; font-size: 17px; }
.signup .opt { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; font-size: 14px; color: var(--muted); }
.signup .opt input { margin-top: 4px; }
.signup .fine { margin-top: 10px; font-size: 13px; color: var(--muted); }
.signup .fine a { color: inherit; }
.signup .error { margin-top: 10px; color: #b42318; font-size: 15px; font-weight: 600; }
.signup .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.signup .mobile-note { display: none; margin-top: 10px; font-size: 14px; color: var(--muted); }
.signup.sending .btn { opacity: 0.7; pointer-events: none; }
.done {
  max-width: 560px; padding: 22px 22px 20px; border-radius: var(--radius);
  background: #f1fbf4; border: 1px solid #b7e4c4;
}
.done h3 { font-size: 22px; margin-bottom: 6px; }
.done p { color: var(--text); }
.done p + p { margin-top: 10px; }
.share { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.share a, .share button { font-size: 14px; padding: 8px 12px; }

/* ---- demo (fake browser with a paragraph whose words flip) --------------- */
.browser { background: #fff; border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--line); }
.browser .bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #eef1f6; border-bottom: 1px solid var(--line); }
.browser .bar i { width: 11px; height: 11px; border-radius: 50%; background: #d3d8e1; display: inline-block; }
.browser .url { flex: 1; margin-left: 8px; padding: 5px 12px; border-radius: 999px; background: #fff; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser .ext { width: 22px; height: 22px; border-radius: 6px; }
.article { padding: 26px 30px 22px; font: 19px/1.75 Georgia, "Times New Roman", serif; color: #1c2128; }
.article .kicker-line { font: 700 12px/1 system-ui, sans-serif; letter-spacing: 0.08em; text-transform: uppercase; color: #9a3412; margin-bottom: 10px; }
.article h4 { font: 700 25px/1.2 Georgia, serif; margin: 0 0 12px; color: #111; }
.lw { position: relative; cursor: help; border-radius: 3px; transition: background 0.35s, color 0.35s; }
.lw.on.k { border-bottom: 1.5px solid #8a94a3; }
.lw.on.l { font-style: italic; background: var(--amber-soft); border-bottom: 2px dotted var(--amber); }
.lw.on.n { font-style: italic; color: #1d4ed8; background: var(--blue-soft); border-bottom: 2px dotted var(--blue); }
.lw.flip { animation: flip 0.45s ease; }
@keyframes flip { 0% { opacity: 0.55; transform: translateY(3px); } 100% { opacity: 1; transform: none; } }
.top .short { display: none; }
.lw .tip {
  position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%);
  min-width: 140px; padding: 8px 10px; border-radius: 9px; background: #1c2128; color: #f2f4f7;
  font: 600 13px/1.35 system-ui, sans-serif; font-style: normal; text-align: left; white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); opacity: 0; pointer-events: none; transition: opacity 0.15s; z-index: 5;
}
.lw .tip small { display: block; color: #a9b1bb; font-weight: 500; }
.lw:hover .tip, .lw:focus .tip { opacity: 1; }
.meter { padding: 14px 30px 20px; border-top: 1px solid var(--line); background: #fbfcfe; font: 14px/1.4 system-ui, sans-serif; color: var(--muted); }
.meter strong { color: var(--ink); font-size: 18px; }
.meter .track { height: 7px; border-radius: 999px; background: #e3e8f0; margin-top: 8px; overflow: hidden; }
.meter .fill { height: 100%; width: 0; background: var(--blue); border-radius: 999px; transition: width 0.45s ease; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; font-size: 13px; }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.legend .n::before { background: var(--blue); }
.legend .l::before { background: var(--amber); }
.legend .k::before { background: #98a1ae; }
.switcher { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.switcher button {
  font: 600 13px/1 system-ui, sans-serif; padding: 7px 11px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--muted);
}
.switcher button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.demo-caption { margin-top: 12px; font-size: 14px; color: var(--muted); text-align: center; }

/* ---- sections --------------------------------------------------------- */
section { padding: 88px 0; }
section.soft { background: var(--soft); }
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head p { margin-top: 14px; font-size: 18px; color: var(--muted); }
.steps, .cards { display: grid; gap: 22px; }
.steps { grid-template-columns: repeat(3, 1fr); }
.cards { grid-template-columns: repeat(3, 1fr); }
.step, .card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.step .num {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 14px;
  background: var(--blue-soft); color: var(--blue-dark); font-weight: 800;
}
.step p, .card p { margin-top: 8px; color: var(--muted); font-size: 16px; }
.card .icon { font-size: 26px; margin-bottom: 10px; }
.feature { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: center; margin-top: 72px; }
.feature:first-of-type { margin-top: 0; }
.feature.flip { grid-template-columns: 1.25fr 1fr; }
.feature.flip .shot { order: -1; }
.feature p { margin-top: 12px; color: var(--muted); font-size: 17px; }
.feature ul { margin: 14px 0 0; padding-left: 20px; color: var(--text); }
.feature li { margin: 4px 0; }
.shot { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 820px; margin: 0 auto; }
.chips span { padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; color: var(--ink); }
.privacy-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.privacy-band div { padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.privacy-band p { margin-top: 6px; color: var(--muted); font-size: 15px; }
.faq { max-width: 780px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 4px; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--ink); font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue); font-weight: 800; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; color: var(--muted); }
.final { text-align: center; background: linear-gradient(135deg, var(--blue), var(--blue-dark)); color: #fff; }
.final h2 { color: #fff; }
.final p.lead { margin: 14px auto 28px; max-width: 560px; color: #dbe6ff; font-size: 18px; }
.final .signup { margin: 0 auto; text-align: left; }
.final .signup .fine, .final .signup .opt, .final .signup .mobile-note { color: #dbe6ff; }
.final .signup .btn { background: #fff; color: var(--blue-dark); }
.final .signup .btn:hover { background: #eef3ff; }
.final .signup .error { color: #ffe2e0; }
.final .done { color: var(--text); text-align: left; margin: 0 auto; }
footer { padding: 36px 0 44px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; }
footer nav { display: flex; gap: 20px; }
footer a { color: var(--muted); }

/* ---- prose page (privacy) ------------------------------------------------ */
.prose { max-width: 760px; margin: 0 auto; padding: 56px 20px 80px; }
.prose h1 { font-size: 38px; margin-bottom: 8px; }
.prose h2 { font-size: 24px; margin: 34px 0 10px; }
.prose p, .prose li { color: var(--text); }
.prose p + p { margin-top: 12px; }
.prose table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 9px 10px; text-align: left; vertical-align: top; }
.prose th { background: var(--soft); }
.todo { background: #fff3c4; padding: 0 4px; border-radius: 3px; }

/* ---- responsive --------------------------------------------------------- */
@media (max-width: 920px) {
  .hero { padding: 40px 0 56px; }
  .hero .wrap, .feature, .feature.flip { grid-template-columns: 1fr; gap: 36px; }
  .feature.flip .shot { order: 0; }
  .steps, .cards, .privacy-band { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
}
@media (max-width: 760px) {
  .signup .mobile-note { display: block; }
  .article { padding: 20px 18px 16px; font-size: 17px; }
  .meter { padding: 12px 18px 16px; }
  .top .btn.small { padding: 8px 14px; font-size: 14px; }
  .top .long { display: none; }
  .top .short { display: inline; }
  .kicker { font-size: 13px; }
  .signup select { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lw.flip { animation: none; }
  .lw, .meter .fill { transition: none; }
}

/* ==========================================================================
   AUDIENCE THEMES (body.theme-*): one design per target group (variants.json "theme")
   default  main page (above)          lang     single-language pages (accent colour + big word)
   streak   app learners (dark)        expats   editorial / newspaper
   exchange students (bright, centred) english  English learners ru/pl/tr (notebook)
   ========================================================================== */
.bigword:empty { display: none; }
.hero > .wrap { position: relative; z-index: 1; }

/* ---- lang: accent colour per language + the language name, huge, behind the hero ---- */
.theme-lang .hero {
  background:
    radial-gradient(800px 420px at 90% -10%, var(--blue-soft), transparent 70%),
    linear-gradient(#ffffff, #ffffff);
}
.theme-lang .bigword {
  position: absolute; right: -2vw; top: 12px; z-index: 0;
  font: italic 700 clamp(110px, 17vw, 240px)/1 Georgia, "Times New Roman", serif;
  color: var(--blue); opacity: 0.07; letter-spacing: -0.04em; pointer-events: none; white-space: nowrap;
}
.theme-lang .kicker { background: var(--blue-soft); color: var(--blue-dark); }
.theme-lang .kicker .dot { background: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.theme-lang h1 .accent { color: var(--blue); }
.theme-lang section.soft { background: var(--blue-soft); }
.theme-lang .step .num { background: var(--blue-soft); color: var(--blue-dark); }

/* ---- streak: dark, high-contrast "next level" ---- */
.theme-streak { --blue: #f97316; --blue-dark: #c2410c; --blue-soft: #fff1e6; }
.theme-streak .top { background: rgba(11, 16, 32, 0.9); border-bottom-color: rgba(255, 255, 255, 0.08); }
.theme-streak .brand { color: #fff; }
.theme-streak .hero {
  background:
    radial-gradient(700px 380px at 85% 0%, rgba(249, 115, 22, 0.28), transparent 70%),
    radial-gradient(600px 360px at 0% 100%, rgba(34, 197, 94, 0.18), transparent 70%),
    #0b1020;
}
.theme-streak .hero h1 { color: #fff; }
.theme-streak .hero h1 .accent { color: #fdba74; }
.theme-streak .hero .sub, .theme-streak .hero .demo-caption { color: #cbd5e1; }
.theme-streak .hero .kicker { background: rgba(255, 255, 255, 0.08); color: #fde68a; }
.theme-streak .hero .signup .fine, .theme-streak .hero .signup .opt, .theme-streak .hero .signup .mobile-note { color: #aab4c4; }
.theme-streak .hero .signup .fine a { color: #e2e8f0; }
.theme-streak .hero .signup .error { color: #fecaca; }
.theme-streak .hero .browser { border-color: rgba(255, 255, 255, 0.15); box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55); }
.theme-streak .final { background: #0b1020; }
.theme-streak .final .signup .btn { background: var(--blue); color: #fff; }
.theme-streak .final .signup .btn:hover { background: var(--blue-dark); }
.vs { display: grid; grid-template-columns: 1fr 1fr; max-width: 860px; margin: 0 auto; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.vs > div { padding: 18px 24px; }
.vs .head { font-weight: 800; font-size: 18px; }
.vs .app { background: #f3f4f6; color: var(--muted); }
.vs .read { background: #ecfdf3; color: #14532d; }
.vs .app.head { color: var(--ink); }
.vs .read.head { color: #166534; }
.vs .row-label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: #8a94a3; margin-bottom: 2px; }
.vs .cell { border-top: 1px solid rgba(17, 24, 39, 0.07); }

/* ---- expats: editorial, paper, serif, demo on the left ---- */
.theme-expats { --blue: #c2410c; --blue-dark: #9a3412; --blue-soft: #fdeee6; background: #faf7f2; }
.theme-expats h1, .theme-expats h2, .theme-expats h3 { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; letter-spacing: -0.01em; }
.theme-expats h1 { font-weight: 700; }
.theme-expats .top { background: rgba(250, 247, 242, 0.94); border-bottom: 2px solid #1c1917; }
.theme-expats .hero { background: #faf7f2; border-bottom: 1px solid #e7e0d5; }
.theme-expats .kicker { background: transparent; border: 1px solid #1c1917; border-radius: 0; color: #1c1917; text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px; }
.theme-expats .kicker .dot { background: var(--blue); box-shadow: none; }
.theme-expats section.soft { background: #f3eee5; }
.theme-expats .step, .theme-expats .card, .theme-expats .privacy-band div { border-radius: 0; border: 0; border-top: 3px solid var(--blue); background: #fffdf9; }
.theme-expats .step .num { border-radius: 0; background: #1c1917; color: #fff; }
.theme-expats .btn { border-radius: 0; }
.theme-expats .signup input[type="email"], .theme-expats .signup select { border-radius: 0; }
.theme-expats .browser, .theme-expats .shot { border-radius: 4px; }
.theme-expats .faq details { border-bottom-color: #e7e0d5; }
.wordlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; max-width: 960px; margin: 0 auto; }
.wordlist div { padding: 14px 16px; background: #fffdf9; border: 1px solid #e7e0d5; font-size: 15px; color: var(--muted); }
.wordlist b { display: block; font: 700 21px/1.2 "Iowan Old Style", "Palatino Linotype", Georgia, serif; color: var(--ink); }

/* ---- exchange: bright, playful, everything centred ---- */
.theme-exchange { --blue: #7c3aed; --blue-dark: #5b21b6; --blue-soft: #f1e9ff; }
.theme-exchange h1, .theme-exchange h2, .theme-exchange h3, .theme-exchange .btn { font-family: ui-rounded, "Arial Rounded MT Bold", "Segoe UI", system-ui, sans-serif; }
.theme-exchange .hero {
  background:
    radial-gradient(circle at 1px 1px, rgba(124, 58, 237, 0.13) 1px, transparent 1.5px) 0 0 / 22px 22px,
    linear-gradient(160deg, #f5f0ff, #fff7ed 70%);
}
.theme-exchange .kicker { transform: rotate(-2deg); background: #fde68a; color: #78350f; border-radius: 10px; }
.theme-exchange .kicker .dot { background: var(--blue); box-shadow: none; }
.theme-exchange .btn { border-radius: 999px; }
.theme-exchange .signup input[type="email"], .theme-exchange .signup select { border-radius: 999px; padding-left: 18px; }
.theme-exchange .step, .theme-exchange .card, .theme-exchange .privacy-band div { border-radius: 22px; border: 2px solid #ede4ff; }
.theme-exchange .step .num { border-radius: 50%; background: var(--blue); color: #fff; }
.theme-exchange section.soft { background: #faf7ff; }
.theme-exchange .final { background: linear-gradient(135deg, #7c3aed, #db2777); }
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 980px; margin: 0 auto; }
.timeline div { padding: 24px; border-radius: 22px; background: #fff; border: 2px dashed #d8c8fb; }
.timeline span { display: inline-block; margin-bottom: 8px; padding: 4px 10px; border-radius: 999px; background: #fde68a; color: #78350f; font-weight: 800; font-size: 13px; }
.timeline p { color: var(--muted); font-size: 16px; margin-top: 6px; }

/* ---- english (ru / pl / tr): notebook paper ---- */
.theme-english { --blue: #1e40af; --blue-dark: #1e3a8a; --blue-soft: #e8eeff; }
.theme-english .hero {
  background:
    linear-gradient(90deg, transparent 54px, rgba(220, 38, 38, 0.22) 54px, rgba(220, 38, 38, 0.22) 56px, transparent 56px),
    repeating-linear-gradient(#ffffff 0 33px, #e9eef9 33px 34px);
}
.theme-english h1 .accent { color: #dc2626; }
.theme-english .kicker { background: #fff; border: 1px solid #c7d2fe; }
.theme-english .step, .theme-english .card, .theme-english .privacy-band div { border-left: 4px solid #dc2626; }
.theme-english section.soft { background: #f5f7fd; }
.theme-english .wordlist div { background: #fff; border-color: #dbe4f5; }
.theme-english .wordlist b { font-family: system-ui, sans-serif; color: var(--blue-dark); }

@media (max-width: 920px) {
  .timeline, .vs { grid-template-columns: 1fr; }
  .theme-lang .bigword { top: auto; bottom: 8px; right: -10px; }
  .theme-english .hero { background: repeating-linear-gradient(#ffffff 0 33px, #e9eef9 33px 34px); }
}

/* ==========================================================================
   SECTION BLOCKS (src/sections/*.html) + HERO LAYOUTS (variants.json "hero_layout")
   ========================================================================== */
section.plain { background: transparent; }
.ai-compare { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 820px; margin: 0 auto; }
.ai-compare .label { margin: 0 0 6px; color: var(--muted); font-size: 15px; }
.ai-compare h3 { font-family: Georgia, serif; font-weight: 400; font-size: 22px; }
.ai-compare .good { border-color: #b9cdfb; background: #f5f8ff; }
.ai-compare .good .label { color: var(--blue-dark); font-weight: 700; }
.ai-note { max-width: 720px; margin: 18px auto 0; font-size: 15px; color: var(--muted); text-align: center; }

.hero-points { list-style: none; padding: 0; margin: -10px 0 24px; display: grid; gap: 8px; }
.hero-points li { position: relative; padding-left: 28px; color: var(--text); font-weight: 600; }
.hero-points li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--blue-soft); color: var(--blue-dark); font-size: 12px; display: grid; place-items: center; margin-top: 3px; }

.pains { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; max-width: 980px; margin: 0 auto; }
.pain-item { padding: 22px 22px 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); position: relative; }
.pain-item::before { content: ""; position: absolute; top: 0; left: 22px; width: 36px; height: 4px; border-radius: 0 0 4px 4px; background: var(--blue); }
.pain-item h3 { font-size: 18px; margin-top: 6px; }
.pain-item p { margin-top: 6px; color: var(--muted); font-size: 15px; }
.pain-turn { max-width: 720px; margin: 28px auto 0; text-align: center; font-size: 20px; font-weight: 700; color: var(--ink); }
.pain-turn:empty { display: none; }

.outcomes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; max-width: 980px; margin: 0 auto; }
.outcome-item { padding: 24px; border-radius: var(--radius); background: linear-gradient(160deg, var(--blue-soft), #fff 70%); border: 1px solid var(--line); }
.outcome-item h3 { font-size: 20px; }
.outcome-item p { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* hero layouts: split (default: copy left, demo right) | reverse (demo left) | stack (centred, demo below) */
.hero.layout-reverse .hero-demo { order: -1; }
.hero.layout-stack .wrap { grid-template-columns: 1fr; text-align: center; gap: 40px; }
.hero.layout-stack .hero-copy, .hero.layout-stack .hero-demo { max-width: 760px; margin: 0 auto; width: 100%; }
.hero.layout-stack .sub, .hero.layout-stack .signup, .hero.layout-stack .hero-points { margin-left: auto; margin-right: auto; }
.hero.layout-stack .signup, .hero.layout-stack .browser, .hero.layout-stack .hero-points { text-align: left; }
.hero.layout-stack .hero-points { max-width: 560px; }

@media (max-width: 920px) {
  .ai-compare { grid-template-columns: 1fr; }
  .hero.layout-reverse .hero-demo { order: 0; }
}

/* ---- revision 3: a type voice per segment (system fonts only: no downloads, no third-party requests) ---- */
.theme-lang h1, .theme-lang h2, .theme-lang h3 { font-family: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif; letter-spacing: -0.01em; }
.theme-streak h1, .theme-streak h2 { font-family: "Segoe UI Black", "Arial Black", Impact, system-ui, sans-serif; font-weight: 900; letter-spacing: -0.03em; }
.theme-streak h1 { font-size: clamp(38px, 5.6vw, 64px); }
.theme-expats p, .theme-expats li, .theme-expats .faq summary { font-family: Charter, "Iowan Old Style", Georgia, serif; }
.theme-english body, .theme-english p, .theme-english li, .theme-english .faq summary, .theme-english .btn, .theme-english input { font-family: Verdana, Tahoma, "Segoe UI", sans-serif; }
.theme-english h1, .theme-english h2, .theme-english h3 { font-family: "Segoe UI", Tahoma, Verdana, sans-serif; font-weight: 800; }
.theme-english p, .theme-english li { font-size: 0.96em; }
.theme-exchange p, .theme-exchange li { font-family: "Trebuchet MS", "Segoe UI", system-ui, sans-serif; }

/* demo-first: the live example on top, full width, then the headline (single-language pages) */
.hero.layout-demo-first .wrap { grid-template-columns: 1fr; text-align: center; gap: 36px; }
.hero.layout-demo-first .hero-demo { order: -1; max-width: 820px; margin: 0 auto; width: 100%; }
.hero.layout-demo-first .hero-copy { max-width: 760px; margin: 0 auto; width: 100%; }
.hero.layout-demo-first .sub, .hero.layout-demo-first .signup { margin-left: auto; margin-right: auto; }
.hero.layout-demo-first .signup, .hero.layout-demo-first .browser { text-align: left; }
.hero.layout-demo-first .article { font-size: 21px; }
@media (max-width: 760px) {
  .hero.layout-demo-first .hero-demo { order: 0; }
  .hero.layout-demo-first .article { font-size: 17px; }
  .hero-points { margin: -6px 0 18px; }
}
.theme-streak .hero .hero-points li { color: #e2e8f0; }
.theme-streak .hero .hero-points li::before { background: rgba(249, 115, 22, 0.22); color: #fdba74; }
