/* ------------------------------------------------------------------
   Tokens. Every colour used on the page resolves through one of these,
   so the dark theme is a token swap rather than a second stylesheet.
   ------------------------------------------------------------------ */

:root {
  color-scheme: light dark;

  /* Layout */
  --container: 75rem;   /* 1200px */
  --reading: 45rem;     /* 720px  */
  --gutter: 2rem;
  --pad-lg: 7.5rem;
  --pad-md: 5.5rem;

  /* Three surfaces: narrative, structured, anchor */
  --bg: #ffffff;
  --surface: #f1f5fa;
  --panel: #ffffff;

  --fg: #14181d;
  --fg-2: #3d4753;
  --muted: #5c6672;

  --hairline: #dde3ec;
  --hairline-soft: #e7ecf3;

  --accent: #146ef5;
  --accent-strong: #0f58c9;
  --accent-wash: #ebf2fe;
  --on-accent: #ffffff;

  --valid: #14957c;

  /* The KnowledgeOps anchor band */
  --anchor: #0b1a2e;
  --anchor-fg: #f2f6fa;
  --anchor-muted: #93a6bc;
  --anchor-faint: #61748a;
  --anchor-accent: #4a95ff;

  --frame-shadow: 0 1px 2px rgba(11, 26, 46, 0.04), 0 12px 32px -12px rgba(11, 26, 46, 0.14);
  --menu-shadow: 0 8px 24px rgba(11, 26, 46, 0.12);
  --frame-chrome: #fbfcfe;
  --frame-dots: #dfe5ee;
  --field: #eef2f7;
  --field-line: #e1e7ef;
  --row-alt: #f7f9fc;
  --meta-key: #96a2b0;
  --tag-dim: #a9b7c8;

  --valid-wash: #e7f5f1;
  --warn: #8a5a0b;
  --warn-wash: #fdf0df;
  --kind-y: #8a6d0b;
  --kind-y-wash: #fcf6e3;
  --kind-y-line: #f0e2b6;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1418;
    --surface: #151c23;
    --panel: #131a21;

    --fg: #f0f4f8;
    --fg-2: #c3cdd8;
    --muted: #96a3b0;

    --hairline: #253039;
    --hairline-soft: #1e262e;

    --accent: #4a95ff;
    --accent-strong: #6ca8ff;
    --accent-wash: rgba(74, 149, 255, 0.12);
    --on-accent: #0b1015;

    --valid: #35b89d;

    /* Darker than the page, so the anchor still reads as depth */
    --anchor: #070c11;
    --anchor-fg: #f0f4f8;
    --anchor-muted: #8fa1b4;
    --anchor-faint: #5d6e80;
    --anchor-accent: #6ca8ff;

    --frame-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 14px 34px -14px rgba(0, 0, 0, 0.55);
    --menu-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    --frame-chrome: #171f27;
    --frame-dots: #2a3540;
    --field: #1a222a;
    --field-line: #26313a;
    --row-alt: #182029;
    --meta-key: #74838f;
    --tag-dim: #4b5b6b;

    --valid-wash: rgba(53, 184, 157, 0.12);
    --warn: #e0a65a;
    --warn-wash: rgba(224, 166, 90, 0.12);
    --kind-y: #e3c46a;
    --kind-y-wash: rgba(227, 196, 106, 0.12);
    --kind-y-line: rgba(227, 196, 106, 0.28);
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  font-family: ui-sans-serif, system-ui, "Segoe UI", -apple-system, sans-serif;
  background: var(--bg);
  color: var(--fg);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

/* ---- Layout primitives ---- */

.wrap {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.reading { max-width: var(--reading); }

section { padding: var(--pad-md) 0; }
.sec-lg { padding: var(--pad-lg) 0; }

.band { background: var(--surface); }

/* ---- Type ---- */

h1, h2, h3 { text-wrap: balance; letter-spacing: -0.028em; line-height: 1.12; font-weight: 700; }

h1 { font-size: clamp(2.05rem, 3.7vw, 2.9rem); }
h2 { font-size: clamp(1.6rem, 2.5vw, 2.05rem); font-weight: 650; }

.kicker {
  font-size: 0.6875rem;
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.lede { font-size: 1.125rem; color: var(--fg-2); }
.section-intro { color: var(--muted); margin-top: 0.9rem; }

/* ---- Buttons ---- */

.cta-button, .cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  height: 3.125rem;
  padding: 0 1.6rem;
  border-radius: 0.5rem;
  font-size: 0.97rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.cta-button { background: var(--accent); color: var(--on-accent); }
.cta-button:hover { background: var(--accent-strong); }

.cta-secondary { background: transparent; color: var(--fg); border-color: var(--hairline); }
.cta-secondary:hover { border-color: var(--accent); color: var(--accent); }

.arw { transition: transform 0.18s ease; }
.cta-button:hover .arw { transform: translateX(3px); }

.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---- Header ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline-soft);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 4.25rem;
}

.brand {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--fg);
  text-decoration: none;
}

