/* AtmosGuard — telemetry-grade marketing site */

:root {
  /* Backgrounds */
  --bg: #0A1014;
  --bg-2: #0C141A;
  --surface: #0F181E;
  --surface-2: #121E25;
  --surface-3: #162329;

  /* Borders */
  --border: #1C2A33;
  --border-2: #23333D;
  --border-strong: #2E4550;

  /* Text */
  --text: #E6EEF2;
  --text-2: #9BACB5;
  --text-3: #6A7A83;
  --text-4: #475761;

  /* Signal — cyan */
  --teal: #38BDF8;
  --teal-2: #0EA5E9;
  --teal-dim: #0369A1;
  --teal-glow: rgba(56, 189, 248, 0.14);
  --teal-glow-strong: rgba(56, 189, 248, 0.28);

  /* Status */
  --red: #F05D5D;
  --orange: #F07B3F;
  --amber: #E8A34C;
  --green: #4ADE80;
  --blue: #6FC3DF;
  --purple: #A68DF2;

  /* Cloud chips */
  --aws: #FF9900;
  --azure: #3399FF;

  /* Type */
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* Accent hue is fixed to cyan */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01";
}

.mono { font-family: var(--mono); font-feature-settings: "tnum"; }
.micro {
  font-family: var(--sans);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-4);
  font-weight: 500;
}
.micro-2 { color: var(--text-3); }

/* Layout shell */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 28px; }
.wrap-wide { max-width: 1440px; margin: 0 auto; padding: 0 28px; }

/* Telemetry ticker — narrow strip above nav */
.ticker {
  width: 100%;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
  position: sticky; top: 0; z-index: 41;
  overflow: hidden;
}
.ticker-inner {
  max-width: 1440px; margin: 0 auto; padding: 6px 28px;
  display: flex; align-items: center; gap: 18px;
  white-space: nowrap; overflow: hidden;
}
.ticker .tk-rail { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); }
.ticker .tk-sep { color: var(--text-4); }
.ticker .tk-item { display: inline-flex; align-items: center; gap: 6px; }
.ticker .tk-item .pill { transform: translateY(-1px); }
.ticker .tk-stream { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, #000 0, #000 92%, transparent 100%); }
.ticker .tk-stream-inner { display: inline-flex; gap: 28px; animation: tk-scroll 60s linear infinite; }
.ticker .tk-right { margin-left: auto; display: inline-flex; gap: 10px; align-items: center; color: var(--text-3); }
.ticker .tk-right .uptime { color: var(--teal); }
@keyframes tk-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (max-width: 1080px) {
  .ticker .tk-stream { display: none; }
}

/* Top nav */
.nav {
  position: sticky; top: 26px; z-index: 40;
  width: 100%;
  background: rgba(12, 20, 26, 0.82);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; gap: 24px;
  padding: 10px 28px;
  flex-wrap: nowrap; min-width: 0;
  max-width: 1440px; margin: 0 auto;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none;
  font-weight: 600; letter-spacing: -0.01em;
}
.brand-mark {
  width: 22px; height: 22px;
  display: block;
  object-fit: contain;
  flex: 0 0 auto;
}
.product-logo {
  display: block;
  object-fit: contain;
  flex: 0 0 auto;
}
.nav-links { display: flex; gap: 4px; margin-left: 4px; align-items: center; flex-wrap: nowrap; }
.nav-link { white-space: nowrap; }
.nav-link {
  color: var(--text-2); text-decoration: none;
  padding: 6px 10px; border-radius: 6px;
  font-size: 13px; font-weight: 500;
  transition: background .15s ease, color .15s ease;
}
.nav-link:hover { color: var(--text); background: var(--surface-3); }
.nav-link.active { color: var(--text); position: relative; }
.nav-link.active::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: -11px;
  height: 1px; background: var(--teal);
  box-shadow: 0 0 8px 0 var(--teal-glow-strong);
}

/* Nav dropdowns */
.nav-drop { position: relative; height: 100%; display: flex; align-items: center; }
.nav-drop > .nav-link { background: transparent; border: 0; cursor: default; font-family: var(--sans); display: inline-flex; align-items: center; gap: 4px; }
.nav-drop .caret { font-size: 9px; color: var(--text-4); transition: transform .15s; }
.nav-drop.open .caret { transform: rotate(180deg); color: var(--text-2); }
.dropdown {
  position: absolute; top: calc(100% + 4px); left: -8px;
  visibility: hidden; opacity: 0; pointer-events: none;
  transition: opacity .12s ease;
  width: 600px;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 8px;
  padding: 10px;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: 12px;
  box-shadow: 0 24px 48px -16px rgba(0,0,0,0.6);
  z-index: 60;
}
.dropdown.dd-right { left: auto; right: -8px; width: 520px; }
.nav-drop.open .dropdown { visibility: visible; opacity: 1; pointer-events: auto; }
.dd-col { display: flex; flex-direction: column; gap: 4px; padding: 10px; }
.dd-col-muted { background: var(--surface); border-radius: 8px; }
.dd-eyebrow { font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-4); padding: 4px 6px 8px; font-weight: 500; }
.dd-item { display: flex; flex-direction: column; gap: 2px; padding: 10px; border-radius: 8px; text-decoration: none; transition: background .15s; }
.dd-item:hover { background: var(--surface-3); }
.dd-item .dd-name { font-size: 13px; color: var(--text); font-weight: 500; display: inline-flex; align-items: center; gap: 8px; }
.dd-item .dd-desc { font-size: 12px; color: var(--text-3); line-height: 1.4; }
.dd-item.dim { opacity: 0.65; cursor: default; }
.dd-item.dim .dd-name { color: var(--text-2); }
.pill.amber { color: var(--amber); background: color-mix(in oklab, var(--amber) 10%, transparent); border-color: color-mix(in oklab, var(--amber) 25%, transparent); }
.nav-right { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: nowrap; white-space: nowrap; }
.nav-right .btn { white-space: nowrap; }
.nav-status { white-space: nowrap; }
.nav-sep { color: var(--text-4); margin: 0 6px; }
.nav-status {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px;
  color: var(--text-3); padding-right: 4px;
}

