/* ============================================================================
   PermitGrid — design system
   AI-native permit operations. Cartographic "grid ops" aesthetic:
   grid-navy graphite base, electric iris indigo, map-cyan grid lines.
   Green / amber / red reserved strictly for permit status.
   Sora (display) · Inter (body) · JetBrains Mono (data / coordinates / IDs)
   ========================================================================== */

:root {
  /* Grid navy ink (matched to the PermitGrid logo) */
  --ink: #06143c;
  --ink-900: #030b26;
  --ink-800: #0a2150;
  --ink-700: #123064;
  --ink-600: #1d3e78;

  /* Brand azure blue (primary brand / CTA) — from the logo */
  --iris: #006ae4;
  --iris-600: #0056c8;
  --iris-700: #0a47a0;
  --iris-400: #3e8df4;
  --iris-300: #86b7f9;
  --iris-050: #e7f0fe;

  /* Map cyan (grid lines / data / secondary) */
  --cyan: #22d3ee;
  --cyan-600: #0891b2;
  --cyan-700: #0e7490;
  --cyan-050: #e3fbff;

  /* Status (permit pipeline only) */
  --green: #16a34a;
  --green-bright: #22c55e;
  --green-050: #e7f7ee;
  --amber: #f59e0b;
  --amber-600: #d97706;
  --amber-050: #fef3da;
  --red: #ef4444;
  --red-600: #dc2626;
  --red-050: #fdecec;

  /* Neutrals */
  --white: #ffffff;
  --paper: #f5f7fc;
  --paper-2: #eaeff9;
  --line: #e4e9f3;
  --line-2: #d3dbec;
  --slate: #55627c;
  --slate-2: #7c89a6;
  --text: #06143c;

  /* On-dark */
  --d-text: #e9edf9;
  --d-muted: #98a6c6;
  --d-line: rgba(255, 255, 255, 0.1);
  --d-card: rgba(255, 255, 255, 0.045);

  /* Type */
  --font-display: "Sora", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Radii + shadow */
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --r-xl: 26px;
  --shadow-sm: 0 1px 2px rgba(11, 16, 32, 0.06), 0 2px 8px rgba(11, 16, 32, 0.05);
  --shadow: 0 12px 30px rgba(11, 16, 32, 0.09), 0 2px 8px rgba(11, 16, 32, 0.05);
  --shadow-lg: 0 30px 70px rgba(11, 16, 32, 0.18), 0 8px 24px rgba(11, 16, 32, 0.08);
  --shadow-iris: 0 16px 40px rgba(0, 106, 228, 0.32);

  --wrap: 1200px;
  --nav-h: 66px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  color: var(--ink);
}
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
svg { display: block; }
/* Global default icon size — scoped `.ctx .ic` rules override via specificity. */
svg.ic { width: 18px; height: 18px; flex: none; }
::selection { background: var(--iris); color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-tight { max-width: 940px; }
section { position: relative; }

/* ---------- Utility ---------- */
.mono { font-family: var(--font-mono); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--iris-600);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow.on-dark { color: var(--iris-300); }
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: currentColor;
  opacity: 0.6;
}
.section-head { max-width: 730px; margin: 0 auto 52px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head h2 { font-size: clamp(28px, 4vw, 44px); margin: 16px 0 14px; }
.section-head p { font-size: 18px; color: var(--slate); margin: 0; }
.text-iris { color: var(--iris-600); }
.text-cyan { color: var(--cyan-700); }
.grad-text {
  background: linear-gradient(100deg, var(--iris) 5%, var(--cyan) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  padding: 13px 22px;
  border-radius: var(--r);
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease,
    border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
}
.btn:active { transform: translateY(1px); }
.btn .ic { width: 18px; height: 18px; }
.btn-primary {
  background: var(--iris);
  color: #fff;
  box-shadow: var(--shadow-iris);
}
.btn-primary:hover { background: var(--iris-600); transform: translateY(-2px); box-shadow: 0 20px 46px rgba(0, 106, 228, 0.4); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-700); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); background: var(--paper); }
.btn-ghost.on-dark { color: #fff; border-color: rgba(255, 255, 255, 0.22); }
.btn-ghost.on-dark:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.5); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: var(--r-sm); }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-block { width: 100%; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px 6px 10px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  background: var(--iris-050);
  color: var(--iris-700);
  border: 1px solid rgba(0, 106, 228, 0.2);
}
.pill .ic { width: 15px; height: 15px; }
.pill.on-dark {
  background: rgba(0, 106, 228, 0.14);
  border-color: rgba(62, 141, 244, 0.35);
  color: var(--iris-300);
}
.pill.dot::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green-bright);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
}

/* ---------- Status chips (permit semantics) ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.01em;
  padding: 4px 10px; border-radius: 100px;
  font-family: var(--font-mono);
}
.chip .dt { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip.green { background: var(--green-050); color: var(--green); }
.chip.amber { background: var(--amber-050); color: var(--amber-600); }
.chip.red { background: var(--red-050); color: var(--red-600); }
.chip.iris { background: var(--iris-050); color: var(--iris-700); }
.chip.cyan { background: var(--cyan-050); color: var(--cyan-700); }
.chip.slate { background: var(--paper-2); color: var(--slate); }

/* ============================================================================
   NAV
   ========================================================================== */
