/* Stagy landing — shared styles. Brand palette + type mirror the iOS app (Assets/Brand,
   docs/design/tokens.css): warm paper, near-black ink, one festival accent (Gurten green),
   hard offset "zine" shadows, Bricolage Grotesque for display. */

:root {
    /* Tokens mirror the iOS app's Assets/Brand colorset catalog (ground truth). */
    --paper: #F6F2EA;
    --paper-2: #EFE9DD;
    --paper-3: #E5DDCB;
    --surface: #FFFFFF;
    --ink: #1A1714;
    --ink-soft: #4A433B;      /* BrandInk2 */
    --ink-mute: #877E70;      /* BrandInk3 */
    --accent: #2B5D3E;        /* BrandAccent (Gurten) */
    --accent-soft: #C9D8C9;
    --accent-tint: rgba(43, 93, 62, 0.10);
    --blue: #5A7AAA;          /* secondary stage swatch (illustrative) */
    --warn: #B4421C;          /* BrandWarn */
    --warn-soft: rgba(180, 66, 28, 0.12);  /* BrandWarnSoft = warn @ 12% */
    --rule: rgba(26, 23, 20, 0.18);        /* BrandRuleSoft */
    --shadow-card: 0 8px 24px rgba(26, 23, 20, 0.10);  /* soft lift, matches app (not zine offset) */
    --display: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --max: 980px;
    --max-text: 760px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent);
}

h1, h2, h3 {
    font-family: var(--display);
    letter-spacing: -0.02em;
    line-height: 1.05;
}

/* shared eyebrow / microcopy label */
.eyebrow {
    display: inline-block;
    font-family: var(--display);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--ink-mute);
}

/* ---- Header ---- */
/* Shared chrome custom elements (components.js) render light-DOM; ensure block layout. */
site-header, site-footer { display: block; }

.site-header {
    border-bottom: 1px solid var(--rule);
}

.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
}

.wordmark {
    font-family: var(--display);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--ink);
    text-decoration: none;
}

/* Wordmark accent: rounded-rect "stage" marker (mirrors the app's stage icons), not a dot.
   em-sized so the same rule scales for the header wordmark and the big hero brand. */
.stage {
    display: inline-block;
    width: 0.24em;
    height: 0.24em;
    border-radius: 0.075em;
    background: var(--accent);
    vertical-align: baseline;
    margin-left: 0.05em;
}

.header-link {
    font-size: 0.95rem;
    color: var(--ink-soft);
    text-decoration: none;
}

.header-link:hover {
    color: var(--accent);
}

.wrap {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
}

main {
    flex: 1 0 auto;
}

/* ---- Hero ---- */
.hero {
    max-width: var(--max);
    margin: 0 auto;
    padding: 4.5rem 1.5rem 3.5rem;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    align-items: center;
}

.hero-copy .eyebrow {
    margin-bottom: 1rem;
}

.headline {
    font-size: clamp(2.6rem, 7vw, 4.25rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 0.92;
    color: var(--ink);
    margin-bottom: 1.25rem;
}

.subline {
    font-size: 1.1rem;
    line-height: 1.5;
    color: var(--ink-soft);
    max-width: 46ch;
    margin-bottom: 2rem;
}

.trust-line {
    margin-top: 1.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--ink-mute);
}

/* ---- Store badges ---- */
.stores {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.hero-copy .stores {
    justify-content: flex-start;
}

/* Store row mates — the live App Store badge, the Android beta chip, and the
   "coming soon" Play badge sit side by side, all the same height, each sized to
   its own natural width (the App Store and Play badges have different aspects). */
.store-badge {
    display: inline-flex;
    align-items: center;
    height: 48px;
    transition: transform 0.15s ease;
}

.store-badge:hover {
    transform: translateY(-2px);
}

.store-badge img {
    display: block;
    height: 100%;
    width: auto;
}

/* Disabled store badge with a diagonal "coming soon" ribbon. */
.store-badge-disabled {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 48px;
    overflow: hidden;
}

.store-badge-disabled img {
    display: block;
    height: 100%;
    width: auto;
    filter: grayscale(1);
    opacity: 0.5;
}

.soon-ribbon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-6deg);
    background: var(--ink);
    color: var(--paper);
    font-size: 0.52rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.12rem 0.45rem;
    border-radius: 3px;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.store-soon {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    height: 56px;
    padding: 0 1.25rem;
    border: 1px solid var(--rule);
    border-radius: 11px;
    background: var(--paper-2);
    color: var(--ink-soft);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: default;
}

