/* =============================================================================
   Rydly frontend site — site.css
   Full design-system reference: docs/frontend-design.md (repo root: ../../../..)
   The frontend is built on full Bootstrap 5.3 now (bootstrap.min.css, loaded
   in head.html before this file) — Reboot, grid, and every stock component
   (navbar/card/badge/form/button) come from there. tokens.css re-points
   Bootstrap's own CSS variables at this site's brand colors/radii/fonts, so
   this file holds the "Night Drive" shell (header/footer/buttons/motion) and
   the 7 routed pages' sections (home, app landing, download, login gate, 404, legal),
   the 5 restyled list/detail pages (events, clubs, coupons) and the
   date-input calendar icon overlay. Every class name
   below is referenced from www/frontend/pages/**/*.php and pages/**/js/*.js
   — renaming one here means updating every call site, not just this file.
   ========================================================================== */

h1, h2, h3, h4 {
    font-family: var(--font-heading);
}

/* ---------- Page shell ----------
   Body is a column so the footer sits at the bottom on short pages (404). */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}
body > main {
    flex: 1 0 auto;
}
::selection {
    background: var(--color-accent);
    color: var(--color-on-accent);
}
:focus-visible {
    outline: 2px solid var(--color-focus);
    outline-offset: 3px;
}
.on-ink :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible {
    outline-color: var(--color-accent);
}
.gate-card :focus-visible {
    outline-color: var(--color-focus);
}
.site-wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}
/* Ink band: always-dark section (same in both themes) */
.on-ink {
    background: var(--color-ink);
    color: #fff;
}

/* ---------- Motion keyframes ---------- */
@keyframes rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
}
@keyframes road-dash {
    to { stroke-dashoffset: -320; }
}
@keyframes road-drive {
    from { offset-distance: 0%; }
    to { offset-distance: 100%; }
}
@keyframes ping {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(2.6); opacity: 0; }
}
@keyframes ping-404 {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(2.8); opacity: 0; }
}
@keyframes bob {
    0%, 100% { transform: translateY(0) rotate(-4deg); }
    50% { transform: translateY(-12px) rotate(-4deg); }
}
@keyframes draw {
    from { stroke-dashoffset: 900; }
    to { stroke-dashoffset: 0; }
}
@keyframes pop {
    from { opacity: 0; transform: scale(0.4); }
    to { opacity: 1; transform: none; }
}
@keyframes shake {
    10%, 90% { transform: translateX(-1px); }
    20%, 80% { transform: translateX(3px); }
    30%, 50%, 70% { transform: translateX(-6px); }
    40%, 60% { transform: translateX(6px); }
}
@keyframes err-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: none; }
}
@keyframes gate-in {
    from { opacity: 0; transform: translateY(18px) scale(0.98); }
    to { opacity: 1; transform: none; }
}
.rise {
    animation: rise 0.8s var(--ease-out) both;
}
.rise-1 { animation-delay: 0.08s; }
.rise-2 { animation-delay: 0.16s; }
.rise-3 { animation-delay: 0.24s; }

/* ---------- Buttons ----------
   Pill call-to-action; lime is the primary. */
.cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 26px;
    border: 0;
    border-radius: var(--radius-pill);
    font: 600 16px var(--font-body);
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.16s var(--ease-press), background-color 0.2s, box-shadow 0.25s;
}
.cta:active {
    transform: scale(0.97);
}
.cta svg {
    transition: transform 0.25s var(--ease-out);
}
.cta-lime {
    background: var(--color-accent);
    color: var(--color-on-accent);
    box-shadow: 0 12px 32px -12px rgba(200, 243, 29, 0.55);
}
.cta-lime:hover {
    background: var(--color-accent-hover);
    color: var(--color-on-accent);
    box-shadow: 0 16px 40px -12px rgba(200, 243, 29, 0.7);
}
.cta-down:hover svg {
    transform: translateY(2px);
}
.cta-back:hover svg {
    transform: translateX(-3px);
}

/* ---------- Header / nav ----------
   Ink bar on top of every page. Bootstrap's navbar collapse drives the mobile
   menu; data-bs-theme=dark on the element keeps the toggler icon light. */
.site-header {
    background: var(--color-ink);
    color: #fff;
    padding: 0;
    position: relative;
    z-index: 5;
}
.site-header .site-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 24px;
    min-height: 76px;
}
.site-brand {
    font-family: var(--font-heading);
    font-size: 30px;
    color: #fff;
    text-decoration: none;
    line-height: 1;
    padding: 8px 0;
}
.site-brand:hover {
    color: var(--color-accent);
}
.site-toggler {
    margin-left: auto;
    min-width: 44px;
    min-height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-pill);
}
.site-nav-collapse {
    flex: 1 0 100%;
}
.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding-bottom: 8px;
}
.nav-pill {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 14px;
    border-radius: var(--radius-pill);
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    transition: color 0.2s, background-color 0.2s;
}
.nav-pill:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}
.nav-pill.is-on {
    color: var(--color-on-accent);
    background: var(--color-accent);
}
.site-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    padding-bottom: 16px;
}
.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-pill);
    background: transparent;
    color: #fff;
    font: 600 14px var(--font-body);
    cursor: pointer;
    transition: background-color 0.2s, transform 0.16s var(--ease-press);
}
.icon-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}
.icon-btn:active {
    transform: scale(0.95);
}
.icon-btn-text {
    padding: 0 16px;
}
/* Moon in light theme, sun in dark (theme.js flips data-theme live) */
.icon-sun {
    display: none;
}
html[data-theme="dark"] .icon-sun {
    display: inline;
}
html[data-theme="dark"] .icon-moon {
    display: none;
}
@media (min-width: 992px) {
    .site-nav-collapse {
        flex: 1 1 auto;
        display: flex !important;
        align-items: center;
    }
    .site-nav {
        flex: 1;
        justify-content: center;
        padding-bottom: 0;
    }
    .site-actions {
        padding-bottom: 0;
    }
    .site-toggler {
        display: none;
    }
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--color-ink);
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.site-footer .site-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px 24px;
    padding-top: 32px;
    padding-bottom: 32px;
}
.site-footer p {
    margin: 0;
}
.site-footer nav {
    display: flex;
    gap: 8px;
}
.site-footer a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 8px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s;
}
.site-footer a:hover,
.site-footer a[aria-current="page"] {
    color: var(--color-accent);
}

