/* ============================================================
   OmniAI — Marketing Site Design System
   Light, professional, trust-focused. Matches pitch-deck tone.
   ============================================================ */

:root {
  /* Color palette */
  --bg: #ffffff;
  --bg-alt: #f7f9fc;
  --bg-dark: #0b1220;
  --surface: #ffffff;
  --border: #e6eaf0;
  --border-strong: #d3dae6;

  --text: #0f1b2d;
  --text-muted: #51607a;
  --text-on-dark: #eef2ff;
  --gray-400: #c2c9d6;
  --gray-500: #6b7589;

  --primary: #4338ca;       /* indigo-700 */
  --primary-600: #4f46e5;   /* indigo-600 */
  --primary-500: #6366f1;   /* indigo-500 */
  --primary-soft: #eef2ff;  /* indigo-50  */
  --accent: #0891b2;        /* cyan-600   */
  --accent-soft: #ecfeff;
  --success: #059669;
  --warning: #d97706;

  /* Gradient */
  --grad-primary: linear-gradient(135deg, #4338ca 0%, #0891b2 100%);
  --grad-primary-soft: linear-gradient(135deg, #eef2ff 0%, #ecfeff 100%);

  /* Radii & shadows */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 27, 45, 0.06), 0 1px 3px rgba(15, 27, 45, 0.05);
  --shadow: 0 4px 14px rgba(15, 27, 45, 0.08);
  --shadow-lg: 0 18px 48px rgba(15, 27, 45, 0.12);

  /* Layout */
  --maxw: 1140px;
  --nav-h: 68px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--primary-600); text-decoration: none; }