.store-soon strong {
    font-size: 1rem;
    text-transform: none;
    letter-spacing: -0.01em;
    color: var(--ink);
    font-weight: 700;
}

/* ---- Hero snippet (brand-styled UI illustration, not a screenshot) ---- */
.hero-snippet {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
}

.card {
    background: var(--surface);
    border: 1.5px solid var(--ink);
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    padding: 1.1rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.card-next {
    transform: rotate(-1.5deg);
}

.accent-ink-soft { color: var(--accent); }

/* Conflict marker — mirrors the app's in-sheet "Zeitkonflikt" warning */
.conflict-marker {
    align-self: flex-end;
    width: 86%;
    transform: rotate(1.5deg);
    background: var(--warn-soft);
    border-radius: 14px;
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cm-head {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--display);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--warn);
}

.cm-icon {
    width: 1.05rem;
    height: 1.05rem;
    color: var(--warn);
    flex-shrink: 0;
}

.cm-detail {
    font-size: 0.85rem;
    color: var(--ink-soft);
    font-variant-numeric: tabular-nums;
}

.snip-name {
    font-family: var(--display);
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--ink);
}

.snip-name.sm { font-size: 1.2rem; }

.snip-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.stage-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink-soft);
    text-transform: lowercase;
}

.stage-tag i {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    background: var(--sw, var(--accent));
    display: inline-block;
}

.time {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink-mute);
}

/* Reminder chip — the app's tinted "nudge" style, not a heavy solid pill */
.reminder-chip {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.36rem 0.7rem 0.36rem 0.55rem;
    border-radius: 999px;
    background: var(--accent-tint);
    color: var(--accent);
    border: 1px solid rgba(43, 93, 62, 0.30);
}

.reminder-chip svg {
    width: 0.85rem;
    height: 0.85rem;
    flex-shrink: 0;
}

/* ---- Feature band: mini timeline ---- */
.band {
    max-width: var(--max);
    margin: 0 auto;
    padding: 3.5rem 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    border-top: 1px solid var(--rule);
}

.band-copy h2 {
    font-size: clamp(1.6rem, 4vw, 2.25rem);
    margin: 0.6rem 0 0.8rem;
}

.band-copy p {
    color: var(--ink-soft);
    max-width: 34ch;
}

/* Alternating band layout — copy on the right for reversed bands */
.band.reverse .band-copy {
    order: 2;
}

/* Mini lineup illustration (artist discovery) — echoes the app's lineup list */
.mini-lineup {
    background: var(--surface);
    border: 1.5px solid var(--ink);
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    padding: 0.3rem 1.1rem;
}

.ml-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 0;
}

.ml-row + .ml-row {
    border-top: 1px solid var(--rule);
}

.ml-time {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--ink);
    min-width: 3.4ch;
}

.ml-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.ml-main b {
    font-family: var(--display);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.ml-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: var(--accent-tint);
    color: var(--accent);
    flex-shrink: 0;
}

.ml-play svg {
    width: 0.8rem;
    height: 0.8rem;
    margin-left: 1px;
}

.ml-mark {
    display: inline-flex;
    color: var(--ink-mute);
    flex-shrink: 0;
}

.ml-mark svg {
    width: 1.15rem;
    height: 1.15rem;
}

