/* Feasix visual system
   Premium property feasibility webapp: editorial front page, dense analysis cockpit. t
*/

:root {
  --ink: #171512;
  --ink-2: #302b25;
  --muted: #756d63;
  --soft: #f4efe7;
  --paper: #fbf7f0;
  --paper-2: #efe7dc;
  --line: rgba(36, 31, 25, 0.12);
  --line-strong: rgba(36, 31, 25, 0.22);
  --charcoal: #1f2422;
  --charcoal-2: #2d3431;
  --copper: #b46a3c;
  --copper-2: #d8945f;
  --sage: #7d9375;
  --teal: #1f6f6b;
  --cream: #fffaf2;
  --success: #2f7f5f;
  --warning: #b5792b;
  --danger: #a94f44;
  --shadow-soft: 0 24px 70px rgba(45, 38, 29, 0.14);
  --shadow-crisp: 0 1px 0 rgba(255,255,255,0.55) inset, 0 18px 50px rgba(38, 31, 23, 0.12);
  --radius: 8px;
  --radius-sm: 5px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { min-height: 100%; margin: 0; }

/* Ensure [hidden] always wins, even over .btn/display rules. */
[hidden] { display: none !important; }

#top, #about, #services, #pricing, #app { scroll-margin-top: 92px; }

body {
  font-family: "Instrument Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(rgba(30, 26, 21, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 26, 21, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 44px 44px;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(180, 106, 60, 0.12), transparent 34%),
    linear-gradient(245deg, rgba(31, 111, 107, 0.09), transparent 42%);
  opacity: 0.9;
}

h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { letter-spacing: 0; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--copper); color: white; }

.num, .price, .kpi-value, .dock-tile strong, .snapshot-row strong, .exec-row strong,
.field-input input, .run-meta, .section-kicker, .eyebrow, .card-index, .rail-label,
.field-label, .field-suffix, .chip, .suggest-zone, .map-pill, .verdict-badge {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-variant-numeric: tabular-nums;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 74px;
  padding: 0 32px;
  background: rgba(251, 247, 240, 0.92);
  backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid rgba(180, 106, 60, 0.16);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 4px 28px rgba(38, 31, 23, 0.07);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 226px;
  text-decoration: none;
}
.brand-logo-shell {
  width: 132px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  overflow: hidden;
}
.brand-logo { width: 132px; height: auto; display: block; transition: opacity 160ms var(--ease); }
.brand:hover .brand-logo { opacity: 0.82; }
.brand-tag {
  padding-left: 14px;
  border-left: 1px solid var(--line);
  max-width: 96px;
  font-size: 10px;
  line-height: 1.15;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.01em;
}

.site-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 2px;
}
.site-nav a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--ink-2);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.01em;
  transition: background 160ms var(--ease), color 160ms var(--ease), transform 160ms var(--ease);
}
.site-nav a:hover {
  background: rgba(180, 106, 60, 0.1);
  color: var(--ink);
  transform: translateY(-1px);
}
.site-actions { display: flex; align-items: center; gap: 8px; }

/* Signed-in account chip (light marketing header) */
.account {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 4px 14px 4px 5px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
}
.account-avatar {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--cream);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.account-email {
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 10px 15px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--cream);
  color: var(--ink);
  font-weight: 750;
  font-size: 13px;
  cursor: pointer;
  transition: transform 180ms var(--ease), background 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}
.btn:hover { transform: translateY(-2px); border-color: rgba(31, 36, 34, 0.32); box-shadow: 0 14px 36px rgba(41, 34, 25, 0.13); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn-primary:hover { background: var(--copper); border-color: var(--copper); }
.btn-ghost { background: rgba(255,255,255,0.52); color: var(--ink-2); }
.btn-glass { background: rgba(255, 250, 242, 0.16); color: var(--cream); border-color: rgba(255,255,255,0.32); backdrop-filter: blur(14px); }
.btn-large { min-height: 48px; padding: 13px 20px; font-size: 14px; }
.btn-inline {
  align-self: center;
  min-height: 36px;
  margin: 4px;
  padding: 8px 12px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--cream);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.btn-inline:hover { background: var(--copper); }

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - 74px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background: var(--charcoal);
  color: var(--cream);
}
.hero-media {
  position: absolute;
  inset: 0;
  background-image: url("https://images.unsplash.com/photo-1580060839134-75a5edca2e99?auto=format&fit=crop&w=2400&q=85");
  background-size: cover;
  background-position: center 42%;
  transform: scale(1.04);
  filter: saturate(1.1) brightness(1.22) contrast(1.02);
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 18, 15, 0.72), rgba(18, 18, 15, 0.4) 46%, rgba(18, 18, 15, 0.1)),
    linear-gradient(0deg, rgba(18, 18, 15, 0.58), transparent 48%);
}
.hero-inner {
  position: relative;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 78px 0 44px;
}
.eyebrow, .section-kicker {
  display: inline-flex;
  color: var(--copper-2);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}
.hero h1 {
  margin-top: 16px;
  line-height: 0.88;
}
.hero-logo {
  width: min(760px, 92vw);
  height: auto;
  display: block;
  filter: brightness(0) invert(1) drop-shadow(0 26px 52px rgba(0,0,0,0.46));
}
.hero-lede {
  max-width: 690px;
  margin-top: 24px;
  color: rgba(255,250,242,0.98);
  font-size: 23px;
  line-height: 1.28;
  font-weight: 500;
  text-shadow: 0 2px 16px rgba(12, 12, 10, 0.78), 0 1px 3px rgba(12, 12, 10, 0.6);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-proof {
  position: relative;
  z-index: 1;
  left: auto;
  bottom: auto;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto 110px;
  translate: 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(38, 42, 38, 0.22);
  backdrop-filter: blur(18px);
  border-radius: var(--radius);
  overflow: hidden;
}
.hero-proof span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 88px;
  padding: 20px 22px;
  border-right: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,250,242,0.74);
  font-size: 13px;
}
.hero-proof span:last-child { border-right: 0; }
.hero-proof strong { color: var(--cream); font-size: 18px; }

