/* ================================================================
   SUNDAY HUSH - Revolutionary Design System
   Rest is not a reward. It's a right.
   January 2026
   ================================================================ */

/* ==== FONTS ==== */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&display=swap');

/* ==== CSS VARIABLES ==== */
:root {
    /* ==========================================
       WARM PARCHMENT + SAGE GREEN PALETTE
       The sage green is the "pop" — use intentionally
       ========================================== */
    
    /* Base Warm Tones */
    --parchment: #F2ECE2;
    --parchment-light: #FBF9F7;
    --sand: #EDE8DD;
    --pearl: #F8F6F2;
    --cream: #FAF8F5;
    
    /* Sage Green Family - THE POP */
    --sage-deep: #4A5740;
    --sage: #55624B;
    --sage-medium: #6B7A5F;
    --sage-light: #8A9A7A;
    --sage-muted: #A8B898;
    --sage-soft: #C5D4B8;
    --sage-whisper: #E2EBD9;
    --mist: #E8EDE4;
    
    /* Accent Colors for Emotional States */
    --rose-soft: rgba(180, 140, 130, 0.15);
    --rose-medium: rgba(180, 140, 130, 0.25);
    --lavender-soft: rgba(160, 150, 180, 0.12);
    --lavender-medium: rgba(160, 150, 180, 0.2);
    --sky-soft: rgba(140, 165, 185, 0.12);
    --honey: rgba(195, 165, 100, 0.15);
    --honey-warm: rgba(195, 165, 100, 0.25);
    
    /* Neutrals */
    --charcoal: #2F2B27;
    --stone: #5A5550;
    --warm-gray: #8A8278;
    
    /* Semantic Colors */
    --bg-primary: var(--parchment-light);
    --bg-secondary: var(--sand);
    --bg-accent: var(--pearl);
    --bg-sage: var(--mist);
    --text-primary: var(--charcoal);
    --text-secondary: var(--stone);
    --text-muted: var(--warm-gray);
    --accent-primary: var(--sage);
    --accent-secondary: var(--sage-medium);
    --accent-glow: var(--sage-soft);
    --border-color: rgba(85, 98, 75, 0.15);
    --border-sage: rgba(85, 98, 75, 0.25);
    
    /* Typography */
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'EB Garamond', Georgia, serif;
    
    /* Font Sizes - Fluid (Accessibility-friendly larger sizes) */
    --text-xs: clamp(0.9375rem, 0.85rem + 0.3vw, 1.0625rem);
    --text-sm: clamp(1.0625rem, 1rem + 0.4vw, 1.1875rem);
    --text-base: clamp(1.25rem, 1.15rem + 0.6vw, 1.4375rem);
    --text-lg: clamp(1.375rem, 1.25rem + 0.7vw, 1.5625rem);
    --text-xl: clamp(1.4375rem, 1.3rem + 0.8vw, 1.6875rem);
    --text-2xl: clamp(1.5rem, 1.3rem + 1vw, 2rem);
    --text-3xl: clamp(2rem, 1.7rem + 1.5vw, 2.75rem);
    --text-4xl: clamp(2.5rem, 2rem + 2.5vw, 4rem);
    --text-5xl: clamp(3rem, 2.5rem + 3vw, 5rem);
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-5xl: 8rem;
    
    /* Layout */
    --container-max: 1200px;
    --container-narrow: 800px;
    --header-height: 80px;
    --content-padding: clamp(24px, 5vw, 64px);
    
    /* Effects */
    --shadow-sm: 0 1px 2px rgba(47, 43, 39, 0.05);
    --shadow-md: 0 4px 12px rgba(47, 43, 39, 0.08);
    --shadow-lg: 0 12px 32px rgba(47, 43, 39, 0.1);
    --shadow-sage: 0 8px 32px rgba(85, 98, 75, 0.15);
    --shadow-glow: 0 0 40px rgba(168, 184, 152, 0.3);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
    --transition-elegant: 400ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    --radius-2xl: 28px;
    --radius-full: 9999px;
}

/* ==== DARK MODE / GOLDEN HOUR ==== */
[data-theme="golden-hour"],
[data-theme="dark"] {
    --parchment: #1A1915;
    --parchment-light: #1F1E1A;
    --sand: #252320;
    --pearl: #2A2825;
    --cream: #2D2B28;
    
    --sage-deep: #A8B898;
    --sage: #A8B898;
    --sage-medium: #8A9A7A;
    --sage-light: #6B7A5F;
    --sage-muted: #55624B;
    --mist: #2A2D25;
    
    --charcoal: #F0EBE3;
    --stone: #C5BDB0;
    --warm-gray: #8A8278;
    
    --bg-primary: #1A1915;
    --bg-secondary: #1F1E1A;
    --bg-accent: #252320;
    --bg-sage: #2A2D25;
    --text-primary: #F0EBE3;
    --text-secondary: #C5BDB0;
    --text-muted: #8A8278;
    --accent-primary: #A8B898;
    --accent-secondary: #8A9A7A;
    --accent-glow: rgba(168, 184, 152, 0.2);
    --border-color: rgba(168, 184, 152, 0.15);
    --border-sage: rgba(168, 184, 152, 0.25);
    
    --shadow-sage: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 40px rgba(168, 184, 152, 0.15);
}

