/* ===== Jacque's World — Dark Theme ===== */

:root {
    /* Backgrounds */
    --bg-void: #06090f;
    --bg-base: #0d1117;
    --bg-card: #161b22;
    --bg-elevated: #1c2333;

    /* Text */
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --text-muted: #484f58;

    /* Neon accents */
    --neon-blue: #58a6ff;
    --neon-cyan: #39d2c0;
    --neon-amber: #f0883e;
    --neon-pink: #f778ba;
    --neon-purple: #bc8cff;

    /* Borders */
    --border-subtle: #21262d;
    --border-default: #30363d;

    /* Shadows */
    --shadow-card: 0 1px 4px rgba(0, 0, 0, 0.4), 0 0 1px rgba(0, 0, 0, 0.3);
    --shadow-elevated: 0 4px 16px rgba(0, 0, 0, 0.6), 0 0 2px rgba(0, 0, 0, 0.4);

    /* Glow */
    --glow-blue: 0 0 8px rgba(88, 166, 255, 0.4);
    --glow-amber: 0 0 8px rgba(240, 136, 62, 0.4);
    --glow-pink: 0 0 8px rgba(247, 120, 186, 0.4);
    --glow-purple: 0 0 8px rgba(188, 140, 255, 0.4);

    /* Brand — sunset tones */
    --brand-sunset: #e8637a;
    --brand-amber: #f0883e;
    --brand-purple: #b47ade;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-base);
}

a { color: var(--neon-blue); }

/* Nav */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: var(--bg-void);
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-subtle);
}
.nav-brand {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    transition: color 0.15s ease;
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
}
.nav-brand:hover { color: var(--neon-blue); }
.brand-name {
    color: var(--brand-sunset);
    font-weight: 800;
    font-size: 1.25rem;
}
.brand-sub {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
}
.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 1.5rem;
    transition: color 0.15s ease, text-shadow 0.15s ease;
}
.nav-links a:hover {
    color: var(--neon-blue);
    text-shadow: 0 0 6px rgba(88, 166, 255, 0.3);
}
.btn-nav {
    padding: 0.4rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--bg-void) !important;
}

/* Mixes remaining indicator */
.mixes-remaining {
    display: inline-block;
    margin-left: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.tier-info--free {
    color: var(--neon-cyan);
}

/* Container */
.container { max-width: 960px; margin: 2rem auto; padding: 0 1rem; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary {
    background: var(--neon-blue);
    color: var(--bg-void);
}
.btn-primary:hover {
    background: #79b8ff;
    box-shadow: var(--glow-blue);
}
.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-default);
}
.btn-secondary:hover {
    background: var(--border-default);
}

/* ===== Landing Page ===== */

body.landing-page {
    background: #0a0a0e;
}
body.landing-page .container {
    max-width: 100%;
    padding: 0;
}

/* Hero — side-by-side layout */
.lp-hero {
    display: flex;
    align-items: center;
    min-height: calc(100vh - 60px);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}
.lp-hero-text {
    flex: 1;
    z-index: 1;
}
.lp-hero-image {
    flex: 0 0 45%;
    max-width: 500px;
    position: relative;
}
.lp-hero-image img {
    width: 100%;
    height: auto;
    display: block;
    mask-image: linear-gradient(to left, transparent 0%, black 15%, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to left, transparent 0%, black 15%, black 85%, transparent 100%);
    filter: drop-shadow(0 0 40px rgba(232, 99, 122, 0.15));
}

/* Text styles */
.lp-presents {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #7a7a80;
    margin-bottom: 0.5rem;
}
.lp-title {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #eaeaea;
    line-height: 1.1;
    margin: 0;
}
.lp-tagline {
    font-size: 1.15rem;
    font-weight: 600;
    color: #eaeaea;
    margin-top: 2rem;
    line-height: 1.6;
}
.lp-prose {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #b0b5bc;
    margin-top: 1rem;
}
/* Pink punch lines */
.lp-statement {
    font-size: 1.35rem;
    line-height: 1.75;
    color: var(--brand-sunset);
    font-weight: 600;
    margin-top: 0;
}
.lp-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
}
.lp-actions--center {
    justify-content: center;
}

