/* askAgent marketing site
   Direction: "sourced answers". Cool blue-white paper, navy ink from the logo visor, brand blue
   for actions, and a soft blue highlighter that only ever marks something that came from your
   own documents. */

:root {
  --paper: #f5f8ff;
  --paper-2: #eaf0fb;
  --surface: #ffffff;
  --ink: #091a3f;            /* logo navy ("ask", visor): 16:1 on --paper */
  --ink-2: #3a4868;
  --logo-blue: #1c6ffd;      /* exact logo blue ("Agent", bubble): accents, icons, large text */
  --brand: #1867f2;          /* logo blue nudged for AA: white text on it 4.9:1; as text on --paper 4.6:1 */
  --brand-hover: #1255d6;
  --brand-ink: #ffffff;
  --brand-soft: #dde8ff;
  --brand-light: #38a0fd;    /* logo gradient start: decoration only, never text */
  --sky: #6aa5ff;            /* accent on navy surfaces (navy text on it 6.4:1) */
  --navy: #091a3f;
  --marker: #ffe15a;         /* yellow highlighter: navy text on it 14:1 */
  --marker-ink: #091a3f;
  --line: #e2e8f5;
  --shadow: 0 1px 2px rgba(9, 26, 63, .06), 0 12px 32px -12px rgba(9, 26, 63, .18);
  --shadow-lg: 0 2px 4px rgba(9, 26, 63, .05), 0 30px 70px -24px rgba(9, 26, 63, .35);

  /* Outfit is a close match for the askAgent wordmark (geometric, single-storey a/g, round ends). */
  --f-display: "Outfit", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-label: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --r: 14px;
  --r-lg: 22px;
  --tilt: -3deg;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0b1220;
    --paper-2: #111a2d;
    --surface: #142038;
    --ink: #e7edf8;
    --ink-2: #a7b4cc;
    --brand: #6aa5ff;          /* dark text on it 7.5:1; as text on --paper 7.5:1 */
    --brand-hover: #8dbdff;
    --brand-ink: #0b1220;
    --brand-soft: #1a2d52;
    --marker: #ffe15a;
    --marker-ink: #091a3f;
    --line: #24324d;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .6);
    --shadow-lg: 0 30px 70px -24px rgba(0, 0, 0, .75);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.08; margin: 0; letter-spacing: -.025em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
code, kbd { font-family: var(--f-mono); font-size: .88em; }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- Highlighter: the one signature device ---------- */
.mark {
  --mark-delay: .5s;
  background-image: linear-gradient(100deg, transparent 0 .06em, var(--marker) .06em calc(100% - .06em), transparent calc(100% - .06em));
  background-repeat: no-repeat;
  background-size: 100% 52%;
  background-position: 0 82%;
  color: inherit;
  padding: 0 .08em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
@media (prefers-color-scheme: dark) {
  .mark { background-image: linear-gradient(100deg, transparent 0 .06em, rgba(255, 225, 90, .34) .06em calc(100% - .06em), transparent calc(100% - .06em)); }
}
.mark--draw { animation: mark-draw .9s cubic-bezier(.6, .1, .2, 1) var(--mark-delay) both; }
@keyframes mark-draw { from { background-size: 0% 52%; } to { background-size: 100% 52%; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 22px;
  font: 600 16px/1 var(--f-body);
  border-radius: 999px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--brand); color: var(--brand-ink); box-shadow: 0 6px 18px -8px var(--brand); }
.btn--primary:hover { background: var(--brand-hover); box-shadow: 0 10px 24px -10px var(--brand); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn--block { width: 100%; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font: 800 22px/1 var(--f-display); letter-spacing: -.03em; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand picture { display: block; line-height: 0; }
.brand-wordmark { display: block; height: 24px; width: auto; }
.brand b { color: var(--brand); font-weight: 800; }
.logo-body { fill: var(--ink); }
.logo-line { fill: var(--paper); }
.nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--brand); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.header-cta { display: flex; align-items: center; gap: 8px; }
.header-cta .login { text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; }
.nav-toggle { display: none; }

/* Header collapses to the menu button below 1100px: six languages' nav labels need the room. */
@media (max-width: 1100px) {
  .nav, .header-cta .login { display: none; }
  .header-cta { margin-inline-start: auto; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line);
    background: var(--surface); color: var(--ink); cursor: pointer;
  }
  .nav-toggle svg { width: 20px; height: 20px; }
  .site-header.is-open .nav {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 16px;
  }
  .site-header.is-open .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 17px; color: var(--ink); }
  .site-header.is-open .nav .nav-login { display: block; }
}
.nav .nav-login { display: none; }
/* Keep the header on one line: brand never shrinks, links don't wrap. Contact is in the footer and the
   mobile menu; on mid-width desktops it is dropped from the bar so long languages still fit. */
.site-header .brand { flex: none; }
.nav a, .header-cta .login { white-space: nowrap; }
@media (min-width: 1101px) and (max-width: 1240px) { .nav .nav-contact { display: none; } }
/* Long "Start free" labels (Filipino, French, Polish...) wrap to two tight lines on phones instead of pushing
   the menu button off-screen. The max-width is what the bar leaves after brand, language and menu buttons. */
@media (max-width: 480px) {
  .header-cta .btn--sm { max-width: calc(100vw - 264px); min-height: 40px; height: auto; white-space: normal; text-align: center; line-height: 1.05; font-size: 13.5px; padding: 3px 12px; }
}
@media (max-width: 400px) { .header-cta .btn { padding: 0 12px; } }

/* ---------- Sections ---------- */
section { padding: clamp(64px, 9vw, 112px) 0; }
.eyebrow {
  display: inline-block; font: 600 13px/1 var(--f-label); letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 18px;
}
.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { font-size: clamp(32px, 5vw, 52px); font-weight: 800; }
.section-head p { margin-top: 16px; color: var(--ink-2); font-size: 19px; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 8vw, 104px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(40px, 5.2vw, 66px); font-weight: 800; letter-spacing: -.04em; line-height: 1.02; }
.hero .lede { margin-top: 24px; font-size: clamp(18px, 1.6vw, 20px); color: var(--ink-2); max-width: 520px; }
.hero .ctas { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero .fine { margin-top: 18px; font-size: 14px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.hero .fine span { display: inline-flex; align-items: center; gap: 6px; }
.hero .fine svg { width: 16px; height: 16px; color: var(--brand); }

/* Stage: a source document behind, the live widget in front */
.stage { position: relative; min-height: 560px; }
.doc {
  position: absolute; inset-inline-start: 0; top: 30px; width: 56%;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow); padding: 22px 22px 26px;
  transform: rotate(var(--tilt)); transform-origin: top left;
  font-size: 13px; line-height: 1.5;
}
.doc-tab { display: flex; align-items: center; gap: 8px; font: 500 12px/1 var(--f-mono); color: var(--ink-2); margin-bottom: 16px; }
.doc-tab i { width: 18px; height: 22px; border-radius: 3px; background: #d93f2f; position: relative; flex: none; }
.doc-tab i::after { content: "PDF"; position: absolute; inset: auto 0 3px; font: 700 6px/1 var(--f-body); color: #fff; text-align: center; font-style: normal; }
.doc h4 { font: 700 15px/1.2 var(--f-display); margin-bottom: 10px; letter-spacing: -.01em; }
.doc-row { display: flex; gap: 10px; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.doc-row span:first-child { width: 8.4em; flex: none; }
.doc-row span:last-child { font-family: var(--f-mono); font-size: 12px; white-space: nowrap; }
.doc-row.is-cited { background-image: linear-gradient(var(--marker), var(--marker)); background-repeat: no-repeat; background-size: 0% 100%; border-radius: 3px; margin: 0 -6px; padding-left: 6px; padding-right: 6px; color: var(--marker-ink); }
.doc .gap { height: 14px; }
.doc .faint { height: 8px; border-radius: 4px; background: var(--paper-2); margin-top: 8px; }
.doc .faint.s { width: 70%; }

.panel {
  /* The demo bot is themed in the business's colour: here, askAgent blue. */
  --wa: #1c6ffd; --wa-light: #38a0fd; --wa-dark: #1867f2; --wa-bg: #eef2f9; --wa-out: #dce9ff; --wa-text: #111b21; --wa-meta: #667781;
  position: absolute; inset-inline-end: 0; top: 0; width: min(336px, 60%);
  border-radius: 18px; overflow: hidden; background: var(--wa-bg);
  box-shadow: var(--shadow-lg); color: var(--wa-text);
  font: 400 14px/1.4 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.panel-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; color: #fff; background: linear-gradient(135deg, var(--wa-light) 0%, var(--wa-dark) 100%); }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .25); display: grid; place-items: center; font-weight: 700; position: relative; flex: none; }
.avatar::after { content: ""; position: absolute; inset-inline-end: 0; bottom: 0; width: 10px; height: 10px; border-radius: 50%; background: #4ade80; border: 2px solid var(--wa-dark); }
.panel-head strong { display: block; font-size: 15px; }
.panel-head small { display: block; font-size: 12px; opacity: .9; }
.panel-head .x { margin-inline-start: auto; opacity: .85; font-size: 20px; line-height: 1; }
.chat {
  padding: 14px 12px 6px; display: flex; flex-direction: column; gap: 6px; min-height: 340px;
  background-image: radial-gradient(rgba(0, 0, 0, .045) 1px, transparent 1.2px); background-size: 14px 14px;
}
.day { align-self: center; font-size: 11.5px; color: var(--wa-meta); background: #fff; padding: 3px 9px; border-radius: 7px; margin-bottom: 4px; box-shadow: 0 1px .5px rgba(0, 0, 0, .1); }
.msg { max-width: 84%; padding: 7px 9px 6px; border-radius: 8px; box-shadow: 0 1px .5px rgba(0, 0, 0, .13); position: relative; }
.msg time { display: block; text-align: end; font-size: 10.5px; color: var(--wa-meta); margin-top: 2px; }
.msg.in { align-self: flex-start; background: #fff; border-start-start-radius: 0; }
.msg.out { align-self: flex-end; background: var(--wa-out); border-start-end-radius: 0; }
.msg.out time::after { content: " ✓✓"; color: #53bdeb; letter-spacing: -2px; }
.src { display: flex; width: fit-content; align-items: center; gap: 5px; margin-top: 6px; font: 500 10.5px/1 var(--f-mono); color: #24365c; background: #e6efff; border: 1px solid #a9c8ff; border-radius: 5px; padding: 4px 6px; }
.typing { align-self: flex-start; background: #fff; border-radius: 8px; border-start-start-radius: 0; padding: 10px 12px; display: flex; gap: 4px; box-shadow: 0 1px .5px rgba(0, 0, 0, .13); }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #9aa5ad; animation: dot 1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-3px); opacity: 1; } }
.composer { display: flex; align-items: center; gap: 8px; padding: 8px 10px 10px; background: #f0f2f5; }
.composer span { flex: 1; background: #fff; border-radius: 20px; padding: 9px 14px; color: #8696a0; font-size: 13.5px; }
.composer b { width: 36px; height: 36px; border-radius: 50%; background: var(--wa); display: grid; place-items: center; flex: none; }
.composer b svg { width: 16px; height: 16px; fill: #fff; }

@keyframes pulse { 0% { transform: scale(1); opacity: .45; } 80%, 100% { transform: scale(1.6); opacity: 0; } }
.stage-note { position: absolute; inset-inline-start: 4%; bottom: 18px; font: 500 12px/1.4 var(--f-label); color: var(--ink-2); max-width: 46%; }
.stage-note::before { content: ""; display: inline-block; width: 22px; height: 10px; background: var(--marker); vertical-align: -1px; margin-inline-end: 8px; border-radius: 2px; }

/* Hero choreography (one sequence, plays once on load) */
.seq { animation: pop .45s cubic-bezier(.2, .9, .3, 1.2) both; }
.typing.seq { animation: pop .3s ease both, vanish .2s ease forwards; }
.t1 { animation-delay: .5s; }
.t2 { animation-delay: 1.3s, 2.5s; }
.t3 { animation-delay: 2.6s; }
.t4 { animation-delay: 4.0s; }
.t5 { animation-delay: 4.8s, 5.9s; }
.t6 { animation-delay: 6.0s; }
.panel { animation: rise .7s cubic-bezier(.2, .8, .2, 1) .1s both; }
.doc { animation: doc-in .8s cubic-bezier(.2, .8, .2, 1) both; }
.cite-1 { animation: cite .6s ease 2.8s forwards; }
.cite-2 { animation: cite .6s ease 6.2s forwards; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes vanish { to { opacity: 0; height: 0; padding: 0; margin: -6px 0 0; overflow: hidden; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes doc-in { from { opacity: 0; transform: rotate(calc(var(--tilt) * 2)) translateY(16px); } to { opacity: 1; transform: rotate(var(--tilt)); } }
@keyframes cite { to { background-size: 100% 100%; } }

@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .stage { max-width: 560px; width: 100%; margin: 0 auto; }
}
@media (max-width: 520px) {
  .stage { min-height: 0; }
  .doc { width: 82%; top: 0; }
  .panel { position: relative; top: auto; margin: 186px 0 0; margin-inline-start: auto; width: 90%; }
  .chat { min-height: 0; }
  .stage-note { display: none; }
}

/* ---------- How it works ---------- */
.how { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; counter-reset: step; }
.step { padding: 0 clamp(16px, 2.5vw, 32px); border-inline-start: 1px solid var(--line); counter-increment: step; }
.step:first-child { padding-inline-start: 0; border-inline-start: 0; }
.step::before {
  content: counter(step); display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--ink);
  font: 700 17px/1 var(--f-display); margin-bottom: 22px;
}
.step h3 { font-size: 24px; font-weight: 700; margin-bottom: 10px; }
.step p { color: var(--ink-2); }
.step-visual { margin-top: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font: 500 12px/1 var(--f-label); padding: 7px 9px; border-radius: 6px; background: var(--paper); border: 1px solid var(--line); }
.chip--url { width: 100%; display: flex; gap: 8px; align-items: center; }
.chip--url::before { content: "↳"; color: var(--brand); }
.swatches { display: flex; gap: 8px; align-items: center; }
.swatches span { width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .6); }
.swatches span.on { outline: 2px solid var(--ink); outline-offset: 2px; }
.instr { margin-top: 10px; font-size: 13px; color: var(--ink-2); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font-style: italic; }
.code {
  background: #0e1830; color: #d8e2f5; border-radius: 10px; padding: 14px 16px;
  font: 400 12.5px/1.6 var(--f-mono); overflow-x: auto; white-space: pre; -webkit-overflow-scrolling: touch;
}
.code .t { color: #8dbdff; } .code .a { color: #c9b3ff; } .code .s { color: #f3b48b; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .step, .step:first-child { padding: 0; border-inline-start: 0; }
}

/* ---------- Features ---------- */
.features-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.feature { background: var(--paper); padding: 28px 26px 30px; }
.feature svg { width: 26px; height: 26px; color: var(--brand); margin-bottom: 18px; }
.feature h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; line-height: 1.2; letter-spacing: -.015em; }
.feature p { color: var(--ink-2); font-size: 16px; }
.feature--lead { grid-column: span 2; background: var(--surface); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.feature--lead h3 { font-size: 28px; }
.honest { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.honest .q, .honest .a { padding: 10px 12px; border-radius: 12px; max-width: 92%; }
.honest .q { align-self: flex-end; background: var(--brand-soft); border-end-end-radius: 3px; }
.honest .a { background: var(--paper); border: 1px solid var(--line); border-end-start-radius: 3px; }
.honest .flag { font: 500 11px/1.3 var(--f-label); color: var(--ink-2); display: flex; gap: 6px; align-items: center; }
.honest .flag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #e0a100; flex: none; }
@media (max-width: 960px) {
  .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature--lead { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .features-grid { grid-template-columns: 1fr; }
  .feature--lead { grid-template-columns: 1fr; }
}

/* ---------- Themes ---------- */
.themes { padding-top: 0; }
.theme-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.theme { margin: 0; }
.theme figcaption { margin-top: 12px; font: 500 13px/1.3 var(--f-label); color: var(--ink-2); }
.theme figcaption b { font-family: var(--f-body); color: var(--ink); font-size: 15px; display: block; margin-bottom: 2px; }
.tm { --tm-r: 14px; border-radius: var(--tm-r); overflow: hidden; background: var(--tm-bg); box-shadow: var(--shadow); height: 230px; display: flex; flex-direction: column; transition: transform .25s ease; position: relative; font: 400 12px/1.35 -apple-system, "Segoe UI", Roboto, sans-serif; }
.theme:hover .tm { transform: translateY(-4px) rotate(-.6deg); }
.tm-head { background: var(--tm-head); color: var(--tm-head-fg); padding: 10px 12px; display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 12.5px; }
.tm-head i { width: 22px; height: 22px; border-radius: 50%; background: var(--tm-av, rgba(255, 255, 255, .3)); flex: none; }
.tm-body { flex: 1; padding: 12px 10px; display: flex; flex-direction: column; gap: 6px; background: var(--tm-chat, transparent); }
.tm-b { max-width: 85%; padding: 6px 9px; border-radius: var(--tm-br, 8px); }
.tm-b.in { align-self: flex-start; background: var(--tm-in); color: var(--tm-in-fg); border: var(--tm-in-bo, 0); }
.tm-b.out { align-self: flex-end; background: var(--tm-out); color: var(--tm-out-fg); }
.tm-launch { position: absolute; inset-inline-end: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%; background: var(--tm-launch); box-shadow: 0 4px 12px rgba(0, 0, 0, .25); }

.tm--whatsapp { --tm-bg: #efeae2; --tm-head: linear-gradient(135deg, #25d366, #128c4b); --tm-head-fg: #fff; --tm-in: #fff; --tm-in-fg: #111b21; --tm-out: #d9fdd3; --tm-out-fg: #111b21; --tm-launch: #25d366; --tm-chat: radial-gradient(rgba(0,0,0,.05) 1px, transparent 1.2px) 0 0 / 12px 12px; }
.tm--messenger { --tm-r: 18px; --tm-bg: #fff; --tm-head: #fff; --tm-head-fg: #050505; --tm-av: linear-gradient(135deg, #0a7cff, #a033ff); --tm-in: #f0f0f0; --tm-in-fg: #050505; --tm-out: linear-gradient(135deg, #0a7cff, #4a5cff); --tm-out-fg: #fff; --tm-br: 16px; --tm-launch: linear-gradient(135deg, #0a7cff, #a033ff); }
.tm--messenger .tm-head { border-bottom: 1px solid #eee; }
.tm--midnight { --tm-bg: #0b141a; --tm-head: #1f2c34; --tm-head-fg: #e9edef; --tm-av: #2a3942; --tm-in: #202c33; --tm-in-fg: #e9edef; --tm-out: #005c4b; --tm-out-fg: #e9edef; --tm-launch: #00a884; --tm-chat: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1.2px) 0 0 / 12px 12px; }
.tm--glass { --tm-r: 20px; --tm-bg: radial-gradient(circle at 15% 20%, rgba(37,211,102,.28), transparent 50%), radial-gradient(circle at 85% 85%, rgba(56,152,255,.28), transparent 55%), #f5f8fb; --tm-head: linear-gradient(135deg, rgba(23,170,110,.9), rgba(40,120,220,.9)); --tm-head-fg: #fff; --tm-in: rgba(255,255,255,.7); --tm-in-fg: #0f172a; --tm-in-bo: 1px solid rgba(255,255,255,.9); --tm-out: rgba(23,150,100,.85); --tm-out-fg: #fff; --tm-br: 14px; --tm-launch: linear-gradient(135deg, #25d366, #2f8cff); }
.tm--glass .tm-b.in { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.tm--aurora { --tm-r: 18px; --tm-bg: linear-gradient(160deg, rgba(37,211,102,.1), rgba(37,150,211,.09) 50%, rgba(140,80,230,.1)), #fff; --tm-head: linear-gradient(90deg, #13864f, #136a8a, #5a3aa8); --tm-head-fg: #fff; --tm-in: #fff; --tm-in-fg: #1f2937; --tm-out: linear-gradient(135deg, #13864f, #136a8a); --tm-out-fg: #fff; --tm-br: 16px; --tm-launch: linear-gradient(135deg, #13864f, #136a8a, #5a3aa8); }
.tm--aurora .tm-b.in { box-shadow: 0 2px 10px rgba(37,211,102,.15); }
.tm--aurora .tm-head { background-size: 300% 100%; animation: aurora 7s ease-in-out infinite alternate; }
@keyframes aurora { from { background-position: 0% 0; } to { background-position: 100% 0; } }
.themes-more { margin-top: 28px; color: var(--ink-2); font-size: 15px; }
@media (max-width: 960px) {
  .theme-strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 16px; margin: 0 -4px; -webkit-overflow-scrolling: touch; }
  .theme { flex: 0 0 200px; scroll-snap-align: start; }
}

/* ---------- Pricing ---------- */
.pricing { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 920px; }
.plan { border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 3.5vw, 36px); background: var(--paper); display: flex; flex-direction: column; }
.plan-name { font: 700 22px/1 var(--f-display); min-height: 26px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.badge { font: 600 11px/1 var(--f-label); text-transform: uppercase; letter-spacing: .06em; background: var(--marker); color: var(--marker-ink); padding: 6px 8px; border-radius: 6px; }
.price { margin: 20px 0 6px; display: flex; align-items: baseline; gap: 6px; }
.price strong { font: 800 64px/1 var(--f-display); letter-spacing: -.04em; }
.price span { color: var(--ink-2); }
.plan-sub { color: var(--ink-2); font-size: 15px; min-height: 3.2em; }
.plan .btn { margin: 24px 0; }
.plan ul { list-style: none; display: grid; gap: 11px; font-size: 15.5px; }
.plan li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; }
.plan li svg { width: 18px; height: 18px; margin-top: 3px; color: var(--brand); }
.plan li.muted { color: var(--ink-2); }
.plan li.muted svg { color: var(--ink-2); }
.plan--pro { background: var(--navy); color: #f5f8ff; border-color: var(--navy); box-shadow: var(--shadow-lg); position: relative; }
.plan--pro .price span, .plan--pro .plan-sub { color: #c3d0e6; }
.plan--pro li svg { color: var(--sky); }
.plan--pro .btn--primary { background: var(--sky); color: var(--navy); box-shadow: none; }
.plan--pro .btn--primary:hover { background: #8dbdff; }
.plan--pro :focus-visible { outline-color: var(--sky); }
.pricing-note { margin-top: 28px; max-width: 920px; display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-2); border: 1px dashed var(--line); border-radius: var(--r); padding: 14px 16px; }
.pricing-note svg { width: 20px; height: 20px; flex: none; color: var(--brand); margin-top: 2px; }
.pricing-link { margin-top: 20px; font-weight: 600; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } .plan-sub { min-height: 0; } }

/* Compare table (pricing page) */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.compare { width: 100%; border-collapse: collapse; font-size: 15.5px; }
@media (max-width: 520px) { .table-wrap .compare { font-size: 14px; } .table-wrap .compare th, .table-wrap .compare td { padding: 11px 8px; } .table-wrap .compare caption { padding: 16px 8px 0; } }
.compare caption { text-align: start; padding: 18px 20px 0; font: 700 20px/1.2 var(--f-display); }
.compare th, .compare td { padding: 14px 20px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font: 600 13px/1 var(--f-label); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
.compare tbody th { font-weight: 500; }
.compare td:last-child { background: color-mix(in srgb, var(--marker) 14%, transparent); }
.compare tr:last-child > * { border-bottom: 0; }
.compare .grp th { font: 700 13px/1 var(--f-label); text-transform: uppercase; letter-spacing: .05em; color: var(--brand); padding-top: 24px; background: var(--surface); }

/* ---------- FAQ ---------- */
.faq .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq .section-head { position: sticky; top: 100px; }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; padding-inline-end: 40px; position: relative; font: 600 19px/1.35 var(--f-display); letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; inset-inline-end: 6px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-75%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq details p { padding: 0 0 24px; color: var(--ink-2); max-width: 60ch; }
.faq details p + p { margin-top: -12px; }
@media (max-width: 860px) {
  .faq .wrap { grid-template-columns: 1fr; }
  .faq .section-head { position: static; margin-bottom: 8px; }
}

/* ---------- Final CTA ---------- */
.cta-band { padding: 0 0 clamp(64px, 9vw, 112px); }
.cta-card { background: radial-gradient(circle at 100% 0%, rgba(63, 149, 255, .32), transparent 46%), var(--navy); color: #f5f8ff; border-radius: 28px; padding: clamp(36px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 32px; align-items: end; position: relative; overflow: hidden; }
.cta-card h2 { font-size: clamp(32px, 5vw, 56px); font-weight: 800; letter-spacing: -.035em; }
.cta-card h2 .mark { background: none; color: var(--sky); padding: 0; }
.cta-card p { margin-top: 16px; color: #c3d0e6; font-size: 18px; max-width: 520px; }
.cta-card .ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-card .btn--primary { background: var(--sky); color: var(--navy); box-shadow: none; }
.cta-card .btn--primary:hover { background: #8dbdff; }
.cta-card .btn--ghost { border-color: rgba(245, 248, 255, .5); color: #f5f8ff; }
.cta-card .btn--ghost:hover { background: #f5f8ff; color: var(--navy); }
.cta-card :focus-visible { outline-color: var(--sky); }
@media (max-width: 760px) { .cta-card { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.site-footer nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-footer nav a { text-decoration: none; color: var(--ink-2); }
.site-footer nav a:hover { color: var(--ink); text-decoration: underline; }
.site-footer small { color: var(--ink-2); font-size: 14px; width: 100%; }

/* ---------- Simple pages (pricing hero, legal) ---------- */
.page-head { padding: clamp(48px, 7vw, 88px) 0 clamp(32px, 4vw, 48px); }
.page-head h1 { font-size: clamp(38px, 6vw, 68px); font-weight: 800; letter-spacing: -.04em; max-width: 14ch; }
.page-head p { margin-top: 18px; font-size: 19px; color: var(--ink-2); max-width: 600px; }
.pricing--page { border-top: 0; background: transparent; padding-top: 0; }
.prose { max-width: 720px; padding-bottom: clamp(64px, 9vw, 112px); }
.prose h2 { font-size: 24px; margin: 36px 0 10px; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-inline-start: 1.2em; display: grid; gap: 6px; margin-top: 10px; }
.placeholder-banner { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: flex-start; background: color-mix(in srgb, var(--marker) 40%, var(--surface)); color: var(--ink); border: 1px solid #e8c84a; border-radius: var(--r); padding: 14px 16px; font-weight: 500; margin-bottom: 8px; }
.placeholder-banner span { flex: 1 1 240px; }
.placeholder-banner strong { text-transform: uppercase; font: 600 12px/1.6 var(--f-label); letter-spacing: .06em; white-space: nowrap; }
@media (prefers-color-scheme: dark) { .placeholder-banner { background: #15264a; border-color: #2b4a80; } }

/* ---------- Reveal on scroll (progressive: only when JS adds .js) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Reduced motion: show final states, no movement ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
@media (min-width: 621px) and (max-width: 960px) { .feature--key { grid-column: 1 / -1; } }

/* Dark mode: keep the "inverted" cards dark instead of flipping to light panels */
@media (prefers-color-scheme: dark) {
  .plan--pro { background: var(--brand-soft); color: var(--ink); border-color: color-mix(in srgb, var(--brand) 45%, transparent); }
  .plan--pro .price span, .plan--pro .plan-sub { color: var(--ink-2); }
  .cta-card { background: radial-gradient(circle at 100% 0%, rgba(63, 149, 255, .22), transparent 46%), var(--brand-soft); color: var(--ink); }
  .plan--pro .badge { background: var(--sky); color: var(--navy); }
  .cta-card p { color: var(--ink-2); }
  .cta-card .btn--ghost { border-color: var(--ink-2); color: var(--ink); }
  .cta-card .btn--ghost:hover { background: var(--ink); color: var(--paper); }
}

/* Pricing is centered: heading, plan cards, note and links. */
.pricing .section-head, .page-head--center .wrap > * { margin-left: auto; margin-right: auto; text-align: center; }
.page-head--center .wrap { text-align: center; }
.plans, .pricing-note { margin-left: auto; margin-right: auto; }
.pricing-link { text-align: center; }
.compare-section .table-wrap { max-width: 920px; margin-left: auto; margin-right: auto; }

/* ---------- Language switcher (header: <details> menu; footer: plain links). Works without JS. ---------- */
.lang-switch { position: relative; }
.lang-switch summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 5px;
  min-height: 40px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line);
  font: 600 13px/1 var(--f-label); letter-spacing: .04em; color: var(--ink-2); background: transparent;
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover, .lang-switch[open] summary { color: var(--ink); border-color: var(--ink-2); }
.lang-switch summary svg { width: 16px; height: 16px; flex: none; }
.lang-switch summary .caret { width: 14px; height: 14px; transition: transform .2s; }
.lang-switch[open] summary .caret { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 60;
  list-style: none; min-width: 168px; padding: 6px; margin: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg);
  /* 14 languages: two columns, filled top-to-bottom so the list reads in order; scrolls if the viewport is short. */
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(var(--rows, 7), auto);
  grid-auto-flow: column; column-gap: 4px; width: max-content; max-width: calc(100vw - 2 * var(--gutter));
  max-height: calc(100vh - 96px); max-height: calc(100dvh - 96px); overflow-y: auto; overscroll-behavior: contain;
}
.lang-menu li { min-width: 0; }
.lang-menu a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 150px; padding: 10px 12px; border-radius: 8px; text-decoration: none; font-size: 15px; line-height: 1.3; color: var(--ink); }
.lang-menu a:hover { background: var(--paper-2); }
.lang-menu a[aria-current="true"] { font-weight: 600; }
.lang-menu a[aria-current="true"]::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); flex: none; }
@media (max-width: 400px) {
  .lang-switch summary { padding: 0 8px; gap: 3px; }
  .lang-switch summary .caret { display: none; }
}
/* Phones: anchor the menu to the sticky header (not the small button) so it spans the screen inside the gutters. */
@media (max-width: 620px) {
  .lang-switch { position: static; }
  .lang-menu { top: calc(100% - 6px); inset-inline: var(--gutter); width: auto; max-width: none; }
  .lang-menu a { min-width: 0; }
}

.footer-langs { width: 100%; display: flex; align-items: center; gap: 10px; color: var(--ink-2); }
.footer-langs svg { width: 16px; height: 16px; flex: none; }
.footer-langs { align-items: flex-start; }
.footer-langs svg { margin-top: .3em; }
.footer-langs ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-langs li { white-space: nowrap; }
.footer-langs a { text-decoration: none; color: var(--ink-2); }
.footer-langs a:hover { color: var(--ink); text-decoration: underline; }
.footer-langs a[aria-current="true"] { color: var(--ink); font-weight: 600; }

/* ---------- Scripts: Arabic and Devanagari fonts (loaded only on those pages) ---------- */
:root:lang(ar) {
  --f-display: "Outfit", "IBM Plex Sans Arabic", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Outfit", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-label: "Outfit", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", "IBM Plex Sans Arabic", ui-monospace, Menlo, Consolas, monospace;
}
:root:lang(hi) {
  --f-display: "Outfit", "Noto Sans Devanagari", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Outfit", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-label: "Outfit", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", "Noto Sans Devanagari", ui-monospace, Menlo, Consolas, monospace;
}
/* ---------- Scripts: Japanese, Korean, Thai (Noto fonts loaded only on those pages; system fonts as fallback) ---------- */
:root:lang(ja) {
  --f-display: "Outfit", "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --f-body: "Outfit", "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, system-ui, sans-serif;
  --f-label: var(--f-body);
  --f-mono: "IBM Plex Mono", "Noto Sans JP", ui-monospace, Menlo, Consolas, monospace;
}
:root:lang(ko) {
  --f-display: "Outfit", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --f-body: "Outfit", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --f-label: var(--f-body);
  --f-mono: "IBM Plex Mono", "Noto Sans KR", ui-monospace, Menlo, Consolas, monospace;
}
:root:lang(th) {
  --f-display: "Outfit", "Noto Sans Thai", Thonburi, "Leelawadee UI", Tahoma, sans-serif;
  --f-body: "Outfit", "Noto Sans Thai", Thonburi, "Leelawadee UI", Tahoma, system-ui, sans-serif;
  --f-label: var(--f-body);
  --f-mono: "IBM Plex Mono", "Noto Sans Thai", ui-monospace, Menlo, Consolas, monospace;
}
/* Line breaking. Japanese: strict kinsoku, phrase-aware breaks in headings where supported (Chrome 119+).
   Korean: break at spaces between words, never inside a word. Thai has no spaces: the browser breaks at word
   boundaries by dictionary; overflow-wrap is the safety net for long unbroken runs on narrow screens. */
:root:is(:lang(ja), :lang(ko)) body { line-break: strict; word-break: normal; overflow-wrap: anywhere; }
:root:lang(ja) :is(h1, h2, h3) { word-break: auto-phrase; }
:root:lang(ko) body { word-break: keep-all; }
:root:lang(th) body { word-break: normal; line-break: auto; overflow-wrap: anywhere; }
:root:is(:lang(ja), :lang(ko), :lang(th)) :is(h1, h2, h3) { text-wrap: pretty; }

/* Tight tracking breaks Arabic joining, crowds Devanagari/Thai marks and CJK; taller lines keep marks unclipped. */
:root:is(:lang(ar), :lang(hi), :lang(ja), :lang(ko), :lang(th)) :is(h1, h2, h3, h4, .eyebrow, summary, .badge, th, .placeholder-banner strong, .brand-wordmark) { letter-spacing: 0; }
:root:is(:lang(ar), :lang(hi)) :is(h1, h2, h3, h4) { line-height: 1.3; }
:root:is(:lang(ja), :lang(ko)) :is(h1, h2, h3, h4) { line-height: 1.35; }
:root:lang(th) :is(h1, h2, h3, h4) { line-height: 1.45; }
:root:is(:lang(ar), :lang(hi)) .hero h1 { line-height: 1.25; letter-spacing: 0; }
:root:is(:lang(ja), :lang(ko)) .hero h1 { line-height: 1.3; letter-spacing: 0; }
:root:lang(th) .hero h1 { line-height: 1.4; letter-spacing: 0; }
:root:is(:lang(ar), :lang(hi), :lang(ja), :lang(ko)) .faq summary { line-height: 1.5; }
:root:lang(th) .faq summary { line-height: 1.6; }
:root:lang(ar) body { line-height: 1.75; }
:root:lang(hi) body { line-height: 1.7; }
:root:is(:lang(ja), :lang(ko)) body { line-height: 1.8; }
:root:lang(th) body { line-height: 1.8; }

/* ---------- Right-to-left (Arabic) ---------- */
[dir="rtl"] { --tilt: 3deg; }
[dir="rtl"] .doc { transform-origin: top right; }
[dir="rtl"] .doc-row.is-cited { background-position: right; }
[dir="rtl"] .mark { background-position: 100% 82%; }
[dir="rtl"] .chip--url::before { content: "\21B2"; }
[dir="rtl"] .theme:hover .tm { transform: translateY(-4px) rotate(.6deg); }
.compare-section { padding-top: 0; }
:root:lang(ar) .hero h1 { font-size: clamp(34px, 4.2vw, 54px); }
:root:lang(hi) .hero h1 { font-size: clamp(34px, 4.4vw, 58px); }
:root:is(:lang(ar), :lang(hi)) .eyebrow { font-size: 14px; letter-spacing: 0; }
/* CJK glyphs are full-width and Thai stacks marks: smaller display sizes keep headlines to a few lines. */
:root:is(:lang(ja), :lang(ko)) .hero h1 { font-size: clamp(30px, 4vw, 52px); }
:root:lang(th) .hero h1 { font-size: clamp(30px, 4.2vw, 54px); }
:root:is(:lang(ja), :lang(ko), :lang(th)) .section-head h2 { font-size: clamp(26px, 3.8vw, 42px); }
:root:is(:lang(ja), :lang(ko), :lang(th)) .cta-card h2 { font-size: clamp(26px, 4vw, 46px); letter-spacing: 0; }
:root:is(:lang(ja), :lang(ko), :lang(th)) .page-head h1 { font-size: clamp(30px, 5vw, 56px); letter-spacing: 0; max-width: 16em; }
:root:is(:lang(ja), :lang(ko), :lang(th)) .eyebrow { font-size: 14px; letter-spacing: .02em; text-transform: none; }
/* Long words (German compounds, French labels) on small screens */
h1, h2, h3 { overflow-wrap: break-word; }
:root:lang(de) :is(h1, h2, h3) { -webkit-hyphens: auto; hyphens: auto; }
@media (max-width: 480px) {
  .site-header .wrap { gap: 12px; }
  .header-cta { gap: 6px; }
  .brand { font-size: 20px; gap: 7px; }
  .brand svg { width: 30px; height: 30px; }
  .brand-wordmark { height: 21px; }
  .header-cta .btn--sm { padding: 0 10px; font-size: 14px; }
  .lang-switch summary { padding: 0 9px; }
  .lang-switch summary .lang-code, .lang-switch summary .caret { display: none; }
}

/* ---------- Contact page ---------- */
.contact { padding-top: 0; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 4vw, 36px); box-shadow: var(--shadow); }
.contact-form { display: grid; gap: 20px; }
.contact-form[hidden] { display: none; }
.cf-note { font-size: 14px; color: var(--ink-2); }
.field { display: grid; gap: 6px; min-width: 0; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field label { font-weight: 600; font-size: 15px; }
.field .req { color: var(--brand); margin-inline-start: 2px; }
.field .opt { font-weight: 400; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; font: 400 16px/1.4 var(--f-body); color: var(--ink);
  background: var(--paper); border: 1.5px solid color-mix(in srgb, var(--ink-2) 65%, var(--line)); border-radius: 10px;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 160px; }
.field select { appearance: none; -webkit-appearance: none; padding-inline-end: 40px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
[dir="rtl"] .field select { background-position: 15px 52%, 20px 52%; }
[dir="rtl"] .field input[dir="ltr"] { text-align: right; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; }
.field [aria-invalid="true"] { border-color: #c4321f; }
.field-hint { font-size: 13.5px; color: var(--ink-2); }
.field-error { --err: #b42318; --err-ink: #fff; font-size: 14px; font-weight: 600; color: var(--err); display: flex; gap: 6px; align-items: baseline; }
.field-error::before { content: "!"; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--err); color: var(--err-ink); font-size: 11px; line-height: 1; flex: none; transform: translateY(2px); }
.field-error[hidden] { display: none; }
.cf-alert:empty { display: none; }
.cf-alert { border: 1px solid #f1b8ae; background: #fff1ee; color: #8a1c0e; border-radius: var(--r); padding: 12px 14px; font-weight: 500; }
.contact-form .btn { justify-self: start; min-width: 180px; }
.contact-form .btn[disabled] { opacity: .7; cursor: progress; transform: none; }
/* Honeypot: hidden from people and assistive tech; clipped in place (a far-off "left" offset breaks RTL scrolling). */
.contact-card { position: relative; }
.hp { position: absolute !important; top: 0; inset-inline-start: 0; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }
.cf-status { outline: none; }
.cf-status--ok { padding: 8px 0; }
.cf-status--ok h2 { font-size: clamp(24px, 3vw, 30px); display: flex; gap: 12px; align-items: center; }
.cf-status--ok h2::before { content: ""; width: 34px; height: 34px; border-radius: 50%; flex: none;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat; }
.cf-status--ok p { margin-top: 12px; color: var(--ink-2); font-size: 18px; overflow-wrap: anywhere; }
.cf-status--ok strong { color: var(--ink); }
.contact-aside { background: var(--brand-soft); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 30px); }
.contact-aside h2 { font-size: 22px; font-weight: 700; margin-bottom: 16px; }
.contact-aside h3 { font-size: 16px; font-weight: 700; margin: 24px 0 8px; }
.contact-aside ul { list-style: none; display: grid; gap: 12px; }
.contact-aside li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; color: var(--ink-2); }
.contact-aside li svg { width: 18px; height: 18px; margin-top: 4px; color: var(--brand); }
.company-card { margin-top: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 30px); }
.company-card h2 { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.company-of { color: var(--ink-2); margin: 0 0 16px; }
.company-of strong { color: var(--ink); }
.company-dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 16px; margin: 0; }
.company-dl dt { color: var(--ink-2); font-size: 14px; }
.company-dl dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.company-dl a { color: var(--brand); text-decoration: none; }
.company-dl a:hover { text-decoration: underline; }
.company-follow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 18px 0 0; font-size: 14px; color: var(--ink-2); }
.company-follow a { color: var(--brand); font-weight: 600; text-decoration: none; }
.company-follow a:hover { text-decoration: underline; }
@media (max-width: 420px) { .company-dl { grid-template-columns: 1fr; gap: 2px; } .company-dl dd { margin-bottom: 10px; } }
.contact-links { display: flex; flex-wrap: wrap; gap: 8px 20px; font-weight: 600; }
.contact-links a { color: var(--brand); }
@media (prefers-color-scheme: dark) {
  .cf-alert { background: #3a1712; border-color: #7a2c20; color: #ffd2c9; }
  .field-error { --err: #ff9d8a; --err-ink: #0b1220; }
  .field [aria-invalid="true"] { border-color: #ff9d8a; }
}
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
  .contact-form .btn { justify-self: stretch; }
}
