/* ═══════════════════════════════════════════════════════════════════════════
   GTI design system — "Surveyor's dossier" (C-12 redesign)
   Editorial serif confidence + instrument-grade precision.
   Fraunces (display) · Inter (UI) · ivory paper · viridian/brass/brick states.
   The demo console keeps styles.css; this file styles the product only.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --ink: #1b1a15;
  --ink-2: #3a3830;
  --ink-3: #57534a;
  --paper: #faf8f3;
  --paper-2: #f2eee4;
  --surface: #ffffff;
  --line: #e5dfd2;
  --line-soft: #eee9dd;
  --muted: #7d7666;
  --viridian: #1e5c48;
  --viridian-deep: #17473a;
  --viridian-tint: #e7efe9;
  --brass: #8a6a2f;
  --brass-tint: #f4ecdd;
  --brick: #a8402f;
  --brick-tint: #f6e7e2;
  --survey: #3e5c76;
  --survey-tint: #e8edf2;
  --charcoal: #14130f;
  --charcoal-2: #201e18;
  --on-dark: #f5f1e8;
  --on-dark-muted: #b0a993;

  --font-display: 'Fraunces', 'Source Serif 4', georgia, serif;
  --font-ui: 'Inter', 'Noto Naskh Arabic', system-ui, -apple-system, sans-serif;

  --r: 12px;
  --r-sm: 8px;
  --shadow: 0 1px 2px rgba(27, 26, 21, 0.05), 0 8px 24px rgba(27, 26, 21, 0.07);
  --shadow-lift: 0 2px 4px rgba(27, 26, 21, 0.06), 0 16px 40px rgba(27, 26, 21, 0.12);
  --pad: clamp(18px, 4vw, 48px);
  --ease: cubic-bezier(0.22, 0.8, 0.3, 1);
}

/* ── base ─────────────────────────────────────────────────────────────────── */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.65 var(--font-ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 560; line-height: 1.15; margin: 0 0 0.45em; letter-spacing: -0.01em; }
h1 { font-size: clamp(30px, 4.6vw, 52px); }
h2 { font-size: clamp(22px, 3vw, 32px); }
h3 { font-size: 18px; }
p { margin: 0 0 1em; }
a { color: var(--viridian); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono, .fingerprint { font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: 0.86em; letter-spacing: 0.01em; }
.num { font-variant-numeric: tabular-nums; }
::selection { background: rgba(30, 92, 72, 0.16); }

:focus-visible { outline: 2px solid var(--viridian); outline-offset: 2px; border-radius: 4px; }
button, input, select, textarea { font: inherit; color: inherit; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--on-dark); padding: 10px 16px; z-index: 200; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }

/* ── shell ────────────────────────────────────────────────────────────────── */
#topbar {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: 18px;
  padding: 0 var(--pad);
  height: 62px;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
#topbar.on-dark { background: color-mix(in srgb, var(--charcoal) 78%, transparent); border-bottom-color: rgba(245, 241, 232, 0.1); color: var(--on-dark); }
.brand { display: flex; align-items: baseline; gap: 10px; cursor: pointer; user-select: none; }
.brand .logo { font-family: var(--font-display); font-weight: 640; font-size: 21px; letter-spacing: 0.02em; }
.brand .sub { font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
#topbar.on-dark .sub { color: var(--on-dark-muted); }

#nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
#nav button {
  border: 0; background: none; cursor: pointer;
  padding: 8px 13px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--ink-3);
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
#nav button:hover { background: var(--paper-2); color: var(--ink); }
#nav button.on { background: var(--ink); color: var(--on-dark); }
#topbar.on-dark #nav button { color: var(--on-dark-muted); }
#topbar.on-dark #nav button:hover { background: rgba(245, 241, 232, 0.1); color: var(--on-dark); }
#topbar.on-dark #nav button.on { background: var(--on-dark); color: var(--ink); }
#nav .nav-cta { background: var(--viridian); color: #fff !important; font-weight: 600; }
#nav .nav-cta:hover { background: var(--viridian-deep); }
#nav .nav-menu-toggle { display: none; }

#foot {
  margin-top: 72px; padding: 34px var(--pad) 44px;
  background: var(--charcoal); color: var(--on-dark-muted);
  font-size: 13px; line-height: 1.7;
}
#foot strong { color: var(--on-dark); }