/* ---------- Animated road (hero / download / gate backgrounds) ---------- */
.road-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.road-base {
    stroke: var(--color-road);
}
.road-dash {
    stroke: var(--color-road-line);
    animation: road-dash 7s linear infinite;
}
.road-lime-line {
    stroke: var(--color-accent);
}
.lime-fill {
    fill: var(--color-accent);
}
.tile-ink .road-bg {
    opacity: 0.9;
}
/* Bootstrap hardcodes its own focus colors on form controls */
.form-control:focus,
.form-select:focus {
    border-color: var(--color-text);
    box-shadow: 0 0 0 0.25rem var(--bs-focus-ring-color);
}
.road-car {
    offset-path: path("M-40 560 C 140 520, 120 380, 330 360 S 610 300, 560 190 S 700 40, 900 70");
    offset-rotate: auto;
    animation: road-drive 11s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}
.road-car-2 { animation-delay: -3.6s; }
.road-car-3 { animation-delay: -7.2s; }
.road-ping,
.nf-ping {
    stroke: var(--color-accent);
}
.road-ping {
    transform-box: fill-box;
    transform-origin: center;
    animation: ping 2s var(--ease-out) infinite;
}
.road-ping-late {
    animation-delay: -1s;
}

/* ---------- Screenshot placeholder + phone frame ---------- */
.shot {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    border-radius: var(--radius-md);
    background-color: var(--color-background);
    background-image: repeating-linear-gradient(135deg, rgba(11, 14, 19, 0.035) 0 10px, transparent 10px 20px);
    color: var(--color-text-secondary);
    font: 500 14px var(--font-body);
    text-align: center;
}
.shot-lime {
    background-color: rgba(255, 255, 255, 0.45);
    color: var(--color-on-accent-soft);
}
.shot-ink {
    background-color: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.7);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
/* A slot holding a real app screenshot: no stripes, no padding, image clipped to the slot */
.shot-has-img {
    position: relative;
    padding: 0;
    overflow: hidden;
    background-image: none;
}
.shot-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}
/* Inside a phone frame the app screen is dark (the app's dark theme) */
.phone .shot-has-img,
.phone .shot.shot-has-img.landing-shot-white {
    background-color: var(--color-ink);
}
/* A phone holding a real screenshot takes the iPhone screen's own ratio
   (1206x2622 simulator captures), so the tab bar is never cropped off */
.phone:has(.shot-has-img) {
    height: auto;
}
.phone .shot.shot-has-img {
    height: auto;
    aspect-ratio: 1206 / 2622;
}
.phone-wrap {
    display: flex;
    justify-content: center;
}
.phone {
    width: 300px;
    max-width: 100%;
    height: 600px;
    padding: 12px;
    border-radius: 48px;
    background: var(--color-ink-raised);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 50px 90px -30px rgba(0, 0, 0, 0.8);
    transform: rotate(3deg);
}
.phone-bob {
    transform: none;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 60px 100px -30px rgba(0, 0, 0, 0.85);
    animation: bob 6s ease-in-out infinite;
}
/* The phone screen stays light in both themes (it mimics the app) */
.phone .shot {
    height: 100%;
    border-radius: 38px;
    background-color: #f4f5f7;
    color: #4a5260;
}

