/* BOTOTO site stylesheet. One file for every page. Single light theme. */

/* ---------- Fonts (self-hosted, no third-party requests; relative URLs work under any base path) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Noto Sans Georgian";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/noto-sans-georgian-georgian-wght-normal.woff2") format("woff2");
  unicode-range: U+0589, U+10A0-10FF, U+1C90-1CBA, U+1CBD-1CBF, U+2D00-2D2F;
}
/* Metric-matched fallback keeps text from shifting while Inter loads */
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Helvetica"), local("Liberation Sans");
  ascent-override: 90.44%;
  descent-override: 22.52%;
  line-gap-override: 0%;
  size-adjust: 107.12%;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;

  /* Base: warm paper and slate ink */
  --canvas: #F8F6F1;
  --surface: #FFFFFF;
  --surface-sunk: #EFECE6;
  --ink: #272F3A;
  --ink-2: #3A4350;
  --muted: #5E6A78;
  --subtle: #7C8591;
  --line: #E1DDD6;
  --line-strong: #D3CEC5;
  --night: #232A33;
  --avatar: #E8E3DA;

  /* Teal: the brand, Oto and the team */
  --teal: #1F4C47;
  --teal-hover: #173A36;
  --teal-ink: #173A36;
  --teal-soft: #DEEDEB;
  --teal-mint: #EEF4F2;
  --teal-line: #C7DCD8;
  --teal-line-2: #CFE0DC;
  --teal-pale: #A9CFCA;

  /* Pending and drafts: dashed, quiet teal */
  --pend-bg: #F1F5F3;
  --pend-bg-2: #E6EFEC;
  --pend-line: #8FB3AD;
  --pend-ink: #2F5A54;

  /* Errors */
  --red-soft: #FEF2F2;
  --red-line: #FECACA;
  --red-ink: #B91C1C;

  /* Draft placeholders */
  --ph-bg: #E6EFEC;
  --ph-ink: #2F5A54;
  --ph-line: #8FB3AD;

  /* Type */
  --font: "Inter", "Noto Sans Georgian", "Inter Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Consolas, "Liberation Mono", "Noto Sans Georgian", monospace;
  --fs-small: 0.875rem;    /* 14 */
  --fs-body: 1rem;         /* 16 */
  --fs-lead: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);  /* 17 to 19 */
  --fs-h3: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem);    /* 18 to 20 */
  --fs-h2: clamp(2rem, 3.6vw, 3rem);                     /* 32 to 48 */
  --fs-h1: clamp(2.75rem, 6.2vw, 5.5rem);                /* 44 to 88 */

  /* Space */
  --gutter: 20px;
  --container: 1200px;
  --section-y: clamp(5rem, 2rem + 8.5vw, 10rem);         /* 80 to 160 */
  --header-h: 64px;

  /* Shape */
  --r-sm: 8px;
  --r: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-2xl: 24px;
  --r-pill: 999px;

  /* Elevation: slate-tinted, quiet */
  --shadow-xs: 0 1px 2px rgb(39 47 58 / 0.05);
  --shadow-sm: 0 1px 3px rgb(39 47 58 / 0.08), 0 1px 2px -1px rgb(39 47 58 / 0.05);
  --shadow-lg: 0 24px 48px -20px rgb(39 47 58 / 0.18), 0 8px 16px -8px rgb(39 47 58 / 0.06);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --focus: 0 0 0 2px var(--surface), 0 0 0 4px var(--teal);
}
@media (min-width: 600px) { :root { --gutter: 24px; } }
@media (min-width: 1100px) { :root { --gutter: 32px; --header-h: 72px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--canvas);
  color: var(--ink);
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
main { flex: 1 0 auto; display: block; }
main:focus { outline: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
[hidden] { display: none !important; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--teal-hover); }
strong, b { font-weight: 620; }
::selection { background: var(--teal-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
abbr[title] { text-decoration: none; }

h1, h2, h3, h4 { color: var(--ink); text-wrap: balance; font-weight: 640; }
h1 { font-size: var(--fs-h1); line-height: 1.04; letter-spacing: -0.045em; font-weight: 660; }
h2 { font-size: var(--fs-h2); line-height: 1.08; letter-spacing: -0.035em; }
h3 { font-size: var(--fs-h3); line-height: 1.3; letter-spacing: -0.01em; font-weight: 630; }
h4 { font-size: 1.0625rem; line-height: 1.35; letter-spacing: -0.01em; font-weight: 620; }
p { text-wrap: pretty; }

.visually-hidden {
  position: absolute !important;
  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;
}

.skip-link {
  position: absolute;
  left: 12px; top: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--r);
  background: var(--ink);
  color: var(--surface);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.15s var(--ease);
}
.skip-link:focus { transform: none; color: var(--surface); }

/* Draft placeholder token: visible, readable, obviously unfinished */
.ph {
  background: var(--ph-bg);
  color: var(--ph-ink);
  border-bottom: 1.5px dashed var(--ph-line);
  border-radius: 3px;
  padding: 0.05em 0.3em;
  font-weight: 600;
  font-size: 0.94em;
  letter-spacing: 0;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  overflow-wrap: anywhere;
}
a .ph, .ph a { color: var(--ph-ink); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); border-top: 1px solid var(--line); }
.band-white { background: var(--surface); }
.band-mint { background: var(--teal-mint); }
.band-canvas { background: var(--canvas); }

.eyebrow {
  color: var(--teal-ink);
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.02em;
}
.eyebrow + h1, .eyebrow + h2 { margin-top: 20px; }
.lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: var(--fs-small); }

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 56px 96px; align-items: center; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 40px 96px; align-items: start; }
.split > *, .two-col > * { min-width: 0; }
.h2-sm { font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.12; letter-spacing: -0.03em; }
.h2-xl { font-size: clamp(2.25rem, 4.4vw, 3.75rem); line-height: 1.04; letter-spacing: -0.04em; font-weight: 650; }
.t-oto, .t-team { color: var(--teal); }
h1 [lang="ka"], h2 [lang="ka"] { letter-spacing: 0; }