/* Marketing sections */
.intro-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  width: min(1180px, calc(100% - 48px));
  margin: 18px auto 0;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-crisp);
  overflow: hidden;
}
.intro-strip div { padding: 26px; border-right: 1px solid var(--line); }
.intro-strip div:last-child { border-right: 0; }
.intro-strip span, .card-index { color: var(--copper); font-size: 11px; font-weight: 700; }
.intro-strip strong { display: block; margin-top: 10px; color: var(--ink); font-size: 19px; }
.intro-strip p { margin-top: 6px; color: var(--muted); font-size: 14px; }

.section {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 96px 0 0;
}
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section h2, .app-intro h2 {
  font-family: "Newsreader", Georgia, serif;
  font-size: 58px;
  line-height: 0.98;
  font-weight: 650;
  color: var(--ink);
}
.split { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 72px; align-items: start; }
.section-copy { display: grid; gap: 18px; color: var(--ink-2); font-size: 18px; line-height: 1.55; }

.service-grid, .pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.pricing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.service-card, .price-card {
  min-height: 248px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
  background: rgba(255, 250, 242, 0.82);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-crisp);
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), border-color 220ms var(--ease);
}
.service-card:hover, .price-card:hover { transform: translateY(-5px); border-color: rgba(180, 106, 60, 0.35); box-shadow: 0 26px 70px rgba(44, 36, 27, 0.18); }
.service-card h3, .price-card h3 { margin-top: 48px; font-size: 24px; color: var(--ink); }
.service-card p, .price-card p:not(.price) { margin-top: 12px; color: var(--muted); font-size: 15px; }
.price-card { min-height: 310px; }
.price { margin-top: 32px; font-size: 42px; line-height: 1; font-weight: 700; color: var(--ink); }
.price span { font-size: 13px; color: var(--muted); }
.price-card .btn { margin-top: auto; width: 100%; }
.price-card-featured { background: var(--charcoal); color: var(--cream); border-color: var(--charcoal); }
.price-card-featured h3, .price-card-featured .price { color: var(--cream); }
.price-card-featured p:not(.price) { color: rgba(255,250,242,0.72); }
.plan-badge { padding: 6px 9px; background: rgba(216, 148, 95, 0.16); color: var(--copper-2); border: 1px solid rgba(216,148,95,0.28); border-radius: var(--radius-sm); font-size: 12px; font-weight: 700; }

/* Waitlist */
.waitlist-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
  gap: 48px;
  align-items: center;
  padding: 48px;
  background: var(--charcoal);
  color: var(--cream);
  border: 1px solid var(--charcoal);
  border-radius: var(--radius-lg, 18px);
}
.waitlist-copy h2 { margin-top: 14px; font-size: 38px; line-height: 1.05; color: var(--cream); }
.waitlist-copy p { margin-top: 14px; color: rgba(255,250,242,0.72); font-size: 17px; line-height: 1.55; max-width: 42ch; }
.waitlist-copy .section-kicker { color: var(--copper-2); }
.waitlist-form { display: grid; gap: 16px; }
.waitlist-form .field-label { color: rgba(255,250,242,0.78); }
.waitlist-form input {
  min-height: 48px;
  width: 100%;
  border: 1px solid rgba(255,250,242,0.18);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06);
  color: var(--cream);
  padding: 10px 13px;
  outline: none;
}
.waitlist-form input::placeholder { color: rgba(255,250,242,0.4); }
.waitlist-form input:focus {
  border-color: rgba(216, 148, 95, 0.6);
  box-shadow: 0 0 0 3px rgba(216, 148, 95, 0.18);
  background: rgba(255,255,255,0.1);
}
.waitlist-form .btn-primary { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.waitlist-form .auth-status { color: rgba(255,250,242,0.72); }
.waitlist-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

@media (max-width: 760px) {
  .waitlist-card { grid-template-columns: 1fr; gap: 28px; padding: 30px; }
  .waitlist-copy h2 { font-size: 30px; }
}

/* App intro and shell */
.app-intro {
  width: min(1320px, calc(100% - 48px));
  margin: 108px auto 0;
  padding: 38px 0 24px;
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: end;
  border-top: 1px solid var(--line-strong);
}
.app-intro-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.app-shell {
  width: min(1320px, calc(100% - 48px));
  margin: 0 auto 80px;
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr) 300px;
  gap: 16px;
  align-items: start;
}
.sidebar, .rail, .step-card {
  background: rgba(255, 250, 242, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-crisp);
}
.sidebar {
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 108px);
  overflow-y: auto;
  padding: 16px;
}
.sidebar-section + .sidebar-section { margin-top: 26px; }
.sidebar-section h4, .rail-label {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 700;
}
.step-nav, .run-list { display: grid; gap: 7px; margin-top: 12px; }
.step-btn, .run-item {
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease), transform 160ms var(--ease);
}
.step-btn { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; padding: 10px; }
.step-btn:hover, .run-item:hover { background: rgba(180, 106, 60, 0.08); color: var(--ink); transform: translateX(2px); }
.step-btn.active, .run-item.active { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.step-btn.done { color: var(--teal); }
.step-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: inherit;
}
.step-meta { display: grid; gap: 1px; min-width: 0; }
.step-num { font-size: 10px; color: currentColor; opacity: 0.7; text-transform: uppercase; }
.step-title { font-weight: 750; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.run-item { display: grid; gap: 2px; padding: 10px; }
.run-name { font-size: 13px; font-weight: 750; }
.run-meta, .muted { font-size: 11px; color: var(--muted); }
.run-item.active .run-meta { color: rgba(255,250,242,0.6); }

.workspace { min-width: 0; }
.workspace-progress {
  height: 9px;
  overflow: hidden;
  background: rgba(31, 36, 34, 0.08);
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-bottom: 14px;
}
.workspace-progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--teal), var(--copper)); transition: width 500ms var(--ease); }
.step-card { padding: 30px; overflow: hidden; }
.step-card-header { margin-bottom: 26px; }
.step-card-header h2 {
  font-family: "Newsreader", Georgia, serif;
  font-size: 46px;
  line-height: 1;
  font-weight: 650;
}
.step-card-header p { max-width: 720px; margin-top: 10px; color: var(--muted); font-size: 15px; }
.sub-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 28px 0 12px;
  color: var(--copper);
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 700;
}
.sub-heading::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.step-card-footer {
  margin-top: 28px;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
}
.footer-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }

.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field-label { color: var(--ink-2); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.field-hint { color: var(--muted); font-size: 12px; line-height: 1.45; }
.field-input {
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: 48px;
  background: rgba(255,255,255,0.68);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease), background 160ms var(--ease);
}
.field-input:hover { border-color: rgba(31,36,34,0.3); background: var(--cream); }
.field-input:focus-within { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(31,111,107,0.12); background: var(--cream); }
.field-input input, .field-input select {
  flex: 1;
  min-width: 0;
  width: 100%;
  padding: 13px 14px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
}
.field-input input::placeholder { color: rgba(117, 109, 99, 0.72); }
.field-input select { appearance: none; padding-right: 34px; cursor: pointer; }
.field-input select option { background: var(--cream); color: var(--ink); }
.field-input:has(select)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 14px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.field-input--with-button { padding-right: 0; }
.field-suffix { display: flex; align-items: center; padding: 0 12px; border-left: 1px solid var(--line); color: var(--muted); font-size: 11px; font-weight: 700; }
.field-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 3px; }
.chip {
  padding: 6px 9px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.52);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.chip:hover { color: var(--ink); border-color: var(--copper); background: rgba(180,106,60,0.1); }

.field--address { position: relative; }
.suggest-popup {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 60;
  max-height: 360px;
  overflow-y: auto;
  padding: 7px;
  background: var(--cream);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.suggest-popup[hidden] { display: none; }
.suggest-item {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 2px 12px;
  padding: 11px 12px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.suggest-item:hover, .suggest-item.is-active { background: rgba(31,111,107,0.09); }
.suggest-main { font-weight: 760; font-size: 14px; }
.suggest-sub { color: var(--muted); font-size: 12px; }
.suggest-zone {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  padding: 4px 7px;
  border-radius: var(--radius-sm);
  background: rgba(31,111,107,0.1);
  color: var(--teal);
  font-size: 10px;
  font-weight: 700;
}
.suggest-empty { padding: 14px; color: var(--muted); font-size: 13px; }

.notice, .hint-banner {
  margin-top: 14px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.58);
  color: var(--ink-2);
  font-size: 13px;
}
.notice strong, .hint-banner strong { color: var(--ink); }
.notice--ghost:empty { display: none; }
.hint-banner { border-left-color: var(--copper); background: rgba(180,106,60,0.08); }

.map-card {
  position: relative;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper-2);
  min-height: 360px;
}
.map { height: 378px; width: 100%; }
.map-overlay { position: absolute; top: 12px; left: 12px; z-index: 1000; }
.map-pill {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  background: rgba(31,36,34,0.84);
  color: var(--cream);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}
.leaflet-container { font-family: inherit; background: var(--paper-2); filter: saturate(0.82) sepia(0.08); }
.leaflet-control-zoom a { color: var(--ink) !important; background: var(--cream) !important; border-color: var(--line) !important; }
.leaflet-control-attribution { color: var(--muted) !important; background: rgba(255,250,242,0.84) !important; }

.snapshot {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255,255,255,0.58);
}
.snapshot-row { min-height: 92px; padding: 15px; border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; gap: 10px; }
.snapshot-row:last-child { border-right: 0; }
.snapshot-row span { color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.snapshot-row strong { color: var(--ink); font-size: 23px; line-height: 1.05; font-weight: 800; overflow-wrap: anywhere; }
.snapshot-row--accent { background: rgba(31,111,107,0.08); }
.snapshot-row--accent strong { color: var(--teal); }

.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-top: 18px; }
.kpi-tile, .dock-tile {
  min-height: 128px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.58);
}
.kpi-label, .dock-tile span { color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.kpi-value, .dock-tile strong { color: var(--ink); font-size: 30px; line-height: 1.05; font-weight: 800; overflow-wrap: anywhere; }
.kpi-sub { color: var(--muted); font-size: 12px; }

.rail {
  position: sticky;
  top: 90px;
  padding: 16px;
}
.rail-header { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.rail-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 6px rgba(47,127,95,0.12); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.76); opacity: 0.55; } }
.dock { display: grid; gap: 10px; }
.dock-tile { min-height: 108px; }
.dock-tile strong { font-size: 24px; }

.verdict {
  margin-top: 18px;
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--cream);
}
.verdict-badge { display: inline-flex; padding: 5px 8px; border-radius: var(--radius-sm); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.verdict h3 { margin-top: 12px; font-family: "Newsreader", Georgia, serif; font-size: 42px; line-height: 1; }
.verdict-reasons { margin: 12px 0 0; padding-left: 18px; color: var(--ink-2); }
.verdict--go { border-color: rgba(47,127,95,0.38); }
.verdict--go .verdict-badge { background: rgba(47,127,95,0.12); color: var(--success); }
.verdict--caution { border-color: rgba(181,121,43,0.38); }
.verdict--caution .verdict-badge { background: rgba(181,121,43,0.12); color: var(--warning); }
.verdict--no { border-color: rgba(169,79,68,0.38); }
.verdict--no .verdict-badge { background: rgba(169,79,68,0.12); color: var(--danger); }

.exec-table {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.58);
  overflow: hidden;
}
.exec-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; padding: 12px 15px; border-bottom: 1px solid var(--line); color: var(--muted); }
.exec-row:last-child { border-bottom: 0; }
.exec-row strong { color: var(--ink); font-size: 14px; text-align: right; }
.exec-row--bold { background: rgba(31,111,107,0.06); color: var(--ink); font-weight: 750; }

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 300;
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--cream);
  box-shadow: var(--shadow-soft);
  transition: opacity 180ms var(--ease), transform 180ms var(--ease);
}
.toast.show { opacity: 1; transform: translateY(0); }