/* ==== LATE NIGHT MODE (Automatic 10pm-6am) ==== */
body.late-night {
    --bg-primary: #1a1915;
    --bg-secondary: #1F1E1A;
    --text-primary: #E8E4DF;
    --text-secondary: rgba(232, 228, 223, 0.7);
    --text-muted: rgba(232, 228, 223, 0.5);
    --border-color: rgba(232, 228, 223, 0.08);
    --mist: rgba(168, 184, 152, 0.08);
    --accent-primary: #A8B898;
    --accent-glow: rgba(168, 184, 152, 0.15);
    --parchment: #1a1915;
    --parchment-light: #1F1E1A;
    --sage: #3d4a35;
    --sage-deep: #2d3828;
}

/* Late Night - Newsletter Section */
body.late-night .newsletter {
    background: linear-gradient(135deg, #2d3828 0%, #1a1915 100%);
    color: #E8E4DF;
}

body.late-night .newsletter .section-eyebrow {
    color: rgba(168, 184, 152, 0.8);
}

body.late-night .newsletter .section-title {
    color: #E8E4DF;
}

body.late-night .newsletter-description {
    color: rgba(232, 228, 223, 0.85);
}

body.late-night .newsletter-note {
    color: rgba(232, 228, 223, 0.6);
}

body.late-night .newsletter-form .form-group {
    background: rgba(232, 228, 223, 0.08);
    border-color: rgba(232, 228, 223, 0.15);
}

body.late-night .newsletter-form input[type="email"] {
    color: #E8E4DF;
}

body.late-night .newsletter-form input[type="email"]::placeholder {
    color: rgba(232, 228, 223, 0.5);
}

body.late-night .newsletter-form button {
    background: #A8B898;
    color: #1a1915;
}

body.late-night .newsletter-form button:hover {
    background: #C5D4B8;
}

/* Late Night - Footer */
body.late-night .footer {
    background: #1a1915;
    border-top-color: rgba(232, 228, 223, 0.1);
}

body.late-night .footer-logo {
    color: #A8B898;
}

body.late-night .footer-tagline {
    color: rgba(232, 228, 223, 0.6);
}

body.late-night .footer-nav-column h4 {
    color: #E8E4DF;
}

body.late-night .footer-nav-column a {
    color: rgba(232, 228, 223, 0.7);
}

body.late-night .footer-nav-column a:hover {
    color: #A8B898;
}

body.late-night .footer-social a {
    color: rgba(232, 228, 223, 0.5);
    border-color: rgba(232, 228, 223, 0.15);
}

body.late-night .footer-social a:hover {
    color: #1a1915;
    background: #A8B898;
    border-color: #A8B898;
}

body.late-night .footer-bottom p {
    color: rgba(232, 228, 223, 0.5);
}

/* Late Night - Global Input/Textarea Fix */
body.late-night input,
body.late-night textarea,
body.late-night select {
    background: #252320;
    color: #E8E4DF;
    border-color: rgba(168, 184, 152, 0.2);
}

body.late-night input::placeholder,
body.late-night textarea::placeholder {
    color: rgba(232, 228, 223, 0.5);
}

body.late-night input:focus,
body.late-night textarea:focus,
body.late-night select:focus {
    border-color: #A8B898;
    outline: none;
}

/* Late Night - Sera Preview / Chat Demo */
body.late-night .solace-preview {
    background: linear-gradient(135deg, #1F1E1A, #1a1915);
}

body.late-night .solace-grid {
    color: #E8E4DF;
}

body.late-night .chat-demo {
    background: #2a2825;
    border-color: rgba(168, 184, 152, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

body.late-night .chat-message-solace {
    background: #3a3632;
    color: #E8E4DF;
}

body.late-night .chat-message-solace p {
    color: #E8E4DF !important;
}

body.late-night .chat-message-user {
    background: #4A5740;
    color: white;
}

body.late-night .chat-message-user p {
    color: white !important;
}

body.late-night .chat-message p {
    color: #E8E4DF;
}

body.late-night .solace-content .section-title,
body.late-night .solace-content .section-eyebrow {
    color: #E8E4DF;
}

body.late-night .solace-description,
body.late-night .solace-features li {
    color: rgba(232, 228, 223, 0.85);
}

body.late-night .solace-features svg {
    color: #A8B898;
}

/* ==== RESET & BASE ==== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.8;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: background-color var(--transition-slow), color var(--transition-slow);
    overflow-x: hidden;
}

::selection {
    background: var(--sage-whisper);
    color: var(--sage-deep);
}

:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 3px;
}

/* ==== SKIP LINK ==== */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    padding: var(--space-sm) var(--space-lg);
    background: var(--accent-primary);
    color: white;
    text-decoration: none;
    z-index: 9999;
    border-radius: var(--radius-full);
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: var(--space-md);
}

/* ==== CONTAINER ==== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: var(--content-padding);
    padding-right: var(--content-padding);
}

.container-narrow {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding-left: var(--content-padding);
    padding-right: var(--content-padding);
}

/* ==== TYPOGRAPHY ==== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

p {
    margin-bottom: var(--space-lg);
    letter-spacing: 0.01em;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--text-primary);
}

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

/* ==== READING PROGRESS ==== */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--sage-light) 0%, var(--sage) 50%, var(--sage-deep) 100%);
    z-index: 9999;
    transition: width 100ms ease-out;
}