.ml-mark.loved { color: #D9291F; }
.ml-mark.booked { color: var(--accent); }

.mini-timeline {
    background: var(--surface);
    border: 1.5px solid var(--ink);
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    padding: 1rem;
    overflow: hidden;
}

.mt-head {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    padding-left: 2.6rem;
    margin-bottom: 0.6rem;
}

.mt-stage {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: lowercase;
    color: var(--ink-soft);
    border-bottom: 2px solid var(--sw, var(--ink-mute));
    padding-bottom: 2px;
}

.mt-body {
    display: grid;
    grid-template-columns: 2.4rem repeat(3, 1fr);
    gap: 0.5rem;
    align-items: center;
}

.mt-time {
    font-variant-numeric: tabular-nums;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--ink-mute);
    grid-column: 1;
}

.mt-block {
    border-radius: 10px;
    padding: 0.55rem 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-height: 3rem;
    border: 1.5px solid var(--ink);
}

.mt-block b {
    font-family: var(--display);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.mt-block i {
    font-style: normal;
    font-variant-numeric: tabular-nums;
    font-size: 0.68rem;
    color: var(--ink-soft);
}

.mt-block.loved {
    background: var(--accent);
    border-color: var(--accent);
}
.mt-block.loved b { color: var(--paper); }
.mt-block.loved i { color: rgba(246, 242, 234, 0.85); }
.mt-block.green-soft { background: var(--accent-soft); }
.mt-block.blue { background: rgba(90, 122, 170, 0.22); }
.mt-block.pink { background: rgba(211, 79, 125, 0.20); }

/* ---- Feature grid ---- */
.features {
    max-width: var(--max);
    margin: 0 auto;
    padding: 3.5rem 1.5rem;
    border-top: 1px solid var(--rule);
}

.features-title {
    font-size: clamp(1.6rem, 4vw, 2.25rem);
    margin-bottom: 2rem;
}

.feature-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.feature {
    background: var(--surface);
    border: 1px solid var(--rule);
    border-radius: 16px;
    padding: 1.5rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.feature:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
    border-color: var(--ink);
}

.feat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 12px;
    background: var(--accent-tint);
    color: var(--accent);
    margin-bottom: 0.9rem;
}

.feat-icon svg {
    width: 1.3rem;
    height: 1.3rem;
}

.feature h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.feature p {
    color: var(--ink-soft);
    font-size: 0.98rem;
    line-height: 1.5;
}

/* ---- Festivals (prominent cards, directly under hero; text only — DR-0036) ---- */
.festivals {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0.5rem 1.5rem 3.5rem;
}

.festivals-head {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.festivals h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
}

.festivals-sub {
    color: var(--ink-mute);
    font-size: 0.95rem;
}

.fest-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.fest-card {
    background: var(--surface);
    border: 1.5px solid var(--ink);
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    padding: 1.4rem 1.3rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    transition: transform 0.15s ease;
}

.fest-card:hover {
    transform: translateY(-3px);
}

.fest-status {
    align-self: flex-start;
    font-family: var(--display);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    background: var(--paper-2);
    color: var(--ink-soft);
    margin-bottom: 0.3rem;
}

.fest-card.is-live .fest-status {
    background: var(--accent);
    color: var(--paper);
}

.fest-card.is-past {
    opacity: 0.55;
}

.fest-card.is-past .fest-status {
    background: transparent;
    color: var(--ink-mute);
    padding-left: 0;
}

.fest-name {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--ink);
}

.fest-dates {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
    color: var(--ink-soft);
    font-weight: 600;
}

.fest-acts {
    margin-top: 0.15rem;
    font-family: var(--display);
    font-weight: 700;
    font-size: 0.95rem;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
    color: var(--accent);
}

.festivals-note {
    margin-top: 1.25rem;
    font-size: 0.85rem;
    color: var(--ink-mute);
}

/* ---- Trust band ---- */
.trust {
    max-width: var(--max);
    margin: 0 auto;
    padding: 4rem 1.5rem;
    text-align: center;
    border-top: 1px solid var(--rule);
}

.trust h2 {
    font-size: clamp(1.6rem, 4vw, 2.25rem);
    margin-bottom: 0.9rem;
}

.trust p {
    color: var(--ink-soft);
    max-width: 48ch;
    margin: 0 auto 1.25rem;
}

.text-link {
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1.5px solid var(--accent-soft);
    padding-bottom: 1px;
}

