/* =====================================================================
 * Flanör v2 — Application styles (light, friendly)
 * ===================================================================== */

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overscroll-behavior-y: contain;          /* kill the bouncy white background on iOS chrome */
    text-rendering: optimizeLegibility;
}

/* When launched as an installed PWA, hide things that don't belong
   in standalone mode (and recover the lost iOS status-bar height). */
@media (display-mode: standalone) {
    body { padding-top: env(safe-area-inset-top, 0); }
    .nav-toggle { display: none !important; }
}

/* Disable hover-stick on touch devices — `:hover` lingers there */
@media (hover: none) {
    .btn:hover, .btn-ghost:hover, .nav-links a:hover,
    .cat-card:hover, .club-card:hover, .event-card:hover,
    .testimonial-card:hover, .step:hover, .why-card:hover {
        transform: none !important;
        box-shadow: var(--shadow-1) !important;
    }
}

/* Page-transition top bar — JS shows/hides via .is-loading on <html> */
.page-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease-out, opacity 0.3s ease-out;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
}
html.is-loading .page-progress {
    opacity: 1;
    transform: scaleX(0.7);
    transition: transform 8s cubic-bezier(0.1, 0.7, 0.1, 1);
}
html.is-loading.is-finishing .page-progress {
    transform: scaleX(1);
    transition: transform 0.25s ease-out;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink-2);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.55;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.15s ease;
}
a:hover { color: var(--primary-600); }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
    font-family: var(--display);
    font-weight: 700;
    color: var(--ink-1);
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0 0 16px;
}
h1 { font-size: clamp(32px, 4.5vw, 48px); letter-spacing: -0.03em; }
h2 { font-size: clamp(26px, 3.5vw, 36px); }
h3 { font-size: clamp(20px, 2.5vw, 24px); }
h4 { font-size: 18px; }

p { margin: 0 0 14px; color: var(--ink-2); }

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}
.container-sm { max-width: 680px; }
.container-md { max-width: 880px; }

/* ------------------------------ Nav ------------------------------ */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 250, 247, 0.85);
    border-bottom: 1px solid var(--line);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}
[data-theme="dark"] .nav {
    background: rgba(10, 10, 11, 0.80);
}
.nav-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    height: 68px;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}
.nav-brand {
    font-family: var(--display);
    font-weight: 800;
    font-size: 22px;
    color: var(--ink-1);
    letter-spacing: -0.02em;
}
.nav-brand:hover { color: var(--ink-1); }
.nav-brand .dot { color: var(--primary); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    flex: 1;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-links a {
    color: var(--ink-2);
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 500;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--line);
    color: var(--ink-1);
    width: 38px;
    height: 38px;
    border-radius: var(--r-2);
    cursor: pointer;
    font-size: 18px;
}
@media (max-width: 768px) {
    .nav-inner { gap: 10px; padding: 0 14px; }
    .nav-toggle { display: none; }       /* Replaced by the bottom-dock Menu button */
    .nav-links {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: var(--surface);
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        align-items: stretch;
        padding: 14px 20px;
        gap: 14px;
    }
    .nav-links.is-open { display: flex; }
    .nav-actions .btn-ghost,
    .nav-actions .btn:not(.nav-avatar) { display: none; }
    .nav-actions { gap: 8px; }
    /* The mobile menu surfaces auth CTAs — see partial nav-links bottom */
    .nav-links__cta {
        display: flex;
        gap: 8px;
        padding-top: 14px;
        border-top: 1px solid var(--line);
    }
    .nav-links__cta .btn { flex: 1; text-align: center; }
}
@media (min-width: 769px) {
    .nav-links__cta { display: none; }
}

/* ================================================================
 * Mobile bottom dock — Instagram / Twitter style 5-icon nav.
 * Hidden above 768 px (desktop nav covers everything).
 * ================================================================ */
.mobile-dock { display: none; }

@media (max-width: 768px) {
    body { padding-bottom: 64px; }       /* room for the dock */

    .mobile-dock {
        position: fixed;
        left: 0; right: 0; bottom: 0;
        z-index: 99;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        height: 60px;
        background: rgba(250, 250, 247, 0.92);
        border-top: 1px solid var(--line);
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }
    [data-theme="dark"] .mobile-dock {
        background: rgba(10, 10, 11, 0.85);
    }

    .mobile-dock__item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        text-decoration: none;
        color: var(--ink-3);
        background: transparent;
        border: 0;
        cursor: pointer;
        font-family: var(--sans);
        font-size: 10px;
        font-weight: 500;
        padding: 8px 4px 6px;
        transition: color 0.12s, transform 0.12s;
    }
    .mobile-dock__item svg { stroke: currentColor; }
    .mobile-dock__item:active { transform: scale(0.93); }
    .mobile-dock__item:hover,
    .mobile-dock__item.is-active { color: var(--primary); }
    .mobile-dock__item.is-active span { font-weight: 700; }

    .mobile-dock__avatar {
        width: 22px; height: 22px;
        border-radius: 50%;
        background-size: cover;
        background-position: center;
        background-color: var(--surface-2);
        border: 1px solid var(--line);
    }
    .mobile-dock__avatar-fb {
        background: var(--primary-50);
        color: var(--primary);
        display: flex; align-items: center; justify-content: center;
        font-family: var(--display);
        font-weight: 700;
        font-size: 11px;
        border: 1px solid rgba(var(--primary-rgb), 0.25);
    }
}

