:root {
    color-scheme: light;
    --bg: #f6f7f9;
    --surface: #ffffff;
    --text: #18202a;
    --muted: #647184;
    --line: #d8dde5;
    --accent: #0f766e;
    --danger: #b42318;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
}

a { color: inherit; }
.topbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 3.25rem;
    padding: 0 1rem;
    background: #202a34;
    color: #fff;
}
.topbar form { margin-left: auto; }
.shell {
    width: min(1360px, calc(100% - 3rem));
    margin: 1rem auto 3rem;
}
h1 { font-size: 1.6rem; margin: 0 0 1rem; }
h2 { font-size: 1rem; margin: 0 0 .75rem; }
h3 { font-size: .95rem; margin: 0 0 .5rem; }
.grid, .setup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}
.admin-board {
    display: grid;
    gap: 1.25rem;
}
article, .panel, .auth-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1rem;
}
.auth-panel {
    max-width: 390px;
    margin: 12vh auto 0;
}
.landing-shell {
    width: 100%;
}
.landing-page {
    background: #f4f7f8;
}
.landing-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: min(1360px, calc(100% - 3rem));
    min-height: 4.5rem;
    margin: 0 auto;
}
.landing-nav nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    color: #344054;
    font-size: .95rem;
}
.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    color: #101828;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.1rem;
}
.brand-mark::before {
    content: "";
    width: 2rem;
    height: 2rem;
    border-radius: 8px;
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
}
.landing-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(320px, .98fr);
    gap: 2rem;
    align-items: center;
    width: min(1360px, calc(100% - 3rem));
    min-height: calc(100vh - 4.5rem);
    margin: 0 auto;
    padding: 3rem 0 4rem;
}
.hero-copy {
    display: grid;
    gap: 1rem;
}
.eyebrow {
    margin: 0;
    color: #0f766e;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.landing-hero h1 {
    max-width: 760px;
    margin: 0;
    color: #101828;
    font-size: clamp(2.2rem, 6vw, 4.8rem);
    line-height: .98;
    letter-spacing: 0;
}
.hero-lede {
    max-width: 660px;
    margin: 0;
    color: #475467;
    font-size: 1.12rem;
    line-height: 1.65;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: .5rem;
}
.product-shot {
    display: grid;
    gap: 1rem;
    border: 1px solid #cfd7e3;
    border-radius: 8px;
    padding: 1rem;
    background: #ffffff;
    box-shadow: 0 18px 50px rgba(16, 24, 40, .12);
}
.shot-toolbar {
    display: flex;
    gap: .4rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid var(--line);
}
.shot-toolbar span {
    width: .7rem;
    height: .7rem;
    border-radius: 999px;
    background: #98a2b3;
}
.shot-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}
.shot-grid div,
.score-preview {
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    padding: .85rem;
    background: #fbfcfe;
}
.shot-grid strong,
.score-preview strong {
    display: block;
    color: #101828;
}
.shot-grid p {
    margin: .25rem 0 0;
    color: #667085;
    font-size: .88rem;
}
.score-preview {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: center;
}
.score-preview span {
    color: #475467;
}
.score-preview strong {
    font-size: 2rem;
}
.score-preview em {
    color: #027a48;
    font-style: normal;
    font-weight: 700;
}
.landing-band {
    display: grid;
    gap: 1.5rem;
    width: min(1360px, calc(100% - 3rem));
    margin: 0 auto;
    padding: 4rem 0;
}
.landing-section-heading {
    display: grid;
    gap: .5rem;
    max-width: 700px;
}
.landing-section-heading h2,
.security-band h2 {
    margin: 0;
    color: #101828;
    font-size: 2rem;
    line-height: 1.15;
}
.feature-grid,
.action-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}
.feature-grid article,
.action-card {
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    padding: 1.25rem;
    background: #ffffff;
}
.feature-grid p,
.action-card p,
.security-band p {
    margin: .5rem 0 0;
    color: #475467;
    line-height: 1.55;
}
.action-card {
    display: grid;
    gap: .45rem;
    min-height: 13rem;
    color: inherit;
    text-decoration: none;
}
.action-card span {
    color: #0f766e;
    font-size: .82rem;
    font-weight: 800;
    text-transform: uppercase;
}
.action-card strong {
    color: #101828;
    font-size: 1.25rem;
}
.action-card.primary {
    background: #0f766e;
    border-color: #0f766e;
}
.action-card.primary span,
.action-card.primary strong,
.action-card.primary p {
    color: #ffffff;
}
.security-band {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    align-items: center;
    border-top: 1px solid #d0d5dd;
}
.stack { display: grid; gap: .75rem; }
.compact-form {
    display: flex;
    align-items: end;
    flex-wrap: wrap;
    gap: .75rem;
}
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
label {
    display: grid;
    gap: .3rem;
    color: var(--muted);
    font-size: .9rem;
}
fieldset {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: .85rem;
}
legend {
    padding: 0 .35rem;
    font-weight: 700;
}
input, select, textarea {
    min-height: 2.4rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: .5rem .65rem;
    font: inherit;
    color: var(--text);
}
textarea {
    min-height: 8rem;
    resize: vertical;
}
button {
    min-height: 2.4rem;
    border: 0;
    border-radius: 6px;
    padding: .5rem .85rem;
    background: var(--accent);
    color: #fff;
    font: inherit;
    cursor: pointer;
}
button.secondary { background: #344054; }
button.danger { background: var(--danger); }
button:disabled {
    opacity: .55;
    cursor: not-allowed;
}
.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.4rem;
    border-radius: 6px;
    padding: .5rem .85rem;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
}
.button-link.secondary { background: #344054; }
.badge {
    display: inline-flex;
    align-items: center;
    min-height: 1.8rem;
    border-radius: 999px;
    padding: .25rem .65rem;
    background: #eef2f6;
    color: var(--muted);
    font-size: .85rem;
    font-weight: 700;
}
.badge.warning { background: #fff7ed; color: #9a3412; }
.badge.ready { background: #ecfdf3; color: #027a48; }
.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: .75rem;
}
.status-metric {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: .75rem;
    background: #fbfcfe;
}
.status-metric span {
    display: block;
    color: var(--muted);
    font-size: .8rem;
}
.status-metric strong {
    display: block;
    margin-top: .2rem;
    font-size: 1.2rem;
}
table {
    width: 100%;
    margin-top: 1rem;
    border-collapse: collapse;
    background: var(--surface);
    border: 1px solid var(--line);
}
.admin-board table { margin-top: 0; }
.tablet-batch {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: .75rem;
}
.score-tile {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: .85rem;
    background: #fbfcfe;
}
.score-tile strong { display: block; margin-bottom: .25rem; }
th, td {
    padding: .7rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
}
th { color: var(--muted); font-weight: 600; }
pre {
    overflow: auto;
    padding: .75rem;
    background: #111827;
    color: #e5e7eb;
    border-radius: 6px;
}
.muted { color: var(--muted); }
.notice { padding: .75rem; border-radius: 6px; }
.error { background: #fee4e2; color: var(--danger); }
.success { background: #ecfdf3; color: #027a48; }
.setup-key, .setup-uri {
    overflow-wrap: anywhere;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: .65rem;
    background: #fbfcfe;
    font-family: Consolas, Monaco, monospace;
    color: var(--text);
}
.setup-key {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: .08em;
}
.setup-uri {
    font-size: .8rem;
}
.qr-box {
    display: grid;
    place-items: center;
    width: min(100%, 280px);
    min-height: 280px;
    margin: .75rem auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: .75rem;
    background: #fff;
}
.qr-box svg {
    display: block;
    width: 100%;
    height: auto;
}
details {
    border-top: 1px solid var(--line);
    padding-top: .65rem;
}
summary {
    cursor: pointer;
    color: var(--text);
    font-weight: 700;
}
.auth-details {
    margin: .75rem 0;
}
.availability-picker {
    display: grid;
    gap: .75rem;
}
.date-list {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    min-height: 2.25rem;
}
.date-chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    max-width: 100%;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: .35rem .45rem .35rem .65rem;
    background: #fbfcfe;
    font-size: .9rem;
    overflow-wrap: anywhere;
}
.icon-button {
    display: inline-grid;
    place-items: center;
    min-width: 1.35rem;
    min-height: 1.35rem;
    padding: 0;
    border-radius: 999px;
    background: #344054;
    line-height: 1;
}
.wizard-page {
    display: grid;
    gap: 1rem;
}
.wizard-layout {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}
.wizard-nav {
    position: sticky;
    top: 1rem;
    display: grid;
    gap: .4rem;
}
.wizard-nav button {
    justify-content: flex-start;
    width: 100%;
    background: #e9edf3;
    color: var(--text);
    text-align: left;
}
.wizard-nav button.active {
    background: var(--accent);
    color: #fff;
}
.wizard-main {
    display: grid;
    gap: 1rem;
}
.wizard-step[hidden] {
    display: none;
}
.wizard-actions {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
}
.two-column,
.three-column,
.split-panel,
.choice-grid {
    display: grid;
    gap: .75rem;
}
.two-column { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.three-column { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.split-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.choice {
    display: flex;
    align-items: center;
    gap: .5rem;
    min-height: 2.5rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: .6rem .75rem;
    color: var(--text);
    background: #fbfcfe;
}
.choice input {
    min-height: auto;
}
.copy-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: .75rem;
    align-items: end;
}
.readiness-list {
    display: grid;
    gap: .5rem;
    padding: 0;
    list-style: none;
}
.readiness-list li {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: .75rem;
    background: #fbfcfe;
}
.readiness-list li.ready {
    border-color: #abefc6;
    background: #ecfdf3;
    color: #027a48;
}
.readiness-list li.pending {
    border-color: #fedf89;
    background: #fffaeb;
    color: #93370d;
}
@media (max-width: 820px) {
    .landing-nav {
        align-items: flex-start;
        flex-direction: column;
        padding: 1rem 0;
    }
    .landing-hero,
    .feature-grid,
    .action-card-grid,
    .security-band {
        grid-template-columns: 1fr;
    }
    .landing-hero {
        min-height: auto;
        padding: 2rem 0 3rem;
    }
    .shot-grid,
    .score-preview {
        grid-template-columns: 1fr;
    }
    .wizard-layout,
    .two-column,
    .three-column,
    .split-panel,
    .copy-row {
        grid-template-columns: 1fr;
    }
    .wizard-nav {
        position: static;
    }
}

/* Public landing page */
.landing-page {
    min-height: 100vh;
    background: #f3f7f6;
    color: #101828;
}
.landing-shell {
    width: 100%;
    margin: 0;
}
.landing-nav {
    position: absolute;
    top: 0;
    z-index: 4;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: min(1500px, calc(100% - 3rem));
    min-height: 4.75rem;
    color: #fff;
}
.landing-nav nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    color: #ffffff;
    font-size: .95rem;
}
.landing-nav a {
    color: inherit;
    text-decoration: none;
}
.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    font-weight: 800;
    font-size: 1.15rem;
}
.brand-mark::before {
    content: "";
    width: 2.05rem;
    height: 2.05rem;
    border: 2px solid rgba(255, 255, 255, .72);
    border-radius: 8px;
    background: #0f766e;
    box-shadow: inset 0 0 0 7px #f5c451;
}
.landing-hero {
    position: relative;
    display: grid;
    align-items: start;
    width: 100%;
    min-height: 92vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #111827;
}
.landing-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(9, 22, 30, .9) 0%, rgba(9, 22, 30, .64) 46%, rgba(9, 22, 30, .08) 100%),
        linear-gradient(0deg, rgba(15, 118, 110, .4) 0%, rgba(15, 118, 110, 0) 42%);
}
.landing-hero .hero-dancer {
    position: absolute;
    inset: auto;
    z-index: 2;
    right: clamp(1.5rem, 8vw, 9rem);
    top: clamp(4.8rem, 9vh, 7rem);
    width: min(34vw, 500px);
    height: auto;
    max-height: 78vh;
    object-fit: contain;
    filter: drop-shadow(0 28px 38px rgba(0, 0, 0, .35));
    pointer-events: none;
}
.hero-copy {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 1rem;
    width: min(1500px, calc(100% - 3rem));
    margin: 0 auto;
    padding: 9rem 0 4rem;
    color: #fff;
}
.hero-copy .eyebrow {
    color: #f5c451;
}
.landing-hero h1 {
    max-width: 880px;
    margin: 0;
    color: #fff;
    font-size: 4.2rem;
    line-height: 1;
    letter-spacing: 0;
}
.hero-lede {
    max-width: 760px;
    margin: 0;
    color: #dce9e7;
    font-size: 1.15rem;
    line-height: 1.65;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: .5rem;
}
.button-link.light {
    background: #ffffff;
    color: #0f3440;
}
.button-link.ghost {
    border: 1px solid rgba(255, 255, 255, .58);
    background: rgba(255, 255, 255, .12);
    color: #ffffff;
}
.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    width: min(1500px, calc(100% - 3rem));
    margin: -3rem auto 0;
    position: relative;
    z-index: 3;
}
.quick-card {
    display: grid;
    gap: .55rem;
    min-height: 13rem;
    border: 1px solid rgba(255, 255, 255, .46);
    border-radius: 8px;
    padding: 1.25rem;
    background: #ffffff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 18px 48px rgba(16, 24, 40, .12);
}
.quick-card span,
.feature-strip span {
    color: #0f766e;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.quick-card strong {
    color: #101828;
    font-size: 1.35rem;
}
.quick-card p {
    margin: 0;
    color: #475467;
    line-height: 1.52;
}
.quick-card.organiser {
    background: #0f766e;
}
.quick-card.organiser span,
.quick-card.organiser strong,
.quick-card.organiser p {
    color: #fff;
}
.quick-card.competitor { border-top: 5px solid #f5c451; }
.quick-card.judge { border-top: 5px solid #ef6f61; }
.quick-card.musician { border-top: 5px solid #14b8a6; }
.landing-band {
    display: grid;
    gap: 1.5rem;
    width: min(1500px, calc(100% - 3rem));
    margin: 0 auto;
    padding: 5rem 0;
}
.landing-section-heading {
    display: grid;
    gap: .5rem;
    max-width: 760px;
}
.landing-section-heading h2,
.workflow-panel h2,
.security-band h2 {
    margin: 0;
    color: #101828;
    font-size: 2.45rem;
    line-height: 1.1;
}
.feature-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}
.feature-strip article {
    border-right: 1px solid #e4e7ec;
    padding: 1.4rem;
    background: #fff;
}
.feature-strip article:last-child {
    border-right: 0;
}
.feature-strip h3 {
    margin: .75rem 0 .5rem;
    color: #101828;
    font-size: 1.1rem;
}
.feature-strip p,
.workflow-panel p,
.security-band p {
    margin: 0;
    color: #475467;
    line-height: 1.58;
}
.workflow-band {
    padding-top: 1rem;
}
.workflow-panel {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(320px, 1.05fr);
    gap: 2rem;
    align-items: center;
    border-radius: 8px;
    padding: 2rem;
    background: #10252d;
}
.workflow-panel h2 {
    color: #fff;
}
.workflow-panel .eyebrow {
    color: #f5c451;
}
.workflow-panel p {
    color: #cddbd9;
}
.workflow-list {
    display: grid;
    gap: .75rem;
}
.workflow-list p {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 1rem;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    padding: 1rem;
    background: rgba(255, 255, 255, .06);
}
.workflow-list strong {
    color: #f5c451;
}
.workflow-list span {
    color: #edf7f5;
}
.security-band {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    align-items: center;
    border-top: 1px solid #d0d5dd;
}
.landing-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: min(1500px, calc(100% - 3rem));
    margin: 0 auto;
    padding: 1.5rem 0 2rem;
    border-top: 1px solid #d0d5dd;
    color: #475467;
    font-size: .92rem;
}
.landing-footer p {
    margin: 0;
}
.landing-footer nav {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.landing-footer a {
    color: inherit;
    text-decoration: none;
}
@media (max-width: 980px) {
    .landing-hero h1 {
        font-size: 3rem;
    }
    .hero-dancer {
        right: -2rem;
        top: 6rem;
        width: min(42vw, 400px);
        opacity: .92;
    }
    .quick-actions,
    .feature-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .feature-strip article:nth-child(2) {
        border-right: 0;
    }
    .feature-strip article {
        border-bottom: 1px solid #e4e7ec;
    }
    .feature-strip article:nth-child(n+3) {
        border-bottom: 0;
    }
}
@media (max-width: 680px) {
    .landing-nav {
        position: relative;
        left: auto;
        transform: none;
        flex-direction: column;
        align-items: flex-start;
        width: min(100% - 2rem, 1180px);
        padding: 1rem 0;
        color: #101828;
    }
    .landing-nav nav {
        gap: .75rem;
    }
    .landing-hero {
        min-height: 720px;
    }
    .landing-hero img {
        object-position: 62% center;
    }
    .hero-overlay {
        background: linear-gradient(0deg, rgba(9, 22, 30, .9) 0%, rgba(9, 22, 30, .72) 70%, rgba(9, 22, 30, .34) 100%);
    }
    .hero-copy {
        padding: 3rem 0 4rem;
    }
    .hero-dancer {
        right: -5.5rem;
        top: 6rem;
        width: 58vw;
        opacity: .45;
    }
    .landing-hero h1 {
        font-size: 2.35rem;
        line-height: 1.04;
    }
    .hero-lede {
        font-size: 1rem;
    }
    .quick-actions,
    .feature-strip,
    .workflow-panel,
    .security-band {
        grid-template-columns: 1fr;
    }
    .landing-footer {
        align-items: flex-start;
        flex-direction: column;
    }
    .quick-actions {
        margin-top: 1rem;
    }
    .feature-strip article,
    .feature-strip article:nth-child(2),
    .feature-strip article:nth-child(n+3) {
        border-right: 0;
        border-bottom: 1px solid #e4e7ec;
    }
    .feature-strip article:last-child {
        border-bottom: 0;
    }
    .landing-section-heading h2,
    .workflow-panel h2,
    .security-band h2 {
        font-size: 1.8rem;
    }
    .workflow-panel {
        padding: 1.25rem;
    }
    .workflow-list p {
        grid-template-columns: 1fr;
        gap: .35rem;
    }
}