/* ---------- Home ---------- */
.home-hero {
    position: relative;
    overflow: hidden;
}
.home-hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
    padding-top: 72px;
    padding-bottom: 112px;
}
.home-hero-copy {
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.home-title {
    margin: 0;
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 84px;
    line-height: 0.98;
    letter-spacing: -0.015em;
    text-wrap: balance;
    color: #fff;
}
.home-title span,
.dl-title span {
    color: var(--color-accent);
}
.home-lead {
    margin: 0;
    max-width: 520px;
    font-size: 20px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.72);
}
.home-features {
    padding-top: 112px;
    padding-bottom: 112px;
}
.bento {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}
.tile {
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    padding: 40px;
    gap: 16px;
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    color: var(--color-text);
    box-shadow: inset 0 0 0 1px var(--color-divider);
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}
.tile:hover {
    transform: translateY(-4px);
    box-shadow: inset 0 0 0 1px var(--color-divider), 0 28px 60px -32px rgba(11, 14, 19, 0.45);
}
.tile-wide {
    grid-column: span 2;
}
.tile-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
    align-items: center;
    flex: 1;
}
.tile-split > div:first-child {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.tile-lime {
    background: var(--color-accent);
    color: var(--color-on-accent);
    box-shadow: none;
}
.tile-lime:hover {
    box-shadow: 0 28px 60px -32px rgba(11, 14, 19, 0.45);
}
.tile-ink {
    background: var(--color-ink);
    color: #fff;
    box-shadow: none;
}
.tile-ink .tile-split {
    position: relative;
    align-items: end;
}
.tile h3 {
    margin: 0;
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 40px;
    line-height: 1.05;
    color: inherit;
}
.tile p {
    margin: 0;
    font-size: 17px;
    line-height: 1.6;
    color: var(--color-text-secondary);
}
.tile-lime p {
    color: var(--color-on-accent-soft);
}
.tile-ink p {
    color: rgba(255, 255, 255, 0.72);
}
.tile .shot {
    flex: 1;
    min-height: 200px;
}
.tile-wide .shot {
    min-height: 340px;
}
.tile-ink .shot {
    min-height: 300px;
}
/* Bento tiles: the portrait screenshot peeks up from the bottom edge like a phone */
.tile .shot-img {
    position: absolute;
    top: 24px;
    left: 50%;
    width: min(240px, 72%);
    height: auto;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    box-shadow: 0 24px 48px -24px rgba(11, 14, 19, 0.55), 0 0 0 6px var(--color-ink);
    transform: translateX(-50%);
}
.tile-wide .shot-img {
    width: min(260px, 64%);
}
.home-close {
    padding-bottom: 112px;
}
.home-close-band {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    padding: 72px 56px;
    border-radius: 32px;
}
.home-close-mark {
    font-family: var(--font-heading);
    font-size: 72px;
    line-height: 1;
}

/* ---------- Download ---------- */
.page-ink {
    position: relative;
    overflow: hidden;
    background: var(--color-ink);
    color: #fff;
}
.dl-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
    padding-top: 64px;
    padding-bottom: 120px;
}
.dl-copy {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.dl-title {
    margin: 0;
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 120px;
    line-height: 0.95;
    letter-spacing: -0.02em;
    color: #fff;
}
.dl-sub {
    margin: 0;
    font-size: 21px;
    color: rgba(255, 255, 255, 0.72);
}
.store-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 12px;
}
.store {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-height: 64px;
    padding: 0 26px 0 20px;
    border-radius: 18px;
    font: 600 17px var(--font-body);
    text-decoration: none;
    transition: transform 0.16s var(--ease-press), background-color 0.2s, box-shadow 0.25s;
}
.store:active {
    transform: scale(0.97);
}
.store-lime {
    background: var(--color-accent);
    color: var(--color-on-accent);
    box-shadow: 0 14px 36px -14px rgba(200, 243, 29, 0.6);
}
.store-lime:hover {
    background: var(--color-accent-hover);
    color: var(--color-on-accent);
}
.store-line {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.store-line:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

/* ---------- Landing (/app/ "Discover the app") ----------
   Reuses .on-ink, .site-wrap, .cta*, .phone, .shot, .road-*, .lime-fill, .rise*.
   Ink sections (hero, journey, on-the-road, final band) stay ink in both themes. */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}
.page-landing section[id] {
    scroll-margin-top: var(--space-md);
}
@keyframes landing-stop-glow {
    0%, 100% { fill: var(--color-ink-raised); }
    20%, 30% { fill: var(--color-accent); }
}

/* Hero */
.landing-hero {
    position: relative;
    overflow: hidden;
}
.landing-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 72px;
    align-items: center;
}
.landing-hero-grid {
    position: relative;
    padding-top: 72px;
    padding-bottom: 120px;
}
.landing-hero-copy {
    display: flex;
    flex-direction: column;
    gap: 28px;
}
.landing-title {
    margin: 0;
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 80px;
    line-height: 0.98;
    letter-spacing: -0.015em;
    text-wrap: balance;
    color: #fff;
}
.landing-title span,
.landing-close-title span {
    color: var(--color-accent);
}
.landing-hero-lead {
    margin: 0;
    max-width: 520px;
    font-size: 20px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.72);
}
.landing-btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.landing-btn-row-center {
    position: relative;
    justify-content: center;
    margin-top: 8px;
}
.landing-ghost {
    background: transparent;
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}
.landing-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

/* Phone variants (the base .phone is 300x600 and tilted 3deg) */
.landing-phone {
    width: 290px;
    height: 580px;
    background: var(--color-ink);
    box-shadow: 0 50px 90px -40px rgba(11, 14, 19, 0.6);
    transform: none;
}
.landing-phone .shot {
    border-radius: 36px;
}
.landing-phone-tilt {
    background: var(--color-ink-raised);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 60px 100px -30px rgba(0, 0, 0, 0.85);
    transform: rotate(-3deg);
}
.landing-phone-lime {
    background: var(--color-accent);
}
.phone .shot.landing-shot-white {
    background-color: #fff;
}

/* Journey: one road, four stops */
.landing-journey {
    padding-top: 104px;
    padding-bottom: 112px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.landing-journey-inner {
    display: flex;
    flex-direction: column;
    gap: 56px;
}
.landing-journey-title {
    max-width: 720px;
}
.landing-journey-svg {
    display: block;
    width: 100%;
    height: auto;
}
.landing-stop {
    fill: var(--color-ink-raised);
    animation: landing-stop-glow 12s linear infinite;
}
.landing-stop-1 { animation-delay: -10.6s; }
.landing-stop-2 { animation-delay: -7.6s; }
.landing-stop-3 { animation-delay: -4.6s; }
.landing-stop-4 { animation-delay: -1.6s; }
.landing-journey-car {
    offset-path: path("M0 110 L150 110 C 250 40, 350 180, 450 110 C 550 40, 650 180, 750 110 C 850 40, 950 180, 1050 110 L1200 110");
    offset-rotate: auto;
    animation: road-drive 12s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}
.landing-stops {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
    margin-top: 24px;
}
.landing-stop-t {
    padding: 0 8px;
    text-align: center;
}
.landing-stop-t h3 {
    margin: 0 0 8px;
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 30px;
    color: #fff;
}
.landing-stop-t p {
    margin: 0;
    font-size: 16px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.7);
}

