/* Nardion — shared styles
   Layout: one centred column (max 1120px), dark night-sea ground,
   a single amber "signal" accent used only for alerts and calls to action. */

:root {
  --bg: #0b1220;        /* night sea */
  --surface: #121b2e;   /* panels */
  --line: #24324c;      /* hairlines, rings */
  --fg: #e7edf6;        /* text */
  --muted: #94a3bb;     /* secondary text */
  --sea: #5cc8d6;       /* map, sensors */
  --signal: #ffb547;    /* alerts, CTAs */
  --on-signal: #1a1204;

  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.75rem;
  --step-3: clamp(2.1rem, 4.5vw, 3.2rem);
  --step-4: clamp(2.6rem, 6.5vw, 4.6rem);

  --radius: 10px;
  --max: 1120px;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f2f5f9;
    --surface: #ffffff;
    --line: #d3dce8;
    --fg: #0f1a2b;
    --muted: #4f5e77;
    --sea: #17808d;
    --signal: #b5650a;
    --on-signal: #ffffff;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f2f5f9;
  --surface: #ffffff;
  --line: #d3dce8;
  --fg: #0f1a2b;
  --muted: #4f5e77;
  --sea: #17808d;
  --signal: #b5650a;
  --on-signal: #ffffff;
  color-scheme: light;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: var(--step-4); font-weight: 600; }
h2 { font-size: var(--step-3); font-weight: 600; }
h3 { font-size: var(--step-1); font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sea);
}
.lede { font-size: var(--step-1); color: var(--muted); max-width: 38ch; line-height: 1.5; }
.muted { color: var(--muted); }
.prose { max-width: 62ch; display: grid; gap: 1rem; }

/* Header */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}
.brand svg { width: 26px; height: 26px; flex: none; }
.nav { display: flex; gap: 1.4rem; align-items: center; flex-wrap: wrap; }
.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: var(--step--1);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.25rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--step--1);
  text-decoration: none;
  border: 1px solid var(--line);
  color: var(--fg);
  background: transparent;
  transition: border-color 0.2s, background 0.2s;
}
.btn:hover { border-color: var(--muted); }
.btn-signal { background: var(--signal); border-color: var(--signal); color: var(--on-signal); }
.btn-signal:hover { background: color-mix(in srgb, var(--signal) 85%, var(--fg)); border-color: transparent; }
.nav .btn { color: var(--fg); padding: 0.5rem 1rem; }

/* Sections */
section { padding-block: clamp(4rem, 9vw, 7rem); }
section + section { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 0.9rem; margin-bottom: 2.75rem; max-width: 46rem; }

/* Hero */
.hero { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-copy { display: grid; gap: 1.5rem; min-width: 0; }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 0.5rem; }

/* Grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  display: grid;
  gap: 0.7rem;
  align-content: start;
  min-width: 0;
}
.panel p { color: var(--muted); }
.tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sea);
}

/* Home: business line card */
.line-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  text-decoration: none;
  transition: border-color 0.2s;
}
.line-card:hover { border-color: var(--sea); }
.line-card .body { display: grid; gap: 0.8rem; min-width: 0; }
.line-card .arrow { font-size: 1.8rem; color: var(--signal); }
.line-card.soon { opacity: 0.75; }
.line-card.soon:hover { border-color: var(--line); }
.status {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
}
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); }
.status.idle::before { background: var(--line); }
.lines { display: grid; gap: 1rem; }

