/* ============================================================
   RESILIO — staging (variant d) styles scoped to landing tokens.
   Source layout: landing-v2/public/styles.css
   ============================================================ */

.section-staging { padding: 64px 0; border-bottom: 1px solid var(--border); }
.section-staging-alt { background: var(--surface-2); }
.section-staging-inverse { background: var(--band); color: var(--band-ink); border-bottom: none; }
.section-staging-hero { border-bottom: 1px solid var(--border); padding: 0; }
@media (min-width: 1024px) { .section-staging { padding: 96px 0; } }

.staging-sections .eyebrow,
.section-staging .eyebrow,
[data-variant="d"] .eyebrow {
  font-size: 13.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--cta); margin: 0;
}
.eyebrow-inverse { color: var(--cta) !important; }
.lede-text { margin-top: 16px; font-size: 18px; line-height: 1.6; color: var(--ink-soft); max-width: 640px; }
.lede-inverse { color: var(--band-ink-soft) !important; }
.h2-inverse { color: var(--band-ink) !important; }
.h3-inverse { color: var(--band-ink) !important; }

/* Nav staging */
.nav-staging .nav-logo .mark {
  display: flex; height: 32px; width: 32px; align-items: center; justify-content: center;
  border-radius: 8px; background: var(--primary); color: var(--cta);
}
.nav-staging .nav-logo .name { font-family: var(--font-head); font-size: 20px; font-weight: 700; }
.nav-staging .nav-links a { font-size: 14px; font-weight: 500; color: var(--ink-soft); }
.nav-staging .nav-links a:hover { color: var(--ink); }
.nav-staging .nav-cta { display: none; align-items: center; gap: 8px; }
@media (min-width: 1024px) { .nav-staging .nav-cta { display: flex; } }

/* Hero chain */
[data-section="hero"][data-variant="d"] .hero-grid { padding: 64px 0 80px; }
@media (min-width: 1024px) {
  [data-section="hero"][data-variant="d"] .hero-grid { padding: 96px 0 112px; grid-template-columns: 1.05fr 0.95fr; }
}
.hero-badges-label { margin-top: 40px; font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); }
.hero-badges { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.hero-badges span { font-size: 14px; font-weight: 600; }

.chain-card { border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface-2); padding: 8px; box-shadow: var(--shadow-lg); }
.chain-card-inner { border-radius: var(--radius); background: var(--surface); padding: 20px; }
.chain-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.chain-head span:first-child { font-family: var(--font-head); font-size: 14px; font-weight: 600; }
.pill { border-radius: var(--radius-pill); padding: 4px 10px; font-size: 11px; font-weight: 500; }
.pill-accent { background: var(--primary-tint); color: var(--primary); }
.chain-list { margin-top: 16px; display: flex; flex-direction: column; }
.chain-row { display: flex; align-items: center; gap: 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg); padding: 10px 12px; }
.chain-icon { display: flex; height: 32px; width: 32px; flex-shrink: 0; align-items: center; justify-content: center; border-radius: 6px; background: var(--primary); color: var(--cta); }
.chain-label .k { font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-soft); margin: 0; }
.chain-label .v { font-size: 13px; font-weight: 500; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chain-connector { margin-left: 15px; height: 12px; width: 1px; background: var(--border-strong); }

.compare-grid { margin-top: 48px; display: grid; gap: 24px; }
@media (min-width: 768px) { .compare-grid { grid-template-columns: 1fr 1fr; } }
.compare-card { border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); padding: 28px; }
.compare-card.good { border: 2px solid var(--cta); }
.compare-card .label { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-soft); margin: 0; }
.compare-card.good .label { color: var(--cta); }
.compare-card ul { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; list-style: none; padding: 0; }
.compare-card li { display: flex; gap: 12px; font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
.compare-card.good li { color: var(--ink); }
.x-icon { color: var(--ink-faint); flex-shrink: 0; }
.check-icon { color: var(--cta); flex-shrink: 0; }

.icon-chip { display: inline-flex; height: 40px; width: 40px; align-items: center; justify-content: center; border-radius: 8px; background: var(--primary); color: var(--cta); }
.icon-chip-inverse { background: var(--cta); color: var(--cta-ink); }

.card-grid { margin-top: 56px; display: grid; gap: 16px; }
.card-grid-3 { grid-template-columns: 1fr; }
.card-grid-4 { grid-template-columns: 1fr; }
.card-grid-6 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .card-grid-3, .card-grid-4, .card-grid-6 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .card-grid-3, .card-grid-6 { grid-template-columns: repeat(3, 1fr); }
  .card-grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.card-on-bg { border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); padding: 24px; }