/* Mobile burger + drawer */
.nav-burger {
  display: none;
  width: 36px; height: 36px;
  background: transparent; border: 1px solid var(--border-2);
  border-radius: 8px; cursor: pointer;
  padding: 0; margin-left: 4px;
  position: relative;
}
.nav-burger span {
  position: absolute; left: 8px; right: 8px; height: 1.5px;
  background: var(--text-2); border-radius: 1px;
  transition: transform .2s ease, opacity .15s ease, top .2s ease;
}
.nav-burger span:nth-child(1) { top: 11px; }
.nav-burger span:nth-child(2) { top: 17px; }
.nav-burger span:nth-child(3) { top: 23px; }
.nav-burger:hover span { background: var(--text); }
.nav-burger.open span:nth-child(1) { top: 17px; transform: rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { top: 17px; transform: rotate(-45deg); }

.nav-mobile {
  display: none;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
}
.nav-mobile.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.nav-mobile-inner {
  max-width: 1440px; margin: 0 auto;
  padding: 12px 20px 20px;
  display: flex; flex-direction: column; gap: 2px;
}
.nav-mobile-link, .nav-mobile-toggle {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; text-align: left;
  padding: 12px 10px; border-radius: 8px;
  background: transparent; border: 0;
  color: var(--text-2); text-decoration: none;
  font-family: var(--sans); font-size: 15px; font-weight: 500;
  cursor: pointer;
}
.nav-mobile-link:hover, .nav-mobile-toggle:hover { background: var(--surface-3); color: var(--text); }
.nav-mobile-link.active { color: var(--text); }
.nav-mobile-toggle .caret { font-size: 10px; color: var(--text-4); transition: transform .15s; }
.nav-mobile-group.open .nav-mobile-toggle .caret { transform: rotate(180deg); color: var(--text-2); }
.nav-mobile-sub {
  display: none;
  flex-direction: column;
  padding: 2px 0 6px 10px;
  margin-left: 8px;
  border-left: 1px solid var(--border);
}
.nav-mobile-group.open .nav-mobile-sub { display: flex; }
.nav-mobile-sublink {
  padding: 10px 12px; border-radius: 6px;
  color: var(--text-3); text-decoration: none;
  font-size: 14px;
}
.nav-mobile-sublink:hover { background: var(--surface-3); color: var(--text); }
.nav-mobile-cta {
  display: flex; gap: 8px; margin-top: 14px;
  padding-top: 14px; border-top: 1px solid var(--border);
}
.nav-mobile-cta .btn { flex: 1; justify-content: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  white-space: nowrap;
  padding: 7px 12px; border-radius: 6px;
  font-size: 13px; font-weight: 500;
  font-family: var(--sans);
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .05s;
}
.btn:hover { background: var(--surface-3); border-color: var(--border-2); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; border-color: var(--border); color: var(--text-2); }
.btn.ghost:hover { color: var(--text); border-color: var(--border-2); }
.btn.primary {
  background: linear-gradient(180deg, var(--teal) 0%, var(--teal-2) 100%);
  color: #07251F;
  border-color: transparent;
  font-weight: 600;
  box-shadow: 0 0 0 1px rgba(45,212,191,0.35), 0 6px 16px -6px var(--teal-glow-strong);
}
.btn.primary:hover { filter: brightness(1.06); }
.btn.lg { padding: 10px 16px; font-size: 13.5px; }
.btn .kbd {
  font-family: var(--mono); font-size: 11px;
  color: var(--text-3);
  border: 1px solid var(--border);
  padding: 1px 5px; border-radius: 4px;
  background: var(--bg);
}
.btn.primary .kbd { color: rgba(7,37,31,0.7); border-color: rgba(7,37,31,0.25); background: rgba(7,37,31,0.08); }

/* Pills */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 9.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 3px 7px; border-radius: 999px;
  border: 1px solid;
  white-space: nowrap;
}
.pill.teal   { color: var(--teal);   background: color-mix(in oklab, var(--teal) 10%, transparent);   border-color: color-mix(in oklab, var(--teal) 25%, transparent); }
.pill.red    { color: var(--red);    background: color-mix(in oklab, var(--red) 10%, transparent);    border-color: color-mix(in oklab, var(--red) 25%, transparent); }
.pill.amber  { color: var(--amber);  background: color-mix(in oklab, var(--amber) 10%, transparent);  border-color: color-mix(in oklab, var(--amber) 25%, transparent); }
.pill.green  { color: var(--green);  background: color-mix(in oklab, var(--green) 10%, transparent);  border-color: color-mix(in oklab, var(--green) 25%, transparent); }
.pill.blue   { color: var(--blue);   background: color-mix(in oklab, var(--blue) 10%, transparent);   border-color: color-mix(in oklab, var(--blue) 25%, transparent); }
.pill.purple { color: var(--purple); background: color-mix(in oklab, var(--purple) 10%, transparent); border-color: color-mix(in oklab, var(--purple) 25%, transparent); }
.pill.muted  { color: var(--text-3); background: transparent; border-color: var(--border-2); }

/* Dots */
.dot {
  display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--text-3);
  box-shadow: 0 0 0 2px rgba(0,0,0,0);
}
.dot.live   { background: var(--teal);   box-shadow: 0 0 8px 2px var(--teal-glow-strong); animation: pulse 2.2s ease-in-out infinite; }
.dot.green  { background: var(--green);  box-shadow: 0 0 8px 1px rgba(74,222,128,0.35); }
.dot.red    { background: var(--red);    box-shadow: 0 0 8px 1px rgba(240,93,93,0.4); }
.dot.amber  { background: var(--amber);  box-shadow: 0 0 8px 1px rgba(232,163,76,0.35); }
.dot.blue   { background: var(--blue);   box-shadow: 0 0 8px 1px rgba(111,195,223,0.35); }
.dot.muted  { background: var(--text-4); }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

/* Section scaffolding */
.section { padding: 88px 0; position: relative; }
.section + .section { border-top: 1px solid var(--border); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 40px; }
.section-head .lead { max-width: 620px; }
.rail-title {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
}
.rail-title::before {
  content: ""; display: inline-block;
  width: 2px; height: 14px; background: var(--teal);
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 8px 0 var(--teal-glow-strong);
}
.rail-title .micro { color: var(--text-3); }
h1, h2, h3, h4 { font-family: var(--sans); font-weight: 600; letter-spacing: -0.01em; margin: 0; color: var(--text); }
h1 { font-size: 58px; line-height: 1.03; letter-spacing: -0.028em; font-weight: 600; }
h2 { font-size: 36px; line-height: 1.08; letter-spacing: -0.02em; }
h3 { font-size: 20px; line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0; color: var(--text-2); }
.lead p { font-size: 15.5px; color: var(--text-2); line-height: 1.55; }

/* Hero */
.hero {
  position: relative;
  padding: 72px 0 72px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(600px 220px at 8% 0%, var(--teal-glow) 0%, transparent 60%),
    radial-gradient(900px 400px at 90% 10%, rgba(56,189,248,0.04) 0%, transparent 60%);
  pointer-events: none;
}
.hero::after {
  /* Faint grid lines */
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 48px; align-items: center;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--border-2);
  background: color-mix(in oklab, var(--teal) 6%, transparent);
  color: var(--text-2);
  font-size: 11.5px;
  margin-bottom: 22px;
}
.hero-kicker .dot { width: 5px; height: 5px; }
.hero h1 .mono-sub {
  display: block;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0;
  color: var(--text-3);
  margin-top: 18px;
  font-weight: 400;
}
.hero .subcopy { margin-top: 24px; font-size: 16px; max-width: 540px; color: var(--text-2); }
.hero-cta { display: flex; gap: 10px; margin-top: 32px; align-items: center; }
.hero-cta .trust { font-family: var(--mono); font-size: 11px; color: var(--text-3); margin-left: 8px; }

/* Mock console (hero) */
.console {
  position: relative;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  min-height: 520px;
}
.console::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(400px 120px at 0% 0%, var(--teal-glow) 0%, transparent 60%);
  pointer-events: none;
}
.console-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
  font-family: var(--mono); font-size: 11.5px; color: var(--text-3);
}
.console-bar .path { color: var(--text-2); }
.console-bar .path .sep { color: var(--text-4); margin: 0 6px; }
.console-bar .right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.console-bar .kbd { border: 1px solid var(--border); padding: 1px 6px; border-radius: 4px; }

.console-body { display: grid; grid-template-columns: 180px minmax(0, 1fr); min-height: 470px; }
.console-side {
  border-right: 1px solid var(--border);
  background: var(--bg-2);
  padding: 12px 0;
}
.side-group { padding: 10px 14px 4px; }
.side-item {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 14px; font-size: 12.5px; color: var(--text-2);
  position: relative; cursor: default;
}
.side-item .count { margin-left: auto; font-family: var(--mono); font-size: 10.5px; color: var(--text-4); }
.side-item.active {
  color: var(--text);
  background: linear-gradient(90deg, var(--teal-glow) 0%, transparent 100%);
}
.side-item.active::before {
  content: ""; position: absolute; left: 0; top: 5px; bottom: 5px; width: 2px;
  background: var(--teal); border-radius: 0 2px 2px 0;
  box-shadow: 0 0 8px 0 var(--teal-glow-strong);
}
.side-item.active .count { color: var(--teal); }