.lookup-modal {
  position: fixed;
  inset: 0;
  z-index: 420;
  display: grid;
  align-items: start;
  justify-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms var(--ease);
}

.lookup-modal.show {
  opacity: 1;
  pointer-events: none;
}

.lookup-modal-backdrop {
  position: absolute;
  inset: 0;
  background: transparent;
  backdrop-filter: none;
}

.lookup-modal-panel {
  position: relative;
  width: min(430px, calc(100% - 28px));
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-top: 92px;
  overflow: hidden;
  padding: 14px 16px;
  border: 1px solid rgba(255,250,242,0.2);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255,250,242,0.08), rgba(255,250,242,0.03)),
    rgba(24, 28, 26, 0.92);
  color: var(--cream);
  box-shadow: 0 18px 48px rgba(0,0,0,0.28);
  backdrop-filter: blur(14px) saturate(130%);
  transform: translateY(-8px);
  transition: transform 260ms var(--ease);
}

.lookup-modal.show .lookup-modal-panel { transform: translateY(0); }

.lookup-orbit {
  position: relative;
  width: 38px;
  height: 38px;
  margin: 0;
  border: 1px solid rgba(255,250,242,0.16);
  border-radius: 50%;
  background: rgba(255,250,242,0.05);
}

.lookup-orbit::before,
.lookup-orbit::after,
.lookup-orbit span {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.lookup-orbit::before {
  inset: 6px;
  border: 1px solid rgba(255,250,242,0.14);
}

.lookup-orbit::after {
  inset: 15px;
  background: var(--cream);
  box-shadow: 0 0 14px rgba(216,148,95,0.55);
}

.lookup-orbit span:nth-child(1) {
  inset: 2px;
  border-top: 2px solid var(--copper-2);
  border-right: 2px solid transparent;
  animation: lookupSpin 1.5s linear infinite;
}

.lookup-orbit span:nth-child(2) {
  display: none;
}

.lookup-orbit span:nth-child(3) {
  display: none;
}

.lookup-kicker {
  color: var(--copper-2);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.lookup-modal-copy strong {
  display: block;
  margin-top: 3px;
  font-size: 16px;
  line-height: 1.15;
}

.lookup-modal-copy p {
  margin-top: 4px;
  color: rgba(255,250,242,0.68);
  font-size: 12px;
}

.lookup-steps { display: none; }

.lookup-progress {
  grid-column: 1 / -1;
  height: 3px;
  overflow: hidden;
  margin-top: 2px;
  border-radius: 999px;
  background: rgba(255,250,242,0.1);
}

.lookup-progress span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--copper-2), var(--cream));
  animation: lookupSweep 1.2s var(--ease) infinite;
}

@keyframes lookupSpin { to { transform: rotate(360deg); } }
@keyframes lookupSweep {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(260%); }
}
.site-footer {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 32px 0 48px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.site-footer span:first-child { color: var(--ink); font-weight: 800; }
.fade-in { animation: fadeIn 420ms var(--ease) both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.reveal-up { opacity: 0; transform: translateY(18px); }

/* Dedicated app page */
body.app-page {
  min-height: 100vh;
  color: var(--cream);
  background:
    linear-gradient(135deg, rgba(180, 106, 60, 0.18), transparent 28%),
    linear-gradient(225deg, rgba(31, 111, 107, 0.18), transparent 34%),
    #121412;
}

body.app-page::before {
  background:
    linear-gradient(rgba(255,250,242,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,250,242,0.028) 1px, transparent 1px),
    #121412;
  background-size: 46px 46px;
}

body.app-page::after {
  background:
    radial-gradient(circle at 18% 0%, rgba(216, 148, 95, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(255,250,242,0.045), transparent 32%);
}

.app-page .app-header {
  background: rgba(16, 20, 18, 0.94);
  backdrop-filter: blur(24px) saturate(140%);
  border-bottom-color: rgba(255, 250, 242, 0.1);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 4px 28px rgba(0, 0, 0, 0.36);
}
.app-page .brand-logo { filter: brightness(0) invert(1) opacity(0.9); }
.app-page .brand:hover .brand-logo { filter: brightness(0) invert(1) opacity(1); }
.app-page .brand-tag {
  color: rgba(255, 250, 242, 0.42);
  border-left-color: rgba(255, 250, 242, 0.14);
}
.app-page .site-nav a { color: rgba(255, 250, 242, 0.55); }
.app-page .site-nav a:hover {
  color: var(--cream);
  background: rgba(255, 250, 242, 0.08);
}
.app-page .btn-ghost { background: rgba(255, 250, 242, 0.08); color: rgba(255, 250, 242, 0.88); border-color: rgba(255, 250, 242, 0.16); }
.app-page .btn-ghost:hover { background: rgba(255, 250, 242, 0.14); }
.app-page .btn-primary { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.app-page .btn-primary:hover { background: var(--copper-2); border-color: var(--copper-2); color: var(--ink); }

.app-main {
  width: min(1540px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 48px;
}

.app-command {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin-bottom: 22px;
  padding: 22px;
  border: 1px solid rgba(255,250,242,0.12);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255,250,242,0.1), rgba(255,250,242,0.035)),
    rgba(31, 36, 34, 0.72);
  box-shadow: 0 28px 90px rgba(0,0,0,0.28);
  overflow: hidden;
}

.app-command-copy h1 {
  max-width: 980px;
  margin-top: 6px;
  font-size: 32px;
  line-height: 1.04;
  font-weight: 800;
  color: var(--cream);
}

.app-command-copy p {
  max-width: 740px;
  margin-top: 8px;
  color: rgba(255,250,242,0.68);
  font-size: 14px;
}

.app-command-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }

.app-page .app-shell {
  width: 100%;
  margin: 0 0 26px;
  grid-template-columns: 262px minmax(0, 1fr) 318px;
  gap: 22px;
}

.app-page .sidebar,
.app-page .rail,
.app-page .step-card,
.workspace-chrome {
  border-color: rgba(255,250,242,0.12);
  box-shadow: 0 24px 80px rgba(0,0,0,0.24);
}

.app-page .sidebar {
  top: 92px;
  padding: 18px;
  background: rgba(18, 20, 18, 0.78);
  color: var(--cream);
}

.sidebar-brand-lockup {
  display: grid;
  gap: 4px;
  padding: 14px;
  margin-bottom: 16px;
  border: 1px solid rgba(255,250,242,0.12);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(216,148,95,0.16), rgba(31,111,107,0.12));
}

.sidebar-brand-lockup span {
  color: var(--copper-2);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.sidebar-brand-lockup strong { font-size: 18px; line-height: 1.05; }
.app-page .sidebar-section h4 { color: rgba(255,250,242,0.5); }
.app-page .step-btn,
.app-page .run-item { color: rgba(255,250,242,0.62); }
.app-page .step-btn:hover,
.app-page .run-item:hover { background: rgba(255,250,242,0.08); color: var(--cream); }
.app-page .step-btn.active,
.app-page .run-item.active {
  background: linear-gradient(135deg, var(--cream), #e9dccb);
  color: var(--ink);
  border-color: rgba(255,250,242,0.34);
  box-shadow: 0 14px 36px rgba(0,0,0,0.28);
}
.app-page .step-icon { border-color: rgba(255,250,242,0.18); background: rgba(255,250,242,0.06); }
.app-page .step-btn.active .step-icon { border-color: rgba(23,21,18,0.18); background: rgba(23,21,18,0.06); }
.app-page .muted { color: rgba(255,250,242,0.5); }

.app-page .workspace { min-width: 0; }
.workspace-chrome {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 320px);
  gap: 22px;
  align-items: center;
  margin-bottom: 18px;
  padding: 15px 16px;
  border: 1px solid rgba(255,250,242,0.13);
  border-radius: var(--radius);
  background: rgba(246, 239, 229, 0.94);
  color: var(--ink);
  backdrop-filter: blur(18px) saturate(145%);
}

.workspace-label {
  display: block;
  color: var(--copper);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}
.workspace-chrome strong { font-size: 13px; }
.workspace-chrome .workspace-progress { margin: 0; height: 10px; }

.app-page .step-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.86), rgba(255,250,242,0.94)),
    var(--cream);
  color: var(--ink);
  border-color: rgba(255,250,242,0.34);
  padding: 36px;
}