.photo { overflow: hidden; border-radius: var(--r-xl); background: var(--surface-sunk); aspect-ratio: 4 / 3; }
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--surface);
  --btn-ink: var(--ink);
  --btn-line: var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--btn-line);
  border-radius: var(--r);
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { color: var(--btn-ink); border-color: var(--subtle); }
.btn:focus-visible { outline: none; box-shadow: var(--focus); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { --btn-bg: var(--teal); --btn-ink: #FFFFFF; --btn-line: var(--teal); }
.btn--primary:hover { background: var(--teal-hover); border-color: var(--teal-hover); color: #FFFFFF; }
.btn--ghost { --btn-bg: transparent; --btn-line: transparent; }
.btn--ghost:hover { background: var(--surface-sunk); border-color: transparent; }
.btn--light { --btn-bg: #FFFFFF; --btn-ink: var(--ink); --btn-line: #FFFFFF; }
.btn--light:hover { background: var(--teal-soft); border-color: var(--teal-soft); color: var(--teal-ink); }
.btn--outline-light { --btn-bg: transparent; --btn-ink: #FFFFFF; --btn-line: rgb(255 255 255 / 0.4); }
.btn--outline-light:hover { border-color: #FFFFFF; color: #FFFFFF; }
.btn--lg { min-height: 50px; padding: 0 22px; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 0.875rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.text-link svg { width: 16px; height: 16px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(248 246 241 / 0.88);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 12px; height: var(--header-h); }
.brand {
  display: inline-flex;
  align-items: center;
  margin-right: auto;
  padding: 6px 2px;
  border-radius: 6px;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--ink); }
.wordmark { width: auto; height: 19px; }
@media (min-width: 1100px) { .wordmark { height: 21px; } }

.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block;
  border-radius: var(--r-sm);
  color: var(--ink-2);
  font-size: 0.9375rem;
  font-weight: 520;
  text-decoration: none;
}
.site-nav a:hover { color: var(--ink); background: var(--surface-sunk); }
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
}
.nav-toggle svg { width: 18px; height: 18px; }
.nav-toggle:focus-visible { outline: none; box-shadow: var(--focus); }
.nav-toggle .i-close { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: block; }
.nav-toggle[aria-expanded="true"] .i-menu { display: none; }

@media (max-width: 899.98px) {
  .header-cta { display: none; }
  .site-nav {
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    display: none;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { padding: 8px var(--gutter) 12px; }
  .site-nav li + li { border-top: 1px solid var(--line); }
  .site-nav a { padding: 14px 4px; font-size: 1rem; border-radius: 0; }
  .site-nav a:hover { background: transparent; }
  .site-nav .nav-cta { display: block; padding: 4px var(--gutter) 20px; }
  .site-nav .nav-cta .btn { width: 100%; }
}
/* Without scripting, the menu is simply shown below the bar */
@media (max-width: 899.98px) and (scripting: none) {
  .nav-toggle { display: none; }
  .site-nav { position: static; display: block; box-shadow: none; border-bottom: 0; }
  .site-header .header-inner { flex-wrap: wrap; height: auto; padding-block: 10px; }
  .site-header .site-nav { order: 3; width: 100%; background: transparent; }
  .site-nav ul { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 0 0 4px; }
  .site-nav li + li { border: 0; }
  .site-nav a { padding: 4px 0; font-size: 0.9375rem; }
}
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav ul { display: flex; align-items: center; gap: 4px; }
  .site-nav a { padding: 8px 12px; }
  .site-nav .nav-cta { display: none; }
  .header-inner { gap: 12px 28px; }
}

/* ---------- Language switch ---------- */
.lang-switch {
  display: inline-flex;
  flex: none;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
}
.lang-switch a {
  display: inline-grid;
  place-items: center;
  min-width: 36px;
  height: 30px;
  padding: 0 9px;
  border-radius: var(--r-pill);
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 640;
  line-height: 1;
  text-decoration: none;
}
.lang-switch a:hover { color: var(--ink); background: var(--surface-sunk); }
.lang-switch a[aria-current="true"] { background: var(--ink); color: #FFFFFF; }
.lang-switch a:focus-visible { outline: none; box-shadow: var(--focus); }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: auto;
  background: var(--surface);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--fs-small);
}
.footer-top {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 24px;
  padding-block: clamp(3.5rem, 2.5rem + 3vw, 5rem) 40px;
}
.footer-brand { grid-column: 1 / -1; }
@media (max-width: 359px) { .footer-top { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 560px) { .footer-top { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) {
  .footer-top { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: auto; }
}
.footer-brand .wordmark { height: 18px; color: var(--ink); }
.footer-brand p { margin-top: 14px; max-width: 34ch; line-height: 1.6; }
.footer-col h2 {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: var(--fs-small);
  font-weight: 620;
  line-height: 1.4;
  letter-spacing: 0;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-col a { color: var(--muted); text-decoration: none; }
.footer-col a:hover { color: var(--ink); text-decoration: underline; }
.footer-col a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.footer-legal {
  display: grid;
  gap: 10px;
  padding-block: 20px 28px;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  line-height: 1.6;
}
@media (min-width: 900px) { .footer-legal { grid-template-columns: 1fr auto; gap: 24px; align-items: baseline; } }
.footer-operator { display: grid; gap: 4px; }
.footer-legal a { color: var(--muted); }
.footer-legal a:hover { color: var(--ink); }
.footer-note { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--muted); }
.footer-note svg { width: 16px; height: 16px; color: var(--teal); flex: none; }

/* ---------- Chips and dots ---------- */
.chip {
  --chip-bg: var(--surface-sunk);
  --chip-ink: var(--muted);
  --chip-line: transparent;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 2px 10px;
  border: 1px solid var(--chip-line);
  border-radius: var(--r-pill);
  background: var(--chip-bg);
  color: var(--chip-ink);
  font-size: 0.75rem;
  font-weight: 560;
  line-height: 1.3;
  letter-spacing: 0;
  white-space: nowrap;
}
.chip svg { width: 13px; height: 13px; flex: none; }
.chip--assistant { --chip-bg: var(--teal-mint); --chip-ink: var(--teal); --chip-line: var(--teal-line-2); }
.chip--human { --chip-bg: var(--teal-soft); --chip-ink: var(--teal); --chip-line: var(--teal-line); }
.chip--waiting, .chip--dev { --chip-bg: var(--pend-bg); --chip-ink: var(--pend-ink); --chip-line: var(--teal-line); }
.chip--pending { --chip-bg: var(--pend-bg); --chip-ink: var(--pend-ink); --chip-line: var(--pend-line); border-style: dashed; }
.chip--confirmed { --chip-bg: var(--teal); --chip-ink: #FFFFFF; --chip-line: var(--teal); }
.chip--resolved { --chip-bg: var(--teal-soft); --chip-ink: var(--teal-ink); --chip-line: var(--teal-line); }
.chip--planned { --chip-bg: var(--surface); --chip-ink: var(--muted); --chip-line: var(--line-strong); border-style: dashed; }
.chip--outline { --chip-bg: var(--surface); --chip-ink: var(--muted); --chip-line: var(--line); }

.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); flex: none; }
.chip--waiting .dot, .chip--dev .dot { background: var(--pend-line); }

/* Avatars */
.av {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--avatar);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 640;
  line-height: 1;
}
.av--clinic { width: 34px; height: 34px; background: var(--teal-soft); color: var(--teal-ink); font-size: 0.875rem; }
.av--customer { width: 28px; height: 28px; font-size: 0.6875rem; }

/* Mock buttons inside product previews: look like the product, do nothing */
.mock-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 4px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}
.mock-btn svg { width: 14px; height: 14px; flex: none; }
.mock-btn--primary { background: var(--teal); border-color: var(--teal); color: #FFFFFF; }
.mock-btn--lg { min-height: 44px; padding: 0 18px; border-radius: var(--r); font-size: 0.875rem; }
.mock-btn--lg svg { width: 16px; height: 16px; }
button.mock-btn { cursor: pointer; transition: background-color 0.15s ease; }
button.mock-btn--primary:hover { background: var(--teal-hover); border-color: var(--teal-hover); }
button.mock-btn:focus-visible { outline: none; box-shadow: var(--focus); }

/* Preview label: marks every app screen as an illustration with fictional data */
.preview-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 560;
  line-height: 1.4;
  white-space: nowrap;
}

/* Panels (contact page cards) */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

/* Chat bubbles shared by the hero and the walkthrough */
.bubble { max-width: 82%; padding: 10px 14px; border-radius: 16px; }
.bubble--me { align-self: flex-end; max-width: 78%; border-bottom-right-radius: 4px; background: var(--teal); color: #FFFFFF; }
.bubble--oto { align-self: flex-start; border: 1px solid var(--teal-line); border-bottom-left-radius: 4px; background: var(--surface); color: var(--ink); }
.bot-tag { display: flex; align-items: center; gap: 5px; margin-bottom: 2px; color: var(--teal); font-size: 0.6875rem; font-weight: 650; }
.bot-tag svg { width: 12px; height: 12px; flex: none; }
.qr { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.qr span { padding: 2px 10px; border: 1px solid var(--teal-line-2); border-radius: var(--r-pill); background: var(--surface); color: var(--teal); font-size: 0.75rem; font-weight: 650; }
.qr .is-picked { background: var(--teal); border-color: var(--teal); color: #FFFFFF; }
.sys {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}
.sys svg { width: 14px; height: 14px; flex: none; }
.sys--pending { margin-top: 6px; border: 1px dashed var(--pend-line); background: var(--pend-bg); color: var(--pend-ink); }
.sys--confirmed { background: var(--teal); color: #FFFFFF; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(3rem, 1rem + 6vw, 6.5rem) clamp(4.5rem, 2rem + 7.5vw, 8.75rem); }
.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
}
/* Headline: one sentence per line, sized to the container so both lines fit */
.hero-inner { container-type: inline-size; }
.hero h1 {
  --h1-min: 2.5rem; --h1-vw: 6vw; --h1-fit: 7.6cqi; --h1-max: 5.5rem;
  margin-top: 32px;
  font-size: clamp(var(--h1-min), var(--h1-vw), var(--h1-max));
}
@supports (font-size: 1cqi) {
  .hero h1 { font-size: clamp(var(--h1-min), var(--h1-fit), var(--h1-max)); }
}
.hero h1 .line { display: block; }
.hero-sub { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; margin-top: 32px; }
.hero-sub .lead { max-width: var(--lead-max, 46rem); text-wrap: balance; }

.duo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 1px;
  margin-top: clamp(3rem, 2rem + 3vw, 5rem);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  background: var(--line);
  box-shadow: var(--shadow-lg);
}
.duo-panel { display: flex; flex-direction: column; gap: 24px; min-width: 0; min-height: 440px; padding: 32px clamp(20px, 3vw, 40px) 40px; }
.duo-panel--oto { background: var(--teal-soft); }
.duo-panel--team { background: var(--surface); }
.duo-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.duo-time { color: var(--ink); font-family: var(--mono); font-size: 2.75rem; font-weight: 500; line-height: 1; letter-spacing: -0.04em; }
.duo-panel--oto .duo-time { color: var(--teal); }
.duo-panel--oto .chip--assistant { --chip-bg: var(--surface); --chip-line: var(--teal-line); }
.duo-chat { display: flex; flex-direction: column; gap: 10px; margin-top: auto; font-size: 0.875rem; line-height: 1.45; }
.duo-team { display: grid; gap: 12px; margin-top: auto; }
.req {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border: 1.5px dashed var(--pend-line);
  border-radius: var(--r-lg);
  background: var(--pend-bg);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}
.req-icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: var(--r); background: var(--surface); color: var(--pend-ink); }
.req-icon svg { width: 20px; height: 20px; }
.req-main { flex: 1 1 150px; min-width: 0; }
.req-title { color: var(--ink); font-size: 0.9375rem; font-weight: 650; line-height: 1.35; }
.req-when { color: var(--muted); font-family: var(--mono); font-size: 0.8125rem; }
.req.is-confirmed { border-style: solid; border-color: var(--teal); background: var(--teal-soft); }
.req.is-confirmed .req-icon { color: var(--teal); }
.duo-btns { gap: 8px; }
.duo-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.duo-langs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: 0.8125rem; font-weight: 560; }
.duo-langs span { padding: 3px 12px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface); color: var(--ink); font-size: 0.875rem; font-weight: 600; }

/* ---------- How it works ---------- */
.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 56px 96px; align-items: start; }
.how-grid > * { min-width: 0; }
.stepper { margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); border-top: 1px solid var(--line); }
.stepper li { border-bottom: 1px solid var(--line); }
.step {
  width: 100%;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 16px;
  padding: 24px 4px;
  border: 0;
  background: transparent;
  text-align: left;
  transition: opacity 0.3s var(--ease);
}
.step:focus-visible { outline-offset: -2px; }
.step-n { color: var(--teal); font-family: var(--mono); font-size: 0.875rem; font-weight: 600; }
.step-text { display: grid; gap: 2px; }
.step-title { color: var(--ink); font-size: 1.125rem; font-weight: 630; letter-spacing: -0.01em; line-height: 1.35; }
.step-body { color: var(--muted); font-size: 0.9375rem; }
.stepper.is-live .step:not([aria-current]) { opacity: 0.45; }
.stepper.is-live .step:not([aria-current]) .step-n { color: var(--subtle); }
.stepper.is-live .step:not([aria-current]):hover { opacity: 0.75; }
@media (max-width: 560px) {
  .step { grid-template-columns: 36px minmax(0, 1fr); padding-block: 20px; }
  .step .chip { grid-column: 2; justify-self: start; margin-top: 6px; }
}