/* Below fold — pitch + pricing */
.lp-pitch {
    max-width: 640px;
    margin: 0 auto;
    padding: 3rem 2rem 2rem;
    text-align: center;
}
.lp-pricing-section {
    max-width: 640px;
    margin: 0 auto;
    padding: 1rem 2rem 3rem;
    text-align: center;
}

/* Pricing chips */
.lp-pricing-row {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 2.5rem;
}
.lp-price-chip {
    border: 1px solid var(--border-default);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
    transition: border-color 0.15s ease;
}
.lp-price-chip:hover {
    border-color: var(--brand-sunset);
}
.lp-chip-name {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
}
.lp-chip-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #eaeaea;
    margin: 0.25rem 0;
}
.lp-chip-duration {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Hero hook — the heavy hitter right below the tagline */
.lp-hook {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--brand-sunset);
    margin-top: 1.5rem;
    text-shadow: 0 0 24px rgba(232, 99, 122, 0.3);
}

/* Demo section */
.lp-demo {
    max-width: 640px;
    margin: 0 auto;
    padding: 3rem 2rem;
    text-align: center;
}
.lp-demo-title {
    font-size: 1.35rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
}
.lp-demo-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    text-align: center;
}
.lp-demo .demo-form {
    text-align: left;
}
.lp-demo .demo-form label {
    color: #b0b5bc;
}

/* Direction boxes (replace pills on landing) */
.demo-direction-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin: 1.25rem 0;
}
.demo-direction-box {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 1rem 0.75rem;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.demo-direction-box:hover {
    border-color: var(--border-default);
    background: var(--bg-elevated);
}
.demo-direction-box.active {
    border-color: var(--brand-sunset);
    background: rgba(232, 99, 122, 0.06);
}
.demo-direction-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}
.demo-direction-desc {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
}
.demo-direction-box.active .demo-direction-label {
    color: var(--brand-sunset);
}

/* Generate button on landing */
.btn-landing--generate {
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.7rem 1.4rem;
    font-size: 1rem;
}

/* CTA inside demo */
.lp-demo .lp-actions {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
}

/* Primary CTA — sunset pink border */
.btn-landing {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    background: transparent;
    color: #eaeaea;
    border: 1px solid var(--brand-sunset);
    border-radius: 2px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-landing:hover {
    background: rgba(232, 99, 122, 0.08);
    box-shadow: 0 0 16px rgba(232, 99, 122, 0.12);
    color: #eaeaea;
}
.btn-landing--secondary {
    color: #7a7a80;
    border-color: #3a3a40;
}
.btn-landing--secondary:hover {
    color: #eaeaea;
    border-color: #7a7a80;
    background: transparent;
    box-shadow: none;
}


/* Features (legacy, keep for other pages) */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; margin-top: 3rem; }
.feature {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-card);
    transition: border-color 0.2s ease;
}
.feature:hover { border-color: var(--border-default); }
.feature h3 { margin-bottom: 0.5rem; color: var(--neon-blue); }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin-top: 2rem; }
.pricing-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-card);
}
.pricing-card.featured { border: 2px solid var(--neon-blue); }
.pricing-subtitle { color: var(--text-secondary); margin-bottom: 0.5rem; }
.pricing-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--neon-blue);
    background: rgba(88, 166, 255, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
    margin-bottom: 0.5rem;
}
.price { font-size: 2rem; font-weight: 700; margin: 1rem 0; color: var(--text-primary); }
.price span { font-size: 1rem; font-weight: 400; color: var(--text-muted); }
.pricing-card ul { list-style: none; margin: 1rem 0; }
.pricing-card li { padding: 0.4rem 0; border-bottom: 1px solid var(--border-subtle); color: var(--text-secondary); }

