/* =================================================================
   VisitLock — Verified Field
   Editorial-grade marketing site
   ================================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Palette (v3) */
  --color-obsidian: #0F1115;
  --color-bone: #F4F0E8;
  --color-slate-stone: #E8E4DC;
  --color-near-black: #12110E;
  --color-warm-white: #F7F4EE;
  --color-forest-emerald: #1A7A4A;
  --color-deep-forest: #0E4F2E;
  --color-mint-proof: #D6F0E2;
  --color-proof-amber: #C8751A;
  --color-warm-gray: #8A8480;
  --color-warm-rule: #D4CFC6;
  --color-obsidian-rule: #252830;
  --color-flag-red: #D94035;

  /* Type families */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "DM Sans", "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  /* Type scale (clamps for fluid sizing) */
  --text-h1-hero: clamp(48px, 7.4vw, 96px);
  --text-h1-editorial: clamp(40px, 5.6vw, 72px);
  --text-h2: clamp(32px, 4vw, 52px);
  --text-h3: clamp(22px, 2.1vw, 28px);
  --text-lede: clamp(18px, 1.6vw, 22px);
  --text-body: 16px;
  --text-small: 13px;
  --text-eyebrow: 11px;
  --text-mono: 13px;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 80px;
  --space-10: 96px;
  --space-11: 128px;
  --space-12: 160px;

  /* Radii */
  --radius-button: 100px;
  --radius-card: 12px;
  --radius-card-lg: 20px;
  --radius-input: 8px;
  --radius-badge: 100px;
  --radius-image: 16px;
  --radius-phone: 44px;

  /* Shadows */
  --shadow-card-rest: 0 1px 3px rgba(15, 17, 21, 0.08), 0 1px 2px rgba(15, 17, 21, 0.06);
  --shadow-card-hover: 0 10px 40px rgba(15, 17, 21, 0.12), 0 4px 12px rgba(15, 17, 21, 0.08);
  --shadow-button: 0 4px 16px rgba(26, 122, 74, 0.30);
  --shadow-button-hover: 0 8px 24px rgba(26, 122, 74, 0.40);
  --shadow-phone: 0 32px 80px rgba(15, 17, 21, 0.40), 0 8px 24px rgba(15, 17, 21, 0.20);
  --shadow-dashboard: 0 24px 64px rgba(15, 17, 21, 0.35);
  --shadow-floating-card: 0 18px 60px rgba(15, 17, 21, 0.18), 0 4px 14px rgba(15, 17, 21, 0.10);

  /* Motion */
  --dur-fast: 150ms;
  --dur-base: 300ms;
  --dur-slow: 600ms;
  --dur-signature: 1200ms;
  --ease-out: cubic-bezier(0.0, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --container: 1440px;
  --measure: 720px;
  --container-pad-x: 80px;
}

@media (max-width: 1023px) {
  :root { --container-pad-x: 40px; }
}
@media (max-width: 767px) {
  :root { --container-pad-x: 20px; }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-rendering: optimizeLegibility; }
body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.65;
  color: var(--color-near-black);
  background: var(--color-bone);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
ul, ol { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }
::selection { background: var(--color-forest-emerald); color: var(--color-warm-white); }

/* ---------- Type primitives ---------- */
.font-display { font-family: var(--font-display); font-optical-sizing: auto; }
.font-body { font-family: var(--font-body); }
.font-mono { font-family: var(--font-mono); }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-eyebrow);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-near-black);
  line-height: 1.4;
}
.eyebrow.on-dark { color: var(--color-warm-white); }
.eyebrow.on-emerald { color: var(--color-forest-emerald); }