.text-link:hover {
    border-color: var(--accent);
}

/* ---- Final CTA ---- */
.cta {
    text-align: center;
    padding: 4rem 1.5rem;
    border-top: 1px solid var(--rule);
    background: var(--paper-2);
}

.cta-line {
    font-size: clamp(1.8rem, 5vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--ink);
    margin-bottom: 0.5rem;
}

.cta-sub {
    color: var(--ink-soft);
    margin-bottom: 1.75rem;
}

.cta .stores {
    justify-content: center;
}

/* ---- Disclaimer ---- */
.disclaimer {
    max-width: var(--max-text);
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
    text-align: center;
    color: var(--ink-soft);
    font-size: 0.95rem;
}

.disclaimer a {
    color: var(--accent);
}

/* ---- Content pages (privacy) ---- */
.content {
    max-width: var(--max-text);
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
}

.content h1 {
    font-family: var(--display);
    font-size: clamp(2rem, 6vw, 2.75rem);
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.content .updated {
    color: var(--ink-soft);
    font-size: 0.9rem;
    margin-bottom: 2.5rem;
}

.content h2 {
    font-family: var(--display);
    font-size: 1.35rem;
    letter-spacing: -0.01em;
    margin: 2.25rem 0 0.75rem;
}

.content p,
.content ul {
    margin-bottom: 1rem;
    color: var(--ink-soft);
}

.content ul {
    padding-left: 1.25rem;
}

.content li {
    margin-bottom: 0.4rem;
}

.content strong {
    color: var(--ink);
}

.callout {
    background: var(--accent-soft);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    color: var(--ink);
}

.callout p {
    color: var(--ink);
    margin: 0;
}

/* ---- Beta page ---- */
.content .eyebrow {
    display: inline-block;
    margin-bottom: 0.6rem;
}

.beta-steps {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 1rem;
    margin: 1.5rem 0 1rem;
}

.beta-steps li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.1rem 1.2rem;
    border: 1.5px solid var(--ink);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: var(--shadow-card);
}

.step-num {
    flex: none;
    width: 1.9rem;
    height: 1.9rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--accent);
    color: var(--paper);
    font-weight: 800;
}

.step-body h2 {
    margin: 0 0 0.3rem;
    font-size: 1.1rem;
}

.step-body p {
    margin-bottom: 0.6rem;
}

.beta-foot {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--rule);
}

.beta-foot a {
    color: var(--accent);
}

/* Chip next to the Play Store badge — routes to the beta-tester page. */
.beta-chip {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    height: 48px;
    padding: 0 1.1rem;
    border: 1.5px solid var(--ink);
    border-radius: 11px;
    background: var(--surface);
    color: var(--ink-soft);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none;
    transition: background 0.15s ease;
}

.beta-chip:hover {
    background: var(--paper-2);
}

.beta-chip strong {
    font-size: 1rem;
    text-transform: none;
    letter-spacing: -0.01em;
    color: var(--ink);
    font-weight: 700;
}

/* ---- Footer ---- */
.site-footer {
    flex-shrink: 0;
    border-top: 1px solid var(--rule);
    padding: 2.5rem 1.5rem;
    background: var(--paper-2);
}

.site-footer .wrap {
    text-align: center;
    color: var(--ink-soft);
    font-size: 0.9rem;
}

.site-footer nav {
    margin-bottom: 1rem;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.site-footer nav a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
}

.site-footer nav a:hover {
    color: var(--accent);
}

.site-footer .imprint {
    line-height: 1.5;
}

.site-footer a {
    color: var(--accent);
}

/* ---- Responsive ---- */
@media (max-width: 860px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding-top: 3.25rem;
    }

    .band {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .band.reverse .band-copy {
        order: 0;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .hero {
        padding: 2.75rem 1.25rem 2.5rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .fest-grid {
        grid-template-columns: 1fr;
    }

    /* Narrow screens: let the three same-height row mates wrap and centre. */
    .stores {
        justify-content: center;
    }

    .conflict-marker {
        width: 92%;
    }
}
