/* ----- RESET & VARIABLES ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0d47a1;
    --primary-light: #4f6f8f;
    --accent: #4CAF50;
    --accent-soft: #e8f5e9;
    --bg-light: #f9fafc;
    --card-white: #ffffff;
    --text-dark: #1e2a3a;
    --text-soft: #2c3e50;
    --gray-light: #eef2f6;
    --shadow-sm: 0 8px 20px rgba(0,20,50,0.06);
    --shadow-hover: 0 12px 28px rgba(0,30,70,0.1);
    --radius-card: 20px;
    --radius-input: 14px;
}

html {			
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 17px !important;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.5;
    padding-top: 100px;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* main wrapper 1200px */
.page-wrapper {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    overflow-x: hidden; /* Prevents inner children from expanding page width */
}

/* ----- FIXED HEADER ----- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100vw;
    background: white;
    box-shadow: 0 4px 16px rgba(0, 20, 40, 0.08);
    z-index: 1000;
}

.logo-row {
    background: white;
    padding: 0.6rem 2rem;
    border-bottom: 1px solid rgba(13, 71, 161, 0.1);
}

.company-logo {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem 2rem;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.company-logo img {
    height: 56px;
    width: auto;
    display: block;
    border-radius: 12px;
}

/* Slogan - visible on desktop, hidden on mobile */
.slogan-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: -0.01em;
    background: #e3f2fd;
    padding: 0.4rem 1.4rem;
    border-radius: 40px;
    white-space: nowrap;
    border: 1px solid rgba(13,71,161,0.2);
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

/* Header CTA (Log In / Sign Up) */
.header-cta {
    display: flex;
    gap: 12px;
}

.header-cta a {
    background: var(--primary);
    color: white;
    text-decoration: none;
    padding: 0.4rem 1.4rem;
    border-radius: 30px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: 0.2s;
    white-space: nowrap;
}

.header-cta a:hover {
    background: #1565c0;
}

.header-cta a.signup {
    background: #4CAF50;
}

.header-cta a.signup:hover {
    background: #3d8b40;
}

/* Navigation row (blue) */
.nav-row {
    background: var(--primary);
    color: white;
    padding: 0;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
}

.main-nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0.1rem 2rem;
}

.nav-links {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
    gap: 0.2rem;
}

.nav-links li a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 0.4rem 1.2rem;
    font-weight: 500;
    border-radius: 30px;
    transition: background 0.2s;
    font-size: 0.95rem;
}

.nav-links li a:hover {
    background: var(--accent);
}

/* Welcome Banner */
.welcome-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 24px;
    padding: 2rem;
    margin: 0 auto 2rem auto;
    color: white;
    position: relative;
    overflow: hidden;
    max-width: 700px;
    width: 100%;
}

.welcome-banner h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.welcome-banner p {
    font-size: 1.2rem;
    line-height: 1.5;
}

/* Hero */
.hero {
    max-width: 1200px;
    text-align: center;
    padding-top: 20px;
    padding-bottom: 30px;
    margin-top: 10px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: var(--shadow-sm);
    border-radius: 24px;
}

.hero h1, .hero p { 
    padding-left: 20px; 
    padding-right: 20px; 
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: white;
    max-width: 700px;
    margin: 0 auto;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 10px 24px;
    border-radius: 24px;
    text-align: left;
}

.social-proof {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 20px 20px;
    background: #ffffff;
    font-size: 16px;
    font-weight: 500;
    text-align: left;
    flex-wrap: wrap;
    border-radius: 24px;
    margin-top: 20px;
    box-shadow: var(--shadow-sm);
}

.proof-item {
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ----- FORM CONTAINER ----- */
.form-container {
    max-width: 720px;
    width: 100%;
    margin: 0 auto 40px;
    background: white;
    border-radius: 40px;
    padding: 15px 48px;
    padding-top: 20px;
    padding-bottom: 0;
    margin-top: 0;
    margin-bottom: 0;     
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(13,71,161,0.08);
}

.form-group { 
    margin-bottom: 28px; 
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary);
}

/* Larger dream input */
.larger-dream-label {
    font-size: 1.2rem !important;
}

/* Fix for anchor links with fixed header */
#dream-label {
    scroll-margin-top: 150px;
    display: block;
}