.h1-hero {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-h1-hero);
  line-height: 1.0;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 1;
}
.h1-editorial {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-h1-editorial);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 100, "SOFT" 40;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-h2);
  line-height: 1.1;
  letter-spacing: -0.015em;
  font-variation-settings: "opsz" 80;
}
.h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-h3);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.lede {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-lede);
  line-height: 1.5;
  color: var(--color-near-black);
  max-width: 540px;
}
.lede.on-dark { color: var(--color-warm-white); opacity: 0.9; }
.small, .meta {
  font-size: var(--text-small);
  letter-spacing: 0.01em;
  color: var(--color-warm-gray);
}
.mono { font-family: var(--font-mono); font-size: var(--text-mono); letter-spacing: 0; }
.italic-emerald {
  font-style: italic;
  color: var(--color-forest-emerald);
  font-variation-settings: "opsz" 144, "SOFT" 100;
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--container-pad-x);
  padding-right: var(--container-pad-x);
}
.section { padding: var(--space-10) 0; }
@media (max-width: 767px) { .section { padding: var(--space-8) 0; } }
.section.tight { padding: var(--space-7) 0; }
.section.dark { background: var(--color-obsidian); color: var(--color-warm-white); }
.section.bone { background: var(--color-bone); }
.section.stone { background: var(--color-slate-stone); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius-button);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0;
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-forest-emerald);
  color: var(--color-warm-white);
  box-shadow: var(--shadow-button);
}
.btn-primary:hover {
  background: var(--color-deep-forest);
  transform: translateY(-2px);
  box-shadow: var(--shadow-button-hover);
}
.btn-ghost {
  background: transparent;
  color: var(--color-near-black);
  border: 1.5px solid var(--color-near-black);
}
.btn-ghost.on-dark { color: var(--color-warm-white); border-color: var(--color-warm-white); }
.btn-ghost:hover {
  background: var(--color-near-black);
  color: var(--color-warm-white);
  transform: translateY(-2px);
}
.btn-ghost.on-dark:hover { background: var(--color-warm-white); color: var(--color-near-black); }
.btn .arrow { transition: transform var(--dur-fast) var(--ease-out); display: inline-block; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-sm { padding: 10px 18px; font-size: 14px; }

/* Inline link with arrow (Forest Emerald) */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-forest-emerald);
  font-weight: 600;
  font-size: 15px;
  position: relative;
  padding-bottom: 2px;
}
.link-arrow::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0;
  height: 1.5px;
  background: var(--color-forest-emerald);
  transition: width var(--dur-base) var(--ease-out);
}
.link-arrow:hover::after { width: 100%; }
.link-arrow .arrow { transition: transform var(--dur-fast) var(--ease-out); }
.link-arrow:hover .arrow { transform: translateX(4px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 240, 232, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-base) var(--ease-out), background var(--dur-base) var(--ease-out);
}
.site-header.scrolled { border-color: var(--color-warm-rule); }
.site-header.dark {
  background: rgba(15, 17, 21, 0.80);
  color: var(--color-warm-white);
}
.site-header.dark.scrolled { border-color: var(--color-obsidian-rule); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-7);
  padding: 18px 0;
}
.nav-logo { display: flex; align-items: center; gap: 0; }
.nav-logo svg, .nav-logo img { height: 38px; width: auto; }
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-near-black);
  position: relative;
  padding: 4px 0;
}
.site-header.dark .nav-links a { color: var(--color-warm-white); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0;
  height: 1.5px;
  background: currentColor;
  transition: width 200ms var(--ease-out);
}
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; gap: 12px; align-items: center; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 8px;
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 1023px) {
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
}
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav-cta .btn-primary { display: none; }
}

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  top: 0; right: 0;
  width: 100%;
  max-width: 360px;
  height: 100vh;
  background: var(--color-bone);
  z-index: 200;
  padding: 24px;
  transform: translateX(100%);
  transition: transform var(--dur-base) var(--ease-in-out);
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow-y: auto;
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(15,17,21,0.5);
  z-index: 199;
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-in-out);
}
.mobile-drawer-overlay.open { opacity: 1; pointer-events: auto; }
.mobile-drawer .drawer-head { display: flex; justify-content: space-between; align-items: center; }
.mobile-drawer ul { display: flex; flex-direction: column; gap: 4px; }
.mobile-drawer ul a {
  display: block;
  padding: 14px 0;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  border-bottom: 1px solid var(--color-warm-rule);
}
.mobile-drawer .btn { align-self: flex-start; margin-top: 12px; }

/* ---------- Hero (home) ---------- */
.hero {
  background: var(--color-bone);
  padding: clamp(36px, 5vw, 72px) 0 clamp(64px, 6vw, 96px);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
}
@media (min-width: 1280px) {
  .hero-grid { grid-template-columns: 1.15fr 1fr; gap: 56px; }
}
@media (max-width: 1023px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
}
.hero-eyebrow { color: var(--color-near-black); margin-bottom: 28px; }
.hero-eyebrow::before {
  content: "";
  display: inline-block;
  width: 36px; height: 1px;
  background: var(--color-near-black);
  vertical-align: middle;
  margin-right: 14px;
}
.hero-headline { margin-bottom: 28px; }
.hero-lede { margin-bottom: 36px; max-width: 480px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-photo {
  position: relative;
  border-radius: var(--radius-image);
  overflow: hidden;
  aspect-ratio: 5 / 6;
  max-height: 640px;
  box-shadow: 0 32px 80px rgba(15, 17, 21, 0.18);
  isolation: isolate;
}
.hero-photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.hero-photo.loaded img { transform: scale(1.0); }

/* Floating notification card — anchored at bottom, glass-morphism over photo */
.floating-card {
  position: absolute;
  left: 16px; right: 16px; bottom: 16px;
  background: rgba(15, 17, 21, 0.78);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-radius: 14px;
  padding: 16px 20px;
  box-shadow: 0 12px 40px rgba(15, 17, 21, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--color-warm-white);
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  align-items: center;
  gap: 18px;
  transform: translateY(20px);
  opacity: 0;
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
  transition-delay: 200ms;
}
.floating-card.in { opacity: 1; transform: translateY(0); }
.floating-card .top {
  display: flex; align-items: center; gap: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-warm-white);
  text-transform: uppercase;
  white-space: nowrap;
}
.floating-card .top .check {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--color-forest-emerald);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.floating-card .top .check svg { width: 12px; height: 12px; stroke: var(--color-warm-white); }
.floating-card .top .time {
  color: rgba(255,255,255,0.6);
  font-weight: 500;
}
.floating-card .row {
  font-family: var(--font-mono);
  font-size: 11px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.floating-card .row span:first-child {
  color: rgba(255,255,255,0.55);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.floating-card .row span:last-child {
  color: var(--color-warm-white);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.floating-card .row.ok span:last-child {
  color: var(--color-forest-emerald);
  font-weight: 700;
}

@media (max-width: 767px) {
  .floating-card {
    left: 10px; right: 10px; bottom: 10px;
    padding: 12px 14px;
    gap: 12px;
  }
  .floating-card .row { font-size: 10px; }
  .floating-card .row span:first-child { font-size: 8px; }
}

/* Headline word-reveal */
.reveal-words .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}
.reveal-words.in .word { opacity: 1; transform: translateY(0); }

/* ---------- Trust micro-band ---------- */
.trust-band {
  background: var(--color-bone);
  padding: 32px 0;
  text-align: center;
  border-top: 1px solid var(--color-warm-rule);
  border-bottom: 1px solid var(--color-warm-rule);
}
.trust-band-inner {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--color-near-black);
  text-transform: none;
  line-height: 1.8;
}
.trust-band-inner .sep { color: var(--color-forest-emerald); margin: 0 12px; font-weight: 700; }

@media (max-width: 767px) {
  .trust-band-inner { font-size: 11px; letter-spacing: 0.08em; }
  .trust-band-inner .sep { margin: 0 6px; }
}

/* ---------- Sticky-scroll walkthrough ---------- */
.walkthrough {
  background: var(--color-obsidian);
  color: var(--color-warm-white);
  position: relative;
  /* NOTE: do not set overflow: hidden here — it breaks position: sticky on .walkthrough-pin */
}
.walkthrough-glow {
  position: absolute;
  top: 30%; right: 5%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(26,122,74,0.15) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.walkthrough-eyebrow {
  padding: 80px 0 0;
  text-align: center;
}
.walkthrough-eyebrow .eyebrow { color: var(--color-warm-white); opacity: 0.6; }
.walkthrough-eyebrow .h2 {
  margin-top: 16px;
  color: var(--color-warm-white);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.walkthrough-track {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding: 32px 0 64px;
}
@media (max-width: 1023px) {
  .walkthrough-track { grid-template-columns: 1fr; gap: 48px; padding: 48px 0 80px; }
}

.walkthrough-text { display: flex; flex-direction: column; gap: 18vh; padding-top: 4vh; padding-bottom: 4vh; }
.walkthrough-block {
  max-width: 480px;
}
.walkthrough-block .eyebrow {
  color: var(--color-forest-emerald);
  margin-bottom: 18px;
}
.walkthrough-block .h2 {
  color: var(--color-warm-white);
  margin-bottom: 18px;
}
.walkthrough-block p {
  color: var(--color-warm-white);
  opacity: 0.78;
  font-size: 18px;
  line-height: 1.55;
}

.walkthrough-pin {
  align-self: start;
  position: sticky;
  top: 12vh;
}
.walkthrough-pin-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 600px;
}

/* Phone mockup */
.phone {
  position: relative;
  width: 280px;
  height: 580px;
  background: var(--color-near-black);
  border: 8px solid #1c1c20;
  border-radius: 44px;
  box-shadow: var(--shadow-phone);
  overflow: hidden;
}
.phone .notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 26px;
  background: #000;
  border-radius: 16px;
  z-index: 5;
}
.phone .status-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 44px;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 26px 0;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  z-index: 4;
}
.phone .phone-screen {
  position: absolute;
  inset: 0;
  border-radius: 36px;
  overflow: hidden;
  opacity: 0;
  transition: opacity 300ms var(--ease-in-out);
}
.phone .phone-screen.active { opacity: 1; }

