/* The funnel pages, /start and /welcome (David 10/15), in the site's look: the void background, the gold, DM Sans,
   the glow card. Built on site.css (tokens, top bar, phone menu, buttons, footer). */

/* the page */
.fpage { position: relative; overflow: hidden; padding-block: clamp(40px, 6vw, 72px) clamp(64px, 8vw, 104px); }
.fpage::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(42% 60% at 88% 0%, rgba(255, 202, 40, .12), transparent 70%), radial-gradient(40% 60% at 0% 100%, rgba(107, 33, 239, .16), transparent 70%); }
.fpage .wrap { position: relative; max-width: 940px; }
.fhead h1 { font-size: clamp(40px, 5.4vw, 68px); line-height: .94; letter-spacing: -0.022em; margin: 22px 0 18px; }
.fhead .sub { font-size: 18px; line-height: 1.6; color: var(--ash); max-width: 36em; }
.fhead .sub b { color: var(--white); font-weight: 500; }
.fhead .note { margin-top: 14px; font-size: 14px; color: var(--fog); }
.fhead .note b { color: var(--gold); font-weight: 500; }
.promise { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; max-width: 46em; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); font-size: 14px; color: var(--fog); }
.promise svg { flex: none; width: 18px; height: 18px; margin-top: 2px; fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* the card the questions live in */
.fcard { position: relative; margin-top: 104px; border-radius: 24px; padding: clamp(22px, 4vw, 40px); background: linear-gradient(180deg, rgba(255, 202, 40, .05), rgba(255, 202, 40, 0) 220px), var(--panel); box-shadow: var(--glow-card), 0 30px 80px rgba(0, 0, 0, .35); }

/* little Vidd stands on the card's top edge */
.buddy { position: absolute; right: clamp(18px, 5vw, 48px); top: -88px; width: 106px; height: 102px; pointer-events: none; }
.buddy svg { display: block; width: 100%; height: 100%; overflow: visible; }
.buddy .lv-limb { stroke: #EDE7F5; }
.buddy .lv-glove { fill: #FFF8EE; stroke: #17120F; }
.buddy .lv-shadow { fill: rgba(0, 0, 0, .5); }

/* progress */
.pbar { height: 4px; border-radius: 4px; background: var(--shell); overflow: hidden; }
.pbar i { display: block; height: 100%; width: 0; background: var(--cta); transition: width .45s var(--ease2); }
.pstep { margin: 12px 0 24px; font-size: 13px; color: var(--fog); font-variant-numeric: tabular-nums; }

/* one question at a time */
.q { display: none; }
.q.on { display: block; animation: qIn .45s var(--ease2); }
@keyframes qIn { from { opacity: 0; transform: translateY(8px); } }
.q h3 { font-size: clamp(24px, 3vw, 32px); font-weight: 300; line-height: 1.15; letter-spacing: -0.012em; }
.hint { margin-top: 8px; font-size: 15px; color: var(--fog); }

/* chips: tap to pick */
.qchips, .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip-opt { position: relative; cursor: pointer; }
.chip-opt[hidden] { display: none; }
.chip-opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip-opt span { display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); color: var(--ash); font-size: 15px; line-height: 1.25; transition: background .2s, box-shadow .2s, color .2s; }
.chip-opt:hover span { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .26); color: var(--white); }
.chip-opt input:checked + span { background: rgba(255, 202, 40, .12); box-shadow: inset 0 0 0 1.5px var(--gold); color: var(--white); }
.chip-opt input:checked + span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px rgba(255, 202, 40, .7); }
.chip-opt input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

/* typing */
.fields { display: grid; gap: 10px; margin-top: 16px; }
.fpage input[type=text], .fpage input[type=email], .fpage input[type=tel], .fpage input[type=search], .fpage textarea {
  width: 100%; margin: 0; border: 0; border-radius: 12px; padding: 14px 16px; background: var(--void); color: var(--white);
  font: 400 16px/1.45 var(--sans); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); transition: box-shadow .2s; -webkit-appearance: none; appearance: none; }