/* Forms */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.3rem; font-size: 0.85rem; color: var(--text-secondary); }
.form-group input, .form-group select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border-default);
    border-radius: 4px;
    font-size: 0.95rem;
    background: var(--bg-base);
    color: var(--text-primary);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--neon-blue);
    box-shadow: 0 0 0 2px rgba(88, 166, 255, 0.2);
}
.create-session-form { display: flex; gap: 0.5rem; margin-bottom: 2rem; }
.create-session-form input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid var(--border-default);
    border-radius: 4px;
    background: var(--bg-base);
    color: var(--text-primary);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.create-session-form input:focus {
    outline: none;
    border-color: var(--neon-blue);
    box-shadow: 0 0 0 2px rgba(88, 166, 255, 0.2);
}

/* Session list */
.session-list { list-style: none; }
.session-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
}
.session-list a { text-decoration: none; color: var(--neon-blue); font-weight: 600; }
.meta { color: var(--text-muted); font-size: 0.85rem; }

/* Session state */
.session-state {
    background: var(--bg-card);
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-subtle);
}
.badge { display: inline-block; background: #da3633; color: #fff; padding: 0.2rem 0.6rem; border-radius: 4px; font-size: 0.8rem; }
.notice { color: var(--text-muted); font-style: italic; }

/* Generate section */
.generate-section {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-card);
    overflow: visible;
}

/* Preset pills */
.preset-pills {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}
.preset-pill {
    padding: 0.4rem 1rem;
    border: 1px solid var(--border-default);
    border-radius: 20px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.preset-pill:hover {
    border-color: var(--text-muted);
    color: var(--text-primary);
}
.preset-pill.active {
    border-color: var(--neon-blue);
    color: var(--neon-blue);
    background: rgba(88, 166, 255, 0.08);
}

/* Chip labels */
.chips-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 1rem;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.chips-hint {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* Context chips — cyan accent */
.context-chips {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.context-chip {
    padding: 0.4rem 1rem;
    border: 1px solid var(--border-default);
    border-radius: 20px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.context-chip:hover {
    border-color: var(--text-muted);
    color: var(--text-primary);
}
.context-chip.active {
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    background: rgba(57, 210, 192, 0.08);
}

/* Mini route cards */
.mini-routes {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.mini-route-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    transition: border-color 0.15s ease;
}
.mini-route-card:hover {
    border-color: var(--border-default);
}
.mini-route-tracks {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 600;
}
.mini-route-arrow {
    color: var(--text-muted);
    font-size: 0.85rem;
    flex-shrink: 0;
}
.mini-route-from,
.mini-route-to {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}
.mini-route-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Session last track on dashboard */
.session-last-track {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

/* Pricing tier descriptions */
.pricing-tier-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-style: italic;
}

/* Tables */
table { width: 100%; border-collapse: collapse; margin-top: 0.5rem; }
th, td { padding: 0.5rem; text-align: left; border-bottom: 1px solid var(--border-subtle); font-size: 0.9rem; }
th { font-weight: 600; color: var(--text-secondary); }
code { background: var(--bg-elevated); color: var(--neon-cyan); padding: 0.1rem 0.3rem; border-radius: 3px; font-size: 0.85rem; }

/* HTMX indicator */
.htmx-indicator { display: none; color: var(--neon-amber); font-style: italic; margin-left: 0.5rem; }
.htmx-request .htmx-indicator, .htmx-request.htmx-indicator { display: inline; }

/* Messages */
.messages { margin-bottom: 1rem; }
.message { padding: 0.8rem; border-radius: 4px; margin-bottom: 0.5rem; }
.message.success { background: rgba(57, 210, 192, 0.12); color: var(--neon-cyan); border: 1px solid rgba(57, 210, 192, 0.25); }
.message.error { background: rgba(218, 54, 51, 0.12); color: #f85149; border: 1px solid rgba(218, 54, 51, 0.25); }

/* Auth */
.auth-card {
    max-width: 420px;
    margin: 3rem auto;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-elevated);
    text-align: center;
}
.auth-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}
.auth-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.75rem;
}

/* Auth form fields */
.auth-form { text-align: left; }
.auth-field {
    margin-bottom: 1rem;
}
.auth-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
}
.auth-field input {
    width: 100%;
    padding: 0.6rem 0.75rem;
    background: var(--bg-base);
    color: var(--text-primary);
    border: 1px solid var(--border-default);
    border-radius: 6px;
    font-size: 0.95rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.auth-field input:focus {
    outline: none;
    border-color: var(--neon-blue);
    box-shadow: 0 0 0 2px rgba(88, 166, 255, 0.2);
}

/* Checkbox field */
.auth-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-direction: row;
}
.auth-checkbox input[type="checkbox"] {
    width: auto;
    padding: 0;
    accent-color: var(--neon-blue);
}
.auth-checkbox label {
    margin-bottom: 0;
    font-weight: 400;
    cursor: pointer;
}

/* Full-width button */
.btn-block {
    width: 100%;
    margin-top: 0.5rem;
}

/* Error messages */
.auth-error {
    background: rgba(218, 54, 51, 0.12);
    border: 1px solid rgba(218, 54, 51, 0.25);
    color: #f85149;
    border-radius: 6px;
    padding: 0.6rem 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    text-align: left;
}
.auth-error p { margin: 0.2rem 0; }

/* Footer link */
.auth-footer {
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.auth-footer a { color: var(--neon-blue); }

/* Misc */
.empty { color: var(--text-muted); font-style: italic; }
.error { color: #f85149; }
.tier-info { margin-top: 2rem; color: var(--text-secondary); font-size: 0.9rem; }
.tier-info a { color: var(--neon-blue); }
h1 { margin-bottom: 1rem; color: var(--text-primary); }
h2 { margin: 1.5rem 0 0.5rem; color: var(--text-primary); }

/* Session header */
.session-header {
    margin-bottom: 1.25rem;
}
.session-header-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}
.session-name {
    color: var(--brand-sunset);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0;
    text-shadow: 0 0 20px rgba(232, 99, 122, 0.25);
}

/* Spinner text pulse */
.spinner-text {
    animation: spinner-pulse 1.5s ease-in-out infinite;
}
@keyframes spinner-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
@media (prefers-reduced-motion: reduce) {
    .spinner-text { animation: none; }
}

/* Route quip */
.route-quip {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.85rem;
    font-weight: 400;
}

/* Sections */
.paths-section { margin-top: 1.5rem; }

/* Track search */
.track-search { position: relative; }
.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: var(--shadow-elevated);
}
.search-results-dropdown:empty { display: none; }
.search-result {
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-primary);
    transition: background 0.15s ease;
}
.search-result:hover { background: var(--bg-card); }
.search-result:last-child { border-bottom: none; }
.selected-track {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.85rem;
    color: var(--neon-blue);
    font-weight: 600;
}
.track-id-small {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-left: 0.3rem;
}