main { min-height: 62vh; }
.pad { padding: clamp(20px, 4vw, 44px) var(--pad); max-width: 1180px; margin: 0 auto; }
.narrow { max-width: 760px; }

/* ── buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--ink); background: var(--ink); color: var(--on-dark);
  border-radius: 999px; padding: 9px 20px;
  font-size: 14px; font-weight: 560; cursor: pointer; text-decoration: none;
  transition: transform 0.16s var(--ease), background 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn.primary { background: var(--viridian); border-color: var(--viridian); color: #fff; }
.btn.primary:hover { background: var(--viridian-deep); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink-3); box-shadow: none; }
.btn.on-dark-ghost { background: transparent; color: var(--on-dark); border-color: rgba(245, 241, 232, 0.35); }
.btn.big { padding: 13px 28px; font-size: 15.5px; }
.btn.link { border: 0; background: none; color: var(--viridian); padding: 4px 2px; font-weight: 560; box-shadow: none; transform: none; }
.btn.link:hover { text-decoration: underline; box-shadow: none; }
.btn.danger-ghost { background: none; border-color: var(--line); color: var(--brick); }
.btn[disabled] { opacity: 0.5; cursor: default; transform: none !important; box-shadow: none !important; }

/* ── status pills ─────────────────────────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 999px; padding: 3px 11px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.01em;
  border: 1px solid transparent;
  max-width: 100%; text-align: left;
}
.pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.pill.state-green { background: var(--viridian-tint); color: var(--viridian-deep); border-color: #cfe0d5; }
.pill.state-amber { background: var(--brass-tint); color: #6d5322; border-color: #e6d9bc; }
.pill.state-red { background: var(--brick-tint); color: #85301f; border-color: #ecd0c6; }
.pill.state-grey { background: var(--paper-2); color: var(--ink-3); border-color: var(--line); }
.pill.no-dot::before { display: none; }

/* ── forms ────────────────────────────────────────────────────────────────── */
.form label { display: block; margin: 0 0 14px; font-size: 13px; font-weight: 560; color: var(--ink-2); }
.form input, .form select, .form textarea {
  width: 100%; margin-top: 5px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface); padding: 10px 12px; font-size: 14.5px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--viridian);
  box-shadow: 0 0 0 3px rgba(30, 92, 72, 0.13);
}
.err-inline { display: block; margin-top: 10px; font-size: 13.5px; color: var(--brick); }
.err {
  background: var(--brick-tint); border: 1px solid #ecd0c6; color: #7c2d1e;
  border-radius: var(--r); padding: 16px 18px;
}

/* ── cards / tables ───────────────────────────────────────────────────────── */
.card {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--r); padding: 20px 22px;
  box-shadow: var(--shadow);
}
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); gap: 16px; margin: 18px 0; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; margin: 14px 0; }
.tbl th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 600; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 11px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.tbl-scroll { overflow-x: auto; }
.withdrawn { opacity: 0.5; text-decoration: line-through; }

.hr-rule { border: 0; border-top: 1px solid var(--line); margin: 34px 0; }
.kicker { font-size: 12px; font-weight: 650; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass); margin-bottom: 14px; }