/* ------------------------------ Buttons ------------------------------ */
.btn {
    display: inline-block;
    background: var(--primary);
    color: var(--on-primary);
    border: 1px solid var(--primary);
    border-radius: var(--r-pill);
    padding: 12px 24px;
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
    box-shadow: var(--shadow-1);
    text-align: center;
}
.btn:hover {
    background: var(--primary-600);
    border-color: var(--primary-600);
    color: var(--on-primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-2);
}
.btn:disabled, .btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-ghost {
    background: var(--surface);
    color: var(--ink-1);
    border-color: var(--line);
    box-shadow: none;
}
.btn-ghost:hover {
    background: var(--surface-2);
    color: var(--ink-1);
    border-color: var(--line-2);
    box-shadow: var(--shadow-1);
}

.btn-accent {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--on-primary);
}
.btn-accent:hover {
    background: var(--accent-600);
    border-color: var(--accent-600);
    color: var(--on-primary);
}

.btn-danger {
    background: transparent;
    color: var(--danger);
    border-color: var(--danger);
    box-shadow: none;
}
.btn-danger:hover {
    background: var(--danger);
    color: #fff;
    border-color: var(--danger);
}

.btn-block { display: block; width: 100%; }

.btn-sm { padding: 8px 16px; font-size: 13px; }

/* ------------------------------ Forms ------------------------------ */
label {
    display: block;
    font-family: var(--sans);
    font-size: 13px;
    color: var(--ink-1);
    font-weight: 600;
    margin-bottom: 6px;
}
.field { margin-bottom: 16px; }
.field-help { font-size: 12px; color: var(--ink-3); margin-top: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 540px) { .field-row { grid-template-columns: 1fr; } }

input[type="text"], input[type="email"], input[type="password"],
input[type="url"], input[type="tel"], input[type="number"],
input[type="datetime-local"], input[type="date"], input[type="search"],
select, textarea {
    width: 100%;
    background: var(--surface);
    color: var(--ink-1);
    border: 1px solid var(--line-2);
    border-radius: var(--r-2);
    padding: 11px 14px;
    font-family: var(--sans);
    font-size: 15px;
    transition: border-color 0.15s, box-shadow 0.15s;
}
input::placeholder, textarea::placeholder { color: var(--ink-5); }
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--ring);
}
textarea { min-height: 120px; resize: vertical; }

/* ------------------------------ Cards / Surfaces ------------------------------ */
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-3);
    padding: 28px;
    box-shadow: var(--shadow-1);
}
.card--sm { padding: 20px; }
.card--flush { padding: 0; overflow: hidden; }

/* ------------------------------ Hero ------------------------------ */
.hero {
    padding: 80px 0 56px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    top: -120px; left: 0;
    width: 60%; height: 480px;
    background: radial-gradient(60% 50% at 30% 50%, var(--hero-glow-1), transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 56px;
    align-items: center;
}
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; gap: 32px; }
}
.hero-copy { text-align: left; }
.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-50);
    border: 1px solid rgba(var(--primary-rgb), 0.30);
    padding: 6px 14px;
    border-radius: var(--r-pill);
    margin: 0 0 20px;
}
.hero-kicker::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
}
.hero-title {
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(40px, 6vw, 64px);
    color: var(--ink-1);
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin: 0 0 20px;
}
.hero-title .accent  { color: var(--primary); }
.hero-title .accent2 { color: var(--accent); }
.hero-lead {
    color: var(--ink-2);
    font-size: clamp(16px, 1.5vw, 19px);
    margin: 0 0 28px;
    line-height: 1.55;
    max-width: 540px;
}
.hero-cta { display: inline-flex; gap: 10px; flex-wrap: wrap; }

/* Hero photo column */
.hero-photo {
    position: relative;
    border-radius: var(--r-4);
    overflow: hidden;
    box-shadow: var(--shadow-3);
    aspect-ratio: 4 / 5;
    background: var(--surface-2);
    background-size: cover;
    background-position: center;
}
@media (max-width: 900px) {
    .hero-photo { aspect-ratio: 16 / 11; }   /* Less tall when stacked */
}
.hero-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.55) 100%);
    pointer-events: none;
}
.hero-photo__caption {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 20px;
    color: #fff;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 500;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
.hero-photo__caption .live-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.55);
    animation: hero-pulse 2s ease infinite;
}
@keyframes hero-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.55); }
    70%  { box-shadow: 0 0 0 9px rgba(var(--primary-rgb), 0); }
    100% { box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0); }
}