/* Analytics */
.analytics-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.analytics-header h1 { margin-bottom: 0; }
.analytics-section { margin-bottom: 2rem; }
.analytics-section h2 { color: var(--neon-blue); margin-bottom: 0.75rem; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.stat-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-card);
    text-align: center;
    transition: border-color 0.2s ease;
}
.stat-card:hover { border-color: var(--border-default); }
.stat-value { font-size: 1.8rem; font-weight: 700; color: var(--text-primary); }
.stat-label { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.25rem; }


/* ===== Jacque's Route — Transit Map ===== */

.jacque-route {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 1.5rem 1.5rem 1.5rem 1.75rem;
    margin: 1rem 0;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}
/* comic-panel accent stripe */
.jacque-route::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--rail-color, var(--neon-blue)) 0%, transparent 100%);
    opacity: 0.5;
}

/* Rail color classes */
.jacque-route.rail-warm   { --rail-color: var(--neon-amber); }
.jacque-route.rail-cool-purple { --rail-color: var(--neon-purple); }
.jacque-route.rail-cool-blue   { --rail-color: var(--neon-blue); }
.jacque-route.rail-steady  { --rail-color: #cdd9e5; }
.jacque-route.rail-default { --rail-color: var(--neon-blue); }

/* Route header */
.route-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.route-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}
.route-stats {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: "SF Mono", "Fira Code", "Cascadia Code", monospace;
}

/* Station list */
.route-map {
    list-style: none;
    padding: 0;
    margin: 0;
}

