/* The first run: one question per screen, each fading into the next. */

.gv-setup { min-height: 100dvh; display: grid; grid-template-rows: auto 1fr; background: var(--bg); position: relative; overflow: clip; isolation: isolate; }

/* a quiet path drawn across the page: the way to "live" */
.gv-setup-path { position: absolute; inset: auto 0 0 auto; width: min(900px, 90vw); height: 62vh; z-index: -1; pointer-events: none; opacity: 0.55; }
.gv-setup-path path { fill: none; stroke: var(--sage); stroke-width: 1.2; stroke-linecap: round; opacity: 0.32; }
.gv-setup-path circle { fill: var(--bg); stroke: var(--sage); stroke-width: 1.2; opacity: 0.5; }

.gv-setup-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 22px clamp(20px, 4vw, 48px); }
.gv-setup-top > :last-child { justify-self: end; flex-wrap: nowrap; }
.gv-setup-logo img { width: 30px; height: 30px; border-radius: 8px; }
.gv-setup-rail { display: flex; align-items: center; gap: 12px; }
.gv-setup-count { font-size: var(--t-12); color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.gv-setup-segs { display: flex; gap: 4px; }
.gv-setup-segs i { width: 22px; height: 3px; border-radius: 3px; background: var(--line-2); transition: background-color var(--d-4) var(--ease); }
.gv-setup-segs i.is-done { background: var(--forest); }
.gv-setup-segs i.is-now { background: var(--sage); }
.gv-setup-segs i.is-skipped { background: var(--line-3); }

.gv-setup-main { display: grid; justify-items: center; align-content: start; padding: clamp(20px, 8vh, 96px) 20px 48px; }
.gv-setup-stage { width: min(560px, 100%); }
.gv-setup-stage--wide { width: min(680px, 100%); }
.gv-setup-back { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-13); color: var(--ink-3); margin-bottom: 22px; height: 24px; border-radius: var(--r-8); }
.gv-setup-back:hover { color: var(--ink); }
.gv-setup-title { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.08; letter-spacing: -0.038em; font-weight: 500; text-wrap: balance; }
.gv-setup-lead { margin-top: 12px; font-size: var(--t-16); line-height: 1.5; color: var(--ink-2); text-wrap: pretty; max-width: 52ch; }
.gv-setup-body { margin-top: 32px; display: grid; gap: 14px; }
.gv-setup-body > *, .gv-setup-body .gv-stack > * { min-width: 0; }
/* the buttons stay in reach when a step is taller than the screen */
.gv-setup-actions { margin-top: 20px; padding: 14px 0 18px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; position: sticky; bottom: 0; z-index: 2;
  background: linear-gradient(to bottom, rgba(247, 246, 242, 0), var(--bg) 30%); }
.gv-setup-actions .gv-btn--ghost { color: var(--ink-3); }
.gv-setup-note { margin-top: 0; font-size: var(--t-13); color: var(--ink-3); display: flex; align-items: center; gap: 8px; }

/* a small heading inside a step that asks for two things */
.gv-setup-sub { font-size: var(--t-13); font-weight: 500; color: var(--ink); margin-top: 14px; }
.gv-setup-sub:first-child { margin-top: 0; }
.gv-setup-body button.gv-link { font: inherit; display: inline; }

/* the three promises on the connect screen */
.gv-promises { display: grid; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-14); }
.gv-promise { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; font-size: var(--t-14); color: var(--ink-2); }
.gv-promise + .gv-promise { border-top: 1px solid var(--line); }
.gv-promise svg { color: var(--forest); flex: none; margin-top: 2px; }
.gv-promise b { color: var(--ink); font-weight: 500; }

/* the agency's own brand, as read from their account */
.gv-brandrow { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-14); }
.gv-brandrow img { width: 40px; height: 40px; border-radius: var(--r-10); object-fit: contain; background: var(--bg-sunken); flex: none; }
.gv-brandrow-name { font-weight: 500; letter-spacing: -0.01em; }

