/* Helvetiqa.io — Swiss-style, single stylesheet, no framework. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  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";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
  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 {
  --navy: #111a2e;
  --blue: #0b63e5;
  --blue-600: #0952bf;
  --blue-soft: #e8f0fd;

  --bg: #ffffff;
  --bg-alt: #f6f8fb;
  --surface: #ffffff;
  --ink: #111a2e;
  --ink-2: #3d4659;
  --muted: #667085;
  --line: #e3e7ee;
  --accent: var(--blue);
  --accent-soft: var(--blue-soft);
  --ok: #12a150;
  --warn: #d68a00;
  --bad: #d92d20;
  --code-bg: #0e1626;
  --code-ink: #d6deeb;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(17, 26, 46, .04), 0 8px 24px rgba(17, 26, 46, .06);
  --max: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Code", Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1220;
    --bg-alt: #0f1828;
    --surface: #121c2e;
    --ink: #eef2f8;
    --ink-2: #c3cad6;
    --muted: #8f9ab0;
    --line: #223049;
    --accent: #3d86f5;
    --accent-soft: rgba(61, 134, 245, .14);
    --code-bg: #070c16;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1220;
  --bg-alt: #0f1828;
  --surface: #121c2e;
  --ink: #eef2f8;
  --ink-2: #c3cad6;
  --muted: #8f9ab0;
  --line: #223049;
  --accent: #3d86f5;
  --accent-soft: rgba(61, 134, 245, .14);
  --code-bg: #070c16;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4.2rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 6px; }
.skip-link:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.03em; }
.brand:hover { text-decoration: none; }
.brand .mark { width: 34px; height: auto; }
.brand .io { color: var(--blue); }
.mark .m-ink { fill: var(--ink); }
.mark .m-gap { stroke: var(--bg); }
.mark .m-check { stroke: var(--blue); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink-2); font-size: .95rem; font-weight: 500; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-tools { display: flex; align-items: center; gap: 10px; }
.lang-menu { position: relative; }
.lang-menu summary {
  list-style: none; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 10px 0 12px;
  border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-size: .8rem; font-weight: 700; letter-spacing: .04em; color: var(--ink);
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover { background: var(--bg-alt); }
.lang-menu summary svg { width: 16px; height: 16px; }
.lang-menu summary svg:last-child { width: 14px; height: 14px; color: var(--muted); transition: transform .2s; }
.lang-menu[open] summary svg:last-child { transform: rotate(180deg); }
.lang-menu ul {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 170px; margin: 0; padding: 6px; list-style: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
}
.lang-menu a { display: flex; gap: 10px; padding: 9px 12px; border-radius: 8px; color: var(--ink-2); font-size: .92rem; }
.lang-menu a b { width: 22px; font-size: .78rem; color: var(--muted); }
.lang-menu a:hover { background: var(--bg-alt); text-decoration: none; color: var(--ink); }
.lang-menu a[aria-current="true"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
[tabindex="-1"]:focus { outline: none; }
.icon-btn {
  width: 38px; height: 38px; display: inline-grid; place-items: center;
  border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink); cursor: pointer;
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { background: var(--bg-alt); }
.theme-toggle span { display: grid; place-items: center; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: grid; }
.menu-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: 600 1rem/1 var(--font); border: 1px solid transparent; cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-600); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-2); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: .9rem; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Sections ---------- */
section { padding: clamp(48px, 7vw, 88px) 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: 220px 1fr; gap: 20px 48px; margin-bottom: 40px; }
.section-index {
  font-family: var(--mono); font-size: .82rem; color: var(--muted);
  border-top: 2px solid var(--ink); padding-top: 12px; letter-spacing: .04em; text-transform: uppercase;
}
.section-index b { color: var(--accent); font-weight: 700; }
.section-head p { color: var(--ink-2); font-size: 1.1rem; max-width: 640px; margin: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .85rem; font-weight: 600; color: var(--accent); letter-spacing: .02em; margin-bottom: 20px; }
.eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 7vw, 88px); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 0%, transparent 75%);
  opacity: .6;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 .accent { color: var(--accent); }
.hero .lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 580px; margin-bottom: 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 36px; padding: 0; list-style: none; color: var(--muted); font-size: .92rem; }
.hero-meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 16px; height: 16px; color: var(--ok); flex: none; }