.app-page .step-card-header {
  margin-bottom: 30px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.app-page .step-card-header h2 {
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-size: 36px;
  line-height: 1.04;
  font-weight: 820;
}
.app-page .field-input { min-height: 52px; background: rgba(255,255,255,0.82); }
.app-page .grid { gap: 20px; }
.app-page .field { gap: 9px; }
.app-page .field-input input,
.app-page .field-input select {
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  font-size: 15px;
  font-weight: 720;
}

.app-page .site-identity-grid {
  grid-template-columns: 1fr;
  gap: 22px;
}

.app-page .site-planning-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 24px;
  margin-top: 26px;
}

.app-page .site-planning-grid .field:nth-child(2) {
  grid-column: 1 / -1;
  grid-row: 2;
}

.app-page .site-planning-grid .field:nth-child(3) {
  grid-column: 2;
  grid-row: 1;
}

.app-page .field--address .field-input {
  min-height: 58px;
}

.app-page .field--address .field-input input {
  padding-right: 18px;
}

.app-page .field--address .btn-inline {
  min-width: 86px;
  margin: 6px;
}

.app-page .site-planning-grid .field-input {
  min-height: 56px;
}
.app-page .map-card { min-height: 420px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.55); }
.app-page .map { height: 430px; }
.app-page .snapshot { background: rgba(255,255,255,0.78); }

.app-page .rail {
  top: 92px;
  padding: 18px;
  background: rgba(246, 239, 229, 0.96);
  color: var(--ink);
}

.app-page .dock { gap: 12px; }
.app-page .dock-tile {
  min-height: 112px;
  padding: 20px;
  border-color: rgba(23,21,18,0.1);
  background: linear-gradient(180deg, rgba(255,255,255,0.82), rgba(255,250,242,0.68));
}
.app-page .dock-tile strong { font-size: 26px; }
.app-page .dock-verdict {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}
.app-page .dock-verdict span,
.app-page .dock-verdict strong { color: var(--cream); }