/* ── reveal animation (IntersectionObserver adds .in) ─────────────────────── */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.55s var(--ease), transform 0.55s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ═══════════════════════════ LANDING ═════════════════════════════════════ */
.hero {
  background:
    radial-gradient(1200px 600px at 78% 18%, rgba(62, 92, 118, 0.18), transparent 60%),
    radial-gradient(900px 520px at 12% 88%, rgba(30, 92, 72, 0.14), transparent 55%),
    var(--charcoal);
  color: var(--on-dark);
  overflow: clip;
}
.hero-inner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px; align-items: center;
  max-width: 1180px; margin: 0 auto;
  padding: clamp(48px, 8vw, 110px) var(--pad) clamp(56px, 8vw, 120px);
}
.hero .kicker { color: var(--brass); }
.hero h1 { color: var(--on-dark); margin-bottom: 18px; }
.hero .lead { font-size: clamp(15.5px, 1.6vw, 18px); color: var(--on-dark-muted); max-width: 34em; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-honesty { margin-top: 34px; font-size: 13px; color: var(--on-dark-muted); border-left: 2px solid var(--brass); padding-left: 14px; max-width: 30em; }

/* hero 3D layer stack */
.h3d { position: relative; height: clamp(360px, 42vw, 520px); perspective: 1100px; }
.hlayer {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  transform:
    translate3d(calc(var(--px, 0) * (1 + var(--i) * 0.35) * 1px), calc(var(--i) * -40px + var(--py, 0) * (1 + var(--i) * 0.25) * 1px), 0);
  opacity: 0;
  animation: hl-rise 0.9s var(--ease) forwards;
  animation-delay: calc(0.25s + var(--i) * 0.42s);
  will-change: transform, opacity;
}
@keyframes hl-rise { from { opacity: 0; transform: translate3d(0, calc(var(--i) * -40px + 46px), 0); } to { opacity: 1; transform: translate3d(0, calc(var(--i) * -40px), 0); } }
.h3d.settled .hlayer { animation: hl-float 7s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -1.3s); }
@keyframes hl-float {
  from { transform: translate3d(calc(var(--px, 0) * (1 + var(--i) * 0.35) * 1px), calc(var(--i) * -40px + var(--py, 0) * 1px), 0); }
  to { transform: translate3d(calc(var(--px, 0) * (1 + var(--i) * 0.35) * 1px), calc(var(--i) * -40px - 7px + var(--py, 0) * 1px), 0); }
}
.hl-svg { width: min(74%, 400px); height: auto; overflow: visible; }
.hlabel {
  position: absolute; left: calc(50% + min(21vw, 215px)); top: 50%;
  display: flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--on-dark-muted); white-space: nowrap;
}
.hlabel i { display: block; width: 26px; height: 1px; background: var(--on-dark-muted); opacity: 0.55; }
.hlayer[data-depth="6"] .hlabel { color: var(--on-dark); }
.hlayer[data-depth="6"] .hlabel i { background: var(--brass); opacity: 1; }