@media (max-width: 1023px) {
  .walkthrough-pin { position: static; transform: none; height: auto; }
  .walkthrough-pin-inner { margin-top: 0; height: auto; }
  .walkthrough-text { gap: 32px; padding: 0; }
  .walkthrough-mobile-gallery { display: grid; gap: 24px; }
}

/* MOBILE-03 Visit feed screen */
.scr-feed {
  background: var(--color-bone);
  color: var(--color-near-black);
  padding: 44px 16px 16px;
  height: 100%;
  display: flex; flex-direction: column;
}
.scr-feed .feed-head {
  padding: 16px 8px 12px;
  border-bottom: 1px solid var(--color-warm-rule);
  margin-bottom: 12px;
}
.scr-feed .feed-head h4 {
  font-family: var(--font-body); font-weight: 600; font-size: 16px; margin: 0 0 4px;
}
.scr-feed .feed-progress {
  font-size: 12px; font-weight: 600; color: var(--color-forest-emerald);
}
.scr-feed .feed-list { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; }
.scr-feed .feed-card {
  background: var(--color-warm-white);
  border: 1px solid var(--color-warm-rule);
  border-radius: 8px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 10px;
  align-items: center;
}
.scr-feed .feed-card .ind {
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.scr-feed .feed-card.completed .ind { background: var(--color-forest-emerald); }
.scr-feed .feed-card.completed .ind svg { width: 12px; height: 12px; stroke: white; }
.scr-feed .feed-card.in_progress .ind { background: var(--color-proof-amber); animation: pulseDot 1.6s infinite; }
.scr-feed .feed-card.upcoming .ind { background: transparent; border: 1.5px solid var(--color-warm-gray); }
.scr-feed .feed-card .meta-name { font-size: 13px; font-weight: 600; }
.scr-feed .feed-card .meta-addr { font-size: 11px; color: var(--color-warm-gray); }
.scr-feed .feed-card .feed-time {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--color-near-black);
}
.scr-feed .feed-card.upcoming .feed-time { color: var(--color-warm-gray); }
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(200,117,26,0.6); }
  50% { box-shadow: 0 0 0 8px rgba(200,117,26,0); }
}

/* MOBILE-01 Face scan screen */
.scr-facescan {
  background: var(--color-obsidian);
  color: var(--color-warm-white);
  padding: 44px 16px 16px;
  height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  text-align: center;
}
.scr-facescan h4 {
  margin-top: 24px;
  font-family: var(--font-body); font-weight: 500; font-size: 22px;
}
.scr-facescan .scan-ring-wrap {
  position: relative;
  width: 200px; height: 240px;
  display: flex; align-items: center; justify-content: center;
}
.scr-facescan .scan-bg {
  position: absolute; inset: 18px;
  border-radius: 50% / 56%;
  background: radial-gradient(ellipse, #2c2823 0%, #1a1816 70%);
  filter: blur(0.5px);
  opacity: 0.7;
}
.scr-facescan .scan-bg::before {
  content: "";
  position: absolute; left: 50%; top: 30%;
  width: 60px; height: 18px; border-radius: 50%;
  background: rgba(120,80,60,0.4);
  transform: translate(-50%, -50%);
}
.scr-facescan .scan-bg::after {
  content: "";
  position: absolute; left: 50%; bottom: 25%;
  width: 80px; height: 30px; border-radius: 50%;
  background: rgba(80,40,30,0.5);
  transform: translateX(-50%);
}
.scr-facescan svg.scan-ring {
  position: relative;
  width: 200px; height: 240px;
  z-index: 2;
}
.scr-facescan svg.scan-ring ellipse {
  fill: none;
  stroke: var(--color-forest-emerald);
  stroke-width: 3;
  stroke-dasharray: 20 14;
  stroke-linecap: round;
  animation: scanRotate 3s linear infinite;
  transform-origin: center;
}
@keyframes scanRotate {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -340; }
}
.scr-facescan .substatus {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-warm-gray);
  margin-top: 12px;
}
.scr-facescan .dots {
  display: flex; gap: 8px; margin-bottom: 8px;
}
.scr-facescan .dots span {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.18);
}
.scr-facescan .dots span.lit { background: var(--color-forest-emerald); }