.fpage textarea { min-height: 92px; resize: vertical; }
.fpage input::placeholder, .fpage textarea::placeholder { color: #77717F; }
.fpage input:focus, .fpage textarea:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--gold), 0 0 0 4px rgba(255, 202, 40, .12); }
.fpage [aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px #FF8E7A, 0 0 0 4px rgba(255, 142, 122, .14) !important; }
.qwords { margin-top: 16px; }
.qwords label, .f-sublabel { display: block; margin-bottom: 6px; font-size: 13.5px; color: var(--fog); }

/* buttons, errors, consent */
.btnrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 28px; }
.btnrow .btn { min-height: 48px; }
.btnrow .btn:disabled { opacity: .4; cursor: default; }
.btnrow .stepnote { font-size: 13px; color: var(--fog); }
.ferr { display: none; margin-top: 16px; padding: 10px 14px; border-radius: 10px; background: rgba(255, 142, 122, .1); color: #FFB3A6; font-size: 14.5px; }
.ferr.on { display: block; }
.fconsent { margin-top: 16px; font-size: 13px; color: var(--fog); }
.fconsent a { color: var(--ash); }
.ts-slot { margin-top: 16px; min-height: 0; }
.ts-note { margin-top: 10px; font-size: 13px; color: var(--fog); }
.ts-note a { color: var(--gold); }
.altline { margin-top: 22px; font-size: 14.5px; color: var(--fog); }
.altline a { color: var(--gold); }

/* done */
.fthanks { display: none; padding: 18px 0 6px; text-align: center; }
.fthanks.on { display: block; animation: qIn .5s var(--ease2); }
.fthanks .big { font-size: clamp(26px, 3.4vw, 36px); font-weight: 300; line-height: 1.15; color: var(--white); }
.fthanks p { max-width: 34em; margin: 12px auto 0; color: var(--ash); }
.fthanks .btn { margin-top: 26px; }
.dry { display: none; margin-top: 16px !important; font-size: 13px; color: var(--fog) !important; }
.dry.on { display: block; }

/* ---------- /welcome: what you got first, then one short step at a time ---------- */
.wintro { display: none; padding: 0; }   /* a section: site.css pads every section */
.wintro.on { display: block; }   /* still on first load, it fades in only when they come back to it */
.wintro.on.again { animation: qIn .45s var(--ease2); }
.wlabel { font-size: 13px; font-weight: 500; color: var(--gold); }
.wplan { margin-top: 6px; font-size: clamp(30px, 4vw, 44px); font-weight: 300; line-height: 1.05; letter-spacing: -0.02em; color: var(--white); text-wrap: balance; }
.wplan-d { margin-top: 10px; max-width: 34em; color: var(--ash); }
.wplan:focus, .panel h3:focus, .fthanks .big:focus { outline: none; }

/* the AI team they got */
.crew { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.crew[hidden] { display: none; }
.crew.compact { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.mate { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: start; min-width: 0; padding: 14px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.mate i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; font-style: normal; font-weight: 600; font-size: 17px; }
.mate i.cobalt { background: #1F49FF; color: #fff; } .mate i.sun { background: #FFCA28; color: #171612; } .mate i.ink { background: #F1EEF4; color: #171612; }
.mate span { min-width: 0; }
.mate b { display: block; font-size: 16px; font-weight: 500; line-height: 1.25; color: var(--white); }
.mate small { display: block; font-size: 12.5px; color: var(--gold); }
.mate em { display: block; margin-top: 6px; font-style: normal; font-size: 14px; line-height: 1.45; color: var(--fog); }
.mate.small { grid-template-columns: 30px minmax(0, 1fr); gap: 9px; align-items: center; padding: 8px 10px 8px 8px; border-radius: 12px; }
.mate.small i { width: 30px; height: 30px; border-radius: 9px; font-size: 14px; }
.mate.small b { font-size: 13.5px; }
.mate.small small { font-size: 11.5px; line-height: 1.25; color: var(--fog); }
.crew-note { margin-top: 10px; font-size: 13.5px; color: var(--fog); }
.wextras { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 16px; }
.wextras[hidden] { display: none; }
.wextras .k { font-size: 13.5px; color: var(--fog); }
.wx { display: flex; flex-wrap: wrap; gap: 6px; }
.wx span { padding: 6px 12px; border-radius: 999px; background: rgba(255, 202, 40, .1); box-shadow: inset 0 0 0 1px rgba(255, 202, 40, .35); color: var(--white); font-size: 13.5px; }

/* what happens next */
.wnext-h { margin-top: 30px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 18px; font-weight: 500; color: var(--white); }
.wnext { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; counter-reset: wn; }
.wnext li { position: relative; counter-increment: wn; padding: 48px 14px 16px; border-radius: 14px; background: rgba(14, 9, 24, .55); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.wnext li::before { content: counter(wn); position: absolute; top: 14px; left: 14px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--shell); color: var(--ash); font-size: 12.5px; font-weight: 500; }
.wnext li.here { background: rgba(255, 202, 40, .07); box-shadow: inset 0 0 0 1.5px rgba(255, 202, 40, .55); }
.wnext li.here::before { background: var(--gold); color: var(--ink); }
.wnext b { display: block; font-size: 15px; font-weight: 500; line-height: 1.3; color: var(--white); }
.wnext span { display: block; margin-top: 4px; font-size: 13.5px; line-height: 1.45; color: var(--fog); }
.wnext em { position: absolute; top: 18px; right: 14px; font-style: normal; font-size: 11.5px; font-weight: 500; color: var(--gold); }
.wgo { margin-top: 24px; }
.wgo .btn { min-height: 52px; padding-inline: 30px; }
@media (max-width: 860px) {
  .wnext { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crew.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .crew { grid-template-columns: minmax(0, 1fr); }
  .crew.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wnext { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .wnext li { padding: 14px 14px 14px 50px; }
  .wnext em { position: static; display: inline-block; margin-top: 6px; }
  .wgo .btn { width: 100%; }
}

/* the steps */
.wbar[hidden] { display: none; }
.panel { display: none; padding: 0; }   /* the steps are sections: site.css pads every section */
.panel.on { display: block; animation: qIn .45s var(--ease2); }
.panel h3 { font-size: clamp(24px, 3vw, 32px); font-weight: 300; line-height: 1.15; letter-spacing: -0.012em; text-wrap: balance; }
.panel .f-row { margin-top: 18px; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 16px; }
@media (max-width: 640px) { .two { grid-template-columns: minmax(0, 1fr); } }
.f-label { display: block; margin-bottom: 8px; font-size: 16px; font-weight: 500; color: var(--white); }
.f-hint { display: block; margin-top: 3px; font-size: 13.5px; font-weight: 400; color: var(--fog); }
.opt { margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--shell); font-size: 11.5px; font-weight: 500; color: var(--ash); vertical-align: 2px; }
.qwords .opt, .f-sublabel .opt { font-size: 11px; }
.qchips.tight { margin-top: 2px; }
.namenote { margin-top: 8px; font-size: 13.5px; color: var(--fog); }

/* the tool picker */
.toolsearch { position: relative; display: flex; align-items: center; gap: 10px; }
.toolsearch .toolcount { position: absolute; right: 14px; font-size: 12.5px; color: var(--fog); pointer-events: none; }
.tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
@media (max-width: 760px) { .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tool { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 12px; border: 0; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); color: var(--ash); font: 400 14px/1.3 var(--sans); text-align: left; cursor: pointer; }
.tool img { flex: none; width: 22px; height: 22px; padding: 3px; border-radius: 6px; background: #F1EEF4; object-fit: contain; }
.tool .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tool .bx { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); font-size: 12px; color: transparent; }
.tool.on { background: rgba(255, 202, 40, .1); box-shadow: inset 0 0 0 1.5px var(--gold); color: var(--white); }
.tool.on .bx { background: var(--gold); color: var(--ink); box-shadow: none; }
.tool.add .ico { width: 22px; height: 22px; border-radius: 6px; background: var(--shell); }
.tool.add .bx { color: var(--gold); }
.tool:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.picked { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.picked[hidden] { display: none; }
.pick { display: inline-flex; align-items: center; gap: 6px; padding: 5px 6px 5px 10px; border-radius: 999px; background: rgba(255, 202, 40, .1); box-shadow: inset 0 0 0 1px rgba(255, 202, 40, .4); color: var(--white); font-size: 13px; }
.pick img { width: 16px; height: 16px; }
.pick button { display: grid; place-items: center; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: var(--ash); font-size: 13px; line-height: 1; cursor: pointer; }
.addrow { display: flex; gap: 8px; margin-top: 12px; }
.addrow input { flex: 1; min-width: 0; }
.addbtn { flex: none; padding: 0 16px; border: 0; border-radius: 12px; background: var(--shell); color: var(--white); font: 500 14px/1 var(--sans); cursor: pointer; }
.addbtn:hover { background: var(--smoke); }

/* the look over */
.rev-title { font-size: clamp(28px, 3.4vw, 38px); font-weight: 300; }
.rev-sub { margin-top: 8px; color: var(--fog); }
.review-list { margin-top: 20px; border-radius: 14px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.review-line { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, .06); font-size: 14.5px; }
.review-line:last-child { border-bottom: 0; }
.review-line .k { color: var(--fog); }
.review-line .v { color: var(--white); overflow-wrap: anywhere; }
.review-line .blank { color: #77717F; font-style: italic; }
.review-line button { padding: 0; border: 0; background: none; color: var(--gold); font: 500 13px/1 var(--sans); cursor: pointer; }
@media (max-width: 560px) { .review-line { grid-template-columns: minmax(0, 1fr) auto; } .review-line .k { grid-column: 1 / -1; font-size: 12.5px; } }
.fallback { display: none; margin-top: 22px; text-align: left; }
.fallback.on { display: block; }
.fallback textarea { min-height: 220px; font: 400 13px/1.5 "DM Mono", ui-monospace, monospace !important; }
.copybtn { margin-top: 10px; }
.devpeek { margin-top: 22px; text-align: left; font-size: 12px; color: var(--fog); }
.devpeek pre { max-height: 260px; overflow: auto; padding: 12px; border-radius: 10px; background: var(--void); white-space: pre-wrap; }

@media (max-width: 560px) {
  .fcard { margin-top: 96px; padding: 20px 16px 24px; }
  .buddy { width: 92px; height: 88px; top: -77px; }
  .btnrow { flex-wrap: wrap; }
  .btnrow .stepnote { order: -1; width: 100%; }
  .btnrow .btn-cta { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .q.on, .panel.on, .wintro.on.again, .fthanks.on { animation: none; } .pbar i { transition: none; } }

/* the 404: little Vidd, big, in the middle */
.nf { text-align: center; min-height: calc(100vh - 160px); display: grid; align-items: center; }
.nf .wrap { display: grid; justify-items: center; }
.nf h1 { font-size: clamp(42px, 6vw, 76px); line-height: .94; letter-spacing: -0.022em; margin: 22px 0 16px; }
.nf .sub { max-width: 32em; font-size: 18px; color: var(--ash); }
.nf-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.buddy.buddy-big { position: static; width: 190px; height: 182px; margin: 0 auto 18px; }
.qwords .addrow { margin-top: 0; }
.fcard { scroll-margin-top: 90px; }   /* a jump to the card keeps little Vidd in view above it */
