/* ══════════════════════════════════════════════════════════════════════
   Kanvel: the hero and the one sentence (DECISIONS 192)

   The hero is the product's moment, played: asked, written, held at the gate
   until the visitor signs. hero.js runs the card and the particle field; with
   no script or with reduced motion the card is a still of the waiting proof.
   The sample is a specimen, so it waits in blue pencil (--info), like the
   console's tour; vermilion stays for a real person's real decision.
   ══════════════════════════════════════════════════════════════════════ */

.hero {
  --spring: cubic-bezier(.32, .72, 0, 1);
  position: relative;
  min-height: min(100svh, 960px); display: grid; align-items: center;
  padding-block: 96px 64px;
}
.hero__in { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 64px; align-items: center; width: 100%; }

.kicker { margin: 0 0 16px; font: 600 12px/16px var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }
.hero__h {
  margin: 0; max-width: 680px;
  font: 600 clamp(3rem, 6.4vw, 6rem)/1 var(--display); letter-spacing: -.04em; text-wrap: balance;
  background: linear-gradient(90deg, #fff, #9b9b9b); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: .08em;
}
:root[data-theme="light"] .hero__h { background-image: linear-gradient(90deg, #000, #666); }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .hero__h { background-image: linear-gradient(90deg, #000, #666); }
}
.hero__p { margin: 24px 0 0; max-width: 680px; font-size: 20px; line-height: 28px; color: var(--text-2); text-wrap: pretty; }
.acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.aside { margin: 16px 0 0; font-size: 14px; line-height: 20px; color: var(--text-3); }
.aside a { color: var(--text-2); }

/* The page-wide field sits under everything; the sections let it show through. */
.field { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
main { position: relative; z-index: 1; }
.solid { background: none; }

/* The goal box: one line, the hero's primary action. */
.goal {
  display: flex; gap: 8px; margin-top: 32px; max-width: 560px; padding: 8px;
  border: 1px solid var(--line-2); border-radius: 16px; background: color-mix(in srgb, var(--bg-2) 85%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: border-color .7s var(--spring), box-shadow .7s var(--spring);
}
.goal:focus-within { border-color: var(--info); box-shadow: 0 0 0 4px var(--info-wash); }
.goal input {
  flex: 1; min-width: 0; padding: 8px 12px; border: 0; background: none; outline: none;
  font: 500 18px/28px var(--ui); color: var(--text);
}
.goal input::placeholder { color: var(--text-3); opacity: 1; }
.goal input[aria-invalid="true"]::placeholder { color: var(--lit-text); }
.goal .btn { flex: none; }
.goal__note { max-width: 560px; }
.goal[hidden], .goal__note[hidden], .acts[hidden] { display: none; }
.live__next { justify-self: start; }
.live__next[hidden] { display: none; }
.live__other { margin-left: 4px; padding: 0; border: 0; background: none; color: var(--info); font: inherit; text-decoration: underline; cursor: pointer; }
.live__other[hidden] { display: none; }

/* ── The live proof ─────────────────────────────────────────────────── */

.live { margin: 0; }
.live__card {
  display: grid; gap: 16px; padding: 24px; border-radius: 24px;
  background: color-mix(in srgb, var(--bg-2) 82%, transparent);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--line-2); box-shadow: var(--lift-2);
  transition: border-color .7s var(--spring), box-shadow .7s var(--spring), transform .7s var(--spring);
}
.live[data-state="wait"] .live__card {
  border-color: var(--info);
  box-shadow: 0 0 0 1px var(--info), 0 24px 80px -24px color-mix(in srgb, var(--info) 55%, transparent), var(--lift-2);
}
.live[data-state="signed"] .live__card {
  border-color: var(--signed);
  box-shadow: 0 0 0 1px var(--signed), 0 24px 80px -24px color-mix(in srgb, var(--signed) 50%, transparent), var(--lift-2);
}
.live .live__card:has(.hold[data-holding]) { transform: scale(.98); }

.live__top { display: flex; align-items: center; gap: 8px; margin: 0; font: 500 12px/16px var(--mono); letter-spacing: .04em; color: var(--text-3); }
.live__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); flex: none; transition: background .7s var(--spring); }
.live[data-state="wait"] .live__dot { background: var(--info); animation: live-pulse 1.6s var(--spring) infinite; }
.live[data-state="signed"] .live__dot { background: var(--signed); }
.live__top > span:not(.live__dot) { white-space: nowrap; }
.live__when { margin-left: auto; }
@keyframes live-pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--info) 60%, transparent); } 50% { box-shadow: 0 0 0 6px transparent; } }

.live__brief { margin: 0; font-size: 14px; line-height: 20px; color: var(--text-3); }
.live__text { margin: 0; min-height: 84px; font: 500 20px/28px var(--display); letter-spacing: -.01em; color: var(--text); text-wrap: pretty; }
.live__text[data-typing]::after {
  content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -.15em;
  background: var(--info); animation: live-caret 1s steps(1) infinite;
}
@keyframes live-caret { 50% { opacity: 0; } }

.live__gate { display: grid; gap: 8px; }
.live__gate[hidden], .live__stamp[hidden] { display: none; }
.live__gate .hold { width: 100%; }
.live__hint { margin: 0; font-size: 14px; line-height: 20px; color: var(--text-3); }
.live__stamp {
  margin: 0; padding: 12px 16px; border: 1px solid var(--signed); border-radius: 12px;
  background: var(--signed-wash); font-size: 14px; line-height: 20px; color: var(--text-2);
}
.live__stamp b { display: block; color: var(--signed); font-weight: 600; }
.live figcaption { margin-top: 12px; font-size: 12px; line-height: 16px; color: var(--text-3); }

/* ── The one sentence ───────────────────────────────────────────────── */

.say { padding-block: 96px 0; }
.say__t {
  margin: 0; max-width: 900px;
  font: 600 clamp(2.25rem, 5vw, 3.75rem)/1.05 var(--display); letter-spacing: -.035em; text-wrap: balance;
}
.say__sig { height: clamp(140px, 22vw, 220px); max-width: 900px; margin-top: 32px; }
.say__fine { margin-top: 8px; }
.say__t .w { color: color-mix(in srgb, var(--text) 28%, transparent); transition: color .7s cubic-bezier(.32, .72, 0, 1); }
.say__t .w.is-lit { color: var(--text); }

/* ── Narrow ─────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .hero { min-height: 0; padding-block: 96px 48px; }
  .hero__in { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hero__h { font-size: clamp(2.5rem, 11vw, 3.75rem); }
  .hero__p { font-size: 18px; }
  .goal input { font-size: 16px; }
  .live__text { font-size: 18px; line-height: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .say__sig, .say__fine { display: none; }
  .live[data-state="wait"] .live__dot, .live__text[data-typing]::after { animation: none; }
  .say__t .w { color: var(--text); transition: none; }
}

/* One plan: one card, wide enough to read, with room around it for the seal. */
.plans__row--one { grid-template-columns: minmax(0, 560px); padding: 24px 0; }