/* Floating glass card on top of the photo (next event preview) */
.hero-photo__chip {
    position: absolute;
    top: 18px;
    right: 18px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: var(--r-2);
    padding: 10px 14px;
    box-shadow: var(--shadow-2);
    z-index: 1;
    color: var(--ink-1);
}
[data-theme="dark"] .hero-photo__chip {
    background: rgba(20, 20, 22, 0.85);
    color: var(--ink-1);
    border: 1px solid var(--line-2);
}
.hero-photo__chip .chip-label {
    font-family: var(--sans);
    font-size: 10px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.10em;
}
.hero-photo__chip .chip-value {
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 700;
    margin-top: 2px;
    color: var(--ink-1);
}

/* ------------------------------ Sections ------------------------------ */
.section { padding: 80px 0; }
.section--alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head .kicker { display: inline-block; margin-bottom: 12px; }
.section-head h2 { margin: 0 0 14px; }
.section-head p { color: var(--ink-2); font-size: 17px; line-height: 1.55; margin: 0; }

/* ------------------------------ Grid ------------------------------ */
.grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 768px) { .grid--3, .grid--4 { grid-template-columns: 1fr; } }

/* ------------------------------ Step / How it works ------------------------------ */
.step {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-3);
    padding: 32px 24px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: var(--shadow-1);
}
.step:hover { transform: translateY(-2px); box-shadow: var(--shadow-3); }
.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-50);
    color: var(--primary);
    font-family: var(--display);
    font-weight: 700;
    font-size: 22px;
    margin: 0 auto 18px;
}
.step--orange .step-num { background: var(--accent-50); color: var(--accent-600); }
.step h3 { color: var(--ink-1); margin-bottom: 10px; }
.step p { color: var(--ink-2); margin: 0; }

/* ============================== Stats section ============================
   Replaces the old `.stats` flat strip with a card-based layout that
   carries more visual weight: each stat sits in a translucent card with
   a subtle border, an outline icon, a mono-feature numeric, a label, and
   a small uppercase mono hint. The whole section sits over a soft radial
   gradient that hints at activity without competing with the hero. */

.stats-section {
    position: relative;
    padding: 64px 0;
    overflow: hidden;
}
.stats-section::before,
.stats-section::after {
    content: '';
    position: absolute;
    pointer-events: none;
    inset: 0;
    z-index: 0;
}
/* Soft radial accent — primary on the left, accent on the right */
.stats-section::before {
    background:
        radial-gradient(circle at 18% 0%,  rgba(var(--primary-rgb), 0.10), transparent 55%),
        radial-gradient(circle at 82% 100%, rgba(var(--accent-rgb),  0.07), transparent 55%);
}
/* Hairline grid lines that fade out — gives the section a "data-board"
   feel without being a grid background. */
.stats-section::after {
    background-image:
        linear-gradient(to right,  rgba(var(--ink-3-rgb, 90,90,90), 0.10) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(var(--ink-3-rgb, 90,90,90), 0.10) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
            mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    opacity: 0.45;
}
.stats-section > .container {
    position: relative;
    z-index: 1;
}
.stats-section__head {
    text-align: center;
    margin-bottom: 32px;
}
.stats-section__head .kicker {
    display: inline-block;
    margin-bottom: 8px;
}
.stats-section__title {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(22px, 2.4vw, 28px);
    letter-spacing: -0.02em;
    color: var(--ink-1);
    margin: 0;
}

/* ----- Strip layout ----- */
.stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* ----- Card ----- */
.stat-card {
    position: relative;
    padding: 28px 24px 26px;
    border-radius: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    transition:
        border-color 0.25s ease,
        transform    0.25s ease,
        box-shadow   0.25s ease,
        background   0.25s ease;
    overflow: hidden;
}
/* Top gradient hairline appears on hover */
.stat-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity 0.25s ease;
}
.stat-card:hover {
    transform: translateY(-3px);
    border-color: rgba(var(--primary-rgb), 0.45);
    box-shadow: 0 14px 32px -18px rgba(var(--primary-rgb), 0.55);
}
.stat-card:hover::before { opacity: 1; }

/* Accent variant — every other card. Subtle hue shift via icon + hint */
.stat-card--accent .stat-card__icon {
    background: rgba(var(--accent-rgb), 0.12);
    color: var(--accent);
}
.stat-card--accent:hover {
    border-color: rgba(var(--accent-rgb), 0.45);
    box-shadow: 0 14px 32px -18px rgba(var(--accent-rgb), 0.55);
}

/* Icon chip */
.stat-card__icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    background: rgba(var(--primary-rgb), 0.12);
    color: var(--primary);
    margin-bottom: 18px;
}
.stat-card__icon svg {
    width: 22px;
    height: 22px;
    display: block;
}