/* Pipeline run card */
.run-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.run-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: .85rem; }
.run-head .dots { display: flex; gap: 6px; }
.run-head .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.run-head code { font-family: var(--mono); color: var(--muted); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.run-steps { list-style: none; margin: 0; padding: 10px 0; }
.run-steps li { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center; padding: 9px 18px; font-size: .93rem; }
.run-steps .t { font-family: var(--mono); font-size: .78rem; color: var(--muted); }
.run-steps .st { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.run-steps .st svg { width: 12px; height: 12px; }
.run-steps li.pass .st { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.run-steps li.heal .st { background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--warn); }
.run-steps li .note { display: block; font-size: .78rem; color: var(--muted); }
.run-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--line); background: var(--bg-alt); font-size: .85rem; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.badge-ok { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.badge-blue { background: var(--accent-soft); color: var(--accent); }

/* Reveal pipeline steps one by one */
.js .run-steps li { opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s; }
.js .run-steps li.shown { opacity: 1; transform: none; }

/* ---------- Cards / services ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card { background: var(--surface); padding: 32px 28px; }
.card .ico { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 20px; }
.card .ico svg { width: 22px; height: 22px; }
.card p { color: var(--ink-2); font-size: .97rem; margin-bottom: 14px; }
.card ul { margin: 0; padding: 0; list-style: none; font-size: .88rem; color: var(--muted); }
.card ul li { padding: 3px 0 3px 16px; position: relative; }
.card ul li::before { content: ""; position: absolute; left: 0; top: .8em; width: 6px; height: 2px; background: var(--accent); }

/* ---------- AI section ---------- */
.ai-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ai-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.ai-item .tag { font-family: var(--mono); font-size: .75rem; color: var(--accent); letter-spacing: .05em; text-transform: uppercase; margin-bottom: 10px; }
.ai-item p { color: var(--ink-2); font-size: .96rem; }
.ai-item .demo { margin-top: auto; }

.terminal {
  background: var(--code-bg); color: var(--code-ink); border-radius: 10px; padding: 16px;
  font-family: var(--mono); font-size: .78rem; line-height: 1.75; overflow-x: auto; white-space: pre;
}
.terminal .r { color: #ff7b72; }
.terminal .y { color: #f2cc60; }
.terminal .g { color: #56d364; }
.terminal .b { color: #79c0ff; }
.terminal .m { color: #8b949e; }

.gen-flow { display: grid; gap: 8px; }
.gen-flow div { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font-size: .85rem; background: var(--bg-alt); }
.gen-flow div b { display: block; font-size: .72rem; font-family: var(--mono); color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: .05em; }
.gen-flow .arrow { border: 0; background: none; padding: 0; text-align: center; color: var(--muted); line-height: 1; }

/* Decision matrix */
.matrix-wrap { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: stretch; }
.matrix-y { writing-mode: vertical-rl; transform: rotate(180deg); text-align: center; font-size: .7rem; color: var(--muted); font-family: var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.matrix { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.matrix span { aspect-ratio: 1.35; border-radius: 6px; display: grid; place-items: center; text-align: center; font-size: .7rem; font-weight: 700; padding: 4px; line-height: 1.2; }
.matrix .l1 { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.matrix .l2 { background: color-mix(in srgb, var(--warn) 20%, transparent); color: var(--warn); }
.matrix .l3 { background: color-mix(in srgb, var(--bad) 16%, transparent); color: var(--bad); }
.matrix-x { grid-column: 2; text-align: center; font-size: .7rem; color: var(--muted); font-family: var(--mono); text-transform: uppercase; letter-spacing: .06em; }

.note-box { margin-top: 32px; display: flex; gap: 14px; align-items: flex-start; padding: 18px 22px; border-radius: var(--radius); border: 1px dashed var(--line); color: var(--ink-2); font-size: .95rem; }
.note-box svg { width: 22px; height: 22px; flex: none; color: var(--accent); margin-top: 2px; }

/* ---------- CI/CD pipeline ---------- */
.pipeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; counter-reset: stage; }
.pipeline li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 18px; }
.pipeline li::before { counter-increment: stage; content: "0" counter(stage); font-family: var(--mono); font-size: .75rem; color: var(--muted); display: block; margin-bottom: 10px; }
.pipeline li h3 { font-size: 1rem; margin-bottom: 6px; }
.pipeline li p { font-size: .85rem; color: var(--ink-2); margin: 0; }
.pipeline li .gate { display: inline-block; margin-top: 12px; font-size: .7rem; font-weight: 700; font-family: var(--mono); color: var(--accent); background: var(--accent-soft); padding: 3px 8px; border-radius: 6px; }
.pipeline li:not(:last-child)::after {
  content: ""; position: absolute; top: 50%; right: -9px; width: 6px; height: 6px;
  border-top: 2px solid var(--muted); border-right: 2px solid var(--muted); transform: translateY(-50%) rotate(45deg);
}
.pipeline-tools { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); font-size: .9rem; }

/* ---------- Engagement ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.plan { border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; background: var(--surface); display: flex; flex-direction: column; }
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.plan .kicker { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; }
.plan .dur { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.03em; margin: 4px 0 14px; }
.plan p { color: var(--ink-2); font-size: .95rem; }
.plan ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; font-size: .93rem; }
.plan ul li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; }
.plan ul svg { width: 18px; height: 18px; color: var(--accent); margin-top: 3px; }
.plan .btn { margin-top: auto; }

/* ---------- Principles ---------- */
.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.principles > div { background: var(--surface); padding: 28px 24px; }
.principles .de { display: block; font-family: var(--mono); font-size: .75rem; color: var(--muted); margin-bottom: 14px; }
.principles p { font-size: .93rem; color: var(--ink-2); margin: 0; }

/* ---------- Stack ---------- */
.stack { display: flex; flex-wrap: wrap; gap: 10px; }
.principles + .stack { margin-top: 28px; }
.home-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip { display: inline-flex; align-items: center; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; font-weight: 500; color: var(--ink-2); background: var(--surface); }
.chip.sm { padding: 4px 10px; font-size: .8rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font-weight: 650; font-size: 1.06rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 300; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--ink-2); padding-bottom: 22px; margin: 0; max-width: 760px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.contact-info p { color: var(--ink-2); font-size: 1.08rem; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: center; }
.contact-list .ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.contact-list .ico svg { width: 20px; height: 20px; }
.contact-list small { display: block; color: var(--muted); font-size: .8rem; }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: .88rem; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; min-height: 48px;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.hp { position: absolute; left: -9999px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--muted); margin: 4px 0 18px; }
.consent input { margin-top: 4px; width: 16px; height: 16px; flex: none; accent-color: var(--blue); }
.cf-turnstile { margin-bottom: 16px; min-height: 65px; }
.form .btn { width: 100%; }
.form-status { margin: 14px 0 0; font-size: .92rem; min-height: 1.4em; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--bad); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 28px; font-size: .92rem; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-grid h2 { color: var(--ink); font-size: .85rem; margin: 0 0 14px; text-transform: uppercase; letter-spacing: .06em; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--muted); }
.footer-grid a:hover { color: var(--ink); }
.footer-grid .brand { margin-bottom: 14px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 24px; }

/* ---------- Legal pages ---------- */
.legal { padding: 64px 0 96px; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.legal h2 { font-size: 1.3rem; margin-top: 2em; }
.legal p, .legal li { color: var(--ink-2); }
.todo { background: color-mix(in srgb, var(--warn) 18%, transparent); padding: 0 4px; border-radius: 4px; }

.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.notfound .code { font-family: var(--mono); color: var(--accent); font-size: .9rem; margin-bottom: 12px; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .pipeline { grid-template-columns: repeat(3, 1fr); }
  .pipeline li:nth-child(3)::after { display: none; }
  .principles { grid-template-columns: repeat(2, 1fr); }
  .ai-grid { grid-template-columns: 1fr 1fr; }
  .ai-grid .ai-item:last-child { grid-column: 1 / -1; }
}

@media (max-width: 920px) {
  .menu-toggle { display: inline-grid; }
  .nav-links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav-links a { display: block; padding: 14px 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav-open .nav-links { transform: none; opacity: 1; visibility: visible; }
  .nav-cta { display: none; }

  .hero-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .section-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 40px; }
  .section-index { max-width: 220px; }
  .grid-3, .plans { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .lang-menu summary span { display: none; }
  .lang-menu summary { padding: 0 8px 0 10px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid-3, .plans, .ai-grid, .form-row { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr 1fr; }
  .principles > div { padding: 18px 16px; }
  .principles p { font-size: .85rem; }
  .card { padding: 22px 20px; }
  .card ul { display: none; }
  .card p { margin: 0; }
  .card .ico { margin-bottom: 12px; }
  .ai-item, .plan { padding: 22px 20px; }
  .section-head { margin-bottom: 28px; }
  .section-head p { font-size: 1rem; }
  .ai-grid .ai-item:last-child { grid-column: auto; }
  .form-row { gap: 0; }
  .pipeline { grid-template-columns: 1fr 1fr; gap: 8px; }
  .pipeline li::after { display: none !important; }
  .pipeline li { padding: 14px; }
  .pipeline li::before { margin-bottom: 4px; }
  .pipeline li p { font-size: .8rem; }
  .pipeline li .gate { margin-top: 8px; font-size: .65rem; }
  .hero-cta .btn { flex: 1 1 100%; }
  .run-steps li { padding: 8px 14px; font-size: .88rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand { font-size: 1.12rem; }
  .brand .mark { width: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal, .js .run-steps li { opacity: 1; transform: none; }
}