/* ================================================================
   HEADER
   ================================================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 1000;
    transition: all var(--transition-base);
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.1) 70%, transparent 100%);
    z-index: -1;
    opacity: 1;
    transition: opacity var(--transition-base);
}

.header.scrolled::before {
    opacity: 0;
}

.header.scrolled {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

body.late-night .header.scrolled {
    background: rgba(26, 25, 21, 0.98);
}

.header-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--content-padding);
}

/* Logo */
.logo {
    grid-column: 2;
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 400;
    color: white;
    text-decoration: none;
    letter-spacing: 0.02em;
    white-space: nowrap;
    transition: color var(--transition-base);
}

.header.scrolled .logo {
    color: var(--accent-primary);
}

.logo:hover {
    color: rgba(255,255,255,0.8);
}

.header.scrolled .logo:hover {
    color: var(--text-primary);
}

/* Navigation */
.nav {
    grid-column: 1;
    display: flex;
    align-items: center;
}

.nav-right {
    grid-column: 3;
    justify-content: flex-end;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 500;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: var(--space-sm) 0;
    position: relative;
    transition: color var(--transition-fast);
}

.header.scrolled .nav-link {
    color: var(--text-secondary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width var(--transition-elegant);
}

.nav-link:hover,
.nav-link.active {
    color: white;
}

.header.scrolled .nav-link:hover,
.header.scrolled .nav-link.active {
    color: var(--accent-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.menu-toggle .menu-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    transition: all var(--transition-fast);
    border-radius: 2px;
}

.header.scrolled .menu-toggle .menu-bar {
    background: var(--text-primary);
}

.menu-toggle.active .menu-bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active .menu-bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .menu-bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ================================================================
   HERO SECTION
   ================================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #4A5740 0%, #3d4a35 50%, #2d3828 100%);
}

.hero-media {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    background: linear-gradient(135deg, #4A5740 0%, #3d4a35 50%, #2d3828 100%);
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* Desktop video shown by default, mobile hidden */
.hero-video-desktop {
    display: block;
}

.hero-video-mobile {
    display: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* No overlay on video - keep it crisp */
    background: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 900px;
    padding: calc(var(--header-height) + var(--space-2xl)) var(--content-padding) var(--space-2xl);
    /* No box - just text with shadows */
    background: none;
}

.hero-eyebrow {
    font-family: var(--font-body);
    font-size: var(--text-lg);
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: var(--space-md);
    text-shadow: 
        0 0 10px rgba(0,0,0,1),
        0 0 20px rgba(0,0,0,0.9),
        0 0 40px rgba(0,0,0,0.7),
        0 2px 4px rgba(0,0,0,1);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 2.5rem + 3.5vw, 6rem);
    font-weight: 300;
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: var(--space-xl);
    text-shadow: 
        0 0 15px rgba(0,0,0,1),
        0 0 30px rgba(0,0,0,0.9),
        0 0 60px rgba(0,0,0,0.7),
        0 3px 6px rgba(0,0,0,1);
}

.hero-title em {
    font-style: italic;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);
    color: #ffffff;
    font-style: italic;
    margin-bottom: var(--space-2xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 
        0 0 10px rgba(0,0,0,1),
        0 0 20px rgba(0,0,0,0.9),
        0 0 40px rgba(0,0,0,0.7),
        0 2px 4px rgba(0,0,0,1);
}

/* Fade-in animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-elegant);
}

.btn-primary {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

.btn-primary:hover {
    background: var(--sage-deep);
    border-color: var(--sage-deep);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sage);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: rgba(255,255,255,0.5);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
    color: white;
    transform: translateY(-2px);
}

.section .btn-secondary,
main .btn-secondary {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.section .btn-secondary:hover,
main .btn-secondary:hover {
    background: var(--accent-primary);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--accent-primary);
    border-color: var(--border-sage);
}

.btn-outline:hover {
    border-color: var(--accent-primary);
    background: var(--accent-primary);
    color: white;
    transform: translateY(-2px);
}

/* ================================================================
   SECTIONS
   ================================================================ */
.section {
    padding: var(--space-4xl) 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-3xl);
}

.section-eyebrow {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent-primary);
    margin-bottom: var(--space-md);
}

.section-title {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
}

.section-intro {
    font-family: var(--font-body);
    font-size: var(--text-lg);
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 0;
}

.section-cta {
    text-align: center;
    margin-top: var(--space-3xl);
}

/* ================================================================
   REVOLUTIONARY NERVOUS SYSTEM CHECK-IN
   Window of Tolerance + Stress Cycle Completion
   ================================================================ */

/* ==========================================
   ARRIVING SECTION - THE HEART OF IT
   ========================================== */
.arriving-section {
    background: linear-gradient(
        180deg, 
        var(--bg-primary) 0%, 
        var(--sage-whisper) 25%,
        var(--mist) 50%, 
        var(--sage-whisper) 75%,
        var(--bg-primary) 100%
    );
    position: relative;
    overflow: hidden;
}