.brand .dot { color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 1.1rem; }

.header-login {
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}

.header-login:hover { color: var(--fg); }

.header-cta { height: 2.4rem; padding: 0 1rem; font-size: 0.88rem; white-space: nowrap; }

/* ---- Language picker ---- */

.lang { display: flex; align-items: center; gap: 0.2rem; }

/* Kaks keelt ei vaja rippmenüüd: mõlemad on korraga näha ja valitud on esile
   tõstetud. Lipp üksi ei tähista keelt, seetõttu on kõrval alati keelekood. */
.lang-opt {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--muted);
  text-decoration: none;
  padding: 0.35rem 0.55rem;
  border-radius: 0.4rem;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.lang-opt:hover { color: var(--fg); background: var(--surface); }

.lang-opt[aria-current="true"] {
  color: var(--accent);
  background: var(--accent-wash);
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
}

.flag {
  width: 1.15rem;
  height: 0.75rem;
  display: block;
  border-radius: 1px;
  /* Eesti lipu alumine triip on valge - ilma selleta sulaks see heleda taustaga kokku. */
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--fg) 18%, transparent);
}

.lang-opt:not([aria-current="true"]) .flag { opacity: 0.7; }
.lang-opt:hover .flag { opacity: 1; }

/* ---- Hero ---- */

.hero { padding: 5.75rem 0 var(--pad-lg); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.22fr);
  gap: 3.4rem;
  align-items: center;
}

.hero-copy { max-width: 34rem; }
.hero-copy h1 { margin-bottom: 1.35rem; }
.hero-copy .lede { margin-bottom: 1.1rem; }
.hero-body { color: var(--muted); margin-bottom: 1.1rem; }

.hero-claim {
  font-size: 0.94rem;
  color: var(--fg-2);
  padding-left: 0.9rem;
  border-left: 2px solid var(--accent);
  margin-bottom: 2.1rem;
}

/* ---- Product frame: the proposal review screen ---- */

.hero-visual { min-width: 0; }

.frame {
  border: 1px solid var(--hairline);
  border-radius: 0.75rem;
  background: var(--panel);
  box-shadow: var(--frame-shadow);
  overflow: hidden;
}

.frame-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--hairline-soft);
  background: var(--frame-chrome);
}

.dots { display: flex; gap: 0.375rem; }
.dots i { width: 0.56rem; height: 0.56rem; border-radius: 50%; background: var(--frame-dots); display: block; }

.crumb {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.frame-body { padding: 1.25rem 1.25rem 1.1rem; }

.prop-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--hairline-soft);
}

.prop-head h4 { font-size: 1.0625rem; font-weight: 680; letter-spacing: -0.015em; }

.prop-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
}

.pill {
  font-size: 0.72rem;
  font-weight: 650;
  border-radius: 0.28rem;
  padding: 0.13rem 0.5rem;
  background: var(--valid);
  color: #fff;
  letter-spacing: 0.01em;
}

