/* plan.govocal.com — product styles, ported from the approved v3 mockups. */

:root {
  --ink: #1E155D;
  --ink-2: #43369B;
  --cherry: #FF3E52;
  --lilac-0: #F0EEFA;
  --lilac-1: #E1DEF5;
  --lilac-2: #C3BDEC;
  --lilac-3: #968BDD;
  --lilac-4: #695ACF;
  --paper: #FFFFFF;
  --ground: #F7F5FC;
  --line: #E1DEF5;
  --ok: #2E9E6B;
  --press-none: #F4F6F8;
  --press-low: #DCE9E0;
  --press-mid: #FFC199;
  --press-high: #FF672F;
  --shadow: 0 2px 6px rgba(30, 21, 93, .06), 0 12px 32px rgba(30, 21, 93, .10);
  --gutter: 195px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { height: 100%; }
body {
  min-height: 100%;
  font-family: 'Libre Franklin', Inter, system-ui, sans-serif;
  background: var(--ground);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
}
h1, h2, h3 { font-family: 'Chivo', Inter, sans-serif; text-wrap: balance; }

button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--cherry); outline-offset: 2px; border-radius: 4px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline-offset: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- chrome ---------- */
.langs { display: flex; gap: 2px; font-size: 12.5px; font-weight: 500; flex-wrap: wrap; justify-content: flex-end; }
.langs button { padding: 5px 9px; border-radius: 6px; color: var(--ink-2); background: none; border: none; }
.langs button.on { background: var(--lilac-0); color: var(--ink); }
.langs button:hover { color: var(--ink); }
.lang-en { position: relative; }
.lang-en.on > button { background: var(--lilac-0); color: var(--ink); }
.lang-menu { display: none; position: absolute; right: 0; top: 100%; margin: 4px 0 0; padding: 6px; list-style: none; min-width: 170px; background: #fff; border: 1px solid rgba(20, 16, 60, .1); border-radius: 10px; box-shadow: 0 10px 30px rgba(20, 16, 60, .12); z-index: 30; }
.lang-en:hover .lang-menu, .lang-en:focus-within .lang-menu, .lang-en.open .lang-menu { display: block; }
.lang-menu li { margin: 0; }
.lang-menu button { display: block; width: 100%; text-align: left; padding: 7px 10px; border-radius: 6px; font-weight: 500; }
.lang-menu button.sel { background: var(--lilac-0); color: var(--ink); }
@media (hover: none) { .lang-en:hover .lang-menu { display: none; } .lang-en.open .lang-menu { display: block; } }
.topnav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px; gap: 16px; flex-wrap: wrap;
}
.logo { display: inline-flex; align-items: center; gap: 12px; font-family: 'Chivo'; font-weight: 300; font-size: 16px; color: var(--ink-2); text-decoration: none; }
.logo img { height: 34px; width: auto; display: block; }
.logo .sub { padding-left: 12px; border-left: 1px solid var(--lilac-2); line-height: 1.1; }

/* Control sizing scale — every interactive control sits on one of these:
   44px (primary controls incl. selects), 36px (secondary), 32px (chips). */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 10px; font-weight: 600; font-size: 15px;
  height: 44px; padding: 0 24px; border: none;
}
a.btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.btn-cherry { background: var(--cherry); color: #fff; }
.btn-cherry:hover { background: #E63248; }
.btn-cherry:disabled { opacity: .45; cursor: default; }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--lilac-2); }
.btn-ghost:hover { border-color: var(--lilac-3); }

