/* ───────────────────────────────────────────────────────────
   Somnora Premium — Design system
   Dark midnight-blue identity, glassmorphism, premium typography.
   Loaded once from every static page.
   ─────────────────────────────────────────────────────────── */

/* ─── Tokens ─── */
:root {
    --bg: #0B1023;
    --bg-deep: #111827;
    --surface: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-hover: rgba(255, 255, 255, 0.18);
    --text: #F5F4EF;
    --text-soft: #C9CCD6;
    --text-faint: #6B7390;
    --accent-blue: #4F7CFF;
    --accent-indigo: #6B5BFF;
    --accent-violet: #8E6BFF;
    --gold: #E6C77A;
    --halo: radial-gradient(circle at 50% 50%, rgba(79, 124, 255, 0.18) 0%, rgba(107, 91, 255, 0.10) 35%, rgba(11, 16, 35, 0) 70%);
    --som-font: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--som-font);
    background: var(--bg);
    color: var(--text);
    font-size: 17px;
    line-height: 1.7;
    font-weight: 400;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Section above-zerod ambient layers */
section, footer, nav, header, .stage { position: relative; z-index: 1; }

/* ─── Global ambient background layers (inserted by somnora-premium.js) ─── */
.somnora-ambient {
    position: fixed;
    inset: 0;
    z-index: -4;
    background: radial-gradient(ellipse at top, #15193A 0%, #0B1023 55%, #060818 100%);
    pointer-events: none;
}

.somnora-stars {
    position: fixed;
    inset: 0;
    z-index: -3;
    pointer-events: none;
    will-change: transform;
}

.somnora-stars > span {
    position: absolute;
    background: rgba(255, 255, 255, var(--star-alpha, 0.5));
    border-radius: 50%;
    width: var(--star-size, 1px);
    height: var(--star-size, 1px);
    top: var(--star-top, 50%);
    left: var(--star-left, 50%);
}

.somnora-halo {
    position: fixed;
    width: 60vmax;
    height: 60vmax;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--halo);
    filter: blur(40px);
    pointer-events: none;
    z-index: -2;
    animation: som-halo-pulse 4s ease-in-out infinite;
}

.halo-anchor { position: relative; }

.somnora-grain {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.04;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.85 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    background-size: 240px 240px;
}

/* ─── Typography ─── */
h1, h2, h3, h4 {
    font-weight: 300;
    letter-spacing: 0.005em;
    line-height: 1.15;
    color: var(--text);
}

h1 {
    font-weight: 300;
    font-size: clamp(2.8rem, 7.5vw, 6rem);
    letter-spacing: 0.01em;
    line-height: 1.1;
}

h2 {
    font-weight: 300;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.15;
    letter-spacing: 0.005em;
}

h3 {
    font-weight: 400;
    font-size: 1.15rem;
    letter-spacing: 0.01em;
}

p { color: var(--text-soft); }
p strong, strong { color: var(--text); font-weight: 500; }

/* ─── Buttons ─── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.10);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 50px;
    padding: 16px 36px;
    color: var(--text);
    font-family: inherit;
    font-size: 1.02rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.30);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out, border-color 0.3s ease-in-out, background 0.3s ease-in-out;
    -webkit-tap-highlight-color: transparent;
}

.btn-primary:hover {
    transform: scale(1.02);
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.32);
    box-shadow: 0 12px 48px rgba(79, 124, 255, 0.25), 0 8px 32px rgba(0, 0, 0, 0.30);
}

.btn-primary:active { transform: scale(0.99); }
.btn-primary svg { width: 18px; height: 18px; stroke: currentColor; }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-soft);
    background: transparent;
    border: none;
    text-decoration: none;
    padding: 12px 4px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: color 0.3s ease-in-out;
}

.btn-secondary .arrow {
    display: inline-block;
    transition: transform 0.3s ease-in-out;
}

.btn-secondary:hover { color: var(--text); }
.btn-secondary:hover .arrow { transform: translateX(6px); }

/* ─── Glass card ─── */
.glass {
    background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 28px 24px;
    transition: border-color 0.4s ease-in-out, box-shadow 0.4s ease-in-out, transform 0.4s ease-in-out;
}

.glass:hover {
    border-color: var(--glass-border-hover);
    box-shadow: 0 0 60px rgba(79, 124, 255, 0.10);
}

