/* Visioon Brief */
body { min-height: 100dvh; overflow-x: hidden; background:
  radial-gradient(120% 70% at 18% 0%, rgba(14, 42, 92, .55), transparent 60%), var(--ground); }

.top { position: fixed; inset: 0 0 auto 0; z-index: 5; display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter); background: linear-gradient(var(--ground), rgba(4, 10, 28, 0)); }

.stage { display: grid; grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 96px);
  min-height: 100dvh; padding: 96px var(--gutter) 48px; align-items: center; max-width: 1440px; margin: 0 auto; }

/* ---------- optic ---------- */
.optic { position: sticky; top: 96px; margin: 0; display: grid; justify-items: center; gap: 10px; }
.optic svg { width: min(100%, 480px); aspect-ratio: 1; overflow: visible; }
.optic .halo { opacity: 0; transition: opacity 1.2s var(--ease); }
.optic.lit .halo { opacity: 1; }
.optic .ticks line { stroke: var(--line-strong); stroke-width: 1; }
.optic .ticks { transform-origin: 200px 200px; animation: spin 90s linear infinite; }
.optic .seg { fill: none; stroke: var(--line); stroke-width: 3; stroke-linecap: round; transition: stroke .6s var(--ease), stroke-width .6s var(--ease); }
.optic .seg.on { stroke: var(--signal); stroke-width: 3.5; filter: drop-shadow(0 0 6px rgba(92, 200, 255, .55)); }
.optic .seg.now { stroke: var(--ink-2); }
.optic .ring { fill: none; stroke: var(--ink); stroke-width: 2.4; }
.optic .lens { fill: var(--signal); transition: fill-opacity .6s var(--ease); }
.optic .pulse { fill: none; stroke: var(--signal); stroke-width: 2; opacity: 0; }
.optic.send .pulse { animation: pulse 1.6s var(--ease) forwards; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0% { r: 20; opacity: .9; stroke-width: 6; } 100% { r: 200; opacity: 0; stroke-width: 1; } }

/* ---------- flow ---------- */
.flow { position: relative; min-height: 520px; display: grid; align-content: center; }
.step { display: none; }
.step.is-on { display: block; animation: rise .8s var(--ease) both; }
.step.leaving { display: block; animation: sink .35s var(--ease) both; position: absolute; inset: 0; pointer-events: none; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes sink { to { opacity: 0; transform: translateY(-18px); filter: blur(4px); } }

.kicker { color: var(--ink-3); margin: 0 0 18px; }
.kicker.signal { color: var(--signal); }
h1.display { font-size: clamp(38px, 5.6vw, 76px); margin: 0 0 22px; }
h2.display { font-size: clamp(30px, 4vw, 52px); margin: 0 0 26px; max-width: 18ch; }
h3.display { font-size: 28px; margin: 0 0 10px; }
.lede { max-width: 52ch; margin: 0 0 30px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; }

.field { margin: 0 0 26px; display: grid; gap: 10px; }
.field label { font-size: 15px; }
.area { position: relative; }
textarea, .in input, .money-in input {
  width: 100%; background: rgba(6, 14, 36, .6); border: 1px solid var(--line-strong); border-radius: 16px;
  padding: 14px 52px 14px 16px; resize: vertical; min-height: 56px; line-height: 1.5; transition: border-color .2s, background .2s;
}
textarea:focus, .in input:focus, .money-in input:focus { outline: none; border-color: var(--signal); background: rgba(6, 14, 36, .9); }
textarea::placeholder, input::placeholder { color: var(--ink-3); }
.mic { position: absolute; right: 10px; top: 10px; width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--line); background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--ink-2); }
.mic svg { width: 16px; height: 16px; }
.mic.rec { color: var(--abyss); background: var(--signal); border-color: var(--signal); animation: breathe 1.4s ease-in-out infinite; }
@keyframes breathe { 50% { box-shadow: 0 0 0 8px rgba(92, 200, 255, .15); } }

fieldset.chips { border: 0; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 10px; }
fieldset.chips legend { padding: 0; margin: 0 0 12px; font-size: 15px; width: 100%; }
fieldset.chips[hidden] { display: none; }
.chips button {
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent;
  cursor: pointer; transition: border-color .2s, background .2s, color .2s, transform .2s var(--ease);
}
.chips button:hover { border-color: var(--ink-2); }
.chips button[aria-pressed="true"] { border-color: var(--signal); background: var(--signal-soft); color: #fff; box-shadow: inset 0 0 0 1px var(--signal); }
.chips button:active { transform: scale(.97); }

.money-in { position: relative; display: flex; align-items: center; gap: 12px; }
.money-in input { max-width: 220px; padding-right: 16px; font-family: var(--font-mono); font-size: 18px; }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0 0 18px; }
.in { display: grid; gap: 6px; }
.in input { padding-right: 16px; }
.in input:user-invalid { border-color: var(--bad); }
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 14px; cursor: pointer; font-size: 15px; }
.consent input { margin-top: 4px; accent-color: var(--signal); width: 18px; height: 18px; }
.small { text-transform: none; font-size: 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; padding-top: 22px; border-top: 1px solid var(--line); }
.nav[hidden] { display: none; }
.nav [data-back] { padding: 0; width: 48px; justify-content: center; }
.nav .hint { flex: 1; text-align: center; }
.err { color: var(--bad); min-height: 1.5em; margin: 12px 0 0; font-size: 15px; }

/* results */
.cal { margin-top: 8px; min-height: 420px; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: rgba(6, 14, 36, .55); }
.cal > p { padding: 24px; margin: 0; }
.booked { margin-top: 22px; padding: 22px 0 0; border-top: 1px solid var(--signal); }
.links { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.links li { border-bottom: 1px solid var(--line); }
.links a { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 18px 0; text-decoration: none; }
.links a b { font-family: var(--font-display); font-stretch: 125%; font-weight: 600; letter-spacing: -0.01em; font-size: 20px; }
.links a span { color: var(--ink-2); grid-column: 1; font-size: 15px; }
.links a svg { grid-row: 1 / span 2; grid-column: 2; align-self: center; width: 18px; height: 18px; color: var(--ink-2); transition: transform .3s var(--ease), color .3s; }
.links a:hover svg { transform: translate(3px, -3px); color: var(--signal); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .stage { grid-template-columns: 1fr; padding-top: 84px; align-items: start; gap: 8px; }
  .optic { position: relative; top: 0; }
  .optic svg { width: 150px; }
  .optic figcaption { display: none; }
  .flow { min-height: 0; }
  .nav { position: sticky; bottom: 0; background: linear-gradient(rgba(4, 10, 28, 0), var(--ground) 30%); padding-bottom: 14px; padding-bottom: max(14px, env(safe-area-inset-bottom)); }
  .nav .hint { display: none; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .chips button { min-height: 42px; padding: 0 14px; font-size: 15px; }
  .readout { font-size: 11px; }
  .wordmark b { font-size: 15px; }
}