.card-on-bg h3 { margin-top: 16px; font-size: 18px; font-weight: 600; font-family: var(--font-head); }
.card-on-bg p { margin-top: 8px; font-size: 14px; line-height: 1.6; color: var(--ink-soft); }
.card-inverse { border-radius: var(--radius-lg); border: 1px solid var(--band-border); background: var(--band-surface); padding: 24px; }
.card-inverse p { color: var(--band-ink-soft); margin-top: 8px; font-size: 14px; line-height: 1.6; }
.week-tag { font-size: 12px; font-weight: 500; color: var(--cta); }

.comply-card { margin-top: 56px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); padding: 24px; }
@media (min-width: 1024px) { .comply-card { padding: 40px; } }
.comply-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 1024px) { .comply-grid { grid-template-columns: 1fr auto 1.4fr; } }
.comply-control { border-radius: 12px; border: 1px solid var(--border); background: var(--bg); padding: 24px; }
.comply-control .title { margin-top: 16px; font-family: var(--font-head); font-size: 18px; font-weight: 600; }
.comply-control .meta { margin-top: 4px; font-size: 12px; color: var(--ink-soft); }
.comply-arrow { display: none; justify-content: center; color: var(--ink-faint); }
@media (min-width: 1024px) { .comply-arrow { display: flex; } }
.comply-frameworks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .comply-frameworks { grid-template-columns: repeat(3, 1fr); } }
.comply-frameworks span { display: block; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); padding: 12px; text-align: center; font-size: 12px; font-weight: 500; }

.resilience-grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 1024px) { .resilience-grid { grid-template-columns: 1fr 1fr; } }
.bullet-list { margin-top: 32px; display: flex; flex-direction: column; gap: 16px; list-style: none; padding: 0; }
.bullet-list li { display: flex; gap: 12px; font-size: 15.5px; color: var(--ink-soft); }
.score-card { border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface-2); padding: 28px; }
.score-card .score-title, .score-card .title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.score-row { margin-top: 20px; }
.score-row + .score-row { margin-top: 16px; }
.score-row .line { display: flex; justify-content: space-between; font-size: 14px; }
.score-row .line span:first-child { color: var(--ink-soft); }
.score-bar { margin-top: 8px; height: 8px; border-radius: var(--radius-pill); background: var(--border); }
.score-bar > i { display: block; height: 8px; border-radius: var(--radius-pill); background: var(--cta); }
.score-total { margin-top: 24px; display: flex; justify-content: space-between; border-radius: 8px; background: var(--primary); padding: 12px 16px; color: var(--band-ink); }
.score-total span:last-child { font-size: 18px; font-weight: 700; color: var(--cta); }

.ai-grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 1024px) { .ai-grid { grid-template-columns: 1fr 1fr; } }
.ai-card { border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); padding: 24px; }
.ai-card-head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.ai-card-head p { margin: 0; }
.ai-card-head p:last-child { font-size: 12px; color: var(--ink-soft); }
.ai-card-body { margin-top: 16px; font-size: 14px; color: var(--ink-soft); }
.ai-card-actions { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }

.table-wrap { margin-top: 48px; overflow-x: auto; }
.compare-table { width: 100%; min-width: 640px; border-collapse: collapse; }
.compare-table th, .compare-table td { padding: 16px; font-size: 14px; border-bottom: 1px solid var(--border); }
.compare-table th.us { color: var(--cta); }
.compare-table th.them { color: var(--ink-soft); text-align: center; }
.compare-table td:not(:first-child) { text-align: center; }
.compare-table td.us-cell { background: var(--primary-tint); }
.compare-table .partial { font-size: 12px; color: var(--ink-soft); }