.console-main { padding: 14px 16px; position: relative; }
.console-filters {
  display: flex; gap: 6px; align-items: center; margin-bottom: 12px;
}
.filter-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; color: var(--text-2);
  padding: 4px 8px; border: 1px solid var(--border); border-radius: 6px;
  background: var(--surface);
}
.filter-chip .mono { color: var(--text-3); }
.filter-chip.live { color: var(--text); border-color: color-mix(in oklab, var(--teal) 30%, var(--border)); }

/* Data table */
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12.5px; }
.tbl thead th {
  text-align: left; padding: 8px 10px;
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-4); font-weight: 500;
  border-bottom: 1px solid var(--border);
  background: transparent;
}
.tbl tbody td {
  padding: 10px;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
  vertical-align: middle;
}
.tbl tbody tr:hover td { background: var(--bg); }
.tbl .sel { width: 22px; }
.tbl .cb {
  width: 14px; height: 14px; border-radius: 3px;
  border: 1px solid var(--border-strong);
  display: inline-block; position: relative;
  background: var(--bg);
}
.tbl .cb.on {
  background: var(--teal); border-color: var(--teal);
}
.tbl .cb.on::after {
  content: ""; position: absolute; inset: 2px 3px 3px 2px;
  border-left: 1.5px solid #07251F; border-bottom: 1.5px solid #07251F;
  transform: rotate(-45deg) translate(1px,-1px);
}
.tbl .id { color: var(--text-3); }
.tbl .id.strong { color: var(--text); }
.tbl .sev { font-weight: 600; }
.tbl .sev.high { color: var(--red); }
.tbl .sev.med { color: var(--amber); }
.tbl .sev.low { color: var(--blue); }
.tbl .cloud { display: inline-flex; align-items: center; gap: 6px; }
.tbl .cloud .chip { font-family: var(--mono); font-size: 10.5px; color: var(--text-3); }
.tbl .aws { color: var(--aws); }
.tbl .azure { color: var(--azure); }

/* Hero annotation callouts */
.anno {
  position: absolute;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px;
  color: var(--text-2);
  pointer-events: none;
}
.anno .leader {
  width: 40px; height: 1px; background: var(--teal);
  box-shadow: 0 0 6px 0 var(--teal-glow-strong);
}
.anno .bubble {
  border: 1px solid var(--border-2);
  background: var(--bg-2);
  color: var(--text-2);
  padding: 4px 8px; border-radius: 6px;
  white-space: nowrap;
}
.anno .bubble .mono { color: var(--text); }

/* Live mini-panel inside console */
.mini-live {
  position: absolute; right: 16px; bottom: 16px;
  width: 260px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 12px 10px;
}
.mini-live-head {
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
  font-size: 11px; color: var(--text-3);
}
.mini-live-head .spacer { flex: 1; }
.spark { display: block; width: 100%; height: 42px; }

/* Stats strip */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
}
.stat {
  padding: 22px 24px;
  border-right: 1px solid var(--border);
  position: relative;
}
.stat:last-child { border-right: none; }
.stat .micro { display: block; margin-bottom: 10px; }
.stat .val { font-family: var(--mono); font-size: 26px; color: var(--text); letter-spacing: -0.01em; font-feature-settings: "tnum"; }
.stat .delta { margin-top: 8px; font-family: var(--mono); font-size: 10.5px; color: var(--text-3); }
.stat .delta.up { color: var(--green); }
.stat .delta.down { color: var(--red); }
.stat .delta.teal { color: var(--teal); }
.stat .bloom { position: absolute; top: 10px; right: 14px; }

/* Module cards */
.modules {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.module {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px 20px 0;
  display: flex; flex-direction: column;
  min-height: 440px;
  position: relative;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.module:hover { border-color: var(--border-2); background: var(--surface-2); }
.module .mod-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.module h3 { font-size: 18px; }
.module p.mod-desc { color: var(--text-2); font-size: 13.5px; margin-top: 2px; max-width: 42ch; }
.module .mod-metrics {
  display: flex; gap: 16px; margin-top: 18px;
  padding: 14px 0; border-top: 1px dashed var(--border);
}
.mod-metrics .m { }
.module .mod-metrics { flex-wrap: wrap; gap: 12px 18px; }
.mod-metrics .m { min-width: 0; }
.mod-metrics .v { font-family: var(--mono); font-size: 15px; color: var(--text); font-feature-settings: "tnum"; white-space: nowrap; letter-spacing: -0.01em; }
.mod-metrics .k { display: block; margin-top: 2px; }
.module .mod-vis {
  margin-top: auto;
  border-top: 1px solid var(--border);
  margin-left: -20px; margin-right: -20px;
  padding: 14px 20px;
  background: var(--bg-2);
  border-radius: 0 0 10px 10px;
}

/* Posture tile: ring */
.ring-wrap { display: flex; align-items: center; gap: 14px; }
.ring svg { display: block; }
.ring-legend { display: grid; gap: 6px; font-family: var(--mono); font-size: 11px; color: var(--text-2); }
.ring-legend .r { display: flex; align-items: center; gap: 8px; }
.ring-legend .sw { width: 8px; height: 8px; border-radius: 2px; }

/* Threat tile: event feed */
.feed { display: grid; gap: 6px; font-family: var(--mono); font-size: 11.5px; }
.feed-row { display: flex; gap: 10px; color: var(--text-2); align-items: center; }
.feed-row .t { color: var(--text-4); width: 58px; }
.feed-row .sev { width: 30px; }
.feed-row .msg { color: var(--text-2); flex: 1; }
.feed-row .msg .hl { color: var(--text); }

/* Compliance tile: framework grid */
.fw-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.fw-cell {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
  background: var(--surface);
  display: flex; flex-direction: column; gap: 4px;
  min-height: 52px;
}
.fw-cell .name { font-size: 11px; color: var(--text); font-weight: 500; }
.fw-cell .pct { font-family: var(--mono); font-size: 11px; color: var(--text-3); }
.fw-cell.ok .pct { color: var(--teal); }
.fw-cell.warn .pct { color: var(--amber); }

/* Cloud coverage */
.coverage {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 32px; align-items: center;
}
.cov-diagram {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.cov-diagram::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(500px 160px at 0% 0%, var(--teal-glow) 0%, transparent 60%);
  pointer-events: none;
}
.cov-list { display: grid; gap: 10px; }
.cov-row {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  background: var(--surface);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center; gap: 14px;
}
.cov-row .chip {
  font-family: var(--mono); font-size: 11px;
  padding: 2px 6px; border-radius: 4px; border: 1px solid var(--border-2);
  color: var(--text-2);
}
.cov-row .chip.aws { color: var(--aws); border-color: color-mix(in oklab, var(--aws) 30%, var(--border)); }
.cov-row .chip.azure { color: var(--azure); border-color: color-mix(in oklab, var(--azure) 30%, var(--border)); }
.cov-row .main { font-size: 13px; color: var(--text); }
.cov-row .sub { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.cov-row .count { font-family: var(--mono); font-size: 12px; color: var(--text-2); }

/* Pipeline */
.pipeline {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border: 1px solid var(--border); border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
  position: relative;
}
.pipe-step { padding: 22px 20px 20px; border-right: 1px solid var(--border); position: relative; min-height: 170px; }
.pipe-step:last-child { border-right: none; }
.pipe-step .num { font-family: var(--mono); font-size: 10px; color: var(--text-4); letter-spacing: 0.08em; text-transform: uppercase; }
.pipe-step h4 { font-size: 15px; margin-top: 6px; }
.pipe-step p { color: var(--text-3); font-size: 12.5px; margin-top: 8px; }
.pipe-step .chip-row { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 4px; }
.pipe-step .chip-row .pill { font-size: 9px; padding: 2px 6px; }
.pipe-step::after {
  content: ""; position: absolute; right: -5px; top: 50%;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--border);
  transform: translateY(-50%);
  z-index: 1;
}
.pipe-step:last-child::after { display: none; }
.pipe-step.active .num { color: var(--teal); }
.pipe-step.active::before {
  content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 2px;
  background: var(--teal); border-radius: 0 2px 2px 0;
  box-shadow: 0 0 8px 0 var(--teal-glow-strong);
}

/* Compliance frameworks grid */
.frameworks {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.fw {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
  position: relative;
  display: flex; flex-direction: column; gap: 10px;
  min-height: 160px;
}
.fw:hover { border-color: var(--border-2); }
.fw .name { font-size: 15px; color: var(--text); font-weight: 600; letter-spacing: -0.01em; }
.fw .ctrl { font-family: var(--mono); font-size: 11px; color: var(--text-3); }
.fw .bar {
  height: 4px; background: var(--bg); border-radius: 2px; overflow: hidden;
}
.fw .bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--teal-2)); }
.fw.warn .bar > span { background: var(--amber); }
.fw .pct { font-family: var(--mono); font-size: 18px; color: var(--text); font-feature-settings: "tnum"; margin-top: auto; }
.fw .label-line { display: flex; align-items: center; justify-content: space-between; }