/* Kind chips carry the ontology's own colours, as the app does. */
.hier { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; margin: 0.9rem 0; }

.hier-label {
  font-size: 0.65rem;
  font-weight: 650;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--meta-key);
  margin-right: 0.15rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--fg-2);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 0.16rem 0.6rem;
}

.chip i { width: 0.44rem; height: 0.44rem; border-radius: 50%; background: var(--dot); display: block; }
.chip b { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }

.counter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--muted);
  border: 1px solid var(--hairline-soft);
  border-radius: 0.5rem;
  padding: 0.5rem 0.7rem;
}

.counter b { color: var(--fg); font-weight: 650; font-variant-numeric: tabular-nums; }
.counter .rev { font-variant-numeric: tabular-nums; }

.node {
  margin-top: 0.7rem;
  border: 1px solid var(--hairline-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0.5rem;
  overflow: hidden;
}

.node-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  background: var(--row-alt);
  padding: 0.55rem 0.7rem;
}

.cbox {
  width: 1rem;
  height: 1rem;
  border-radius: 0.2rem;
  background: var(--accent);
  color: var(--on-accent);
  display: grid;
  place-items: center;
  flex: none;
}

.node-title { font-size: 0.9rem; font-weight: 620; letter-spacing: -0.01em; }
.node-from { font-size: 0.75rem; color: var(--meta-key); }

.fields { padding: 0.15rem 0.7rem 0.6rem; }

.fields div {
  display: grid;
  grid-template-columns: 4.4rem minmax(0, 1fr);
  align-items: center;
  gap: 0.6rem;
  padding-top: 0.45rem;
}

.fields dt { font-size: 0.78rem; color: var(--meta-key); }

.fields dd {
  font-size: 0.8125rem;
  color: var(--fg-2);
  background: var(--field);
  border: 1px solid var(--field-line);
  border-radius: 0.3rem;
  padding: 0.28rem 0.55rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.edge-label {
  font-size: 0.65rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--meta-key);
  padding: 0.35rem 0.7rem 0.4rem;
}

.edge-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; padding: 0 0.7rem 0.7rem; }

.echip {
  font-size: 0.78rem;
  color: var(--fg-2);
  border: 1px solid var(--hairline);
  border-radius: 0.35rem;
  padding: 0.15rem 0.5rem;
}

.echip span { color: var(--accent); font-weight: 600; }

.verdict {
  margin-top: 0.8rem;
  font-size: 0.84rem;
  color: var(--valid);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.decide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.9rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--hairline-soft);
}

.decide-note { font-size: 0.8125rem; color: var(--muted); }
.decide-actions { display: flex; gap: 0.5rem; }

/* Static replicas of the real controls: nothing here is clickable. */
.fake-btn {
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.44rem;
  padding: 0.4rem 1rem;
  border: 1px solid transparent;
}

.fake-approve { background: var(--accent); color: var(--on-accent); }
.fake-reject { background: var(--panel); color: var(--fg-2); border-color: var(--hairline); }

.frame-caption {
  margin-top: 0.9rem;
  font-size: 0.8125rem;
  color: var(--muted);
  text-align: center;
}

.frame-caption b { color: var(--fg-2); font-weight: 600; }

/* ---- The gate: three columns, one hairline vocabulary ---- */

.cols-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 3rem;
}

.col { padding: 0 1.9rem; border-left: 1px solid var(--hairline); }
.col:first-child { padding-left: 0; border-left: 0; }
.col:last-child { padding-right: 0; }

/* Small scan cue: validate -> approve -> record, read before any copy. */
.col-tag {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.55rem;
}

.col-tag span { color: var(--tag-dim); }

.col h3 { font-size: 1.03rem; font-weight: 650; margin-bottom: 0.6rem; letter-spacing: -0.012em; }
.col p { font-size: 0.9375rem; color: var(--muted); }
.col p + p { margin-top: 0.6rem; }

