/* ─── /alpha — builds on /css/style.css tokens (asset links are versioned in index.html: bump ?v= on change) ─── */
.pitch > *, .apply > * { max-width: var(--max-w); margin-left: auto; margin-right: auto; }
.pitch-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.hero { padding-bottom: 40px; } /* the form follows right under it */
#apply { padding-top: 16px; }
@media (max-width: 560px) { .hero { padding-top: 112px; padding-bottom: 24px; } }
.apply h2 { text-align: center; }
.apply-intro { text-align: center; color: var(--text-secondary); margin-bottom: 40px; }

.alpha-form, .thanks { max-width: 640px; }
.alpha-form { display: grid; gap: 22px; }
.alpha-form[hidden], .apply-intro[hidden] { display: none; } /* display:grid above beats the hidden attribute */
.field { display: grid; gap: 8px; border: 0; min-width: 0; }
.field > span, .field legend { font-weight: 600; font-size: 0.98rem; }
.field legend { margin-bottom: 8px; }
.field em { color: var(--brand); font-style: normal; }
.field small { font-weight: 400; color: var(--text-secondary); font-size: 0.85rem; margin-left: 6px; }
.field .hint { margin-left: 0; margin-top: -4px; line-height: 1.45; }

.alpha-form input[type="text"],
.alpha-form input[type="email"],
.alpha-form select,
.alpha-form textarea {
    width: 100%; font: 400 1rem/1.5 var(--font-body); color: var(--ink);
    background: #fff; border: 1px solid #D9D9E3; border-radius: 10px;
    padding: 12px 14px; transition: var(--transition);
    -webkit-appearance: none; appearance: none;
}
.alpha-form textarea { resize: vertical; min-height: 96px; }
.alpha-form select { -webkit-appearance: auto; appearance: auto; }
.alpha-form input:focus, .alpha-form select:focus, .alpha-form textarea:focus {
    outline: none; border-color: var(--violet);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}
.alpha-form .invalid { border-color: #F43F5E !important; }

.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
    display: inline-block; padding: 10px 16px; border: 1px solid #D9D9E3;
    border-radius: 999px; font-size: 0.95rem; transition: var(--transition);
}
.choice input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.choice input:focus-visible + span { box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25); }
fieldset.invalid .choice span { border-color: #F43F5E; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-error { color: #E11D48; font-size: 0.95rem; }
.alpha-form .cta { border: 0; cursor: pointer; font-family: var(--font-body); justify-self: start; }
.alpha-form .cta:disabled { opacity: 0.6; cursor: wait; transform: none; }

.thanks {
    text-align: center; border: 1px solid transparent; border-radius: 16px; padding: 40px 28px;
    background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box;
}
.thanks h3 { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 10px; }
.thanks p { color: var(--text-secondary); }

/* It learns, then runs on its own: centred heading over the 2x2 cards. */
.grow h2, .grow-intro { text-align: center; }
.grow-intro { max-width: 720px; color: var(--text-secondary); margin-bottom: 28px; }

/* See it at work: one demo per role. Without JS all three stack; with JS the tabs show one. */
.demos > * { max-width: var(--max-w); margin-left: auto; margin-right: auto; }
.demos h2, .demos-intro { text-align: center; }
.demos-intro { color: var(--text-secondary); margin-bottom: 28px; }
.demo-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.demo-tabs[hidden] { display: none; }
.demo-tabs button {
    font: 500 0.98rem var(--font-body); color: var(--ink); background: #fff; cursor: pointer;
    border: 1px solid #D9D9E3; border-radius: 999px; padding: 10px 18px; transition: var(--transition);
}
.demo-tabs button:hover { border-color: var(--ink); }
.demo-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.demo-tabs button:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25); }
.demo { display: grid; grid-template-columns: 1fr 1.7fr; gap: 36px; align-items: center; }
.demo + .demo { margin-top: 56px; }
.js .demo + .demo { margin-top: 0; }
.demo[hidden] { display: none; }
.demo-for { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
.demo-copy h3 { font-family: var(--font-display); font-size: 1.45rem; line-height: 1.25; margin-bottom: 12px; }
.demo-copy p:not(.demo-for) { color: var(--text-secondary); margin-bottom: 18px; }
.demo-apply { font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--brand); padding-bottom: 2px; }
.demo-apply:hover { color: var(--brand); }
.demo-video { position: relative; }
.demo-play {
    position: absolute; inset: 0; margin: auto; z-index: 1; width: 84px; height: 84px; border-radius: 50%;
    border: 0; cursor: pointer; background: var(--brand); box-shadow: 0 10px 30px -8px rgba(254, 107, 53, 0.7);
    transition: transform 0.2s var(--ease-out);
}
.demo-play::after {
    content: ""; position: absolute; left: 34px; top: 26px;
    border-style: solid; border-width: 16px 0 16px 26px; border-color: transparent transparent transparent #fff;
}
.demo-play:hover { transform: scale(1.07); }
.demo-play:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.35); }
.demo-play[hidden] { display: none; }
.demo-video video {
    display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #F4F1EE;
    border-radius: 14px; border: 1px solid var(--border); box-shadow: 0 18px 40px -18px rgba(16, 16, 20, 0.35);
}

/* One prompt, one music video: centred heading, full-width 16:9 player, reuses the demo play button. */
.mv > * { max-width: var(--max-w); margin-left: auto; margin-right: auto; }
.mv .demo-for, .mv h2, .mv-intro, .mv-links { text-align: center; }
.mv-intro { max-width: 720px; color: var(--text-secondary); margin-bottom: 28px; }
.mv-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px 28px; margin-top: 24px; }
.mv-yt { color: var(--text-secondary); text-decoration: none; padding-bottom: 2px; }
.mv-yt:hover { color: var(--ink); }

@media (max-width: 879px) {
    .pitch-cards { grid-template-columns: 1fr; }
    .demo { grid-template-columns: 1fr; gap: 20px; }
    .demo-video { order: -1; }
    .demo-play { transform: scale(0.64); }
    .demo-play:hover { transform: scale(0.68); }
}
@media (max-width: 560px) {
    .alpha-form .cta { justify-self: stretch; text-align: center; }
}