.glass-lg { padding: 48px 40px; }
@media (max-width: 600px) { .glass-lg { padding: 36px 24px; } }

/* ─── Section primitives ─── */
.section-label {
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent-blue);
    margin-bottom: 28px;
    font-weight: 500;
}

.section-title {
    margin-bottom: 48px;
    color: var(--text);
}

.section-body {
    font-size: 1.05rem;
    color: var(--text-soft);
    line-height: 1.85;
    font-weight: 400;
}

.section { padding: 140px 32px; max-width: 1080px; margin: 0 auto; }
.section-tight { padding: 100px 32px; max-width: 1080px; margin: 0 auto; }
.section-narrow { padding: 140px 32px; max-width: 760px; margin: 0 auto; }

@media (max-width: 768px) {
    .section, .section-tight, .section-narrow { padding: 90px 22px; }
}

/* ─── Hero ─── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 32px 100px;
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 80px;
    align-items: center;
    width: 100%;
}

@media (max-width: 900px) {
    .hero { padding: 120px 22px 80px; min-height: auto; }
    .hero-grid { grid-template-columns: 1fr; gap: 60px; }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--surface);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 8px 18px;
    font-size: 0.78rem;
    color: var(--text-soft);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 36px;
}

.hero-badge::before {
    content: '';
    width: 6px; height: 6px;
    background: var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--gold);
}

.hero h1 {
    margin-bottom: 32px;
}

.hero h1 .line { display: block; }
.hero h1 .accent {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-violet) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
    color: var(--text-soft);
    line-height: 1.85;
    max-width: 540px;
    margin-bottom: 40px;
    font-weight: 400;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    align-items: center;
}

@media (max-width: 540px) {
    .hero-ctas { flex-direction: column; align-items: stretch; }
    .hero-ctas .btn-primary { width: 100%; }
}

/* Right hero visual */
.hero-visual {
    position: relative;
    aspect-ratio: 1 / 1;
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
}

.hero-visual svg { width: 100%; height: 100%; display: block; }

.hero-visual .moon-shape {
    fill: url(#moon-grad);
    opacity: 0.85;
}

.hero-visual .sound-ring {
    fill: none;
    stroke: rgba(255, 255, 255, 0.45);
    stroke-width: 1;
    transform-origin: center;
    animation: som-ring-expand 4s ease-in-out infinite;
}

.hero-visual .sound-ring.r2 { animation-delay: 1s; opacity: 0.7; }
.hero-visual .sound-ring.r3 { animation-delay: 2s; opacity: 0.5; }
.hero-visual .breath {
    fill: none;
    stroke: rgba(255, 255, 255, 0.15);
    stroke-width: 1;
}

.hero-visual .breath-core {
    fill: url(#core-grad);
    animation: som-breath 4s ease-in-out infinite;
}

@keyframes som-breath {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.06); opacity: 1; }
}

@keyframes som-ring-expand {
    0% { transform: scale(0.6); opacity: 0; }
    35% { opacity: 0.6; }
    100% { transform: scale(1.2); opacity: 0; }
}

/* ─── Benefits grid ─── */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 60px;
}

@media (max-width: 800px) { .benefits-grid { grid-template-columns: 1fr; } }

.benefit-card .glass-glyph {
    width: 36px; height: 36px;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-blue);
}

.benefit-card .glass-glyph svg { width: 100%; height: 100%; stroke: currentColor; }

.benefit-card h3 {
    margin-bottom: 12px;
    color: var(--text);
    font-weight: 400;
    font-size: 1.18rem;
}

.benefit-card p {
    font-size: 0.98rem;
    line-height: 1.7;
    color: var(--text-soft);
}

/* ─── Timeline (7-day program) ─── */
.timeline {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 14px;
    margin-top: 24px;
}

@media (max-width: 900px) { .timeline { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .timeline { grid-template-columns: 1fr; } }

.timeline-step { padding: 26px 20px; }
.timeline-step .step-num {
    font-size: 0.74rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-blue);
    margin-bottom: 14px;
    font-weight: 500;
}
.timeline-step h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
    font-weight: 500;
}
.timeline-step .step-glyph {
    width: 28px; height: 28px;
    margin-bottom: 14px;
    color: var(--accent-blue);
    opacity: 0.9;
}
.timeline-step .step-glyph svg { width: 100%; height: 100%; stroke: currentColor; fill: none; }
.timeline-step p {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text-soft);
}