/* MOBILE-02 Verified card screen */
.scr-verified {
  background: var(--color-bone);
  color: var(--color-near-black);
  padding: 60px 22px 22px;
  height: 100%;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}
.scr-verified .check-circle {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--color-forest-emerald);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 12px 28px rgba(26,122,74,0.25);
}
.scr-verified .check-circle svg { width: 44px; height: 44px; stroke: var(--color-warm-white); }
.scr-verified h4 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 28px; line-height: 1.1; margin-bottom: 6px;
}
.scr-verified .subline { font-size: 14px; margin-bottom: 18px; }
.scr-verified .verify-card {
  width: 100%;
  background: var(--color-warm-white);
  border: 1px solid var(--color-warm-rule);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex; flex-direction: column; gap: 6px;
  margin-bottom: 14px;
}
.scr-verified .verify-card .row {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 11px;
}
.scr-verified .verify-card .row span:last-child { color: var(--color-forest-emerald); font-weight: 700; }
.scr-verified .vbtn {
  background: var(--color-forest-emerald);
  color: var(--color-warm-white);
  border-radius: 100px;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 600;
  width: 100%;
  text-align: center;
}

/* ---------- Three-pillar cards ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
@media (max-width: 1023px) { .pillars { grid-template-columns: 1fr; } }

.pillar {
  background: var(--color-warm-white);
  border: 1px solid var(--color-warm-rule);
  border-radius: var(--radius-card-lg);
  padding: 28px;
  display: flex; flex-direction: column;
  transition: transform 280ms var(--ease-out), box-shadow 280ms var(--ease-out);
  transform-style: preserve-3d;
  perspective: 1000px;
  box-shadow: var(--shadow-card-rest);
}
.pillar:hover { box-shadow: var(--shadow-card-hover); }

.pillar-visual {
  height: 200px;
  background: var(--color-bone);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 24px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  position: relative;
}
.pillar h3 { margin-bottom: 10px; }
.pillar p { color: var(--color-near-black); opacity: 0.8; margin-bottom: 18px; flex-grow: 1; font-size: 15px; line-height: 1.55; }
.pillar .link-arrow { margin-top: auto; }

/* Mini phone (used in pillar 1) */
.mini-phone {
  width: 130px; height: 180px;
  background: #000;
  border-radius: 22px;
  border: 4px solid #1a1a1a;
  position: relative;
  overflow: hidden;
}
.mini-phone .scan-ring-mini {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 100px; height: 130px;
}
.mini-phone .scan-ring-mini ellipse {
  fill: none;
  stroke: var(--color-forest-emerald);
  stroke-width: 3;
  stroke-dasharray: 14 10;
  animation: scanRotate 3s linear infinite;
  transform-origin: center;
}
.mini-phone .face-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 45%, #3a2820 0%, #15110e 70%);
}

/* Mini map (pillar 2) */
.mini-map {
  width: 100%; height: 100%;
  background:
    radial-gradient(circle at 20% 30%, #d2cdc2 0 2%, transparent 2%),
    radial-gradient(circle at 70% 60%, #d2cdc2 0 2%, transparent 2%),
    linear-gradient(135deg, #e8e3d8, #d6d0c2);
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}
.mini-map svg.streets {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.mini-map .map-pin {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 20px; height: 20px;
  background: var(--color-forest-emerald);
  border-radius: 50%;
  border: 3px solid var(--color-warm-white);
  z-index: 3;
}
.mini-map .map-ring {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 70px; height: 70px;
  border: 2px solid var(--color-forest-emerald);
  border-radius: 50%;
  animation: pulseRing 2.4s infinite ease-out;
}
@keyframes pulseRing {
  0% { transform: translate(-50%, -50%) scale(0.5); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(2); opacity: 0; }
}

/* Mini bar chart (pillar 3) */
.mini-chart {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 140px;
  width: 100%;
  padding: 0 12px;
}
.mini-chart .bar {
  flex: 1;
  background: var(--color-forest-emerald);
  border-radius: 4px 4px 0 0;
  opacity: 0.85;
}
.mini-chart .bar:nth-child(1) { height: 30%; }
.mini-chart .bar:nth-child(2) { height: 55%; }
.mini-chart .bar:nth-child(3) { height: 40%; }
.mini-chart .bar:nth-child(4) { height: 75%; }
.mini-chart .bar:nth-child(5) { height: 85%; }
.mini-chart .bar:nth-child(6) { height: 65%; }
.mini-chart .bar:nth-child(7) { height: 95%; opacity: 1; }

/* ---------- Editorial band ---------- */
.editorial-band {
  position: relative;
  height: 70vh;
  min-height: 480px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-warm-white);
  background: var(--color-obsidian);
}
.editorial-band .band-bg {
  position: absolute; inset: 0;
  background-image: url('../img/BAND-01_atmosphere.png');
  background-size: cover;
  background-position: center;
  will-change: transform;
}
.editorial-band .band-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,17,21,0.85) 0%, rgba(15,17,21,0.45) 50%, rgba(15,17,21,0.5) 100%);
}
.editorial-band-inner {
  position: relative; z-index: 2;
  max-width: 880px;
  padding: 0 24px;
}
.editorial-band .h1-editorial { color: var(--color-warm-white); margin-bottom: 32px; }
.editorial-band .stats {
  display: flex;
  gap: 36px;
  justify-content: center;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--color-warm-white);
  opacity: 0.92;
}
.editorial-band .stats .dot { color: var(--color-forest-emerald); }

