/* Night/Shift website, dark theme. Tokens follow nightshift-palette-dark.svg. */
:root {
  --bg-primary: #0a0e14;
  --bg-secondary: #0d1117;
  --bg-tertiary: #151b23;
  --bg-elevated: #1a222c;
  --bg-hover: #1f2937;
  --surface-border: #21262d;
  --surface-border-light: #30363d;
  --text-primary: #e6edf3;
  --text-secondary: #8b949e;
  --text-tertiary: #6e7681;
  --text-muted: #484f58;
  --accent-primary: #00d4ff;
  --accent-primary-dim: #0099cc;
  --accent-primary-bg: rgba(0, 212, 255, 0.1);
  --accent-primary-border: rgba(0, 212, 255, 0.3);
  --level-critical: #ef4444;
  --level-high: #f97316;
  --level-medium: #f59e0b;

  --font-body: "Geist", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: 24px;
  --max: 1240px;
  --slash: -15.6deg; /* angle of the slash in the wordmark */
  --slash-rise: 3.58; /* 1 / tan(15.6deg): height of the slant per unit of width */
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-primary); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent-primary); outline-offset: 3px; }
::selection { background: var(--accent-primary); color: var(--bg-primary); }

h1, h2, h3, p, ul, blockquote, figure { margin: 0; }
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; text-wrap: balance; }

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

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  padding: 8px 14px; background: var(--accent-primary); color: var(--bg-primary);
}
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg-primary);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--surface-border); }
.site-header .wrap { display: flex; align-items: center; gap: 36px; height: 72px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 20px; width: auto; }
.nav { display: flex; gap: 32px; margin-left: auto; }
.nav a { color: var(--text-secondary); font-size: 15px; font-weight: 500; transition: color .15s; }
.nav a:hover { color: var(--text-primary); text-decoration: none; }
.nav .nav-login { display: none; }
.header-tools { display: flex; align-items: center; gap: 14px; }
.brand + .header-tools { margin-left: auto; }

.lang {
  display: inline-flex; gap: 2px; isolation: isolate;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .5px;
}
.lang a { --h: 26px; position: relative; padding: 4px 14px 4px 10px; line-height: 18px; color: var(--text-secondary); }
.lang a:hover { color: var(--text-primary); text-decoration: none; }
.lang a[aria-current="true"] { --fill: var(--text-primary); color: var(--bg-primary); }
.lang a + a { padding: 4px 10px 4px 14px; }

