/* Openline marketing site: tokens, base, type scale, buttons, nav, the
   section-header system and legal pages.
   Visual system (Retell-derived, 2026-10-10): a white page with navy ink
   (#00122e), #f5f5fa surfaces, lavender hairlines and flat 6px buttons. Colour
   lives in the black panels: the hero (hero.css) and the closing CTA and
   footer (banner.css). Section labels use the one accent blue. Light is the default;
   dark is a secondary theme from the same roles, set by theme.js.
   Load order: styles.css, nav.css, theme.css, hero.css, banner.css,
   sections.css, demo.css, workflow.css, motion.css (last). */

:root {
  /* colour roles */
  --bg: #ffffff;
  --surface: #f5f5fa;
  --surface-2: #ebecf4;
  --paper: #ffffff;
  --ink: #00122e;
  --text: #283149;
  --muted: #5b6178;
  --line: #e6e7f2;
  --line-strong: #d9daee;
  --accent: #3e6aef;
  --focus: #3e6aef;

  --btn-bg: #00122e;
  --btn-ink: #ffffff;
  --btn-hover: #172a4d;
  --btn-press: #000b1d;
  --btn2-bg: #f5f5fa;
  --btn2-ink: #00122e;
  --btn2-hover: #e8e9f3;

  --header-glass: rgba(255, 255, 255, 0.74);
  --shadow-frag: 0 0 0 1px rgba(0, 18, 46, 0.06), 0 1px 2px rgba(0, 18, 46, 0.04), 0 18px 40px -18px rgba(0, 18, 46, 0.2);
  --shadow-pop: 0 0 0 1px rgba(0, 18, 46, 0.06), 0 24px 56px -24px rgba(0, 18, 46, 0.32);

  /* type: Geist (UI + body), Instrument Serif (display moments + logo),
     Noto Sans Arabic / Devanagari / Telugu picked up per glyph from the same stack */
  --sans: "Geist", "Noto Sans Arabic", "Noto Sans Devanagari", "Noto Sans Telugu", -apple-system, BlinkMacSystemFont, "Segoe UI",
    system-ui, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;

  /* the scale. Values are Retell's, measured at 1440px, scaled fluidly. */
  --fs-display: clamp(2.75rem, 1.5rem + 4.6vw, 5.625rem); /* 44 to 90: h1, demo title */
  --fs-display-2: clamp(2.5rem, 1.25rem + 4vw, 4.25rem); /* 40 to 68: closing line, footer */
  --fs-h2: clamp(1.875rem, 1.5rem + 0.95vw, 2.34375rem); /* 30 to 37.5: every section h2 */
  --fs-h3: clamp(1.125rem, 1.05rem + 0.25vw, 1.21875rem); /* 18 to 19.5: every card and row title */
  --fs-faq: clamp(1.0625rem, 0.95rem + 0.45vw, 1.25rem); /* 17 to 20: FAQ questions */
  --fs-kicker: clamp(0.8125rem, 0.75rem + 0.3vw, 1rem); /* 13 to 16: hero kicker */
  --fs-lede: 1rem; /* section intros, panel copy */
  --fs-body: 1rem;
  --fs-sm: 0.875rem; /* card and row body */
  --fs-ui: 0.75rem; /* nav, buttons */
  --fs-micro: 0.75rem; /* labels, metadata */
  --fs-frag: 0.8125rem; /* primary text inside product fragments */

  /* shape, space, motion */
  --r-btn: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 16px;
  --r-panel: 20px;
  --gutter: clamp(20px, 4vw, 40px);
  --inset: 8px;
  --container: min(1160px, calc(100% - 2 * var(--gutter)));
  --header-h: 72px;
  --section-y: clamp(88px, 10vw, 152px);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-ix: cubic-bezier(0.215, 0.61, 0.355, 1);

  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #030814;
  --surface: #0b1222;
  --surface-2: #121b30;
  --paper: #111a2e;
  --ink: #f2f4fa;
  --text: #c9cee0;
  --muted: #8f97ad;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --accent: #8aa6ff;
  --focus: #8aa6ff;

  --btn-bg: #f2f4fa;
  --btn-ink: #00122e;
  --btn-hover: #dde2ef;
  --btn-press: #c6cde0;
  --btn2-bg: #131c31;
  --btn2-ink: #f2f4fa;
  --btn2-hover: #1b2640;

  --header-glass: rgba(3, 8, 20, 0.74);
  --shadow-frag: 0 0 0 1px rgba(255, 255, 255, 0.07), 0 20px 48px -16px rgba(0, 0, 0, 0.8);
  --shadow-pop: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 24px 56px -20px rgba(0, 0, 0, 0.9);

  color-scheme: dark;
}

/* ---------- base ---------- */

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