/* Subtle animated background glow */
.arriving-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 800px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    opacity: 0.5;
    animation: breatheGlow 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes breatheGlow {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.5; }
}

body.late-night .arriving-section {
    background: linear-gradient(
        180deg, 
        #1a1915 0%, 
        #252320 25%,
        #2a2d25 50%, 
        #252320 75%,
        #1a1915 100%
    );
}

.arriving-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 var(--content-padding);
    position: relative;
    z-index: 1;
}

/* ==========================================
   ARRIVING HEADER
   ========================================== */
.arriving-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.time-aware-greeting {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
    font-style: italic;
    opacity: 0;
    animation: fadeInSoft 1s ease 0.3s forwards;
}

@keyframes fadeInSoft {
    to { opacity: 1; }
}

.arriving-question {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.arriving-subtext {
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--text-muted);
    font-style: italic;
    max-width: 500px;
    margin: 0 auto;
}

/* ==========================================
   WINDOW OF TOLERANCE GRID
   ========================================== */
.tolerance-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

@media (max-width: 900px) {
    .tolerance-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ==========================================
   TOLERANCE ZONE CARDS - Interactive Delight
   ========================================== */
.tolerance-zone {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    padding: var(--space-xl) var(--space-lg);
    text-align: center;
    cursor: pointer;
    transition: all 0.4s var(--transition-elegant);
    position: relative;
    overflow: hidden;
}

/* Colored gradient overlays */
.tolerance-zone::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: inherit;
}

/* Hyperarousal - warm rose */
.tolerance-zone[data-zone="hyper"]::before {
    background: linear-gradient(135deg, var(--rose-medium), var(--rose-soft));
}

/* Optimal - vibrant sage */
.tolerance-zone[data-zone="optimal"]::before {
    background: linear-gradient(135deg, rgba(85, 98, 75, 0.15), rgba(168, 184, 152, 0.1));
}

/* Hypoarousal - soft lavender */
.tolerance-zone[data-zone="hypo"]::before {
    background: linear-gradient(135deg, var(--lavender-medium), var(--lavender-soft));
}

/* Glow ring on hover */
.tolerance-zone::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--sage-light), var(--sage-muted));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.tolerance-zone:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: transparent;
}

.tolerance-zone:hover::before {
    opacity: 1;
}

.tolerance-zone:hover::after {
    opacity: 1;
}

.tolerance-zone.selected {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-sage), var(--shadow-glow);
}

.tolerance-zone.selected::before {
    opacity: 1;
}

body.late-night .tolerance-zone {
    background: #252320;
    border-color: rgba(232, 228, 223, 0.08);
}

/* ==========================================
   ZONE VISUALS - Animated Icons
   ========================================== */
.zone-visual {
    width: 72px;
    height: 72px;
    margin: 0 auto var(--space-md);
    position: relative;
    z-index: 1;
    color: var(--sage-muted);
    transition: color 0.4s ease, transform 0.4s ease;
}

.tolerance-zone:hover .zone-visual {
    color: var(--accent-primary);
    transform: scale(1.1);
}

.zone-visual svg {
    width: 100%;
    height: 100%;
}

/* Hyperarousal - fast, jittery */
.tolerance-zone[data-zone="hyper"] .zone-visual {
    animation: hyperPulse 1.5s ease-in-out infinite;
}

@keyframes hyperPulse {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.08) rotate(2deg); }
    50% { transform: scale(0.95); }
    75% { transform: scale(1.05) rotate(-2deg); }
}

/* Optimal - calm breathe */
.tolerance-zone[data-zone="optimal"] .zone-visual {
    animation: optimalBreathe 4s ease-in-out infinite;
}

@keyframes optimalBreathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

/* Hypoarousal - slow, muted */
.tolerance-zone[data-zone="hypo"] .zone-visual {
    animation: hypoPulse 6s ease-in-out infinite;
    opacity: 0.7;
}

@keyframes hypoPulse {
    0%, 100% { transform: scale(0.95); opacity: 0.5; }
    50% { transform: scale(1); opacity: 0.7; }
}

/* Stop animations on hover for focus */
.tolerance-zone:hover .zone-visual {
    animation: none;
    opacity: 1;
}

/* ==========================================
   ZONE TYPOGRAPHY
   ========================================== */
.zone-title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.tolerance-zone:hover .zone-title {
    color: var(--sage-deep);
}

body.late-night .zone-title {
    color: #E8E4DF;
}

.zone-feeling {
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--accent-primary);
    font-style: italic;
    margin-bottom: var(--space-sm);
    position: relative;
    z-index: 1;
}

.zone-signals {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--text-muted);
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

body.late-night .zone-signals {
    color: rgba(232, 228, 223, 0.5);
}

/* ==========================================
   MESSY MIDDLE ACKNOWLEDGMENT
   ========================================== */
.messy-middle-note {
    text-align: center;
    padding: var(--space-lg) var(--space-xl);
    background: linear-gradient(135deg, var(--sage-whisper), var(--mist));
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-xl);
    border: 1px solid var(--border-sage);
    position: relative;
    overflow: hidden;
}