.app-page .step-card .btn-primary,
.app-page .rail .btn-primary {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

.app-page .step-card .btn-primary:hover,
.app-page .rail .btn-primary:hover {
  background: var(--copper);
  color: var(--cream);
  border-color: var(--copper);
}

.app-page .step-card .btn-ghost,
.app-page .rail .btn-ghost {
  background: rgba(255,255,255,0.62);
  color: var(--ink-2);
  border-color: var(--line-strong);
}

/* Auth */
.auth-checking .app-main,
.auth-checking .app-header {
  visibility: hidden;
}

/* Waitlist admin (dark app theme) */
.wladmin-main { width: min(1040px, calc(100% - 48px)); margin: 112px auto 96px; }
.wladmin-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.wladmin-head h1 { margin-top: 12px; font-size: 36px; color: var(--cream); }
.wladmin-summary { margin-top: 10px; color: rgba(255, 250, 242, 0.62); font-size: 15px; }
.wladmin-summary strong { color: var(--copper-2); font-weight: 700; }
.wladmin-actions { display: flex; gap: 10px; }

.wladmin #wlMessage { margin-top: 16px; min-height: 20px; font-size: 14px; color: rgba(255, 250, 242, 0.7); }
.wladmin #wlMessage[data-tone="error"] { color: #f0a58c; }
.wladmin #wlMessage[data-tone="warning"] { color: #e6c06a; }
.wladmin #wlMessage[data-tone="success"] { color: #8fd0a0; }

.wladmin-table {
  margin-top: 14px;
  border: 1px solid rgba(255, 250, 242, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 250, 242, 0.045);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 22px 60px rgba(0, 0, 0, 0.34);
  overflow: hidden;
}
.wladmin-scroll { overflow-x: auto; }
.wladmin-row {
  display: grid;
  grid-template-columns: 52px minmax(140px, 1.3fr) minmax(200px, 1.7fr) minmax(140px, 1.2fr) minmax(150px, 0.9fr);
  gap: 18px;
  min-width: 680px;
  align-items: center;
  padding: 15px 22px;
  border-bottom: 1px solid rgba(255, 250, 242, 0.08);
  font-size: 14px;
  color: rgba(255, 250, 242, 0.84);
}
.wladmin-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.wladmin-row--head {
  background: rgba(255, 250, 242, 0.06);
  color: rgba(255, 250, 242, 0.5);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

#wlRows .wladmin-row:nth-child(odd) { background: rgba(255, 250, 242, 0.022); }
#wlRows .wladmin-row:hover { background: rgba(255, 250, 242, 0.075); }
#wlRows .wladmin-row:last-child { border-bottom: 0; }
#wlRows .wladmin-row span:nth-child(1) { color: rgba(255, 250, 242, 0.4); font-variant-numeric: tabular-nums; }
#wlRows .wladmin-row span:nth-child(2) { color: var(--cream); font-weight: 600; }
#wlRows .wladmin-row span:nth-child(5) { color: rgba(255, 250, 242, 0.55); font-size: 13px; }
.wladmin-row a { color: var(--copper-2); text-decoration: none; }
.wladmin-row a:hover { text-decoration: underline; }

.wladmin-empty { padding: 40px 22px; text-align: center; color: rgba(255, 250, 242, 0.55); font-size: 15px; }

.auth-page {
  min-height: 100vh;
  background: var(--paper);
}

.auth-main {
  width: min(1080px, calc(100% - 48px));
  min-height: calc(100vh - 74px);
  margin: 0 auto;
  display: grid;
  align-items: center;
  padding: 58px 0;
}

.auth-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.68fr);
  gap: 34px;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 242, 0.78);
  box-shadow: var(--shadow-crisp);
  overflow: hidden;
}

.auth-panel-wide { grid-template-columns: minmax(0, 0.82fr) minmax(420px, 0.94fr); }

.auth-copy {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 34px;
  background:
    linear-gradient(135deg, rgba(31, 36, 34, 0.88), rgba(31, 36, 34, 0.55)),
    url("https://images.unsplash.com/photo-1580060839134-75a5edca2e99?auto=format&fit=crop&w=1600&q=78");
  background-size: cover;
  background-position: center;
  color: var(--cream);
}

.auth-copy h1 {
  max-width: 620px;
  margin-top: 12px;
  font-size: clamp(40px, 6vw, 74px);
  line-height: 0.92;
}

.auth-copy p {
  max-width: 520px;
  margin-top: 18px;
  color: rgba(255, 250, 242, 0.76);
  font-size: 16px;
}

.auth-form {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 34px;
}

.auth-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: center;
}

.auth-span-2 { grid-column: 1 / -1; }

.auth-form .field {
  display: grid;
  gap: 8px;
}

.auth-form input {
  min-height: 46px;
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.72);
  color: var(--ink);
  padding: 10px 12px;
  outline: none;
}

.auth-form input:focus {
  border-color: rgba(180, 106, 60, 0.55);
  box-shadow: 0 0 0 3px rgba(180, 106, 60, 0.12);
}

.auth-status {
  min-height: 22px;
  color: var(--muted);
  font-size: 13px;
}

.auth-status[data-tone="error"] { color: var(--danger); }
.auth-status[data-tone="warning"] { color: var(--warning); }
.auth-status[data-tone="success"] { color: var(--success); }

.auth-switch {
  color: var(--muted);
  font-size: 14px;
}
.auth-switch a { color: var(--copper); font-weight: 750; }

