/* The home page. */
main section { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head .lead { margin-top: 16px; max-width: 46ch; }

/* Hero: a centred heading over one big box to start in, with a warm glow behind, as on Lovable. */
.hero { position: relative; isolation: isolate; overflow-x: clip; display: flex; flex-direction: column; align-items: center; text-align: center; min-height: min(860px, 100svh); justify-content: center; padding-top: 120px; padding-bottom: 96px; }
.hero h1 { max-width: 16ch; }
.hero .lead { margin: 20px auto 36px; max-width: 40ch; }
.glow { position: absolute; z-index: -1; left: 50%; bottom: -8%; width: min(1200px, 130vw); height: 70%; translate: -50% 0; pointer-events: none;
  background:
    radial-gradient(40% 55% at 30% 60%, rgba(255, 205, 40, .55), transparent 70%),
    radial-gradient(38% 50% at 55% 70%, rgba(255, 226, 120, .55), transparent 70%),
    radial-gradient(35% 45% at 75% 55%, rgba(250, 190, 30, .40), transparent 70%);
  filter: blur(40px); }
.composer { width: 100%; max-width: 720px; padding: 18px 18px 14px 22px; border-radius: 28px; background: var(--surface); box-shadow: var(--e3), inset 0 0 0 1px var(--glass-line); text-align: left; transition: box-shadow .25s var(--ease); }
.composer:focus-within { box-shadow: var(--e3), inset 0 0 0 1.5px var(--field-line); }
.composer textarea { min-height: 84px; padding: 4px 0; border: 0; border-radius: 0; background: none; font-size: 18px; line-height: 1.5; resize: none; }
.composer textarea:focus { background: none; border: 0; }
.composer-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.kinds-pick { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.kinds-pick label { cursor: pointer; }
.kinds-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.kinds-pick span { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--field); color: var(--muted); font-size: 14px; font-weight: 500; transition: background .15s, color .15s; }
.kinds-pick label:hover span { color: var(--text); }
.kinds-pick input:checked + span { background: var(--wash); color: var(--link); box-shadow: inset 0 0 0 1px var(--wash-pressed); }
.kinds-pick input:focus-visible + span { outline: 3px solid var(--link); outline-offset: 2px; }
.send { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--ink); color: var(--on-ink); cursor: pointer; transition: background .2s var(--ease), transform .2s var(--ease); }
.send:hover { background: var(--ink-pressed); }
.send:active { transform: scale(.94); }
.send svg { width: 20px; height: 20px; }
.hero-note { margin-top: 18px; }

/* A real walkthrough: the screens, in order, pinned while you scroll. */
.build { max-width: none; padding: 0; height: 420svh; border-top: 1px solid var(--rule); }
.build-sticky { position: sticky; top: 0; height: 100svh; max-width: 1280px; margin: 0 auto; padding: 88px var(--gutter) 32px; display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 48px; align-items: center; }
.build-copy h2 { margin-bottom: 28px; }
.build-steps { list-style: none; margin: 0; padding: 0; }
.build-steps li { padding: 14px 0 14px 20px; border-left: 2px solid var(--rule); opacity: .45; transition: opacity .35s var(--ease), border-color .35s var(--ease); }
.build-steps li b { display: block; font: 500 19px/1.3 var(--serif); }
.build-steps li span { display: block; color: var(--muted); font-size: 15px; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .4s var(--ease), opacity .3s; }
.build-steps li.on { opacity: 1; border-color: var(--ink); }
.build-steps li.on span { max-height: 4.5em; opacity: 1; margin-top: 4px; }
.build-stage { position: relative; aspect-ratio: 1440 / 900; max-height: calc(100svh - 140px); width: 100%; margin-inline: auto; border-radius: 16px; background: var(--surface); box-shadow: var(--e3), inset 0 0 0 1px var(--glass-line); overflow: hidden; }
.shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; opacity: 0; transform: scale(1.015); transition: opacity .5s var(--ease), transform .7s var(--ease); }
[data-step="0"] [data-n="0"], [data-step="1"] [data-n="1"], [data-step="2"] [data-n="2"], [data-step="3"] [data-n="3"], [data-step="4"] [data-n="4"] { opacity: 1; transform: none; }

.close { padding-top: 96px; padding-bottom: 96px; }
.close-card { padding: 72px 40px; border-radius: 28px; background: var(--surface); box-shadow: var(--e1); text-align: center; display: flex; flex-direction: column; align-items: center; }
.close-card .lead { margin: 14px auto 28px; max-width: 40ch; }

@media (max-width: 980px) {
  .hero { min-height: 0; padding-top: 128px; }
  .build { height: 460svh; }
  .build-sticky { grid-template-columns: 1fr; gap: 16px; align-content: start; padding-top: 84px; }
  .build-copy h2 { font-size: 28px; margin-bottom: 12px; }
  .build-steps li { display: none; border: 0; padding: 0; opacity: 1; }
  .build-steps li.on { display: block; }
  .build-steps li b { font-size: 17px; }
  .build-steps li span { max-height: none; opacity: 1; }
  .build-stage { aspect-ratio: 4 / 5; max-height: 62svh; }
  .shot { object-position: left top; object-fit: cover; }
}
@media (max-width: 640px) {
  .hero { padding-top: 104px; padding-bottom: 64px; }
  .composer { padding: 16px 14px 12px 16px; border-radius: 24px; }
  .composer-bar { align-items: flex-end; }
  .kinds-pick span { min-height: 34px; padding: 0 12px; font-size: 13px; }
  .close-card { padding: 48px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .build { height: auto; }
  .build-sticky { position: static; height: auto; display: block; padding-top: 72px; padding-bottom: 72px; }
  .build-steps li { opacity: 1; display: block; } .build-steps li span { max-height: none; opacity: 1; }
  .build-stage { aspect-ratio: auto; max-height: none; display: grid; gap: 16px; background: none; box-shadow: none; overflow: visible; margin-top: 32px; }
  .shot { position: static; opacity: 1; transform: none; border-radius: 12px; box-shadow: var(--e2); height: auto; }
}