.kicker-band {
  background: var(--ink);
  color: var(--d-muted);
  font-size: 13px;
  text-align: center;
  padding: 8px 16px;
  letter-spacing: 0.01em;
}
.kicker-band b { color: var(--iris-300); font-weight: 600; }

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.03em; color: var(--ink); }
.brand .mark { width: 34px; height: 34px; flex: none; }
.brand span b { font-weight: 700; color: var(--iris-600); }
/* Exact brand logo image (full lockup). Chip = white badge for dark surfaces. */
.brand-img { height: 34px; width: auto; display: block; }
.brand-chip { display: inline-flex; align-items: center; background: #fff; border-radius: 10px; padding: 7px 12px; box-shadow: 0 2px 12px rgba(3, 11, 38, 0.16); }
.brand-chip .brand-img { height: 26px; }
.footer .brand-chip { box-shadow: none; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links > a, .has-dropdown > a {
  padding: 8px 14px; font-size: 15px; font-weight: 500; color: var(--ink);
  border-radius: var(--r-sm); display: inline-flex; align-items: center; gap: 5px;
  transition: color 0.15s, background 0.15s;
}
.nav-links > a:hover, .has-dropdown > a:hover { color: var(--iris-600); background: var(--paper); }
.nav-links .chev { width: 15px; height: 15px; opacity: 0.6; transition: transform 0.2s; }
.has-dropdown { position: relative; }
.has-dropdown:hover .chev { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; width: 320px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); padding: 8px; opacity: 0; visibility: hidden;
  transform: translateY(8px); transition: all 0.2s ease;
}
.has-dropdown:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: flex; gap: 12px; padding: 11px 12px; border-radius: var(--r); transition: background 0.15s; }
.dropdown a:hover { background: var(--paper); }
.dropdown .di { width: 38px; height: 38px; flex: none; border-radius: 10px; background: var(--iris-050); color: var(--iris-600); display: grid; place-items: center; }
.dropdown .di .ic { width: 19px; height: 19px; }
.dropdown a > span:last-child { display: flex; flex-direction: column; }
.dropdown a b { font-size: 14px; color: var(--ink); }
.dropdown a b + span { font-size: 12.5px; color: var(--slate-2); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line-2); background: #fff; border-radius: var(--r-sm); color: var(--ink); align-items: center; justify-content: center; }
.nav-toggle .ic { width: 22px; height: 22px; }
.nav-mobile-cta { display: none; }

/* ============================================================================
   HERO
   ========================================================================== */
.hero { position: relative; overflow: hidden; background: var(--white); padding: 60px 0 40px; }
.hero-grid-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 106, 228, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 106, 228, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 70% 30%, #000, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 70% 30%, #000, transparent 72%);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.02fr 1fr; gap: 54px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5.1vw, 60px); letter-spacing: -0.035em; margin: 20px 0 20px; }
.hero h1 .grad-text { display: inline; }
.hero-sub { font-size: clamp(17px, 2.1vw, 20px); color: var(--slate); max-width: 540px; margin: 0 0 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-trust { margin-top: 30px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; color: var(--slate-2); font-size: 13.5px; }
.hero-trust .av { display: flex; }
.hero-trust .av img { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff; object-fit: cover; margin-left: -10px; box-shadow: var(--shadow-sm); }
.hero-trust .av img:first-child { margin-left: 0; }
.hero-trust b { color: var(--ink); }
.hero-stars { color: var(--amber); display: inline-flex; }
.hero-stars .ic { width: 15px; height: 15px; }

/* Hero map panel */
.hero-visual { position: relative; }
.map-panel {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  background: var(--ink); border: 1px solid var(--ink-600);
  box-shadow: var(--shadow-lg);
}
.map-panel-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 16px; border-bottom: 1px solid var(--d-line);
  background: linear-gradient(180deg, rgba(255,255,255,.04), transparent);
}
.map-panel-top .dots { display: flex; gap: 6px; }
.map-panel-top .dots i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.map-panel-top .lbl { font-family: var(--font-mono); font-size: 11.5px; color: var(--d-muted); letter-spacing: 0.02em; }
.map-panel .map-svg { width: 100%; height: auto; display: block; }
.map-float {
  position: absolute; background: #fff; border-radius: var(--r); box-shadow: var(--shadow-lg);
  padding: 11px 13px; display: flex; gap: 10px; align-items: center; border: 1px solid var(--line);
}
.map-float .mf-ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.map-float .mf-ic .ic { width: 18px; height: 18px; }
.map-float .mf-t { font-size: 12px; color: var(--slate); line-height: 1.3; }
.map-float .mf-t b { display: block; font-size: 14px; color: var(--ink); font-family: var(--font-display); }
.map-float.a { top: 16%; left: -28px; }
.map-float.b { bottom: 14%; right: -24px; }
@media (max-width: 560px) { .map-float { display: none; } }

/* Marquee logo strip */
.trust-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); padding: 22px 0; }
.trust-strip .wrap { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.trust-strip .tl { font-size: 13px; color: var(--slate-2); font-weight: 500; white-space: nowrap; }
.trust-logos { display: flex; align-items: center; gap: 34px; flex-wrap: wrap; }
.trust-logos .lg { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--slate); letter-spacing: -0.02em; opacity: 0.8; }
.trust-logos .lg .ic { width: 20px; height: 20px; color: var(--slate-2); }