.convo { position: sticky; top: calc(var(--header-h) + 24px); overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface-sunk); }
.convo-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--surface); }
.convo-id { flex: 1 1 auto; min-width: 0; }
.convo-name { font-size: 0.875rem; font-weight: 650; line-height: 1.25; }
.convo-sub { color: var(--muted); font-size: 0.75rem; }
.convo-body { display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; min-height: 400px; padding: 24px 20px; font-size: 0.875rem; line-height: 1.45; }
.convo .bubble--me { background: var(--ink); }
.convo .bubble--oto { background: var(--teal-mint); border-color: var(--teal-line-2); }
.convo-body.is-live > [data-min] { animation: rise 0.45s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Product (team view) ---------- */
.product h2 { max-width: 20ch; }
.browser { margin-top: clamp(3rem, 2rem + 3vw, 4.5rem); overflow: hidden; border: 1px solid var(--line-strong); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-lg); }
.browser-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-sunk); }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.browser-title { display: inline-flex; align-items: center; gap: 6px; margin: 0 auto; padding: 3px 14px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--muted); font-size: 0.75rem; font-weight: 600; white-space: nowrap; }
.browser-title svg { width: 14px; height: 14px; color: var(--teal); }
.browser-spacer { width: 42px; flex: none; }
.app { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 1px; background: var(--line); }
.app-pane { min-width: 0; background: var(--surface); }
.app-chat { display: flex; flex-direction: column; background: var(--canvas); }
.app-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; min-height: 58px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface); }
.app-h-id { margin-right: auto; min-width: 0; }
.app-h-title { font-size: 0.875rem; font-weight: 650; line-height: 1.3; }
.app-h-sub { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 0.75rem; }
.app-h-sub svg { width: 13px; height: 13px; flex: none; }
.pin { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #FFFFFF; font-size: 0.75rem; font-weight: 700; line-height: 1; }
.pin--sm { width: 18px; height: 18px; font-size: 0.6875rem; }
.seg { display: inline-flex; margin-left: auto; padding: 2px; border-radius: var(--r-sm); background: var(--surface-sunk); color: var(--muted); font-size: 0.75rem; font-weight: 600; }
.seg span { padding: 3px 10px; border-radius: 6px; }
.seg .is-on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-xs); }
.convs { display: grid; gap: 2px; padding: 6px; }
.conv { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--r); }
.conv.is-active { background: var(--teal-soft); box-shadow: inset 0 0 0 1px var(--teal-line); }
.conv-main { min-width: 0; }
.conv-name { font-size: 0.8125rem; font-weight: 640; line-height: 1.3; }
.conv-msg { overflow: hidden; color: var(--muted); font-size: 0.75rem; white-space: nowrap; text-overflow: ellipsis; }
.conv .chip { min-height: 0; padding: 1px 8px; font-size: 0.6875rem; }
.conv .chip .dot { width: 6px; height: 6px; }
.thread { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 16px; font-size: 0.8125rem; line-height: 1.45; }
.msg { max-width: 82%; padding: 8px 12px; border-radius: 14px; }
.msg--cust { align-self: flex-start; border: 1px solid var(--line); border-bottom-left-radius: 4px; background: var(--surface); }
.msg--bot { align-self: flex-end; border: 1px solid var(--teal-line-2); border-bottom-right-radius: 4px; background: var(--teal-mint); }
.msg--bot .bot-tag { gap: 6px; }
.thread .sys { margin-top: 4px; padding: 4px 12px; }
.app-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); background: var(--surface); }
.slots { display: grid; gap: 8px; padding: 12px 14px; font-size: 0.8125rem; line-height: 1.35; }
.slot { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 1px 10px; padding: 9px 12px; border-radius: var(--r); }
.slot time { grid-row: span 2; font-family: var(--mono); font-weight: 600; }
.slot-name { font-weight: 640; }
.slot-st { font-size: 0.6875rem; font-weight: 600; }
.slot--confirmed { background: var(--teal); color: #FFFFFF; }
.slot--pending { border: 1.5px dashed var(--pend-line); background: repeating-linear-gradient(135deg, var(--pend-bg) 0 7px, var(--pend-bg-2) 7px 14px); color: var(--pend-ink); }
.slot--free { border: 1px dashed var(--line-strong); color: var(--subtle); }
.slot--free time { grid-row: auto; }
.browser-foot { display: flex; justify-content: flex-end; padding: 10px 14px; border-top: 1px solid var(--line); background: var(--surface); }
.legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px 32px; margin-top: 56px; }
.legend li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; }
.legend .pin { margin-top: 2px; }
.legend h3 { font-size: 1rem; font-weight: 630; }
.legend p { color: var(--muted); font-size: 0.9375rem; }