.field label { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 6px; }
.field input, .field select {
  width: 100%; height: 44px; padding: 0 16px; border-radius: 10px; border: 1.5px solid var(--lilac-2);
  font: 400 15px 'Libre Franklin', sans-serif; color: var(--ink); background: var(--paper);
}
.field .err, .form-err { color: #C9203A; font-size: 12.5px; margin-top: 5px; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #C9203A; }

/* ---------- landing ---------- */
.landing { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; padding: 32px 0 64px; align-items: center; }
.hero h1 { font-weight: 100; font-size: clamp(32px, 4.2vw, 46px); line-height: 1.08; }
.hero h1 em { font-style: normal; color: var(--lilac-4); }
.hero .lede { margin-top: 18px; font-size: 17px; font-weight: 300; color: var(--ink-2); max-width: 480px; }
.starter {
  margin-top: 30px; background: var(--lilac-0); border-radius: 16px; padding: 22px;
  display: flex; flex-direction: column; gap: 14px; max-width: 500px;
}
.drop {
  display: block; width: 100%;
  border: 2px dashed var(--lilac-3); border-radius: 12px; background: var(--paper);
  padding: 26px 20px; text-align: center; color: var(--ink-2);
  font: inherit;
}
.drop:hover, .drop.over { border-color: var(--cherry); background: #FFF8F9; }
.drop.has-file { border-style: solid; border-color: var(--ok); }
.drop strong { color: var(--ink); font-weight: 600; }
.drop .hint { display: block; margin-top: 4px; font-size: 12.5px; }
.drop .chosen { display: block; margin-top: 4px; font-size: 13px; color: var(--ok); font-weight: 600; }
.trust { display: flex; gap: 18px; margin-top: 18px; font-size: 13px; color: var(--ink-2); flex-wrap: wrap; }
.trust span::before { content: "✓ "; color: var(--ok); font-weight: 700; }
.try-demo { background: none; border: none; color: var(--ink-2); font-size: 13px; text-decoration: underline; margin-top: 12px; align-self: flex-start; }
.try-demo:hover { color: var(--ink); }

.hero-viz { position: relative; }
.teaser {
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); padding: 22px 20px; transform: rotate(1.2deg);
}
.teaser .t-title { font-family: 'Chivo'; font-weight: 400; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 14px; display: flex; justify-content: space-between; gap: 10px; }
.t-row { display: grid; grid-template-columns: 118px 1fr; align-items: center; gap: 10px; margin: 9px 0; }
.t-row .t-label { font-size: 11.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-track { position: relative; height: 14px; }
.t-bar { position: absolute; top: 0; height: 14px; border-radius: 999px; }
.stamp {
  position: absolute; bottom: -18px; left: -14px; background: var(--ink); color: #fff;
  border-radius: 12px; padding: 12px 18px; font-size: 13px; box-shadow: var(--shadow);
  transform: rotate(-1.5deg); max-width: 320px;
}
.stamp b { color: var(--press-mid); }

/* ---------- workspace ---------- */
.ws { display: grid; grid-template-columns: minmax(0, 1fr) 340px; min-height: calc(100vh - 70px); }
.ws-main { padding: 20px 28px 40px; border-right: 1px solid var(--line); min-width: 0; }
.ws-titlebar { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; gap: 16px; flex-wrap: wrap; }
.ws-titlebar h1 { font-weight: 200; font-size: 24px; }
.ws-titlebar .meta { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }
.ws-actions { display: flex; gap: 10px; align-items: center; }
.start-select { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.start-select select {
  font: 600 13.5px 'Libre Franklin', sans-serif; color: var(--ink);
  border: 1.5px solid var(--lilac-2); border-radius: 10px; height: 44px; padding: 0 10px; background: var(--paper);
}

.demo-banner {
  background: #FFF4E5; border: 1px solid #FFD9A8; color: #7A4E12;
  border-radius: 10px; padding: 10px 16px; font-size: 13.5px; margin-bottom: 14px;
}

/* view bar + key */
.viewbar { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; font-size: 11.5px; color: var(--ink-2); flex-wrap: wrap; }
.viewbar .vb-l { font-weight: 600; letter-spacing: .05em; text-transform: uppercase; font-size: 10.5px; }
.seg { display: inline-flex; border: 1.5px solid var(--lilac-2); border-radius: 8px; overflow: hidden; }
.seg button { padding: 4px 12px; font-weight: 600; font-size: 11.5px; color: var(--ink-2); background: none; border: none; }
.seg button.on { background: var(--ink); color: #fff; }
.key { display: inline-flex; align-items: center; gap: 6px; }
.key i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* year board */
.yb-months { display: grid; grid-template-columns: var(--gutter) repeat(12, 1fr); font-size: 11px; color: var(--ink-2); }
.yb-months .m { text-align: center; padding: 3px 0; }
.yb-months .m.jan { font-weight: 700; color: var(--ink); }
.yb-press { display: grid; grid-template-columns: var(--gutter) repeat(12, 1fr); margin: 2px 0 4px; position: relative; }
.yb-press .p { height: 7px; margin: 0 1px; border-radius: 3px; }
.yb-press .lbl { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); align-self: center; }
.nudge {
  position: absolute; top: 13px; max-width: 240px;
  transform: translateX(-50%); background: var(--ink); color: #fff; font-size: 12px; line-height: 1.35;
  border-radius: 8px; padding: 6px 12px; z-index: 5; box-shadow: var(--shadow);
}
.nudge::before { content: ""; position: absolute; top: -5px; left: 50%; transform: translateX(-50%) rotate(45deg); width: 10px; height: 10px; background: var(--ink); }
.nudge.right { transform: translateX(-88%); } .nudge.right::before { left: 88%; }
.nudge.left { transform: translateX(-12%); } .nudge.left::before { left: 12%; }
.nudge b { color: var(--press-mid); }

.yb-body { margin-top: 30px; border-top: 1px solid #F1EFFA; }
.yb-row { display: grid; grid-template-columns: var(--gutter) 1fr; align-items: center; min-height: 58px; border-bottom: 1px solid #F1EFFA; border-radius: 10px; }
.yb-row.sel { background: var(--lilac-0); }
.yb-label { padding: 6px 14px 6px 6px; min-width: 0; }
.yb-label .link-btn.sm { font-size: 12px; padding: 0; margin-top: 2px; color: var(--lilac-4); text-decoration: none; }
.yb-row.yb-add { min-height: 46px; border-bottom: none; }
.yb-row.yb-add .link-btn { font-size: 13px; font-weight: 600; text-decoration: none; color: var(--ink-2); padding: 0; }
.yb-row.yb-add .link-btn:hover { color: var(--cherry); }
.yb-row.yb-add .yb-track { background: none; }
.yb-label .link-btn.sm:hover { text-decoration: underline; color: var(--cherry); }
.yb-label .t { font-size: 13px; font-weight: 600; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.yb-label .m { font-size: 11px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yb-track { position: relative; height: 44px; align-self: center; background: repeating-linear-gradient(to right, transparent 0 calc(100% / 12 - 1px), #F1EFFA calc(100% / 12 - 1px) calc(100% / 12)); }
.bar {
  position: absolute; top: 13px; height: 18px; border-radius: 999px; color: #fff;
  font-size: 11px; font-weight: 600; line-height: 18px; padding: 0 10px;
  white-space: nowrap; overflow: hidden; border: none; text-align: left;
  touch-action: none; display: block; width: auto;
}
.bar.draggable { cursor: grab; }
.bar.dragging { cursor: grabbing; opacity: .85; box-shadow: var(--shadow); }
.bar .notch { position: absolute; top: 0; width: 2px; height: 100%; background: rgba(255, 255, 255, .65); pointer-events: none; }
.bar .tail {
  position: absolute; top: 0; right: 0; height: 100%;
  background: rgba(255, 255, 255, .62); border-left: 2px solid rgba(255, 255, 255, .95);
  display: flex; align-items: center; padding: 0 8px;
  font-size: 10px; font-weight: 600; color: var(--ink-2); pointer-events: none;
}
.bar.ghost {
  background: transparent !important; border: 2px dashed var(--lilac-3);
  color: var(--ink-2); line-height: 14px; cursor: default;
}
.bar.hl { box-shadow: 0 0 0 3px var(--press-mid); }
.yearround-track .bar { background: var(--lilac-1); color: var(--ink-2); border: 1px solid var(--lilac-2); line-height: 16px; cursor: default; }
.legend { display: flex; gap: 22px; margin-top: 10px; font-size: 11.5px; color: var(--ink-2); align-items: center; flex-wrap: wrap; }
.legend .pill { width: 34px; height: 10px; border-radius: 999px; background: var(--lilac-4); position: relative; overflow: hidden; flex: none; }
.legend .pill i { position: absolute; top: 0; left: 42%; width: 2px; height: 100%; background: rgba(255, 255, 255, .7); }
.legend .pill em { position: absolute; top: 0; right: 0; width: 30%; height: 100%; background: rgba(255, 255, 255, .62); border-left: 2px solid rgba(255, 255, 255, .95); }

/* project card */
.pcard-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.pcard-head h3 { font-family: 'Chivo'; font-weight: 400; font-size: 17px; margin-right: auto; }
.chip { font-size: 10.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; background: var(--lilac-0); color: var(--ink-2); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.pcard-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 4px 36px; }
.pf { padding: 7px 0; }
.pf .l { font-size: 10.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--lilac-3); margin-bottom: 3px; }
.pf p { font-size: 13.5px; color: var(--ink-2); }
.pf p b { color: var(--ink); }
.pf .q { color: var(--ink); font-style: italic; }
.pf textarea, .pf input[type="text"] {
  width: 100%; padding: 8px 10px; border-radius: 8px; border: 1.5px solid var(--lilac-2);
  font: 400 13.5px 'Libre Franklin', sans-serif; color: var(--ink);
}
.pageref { font-style: normal; font-size: 11px; font-weight: 600; color: var(--cherry); margin-left: 6px; white-space: nowrap; }
.pcard-actions { display: flex; gap: 10px; margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--lilac-0); flex-wrap: wrap; align-items: center; }
.mini-btn { font-size: 13px; font-weight: 600; height: 36px; padding: 0 16px; border-radius: 8px; border: 1.5px solid var(--lilac-2); background: var(--paper); color: var(--ink); display: inline-flex; align-items: center; }
.mini-btn:hover { border-color: var(--lilac-3); }
.mini-btn.danger { color: var(--cherry); border-color: #FFD3D8; margin-left: auto; }
.method-menu { position: relative; }
.method-menu .menu {
  position: absolute; bottom: calc(100% + 6px); left: 0; background: var(--paper);
  border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow);
  min-width: 210px; z-index: 20; padding: 6px;
}
.method-menu .menu button { display: block; width: 100%; text-align: left; padding: 8px 12px; font-size: 13px; border: none; background: none; border-radius: 6px; color: var(--ink); }
.method-menu .menu button:hover { background: var(--lilac-0); }

/* ---------- rail ---------- */
.assist { background: var(--lilac-0); padding: 24px 20px; display: flex; flex-direction: column; gap: 14px; min-height: 0; }
.assist-head { display: flex; align-items: center; gap: 10px; }
.assist-head .orb { width: 28px; height: 28px; border-radius: 50%; background: radial-gradient(circle at 32% 30%, var(--lilac-3), var(--ink)); flex: none; }
.assist-head h2 { font-weight: 400; font-size: 15.5px; }
.assist-head .step { margin-left: auto; font-size: 11px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.a-log { font-size: 12px; line-height: 1.45; color: var(--ink-2); background: var(--paper); border-radius: 10px; padding: 8px 12px; }
.a-log + .a-log, [aria-live] .a-log + .a-log { margin-top: 6px; }
.a-log b { color: var(--ink); }
.a-log .did { color: var(--ok); font-weight: 600; }
.a-card { background: var(--paper); border: 1.5px solid var(--lilac-2); border-radius: 14px; padding: 16px; box-shadow: 0 4px 14px rgba(30, 21, 93, .07); }
.a-card p { font-size: 13.5px; }
.a-card p b { font-weight: 600; }
.a-card .note { margin-top: 12px; font-size: 11.5px; color: var(--ink-2); }
.a-card.next { opacity: .5; box-shadow: none; }
[aria-live] > * + * { margin-top: 10px; }

/* refine checklist */
.check-progress { font-size: 11.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.a-card.checklist { padding: 6px 16px; }
.check { border-bottom: 1px solid var(--lilac-0); }
.check:last-child { border-bottom: none; }
.check-row {
  display: flex; align-items: flex-start; gap: 10px; width: 100%;
  padding: 11px 0; background: none; border: none; text-align: left;
  font: 400 13px 'Libre Franklin', sans-serif; color: var(--ink);
}
.check.todo .check-row { cursor: pointer; }
.check.todo .check-row:hover .check-label { color: var(--ink-2); }
.check .box {
  width: 18px; height: 18px; border-radius: 50%; flex: none; margin-top: 1px;
  border: 1.5px solid var(--lilac-2); display: grid; place-items: center;
  font-size: 11px; color: #fff;
}
.check .box.on { background: var(--ok); border-color: var(--ok); }
.check.resolved .check-label, .check.ok .check-label { color: var(--ink-2); }
.check .check-label { flex: 1; line-height: 1.35; }
.check.todo .check-label { font-weight: 600; }
.check .chev { color: var(--lilac-3); font-size: 11px; margin-top: 2px; }
.check-note { display: block; font-size: 11px; color: var(--ok); margin-top: 2px; }
.check-body { padding: 0 0 12px 28px; }
.check-body .chips { margin-top: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chips button {
  font: 600 12.5px 'Libre Franklin', sans-serif; color: var(--ink); background: var(--lilac-0);
  border: 1.5px solid var(--lilac-2); border-radius: 999px; height: 32px; padding: 0 15px;
  display: inline-flex; align-items: center;
}
.chips button:hover { border-color: var(--lilac-3); }
.chips button.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.chips button.sel { background: var(--lilac-4); border-color: var(--lilac-4); color: #fff; }
.a-free { margin-top: auto; display: flex; gap: 8px; }
.a-free input {
  flex: 1; height: 36px; padding: 0 14px; border-radius: 10px; border: 1.5px solid var(--lilac-2);
  background: var(--paper); font: 400 13px 'Libre Franklin', sans-serif; color: var(--ink);
}
.a-free button { flex: none; padding: 8px 14px; }
.a-foot { font-size: 10.5px; color: var(--ink-2); text-align: center; }

/* ---------- set-up pages (phases 1 & 2) ---------- */
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--lilac-4); margin-bottom: 4px; }
.setup { max-width: 820px; margin: 0 auto; padding: 24px 24px 120px; display: flex; flex-direction: column; gap: 18px; }
.setup-head h1 { font-weight: 200; font-size: 30px; line-height: 1.1; }
.setup-head .lede { margin-top: 8px; font-size: 15px; font-weight: 300; color: var(--ink-2); max-width: 60ch; }
.setup-card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; box-shadow: 0 4px 14px rgba(30, 21, 93, .05); }
.setup-card .q, .setup-card legend.q, .setup-card label.q { display: block; font-size: 15px; font-weight: 600; color: var(--ink); margin: 0; text-transform: none; letter-spacing: 0; }
.setup-card .chips { margin-top: 12px; }
.setup-card .card-foot { margin-top: 14px; display: flex; align-items: center; gap: 12px; font-size: 13px; }
.setup-card .card-foot .did { color: var(--ok); font-weight: 600; }
.setup-card.confirmed .chips button:disabled { opacity: .85; cursor: default; }
.btn.sm { height: 36px; padding: 0 16px; font-size: 13px; }
.setup-card .chips button { height: 38px; padding: 0 18px; font-size: 13.5px; }
.setup-card h2 { font-family: 'Chivo'; font-weight: 400; font-size: 19px; }
.setup-card .sub { font-size: 13.5px; color: var(--ink-2); margin: 4px 0 14px; }
.setup-card fieldset { border: none; padding: 0; margin: 0 0 22px; min-width: 0; }
.setup-card fieldset:last-of-type { margin-bottom: 18px; }
.setup-card .field input { width: 100%; margin-top: 10px; }
.dl-row { display: flex; gap: 8px; align-items: flex-end; }
.dl-row input { flex: 1; }
.dl-row .mini-btn { height: 44px; flex: none; }
.setup-card .field .note .did { color: var(--ok); font-weight: 600; margin-left: 6px; }
.setup-card .field .note { display: block; margin-top: 6px; font-size: 12px; color: var(--ink-2); }
.setup-card.loading { color: var(--ink-2); }
.setup-card.loading .row { display: flex; align-items: center; gap: 14px; font-size: 15px; font-weight: 300; color: var(--ink); }
.setup-card.loading .bar { height: 6px; background: var(--lilac-0); border-radius: 999px; overflow: hidden; margin: 14px 0 10px; }
.setup-card.loading .bar i { display: block; height: 100%; background: var(--cherry); border-radius: 999px; transition: width .8s ease; }
.setup-card.loading .note { font-size: 13px; }
.setup-card.loading .reassure { color: var(--ink); font-weight: 600; margin-top: 6px; }
.spin { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--lilac-1); border-top-color: var(--lilac-4); flex: none; animation: rot 1.2s linear infinite; }
.skeleton { display: grid; gap: 10px; margin-top: 16px; }
.skeleton div { height: 44px; border-radius: 10px; background: linear-gradient(90deg, var(--lilac-0) 25%, var(--ground) 50%, var(--lilac-0) 75%); background-size: 200% 100%; animation: shimmer 1.6s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton div, .spin { animation: none; } }

.plist { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--lilac-0); }
.prow { border-bottom: 1px solid var(--lilac-0); }
.prow label { display: grid; grid-template-columns: 22px 28px 1fr; gap: 12px; padding: 12px 4px; cursor: pointer; align-items: start; }
.plist.compact .prow label { grid-template-columns: 22px 1fr; padding: 10px 4px; }
.prow input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--lilac-4); }
.prow .rank { font-family: 'Chivo'; font-weight: 300; font-size: 15px; color: var(--lilac-3); font-variant-numeric: tabular-nums; margin-top: 1px; }
.prow .body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.prow .t { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.prow .t .boost { color: var(--ok); font-weight: 700; margin-left: 4px; }
.prow .m { display: flex; gap: 6px; flex-wrap: wrap; }
.prow .s { font-size: 13px; color: var(--ink-2); }
.prow .pq { font-size: 12.5px; color: var(--ink); font-style: italic; margin-top: 2px; }
.prow .unverified { font-style: normal; font-size: 11px; color: var(--ink-2); margin-left: 6px; }
.prow:not(.on) .t { color: var(--ink-2); font-weight: 500; }
.plist .empty { font-size: 13px; color: var(--ink-2); padding: 10px 4px; list-style: none; }

.setup-foot {
  position: sticky; bottom: 0; display: flex; align-items: center; gap: 16px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 12px 18px; box-shadow: var(--shadow);
}
.setup-foot .count { font-weight: 600; font-size: 14px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.setup-foot .hint { flex: 1; font-size: 12.5px; color: var(--ink-2); }

/* backlog (phase 3) */
.backlog { margin-top: 22px; border: 1.5px dashed var(--lilac-2); border-radius: 14px; padding: 16px 20px; background: var(--paper); }
.bl-head h2 { font-family: 'Chivo'; font-weight: 400; font-size: 16px; }
.bl-head h2 .n { font-size: 12px; font-weight: 600; color: var(--ink-2); background: var(--lilac-0); border-radius: 999px; padding: 2px 9px; margin-left: 6px; vertical-align: middle; }
.bl-head .sub { font-size: 12.5px; color: var(--ink-2); margin: 2px 0 8px; }
.ws-titlebar .meta .dl { color: var(--ink); font-weight: 600; }
.ws-titlebar .meta .link-btn { font-size: 12.5px; padding: 0; }

/* project modal (phase 4) */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(30, 21, 93, .45); backdrop-filter: blur(3px); z-index: 50;
  display: grid; place-items: center; padding: 24px; overflow: auto;
}
.modal { position: relative; background: var(--paper); border-radius: 16px; box-shadow: var(--shadow); padding: 26px 28px 22px; width: min(860px, 100%); border: 1px solid var(--line); }
.md-close { position: absolute; top: 12px; right: 14px; background: none; border: none; color: var(--ink-2); font-size: 26px; line-height: 1; }
.modal .pcard-head { padding-right: 32px; }
.modal .swatch { width: 12px; height: 12px; border-radius: 4px; flex: none; }
.md-summary { font-size: 14px; color: var(--ink-2); margin: -4px 0 8px; }
.md-context { margin-top: 10px; border-top: 1px solid var(--lilac-0); padding-top: 16px; }
.md-context .q { font-size: 15px; font-weight: 600; }
.md-context .sub { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.md-context .err { margin-top: 10px; font-size: 13px; color: #C9203A; }
.md-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.md-loading { display: flex; align-items: center; gap: 14px; padding: 28px 0 12px; font-size: 15px; font-weight: 300; color: var(--ink-2); }
.steps { margin: 4px 0 0 18px; padding: 0; font-size: 13.5px; color: var(--ink); }

.steps li { margin-bottom: 6px; }
.pcard-actions .confirm { font-size: 13px; color: var(--ink-2); margin-left: auto; display: inline-flex; gap: 8px; align-items: center; }
.pcard-actions .confirm .danger { margin-left: 0; }

/* residents' say question */
.say-options { display: grid; gap: 8px; margin-top: 12px; }
.say-opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--lilac-2); border-radius: 12px; cursor: pointer; }
.say-opt.on { border-color: var(--lilac-4); background: var(--lilac-0); }
.say-opt input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--lilac-4); flex: none; }
.say-opt b { display: block; font-size: 14px; font-weight: 600; }
.say-opt small { display: block; font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }
.chip.say { background: var(--lilac-4); color: #fff; }

/* phase timeline */
.tl { display: flex; gap: 6px; margin-top: 6px; align-items: flex-start; }
.tl-seg { flex: 1 1 0; min-width: 0; }
.tl-bar { height: 30px; border-radius: 999px; background: var(--lilac-4); display: flex; align-items: center; justify-content: center; font-size: 15px; }
.tl-seg.report .tl-bar { background: var(--lilac-1); }
.tl-txt { padding: 6px 2px 0; font-size: 12px; line-height: 1.3; }
.tl-txt b { display: block; font-weight: 600; color: var(--ink); }
.tl-txt small { display: block; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.tl-txt .tl-fm { display: block; color: var(--ink); font-size: 11.5px; margin-top: 3px; }
.tl-txt em { display: block; font-style: italic; color: var(--ink-2); font-size: 11.5px; margin-top: 2px; }

/* tour + add project */
.tour-overlay { position: fixed; inset: 0; z-index: 55; }
/* The dim + blur layer is clipped with an even-odd polygon so the spotlight
   stays sharp; the spot itself only draws the outline. */
.tour-dim { position: fixed; inset: 0; background: rgba(30, 21, 93, .45); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.tour-spot {
  position: fixed; border-radius: 12px; pointer-events: none;
  box-shadow: 0 0 0 3px var(--cherry);
  transition: left .25s ease, top .25s ease, width .25s ease, height .25s ease;
}
.tour-overlay .modal.tour { position: fixed; margin: 0; width: min(440px, calc(100vw - 24px)); transition: left .25s ease, top .25s ease; }
.modal.tour::before {
  content: ""; position: absolute; width: 18px; height: 18px; background: var(--paper); transform: rotate(45deg); display: none;
  box-shadow: -2px -2px 6px rgba(30, 21, 93, .08);
}
.modal.tour.arrow-up::before { display: block; top: -9px; left: calc(var(--ax, 50%) - 9px); }
.modal.tour.arrow-down::before { display: block; bottom: -9px; left: calc(var(--ax, 50%) - 9px); box-shadow: 2px 2px 6px rgba(30, 21, 93, .08); }
.modal.tour.arrow-left::before { display: block; left: -9px; top: calc(var(--ay, 50%) - 9px); }
.modal.tour.arrow-right::before { display: block; right: -9px; top: calc(var(--ay, 50%) - 9px); box-shadow: 2px -2px 6px rgba(30, 21, 93, .08); }
.modal.tour { width: min(560px, 100%); text-align: left; }
.modal.tour h3 { font-family: 'Chivo'; font-weight: 300; font-size: 24px; margin: 6px 0 10px; padding-right: 32px; }
.modal.tour p { font-size: 15px; color: var(--ink-2); line-height: 1.5; }
.tour-dots { display: flex; gap: 6px; }
.tour-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--lilac-1); display: inline-block; }
.tour-dots i.on { background: var(--cherry); }
.modal.tour .md-actions { justify-content: space-between; margin-top: 22px; }
.modal.addp { width: min(520px, 100%); }
.modal.addp h3 { font-family: 'Chivo'; font-weight: 300; font-size: 22px; margin-bottom: 4px; padding-right: 32px; }
.modal.addp .sub { font-size: 13.5px; color: var(--ink-2); margin-bottom: 16px; }
.modal.addp .field { margin-bottom: 14px; }
.modal.addp textarea { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--lilac-2); font: 400 14px 'Libre Franklin', sans-serif; color: var(--ink); resize: vertical; }
.viewbar .start-select { margin-right: 4px; }
.viewbar .start-select select { height: 34px; font-size: 12.5px; }
.vb-sep { width: 1px; height: 22px; background: var(--lilac-1); }

/* now see it live */
.modal.demo { width: min(480px, 100%); background: var(--ink); color: #fff; border: none; display: flex; flex-direction: column; }
.modal.demo h3 { font-family: 'Chivo'; font-weight: 200; font-size: 24px; margin-bottom: 6px; color: #fff; }
.modal.demo .sub { font-size: 14px; color: var(--lilac-2); margin-bottom: 20px; }
.modal.demo .md-close { color: #fff; }
.inbox { display: flex; align-items: center; gap: 12px; background: rgba(255, 255, 255, .08); border-radius: 12px; padding: 14px 16px; margin-bottom: 22px; font-size: 14px; }
.inbox .tick { width: 26px; height: 26px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; font-size: 14px; flex: none; }
.demo-shot { border-radius: 10px; background: linear-gradient(140deg, var(--lilac-4), var(--ink-2)); padding: 16px; margin-bottom: 20px; }
.demo-shot .dp { background: rgba(255, 255, 255, .94); color: var(--ink); border-radius: 8px; padding: 10px 12px; font-size: 12px; margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.demo-shot .dp:last-child { margin-bottom: 0; }
.demo-shot .dp .tag { font-size: 10px; font-weight: 700; color: var(--lilac-4); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.modal.demo .btn { align-self: flex-start; }
.modal.demo .fine { font-size: 12px; color: var(--lilac-2); margin-top: 14px; }
.modal.demo .fine .link-btn { color: var(--lilac-2); }

/* start over */
.link-btn { background: none; border: none; color: var(--ink-2); font: 500 13px 'Libre Franklin', sans-serif; text-decoration: underline; text-underline-offset: 3px; padding: 0 4px; }
.link-btn:hover { color: var(--cherry); }
.modal.restart { width: min(520px, 100%); }
.modal.restart h3 { font-family: 'Chivo'; font-weight: 400; font-size: 20px; padding-right: 32px; }
.modal.restart .sub { font-size: 13.5px; color: var(--ink-2); margin: 4px 0 16px; }
.rs-options { display: grid; gap: 10px; }
.rs-opt { text-align: left; background: var(--paper); border: 1.5px solid var(--lilac-2); border-radius: 12px; padding: 14px 16px; cursor: pointer; }
.rs-opt:hover { border-color: var(--lilac-4); background: var(--lilac-0); }
.rs-opt b { display: block; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.rs-opt small { display: block; font-size: 12.5px; color: var(--ink-2); margin-top: 3px; }
.rs-opt.danger:hover { border-color: var(--cherry); background: #FFF0F1; }
.rs-opt.danger b { color: var(--cherry); }

/* new-version bar */
.newver {
  position: fixed; top: 12px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fff; border-radius: 12px; padding: 10px 16px;
  font-size: 13.5px; box-shadow: var(--shadow); z-index: 70; display: flex; gap: 14px; align-items: center;
}
.newver button { background: var(--cherry); border: none; color: #fff; font-weight: 700; font-size: 13px; border-radius: 8px; padding: 6px 12px; }

/* ---------- toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fff; border-radius: 12px; padding: 12px 18px;
  font-size: 13.5px; box-shadow: var(--shadow); z-index: 60;
  display: flex; gap: 14px; align-items: center;
}
.toast button { background: none; border: none; color: var(--press-mid); font-weight: 700; font-size: 13.5px; }

/* ---------- lead modal (at "Generate roadmap") ---------- */
.modal.lead { width: min(520px, 100%); }
.modal.lead h3 { font-family: 'Chivo'; font-weight: 300; font-size: 24px; margin-bottom: 6px; }
.modal.lead .sub { font-size: 14px; color: var(--ink-2); margin-bottom: 18px; }
.modal.lead .field { margin-bottom: 14px; }
.lead-build { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--ink-2); background: var(--lilac-0); border-radius: 10px; padding: 8px 12px; margin-bottom: 18px; }
.lead-build .spin { width: 16px; height: 16px; border-width: 2px; }
.consent { display: flex; gap: 10px; font-size: 12.5px; color: var(--ink-2); margin: 16px 0 18px; }
.consent input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--cherry); flex: none; }
.consent a { color: var(--cherry); }
.modal.lead .fine { font-size: 12px; color: var(--ink-2); margin-top: 12px; text-align: center; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .hero-viz { display: none; }
  .ws { grid-template-columns: 1fr; }
  .ws-main { border-right: none; }
  .board-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .board-scroll > #board { min-width: 820px; }
  .pcard-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .topnav { padding: 12px 16px; }
  .logo .sub { display: none; }
  .landing { padding: 0 16px; }
  .setup { padding: 16px 12px 120px; }
  .setup-head h1 { font-size: 26px; }
  .setup-card { padding: 18px 16px; }
  .setup-foot { flex-wrap: wrap; padding: 12px 14px; gap: 10px; }
  .setup-foot .hint { flex-basis: 100%; order: 3; }
  .setup-foot .btn { flex: 1 1 100%; order: 4; }
  .ws-main { padding: 16px 12px 32px; }
  .ws-titlebar h1 { font-size: 20px; }
  .ws-actions { flex-wrap: wrap; width: 100%; }
  .ws-actions .btn { flex: 1 1 auto; }
  .assist { padding: 18px 14px; }
  .modal { padding: 20px 16px 18px; }
  .modal-overlay { padding: 12px; }
  .pcard-actions .confirm { margin-left: 0; flex-basis: 100%; }
  .tl { flex-wrap: wrap; }
  .tl-seg { flex: 1 1 45%; }
  .say-opt { padding: 10px 12px; }
  .yb-row { min-height: 66px; }
}

/* projects streaming in while the document is still being read */
.setup-card.loading .found-n { margin: 14px 0 6px; }
.setup-card.loading .plist.preview { margin: 0 0 8px; }
.setup-card.loading .plist.preview .prow { opacity: .92; animation: found-in .35s ease-out; }
.setup-card.loading .skeleton.short { margin-top: 6px; }
@keyframes found-in { from { opacity: 0; transform: translateY(4px); } to { opacity: .92; transform: none; } }

/* Calendly in our own modal (sandboxed iframe: its post-booking redirect cannot take the planner away) */
.cal-overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(20, 16, 60, .55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.cal-popup { position: relative; width: min(1000px, 100%); height: min(760px, 100%); background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 24px 80px rgba(20, 16, 60, .35); }
.cal-popup iframe { width: 100%; height: 100%; border: 0; display: block; }
.cal-close { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(20, 16, 60, .08); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; z-index: 1; }
.cal-close:hover { background: rgba(20, 16, 60, .16); }