/* The big number — mono, tabular, animated count-up via JS sets data-count */
.stat-card__num {
    font-family: var(--mono, 'JetBrains Mono', ui-monospace, monospace);
    font-feature-settings: 'tnum' 1, 'zero' 1;
    font-variant-numeric: tabular-nums;
    font-size: clamp(34px, 3.6vw, 44px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--ink-1);
    margin-bottom: 8px;
}

.stat-card__label {
    font-family: var(--sans);
    font-weight: 600;
    font-size: 14px;
    color: var(--ink-2);
    margin-bottom: 4px;
}
.stat-card__hint {
    font-family: var(--mono, 'JetBrains Mono', ui-monospace, monospace);
    font-size: 11px;
    color: var(--ink-3);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Reduced motion — no entrance lift, no hover transform */
@media (prefers-reduced-motion: reduce) {
    .stat-card,
    .stat-card::before { transition: none; }
    .stat-card:hover  { transform: none; }
}

/* Responsive */
@media (max-width: 900px) {
    .stats-section          { padding: 48px 0; }
    .stats-strip            { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (max-width: 420px) {
    .stats-section          { padding: 40px 0; }
    .stats-strip            { grid-template-columns: 1fr; }
    .stat-card              { padding: 22px 20px 20px; }
    .stat-card__num         { font-size: 32px; }
}

/* ------------------------------ Event card ------------------------------ */
.event-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-3);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
    box-shadow: var(--shadow-1);
}
.event-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: var(--shadow-3);
    color: inherit;
}
/* Cover image — full-width header that replaces the date strip
   when an event has a cover_image. */
.event-card__cover {
    position: relative;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    background-color: var(--surface-2);
    overflow: hidden;
}
.event-card__cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,0.55) 100%);
    pointer-events: none;
}
.event-card__cover-date {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--surface);
    color: var(--ink-1);
    border-radius: var(--r-2);
    padding: 8px 12px;
    box-shadow: var(--shadow-2);
    font-family: var(--sans);
    line-height: 1;
    z-index: 1;
}
.event-card__cover-date .day {
    display: block;
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -0.02em;
}
.event-card__cover-date .mo {
    display: block;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    color: var(--primary);
    margin-top: 2px;
}

/* Pattern cover — used when no cover_image exists. Big emoji on a
   colored gradient. Themed against primary / accent. */
.event-card__pattern {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background:
        radial-gradient(120% 120% at 0% 0%, rgba(255,255,255,0.18), transparent 60%),
        linear-gradient(135deg, var(--primary), var(--primary-600));
    color: var(--on-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}
.event-card--orange .event-card__pattern {
    background:
        radial-gradient(120% 120% at 0% 0%, rgba(255,255,255,0.22), transparent 60%),
        linear-gradient(135deg, var(--accent), var(--accent-600));
}
.event-card__pattern::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(rgba(255,255,255,0.10) 1.5px, transparent 1.5px),
        radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 36px 36px, 22px 22px;
    background-position: 0 0, 18px 11px;
    opacity: 0.7;
    pointer-events: none;
}
.event-card__pattern-emoji {
    position: relative;
    z-index: 1;
    font-size: clamp(64px, 10vw, 96px);
    line-height: 1;
    filter: drop-shadow(0 4px 16px rgba(0,0,0,0.30));
}
.event-card__pattern-date {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--surface);
    color: var(--ink-1);
    border-radius: var(--r-2);
    padding: 8px 12px;
    box-shadow: var(--shadow-2);
    line-height: 1;
    z-index: 2;
}
.event-card__pattern-date .day {
    display: block;
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -0.02em;
}
.event-card__pattern-date .mo {
    display: block;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    color: var(--primary);
    margin-top: 2px;
}
.event-card--orange .event-card__pattern-date .mo { color: var(--accent); }

/* Legacy strip — kept as fallback if a view uses it. */
.event-card__strip {
    padding: 16px 20px;
    background: var(--primary);
    color: var(--on-primary);
    display: flex;
    align-items: center;
    gap: 14px;
}
.event-card--orange .event-card__strip { background: var(--accent); color: var(--on-primary); }
.event-card__day {
    font-family: var(--display);
    font-weight: 800;
    font-size: 38px;
    line-height: 0.95;
    letter-spacing: -0.03em;
}
.event-card__when {
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.95;
}
.event-card__when-time {
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 600;
    margin-top: 2px;
    opacity: 0.95;
}
.event-card__body { padding: 18px 20px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.event-card__group {
    font-family: var(--sans);
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
    margin: 0;
}
.event-card__title {
    font-family: var(--display);
    font-weight: 700;
    font-size: 18px;
    color: var(--ink-1);
    margin: 0;
    line-height: 1.25;
}
.event-card__meta {
    font-family: var(--sans);
    font-size: 13px;
    color: var(--ink-3);
    margin-top: auto;
    padding-top: 8px;
}

/* ------------------------------ Alerts ------------------------------ */
.alert {
    border-radius: var(--r-2);
    padding: 12px 16px;
    font-size: 14px;
    margin-bottom: 14px;
    border: 1px solid transparent;
}
.alert-success { background: rgba(74, 222, 128, 0.10);  color: var(--success); border-color: rgba(74, 222, 128, 0.35); }
.alert-error   { background: rgba(248, 113, 113, 0.10); color: var(--danger);  border-color: rgba(248, 113, 113, 0.35); }
.alert-warning { background: rgba(251, 191, 36, 0.10);  color: var(--warning); border-color: rgba(251, 191, 36, 0.35); }
.alert-info    { background: rgba(56, 189, 248, 0.10);  color: var(--info);    border-color: rgba(56, 189, 248, 0.35); }

/* ------------------------------ Auth box ------------------------------ */
.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 60px 20px;
    background: var(--bg);
    position: relative;
    overflow: hidden;
}
.auth-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(60% 50% at 50% 0%, var(--hero-glow-1), transparent 70%),
        radial-gradient(40% 50% at 100% 100%, var(--hero-glow-2), transparent 70%);
    pointer-events: none;
}