a:hover { color: var(--primary); }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1rem; }

ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--primary-500);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
}
.section { padding: 84px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}
.section--dark h1,
.section--dark h2,
.section--dark h3 { color: #fff; }
.section--dark p { color: #c7d2e8; }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary-600);
  margin-bottom: 14px;
}
.section--dark .eyebrow { color: #a5b4fc; }

.lead { font-size: 1.12rem; color: var(--text-muted); max-width: 60ch; }
.section--dark .lead { color: #c7d2e8; }

.center { text-align: center; }
.mx-auto { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(67, 56, 202, 0.28);
}
.btn-primary:hover { color: #fff; box-shadow: 0 12px 28px rgba(67, 56, 202, 0.38); }
.btn-outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--primary-500); color: var(--primary); background: var(--primary-soft); }
.btn-light {
  background: #fff;
  color: var(--primary);
}
.btn-light:hover { color: var(--primary); background: #f1f5ff; }
.btn-ghost-light {
  background: transparent;
  border-color: rgba(255,255,255,.35);
  color: #fff;
}
.btn-ghost-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-lg { padding: 16px 30px; font-size: 1.05rem; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
.brand:hover { color: var(--text); }
.brand .logo { width: 30px; height: 30px; }
.brand .brand-sub { color: var(--text-muted); font-weight: 600; font-size: .9rem; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: .96rem;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
}
.nav-links a:hover { color: var(--text); background: var(--bg-alt); }
.nav-links a.active { color: var(--primary); background: var(--primary-soft); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 4px 0; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 96px 0 80px; }
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 520px;
  background: var(--grad-primary-soft);
  -webkit-mask-image: radial-gradient(ellipse at top, #000 35%, transparent 72%);
  mask-image: radial-gradient(ellipse at top, #000 35%, transparent 72%);
  z-index: -1;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { margin-bottom: 18px; }
.hero .lead { font-size: 1.2rem; max-width: 52ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-trust {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  color: var(--text-muted);
  font-size: .9rem;
}
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust svg { width: 18px; height: 18px; color: var(--success); }

.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 26px;
}
.hero-card h4 { font-size: 1rem; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.chat-row {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  align-items: flex-start;
}
.chat-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--grad-primary);
  color: #fff; display: grid; place-items: center;
  font-size: .8rem; font-weight: 700; flex-shrink: 0;
}
.chat-bubble {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 14px;
  font-size: .92rem;
}
.chat-bubble.user { background: var(--primary-soft); border-color: #dde3ff; }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--primary-500); animation: bounce 1.2s infinite; }
.typing i:nth-child(2){ animation-delay: .2s; }
.typing i:nth-child(3){ animation-delay: .4s; }
@keyframes bounce { 0%,60%,100%{ transform: translateY(0); opacity:.5 } 30%{ transform: translateY(-5px); opacity:1 } }

/* ---------- Live chat widget ---------- */
.chat-header { display:flex; align-items:center; gap:10px; margin-bottom:14px; }
.chat-status-dot { width:9px; height:9px; border-radius:50%; background:var(--gray-400); flex-shrink:0; }
.chat-status-dot[data-state="connected"] { background:#22c55e; box-shadow:0 0 0 3px rgba(34,197,94,.18); }
.chat-status-dot[data-state="connecting"] { background:#f59e0b; animation:pulse 1.2s infinite; }
.chat-status-dot[data-state="offline"] { background:#ef4444; }
@keyframes pulse { 0%,100%{ opacity:1 } 50%{ opacity:.4 } }
.chat-header-text h4 { margin:0; font-size:.95rem; line-height:1.15; }
.chat-header-text .chat-status-text { font-size:.74rem; color:var(--gray-500); }

.chat-messages { display:flex; flex-direction:column; gap:12px; max-height:300px; overflow-y:auto; padding-right:4px; margin-bottom:14px; }
.chat-messages .chat-row { margin-bottom:0; }
.chat-messages::-webkit-scrollbar { width:6px; }
.chat-messages::-webkit-scrollbar-thumb { background:var(--border); border-radius:3px; }

.chat-input-row { display:flex; gap:8px; align-items:center; }
.chat-input { flex:1; min-width:0; border:1px solid var(--border); border-radius:10px; padding:10px 12px; font-size:.9rem; font-family:inherit; background:var(--bg-alt); color:var(--text); }
.chat-input:focus { outline:none; border-color:var(--primary-500); box-shadow:0 0 0 3px rgba(79,70,229,.15); }
.chat-send { width:42px; height:42px; flex-shrink:0; border:none; border-radius:10px; background:var(--grad-primary); color:#fff; display:grid; place-items:center; cursor:pointer; transition:filter .15s; }
.chat-send:hover { filter:brightness(1.06); }

/* Floating launcher + popover (home page) */
.chat-launcher { position:fixed; right:22px; bottom:22px; width:58px; height:58px; border-radius:50%; border:none; background:var(--grad-primary); color:#fff; display:grid; place-items:center; cursor:pointer; box-shadow:var(--shadow-lg); z-index:60; }
.chat-launcher-badge { position:absolute; top:1px; right:1px; min-width:18px; height:18px; padding:0 4px; border-radius:9px; background:#ef4444; color:#fff; font-size:.7rem; font-weight:700; display:grid; place-items:center; line-height:1; }
.chat-popover { position:fixed; right:22px; bottom:92px; width:min(370px, calc(100vw - 32px)); z-index:60; }
.chat-popover .chat { margin:0; box-shadow:var(--shadow-lg); }

@media (max-width:640px) {
  .chat-popover { right:16px; left:16px; width:auto; bottom:84px; }
}

/* ---------- Stat band ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat .num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-600);
  letter-spacing: -0.03em;
}
.stat .label { color: var(--text-muted); font-size: .9rem; margin-top: 4px; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.card .icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--primary-soft);
  color: var(--primary-600);
  margin-bottom: 16px;
}
.card .icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.card p { color: var(--text-muted); font-size: .96rem; margin: 0; }

.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }

/* ---------- Feature list ---------- */
.feature-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
  color: var(--text-muted);
}
.feature-list li:last-child { border-bottom: none; }
.feature-list .check {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  margin-top: 2px;
}
.feature-list .check svg { width: 14px; height: 14px; }
.feature-list strong { color: var(--text); font-weight: 600; }

/* ---------- Pricing ---------- */
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.price-card.featured {
  border-color: var(--primary-500);
  box-shadow: var(--shadow-lg);
}
.price-card.featured::before {
  content: "Most popular";
  position: absolute;
  top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--grad-primary);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  letter-spacing: .03em;
}
.price-card .tier { font-size: 1.15rem; font-weight: 700; }
.price-card .tag { color: var(--text-muted); font-size: .9rem; margin-bottom: 18px; }
.price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
}
.price .amount { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.03em; }
.price .per { color: var(--text-muted); font-size: .95rem; }
.price-sub { color: var(--text-muted); font-size: .85rem; margin-bottom: 22px; }
.price-card ul { margin-bottom: 26px; flex: 1; }
.price-card .btn { margin-top: auto; }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; min-width: 560px; }
table.data th, table.data td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); }
table.data thead th { background: var(--bg-alt); font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); }
table.data tbody tr:last-child td { border-bottom: none; }
table.data td.before { color: var(--warning); }
table.data td.after { color: var(--success); font-weight: 600; }

/* ---------- Roadmap ---------- */
.roadmap { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: step; }
.roadmap .step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px;
  position: relative;
}
.roadmap .step .n {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--grad-primary); color: #fff;
  display: grid; place-items: center; font-weight: 700; margin-bottom: 12px;
}
.roadmap .step h4 { font-size: 1rem; margin-bottom: 6px; }
.roadmap .step p { font-size: .88rem; color: var(--text-muted); margin: 0; }

/* ---------- ROI ---------- */
.roi-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; }
.roi-box { border-radius: var(--radius-lg); padding: 32px; text-align: center; }
.roi-box.trad { background: #fff5f5; border: 1px solid #fecaca; }
.roi-box.omni { background: var(--primary-soft); border: 1px solid #c7d2fe; }
.roi-box .big { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; }
.roi-box .cap { color: var(--text-muted); font-size: .95rem; }
.roi-box.trad .big { color: #dc2626; }
.roi-box.omni .big { color: var(--primary-600); }
.roi-eq { font-size: 1.6rem; font-weight: 800; color: var(--success); }
.roi-badge {
  display: inline-block; margin-top: 18px;
  background: var(--grad-primary); color: #fff;
  padding: 10px 22px; border-radius: 999px; font-weight: 700;
}

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: 12px; }
.cta-band p { color: #c7d2e8; max-width: 56ch; margin: 0 auto 26px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.contact-info li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.contact-info li:last-child { border: none; }
.contact-info .ico { width: 42px; height: 42px; border-radius: 10px; background: var(--primary-soft); color: var(--primary-600); display: grid; place-items: center; flex-shrink: 0; }
.contact-info .ico svg { width: 20px; height: 20px; }
.contact-info .k { font-size: .82rem; color: var(--text-muted); }
.contact-info .v { font-weight: 600; }
.contact-info .v a { color: var(--text); }
.contact-info .v a:hover { color: var(--primary); }

.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: .98rem;
  background: #fff;
  color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(99,102,241,.18);
}
.field textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: .82rem; color: var(--text-muted); margin-top: 14px; }

/* ---------- Blog ---------- */
.post-card { display: flex; flex-direction: column; }
.post-card .tag-row { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.pill { font-size: .74rem; font-weight: 700; padding: 4px 11px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-600); }
.post-card h3 { font-size: 1.18rem; }
.post-card .meta { color: var(--text-muted); font-size: .85rem; margin-top: auto; padding-top: 14px; }
.post-card a.read { color: var(--primary-600); font-weight: 600; font-size: .92rem; margin-top: 10px; }

/* ---------- FAQ ---------- */
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 14px; background: var(--surface); }
.faq-item h4 { margin-bottom: 6px; font-size: 1.05rem; }
.faq-item p { margin: 0; color: var(--text-muted); font-size: .95rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-dark); color: #aebbd4; padding: 60px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.footer-grid h5 { color: #fff; font-size: .95rem; margin: 0 0 14px; letter-spacing: .02em; }
.footer-grid a { color: #aebbd4; display: block; padding: 5px 0; font-size: .92rem; }
.footer-grid a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 1.15rem; margin-bottom: 14px; }
.footer-brand .logo { width: 28px; height: 28px; }
.footer-about { font-size: .92rem; max-width: 34ch; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 40px; padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  font-size: .85rem; color: #8294b4;
}

/* ---------- Skip link (a11y) ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--primary-600); color: #fff;
  padding: 10px 18px; border-radius: 0 0 8px 0; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { order: -1; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .roadmap { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-links, .nav-actions .btn { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 12px 20px;
    gap: 4px;
    box-shadow: var(--shadow);
  }
  .nav-links.open a { padding: 12px 14px; }
  .roi-grid { grid-template-columns: 1fr; }
  .roi-eq { transform: rotate(90deg); }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .roadmap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   Logo (PNG wordmark) — sizing & dark-bg variants
   ============================================================ */
.brand .logo,
.footer-brand .logo {
  height: 32px;
  width: auto;
  display: block;
}
.footer-brand .logo {
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

/* ============================================================
   Language switcher
   ============================================================ */
.lang-switcher {
  appearance: none;
  -webkit-appearance: none;
  background: #fff
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2351607a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>")
    no-repeat right 8px center;
  background-size: 12px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 26px 6px 10px;
  line-height: 1.2;
  cursor: pointer;
  min-width: 78px;
  font-family: inherit;
}
.lang-switcher:hover { border-color: var(--primary); }
.lang-switcher:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
[dir="rtl"] .lang-switcher { background-position: left 8px center; padding: 6px 10px 6px 26px; }

/* Form error helper */
.form-error {
  color: var(--warning);
  font-size: 14px;
  margin: 8px 0 0;
  padding: 10px 12px;
  background: #fef3c7;
  border-radius: 8px;
  border: 1px solid #fde68a;
}

/* Slight tweak: bigger CJK hero title line-height to balance ascenders/descenders */
[lang^="zh"] h1,
[lang^="zh"] h2,
[lang^="zh"] h3 { line-height: 1.35; }
