/* KAZUVA · forms.css · /demo/, /audit/, /start/ on the founders base.
   Loads AFTER ../home.css (the home page's stylesheet, owned by site-v2) and
   uses its tokens. Also maps the tokens preview.css expects onto home.css,
   so the phone preview renders in the same palette. */

:root {
  --raised: var(--card);
  --sunk: rgb(var(--violet) / .08);
  --ink-dim: var(--ink-soft);
  --ink-mute: var(--ink-soft);
  --edge-strong: rgba(236, 232, 247, .22);
  --pop: var(--peri-soft);
  --on-accent: #f7f7f8;
  --body: var(--sans);
  --r-pill: 999px;
  --fs-xs: 13px;
  --fs-sm: 14px;
  --spring: var(--spring-btn);
  --glide: var(--ease-out);
  --card-sheen: linear-gradient(180deg, rgb(var(--violet) / .14), transparent 62%);
  --card-ring: inset 0 0 0 1px var(--edge);
}
html[data-theme="light"] { --edge-strong: rgba(18, 7, 39, .18); --card-sheen: none; }

/* ── Page shell ──────────────────────────────────────────────────────── */
.pg { min-height: 100vh; min-height: 100svh; padding: calc(var(--head-h) + 28px) 0 64px; }
.pg-head { display: grid; gap: 12px; max-width: 40rem; margin-bottom: 28px; }
.pg-head h1 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.6rem); line-height: 1.08; }
.pg-head .lead { margin-top: 2px; }

/* ── Builder layout (/demo/) ─────────────────────────────────────────── */
.st-grid { display: grid; gap: 20px; }
.st-phone { position: sticky; top: calc(var(--head-h) + 4px); z-index: 5; order: -1; display: flex; justify-content: center; padding-block: 8px; background: color-mix(in srgb, var(--surface) 92%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.st-phone .pv-phone { width: 148px; padding: 6px; border-radius: 26px; }
.st-phone .pv { border-radius: 21px; }
.st-phone .pv-phone::before { top: 10px; width: 40px; height: 10px; margin-left: -20px; }
.st-clip { height: min(34vh, 240px); overflow: hidden; border-radius: 26px 26px 0 0; -webkit-mask-image: linear-gradient(#000 82%, transparent); mask-image: linear-gradient(#000 82%, transparent); }
@media (max-width: 959px) { .is-final .st-phone { position: static; } }
@media (min-width: 960px) {
  .st-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(40px, 6vw, 96px); align-items: start; }
  .st-phone { order: 0; top: calc(var(--head-h) + 24px); background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .st-phone .pv-phone { width: 280px; padding: 9px; border-radius: 40px; }
  .st-phone .pv { border-radius: 32px; }
  .st-phone .pv-phone::before { top: 15px; width: 64px; height: 16px; margin-left: -32px; }
  .st-clip { height: auto; overflow: visible; -webkit-mask-image: none; mask-image: none; }
}
.st-prog { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-size: 14px; color: var(--ink-soft); }
.st-prog[hidden] { display: none; }
.st-bars { display: flex; gap: 4px; }
.st-bars i { width: 28px; height: 4px; border-radius: 4px; background: var(--edge); transition: background-color .2s var(--ease-fade); }
.st-bars i.on { background: var(--accent); }
.st-step, .st-done { padding: 0; overflow: visible; }
.st-step { display: grid; gap: 18px; max-width: 34rem; }
.st-step[hidden] { display: none; }
.st-step h1, .st-step h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.5rem); line-height: 1.08; }
.st-sub { color: var(--ink-soft); }
.st-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 4px; }
.st-back { min-height: 44px; padding: 0 6px; border: 0; background: none; color: var(--ink-soft); font: 600 15px/1 var(--sans); cursor: pointer; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--edge); }
.st-back[hidden] { display: none; }
.st-label { font-size: 15px; font-weight: 600; }
.st-box { padding: 16px 18px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--edge); }
.st-box b { display: block; margin-bottom: 4px; font-family: var(--display); font-weight: 400; font-size: 1.3rem; line-height: 1.2; }
.st-opt summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 600; color: var(--ink-soft); }
.st-opt[open] summary { color: var(--ink); }
.st-opt .kzb-field { margin-top: 12px; }
.st-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.st-err { padding: 12px 16px; border-radius: 12px; background: rgb(229 72 77 / .1); box-shadow: inset 0 0 0 1px rgb(229 72 77 / .45); font-size: 15px; }
.st-err[hidden] { display: none; }
.st-err a { color: var(--peri-soft); font-weight: 600; text-decoration: underline; }
.st-done { display: grid; gap: 16px; max-width: 34rem; }
.st-done[hidden] { display: none; }
.st-done .tick { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 999px; background: var(--accent); color: #fff; box-shadow: var(--glow); }
.st-done .tick svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
textarea.kzb-input { min-height: 6rem; resize: vertical; line-height: 1.45; }
.kzb-input { background: var(--card); }

/* ── /audit/ ─────────────────────────────────────────────────────────── */
.au-grid { display: grid; gap: 32px; }
@media (min-width: 960px) { .au-grid { grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; } }
.au-list { margin-top: 20px; padding: 0; list-style: none; display: grid; gap: 10px; }
.au-list li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; color: var(--ink-soft); }
.au-list li::before { content: ""; width: 10px; height: 10px; margin-top: .5em; border-radius: 2px; background: var(--accent); }
.au-form { display: grid; gap: 16px; padding: clamp(20px, 3vw, 32px); border-radius: 20px; background-color: var(--card); background-image: var(--card-sheen); box-shadow: inset 0 0 0 1px var(--edge), var(--shadow); }
.au-form[hidden] { display: none; }
.au-form h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }

/* ── /start/ menu ────────────────────────────────────────────────────── */
.mn .wrap { max-width: 32rem; display: grid; gap: 24px; }
.mn-head { display: grid; justify-items: center; gap: 12px; text-align: center; }
.mn-head img { width: 76px; height: 76px; border-radius: 999px; object-fit: cover; }
.mn-head h1 { font-size: clamp(1.9rem, 1.5rem + 2vw, 2.6rem); }
.mn-list { display: grid; gap: 12px; }
.mn-item {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: 48px minmax(0, 1fr) 20px; align-items: center; gap: 16px;
  min-height: 84px; padding: 16px 18px; border-radius: 20px; text-decoration: none;
  background-color: var(--card); background-image: var(--card-sheen);
  box-shadow: inset 0 0 0 1px var(--edge), var(--shadow);
  transition: transform .45s var(--ease-out), box-shadow .2s var(--ease-fade);
}
@media (hover: hover) { .mn-item:hover { transform: translateY(calc(var(--mv) * -3px)); box-shadow: inset 0 0 0 1px rgb(var(--violet) / .6), var(--glow); } }
.mn-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--accent); color: #fff; }
.mn-ico svg { width: 24px; height: 24px; }
.mn-ico--wa { background: #1f9e55; }
.mn-item b { display: block; font-family: var(--display); font-weight: 400; font-size: 1.3rem; line-height: 1.15; }
.mn-item small { display: block; margin-top: 3px; font-size: 14px; line-height: 1.45; color: var(--ink-soft); }
.mn-arr { width: 20px; height: 20px; fill: none; stroke: var(--ink-soft); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.mn-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; font-size: 14px; color: var(--ink-soft); }
.mn-foot a { padding: 10px 2px; text-decoration: none; }
.mn-foot a:hover { color: var(--ink); }

/* Chips and inputs: slightly larger targets on the founders base */
.kzb-chip, .kzb-swatch { font-family: var(--sans); }

/* ── /free-demo/ (ads) ───────────────────────────────────────────────── */
.top-mini .wrap { grid-template-columns: 1fr auto; }
.top-mini .tg { justify-self: end; }
.fd-grid { display: grid; gap: 24px; }
.fd-copy { display: grid; gap: 16px; max-width: 34rem; }
.fd-copy h1 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.2rem); line-height: 1.06; }
.fd-copy .btns { margin-top: 4px; }
.fd-phone .pv-phone { width: clamp(220px, 62vw, 270px); }
@media (min-width: 960px) {
  .fd-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(40px, 6vw, 96px); align-items: center; }
  .fd-phone .pv-phone { width: 270px; }
}
@media (max-height: 760px) and (min-width: 960px) { .fd-phone .pv-phone { width: 240px; } }
.proof > div { display: flex; flex-direction: column; gap: 4px; }
@media (min-width: 720px) { .fd-proof { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ── /solar/ (industry template) ─────────────────────────────────────── */
.sl-list { list-style: none; padding: 0; display: grid; gap: 14px; max-width: 46rem; }
.sl-list li { display: grid; gap: 4px; padding: 18px 20px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--edge); }
.sl-list b { font-family: var(--display); font-weight: 400; font-size: 1.25rem; line-height: 1.25; }
.sl-list span { color: var(--ink-soft); }
.sl-grid { list-style: none; padding: 0; display: grid; gap: 14px; }
@media (min-width: 720px) { .sl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .sl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sl-grid li { display: grid; gap: 6px; align-content: start; padding: 22px; border-radius: 18px; background-color: var(--card); background-image: var(--card-sheen); box-shadow: inset 0 0 0 1px var(--edge); }
.sl-grid .n { font: 500 13px var(--mono); color: var(--peri-soft); }
.sl-grid b { font-family: var(--display); font-weight: 400; font-size: 1.25rem; line-height: 1.2; }
.sl-grid span:last-child { color: var(--ink-soft); }
.sl-case { position: relative; margin: 0; padding-bottom: 40px; padding-right: clamp(40px, 8vw, 110px); display: grid; gap: 18px; }
.sl-shot img { width: 100%; border-radius: 14px; border: 1px solid var(--edge); box-shadow: var(--shadow); }
.sl-mob { position: absolute; right: 0; top: clamp(40px, 8vw, 120px); width: clamp(96px, 20vw, 190px); padding: 5px; border-radius: 22px; background: #0b0418; box-shadow: inset 0 0 0 1px rgb(247 247 248 / .14), var(--shadow); }
.sl-mob img { width: 100%; border-radius: 17px; }
.sl-case figcaption { display: grid; gap: 4px; max-width: 40rem; }
.sl-case figcaption b { font-family: var(--display); font-weight: 400; font-size: 1.3rem; }
.sl-case figcaption span { color: var(--ink-soft); }
.final { padding: 96px 0 120px; }

/* ── /audit/ multi-step ──────────────────────────────────────────────── */
.au-wrap { max-width: 40rem; }
.au-opts { display: grid; gap: 10px; }
.au-opt {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 58px; padding: 14px 18px;
  border: 0; border-radius: 16px; text-align: left; cursor: pointer;
  background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--edge);
  font: 500 16px/1.35 var(--sans); transition: box-shadow .2s var(--ease-fade), background-color .2s var(--ease-fade);
}
.au-opt::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 999px; box-shadow: inset 0 0 0 2px var(--edge-strong); transition: box-shadow .2s var(--ease-fade); }
.au-opt:hover { box-shadow: inset 0 0 0 1.5px rgb(var(--violet) / .6); }
.au-opt[aria-checked="true"] { background: rgb(var(--violet) / .14); box-shadow: inset 0 0 0 2px var(--accent); }
.au-opt[aria-checked="true"]::before { box-shadow: inset 0 0 0 6px var(--accent); }
.au-opts--chips { display: flex; flex-wrap: wrap; gap: 8px; }
.au-opts--chips .au-opt { width: auto; min-height: 46px; padding: 10px 16px; border-radius: 999px; }
.au-opts--chips .au-opt::before { display: none; }
#au-f2-wrap { display: grid; gap: 12px; margin-top: 8px; }
#au-f2-wrap[hidden] { display: none; }

/* ── 404 · the lost star ─────────────────────────────────────────────── */
.nf { display: grid; align-content: center; text-align: center; }
.nf-wrap { display: grid; justify-items: center; gap: 18px; max-width: 40rem; }
.nf-wrap h1 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.7rem); }
.nf-btns { justify-content: center; margin-top: 6px; }
.nf-num { display: flex; align-items: center; gap: clamp(8px, 2vw, 18px); font: 400 clamp(5.5rem, 3rem + 12vw, 10rem)/1 var(--display); letter-spacing: -.04em; color: var(--ink); }
.nf-zero { position: relative; display: grid; place-items: center; width: .62em; height: .78em; border-radius: 999px; box-shadow: inset 0 0 0 .07em var(--ink); }
.nf-zero::after { content: ""; position: absolute; inset: -.09em; border-radius: 999px; border: 1px dashed rgb(var(--violet) / .45); }
.nf-star { position: absolute; top: -.08em; left: 50%; width: 44px; height: 44px; margin-left: -22px; display: grid; place-items: center; padding: 0; border: 0; background: none; cursor: pointer; color: var(--peri-soft); filter: drop-shadow(0 0 8px rgb(var(--violet) / .9)); transform-origin: 22px calc(.47em + 22px); }
.nf-star svg { width: 22px; height: 22px; fill: currentColor; }
.nf-star:hover svg { transform: scale(1.2); }
@media (prefers-reduced-motion: no-preference) {
  .nf-star { animation: nf-orbit 9s linear infinite; }
  .nf-star.zip { animation: nf-zip .9s cubic-bezier(.2,.7,.2,1), nf-orbit 9s linear .9s infinite; }
  .nf-btns .btn-main.nudge { animation: nf-nudge 1.2s ease-in-out 2; }
}
.nf-star.zip svg { transform: scale(1.35); transition: transform .3s; }
@keyframes nf-orbit { to { transform: rotate(360deg); } }
@keyframes nf-zip { from { transform: rotate(0deg); } to { transform: rotate(720deg); } }
@keyframes nf-nudge { 50% { transform: translateY(-4px); box-shadow: var(--glow); } }