/* Decorative skyline illustration along the bottom of the auth shell.
   Pure SVG, theme-aware via currentColor. */
.auth-illustration {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 220px;
    color: var(--primary);
    opacity: 0.55;
    pointer-events: none;
    z-index: 0;
}
[data-theme="dark"] .auth-illustration { opacity: 0.40; }
.auth-illustration svg {
    display: block;
    width: 100%;
    height: 100%;
}
.auth-card { position: relative; z-index: 1; }
.auth-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-3);
    padding: 40px 32px;
    width: 100%;
    max-width: 460px;
    box-shadow: var(--shadow-3);
    position: relative;
}
@media (max-width: 480px) {
    .auth-card { padding: 28px 22px; }
    .auth-shell { padding: 32px 16px; }
}
.auth-card h1 { font-size: 28px; margin: 0 0 6px; }
.auth-card .lead { color: var(--ink-2); font-size: 14px; margin: 0 0 24px; }
.auth-foot { text-align: center; margin-top: 22px; font-size: 13px; color: var(--ink-3); }

/* ------------------------------ Footer ------------------------------ */
.footer {
    margin-top: auto;
    background: var(--surface);
    border-top: 1px solid var(--line);
    padding: 56px 0 32px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }
.footer h5 {
    font-family: var(--sans);
    font-size: 13px;
    color: var(--ink-1);
    font-weight: 700;
    margin: 0 0 14px;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: var(--ink-2); font-size: 14px; }
.footer-links a:hover { color: var(--primary); }
.footer-bottom {
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--ink-3);
    font-size: 13px;
}

/* ------------------------------ Lang switcher ------------------------------ */
.lang-switch {
    display: inline-flex;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    padding: 3px;
}
.lang-switch a {
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: var(--r-pill);
    color: var(--ink-3);
}
.lang-switch a.active { background: var(--surface); color: var(--primary); box-shadow: var(--shadow-1); }
[data-theme="dark"] .lang-switch a.active { background: var(--surface-3); }

/* ------------------------------ Theme toggle ------------------------------ */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--r-pill);
    background: var(--surface-2);
    border: 1px solid var(--line);
    color: var(--ink-2);
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    padding: 0;
}
.theme-toggle:hover {
    background: var(--surface-3);
    color: var(--primary);
    border-color: var(--line-2);
}
.theme-toggle__sun, .theme-toggle__moon { display: none; }
[data-theme="light"] .theme-toggle__moon { display: block; }
[data-theme="dark"]  .theme-toggle__sun  { display: block; }

/* ------------------------------ Account / Admin shell ------------------------------ */
.account-shell {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: calc(100vh - 68px);
    gap: 0;
}
@media (max-width: 900px) {
    .account-shell { grid-template-columns: 1fr; }
    .account-side {
        border-right: 0;
        border-bottom: 1px solid var(--line);
        padding: 14px 14px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .account-side ul {
        display: flex;
        gap: 4px;
        white-space: nowrap;
    }
    .account-side li { margin-bottom: 0; }
    .account-side a { padding: 8px 12px; font-size: 12px; }
    .account-side .side-section { display: none; }
    .account-main { padding: 24px 16px; }
}
.account-side {
    background: var(--surface);
    border-right: 1px solid var(--line);
    padding: 28px 16px;
}
.account-side ul { list-style: none; padding: 0; margin: 0; }
.account-side li { margin-bottom: 4px; }
.account-side a {
    display: block;
    padding: 10px 14px;
    border-radius: var(--r-2);
    color: var(--ink-2);
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
}
.account-side a:hover { background: var(--surface-2); color: var(--ink-1); }
.account-side a.active { background: var(--primary-50); color: var(--primary); }
[data-theme="dark"] .account-side a.active { color: var(--primary); }
.account-side .side-section {
    margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line);
    font-size: 11px; color: var(--ink-4); font-weight: 600; text-transform: uppercase; letter-spacing: 0.10em;
    padding-left: 14px; padding-bottom: 8px;
}
.account-main { padding: 36px 40px; }
@media (max-width: 600px) { .account-main { padding: 24px 20px; } }