/* ============================================================================
   SECTIONS / cards
   ========================================================================== */
.section { padding: 84px 0; }
.section.pad-sm { padding: 60px 0; }
.section.dark { background: var(--ink); color: var(--d-text); }
.section.dark h2, .section.dark h3 { color: #fff; }
.section.dark .section-head p { color: var(--d-muted); }
.section.paper { background: var(--paper); }
.section.grid-dark {
  background:
    radial-gradient(circle at 15% 0%, rgba(0, 106, 228,.16), transparent 42%),
    radial-gradient(circle at 85% 100%, rgba(34,211,238,.1), transparent 45%),
    var(--ink);
}

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.card .card-ic { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; background: var(--iris-050); color: var(--iris-600); margin-bottom: 18px; }
.card .card-ic .ic { width: 23px; height: 23px; }
.card h3 { font-size: 20px; margin-bottom: 9px; }
.card p { color: var(--slate); margin: 0; font-size: 15px; }
.card.cyan .card-ic { background: var(--cyan-050); color: var(--cyan-700); }
.card.dark { background: var(--d-card); border-color: var(--d-line); }
.card.dark h3 { color: #fff; }
.card.dark p { color: var(--d-muted); }

/* Bento feature grid */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(150px, auto); gap: 20px; }
.bento .b {
  border: 1px solid var(--d-line); border-radius: var(--r-lg); padding: 26px;
  background: var(--d-card); position: relative; overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.bento .b:hover { border-color: rgba(62, 141, 244,.4); transform: translateY(-2px); }
.bento .b.wide { grid-column: span 3; }
.bento .b.tall { grid-column: span 3; grid-row: span 2; }
.bento .b.third { grid-column: span 2; }
.bento .b.half { grid-column: span 3; }
.bento .b-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(0, 106, 228,.16); color: var(--iris-300); margin-bottom: 16px; }
.bento .b-ic .ic { width: 22px; height: 22px; }
.bento .b h3 { color: #fff; font-size: 19px; margin-bottom: 8px; }
.bento .b p { color: var(--d-muted); font-size: 14.5px; margin: 0; }
.bento .b .tag { font-family: var(--font-mono); font-size: 11px; color: var(--cyan); letter-spacing: 0.08em; text-transform: uppercase; }

/* ============================================================================
   PERMIT PIPELINE (kanban)
   ========================================================================== */
.pipeline { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 1fr); gap: 14px; overflow-x: auto; padding: 4px 2px 14px; }
.pipe-col { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px; min-width: 210px; }
.pipe-col.dark { background: var(--d-card); border-color: var(--d-line); }
.pipe-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; padding: 2px 4px; }
.pipe-head .pt { font-family: var(--font-display); font-weight: 600; font-size: 13.5px; display: inline-flex; align-items: center; gap: 8px; }
.pipe-head .pt .sq { width: 9px; height: 9px; border-radius: 3px; }
.pipe-head .ct { font-family: var(--font-mono); font-size: 12px; color: var(--slate-2); background: #fff; border: 1px solid var(--line); border-radius: 100px; padding: 1px 8px; }
.pipe-col.dark .pipe-head .ct { background: rgba(255,255,255,.06); border-color: var(--d-line); color: var(--d-muted); }
.pipe-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 12px; margin-bottom: 10px; box-shadow: var(--shadow-sm); transition: transform 0.15s, box-shadow 0.15s; cursor: default; }
.pipe-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.pipe-card:last-child { margin-bottom: 0; }
.pipe-card .pc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; }
.pipe-card .pc-id { font-family: var(--font-mono); font-size: 11px; color: var(--slate-2); }
.pipe-card .pc-title { font-weight: 600; font-size: 14px; color: var(--ink); margin-bottom: 4px; line-height: 1.3; }
.pipe-card .pc-meta { font-size: 12px; color: var(--slate); display: flex; align-items: center; gap: 6px; }
.pipe-card .pc-meta .ic { width: 13px; height: 13px; color: var(--slate-2); }
.pipe-card .pc-bar { height: 4px; border-radius: 100px; background: var(--paper-2); margin-top: 10px; overflow: hidden; }
.pipe-card .pc-bar i { display: block; height: 100%; border-radius: 100px; }

/* ============================================================================
   JURISDICTION CARDS
   ========================================================================== */
.juris-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.juris {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.juris:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.juris-head { padding: 16px 18px; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); }
.juris-head .jn { font-family: var(--font-display); font-weight: 600; font-size: 16.5px; color: var(--ink); display: flex; align-items: center; gap: 7px; }
.juris-head .jn .ic { width: 16px; height: 16px; color: var(--iris-600); }
.juris-head .js { font-size: 12px; color: var(--slate-2); font-family: var(--font-mono); margin-top: 2px; }
.juris-body { padding: 14px 18px 18px; }
.juris-stat { display: flex; align-items: center; justify-content: space-between; padding: 7px 0; font-size: 13.5px; border-bottom: 1px dashed var(--line); }
.juris-stat:last-child { border-bottom: 0; }
.juris-stat .k { color: var(--slate); display: inline-flex; align-items: center; gap: 7px; }
.juris-stat .k .ic { width: 14px; height: 14px; color: var(--slate-2); }
.juris-stat .v { font-weight: 600; color: var(--ink); font-family: var(--font-mono); font-size: 13px; }
.juris-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.juris-tags .t { font-size: 11px; font-weight: 600; color: var(--slate); background: var(--paper); border: 1px solid var(--line); border-radius: 100px; padding: 3px 9px; }