/* hero artwork fills/strokes */
.hp-ground { fill: rgba(245, 241, 232, 0.04); stroke: rgba(245, 241, 232, 0.14); }
.hp-plot { fill: rgba(30, 92, 72, 0.24); stroke: #4d8a74; stroke-width: 1.2; }
.hp-face { fill: #2c2a22; stroke: #57534a; }
.hp-side { fill: #232118; stroke: #57534a; }
.hp-roof { fill: #3a3830; stroke: #6a6455; }
.hp-gable { fill: #454237; stroke: #6a6455; }
.hp-grid-frame { fill: rgba(62, 92, 118, 0.1); stroke: rgba(122, 156, 185, 0.5); }
.hp-grid { stroke: rgba(122, 156, 185, 0.32); stroke-width: 1; }
.hp-pin { fill: #c8a86a; }
.hp-doc polygon { fill: rgba(245, 241, 232, 0.9); stroke: #b8ad93; }
.hp-doc line { stroke: #9a8f74; stroke-width: 1.1; }
.hp-doc-0 polygon { fill: rgba(245, 241, 232, 0.55); }
.hp-doc-1 polygon { fill: rgba(245, 241, 232, 0.72); }
.hp-record-frame { fill: rgba(245, 241, 232, 0.05); stroke: rgba(245, 241, 232, 0.22); stroke-dasharray: 4 4; }
.hp-record-ok { fill: rgba(30, 92, 72, 0.4); stroke: #4d8a74; }
.hp-record-warn { fill: rgba(154, 106, 47, 0.4); stroke: #c8a86a; }
.hp-check-ok circle { fill: rgba(30, 92, 72, 0.5); stroke: #5aa287; }
.hp-check-warn circle { fill: rgba(154, 106, 47, 0.45); stroke: #c8a86a; }
.hp-check-glyph { fill: none; stroke: #f5f1e8; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hp-person-head { fill: none; stroke: #c8b58a; stroke-width: 1.6; }
.hp-person-body { fill: none; stroke: #c8b58a; stroke-width: 1.6; }
.hp-approve { fill: none; stroke: #5aa287; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.hp-intel-frame { fill: none; stroke: #c8a86a; stroke-width: 1.4; }
.hp-intel-glow { fill: rgba(200, 168, 106, 0.1); stroke: none; filter: blur(6px); }

/* landing sections */
.land-section { padding: clamp(48px, 7vw, 96px) var(--pad); max-width: 1180px; margin: 0 auto; }
.land-section.tinted { max-width: none; background: var(--paper-2); }
.land-section.tinted > .inner, .land-inner { max-width: 1180px; margin: 0 auto; }
.land-section.dark { max-width: none; background: var(--charcoal); color: var(--on-dark); }
.land-section.dark h2 { color: var(--on-dark); }

.trail { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 34px; counter-reset: step; }
.trail-step { position: relative; padding: 18px 16px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.trail-step .vg { width: 44px; height: 44px; margin-bottom: 10px; }
.trail-step h3 { font-size: 15.5px; font-family: var(--font-ui); font-weight: 640; }
.trail-step p { font-size: 13px; color: var(--muted); margin: 0; }
.trail-step::after { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; top: 12px; right: 14px; font-size: 11px; font-weight: 650; color: var(--brass); letter-spacing: 0.08em; }

.vg-plot { fill: var(--viridian-tint); stroke: var(--viridian); stroke-width: 1.4; }
.vg-glow { fill: rgba(138, 106, 47, 0.14); stroke: var(--brass); }
.vg-paper { fill: #fff; stroke: var(--ink-3); stroke-width: 1.3; }
.vg-frame { fill: none; stroke: var(--ink-3); stroke-width: 1.5; }
.vg-line { fill: none; stroke: var(--muted); stroke-width: 1.3; stroke-linecap: round; }
.vg-accent { fill: none; stroke: var(--viridian); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vg-accent-dot { fill: var(--viridian); }
.vg-warn { fill: none; stroke: var(--brick); stroke-width: 2; stroke-linecap: round; }

/* illustrative product mock */
.mock-wrap { position: relative; margin-top: 30px; }
.mock-note { position: absolute; top: -12px; right: 10px; z-index: 2; background: var(--ink); color: var(--on-dark); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; }
.mock {
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow-lift);
}
.mock-bar { display: flex; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); background: var(--paper); }
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.mock-body { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; }
.mock-main { padding: 22px 26px; min-width: 0; }
.mock-side { border-left: 1px solid var(--line-soft); background: var(--paper); padding: 22px; min-width: 0; }
.mock h3 { margin-bottom: 4px; }
.mock .checks-mini { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 9px; margin-top: 16px; }
.mock .checks-mini > div { min-width: 0; }
.mock .checks-mini > div { border: 1px solid var(--line-soft); border-radius: var(--r-sm); padding: 10px 12px; font-size: 12.5px; display: flex; flex-direction: column; gap: 6px; }

.etrail { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 26px 0 8px; }
.etrail-stop { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; background: var(--surface); border: 1px solid var(--line); padding: 8px 16px; border-radius: 999px; }
.etrail-stop i { font-style: normal; font-size: 11px; font-weight: 700; color: var(--brass); }
.etrail-line { flex: 1 0 18px; height: 1px; background: var(--line); min-width: 18px; }
.land-section.dark .etrail-stop { background: var(--charcoal-2); border-color: rgba(245, 241, 232, 0.16); color: var(--on-dark); }
.land-section.dark .etrail-line { background: rgba(245, 241, 232, 0.2); }
.honesty-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 28px; }
.honesty-quotes blockquote { margin: 0; padding: 18px 20px; border-left: 2px solid var(--brass); background: var(--charcoal-2); border-radius: 0 var(--r) var(--r) 0; font-family: var(--font-display); font-size: 16.5px; color: var(--on-dark); }
.honesty-quotes cite { display: block; margin-top: 10px; font-family: var(--font-ui); font-style: normal; font-size: 12px; color: var(--on-dark-muted); }

.scenarios { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 14px; margin-top: 28px; }
.scenario { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r); padding: 20px; }
.scenario .vg { width: 40px; height: 40px; margin-bottom: 10px; }

.res-feature { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 14px; margin-top: 26px; }
.res-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease); }
.res-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.res-thumb { position: relative; height: 110px; background: var(--survey-tint); overflow: hidden; }
.res-thumb .contours { position: absolute; inset: 0; width: 100%; height: 100%; }
.contours path { fill: none; stroke: rgba(62, 92, 118, 0.35); stroke-width: 1.1; }
.res-thumb.warm { background: var(--brass-tint); }
.res-thumb.warm .contours path { stroke: rgba(138, 106, 47, 0.35); }
.res-thumb.green { background: var(--viridian-tint); }
.res-thumb.green .contours path { stroke: rgba(30, 92, 72, 0.35); }
.res-thumb .vg { position: absolute; left: 16px; bottom: 12px; width: 40px; height: 40px; }
.res-card .res-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.res-card .res-body .btn { align-self: flex-start; margin-top: auto; }
.res-tag { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brass); font-weight: 650; }

/* pricing strip / page */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin: 26px 0; align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 20px; }
.plan.feature { border-color: var(--viridian); box-shadow: var(--shadow); position: relative; }
.plan.feature::before { content: 'Most useful to start'; position: absolute; top: -10px; left: 16px; background: var(--viridian); color: #fff; font-size: 10.5px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; }
.plan h3 { margin: 0; font-family: var(--font-ui); font-weight: 650; font-size: 15px; }
.plan .price { font-family: var(--font-display); font-size: 24px; font-weight: 600; }
.plan .price span { font-family: var(--font-ui); font-size: 12.5px; color: var(--muted); font-weight: 500; }
.plan .for { font-size: 13px; color: var(--muted); min-height: 2.4em; }
.plan ul { margin: 8px 0 14px; padding: 0 0 0 2px; list-style: none; font-size: 13px; display: grid; gap: 6px; }
.plan li { display: flex; gap: 8px; align-items: baseline; }
.plan li::before { content: '·'; color: var(--brass); font-weight: 700; }
.plan .btn { margin-top: auto; }

.closing { text-align: center; padding: clamp(56px, 9vw, 120px) var(--pad); }
.closing h2 { font-size: clamp(26px, 4vw, 44px); }

/* ═══════════════════════════ AUTH ════════════════════════════════════════ */
.auth-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); min-height: calc(100vh - 62px); }
.auth-visual {
  position: relative; overflow: clip;
  background: radial-gradient(800px 500px at 30% 20%, rgba(62, 92, 118, 0.2), transparent 60%), var(--charcoal);
  color: var(--on-dark);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 40px 44px;
}
.auth-visual .h3d { height: 300px; margin: 10px 0; }
.auth-visual .hlabel { display: none; }
.auth-visual blockquote { margin: 0; font-family: var(--font-display); font-size: 19px; line-height: 1.45; border-left: 2px solid var(--brass); padding-left: 16px; max-width: 26em; }
.auth-visual cite { display: block; margin-top: 10px; font-family: var(--font-ui); font-style: normal; font-size: 12px; color: var(--on-dark-muted); }
.auth-pane { display: flex; align-items: center; justify-content: center; padding: 40px var(--pad); }
.auth-card { width: min(420px, 100%); }
.auth-card h1 { font-size: 30px; }

/* ═══════════════════════════ ONBOARDING ══════════════════════════════════ */
.onb { max-width: 640px; margin: 0 auto; padding: clamp(30px, 6vw, 64px) var(--pad); }
.onb-progress { display: flex; gap: 8px; margin-bottom: 30px; }
.onb-progress i { height: 3px; flex: 1; border-radius: 2px; background: var(--line); }
.onb-progress i.done { background: var(--viridian); }
.intent-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.intent-card {
  text-align: left; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--surface);
  padding: 18px; display: flex; flex-direction: column; gap: 6px;
  transition: border-color 0.15s, transform 0.15s var(--ease), box-shadow 0.15s;
}
.intent-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.intent-card.sel { border-color: var(--viridian); box-shadow: 0 0 0 3px rgba(30, 92, 72, 0.12); }
.intent-card .vg { width: 36px; height: 36px; }
.intent-card strong { font-size: 14.5px; }
.intent-card span { font-size: 12.5px; color: var(--muted); }
.onb-actions { display: flex; gap: 12px; align-items: center; margin-top: 28px; }
details.more-detail { margin: 6px 0 16px; }
details.more-detail summary { cursor: pointer; font-size: 13.5px; color: var(--viridian); font-weight: 560; }

/* ═══════════════════════ MY PROPERTIES (collection) ══════════════════════ */
.collection-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 8px; }
.prop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 18px; margin: 22px 0; }
.prop-card {
  position: relative; text-align: left; cursor: pointer;
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  background: var(--surface); padding: 0;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.prop-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.prop-card .prop-visual {
  position: relative; height: 120px;
  background: linear-gradient(160deg, var(--paper-2), #eae3d2);
  display: flex; align-items: center; justify-content: center;
}
.prop-visual .contours { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.5; }
.prop-visual .parcel-mark { position: relative; }
.pm-plot { fill: rgba(30, 92, 72, 0.14); stroke: var(--viridian); stroke-width: 1.2; }
.pm-face { fill: #efe9da; stroke: #a89f89; }
.pm-side { fill: #e2dac7; stroke: #a89f89; }
.pm-roof { fill: #f7f3e9; stroke: #a89f89; }
.pm-dim { stroke: var(--brass); stroke-width: 1; stroke-dasharray: 3 3; }
.prop-card .prop-body { padding: 16px 18px 18px; }
.prop-card h3 { font-size: 17px; margin-bottom: 3px; }
.prop-card .loc { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.prop-card .prop-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font-size: 12px; background: var(--paper-2); border: 1px solid var(--line-soft); border-radius: 999px; padding: 2px 10px; color: var(--ink-3); }
.prop-card .open-cue { position: absolute; right: 16px; bottom: 16px; font-size: 13px; color: var(--viridian); font-weight: 600; opacity: 0; transition: opacity 0.18s; }
.prop-card:hover .open-cue { opacity: 1; }
.prop-card.add-card { border-style: dashed; background: none; box-shadow: none; display: flex; align-items: center; justify-content: center; min-height: 230px; color: var(--muted); }
.prop-card.add-card:hover { color: var(--viridian); border-color: var(--viridian); transform: none; }

/* ── empty states ─────────────────────────────────────────────────────────── */
.empty {
  position: relative; overflow: clip;
  border: 1px solid var(--line); border-radius: 16px;
  background: var(--surface);
  padding: clamp(30px, 5vw, 56px);
  text-align: center; margin: 26px 0;
}
.empty .contours { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.4; }
.empty > * { position: relative; }
.empty .parcel-mark { margin-bottom: 6px; }
.empty-title { font-family: var(--font-display); font-size: 22px; font-weight: 600; margin-bottom: 8px; }
.empty-body { color: var(--muted); max-width: 34em; margin: 0 auto 18px; }
.empty-quiet { border: 1px dashed var(--line); border-radius: var(--r); padding: 20px; color: var(--muted); font-size: 13.5px; text-align: center; background: none; }

/* ═══════════════════════ PROPERTY DOSSIER ════════════════════════════════ */
.dossier-head {
  display: flex; gap: 20px; align-items: center; flex-wrap: wrap;
  padding: 26px 0 18px;
}
.dossier-head .prop-visual {
  width: 96px; height: 78px; border-radius: var(--r);
  background: linear-gradient(160deg, var(--paper-2), #eae3d2);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; flex: none;
  overflow: hidden;
}
.dossier-title { flex: 1 1 320px; min-width: 0; }
.dossier-title h1 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 2px; }
.dossier-title .loc { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.dossier-status { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.dossier-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.ptabs {
  position: sticky; top: 62px; z-index: 40;
  display: flex; gap: 2px; overflow-x: auto;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad);
}
.ptabs button {
  border: 0; background: none; cursor: pointer; white-space: nowrap;
  font-size: 14px; font-weight: 560; color: var(--muted);
  padding: 13px 15px 11px; border-bottom: 2px solid transparent;
  transition: color 0.15s;
}
.ptabs button:hover { color: var(--ink); }
.ptabs button.on { color: var(--ink); border-bottom-color: var(--viridian); }
.ptabs .tab-count { font-size: 11px; background: var(--paper-2); border-radius: 999px; padding: 1px 7px; margin-left: 5px; color: var(--ink-3); }

/* next best action strip */
.nba {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  border: 1px solid #cfe0d5; background: var(--viridian-tint);
  border-radius: var(--r); padding: 14px 18px; margin: 20px 0;
}
.nba .nba-steps { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--viridian-deep); }
.nba .nba-steps b { font-weight: 650; }
.nba .nba-steps .sep { opacity: 0.4; }
.nba .btn { margin-left: auto; }

/* checks grid */
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 14px; margin: 18px 0; }
.check {
  border: 1px solid var(--line-soft); border-left-width: 3px; border-radius: var(--r);
  background: var(--surface); padding: 16px 18px;
  display: flex; flex-direction: column; gap: 8px;
}
.check.state-green { border-left-color: var(--viridian); }
.check.state-amber { border-left-color: var(--brass); }
.check.state-red { border-left-color: var(--brick); }
.check.state-grey { border-left-color: var(--line); }
.check-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.check-head h3 { margin: 0; font-family: var(--font-ui); font-size: 14.5px; font-weight: 650; }
.check p { font-size: 13.5px; color: var(--ink-3); margin: 0; }
.check .why { align-self: flex-start; font-size: 13px; }
.review-tag { font-size: 12.5px; background: var(--paper-2); border-radius: var(--r-sm); padding: 8px 10px; margin: 4px 0 0; }

/* progress rail */
.rail { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 18px 0 8px; }
.rail-item { border: 1px solid var(--line-soft); border-radius: var(--r); background: var(--surface); padding: 12px 16px; }
.rail-item .rail-num { font-family: var(--font-display); font-size: 24px; font-weight: 600; line-height: 1.2; }
.rail-item .rail-label { font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }

/* evidence slide-over */
.evidence-panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 90;
  width: min(460px, 94vw);
  background: var(--surface); border-left: 1px solid var(--line);
  box-shadow: -18px 0 50px rgba(27, 26, 21, 0.16);
  transform: translateX(103%);
  transition: transform 0.32s var(--ease);
  display: flex; flex-direction: column;
}
.evidence-panel.open { transform: none; }
.evidence-panel .ep-head { display: flex; align-items: center; gap: 10px; padding: 18px 22px 14px; border-bottom: 1px solid var(--line-soft); }
.evidence-panel .ep-head h3 { margin: 0; flex: 1; }
.evidence-panel .ep-body { overflow-y: auto; padding: 18px 22px; flex: 1; }
.ep-close { border: 0; background: var(--paper-2); border-radius: 50%; width: 32px; height: 32px; cursor: pointer; font-size: 15px; line-height: 1; }
.ev-item { border: 1px solid var(--line-soft); border-radius: var(--r); padding: 14px 16px; margin-bottom: 12px; }
.ev-item .ev-meta { display: flex; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 8px; }
.ev-scrim { position: fixed; inset: 0; z-index: 85; background: rgba(27, 26, 21, 0.25); opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.ev-scrim.open { opacity: 1; pointer-events: auto; }

/* location card */
.loc-card { position: relative; overflow: clip; border: 1px solid var(--line); border-radius: var(--r); background: var(--survey-tint); padding: 22px; min-height: 130px; }
.loc-card .contours { position: absolute; inset: 0; width: 100%; height: 100%; }
.loc-card > div { position: relative; }
.loc-card dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin: 10px 0 0; }
.loc-card dt { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--survey); font-weight: 650; }
.loc-card dd { margin: 2px 0 0; font-weight: 560; }

/* documents */
.dropzone {
  border: 1.5px dashed var(--line); border-radius: 14px;
  background: var(--surface); padding: 34px 22px; text-align: center;
  color: var(--muted); cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  margin: 18px 0;
}
.dropzone:hover, .dropzone.drag { border-color: var(--viridian); background: var(--viridian-tint); color: var(--viridian-deep); }
.dropzone strong { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 14px; margin: 16px 0; }
.doc-card { border: 1px solid var(--line-soft); border-radius: var(--r); background: var(--surface); padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.doc-card.superseded { opacity: 0.55; }
.doc-card .doc-kind { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 14px; }
.doc-icon { width: 34px; height: 40px; border: 1.4px solid var(--ink-3); border-radius: 4px; position: relative; flex: none; background: #fff; }
.doc-icon::before { content: ''; position: absolute; inset: 8px 6px auto; height: 2px; background: var(--line); box-shadow: 0 6px 0 var(--line), 0 12px 0 var(--line); }
.doc-card .doc-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 12.5px; color: var(--muted); }

/* report dossier */
.report-cover {
  position: relative; overflow: clip;
  background: radial-gradient(700px 380px at 80% 10%, rgba(62, 92, 118, 0.16), transparent 55%), var(--charcoal);
  color: var(--on-dark); border-radius: 16px;
  padding: clamp(30px, 5vw, 56px);
  margin: 22px 0 30px;
}
.report-cover .kicker { color: var(--brass); }
.report-cover h1 { color: var(--on-dark); }
.report-cover .parcel-mark { position: absolute; right: 36px; bottom: 26px; opacity: 0.9; }
.report-cover .pm-plot { fill: rgba(30, 92, 72, 0.3); stroke: #4d8a74; }
.report-cover .pm-face { fill: #2c2a22; stroke: #6a6455; }
.report-cover .pm-side { fill: #232118; stroke: #6a6455; }
.report-cover .pm-roof { fill: #3a3830; stroke: #8a8272; }
.report-section { margin: 30px 0; }
.report-section > h2 { display: flex; align-items: baseline; gap: 12px; }
.report-section > h2::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* usage bars */
.usage-bar { background: var(--paper-2); border-radius: 6px; height: 8px; width: 180px; max-width: 56vw; display: inline-block; vertical-align: middle; margin-right: 10px; }
.usage-fill { background: var(--viridian); height: 100%; border-radius: 6px; }
.usage-fill.full { background: var(--brick); }
.upgrade-card { border-left: 3px solid var(--brick); }

/* resource reader */
.resource-body { max-width: 720px; }
.resource-body h2 { margin-top: 1.6em; }
.resource-body hr { border: 0; border-top: 1px solid var(--line); margin: 26px 0; }
.resource-body ul, .resource-body ol { padding-left: 22px; }
.resource-body li { margin-bottom: 6px; }

/* toast / inline notices */
.notice { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r); padding: 12px 16px; font-size: 13.5px; margin: 12px 0; }
.notice.good { border-color: #cfe0d5; background: var(--viridian-tint); color: var(--viridian-deep); }

/* ── loading ─────────────────────────────────────────────────────────────── */
.loading { display: flex; align-items: center; gap: 12px; color: var(--muted); padding: 40px var(--pad); }
.spinner { width: 18px; height: 18px; border: 2px solid var(--line); border-top-color: var(--viridian); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════════════ RESPONSIVE ══════════════════════════════════════ */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .h3d { height: 330px; }
  .hlabel { left: calc(50% + 130px); font-size: 10px; }
  .auth-split { grid-template-columns: 1fr; }
  .auth-visual { min-height: 190px; padding: 26px var(--pad); }
  .auth-visual .h3d, .auth-visual blockquote + * { display: none; }
  .auth-visual blockquote { font-size: 15px; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-side { border-left: 0; border-top: 1px solid var(--line-soft); }
}
@media (max-width: 700px) {
  #topbar { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 8px; row-gap: 2px; }
  #nav { margin-left: 0; width: 100%; flex-wrap: wrap; gap: 0; }
  #nav button { padding: 7px 9px; font-size: 13px; }
  .intent-grid { grid-template-columns: 1fr; }
  .dossier-actions { width: 100%; }
  .dossier-actions .btn { flex: 1; }
  .hlabel { display: none; }
  .nba .btn { margin-left: 0; width: 100%; }
  .usage-bar { width: 120px; }
}

/* ═══════════════════════ ACCESSIBILITY / MOTION ══════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .hlayer { opacity: 1; animation: none; transform: translate3d(0, calc(var(--i) * -40px), 0); }
  .reveal { opacity: 1; transform: none; }
}

/* ═══════════════════════ PRINT (report dossier) ══════════════════════════ */
@media print {
  #topbar, #foot, .ptabs, .dossier-actions, .nba, .btn, .evidence-panel, .ev-scrim { display: none !important; }
  body { background: #fff; font-size: 12px; }
  .report-cover { border-radius: 0; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .pad { padding: 0; max-width: none; }
  .card, .check, .doc-card { box-shadow: none; break-inside: avoid; }
}