/* Steps (a real sequence: sensor → platform → monitoring → police) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; counter-reset: step; }
.steps li {
  counter-increment: step;
  border-top: 2px solid var(--line);
  padding-top: 1.25rem;
  display: grid; gap: 0.6rem; align-content: start;
  min-width: 0;
}
.steps li::before {
  content: "0" counter(step);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--sea);
}
.steps li:last-child { border-top-color: var(--signal); }
.steps li:last-child::before { color: var(--signal); }
.steps p { color: var(--muted); font-size: 0.98rem; }

/* Alert log sample */
.log {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow-x: auto;
}
.log-head {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 0.8rem 1.1rem; border-bottom: 1px solid var(--line); color: var(--muted);
  font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.log table { width: 100%; border-collapse: collapse; min-width: 560px; font-variant-numeric: tabular-nums; }
.log td { padding: 0.7rem 1.1rem; border-bottom: 1px solid var(--line); vertical-align: top; white-space: nowrap; }
.log tr:last-child td { border-bottom: 0; }
.log .t { color: var(--muted); }
.log .ev-alert { color: var(--signal); }
.log .ev-info { color: var(--sea); }

/* Comparison: detect vs jam */
.stance { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.stance ul { margin: 0; padding-left: 1.1rem; color: var(--muted); display: grid; gap: 0.4rem; }
.stance .no h3 { color: var(--muted); }

/* FAQ */
.faq { display: grid; gap: 0; max-width: 52rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding-block: 1.15rem; }
.faq summary {
  cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 600; font-size: 1.1rem;
  display: flex; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--sea); font-family: var(--font-mono); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin-top: 0.75rem; max-width: 62ch; }

/* Contact */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 2rem;
  align-items: end;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: grid; gap: 1rem;
}
.email {
  font-family: var(--font-mono);
  font-size: clamp(1.05rem, 2.6vw, 1.35rem);
  color: var(--fg);
  word-break: break-all;
  user-select: all;
}
.copy-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 2rem; color: var(--muted); font-size: var(--step--1); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

/* Radar visual */
.radar {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1 / 1;
  margin-inline: auto;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--sea) 10%, var(--surface)) 0%, var(--surface) 70%);
  border: 1px solid var(--line);
}
.radar svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.radar .sweep {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, color-mix(in srgb, var(--sea) 32%, transparent) 0deg, transparent 55deg, transparent 360deg);
  animation: sweep 6s linear infinite;
  mix-blend-mode: normal;
}
@keyframes sweep { to { transform: rotate(360deg); } }
.blip { animation: blip 2.4s ease-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes blip { 0% { opacity: 1; } 70% { opacity: 0.35; } 100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .radar .sweep, .blip { animation: none; }
}
.radar-caption {
  margin-top: 0.9rem; text-align: center;
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.06em; color: var(--muted);
}

/* Responsive */
@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; }
}
@media (max-width: 780px) {
  .hero-grid, .contact, .stance, .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .radar { max-width: 380px; }
  .nav .hide-sm { display: none; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .line-card { grid-template-columns: minmax(0, 1fr); }
  .line-card .arrow { display: none; }
}

/* Section labels: prominent */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  font-weight: 600;
  letter-spacing: 0.14em;
}
.eyebrow::before {
  content: "";
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--sea);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--sea) 22%, transparent);
  flex: none;
}

/* Scenario cards (Why it matters) */
.scenarios { display: grid; gap: 1.5rem; }
.scenario {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(1.25rem, 3vw, 2rem);
}
.scenario:nth-child(even) .scene { order: 2; }
.scene {
  border-radius: 10px;
  border: 1px solid var(--line);
  background: radial-gradient(circle at 60% 60%, color-mix(in srgb, var(--sea) 9%, var(--bg)) 0%, var(--bg) 75%);
  overflow: hidden;
  min-width: 0;
}
.scene svg { display: block; width: 100%; height: auto; }
.scenario-text { display: grid; gap: 0.9rem; min-width: 0; }
.scenario-text h3 { font-size: var(--step-2); }
.scenario-text p { color: var(--muted); max-width: 60ch; }
.scenario-text .fix {
  color: var(--fg);
  border-left: 2px solid var(--signal);
  padding-left: 1rem;
}
.scenario-text .fix strong { color: var(--signal); font-weight: 600; }

.step-icon { width: 44px; height: 44px; }

@media (max-width: 780px) {
  .scenario { grid-template-columns: minmax(0, 1fr); }
  .scenario:nth-child(even) .scene { order: 0; }
}
.scene text { paint-order: stroke; stroke: var(--bg); stroke-width: 4px; stroke-linejoin: round; }