/* ============================================================================
   APPROVAL TIMELINE
   ========================================================================== */
.timeline { position: relative; padding-left: 6px; }
.tl-item { position: relative; padding: 0 0 22px 34px; }
.tl-item::before { content: ""; position: absolute; left: 10px; top: 4px; bottom: -4px; width: 2px; background: var(--line-2); }
.tl-item:last-child::before { display: none; }
.tl-item .tl-dot { position: absolute; left: 3px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--line-2); z-index: 1; }
.tl-item.done .tl-dot { border-color: var(--green); background: var(--green); }
.tl-item.active .tl-dot { border-color: var(--iris); background: #fff; box-shadow: 0 0 0 4px rgba(0, 106, 228,.2); }
.tl-item.done::before { background: var(--green); }
.tl-item .tl-title { font-weight: 600; font-size: 15px; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.tl-item .tl-date { font-family: var(--font-mono); font-size: 12px; color: var(--slate-2); margin-top: 2px; }
.tl-item .tl-desc { font-size: 13.5px; color: var(--slate); margin-top: 4px; }
.tl-item.active .tl-title { color: var(--iris-700); }
.tl-title .ic { width: 15px; height: 15px; color: var(--green); }
.note-item .ref .ic { width: 12px; height: 12px; }

/* ============================================================================
   DOCUMENT CHECKLIST
   ========================================================================== */
.checklist { display: flex; flex-direction: column; gap: 8px; }
.check-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--r); background: #fff;
}
.check-row .cb { width: 22px; height: 22px; border-radius: 6px; flex: none; display: grid; place-items: center; border: 2px solid var(--line-2); color: transparent; }
.check-row .cb .ic { width: 14px; height: 14px; }
.check-row.ok .cb { background: var(--green); border-color: var(--green); color: #fff; }
.check-row.miss .cb { background: var(--red-050); border-color: var(--red); color: var(--red); }
.check-row.miss .cb .ic { width: 13px; height: 13px; }
.check-row .cl { flex: 1; }
.check-row .cl b { display: block; font-size: 14.5px; color: var(--ink); font-weight: 600; }
.check-row .cl span { font-size: 12.5px; color: var(--slate-2); }
.check-row.miss { border-color: rgba(239, 68, 68, 0.35); background: #fff; }

/* ============================================================================
   INSPECTION CALENDAR
   ========================================================================== */
.calendar { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #fff; }
.cal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.cal-head .cm { font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.cal-nav { display: flex; gap: 6px; }
.cal-nav button { width: 30px; height: 30px; border: 1px solid var(--line-2); background: #fff; border-radius: 8px; color: var(--slate); display: grid; place-items: center; }
.cal-nav button:hover { background: var(--paper); color: var(--ink); }
.cal-nav button .ic { width: 16px; height: 16px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-dow { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; color: var(--slate-2); text-align: center; padding: 10px 0 8px; text-transform: uppercase; border-bottom: 1px solid var(--line); }
.cal-cell { min-height: 76px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 6px 7px; position: relative; }
.cal-cell:nth-child(7n) { border-right: 0; }
.cal-cell .cd { font-size: 12px; color: var(--slate); font-family: var(--font-mono); }
.cal-cell.muted { background: var(--paper); }
.cal-cell.muted .cd { color: var(--line-2); }
.cal-cell.today .cd { background: var(--iris); color: #fff; border-radius: 6px; padding: 1px 6px; font-weight: 600; }
.cal-ev { font-size: 10.5px; font-weight: 600; border-radius: 5px; padding: 2px 5px; margin-top: 4px; display: flex; align-items: center; gap: 4px; line-height: 1.25; }
.cal-ev .d { width: 5px; height: 5px; border-radius: 50%; flex: none; }
.cal-ev.green { background: var(--green-050); color: var(--green); }
.cal-ev.amber { background: var(--amber-050); color: var(--amber-600); }
.cal-ev.iris { background: var(--iris-050); color: var(--iris-700); }

/* ============================================================================
   LIVE DEMO
   ========================================================================== */
.demo-wrap { display: grid; grid-template-columns: 380px 1fr; gap: 24px; align-items: start; }
.demo-form {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 24px; box-shadow: var(--shadow); position: sticky; top: 84px;
}
.demo-form h3 { font-size: 18px; margin-bottom: 4px; }
.demo-form .dsub { font-size: 13.5px; color: var(--slate); margin-bottom: 18px; }
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink); margin-bottom: 6px; letter-spacing: 0.01em; }
.field label .req { color: var(--iris-600); }
.field select, .field input[type="text"], .field input[type="email"], .field input[type="password"], .field textarea {
  width: 100%; padding: 11px 13px; font-family: inherit; font-size: 14.5px; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r); transition: border-color 0.15s, box-shadow 0.15s;
}
.field select:focus, .field input[type="text"]:focus, .field input[type="email"]:focus, .field input[type="password"]:focus, .field textarea:focus { outline: none; border-color: var(--iris); box-shadow: 0 0 0 3px rgba(0, 106, 228,.14); background: #fff; }
.doc-picker { display: flex; flex-direction: column; gap: 7px; max-height: 190px; overflow-y: auto; padding: 2px; margin: -2px; }
.doc-opt { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border: 1.5px solid var(--line); border-radius: var(--r); cursor: pointer; transition: all 0.15s; font-size: 13.5px; }
.doc-opt:hover { border-color: var(--line-2); background: var(--paper); }
.doc-opt input { display: none; }
.doc-opt .box { width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--line-2); flex: none; display: grid; place-items: center; color: transparent; transition: all 0.15s; }
.doc-opt .box .ic { width: 13px; height: 13px; }
.doc-opt.on { border-color: var(--iris); background: var(--iris-050); }
.doc-opt.on .box { background: var(--iris); border-color: var(--iris); color: #fff; }
.doc-opt .dl { flex: 1; color: var(--ink); font-weight: 500; }

/* Demo results */
.demo-out { min-height: 400px; }
.demo-empty {
  border: 2px dashed var(--line-2); border-radius: var(--r-xl); padding: 60px 30px; text-align: center;
  color: var(--slate-2); background: var(--paper);
}
.demo-empty .ei { width: 62px; height: 62px; border-radius: 16px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; margin: 0 auto 18px; color: var(--iris-400); }
.demo-empty .ei .ic { width: 30px; height: 30px; }
.demo-empty h3 { color: var(--ink); font-size: 20px; margin-bottom: 8px; }
.demo-empty p { max-width: 380px; margin: 0 auto; font-size: 14.5px; }

.result-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); margin-bottom: 18px; overflow: hidden; }
.result-card .rc-head { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.result-card .rc-head .ic { width: 19px; height: 19px; color: var(--iris-600); }
.result-card .rc-head h4 { margin: 0; font-size: 15.5px; font-family: var(--font-display); }
.result-card .rc-head .badge { margin-left: auto; }
.result-card .rc-body { padding: 20px; }

/* Risk gauge */
.risk-hero { display: grid; grid-template-columns: 190px 1fr; gap: 24px; align-items: center; }
.gauge { position: relative; width: 190px; height: 118px; }
.gauge svg { width: 100%; height: auto; }
.gauge .gv { position: absolute; bottom: 4px; left: 0; right: 0; text-align: center; }
.gauge .gv .num { font-family: var(--font-display); font-weight: 700; font-size: 42px; line-height: 1; color: var(--ink); }
.gauge .gv .lb { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate-2); margin-top: 3px; }
.risk-band { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; padding: 7px 14px; border-radius: 100px; margin-bottom: 10px; }
.risk-band .ic { width: 17px; height: 17px; }
.risk-detail p { font-size: 14px; color: var(--slate); margin: 0 0 12px; }
.risk-factors { display: flex; flex-direction: column; gap: 8px; }
.rf { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.rf .rf-bar { flex: 1; height: 6px; border-radius: 100px; background: var(--paper-2); overflow: hidden; }
.rf .rf-bar i { display: block; height: 100%; border-radius: 100px; }
.rf .rf-lb { width: 130px; color: var(--slate); }
.rf .rf-val { width: 42px; text-align: right; font-family: var(--font-mono); font-size: 12px; color: var(--ink); font-weight: 600; }

/* Resubmission notes */
.note-item { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.note-item:last-child { border-bottom: 0; }
.note-item .nn { width: 26px; height: 26px; border-radius: 8px; background: var(--amber-050); color: var(--amber-600); display: grid; place-items: center; flex: none; font-family: var(--font-mono); font-weight: 700; font-size: 12px; }
.note-item.crit .nn { background: var(--red-050); color: var(--red-600); }
.note-item .nt b { font-size: 14px; color: var(--ink); display: block; margin-bottom: 2px; }
.note-item .nt p { font-size: 13px; color: var(--slate); margin: 0; }
.note-item .nt .ref { font-family: var(--font-mono); font-size: 11px; color: var(--slate-2); margin-top: 4px; display: inline-block; }

/* Email draft */
.email-box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; font-size: 13.5px; color: var(--ink); line-height: 1.7; white-space: pre-wrap; font-family: var(--font-body); max-height: 320px; overflow-y: auto; }
.email-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }

/* ============================================================================
   STATS
   ========================================================================== */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; padding: 10px; }
.stat .sv { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.03em; background: linear-gradient(120deg, var(--iris-400), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .sl { font-size: 14px; color: var(--d-muted); margin-top: 4px; }
.section:not(.dark) .stat .sv { background: linear-gradient(120deg, var(--iris), var(--cyan-600)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section:not(.dark) .stat .sl { color: var(--slate); }

/* ============================================================================
   INDUSTRIES
   ========================================================================== */
.ind-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ind {
  border-radius: var(--r-lg); overflow: hidden; position: relative; min-height: 300px;
  display: flex; align-items: flex-end; color: #fff; border: 1px solid var(--line);
  background: var(--ink);
}
.ind img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; opacity: 0.86; }
.ind::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(11,16,32,.1) 30%, rgba(11,16,32,.92) 100%); }
.ind .ind-in { position: relative; z-index: 2; padding: 20px; }
.ind .ind-in .ic { width: 22px; height: 22px; margin-bottom: 10px; color: var(--iris-300); }
.ind .ind-in h3 { color: #fff; font-size: 18px; margin-bottom: 5px; }
.ind .ind-in p { color: rgba(255,255,255,.78); font-size: 13px; margin: 0; }
.ind { transition: transform 0.2s ease, box-shadow 0.2s ease; cursor: pointer; }
.ind:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.ind-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 11px; font-size: 12.5px; font-weight: 700; color: var(--iris-300); max-height: 0; opacity: 0; transform: translateY(4px); transition: opacity 0.2s ease, transform 0.2s ease, max-height 0.2s ease; overflow: hidden; }
.ind-cta .ic { width: 15px; height: 15px; }
.ind:hover .ind-cta { opacity: 1; transform: translateY(0); max-height: 24px; }

/* ============================================================================
   TESTIMONIALS
   ========================================================================== */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; display: flex; flex-direction: column; }
.quote .qs { color: var(--amber); display: flex; gap: 2px; margin-bottom: 12px; }
.quote .qs .ic { width: 16px; height: 16px; }
.quote p { font-size: 15px; color: var(--ink); line-height: 1.6; flex: 1; }
.quote .qa { display: flex; align-items: center; gap: 11px; margin-top: 16px; }
.quote .qa img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.quote .qa b { display: block; font-size: 14px; color: var(--ink); }
.quote .qa span { font-size: 12.5px; color: var(--slate-2); }

/* ============================================================================
   PRICING
   ========================================================================== */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: 30px 26px;
  display: flex; flex-direction: column; position: relative; transition: transform 0.2s, box-shadow 0.2s;
}
.price:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.price.pop { border: 1.5px solid var(--iris); box-shadow: var(--shadow-iris); }
.price .pop-tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--iris); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 14px; border-radius: 100px; letter-spacing: 0.02em; }
.price .pn { font-family: var(--font-display); font-weight: 600; font-size: 19px; }
.price .pd { font-size: 13.5px; color: var(--slate); margin: 6px 0 18px; min-height: 40px; }
.price .pp { display: flex; align-items: baseline; gap: 4px; margin-bottom: 4px; }
.price .pp .amt { font-family: var(--font-display); font-weight: 700; font-size: 42px; letter-spacing: -0.03em; color: var(--ink); }
.price .pp .per { color: var(--slate-2); font-size: 14px; }
.price .pu { font-size: 12.5px; color: var(--slate-2); margin-bottom: 20px; }
.price .btn { margin-bottom: 22px; }
.price ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.price ul li { display: flex; gap: 10px; font-size: 14px; color: var(--slate); align-items: flex-start; }
.price ul li .ic { width: 18px; height: 18px; color: var(--green); flex: none; margin-top: 1px; }
.price ul li b { color: var(--ink); font-weight: 600; }
.price-toggle { display: inline-flex; align-items: center; gap: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 100px; padding: 5px; margin: 0 auto 40px; }
.price-toggle button { border: none; background: transparent; padding: 8px 18px; border-radius: 100px; font-weight: 600; font-size: 14px; color: var(--slate); }
.price-toggle button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.price-toggle .save { font-size: 11px; color: var(--green); font-weight: 700; }