.station {
    display: flex;
    align-items: flex-start;
    position: relative;
    padding-left: 36px;
    min-height: 48px;
}

/* Rail — drip trail (fades like rain running down) */
.station::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 20px;
    bottom: -8px;
    width: 3px;
    background: linear-gradient(180deg,
        var(--rail-color, var(--neon-blue)) 0%,
        var(--rail-color, var(--neon-blue)) 30%,
        transparent 100%);
    border-radius: 0 0 3px 3px;
    opacity: 0.45;
}
.station:last-child::before { display: none; }

/* Drip — animated droplet falling between stations */
.station:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 13px;
    top: 22px;
    width: 5px;
    height: 7px;
    background: var(--rail-color, var(--neon-blue));
    border-radius: 50% 50% 50% 50% / 30% 30% 65% 65%;
    box-shadow: 0 0 4px var(--rail-color, var(--neon-blue));
    opacity: 0;
    animation: drip-fall 2.4s ease-in infinite;
}
.station:nth-child(3n+2):not(:last-child)::after { animation-delay: 0.8s; }
.station:nth-child(3n):not(:last-child)::after { animation-delay: 1.6s; }

@keyframes drip-fall {
    0%, 8% { transform: translateY(0); opacity: 0; }
    12% { opacity: 0.7; }
    75% { opacity: 0.4; }
    100% { transform: translateY(30px); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .station:not(:last-child)::after { animation: none; }
}

/* Station dot */
.station-dot {
    position: absolute;
    left: 5px;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2.5px solid var(--rail-color, var(--neon-blue));
    z-index: 1;
    flex-shrink: 0;
}

/* Origin station — filled + glow */
.station--origin .station-dot {
    width: 20px;
    height: 20px;
    left: 2px;
    top: 2px;
    background: var(--rail-color, var(--neon-blue));
    border: 2.5px solid var(--rail-color, var(--neon-blue));
    box-shadow: 0 0 8px var(--rail-color, var(--neon-blue)), 0 0 16px var(--rail-color, var(--neon-blue));
}
.station--origin::before {
    left: 11px;
    top: 24px;
}
.station--origin::after {
    left: 10px;
    top: 26px;
}

/* Destination station — diamond */
.station--destination .station-dot {
    width: 16px;
    height: 16px;
    left: 4px;
    top: 3px;
    border-radius: 2px;
    transform: rotate(45deg);
    background: var(--rail-color, var(--neon-blue));
    border: 2px solid var(--rail-color, var(--neon-blue));
    box-shadow: 0 0 8px var(--rail-color, var(--neon-blue)), 0 0 16px var(--rail-color, var(--neon-blue));
}

/* Station label */
.station-label {
    padding: 4px 0 12px;
    transition: transform 0.15s ease;
}
.station:hover .station-label {
    transform: translateX(4px);
}
.station-artist {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text-primary);
}
.station-track {
    font-size: 0.85rem;
    color: var(--text-secondary);
}
/* Spotify link on each track */
.station-link {
    text-decoration: none;
    color: inherit;
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    transition: color 0.15s ease;
}
.station-link:hover {
    color: #1DB954;
}
.station-link:hover .station-artist,
.station-link:hover .station-track {
    color: #1DB954;
}
.station-spotify-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: var(--text-muted);
    align-self: center;
    transition: color 0.15s ease;
}
.station-link:hover .station-spotify-icon {
    color: #1DB954;
}
.station-tag {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: var(--rail-color, var(--neon-blue));
    margin-bottom: 2px;
}