/* ------------------------------ Tables ------------------------------ */
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: var(--surface);
    border-radius: var(--r-3);
    overflow: hidden;
    box-shadow: var(--shadow-1);
}
.table th, .table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}
.table th {
    font-family: var(--sans);
    font-size: 12px;
    color: var(--ink-3);
    font-weight: 600;
    background: var(--surface-2);
    letter-spacing: 0.04em;
}
.table tbody tr:hover { background: var(--surface-2); }
.table tbody tr:last-child td { border-bottom: 0; }

.badge {
    display: inline-block;
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: var(--r-pill);
    border: 1px solid transparent;
}
.badge--pending   { background: rgba(251, 191, 36, 0.12); color: var(--warning); border-color: rgba(251, 191, 36, 0.35); }
.badge--approved  { background: rgba( 74, 222, 128, 0.12); color: var(--success); border-color: rgba( 74, 222, 128, 0.35); }
.badge--rejected  { background: rgba(248, 113, 113, 0.12); color: var(--danger);  border-color: rgba(248, 113, 113, 0.35); }
.badge--suspended { background: var(--surface-2); color: var(--ink-3); border-color: var(--line-2); }
.badge--admin     { background: rgba( 56, 189, 248, 0.12); color: var(--info); border-color: rgba(56, 189, 248, 0.35); }
.badge--member    { background: var(--surface-2); color: var(--ink-2); border-color: var(--line-2); }
.badge--demo      { background: var(--accent-50); color: var(--accent); border-color: rgba(251, 146, 60, 0.35); }

/* ------------------------------ Demo banner ------------------------------ */
.demo-banner {
    background: linear-gradient(135deg, var(--accent-50), var(--primary-50));
    border: 1px solid rgba(251, 146, 60, 0.45);
    border-radius: var(--r-3);
    padding: 16px 20px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}
.demo-banner strong { color: var(--accent); font-weight: 700; }
.demo-banner p { margin: 0; color: var(--ink-2); font-size: 14px; }

/* ================================================================
 * Categories — image-first cards, chips, hero
 * ================================================================ */

/* Category card — used on homepage 4-grid */
.cat-card {
    display: block;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-3);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
    box-shadow: var(--shadow-1);
}
.cat-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: var(--shadow-3);
    color: inherit;
}
.cat-card__img {
    aspect-ratio: 1;
    background-size: cover;
    background-position: center;
    background-color: var(--surface-2);
    position: relative;
}
.cat-card__img-fallback {
    aspect-ratio: 1;
    background:
        radial-gradient(120% 120% at 0% 0%, rgba(255,255,255,0.18), transparent 60%),
        linear-gradient(135deg, var(--primary), var(--primary-600));
    color: var(--on-primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 56px;
}
.cat-card__body {
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.cat-card__name {
    font-family: var(--display);
    font-weight: 700;
    font-size: 16px;
    color: var(--ink-1);
    margin: 0;
    flex: 1;
}
.cat-card__emoji { font-size: 18px; opacity: 0.85; }

/* Category chip — used on /clubs filter row */
.cat-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    padding: 4px 14px 4px 4px;
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-2);
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s;
}
.cat-chip:hover { border-color: var(--primary); color: var(--ink-1); }
.cat-chip__img {
    width: 28px; height: 28px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-color: var(--surface-2);
    flex-shrink: 0;
}
.cat-chip__fallback {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--primary-50);
    color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

/* ================================================================
 * Groups (clubs) — cover-first cards & hero
 * ================================================================ */

.club-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-3);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
    box-shadow: var(--shadow-1);
    display: flex;
    flex-direction: column;
}
.club-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: var(--shadow-3);
    color: inherit;
}
.club-card__cover {
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    background-color: var(--surface-2);
    position: relative;
}
.club-card__cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.50) 100%);
}
.club-card__cover-fallback {
    aspect-ratio: 16 / 9;
    background:
        radial-gradient(120% 120% at 0% 0%, rgba(255,255,255,0.18), transparent 60%),
        linear-gradient(135deg, var(--primary), var(--primary-600));
    display: flex; align-items: center; justify-content: center;
    color: var(--on-primary);
    font-size: 64px;
}
.club-card__cat-chip {
    position: absolute;
    top: 12px; left: 12px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--r-pill);
    padding: 4px 10px;
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 600;
    z-index: 1;
}
.club-card__body { padding: 18px 20px; flex: 1; display: flex; flex-direction: column; gap: 8px; }

.group-hero {
    position: relative;
    aspect-ratio: 42 / 9;       /* slim — half the height of the old 21:9 */
    border-radius: var(--r-3);
    background-size: cover;
    background-position: center;
    background-color: var(--surface-2);
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: var(--shadow-2);
}
@media (max-width: 600px) {
    .group-hero { aspect-ratio: 21 / 9; }   /* keep some height on tiny screens so the photo isn't a thin strip */
}
.group-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.65) 100%);
}
.group-hero__cat {
    position: absolute;
    top: 16px; left: 16px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--r-pill);
    padding: 5px 12px;
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 600;
    z-index: 1;
}