/* ---------- Why Oto ---------- */
.ben-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 36px 40px; margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); }
.ben-grid li { padding-top: 16px; border-top: 2px solid var(--ink); }
.ben-grid h3 { font-size: 1.0625rem; font-weight: 630; }
.ben-grid p { margin-top: 4px; color: var(--muted); font-size: 0.9375rem; }

/* ---------- Made for Georgia ---------- */
.geo { position: relative; display: flex; align-items: flex-end; min-height: 640px; overflow: hidden; background: var(--night); color: #FFFFFF; }
.geo-photo, .geo-photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.geo-photo img { object-fit: cover; object-position: 50% 55%; }
.geo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(35 42 51 / 0) 25%, rgb(35 42 51 / 0.88) 100%); }
.geo-inner { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 32px; align-items: end; padding-block: clamp(10rem, 8rem + 8vw, 14rem) 56px; }
.geo .eyebrow { color: #FFFFFF; }
.geo .eyebrow, .geo h2, .geo-lead { text-shadow: 0 1px 14px rgb(35 42 51 / 0.45); }
.geo h2 { color: #FFFFFF; font-size: clamp(2.5rem, 5.4vw, 4.75rem); line-height: 1.05; letter-spacing: -0.035em; }
.geo-lead { max-width: 34rem; margin-top: 16px; color: #FFFFFF; font-size: var(--fs-lead); line-height: 1.55; }
.lang-tiles { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.lang-tiles li { display: grid; gap: 4px; min-width: 120px; padding: 14px 18px; border-radius: var(--r-lg); background: #FFFFFF; color: var(--ink); }
.lt-script { font-size: 1.25rem; font-weight: 650; line-height: 1.25; }
.lt-code { color: var(--muted); font-size: 0.75rem; font-weight: 650; letter-spacing: 0.08em; }
@media (max-width: 700px) {
  .geo::after { background: linear-gradient(180deg, rgb(35 42 51 / 0.05) 0%, rgb(35 42 51 / 0.9) 62%); }
  .lang-tiles { justify-content: flex-start; }
}

/* ---------- You stay in charge ---------- */
.ovr-list { display: grid; gap: 16px; margin-top: clamp(2.5rem, 2rem + 2vw, 3rem); }
.ovr-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.ovr-icon { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: var(--r); background: var(--teal-soft); color: var(--teal); }
.ovr-icon svg { width: 20px; height: 20px; }
.ovr-text { flex: 1 1 180px; font-weight: 620; }

/* ---------- Availability ---------- */
.av-note { margin-top: 16px; color: var(--muted); font-size: var(--fs-small); }
.avail { border-top: 1px solid var(--line); }
.avail li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.avail li > svg { width: 20px; height: 20px; flex: none; color: var(--ink-2); }
.avail-name { flex: 1 1 140px; font-size: 1.0625rem; font-weight: 620; }

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 2px;
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 620;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary svg { width: 20px; height: 20px; flex: none; color: var(--teal); transition: transform 0.2s var(--ease); }
.faq-list details[open] summary svg { transform: rotate(45deg); }
.faq-list summary:hover { color: var(--teal-ink); }
.faq-list summary:focus-visible { outline-offset: -2px; }
.faq-list details p { max-width: 60ch; padding: 0 2px 22px; color: var(--muted); }

/* ---------- Closing CTA ---------- */
.cta-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 32px 48px;
  align-items: end;
  padding: clamp(2rem, 5vw, 4.5rem);
  border-radius: 28px;
  background: var(--teal);
  color: #FFFFFF;
}
.cta-mark { width: 48px; height: 48px; color: var(--teal-pale); }
.cta-card h2 { max-width: 16ch; margin-top: 28px; color: #FFFFFF; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.04; letter-spacing: -0.04em; font-weight: 650; }
.cta-side { display: grid; gap: 24px; justify-items: start; }
.cta-lead { color: #FFFFFF; font-size: var(--fs-lead); }

/* ---------- Page head (inner pages) ---------- */
.page-head { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem) clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.page-head h1 { max-width: 18ch; font-size: clamp(2.25rem, 1.7rem + 2.4vw, 3.5rem); line-height: 1.06; letter-spacing: -0.035em; }
.page-head .lead { margin-top: 1rem; max-width: 40rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 24px; padding-bottom: var(--section-y); }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 32px; align-items: start; } }
.form-card { padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem); scroll-margin-top: calc(var(--header-h) + 16px); }
.form-card h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); letter-spacing: -0.025em; }
.form-card > p { margin-top: 0.6rem; color: var(--muted); }
.form { display: grid; gap: 18px; margin-top: 1.75rem; }
.form-row { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.field label { color: var(--ink); font-size: 0.875rem; font-weight: 600; }
.field .opt { color: var(--muted); font-weight: 500; }
.field .hint { color: var(--muted); font-size: 0.8125rem; line-height: 1.45; }
.input, .select, .textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.4;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.textarea { min-height: 132px; resize: vertical; line-height: 1.55; }
.select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%235E6A78' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 8 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px 18px;
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--subtle); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgb(31 76 71 / 0.18); }
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--red-ink); box-shadow: 0 0 0 3px rgb(185 28 28 / 0.12); }
.field-error { display: flex; gap: 6px; align-items: flex-start; color: var(--red-ink); font-size: 0.8125rem; font-weight: 560; line-height: 1.45; }
.field-error:empty { display: none; }
.form-foot { display: grid; gap: 14px; margin-top: 4px; }
@media (min-width: 640px) { .form-foot { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 18px; } }
.form-foot .hint { color: var(--muted); font-size: 0.8125rem; line-height: 1.5; }
.form-status { padding: 14px 16px; border-radius: var(--r); font-size: 0.9375rem; line-height: 1.55; }
.form-status:empty { display: none; }
.form-status.is-info { border: 1px solid var(--teal-line); background: var(--teal-mint); color: var(--teal-ink); }
.form-status.is-success { border: 1px solid var(--teal-line); background: var(--teal-soft); color: var(--teal-ink); }
.form-status.is-error { border: 1px solid var(--red-line); background: var(--red-soft); color: var(--red-ink); }
.form-status a { color: inherit; font-weight: 600; }
.form-privacy { padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.8125rem; line-height: 1.55; }
.btn[aria-busy="true"] { opacity: 0.7; cursor: progress; }