/* Pricing */
.pricing {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.pricing.pricing-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px;
}
.pricing.pricing-4 .plan { padding: 18px 14px; }
.pricing.pricing-4 .plan .price { font-size: 22px; }
.pricing.pricing-4 .plan .price .per { font-size: 11px; }
.pricing.pricing-4 .plan .price-note { font-size: 10.5px; }
.pricing.pricing-4 .plan ul.feats { font-size: 12px; gap: 6px; margin: 14px 0 16px; padding-top: 12px; }
.pricing.pricing-4 .plan ul.feats li { font-size: 12px; line-height: 1.35; grid-template-columns: 10px 1fr; gap: 8px; }
.pricing.pricing-4 .plan .plan-name { font-size: 13px; }
.pricing.pricing-4 .plan .pill { font-size: 9.5px; padding: 2px 7px; }
.pricing.pricing-4 .plan .btn { font-size: 12px; padding: 8px 12px; }

/* Wizard */
.wizard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  position: relative;
}
.wizard-progress { display: flex; align-items: center; gap: 8px; margin-bottom: 24px; justify-content: center; }
.wizard-dot { width: 32px; height: 3px; border-radius: 2px; background: var(--border-2); transition: background .15s; }
.wizard-dot.active { background: var(--teal); box-shadow: 0 0 8px 0 var(--teal-glow-strong); }
.wizard-step-label { font-family: var(--mono); font-size: 11px; color: var(--text-3); margin-left: 12px; }
.wizard h3 { font-size: 18px; text-align: center; margin-bottom: 22px; color: var(--text); }
.wizard-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 640px; margin: 0 auto; }
.wizard-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 760px; margin: 0 auto; }
.wizard-grid-1 { max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.wiz-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 20px;
  cursor: pointer;
  text-align: center;
  transition: border-color .15s, background .15s, transform .05s;
}
.wiz-card:hover { border-color: var(--border-strong); background: var(--surface-2); }
.wiz-card.selected {
  border-color: var(--teal);
  background: color-mix(in oklab, var(--teal) 6%, var(--surface));
  box-shadow: 0 0 0 1px var(--teal), 0 0 20px -4px var(--teal-glow);
}
.wiz-card .wiz-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: color-mix(in oklab, var(--teal) 12%, transparent);
  border: 1px solid color-mix(in oklab, var(--teal) 25%, transparent);
  margin: 0 auto 12px;
  display: grid; place-items: center;
  color: var(--teal); font-family: var(--mono); font-size: 16px; font-weight: 600;
}
.wiz-card h4 { font-size: 14px; color: var(--text); margin-bottom: 4px; }
.wiz-card p { font-size: 12px; color: var(--text-3); margin: 0; line-height: 1.45; }
.wiz-card .wiz-from { display: block; margin-top: 10px; font-family: var(--mono); font-size: 11px; color: var(--teal); }
.wiz-tier { padding: 18px 16px; position: relative; }
.wiz-tier .tier-name { font-size: 13px; font-weight: 600; color: var(--text); }
.wiz-tier .tier-price { font-family: var(--mono); font-size: 22px; color: var(--text); margin: 6px 0 12px; }
.wiz-tier .tier-feats { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 12px; color: var(--text-2); text-align: left; }
.wiz-tier .tier-feats li { padding-left: 14px; position: relative; }
.wiz-tier .tier-feats li::before { content: "·"; position: absolute; left: 4px; color: var(--teal); font-weight: 700; }
.wiz-tier .tier-pop {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--teal); color: #07251F;
  font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 999px;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.wiz-row {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 10px; padding: 16px 18px;
}
.wiz-row h4 { font-size: 13px; color: var(--text); margin: 0 0 4px; }
.wiz-row p { font-size: 12px; color: var(--text-3); margin: 0; }
.wiz-row-right { display: flex; align-items: center; gap: 14px; }
.wiz-row-price { font-family: var(--mono); font-size: 12px; color: var(--teal); }
.wiz-toggle {
  width: 38px; height: 22px; border-radius: 999px;
  background: var(--border-2); position: relative; cursor: pointer;
  transition: background .15s; border: 0; padding: 0;
}
.wiz-toggle::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--text); transition: transform .15s;
}
.wiz-toggle.on { background: var(--teal); }
.wiz-toggle.on::after { transform: translateX(16px); background: #07251F; }
.wiz-summary {
  max-width: 520px; margin: 0 auto;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 12px; padding: 24px;
}
.wiz-summary-line { display: flex; justify-content: space-between; font-size: 13px; padding: 6px 0; }
.wiz-summary-line .lbl { color: var(--text-2); }
.wiz-summary-line .val { color: var(--text); font-family: var(--mono); }
.wiz-summary-total {
  margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--border);
  display: flex; align-items: baseline; justify-content: space-between;
}
.wiz-summary-total .lbl { font-size: 14px; color: var(--text); font-weight: 600; }
.wiz-summary-total .val { font-family: var(--mono); font-size: 26px; color: var(--text); }
.wiz-summary-total .per { font-size: 12px; color: var(--text-3); margin-left: 4px; }
.wiz-savings { text-align: right; margin-top: 4px; font-family: var(--mono); font-size: 11px; color: var(--green); }
.wiz-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 24px; max-width: 760px; margin-left: auto; margin-right: auto; }
.wiz-nav .wiz-back, .wiz-nav .wiz-reset {
  background: transparent; border: 0; color: var(--text-3); cursor: pointer;
  font-family: var(--sans); font-size: 12px; padding: 6px 10px;
}
.wiz-nav .wiz-back:hover, .wiz-nav .wiz-reset:hover { color: var(--text); }
.wiz-nav .wiz-next:disabled { opacity: 0.35; cursor: not-allowed; }
.wiz-bundle-note {
  text-align: center; font-family: var(--mono); font-size: 11.5px; color: var(--teal);
  padding: 10px 14px; background: color-mix(in oklab, var(--teal) 6%, transparent);
  border: 1px solid color-mix(in oklab, var(--teal) 20%, transparent);
  border-radius: 8px; margin-top: 4px;
}