/* ================================================================
 * Admin row image thumb (categories list)
 * ================================================================ */

.thumb-32 {
    display: inline-block;
    width: 32px; height: 32px;
    border-radius: var(--r-2);
    background-size: cover;
    background-position: center;
    background-color: var(--surface-2);
    border: 1px solid var(--line);
    vertical-align: middle;
}
.thumb-48 {
    display: inline-block;
    width: 48px; height: 48px;
    border-radius: var(--r-2);
    background-size: cover;
    background-position: center;
    background-color: var(--surface-2);
    border: 1px solid var(--line);
}

/* Profile avatar editor */
.avatar-edit {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}
.avatar-edit__preview,
.avatar-edit__preview-fb {
    width: 88px; height: 88px;
    border-radius: 50%;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    background-color: var(--surface-2);
    border: 2px solid var(--line);
}
.avatar-edit__preview-fb {
    background: var(--primary-50);
    color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--display);
    font-weight: 700;
    font-size: 30px;
    border-color: rgba(var(--primary-rgb), 0.30);
}
.avatar-edit__controls { flex: 1; }
.avatar-edit__hint {
    font-family: var(--sans);
    font-size: 12px;
    color: var(--ink-3);
    margin: 6px 0 0;
}

/* Compact avatar pill in the nav (when logged in) */
.nav-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-color: var(--surface-2);
    border: 1px solid var(--line);
    display: inline-block;
    flex-shrink: 0;
    transition: border-color 0.15s, transform 0.15s;
}
.nav-avatar:hover { border-color: var(--primary); transform: translateY(-1px); }
.nav-avatar-fb {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--primary-50);
    color: var(--primary);
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--display);
    font-weight: 700;
    font-size: 13px;
    border: 1px solid rgba(var(--primary-rgb), 0.25);
    flex-shrink: 0;
    text-decoration: none;
    transition: border-color 0.15s, transform 0.15s;
}
.nav-avatar-fb:hover { border-color: var(--primary); transform: translateY(-1px); color: var(--primary); }

/* ================================================================
 * Chat — per-club thread bubbles
 * ================================================================ */

.chat-shell {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-3);
    box-shadow: var(--shadow-1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.chat-head {
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.chat-head h3 {
    font-family: var(--display);
    font-weight: 700;
    font-size: 16px;
    color: var(--ink-1);
    margin: 0;
}
.chat-head__live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.10em;
}
.chat-head__live::before {
    content: "";
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.55);
    animation: hero-pulse 2s ease infinite;
}
.chat-list {
    padding: 18px 16px;
    max-height: 480px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.chat-list__empty {
    text-align: center;
    color: var(--ink-3);
    padding: 48px 20px;
    font-size: 14px;
}
.chat-msg {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    position: relative;
}
.chat-msg__avatar,
.chat-msg__avatar-fallback {
    width: 36px; height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    background-color: var(--surface-2);
}
.chat-msg__avatar-fallback {
    background: var(--primary-50);
    color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--display);
    font-weight: 700;
    font-size: 14px;
}
.chat-msg__bubble { flex: 1; min-width: 0; }
.chat-msg__head {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
}
.chat-msg__name {
    font-family: var(--sans);
    font-weight: 600;
    font-size: 13px;
    color: var(--ink-1);
}
.chat-msg__handle {
    font-family: var(--sans);
    font-size: 12px;
    color: var(--ink-4);
}
.chat-msg__time {
    font-family: var(--sans);
    font-size: 11px;
    color: var(--ink-4);
    margin-left: auto;
}
.chat-msg__body {
    font-family: var(--sans);
    font-size: 14px;
    line-height: 1.5;
    color: var(--ink-1);
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}
.chat-msg--deleted .chat-msg__body {
    color: var(--ink-4);
    font-style: italic;
}
.chat-msg__delete {
    background: none;
    border: 0;
    color: var(--ink-4);
    cursor: pointer;
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.15s, color 0.15s;
    padding: 0;
    margin-left: 6px;
}
.chat-msg:hover .chat-msg__delete { opacity: 1; }
.chat-msg__delete:hover { color: var(--danger); }

.chat-form {
    padding: 14px 16px;
    border-top: 1px solid var(--line);
    display: flex;
    gap: 10px;
    align-items: flex-end;
    flex-wrap: wrap;
}
.chat-form textarea {
    flex: 1 1 100%;
    min-width: 0;
    min-height: 44px;
    max-height: 140px;
    resize: none;
    padding: 11px 14px;
    font-size: 14px;
    line-height: 1.4;
    border-radius: var(--r-2);
}
.chat-form button { white-space: nowrap; flex-shrink: 0; margin-left: auto; }
.chat-form__count {
    font-family: var(--sans);
    font-size: 11px;
    color: var(--ink-4);
    align-self: center;
    min-width: 60px;
    text-align: right;
}
.chat-form__count.is-near { color: var(--warning); }
.chat-form__count.is-over { color: var(--danger); }