/* Feature rows */
.site-wrap.landing-row-first {
    padding-top: 128px;
    padding-bottom: 64px;
}
.site-wrap.landing-row-last {
    padding-top: 64px;
    padding-bottom: 128px;
}
.landing-copy {
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.landing-head {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.landing-h2 {
    margin: 0;
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 56px;
    line-height: 1.02;
    letter-spacing: -0.01em;
    text-wrap: balance;
}
.landing-lead {
    margin: 0;
    max-width: 52ch;
    font-size: 19px;
    line-height: 1.6;
    color: var(--color-text-secondary);
}
.landing-feats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.landing-feats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 32px;
}
.landing-feat {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.landing-feat-ic {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px; /* one-off: between radius-sm and radius-md */
    background: var(--color-surface);
    color: var(--color-text);
    box-shadow: inset 0 0 0 1px var(--color-divider);
    transition: background-color 0.25s, color 0.25s, transform 0.35s var(--ease-out);
}
.landing-feat:hover .landing-feat-ic {
    background: var(--color-accent);
    color: var(--color-on-accent);
    transform: rotate(-6deg);
}
.landing-feat h3 {
    margin: 0 0 4px;
    font: 700 17px/1.3 var(--font-body);
    color: inherit;
}
.landing-feat p {
    margin: 0;
    font-size: 16px;
    line-height: 1.55;
    color: var(--color-text-secondary);
}

/* On the road (ink): features recolored for the dark band */
.landing-road {
    position: relative;
    overflow: hidden;
    padding-top: 128px;
    padding-bottom: 128px;
}
.landing-road .landing-h2 {
    color: #fff;
}
.landing-road .landing-lead,
.landing-road .landing-feat p {
    color: rgba(255, 255, 255, 0.72);
}
.landing-road .landing-feat-ic {
    background: rgba(255, 255, 255, 0.06);
    color: var(--color-accent);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.landing-road .landing-feat:hover .landing-feat-ic {
    background: var(--color-accent);
    color: var(--color-on-accent);
}
.landing-note {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 16px; /* one-off: matches the mockup note card */
    background: rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    font-size: 15px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.8);
}
.landing-note-ic {
    flex: none;
    color: var(--color-accent);
}
.landing-map {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border-radius: 32px; /* one-off: same as .home-close-band */
    background: var(--color-ink-raised);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.landing-map > svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.landing-map-road {
    stroke: var(--color-ink);
}
.landing-convoy-car {
    offset-path: path("M60 300 C 180 300, 200 180, 320 170 S 470 90, 560 60");
    offset-rotate: auto;
    animation: road-drive 8s linear infinite;
}
.landing-convoy-car-2 { animation-delay: -1.4s; }
.landing-convoy-car-3 { animation-delay: -2.8s; }
.landing-dest {
    fill: #fff;
}
.landing-ping {
    stroke: #fff;
    transform-box: fill-box;
    transform-origin: center;
    animation: ping 2s var(--ease-out) infinite;
}
.landing-phone-mini {
    position: absolute;
    top: 36px;
    left: 36px;
    width: 200px;
    height: 400px;
    padding: 9px;
    border-radius: 34px;
}
.landing-phone-mini .shot {
    border-radius: 26px;
    font-size: 12px;
}

/* Final "Get Rydly" band */
.landing-close {
    padding-bottom: 120px;
}
.landing-close-band {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 88px 56px;
    border-radius: 36px; /* one-off: mockup final band */
    text-align: center;
}
.landing-close-title {
    position: relative;
    margin: 0;
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 88px;
    line-height: 1.02;
    letter-spacing: -0.01em;
    color: #fff;
}
.landing-close-sub {
    position: relative;
    margin: 0;
    font-size: 19px;
    color: rgba(255, 255, 255, 0.72);
}

/* Landing: small screens */
@media (max-width: 900px) {
    .landing-split {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }
    /* Stacked rows always read copy first, phone second (no two phones back to back) */
    .landing-row > .phone-wrap {
        order: 2;
    }
    .landing-hero-grid {
        padding-bottom: 80px;
    }
    .landing-title {
        font-size: 56px;
    }
    .landing-h2 {
        font-size: 42px;
    }
    .landing-journey-svg {
        display: none;
    }
    .landing-stops {
        grid-template-columns: minmax(0, 1fr);
        margin-top: 0;
    }
    .landing-feats-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .landing-close-title {
        font-size: 64px;
    }
}
@media (max-width: 575.98px) {
    .landing-hero-grid {
        padding-top: 40px;
        padding-bottom: 64px;
    }
    .landing-title {
        font-size: 46px;
    }
    .landing-h2 {
        font-size: 36px;
    }
    .landing-journey,
    .landing-road {
        padding-top: 64px;
        padding-bottom: 64px;
    }
    .site-wrap.landing-row-first {
        padding-top: 64px;
        padding-bottom: 32px;
    }
    .site-wrap.landing-row-last {
        padding-top: 32px;
        padding-bottom: 64px;
    }
    .landing-phone {
        width: 240px;
        height: 480px;
    }
    .landing-phone-mini {
        top: 16px;
        left: 16px;
        width: 140px;
        height: 280px;
        padding: 7px;
        border-radius: 26px;
    }
    .landing-phone-mini .shot {
        border-radius: 20px;
    }
    .landing-close {
        padding-bottom: 64px;
    }
    .landing-close-band {
        padding: 56px 24px;
        border-radius: var(--radius-lg);
    }
    .landing-close-title {
        font-size: 48px;
    }
}

/* ---------- Login (gate) ----------
   Header and footer are hidden on this page (it's a standalone ink screen). */
body:has(.page-gate) .site-header,
body:has(.page-gate) .site-footer {
    display: none;
}
.page-gate {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    min-height: 100vh;
    padding: 48px 16px;
}
.gate-mark {
    position: relative;
    font-family: var(--font-heading);
    font-size: 40px;
    color: #fff;
}
.gate-card {
    position: relative;
    width: 100%;
    max-width: 400px;
    padding: 36px 32px 32px;
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    color: var(--color-text);
    box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.8);
    animation: gate-in 0.8s var(--ease-out) both;
}
.gate-lock {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 20px;
    border-radius: 16px;
    background: var(--color-accent);
    color: var(--color-on-accent);
}
.gate-card h1 {
    margin: 0 0 8px;
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 30px;
    line-height: 1.1;
    color: var(--color-text);
}
.gate-card p.gate-sub {
    margin: 0 0 24px;
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-text-secondary);
}
.gate-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.gate-field {
    position: relative;
}
.gate-field.shake {
    animation: shake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}
.gate-field-icon {
    position: absolute;
    left: 16px;
    top: 17px;
    color: var(--color-text-muted);
    pointer-events: none;
}
.gate-input {
    width: 100%;
    height: 52px;
    padding: 0 16px 0 46px;
    border: 1px solid var(--color-divider-strong);
    border-radius: 14px;
    background: var(--color-field);
    color: var(--color-text);
    font: 500 16px var(--font-body);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.gate-input::placeholder {
    color: var(--color-text-muted);
}
.gate-input:hover {
    border-color: var(--color-text-muted);
}
.gate-input:focus {
    outline: none;
    border-color: var(--color-text);
    box-shadow: 0 0 0 4px rgba(200, 243, 29, 0.6);
}
.gate-input.is-error {
    border-color: var(--color-error);
}
.gate-error {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font: 600 14px var(--font-body);
    color: var(--color-error);
    animation: err-in 0.25s var(--ease-out) both;
}
.gate-error[hidden] {
    display: none;
}
.gate-submit {
    width: 100%;
    min-height: 52px;
    margin-top: 8px;
    border: 0;
    border-radius: var(--radius-pill);
    background: var(--color-primary);
    color: var(--color-background);
    font: 600 16px var(--font-body);
    cursor: pointer;
    transition: transform 0.16s var(--ease-press), background-color 0.2s;
}
.gate-submit:hover {
    background: var(--color-primary-hover);
}
.gate-submit:active {
    transform: scale(0.97);
}

/* ---------- 404 ---------- */
.nf {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding-top: 40px;
    padding-bottom: 120px;
    text-align: center;
}
.nf-road {
    max-width: 100%;
    height: auto;
}
.nf-draw {
    stroke-dasharray: 900;
    animation: draw 1.8s var(--ease-out) both;
}
.nf-pop {
    transform-box: fill-box;
    transform-origin: center;
    animation: pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 1.5s both;
}
.nf-pop-2 {
    animation-delay: 1.6s;
}
.nf-ping {
    transform-box: fill-box;
    transform-origin: center;
    animation: ping-404 2s var(--ease-out) 1.6s infinite;
}
.nf h1 {
    margin: 0;
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 72px;
    line-height: 1;
    color: #fff;
}
.nf p {
    margin: 0;
    font-size: 19px;
    color: rgba(255, 255, 255, 0.72);
}
.nf .cta {
    margin-top: 12px;
}

/* ---------- Legal pages (Privacy / Cookies) ---------- */
.legal-hero .site-wrap {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 48px;
    padding-bottom: 56px;
}
.legal-hero h1 {
    margin: 0;
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 72px;
    line-height: 1;
    letter-spacing: -0.01em;
    color: #fff;
}
.legal-hero p {
    margin: 0;
    max-width: 620px;
    font-size: 19px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.72);
}
.legal-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 64px;
    align-items: start;
    padding-top: 48px;
    padding-bottom: 112px;
}
.toc {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.toc a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: var(--color-text-secondary);
    font: 600 15px var(--font-body);
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}
.toc a:hover {
    background: var(--color-surface);
    color: var(--color-text);
}
.legal-sec {
    padding: 32px 0;
    border-top: 1px solid var(--color-divider);
    scroll-margin-top: 24px;
}
.legal-sec:first-child {
    padding-top: 0;
    border-top: 0;
}
.legal-sec h2 {
    margin: 0 0 12px;
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 30px;
    line-height: 1.15;
    color: var(--color-text);
}
.legal-sec p {
    margin: 0;
    max-width: 68ch;
    font-size: 18px;
    line-height: 1.7;
    color: var(--color-text-body);
}