/* ─── Sessions grid ─── */
.sessions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.session-card { padding: 32px 26px; }
.session-card .day-num {
    font-size: 0.74rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-indigo);
    margin-bottom: 14px;
    font-weight: 500;
}
.session-card h3 {
    font-size: 1.12rem;
    margin-bottom: 12px;
    font-weight: 500;
}
.session-card .duration {
    font-size: 0.82rem;
    color: var(--text-faint);
    letter-spacing: 0.06em;
    margin-top: 16px;
}

/* ─── Sounds section ─── */
.sounds {
    position: relative;
    padding: 160px 32px;
    max-width: 1080px;
    margin: 0 auto;
    text-align: center;
}

.sounds-anim {
    margin: 60px auto;
    max-width: 720px;
    height: 160px;
    position: relative;
}

.sounds-anim svg { width: 100%; height: 100%; }

.sound-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 50px;
}

.sound-tag {
    background: var(--surface);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 12px 26px;
    font-size: 0.95rem;
    color: var(--text-soft);
    letter-spacing: 0.04em;
    transition: border-color 0.4s ease-in-out, color 0.4s ease-in-out;
}

.sound-tag:hover {
    border-color: var(--glass-border-hover);
    color: var(--text);
}

/* ─── Testimonials ─── */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    margin-top: 30px;
}

@media (max-width: 760px) { .testimonials-grid { grid-template-columns: 1fr; } }

.testimonial-card .stars {
    color: var(--gold);
    font-size: 0.95rem;
    letter-spacing: 3px;
    margin-bottom: 22px;
}

.testimonial-card blockquote {
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.85;
    color: var(--text);
    margin-bottom: 28px;
    font-style: normal;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-violet));
    color: var(--text);
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0;
    flex-shrink: 0;
}

.author-meta .name { font-size: 0.92rem; color: var(--text); font-weight: 500; }
.author-meta .sub { font-size: 0.8rem; color: var(--text-faint); margin-top: 2px; }

/* ─── FAQ (native details) ─── */
.faq-list { max-width: 760px; margin: 0 auto; }

.faq-list details {
    border-bottom: 1px solid var(--glass-border);
    padding: 26px 0;
}

.faq-list details:first-of-type {
    border-top: 1px solid var(--glass-border);
}

.faq-list summary {
    list-style: none;
    cursor: pointer;
    font-size: 1.06rem;
    font-weight: 500;
    color: var(--text);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    transition: color 0.3s ease-in-out;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--text-soft);
    transition: transform 0.4s ease-in-out, color 0.3s ease-in-out;
}

.faq-list details[open] summary::after {
    transform: rotate(45deg);
    color: var(--text);
}

.faq-list summary:hover { color: var(--text); }

.faq-list .answer {
    padding-top: 18px;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-soft);
    animation: som-faq-in 0.6s ease-in-out;
}

.faq-list .answer strong { color: var(--text); font-weight: 500; }

@keyframes som-faq-in {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: none; }
}

/* ─── Final CTA ─── */
.final-cta {
    padding: 180px 32px 160px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.final-cta .halo-centered {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90vmin;
    height: 90vmin;
    background: var(--halo);
    filter: blur(60px);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
    animation: som-halo-pulse 5s ease-in-out infinite;
}

.final-cta h2 {
    margin-bottom: 28px;
}

.final-cta .lede {
    font-size: 1.1rem;
    color: var(--text-soft);
    max-width: 540px;
    margin: 0 auto 60px;
    line-height: 1.8;
}

.final-cta .guarantee-line {
    margin-top: 26px;
    font-size: 0.86rem;
    color: var(--text-faint);
    letter-spacing: 0.06em;
}

/* ─── Halo keyframe (used by .somnora-halo and .halo-centered) ─── */
@keyframes som-halo-pulse {
    0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.85; }
    50% { transform: translateX(-50%) scale(1.05); opacity: 1; }
}

.final-cta .halo-centered {
    /* hover override (used instead of translateX centering) */
    animation: som-final-halo 5s ease-in-out infinite;
}

@keyframes som-final-halo {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.85; }
    50% { transform: translate(-50%, -50%) scale(1.05); opacity: 1; }
}

