
/* PermitSolutions.io — Modern enterprise SaaS / earth-tone warmth */
:root {
  /* Default: Earth */
  --bg: #f6f5f0;
  --bg-elev: #ffffff;
  --bg-sunk: #ecebe4;
  --bg-inv: #1a3a2e;
  --primary: #1a3a2e;
  --primary-hov: #244a3c;
  --accent: #c8732e;
  --accent-soft: #e9a878;
  --text: #2b2a26;
  --text-muted: #6f6b62;
  --text-faint: #a5a097;
  --border: #d9d6cb;
  --border-strong: #b8b3a5;
  --good: #2e7d52;
  --warn: #c8732e;
  --bad: #b94842;
  --shadow-sm: 0 1px 2px rgba(43, 42, 38, 0.04), 0 1px 1px rgba(43, 42, 38, 0.03);
  --shadow-md: 0 4px 12px rgba(43, 42, 38, 0.06), 0 1px 3px rgba(43, 42, 38, 0.04);
  --shadow-lg: 0 24px 48px rgba(43, 42, 38, 0.10), 0 4px 12px rgba(43, 42, 38, 0.05);
  --radius: 6px;
  --radius-lg: 10px;
  --font-sans: "Geist", ui-sans-serif, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

[data-palette="federal"] {
  --bg: #f7f8fa;
  --bg-elev: #ffffff;
  --bg-sunk: #eaecef;
  --bg-inv: #0a1f3d;
  --primary: #0a1f3d;
  --primary-hov: #14305a;
  --accent: #1f6feb;
  --accent-soft: #6ea3f5;
  --text: #0e1626;
  --text-muted: #5b6678;
  --text-faint: #95a0b3;
  --border: #d6dae2;
  --border-strong: #b3bac8;
  --good: #1d7a4d;
  --warn: #b76b1f;
  --bad: #b53d3d;
}

[data-palette="mono"] {
  --bg: #fafafa;
  --bg-elev: #ffffff;
  --bg-sunk: #f0f0ef;
  --bg-inv: #0a0a0a;
  --primary: #0a0a0a;
  --primary-hov: #1f1f1f;
  --accent: #0a0a0a;
  --accent-soft: #4a4a4a;
  --text: #0a0a0a;
  --text-muted: #6a6a68;
  --text-faint: #a8a8a4;
  --border: #d8d8d4;
  --border-strong: #b0b0ac;
  --good: #0a0a0a;
  --warn: #0a0a0a;
  --bad: #0a0a0a;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.005em;
}

.mono { font-family: var(--font-mono); font-feature-settings: "ss01"; }

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; }

/* ---- Layout primitives ---- */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  padding: 96px 0;
  border-top: 1px solid var(--border);
}
.section:first-of-type { border-top: none; }

.section-tight { padding: 72px 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 1px;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
  text-wrap: balance;
}

h1 { font-size: clamp(40px, 5.4vw, 68px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 500; }
h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.1; letter-spacing: -0.025em; }
h3 { font-size: 20px; line-height: 1.3; }
h4 { font-size: 15px; line-height: 1.3; font-weight: 500; }

p { margin: 0; color: var(--text-muted); text-wrap: pretty; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: background 120ms ease, border-color 120ms ease, transform 120ms ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: var(--bg);
  border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-hov); border-color: var(--primary-hov); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--bg-sunk); border-color: var(--border-strong); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15px; }