/* ---------- Small screens ---------- */
@media (max-width: 860px) {
    .home-hero-grid,
    .dl-grid,
    .legal-layout {
        grid-template-columns: minmax(0, 1fr);
    }
    .legal-layout {
        gap: 24px;
    }
    .toc {
        position: static;
    }
    .dl-title {
        font-size: 64px;
    }
}
@media (max-width: 820px) {
    .bento {
        grid-template-columns: minmax(0, 1fr);
    }
    .tile-wide {
        grid-column: auto;
    }
    .tile-split {
        grid-template-columns: minmax(0, 1fr);
    }
    .home-title {
        font-size: 52px;
    }
}
@media (max-width: 575.98px) {
    .site-wrap {
        padding: 0 20px;
    }
    .home-hero-grid {
        padding-top: 40px;
        padding-bottom: 72px;
        gap: 40px;
    }
    .home-features {
        padding-top: 64px;
        padding-bottom: 64px;
    }
    .tile {
        padding: 28px;
    }
    .tile h3 {
        font-size: 32px;
    }
    .home-close {
        padding-bottom: 64px;
    }
    .home-close-band {
        padding: 40px 28px;
    }
    .home-close-mark {
        font-size: 56px;
    }
    .dl-title {
        font-size: 56px;
    }
    .dl-grid {
        padding-bottom: 72px;
    }
    .nf h1,
    .legal-hero h1 {
        font-size: 44px;
    }
    .nf {
        padding-bottom: 72px;
    }
    .gate-card {
        padding: 28px 22px 24px;
    }
}