@media (max-width: 720px) {
  .pricing.pricing-4 { grid-template-columns: repeat(2, 1fr) !important; }
  .wizard-grid-3 { grid-template-columns: 1fr; }
  .wizard-grid-2 { grid-template-columns: 1fr; }
}
.plan {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 26px 24px;
  display: flex; flex-direction: column;
}
.plan.featured {
  background: var(--surface-2);
  border-color: color-mix(in oklab, var(--teal) 35%, var(--border-strong));
  position: relative;
}
.plan.featured::before {
  content: ""; position: absolute; inset: 0;
  border-radius: 14px;
  background: radial-gradient(400px 120px at 0% 0%, var(--teal-glow) 0%, transparent 60%);
  pointer-events: none;
}
.plan .plan-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.plan .plan-name { font-size: 15px; font-weight: 600; }
.plan .price { font-family: var(--mono); font-size: 32px; color: var(--text); letter-spacing: -0.01em; font-feature-settings: "tnum"; }
.plan .price .per { font-size: 12px; color: var(--text-3); margin-left: 2px; }
.plan .price-note { font-family: var(--mono); font-size: 11px; color: var(--text-3); margin-top: 6px; }
.plan ul.feats {
  list-style: none; padding: 0; margin: 20px 0 22px; display: grid; gap: 8px;
  border-top: 1px solid var(--border); padding-top: 18px;
}
.plan ul.feats li {
  display: grid; grid-template-columns: 14px 1fr; gap: 10px; align-items: center;
  font-size: 13px; color: var(--text-2);
}
.plan ul.feats li::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 6px 0 var(--teal-glow-strong);
  margin-left: 4px;
}
.plan ul.feats li.off::before { background: var(--text-4); box-shadow: none; }
.plan ul.feats li.off { color: var(--text-4); text-decoration: line-through; text-decoration-color: var(--text-4); }
.plan .btn { margin-top: auto; justify-content: center; }

/* Customers */
.logos-strip {
  display: grid; grid-template-columns: repeat(6, 1fr);
  border: 1px solid var(--border); border-radius: 14px;
  background: var(--surface);
  overflow: hidden;
}
.logos-strip .lg {
  display: flex; align-items: center; justify-content: center;
  padding: 24px 12px;
  border-right: 1px solid var(--border);
  color: var(--text-3);
  font-size: 13px; letter-spacing: 0.02em;
  font-weight: 600;
  font-family: var(--mono);
}
.logos-strip .lg:last-child { border-right: none; }

.quote-grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; margin-top: 24px;
}
.quote {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 22px; display: flex; flex-direction: column;
  min-height: 220px;
}
.quote .q { color: var(--text); font-size: 16px; letter-spacing: -0.01em; line-height: 1.45; }
.quote .q::before { content: "“"; color: var(--teal); margin-right: 2px; }
.quote .attr { margin-top: auto; display: flex; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px dashed var(--border); }
.quote .avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--surface-3), var(--bg-2));
  border: 1px solid var(--border-2);
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 11px; color: var(--text-2);
}
.quote .who .name { font-size: 13px; color: var(--text); }
.quote .who .role { font-size: 11.5px; color: var(--text-3); font-family: var(--mono); }
.quote.stat-card { background: var(--surface-2); }
.quote.stat-card .big { font-family: var(--mono); font-size: 46px; color: var(--text); letter-spacing: -0.02em; }
.quote.stat-card .lbl { margin-top: 10px; font-size: 13px; color: var(--text-2); max-width: 28ch; }
.quote.stat-card .sub { margin-top: auto; font-family: var(--mono); font-size: 11px; color: var(--text-3); }

/* Docs teaser */
.docs-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; }
.code-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  font-family: var(--mono); font-size: 12.5px;
}
.code-card .tab-row { display: flex; align-items: center; gap: 0; border-bottom: 1px solid var(--border); background: var(--bg-2); }
.code-card .tab {
  padding: 10px 14px; font-size: 11.5px; color: var(--text-3);
  border-right: 1px solid var(--border); cursor: default;
}
.code-card .tab.active { color: var(--text); background: var(--surface-2); position: relative; }
.code-card .tab.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--teal); }
.code-card .tab-spacer { flex: 1; border-right: none; }
.code-card pre { margin: 0; padding: 18px 20px; color: var(--text-2); line-height: 1.6; white-space: pre; overflow-x: auto; }
.code-card .k { color: var(--purple); }
.code-card .s { color: var(--green); }
.code-card .c { color: var(--text-4); }
.code-card .fn { color: var(--teal); }
.code-card .n { color: var(--blue); }
.code-card .o { color: var(--text-3); }

.changelog {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 18px 20px;
}
.changelog .row {
  display: grid; grid-template-columns: 90px auto 1fr; gap: 10px; align-items: center;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 13px; color: var(--text-2);
}
.changelog .row:last-child { border-bottom: none; }
.changelog .date { font-family: var(--mono); font-size: 11px; color: var(--text-4); }

/* CTA footer section */
.cta-section {
  position: relative;
  padding: 110px 0 120px;
  border-top: 1px solid var(--border);
  overflow: hidden;
  text-align: center;
}
.cta-section::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 220px at 50% 0%, var(--teal-glow) 0%, transparent 70%);
  pointer-events: none;
}
.cta-section h2 { font-size: 44px; letter-spacing: -0.024em; }
.cta-section .mono-sub { display: block; font-family: var(--mono); font-size: 12.5px; color: var(--text-3); margin-top: 14px; }
.cta-section .cta-row { display: inline-flex; gap: 10px; margin-top: 28px; flex-wrap: wrap; justify-content: center; }
.cta-section .btn { white-space: nowrap; }

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 28px;
  background: var(--bg-2);
}
.footer-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr)); gap: 24px; }
.footer h5 { font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-4); font-weight: 500; margin: 0 0 10px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer a { color: var(--text-2); text-decoration: none; font-size: 13px; }
.footer a:hover { color: var(--text); }
.footer .foot-brand p { color: var(--text-3); font-size: 12.5px; max-width: 34ch; margin-top: 10px; }
.footer .foot-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--border);
  font-family: var(--mono); font-size: 11px; color: var(--text-4);
}

/* Utilities */
.hide-lg { display: none; }
@media (max-width: 1280px) {
  .nav-status { display: none; }
  .nav-sep { display: none; }
}
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .modules, .pricing, .frameworks { grid-template-columns: 1fr 1fr; }
  .coverage { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: 1fr 1fr; }
  .stats-strip { grid-template-columns: 1fr 1fr; }
  .docs-grid { grid-template-columns: 1fr; }
  .quote-grid { grid-template-columns: 1fr 1fr; }
  .logos-strip { grid-template-columns: 1fr 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 44px; }
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .nav-mobile { display: block; }
}
@media (max-width: 720px) {
  .modules, .pricing, .frameworks, .pipeline, .stats-strip, .quote-grid, .logos-strip { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-signin { display: none; }
  .nav-demo .kbd { display: none; }
}

/* Page-specific styles */
.page-hero {
  position: relative;
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(800px 280px at 8% 0%, var(--teal-glow) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero::after {
  /* hairline grid wash, identical rhythm to home hero */
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, transparent 80%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, transparent 80%);
  pointer-events: none;
}
.page-hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 56px; align-items: end; margin-top: 24px;
  position: relative;
}
.page-h1 { font-size: 64px; line-height: 1.02; letter-spacing: -0.028em; font-weight: 600; }
.page-lead { font-size: 16px; color: var(--text-2); line-height: 1.55; max-width: 48ch; text-wrap: pretty; }
.page-hero-side { padding-bottom: 8px; }
.page-hero-strip {
  position: relative; margin-top: 44px; padding-top: 22px;
  border-top: 1px dashed var(--border);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}
.page-hero-strip .ph-cell { display: flex; flex-direction: column; gap: 6px; }
.page-hero-strip .ph-k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; color: var(--text-4); text-transform: uppercase; }
.page-hero-strip .ph-v { font-family: var(--mono); font-size: 18px; color: var(--text); font-feature-settings: "tnum"; letter-spacing: -0.01em; }
.page-hero-strip .ph-s { font-family: var(--mono); font-size: 11px; color: var(--text-3); }
.page-hero-strip:has(.ph-cell:nth-child(3):last-child) {
  grid-template-columns: repeat(3, max-content);
  justify-content: center;
  gap: 72px;
}
@media (max-width: 1080px) { .page-hero-strip { grid-template-columns: 1fr 1fr; gap: 18px; } }