.side-stack { display: grid; gap: 16px; }
.info-card { padding: 22px; }
.info-card h2 { display: flex; align-items: center; gap: 10px; font-size: 1.0625rem; letter-spacing: -0.01em; }
.info-card h2 .ii { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: var(--r-sm); background: var(--teal-soft); color: var(--teal); }
.info-card h2 .ii svg { width: 16px; height: 16px; }
.info-card p { margin-top: 8px; color: var(--muted); font-size: 0.9375rem; line-height: 1.6; }
.info-card .email { display: inline-block; margin-top: 10px; font-weight: 600; text-decoration: none; }
.info-card .email:hover { text-decoration: underline; }
.id-list { display: grid; margin: 14px 0 0; font-size: 0.875rem; }
.id-list > div { display: grid; gap: 2px; padding: 10px 0; border-top: 1px solid var(--line); }
@media (min-width: 420px) { .id-list > div { grid-template-columns: 130px minmax(0, 1fr); gap: 12px; } }
.id-list dt { color: var(--muted); }
.id-list dd { min-width: 0; margin: 0; color: var(--ink); font-weight: 520; }

/* ---------- Legal pages ---------- */
.legal-head { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem) 0; }
.legal-head h1 { font-size: clamp(2.125rem, 1.6rem + 2.2vw, 3.25rem); line-height: 1.08; letter-spacing: -0.032em; }
.legal-meta { margin-top: 0.9rem; color: var(--muted); font-size: 0.9375rem; }
.draft-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 68rem;
  margin-top: 1.5rem;
  padding: 14px 18px;
  border: 1.5px dashed var(--pend-line);
  border-radius: var(--r);
  background: var(--pend-bg);
  color: var(--pend-ink);
  font-size: 0.9375rem;
  line-height: 1.55;
}
.draft-banner svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.draft-banner p { margin: 0; }
.draft-banner strong { color: var(--teal-ink); }
.legal-main { min-width: 0; max-width: calc(68ch * 1.0625); }
.legal-layout { display: grid; gap: 2rem; padding-block: clamp(2rem, 1.5rem + 2vw, 3rem) var(--section-y); }
@media (min-width: 1000px) {
  .legal-layout { grid-template-columns: 260px minmax(0, 1fr); gap: clamp(3rem, 2rem + 3vw, 5rem); align-items: start; }
}
.toc { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); font-size: 0.875rem; }
@media (min-width: 1000px) {
  .toc { position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; }
}
.toc-title { margin-bottom: 10px; color: var(--teal-ink); font-family: var(--mono); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.02em; }
.toc-list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.toc-list li { counter-increment: toc; }
.toc-list a {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 4px;
  padding: 6px 8px;
  border-radius: 6px;
  color: var(--muted);
  line-height: 1.4;
  text-decoration: none;
}
.toc-list a::before { content: counter(toc) "."; color: var(--subtle); font-variant-numeric: tabular-nums; }
.toc-list a:hover { background: var(--surface-sunk); color: var(--ink); }

