/* ontara.ch v5 — foundations shared by both hero prototypes (A: product window,
   B: cinematic). Same palette as v4, Inter self-hosted (SIL OFL), tighter display type. */

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #0d2440;
  --ink-2: #33475f;
  --muted: #5d6f86;
  --muted-2: #8a99ad;
  --tone-2: #8b98ab; /* second line of two-tone headings */
  --bg: #f7f9fc;
  --card: #ffffff;
  --line: #e1e7ef;
  --line-strong: #c9d3e0;

  --accent: #0b6bd6;
  --accent-deep: #0954ac;
  --accent-soft: #e8f1fc;
  --accent-line: #b6d2f2;
  --navy: #0b1a2c;

  --warn: #b45309;
  --warn-soft: #fff6e5;
  --warn-line: #f3d08f;
  --danger: #c2261d;
  --danger-soft: #fdecea;
  --danger-line: #f3b9b3;
  --ok: #15803d;
  --ok-soft: #e9f7ee;
  --ok-line: #b8e2c6;

  --tag-pdf: #b42318;
  --tag-xlsx: #15803d;
  --tag-reqif: #6d28d9;
  --tag-eml: #0e7490;

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", "JetBrains Mono", Consolas, monospace;

  --shadow-sm: 0 1px 2px rgba(13, 36, 64, 0.06);
  --shadow: 0 1px 2px rgba(13, 36, 64, 0.06), 0 10px 28px -10px rgba(13, 36, 64, 0.16);
  --shadow-xl: 0 2px 6px rgba(13, 36, 64, 0.05), 0 40px 90px -30px rgba(13, 36, 64, 0.35);
  --ease: cubic-bezier(0.22, 0.8, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* clip, never hidden: hidden breaks sticky + scroll timelines */
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-deep); text-decoration: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---- type ---- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 32px;
  padding: 0 14px 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
}
.chip i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
@media (max-width: 420px) { .chip { gap: 7px; padding: 0 11px 0 10px; font-size: 11.5px; white-space: nowrap; } }
.display {
  margin: 0;
  font-size: clamp(42px, 5.3vw, 80px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.display span { display: block; color: var(--tone-2); }
.lede { margin: 0; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.eyebrow { font: 600 12px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.h2 { margin: 0; font-size: clamp(32px, 3.5vw, 52px); font-weight: 600; line-height: 1.06; letter-spacing: -0.038em; text-wrap: balance; }
.h2 span { color: var(--tone-2); }

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: 11px;
  border: 1px solid transparent;
  font: 600 15px/1 var(--sans);
  letter-spacing: -0.01em;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn:focus-visible { outline: 3px solid var(--accent-line); outline-offset: 2px; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-deep); }
.btn--secondary { background: #fff; border-color: var(--line-strong); color: var(--ink); }
.btn--secondary:hover { border-color: var(--muted-2); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: #e8eef6; }
.btn--outline-light { border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.btn--outline-light:hover { border-color: rgba(255, 255, 255, 0.7); }
.btn--sm { height: 38px; padding: 0 16px; font-size: 14px; border-radius: 10px; }

/* ---- header (fixed; .on-dark = over a dark hero) ---- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(247, 249, 252, 0.78);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgba(225, 231, 239, 0.7);
  transition: background 0.35s, border-color 0.35s;
}
.site-header__inner { max-width: 1280px; margin: 0 auto; padding: 0 32px; height: 66px; display: flex; align-items: center; gap: 32px; }
.site-header__logo { position: relative; display: block; width: 72px; height: 29px; }
.site-header__logo img { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity 0.35s; }
.site-header__logo .logo-light { opacity: 0; }
.site-header__nav { display: flex; gap: 28px; margin-left: auto; font-size: 14.5px; }
.site-header__nav a { color: var(--ink-2); transition: color 0.35s; }
.site-header__nav a:hover { color: var(--ink); }
.site-header.on-dark { background: linear-gradient(rgba(11, 26, 44, 0.85), rgba(11, 26, 44, 0)); border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.site-header.on-dark .logo-dark { opacity: 0; }
.site-header.on-dark .logo-light { opacity: 1; }
.site-header.on-dark .site-header__nav a { color: rgba(255, 255, 255, 0.78); }
.site-header.on-dark .site-header__nav a:hover { color: #fff; }
.site-header.on-dark .btn--primary { background: #fff; color: var(--navy); }
@media (max-width: 640px) {
  .site-header__inner { padding: 0 20px; height: 60px; }
  .site-header__nav { display: none; }
  .site-header .btn { margin-left: auto; }
}

/* ---- "next section" teaser under each hero prototype ---- */
.teaser { max-width: 1280px; margin: 0 auto; padding: 140px 32px 180px; text-align: center; }
.teaser .h2 { max-width: 16em; margin: 18px auto 0; }
.teaser p { max-width: 34em; margin: 20px auto 0; color: var(--muted); font-size: 18px; }

/* ---- prototype switcher (preview only) ---- */
.proto {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(11, 26, 44, 0.92);
  box-shadow: var(--shadow);
  font: 600 12.5px/1 var(--sans);
}
.proto a { padding: 9px 14px; border-radius: 999px; color: rgba(255, 255, 255, 0.72); }
.proto a[aria-current="page"] { background: #fff; color: var(--navy); }