/* ---- Header ---- */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.015em;
}
.brand-mark {
  width: 24px; height: 24px;
  border-radius: 5px;
  background: var(--primary);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.brand-mark svg { display: block; }
.brand-suffix {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding-left: 10px;
  margin-left: 4px;
  border-left: 1px solid var(--border-strong);
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 120ms;
}
.nav a:hover { color: var(--text); }
.header-cta { display: flex; gap: 8px; align-items: center; }
@media (max-width: 880px) {
  .nav { display: none; }
}

/* ---- Hero ---- */
.hero {
  padding: 120px 0 80px;
  border-top: none;
  position: relative;
}
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-text {
  text-align: left;
}
.hero-text h1 {
  margin-top: 20px;
}
.hero h1 .accent { color: var(--accent); }
.hero-lede {
  margin-top: 24px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 520px;
}
.hero-cta {
  margin-top: 40px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-image img {
  width: 100%;
  max-width: 580px;
  height: auto;
  border-radius: var(--radius-lg);
}
@media (max-width: 980px) {
  .hero { padding: 80px 0 56px; }
  .hero-split { grid-template-columns: 1fr; gap: 40px; }
  .hero-text { text-align: center; }
  .hero-lede { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-image img { max-width: 100%; }
}

/* Hero visual — preview card stack (used in other sections) */
.preview-stack {
  position: relative;
  aspect-ratio: 5 / 4;
  perspective: 1600px;
}
.preview-card {
  position: absolute;
  inset: 0;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.preview-card.back {
  transform: translate(28px, 28px) rotate(2deg);
  inset: 8% 8% 8% 8%;
  opacity: 0.65;
  background: var(--bg-sunk);
}
.preview-card.front {
  transform: rotate(-1deg);
}

/* ---- Metrics strip ---- */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.metric {
  padding: 36px 28px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.metric:last-child { border-right: none; }
.metric-value {
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
}
.metric-value .unit {
  font-size: 18px;
  color: var(--text-muted);
  margin-left: 4px;
  letter-spacing: 0;
}
.metric-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.metric-trend {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
}
.metric-trend .delta { color: var(--good); font-family: var(--font-mono); }
@media (max-width: 880px) {
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2) { border-right: none; }
  .metric:nth-child(1), .metric:nth-child(2) { border-bottom: 1px solid var(--border); }
}

/* ---- Section heads ---- */
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
  align-items: end;
}
@media (max-width: 880px) {
  .section-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 36px; }
}
.section-head h2 { max-width: 580px; }
.section-head p { font-size: 16px; line-height: 1.55; max-width: 460px; }

/* ---- Modules grid ---- */
.modules {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (max-width: 880px) {
  .modules { grid-template-columns: 1fr; }
}
.module {
  background: var(--bg-elev);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 360px;
}
.module-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.module-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.08em;
}
.module h3 { font-size: 22px; letter-spacing: -0.02em; }
.module-desc { font-size: 14px; line-height: 1.55; flex-grow: 1; }
.module-vis {
  height: 160px;
  background: var(--bg-sunk);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}

/* ---- Demo container ---- */
.demo {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.demo-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-sunk);
}
.demo-chrome .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.demo-chrome .url {
  flex-grow: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0;
}
.demo-chrome .url a {
  color: var(--text-muted);
  text-decoration: none;
}
.demo-chrome .url a:hover {
  color: var(--text-default, #1a1a1a);
  text-decoration: underline;
}
.demo-stepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--border);
}
.step-tab {
  text-align: left;
  background: transparent;
  border: none;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-right: 1px solid var(--border);
  position: relative;
  transition: background 120ms;
}
.step-tab:last-child { border-right: none; }
.step-tab .step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.08em;
}
.step-tab .step-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: -0.005em;
}
.step-tab.active { background: var(--bg-elev); }
.step-tab.active .step-name { color: var(--text); }
.step-tab.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--primary);
}
.step-tab.done .step-num::before {
  content: "✓ ";
  color: var(--good);
}
.step-tab:hover:not(.active) { background: color-mix(in oklab, var(--bg-sunk) 50%, transparent); }

.dev-notes {
  background: #fff3cd;
  border: 1px solid #ffecb5;
  border-left: 4px solid #ffc107;
  border-radius: var(--radius, 6px);
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 13px;
  line-height: 1.6;
  color: #664d03;
}
.dev-notes .dev-notes-title {
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: #664d03;
}
.dev-notes ul {
  margin: 6px 0 0;
  padding-left: 18px;
}
.dev-notes ul li {
  margin-bottom: 4px;
}
.dev-notes p {
  margin: 4px 0;
}

.demo-body {
  min-height: 520px;
  padding: 32px;
  background: var(--bg);
}

/* Step 1: Intake form */
.intake-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
}
@media (max-width: 880px) { .intake-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.field input, .field select, .field textarea {
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elev);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 120ms;
}
.field textarea { height: auto; padding: 12px; min-height: 80px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--primary);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-help {
  font-size: 12px;
  color: var(--text-faint);
  font-family: var(--font-mono);
}