.auth-user-label {
  max-width: 220px;
  color: rgba(255, 250, 242, 0.56);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .site-header { grid-template-columns: auto auto; min-height: 78px; padding: 10px 16px; }
  .site-nav { display: none; }
  .site-actions { justify-self: end; }
  .brand { min-width: 168px; }
  .brand-logo-shell, .brand-logo { width: 118px; }
  .hero-logo { width: min(620px, 92vw); }
  .hero-lede { font-size: 20px; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-shell { grid-template-columns: 220px minmax(0, 1fr); }
  .rail { position: relative; top: auto; grid-column: 1 / -1; }
  .dock { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .auth-panel,
  .auth-panel-wide { grid-template-columns: 1fr; }
  .auth-copy { min-height: 320px; }
}

@media (max-width: 820px) {
  .site-header { padding: 10px 12px; gap: 10px; }
  .brand { min-width: 126px; }
  .brand-logo-shell, .brand-logo { width: 118px; }
  .brand-tag { display: none; }
  .site-actions .btn-ghost { display: none; }
  .hero { min-height: calc(100vh - 74px); }
  .hero-inner { width: calc(100% - 32px); padding: 64px 0 28px; }
  .hero-logo { width: min(430px, 94vw); }
  .hero-lede { font-size: 18px; }
  .hero-proof {
    position: relative;
    left: auto;
    bottom: auto;
    translate: 0 0;
    width: calc(100% - 32px);
    margin: 0 auto 22px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-proof span { min-height: 62px; padding: 12px; }
  .intro-strip, .split, .service-grid, .pricing-grid, .app-intro, .app-shell, .grid-2, .grid-3, .dock { grid-template-columns: 1fr; }
  .intro-strip { width: calc(100% - 32px); }
  .intro-strip div { border-right: 0; border-bottom: 1px solid var(--line); }
  .section, .app-intro, .app-shell, .site-footer { width: calc(100% - 32px); }
  .section { padding-top: 70px; }
  .section h2, .app-intro h2 { font-size: 40px; }
  .app-intro { margin-top: 72px; padding-top: 30px; }
  .app-intro { align-items: start; }
  .app-intro-actions { justify-content: start; }
  .sidebar, .rail { position: relative; top: auto; max-height: none; }
  .workspace { order: 1; }
  .rail { order: 2; }
  .sidebar { order: 3; }
  .step-card { padding: 22px 16px; }
  .step-card-header h2 { font-size: 36px; }
  .step-card-footer { flex-direction: column; align-items: stretch; }
  .footer-actions { justify-content: stretch; }
  .footer-actions .btn, .step-card-footer .btn { width: 100%; }
  .map { height: 300px; }
  .site-footer { flex-direction: column; }
  .auth-main { width: calc(100% - 24px); padding: 24px 0; }
  .auth-copy,
  .auth-form { padding: 22px; }
  .auth-copy h1 { font-size: 42px; }
  .auth-form-grid { grid-template-columns: 1fr; }
  .auth-span-2 { grid-column: auto; }
  .auth-page .site-actions .btn-ghost,
  .app-page .site-actions .auth-user-label,
  .app-page .site-actions #btnLogout,
  .app-page .site-actions .btn-ghost { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal-up { opacity: 1; transform: none; }
}

@media (max-width: 1180px) {
  .app-page .app-shell { grid-template-columns: 230px minmax(0, 1fr); gap: 18px; }
  .app-page .rail { grid-column: 1 / -1; }
  .app-page .dock { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .app-command-copy h1 { font-size: 30px; }
  .app-page .step-card { padding: 32px; }
  .app-page .grid { gap: 18px; }
  .app-page .site-identity-grid,
  .app-page .site-planning-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .app-page .site-planning-grid .field:nth-child(2),
  .app-page .site-planning-grid .field:nth-child(3) {
    grid-column: auto;
    grid-row: auto;
  }
  .app-page .site-planning-grid { margin-top: 20px; }
}

@media (max-width: 820px) {
  .app-main { width: calc(100% - 24px); padding-top: 18px; }
  .app-command {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
  }
  .app-command-copy h1 { font-size: 26px; }
  .app-command-copy p { font-size: 13px; }
  .app-command-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); justify-content: stretch; }
  .app-command-actions .btn { width: 100%; min-height: 42px; }
  .app-page .app-shell {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .workspace-chrome {
    position: relative;
    top: auto;
    grid-template-columns: 1fr;
  }
  .app-page .workspace { order: 1; }
  .app-page .rail { order: 2; grid-column: auto; }
  .app-page .sidebar { order: 3; }
  .app-page .dock { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-page .step-card { padding: 26px 18px; }
  .app-page .step-card-header h2 { font-size: 32px; }
  .app-page .grid { gap: 16px; }
  .app-page .field { gap: 8px; }
  .app-page .field--address .field-input { flex-direction: column; }
  .app-page .field--address .btn-inline { width: calc(100% - 12px); min-height: 42px; }
  .lookup-modal { padding: 16px; }
  .lookup-modal-panel { padding: 22px; }
  .lookup-modal-copy strong { font-size: 24px; }
  .lookup-steps { grid-template-columns: 1fr; }
  .app-page .map-card { min-height: 320px; }
  .app-page .map { height: 320px; }
}

/* ======================================================================
   Mobile navigation menu (hamburger) — collapses nav + actions on phones
   ====================================================================== */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 40px;
  flex: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 220ms var(--ease), opacity 150ms var(--ease);
}
.app-page .nav-toggle { background: rgba(255, 250, 242, 0.08); border-color: rgba(255, 250, 242, 0.2); }
.app-page .nav-toggle span { background: var(--cream); }
.site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1180px) {
  .site-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    column-gap: 12px;
    row-gap: 0;
  }
  .brand { order: 0; }
  .nav-toggle { display: inline-flex; order: 1; }
  .site-nav,
  .site-actions { order: 2; flex-basis: 100%; }

  /* Collapsed by default on mobile */
  .site-nav { display: none; }
  .site-actions { display: none; }

  /* Expanded when the hamburger is tapped */
  .site-header.nav-open .site-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    width: 100%;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }
  .site-header.nav-open .site-nav a { padding: 12px 12px; border-radius: var(--radius-sm); }
  .site-header.nav-open .site-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    margin-top: 8px;
    padding-bottom: 8px;
  }
  /* Re-show items that desktop declutter rules hide, but never the [hidden] ones */
  .site-header.nav-open .site-actions > *:not([hidden]) { display: flex !important; width: 100%; }
  .site-header.nav-open .site-actions .btn:not([hidden]) { width: 100%; justify-content: center; min-height: 46px; }
  .site-header.nav-open .site-actions .account { justify-content: flex-start; }
  .app-page .site-header.nav-open .site-nav { border-top-color: rgba(255, 250, 242, 0.12); }
}

/* ======================================================================
   Phone refinements (≤ 560px)
   ====================================================================== */