.pricing-grid { margin-top: 56px; display: grid; gap: 24px; }
@media (min-width: 1024px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); } }
[data-section="pricing"][data-variant="d"] .price-card {
  display: flex; flex-direction: column; border-radius: var(--radius-lg); border: 1px solid var(--border);
  background: var(--surface); padding: 28px;
}
[data-section="pricing"][data-variant="d"] .price-card.popular { border: 2px solid var(--cta); box-shadow: var(--shadow-lg); }
.price-card-head { display: flex; align-items: center; justify-content: space-between; }
.price-tagline { margin-top: 4px; font-size: 14px; color: var(--ink-soft); }
.price-amount { margin-top: 20px; display: flex; align-items: baseline; gap: 4px; }
.price-amount .num { font-family: var(--font-head); font-size: 36px; font-weight: 700; }
.price-amount .per { font-size: 14px; color: var(--ink-soft); }
[data-section="pricing"][data-variant="d"] .price-card ul { margin-top: 24px; flex: 1; list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
[data-section="pricing"][data-variant="d"] .price-card li { display: flex; gap: 12px; font-size: 14px; color: var(--ink-soft); }
[data-section="pricing"][data-variant="d"] .price-card .btn { margin-top: 28px; }
.popular-badge { border-radius: var(--radius-pill); background: var(--cta); padding: 4px 12px; font-size: 12px; font-weight: 600; color: var(--cta-ink); }
.pricing-footnote { margin-top: 32px; text-align: center; font-size: 14px; color: var(--ink-soft); }

/* Annual/monthly billing toggle (pricing variant d). */
.pricing-billing { margin: 36px auto 0; width: fit-content; display: flex; gap: 4px; padding: 4px; border-radius: var(--radius-pill); border: 1px solid var(--border); background: var(--surface); }
.pricing-billing button {
  min-height: 40px; padding: 0 18px; cursor: pointer; border: none; background: transparent;
  border-radius: var(--radius-pill); font-size: 14px; font-weight: 600; color: var(--ink-soft);
  transition: background-color .15s ease, color .15s ease;
}
.pricing-billing button[aria-pressed="true"] { background: var(--primary); color: var(--primary-ink); }
@media (prefers-reduced-motion: reduce) { .pricing-billing button { transition: none; } }

/* 4th tile — consultant/partner: no price, single partner-kit CTA. Set apart
   from the three priced plans by a bigger top gap (40px vs the 24px grid gap)
   and a dashed border so it reads as a separate, different kind of offer. */
.pricing-consultant {
  margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 20px 32px;
  border-radius: var(--radius-lg); border: 1px dashed var(--border-strong);
  background: var(--surface); padding: 24px 28px;
}
.pricing-consultant-body { display: flex; align-items: flex-start; gap: 16px; max-width: 720px; }
.pricing-consultant-body .icon { flex-shrink: 0; width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--radius); background: var(--primary-tint); color: var(--primary); }
.pricing-consultant h3 { font-family: var(--font-head); font-size: 18px; font-weight: 600; }
.pricing-consultant p { margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--ink-soft); }
.pricing-consultant .btn { flex-shrink: 0; }

/* ---------- pricingCompare (nis2_a-only): "full NIS2 in every plan" core
   block + collapsible per-group difference tables + verdict CTA. ---------- */
.pc-core { margin-top: 44px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); padding: 28px; }
.pc-core-title { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: 18px; font-weight: 600; }
.pc-core-title svg { color: var(--cta); flex-shrink: 0; }
.pc-core-grid { margin-top: 20px; display: grid; gap: 14px 28px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .pc-core-grid { grid-template-columns: 1fr 1fr; } }
.pc-core-item { border-left: 2px solid var(--cta); padding-left: 14px; }
.pc-core-k { font-size: 14px; font-weight: 600; color: var(--ink); margin: 0; }
.pc-core-v { margin-top: 3px; font-size: 13px; line-height: 1.5; color: var(--ink-soft); }
.pc-core-micro { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 12.5px; line-height: 1.6; color: var(--ink-faint); }