.intake-summary {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: fit-content;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border);
  font-size: 13px;
}
.summary-row:last-of-type { border: none; padding-bottom: 0; }
.summary-row .k {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.summary-row .v { font-weight: 500; color: var(--text); text-align: right; }

/* Step 2: GIS Screen */
.gis-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
  height: 100%;
}
@media (max-width: 880px) { .gis-layout { grid-template-columns: 1fr; } }
.gis-map {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  min-height: 440px;
}
.gis-sidebar {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
}
.gis-sidebar-head {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.gis-sidebar-title {
  font-size: 13px;
  font-weight: 500;
}
.layer-list { padding: 8px 0; }
.layer {
  padding: 10px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.layer .swatch { width: 10px; height: 10px; border-radius: 2px; flex-shrink: 0; }
.layer .name { flex-grow: 1; color: var(--text); }
.layer .count { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }
.layer.flag { background: color-mix(in oklab, var(--accent) 8%, transparent); }
.layer.flag .count { color: var(--accent); font-weight: 500; }

.scan-status {
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
}

/* Step 3: Reviewer queue */
.queue-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  height: 100%;
}
@media (max-width: 880px) { .queue-layout { grid-template-columns: 1fr; } }
.queue-side {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  height: fit-content;
}
.queue-stat { padding: 10px 0; border-bottom: 1px dashed var(--border); }
.queue-stat:last-child { border: none; }
.queue-stat .qs-label { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); letter-spacing: 0.05em; text-transform: uppercase; }
.queue-stat .qs-val { font-size: 26px; font-weight: 500; letter-spacing: -0.02em; margin-top: 4px; }

.queue-main {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.queue-row {
  display: grid;
  grid-template-columns: 90px 1fr 130px 110px 110px 40px;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  align-items: center;
  font-size: 13px;
  transition: background 100ms;
}
.queue-row.head {
  background: var(--bg-sunk);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.queue-row:not(.head):hover { background: var(--bg-sunk); cursor: pointer; }
.queue-row:last-child { border-bottom: none; }
.queue-row .case-id { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }
.queue-row .case-name { font-weight: 500; color: var(--text); }
.queue-row.highlight { background: color-mix(in oklab, var(--accent) 6%, transparent); }
.queue-row.highlight:hover { background: color-mix(in oklab, var(--accent) 10%, transparent); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  background: var(--bg-sunk);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.pill.clear { background: color-mix(in oklab, var(--good) 12%, transparent); color: var(--good); border-color: color-mix(in oklab, var(--good) 30%, transparent); }
.pill.flag { background: color-mix(in oklab, var(--accent) 12%, transparent); color: var(--accent); border-color: color-mix(in oklab, var(--accent) 30%, transparent); }
.pill.review { background: color-mix(in oklab, var(--text) 6%, transparent); color: var(--text); border-color: var(--border-strong); }
.pill.dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* Step 4: Admin record */
.record-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 880px) { .record-layout { grid-template-columns: 1fr; } }
.record-panel {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.record-panel-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.doc-list { padding: 8px 0; }
.doc {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}
.doc:last-child { border-bottom: none; }
.doc-icon {
  width: 32px; height: 40px;
  background: var(--bg-sunk);
  border: 1px solid var(--border);
  border-radius: 3px;
  flex-shrink: 0;
  position: relative;
}
.doc-icon::after {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 10px; height: 10px;
  background: var(--bg);
  border-left: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.doc-info { flex-grow: 1; min-width: 0; }
.doc-name { font-size: 13px; font-weight: 500; }
.doc-meta { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }
.doc-size { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }

.timeline-list { padding: 8px 0; }
.tl-item {
  padding: 14px 20px 14px 36px;
  position: relative;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
}
.tl-item:last-child { border-bottom: none; }
.tl-item::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 18px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border-strong);
}
.tl-item.done::before { background: var(--good); }
.tl-item.current::before { background: var(--accent); box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 20%, transparent); }
.tl-item::after {
  content: "";
  position: absolute;
  left: 23px; top: 26px; bottom: -8px;
  width: 2px;
  background: var(--border);
}
.tl-item:last-child::after { display: none; }
.tl-title { font-weight: 500; color: var(--text); }
.tl-meta { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); margin-top: 2px; }