/* Reduced motion: no animation or transition anywhere */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* ---------- Filter sidebar form controls ----------
   Chrome/Edge draw a date input's native calendar icon as its own box with a
   fixed internal padding that ignores the input's own right padding — no
   amount of padding/margin tuning made its spacing match the left side's
   text inset. Instead: the native `::-webkit-calendar-picker-indicator` is
   stretched to `inset: 0` and made fully transparent (still clickable —
   still opens the picker), `padding-right` on the input reserves matching
   space on the right, and a real icon (`icon('calendar')`, the inline-SVG
   helper in pages/events/js/index.js) is absolutely positioned in that
   reserved space via `.date-field-icon`, `pointer-events: none` so clicks
   fall through to the invisible native indicator underneath. */
.date-field-input {
    padding-right: 2.25rem;
}
.date-field-input::-webkit-calendar-picker-indicator {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    opacity: 0;
    cursor: pointer;
}
.date-field-icon {
    position: absolute;
    top: 50%;
    right: 0.75rem;
    transform: translateY(-50%);
    color: var(--bs-secondary-color);
    pointer-events: none;
    display: flex;
}
/* input-group's own border-radius rules assume 3 same-height children with
   no gap; a plain flex `.input-group` here (index.php) already lays out
   fine, this just keeps the built-in browser number spinner buttons off —
   the min/max pair already reads as a range without per-field increment
   controls. */
.filter-price-range input::-webkit-outer-spin-button,
.filter-price-range input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.filter-price-range input {
    -moz-appearance: textfield;
}
.filters-sidebar {
    position: sticky;
    top: calc(var(--space-xxl) + var(--space-md));
}
@media (max-width: 991.98px) {
    .filters-sidebar {
        position: static;
    }
}

.icon {
    flex-shrink: 0;
    vertical-align: middle;
}

/* ---------- Page band (list pages, coupons) ----------
   Ink title band under the header, same as the legal pages. */
.page-band .site-wrap {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 48px;
    padding-bottom: 56px;
}
.page-band h1 {
    margin: 0;
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 72px;
    line-height: 1;
    letter-spacing: -0.01em;
    color: #fff;
}
.page-band-lead {
    margin: 0;
    max-width: 560px;
    font-size: 19px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.72);
}
.lime-stroke {
    stroke: var(--color-accent);
}

/* ---------- Skeleton / empty states (events + clubs lists) ---------- */
@keyframes skel {
    0%, 100% { opacity: 0.55; }
    50% { opacity: 1; }
}
.skel {
    border-radius: 22px;
    background: var(--color-surface-secondary);
    animation: skel 1.4s ease-in-out infinite;
}
.skel-event {
    min-height: 380px;
}
.skel-club {
    aspect-ratio: 16 / 11;
    border-radius: var(--radius-lg);
}
.ev-empty {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 72px 32px;
    border-radius: 22px;
    background: var(--color-surface);
    box-shadow: inset 0 0 0 1px var(--color-divider);
    color: var(--color-text-secondary);
    text-align: center;
}
.ev-empty p {
    margin: 0;
    font: 600 18px var(--font-body);
    color: var(--color-text);
}
@keyframes rise-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}
.rise-in {
    animation: rise-in 0.55s var(--ease-out) both;
}

/* ---------- Events list: filter panel ---------- */
.ev-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 40px;
    align-items: start;
    padding-top: 40px;
    padding-bottom: 96px;
}
.filter-panel {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 24px;
    border-radius: 22px;
    background: var(--color-surface);
    box-shadow: inset 0 0 0 1px var(--color-divider);
}
.f-label {
    display: block;
    margin: 0 0 10px;
    font: 600 13px var(--font-body);
    color: var(--color-text);
}
.f-input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--color-divider-strong);
    border-radius: var(--radius-sm);
    background: var(--color-field);
    color: var(--color-text);
    font: 500 15px var(--font-body);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.f-input::placeholder {
    color: var(--color-text-muted);
}
.f-input:hover {
    border-color: var(--color-text-muted);
}
.f-input:focus {
    outline: none;
    border-color: var(--color-text);
    box-shadow: 0 0 0 4px rgba(200, 243, 29, 0.55);
}
.f-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.f-date {
    position: relative;
}
.f-check {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    margin-top: 8px;
    font: 600 14px var(--font-body);
    cursor: pointer;
}
.f-check input {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--color-primary);
}
.f-actions {
    display: flex;
    gap: 10px;
}
.pbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border: 0;
    border-radius: var(--radius-pill);
    font: 600 15px var(--font-body);
    cursor: pointer;
    transition: transform 0.16s var(--ease-press), background-color 0.2s, box-shadow 0.2s;
}
.pbtn:active {
    transform: scale(0.97);
}
.pbtn-ink {
    flex: 1;
    background: var(--color-primary);
    color: var(--color-background);
}
.pbtn-ink:hover {
    background: var(--color-primary-hover);
}
.pbtn-line {
    background: transparent;
    color: var(--color-text);
    box-shadow: inset 0 0 0 1px var(--color-divider-strong);
}
.pbtn-line:hover {
    box-shadow: inset 0 0 0 1px var(--color-text);
}

/* Type: segmented pill control backed by radios */
.seg {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    padding: 4px;
    border-radius: var(--radius-pill);
    background: var(--color-surface-secondary);
}
.seg-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.seg-label {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: var(--radius-pill);
    color: var(--color-text-secondary);
    font: 600 14px var(--font-body);
    cursor: pointer;
    transition: background-color 0.25s var(--ease-out), color 0.2s, box-shadow 0.25s;
}
.seg-label:hover {
    color: var(--color-text);
}
.seg-input:checked + .seg-label {
    background: var(--color-primary);
    color: var(--color-background);
    box-shadow: 0 4px 12px -4px rgba(11, 14, 19, 0.4);
}
.seg-input:focus-visible + .seg-label {
    outline: 2px solid var(--color-focus);
    outline-offset: 2px;
}