/* ---- Lifecycle ---- */

/* Two entry paths into the same lifecycle: existing knowledge migrates in,
   new knowledge is created natively. They converge on the shared rail. */

.entries {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 3.25rem;
  list-style: none;
}

.entry {
  padding: 1.7rem 1.8rem;
  border: 1px solid var(--hairline);
  border-radius: 0.75rem;
  background: var(--panel);
}

.entry-tag {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: 0.85rem;
}

.entry h3 { font-size: 1.03rem; font-weight: 650; margin-bottom: 0.5rem; letter-spacing: -0.012em; }
.entry p { font-size: 0.9375rem; color: var(--muted); }

.converge {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-top: 2.4rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.converge::before, .converge::after { content: ""; flex: 1; height: 1px; background: var(--hairline); }

.flow { margin-top: 2.4rem; position: relative; }

.flow-rail { position: absolute; top: 1.06rem; left: 0; right: 0; height: 1px; background: var(--hairline); }

.flow-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.6rem;
  list-style: none;
}

.step-num {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--bg);
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  font-variant-numeric: tabular-nums;
}

.step h3 { font-size: 0.97rem; font-weight: 650; margin-bottom: 0.45rem; letter-spacing: -0.01em; }
.step p { font-size: 0.875rem; color: var(--muted); line-height: 1.55; }

/* ---- Guided applications / knowledge layer ---- */
/* Both sit on white directly after another white section. A hairline
   marks the transition instead of another background, so the page
   gains a section without gaining a colour. */

.apps, .layer { border-top: 1px solid var(--hairline); }

.apps-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 3.5rem;
  align-items: center;
  margin-top: 2.75rem;
}

.wiz {
  min-width: 0;
  border: 1px solid var(--hairline);
  border-radius: 0.75rem;
  background: var(--panel);
  box-shadow: var(--frame-shadow);
  overflow: hidden;
}

.wiz-body { padding: 1.15rem; }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.6rem; }

.wstep {
  font-size: 0.6875rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 2px solid var(--hairline);
  padding-top: 0.55rem;
}

.wstep i {
  font-style: normal;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  margin-right: 0.2rem;
}

.wstep.done { color: var(--valid); border-color: var(--valid); }
.wstep.now { color: var(--accent); border-color: var(--accent); font-weight: 750; }

.draft {
  margin-top: 1.15rem;
  border: 1px solid var(--hairline-soft);
  border-radius: 0.55rem;
  padding: 0.9rem;
}

.draft-top { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.75rem; }

.kind-y {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--kind-y);
  background: var(--kind-y-wash);
  border: 1px solid var(--kind-y-line);
  border-radius: 0.3rem;
  padding: 0.1rem 0.45rem;
}

.pill-warn, .pill-ok {
  font-size: 0.6875rem;
  font-weight: 600;
  border-radius: 0.3rem;
  padding: 0.1rem 0.45rem;
}

.pill-warn { color: var(--warn); background: var(--warn-wash); }
.pill-ok { color: var(--valid); background: var(--valid-wash); margin-left: auto; }

.flabel {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--meta-key);
  margin: 0.65rem 0 0.3rem;
}

.finput {
  font-size: 0.84rem;
  color: var(--fg-2);
  background: var(--field);
  border: 1px solid var(--field-line);
  border-radius: 0.35rem;
  padding: 0.44rem 0.6rem;
}

.finput-empty { height: 2.1rem; }

.ai-row { display: flex; align-items: center; gap: 0.6rem; margin-top: 0.5rem; flex-wrap: wrap; }

.ai-btn {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 0.44rem;
  padding: 0.3rem 0.6rem;
}

.ai-working { font-size: 0.8125rem; color: var(--muted); }

.rel {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  border: 1px solid var(--hairline-soft);
  border-radius: 0.5rem;
  padding: 0.5rem 0.6rem;
}

.rel-kind {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  color: var(--meta-key);
}