/* Blog — telemetry strip on featured */
.blog-feature .bf-meter {
  margin-top: 22px; display: grid; grid-template-columns: 1fr auto; gap: 16px;
  align-items: center; padding-top: 16px; border-top: 1px dashed var(--border);
  font-family: var(--mono); font-size: 11px; color: var(--text-3); position: relative;
}
.blog-feature .bf-bar { height: 3px; background: var(--bg); border-radius: 2px; overflow: hidden; }
.blog-feature .bf-bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--teal-2)); }

.blog-card .bc-mono { font-family: var(--mono); font-size: 10.5px; color: var(--text-4); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 6px; }

/* Blog */
.blog-feature {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 36px 36px 28px;
  text-decoration: none; color: inherit;
  position: relative; overflow: hidden;
  transition: border-color .15s, background .15s;
}
.blog-feature:hover { border-color: var(--border-2); background: var(--surface-2); }
.blog-feature::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(500px 160px at 0% 0%, var(--teal-glow) 0%, transparent 60%);
  pointer-events: none;
}
.blog-feature-meta { display: flex; align-items: center; gap: 12px; position: relative; }
.blog-feature-foot {
  margin-top: 28px; padding-top: 18px; border-top: 1px dashed var(--border);
  display: flex; align-items: center; gap: 10px; position: relative;
}
.blog-grid {
  margin-top: 28px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px;
}
.blog-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 24px;
  text-decoration: none; color: inherit;
  min-height: 220px;
  transition: border-color .15s, background .15s;
}
.blog-card:hover { border-color: var(--border-2); background: var(--surface-2); }
.blog-card-head { display: flex; align-items: center; gap: 10px; }
.blog-card-foot { margin-top: auto; padding-top: 16px; border-top: 1px dashed var(--border); display: flex; align-items: center; gap: 10px; }

.blog-article { padding-bottom: 80px; }
.blog-byline { display: flex; align-items: center; gap: 12px; margin-top: 32px; padding: 22px 0; border-top: 1px dashed var(--border); border-bottom: 1px dashed var(--border); }
.blog-prose { margin-top: 36px; }
.blog-prose p { font-size: 16px; line-height: 1.65; color: var(--text-2); margin-top: 18px; }
.blog-prose h2 { font-size: 24px; margin-top: 36px; letter-spacing: -0.014em; }
.blog-prose .codeblock {
  margin: 24px 0; padding: 18px 20px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px;
  font-family: var(--mono); font-size: 12.5px; line-height: 1.6;
  color: var(--text-2); white-space: pre; overflow-x: auto;
}
.blog-next { margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--border); }
.blog-next-card {
  display: block; margin-top: 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 22px 24px;
  text-decoration: none; color: inherit;
  transition: border-color .15s, background .15s;
}
.blog-next-card:hover { border-color: var(--border-2); background: var(--surface-2); }

@media (max-width: 1080px) {
  .page-hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .page-h1 { font-size: 44px; }
  .blog-grid { grid-template-columns: 1fr; }
}

/* Annotation positioning helper (hero) */
.anno.a1 { top: 62px; right: -4px; transform: translateX(100%); }
.anno.a2 { top: 210px; right: -4px; transform: translateX(100%); }

/* In-page scroll offset for anchors under sticky nav */
section[id] { scroll-margin-top: 72px; }


/* ─────────────────────────────────────────────────────────
   Compliance product page — Evidence console / Flow / Mapping / Timeline
   ───────────────────────────────────────────────────────── */

/* sidebar tweaks (button el + new variants) */
.console-side .side-eyebrow {
  padding: 4px 14px;
  color: var(--text-4);
  letter-spacing: 0.14em;
}
.console-side button.side-item {
  width: 100%;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.side-item.warn .count { color: var(--amber); }
.side-item.dim { opacity: 0.5; cursor: default; }
.side-item.dim:hover { opacity: 0.6; }

/* evidence table inside console-main */
.ev-table {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
}
.ev-head, .ev-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 2.4fr) minmax(0, 1.4fr) 130px 110px 80px;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  font-size: 12.5px;
}
.ev-head {
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--text-4);
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}
.ev-row + .ev-row { border-top: 1px solid var(--border); }
.ev-row:hover { background: var(--bg-2); }
.ev-row.warn { background: color-mix(in oklab, var(--amber) 6%, transparent); }
.ev-ctl { color: var(--text); font-weight: 500; }
.ev-desc { color: var(--text-2); }
.ev-res, .ev-ev, .ev-t { color: var(--text-3); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-status { font-family: var(--mono); font-size: 11px; text-align: right; }
.ev-status.ok { color: var(--teal); }
.ev-status.warn { color: var(--amber); }

.ev-foot {
  display: flex;
  align-items: center;
  margin-top: 10px;
  padding: 8px 14px;
  font-size: 10.5px;
  color: var(--text-4);
  border: 1px dashed var(--border);
  border-radius: 8px;
  background: var(--bg);
}
.ev-foot span { letter-spacing: 0.04em; }

/* evidence flow — 5 stages with arrows */
.ev-flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  position: relative;
}
.ev-stage {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 18px 20px;
  min-height: 168px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ev-stage:hover { border-color: var(--border-2); }
.ev-stage-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ev-stage-title {
  font-size: 15px;
  color: var(--text);
  letter-spacing: -0.01em;
  font-weight: 500;
  margin-top: 4px;
}
.ev-stage-desc {
  font-size: 12.5px;
  color: var(--text-3);
  line-height: 1.55;
  margin: 0;
}
.ev-stage-arrow {
  position: absolute;
  right: -16px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: var(--teal);
  font-family: var(--mono);
  font-size: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 50%;
  z-index: 2;
}

/* control mapping table */
.ctl-table {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
}
.ctl-head, .ctl-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 2.2fr) minmax(0, 1.4fr) minmax(0, 1.4fr) minmax(0, 1.4fr) 130px;
  gap: 14px;
  padding: 14px 18px;
  align-items: center;
  font-size: 13px;
}
.ctl-head {
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--text-4);
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}
.ctl-row + .ctl-row { border-top: 1px solid var(--border); }
.ctl-row:hover { background: var(--bg-2); }
.ctl-id { color: var(--text); font-weight: 500; }
.ctl-req { color: var(--text-2); line-height: 1.45; }
.ctl-cloud {
  display: flex; align-items: center; gap: 8px;
  color: var(--text-3); font-size: 12px;
  min-width: 0;
}
.ctl-cloud .chip {
  font-family: var(--mono); font-size: 10px;
  padding: 2px 6px; border-radius: 4px; border: 1px solid var(--border-2);
  flex: 0 0 auto;
}
.ctl-cloud .chip.aws { color: var(--aws); border-color: color-mix(in oklab, var(--aws) 30%, var(--border)); }
.ctl-cloud .chip.azure { color: var(--azure); border-color: color-mix(in oklab, var(--azure) 30%, var(--border)); }
.ctl-ev, .ctl-cad { color: var(--text-3); font-size: 11.5px; }