/* Categories: toggle chips (lime when on) */
.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.chip {
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--color-divider-strong);
    border-radius: var(--radius-pill);
    background: var(--color-field);
    color: var(--color-text);
    font: 600 13px var(--font-body);
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, transform 0.16s var(--ease-press);
}
.chip:hover {
    border-color: var(--color-text);
}
.chip:active {
    transform: scale(0.96);
}
.chip.on {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-on-accent);
}

/* ---------- Events list: cards ---------- */
.ev-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}
.e-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 22px;
    background: var(--color-surface);
    color: var(--color-text);
    text-decoration: none;
    box-shadow: inset 0 0 0 1px var(--color-divider);
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}
.e-card:hover {
    transform: translateY(-4px);
    box-shadow: inset 0 0 0 1px var(--color-divider), 0 24px 48px -28px rgba(11, 14, 19, 0.45);
    color: var(--color-text);
}
.e-media {
    position: relative;
    aspect-ratio: 16 / 11;
    background: var(--color-surface-secondary);
}
.e-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}
.e-img[hidden] {
    display: none;
}
.e-card:hover .e-img {
    transform: scale(1.05);
}
/* Clipping layer for the photo (zoom stays inside; the date tile sits outside it) */
.e-clip {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
/* Striped placeholder (missing photo) */
.e-ph {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 100%;
    background-image: repeating-linear-gradient(135deg, rgba(11, 14, 19, 0.04) 0 10px, transparent 10px 20px);
    color: var(--color-text-muted);
    font: 500 13px var(--font-body);
}
.e-ph[hidden] {
    display: none;
}
.e-badge {
    position: absolute;
    top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 28px;
    padding: 0 12px;
    border-radius: var(--radius-pill);
    font: 700 12px var(--font-body);
}
.e-badge-now,
.e-badge-future {
    left: 12px;
}
.e-badge-now,
.e-badge-free {
    background: var(--color-accent);
    color: var(--color-on-accent);
}
.e-badge-future {
    background: rgba(255, 255, 255, 0.92);
    color: var(--color-on-accent);
    backdrop-filter: blur(6px);
}
.e-badge-free {
    right: 12px;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(11, 14, 19, 0.55); }
    100% { box-shadow: 0 0 0 8px rgba(11, 14, 19, 0); }
}
.e-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-on-accent);
    animation: pulse 1.6s var(--ease-out) infinite;
}
/* Date tile hanging off the photo's bottom-right edge */
.e-date {
    position: absolute;
    right: 12px;
    bottom: -26px;
    width: 64px;
    padding: 8px 0;
    border-radius: 16px;
    background: var(--color-surface);
    box-shadow: 0 10px 24px -10px rgba(11, 14, 19, 0.35);
    text-align: center;
    line-height: 1;
}
.e-date span {
    display: block;
    font: 700 11px var(--font-body);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.e-date-wd {
    color: var(--color-text-muted);
}
.e-date span.e-date-day {
    margin: 4px 0 2px;
    font: 400 26px var(--font-heading);
    letter-spacing: 0;
    text-transform: none;
}
.e-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 12px;
    padding: 20px 20px 18px;
}
.e-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-right: 64px;
}
.e-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 26px;
    padding: 0 10px;
    border-radius: var(--radius-pill);
    font: 700 12px var(--font-body);
    white-space: nowrap;
}
.e-pill-trip {
    background: var(--color-ink);
    color: var(--color-accent);
}
.e-pill-event {
    background: var(--color-surface-secondary);
    color: var(--color-text);
}
.e-cat {
    overflow: hidden;
    font: 600 13px var(--font-body);
    color: var(--color-text-secondary);
    text-overflow: ellipsis;
    white-space: nowrap;
}
.e-name {
    margin: 0;
    overflow: hidden;
    font: 700 19px/1.25 var(--font-body);
    text-overflow: ellipsis;
    white-space: nowrap;
}
.e-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font: 500 14px var(--font-body);
    color: var(--color-text-secondary);
}
.e-meta-muted {
    color: var(--color-text-muted);
}
.e-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--color-divider);
}
.e-org {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font: 500 13px var(--font-body);
    color: var(--color-text-secondary);
}
.e-org span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.e-price {
    font: 700 16px var(--font-body);
}

/* ---------- Clubs list ---------- */
.club-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    padding-top: 48px;
    padding-bottom: 112px;
}
.c-card {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 11;
    border-radius: var(--radius-lg);
    background: var(--color-ink-raised);
    color: #fff;
    text-decoration: none;
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
}
.c-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 40px 70px -40px rgba(11, 14, 19, 0.7);
    color: #fff;
}
.c-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out);
}
.c-card img[hidden] {
    display: none;
}
.c-card:hover img {
    transform: scale(1.05);
}
.c-ph {
    position: absolute;
    inset: 0;
    color: rgba(255, 255, 255, 0.55);
}
.c-scrim {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(11, 14, 19, 0.92), rgba(11, 14, 19, 0));
}
.c-body {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 26px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
}
.c-body h3 {
    margin: 0;
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 40px;
    line-height: 1.05;
    color: #fff;
}
.c-city {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font: 600 15px var(--font-body);
    color: rgba(255, 255, 255, 0.8);
}
.c-go {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--color-accent);
    color: var(--color-on-accent);
    transition: transform 0.35s var(--ease-out);
}
.c-card:hover .c-go {
    transform: translateX(4px) rotate(-45deg);
}