.messy-middle-note::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--sage-light), var(--sage), var(--sage-light));
}

body.late-night .messy-middle-note {
    background: linear-gradient(135deg, rgba(168, 184, 152, 0.08), rgba(168, 184, 152, 0.05));
    border-color: rgba(168, 184, 152, 0.15);
}

.messy-middle-note p {
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--text-secondary);
    margin: 0;
    font-style: italic;
}

body.late-night .messy-middle-note p {
    color: rgba(232, 228, 223, 0.7);
}

/* ==========================================
   COLLECTIVE EXHALE - Real-time Feel
   ========================================== */
.collective-wrapper {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.collective-exhale {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-xl);
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(8px);
}

body.late-night .collective-exhale {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(232, 228, 223, 0.1);
}

.collective-dots {
    display: flex;
    gap: 6px;
}

.collective-dot {
    width: 8px;
    height: 8px;
    background: var(--sage-light);
    border-radius: 50%;
    animation: collectiveBreathe 4s ease-in-out infinite;
}

.collective-dot:nth-child(2) { animation-delay: 0.5s; }
.collective-dot:nth-child(3) { animation-delay: 1s; }

@keyframes collectiveBreathe {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.3); }
}

.collective-text {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.collective-number {
    font-family: var(--font-display);
    font-weight: 500;
    color: var(--accent-primary);
    font-size: var(--text-lg);
}

/* ==========================================
   SANCTUARY MODE TOGGLE
   ========================================== */
.sanctuary-toggle {
    text-align: center;
}

.sanctuary-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    background: transparent;
    border: 1px solid var(--border-sage);
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--accent-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.sanctuary-btn:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sage);
}

.sanctuary-btn svg {
    transition: transform 0.3s ease;
}

.sanctuary-btn:hover svg {
    transform: rotate(180deg);
}

body.late-night .sanctuary-btn {
    border-color: rgba(168, 184, 152, 0.3);
    color: var(--sage-muted);
}

body.late-night .sanctuary-btn:hover {
    background: var(--accent-primary);
    color: #1a1915;
}

/* Larger Sanctuary Button - More Noticeable */
.sanctuary-btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    background: var(--sage-deep);
    border: 2px solid var(--sage-deep);
    color: white;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 20px rgba(74, 87, 64, 0.25);
}

.sanctuary-btn-large:hover {
    background: #3d4a35;
    border-color: #3d4a35;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(74, 87, 64, 0.35);
}

.sanctuary-btn-large svg {
    width: 22px;
    height: 22px;
}

body.late-night .sanctuary-btn-large {
    background: var(--sage);
    border-color: var(--sage);
    color: #1a1915;
}

body.late-night .sanctuary-btn-large:hover {
    background: var(--sage-light);
    border-color: var(--sage-light);
}

/* ================================================================
   STRESS CYCLE COMPLETION OVERLAY
   ================================================================ */
.cycle-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s ease;
    overflow-y: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.late-night .cycle-overlay {
    background: #1a1915;
}

.cycle-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cycle-close {
    position: fixed;
    top: var(--space-xl);
    right: var(--space-xl);
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    cursor: pointer;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
    z-index: 10;
}

.cycle-close:hover {
    background: var(--mist);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

body.late-night .cycle-close:hover {
    background: rgba(168, 184, 152, 0.1);
}

.cycle-content {
    max-width: 600px;
    width: 100%;
    padding: var(--space-2xl);
    text-align: center;
}

/* Phase indicator with sage accent */
.cycle-phase {
    display: inline-block;
    padding: var(--space-sm) var(--space-lg);
    background: linear-gradient(135deg, var(--sage-whisper), var(--mist));
    border: 1px solid var(--border-sage);
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--sage-deep);
    margin-bottom: var(--space-xl);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

body.late-night .cycle-phase {
    background: rgba(168, 184, 152, 0.1);
    border-color: rgba(168, 184, 152, 0.2);
    color: var(--sage-muted);
}

/* ==========================================
   SOMATIC VISUAL - Breathing Circle
   ========================================== */
.somatic-visual {
    width: 200px;
    height: 200px;
    margin: 0 auto var(--space-xl);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.breath-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sage-whisper), var(--mist));
    border: 2px solid var(--sage-light);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-glow);
}

.breath-circle.inhale {
    animation: inhaleExpand 4s ease-in-out infinite;
}

.breath-circle.exhale {
    animation: exhaleContract 6s ease-in-out infinite;
}

.breath-circle.grounding {
    animation: groundingPulse 3s ease-in-out infinite;
}

@keyframes inhaleExpand {
    0%, 100% { transform: scale(1); box-shadow: var(--shadow-glow); }
    50% { transform: scale(1.3); box-shadow: 0 0 60px rgba(168, 184, 152, 0.4); }
}

@keyframes exhaleContract {
    0% { transform: scale(1.3); box-shadow: 0 0 60px rgba(168, 184, 152, 0.4); }
    100% { transform: scale(1); box-shadow: var(--shadow-glow); }
}

@keyframes groundingPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(85, 98, 75, 0.3); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 20px rgba(85, 98, 75, 0); }
}

.breath-text {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    color: var(--sage-deep);
    font-style: italic;
}