/* audit timeline */
.audit-timeline {
  position: relative;
  display: grid;
  gap: 14px;
  padding-left: 32px;
}
.audit-rail {
  position: absolute;
  left: 11px;
  top: 14px;
  bottom: 14px;
  width: 1px;
  background: linear-gradient(180deg, var(--teal) 0%, var(--teal) 75%, var(--amber) 100%);
  opacity: 0.35;
}
.audit-phase { position: relative; }
.audit-dot {
  position: absolute;
  left: -28px;
  top: 22px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px var(--bg), 0 0 12px 0 var(--teal-glow-strong);
}
.audit-phase:last-child .audit-dot { background: var(--amber); box-shadow: 0 0 0 4px var(--bg), 0 0 12px 0 color-mix(in oklab, var(--amber) 50%, transparent); }
.audit-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 22px;
}
.audit-card:hover { border-color: var(--border-2); }
.audit-head { display: flex; align-items: center; gap: 12px; }
.audit-n { font-size: 11px; color: var(--text-4); letter-spacing: 0.16em; white-space: nowrap; }
.audit-head .micro { white-space: nowrap; }
.ev-stage-head .micro { white-space: nowrap; }
.audit-desc {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.55;
  text-wrap: pretty;
  max-width: 78ch;
}

@media (max-width: 1080px) {
  .ev-flow { grid-template-columns: repeat(2, 1fr); }
  .ev-stage-arrow { display: none; }
  .ev-head, .ev-row { grid-template-columns: 70px minmax(0,1fr) 100px 80px; }
  .ev-head > span:nth-child(4), .ev-head > span:nth-child(6),
  .ev-row > span:nth-child(4), .ev-row > span:nth-child(6) { display: none; }
  .ctl-head, .ctl-row { grid-template-columns: 60px minmax(0,1fr) minmax(0,1fr); }
  .ctl-head > span:nth-child(n+4), .ctl-row > span:nth-child(n+4) { display: none; }
}

/* === Threat: Gated AI architecture === */
.arch-frame {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 12px;
  padding: 14px;
  overflow: hidden;
  margin-bottom: 24px;
}
.arch-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.arch-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.arch-card .arch-card-vis {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg);
}
.arch-card h3 {
  font-size: 17px;
  margin-top: 4px;
}
.arch-card p {
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.55;
  max-width: 52ch;
}
.arch-explainer {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: start;
}
.arch-explainer-text p {
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.65;
  margin-bottom: 14px;
  max-width: 64ch;
}
.arch-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 18px 0;
  display: grid;
  gap: 8px;
}
.arch-bullets li {
  position: relative;
  padding-left: 22px;
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.55;
}
.arch-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 1px;
  background: var(--teal);
  box-shadow: 0 0 6px 0 var(--teal-glow-strong);
}
.cascade-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
}
.cascade-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--text-2);
}
.cascade-body { display: grid; gap: 10px; }
.cascade-stage {
  border: 1px solid var(--border);
  background: var(--bg-2);
  border-radius: 8px;
  padding: 12px 14px;
}
.cs-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.cs-num {
  width: 22px; height: 22px;
  display: inline-grid; place-items: center;
  border-radius: 50%;
  background: color-mix(in oklab, var(--purple) 12%, transparent);
  border: 1px solid color-mix(in oklab, var(--purple) 35%, transparent);
  color: var(--purple);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
}
.cs-name { font-weight: 600; color: var(--text); font-size: 14px; }
.cs-desc {
  color: var(--text-2);
  font-size: 12.5px;
  line-height: 1.5;
  margin: 0;
}
.cs-desc em { color: var(--text); font-style: normal; font-weight: 500; }
.cascade-link {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--text-3);
  padding-left: 14px;
  position: relative;
}
.cascade-link::before {
  content: "↓";
  position: absolute;
  left: 0;
  color: var(--purple);
}
.cascade-foot {
  margin-top: 12px;
  padding: 14px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12.5px;
  color: var(--text-2);
}
.cascade-foot ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}
.cascade-foot li {
  position: relative;
  padding-left: 14px;
  line-height: 1.5;
}
.cascade-foot li::before {
  content: "·";
  position: absolute;
  left: 4px;
  color: var(--teal);
}

/* === Threat: live-feed 2-col pair === */
.feed-pair {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
  align-items: stretch;
}
.feed-pair > .module { height: 100%; }
.feed-side {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.feed-side-head {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}
.feed-side-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
  display: grid;
  gap: 10px;
}
.feed-side-list li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 12.5px;
  color: var(--text-2);
  line-height: 1.5;
}
.fs-tag {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: var(--teal);
  border: 1px solid color-mix(in oklab, var(--teal) 30%, transparent);
  background: color-mix(in oklab, var(--teal) 8%, transparent);
  padding: 2px 6px;
  border-radius: 4px;
  text-align: center;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.feed-side-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 1080px) {
  .arch-grid,
  .arch-explainer,
  .feed-pair {
    grid-template-columns: 1fr;
  }
}

/* Integrations page */
.integ-card { display: flex; flex-direction: column; }
.integ-mark {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--surface-3);
  border: 1px solid var(--border-2);
  flex: 0 0 auto;
}
.integ-caps { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--border); }
.integ-cap-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.integ-cap-list li {
  display: flex; gap: 10px;
  font-size: 13px; color: var(--text-2);
  line-height: 1.5;
}
.integ-cap-list li.dim { color: var(--text-3); }
.integ-check {
  flex: 0 0 auto;
  font-family: var(--mono); font-size: 12px;
  width: 16px; height: 16px;
  display: grid; place-items: center;
  color: var(--teal);
  margin-top: 1px;
}
.integ-cap-list li.dim .integ-check { color: var(--text-3); }
.integ-foot { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }

.integ-cta {
  display: grid; grid-template-columns: 1.2fr 0.8fr;
  gap: 56px; align-items: start;
  padding: 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.integ-cta-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.integ-cta-side { padding-left: 32px; border-left: 1px dashed var(--border); }
.integ-roadmap-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.integ-roadmap-list li {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 11px 0; border-bottom: 1px dashed var(--border);
  font-size: 13.5px;
}
.integ-roadmap-list li:last-child { border-bottom: none; }
.ir-name { color: var(--text); }
.ir-status { font-size: 10.5px; color: var(--text-3); letter-spacing: 0.06em; }

@media (max-width: 1080px) {
  .integ-cta { grid-template-columns: 1fr; gap: 32px; padding: 28px; }
  .integ-cta-side { padding-left: 0; border-left: none; padding-top: 24px; border-top: 1px dashed var(--border); }
}

/* Table scroll wrapper — clips rounded corners on desktop, scrolls on mobile */
.tbl-wrap { overflow: hidden; }

/* ─────────────────────────────────────────────────────────
   Mobile diagram optimisations — keep wide visuals legible
   ───────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  /* SVG diagrams: scroll horizontally, keep native size for readable text */
  .cov-diagram,
  .arch-frame,
  .arch-card .arch-card-vis {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .cov-diagram { padding: 16px; }
  .cov-diagram > svg,
  .arch-card .arch-card-vis > svg {
    min-width: 580px;
  }
  .arch-frame > svg {
    min-width: 980px;
  }
  /* Evidence flow: 5 cards in a single column on small screens */
  .ev-flow { grid-template-columns: 1fr; gap: 10px; }
  .ev-stage { min-height: 0; padding: 16px; }

  /* Console diagrams (HeroConsole, EvidenceConsole): stack body */
  .console { min-height: 0; }
  .console-bar { font-size: 10.5px; gap: 8px; padding: 8px 12px; flex-wrap: wrap; }
  .console-bar .right { gap: 8px; }
  .console-body {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .console-side {
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding: 10px 12px;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 6px;
    scrollbar-width: thin;
  }
  .console-side .side-group,
  .console-side .side-eyebrow { display: none; }
  .console-side .side-item,
  .console-side button.side-item {
    flex: 0 0 auto;
    width: auto;
    padding: 5px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 11.5px;
    background: var(--surface);
    white-space: nowrap;
  }
  .console-side .side-item .count { margin-left: 6px; }
  .console-side .side-item.active {
    background: color-mix(in oklab, var(--teal) 10%, transparent);
    border-color: color-mix(in oklab, var(--teal) 45%, var(--border));
    color: var(--text);
  }
  .console-side .side-item.active::before { display: none; }
  .console-main { padding: 12px; }
  .console-filters { flex-wrap: wrap; gap: 6px; }

  /* Tables: scroll horizontally rather than crush */
  .tbl-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 14px;
  }
  .tbl-wrap > .tbl { min-width: 560px; }
  .ev-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .ev-head, .ev-row {
    grid-template-columns: 80px minmax(220px, 1.6fr) 100px 90px;
    min-width: 540px;
    gap: 10px;
    padding: 10px 12px;
  }
  /* override the 1080px column-hiding so we keep CONTROL, REQUIREMENT, RESOURCE, EVIDENCE */
  .ev-head > span:nth-child(4),
  .ev-row > span:nth-child(4) { display: block; }
  .ev-head > span:nth-child(n+5),
  .ev-row > span:nth-child(n+5) { display: none; }
  .console-main .tbl thead th,
  .console-main .tbl tbody td { white-space: nowrap; }

  /* Control mapping table: scroll the whole table to keep headers + rows aligned */
  .ctl-table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .ctl-head, .ctl-row {
    grid-template-columns: 70px minmax(180px, 1.6fr) minmax(120px, 1fr);
    min-width: 480px;
  }
  .ctl-head > span:nth-child(n+4),
  .ctl-row > span:nth-child(n+4) { display: none; }
}

/* Legal pages (privacy / terms / disclosure) */
.legal-wrap {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.legal-block { scroll-margin-top: 96px; }
.legal-block .rail-title { margin-bottom: 12px; }
.legal-h {
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
}
.legal-p {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 14px;
  max-width: 68ch;
}
.legal-p:last-child { margin-bottom: 0; }
.legal-p a, .legal-contact a {
  color: var(--teal);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in oklab, var(--teal) 40%, transparent);
  transition: border-color .15s ease;
}
.legal-p a:hover, .legal-contact a:hover {
  border-bottom-color: var(--teal);
}
.legal-list {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.legal-list li {
  position: relative;
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.65;
  padding-left: 22px;
}
.legal-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 10px;
  height: 1px;
  background: var(--teal);
  box-shadow: 0 0 6px 0 var(--teal-glow-strong);
}
.legal-contact {
  padding-top: 32px;
  border-top: 1px dashed var(--border);
}
@media (max-width: 720px) {
  .legal-wrap { gap: 44px; }
  .legal-h { font-size: 22px; }
  .legal-p { font-size: 14.5px; }
}

/* ===== Contact page ===== */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.contact-form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.contact-form-head {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, color-mix(in oklab, var(--teal) 5%, transparent) 0%, transparent 100%);
  font-family: var(--mono); font-size: 12px;
}
.contact-form-head .kbd { font-size: 10px; }
.contact-form { padding: 22px 24px 24px; position: relative; }
.contact-form .cf-row { margin-top: 14px; }
.contact-form .cf-row:first-child { margin-top: 0; }
.contact-form .cf-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-form .cf-label {
  display: block;
  color: var(--text-3); font-size: 11px;
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 8px;
}
.contact-form .cf-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.contact-form .cf-pills .pill { padding: 5px 10px; font-size: 10px; }
.contact-form textarea {
  font-family: var(--sans);
  line-height: 1.55;
  min-height: 140px;
}
.contact-form .cf-error {
  margin-top: 14px; padding: 10px 12px;
  border: 1px solid color-mix(in oklab, var(--red) 35%, var(--border));
  background: color-mix(in oklab, var(--red) 8%, transparent);
  border-radius: 6px; color: var(--red); font-size: 12.5px;
}
.contact-form .cf-actions {
  margin-top: 22px; padding-top: 18px;
  border-top: 1px dashed var(--border);
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
}

.contact-side {
  display: flex; flex-direction: column; gap: 14px;
}
.contact-side-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
}
.contact-side-block .micro { display: block; margin-bottom: 10px; letter-spacing: 0.1em; }
.contact-side .cs-h {
  font-size: 17px; color: var(--text); font-weight: 600; letter-spacing: -0.01em;
}
.contact-side .cs-sub { color: var(--text-2); font-size: 13.5px; margin-top: 4px; }
.contact-side .cs-meta {
  font-size: 11px; color: var(--text-4);
  margin-top: 10px; padding-top: 10px;
  border-top: 1px dashed var(--border);
  letter-spacing: 0.04em;
}
.contact-side .cs-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.contact-side .cs-list li {
  display: grid; grid-template-columns: 72px minmax(0, 1fr);
  align-items: baseline; gap: 12px;
}
.contact-side .cs-k {
  font-size: 10.5px; color: var(--text-4);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.contact-side .cs-v {
  font-size: 12.5px; color: var(--text-2);
  text-decoration: none;
  word-break: break-all;
}
.contact-side a.cs-v:hover { color: var(--teal); }
.contact-side .cs-linklike {
  background: transparent; border: 0; padding: 0; cursor: pointer;
  color: var(--text-2); text-align: left;
}
.contact-side .cs-linklike:hover { color: var(--teal); }
.contact-side .cs-hours {
  display: flex; flex-direction: column; gap: 8px;
}
.contact-side .cs-hours-row {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 12.5px; color: var(--text-2);
}
.contact-side .cs-hours-row .cs-v { color: var(--text); }
.contact-side .cs-hours-row.dim { color: var(--text-4); }
.contact-side .cs-hours-row.dim .mono { color: var(--text-4); }

.contact-map {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  height: 460px;
}
.contact-map-frame {
  width: 100%; height: 100%;
  border: 0;
  display: block;
  filter: invert(1) hue-rotate(180deg) brightness(0.78) contrast(0.92) saturate(0.55);
}
.contact-map-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, color-mix(in oklab, var(--teal) 8%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in oklab, var(--teal) 8%, transparent) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.18;
  mix-blend-mode: screen;
}
.contact-map-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 50% at 30% 100%, color-mix(in oklab, var(--teal) 18%, transparent) 0%, transparent 70%),
    linear-gradient(180deg, rgba(10,16,20,0.45) 0%, rgba(10,16,20,0) 25%, rgba(10,16,20,0) 70%, rgba(10,16,20,0.65) 100%);
}
.contact-map-overlay {
  position: absolute;
  left: 20px; bottom: 20px;
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px;
  background: color-mix(in oklab, var(--surface-2) 88%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  min-width: 240px;
  box-shadow: 0 12px 40px -16px rgba(0,0,0,0.6);
}
.contact-map-overlay .dot { margin-top: 4px; }
.contact-map-overlay .cm-h {
  font-size: 15px; color: var(--text); font-weight: 600;
  letter-spacing: -0.01em; margin-top: 4px;
}
.contact-map-overlay .cm-sub {
  font-size: 11.5px; color: var(--text-3); margin-top: 2px;
}
.contact-map-meta {
  position: absolute;
  right: 16px; top: 14px;
  display: inline-flex; gap: 10px;
  padding: 6px 10px;
  background: color-mix(in oklab, var(--surface-2) 85%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 10.5px; color: var(--text-3);
  letter-spacing: 0.04em;
}
.contact-map-meta .sep { color: var(--text-4); }

@media (max-width: 1080px) {
  .contact-grid { grid-template-columns: 1fr; gap: 18px; }
  .contact-form .cf-row-2 { grid-template-columns: 1fr; }
  .contact-map { height: 380px; }
  .contact-map-meta { display: none; }
}
