[hidden] { display: none !important; }

:root {
    --bg: #000;
    --fg: #fff;
    --fg-dim: rgba(255, 255, 255, 0.55);
    --fg-quiet: rgba(255, 255, 255, 0.35);
    --rule: rgba(255, 255, 255, 0.18);
    --field-bg: rgba(255, 255, 255, 0.04);
    --max-width: 480px;
    --gutter: 1.5rem;
}

body {
    background: var(--bg);
    color: var(--fg);
    font-family: 'Syne', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 400;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.page {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3rem var(--gutter) 4rem;
    padding-top: max(3rem, env(safe-area-inset-top));
    padding-bottom: max(4rem, env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
}

.page > * + * {
    margin-top: 2.25rem;
    padding-top: 2.25rem;
    border-top: 1px solid var(--rule);
}

/* Brand header */
.brand {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.brand-logo {
    width: clamp(80px, 18vw, 110px);
    height: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.brand-tagline {
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--fg-dim);
}

/* Section base */
.section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.section-label {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--fg-dim);
}

/* Email capture (primary, eventLive=false) */
.capture-headline {
    font-size: clamp(2.25rem, 11vw, 3.75rem);
    font-weight: 600;
    line-height: 0.98;
    letter-spacing: -0.02em;
    margin: 0;
}

.capture-sub {
    font-size: 0.95rem;
    color: var(--fg-dim);
    line-height: 1.5;
    margin: 0;
}

.capture-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.5rem;
}

.field-label {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--fg-quiet);
}

.email-field {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--rule);
    color: var(--fg);
    font-family: inherit;
    font-size: 16px;
    padding: 0.875rem 0;
    width: 100%;
    border-radius: 0;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.2s ease;
}

.email-field:focus {
    outline: none;
    border-bottom-color: var(--fg);
}

.email-field::placeholder {
    color: var(--fg-quiet);
}

.consent {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--fg-dim);
    cursor: pointer;
}

.consent input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-top: 2px;
    border: 1px solid var(--rule);
    background: transparent;
    cursor: pointer;
    position: relative;
    border-radius: 0;
}

.consent input[type="checkbox"]:checked {
    background: var(--fg);
    border-color: var(--fg);
}

.consent input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid var(--bg);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.consent input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--fg);
    outline-offset: 2px;
}

.consent a {
    color: var(--fg-dim);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.consent a:hover { color: var(--fg); }

.btn-primary {
    background: var(--fg);
    color: var(--bg);
    border: 1px solid var(--fg);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 1rem 1.5rem;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background 0.2s ease, color 0.2s ease;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover:not(:disabled) {
    background: transparent;
    color: var(--fg);
}

.btn-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.form-error {
    font-size: 0.8rem;
    color: var(--fg);
    background: rgba(255, 255, 255, 0.06);
    border-left: 2px solid var(--fg);
    padding: 0.75rem 1rem;
}

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

/* Success state */
.success {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.success h2 {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
    font-weight: 600;
    line-height: 1.0;
    letter-spacing: -0.01em;
    margin: 0;
    outline: none;
}

.success p {
    font-size: 0.9rem;
    color: var(--fg-dim);
    line-height: 1.5;
    margin: 0;
}

/* What's next event card */
.event-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.event-image {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
}

.event-name {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin: 0;
}

.event-meta {
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--fg-dim);
    margin: 0;
}

.event-copy {
    font-size: 0.95rem;
    color: var(--fg-dim);
    line-height: 1.55;
    margin: 0;
}

/* Link list (Spotify, TikTok, Press) */
.link-list {
    display: flex;
    flex-direction: column;
}

.link-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.125rem 0;
    border-bottom: 1px solid var(--rule);
    color: var(--fg);
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: color 0.2s ease, padding-left 0.2s ease;
    min-height: 48px;
}


.link-row:hover {
    color: var(--fg);
    padding-left: 0.25rem;
}

.link-row-label {
    font-weight: 500;
}

.link-row-meta {
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--fg-quiet);
}

/* Footer */
.footer {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: var(--fg-quiet);
}

.footer a {
    color: var(--fg-quiet);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer a:hover { color: var(--fg); }

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Phase toggle: hide email module when event is live and tickets module shows */
body[data-event-live="false"] .module-tickets { display: none; }
body[data-event-live="true"] .module-capture .capture-headline,
body[data-event-live="true"] .module-capture .capture-sub { display: none; }

/* Tickets module (eventLive=true) */
.module-tickets {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.tickets-headline {
    font-size: clamp(2.25rem, 11vw, 3.75rem);
    font-weight: 600;
    line-height: 0.98;
    letter-spacing: -0.02em;
    margin: 0;
}

@media (min-width: 520px) {
    .page { padding-left: 2rem; padding-right: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}