/* reading the account: findings arrive one by one */
.gv-found { display: grid; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-14); min-height: 58px; }
.gv-found-row { display: flex; align-items: center; gap: 12px; padding: 14px 18px; font-size: var(--t-15); animation: gv-rise var(--d-4) var(--ease) both; }
.gv-found-row + .gv-found-row { border-top: 1px solid var(--line); }
.gv-found-row b { font-weight: 500; font-variant-numeric: tabular-nums; }
.gv-found-row span { color: var(--ink-3); }
.gv-found-mark { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--wash-mint); color: var(--forest); }
.gv-found-row.is-waiting .gv-found-mark { background: transparent; border: 1.5px solid var(--line-3); animation: gv-breathe 1500ms ease-in-out infinite; }
.gv-found-row.is-waiting { color: var(--ink-3); }

/* scrolling pick list (sub-accounts, numbers) */
.gv-picklist { display: grid; gap: 8px; max-height: clamp(216px, calc(100dvh - 548px), 430px); overflow-y: auto; padding: 2px; margin: -2px; scrollbar-width: thin; }
.gv-picklist .gv-choice { padding: 12px 14px; }

/* a list row in "who gets onboarding" */
.gv-setlist { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-14); }
.gv-setlist-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, 200px); gap: 14px; align-items: center; padding: 14px 16px 14px 18px; }
.gv-setlist-row + .gv-setlist-row { border-top: 1px solid var(--line); }
.gv-setlist-name { font-weight: 500; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gv-setlist-rule { font-size: var(--t-13); color: var(--ink-3); margin-top: 2px; }
.gv-setlist-row .gv-select { height: 36px; }
@media (max-width: 560px) { .gv-setlist-row { grid-template-columns: 1fr; } }

/* numbered instructions */
.gv-howto { display: grid; gap: 10px; counter-reset: how; }
.gv-howto li { display: flex; gap: 12px; align-items: baseline; font-size: var(--t-14); color: var(--ink-2); counter-increment: how; }
.gv-howto li::before { content: counter(how); width: 20px; height: 20px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 11.5px; font-weight: 500; background: var(--wash-2); color: var(--ink); transform: translateY(-1px); }
.gv-seen { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r-12); font-size: var(--t-13); background: var(--wash); color: var(--ink-2); }
.gv-seen.is-on { background: var(--ok-bg); color: var(--ok); }
.gv-seen .gv-dot { animation: gv-breathe 1500ms ease-in-out infinite; }
.gv-seen.is-on .gv-dot { animation: none; }

/* done: what is set and what was skipped */
.gv-done-mark { width: 52px; height: 52px; border-radius: 15px; background: var(--forest); display: grid; place-items: center; margin-bottom: 20px; }
.gv-done-mark svg path { stroke: var(--mint); stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: gv-tick 700ms var(--ease) 250ms forwards; }
@keyframes gv-tick { to { stroke-dashoffset: 0; } }
.gv-summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-14); }
.gv-summary-row.gv-step { display: flex; align-items: center; gap: 12px; padding: 10px 18px; font-size: var(--t-14); }
.gv-summary-row + .gv-summary-row { border-top: 1px solid var(--line); }
.gv-summary-row .gv-step-mark { width: 20px; height: 20px; }
.gv-summary-row.is-skipped { color: var(--ink-3); }
.gv-summary-row a { margin-left: auto; padding-left: 12px; font-size: var(--t-13); color: var(--forest); font-weight: 500; white-space: nowrap; }

@media (max-width: 640px) {
  .gv-setup-top { grid-template-columns: auto 1fr auto; gap: 12px; padding: 16px 16px; }
  .gv-setup-rail { justify-content: center; }
  .gv-setup-segs { gap: 3px; }
  .gv-setup-segs i { width: 10px; }
  .gv-setup-count { display: none; }
  .gv-setup-main { padding-left: 16px; padding-right: 16px; }
}