/* Ripple rings */
.breath-ring {
    position: absolute;
    border: 1px solid var(--sage-light);
    border-radius: 50%;
    opacity: 0.3;
    animation: rippleOut 4s ease-out infinite;
}

.breath-ring:nth-child(1) { width: 140px; height: 140px; animation-delay: 0s; }
.breath-ring:nth-child(2) { width: 160px; height: 160px; animation-delay: 1s; }
.breath-ring:nth-child(3) { width: 180px; height: 180px; animation-delay: 2s; }

@keyframes rippleOut {
    0% { transform: scale(0.8); opacity: 0.5; }
    100% { transform: scale(1.3); opacity: 0; }
}

/* ==========================================
   CYCLE CONTENT
   ========================================== */
.cycle-title {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    line-height: 1.3;
}

body.late-night .cycle-title {
    color: #E8E4DF;
}

.cycle-validation {
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.8;
    margin-bottom: var(--space-xl);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

body.late-night .cycle-validation {
    color: rgba(232, 228, 223, 0.7);
}

/* ==========================================
   SOMATIC INSTRUCTION STEPS
   ========================================== */
.somatic-instruction {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
    text-align: left;
}

body.late-night .somatic-instruction {
    background: #252320;
    border-color: rgba(232, 228, 223, 0.08);
}

.instruction-step {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    opacity: 0;
    transform: translateY(10px);
    animation: stepReveal 0.6s ease forwards;
}

.instruction-step:nth-child(1) { animation-delay: 0.2s; }
.instruction-step:nth-child(2) { animation-delay: 0.5s; }
.instruction-step:nth-child(3) { animation-delay: 0.8s; }
.instruction-step:nth-child(4) { animation-delay: 1.1s; }

@keyframes stepReveal {
    to { opacity: 1; transform: translateY(0); }
}

.instruction-step:last-child {
    margin-bottom: 0;
}

.step-marker {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: linear-gradient(135deg, var(--sage-whisper), var(--mist));
    border: 1px solid var(--border-sage);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.late-night .step-marker {
    background: rgba(168, 184, 152, 0.1);
    border-color: rgba(168, 184, 152, 0.2);
}

.step-marker svg {
    width: 18px;
    height: 18px;
    color: var(--accent-primary);
}

.step-content h4 {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

body.late-night .step-content h4 {
    color: #E8E4DF;
}

.step-content p {
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

body.late-night .step-content p {
    color: rgba(232, 228, 223, 0.6);
}

.step-content em {
    color: var(--sage-medium);
    display: block;
    margin-top: var(--space-xs);
    font-size: var(--text-sm);
}

/* ==========================================
   COMPLETION SIGNALS
   ========================================== */
.completion-signals {
    background: linear-gradient(135deg, var(--sage-whisper), transparent);
    border: 1px solid var(--border-sage);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-xl);
    text-align: left;
}

body.late-night .completion-signals {
    background: rgba(168, 184, 152, 0.05);
    border-color: rgba(168, 184, 152, 0.15);
}

.completion-signals h5 {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-primary);
    margin-bottom: var(--space-md);
}

.signal-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
}

@media (max-width: 500px) {
    .signal-list {
        grid-template-columns: 1fr;
    }
}

.signal-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

body.late-night .signal-item {
    color: rgba(232, 228, 223, 0.6);
}

.signal-item svg {
    width: 16px;
    height: 16px;
    color: var(--sage-light);
    flex-shrink: 0;
}

/* ==========================================
   CYCLE AFFIRMATION
   ========================================== */
.cycle-affirmation {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-style: italic;
    color: var(--text-primary);
    padding: var(--space-lg);
    background: linear-gradient(135deg, var(--honey), var(--honey-warm));
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-xl);
    border-left: 4px solid var(--sage);
}

body.late-night .cycle-affirmation {
    color: #E8E4DF;
    background: rgba(195, 165, 100, 0.1);
}

/* ==========================================
   CYCLE ACTIONS
   ========================================== */
.cycle-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    justify-content: center;
    margin-bottom: var(--space-xl);
}

.cycle-btn {
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.cycle-btn-primary {
    background: var(--accent-primary);
    color: white;
    border: 1px solid var(--accent-primary);
}

.cycle-btn-primary:hover {
    background: var(--sage-deep);
    border-color: var(--sage-deep);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sage);
}

.cycle-btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-sage);
}

body.late-night .cycle-btn-secondary {
    color: #E8E4DF;
    border-color: rgba(168, 184, 152, 0.3);
}

.cycle-btn-secondary:hover {
    background: var(--mist);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

body.late-night .cycle-btn-secondary:hover {
    background: rgba(168, 184, 152, 0.1);
}

/* ==========================================
   COMPLETED STATE
   ========================================== */
.cycle-completed {
    display: none;
    text-align: center;
    padding: var(--space-2xl);
}

.cycle-completed.active {
    display: block;
    animation: fadeInUp 0.6s ease;
}

.completed-visual {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-xl);
    color: var(--sage-light);
    animation: gentleFloat 3s ease-in-out infinite;
}

@keyframes gentleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.completed-visual svg {
    width: 100%;
    height: 100%;
}