/* ---------- Calculator ---------- */
.calculator-wrap {
  background: var(--color-bone);
  padding: var(--space-10) 0;
}
.calculator {
  background: var(--color-obsidian);
  color: var(--color-warm-white);
  border-radius: 24px;
  padding: clamp(36px, 5vw, 72px);
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.calculator::before {
  content: "";
  position: absolute;
  top: -120px; right: -120px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(26,122,74,0.20) 0%, transparent 60%);
  pointer-events: none;
}
.calculator h2 { color: var(--color-warm-white); max-width: 640px; margin-bottom: 12px; position: relative; }
.calculator .sub { color: var(--color-warm-white); opacity: 0.75; max-width: 540px; margin-bottom: 40px; }
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  position: relative;
}
@media (max-width: 1023px) { .calc-grid { grid-template-columns: 1fr; gap: 40px; } }

.calc-input {
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 28px;
}
.calc-input label {
  display: flex; justify-content: space-between;
  font-size: 13px; font-weight: 600;
  color: var(--color-warm-white);
}
.calc-input label .val {
  font-family: var(--font-mono);
  color: var(--color-forest-emerald);
}
.calc-input input[type="range"] {
  width: 100%;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--color-obsidian-rule);
  border-radius: 4px;
  outline: none;
}
.calc-input input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--color-forest-emerald);
  cursor: pointer;
  border: 3px solid var(--color-warm-white);
  box-shadow: 0 2px 8px rgba(26,122,74,0.3);
}
.calc-input input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--color-forest-emerald);
  cursor: pointer;
  border: 3px solid var(--color-warm-white);
}

.calc-output { display: flex; flex-direction: column; gap: 24px; }
.calc-stat {
  border-top: 1px solid var(--color-obsidian-rule);
  padding-top: 16px;
  display: flex; flex-direction: column; gap: 4px;
}
.calc-stat:first-child { border-top: none; padding-top: 0; }
.calc-stat .label {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-warm-white); opacity: 0.6;
  font-weight: 600;
}
.calc-stat .val {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 48px);
  color: var(--color-forest-emerald);
  line-height: 1;
}
.calc-stat .sub-val {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--color-warm-white); opacity: 0.7;
}
.calc-source {
  margin-top: 32px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-warm-white); opacity: 0.5;
  position: relative;
}

/* ---------- Live visit feed ---------- */
.live-feed-wrap { padding: var(--space-10) 0; background: var(--color-bone); }
.live-feed-frame {
  background: var(--color-warm-white);
  border-radius: 14px;
  border: 1px solid var(--color-warm-rule);
  box-shadow: var(--shadow-dashboard);
  overflow: hidden;
  max-width: 980px;
  margin: 56px auto 0;
}
.browser-chrome {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px;
  background: var(--color-slate-stone);
  border-bottom: 1px solid var(--color-warm-rule);
}
.browser-chrome .dots { display: flex; gap: 6px; }
.browser-chrome .dots span {
  width: 11px; height: 11px; border-radius: 50%;
  background: #d4cfc6;
}
.browser-chrome .url-bar {
  flex: 1;
  background: var(--color-warm-white);
  border-radius: 8px;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-warm-gray);
}
.browser-chrome .url-bar .lock {
  display: inline-block; width: 10px; height: 10px;
  vertical-align: middle; margin-right: 6px;
}
.live-feed-body {
  padding: 0;
  height: 480px;
  overflow: hidden;
  position: relative;
}
.live-feed-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 24px 16px;
  border-bottom: 1px solid var(--color-warm-rule);
  background: var(--color-warm-white);
  position: relative;
  z-index: 2;
}
.live-feed-scroll-area {
  position: relative;
  height: calc(100% - 56px);
  overflow: hidden;
  padding: 0 24px;
}
.live-feed-scroll-area::before,
.live-feed-scroll-area::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 32px;
  pointer-events: none;
  z-index: 3;
}
.live-feed-scroll-area::before {
  top: 0;
  background: linear-gradient(to bottom, var(--color-warm-white), transparent);
}
.live-feed-scroll-area::after {
  bottom: 0;
  background: linear-gradient(to top, var(--color-warm-white), transparent);
}
.live-feed-header h4 { font-family: var(--font-body); font-weight: 600; font-size: 15px; }
.live-feed-header .live {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--color-forest-emerald);
  display: flex; align-items: center; gap: 6px;
}
.live-feed-header .live::before {
  content: ""; display: inline-block;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--color-forest-emerald);
  animation: pulseDot 1.6s infinite;
}
.live-feed-list {
  display: flex; flex-direction: column;
  animation: feedScroll 30s linear infinite;
}
.live-feed-list:hover { animation-play-state: paused; }
@keyframes feedScroll {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}
.feed-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-warm-rule);
  align-items: center;
}
.feed-row .badge {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--color-forest-emerald);
  display: flex; align-items: center; justify-content: center;
}
.feed-row .badge svg { width: 14px; height: 14px; stroke: white; }
.feed-row.flagged .badge { background: var(--color-proof-amber); }
.feed-row.flagged .feed-status { color: var(--color-proof-amber); }
.feed-row .feed-info { display: flex; flex-direction: column; gap: 2px; }
.feed-row .feed-info .name { font-weight: 600; font-size: 14px; }
.feed-row .feed-info .addr { font-family: var(--font-mono); font-size: 11px; color: var(--color-warm-gray); }
.feed-row .feed-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.feed-row .feed-status {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--color-forest-emerald);
}
.feed-row .feed-time { font-family: var(--font-mono); font-size: 11px; color: var(--color-warm-gray); }