.demo-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-sunk);
}
.demo-footer .status {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ---- Timeline (how it works) ---- */
.how-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
@media (max-width: 880px) { .how-timeline { grid-template-columns: 1fr; } }
.how-step {
  padding: 24px 24px 24px 0;
  border-top: 1px solid var(--border);
  position: relative;
}
.how-step::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px; height: 9px;
  background: var(--primary);
  border-radius: 50%;
}
.how-step .when {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--accent);
  text-transform: uppercase;
}
.how-step h3 { margin-top: 14px; font-size: 18px; }
.how-step p { margin-top: 8px; font-size: 14px; line-height: 1.55; }

/* ---- Security grid ---- */
.security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (max-width: 880px) { .security-grid { grid-template-columns: 1fr; } }
.sec-cell {
  background: var(--bg-elev);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sec-cell .badge {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
}
.sec-cell h4 { font-size: 16px; margin-top: 4px; }
.sec-cell p { font-size: 13px; line-height: 1.55; }

/* ---- Testimonials ---- */
.quotes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 880px) { .quotes { grid-template-columns: 1fr; } }
.quote {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.quote blockquote {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--text);
  text-wrap: pretty;
}
.quote-attrib {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.quote-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg-sunk);
  border: 1px solid var(--border);
  flex-shrink: 0;
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}
.quote-meta .name { font-size: 13px; font-weight: 500; }
.quote-meta .role { font-size: 12px; color: var(--text-muted); font-family: var(--font-mono); }

/* ---- CTA ---- */
.cta {
  background: var(--bg-inv);
  color: var(--bg);
  border-radius: var(--radius-lg);
  padding: 64px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
@media (max-width: 880px) { .cta { grid-template-columns: 1fr; padding: 40px; } }
.cta h2 { color: var(--bg); }
.cta p { color: color-mix(in oklab, var(--bg) 70%, transparent); font-size: 16px; line-height: 1.55; max-width: 460px; }
.cta-form {
  background: color-mix(in oklab, var(--bg) 8%, transparent);
  border: 1px solid color-mix(in oklab, var(--bg) 20%, transparent);
  border-radius: var(--radius);
  padding: 24px;
}
.cta-form .field label { color: color-mix(in oklab, var(--bg) 60%, transparent); }
.cta-form .field input, .cta-form .field select, .cta-form .field textarea {
  background: color-mix(in oklab, var(--bg) 6%, transparent);
  border-color: color-mix(in oklab, var(--bg) 18%, transparent);
  color: var(--bg);
}
.cta-form .field input::placeholder { color: color-mix(in oklab, var(--bg) 35%, transparent); }
.cta-form .btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #1a1208;
  width: 100%;
  justify-content: center;
}
.cta-form .btn-primary:hover { background: var(--accent-soft); border-color: var(--accent-soft); }

/* ---- Footer ---- */
.footer {
  padding: 48px 0 64px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 500;
  margin-bottom: 16px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-faint);
}

/* ---- Misc decorative ---- */
.image-placeholder {
  width: 100%;
  height: 100%;
  background:
    repeating-linear-gradient(
      135deg,
      transparent 0,
      transparent 8px,
      color-mix(in oklab, var(--text) 4%, transparent) 8px,
      color-mix(in oklab, var(--text) 4%, transparent) 9px
    ),
    var(--bg-sunk);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  text-align: center;
  padding: 16px;
}

/* Subtle entrance animation */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 360ms cubic-bezier(0.22, 1, 0.36, 1) both; }