.completed-title {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

body.late-night .completed-title {
    color: #E8E4DF;
}

.completed-message {
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: var(--space-xl);
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

body.late-night .completed-message {
    color: rgba(232, 228, 223, 0.7);
}

/* ================================================================
   FEATURED ARTICLES
   ================================================================ */
.featured {
    background: var(--bg-primary);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.article-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-elegant);
    border: 1px solid var(--border-color);
}

.article-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-sage);
}

.article-card-featured {
    grid-column: span 2;
}

.article-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.article-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.article-card-featured .article-image {
    aspect-ratio: 16/10;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-category {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    padding: var(--space-xs) var(--space-md);
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border-radius: var(--radius-full);
    background: var(--accent-primary);
    color: white;
}

.article-content {
    padding: var(--space-xl);
}

.article-card-featured .article-content {
    padding: var(--space-2xl);
}

.article-title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: var(--space-md);
    transition: color var(--transition-fast);
}

.article-card-featured .article-title {
    font-size: var(--text-2xl);
}

.article-card:hover .article-title {
    color: var(--accent-primary);
}

.article-excerpt {
    font-size: var(--text-base);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.article-meta {
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ================================================================
   SERA PREVIEW
   ================================================================ */
.solace-preview {
    background: linear-gradient(135deg, var(--mist), var(--sage-whisper));
}

.solace-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.solace-content .section-eyebrow,
.solace-content .section-title {
    text-align: left;
}

.solace-description {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
}

.solace-features {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-xl);
}

.solace-features li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    color: var(--text-secondary);
}

.solace-features svg {
    color: var(--accent-primary);
    flex-shrink: 0;
}

.chat-demo {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.chat-message {
    margin-bottom: var(--space-lg);
    max-width: 85%;
}

.chat-message:last-child {
    margin-bottom: 0;
}

.chat-message-user {
    background: var(--accent-primary);
    color: white;
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-sm);
    margin-left: auto;
}

.chat-message-solace {
    background: var(--sage-whisper);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-lg);
    border-bottom-left-radius: var(--radius-sm);
}

.chat-message p {
    margin-bottom: var(--space-sm);
    line-height: 1.6;
}

.chat-message p:last-child {
    margin-bottom: 0;
}

/* ================================================================
   PLAYGROUND PREVIEW
   ================================================================ */
.playground-preview {
    background: var(--bg-secondary);
    padding: var(--space-4xl) 0;
}

.playground-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-2xl);
    background: var(--bg-primary);
    padding: var(--space-3xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.playground-content {
    max-width: 600px;
}

.playground-content .section-title {
    margin-bottom: var(--space-lg);
}

.playground-description {
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
}

.playground-icons {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    font-size: 2.5rem;
    opacity: 0.9;
}

.playground-icon {
    transition: transform var(--transition-base);
}

.playground-icon:hover {
    transform: scale(1.2) rotate(-5deg);
}

@media (max-width: 768px) {
    .playground-card {
        padding: var(--space-2xl);
    }
    
    .playground-icons {
        flex-wrap: wrap;
    }
}

/* ================================================================
   APP PREVIEW — Mobile App Section
   ================================================================ */
.app-preview {
    background: var(--bg-secondary);
    padding: var(--space-4xl) 0;
}

.app-preview-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.app-description {
    font-family: var(--font-body);
    font-size: var(--text-lg);
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-3xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.app-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
    margin-bottom: var(--space-3xl);
}

.app-feature {
    text-align: center;
    padding: var(--space-xl) var(--space-lg);
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.app-feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(85, 98, 75, 0.1);
}

.app-feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--sage-whisper);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
}

.app-feature-icon svg {
    color: var(--accent-primary);
}

.app-feature h4 {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.app-feature p {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.6;
}

.app-cta-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
}

.coming-soon-note {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--text-muted);
    font-style: italic;
    letter-spacing: 0.02em;
}

/* App Preview — Night Mode */
body.late-night .app-preview {
    background: var(--bg-secondary);
}

body.late-night .app-feature {
    background: var(--bg-primary);
    border-color: var(--border-color);
}

body.late-night .app-feature:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

body.late-night .app-feature-icon {
    background: rgba(168, 184, 152, 0.1);
}

@media (max-width: 768px) {
    .app-features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }
    
    .app-feature {
        padding: var(--space-lg) var(--space-md);
    }
}

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

/* ================================================================
   NEWSLETTER
   ================================================================ */
