/* Noord pitch hub v5: plain, native, thumb-first. System type, white or near-black ground, one ink, three result colours. */
:root {
  --bg: #FFFFFF;
  --soft: #F3F3F1;
  --soft-2: #E9E9E6;
  --ink: #111214;
  --muted: #5B5E64;
  --line: #E3E3E0;
  --go: #111214;
  --go-ink: #FFFFFF;
  --sold: #0F6B36;
  --sold-bg: #E5F4EA;
  --likely: #2E9A58;
  --number: #D6F0DF;
  --number-ink: #0F5A2E;
  --no: #B4302A;
  --no-bg: #FBEAE8;
  --back: #9A5B00;
  --back-bg: #FBF0DD;
  --site: #1F4FD8;
  --site-bg: #E8EEFC;
  --focus: #1F4FD8;
  --r: 14px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E0F11; --soft: #1A1B1F; --soft-2: #24262B; --ink: #F2F2F0; --muted: #A3A6AC; --line: #2A2C31;
    --go: #F2F2F0; --go-ink: #0E0F11;
    --sold: #4CC27A; --sold-bg: #13281B; --likely: #2F8F57; --number: #173524; --number-ink: #9FE0B6; --no: #F07A70; --no-bg: #2D1715; --back: #E9A845; --back-bg: #2B2112;
    --site: #8FB0FF; --site-bg: #18213A; --focus: #8FB0FF;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.4 var(--font); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; overflow-x: clip; }
::selection { background: var(--site-bg); color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
input, textarea { caret-color: var(--focus); }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, p { margin: 0; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* top bar */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.top__in { max-width: 640px; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 10px 20px; min-height: 48px; }
.brand { font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
.search { display: none; }
.who { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
#me { font-weight: 600; color: var(--ink); }
.sync::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--sold); margin-right: 6px; vertical-align: 1px; }
.sync[data-mode="offline"]::before, .sync[data-mode="noapi"]::before { background: var(--back); }
.sync[data-mode="connecting"]::before, .sync[data-mode="syncing"]::before { background: var(--muted); }

/* screens */
.screen { max-width: 640px; margin: 0 auto; padding: 24px 20px calc(32px + var(--safe-b)); }
.hello { min-height: calc(100dvh - 140px); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding-top: 8vh; }
.hello h1 { font-size: clamp(40px, 11vw, 64px); line-height: 1.02; letter-spacing: -0.03em; font-weight: 800; text-wrap: balance; }
.lead { font-size: 22px; line-height: 1.3; margin-top: 12px; letter-spacing: -0.01em; text-wrap: pretty; }
.meta { color: var(--muted); font-size: 15px; margin-top: 12px; }
.hello__go { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.two { display: grid; gap: 12px; }
.dots::after { content: "…"; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 20px; border-radius: var(--r); border: 0; font-weight: 650; font-size: 18px; text-decoration: none; transition: transform .12s ease-out, background-color .15s ease-out; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(.98); }
.btn--go { background: var(--go); color: var(--go-ink); min-height: 64px; font-size: 20px; }
.btn--sold { background: var(--sold); color: #fff; min-height: 64px; font-size: 20px; }
.btn--likely { background: var(--likely); color: #fff; min-height: 64px; font-size: 20px; }
.btn--number { background: var(--number); color: var(--number-ink); min-height: 64px; font-size: 20px; }
.btn--back { background: var(--back-bg); color: var(--back); min-height: 64px; font-size: 20px; }
.btn--back.on { box-shadow: inset 0 0 0 2px var(--back); }
.btn--no { background: var(--no-bg); color: var(--no); min-height: 60px; font-size: 20px; }
.btn.picked { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--ink); }
.btn--mic.rec { background: var(--no); color: #fff; }
.recdot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; animation: recblink 1s steps(2, start) infinite; }
@keyframes recblink { to { visibility: hidden; } }
.btn--next { width: 100%; margin-top: 14px; }
.btn--soft { background: var(--soft); color: var(--ink); }
.btn--soft.on { background: var(--soft-2); box-shadow: inset 0 0 0 2px var(--ink); }
.btn--site { background: var(--site-bg); color: var(--site); min-height: 44px; font-size: 16px; padding: 0 14px; }
@media (prefers-color-scheme: dark) { .btn--sold { color: #08140D; } .btn--likely { color: #F2FFF6; } }
.link { background: none; border: 0; padding: 10px 4px; color: var(--muted); font-size: 16px; text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.link .ic { width: 16px; height: 16px; }
.link.small { font-size: 14px; }

/* ready */
.ready h1, .done h1 { font-size: clamp(32px, 9vw, 48px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 800; }
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 20px -20px 0; padding: 4px 20px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); font-size: 15px; font-weight: 600; color: var(--ink); }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.list { list-style: none; margin: 16px 0 0; padding: 0; }
.row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.row .n { width: 28px; height: 28px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; font-size: 14px; font-weight: 700; flex: none; }
.row .who { display: flex; flex-direction: column; min-width: 0; margin: 0; color: var(--ink); font-size: 16px; gap: 0; align-items: flex-start; }
.row .who b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.row .who small { color: var(--muted); font-size: 14px; }
.tag { margin-left: auto; flex: none; font-size: 13px; font-weight: 600; color: var(--muted); background: var(--soft); border-radius: 8px; padding: 4px 8px; }
.tag--bad { color: var(--back); background: var(--back-bg); }
.tag--site { color: var(--site); background: var(--site-bg); }
.tag--busy { color: var(--back); background: var(--back-bg); }
.dock { position: sticky; bottom: 0; display: flex; flex-direction: column; gap: 6px; align-items: stretch; padding: 16px 0 calc(8px + var(--safe-b)); margin-top: 8px; background: linear-gradient(to bottom, transparent, var(--bg) 18px); }
.dock .link { align-self: center; }

/* active */
.act__top { display: flex; align-items: center; justify-content: space-between; }
.count { font-size: 17px; color: var(--muted); }
.count b { color: var(--ink); font-size: 22px; }
.bar { display: flex; gap: 4px; margin-top: 10px; }
.seg { flex: 1; height: 6px; border-radius: 3px; background: var(--soft-2); }
.seg.now { background: var(--ink); }
.seg.r-yes { background: var(--sold); } .seg.r-likely { background: var(--likely); } .seg.r-number { background: var(--number-ink); opacity: .55; } .seg.r-no { background: var(--no); } .seg.r-maybe { background: var(--back); }
.seg.r-closed, .seg.r-skip, .seg.r-gone, .seg.r-chain, .seg.r-notbiz { background: var(--muted); opacity: .45; }
.door { margin-top: 24px; }
.door h1 { font-size: clamp(30px, 8.6vw, 44px); line-height: 1.05; letter-spacing: -0.025em; font-weight: 800; text-wrap: balance; overflow-wrap: anywhere; }
.addr { font-size: 20px; margin-top: 6px; font-weight: 600; }
.kind { color: var(--muted); font-size: 15px; margin-top: 4px; }
.st--open { color: var(--sold); font-weight: 600; } .st--closed { color: var(--no); font-weight: 600; } .st--busy { color: var(--back); font-weight: 600; }
.facts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 14px; }
.web { font-size: 15px; font-weight: 600; }
.web--none { color: var(--ink); } .web--bad { color: var(--back); } .web--has { color: var(--muted); }
.facts .btn--site { width: 100%; margin: 6px 0 2px; min-height: 52px; font-size: 17px; }
.prev { margin-top: 10px; font-size: 15px; color: var(--muted); background: var(--soft); border-radius: 10px; padding: 10px 12px; }
.acts__q { margin-top: 22px; font-size: 15px; font-weight: 650; color: var(--muted); }
.acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.acts .wide { grid-column: 1 / -1; }
.acts--tools { margin-top: 10px; }
.acts--tools .btn { min-height: 52px; font-size: 17px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.grid2 .btn { min-height: 52px; font-size: 16px; padding: 0 10px; }
.tog.on, .panel .tog.on { background: var(--sold-bg); color: var(--sold); box-shadow: inset 0 0 0 2px var(--sold); }
.panel--lead { margin-top: 12px; }
.panel__a { color: var(--sold); }
.warnnote { margin-top: 12px; font-size: 15px; line-height: 1.4; background: var(--soft); border-radius: 10px; padding: 10px 12px; }
.warnnote b { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 2px; }
.warnnote--gone { background: var(--back-bg); }
.warnnote--gone b { color: var(--back); }
.panel { margin-top: 12px; background: var(--soft); border-radius: var(--r); padding: 14px; display: grid; gap: 10px; }
.panel__q { font-weight: 650; font-size: 16px; }
.panel .btn--soft { background: var(--bg); }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.grid3 .btn { padding: 0 8px; font-size: 15px; min-height: 52px; text-align: center; line-height: 1.15; }
textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); padding: 12px; font-size: 16px; resize: vertical; }
.pick { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 15px; color: var(--muted); }
.pick input { min-height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); padding: 0 10px; font-size: 16px; }
.minor { display: flex; justify-content: space-between; margin-top: 10px; border-top: 1px solid var(--line); padding-top: 4px; }
.nav2 { display: flex; flex-wrap: wrap; gap: 0 18px; }
.h2 { font-size: 15px; font-weight: 700; color: var(--muted); margin-top: 24px; }
.list--doors .row { padding: 0; }
.list--doors .row > button { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 0; cursor: pointer; }
.list--doors .row > button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 8px; }
.row--now .n { background: var(--ink); color: var(--bg); }
.row--done .who b { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.res { margin-left: auto; flex: none; font-size: 14px; font-weight: 650; color: var(--muted); }
.res.r-yes, .res.r-likely, .res.r-number { color: var(--sold); } .res.r-no { color: var(--no); } .res.r-maybe { color: var(--back); }

/* toast */
.toast { position: fixed; left: 50%; bottom: calc(20px + var(--safe-b)); transform: translate(-50%, 16px); opacity: 0; transition: transform .2s cubic-bezier(.2,.8,.2,1), opacity .2s; z-index: 20; display: flex; align-items: center; gap: 14px; max-width: calc(100vw - 32px); background: var(--ink); color: var(--bg); border-radius: 14px; padding: 12px 12px 12px 16px; box-shadow: 0 8px 24px rgba(0,0,0,.18); font-size: 15px; }
.toast.on { transform: translate(-50%, 0); opacity: 1; }
.toast span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toast button { flex: none; background: var(--bg); color: var(--ink); border: 0; border-radius: 10px; min-height: 40px; padding: 0 14px; font-weight: 700; }

/* laptop: same flow, plus search in the bar */
@media (min-width: 900px) {
  .top__in { max-width: 980px; }
  .search { display: flex; position: relative; align-items: center; flex: 1; max-width: 520px; margin-left: 24px; }
  .search .ic { position: absolute; left: 12px; color: var(--muted); width: 18px; height: 18px; }
  .search input { width: 100%; min-height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--soft); padding: 0 12px 0 38px; font-size: 15px; }
  .results { position: absolute; top: 46px; left: 0; right: 0; list-style: none; margin: 0; padding: 6px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(0,0,0,.14); max-height: 70vh; overflow: auto; }
  .results li { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; }
  .results li:hover { background: var(--soft); }
  .results li.none { color: var(--muted); }
  .r__t { display: flex; flex-direction: column; min-width: 0; }
  .r__t small { color: var(--muted); font-size: 13px; }
  .r__t .web { font-size: 13px; }
  .r__a { margin-left: auto; display: flex; gap: 6px; flex: none; }
  .r__a .btn { min-height: 36px; font-size: 14px; padding: 0 12px; border-radius: 9px; }
  .hello { min-height: 60vh; }
}
@media (prefers-reduced-motion: reduce) { .btn, .toast { transition: none; } }
.follow { width: 100%; margin-top: 0; font-size: 13px; }
.to-desk { display: none; color: var(--ink); font-weight: 600; text-underline-offset: 3px; }
@media (min-width: 900px) and (hover: hover) { .to-desk { display: inline; } }