/* Alert timeline */
.timeline {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.25rem;
  position: relative;
}
.timeline::before {
  content: ""; position: absolute; left: 0; right: 0; top: 3.15rem;
  border-top: 2px dashed var(--line);
}
.timeline li { position: relative; display: grid; gap: 0.6rem; align-content: start; min-width: 0; }
.tl-time {
  font-family: var(--font-mono); font-weight: 600; font-size: var(--step--1);
  color: var(--signal); font-variant-numeric: tabular-nums;
}
.tl-icon {
  width: 56px; height: 56px; padding: 8px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line);
  position: relative;
}
.timeline p { color: var(--muted); font-size: 0.98rem; }
.tl-note { margin-top: 1.5rem; font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); }
@media (max-width: 900px) {
  .timeline { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .timeline::before { left: 27px; right: auto; top: 1.5rem; bottom: 1rem; border-top: 0; border-left: 2px dashed var(--line); }
  .timeline li { grid-template-columns: 56px minmax(0, 1fr); column-gap: 1rem; row-gap: 0.3rem; }
  .tl-icon { grid-row: 1 / span 3; grid-column: 1; }
  .tl-time, .timeline h3, .timeline p { grid-column: 2; }
}

/* Hero points */
.hero-points { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 600; font-size: 0.98rem; }
.hp-icon { width: 30px; height: 30px; flex: none; }

/* Icon tiles */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.tile {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 1.6rem 1.4rem; display: grid; gap: 0.5rem; align-content: start; min-width: 0;
}
.tile-icon {
  width: 64px; height: 64px; padding: 10px; margin-bottom: 0.5rem;
  border-radius: 50%; border: 1px solid var(--line);
  background: radial-gradient(circle, color-mix(in srgb, var(--sea) 12%, var(--bg)) 0%, var(--bg) 80%);
}
.tile h3 { font-size: 1.2rem; }
.tile p { color: var(--muted); font-size: 0.98rem; }
.tile-no { border-style: dashed; }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .tiles { grid-template-columns: minmax(0, 1fr); } }
.tile p.more { color: var(--muted); font-size: 0.92rem; border-top: 1px solid var(--line); padding-top: 0.75rem; margin-top: 0.35rem; }
.tile > p:not(.more) { color: var(--fg); font-weight: 500; }

/* Language switch */
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.nav .lang a { padding: 0.3rem 0.65rem; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.06em; color: var(--muted); }
.nav .lang a[aria-current="true"] { background: var(--surface); color: var(--fg); }

/* Mini flow under hero */
.flow-band { border-top: 1px solid var(--line); background: var(--surface); padding-block: 1.6rem; }
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; position: relative; }
.flow::before { content: ""; position: absolute; top: 24px; left: 24px; right: 33%; border-top: 2px dashed var(--line); }
.flow-node { position: relative; display: flex; align-items: center; gap: 0.9rem; min-width: 0; }
.flow-node svg { width: 48px; height: 48px; padding: 7px; flex: none; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); }
.flow-node span { display: grid; min-width: 0; position: relative; background: var(--surface); padding-right: 1rem; }
.flow-node svg { position: relative; }
.flow-node strong { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.flow-node small { color: var(--muted); font-size: 0.88rem; }
@media (max-width: 780px) {
  .flow { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .flow::before { top: 24px; bottom: 24px; left: 23px; right: auto; border-top: 0; border-left: 2px dashed var(--line); }
}

/* Alert screen illustration */
.screen { margin: 3rem 0 0; }
.screen svg { display: block; width: 100%; height: auto; }
.screen-wrap { overflow-x: auto; }

/* Picture cards */
.pcards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.pcard { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: grid; grid-template-rows: auto 1fr; min-width: 0; }
.pcard-scene { display: block; width: 100%; height: auto; border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at 50% 100%, color-mix(in srgb, var(--sea) 12%, var(--bg)) 0%, var(--bg) 75%); }
.pcard-body { padding: 1.3rem 1.3rem 1.5rem; display: grid; gap: 0.5rem; align-content: start; }
.pcard-body h3 { font-size: 1.2rem; }
.pcard-body .line { font-weight: 500; }
.pcard-body .more { color: var(--muted); font-size: 0.92rem; }
.pcard-link { margin-top: 0.4rem; color: var(--sea); text-decoration: none; font-weight: 600; font-size: 0.92rem; }
.pcard-link:hover { text-decoration: underline; }
@media (max-width: 1000px) { .pcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .pcards { grid-template-columns: minmax(0, 1fr); } }

.tiles-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .tiles-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .tiles-3 { grid-template-columns: minmax(0, 1fr); } }