/* ---------- Segment selector ---------- */
.segments {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 56px;
}
@media (max-width: 1023px) { .segments { grid-template-columns: 1fr; } }

.segment-card {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--color-obsidian);
  isolation: isolate;
}
.segment-card .segment-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.65) brightness(0.85);
  transition: filter 600ms var(--ease-out), transform 800ms var(--ease-out);
  z-index: 1;
}
.segment-card:hover .segment-bg { filter: saturate(1) brightness(0.95); transform: scale(1.03); }
.segment-card .segment-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,17,21,0.85) 0%, rgba(15,17,21,0.10) 60%);
  z-index: 2;
}
.segment-card .segment-content {
  position: relative;
  padding: 28px;
  z-index: 3;
  color: var(--color-warm-white);
}
.segment-card .eyebrow { color: var(--color-warm-white); opacity: 0.8; margin-bottom: 14px; }
.segment-card h3 {
  font-family: var(--font-display); font-weight: 600; font-size: 30px;
  margin-bottom: 14px; line-height: 1.05;
}
.segment-card .segment-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--color-forest-emerald);
}
.segment-card .segment-arrow svg { transition: transform var(--dur-fast); }
.segment-card:hover .segment-arrow svg { transform: translateX(6px); }

/* MCO dashboard mock as background */
.dash-mock-bg {
  position: absolute; inset: 0;
  background: var(--color-obsidian);
  padding: 26px;
  z-index: 1;
  filter: saturate(0.85);
  transition: filter 400ms var(--ease-out);
}
.segment-card:hover .dash-mock-bg { filter: saturate(1); }
.dash-mock-bg .mock-row {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-left: 3px solid var(--color-flag-red);
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 10px;
}
.dash-mock-bg .mock-row .mock-time {
  font-family: var(--font-mono); font-size: 9px;
  color: var(--color-proof-amber); margin-bottom: 4px;
}
.dash-mock-bg .mock-row .mock-msg {
  font-size: 11px; color: var(--color-warm-white); opacity: 0.85;
  line-height: 1.4;
}

/* ---------- Social proof ---------- */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 64px;
}
@media (max-width: 1023px) { .testimonials { grid-template-columns: 1fr; gap: 24px; } }
.testimonial {
  display: flex; flex-direction: column; gap: 22px;
  padding-top: 24px;
  border-top: 1px solid var(--color-near-black);
}
.testimonial .quote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  line-height: 1.4;
  color: var(--color-near-black);
  font-variation-settings: "opsz" 100, "SOFT" 50;
}
.testimonial .attr {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-near-black);
}
.testimonial .attr .org { display: block; font-weight: 400; color: var(--color-warm-gray); margin-top: 2px; }

/* ---------- Closing CTA ---------- */
.closing-cta {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--color-obsidian);
  color: var(--color-warm-white);
}
.closing-cta .bg {
  position: absolute; inset: 0;
  background-image: url('../img/TRUST-01_dignity.png');
  background-size: cover;
  background-position: center 30%;
}
.closing-cta .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,17,21,0.95) 0%, rgba(15,17,21,0.7) 35%, rgba(15,17,21,0.3) 70%, rgba(15,17,21,0.5) 100%);
}
.closing-cta-inner {
  position: relative; z-index: 2;
  padding: 96px 24px 80px;
  max-width: 900px;
}
.closing-cta-inner h2 {
  color: var(--color-warm-white);
  margin-bottom: 36px;
}
.closing-cta-inner .small {
  color: var(--color-warm-white);
  opacity: 0.7;
  margin-top: 20px;
  font-family: var(--font-mono);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-obsidian);
  color: var(--color-warm-white);
  padding: 80px 0 32px;
}
.footer-trust {
  text-align: center;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--color-warm-white);
  opacity: 0.7;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--color-obsidian-rule);
}
.footer-trust .sep { color: var(--color-forest-emerald); margin: 0 10px; font-weight: 700; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 56px 0;
}
@media (max-width: 1023px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

.footer-col h5 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-warm-white);
  opacity: 0.6;
  margin-bottom: 18px;
}
.footer-col ul li { padding: 4px 0; }
.footer-col ul a {
  font-size: 14px;
  color: var(--color-warm-white);
  opacity: 0.85;
  transition: opacity var(--dur-fast);
}
.footer-col ul a:hover { opacity: 1; color: var(--color-forest-emerald); }
.footer-col-brand img, .footer-col-brand svg { height: 32px; margin-bottom: 18px; }
.footer-col-brand p { font-size: 14px; opacity: 0.7; max-width: 320px; line-height: 1.55; }

.footer-bottom {
  display: flex; justify-content: space-between; gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--color-obsidian-rule);
  font-size: 12px;
  color: var(--color-warm-white);
  opacity: 0.5;
  flex-wrap: wrap;
}

/* ---------- Generic page hero ---------- */
.page-hero {
  padding: clamp(40px, 6vw, 80px) 0 clamp(48px, 6vw, 80px);
}
.page-hero .container {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(32px, 4vw, 56px);
  align-items: center;
}
@media (max-width: 1023px) { .page-hero .container { grid-template-columns: 1fr; gap: 36px; } }
.page-hero.dark { background: var(--color-obsidian); color: var(--color-warm-white); }
.page-hero.dark .h1-editorial, .page-hero.dark .h1-hero { color: var(--color-warm-white); }
.page-hero.dark .lede { color: var(--color-warm-white); opacity: 0.85; }
.page-hero .hero-left { max-width: 640px; }
.page-hero .hero-right { display: flex; align-items: center; }
.page-hero img.hero-img {
  width: 100%;
  border-radius: var(--radius-image);
  aspect-ratio: 5 / 6;
  max-height: 580px;
  object-fit: cover;
  box-shadow: var(--shadow-card-hover);
}
.page-hero img.hero-img.landscape {
  aspect-ratio: 4 / 3;
  max-height: 480px;
}

