/* Defense Grid Technologies — site styles */

:root {
  --navy-950: #050c1b;
  --navy-900: #0a1730;
  --navy-800: #112450;
  --navy-700: #1a3266;
  --ink: #0f172a;
  --text: #3a475c;
  --muted: #64748b;
  --line: #e3e8f0;
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --accent: #1e6bff;
  --accent-600: #1557d6;
  --accent-50: #eaf1ff;
  --cyan: #22d3ee;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
  --shadow-lg: 0 2px 4px rgba(15, 23, 42, .04), 0 20px 48px rgba(15, 23, 42, .12);
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Space Grotesk", "Inter", system-ui, sans-serif;
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-600); }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  font-weight: 700;
}
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px;
}
.skip-link:focus { left: 8px; color: #fff; }

.icon { width: 24px; height: 24px; flex: none; }
.icon-sm { width: 18px; height: 18px; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 10px; border: 1px solid transparent;
  font: 600 .98rem/1 var(--font-body); cursor: pointer;
  transition: background .18s, border-color .18s, color .18s, transform .18s, box-shadow .18s;
  white-space: nowrap;
}
.btn .icon-sm { transition: transform .18s; }
.btn:hover .icon-sm { transform: translateX(3px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(30, 107, 255, .35); }
.btn-primary:hover { background: var(--accent-600); color: #fff; }
.btn-ghost { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .22); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .4); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 10px 16px; font-size: .92rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 12, 27, .92);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 11px; color: #fff; }
.brand:hover { color: #fff; }
.brand-mark { width: 38px; height: 38px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; letter-spacing: .04em; }
.brand-sub { font-size: .62rem; letter-spacing: .34em; color: #9fb3d9; margin-top: 5px; font-weight: 600; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-link {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 10px 14px; border-radius: 8px;
  color: #d5deef; font-weight: 500; font-size: .96rem;
  background: none; border: 0; cursor: pointer; font-family: inherit;
}
.nav-link:hover, .nav-link[aria-current="page"], .has-dropdown.open > .nav-link { color: #fff; background: rgba(255, 255, 255, .07); }
.nav-link .chev { width: 14px; height: 14px; transition: transform .2s; }
.has-dropdown { position: relative; }
.has-dropdown.open .chev { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(6px);
  width: 560px; padding: 12px; border-radius: var(--radius);
  background: #fff; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s;
}
.has-dropdown.open .dropdown,
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.has-dropdown::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px; }
.dropdown a {
  display: flex; gap: 12px; align-items: flex-start; padding: 11px 12px; border-radius: 10px; color: var(--ink);
}
.dropdown a:hover { background: var(--bg-alt); }
.dropdown .dd-icon {
  width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center;
  background: var(--accent-50); color: var(--accent); flex: none;
}
.dropdown .dd-icon svg { width: 19px; height: 19px; }
.dropdown strong { display: block; font-size: .93rem; font-weight: 600; line-height: 1.3; }
.dropdown span { display: block; font-size: .8rem; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.dropdown .dd-all {
  grid-column: 1 / -1; margin-top: 6px; padding: 12px; justify-content: center;
  border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; font-weight: 600; font-size: .9rem; color: var(--accent);
}

.nav-toggle {
  display: none; background: none; border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 9px; width: 44px; height: 44px; color: #fff; cursor: pointer;
  align-items: center; justify-content: center;
}

@media (max-width: 960px) {
  /* backdrop-filter would make the header the containing block for the fixed menu */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--navy-950); }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 74px 0 0 0; background: var(--navy-950);
    flex-direction: column; align-items: stretch; padding: 16px 20px 32px; gap: 16px;
    overflow-y: auto; display: none;
  }
  .nav.open { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-link { width: 100%; justify-content: space-between; padding: 15px 8px; font-size: 1.05rem; border-radius: 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .nav-link:hover { background: none; }
  .dropdown {
    position: static; transform: none; width: auto; display: none; grid-template-columns: 1fr;
    background: transparent; border: 0; box-shadow: none; padding: 6px 0 10px; opacity: 1; visibility: visible;
  }
  .has-dropdown:hover .dropdown { transform: none; }
  .has-dropdown.open .dropdown { display: grid; transform: none; }
  .dropdown a { color: #e2e8f0; padding: 10px 8px; }
  .dropdown a:hover { background: rgba(255, 255, 255, .05); }
  .dropdown strong + span { display: none; }
  .dropdown a { align-items: center; }
  .nav-link[aria-current="page"] { background: none; color: var(--cyan); }
  .dropdown .dd-icon { background: rgba(30, 107, 255, .18); color: #8fb4ff; width: 32px; height: 32px; }
  .dropdown .dd-all { border-top-color: rgba(255, 255, 255, .1); color: #8fb4ff; justify-content: flex-start; }
  .has-dropdown::after { display: none; }
  .nav .btn { width: 100%; padding: 15px; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy-950); color: #c9d5ea;
  padding: 96px 0 104px;
}
.grid-bg::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(120, 160, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 160, 255, .07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 75%);
  pointer-events: none;
}
.grid-bg::after {
  content: ""; position: absolute; width: 720px; height: 720px; right: -160px; top: -260px;
  background: radial-gradient(circle, rgba(30, 107, 255, .35), transparent 62%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 .accent {
  background: linear-gradient(90deg, #5b9bff, var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { font-size: 1.2rem; max-width: 600px; color: #b8c6de; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 36px; font-size: .92rem; color: #9fb0cc; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { color: var(--cyan); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.hero .eyebrow, .dark .eyebrow {
  color: #8fd8ea; padding: 6px 12px; border-radius: 99px;
  background: rgba(34, 211, 238, .08); border: 1px solid rgba(34, 211, 238, .22);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(34, 211, 238, .18); }

/* Status panel (hero visual) */
.panel {
  background: linear-gradient(180deg, rgba(20, 38, 80, .85), rgba(10, 23, 48, .9));
  border: 1px solid rgba(140, 170, 255, .18); border-radius: 18px;
  padding: 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.panel-title { color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 1rem; }
.panel-badge {
  font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: #6ee7b7; background: rgba(16, 185, 129, .12); border: 1px solid rgba(16, 185, 129, .3);
  padding: 4px 10px; border-radius: 99px; display: inline-flex; align-items: center; gap: 6px;
}
.panel-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #34d399; }
.panel-row {
  display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 11px;
  background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .05); margin-bottom: 8px;
  color: #d5def0; font-size: .93rem;
}
.panel-row .pi { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: rgba(30, 107, 255, .18); color: #8fb4ff; flex: none; }
.panel-row .pi svg { width: 17px; height: 17px; }
.panel-row .ok { margin-left: auto; color: #34d399; display: inline-flex; }
.panel-row .ok svg { width: 18px; height: 18px; }
.panel-meter { margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .08); }
.panel-meter-label { display: flex; justify-content: space-between; font-size: .82rem; color: #9fb0cc; margin-bottom: 8px; }
.panel-meter-label b { color: #fff; font-weight: 600; }
.meter { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.meter i { display: block; height: 100%; width: 94%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--cyan)); }

@media (max-width: 960px) {
  .hero { padding: 64px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 480px; }
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--navy-950); color: #b8c6de; padding: 72px 0 76px; }
.page-hero h1 { color: #fff; font-size: clamp(2.1rem, 4.4vw, 3.1rem); max-width: 820px; }
.page-hero .lead { font-size: 1.15rem; max-width: 700px; margin-bottom: 0; }
.page-hero .hero-actions { margin-top: 30px; }
.breadcrumbs { font-size: .86rem; color: #8193b3; margin-bottom: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumbs a { color: #a9bbdb; }
.breadcrumbs a:hover { color: #fff; }
.page-hero-icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px;
  background: linear-gradient(135deg, var(--accent), #3b8cff); color: #fff; box-shadow: 0 10px 30px rgba(30, 107, 255, .4);
}
.page-hero-icon svg { width: 28px; height: 28px; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 1.1rem; color: var(--muted); margin-bottom: 0; }
@media (max-width: 720px) { .section { padding: 68px 0; } .section-head { margin-bottom: 36px; } }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.stack { display: grid; gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 1000px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* Pillars */
.pillars { margin-top: -56px; position: relative; z-index: 2; }
.pillar {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
  box-shadow: var(--shadow-lg);
}
.pillar-num { font-family: var(--font-head); font-size: .85rem; font-weight: 700; color: var(--accent); letter-spacing: .1em; margin-bottom: 12px; }
.pillar h3 { font-size: 1.45rem; }
.pillar p { margin: 0; color: var(--muted); }

/* Cards */
.card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  color: var(--text);
}
a.card:hover { border-color: #bcd0f7; box-shadow: var(--shadow-lg); transform: translateY(-3px); color: var(--text); }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-50); color: var(--accent); margin-bottom: 20px;
}
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); font-size: .98rem; }
.card-link { margin-top: auto; padding-top: 20px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .94rem; color: var(--accent); }
a.card:hover .card-link svg { transform: translateX(3px); }
.card-link svg { transition: transform .18s; }

/* Feature (differentiators) */
.feature { display: flex; gap: 18px; }
.feature .card-icon { margin: 0; }
.feature h3 { margin-bottom: 6px; }
.feature p { margin: 0; color: var(--muted); }

.dark { background: var(--navy-950); color: #b8c6de; position: relative; overflow: hidden; }
.dark h2, .dark h3 { color: #fff; }
.dark .section-head p, .dark .feature p { color: #9fb0cc; }
.dark .card-icon { background: rgba(30, 107, 255, .16); color: #8fb4ff; }
.dark .container { position: relative; z-index: 1; }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding: 30px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-family: var(--font-head); font-weight: 700; font-size: 2.4rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px #b9cbf0; margin-bottom: 18px;
}
.step p { margin: 0; color: var(--muted); }

/* Split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.split-wide { grid-template-columns: 1.75fr 1fr; gap: 48px; }
@media (max-width: 900px) { .split, .split-wide { grid-template-columns: 1fr; gap: 40px; } }

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .ck {
  width: 24px; height: 24px; border-radius: 50%; background: var(--accent-50); color: var(--accent);
  display: grid; place-items: center; flex: none; margin-top: 2px;
}
.check-list .ck svg { width: 14px; height: 14px; stroke-width: 3; }

/* Included items on service pages */
.include { padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.include h3 { font-size: 1.08rem; display: flex; gap: 10px; align-items: center; }
.include h3 .ck { width: 26px; height: 26px; border-radius: 8px; background: var(--accent-50); color: var(--accent); display: grid; place-items: center; flex: none; }
.include h3 .ck svg { width: 15px; height: 15px; stroke-width: 3; }
.include p { margin: 0; color: var(--muted); font-size: .97rem; }

/* Downloadable overview link on a service page */
.download-card {
  display: flex; align-items: center; gap: 16px; margin-top: 24px;
  padding: 20px 24px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.download-card:hover { border-color: #bcd0f7; box-shadow: var(--shadow); color: var(--text); }
.download-card .card-icon { margin: 0; width: 44px; height: 44px; }
.download-card strong { display: block; color: var(--ink); font-family: var(--font-head); font-size: 1.05rem; }
.download-card span span { display: block; font-size: .9rem; color: var(--muted); margin-top: 2px; }
.download-card .dl-go { margin-left: auto; color: var(--accent); }
.download-card:hover .dl-go svg { transform: translateX(3px); }
.download-card .dl-go svg { transition: transform .18s; }
@media (max-width: 560px) { .download-card { flex-wrap: wrap; } .download-card .dl-go { display: none; } }

.aside-card { background: var(--navy-900); color: #b8c6de; border-radius: 18px; padding: 34px; position: sticky; top: 100px; }
.aside-card h3 { color: #fff; font-size: 1.35rem; }
.aside-card .check-list li { color: #d5def0; }
.aside-card .check-list .ck { background: rgba(34, 211, 238, .14); color: var(--cyan); }
.aside-card .btn { margin-top: 26px; width: 100%; }

/* Service area band */
.area { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.area-tiers { display: grid; gap: 14px; }
.area-tier { display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.area-tier h3 { font-size: 1.05rem; margin-bottom: 4px; }
.area-tier p { margin: 0; color: var(--muted); font-size: .95rem; }
.area-tier .card-icon { margin: 0; width: 42px; height: 42px; }
@media (max-width: 900px) { .area { grid-template-columns: 1fr; gap: 36px; } }

/* CTA band */
.cta-band { padding: 0 0 96px; }
.section-alt + .cta-band, .cta-band.alt { background: var(--bg-alt); }
.cta-box {
  position: relative; overflow: hidden; border-radius: 22px; padding: 60px;
  background: linear-gradient(120deg, var(--navy-900), var(--navy-800));
  color: #b8c6de; display: flex; align-items: center; justify-content: space-between; gap: 40px;
}
.cta-box::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(120, 160, 255, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 160, 255, .08) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(90deg, transparent, #000 60%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.cta-box > * { position: relative; }
.cta-box h2 { color: #fff; margin-bottom: 10px; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-box p { margin: 0; font-size: 1.08rem; max-width: 560px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; flex: none; }
@media (max-width: 860px) { .cta-box { flex-direction: column; align-items: flex-start; padding: 40px 28px; } }

/* Prose */
.prose { max-width: 720px; }
.prose p { font-size: 1.08rem; }
.prose h2 { margin-top: 1.4em; }

/* ---------- FAQ ---------- */
.faq { border-bottom: 1px solid var(--line); }
.faq:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 4px; cursor: pointer; list-style: none;
  font-family: var(--font-head); font-weight: 600; font-size: 1.12rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px; margin-right: 6px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(45deg) translate(-3px, -3px); transition: transform .2s;
}
.faq[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.faq summary:hover { color: var(--accent); }
.faq-body { padding: 0 60px 24px 4px; }
.faq-body p { margin: 0; color: var(--muted); }
@media (max-width: 560px) { .faq summary { font-size: 1.02rem; } .faq-body { padding-right: 8px; } }

/* ---------- Legal pages ---------- */
.legal h2 { font-size: 1.32rem; margin-top: 2em; }
.legal ul { padding-left: 22px; margin: 0 0 1em; }
.legal li { margin-bottom: 8px; }
.legal strong { color: var(--ink); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 40px; box-shadow: var(--shadow); }
@media (max-width: 600px) { .form-card { padding: 26px 20px; } }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field label { font-weight: 600; font-size: .92rem; color: var(--ink); }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border-radius: 10px; border: 1px solid #cfd8e6; background: #fbfcfe;
  transition: border-color .15s, box-shadow .15s, background .15s; width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px rgba(30, 107, 255, .14);
}
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.captcha { margin-bottom: 18px; min-height: 78px; }
.form-note { font-size: .86rem; color: var(--muted); margin: 14px 0 0; }
.form-status { display: none; margin-top: 18px; padding: 14px 16px; border-radius: 10px; font-size: .95rem; }
.form-status.show { display: block; }
.form-status.success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.form-status.error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
/* ---------- Client onboarding form ---------- */
.ob-wrap { max-width: 880px; }
.ob-gate h2 { font-size: 1.5rem; }
.ob-gate p { color: var(--muted); margin-bottom: 0; }
.ob-steps { display: flex; gap: 6px; list-style: none; margin: 0 0 20px; padding: 0; counter-reset: none; }
.ob-steps li { flex: 1; display: flex; flex-direction: column; gap: 8px; font-size: .78rem; color: var(--muted); }
.ob-steps li::before { content: ""; height: 4px; border-radius: 4px; background: var(--line); }
.ob-steps li.done::before { background: var(--accent); }
.ob-steps li[aria-current]::before { background: linear-gradient(90deg, var(--accent), var(--cyan)); }
.ob-steps li[aria-current] { color: var(--ink); font-weight: 600; }
.ob-steps span { display: none; }
.ob-steps em { font-style: normal; }
@media (max-width: 700px) {
  .ob-steps em { display: none; }
  .ob-steps li[aria-current] em { display: inline; }
  .ob-steps li[aria-current] { flex: 3; }
}
.ob-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 18px; font-size: .86rem; color: var(--muted); margin: 0 0 26px; }
.ob-step h2 { font-size: 1.6rem; margin-bottom: 6px; outline: none; }
.ob-intro { color: var(--muted); margin-bottom: 26px; }
.ob-subhead { font-size: 1.05rem; margin: 26px 0 4px; padding-top: 18px; border-top: 1px solid var(--line); }
.ob-step > h2 + .ob-intro + .ob-subhead, .ob-step > .ob-intro + .ob-subhead { margin-top: 0; padding-top: 0; border-top: 0; }
.ob-subnote { font-size: .88rem; color: var(--muted); margin: 0 0 12px; }
.ob-subhead + .form-row, .ob-subnote + .form-row { margin-top: 12px; }
.form-row.cols-1 { grid-template-columns: 1fr; }
.form-row.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 600px) { .form-row.cols-3 { grid-template-columns: 1fr; } }
.field-help { font-size: .84rem; color: var(--muted); line-height: 1.45; }
.field textarea { min-height: 96px; }
.choices { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.choices legend { font-weight: 600; font-size: .92rem; color: var(--ink); padding: 0; margin-bottom: 8px; }
.choices .field-help { display: block; margin: -2px 0 8px; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.choice { display: flex; align-items: flex-start; gap: 10px; padding: 11px 13px; border: 1px solid #cfd8e6; border-radius: 10px;
  background: #fbfcfe; cursor: pointer; font-size: .94rem; color: var(--ink); line-height: 1.35; transition: border-color .15s, background .15s; }
.choice:hover { border-color: var(--accent); }
.choice input { margin: 2px 0 0; width: 17px; height: 17px; flex: none; accent-color: var(--accent); }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-50); }
.choice:has(input:focus-visible) { outline: 3px solid var(--cyan); outline-offset: 2px; }
.choice.confirm { font-weight: 500; }
.ob-notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; margin-bottom: 22px; border-radius: 10px;
  background: #fff8eb; border: 1px solid #f6d9a4; color: #7a4b00; font-size: .94rem; }
.ob-notice svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.ob-notice p { margin: 0; }
.ob-review { margin-bottom: 26px; }
.ob-review h3 { font-size: 1rem; margin: 22px 0 8px; }
.ob-review dl { display: grid; grid-template-columns: minmax(160px, 38%) 1fr; gap: 6px 18px; margin: 0; font-size: .92rem;
  padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.ob-review dt { color: var(--muted); }
.ob-review dd { margin: 0; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 600px) { .ob-review dl { grid-template-columns: 1fr; } .ob-review dd { margin-bottom: 8px; } }
.ob-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.ob-nav [data-next], .ob-nav [data-submit] { margin-left: auto; }
.ob-nav [hidden] { display: none; }
.contact-side { display: grid; gap: 18px; }
.contact-item { display: flex; gap: 16px; padding: 22px; border-radius: var(--radius); background: var(--bg-alt); border: 1px solid var(--line); }
.contact-item .card-icon { margin: 0; width: 44px; height: 44px; background: #fff; }
.contact-item h3 { font-size: 1rem; margin-bottom: 2px; }
.contact-item p { margin: 0; font-size: .95rem; color: var(--muted); }
.contact-item a { font-weight: 600; word-break: break-word; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #93a3c0; padding: 72px 0 32px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-tag { margin: 18px 0 0; color: #c9d5ea; font-family: var(--font-head); font-weight: 500; letter-spacing: .01em; }
.footer-about { margin-top: 10px; max-width: 320px; }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; font-family: var(--font-body); font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a { color: #b3c1da; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .08);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .86rem; color: #7485a4;
}

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.notfound .code { font-family: var(--font-head); font-size: 6rem; font-weight: 700; line-height: 1; color: transparent; -webkit-text-stroke: 2px #8fb4ff; margin-bottom: 12px; }

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

/* ---------- Client support ---------- */
.incident-steps { margin: 16px 0 0; padding-left: 20px; display: grid; gap: 12px; }
.incident-steps li { color: #d5def0; }
.incident-steps strong, .aside-card p strong { color: #fff; }

/* ---------- Security self-check ---------- */
.sc-q { border: 0; padding: 18px 0; margin: 0; border-top: 1px solid var(--line); min-width: 0; }
.sc-q legend { display: flex; gap: 12px; font-weight: 600; color: var(--ink); padding: 0; margin-bottom: 12px; line-height: 1.45; }
.sc-num { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-50); color: var(--accent); font-size: .85rem; font-weight: 700; }
.sc-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 150px)); gap: 8px; padding-left: 40px; }
@media (max-width: 600px) { .sc-opts { grid-template-columns: repeat(3, 1fr); padding-left: 0; } }
.sc-q.missing legend { color: #991b1b; }
#sc-form > .btn { margin-top: 18px; }
.sc-results:focus { outline: none; }
.sc-score { display: flex; gap: 22px; align-items: center; margin-bottom: 18px; }
.sc-score #sc-pct { flex: none; width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center;
  font: 700 1.7rem/1 var(--font-head); color: #fff; background: var(--accent); }
.sc-score.low #sc-pct { background: #b91c1c; }
.sc-score.mid #sc-pct { background: #b45309; }
.sc-score.high #sc-pct { background: #047857; }
.sc-score h2 { font-size: 1.5rem; margin: 0 0 4px; }
.sc-score p { margin: 0; color: var(--muted); }
.sc-top { padding-left: 20px; display: grid; gap: 14px; margin: 0 0 18px; }
.sc-top li strong { color: var(--ink); }
.sc-top li p { margin: 4px 0 0; color: var(--text); font-size: .95rem; }
.sc-top li .fix { color: var(--accent-600); }
.sc-all { margin: 10px 0 0; padding-left: 20px; font-size: .94rem; }
#sc-all-wrap summary { cursor: pointer; font-weight: 600; color: var(--accent); }
.sc-lead { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.sc-lead h3 { margin-bottom: 6px; }
@media (max-width: 600px) { .sc-score { flex-direction: column; align-items: flex-start; } }