@media (max-width: 560px) {
  .hero-lede { font-size: 16px; }
  .hero-actions { width: 100%; gap: 10px; }
  .hero-actions .btn { width: 100%; }
  .hero-proof { grid-template-columns: 1fr; }
  .hero-proof span { min-height: 54px; }

  .section { padding-top: 54px; }
  .section h2, .app-intro h2 { font-size: 30px; }
  .section-copy { font-size: 16px; }
  .section-heading { gap: 8px; }
  .intro-strip div { padding: 20px; }
  .service-card, .price-card { padding: 26px 22px; }
  .service-card h3, .price-card h3 { margin-top: 30px; }

  .waitlist-card { padding: 24px 20px; gap: 22px; }
  .waitlist-copy h2 { font-size: 26px; }
  .waitlist-copy p { font-size: 15px; }

  .account { padding: 4px 12px 4px 5px; }
  .account-email { max-width: 100%; font-size: 12px; }

  .site-footer { padding: 28px 0; gap: 6px; }

  /* Auth pages */
  .auth-copy h1 { font-size: 34px; }
  .auth-copy,
  .auth-form { padding: 20px; }

  /* App feasibility desk */
  .app-command-actions { grid-template-columns: 1fr; }
  .app-command-copy h1 { font-size: 22px; }
  .app-page .dock { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-page .dock-tile strong { font-size: 22px; }
  .app-page .step-card { padding: 22px 14px; }
  .app-page .step-card-header h2 { font-size: 26px; }
  .app-page .map { height: 280px; }
  .app-page .map-card { min-height: 280px; }

  /* Waitlist admin */
  .wladmin-main { margin: 96px auto 64px; }
  .wladmin-head h1 { font-size: 26px; }
  .wladmin-actions { width: 100%; }
  .wladmin-actions .btn { flex: 1; }
  .wladmin-row { min-width: 560px; }
}

/* ======================================================================
   Scroll story — "watch a deal take shape"
   A development assembles as you scroll down and takes itself apart as
   you scroll up. The tall .story-scroll wrapper provides the scrub range;
   the stage stays sticky for the whole ride. scrollstory.js drives every
   element from a single 0–1 progress value, so reversal is free.
   ====================================================================== */
.story {
  position: relative;
  background: #16130f;
  color: #f2ede4;
}
#how { scroll-margin-top: 0; }
.story-scroll { position: relative; height: 380vh; }
.story-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  box-sizing: border-box;
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: 96px 32px 36px;
  display: grid;
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
/* faint drafting grid, only inside the stage */
.story-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(242, 237, 228, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 237, 228, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(120% 90% at 50% 45%, #000 55%, transparent 100%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 45%, #000 55%, transparent 100%);
}
.story-kicker {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #d9975f;
}
.story-rail { position: relative; }
.story-rail h2 {
  font-family: "Newsreader", Georgia, serif;
  font-optical-sizing: auto;
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 12px 0 30px;
  color: #f2ede4;
}
.story-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.story-step {
  display: flex;
  gap: 14px;
  opacity: 0.32;
  transform: translateX(0);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.story-step.active { opacity: 1; transform: translateX(7px); }
.story-step > span {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  color: #d9975f;
  padding-top: 3px;
}
.story-step strong {
  display: block;
  font-size: 15.5px;
  font-weight: 650;
  margin-bottom: 3px;
  color: #f2ede4;
}
.story-step p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(242, 237, 228, 0.58);
}
.story-scene { position: relative; min-width: 0; }
.story-scene svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100vh - 150px);
}
/* initial element states — scrollstory.js animates these */
.sb-stake { opacity: 0; }
#sbSurveyLabel, #sbEnvLabel, #sbCrane { opacity: 0; }
#sbEnvelope {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transform: scaleY(0);
  opacity: 0;
}
.sb-floor { opacity: 0; }
.sb-win { fill: #eeb488; fill-opacity: 0.07; }

.story-chip {
  position: absolute;
  right: 4%;
  top: 13%;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 18px;
  background: rgba(26, 24, 20, 0.94);
  border: 1px solid rgba(98, 192, 143, 0.42);
  border-radius: 10px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  opacity: 0;
}
.story-chip i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #62c08f;
  box-shadow: 0 0 14px rgba(98, 192, 143, 0.8);
}
.story-chip span {
  display: block;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #62c08f;
}
.story-chip em {
  font-family: "Newsreader", Georgia, serif;
  font-style: italic;
  font-size: 19px;
  color: #f2ede4;
}

@media (max-width: 900px) {
  .story-scroll { height: 330vh; }
  .story-stage {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 88px 20px 20px;
    align-items: start;
    align-content: start;
  }
  .story-rail h2 { margin-bottom: 16px; font-size: clamp(26px, 6vw, 34px); }
  .story-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
  .story-step p { display: none; }
  .story-scene svg { max-height: 48vh; margin-top: 8px; }
  .story-chip { right: 2%; top: 6%; padding: 10px 14px; }
  .story-chip em { font-size: 16px; }
}

/* Reduced motion / no-JS: show the finished state as a plain figure. */
.story-static .story-scroll { height: auto; }
.story-static .story-stage { position: static; height: auto; padding-bottom: 64px; }
.story-static .story-step { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .story-step { transition: none; }
}

/* ======================================================================
   Audit log admin page — reuses the wladmin shell; its own row grid.
   ====================================================================== */
.audit-filters {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 18px;
}
.audit-filters select,
.audit-filters input {
  height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(255, 250, 242, 0.16);
  border-radius: var(--radius-sm);
  background: rgba(255, 250, 242, 0.06);
  color: var(--cream);
  font: inherit;
  font-size: 13.5px;
}
.audit-filters select:focus,
.audit-filters input:focus { outline: none; border-color: var(--copper-2); }
.audit-filters input { min-width: 220px; }

.audit-row {
  display: grid;
  grid-template-columns: 158px minmax(180px, 1.1fr) 128px minmax(240px, 2fr);
  gap: 18px;
  min-width: 760px;
  align-items: center;
  padding: 13px 22px;
  border-bottom: 1px solid rgba(255, 250, 242, 0.08);
  font-size: 13.5px;
  color: rgba(255, 250, 242, 0.84);
}
.audit-row > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.audit-row--head {
  background: rgba(255, 250, 242, 0.06);
  color: rgba(255, 250, 242, 0.5);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
#auditRows .audit-row:nth-child(odd) { background: rgba(255, 250, 242, 0.022); }
#auditRows .audit-row:hover { background: rgba(255, 250, 242, 0.075); }
#auditRows .audit-row:last-child { border-bottom: 0; }
#auditRows .audit-row > span:first-child {
  color: rgba(255, 250, 242, 0.55);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
}
.audit-detail { color: rgba(255, 250, 242, 0.6); }

.audit-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 250, 242, 0.1);
  color: rgba(255, 250, 242, 0.75);
}
.audit-badge--login    { background: rgba(98, 192, 143, 0.16); color: #8fd0a0; }
.audit-badge--logout   { background: rgba(255, 250, 242, 0.08); color: rgba(255, 250, 242, 0.6); }
.audit-badge--app_open { background: rgba(89, 176, 170, 0.16); color: #7cc7c1; }
.audit-badge--lookup   { background: rgba(217, 151, 95, 0.16); color: var(--copper-2); }
.audit-badge--export   { background: rgba(180, 144, 200, 0.18); color: #cfaede; }

.audit-load {
  display: flex;
  justify-content: center;
  padding: 16px;
}
