/* ThreatWarder — styles.css */

/* ---------- Self-hosted Inter (latin + latin-ext, woff2) ---------- */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('assets/fonts/inter-latin-ext-400.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('assets/fonts/inter-latin-400.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('assets/fonts/inter-latin-ext-500.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('assets/fonts/inter-latin-500.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('assets/fonts/inter-latin-ext-600.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('assets/fonts/inter-latin-600.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('assets/fonts/inter-latin-ext-700.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('assets/fonts/inter-latin-700.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }


/* ---------- Tokens ---------- */
:root {
  --blue: #2563EB;
  --blue-dark: #1D4ED8;
  --blue-50: #EFF4FF;
  --blue-100: #DBE6FE;
  --navy: #0F2140;
  --navy-2: #152C55;
  --navy-3: #1C3A6E;

  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-900: #0F172A;
  --white: #FFFFFF;

  --red: #B91C1C;    --red-soft: #FEE2E2;
  --amber: #92400E;  --amber-soft: #FEF3C7;
  --green: #15803D;  --green-soft: #DCFCE7;
  --info: #1E40AF;   --info-soft: #DBEAFE;

  --text: var(--gray-900);
  --text-muted: var(--gray-600);
  --text-subtle: var(--gray-500);
  --border: var(--gray-200);
  --on-dark: #FFFFFF;
  --on-dark-muted: #C7D2E3;
  --on-dark-border: rgba(255, 255, 255, 0.14);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 6px 20px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.18);

  --container: 1160px;
  --gutter: 20px;
  --ring: #2563EB;
  --t: 150ms ease;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}
@media (min-width: 768px)  { :root { --gutter: 32px; } }
@media (min-width: 1200px) { :root { --gutter: 40px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  touch-action: manipulation;
}
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.2; color: inherit; }
h1 { font-size: clamp(34px, 2.2rem + 1.6vw, 54px); letter-spacing: -0.02em; line-height: 1.1; }
h2 { font-size: clamp(28px, 1.6rem + 1vw, 38px); letter-spacing: -0.015em; }
h3 { font-size: 19px; font-weight: 600; }
p { margin: 0; }
p + p { margin-top: 16px; }
a { color: var(--blue-dark); text-decoration: none; cursor: pointer; }
a:hover { text-decoration: underline; }
img, svg { display: block; max-width: 100%; }
svg { flex-shrink: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: 4px; }
.ic { width: 20px; height: 20px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding: 64px 0; }
@media (min-width: 768px) { .section { padding: 88px 0; } }
.section-gray { background: var(--gray-50); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-dark { background: var(--navy); color: var(--on-dark); }
.section-title { max-width: 720px; margin-bottom: 40px; }
.section-title.center { text-align: center; margin-inline: auto; }
.section-title p { margin-top: 12px; font-size: 18px; color: var(--text-muted); }
.section-dark .section-title p { color: var(--on-dark-muted); }
.kicker { display: block; margin-bottom: 10px; font-size: 14px; font-weight: 600; color: var(--blue-dark); }
.section-dark .kicker { color: #93B4FF; }
.grid { display: grid; gap: 24px; }
@media (min-width: 640px)  { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.two-col { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .two-col { grid-template-columns: 1fr 1fr; gap: 64px; } }
.note { font-size: 13px; color: var(--text-subtle); }
.section-dark .note { color: var(--on-dark-muted); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px;
  border-radius: var(--radius); border: 1px solid transparent;
  background-origin: border-box; background-repeat: no-repeat; /* gradient covers the border row too: no hairline at top/bottom */
  font-weight: 600; font-size: 15px; line-height: 1; white-space: nowrap;
  transition: background var(--t), border-color var(--t), color var(--t), box-shadow var(--t), transform var(--t);
}
.btn:hover { text-decoration: none; }
.btn .ic { width: 18px; height: 18px; }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 14px; }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[aria-busy="true"], .btn[disabled] { opacity: .65; cursor: default; transform: none !important; }

/* 3D buttons: top highlight, vertical gradient, solid bottom edge, press-down on :active */
.btn-primary {
  background-image: linear-gradient(180deg, #6A9EFF 0%, #4A86F9 18%, #3474F3 60%, #2563EB 100%);
  color: var(--white); border-color: transparent;
  box-shadow: 0 4px 0 #1848C0, 0 8px 18px rgba(0,0,0,.35);
  text-shadow: 0 1px 0 rgba(0,0,0,.2);
}
.btn-primary:hover { background-image: linear-gradient(180deg, #78A8FF 0%, #5590FB 18%, #3F7CF6 60%, #2B6AF0 100%); box-shadow: 0 4px 0 #1848C0, 0 10px 22px rgba(0,0,0,.4); }
.btn-primary:active { transform: translateY(4px); box-shadow: 0 0 0 #1848C0, 0 2px 6px rgba(0,0,0,.3); }

.btn-secondary {
  background-image: linear-gradient(180deg, #FFFFFF 0%, #F3F5F9 100%);
  color: var(--gray-900); border-color: var(--gray-300);
  box-shadow: 0 4px 0 var(--gray-300), 0 7px 14px rgba(15,23,42,.1);
}
.btn-secondary:hover { background-image: linear-gradient(180deg, #FFFFFF 0%, #EDF1F6 100%); border-color: var(--gray-500); }
.btn-secondary:active { transform: translateY(4px); box-shadow: 0 0 0 var(--gray-300), 0 1px 4px rgba(15,23,42,.08); }

.btn-outline-light {
  background-image: linear-gradient(180deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,.06) 100%);
  color: var(--white); border-color: rgba(255,255,255,.4);
  box-shadow: 0 4px 0 rgba(0,0,0,.45), 0 8px 18px rgba(0,0,0,.3);
}
.btn-outline-light:hover { background-image: linear-gradient(180deg, rgba(255,255,255,.2) 0%, rgba(255,255,255,.1) 100%); border-color: rgba(255,255,255,.7); }
.btn-outline-light:active { transform: translateY(4px); box-shadow: 0 0 0 rgba(0,0,0,.45), 0 2px 6px rgba(0,0,0,.25); }



.text-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; font-size: 15px; color: var(--blue-dark); }
.text-link .ic { width: 16px; height: 16px; }
.skip-link { position: absolute; top: -100px; left: 16px; z-index: 50; padding: 10px 14px; background: var(--blue); color: var(--white); border-radius: var(--radius); font-weight: 600; }
.skip-link:focus { top: 16px; text-decoration: none; }

/* ---------- Pills ---------- */
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill .ic { width: 12px; height: 12px; }
.pill-danger  { background: var(--red-soft);   color: var(--red); }
.pill-warning { background: var(--amber-soft); color: var(--amber); }
.pill-success { background: var(--green-soft); color: var(--green); }
.pill-info    { background: var(--info-soft);  color: var(--info); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--navy); border-bottom: 1px solid var(--on-dark-border); }
.site-header.is-scrolled { box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 700; font-size: 19px; letter-spacing: -0.01em; color: var(--navy); }
.brand:hover { text-decoration: none; }
.brand .ic { width: 28px; height: 28px; color: var(--blue); }
.site-header .brand { color: var(--white); }
.site-header .brand .ic { color: #93B4FF; }
.nav-links { display: none; align-items: center; gap: 4px; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 6px; font-size: 15px; font-weight: 500; color: var(--on-dark-muted); }
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,.08); text-decoration: none; }
.nav-actions { display: none; align-items: center; gap: 10px; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 6px; border: 1px solid rgba(255,255,255,.3); color: var(--white); }
.nav-toggle .ic { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.mobile-menu { display: block; border-top: 1px solid var(--on-dark-border); padding: 12px 0 20px; }
.js .mobile-menu { display: none; }
.js .mobile-menu.is-open { display: block; }
html:not(.js) .nav-toggle { display: none; }
.mobile-menu a:not(.btn) { display: flex; align-items: center; min-height: 48px; padding: 0 10px; border-radius: 6px; color: var(--white); font-weight: 500; }
.mobile-menu a:not(.btn):hover { background: rgba(255,255,255,.08); text-decoration: none; }
.mobile-menu .mobile-actions { margin-top: 12px; padding-top: 16px; border-top: 1px solid var(--on-dark-border); }
@media (min-width: 1024px) {
  .nav-links, .nav-actions { display: flex; }
  .nav-toggle, .mobile-menu { display: none !important; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%); color: var(--on-dark); padding: 72px 0 80px; }
@media (min-width: 1024px) { .hero { padding: 120px 0 128px; } }
.hero-art {
  position: absolute; top: 50%; right: -8%; width: 820px; height: 820px; transform: translateY(-50%);
  pointer-events: none;
}
.hero-art svg { width: 100%; height: 100%; display: block; }
@media (max-width: 1023px) { .hero-art { width: 640px; height: 640px; right: -40%; top: 40%; opacity: .55; } }
@media (max-width: 639px)  { .hero-art { width: 520px; height: 520px; right: -55%; top: 30%; opacity: .45; } }
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: block; max-width: 640px; }
.hero h1 { color: var(--white); }
.hero-lede { margin-top: 20px; font-size: 19px; line-height: 1.55; color: var(--on-dark-muted); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 28px; font-size: 15px; color: var(--on-dark-muted); }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points .ic { width: 16px; height: 16px; color: #7FD1A5; }

/* ---------- Logos ---------- */
.logos { padding: 28px 0; border-bottom: 1px solid var(--border); }
.logos p.lead { text-align: center; font-size: 14px; color: var(--text-subtle); margin-bottom: 18px; }
.logo-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 24px; align-items: center; justify-items: center; }
@media (min-width: 640px)  { .logo-row { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .logo-row { grid-template-columns: repeat(6, 1fr); } }
.logo-row span { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--gray-500); }
.logo-row .ic { width: 22px; height: 22px; }
.logos .note { text-align: center; margin-top: 16px; }

/* ---------- Feature cards ---------- */
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); }
.card.hover { transition: box-shadow var(--t), border-color var(--t); }
.card.hover:hover { box-shadow: var(--shadow-md); border-color: var(--gray-300); }
.icon-tile { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; background: var(--blue-50); color: var(--blue-dark); margin-bottom: 18px; }
.icon-tile .ic { width: 22px; height: 22px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-muted); font-size: 15px; }
.card .text-link { margin-top: 12px; }

/* ---------- How it works ---------- */
.steps { display: grid; gap: 32px; }
@media (min-width: 640px)  { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; }
.step .icon-tile { background: var(--blue); color: var(--white); border-radius: 50%; width: 48px; height: 48px; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 15px; }
.step .time { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--blue-dark); }

/* ---------- Platform ---------- */
.feature-list { margin-top: 28px; display: grid; gap: 18px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; }
.feature-list .ic { width: 22px; height: 22px; color: var(--blue-dark); margin-top: 2px; }
.feature-list b { display: block; font-weight: 600; color: var(--text); }
.feature-list span { color: var(--text-muted); font-size: 15px; }

.case { background: var(--white); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); overflow: hidden; }
.case-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); background: var(--gray-50); }
.case-head .id { font-size: 12px; color: var(--text-subtle); }
.case-head h3 { font-size: 15px; margin-top: 2px; }
.case-body { padding: 18px; }
.case-row { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.case-row:last-child { border-bottom: 0; }
.case-row dt { color: var(--text-subtle); }
.case-row dd { font-weight: 500; }
.case-row dd.monoval { font-family: var(--mono); font-size: 12.5px; font-weight: 400; word-break: break-all; }
.case-timeline { margin-top: 16px; display: grid; gap: 10px; }
.case-timeline li { display: grid; grid-template-columns: 18px 1fr auto; gap: 10px; align-items: center; font-size: 14px; }
.case-timeline .ic { width: 18px; height: 18px; }
.case-timeline .done .ic { color: var(--green); }
.case-timeline .active .ic { color: var(--blue-dark); }
.case-timeline .pending { color: var(--text-subtle); }
.case-timeline .pending .ic { color: var(--gray-300); }
.case-timeline time { font-size: 12px; color: var(--text-subtle); font-variant-numeric: tabular-nums; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (min-width: 1024px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat .value { font-size: clamp(32px, 2rem + 1vw, 44px); font-weight: 700; letter-spacing: -0.02em; line-height: 1; color: var(--white); font-variant-numeric: tabular-nums; }
.stat .label { margin-top: 8px; color: var(--on-dark-muted); font-size: 15px; }
.stats-note { margin-top: 20px; }

/* ---------- Comparison ---------- */
.compare-wrap { overflow-x: auto; padding: 6px 0 12px; }
.compare { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 760px; font-size: 15px; table-layout: fixed; }
.compare col.c-cap { width: 22%; }
.compare col.c-manual, .compare col.c-tw { width: 39%; }
.compare th, .compare td { text-align: left; padding: 18px 22px; border-bottom: 1px solid var(--border); vertical-align: top; }
.compare thead th { padding-top: 14px; padding-bottom: 14px; font-size: 13px; font-weight: 600; letter-spacing: .01em; color: var(--text-subtle); background: transparent; border-bottom: 2px solid var(--gray-300); }
.compare tbody th { font-weight: 600; color: var(--text); }
.compare tbody td { color: var(--text-muted); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
/* ThreatWarder column: one framed panel */
.compare .highlight { background: var(--blue-50); border-left: 1px solid var(--blue-100); border-right: 1px solid var(--blue-100); }
.compare thead th.highlight { border-top: 3px solid var(--blue); border-bottom-color: var(--blue-100); border-radius: 10px 10px 0 0; color: var(--navy); font-size: 15px; padding-top: 12px; }
.compare tbody td.highlight { color: var(--text); border-bottom-color: var(--blue-100); }
.compare tfoot td { border-bottom: 0; padding-top: 16px; padding-bottom: 22px; }
.compare tfoot td.highlight { border-bottom: 1px solid var(--blue-100); border-radius: 0 0 10px 10px; }
.compare tfoot .btn { width: 100%; }
.brand-cell { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.brand-cell .ic { width: 20px; height: 20px; color: var(--blue); }
.compare .cell { display: flex; gap: 10px; align-items: flex-start; }
.compare .cell .ic { width: 18px; height: 18px; padding: 3px; border-radius: 50%; margin-top: 2px; flex-shrink: 0; }
.compare .no .ic { color: var(--red); background: var(--red-soft); }
.compare .yes .ic { color: var(--green); background: var(--green-soft); }

/* ---------- Testimonials ---------- */
.quote { display: flex; flex-direction: column; margin: 0; }
.quote blockquote { margin: 0; flex: 1; font-size: 16px; color: var(--text); }
.quote figcaption { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 14px; }
.quote figcaption b { display: block; font-weight: 600; }
.quote figcaption span { color: var(--text-subtle); }

/* ---------- Resources ---------- */
.resource { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.resource .thumb { display: block; aspect-ratio: 16 / 9; background: var(--gray-100); border-bottom: 1px solid var(--border); overflow: hidden; }
.resource .thumb img { width: 100%; height: 100%; object-fit: cover; }
.resource .body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.resource .kind { font-size: 13px; font-weight: 600; color: var(--blue-dark); margin-bottom: 8px; }
.resource h3 { font-size: 17px; margin-bottom: 8px; }
.resource p { flex: 1; }

/* ---------- Demo form ---------- */
.cta-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 1024px) { .cta-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.checklist { margin-top: 24px; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; color: var(--on-dark-muted); }
.checklist .ic { width: 18px; height: 18px; margin-top: 3px; color: #7FD1A5; }
.checklist strong { color: var(--white); font-weight: 600; }
.demo-form { background: var(--white); color: var(--text); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-lg); }
.demo-form h3 { font-size: 21px; }
.demo-form .sub { margin-top: 6px; color: var(--text-muted); font-size: 15px; margin-bottom: 22px; }
.form-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-grid .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 500; font-size: 14px; }
.field .req { color: var(--red); margin-left: 2px; }
.field .hint { font-size: 13px; color: var(--text-subtle); font-weight: 400; }
.field .error { display: none; font-size: 13px; color: var(--red); align-items: center; gap: 4px; }
.field .error .ic { width: 14px; height: 14px; }
.field.has-error .error { display: inline-flex; }
.field.has-error .input { border-color: var(--red); }
.input { width: 100%; min-height: 46px; padding: 0 14px; border: 1px solid var(--gray-300); border-radius: var(--radius); background: var(--white); color: var(--text); transition: border-color var(--t), box-shadow var(--t); }
.input::placeholder { color: #94A3B8; }
.input:hover { border-color: var(--gray-500); }
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, .2); }
textarea.input { min-height: 104px; padding-block: 10px; resize: vertical; }
select.input { appearance: none; padding-right: 40px; background-image: url("assets/select-chevron.svg"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; }
.consent { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--text-muted); font-weight: 400; }
.consent a { text-decoration: underline; }
.consent input {
  appearance: none; -webkit-appearance: none; position: relative; flex-shrink: 0;
  width: 44px; height: 44px; margin: -11px 0 0 -12px; /* 44px target, 20px visible box */
  cursor: pointer; border-radius: 6px;
}
.consent input::before { content: ""; position: absolute; left: 12px; top: 12px; width: 20px; height: 20px; box-sizing: border-box; border: 1.5px solid var(--gray-300); border-radius: 4px; background: var(--white); transition: background-color var(--t), border-color var(--t); }
.consent input:hover::before { border-color: var(--gray-500); }
.consent input:checked::before { background: var(--blue); border-color: var(--blue); }
.consent input::after { content: ""; position: absolute; left: 19px; top: 15px; width: 5px; height: 10px; border: solid var(--white); border-width: 0 2px 2px 0; transform: rotate(45deg); opacity: 0; }
.consent input:checked::after { opacity: 1; }
.consent input:focus-visible { outline: 2px solid var(--ring); outline-offset: -2px; }
.field.has-error .consent input::before { border-color: var(--red); }
.form-notice { display: none; gap: 10px; align-items: flex-start; margin-top: 4px; padding: 14px; border-radius: var(--radius); background: var(--amber-soft); color: #5C3800; font-size: 14px; }
.form-notice.is-visible { display: flex; }
.form-notice .ic { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.form-notice a { color: inherit; font-weight: 600; text-decoration: underline; }
.form-notice.is-error { background: var(--red-soft); color: #7A1A12; }
.form-success { display: none; padding: 8px 0; }
.form-success .ic { width: 40px; height: 40px; color: var(--green); margin-bottom: 14px; }
.form-success h3 { margin-bottom: 6px; }
.form-success p { color: var(--text-muted); }
.demo-form.is-done .form-grid, .demo-form.is-done .sub, .demo-form.is-done > h3 { display: none; }
.demo-form.is-done .form-success { display: block; }

.form-resource { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 10px 14px; border-radius: var(--radius); background: var(--blue-50); color: var(--text); font-size: 14px; }
.form-resource[hidden] { display: none; }
.form-resource b { font-weight: 600; }
.form-resource-clear { min-height: 44px; padding: 0 8px; font-size: 13px; font-weight: 600; color: var(--blue-dark); text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { background: var(--gray-50); border-top: 1px solid var(--border); color: var(--text-muted); padding: 56px 0 28px; font-size: 14px; }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 768px)  { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 32px; } }
.footer-brand p { margin-top: 14px; max-width: 320px; }
.site-footer h3 { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 10px; }
.site-footer ul a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-muted); }
.site-footer ul a:hover { color: var(--text); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 13px; }
.footer-bottom .legal { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-muted); }
.footer-bottom a:hover { color: var(--text); }

/* ---------- Legal page ---------- */
.legal-page { padding: 56px 0 80px; }
.legal-page .prose { max-width: 720px; }
.legal-page .prose h1 { font-size: clamp(30px, 2rem + 1vw, 40px); margin-bottom: 8px; }
.legal-page .prose h2 { font-size: 22px; margin-top: 36px; margin-bottom: 10px; }
.legal-page .prose p, .legal-page .prose li { color: var(--text-muted); }
.legal-page .prose ul { list-style: disc; padding-left: 20px; }
.legal-page .prose li + li { margin-top: 6px; }
.legal-page .updated { font-size: 14px; color: var(--text-subtle); margin-bottom: 28px; }
.draft-banner { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); background: var(--amber-soft); color: #5C3800; margin-bottom: 28px; font-size: 14px; }
.draft-banner .ic { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Motion ---------- */
/* Hero entrance: one-time, staggered, short. */
@keyframes rise-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes art-in  { from { opacity: 0; transform: translateY(-50%) scale(.97); } to { opacity: 1; transform: translateY(-50%) scale(1); } }
.hero-copy > * { animation: rise-in 480ms var(--ease-out) both; }
.hero-copy > :nth-child(1) { animation-delay: 40ms; }
.hero-copy > :nth-child(2) { animation-delay: 110ms; }
.hero-copy > :nth-child(3) { animation-delay: 180ms; }
.hero-copy > :nth-child(4) { animation-delay: 250ms; }
.hero-art { animation: art-in 900ms var(--ease-out) 120ms both; }

/* Radar sweep: constant motion, so linear. Slow enough to stay in the background. */
.radar-sweep { transform-box: view-box; transform-origin: 450px 450px; animation: sweep 9s linear infinite; }
@keyframes sweep { to { transform: rotate(360deg); } }

/* Radar contacts: each pops and pings when the sweep passes (delay = its angle from the leading edge), then dims. */
.blip, .ping, .blip-hi .core { transform-box: fill-box; transform-origin: center; }
.blip { animation: blip 9s linear infinite; animation-delay: var(--d, 0s); }
@keyframes blip {
  0%   { opacity: 1; transform: scale(2.6); }
  5%   { opacity: 1; transform: scale(1); }
  35%  { opacity: .22; }
  100% { opacity: .22; }
}
.ping { opacity: 0; animation: ping 9s linear infinite; animation-delay: var(--d, 0s); }
@keyframes ping {
  0%   { opacity: .9; transform: scale(.4); }
  12%  { opacity: 0;  transform: scale(3.2); }
  100% { opacity: 0;  transform: scale(3.2); }
}
.blip-hi { animation-name: blip-hi; }
@keyframes blip-hi { 0% { opacity: 1; } 10% { opacity: 1; } 55% { opacity: .5; } 100% { opacity: .5; } }
.blip-hi .core { animation: core 9s linear infinite; animation-delay: var(--d, 0s); }
@keyframes core { 0% { transform: scale(1.9); } 7% { transform: scale(1); } 100% { transform: scale(1); } }
.blip-hi .halo { transform-box: fill-box; transform-origin: center; animation: halo 9s linear infinite; animation-delay: var(--d, 0s); }
@keyframes halo { 0% { transform: scale(.5); opacity: 1; } 14% { transform: scale(1.5); opacity: .7; } 40% { transform: scale(1); opacity: .45; } 100% { transform: scale(1); opacity: .45; } }

/* Scroll reveal: hidden only when JS is running (script.js animates it in via WAAPI). */
.js .reveal:not(.is-visible) { opacity: 0; }

/* Mobile menu open */
.js .mobile-menu.is-open { animation: rise-in 180ms var(--ease-out) both; }

/* Press feedback on anything pressable that is not a 3D button */
.text-link, .nav-links a, .nav-toggle { transition: transform 120ms var(--ease-out), color var(--t), background-color var(--t); }
.text-link:active, .nav-toggle:active { transform: scale(.97); }

/* Card lift on real pointers only */
.card.hover { transition: transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out), border-color var(--t); }
@media (hover: hover) and (pointer: fine) {
  .card.hover:hover { transform: translateY(-2px); }
}

/* Form success / notice enter */
.demo-form.is-done .form-success { animation: rise-in 260ms var(--ease-out) both; }
.form-notice.is-visible { animation: fade-in 200ms ease both; }

/* Reduced motion: keep fades, remove movement and the sweep. */
@media (prefers-reduced-motion: reduce) {
  .hero-copy > *, .hero-art, .js .mobile-menu.is-open, .demo-form.is-done .form-success { animation-name: fade-in; animation-duration: 200ms; animation-delay: 0ms; }
  .hero-art { animation-duration: 300ms; }
  .radar-sweep, .blip, .ping, .blip-hi .core, .blip-hi .halo { animation: none; }
  .ping { display: none; }
  .btn:active, .text-link:active, .nav-toggle:active { transform: none; }
  .card.hover:hover { transform: none; }
}

/* ---------- Secondary pages ---------- */
.page-hero { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%); color: var(--on-dark); padding: 56px 0 64px; }
@media (min-width: 1024px) { .page-hero { padding: 80px 0 88px; } }
.page-hero h1 { color: var(--white); max-width: 760px; }
.page-hero .kicker { color: #93B4FF; }
.page-hero .hero-lede { max-width: 680px; }
.prose-block p { color: var(--text-muted); font-size: 17px; }
.prose-block p + p { margin-top: 16px; }
.prose-block a { text-decoration: underline; }
.roles { display: grid; gap: 16px; }
.role { display: grid; gap: 16px; padding: 24px 28px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); align-items: center; }
@media (min-width: 768px) { .role { grid-template-columns: 1fr auto; } }
.role h3 { font-size: 18px; }
.role .role-meta { font-size: 14px; color: var(--blue-dark); font-weight: 600; margin: 4px 0 8px; }
.role p { color: var(--text-muted); font-size: 15px; }
.cookie-form { margin: 28px 0 40px; display: grid; gap: 18px; }
.cookie-group { margin: 0; padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--white); }
.cookie-group legend { font-weight: 600; padding: 0 6px; }
.cookie-row { padding-top: 6px; }
.cookie-form .consent input[disabled] { cursor: default; opacity: .6; }
.cookie-status { margin-top: 12px; font-size: 14px; color: var(--green); min-height: 1.4em; }
.legal-page .prose .cookie-form p { color: var(--green); }