/* ─── Footer ─── */
footer {
    padding: 80px 32px 100px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-brand {
    font-weight: 400;
    font-size: 1.02rem;
    color: var(--text);
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.footer-sub {
    font-size: 0.85rem;
    color: var(--text-faint);
    font-weight: 300;
}

.footer-links {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-soft);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.footer-links a:hover { color: var(--text); }

/* ─── Reveal animation ─── */
.reveal {
    opacity: 0;
}

.reveal.in {
    animation: som-fade-up 0.8s ease-in-out forwards;
}

@keyframes som-fade-up {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: none; }
}

/* ─── Star twinkles (used by injected .somnora-stars children) ─── */
@keyframes som-twinkle-a {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

@keyframes som-twinkle-b {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.7; }
}

@keyframes som-twinkle-c {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 0.55; }
}

.twinkle-a { animation: som-twinkle-a 4s ease-in-out infinite; }
.twinkle-b { animation: som-twinkle-b 6s ease-in-out infinite; }
.twinkle-c { animation: som-twinkle-c 5.5s ease-in-out infinite; }

/* ─── Language switcher — premium glass pill ─── */
.lang-switcher {
    position: fixed;
    top: 22px; right: 28px;
    z-index: 100;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px;
    background: var(--surface);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
}

.lang-switcher a {
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 6px 14px;
    color: var(--text-soft);
    border-radius: 50px;
    transition: color 0.3s, background 0.3s;
}

.lang-switcher a:hover { color: var(--text); }
.lang-switcher a.active {
    background: rgba(255, 255, 255, 0.10);
    color: var(--text);
}

/* ─── Nav (programme page) — glass pill ─── */
nav.som-nav {
    position: fixed;
    top: 22px; left: 22px; right: 22px;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 22px;
    background: var(--surface);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
}

nav.som-nav .nav-brand {
    font-weight: 400;
    font-size: 1.02rem;
    color: var(--text);
    text-decoration: none;
    letter-spacing: 0.04em;
}

nav.som-nav .nav-cta {
    color: var(--text);
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 500;
    padding: 8px 18px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.16);
    transition: background 0.3s, border-color 0.3s;
}

nav.som-nav .nav-cta:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.30);
}

@media (max-width: 540px) {
    nav.som-nav { left: 14px; right: 14px; padding: 10px 14px; }
    nav.som-nav .nav-brand { font-size: 0.95rem; }
}

/* ─── Email capture (glass) ─── */
.email-capture {
    padding: 50px 40px;
    max-width: 620px;
    margin: 0 auto;
    text-align: center;
}

.email-capture .capture-label {
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent-blue);
    margin-bottom: 24px;
    font-weight: 500;
}

.email-capture h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 18px;
    color: var(--text);
    font-weight: 300;
}

.email-capture .capture-sub {
    font-size: 1rem;
    color: var(--text-soft);
    line-height: 1.8;
    margin-bottom: 32px;
}

.email-capture .capture-sub strong { color: var(--text); font-weight: 500; }

.capture-form {
    display: flex;
    gap: 10px;
    max-width: 460px;
    margin: 0 auto;
}

.capture-form input[type="email"] {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 14px 22px;
    color: var(--text);
    font-family: inherit;
    font-size: 0.98rem;
    outline: none;
    transition: border-color 0.3s ease-in-out, background 0.3s ease-in-out;
}

.capture-form input[type="email"]::placeholder { color: var(--text-faint); }
.capture-form input[type="email"]:focus {
    border-color: var(--accent-blue);
    background: rgba(255, 255, 255, 0.08);
}

.capture-form button {
    background: rgba(255, 255, 255, 0.10);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.20);
    color: var(--text);
    border-radius: 50px;
    padding: 14px 26px;
    font-family: inherit;
    font-size: 0.98rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.3s, background 0.3s, border-color 0.3s;
}

.capture-form button:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.32);
    transform: scale(1.02);
}

.capture-form button:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.capture-message {
    margin-top: 18px;
    font-size: 0.92rem;
    min-height: 22px;
    color: var(--text-soft);
}