.menu-btn {
  --h: 38px; --edge: var(--surface-border-light);
  display: none; position: relative; isolation: isolate; width: 46px; height: var(--h); padding: 0 8px 0 0;
  border: 0; background: none; color: var(--text-primary); cursor: pointer;
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  display: block; width: 16px; height: 1.5px; margin: 0 auto; background: currentColor;
  transition: transform .2s, opacity .2s;
}
.menu-btn span { position: relative; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -5px; }
.menu-btn span::after { top: 5px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { transform: translateY(5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { transform: translateY(-5px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  --h: 48px;
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 calc(24px + var(--h) / var(--slash-rise)) 0 24px;
  border: 0; background: none;
  font: 500 15px/1 var(--font-body); cursor: pointer;
}
.btn:hover { text-decoration: none; }
.btn-primary { --fill: var(--accent-primary); color: var(--bg-primary); }
.btn-primary:hover { --fill: var(--text-primary); }
.btn-ghost { --edge: var(--surface-border-light); color: var(--text-primary); }
.btn-ghost:hover { --edge: var(--text-primary); }
.btn-sm { --h: 38px; padding: 0 calc(18px + var(--h) / var(--slash-rise)) 0 18px; font-size: 14px; }

/* Controls keep a vertical left edge; the right edge leans like the slash in the wordmark.
   Each sets --h (its height) and either --fill or, for outlined ones, --edge. */
.btn::before, .menu-btn::before, .lang a[aria-current="true"]::before {
  --d: calc(var(--h) / var(--slash-rise));
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--fill, transparent);
  clip-path: polygon(0 0, 100% 0, calc(100% - var(--d)) 100%, 0 100%);
}
/* Outlines: the same shape with a 1px-inset hole cut out of it. */
.btn-ghost::before, .menu-btn::before {
  background: var(--edge);
  clip-path: polygon(evenodd,
    0 0, 100% 0, calc(100% - var(--d)) 100%, 0 100%, 0 0,
    1px 1px, calc(100% - 1.3px) 1px, calc(100% - var(--d) - .76px) calc(100% - 1px), 1px calc(100% - 1px), 1px 1px);
}
/* In a pair (two buttons, or EN/NO) the second mirrors the first, so the two meet along one slash. */
.actions .btn + .btn {
  margin-left: calc(var(--h) / var(--slash-rise) * -1);
  padding: 0 24px 0 calc(24px + var(--h) / var(--slash-rise));
}
.actions .btn + .btn::before, .lang a + a[aria-current="true"]::before { clip-path: polygon(var(--d) 0, 100% 0, 100% 100%, 0 100%); }
.actions .btn-ghost + .btn-ghost::before, .actions .btn + .btn-ghost::before {
  clip-path: polygon(evenodd,
    var(--d) 0, 100% 0, 100% 100%, 0 100%, var(--d) 0,
    calc(var(--d) + .76px) 1px, calc(100% - 1px) 1px, calc(100% - 1px) calc(100% - 1px), 1.3px calc(100% - 1px), calc(var(--d) + .76px) 1px);
}

/* ---------- Shared type ---------- */
.section { position: relative; padding: 136px 0; }
.section + .section { border-top: 1px solid var(--surface-border); }
.section-head { max-width: 860px; margin-bottom: 64px; }
.section h2 {
  font-weight: 600; font-size: clamp(38px, 5.4vw, 68px); line-height: 1.02; letter-spacing: -.035em;
  color: var(--text-primary);
}
.section-head p { margin-top: 24px; max-width: 680px; font-size: 20px; line-height: 1.5; color: var(--text-secondary); }

.card {
  position: relative;
  background-color: var(--bg-secondary);
  border: 1px solid var(--surface-border);
  padding: 32px;
}
.card h3 { hyphens: manual; -webkit-hyphens: manual; font-size: 19px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; color: var(--text-primary); }
.card p { margin-top: 8px; color: var(--text-secondary); font-size: 15px; line-height: 1.5; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 96px 0 120px; }
.hero::before {
  content: ""; position: absolute; top: -10%; right: 6%; width: 22%; height: 120%; pointer-events: none;
  background: var(--bg-secondary); border-left: 1px solid var(--surface-border);
  transform: skewX(var(--slash));
}
.hero .wrap { position: relative; }
.hero h1 {
  max-width: 1080px; hyphens: manual; -webkit-hyphens: manual;
  font-weight: 600; font-size: clamp(44px, 7vw, 92px); line-height: .98; letter-spacing: -.045em;
}
.hero h1 .accent { color: var(--accent-primary); }
.hero-sub { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px 48px; margin-top: 40px; }
.hero .lead { max-width: 580px; font-size: 20px; line-height: 1.5; color: var(--text-secondary); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Product console: an attack path and the findings it produces */
.console {
  margin-top: 80px; overflow: hidden;
  background-color: var(--bg-secondary);
  border: 1px solid var(--surface-border-light);
}
.console-bar {
  display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 20px;
  border-bottom: 1px solid var(--surface-border);
}
.console-bar img { height: 14px; width: auto; margin-right: 18px; opacity: .8; }
.console-bar .tab { width: 64px; height: 8px; background: var(--surface-border-light); }
.console-bar .tab.on { background: var(--accent-primary); }
.console-body { display: grid; grid-template-columns: 1.4fr 1fr; }
.graph { width: 100%; height: auto; padding: 32px; }
.graph .path { stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 1.6s .3s cubic-bezier(.5, 0, .2, 1) forwards; }
.graph .node { fill: var(--bg-primary); stroke: var(--c); stroke-width: 2; }
.graph .ping { fill: none; stroke: var(--c); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: ping 2.4s 1.9s ease-out infinite both; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes ping { 0% { transform: scale(1); opacity: .9; } 70%, 100% { transform: scale(2.2); opacity: 0; } }

.findings { display: grid; align-content: center; gap: 12px; padding: 32px; border-left: 1px solid var(--surface-border); }
.findings li {
  list-style: none; display: grid; grid-template-columns: 4px 1fr auto; align-items: center; gap: 0 16px;
  padding: 16px 18px 16px 0; overflow: hidden;
  background-color: var(--bg-tertiary); border: 1px solid var(--surface-border);
  animation: arrive .5s ease-out both;
}
.findings li:nth-child(1) { animation-delay: 1.7s; }
.findings li:nth-child(2) { animation-delay: 1.2s; }
.findings li:nth-child(3) { animation-delay: .7s; }
.findings .sev { align-self: stretch; margin: -16px 0; background: var(--c); }
.findings .label { font-size: 15px; font-weight: 500; }
.findings .meta { width: 56px; height: 8px; background: var(--surface-border-light); }
@keyframes arrive { from { opacity: 0; transform: translateY(8px); } }
.critical { --c: var(--level-critical); }
.high { --c: var(--level-high); }
.medium { --c: var(--level-medium); }

/* ---------- How it works ---------- */
.flow { display: grid; grid-template-columns: 1fr 240px 1fr; gap: 0 56px; align-items: center; }
.flow-col { display: grid; gap: 12px; align-content: start; }
.flow .card { padding: 22px 26px; }
.step { position: relative; }
.flow-in .step::after, .flow-out .step::before {
  content: ""; position: absolute; top: 50%; width: 56px; height: 1px; background: var(--surface-border-light);
}
.flow-in .step::after { left: 100%; }
.flow-out .step::before { right: 100%; }
.flow-out .card { padding-left: 30px; }
.flow-out .card h3::before {
  content: ""; position: absolute; left: -1px; top: 18px; bottom: 18px; width: 3px; background: var(--c);
}
.flow-out .step:nth-of-type(1) .card { --c: var(--level-critical); }
.flow-out .step:nth-of-type(2) .card { --c: var(--level-high); }
.flow-out .step:nth-of-type(3) .card { --c: var(--level-medium); }
.flow-core {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  padding: 40px 22px; min-height: 320px;
  background-color: var(--bg-primary); border: 1px solid var(--accent-primary);
  text-align: center;
}
.flow-core img { width: 160px; }
.flow-core span { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }

/* ---------- Features ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature { display: flex; flex-direction: column; transition: border-color .2s; }
.feature:hover { border-color: var(--surface-border-light); }
.f-large, .f-wide { grid-column: span 2; }
.f-large { order: -1; }
.feature .art {
  width: calc(100% + 64px); max-width: none; height: 220px; margin: -32px -32px 28px; padding: 32px 32px 0;
  object-fit: contain; object-position: center bottom;
  border-bottom: 1px solid var(--surface-border);
}
.f-wide { display: grid; grid-template-columns: 1fr 1.2fr; grid-template-rows: auto auto 1fr; column-gap: 24px; }
.f-wide .art { grid-column: 2; grid-row: 1 / span 3; width: 100%; height: auto; margin: 0; padding: 0; border: 0; align-self: center; }
.icon { display: block; width: 26px; height: 26px; margin-bottom: 40px; background: var(--accent-primary); -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.f-large .icon { margin-bottom: 16px; }
.feature p { margin-top: 6px; }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan { container-type: inline-size; display: flex; flex-direction: column; transition: border-color .2s; }
.plan:hover { border-color: var(--surface-border-light); }
.plan h3 { font-size: 16px; font-weight: 500; color: var(--text-secondary); }
.plan .price {
  /* Shrinks with the card so the longest price ("€2 400 / måned", 3.2em + the 16px unit)
     and the longest custom label ("Etter avtale", 5.1em) stay on one line. */
  margin: 20px 0 32px; font-size: min(60px, (100cqi - 66px) / 3.2, 100cqi / 5.1); font-weight: 600; line-height: 1; letter-spacing: -.045em;
  word-spacing: -.06em; /* a thin thousands gap: 1 300 */
  color: var(--text-primary);
}
.plan .price .cur { position: relative; top: -.9em; margin-right: .12em; font-size: .4em; font-weight: 500; letter-spacing: 0; color: var(--text-secondary); }
.plan .price small { margin-left: .2em; font-size: 16px; word-spacing: 0; white-space: nowrap; font-weight: 400; letter-spacing: 0; color: var(--text-secondary); }
.plan ul { padding: 28px 0 0; margin: 0 0 36px; display: grid; gap: 14px; border-top: 1px solid var(--surface-border); }
.plan li { list-style: none; position: relative; padding-left: 24px; color: var(--text-primary); font-size: 16px; }
.plan li::before { content: "/"; position: absolute; left: 0; font-weight: 600; color: var(--accent-primary); }
.plan .btn { margin-top: auto; }
.note { margin-top: 24px; font-size: 14px; color: var(--text-tertiary); }

/* ---------- Contact ---------- */
.contact .wrap { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
.contact .intro .lead { margin-top: 24px; font-size: 20px; line-height: 1.5; color: var(--text-secondary); }

.form .fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 500; color: var(--text-secondary); }
.field label .req { color: var(--text-tertiary); font-weight: 400; }
.field input, .field textarea {
  width: 100%; padding: 13px 16px;
  background-color: var(--bg-primary); color: var(--text-primary);
  border: 1px solid var(--surface-border-light); border-radius: 0; -webkit-appearance: none; appearance: none;
  font: 16px/1.5 var(--font-body);
  transition: border-color .15s;
}
.field textarea { resize: vertical; min-height: 170px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent-primary); }

.form .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--surface-border); padding: 40px 0 48px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.site-footer img { height: 16px; width: auto; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 0; }
.site-footer li { list-style: none; font-size: 14px; color: var(--text-tertiary); }
.site-footer a { color: var(--text-secondary); }
.site-footer .link { padding: 0; border: 0; background: none; font: inherit; color: var(--text-secondary); cursor: pointer; }
.site-footer .link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Analytics consent ---------- */
.consent {
  position: fixed; left: var(--gutter); bottom: var(--gutter); z-index: 60; max-width: 420px; padding: 24px;
  background: var(--bg-elevated); border: 1px solid var(--surface-border-light);
}
.consent[hidden] { display: none; }
.consent p { font-size: 14px; line-height: 1.5; color: var(--text-secondary); }
.consent .actions { display: flex; gap: 12px; margin-top: 20px; }

/* ---------- Legal pages ---------- */
.legal { padding: 96px 0 120px; }
.legal .wrap { max-width: 800px; }
.legal h1 {
  margin: 0 0 12px;
  font-weight: 600; font-size: clamp(36px, 5vw, 56px); line-height: 1.05; letter-spacing: -.035em;
}
.legal .updated { color: var(--text-tertiary); font-size: 14px; margin-bottom: 48px; }
.legal h2 { margin: 48px 0 14px; font-size: 22px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; color: var(--text-primary); }
.legal h3 { margin: 28px 0 10px; font-size: 18px; font-weight: 600; color: var(--text-primary); }
.legal p, .legal li { color: var(--text-secondary); font-size: 17px; line-height: 1.7; }
.legal p + p { margin-top: 14px; }
.legal ul { margin: 12px 0 16px; padding-left: 22px; }
.legal li + li { margin-top: 6px; }
.legal li::marker { color: var(--accent-primary-dim); }
.legal strong { color: var(--text-primary); }
.legal a { overflow-wrap: anywhere; }
@media (max-width: 640px) { .legal { padding: 56px 0 80px; } }

/* ---------- Icons (masks, accent-filled) ---------- */
.i-integrations { --i: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M9 2v5M15 2v5%22/%3E%3Cpath d=%22M6 7h12v4a6 6 0 0 1-12 0z%22/%3E%3Cpath d=%22M12 17v5%22/%3E%3C/svg%3E"); }
.i-inventory { --i: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2211%22 cy=%2211%22 r=%227%22/%3E%3Cpath d=%22M21 21l-4.3-4.3%22/%3E%3Cpath d=%22M8 11h6M11 8v6%22/%3E%3C/svg%3E"); }
.i-detect { --i: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M13 2L4 14h7l-1 8 9-12h-7z%22/%3E%3C/svg%3E"); }
.i-mcp { --i: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%225%22 cy=%226%22 r=%222.5%22/%3E%3Ccircle cx=%2219%22 cy=%226%22 r=%222.5%22/%3E%3Ccircle cx=%2212%22 cy=%2218%22 r=%222.5%22/%3E%3Cpath d=%22M7.5 6h9M6.3 8.2l4.4 7.6M17.7 8.2l-4.4 7.6%22/%3E%3C/svg%3E"); }
.i-policy { --i: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M9 3h6v3H9z%22/%3E%3Cpath d=%22M15 4.5h3v16.5H6V4.5h3%22/%3E%3Cpath d=%22M9 13.5l2 2 4-4%22/%3E%3C/svg%3E"); }
.i-tenancy { --i: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 3l9 4.5-9 4.5-9-4.5z%22/%3E%3Cpath d=%22M3 12l9 4.5 9-4.5%22/%3E%3Cpath d=%22M3 16.5L12 21l9-4.5%22/%3E%3C/svg%3E"); }
.i-open { --i: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M8 6l-6 6 6 6M16 6l6 6-6 6M14 4l-4 16%22/%3E%3C/svg%3E"); }
.i-sovereignty { --i: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 2l8 3v6c0 5-3.4 9.2-8 11-4.6-1.8-8-6-8-11V5z%22/%3E%3Crect x=%229%22 y=%2210.5%22 width=%226%22 height=%225%22 rx=%221%22/%3E%3Cpath d=%22M10.2 10.5V9a1.8 1.8 0 0 1 3.6 0v1.5%22/%3E%3C/svg%3E"); }
.i-regulation { --i: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 3v18M7 21h10M4 7h16%22/%3E%3Cpath d=%22M6.5 7L3.5 14a3 3 0 0 0 6 0z%22/%3E%3Cpath d=%22M17.5 7l-3 7a3 3 0 0 0 6 0z%22/%3E%3C/svg%3E"); }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .hero::before { right: -4%; width: 30%; }
  .console-body { grid-template-columns: 1fr; }
  .findings { border-left: 0; border-top: 1px solid var(--surface-border); }
  .flow { grid-template-columns: 1fr; gap: 12px; }
  .flow-in .step::after, .flow-out .step::before { display: none; }
  .flow-core {
    margin: 40px 0; min-height: 0; padding: 28px 24px;
    flex-direction: row; justify-content: center; gap: 20px; text-align: left;
  }
  .flow-core::before, .flow-core::after {
    content: ""; position: absolute; left: 50%; width: 1px; height: 40px; background: var(--surface-border-light);
  }
  .flow-core::before { bottom: 100%; }
  .flow-core::after { top: 100%; }
  .flow-core img { width: 130px; flex-shrink: 0; }
  .flow-core span { max-width: 260px; }
}

@media (max-width: 900px) {
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px;
    background: var(--bg-primary); border-bottom: 1px solid var(--surface-border);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility 0s .2s;
  }
  .nav.open { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .2s; }
  .nav a { padding: 14px 0; font-size: 18px; color: var(--text-primary); border-bottom: 1px solid var(--surface-border); }
  .nav .nav-login { display: block; color: var(--accent-primary); border-bottom: 0; }
  .header-tools { margin-left: auto; }
  .menu-btn { display: grid; place-items: center; }
  .bento { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr 1fr; }
  .contact .wrap { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .section { padding: 88px 0; }
  .section-head { margin-bottom: 40px; }
  .section-head p { font-size: 18px; }
  .hero { padding: 48px 0 72px; }
  .hero::before { display: none; }
  .hero-sub { margin-top: 28px; gap: 28px; }
  .hero .lead { font-size: 18px; }
  .hero .actions { width: 100%; }
  .hero .actions .btn { flex: 1 1 auto; }
  .console { margin-top: 56px; }
  .console-bar .tab { width: 40px; }
  .graph { padding: 16px; }
  .findings { padding: 16px; gap: 8px; }
  .findings li { padding: 12px 14px 12px 0; gap: 0 12px; }
  .findings .sev { margin: -12px 0; }
  .findings .label { font-size: 14px; }
  .header-tools .btn-login { display: none; }
  .site-header .wrap { gap: 12px; height: 62px; }
  .flow-core { flex-direction: column; text-align: center; gap: 10px; }
  .bento, .plans { grid-template-columns: 1fr; gap: 12px; }
  .f-large, .f-wide { grid-column: auto; }
  .card { padding: 24px; }
  .feature .art { width: calc(100% + 48px); height: 180px; margin: -24px -24px 24px; padding: 24px 24px 0; }
  .f-wide { display: flex; }
  .f-wide .art { order: -1; width: 100%; height: auto; margin: 0 0 20px; padding: 0; }
  .icon { margin-bottom: 20px; }
  .contact .intro .lead { font-size: 18px; }
  .form .fields { grid-template-columns: 1fr; }
  .form .actions .btn { flex: 1 1 auto; }
  .consent { left: 0; right: 0; bottom: 0; max-width: none; padding: 20px var(--gutter); border-width: 1px 0 0; }
  .consent .actions .btn { flex: 1 1 auto; }
}

@media (max-width: 400px) {
  .site-header .wrap { gap: 10px; }
  .hero .actions, .form .actions { flex-wrap: nowrap; }
  .actions .btn { white-space: nowrap; padding: 0 calc(14px + var(--h) / var(--slash-rise)) 0 14px; }
  .actions .btn + .btn { padding: 0 14px 0 calc(14px + var(--h) / var(--slash-rise)); }
  .header-tools { gap: 8px; }
  .lang a { padding: 4px 11px 4px 7px; }
  .lang a + a { padding: 4px 7px 4px 11px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .graph .path { stroke-dashoffset: 0; }
  .graph .ping { display: none; }
}