.chat-gate {
    padding: 56px 24px;
    text-align: center;
    color: var(--ink-3);
    font-size: 14px;
}
.chat-gate p { margin: 0 0 14px; }

/* ================================================================
 * Homepage richer sections
 * ================================================================ */

/* Why-Flanor — feature highlights with icon + title + description */
.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
@media (max-width: 900px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .why-grid { grid-template-columns: 1fr; } }
.why-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-3);
    padding: 28px 22px;
    transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
    box-shadow: var(--shadow-1);
}
.why-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: var(--shadow-3);
}
.why-card__icon {
    width: 48px; height: 48px;
    border-radius: var(--r-2);
    background: var(--primary-50);
    color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    margin-bottom: 16px;
}
.why-card--accent .why-card__icon {
    background: var(--accent-50);
    color: var(--accent);
}
.why-card h3 {
    font-size: 18px;
    margin: 0 0 8px;
    color: var(--ink-1);
    font-family: var(--display);
    font-weight: 700;
}
.why-card p { color: var(--ink-2); margin: 0; font-size: 14px; line-height: 1.55; }

/* Testimonials — quote cards with avatar */
.testimonial-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-3);
    padding: 28px;
    box-shadow: var(--shadow-1);
    display: flex;
    flex-direction: column;
}
.testimonial-card__quote {
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink-1);
    margin: 0 0 24px;
    flex: 1;
}
.testimonial-card__quote::before {
    content: "“";
    font-family: var(--display);
    font-size: 48px;
    line-height: 0.6;
    color: var(--primary);
    display: block;
    margin-bottom: 8px;
}
.testimonial-card__author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}
.testimonial-card__avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-color: var(--surface-2);
    flex-shrink: 0;
}
.testimonial-card__avatar-fallback {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--primary-50);
    color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--display);
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}
.testimonial-card__name {
    font-family: var(--sans);
    font-weight: 600;
    color: var(--ink-1);
    font-size: 14px;
}
.testimonial-card__meta {
    font-family: var(--sans);
    font-size: 12px;
    color: var(--ink-3);
}

/* Community moments — masonry-style 6-photo grid */
.moments-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 1fr;
    gap: 12px;
}
@media (max-width: 900px) { .moments-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 540px) { .moments-grid { grid-template-columns: repeat(2, 1fr); } }
.moments-grid > div {
    aspect-ratio: 1;
    background-size: cover;
    background-position: center;
    border-radius: var(--r-2);
    background-color: var(--surface-2);
    transition: transform 0.2s;
}
.moments-grid > div:nth-child(1),
.moments-grid > div:nth-child(4) { grid-column: span 2; grid-row: span 2; aspect-ratio: 1; }
@media (max-width: 900px) {
    .moments-grid > div:nth-child(1),
    .moments-grid > div:nth-child(4) { grid-column: span 1; grid-row: span 1; }
}
.moments-grid > div:hover { transform: scale(1.02); }

/* FAQ — disclosure list */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-3);
    margin-bottom: 12px;
    overflow: hidden;
}
.faq-item summary {
    padding: 18px 22px;
    cursor: pointer;
    list-style: none;
    font-family: var(--sans);
    font-weight: 600;
    color: var(--ink-1);
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    transition: color 0.15s;
}
.faq-item summary:hover { color: var(--primary); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "＋";
    color: var(--primary);
    font-size: 22px;
    font-weight: 400;
    transition: transform 0.2s;
    flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
    padding: 0 22px 20px;
    margin: 0;
    color: var(--ink-2);
    font-size: 15px;
    line-height: 1.6;
}

/* Big CTA banner — full-width image background with overlay */
.big-cta {
    position: relative;
    border-radius: var(--r-3);
    overflow: hidden;
    background-size: cover;
    background-position: center;
    padding: 80px 32px;
    text-align: center;
    color: #fff;
    box-shadow: var(--shadow-3);
}
.big-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(0,0,0,0.55), rgba(0,0,0,0.65)),
        radial-gradient(60% 80% at 50% 100%, rgba(var(--primary-rgb), 0.40), transparent 70%);
}
.big-cta > * { position: relative; z-index: 1; }
.big-cta h2 {
    color: #fff;
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(32px, 5vw, 56px);
    letter-spacing: -0.03em;
    margin: 0 0 14px;
}
.big-cta p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 18px;
    max-width: 520px;
    margin: 0 auto 28px;
    line-height: 1.55;
}
.big-cta .btn {
    background: #fff;
    color: #0F172A;
    border-color: #fff;
}
.big-cta .btn:hover {
    background: var(--primary);
    color: var(--on-primary);
    border-color: var(--primary);
}