.capture-message.success { color: var(--accent-blue); }
.capture-message.error { color: #e89090; }

.capture-privacy {
    font-size: 0.78rem;
    color: var(--text-faint);
    margin-top: 16px;
    font-weight: 300;
}

@media (max-width: 480px) {
    .capture-form { flex-direction: column; }
    .email-capture { padding: 40px 22px; }
}

/* ─── Exit-intent popup (dark glass) ─── */
.exit-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 16, 35, 0.78);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.exit-overlay.visible { display: flex; }

.exit-modal {
    background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(40px);
    backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.10);
    padding: 56px 44px;
    max-width: 520px;
    width: 100%;
    text-align: center;
    position: relative;
    border-radius: 24px;
    animation: som-modal-in 0.4s ease-in-out;
}

@keyframes som-modal-in {
    from { opacity: 0; transform: scale(0.96) translateY(10px); }
    to { opacity: 1; transform: none; }
}

.exit-close {
    position: absolute;
    top: 18px; right: 22px;
    background: none; border: none;
    color: var(--text-soft); font-size: 1.5rem;
    cursor: pointer; line-height: 1;
    transition: color 0.3s;
}

.exit-close:hover { color: var(--text); }

.exit-modal h2 {
    font-size: clamp(1.5rem, 2.4vw, 1.9rem);
    margin-bottom: 12px;
    color: var(--text);
    font-weight: 300;
}

.exit-modal .capture-sub { margin-bottom: 24px; }

@media (max-width: 480px) {
    .exit-modal { padding: 44px 24px; }
}

/* ─── Sticky mobile CTA ─── */
.sticky-cta {
    display: none;
}

@media (max-width: 768px) {
    footer { padding-bottom: 110px; }
    .sticky-cta {
        display: flex;
        position: fixed;
        bottom: 0; left: 0; right: 0;
        z-index: 99;
        padding: 14px 18px;
        background: rgba(11, 16, 35, 0.86);
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        justify-content: center;
    }
    .sticky-cta .btn-primary {
        width: 100%;
        margin-top: 0;
        padding: 14px;
        font-size: 0.98rem;
    }
}

/* ─── Access page specifics ─── */
.access-token-card {
    padding: 48px 36px;
    text-align: center;
    max-width: 460px;
    margin: 0 auto 40px;
}

.access-token-card .token-pill {
    display: inline-block;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 10px 20px;
    font-family: ui-monospace, 'SF Mono', Menlo, monospace;
    font-size: 0.82rem;
    color: var(--text-soft);
    margin-bottom: 24px;
    word-break: break-all;
}

.access-token-card h1 {
    font-size: clamp(2rem, 4.5vw, 3rem);
    margin-bottom: 18px;
}

.access-token-card p {
    color: var(--text-soft);
    font-size: 1rem;
}

.session-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: 700px;
    margin: 0 auto;
}

.audio-session {
    padding: 22px 24px;
    display: grid;
    grid-template-columns: 70px 1fr auto;
    gap: 16px;
    align-items: center;
}

.audio-session .day-label {
    font-size: 0.78rem;
    color: var(--accent-blue);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 500;
}

.audio-session h3 {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text);
    margin: 0;
}

.audio-session .audio-controls audio {
    height: 36px;
    max-width: 280px;
}

.btn-program {
    display: inline-block;
    background: linear-gradient(135deg, #e8c47b, #d4a855);
    color: #0a0e1a;
    text-decoration: none;
    padding: 14px 32px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.98rem;
    transition: all 0.3s;
    margin-top: 8px;
    font-family: inherit;
    box-shadow: 0 8px 30px rgba(232,196,123,0.18);
}
.btn-program:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(232,196,123,0.32); }

@media (max-width: 600px) {
    .audio-session { grid-template-columns: 1fr; gap: 8px; padding: 22px 22px; }
    .audio-session .audio-controls { width: 100%; }
    .audio-session .audio-controls audio { width: 100%; max-width: 100%; }
}

/* ─── Outdated "ambient" (a few legacy tags used on /: remove HUD) ─── */
.ambient { display: none; }

/* ─── Focus visibility (accessibility) ─── */
:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 3px;
    border-radius: 6px;
}

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
    .somnora-halo, .halo-centered { animation: none; }
    .reveal { opacity: 1 !important; transform: none !important; }
    .twinkle-a, .twinkle-b, .twinkle-c { animation: none; }
    .hero-visual .breath-core,
    .hero-visual .sound-ring { animation: none; }
}