/* Contact form */
.contact { align-items: start; }
.contact-form { display: grid; gap: 0.45rem; }
.contact-form label { font-size: var(--step--1); font-weight: 600; margin-top: 0.4rem; }
.contact-form .opt { color: var(--muted); font-weight: 400; }
.contact-form input, .contact-form textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--fg);
  background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 0.7rem 0.85rem;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--sea); outline-offset: 1px; border-color: transparent; }
.contact-form button { justify-self: start; margin-top: 0.8rem; }
.form-status { color: var(--sea); font-size: var(--step--1); min-height: 1.2em; }
.hp { position: absolute; left: -9999px; }
.fallback { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.fallback .email { font-size: 1rem; }
.btn-small { padding: 0.4rem 0.8rem; font-size: 0.8rem; }

/* EU line in footer */
.site-footer .wrap { align-items: center; }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 1rem; }
.site-footer .wrap > :last-child { justify-self: end; }
.eu { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--fg); order: 2; white-space: nowrap; }
.site-footer .wrap > :nth-child(2) { order: 1; }
.site-footer .wrap > :last-child { order: 3; }
@media (max-width: 860px) {
  .site-footer .wrap { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .site-footer .wrap > :last-child { justify-self: center; }
  .eu { order: 0; white-space: normal; }
}
.eu-flag { width: 36px; height: 24px; border-radius: 2px; flex: none; }

/* Shared detection badge over scenario illustrations */
.scene { position: relative; }
.scene-badge {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 12px; border-radius: 999px;
  background: var(--signal); color: var(--on-signal);
  font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; line-height: 1;
  white-space: nowrap;
}
.scene-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--on-signal); }
.scenario { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 780px) { .scenario { grid-template-columns: minmax(0, 1fr); } }

.subhead { font-family: var(--font-display); font-size: var(--step-1); font-weight: 500; color: var(--muted); text-wrap: balance; }

/* Mini flow v2: icons in one row, equal connectors, text below */
.flow { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.flow::before { content: none; display: none; }
.flow-node { flex-direction: column; text-align: center; gap: 0.6rem; padding-inline: 0.5rem; }
.flow-node span { background: none; padding-right: 0; justify-items: center; }
.flow-node:not(:last-child)::after {
  content: ""; position: absolute; top: 24px;
  left: calc(50% + 34px); right: calc(-50% + 34px);
  border-top: 2px dashed var(--line);
}
@media (max-width: 780px) {
  .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
  .flow::before { content: none; }
  .flow-node strong { font-size: 0.92rem; }
  .flow-node small { font-size: 0.78rem; line-height: 1.35; }
}

.screen .pulse { transform-origin: center; transform-box: fill-box; animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(1.9); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .screen .pulse { animation: none; opacity: 0; } }

/* Scenario category labels: more visible */
.scenario-text .tag {
  justify-self: start;
  font-size: 0.9rem; font-weight: 600; letter-spacing: 0.1em;
  color: var(--sea);
  background: color-mix(in srgb, var(--sea) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--sea) 35%, transparent);
  padding: 0.35rem 0.75rem; border-radius: 6px;
}
@media (max-width: 520px) { .scenario-text .tag { font-size: 0.82rem; } }

/* Larger header logo */
.brand { gap: 0.6rem; }
.brand svg { width: 46px; height: 46px; margin-inline: -4px -2px; }
.site-header .wrap { min-height: 72px; }
@media (max-width: 520px) {
  .brand { gap: 0.5rem; }
  .brand svg { width: 40px; height: 40px; }
}
