/* Public promo page (index.php) */

body { background: var(--surface); }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 1rem; }
.container.narrow { max-width: 820px; }

.skip-link { position: absolute; left: -999px; top: 0; z-index: 3000; background: var(--ink); color: #fff; padding: .75rem 1rem; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--ink);
    border-bottom: 3px solid var(--red);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav a:not(.btn) { color: #fff; text-decoration: none; font-weight: 600; font-size: .925rem; opacity: .85; }
.site-nav a:not(.btn):hover { opacity: 1; }

@media (max-width: 640px) {
    .site-nav a:not(.btn) { display: none; }
    .brand-partner { font-size: .7rem; }
}

/* Hero: the poster is designed on black, so the band is black too */
.hero { background: #000; color: #fff; }
.hero-inner { display: flex; flex-direction: column; align-items: center; padding: 1.5rem 1rem 2.5rem; }
.hero-poster { width: 100%; max-width: 890px; height: auto; }
.hero-cta { display: flex; flex-direction: column; align-items: center; gap: .5rem; margin-top: 1.25rem; text-align: center; }
.hero-cta p { margin: 0; color: rgba(255, 255, 255, .8); font-size: .95rem; }
.hero-cta strong { color: var(--yellow); }

/* Facts strip */
.facts { background: var(--red); color: #fff; }
.facts-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.fact { display: flex; align-items: center; gap: .9rem; padding: 1.25rem 1rem; }
.fact + .fact { border-left: 1px solid rgba(255, 255, 255, .25); }
.fact-value { font-size: 3rem; line-height: 1; color: var(--yellow); }
.fact-label { font-size: .9rem; line-height: 1.35; }

@media (max-width: 720px) {
    .facts-grid { grid-template-columns: 1fr; }
    .fact + .fact { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .25); }
    .fact { padding: .9rem 0; }
}

/* Sections */
.section { padding: 3.5rem 0; }
.section-title { font-size: clamp(2rem, 5vw, 2.75rem); margin-bottom: 1.25rem; }
.section-title::after { content: ''; display: block; width: 56px; height: 5px; margin-top: .5rem; background: var(--red); transform: skewX(-20deg); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.step { position: relative; padding: 1.5rem; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); }
.step-no { font-size: 2.5rem; line-height: 1; color: var(--red); }
.step h3 { margin: .5rem 0 .35rem; font-size: 1.1rem; }
.step p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Entry form */
.section-form { background: var(--bg); }
.form-container { max-width: 760px; }
.form-head .muted { margin-top: -.25rem; }

.entry-form { padding: 0; overflow: hidden; }
.form-step { border: 0; margin: 0; padding: 1.5rem; }
.form-step + .form-step { border-top: 1px solid var(--line); }
.form-step legend { display: flex; align-items: center; gap: .6rem; float: left; width: 100%; margin-bottom: 1rem; font-weight: 700; font-size: 1.1rem; color: var(--ink); }
.form-step legend + * { clear: both; }
.legend-no { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--red); color: #fff; font-size: .85rem; }

.dropzone {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 180px;
    padding: 1rem;
    border: 2px dashed var(--line-strong);
    border-radius: var(--radius);
    background: var(--bg);
    cursor: pointer;
    text-align: center;
    transition: border-color .15s ease, background-color .15s ease;
}

.dropzone:hover, .dropzone.is-dragover { border-color: var(--red); background: var(--red-50); }
.dropzone:focus-within { box-shadow: var(--focus); border-color: var(--red); }
.dropzone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone.has-file { border-style: solid; padding: .5rem; background: #111; }
.dropzone-empty { display: flex; flex-direction: column; gap: .35rem; align-items: center; pointer-events: none; }
.dropzone-icon { font-size: 2rem; }
#receiptPreview { max-height: 360px; width: auto; border-radius: var(--radius-sm); pointer-events: none; }
.change-photo { margin-top: .5rem; }

.scan-status { margin-top: 1rem; }
.scan-status ul { margin: .35rem 0 0; padding-left: 1.1rem; }

.entries-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.25rem;
    padding: .9rem 1.1rem;
    border-radius: var(--radius);
    background: var(--ink);
    color: #fff;
    font-weight: 600;
}

.entries-total strong { font-size: 2.25rem; line-height: 1; color: var(--yellow); }

.form-submit { padding: 1.5rem; border-top: 1px solid var(--line); background: #FAFAFA; display: flex; flex-direction: column; gap: 1rem; }
#formAlert:empty { display: none; }

.resubmit-banner { margin-bottom: 1rem; }

/* Mechanics */
.accordion { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.accordion + .accordion { margin-top: .75rem; }
.accordion summary { cursor: pointer; list-style: none; padding: 1rem 1.25rem; font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; align-items: center; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: '+'; font-size: 1.4rem; color: var(--red); line-height: 1; }
.accordion[open] summary::after { content: '−'; }
.accordion > p { padding: 0 1.25rem; color: var(--text); }
.accordion > p:last-child { padding-bottom: 1rem; margin-bottom: 0; }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .75); padding: 2rem 0; font-size: .85rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.footer-inner p { margin: 0; }
.site-footer a:not(.brand) { color: #fff; }

/* Success dialog */
.success-body { text-align: center; padding-top: 2rem; }
.success-icon { width: 64px; height: 64px; margin: 0 auto 1rem; display: grid; place-items: center; border-radius: 50%; background: var(--green-50); color: var(--green); font-size: 2rem; font-weight: 700; }
.entry-no { display: flex; flex-direction: column; align-items: center; gap: .35rem; margin: 1.25rem 0; padding: 1rem; border-radius: var(--radius); background: var(--bg); }
.entry-no strong { font-size: 2rem; color: var(--red); letter-spacing: .03em; word-break: break-all; }

/* Loading */
.loading-overlay { position: fixed; inset: 0; z-index: 1500; display: grid; place-items: center; background: rgba(255, 255, 255, .7); }
.loading-overlay[hidden] { display: none; }
.loading-card { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.5rem; border-radius: var(--radius); background: var(--ink); color: #fff; font-weight: 600; box-shadow: var(--shadow-lg); }