/* ---------- Event / club detail ---------- */
.detail-band {
    padding-bottom: 200px;
}
.detail-band-in {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding-top: 24px;
}
.detail-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    color: rgba(255, 255, 255, 0.75);
    font: 600 15px var(--font-body);
    text-decoration: none;
    transition: color 0.2s;
}
.detail-back:hover {
    color: #fff;
}
.detail-back svg {
    transition: transform 0.25s var(--ease-out);
}
.detail-back:hover svg {
    transform: translateX(-3px);
}
.detail-note {
    margin: 0;
    font-size: 19px;
    color: rgba(255, 255, 255, 0.72);
}
.detail-title {
    margin: 0;
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 76px;
    line-height: 1;
    letter-spacing: -0.01em;
    color: #fff;
}
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    font: 600 17px var(--font-body);
    color: rgba(255, 255, 255, 0.8);
}
.detail-address {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font: 600 17px var(--font-body);
    color: rgba(255, 255, 255, 0.8);
}
.org-pill {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font: 600 15px var(--font-body);
    text-decoration: none;
    transition: background-color 0.2s;
}
.org-pill:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}
.detail-hero-wrap {
    margin-top: -168px;
}
.detail-hero {
    overflow: hidden;
    aspect-ratio: 21 / 9;
    border-radius: 32px;
    background: var(--color-ink-raised);
    box-shadow: 0 40px 80px -40px rgba(11, 14, 19, 0.6);
}
.detail-hero img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.detail-hero img[hidden] {
    display: none;
}
.detail-hero .e-ph {
    color: rgba(255, 255, 255, 0.55);
}
.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 56px;
    align-items: start;
    padding-top: 64px;
    padding-bottom: 64px;
}
.detail-layout-solo {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 56px;
    padding-bottom: 112px;
}
.prose p {
    margin: 0 0 18px;
    max-width: 68ch;
    font-size: 18px;
    line-height: 1.7;
    color: var(--color-text-body);
}
.prose-lg p {
    font-size: 20px;
}
.facts {
    padding: 8px 24px 24px;
    border-radius: 24px;
    background: var(--color-surface);
    box-shadow: inset 0 0 0 1px var(--color-divider);
}
.fact {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--color-divider);
}
.fact-ic {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--color-background);
    color: var(--color-text);
}
.fact-label {
    font: 600 13px var(--font-body);
    color: var(--color-text-muted);
}
.fact-value {
    margin-top: 2px;
    font: 700 16px var(--font-body);
}
.fact-value a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--color-text);
}
.facts-cta {
    width: 100%;
    margin-top: 20px;
}
.detail-gallery {
    padding-bottom: 112px;
}
.gal {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 220px;
    gap: 16px;
}
.g-img {
    overflow: hidden;
    border-radius: 18px;
    background: var(--color-surface-secondary);
}
.g-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}
.g-img:hover img {
    transform: scale(1.04);
}
.gal-big {
    grid-column: span 2;
    grid-row: span 2;
}

/* ---------- Coupons ---------- */
.cp-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
    padding-top: 64px;
    padding-bottom: 112px;
}
.cp-tickets {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.tk {
    position: relative;
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    min-height: 150px;
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    box-shadow: inset 0 0 0 1px var(--color-divider);
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
}
.tk:hover {
    transform: translateY(-4px) rotate(-0.6deg);
    box-shadow: inset 0 0 0 1px var(--color-divider), 0 30px 50px -30px rgba(11, 14, 19, 0.45);
}
.tk-indent {
    margin-left: 40px;
}
/* Stub with a dashed perforation on its right edge */
.tk-stub {
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 2px dashed rgba(11, 14, 19, 0.25);
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    background: var(--color-accent);
    color: var(--color-on-accent);
}
.tk-stub-ink {
    background: var(--color-ink);
    color: var(--color-accent);
}
/* Notches punched out of the ticket at the perforation */
.tk::before,
.tk::after {
    content: "";
    position: absolute;
    left: 109px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--color-background);
}
.tk::before {
    top: -11px;
    box-shadow: inset 0 -1px 0 var(--color-divider);
}
.tk::after {
    bottom: -11px;
    box-shadow: inset 0 1px 0 var(--color-divider);
}
.tk-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 28px 32px;
}
.tk-body h3 {
    margin: 0;
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 30px;
    line-height: 1.1;
    color: var(--color-text);
}
.tk-body span {
    font: 600 15px var(--font-body);
    color: var(--color-text-secondary);
}
.phone-flat {
    transform: none;
    box-shadow: 0 50px 90px -40px rgba(11, 14, 19, 0.6);
}

/* ---------- Small screens: step 2 pages ---------- */
@media (max-width: 1100px) {
    .ev-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 900px) {
    .ev-layout,
    .cp-grid,
    .detail-layout {
        grid-template-columns: minmax(0, 1fr);
    }
    .detail-layout {
        gap: 32px;
    }
    .gal {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .gal-big {
        grid-column: span 2;
        grid-row: auto;
    }
    .detail-title {
        font-size: 48px;
    }
}
@media (max-width: 820px) {
    .club-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
@media (max-width: 600px) {
    .ev-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .page-band h1 {
        font-size: 44px;
    }
    .detail-band {
        padding-bottom: 120px;
    }
    .detail-hero-wrap {
        margin-top: -88px;
    }
    .detail-hero {
        border-radius: var(--radius-md);
    }
    .detail-title {
        font-size: 40px;
    }
    .c-body {
        left: 20px;
        right: 20px;
        bottom: 20px;
    }
    .c-body h3 {
        font-size: 30px;
    }
    .tk {
        grid-template-columns: 88px minmax(0, 1fr);
    }
    .tk::before,
    .tk::after {
        left: 77px;
    }
    .tk-indent {
        margin-left: 0;
    }
    .tk-body {
        padding: 20px;
    }
    .tk-body h3 {
        font-size: 24px;
    }
    .gal {
        grid-auto-rows: 160px;
    }
}