.newsletter {
    background: linear-gradient(135deg, var(--sage) 0%, var(--sage-deep) 100%);
    color: white;
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter .section-eyebrow {
    color: rgba(255,255,255,0.7);
}

.newsletter .section-title {
    color: white;
}

.newsletter-description {
    font-size: var(--text-lg);
    color: rgba(255,255,255,0.85);
    margin-bottom: var(--space-xl);
}

.newsletter-form .form-group {
    display: flex;
    gap: var(--space-sm);
    background: rgba(255,255,255,0.1);
    padding: var(--space-sm);
    border-radius: var(--radius-full);
    border: 1px solid rgba(255,255,255,0.2);
}

.newsletter-form input[type="email"] {
    flex: 1;
    padding: var(--space-md) var(--space-lg);
    background: transparent;
    border: none;
    color: white;
    font-family: var(--font-body);
    font-size: var(--text-base);
}

.newsletter-form input[type="email"]::placeholder {
    color: rgba(255,255,255,0.6);
}

.newsletter-form input[type="email"]:focus {
    outline: none;
}

.newsletter-form button {
    padding: var(--space-md) var(--space-xl);
    background: white;
    color: var(--sage);
    border: none;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.newsletter-form button:hover {
    background: var(--sage-whisper);
    transform: scale(1.02);
}

.newsletter-note {
    font-size: var(--text-sm);
    color: rgba(255,255,255,0.6);
    margin-top: var(--space-md);
    margin-bottom: 0;
}

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
    background: var(--parchment);
    color: var(--text-primary);
    border-top: 1px solid var(--border-color);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: var(--space-2xl);
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid var(--border-color);
}

.footer-brand .footer-logo {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    color: var(--accent-primary);
    text-decoration: none;
    display: inline-block;
    margin-bottom: var(--space-sm);
}

.footer-brand .footer-logo:hover {
    color: var(--text-primary);
}

.footer-tagline {
    font-size: var(--text-base);
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: var(--space-lg);
}

.footer-social {
    display: flex;
    gap: var(--space-sm);
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border-sage);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
    transform: translateY(-2px);
}

.footer-nav {
    display: contents;
}

.footer-nav-column h4 {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.footer-nav-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav-column li {
    margin-bottom: var(--space-xs);
}

.footer-nav-column a {
    color: var(--text-secondary);
    font-size: var(--text-base);
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-lg);
}

.footer-bottom p {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: 0;
}

/* ================================================================
   RESPONSIVE DESIGN
   ================================================================ */
@media (max-width: 1024px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .article-card-featured {
        grid-column: span 2;
    }
    
    .solace-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .header-container {
        grid-template-columns: auto 1fr auto;
    }
    
    .logo {
        grid-column: 2;
        text-align: center;
    }
    
    /* ==========================================
       MOBILE HERO - VIDEO (DO NOT TOUCH)
       ========================================== */
    .hero {
        min-height: 0 !important;
        height: 100vw !important;
        max-height: 100vw !important;
        overflow: hidden !important;
    }
    
    .hero-media {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
    }
    
    .hero-content {
        position: absolute !important;
        bottom: -3% !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        padding: 0.2rem 1rem !important;
        z-index: 10 !important;
        text-align: center !important;
    }
    
    /* ==========================================
       MOBILE HERO - TEXT STYLING
       ========================================== */
    .hero-eyebrow,
    .hero-title,
    .hero-subtitle {
        color: #ffffff !important;
        text-shadow: 
            0 1px 3px rgba(0, 0, 0, 0.95),
            0 3px 8px rgba(0, 0, 0, 0.8),
            0 6px 16px rgba(0, 0, 0, 0.6) !important;
        line-height: 1.05 !important;
        margin-bottom: 0.05rem !important;
        text-align: center !important;
    }
    
    .hero-eyebrow {
        font-size: 0.5rem !important;
        letter-spacing: 0.1em !important;
        margin-bottom: 0.08rem !important;
        text-align: center !important;
    }
    
    .hero-title {
        font-size: 0.5rem !important;
        margin-bottom: 0.05rem !important;
        text-align: center !important;
    }
    
    .hero-subtitle {
        font-size: 0.45rem !important;
        margin-bottom: 0.1rem !important;
        text-align: center !important;
    }
    
    /* Smaller side-by-side buttons moved up */
    .hero-buttons {
        display: flex !important;
        flex-direction: row !important;
        gap: 0.2rem !important;
        justify-content: center !important;
        margin-top: 0.05rem !important;
    }
    
    .hero-buttons .btn,
    .hero .btn,
    .hero-btn {
        padding: 0.12rem 0.35rem !important;
        font-size: 0.28rem !important;
    }
    
    .scroll-indicator {
        display: none !important;
    }
    
    /* ==========================================
       MOBILE VIDEO (DO NOT TOUCH)
       ========================================== */
    .hero-video-desktop {
        display: none !important;
        visibility: hidden !important;
    }
    
    .hero-video-mobile {
        display: block !important;
        visibility: visible !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
        min-width: 0 !important;
        min-height: 0 !important;
        max-width: 100% !important;
        max-height: 100% !important;
        transform: none !important;
        object-fit: cover !important;
        object-position: center top !important;
        z-index: 1 !important;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .article-card-featured {
        grid-column: span 1;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
    
    .cycle-content {
        padding: var(--space-xl);
    }
    
    .cycle-actions {
        flex-direction: column;
    }
    
    .cycle-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .somatic-visual {
        width: 160px;
        height: 160px;
    }
    
    .breath-circle {
        width: 100px;
        height: 100px;
    }
}

/* ================================================================
   REDUCED MOTION
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .tolerance-zone:hover {
        transform: none;
    }
    
    .instruction-step {
        opacity: 1;
        transform: none;
    }
}

/* ================================================================
   PRINT STYLES
   ================================================================ */
@media print {
    .header,
    .hero-media,
    .cycle-overlay,
    .newsletter,
    .footer-social {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .section {
        padding: 2rem 0;
    }
}