.rel-title { font-size: 0.875rem; font-weight: 620; letter-spacing: -0.01em; }

.sub { font-size: 0.8125rem; color: var(--muted); padding: 0.3rem 0 0 1.4rem; }

.claims { list-style: none; }
.claim { padding: 1.05rem 0; border-top: 1px solid var(--hairline); }
.claim:first-child { border-top: 0; padding-top: 0; }
.claim h3 { font-size: 1.03rem; font-weight: 650; letter-spacing: -0.012em; margin-bottom: 0.35rem; }
.claim p { font-size: 0.9375rem; color: var(--muted); }

/* ---- Beyond one domain: three readings of one model ---- */

.sec-range h2 { font-size: clamp(1.5rem, 2.1vw, 1.8rem); }

.domains {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 3.75rem;
  list-style: none;
}

.domain { padding: 0 2.5rem; border-left: 1px solid var(--hairline); }
.domain:first-child { padding-left: 0; border-left: 0; }
.domain:last-child { padding-right: 0; }

.domain h3 {
  font-size: 1rem;
  font-weight: 680;
  letter-spacing: -0.008em;
  line-height: 1.3;
  min-height: 2.6em;          /* holds every rule on one baseline */
}

/* Two deliberate lines per title on desktop. A block span rather than a
   <br>, so collapsing to one line on mobile keeps the word space. */
.domain h3 span { display: block; }

.domain-rule { height: 1px; background: var(--fg); opacity: 0.22; margin: 0.9rem 0 1rem; }

.domain p { font-size: 0.9063rem; color: var(--muted); line-height: 1.62; }

.closer {
  margin-top: 4.875rem;
  padding-top: 2.75rem;
  border-top: 1px solid var(--hairline);
  text-align: center;
}

.closer-mark { width: 2.125rem; height: 2px; background: var(--accent); margin: 0 auto 1.4rem; }

.closer p {
  font-size: clamp(1.19rem, 2.1vw, 1.5rem);
  line-height: 1.3;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

.closer .dim { font-weight: 500; color: var(--muted); }
.closer .loud { font-weight: 700; color: var(--fg); }

/* ---- KnowledgeOps anchor ---- */

.ops-strip { background: var(--anchor); color: var(--anchor-fg); padding: 6.5rem 0; text-align: center; }

.ops-strip .kicker { color: var(--anchor-accent); margin-bottom: 1.6rem; }

.ops-quiet {
  font-size: clamp(1.06rem, 1.6vw, 1.25rem);
  color: var(--anchor-muted);
  font-weight: 450;
  line-height: 1.5;
  max-width: 30rem;
  margin: 0 auto 0.9rem;
}

.ops-line {
  font-size: clamp(1.5rem, 2.9vw, 2.15rem);
  font-weight: 680;
  letter-spacing: -0.028em;
  line-height: 1.2;
  color: var(--anchor-fg);
  max-width: 32rem;
  margin: 0 auto 2.1rem;
  text-wrap: balance;
}

/* Only the coined term carries the accent: the sentence is not a link. */
.ops-line .hot { color: var(--anchor-accent); font-weight: inherit; }

/* The closing line sits between the statement and the chain, so it needs
   more air beneath it than the setup line above the statement. */
.ops-tail { margin-bottom: 2rem; }

.ops-chain {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--anchor-faint);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.375rem 0.75rem;
  list-style: none;
}

.ops-chain li::after { content: " ·"; color: var(--anchor-faint); opacity: 0.6; }
.ops-chain li:last-child::after { content: ""; }

/* ---- Trust: the only card grid on the page ---- */

.trust-row {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2.75rem;
}

.tcard {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 0.875rem;
  padding: 1.6rem 1.75rem;
}

.tcard-head { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.7rem; }
.tcard-head h3 { font-size: 1.03rem; font-weight: 650; letter-spacing: -0.012em; }

.ticon {
  width: 1.875rem;
  height: 1.875rem;
  border-radius: 0.5rem;
  background: var(--accent-wash);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex: none;
}

