/* Page chrome and form for /creators — tokens match public/index.html. */

body {
    background: var(--paper);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { text-wrap: balance; }
::selection { background: var(--accent); color: #10191f; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.stage {
    background: linear-gradient(180deg, var(--stage) 0%, var(--stage-deep) 100%);
    color: var(--stage-ink);
}
.soft { color: var(--stage-soft); }
.paper-2 { background: color-mix(in srgb, var(--ink) 4%, var(--paper)); }

.site-nav {
    position: fixed;
    z-index: 50;
    top: 12px;
    left: 50%;
    width: min(1120px, calc(100% - 24px));
    transform: translateX(-50%);
    border-radius: 99px;
    background: color-mix(in srgb, var(--paper) 82%, transparent);
    color: var(--ink);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
    border: 1px solid var(--line);
    transition: background-color .35s, color .35s, border-color .35s;
}
.site-nav.on-stage {
    background: rgba(3, 26, 36, .66);
    color: var(--stage-ink);
    border-color: var(--stage-line);
}
.site-nav .nav-link { font-size: .92rem; opacity: .72; transition: opacity .25s; }
.nav-cta {
    background: var(--accent);
    color: #10191f;
    font-weight: 600;
    font-size: .9rem;
    padding: .55rem 1.1rem;
    border-radius: 99px;
    transition: transform 160ms ease-out;
}

.bloom {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
}
.bloom-a { width: 46vw; height: 46vw; left: 50%; top: 4%; background: rgba(214, 130, 70, .2); }
.bloom-b { width: 38vw; height: 38vw; left: -10%; top: 46%; background: rgba(224, 226, 227, .055); }

.hero { position: relative; overflow: hidden; isolation: isolate; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .95rem 1.4rem;
    font-family: "Space Mono", ui-monospace, monospace;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    border: 1.5px solid transparent;
    transition: transform 160ms ease-out, background-color .25s, color .25s, border-color .25s;
    cursor: pointer;
    background: none;
    color: inherit;
}
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--accent); color: #10191f; }
.btn-ghost { border-color: color-mix(in srgb, var(--ink) 35%, transparent); color: var(--ink); }
/* The application overlay is always dark, so it takes the stage colours too. */
.stage .btn-ghost, .apply-shell .btn-ghost { border-color: rgba(224, 226, 227, .35); color: var(--stage-ink); }

.how-step { border-top: 1px solid var(--line); padding-top: 1.6rem; }
.how-num { font-family: var(--pixel); font-size: 2.6rem; line-height: 1; color: var(--accent-text); }