.legal-body { max-width: 68ch; min-width: 0; color: var(--ink-2); font-size: 1.0625rem; line-height: 1.72; }
.legal-body > * + * { margin-top: 1.1em; }
.legal-body h2 {
  margin-top: 2.6em;
  padding-top: 1.6em;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.legal-body > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal-body h3 { margin-top: 1.9em; color: var(--ink); font-size: 1.1875rem; line-height: 1.35; letter-spacing: -0.012em; scroll-margin-top: calc(var(--header-h) + 20px); }
.legal-body h2 + *, .legal-body h3 + * { margin-top: 0.7em; }
.legal-body ul, .legal-body ol { padding-left: 1.4em; }
.legal-body li + li { margin-top: 0.45em; }
.legal-body li::marker { color: var(--subtle); }
.legal-body li > ul, .legal-body li > ol { margin-top: 0.45em; }
.legal-body a { color: var(--teal); font-weight: 520; }
.legal-body strong { color: var(--ink); }
.legal-body .table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r);
  -webkit-overflow-scrolling: touch;
  background:
    linear-gradient(to right, var(--surface) 30%, rgb(255 255 255 / 0)) left center / 40px 100% no-repeat local,
    linear-gradient(to left, var(--surface) 30%, rgb(255 255 255 / 0)) right center / 40px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgb(39 47 58 / 0.14), transparent) left center / 12px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgb(39 47 58 / 0.14), transparent) right center / 12px 100% no-repeat scroll,
    var(--surface);
}
.legal-body .table-wrap:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.legal-body table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.55; }
.legal-body caption { padding: 12px 14px; color: var(--muted); font-size: 0.875rem; text-align: left; caption-side: top; }
.legal-body th, .legal-body td { padding: 11px 14px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal-body thead th { border-top: 0; background: var(--canvas); color: var(--ink); font-size: 0.8125rem; font-weight: 640; }
.legal-body tbody th { color: var(--ink); font-weight: 600; }
.legal-body aside.note {
  position: relative;
  margin-block: 1.5em;
  padding: 0.95em 1.1em 0.95em 3em;
  border: 1px dashed var(--pend-line);
  border-radius: var(--r);
  background-color: var(--pend-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232F5A54' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 19.5h4l10.2-10.2a2 2 0 0 0 0-2.8l-1.2-1.2a2 2 0 0 0-2.8 0L4.5 15.5Z'/%3E%3Cpath d='m13.5 6.5 4 4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 1.05em 1.15em;
  background-size: 1.1em 1.1em;
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.6;
}
.legal-body aside.note strong { color: var(--pend-ink); }
.legal-body aside.note > * + * { margin-top: 0.6em; }
.back-top { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: 0.9375rem; }
.back-top a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.back-top a:hover { text-decoration: underline; }
.back-top svg { width: 16px; height: 16px; }

/* ---------- 404 ---------- */
.notfound { padding-block: clamp(4rem, 3rem + 6vw, 9rem); }
.notfound-code { color: var(--teal-ink); font-family: var(--mono); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; }
.notfound h1 { max-width: 16ch; margin-top: 0.75rem; font-size: clamp(2.25rem, 1.7rem + 2.4vw, 3.5rem); line-height: 1.06; letter-spacing: -0.034em; }
.notfound p { max-width: 40rem; margin-top: 1rem; }
.notfound .btn-row { margin-top: 2rem; }

/* ---------- Georgian ---------- */
html[lang="ka"] {
  --fs-h1: clamp(2.125rem, 1.2rem + 3.6vw, 4rem);
  --fs-h2: clamp(1.625rem, 1.1rem + 1.9vw, 2.5rem);
  --fs-h3: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
}
html[lang="ka"] body { line-height: 1.7; }
:lang(ka) h1, :lang(ka) h2, :lang(ka) h3, :lang(ka) h4 { letter-spacing: 0; }
html[lang="ka"] h1 { line-height: 1.16; font-weight: 700; }
html[lang="ka"] h2 { line-height: 1.22; font-weight: 680; }
html[lang="ka"] h1, html[lang="ka"] h2, html[lang="ka"] h3 { overflow-wrap: break-word; }
html[lang="ka"] .h2-sm { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.125rem); }
html[lang="ka"] .h2-xl { font-size: clamp(1.75rem, 1.1rem + 2.4vw, 2.875rem); }
html[lang="ka"] .cta-card h2 { max-width: 20ch; font-size: clamp(1.75rem, 1.1rem + 2.4vw, 2.75rem); }
html[lang="ka"] .geo h2 { line-height: 1.12; }
html[lang="ka"] .page-head h1 { font-size: clamp(1.625rem, 1rem + 2.8vw, 3.25rem); }
/* Legal titles hold long words (კონფიდენციალურობის), so on narrow screens the size follows the column width */
.legal-head { container-type: inline-size; }
html[lang="ka"] .legal-head h1 { font-size: min(clamp(1.625rem, 1rem + 2.8vw, 3.25rem), 7.4cqi); }
@media (max-width: 340px) { html[lang="ka"] .h2-xl { font-size: 1.625rem; } }
html[lang="ka"] .site-nav a { font-size: 0.875rem; }
html[lang="ka"] .eyebrow, html[lang="ka"] .toc-title { letter-spacing: 0; }
html[lang="ka"] .duo-chat, html[lang="ka"] .convo-body, html[lang="ka"] .thread { font-size: 0.8125rem; }
html[lang="ka"] .step-title { font-size: 1.0625rem; letter-spacing: 0; }

/* Georgian display type: Mtavruli (all caps) for headlines and section labels; body text stays lowercase */
:is(h1, .section h2, .geo h2, .eyebrow):lang(ka),
:is(h1, h2) [lang="ka"] { text-transform: uppercase; }
:is(h1, h2) [lang="en"] { text-transform: none; }
html[lang="ka"] :is(h1, .section h2, .geo h2) { font-weight: 650; letter-spacing: 0.01em; }
/* Mtavruli runs wide, so the Georgian headline gets its own fit; each sentence still starts its own line */
html[lang="ka"] .hero h1 { --h1-min: 2rem; --h1-vw: 3.4vw; --h1-fit: 4cqi; --h1-max: 4rem; }
html[lang="ka"] .hero-sub .lead { --lead-max: 53rem; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .toc, .skip-link, .back-top { display: none !important; }
  body { background: #FFFFFF; }
  .legal-layout { display: block; }
  .ph { border-bottom: 1px dashed #000000; }
}

/* ---------- Utilities ---------- */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