/* Map placeholder */
.map-canvas {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, color-mix(in oklab, var(--primary) 8%, transparent), transparent 50%),
    radial-gradient(circle at 75% 60%, color-mix(in oklab, var(--accent) 6%, transparent), transparent 50%),
    var(--bg-elev);
}
.map-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, color-mix(in oklab, var(--text) 4%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in oklab, var(--text) 4%, transparent) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ---- Step 3: Permits ---- */
.permits-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  align-items: start;
}
@media (max-width: 880px) { .permits-layout { grid-template-columns: 1fr; } }
.permits-rail {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
}
.permits-rail-head {
  padding: 16px 16px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.permit-card {
  text-align: left;
  background: transparent;
  border: none;
  border-top: 1px solid var(--border);
  padding: 14px 16px;
  cursor: pointer;
  transition: background 100ms;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}
.permit-card:hover { background: var(--bg-sunk); }
.permit-card.active { background: color-mix(in oklab, var(--accent) 6%, transparent); }
.permit-card.active::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--accent);
}
.permit-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.perm-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--text-faint);
}
.perm-dot.flag { background: var(--accent); }
.perm-dot.good { background: var(--good); }
.permit-card-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.005em;
  margin-top: 2px;
}
.permit-card-sub {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}
.permit-card-trigger {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.02em;
  margin-top: 4px;
}

.permits-detail {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.permits-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.permits-doc-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.permits-doc-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.permits-doc {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg);
  transition: border-color 100ms;
}
.permits-doc.required {
  border-color: color-mix(in oklab, var(--accent) 40%, var(--border));
  background: color-mix(in oklab, var(--accent) 4%, var(--bg-elev));
}
.permits-doc.complete { opacity: 0.85; }
.permits-doc-main { flex-grow: 1; min-width: 0; }
.permits-doc-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.permits-doc-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}
.permits-doc-help {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.45;
}
.permits-doc-action { flex-shrink: 0; }
.permits-upload {
  background: var(--bg-elev);
  color: var(--accent);
  border: 1px dashed var(--accent);
}
.permits-upload:hover {
  background: color-mix(in oklab, var(--accent) 10%, var(--bg-elev));
  border-style: solid;
}

.permits-cta {
  margin-top: 24px;
  padding: 16px 20px;
  background: var(--bg-sunk);
  border-radius: var(--radius);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---- Step 4: Approval Status ---- */
.approval-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.approval-overall {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 24px;
}
.approval-overall-ring {
  position: relative;
  width: 64px;
  height: 64px;
}
.approval-overall-pct {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.approval-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 1080px) { .approval-grid { grid-template-columns: 1fr; } }

.approval-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.approval-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.approval-progress { display: flex; flex-direction: column; gap: 8px; }
.approval-progress-track {
  height: 6px;
  background: var(--bg-sunk);
  border-radius: 3px;
  overflow: hidden;
}
.approval-progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 400ms cubic-bezier(0.22, 1, 0.36, 1);
}
.approval-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.approval-stages {
  display: flex;
  flex-direction: column;
  padding: 4px 0;
}
.approval-stage {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 7px 0;
  font-size: 12px;
  position: relative;
}
.approval-stage::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 22px;
  bottom: -2px;
  width: 1px;
  background: var(--border);
}
.approval-stage:last-child::after { display: none; }
.approval-stage-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--bg-elev);
  border: 1.5px solid var(--border-strong);
  position: relative;
  z-index: 1;
}
.approval-stage.done .approval-stage-dot { background: var(--good); border-color: var(--good); }
.approval-stage.current .approval-stage-dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 20%, transparent);
}
.approval-stage-label { color: var(--text-muted); }
.approval-stage.done .approval-stage-label { color: var(--text); }
.approval-stage.current .approval-stage-label { color: var(--text); font-weight: 500; }
.approval-stage-date { font-size: 10px; color: var(--text-faint); letter-spacing: 0.02em; }

.approval-followups {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.approval-followups-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
}
.approval-followup {
  padding: 10px 12px;
  border-radius: 4px;
  border-left: 2px solid var(--border-strong);
  background: var(--bg);
}
.approval-followup.action {
  border-left-color: var(--accent);
  background: color-mix(in oklab, var(--accent) 5%, var(--bg-elev));
}
.approval-followup.info {
  border-left-color: var(--good);
  background: color-mix(in oklab, var(--good) 5%, var(--bg-elev));
}
.approval-followup-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}
.approval-followup-text {
  font-size: 12px;
  line-height: 1.45;
  color: var(--text);
}