.pc-diff { margin-top: 44px; }
.pc-diff-title { font-family: var(--font-head); font-size: 18px; font-weight: 600; margin-bottom: 12px; }
.pc-group { border-bottom: 1px solid var(--border); }
.pc-group summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none; padding: 16px 0; font-family: var(--font-head); font-size: 16px; font-weight: 600; }
.pc-group summary::-webkit-details-marker { display: none; }
.pc-group summary svg { flex-shrink: 0; color: var(--ink-faint); transition: transform .2s ease; }
.pc-group[open] summary svg { transform: rotate(90deg); }
@media (prefers-reduced-motion: reduce) { .pc-group summary svg { transition: none; } }
.pc-table-wrap { overflow-x: auto; padding-bottom: 12px; }
.pc-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 13.5px; }
.pc-table th[scope="col"] { text-align: left; padding: 8px 12px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); border-bottom: 1px solid var(--border); }
.pc-table th[scope="col"]:first-child { width: 40%; }
.pc-table th[scope="row"] { text-align: left; font-weight: 500; color: var(--ink); }
.pc-table td, .pc-table th[scope="row"] { padding: 10px 12px; vertical-align: top; line-height: 1.45; border-bottom: 1px solid var(--border); }
.pc-table td { color: var(--ink-soft); }
.pc-footnote { margin-top: 20px; font-size: 12px; line-height: 1.6; color: var(--ink-faint); }

.pc-verdict { margin-top: 40px; text-align: center; }
.pc-verdict p { max-width: 640px; margin: 0 auto 20px; font-size: 16px; line-height: 1.6; color: var(--ink-soft); }

.faq-wrap { max-width: 860px; }
.faq-lede { margin-top: 14px; max-width: 720px; font-size: 16px; line-height: 1.65; color: var(--ink-soft); }
.faq-categories-staging { margin-top: 40px; gap: 44px; }
.faq-list-staging { margin-top: 0; border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none; font-family: var(--font-head); font-size: 17px; font-weight: 600; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { margin-top: 12px; max-width: 780px; font-size: 15px; line-height: 1.7; color: var(--ink-soft); }

.final-band-wrap { padding: 64px 0; }
@media (min-width: 1024px) { .final-band-wrap { padding: 96px 0; } }
.final-band { border-radius: 24px; background: var(--band); padding: 56px 32px; text-align: center; color: var(--band-ink); }
@media (min-width: 1024px) { .final-band { padding: 80px 64px; } }
.final-band h2 { max-width: 640px; margin: 0 auto; color: var(--band-ink); }
.final-band p { margin: 16px auto 0; max-width: 520px; font-size: 18px; color: var(--band-ink-soft); }
[data-section="finalCta"][data-variant="d"] .final-ctas { margin-top: 32px; display: flex; flex-direction: column; justify-content: center; gap: 12px; align-items: center; }
@media (min-width: 640px) { [data-section="finalCta"][data-variant="d"] .final-ctas { flex-direction: row; } }
.btn-outline-inverse { background: transparent; border: 1px solid var(--band-border); color: var(--band-ink); }
.btn-outline-inverse:hover { background: var(--band-surface); }

.footer-staging { background: var(--band); color: var(--band-ink); }
.footer-staging .footer-inner { padding: 64px 0; }
.footer-grid { display: grid; gap: 48px; }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 8px; }
.footer-brand .mark { display: flex; height: 32px; width: 32px; align-items: center; justify-content: center; border-radius: 8px; background: var(--cta); color: var(--cta-ink); }
.footer-brand .name { font-family: var(--font-head); font-size: 20px; font-weight: 700; }
.footer-tagline { margin-top: 16px; max-width: 280px; font-size: 14px; line-height: 1.6; color: var(--band-ink-soft); }
.footer-staging h4 { font-size: 14px; font-weight: 600; margin: 0; }
.footer-staging .footer-links { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.footer-staging .footer-links a { font-size: 14px; color: var(--band-ink-soft); }
.footer-staging .footer-links a:hover { color: var(--cta); }
.footer-bottom { margin-top: 56px; display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--band-border); padding-top: 24px; font-size: 14px; color: var(--band-ink-soft); }
@media (min-width: 640px) { .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; } }
.footer-legal { display: flex; gap: 24px; }