input[type="text"],
textarea,
select {
    width: 100%;
    padding: 16px 18px;
    border: 2px solid #8aa0c0;
    border-radius: var(--radius-input);
    font-size: 1rem;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea { 
    min-height: 200px; 
}

.char-counter { 
    text-align: right; 
    font-size: 0.9rem; 
    color: #4a5568; 
}

.char-limit-bar { 
    height: 6px; 
    background: #e2e8f0; 
    border-radius: 12px; 
    margin-top: 8px; 
}

.char-limit-fill { 
    height: 100%; 
    background: var(--primary); 
    width: 0%; 
    transition: width 0.2s; 
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    background: #f4f8fd;
    padding: 16px 20px;
    border-radius: 30px;
}

.checkbox-group { 
    display: inline-flex; 
    align-items: center; 
    gap: 8px; 
}

.submit-btn {
    background: linear-gradient(105deg, #0d47a1, #1565c0);
    color: white;
    border: none;
    padding: 18px 28px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    width: 100%;
    box-shadow: 0 8px 18px rgba(13,71,161,0.3);
    transition: opacity 0.2s, background 0.2s;
}

.submit-btn:disabled {
    opacity: 0.5;
    background: #a0aec0;
    box-shadow: none;
    cursor: not-allowed;
}

.insight-box {
    background: #e3f2fd;
    border-radius: 40px;
    padding: 1.8rem 2rem;
    max-width: 720px;
    margin: 0 auto 30px;
    text-align: left;
    color: #0d47a1;
    font-weight: bold;
    font-size: 1.5rem;
    box-shadow: var(--shadow-sm);
}

/* =============================================
   DREAM INTERPRETATION STYLES
   ============================================= */

/* Interpretation Header */
.interpretation-header {
    color: #0d47a1;
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

/* Dream Text Box */
.dream-text-box {
    background: #e8f0fe;
    padding: 15px;
    border-radius: 16px;
    margin-bottom: 25px;
    font-style: italic;
    border-left: 4px solid #0d47a1;
    font-size: 1rem;
    line-height: 1.5;
}

/* Style Badges - Color coded by interpretation style */
.style-badge-container {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.style-badge-jungian {
    background: #0d47a1;
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.style-badge-freudian {
    background: #c62828;
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.style-badge-modern {
    background: #2e7d32;
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.style-badge-spiritual {
    background: #6a1b9a;
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Badges Container - Style and Emotion side by side */
.badges-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* Emotion Badge */
.emotion-badge {
    background: #e8f0fe;
    color: #0d47a1;
    padding: 0.3rem 1rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(13, 71, 161, 0.2);
}

/* Core Theme Box */
.core-theme-box {
    background: linear-gradient(135deg, #0d47a1 0%, #1565c0 100%);
    padding: 25px;
    border-radius: 16px;
    margin: 25px 0;
    color: white;
    box-shadow: 0 10px 30px rgba(13, 71, 161, 0.3);
}

.core-theme-title {
    margin-top: 0;
    margin-bottom: 10px;
    color: rgba(255,255,255,0.9);
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.core-theme-text {
    font-size: 1.2rem;
    font-style: italic;
    margin: 0;
    line-height: 1.5;
}

/* Symbols Section */
.symbols-list {
    margin: 25px 0;
}

.symbols-title {
    color: #0d47a1;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.symbol-card {
    background: #f8f9ff;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 12px;
    border-left: 4px solid #0d47a1;
}

.symbol-name {
    font-weight: bold;
    color: #0d47a1;
    font-size: 1.1rem;
}

.symbol-meaning {
    color: #555;
    margin-left: 8px;
    font-size: 1rem;
}

/* Wisdom / Insight / Guidance Box */
.wisdom-box {
    background: #fff8e7;
    padding: 20px;
    border-radius: 16px;
    margin: 25px 0 40px 0;
    border-left: 4px solid #ffb74d;
}

.wisdom-title {
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: bold;
    color: #0d47a1;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.wisdom-text {
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.6;
    color: #333;
}

/* Interpret Another Button */
.interpret-another-container {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 20px;
}

.interpret-another-btn {
    width: auto;
    padding: 14px 32px;
    background: linear-gradient(105deg, #0d47a1, #1565c0);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(13, 71, 161, 0.3);
    transition: all 0.3s;
    margin: 0 auto;
    display: inline-block;
}

.interpret-another-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 71, 161, 0.4);
}

/* Auto-save indicator styles */
#auto-save-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #4CAF50;
    color: white;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10000;
    pointer-events: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 8px;
}

.auto-save-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #4CAF50;
    color: white;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    width: max-content;
    max-width: calc(100% - 40px);
    box-sizing: border-box;
}

.restore-notification-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #2196F3;
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14px;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: opacity 0.3s ease;
    width: max-content;
    max-width: calc(100% - 40px);
    box-sizing: border-box;
}

.restore-clear-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.2s;
}

.restore-clear-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Slide in animation */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* How it works */
#how-it-works {
    max-width: 1000px;
    margin: 20px auto 40px;
    padding: 0 20px;
}

.section-heading {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    margin-bottom: 30px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card {
    background: white;
    padding: 24px 20px;
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.card h3 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #0d47a1;
    margin-bottom: 10px;
    text-align: left;
}

.card p {
    font-size: 1.2rem;
    color: #2c3e50;
    text-align: left;
}

/* ===== POPULAR DREAM MEANINGS ===== */
.popular-dreams {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.popular-dreams h2 {
    margin-bottom: 30px;
}

.dream-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.dream-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: white;
    padding: 25px 15px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-dark);
    border: 1px solid rgba(13,71,161,0.05);
}

.dream-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
    background: linear-gradient(145deg, #ffffff, #f5f9ff);
}

.dream-emoji {
    font-size: 2.5rem;
    margin-bottom: 12px;
    line-height: 1;
}

.dream-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary);
}

/* ===== TESTIMONIAL CAROUSEL ===== */
.testimonials {
    padding: 40px 20px 50px;
    background: #ffffff;
    text-align: center;
    border-radius: 48px;
    margin: 30px 0;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.testimonial-heading {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 30px;
    position: relative;
}

.testimonial-heading:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary);
    margin: 12px auto 0;
    border-radius: 2px;
}

.carousel-container {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    overflow: hidden;
    padding: 10px 0;
    touch-action: pan-y pinch-zoom; /* Permits vertical page scrolling while enabling JS gesture captures */
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
    will-change: transform;
    -webkit-transform-style: preserve-3d;
    -webkit-backface-visibility: hidden;
}

.testimonial-card {
    flex: 0 0 calc(33.333% - 14px);
    margin: 0 7px;
    background: #f8f9fc;
    padding: 28px 25px;
    border-radius: 24px;
    box-shadow: 0 5px 18px rgba(0,0,0,0.03);
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(13,71,161,0.05);
    position: relative;
    overflow: visible;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(13,71,161,0.1);
    border-color: rgba(13,71,161,0.15);
}

.testimonial-card:before {
    content: '"';
    font-size: 4rem;
    font-family: serif;
    color: var(--primary);
    opacity: 0.2;
    position: absolute;
    top: -5px;
    left: 10px;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #2c3e50;
    margin-bottom: 20px;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.95rem;
    border-top: 1px solid rgba(13,71,161,0.1);
    padding-top: 15px;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.testimonial-author:before {
    content: '-';
    color: var(--primary);
    font-weight: normal;
}

.testimonial-badge {
    position: absolute;
    top: -8px;
    right: 15px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #1e2a3a;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3);
    z-index: 10;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(2px);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
}

/* Why Do We Dream */
.why-dream {
    margin: 20px auto 40px;
    padding: 0 20px;
}

.why-section-heading {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    margin-bottom: 30px;
}

.why-dream p {
    font-size: 1.2rem;	
    color: var(--primary);	 
    text-align: center;
    max-width: 800px;	 
    margin: 0 auto 40px;	
    font-weight: 500;  
}

.why-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.why-card {
    background: white;
    padding: 24px 20px;
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.why-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.why-card h3 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #0d47a1;
    margin-bottom: 10px;
    text-align: left;
}

.why-card p {
    font-size: 1.2rem;
    color: #2c3e50;
    text-align: left;
}

/* The Go Pro Pulse Effect */
.pro-btn {
    background: linear-gradient(-45deg, #1e3a8a, #3b82f6, #fbbf24, #1e3a8a);
    background-size: 400% 400%;
    animation: liquidLight 3s ease infinite;
    border: none;
    color: white;
    font-size: 1.1rem; 
    font-weight: bold;
    padding: 15px 30px;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    transition: transform 0.2s;
}

.pro-btn:hover {
    transform: scale(1.05);
}

@keyframes liquidLight {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Container for the "Wall" */
.limit-box {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #fbbf24;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    margin-top: 20px;
    animation: fadeIn 0.5s ease;
}

/* Button loading spinner */
.btn-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: btn-spin 1s ease-in-out infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes btn-spin {
    to { transform: rotate(360deg); }
}

.submit-btn.loading {
    opacity: 0.8;
    cursor: wait;
    pointer-events: none;
}

.submit-btn.loading:hover {
    transform: none;
    box-shadow: 0 5px 15px rgba(13, 71, 161, 0.3);
}

/* Streaming indicator fade out */
.streaming-indicator {
    transition: opacity 0.5s ease;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.dot.active {
    background: var(--primary);
    transform: scale(1.3);
}

footer {
    background: white;
    padding: 32px 24px;
    text-align: center;
    border-top: 1px solid #eef2f6;
    width: 100%;
    border-radius: 40px 40px 0 0;
}

.footer-logo {
    text-align: center;
    margin: 20px 0 5px 0;
}

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

/* ===== SCIENCE OF SLEEP SECTION ===== */
.science-section {
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.science-container {
    background: white;
    border-radius: 32px;
    padding: 30px;
    margin-top: 20px;
    border: 1px solid rgba(13, 71, 161, 0.1);
    box-shadow: var(--shadow-sm);
}

.science-title {
    color: var(--primary);
    margin-bottom: 25px;
    font-size: 1.8rem;
    font-weight: 700;
    text-align: left;
}

.science-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 10px;
}

.science-card {
    padding: 25px 20px;
    border-radius: 20px;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.science-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.science-card-blue {
    background: #e3f2fd;
}

.science-card-green {
    background: #e8f5e9;
}

.science-card-orange {
    background: #fff3e0;
}

.science-card-title {
    display: block;
    margin-bottom: 12px;
    font-size: 1.2rem;
    font-weight: 700;
}

.science-card-blue .science-card-title {
    color: var(--primary);
}

.science-card-green .science-card-title {
    color: #2e7d32;
}

.science-card-orange .science-card-title {
    color: #e65100;
}

.science-card-text {
    color: var(--text-soft);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.science-insights {
    background: linear-gradient(145deg, #f0f7ff, #e8f0fe);
    border-radius: 28px;
    padding: 35px 40px;
    margin: 40px 0 30px 0;
    box-shadow: var(--shadow-sm);
}

.science-insights-content {
    max-width: 900px;
    margin: 0 auto;
}

.science-insights p {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.science-insights p:last-child {
    margin-bottom: 0;
}

.science-insights-highlight {
    font-weight: 600;
    color: var(--primary);
    font-size: 1.2rem !important;
    padding-top: 10px;
    border-top: 2px dashed rgba(13, 71, 161, 0.2);
}

.science-bottom-bold {
    font-weight: 700;
    color: var(--primary);
}

.science-cta {
    margin: 30px 0 50px 0;
    text-align: center;
}

.science-button {
    display: inline-block;
    background: var(--primary);
    color: white;
    text-decoration: none;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 8px 18px rgba(13, 71, 161, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.science-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(13, 71, 161, 0.4);
    background: #1565c0;
}

/* ===== TABLET MEDIA QUERIES ===== */
@media (min-width: 769px) and (max-width: 992px) {
    .testimonial-card {
        flex: 0 0 calc(50% - 15px);
        margin: 0 7px;
    }

    .dream-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .science-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .science-title {
        font-size: 1.6rem;
    }
    
    .science-insights {
        padding: 30px 25px;
    }
    
    .science-insights p {
        font-size: 1.1rem;
    }
}

/* ===== MOBILE MEDIA QUERIES ===== */
@media (max-width: 768px) {
    body { 
        padding-top: 0;
    }

    .site-header {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        box-shadow: 0 2px 8px rgba(0, 20, 40, 0.05);
    }
   
    .logo-row { 
        padding: 0.5rem 1rem; 
    }

    .main-nav {
        padding: 0.2rem 1rem;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .company-logo {
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem;
    }
    
    .logo-group { 
        flex: 0 0 auto;
    }

    .company-logo img { 
        height: 42px;
    }

    .slogan-text { 
        display: none; 
    }
    
    .header-cta {
        flex-direction: column;
        gap: 6px;
        margin-left: auto;
        flex: 0 0 auto;
    }
    
    .header-cta a {
        padding: 0.25rem 1rem;
        font-size: 0.8rem;
        text-align: center;
        min-width: 70px;
        display: block;
    }    

    /* Safari-only Overrides */
    @supports (-webkit-hyphens:none) {
        html, body {
            font-size: 22px !important;
        }

        .company-logo img { 
            height: 52px !important; 
        }

        .header-cta a {
            font-size: 0.95rem !important;
            padding: 0.4rem 1.1rem !important;
        }

        .social-proof {
            font-size: 0.95rem !important;
            gap: 14px !important;
            padding: 24px 20px !important;
        }
        
        .proof-item {
            line-height: 1.2 !important;
        }

        textarea {
            -webkit-appearance: none;
            box-sizing: border-box;
            min-height: 280px !important;
            padding: 16px !important;
            line-height: 1.5 !important;
        }

        .auto-save-toast {
            font-size: 19px !important;
            padding: 14px 22px !important;
            bottom: 24px !important;
            right: 20px !important;
            line-height: 1.4 !important;
        }
 
        .restore-notification-toast {
            font-size: 19px !important;       
            padding: 16px 22px !important;    
            bottom: 24px !important;          
            right: 20px !important;
            gap: 14px !important;             
        }

        .restore-clear-btn {
            font-size: 16px !important;
            padding: 6px 12px !important;     
            font-weight: 500 !important;
        }

		.dot {
    			width: 15px;
    			height: 15px;
    			border-radius: 50%;
    			background: #ccc;
    			cursor: pointer;
    			transition: background 0.3s ease, transform 0.2s ease;
    			/* Safari click fix */
    			-webkit-tap-highlight-color: transparent;
    			touch-action: manipulation;
		}

    }

    .badges-container {
        justify-content: flex-start;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .core-theme-text {
        font-size: 1rem;
    }
    
    .symbol-name {
        font-size: 1rem;
    }
    
    .wisdom-text {
        font-size: 0.95rem;
    }
    
    .interpretation-header {
        font-size: 1.3rem;
    }

    .nav-links {
        overflow-x: auto;
        white-space: nowrap;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 2px;
    }

    .hero {
        padding-top: 10px;
        padding-bottom: 0;
        margin-top: 0;
        margin-bottom: 0;
        border-radius: 20px;
    }
    
    .hero-title {
        font-size: 1.6rem;
        text-align: left;
        margin-bottom: 8px;
    }


    .hero-subtitle {
        font-size: 1.2rem;
        font-weight: 500;
        padding: 8px 16px;
        text-align: left;
        margin-bottom: 0;
        border-radius: 20px;
    }

    .welcome-banner {
        margin: 0.2rem 1rem 1rem 1rem;
        padding: 1.2rem;
        border-radius: 20px;
        width: auto;
        max-width: 100% !important;
    }
    
    .welcome-banner h1 {
        font-size: 1.3rem;
        line-height: 1.3;
        margin-bottom: 0.75rem;
        text-align: left;
    }
    
    .welcome-banner p {
        font-size: 1.1rem;
        line-height: 1.4;
        text-align: left;
    }

    textarea {
        min-height: 200px;
        padding: 16px;
        font-size: 1.1rem !important;
    }

    input, select {
        padding: 16px;
        font-size: 1.1rem;
    }

    .form-container { 
        padding: 10px 20px; 
    }

    .social-proof {
        flex-direction: column;
        gap: 10px;
        font-size: 15px;
    }

    #dream-label {
        scroll-margin-top: 20px;
    }

    .auto-save-toast {
        display: none !important;
    }

    #how-it-works {
        margin-bottom: 10px;
    }

    .section-heading {
        text-align: left;
    }

    .why-dream {
        padding: 0 15px !important;
    }
    
    .why-dream p {
        margin-left: 0 !important;
        padding-left: 0 !important;
        text-align: left;
    }

    .why-section-heading {
        font-size: 1.8rem;
        font-weight: 700;
        text-align: left;
    }
    
    .steps, .why-steps {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .testimonials {
        margin-top: 10px;
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .testimonial-badge {
        top: -5px;
        right: 10px;
        font-size: 0.7rem;
        padding: 3px 10px;
    }

    .dream-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .dream-item {
        padding: 20px 10px;
    }

    .dream-emoji {
        font-size: 2rem;
        margin-bottom: 8px;
    }

    .dream-name {
        font-size: 1rem;
    }

    .carousel-container {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .testimonial-card {
        flex: 0 0 calc(100% - 14px) !important;
        margin: 0 7px;
    }

    .footer-logo {
        margin-top: 5px !important;
        margin-bottom: 10px;
    }
    
    .testimonial-heading {
        font-size: 1.8rem;
        text-align: left;
        padding-left: 0;
    }

    .testimonial-heading:after {
        margin-left: 0;
    }

    .science-section {
        padding: 0 15px;
    }
    
    .science-container {
        padding: 20px;
    }
    
    .science-grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
    
    .science-card {
        padding: 20px;
    }
    
    .science-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
        text-align: left;
    }
    
    .science-insights {
        padding: 25px 20px;
        margin: 30px 0 20px 0;
    }
    
    .science-insights p {
        font-size: 1.05rem;
        line-height: 1.6;
        margin-bottom: 15px;
    }
    
    .science-insights-highlight {
        font-size: 1.1rem !important;
    }
    
    .science-button {
        padding: 14px 28px;
        font-size: 1rem;
        width: 100%;
        max-width: 300px;
    }
}