/* Patchlist · client demo
   Navy ink, map mist, white app panels; amber is reserved for actions.
   Contact quality: field green (role email), survey blue (named), contour orange (personal), slate (phone). */

:root {
  --navy: #0C1B2A;
  --navy-2: #13283D;
  --navy-line: #24405B;
  --mist: #F3F5F4;
  --paper: #FFFFFF;
  --ink: #0F1D2B;
  --ink-2: #4A5A68;
  --ink-3: #7A8894;
  --line: #E1E6E9;
  --line-2: #EDF1F3;
  --amber: #F5A524;
  --amber-ink: #1A1305;
  --green: #1F9D64;
  --green-tint: #E5F5ED;
  --blue: #2F6FDB;
  --blue-tint: #E7EFFC;
  --orange: #D9711C;
  --orange-tint: #FCEEDF;
  --slate: #6C7A86;
  --slate-tint: #EEF1F3;

  --f-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-body: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", monospace;
  --wrap: 1180px;
  --r: 10px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body { background: var(--mist); color: var(--ink); font: 16.5px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-underline-offset: 3px; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 20; background: #fff; padding: 8px 12px; border-radius: 6px; }
.skip:focus { left: 8px; }
.mono { font-family: var(--f-mono); font-size: 0.9em; letter-spacing: -0.01em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; text-decoration: none;
  border: 0; border-radius: 9px; padding: 12px 20px; font: 700 0.98rem var(--f-body); letter-spacing: 0.005em;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.btn-amber { background: var(--amber); color: var(--amber-ink); box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 6px 18px -8px rgba(245,165,36,.7); }
.btn-amber:hover { background: #FFB43A; }
.btn-sm { padding: 8px 14px; font-size: 0.9rem; }
.btn-lg { padding: 15px 26px; font-size: 1.05rem; }
.btn:not([href]).contact-link { opacity: 0.6; cursor: default; }

/* ---------- hero (navy + topographic contours) ---------- */
.hero { position: relative; background: radial-gradient(1200px 600px at 75% -10%, #1B3A57 0%, transparent 60%), var(--navy); color: #fff; overflow: hidden; padding-bottom: 72px; }
.topo { position: absolute; inset: -6% -6% auto; width: 112%; height: auto; min-height: 100%; object-fit: cover; pointer-events: none; animation: drift 60s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-2.5%, 1.5%, 0) scale(1.04); } }
.hero > *:not(.topo) { position: relative; }

.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 800 1.3rem var(--f-display); letter-spacing: -0.02em; }
.logo-pin { width: 26px; height: 26px; }
.logo-pin path { fill: var(--amber); }
.logo-pin circle { fill: var(--navy); }
.nav nav { display: flex; align-items: center; gap: 28px; }
.nav nav a:not(.btn) { color: #B7C6D3; text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.nav nav a:not(.btn):hover { color: #fff; }

.hero-copy { padding-top: clamp(40px, 7vw, 88px); padding-bottom: clamp(36px, 5vw, 56px); text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px;
  font: 600 0.78rem var(--f-mono); text-transform: uppercase; letter-spacing: 0.14em; color: #9FB4C6;
}
.eyebrow.dark { color: var(--ink-3); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #3DDC97; box-shadow: 0 0 0 0 rgba(61,220,151,.6); animation: ping 2s ease-out infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(61,220,151,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,151,0); } }
.hero h1 {
  font: 800 clamp(2.4rem, 5.6vw, 4.4rem)/1.02 var(--f-display); letter-spacing: -0.035em;
  margin: 0 auto; max-width: 17ch; text-wrap: balance;
}
.lede { color: #B7C6D3; font-size: clamp(1.05rem, 1.5vw, 1.2rem); max-width: 60ch; margin: 22px auto 0; text-wrap: pretty; }

/* ---------- app window ---------- */
.window {
  background: var(--paper); color: var(--ink); border-radius: 16px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 40px 80px -30px rgba(0,0,0,.55), 0 18px 36px -18px rgba(0,0,0,.35);
}
.window-bar { display: flex; align-items: center; gap: 14px; padding: 12px 18px; background: #F7F9FA; border-bottom: 1px solid var(--line); }
.dots { display: inline-flex; gap: 7px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #D5DCE1; }
.window-title { font: 500 0.8rem var(--f-mono); color: var(--ink-3); }
.window-meta { margin-left: auto; font: 500 0.78rem var(--f-mono); color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px; }
.presenter-badge { background: var(--navy); color: var(--amber); border-radius: 6px; padding: 2px 8px; font-weight: 600; letter-spacing: 0.04em; }

.search { display: grid; grid-template-columns: 1.1fr 1fr auto; gap: 14px; align-items: end; padding: 26px 26px 14px; }
.field { display: grid; gap: 7px; }
.field span { font-weight: 600; font-size: 0.86rem; color: var(--ink-2); }
.field input {
  width: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--r); background: #fff;
  font-size: 1.06rem; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input::placeholder { color: #A3AEB7; }
.field input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(12,27,42,.08); }
.btn-go { height: 54px; padding: 0 26px; font-size: 1.02rem; }
.examples { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0 26px 22px; font-size: 0.86rem; color: var(--ink-3); }
.chip-btn { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 5px 12px; cursor: pointer; font-size: 0.85rem; color: var(--ink-2); transition: border-color .15s, color .15s, background-color .15s; }
.chip-btn:hover { border-color: var(--navy); color: var(--ink); background: var(--mist); }

.stage { border-top: 1px solid var(--line); background: #FBFCFC; min-height: 230px; }
.idle { padding: 30px 26px 28px; }
.idle-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: s; }
.idle-steps li { counter-increment: s; background: #fff; border: 1px dashed #D2DAE0; border-radius: var(--r); padding: 16px 18px; }
.idle-steps li::before { content: counter(s, decimal-leading-zero); display: block; font: 500 0.75rem var(--f-mono); color: var(--ink-3); margin-bottom: 6px; }
.idle-steps b { display: block; font: 700 1.05rem var(--f-display); letter-spacing: -0.01em; }
.idle-steps span { color: var(--ink-2); font-size: 0.92rem; }
.idle-note { margin: 16px 0 0; color: var(--ink-3); font-size: 0.88rem; }

/* progress */
.run { padding: 28px 26px; }
.run-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; }
.run-head h3 { margin: 0; font: 700 1.25rem var(--f-display); letter-spacing: -0.015em; }
.run-head .timer { font: 500 0.88rem var(--f-mono); color: var(--ink-3); }
.run p { margin: 6px 0 0; color: var(--ink-2); }
.timeline { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.timeline li { font-size: 0.82rem; color: var(--ink-3); }
.timeline li::before { content: ""; display: block; height: 4px; border-radius: 99px; background: var(--line); margin-bottom: 9px; }
.timeline li.done { color: var(--green); }
.timeline li.done::before { background: var(--green); }
.timeline li.now { color: var(--ink); font-weight: 700; }
.timeline li.now::before { background: linear-gradient(90deg, var(--amber) var(--p, 35%), var(--line) var(--p, 35%)); }
.timeline li.now.pulse::before { background: linear-gradient(90deg, var(--line), var(--amber), var(--line)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* results */
.results { padding: 24px 26px 28px; }
.summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 18px; }
.summary h3 { margin: 0; font: 700 1.3rem var(--f-display); letter-spacing: -0.015em; }
.summary h3 .in { color: var(--ink-3); font-weight: 600; }
.stats { display: flex; flex-wrap: wrap; gap: 8px; }
.stat { font: 500 0.8rem var(--f-mono); background: var(--slate-tint); color: var(--ink-2); border-radius: 7px; padding: 5px 10px; }
.stat b { color: var(--ink); font-weight: 600; }

.table { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.thead, .row { display: grid; grid-template-columns: 2.1fr 2fr 1.15fr 0.85fr 1fr; gap: 18px; align-items: start; padding: 14px 18px; }
.thead { background: #F7F9FA; border-bottom: 1px solid var(--line); font: 600 0.72rem var(--f-mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-3); padding-top: 11px; padding-bottom: 11px; }
.row { border-bottom: 1px solid var(--line-2); animation: rise 0.45s ease both; }
.row:last-child { border-bottom: 0; }
.row:hover { background: #FAFBFC; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.biz b { display: block; font-weight: 700; line-height: 1.35; }
.biz small { display: block; color: var(--ink-3); font-size: 0.84rem; line-height: 1.4; margin-top: 2px; }
.biz .site { display: inline-block; margin-top: 4px; font-size: 0.84rem; }
.cell { min-width: 0; overflow-wrap: anywhere; font-size: 0.93rem; }
.cell .lbl { display: none; }
.cell small { display: block; color: var(--ink-3); font-size: 0.8rem; margin-top: 2px; }
.muted { color: var(--ink-3); }
.copy { border: 0; background: none; padding: 0 0 0 6px; color: var(--ink-3); cursor: pointer; font-size: 0.78rem; font-weight: 600; }
.copy:hover { color: var(--blue); }
.rating { font-family: var(--f-mono); font-size: 0.88rem; white-space: nowrap; }
.rating .star { color: var(--amber); }

.badge { display: inline-flex; align-items: center; gap: 7px; font-size: 0.8rem; font-weight: 700; border-radius: 99px; padding: 4px 10px 4px 8px; white-space: nowrap; }
.badge i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.b-role_email { background: var(--green-tint); color: var(--green); }
.b-named_email { background: var(--blue-tint); color: var(--blue); }
.b-personal_email { background: var(--orange-tint); color: var(--orange); }
.b-phone_only, .b-none { background: var(--slate-tint); color: var(--slate); }
.flags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.flag { font-size: 0.74rem; font-weight: 600; border-radius: 5px; padding: 1px 7px; background: var(--orange-tint); color: var(--orange); }
.flag.info { background: var(--slate-tint); color: var(--slate); }

.more {
  margin: 18px 0 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px;
  background: var(--navy); color: #DDE7EF; border-radius: 12px; padding: 16px 20px;
}
.more b { color: #fff; }
.notice { padding: 32px 26px; }
.notice h3 { margin: 0 0 6px; font: 700 1.25rem var(--f-display); }
.notice p { margin: 0 0 16px; color: var(--ink-2); max-width: 60ch; }

/* ---------- sections ---------- */
.band { padding: clamp(72px, 9vw, 116px) 0; }
.band-white { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band h2, .trust h2 { font: 800 clamp(1.9rem, 3.6vw, 2.8rem)/1.08 var(--f-display); letter-spacing: -0.03em; margin: 0; max-width: 24ch; text-wrap: balance; }

.flow { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; }
.flow li { padding: 26px 28px 0 0; border-top: 2px solid var(--line); position: relative; }
.flow li::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--navy); box-shadow: 0 0 0 4px var(--mist); }
.flow-n { font: 500 0.8rem var(--f-mono); color: var(--ink-3); }
.flow h3 { margin: 6px 0 8px; font: 700 1.3rem var(--f-display); letter-spacing: -0.015em; }
.flow p { margin: 0; color: var(--ink-2); max-width: 36ch; }

.features { margin-top: 46px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.features article { background: #fff; padding: 28px 28px 30px; }
.features h3 { margin: 0 0 8px; font: 700 1.12rem var(--f-display); letter-spacing: -0.01em; }
.features p { margin: 0; color: var(--ink-2); font-size: 0.97rem; }

.trust { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px 72px; align-items: start; }
.trust-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.trust-list li { position: relative; padding-left: 34px; color: var(--ink-2); }
.trust-list li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--green-tint);
  -webkit-mask: none;
}
.trust-list li::after { content: ""; position: absolute; left: 6px; top: 8px; width: 8px; height: 5px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.trust-list b { color: var(--ink); }

.cta { position: relative; overflow: hidden; background: var(--navy); color: #fff; padding: clamp(80px, 10vw, 128px) 0; text-align: center; }
.topo-cta { animation-duration: 80s; opacity: 0.8; }
.cta-in { position: relative; }
.cta h2 { font: 800 clamp(2rem, 4.2vw, 3.2rem)/1.05 var(--f-display); letter-spacing: -0.03em; margin: 0 auto; max-width: 20ch; text-wrap: balance; }
.cta p { color: #B7C6D3; max-width: 56ch; margin: 18px auto 32px; font-size: 1.08rem; }

.foot { padding-top: 30px; padding-bottom: 44px; color: var(--ink-3); font-size: 0.86rem; }
.foot p { margin: 0 0 6px; }
.foot .gm { color: var(--ink-2); font-weight: 600; }

#toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(16px); opacity: 0; pointer-events: none; z-index: 30;
  background: var(--navy); color: #fff; padding: 11px 18px; border-radius: 10px; font-size: 0.94rem; box-shadow: 0 12px 30px -12px rgba(0,0,0,.4);
  transition: opacity 0.2s, transform 0.2s; max-width: calc(100% - 32px);
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .thead { display: none; }
  .row { grid-template-columns: 1fr 1fr; gap: 12px 18px; padding: 18px; }
  .row .biz { grid-column: 1 / -1; }
  .cell .lbl { display: block; font: 600 0.68rem var(--f-mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-3); margin-bottom: 3px; }
  .features { grid-template-columns: 1fr 1fr; }
  .trust { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: repeat(3, 1fr); row-gap: 14px; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .nav nav a:not(.btn) { display: none; }
  .search { grid-template-columns: 1fr; padding: 20px 18px 12px; }
  .btn-go { width: 100%; }
  .examples, .idle, .run, .results, .notice { padding-left: 18px; padding-right: 18px; }
  .idle-steps, .flow, .features { grid-template-columns: 1fr; }
  .flow li { padding-bottom: 26px; }
  .window-title { display: none; }
  .row { grid-template-columns: 1fr; }
  .more .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