.config-panel .pill-off { opacity: 0.85; border-style: dashed; }
.config-panel .pill-off[aria-pressed="true"] { background: var(--bad-bg); color: var(--bad); border-color: var(--bad); }

@media (prefers-reduced-motion: reduce) {
  .score-bar > i { transition: none; }
}

/* Features / trust / proof / magnets (variant d) */
.staging-cta-row { margin-top: 40px; text-align: center; }
.trust-badge-row { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 8px; }
.trust-badge {
  border-radius: var(--radius-pill); border: 1px solid var(--border); background: var(--surface);
  padding: 8px 14px; font-size: 13px; font-weight: 500; color: var(--ink-soft);
}
.trust-micro-staging { margin-top: 40px; font-size: 15px; line-height: 1.6; color: var(--ink-soft); font-style: italic; max-width: 720px; }
.proof-metrics-staging { margin-top: 40px; display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 639px) { .proof-metrics-staging { grid-template-columns: 1fr; } }
.proof-metric { text-align: center; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); padding: 24px 16px; }
.proof-metric .n { font-family: var(--font-head); font-size: 36px; font-weight: 700; color: var(--cta); }
.proof-metric .label { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--ink-soft); }
.proof-note-staging { margin-top: 32px; font-size: 13px; color: var(--ink-faint); text-align: center; }
.magnet-card-staging { display: flex; flex-direction: column; }
.magnet-card-staging p { flex: 1; }
.magnet-cta-staging { margin-top: 20px; align-self: flex-start; }

/* ---------- GRC flow diagram (variant a — visible by default) ----------
   Ported from a Claude Design canvas share (13-node process flow + INC
   feedback loop). Colors go through the --band family plus --cta/--warn
   tokens instead of the source's hardcoded hex, so the section follows the active theme like
   the rest of .section-staging-inverse. Desktop (>=1024px): fixed-canvas
   diagram with animated SVG connectors + hover-expand cards. Below that (and
   on any coarse/touch pointer, which can't hover): a plain always-expanded
   list — the 1044px canvas doesn't reflow, and :hover doesn't exist on touch. */
/* Generous enough that the one sentence fits on one line from ~1150px viewports
   up (where the desktop diagram below is also shown); wraps gracefully below
   that instead of forcing nowrap, which would risk clipping past the container. */
.flow-lede { max-width: 1100px; }
.flow-hover-hint { display: none; margin-top: 8px; font-size: 12px; color: var(--band-ink-soft); }
@media (hover: hover) and (pointer: fine) { .flow-hover-hint { display: block; } }

.flow-list { margin-top: 40px; display: flex; flex-direction: column; gap: 14px; list-style: none; padding: 0; }
.flow-list-item { display: flex; gap: 14px; padding: 16px; border-radius: var(--radius-lg); background: var(--band-surface); border: 1px solid var(--band-border); }
.flow-list-code { font-family: "JetBrains Mono", var(--font-head), monospace; font-size: 11px; font-weight: 700; letter-spacing: .05em; color: var(--cta); text-transform: uppercase; margin: 0; }
.flow-list-title { font-size: 15px; font-weight: 600; color: var(--band-ink); margin: 4px 0 0; }
.flow-list-desc { font-size: 13px; line-height: 1.5; color: var(--band-ink-soft); margin: 6px 0 0; }
.flow-list-item .flow-node-step { width: 22px; height: 22px; font-size: 11px; margin-top: 2px; }
/* Same contrast fix as .flow-node-inc (desktop diagram) below — --band-ink/
   -soft (light colors meant for the dark card bg used everywhere else) were
   unreadable on --warn-bg's light cream. */