.perk {
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 1.6rem 1.5rem;
    background: var(--paper);
}
.perk.is-accent {
    border-color: color-mix(in srgb, var(--accent) 55%, transparent);
    box-shadow: 0 30px 60px -40px rgba(214, 130, 70, .55);
}
.perk li { display: flex; gap: .7rem; padding: .45rem 0; }
.perk li::before {
    content: "";
    flex: none;
    width: 1.1rem;
    height: 1.1rem;
    margin-top: .22rem;
    border-radius: 50%;
    background: color-mix(in srgb, var(--accent) 22%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d68246' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 70% no-repeat;
}

.faq details {
    border-top: 1px solid var(--line);
    padding: 1.15rem 0;
}
.faq summary {
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: baseline;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+";
    font-family: "Space Mono", ui-monospace, monospace;
    color: var(--accent-text);
    flex: none;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: .7rem; color: var(--ink-soft); max-width: 62ch; }

.js [data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .8s cubic-bezier(.16, 1, .3, 1), transform .8s cubic-bezier(.16, 1, .3, 1);
    transition-delay: var(--d, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* -------- Application overlay -------- */
.apply-shell {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: var(--stage);
    color: var(--stage-ink);
    overflow: auto;
}
.apply-shell[hidden] { display: none !important; }

.apply-bar {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: color-mix(in srgb, var(--stage) 88%, transparent);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--stage-line);
}
.apply-progress-track {
    height: 3px;
    background: var(--stage-line);
}
.apply-progress-fill {
    height: 100%;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 240ms cubic-bezier(.23, 1, .32, 1);
}

.apply-card { width: min(560px, calc(100% - 2rem)); margin: 2.4rem auto 4rem; }
.apply-kicker {
    font-family: var(--pixel);
    font-size: .8rem;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--accent);
}
.apply-label { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 500; line-height: 1.15; letter-spacing: -.02em; }
.apply-hint { margin-top: .7rem; color: var(--stage-soft); }

.field, .choice-list, textarea.field {
    width: 100%;
    margin-top: 1.4rem;
    padding: .95rem 1rem;
    border-radius: 14px;
    border: 1px solid var(--stage-line);
    background: rgba(224, 226, 227, .06);
    color: var(--stage-ink);
    font: inherit;
    font-size: 1.05rem;
}
textarea.field { min-height: 9rem; resize: vertical; }
.field::placeholder, textarea.field::placeholder { color: color-mix(in srgb, var(--stage-soft) 80%, transparent); }
.field:focus, textarea.field:focus, .choice:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.choice-list { padding: .4rem; display: grid; gap: .35rem; }
.choice {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .85rem .9rem;
    border-radius: 12px;
    border: 1px solid transparent;
    text-align: left;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}
.choice[aria-checked="true"] {
    background: rgba(214, 130, 70, .16);
    border-color: rgba(214, 130, 70, .5);
}
.choice { transition: transform 160ms ease-out, background-color .15s, border-color .15s; }

.field-error { margin-top: .7rem; color: #ffb4a8; font-size: .95rem; min-height: 1.2em; }
.form-error {
    margin: 1rem auto 0;
    width: min(560px, calc(100% - 2rem));
    padding: .85rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 84, 73, .4);
    background: rgba(255, 84, 73, .12);
    color: #ffd0c8;
}

.apply-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    margin-top: 1.6rem;
}

.drop {
    margin-top: 1.4rem;
    padding: 1.6rem 1.2rem;
    border: 1.5px dashed var(--stage-line);
    border-radius: 18px;
    text-align: center;
    color: var(--stage-soft);
    cursor: pointer;
}
.drop.is-over { border-color: var(--accent); color: var(--stage-ink); }
.drop:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.drop input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.meter {
    margin-top: 1rem;
    height: 6px;
    border-radius: 99px;
    background: var(--stage-line);
    overflow: hidden;
}
.meter > span {
    display: block;
    height: 100%;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .15s linear;
}

.success-mark {
    font-family: var(--pixel);
    font-size: 3rem;
    line-height: 1;
    color: var(--accent);
}

/* Honeypot: present in the DOM, off screen, ignored by people. */
.hp {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.turnstile-slot { margin-top: 1.2rem; min-height: 1px; }

/* Pressing: every tap answers at once. The browser's grey tap flash goes,
   since :active now does that job. */
.btn, .nav-cta, .choice, .drop, .faq summary { -webkit-tap-highlight-color: transparent; }
.btn:active:not(:disabled), .nav-cta:active { transform: scale(.97); }
.choice:active { transform: scale(.985); }

/* Hover only where there's a real pointer; on touch it would stick after a tap. */
@media (hover: hover) and (pointer: fine) {
    .site-nav .nav-link:hover { opacity: 1; }
    .nav-cta:hover { transform: translateY(-1px); }
    .btn:hover:not(:disabled) { transform: translateY(-2px); }
    .btn:active:not(:disabled) { transform: translateY(-2px) scale(.97); }
    .btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
    .stage .btn-ghost:hover, .apply-shell .btn-ghost:hover { background: var(--stage-ink); color: var(--stage); border-color: var(--stage-ink); }
    .choice:not([aria-checked="true"]):hover { background: rgba(224, 226, 227, .06); }
}

/* Reduced motion: no movement, but colour and fades stay. */
@media (prefers-reduced-motion: reduce) {
    .js [data-reveal] { opacity: 1; transform: none; transition: none; }
    .btn, .btn:hover, .btn:active, .nav-cta, .nav-cta:hover, .nav-cta:active, .choice:active { transform: none; }
}

@media (max-width: 640px) {
    .site-nav { width: calc(100% - 16px); top: 8px; }
    .apply-card { margin-top: 1.4rem; }
    .apply-actions { flex-direction: column-reverse; }
    .apply-actions .btn { justify-content: center; width: 100%; }
}