/* Route footer */
.route-footer {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.72rem;
    color: var(--text-muted);
    font-family: "SF Mono", "Fira Code", "Cascadia Code", monospace;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.route-footer-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

/* Spotify button */
.btn-spotify {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.2rem;
    background: #1DB954;
    color: #fff;
    border: none;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, box-shadow 0.15s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.btn-spotify:hover {
    background: #1ed760;
    box-shadow: 0 0 12px rgba(29, 185, 84, 0.4);
    color: #fff;
}
.btn-spotify-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Apple Music button */
.btn-apple-music {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.2rem;
    background: linear-gradient(135deg, #fc3c44, #d63384);
    color: #fff;
    border: none;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.btn-apple-music:hover {
    background: linear-gradient(135deg, #ff4f58, #e0408f);
    box-shadow: 0 0 12px rgba(252, 60, 68, 0.4);
    color: #fff;
}
.btn-apple-music:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
.btn-apple-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Publish result */
.publish-container {
    margin-top: 0.75rem;
}
.publish-result {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.6;
}
.publish-result--success {
    background: rgba(57, 210, 192, 0.08);
    border: 1px solid rgba(57, 210, 192, 0.2);
    color: var(--neon-cyan);
}
.publish-result--error {
    background: rgba(218, 54, 51, 0.08);
    border: 1px solid rgba(218, 54, 51, 0.2);
    color: #f85149;
}
.publish-result p {
    margin: 0.25rem 0;
}
.publish-playlist-name {
    color: var(--text-primary);
}
.publish-playlist-name strong {
    color: var(--neon-cyan);
}
.publish-hint {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 0.5rem;
}
.publish-reason {
    color: var(--text-muted);
    font-size: 0.8rem;
}
.publish-result details {
    margin-top: 0.75rem;
}
.publish-result summary {
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: color 0.15s ease;
}
.publish-result summary:hover {
    color: var(--text-primary);
}
.publish-result ul {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
}
.publish-result li {
    padding: 0.25rem 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-subtle);
}
.publish-result li:last-child {
    border-bottom: none;
}

/* Explain container */
.explain-container {
    margin-top: 0.5rem;
}


/* ===== Responsive ===== */

@media (max-width: 600px) {
    .navbar {
        padding: 0.75rem 1rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .nav-links a {
        margin-left: 0.75rem;
        font-size: 0.9rem;
    }

    .container {
        padding: 0 0.75rem;
        margin: 1rem auto;
    }

    /* Landing page mobile */
    .lp-hero {
        flex-direction: column;
        min-height: auto;
        padding: 2rem 1.5rem 3rem;
        position: relative;
    }
    .lp-hero-image {
        position: absolute;
        right: 0;
        top: 0;
        max-width: 280px;
        opacity: 0.2;
        pointer-events: none;
    }
    .lp-hero-text {
        position: relative;
        z-index: 1;
    }
    .lp-title { font-size: 2.2rem; }
    .lp-actions { flex-direction: column; align-items: stretch; text-align: center; }
    .btn-landing { text-align: center; }
    .lp-pitch { padding: 2rem 1.5rem 1.5rem; }
    .lp-pricing-section { padding: 0.5rem 1.5rem 2rem; }
    .lp-pricing-row { flex-direction: column; align-items: center; }
    .lp-price-chip { width: 100%; max-width: 200px; }
    .lp-demo { padding: 2rem 1.5rem; }
    .demo-direction-row { grid-template-columns: 1fr; }

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

    .create-session-form {
        flex-direction: column;
    }
    .create-session-form input { width: 100%; }

    /* Transit map mobile */
    .jacque-route {
        padding: 1rem 1rem 1rem 1.25rem;
    }
    .route-header h3 { font-size: 1rem; }
    .route-stats { font-size: 0.72rem; }
    .station { padding-left: 30px; min-height: 42px; }
    .station-dot { width: 12px; height: 12px; left: 5px; }
    .station--origin .station-dot { width: 16px; height: 16px; left: 3px; }
    .station--destination .station-dot { width: 14px; height: 14px; left: 4px; }
    .station:not(:last-child)::after { left: 11px; }
    .station--origin::after { left: 8px; }
    .station-artist { font-size: 0.85rem; }
    .station-track { font-size: 0.8rem; }


    /* Route footer actions stack on mobile */
    .route-footer-actions {
        flex-direction: column;
        width: 100%;
    }
    .btn-apple-music,
    .btn-spotify {
        justify-content: center;
        width: 100%;
    }

    /* Pricing + features */
    .pricing-grid, .features { grid-template-columns: 1fr; }
    .stat-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
}