/* ---------- Reveal observer base ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .walkthrough-pin { position: static; transform: none; height: auto; }
  .walkthrough-pin-inner { margin-top: 0; height: auto; }
  .walkthrough-text { gap: 32px; padding: 24px 0; }
  .live-feed-list { animation: none; }
  .reveal { opacity: 1; transform: none; }
  .reveal-words .word { opacity: 1; transform: none; }
  .floating-card { opacity: 1; transform: none; }
}

/* ---------- Utilities ---------- */
.center-text { text-align: center; }
.measure { max-width: var(--measure); }
.measure-narrow { max-width: 540px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }
.mt-6 { margin-top: 64px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }
.mb-6 { margin-bottom: 64px; }
.flex { display: flex; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.relative { position: relative; }

/* Numbered editorial */
.numbered-section {
  padding: var(--space-9) 0;
  border-top: 1px solid var(--color-warm-rule);
}
.numbered-section:first-child { border-top: none; }
.numbered-section .container {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 767px) {
  .numbered-section .container { grid-template-columns: 1fr; gap: 24px; }
}
.numbered-section .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 72px;
  line-height: 0.8;
  color: var(--color-forest-emerald);
  letter-spacing: -0.04em;
}
.numbered-section h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.numbered-section p { max-width: 640px; font-size: 17px; line-height: 1.6; }
.numbered-section .body-list {
  margin-top: 16px;
  display: flex; flex-direction: column; gap: 10px;
  font-size: 15px;
}
.numbered-section .body-list li {
  padding-left: 22px;
  position: relative;
  color: var(--color-near-black); opacity: 0.85;
}
.numbered-section .body-list li::before {
  content: "";
  position: absolute; left: 0; top: 10px;
  width: 12px; height: 1px;
  background: var(--color-forest-emerald);
}

/* Spec table */
.spec-table {
  border-top: 1px solid var(--color-warm-rule);
  margin-top: 32px;
}
.spec-table .row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--color-warm-rule);
}
.spec-table .row .key {
  font-family: var(--font-body); font-weight: 600; font-size: 14px;
}
.spec-table .row .val { font-family: var(--font-mono); font-size: 13px; color: var(--color-near-black); opacity: 0.8; }

/* Plan cards */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
@media (max-width: 1023px) { .plans { grid-template-columns: 1fr; } }
.plan {
  background: var(--color-warm-white);
  border: 1px solid var(--color-warm-rule);
  border-radius: 16px;
  padding: 36px 28px;
  display: flex; flex-direction: column;
  position: relative;
}
.plan.featured {
  border: 1.5px solid var(--color-forest-emerald);
  box-shadow: 0 12px 40px rgba(26,122,74,0.12);
}
.plan-tag {
  position: absolute; top: -12px; left: 28px;
  background: var(--color-forest-emerald); color: var(--color-warm-white);
  padding: 4px 12px; border-radius: 100px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
}
.plan h3 { margin-bottom: 8px; font-family: var(--font-display); font-size: 32px; font-weight: 600; letter-spacing: -0.02em; }
.plan .plan-price { font-family: var(--font-display); font-weight: 700; font-size: 56px; letter-spacing: -0.03em; line-height: 1; margin: 12px 0 4px; }
.plan .plan-price small { font-family: var(--font-body); font-size: 14px; font-weight: 500; opacity: 0.6; letter-spacing: 0; }
.plan .plan-sub { font-size: 14px; color: var(--color-warm-gray); margin-bottom: 24px; min-height: 36px; }
.plan ul.features { margin: 24px 0; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.plan ul.features li {
  position: relative;
  padding-left: 24px;
  font-size: 14px;
}
.plan ul.features li::before {
  content: "";
  position: absolute; left: 0; top: 7px;
  width: 12px; height: 8px;
  border-left: 2px solid var(--color-forest-emerald);
  border-bottom: 2px solid var(--color-forest-emerald);
  transform: rotate(-45deg);
}
.plan .btn { align-self: stretch; justify-content: center; margin-top: 16px; }

/* FAQ */
.faq {
  border-top: 1px solid var(--color-warm-rule);
  margin-top: 56px;
}
.faq details {
  border-bottom: 1px solid var(--color-warm-rule);
  padding: 22px 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 22px;
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-body); font-size: 24px; color: var(--color-forest-emerald); transition: transform var(--dur-fast); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-top: 14px; max-width: 760px; color: var(--color-near-black); opacity: 0.85; }

/* Form */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 767px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: 12px; font-weight: 600;
  color: var(--color-near-black); opacity: 0.75;
  letter-spacing: 0.05em; text-transform: uppercase;
}
.field input, .field select, .field textarea {
  background: var(--color-warm-white);
  border: 1px solid var(--color-warm-rule);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
  width: 100%;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--color-forest-emerald);
  box-shadow: 0 0 0 3px rgba(26,122,74,0.15);
}

/* Honeypot */
.bot-field { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

/* Demo page split */
.demo-page {
  display: grid;
  grid-template-columns: 40% 60%;
  min-height: 100vh;
}
@media (max-width: 1023px) { .demo-page { grid-template-columns: 1fr; } }
.demo-photo {
  background-image: url('../img/HERO-01_arrival.png');
  background-size: cover;
  background-position: center;
  min-height: 280px;
}
.demo-form {
  padding: clamp(48px, 6vw, 96px) clamp(24px, 5vw, 80px);
  background: var(--color-bone);
  display: flex; flex-direction: column;
  justify-content: center;
  max-width: 720px;
}

/* Compliance matrix */
.matrix {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 48px;
}
@media (max-width: 767px) { .matrix { grid-template-columns: 1fr; } }
.matrix .cell {
  border: 1px solid var(--color-obsidian-rule);
  border-radius: 12px;
  padding: 24px;
  background: rgba(255,255,255,0.02);
}
.matrix .cell h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 6px;
  display: flex; align-items: center; gap: 10px;
}
.matrix .cell h4 .ok {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--color-forest-emerald);
  display: inline-flex; align-items: center; justify-content: center;
}
.matrix .cell h4 .ok svg { width: 10px; height: 10px; stroke: white; }
.matrix .cell p { font-size: 13px; opacity: 0.8; line-height: 1.5; }
.matrix .cell .meta-mono { font-family: var(--font-mono); font-size: 11px; opacity: 0.6; margin-top: 8px; }