html {
  background: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* Indic scripts: no tracking (keeps conjuncts joined), taller leading for matras */
[lang="ar"],
[lang="hi"],
[lang="te"] {
  letter-spacing: 0;
  line-height: 1.7;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: var(--r-btn);
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -64px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: var(--r-btn);
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-size: var(--fs-sm);
  font-weight: 500;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

[hidden] {
  display: none !important;
}

/* ---------- type ----------
   Display     h1 and the demo title, serif 90 / 0.95 / -0.02em
   Display 2   closing line and footer wordmark, serif 68
   H2          every section heading, sans 37.5 / 400 / 1.05 / -0.06em
   H3          every card, row and panel title, 19.5 / 400 / 1.2 / -0.05em
   FAQ         questions, 20 / 400 / -0.05em
   Lede        section intros, 16 / 20
   Small       card and row body, 14
   UI          nav and buttons, 12 / 500
   Micro       labels and metadata, 12 */

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-weight: 400;
  text-wrap: balance;
}

h1,
.display {
  font-family: var(--serif);
  font-size: var(--fs-display);
  font-weight: 400;
  font-synthesis: none;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.display.center {
  text-align: center;
}

h2 {
  font-size: var(--fs-h2);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

h3 {
  font-size: var(--fs-h3);
  line-height: 1.25;
  letter-spacing: -0.03em;
}

p {
  margin: 0;
  text-wrap: pretty;
}

.num {
  font-variant-numeric: tabular-nums;
}

.meta {
  font-size: var(--fs-micro);
  font-style: normal;
  letter-spacing: -0.01em;
  color: var(--muted);
}

/* ---------- buttons: 32px, 12px / 500, 6px radius, flat ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 32px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--r-btn);
  font: inherit;
  font-size: var(--fs-ui);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color 200ms var(--ease),
    color 200ms var(--ease),
    transform 160ms var(--ease-out);
}

.btn:active {
  transform: scale(0.97);
  transition-duration: 80ms;
}

.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-ink);
}

.btn-primary:active {
  background: var(--btn-press);
}

.btn-secondary {
  background: var(--btn2-bg);
  color: var(--btn2-ink);
}

/* on the blue panels, the same in both themes */
.btn-white {
  background: #ffffff;
  color: #00122e;
}

.btn-glass {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

/* the one big pill: 64px, round, white 20% glass */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 64px;
  padding: 0 28px 0 24px;
  border: 0;
  border-radius: 64px;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font: inherit;
  font-size: var(--fs-body);
  font-weight: 500;
  letter-spacing: -0.04em;
  cursor: pointer;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  transition: background-color 250ms var(--ease), transform 160ms var(--ease-out);
}

.btn-pill:active {
  transform: scale(0.97);
}

@media (hover: hover) {
  .btn-primary:hover {
    background: var(--btn-hover);
  }

  .btn-secondary:hover {
    background: var(--btn2-hover);
  }

  .btn-white:hover {
    background: #e6eaf5;
  }

  .btn-glass:hover {
    background: rgba(255, 255, 255, 0.28);
  }
}

/* coarse pointers: keep the 32px look, widen the hit area to 44px */
@media (pointer: coarse) {
  .btn::after {
    content: "";
    position: absolute;
    inset: -6px 0;
  }
}

/* ---------- section header system (identical everywhere) ----------
   accent label on its own row, h2 at left in a 480px column, and an
   optional aside at right (button above a 16/20 paragraph), bottom-aligned. */

section {
  padding: var(--section-y) 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
  column-gap: 48px;
  align-items: end;
  margin-bottom: clamp(48px, 5.6vw, 80px);
}

.label {
  grid-column: 1 / -1;
  margin-bottom: clamp(28px, 4vw, 56px);
  font-size: var(--fs-micro);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.section-head h2 {
  max-width: 480px;
}

.section-aside {
  display: grid;
  justify-items: start;
  gap: 18px;
}

.section-sub {
  max-width: 370px;
  font-size: var(--fs-lede);
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: var(--text);
}

.section-head.center {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  text-align: center;
}

.section-head.center .label {
  margin-bottom: 20px;
}

@media (max-width: 860px) {
  .section-head {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 20px;
  }

  .label {
    margin-bottom: 4px;
  }

  .section-head.center .label {
    margin-bottom: 4px;
  }
}

/* ---------- legal pages ---------- */

.legal {
  max-width: 680px;
  padding: clamp(56px, 9vw, 112px) 0;
}

.legal h1 {
  font-size: var(--fs-display-2);
  line-height: 1;
  margin-bottom: 24px;
}

.legal h2 {
  font-size: var(--fs-h3);
  line-height: 1.3;
  letter-spacing: -0.04em;
  margin: 48px 0 8px;
}

.legal p {
  max-width: 66ch;
  line-height: 1.6;
  letter-spacing: -0.01em;
  color: var(--text);
}

.legal p a {
  text-underline-offset: 3px;
  text-decoration-color: var(--line-strong);
}

.draft-note {
  margin-bottom: 8px;
  padding: 12px 16px;
  border-radius: var(--r-sm);
  background: var(--surface);
  font-size: var(--fs-sm);
}

.legal .draft-note {
  color: var(--muted);
}

/* the short footer on legal pages */
.site-footer:not(.site-footer-big) {
  border-top: 1px solid var(--line);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  width: var(--container);
  margin: 0 auto;
  padding: 32px 0 40px;
  font-size: var(--fs-sm);
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-block;
  padding: 4px 0;
  text-decoration: none;
}

@media (hover: hover) {
  .footer-links a:hover {
    color: var(--ink);
  }
}