.tcard p { font-size: 0.9375rem; color: var(--muted); }
.tcard p + p { margin-top: 0.55rem; }

/* ---- Contact ---- */

.cta-panel {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 1.125rem;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
}

/* Padding sits on the halves, not the panel, so the divider runs the
   full height. Same hairline as the gate and the domains. */
.cta-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3.25rem 3.5rem;
}
.cta-copy h2 { margin-bottom: 1rem; }
.cta-copy p { color: var(--muted); }
.cta-copy p + p { margin-top: 0.75rem; }

.cta-side {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 1.25rem;
  padding: 3.25rem 3.5rem;
  border-left: 1px solid var(--hairline);
}

.cta-side .cta-button { justify-content: center; }

/* ---- Footer ---- */

footer {
  background: var(--surface);
  border-top: 1px solid var(--hairline);
  padding: 1.9rem 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.footer-in { display: flex; align-items: center; justify-content: space-between; gap: 1.1rem; flex-wrap: wrap; }
.footer-left { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.footer-left .sep { opacity: 0.5; }

footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--fg); }

/* ---- Responsive ---- */

@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.9rem; }
  .hero-copy { max-width: var(--reading); }
  .hero-visual { max-width: 36rem; }

  /* Visual first, then the claims at full width - never two squeezed columns. */
  .apps-grid { grid-template-columns: 1fr; gap: 2.6rem; }
  .wiz { max-width: 36rem; }

  .flow-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.1rem; }
  .flow-rail { display: none; }
}

@media (max-width: 900px) {
  :root { --pad-lg: 5rem; --pad-md: 4rem; --gutter: 1.4rem; }

  .cols-3 { grid-template-columns: 1fr; gap: 1.6rem; margin-top: 2.5rem; }
  .col, .col:first-child { padding: 0 0 0 1.1rem; border-left: 1px solid var(--hairline); }

  .domains { grid-template-columns: 1fr; margin-top: 2.75rem; }
  .domain { padding: 1.9rem 0 0; border-left: 0; border-top: 1px solid var(--hairline); }
  .domain:first-child { padding-top: 0; border-top: 0; }
  .domain h3 { min-height: 0; }
  .domain h3 span { display: inline; }
  .closer { margin-top: 3.4rem; padding-top: 2.25rem; }

  .ops-strip { padding: 4.5rem 0; }

  .cta-panel { grid-template-columns: 1fr; }
  .cta-copy { padding: 2.1rem 2.1rem 1.9rem; }
  .cta-side { padding: 1.9rem 2.1rem 2.1rem; border-left: 0; border-top: 1px solid var(--hairline); }
}

@media (max-width: 720px) {
  .trust-row { grid-template-columns: 1fr; }
  .entries { grid-template-columns: 1fr; }
  .flow-steps { grid-template-columns: 1fr; gap: 1.6rem; }
  .hero { padding-top: 3.5rem; }
}

@media (max-width: 560px) {
  .header-login { display: none; }

  /* Four uppercase step labels do not fit one row on a phone. */
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem 0.6rem; }

  /* Right-aligning the pill strands it on its own line once the row wraps. */
  .pill-ok { margin-left: 0; }

  /* Brand, language and CTA were crowding each other. */
  .header-actions { gap: 0.6rem; }
  .header-cta { padding: 0 0.8rem; }
  .lang-opt { padding: 0.3rem 0.4rem; }
}

/* On a 360px phone the English CTA pushed the header past the viewport.
   The flag carries the language on its own - the menu still names both. */
@media (max-width: 420px) {
  .lang-opt span { display: none; }
  .header-cta { font-size: 0.84rem; padding: 0 0.7rem; }
}

/* Below this there is no honest room for a header button. It is dropped
   rather than crammed edge to edge - the hero CTA sits just underneath. */
@media (max-width: 340px) {
  .header-cta { display: none; }
}