/* US Map (states) */
.us-map { width: 100%; height: auto; max-width: 900px; margin: 48px auto 0; }
.us-map .state { fill: var(--color-slate-stone); stroke: var(--color-bone); stroke-width: 1; transition: fill var(--dur-fast); }
.us-map .state.live { fill: var(--color-forest-emerald); }
.us-map .state.pilot { fill: #6BAE85; }
.us-map .state.discussing { fill: #B8D8C5; }
.us-map .state:hover { fill: var(--color-deep-forest); }
.map-legend { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin-top: 32px; font-size: 13px; }
.map-legend .swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: middle; margin-right: 8px; }

/* GeoProof feature animation */
.geoproof-stage {
  background: #15171c;
  border-radius: 20px;
  padding: 48px;
  margin-top: 56px;
  position: relative;
  overflow: hidden;
}
.geoproof-stage .map-svg { width: 100%; max-width: 720px; margin: 0 auto; display: block; }
.geoproof-stage .map-svg .geofence-ring { transform-origin: center; transform-box: fill-box; }
.geoproof-stage.in-view .map-svg .pin { animation: pinDrop 600ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
.geoproof-stage.in-view .map-svg .geofence-ring { animation: ringExpand 1500ms ease-out forwards; }
.geoproof-stage.in-view .map-svg .verify-tooltip {
  animation: tooltipIn 400ms ease-out 1200ms forwards;
}
@keyframes pinDrop {
  0% { transform: translateY(-30px); opacity: 0; }
  60% { transform: translateY(4px); opacity: 1; }
  100% { transform: translateY(0); opacity: 1; }
}
@keyframes ringExpand {
  0% { transform: scale(0.1); opacity: 0; }
  60% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.05); opacity: 0.4; }
}
@keyframes tooltipIn {
  0% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}
.geoproof-stage .map-svg .pin { opacity: 0; }
.geoproof-stage .map-svg .geofence-ring { opacity: 0; }
.geoproof-stage .map-svg .verify-tooltip { opacity: 0; }

/* Compliance unlock signature */
.unlock-stage {
  display: flex; gap: 48px; justify-content: center;
  margin-top: 56px;
  flex-wrap: wrap;
}
.unlock-step {
  text-align: center;
}
.unlock-step .ring {
  width: 120px; height: 120px;
  border-radius: 50%;
  background: rgba(26,122,74,0.08);
  border: 2px solid var(--color-forest-emerald);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 36px; font-weight: 700; color: var(--color-forest-emerald);
  margin: 0 auto 16px;
}
.unlock-stage.in-view .unlock-step:nth-child(1) .ring { animation: lockIn 600ms ease-out forwards; }
.unlock-stage.in-view .unlock-step:nth-child(2) .ring { animation: lockIn 600ms ease-out 200ms forwards; }
.unlock-stage.in-view .unlock-step:nth-child(3) .ring { animation: lockIn 600ms ease-out 400ms forwards; }
@keyframes lockIn {
  0% { transform: scale(0.7) rotate(-15deg); opacity: 0; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}
.unlock-step .ring { transform: scale(0.7); opacity: 0; }
.unlock-step h4 { font-family: var(--font-body); font-weight: 600; font-size: 16px; margin-bottom: 4px; }
.unlock-step p { font-size: 13px; opacity: 0.7; max-width: 220px; margin: 0 auto; }

/* Generic pill on dark bg */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  background: rgba(26,122,74,0.18);
  color: var(--color-forest-emerald);
}

/* Blog list */
.post-list {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  margin-top: 48px;
}
@media (max-width: 1023px) { .post-list { grid-template-columns: 1fr; } }
.post-card {
  border: 1px solid var(--color-warm-rule);
  border-radius: 16px;
  padding: 28px;
  background: var(--color-warm-white);
  display: flex; flex-direction: column;
  transition: box-shadow var(--dur-base);
}
.post-card:hover { box-shadow: var(--shadow-card-hover); }
.post-card .meta { font-family: var(--font-mono); font-size: 11px; color: var(--color-warm-gray); margin-bottom: 16px; }
.post-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 24px; line-height: 1.2; margin-bottom: 12px; letter-spacing: -0.01em; }
.post-card p { font-size: 14px; opacity: 0.8; flex-grow: 1; margin-bottom: 18px; }

/* Article */
.article { max-width: 720px; margin: 0 auto; padding: var(--space-10) 0; }
.article .meta { font-family: var(--font-mono); font-size: 12px; color: var(--color-warm-gray); margin-bottom: 16px; }
.article h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(36px, 5vw, 56px); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 32px; }
.article p { font-size: 18px; line-height: 1.7; margin-bottom: 22px; }
.article h2 { font-family: var(--font-display); font-weight: 600; font-size: 32px; margin: 40px 0 16px; }
.article ul { padding-left: 22px; margin-bottom: 22px; list-style: disc; }
.article ul li { font-size: 17px; line-height: 1.6; padding: 4px 0; }

/* 404 */
.notfound { min-height: 80vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 80px 24px; }
.notfound h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(80px, 14vw, 180px); line-height: 1; color: var(--color-forest-emerald); margin-bottom: 24px; letter-spacing: -0.04em; }
.notfound p { font-size: 18px; margin-bottom: 32px; max-width: 480px; }