.flow-list-item-inc { background: var(--warn-bg); border-color: var(--warn); }
.flow-list-item-inc .flow-list-code { color: var(--warn); }
.flow-list-item-inc .flow-list-title { color: var(--warn); }
.flow-list-item-inc .flow-list-desc { color: var(--warn); opacity: .85; }
.flow-list-item-inc .flow-node-step { background: var(--warn); color: #241800; }

/* overflow-x:auto forces overflow-y to compute as "auto" too (CSS spec rule:
   "visible" on one axis becomes "auto" when the other isn't visible) — an
   explicit overflow-y:visible here would NOT stick. So .flow-diagram's height
   below is sized with enough headroom (row2 top + its max hover-expand height
   + buffer) that nothing ever actually needs to scroll/clip vertically. */
/* container-type lets .flow-diagram below measure ITS OWN actual available
   width via cqw units, instead of estimating from 100vw minus a guessed
   padding/scrollbar offset — that guess was wrong twice (the container's own
   padding, plus its max-width:1280px cap above 1440px viewports, plus the
   vertical scrollbar 100vw includes but content width doesn't, all eat into
   "available width" in ways that don't reduce to one flat px number). */
.flow-scroll { display: none; margin-top: 40px; overflow-x: auto; padding-bottom: 4px; container-type: inline-size; }
/* Base canvas is fixed at 1044x480 (unchanged coordinate system for the SVG
   connectors and card positions below) then uniformly scaled with a CSS
   transform, instead of hand-recomputing every coordinate for every possible
   width. Uniform scale (both axes together) also keeps stroke widths on the
   SVG connectors undistorted — independently scaling x/y (e.g. percentages)
   does not. 1.16 caps it from getting cartoonishly big on ultra-wide screens. */
.flow-diagram {
  --flow-scale: min(1.16, calc(100cqw / 1044px));
  width: calc(1044px * var(--flow-scale));
  height: calc(480px * var(--flow-scale));
}
.flow-diagram-inner { position: relative; width: 1044px; height: 480px; transform: scale(var(--flow-scale)); transform-origin: top left; }
@media (min-width: 1024px) { .flow-list { display: none; } .flow-scroll { display: block; } }

.flow-svg { position: absolute; top: 0; left: 0; overflow: visible; pointer-events: none; }
.flow-line { stroke: var(--cta); stroke-width: 2; fill: none; stroke-linecap: round; stroke-dasharray: 6 8; animation: flowDash 1.1s linear infinite; }
.flow-line-loop { stroke: var(--cta); stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-dasharray: 3 8; animation: flowDash .9s linear infinite; }
.flow-line-loop-warn { stroke: var(--warn); stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-dasharray: 3 8; animation: flowDash .9s linear infinite; }
.flow-arrow-fill { fill: var(--cta); }
.flow-arrow-fill-warn { fill: var(--warn); }
.flow-loop-label { fill: var(--cta); font-family: var(--font-head); font-size: 9.5px; font-weight: 600; letter-spacing: .06em; }
@keyframes flowDash { to { stroke-dashoffset: -32; } }
@media (prefers-reduced-motion: reduce) { .flow-line, .flow-line-loop, .flow-line-loop-warn { animation: none; } }

.flow-node {
  position: absolute; top: 0; width: 132px; max-height: 70px; overflow: hidden;
  background: var(--band-surface); border: 1px solid var(--band-border); border-radius: var(--radius);
  padding: 9px 11px; box-sizing: border-box; box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
  transition: max-height .22s ease, transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.flow-node-head { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; }
.flow-node-step {
  width: 15px; height: 15px; border-radius: 50%; background: var(--cta); color: var(--cta-ink);
  font-size: 8.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.flow-node-code { font-family: "JetBrains Mono", var(--font-head), monospace; font-size: 9px; font-weight: 700; letter-spacing: .04em; color: var(--cta); text-transform: uppercase; }
.flow-node-title { font-size: 11.5px; font-weight: 600; line-height: 1.25; color: var(--band-ink); margin: 0; min-height: 29px; }
/* Hidden at rest (not just height-clipped) — a fixed max-height alone left a
   sliver of the first description line peeking out under the title in every
   card. display:none removes it completely regardless of exact box-height
   math; hover reveals it (only where hover exists, see below). */
.flow-node-desc { display: none; font-size: 10px; line-height: 1.4; color: var(--band-ink-soft); margin: 6px 0 0; }
.flow-row2 { top: 230px; }
/* --warn-bg is a LIGHT cream in every theme except "dark" (where it's a dark
   brown) — --band-ink/-soft (light colors, meant for the dark card bg used
   everywhere else) were unreadable on it. --warn is designed as the ink for
   --warn-bg specifically, so reuse it for both title and description here. */
.flow-node-inc { background: var(--warn-bg); border-color: var(--warn); }
.flow-node-inc .flow-node-step { background: var(--warn); color: #241800; }
.flow-node-inc .flow-node-code { color: var(--warn); }
.flow-node-inc .flow-node-title { color: var(--warn); }
.flow-node-inc .flow-node-desc { color: var(--warn); opacity: .85; }

.flow-col-0 { left: 0px; }
.flow-col-1 { left: 152px; }
.flow-col-2 { left: 304px; }
.flow-col-3 { left: 456px; }
.flow-col-4 { left: 608px; }
.flow-col-5 { left: 760px; }
.flow-col-6 { left: 912px; }

@media (hover: hover) and (pointer: fine) {
  .flow-node:hover { max-height: 230px; transform: scale(1.06); box-shadow: 0 18px 40px rgba(0, 0, 0, .5); border-color: var(--cta); z-index: 30; }
  .flow-node:hover .flow-node-desc { display: block; }
  .flow-node-inc:hover { border-color: var(--warn); }
}

/* ---------- NIS2 effort-savings calculation (variant a — visible by
   default). Real <table> (not divs) — genuinely tabular data, and it's
   free accessibility/print support. Desktop (>=1024px): table. Below that:
   a card per row — 5 columns incl. one long free-text column don't fit a
   phone width without becoming unreadably cramped. ---------- */
.calc-table-wrap { display: none; margin-top: 40px; overflow-x: auto; }
.calc-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.calc-table th, .calc-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.calc-table th { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); }
.calc-table .calc-stream { width: 16%; font-weight: 600; color: var(--ink); }
.calc-table .calc-support { width: 46%; color: var(--ink-soft); line-height: 1.5; }
.calc-table th:nth-child(2), .calc-table td:nth-child(2),
.calc-table th:nth-child(3), .calc-table td:nth-child(3) { width: 11%; white-space: nowrap; }
.calc-table th:nth-child(4), .calc-table td:nth-child(4) { width: 9%; }
.calc-total-row td { background: var(--surface); font-weight: 700; border-bottom: none; border-top: 2px solid var(--border-strong); }
.calc-reduction-badge {
  display: inline-block; padding: 3px 10px; border-radius: var(--radius-pill);
  background: var(--ok-bg); color: var(--ok); font-size: 12.5px; font-weight: 700; white-space: nowrap;
}
.calc-reduction-badge-total { font-size: 14px; }

.calc-cards { margin-top: 40px; display: flex; flex-direction: column; gap: 14px; list-style: none; padding: 0; }
.calc-card { border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); padding: 18px; }
.calc-card-stream { font-size: 15px; font-weight: 600; color: var(--ink); margin: 0; }
.calc-card-metrics { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; }
.calc-card-metrics > div { display: flex; flex-direction: column; gap: 2px; }
.calc-card-label { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-faint); }
.calc-card-value { font-size: 14px; font-weight: 600; color: var(--ink); }
.calc-card-support { margin-top: 12px; font-size: 13px; line-height: 1.5; color: var(--ink-soft); }
.calc-card-total { background: var(--surface-2); border-color: var(--border-strong); }
.calc-card-total .calc-card-stream { font-weight: 700; }
/* MUST come after both base rules above — same specificity, source order
   decides, and this needs to win at >=1024px (table shown, cards hidden). */
@media (min-width: 1024px) { .calc-table-wrap { display: block; } .calc-cards { display: none; } }

.calc-footnote { margin-top: 28px; font-size: 12.5px; line-height: 1.6; color: var(--ink-faint); max-width: 900px; }