/* ============================================================================
   FAQ
   ========================================================================== */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 4px; cursor: pointer; font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--ink); }
.faq-q .ic { width: 20px; height: 20px; color: var(--iris-600); flex: none; transition: transform 0.25s; }
.faq-item.open .faq-q .ic { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-a p { padding: 0 4px 22px; color: var(--slate); font-size: 15px; margin: 0; }

/* ============================================================================
   CTA band
   ========================================================================== */
.cta-band { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 60px 50px; text-align: center; color: #fff; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: 0; background:
  radial-gradient(circle at 20% 20%, rgba(0, 106, 228,.6), transparent 45%),
  radial-gradient(circle at 82% 80%, rgba(34,211,238,.42), transparent 48%),
  var(--ink); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: clamp(28px, 4vw, 42px); }
.cta-band p { color: var(--d-text); font-size: 18px; max-width: 560px; margin: 0 auto 26px; }
.cta-band .hero-cta { justify-content: center; }

/* ============================================================================
   FORMS / auth pages
   ========================================================================== */
.auth-shell { min-height: calc(100vh - var(--nav-h)); display: grid; grid-template-columns: 1fr 1fr; }
.auth-visual { position: relative; overflow: hidden; background:
  radial-gradient(circle at 30% 20%, rgba(0, 106, 228,.4), transparent 50%),
  radial-gradient(circle at 80% 90%, rgba(34,211,238,.28), transparent 50%), var(--ink); color: #fff; padding: 60px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-visual .av-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 40px 40px; mask-image: radial-gradient(circle at 50% 40%, #000, transparent 78%); -webkit-mask-image: radial-gradient(circle at 50% 40%, #000, transparent 78%); }
.auth-visual > * { position: relative; z-index: 1; }
.auth-visual h2 { color: #fff; font-size: 30px; max-width: 420px; }
.auth-visual p { color: var(--d-text); font-size: 16px; max-width: 420px; }
.auth-quote { border-left: 3px solid var(--iris-400); padding-left: 16px; }
.auth-quote b { display: block; margin-top: 8px; font-size: 14px; }
.auth-quote span { color: var(--d-muted); font-size: 13px; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h1 { font-size: 27px; margin-bottom: 6px; }
.auth-card .asub { color: var(--slate); margin-bottom: 24px; }
.oauth-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 12px; border: 1.5px solid var(--line-2); background: #fff; border-radius: var(--r); font-weight: 600; font-size: 14.5px; color: var(--ink); transition: background 0.15s, border-color 0.15s; }
.oauth-btn:hover { background: var(--paper); border-color: var(--slate-2); }
.oauth-btn svg { width: 19px; height: 19px; }
.auth-divider { display: flex; align-items: center; gap: 14px; margin: 20px 0; color: var(--slate-2); font-size: 12.5px; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.form-note { font-size: 13px; color: var(--slate); text-align: center; margin-top: 18px; }
.form-note a { color: var(--iris-600); font-weight: 600; }

/* ============================================================================
   DASHBOARD (app)
   ========================================================================== */
.app { display: grid; grid-template-columns: 244px 1fr; min-height: 100vh; background: var(--paper); }
.app-side { background: var(--ink); color: var(--d-text); padding: 18px 14px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.app-side .brand { color: #fff; font-size: 18px; margin-bottom: 22px; padding: 4px 6px; }
.app-side .brand span b { color: var(--iris-300); }
.side-sec { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate-2); padding: 14px 10px 6px; }
.side-link { display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: var(--r); color: var(--d-muted); font-size: 14px; font-weight: 500; margin-bottom: 2px; transition: background 0.15s, color 0.15s; cursor: pointer; }
.side-link .ic { width: 18px; height: 18px; }
.side-link:hover { background: rgba(255,255,255,.05); color: #fff; }
.side-link.on { background: var(--iris); color: #fff; }
.side-link .cnt { margin-left: auto; font-family: var(--font-mono); font-size: 11px; background: rgba(255,255,255,.1); border-radius: 100px; padding: 1px 7px; }
.side-link.on .cnt { background: rgba(255,255,255,.22); }
.side-foot { margin-top: auto; border-top: 1px solid var(--d-line); padding-top: 12px; }
.side-user { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r); }
.side-user img { width: 34px; height: 34px; border-radius: 50%; }
.side-user .su-n { font-size: 13.5px; color: #fff; font-weight: 600; }
.side-user .su-e { font-size: 11.5px; color: var(--slate-2); }

.app-main { padding: 0; overflow: hidden; }
.app-top { background: #fff; border-bottom: 1px solid var(--line); padding: 16px 28px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 20; }
.app-top h1 { font-size: 21px; margin: 0; }
.app-top .at-sub { font-size: 13px; color: var(--slate-2); margin-top: 2px; }
.app-top-actions { display: flex; align-items: center; gap: 10px; }
.app-search { display: flex; align-items: center; gap: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 8px 12px; width: 260px; }
.app-search .ic { width: 16px; height: 16px; color: var(--slate-2); }
.app-search input { border: none; background: transparent; font-family: inherit; font-size: 13.5px; width: 100%; outline: none; color: var(--ink); }
.app-body { padding: 28px; }
.app-view { display: none; }
.app-view.on { display: block; animation: fade 0.3s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 24px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; }
.kpi .ki { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 14px; }
.kpi .ki .ic { width: 20px; height: 20px; }
.kpi .kv { font-family: var(--font-display); font-weight: 700; font-size: 30px; letter-spacing: -0.02em; color: var(--ink); }
.kpi .kl { font-size: 13px; color: var(--slate); margin-top: 2px; }
.kpi .kt { font-size: 12px; margin-top: 8px; display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.kpi .kt .ic { width: 13px; height: 13px; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); margin-bottom: 22px; overflow: hidden; }
.panel-head { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-head h3 { margin: 0; font-size: 16px; display: flex; align-items: center; gap: 9px; }
.panel-head h3 .ic { width: 18px; height: 18px; color: var(--iris-600); }
.panel-head .ph-act { display: flex; gap: 8px; }
.panel-body { padding: 20px; }
.panel-body.pad0 { padding: 0; }

/* Dashboard map */
.dash-map { position: relative; background: var(--ink); border-radius: var(--r-lg); overflow: hidden; }
.dash-map svg { width: 100%; height: auto; display: block; }
.dash-map .dm-legend { position: absolute; bottom: 14px; left: 14px; display: flex; gap: 14px; background: rgba(11,16,32,.7); border: 1px solid var(--d-line); border-radius: var(--r); padding: 8px 12px; backdrop-filter: blur(8px); }
.dash-map .dm-legend .lg { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--d-text); font-family: var(--font-mono); }
.dash-map .dm-legend .lg .d { width: 8px; height: 8px; border-radius: 50%; }
.map-pin { cursor: pointer; transition: transform 0.15s; transform-origin: center; transform-box: fill-box; }
.map-pin:hover { transform: scale(1.25); }

/* Data table */
.dtable { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.dtable th { text-align: left; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate-2); padding: 12px 16px; border-bottom: 1px solid var(--line); font-weight: 600; }
.dtable td { padding: 13px 16px; border-bottom: 1px solid var(--line); color: var(--ink); vertical-align: middle; }
.dtable tr:last-child td { border-bottom: 0; }
.dtable tbody tr { transition: background 0.12s; }
.dtable tbody tr:hover { background: var(--paper); }
.dtable .tt { font-weight: 600; }
.dtable .tid { font-family: var(--font-mono); font-size: 11.5px; color: var(--slate-2); }
.dtable .prog { display: flex; align-items: center; gap: 8px; }
.dtable .prog .bar { width: 70px; height: 5px; border-radius: 100px; background: var(--paper-2); overflow: hidden; }
.dtable .prog .bar i { display: block; height: 100%; border-radius: 100px; background: var(--iris); }

/* mini utilities used in app */
.flex { display: flex; }
.between { justify-content: space-between; }
.items-center { align-items: center; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.grid-2-app { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.order-2 { order: 2; }

/* ============================================================================
   FOOTER
   ========================================================================== */
.footer { background: var(--ink); color: var(--d-muted); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 34px; padding-bottom: 40px; border-bottom: 1px solid var(--d-line); }
.footer .brand { color: #fff; margin-bottom: 14px; }
.footer .fdesc { font-size: 14px; max-width: 320px; line-height: 1.6; }
.footer h5 { color: #fff; font-size: 13px; font-family: var(--font-display); margin-bottom: 14px; letter-spacing: 0.01em; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { font-size: 14px; color: var(--d-muted); transition: color 0.15s; }
.footer ul a:hover { color: var(--iris-300); }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a { display: inline-flex; align-items: center; gap: 9px; height: 38px; padding: 0 15px; border-radius: 10px; border: 1px solid var(--d-line); color: var(--d-text); font-size: 13.5px; font-weight: 600; transition: all 0.15s; }
.footer-social a:hover { background: var(--iris); color: #fff; border-color: var(--iris); }
.footer-social .ic { width: 17px; height: 17px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 26px; font-size: 13px; flex-wrap: wrap; }
.footer-bottom .mono { color: var(--slate-2); }

/* ============================================================================
   MODAL
   ========================================================================== */
.modal-overlay { position: fixed; inset: 0; z-index: 150; background: rgba(11, 16, 32, 0.55); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 20px; animation: fade 0.2s ease; }
.modal { background: #fff; border-radius: var(--r-xl); width: 100%; max-width: 460px; box-shadow: var(--shadow-lg); overflow: hidden; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; font-size: 18px; display: flex; align-items: center; gap: 9px; }
.modal-head h3 .ic { width: 19px; height: 19px; color: var(--iris-600); }
.modal-x { width: 32px; height: 32px; border: 1px solid var(--line-2); background: #fff; border-radius: 8px; display: grid; place-items: center; color: var(--slate); }
.modal-x:hover { background: var(--paper); color: var(--ink); }
.modal-x .ic { width: 17px; height: 17px; }
.modal-body { padding: 22px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--line); background: var(--paper); }

/* ============================================================================
   TOAST / reveal
   ========================================================================== */
.toast-wrap { position: fixed; top: 20px; right: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast { display: flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; padding: 13px 17px; border-radius: var(--r); box-shadow: var(--shadow-lg); font-size: 14px; font-weight: 500; transition: opacity 0.3s, transform 0.3s; max-width: 340px; }
.toast .ic { width: 18px; height: 18px; flex: none; }
.toast.ok .ic { color: var(--green-bright); }
.toast.err .ic { color: var(--red); }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: 0.08s; } .reveal.d2 { transition-delay: 0.16s; } .reveal.d3 { transition-delay: 0.24s; } .reveal.d4 { transition-delay: 0.32s; }

/* spinner */
.spin { width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: rot 0.7s linear infinite; }
.spin.dark { border-color: rgba(0, 106, 228,.25); border-top-color: var(--iris); }
@keyframes rot { to { transform: rotate(360deg); } }

/* ============================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 560px; }
  .demo-wrap { grid-template-columns: 1fr; }
  .demo-form { position: static; }
  .grid-4, .stat-row, .ind-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .juris-grid, .quote-grid, .price-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .bento .b.wide, .bento .b.tall, .bento .b.third, .bento .b.half { grid-column: span 6; grid-row: auto; }
  .app { grid-template-columns: 1fr; }
  .app-side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px; }
  .app-side .side-sec, .app-side .side-foot { display: none; }
  .grid-2-app { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-links { position: fixed; inset: var(--nav-h) 0 auto 0; background: #fff; flex-direction: column; align-items: stretch; padding: 16px; gap: 2px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); transform: translateY(-140%); transition: transform 0.3s ease; z-index: 40; }
  .nav.open .nav-links, #siteNav.open .nav-links { transform: translateY(0); }
  .nav-links > a, .has-dropdown > a { padding: 12px; font-size: 16px; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; width: auto; padding: 4px 0 4px 12px; }
  .has-dropdown:hover .chev { transform: none; }
  .nav-cta .btn-sm { display: none; }
  .nav-mobile-cta { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
  .nav-toggle { display: inline-flex; }
  .grid-3, .grid-2, .grid-4, .stat-row, .ind-grid, .juris-grid, .quote-grid, .price-grid, .kpi-row { grid-template-columns: 1fr; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .risk-hero { grid-template-columns: 1fr; }
  .gauge { margin: 0 auto; }
  .section { padding: 60px 0; }
  .cta-band { padding: 44px 24px; }
  .kpi-row { grid-template-columns: 1fr 1fr; }
}
