/* ============================================================
   CALM PARENTHOOD — MOBILE-FIRST STYLESHEET
   Base styles = mobile (< 640px)
   @media (min-width: 640px)  = tablet
   @media (min-width: 968px)  = desktop
   @media (min-width: 1200px) = wide desktop
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary:       #6366f1;
    --primary-light: #818cf8;
    --primary-dark:  #4f46e5;
    --secondary:     #10b981;
    --accent:        #f59e0b;
    --danger:        #ef4444;
    --dark:          #0f172a;
    --gray-900:      #111827;
    --gray-800:      #1f2937;
    --gray-700:      #374151;
    --gray-600:      #4b5563;
    --gray-500:      #6b7280;
    --gray-400:      #9ca3af;
    --gray-300:      #d1d5db;
    --gray-200:      #e5e7eb;
    --gray-100:      #f3f4f6;
    --gray-50:       #f9fafb;
}

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--gray-900);
    background: #fff;
    overflow-x: hidden;
    line-height: 1.6;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

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

/* Animations */
@keyframes gradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50%       { transform: translate(30px, 30px); }
}
@keyframes bookFloat {
    0%, 100% { transform: translate(-50%, -50%) rotateY(0deg); }
    50%       { transform: translate(-50%, -54%) rotateY(4deg); }
}
@keyframes floatBadge {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}
@keyframes messageSlide {
    from { opacity: 0; transform: translateX(-20px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@keyframes arrowPulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50%       { opacity: 1;   transform: scale(1.1); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes popupSlide {
    from { opacity: 0; transform: translate(-50%, -45%); }
    to   { opacity: 1; transform: translate(-50%, -50%); }
}
@keyframes fadeInContent {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Layout ── */
.container { width: 100%; padding: 0 20px; margin: 0 auto; }
@media (min-width: 640px)  { .container { padding: 0 28px; } }
@media (min-width: 968px)  { .container { padding: 0 40px; } }
@media (min-width: 1200px) { .container { max-width: 1200px; } }

.section { padding: 64px 0; position: relative; }
@media (min-width: 640px)  { .section { padding: 80px 0; } }
@media (min-width: 968px)  { .section { padding: 100px 0; } }

/* ── Navigation ── */
.nav {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 99;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}
.nav.scrolled { padding: 12px 0; box-shadow: 0 2px 30px rgba(0,0,0,0.1); }
.nav-container { display: flex; justify-content: space-between; align-items: center; padding: 0 20px; }
@media (min-width: 968px) { .nav { padding: 20px 0; } .nav-container { padding: 0 40px; } }

.logo {
    font-size: 22px; font-weight: 700; font-family: 'Space Grotesk', sans-serif;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    display: flex; align-items: center; gap: 10px;
}
@media (min-width: 968px) { .logo { font-size: 28px; } }

.logo-image { 
    height: 50px; 
    width: auto; 
    object-fit: contain; 
}
@media (min-width: 968px) { 
    .logo-image { 
        height: 60px; 
    } 
}

.logo-placeholder { display: flex; align-items: center; gap: 10px; }
.logo-placeholder svg { flex-shrink: 0; }
.logo-placeholder span {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    font-size: 20px; font-weight: 700;
}
@media (min-width: 968px) { .logo-placeholder span { font-size: 24px; } }

.nav-links { display: none; }
@media (min-width: 968px) {
    .nav-links { display: flex; gap: 40px; list-style: none; align-items: center; }
    .nav-links a { color: var(--gray-700); text-decoration: none; font-weight: 500; font-size: 15px; transition: color 0.3s; position: relative; }
    .nav-links a::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px; background: var(--primary); transition: width 0.3s; }
    .nav-links a:hover { color: var(--primary); }
    .nav-links a:hover::after { width: 100%; }
}

/* ── Buttons ── */
.btn {
    padding: 12px 24px; border-radius: 10px; font-weight: 600; font-size: 15px;
    text-decoration: none; transition: all 0.3s; display: inline-block;
    border: none; cursor: pointer; font-family: 'DM Sans', sans-serif; text-align: center;
}
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: white; box-shadow: 0 4px 20px rgba(99,102,241,0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 30px rgba(99,102,241,0.4); }
.btn-outline { border: 2px solid var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: white; }

/* Full-width on mobile, auto on larger screens */
.btn-lg { padding: 16px 28px; font-size: 17px; border-radius: 12px; width: 100%; display: block; }
@media (min-width: 640px) { .btn-lg { padding: 18px 40px; font-size: 18px; width: auto; display: inline-block; } }

/* ── Section Header ── */
.section-header { text-align: center; max-width: 800px; margin: 0 auto 48px; }
@media (min-width: 968px) { .section-header { margin-bottom: 80px; } }

.section-badge { display: inline-block; background: linear-gradient(135deg, #ddd6fe, #c7d2fe); color: #5b21b6; padding: 6px 16px; border-radius: 20px; font-size: 12px; font-weight: 600; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.5px; }
@media (min-width: 640px) { .section-badge { font-size: 13px; } }

.section-header h2 { font-size: 28px; margin-bottom: 16px; }
@media (min-width: 640px) { .section-header h2 { font-size: 36px; } }
@media (min-width: 968px) { .section-header h2 { font-size: 52px; } }

.section-header p { font-size: 16px; color: var(--gray-600); }
@media (min-width: 968px) { .section-header p { font-size: 20px; } }

/* ── Hero ── */
.hero {
    min-height: 100svh;
    display: flex; align-items: center;
    background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
    position: relative; overflow: hidden;
    padding: 80px 0 60px;
}
@media (min-width: 968px) { .hero { padding: 0; min-height: 90vh; } }

.hero::before {
    content: ''; position: absolute; top: -30%; right: -20%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(99,102,241,0.1) 0%, transparent 70%);
    border-radius: 50%; animation: float 20s ease-in-out infinite; pointer-events: none;
}
@media (min-width: 968px) { .hero::before { width: 800px; height: 800px; } }

.hero::after {
    content: ''; position: absolute; bottom: -30%; left: -20%;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(16,185,129,0.1) 0%, transparent 70%);
    border-radius: 50%; animation: float 25s ease-in-out infinite reverse; pointer-events: none;
}
@media (min-width: 968px) { .hero::after { width: 600px; height: 600px; } }

.hero-content { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
@media (min-width: 968px) { .hero-content { grid-template-columns: 1fr 1fr; gap: 80px; } }

.hero-text { animation: fadeInUp 0.8s ease; }

.hero-badge { display: inline-block; background: linear-gradient(135deg, #fef3c7, #fde68a); color: #92400e; padding: 7px 16px; border-radius: 30px; font-size: 13px; font-weight: 600; margin-bottom: 20px; animation: fadeInUp 0.8s ease 0.1s both; }
@media (min-width: 640px) { .hero-badge { font-size: 14px; padding: 8px 20px; margin-bottom: 24px; } }

.hero h1 { font-size: 36px; margin-bottom: 20px; animation: fadeInUp 0.8s ease 0.2s both; }
@media (min-width: 640px)  { .hero h1 { font-size: 44px; } }
@media (min-width: 968px)  { .hero h1 { font-size: 58px; } }
@media (min-width: 1200px) { .hero h1 { font-size: 64px; } }

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.hero p { font-size: 16px; color: var(--gray-600); margin-bottom: 28px; line-height: 1.7; animation: fadeInUp 0.8s ease 0.3s both; }
@media (min-width: 640px) { .hero p { font-size: 18px; } }
@media (min-width: 968px) { .hero p { font-size: 20px; margin-bottom: 32px; } }

/* Trust badges: column on tiny screens, row on wider */
.trust-badges { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; animation: fadeInUp 0.8s ease 0.5s both; }
@media (min-width: 480px) { .trust-badges { flex-direction: row; flex-wrap: wrap; gap: 20px; } }
@media (min-width: 968px) { .trust-badges { gap: 32px; margin-bottom: 32px; } }

.trust-badge { display: flex; align-items: center; gap: 8px; color: var(--gray-600); font-size: 14px; font-weight: 500; }
@media (min-width: 640px) { .trust-badge { font-size: 15px; gap: 10px; } }
.trust-badge svg { width: 18px; height: 18px; color: var(--secondary); flex-shrink: 0; }

/* CTA row: stacked on mobile */
.hero-cta { display: flex; flex-direction: column; gap: 12px; animation: fadeInUp 0.8s ease 0.4s both; }
@media (min-width: 480px) { .hero-cta { flex-direction: row; flex-wrap: wrap; gap: 16px; } }

/* Book visual hidden on small mobile — content first */
.hero-visual { display: none; animation: fadeInUp 0.8s ease 0.6s both; }
@media (min-width: 640px) { .hero-visual { display: block; } }

.mockup-container { position: relative; width: 100%; height: 420px; }
@media (min-width: 968px) { .mockup-container { height: 600px; } }

.book-mockup {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 240px; height: 300px;
    border-radius: 16px; box-shadow: 0 30px 60px rgba(0,0,0,0.2);
    animation: bookFloat 6s ease-in-out infinite; overflow: hidden;
}
@media (min-width: 640px)  { .book-mockup { width: 300px; height: 380px; } }
@media (min-width: 968px)  { .book-mockup { width: 360px; height: 450px; border-radius: 20px; } }
@media (min-width: 1200px) { .book-mockup { width: 400px; height: 500px; } }

.book-cover-img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }

.floating-badge { display: none; position: absolute; background: white; padding: 12px 18px; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,0.15); font-weight: 600; font-size: 13px; animation: floatBadge 4s ease-in-out infinite; }
@media (min-width: 968px) { .floating-badge { display: block; padding: 16px 24px; font-size: 14px; } }

.badge-1 { top: 50px;  left: -20px;  color: var(--secondary); animation-delay: 0s; }
.badge-2 { bottom: 80px; right: -20px; color: var(--primary);   animation-delay: 1s; }
.badge-3 { top: 200px; right: -30px; color: var(--accent);    animation-delay: 2s; }
@media (min-width: 1200px) { .badge-1 { left: -40px; } .badge-2 { right: -40px; } .badge-3 { right: -60px; } }

/* ── Comparison Section ── */
.comparison-section { background: linear-gradient(180deg, #f8fafc 0%, #ffffff 50%, #f8fafc 100%); position: relative; overflow: hidden; }
.comparison-section::before { content: ''; position: absolute; top: -30%; right: -10%; width: 400px; height: 400px; background: radial-gradient(circle, rgba(99,102,241,0.05) 0%, transparent 70%); border-radius: 50%; pointer-events: none; }
.comparison-section .section-header h2, .comparison-section .section-header p { color: var(--gray-900); }
.comparison-section .section-badge { background: linear-gradient(135deg, #ddd6fe, #c7d2fe); color: #5b21b6; }

.comparison-wrapper { display: grid; grid-template-columns: 1fr; gap: 24px; position: relative; z-index: 1; }
@media (min-width: 768px) { .comparison-wrapper { grid-template-columns: 1fr 1fr; gap: 32px; } }

.comparison-side {
    background: rgba(255,255,255,0.8); backdrop-filter: blur(10px);
    border: 3px solid transparent; background-clip: padding-box;
    border-radius: 20px; padding: 28px 22px;
    transition: all 0.4s; box-shadow: 0 4px 20px rgba(30,58,138,0.08); position: relative;
}
@media (min-width: 640px) { .comparison-side { padding: 36px 30px; } }
@media (min-width: 968px) { .comparison-side { padding: 48px 40px; border-radius: 24px; } }

.comparison-side::before {
    content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 3px;
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.comparison-side:hover { transform: translateY(-6px); box-shadow: 0 20px 60px rgba(99,102,241,0.2); }
.comparison-side:hover::before { background: linear-gradient(135deg, #667eea, #764ba2, #f093fb, #4facfe); }

.comparison-header { text-align: center; margin-bottom: 28px; padding-bottom: 24px; border-bottom: 2px solid rgba(30,58,138,0.15); }
@media (min-width: 968px) { .comparison-header { margin-bottom: 40px; padding-bottom: 32px; } }

.comparison-icon {
    width: 60px; height: 60px; margin: 0 auto 14px;
    background: linear-gradient(135deg, rgba(102,126,234,0.15), rgba(240,147,251,0.15));
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
}
@media (min-width: 968px) { .comparison-icon { width: 80px; height: 80px; margin-bottom: 20px; } }
.comparison-icon::before { content: ''; position: absolute; inset: 0; border-radius: 50%; padding: 2px; background: linear-gradient(135deg, #667eea, #764ba2, #f093fb); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.comparison-icon svg { position: relative; z-index: 1; }
.comparison-icon svg circle { stroke: url(#iconGradient); }
.comparison-icon svg path  { stroke: url(#iconGradient); }

.comparison-header h3 { font-size: 20px; color: var(--gray-900); }
@media (min-width: 968px) { .comparison-header h3 { font-size: 28px; } }

.comparison-list { display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 968px) { .comparison-list { gap: 24px; } }

.comparison-row { display: flex; gap: 12px; align-items: flex-start; padding: 14px; background: rgba(255,255,255,0.6); border-radius: 12px; border: 1px solid rgba(30,58,138,0.1); transition: all 0.3s; }
@media (min-width: 968px) { .comparison-row { padding: 20px; gap: 16px; } }
.comparison-row:hover { background: rgba(255,255,255,0.9); border-color: rgba(30,58,138,0.3); box-shadow: 0 4px 20px rgba(30,58,138,0.08); }

.row-icon { flex-shrink: 0; margin-top: 2px; }
.row-icon svg circle { stroke: url(#rowIconGradient); }
.row-icon svg path  { stroke: url(#rowIconGradient); }

.row-content h4 { font-size: 15px; font-weight: 700; color: var(--gray-900); margin-bottom: 5px; }
@media (min-width: 968px) { .row-content h4 { font-size: 18px; margin-bottom: 8px; } }
.row-content p { font-size: 13px; color: var(--gray-600); line-height: 1.6; }
@media (min-width: 968px) { .row-content p { font-size: 15px; } }

/* ── Free Preview Section ── */
.free-preview-section { background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 100%); }

.preview-content { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
@media (min-width: 968px) { .preview-content { grid-template-columns: 1fr 1fr; gap: 80px; } }

/* Image first on mobile */
.preview-visual { order: -1; }
@media (min-width: 968px) { .preview-visual { order: 0; } }

.preview-text h2 { font-size: 26px; margin-bottom: 18px; color: var(--gray-900); }
@media (min-width: 640px) { .preview-text h2 { font-size: 34px; } }
@media (min-width: 968px) { .preview-text h2 { font-size: 48px; margin-bottom: 24px; } }

.preview-text p { font-size: 15px; color: var(--gray-600); line-height: 1.7; margin-bottom: 20px; }
@media (min-width: 968px) { .preview-text p { font-size: 20px; margin-bottom: 32px; } }

.preview-features { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.preview-feature { display: flex; align-items: center; gap: 12px; color: var(--gray-700); font-size: 15px; font-weight: 500; min-height: 44px; }
.preview-feature svg { color: var(--secondary); flex-shrink: 0; }

.ebook-page-mockup { position: relative; width: 100%; max-width: 360px; margin: 0 auto; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.15); transition: all 0.4s; }
@media (min-width: 968px) { .ebook-page-mockup { max-width: 450px; box-shadow: 0 30px 80px rgba(0,0,0,0.15); } }
.ebook-page-mockup:hover { transform: translateY(-8px); box-shadow: 0 32px 80px rgba(0,0,0,0.2); }
.preview-cover-img { width: 100%; height: 100%; display: block; border-radius: 16px; }

/* ── Chat / Demo Section ── */
.chat-section { background: linear-gradient(-45deg, #0f172a, #1e293b, #312e81, #1e3a8a); background-size: 400% 400%; animation: gradientShift 15s ease infinite; color: white; overflow: hidden; position: relative; }
.chat-section::before { content: ''; position: absolute; top: -30%; left: -10%; width: 300px; height: 300px; background: radial-gradient(circle, rgba(99,102,241,0.3) 0%, transparent 70%); border-radius: 50%; pointer-events: none; }

.chat-content { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; position: relative; z-index: 1; }
@media (min-width: 968px) { .chat-content { grid-template-columns: 1fr 1fr; gap: 80px; } }

/* Phone mockup first on mobile */
.phone-mockup { order: -1; }
.chat-text    { order: 1;  }
@media (min-width: 968px) { .phone-mockup { order: 1; } .chat-text { order: 2; } }

.chat-text h2 { font-size: 26px; margin-bottom: 18px; }
@media (min-width: 640px) { .chat-text h2 { font-size: 34px; } }
@media (min-width: 968px) { .chat-text h2 { font-size: 48px; margin-bottom: 24px; } }

.chat-text p { font-size: 15px; color: var(--gray-400); line-height: 1.8; margin-bottom: 14px; }
@media (min-width: 968px) { .chat-text p { font-size: 18px; margin-bottom: 20px; } }

.phone-mockup { position: relative; width: 100%; max-width: 300px; margin: 0 auto; }
@media (min-width: 968px) { .phone-mockup { max-width: 350px; } }

.phone-frame { padding: 14px; background: #1f2937; border-radius: 34px; box-shadow: 0 30px 80px rgba(0,0,0,0.5); }
@media (min-width: 968px) { .phone-frame { padding: 20px; border-radius: 40px; } }

.phone-screen { background: white; border-radius: 22px; overflow: hidden; height: 480px; position: relative; }
@media (min-width: 968px) { .phone-screen { height: 600px; border-radius: 30px; } }

.phone-header { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: white; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
@media (min-width: 968px) { .phone-header { padding: 20px; font-size: 16px; } }

.chat-messages { padding: 14px; background: #f9fafb; height: calc(100% - 50px); overflow-y: auto; }
.message { margin-bottom: 12px; animation: messageSlide 0.5s ease; }
.message.user { text-align: right; }
.message.user .bubble { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: white; display: inline-block; padding: 10px 14px; border-radius: 16px 16px 4px 16px; max-width: 85%; text-align: left; font-size: 12px; line-height: 1.5; }
.message.ai .bubble { background: white; color: var(--gray-800); display: inline-block; padding: 10px 14px; border-radius: 16px 16px 16px 4px; max-width: 85%; box-shadow: 0 2px 10px rgba(0,0,0,0.05); font-size: 12px; line-height: 1.5; }

/* ── Features Section ── */
.features-section { background: white; }
.features-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 640px) { .features-grid { grid-template-columns: 1fr 1fr; gap: 22px; } }
@media (min-width: 968px) { .features-grid { grid-template-columns: repeat(3, 1fr); gap: 40px; } }

.feature-card { padding: 26px 22px; border-radius: 16px; background: linear-gradient(135deg, var(--gray-50) 0%, white 100%); border: 2px solid var(--gray-100); transition: all 0.4s; position: relative; overflow: hidden; }
@media (min-width: 968px) { .feature-card { padding: 40px; border-radius: 20px; } }
.feature-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(99,102,241,0.05) 0%, transparent 100%); opacity: 0; transition: opacity 0.4s; }
.feature-card:hover { transform: translateY(-8px); border-color: var(--primary); box-shadow: 0 20px 60px rgba(99,102,241,0.15); }
.feature-card:hover::before { opacity: 1; }

.feature-icon { width: 56px; height: 56px; background: rgba(255,255,255,0.1); border: 2px solid rgba(99,102,241,0.2); border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; font-size: 28px; position: relative; overflow: hidden; }
@media (min-width: 968px) { .feature-icon { width: 70px; height: 70px; font-size: 36px; margin-bottom: 24px; } }
.feature-card h3 { font-size: 17px; margin-bottom: 10px; color: var(--gray-900); }
@media (min-width: 968px) { .feature-card h3 { font-size: 22px; margin-bottom: 12px; } }
.feature-card p { color: var(--gray-600); line-height: 1.7; font-size: 14px; }
@media (min-width: 640px) { .feature-card p { font-size: 15px; } }

/* ── Categories Section ── */
.categories-section { background: linear-gradient(135deg, var(--dark) 0%, var(--gray-900) 100%); position: relative; overflow: hidden; }
.categories-section::before { content: ''; position: absolute; bottom: -20%; left: -10%; width: 400px; height: 400px; background: radial-gradient(circle, rgba(99,102,241,0.2) 0%, transparent 70%); border-radius: 50%; pointer-events: none; }
.categories-section .section-badge { background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1)); color: white; }
.categories-section .section-header h2, .categories-section .section-header p { color: white; }
.categories-showcase { position: relative; z-index: 1; }

.scroll-indicator { display: flex; align-items: center; justify-content: center; gap: 10px; color: rgba(255,255,255,0.6); font-size: 13px; font-weight: 500; margin-bottom: 20px; padding: 10px 16px; background: rgba(255,255,255,0.05); border-radius: 30px; width: fit-content; margin-left: auto; margin-right: auto; }
.scroll-indicator svg { animation: arrowPulse 1.5s ease-in-out infinite; }
.scroll-indicator svg:last-child { animation-delay: 0.75s; }

.category-tabs { display: flex; gap: 8px; margin-bottom: 36px; overflow-x: auto; padding-bottom: 14px; scrollbar-width: thin; scrollbar-color: rgba(99,102,241,0.3) transparent; -webkit-overflow-scrolling: touch; }
@media (min-width: 968px) { .category-tabs { gap: 12px; margin-bottom: 60px; } }
.category-tabs::-webkit-scrollbar { height: 6px; }
.category-tabs::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); border-radius: 10px; }
.category-tabs::-webkit-scrollbar-thumb { background: rgba(99,102,241,0.3); border-radius: 10px; }

.category-tab { padding: 12px 18px; min-height: 48px; background: rgba(255,255,255,0.05); border: 2px solid rgba(255,255,255,0.1); border-radius: 50px; color: rgba(255,255,255,0.7); font-weight: 600; font-size: 13px; cursor: pointer; transition: all 0.3s; white-space: nowrap; display: flex; align-items: center; gap: 8px; }
@media (min-width: 968px) { .category-tab { padding: 16px 28px; font-size: 15px; gap: 10px; } }
.category-tab:hover { background: rgba(255,255,255,0.08); border-color: rgba(99,102,241,0.5); color: white; }
.category-tab.active { background: linear-gradient(135deg, var(--primary), var(--primary-light)); border-color: transparent; color: white; box-shadow: 0 8px 30px rgba(99,102,241,0.4); }

.category-number-badge { width: 26px; height: 26px; background: rgba(255,255,255,0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.category-tab.active .category-number-badge { background: rgba(255,255,255,0.3); }

.category-content-wrapper { position: relative; min-height: 300px; }
.category-content-item { display: none; animation: fadeInContent 0.5s ease; }
.category-content-item.active { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; }
@media (min-width: 968px) { .category-content-item.active { grid-template-columns: 1fr 1fr; gap: 80px; } }

/* Image first on mobile */
.category-visual { order: -1; }
.category-text   { order: 1;  }
@media (min-width: 968px) { .category-visual { order: 1; } .category-text { order: 0; } }

.category-text h3 { font-size: 24px; color: white; margin-bottom: 14px; }
@media (min-width: 640px) { .category-text h3 { font-size: 30px; } }
@media (min-width: 968px) { .category-text h3 { font-size: 42px; margin-bottom: 24px; } }

.category-text p { font-size: 14px; color: rgba(255,255,255,0.7); line-height: 1.8; margin-bottom: 20px; }
@media (min-width: 968px) { .category-text p { font-size: 18px; margin-bottom: 32px; } }

.category-features { display: flex; flex-direction: column; gap: 10px; }
.category-feature-item { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,0.9); font-size: 14px; padding: 8px 0; min-height: 48px; }
@media (min-width: 968px) { .category-feature-item { font-size: 16px; } }
.category-feature-item svg { color: var(--secondary); flex-shrink: 0; }

.category-image-placeholder { width: 100%; height: 260px; background: rgba(255,255,255,0.05); border: 2px solid rgba(255,255,255,0.1); border-radius: 16px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
@media (min-width: 640px)  { .category-image-placeholder { height: 340px; } }
@media (min-width: 968px)  { .category-image-placeholder { height: 500px; border-radius: 20px; } }
.category-image-placeholder::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(99,102,241,0.1), transparent); }
.placeholder-content { position: relative; z-index: 1; text-align: center; color: rgba(255,255,255,0.5); }
.placeholder-content svg { width: 60px; height: 60px; margin-bottom: 14px; opacity: 0.3; }
@media (min-width: 968px) { .placeholder-content svg { width: 80px; height: 80px; } }
.placeholder-content p { font-size: 13px; font-weight: 500; }

/* Category images — same height at every breakpoint for consistent tab switching */
.category-img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 16px;
    display: block;
}
@media (min-width: 640px)  { .category-img { height: 340px; } }
@media (min-width: 968px)  { .category-img { height: 500px; border-radius: 20px; } }

/* ── Testimonials Section ── */
.testimonials-section { background: linear-gradient(-45deg, #667eea, #764ba2, #f093fb, #4facfe, #00f2fe); background-size: 400% 400%; animation: gradientShift 15s ease infinite; color: white; }
.testimonials-section .section-badge { background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1)); color: white; }
.testimonials-section h2 { color: white; }
.testimonials-section .section-header p { color: #f9fafb; }

.testimonials-carousel { position: relative; overflow: hidden; padding: 14px 0; cursor: grab; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.testimonials-carousel:active { cursor: grabbing; }
.testimonials-track { display: flex; gap: 18px; animation: scroll 30s linear infinite; will-change: transform; transition: transform 0.1s ease-out; }
@media (min-width: 640px) { .testimonials-track { gap: 28px; } }
@media (min-width: 968px) { .testimonials-track { gap: 32px; } }
.testimonials-carousel:hover .testimonials-track { animation-play-state: paused; }

.testimonial-card { flex: 0 0 280px; background: rgba(255,255,255,0.1); backdrop-filter: blur(10px); padding: 22px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.15); pointer-events: none; }
@media (min-width: 640px) { .testimonial-card { flex: 0 0 340px; padding: 26px; } }
@media (min-width: 968px) { .testimonial-card { flex: 0 0 400px; padding: 32px; border-radius: 20px; } }
.testimonial-card * { pointer-events: none; }

.stars { color: var(--accent); font-size: 17px; margin-bottom: 12px; }
@media (min-width: 968px) { .stars { font-size: 20px; margin-bottom: 16px; } }

.testimonial-text { font-size: 14px; line-height: 1.7; color: #f9fafb; margin-bottom: 18px; font-style: italic; }
@media (min-width: 640px) { .testimonial-text { font-size: 15px; } }
@media (min-width: 968px) { .testimonial-text { font-size: 16px; margin-bottom: 24px; } }

.testimonial-author { display: flex; align-items: center; gap: 12px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--primary-light)); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; color: white; flex-shrink: 0; }
@media (min-width: 968px) { .avatar { width: 50px; height: 50px; font-size: 18px; } }
.author-info strong { display: block; color: white; font-weight: 600; font-size: 14px; }
.author-info span   { color: #f9fafb; font-size: 13px; }

/* ── Pricing Section ── */
.pricing-section { background: white; }
.pricing-card { max-width: 100%; margin: 0 auto; background: linear-gradient(135deg, var(--gray-50) 0%, white 100%); border-radius: 22px; overflow: hidden; border: 2px solid var(--gray-100); box-shadow: 0 20px 60px rgba(0,0,0,0.1); }
@media (min-width: 640px)  { .pricing-card { max-width: 560px; border-radius: 28px; } }
@media (min-width: 968px)  { .pricing-card { max-width: 700px; border-radius: 30px; } }

.pricing-header { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: white; padding: 32px 24px; text-align: center; position: relative; overflow: hidden; }
@media (min-width: 640px) { .pricing-header { padding: 44px 40px; } }
@media (min-width: 968px) { .pricing-header { padding: 50px; } }
.pricing-header::before { content: ''; position: absolute; top: -50%; right: -50%; width: 200px; height: 200px; background: rgba(255,255,255,0.1); border-radius: 50%; }

.pricing-badge { display: inline-block; background: rgba(255,255,255,0.2); padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 700; text-transform: uppercase; margin-bottom: 14px; letter-spacing: 1px; }
.pricing-header h3 { font-size: 24px; margin-bottom: 6px; }
@media (min-width: 640px) { .pricing-header h3 { font-size: 32px; } }
@media (min-width: 968px) { .pricing-header h3 { font-size: 36px; } }

.pricing-body { padding: 28px 20px; }
@media (min-width: 640px) { .pricing-body { padding: 40px; } }
@media (min-width: 968px) { .pricing-body { padding: 50px; } }

.price-display { text-align: center; margin-bottom: 28px; }
.original-price { font-size: 20px; color: var(--gray-500); text-decoration: line-through; display: block; margin-bottom: 6px; }
@media (min-width: 640px) { .original-price { font-size: 28px; } }
.current-price { font-size: 52px; font-weight: 700; background: linear-gradient(135deg, var(--primary), var(--primary-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1; margin-bottom: 8px; }
@media (min-width: 640px) { .current-price { font-size: 64px; } }
@media (min-width: 968px) { .current-price { font-size: 72px; } }
.price-note { color: var(--gray-600); font-size: 14px; font-weight: 500; }

.features-list { list-style: none; margin-bottom: 32px; max-width: 500px; margin-left: auto; margin-right: auto; }
.features-list li { padding: 13px 0; border-bottom: 1px solid var(--gray-200); display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--gray-700); font-size: 14px; text-align: center; }
@media (min-width: 640px) { .features-list li { font-size: 16px; } }
.features-list li svg { color: var(--secondary); flex-shrink: 0; }
.cta-section-inline { text-align: center; }
.guarantee { text-align: center; margin-top: 18px; color: var(--gray-600); font-size: 13px; display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }

/* ── FAQ Section ── */
.faq-section { background: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%); }
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { background: white; border: 2px solid var(--gray-100); border-radius: 14px; padding: 20px 18px; margin-bottom: 12px; cursor: pointer; transition: all 0.3s; }
@media (min-width: 640px) { .faq-item { padding: 24px 28px; border-radius: 16px; } }
@media (min-width: 968px) { .faq-item { padding: 28px 32px; } }
.faq-item:hover { border-color: var(--primary); }

.faq-question { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 15px; font-weight: 700; color: var(--gray-900); line-height: 1.4; }
@media (min-width: 640px) { .faq-question { font-size: 17px; } }
@media (min-width: 968px) { .faq-question { font-size: 19px; } }

.faq-icon { width: 28px; min-width: 28px; height: 28px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 18px; transition: transform 0.3s; flex-shrink: 0; }
.faq-item.active .faq-icon { transform: rotate(45deg); }

.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding-top 0.3s ease; color: var(--gray-700); line-height: 1.8; font-size: 14px; }
@media (min-width: 640px) { .faq-answer { font-size: 15px; } }
.faq-item.active .faq-answer { max-height: 500px; padding-top: 14px; }

/* ── Final CTA ── */
.final-cta { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: white; text-align: center; position: relative; overflow: hidden; }
.final-cta::before { content: ''; position: absolute; top: -50%; left: -50%; width: 400px; height: 400px; background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%); animation: float 20s ease-in-out infinite; pointer-events: none; }
.final-cta h2 { font-size: 28px; margin-bottom: 18px; position: relative; z-index: 1; }
@media (min-width: 640px) { .final-cta h2 { font-size: 40px; } }
@media (min-width: 968px) { .final-cta h2 { font-size: 56px; margin-bottom: 24px; } }
.final-cta p { font-size: 15px; margin-bottom: 28px; opacity: 0.9; position: relative; z-index: 1; }
@media (min-width: 968px) { .final-cta p { font-size: 20px; margin-bottom: 40px; } }
.final-cta .btn-primary { background: white; color: var(--primary); position: relative; z-index: 1; }
.final-cta .btn-primary:hover { transform: translateY(-4px) scale(1.03); }

/* ── Footer ── */
footer { background: var(--dark); color: white; padding: 52px 0 28px; }
@media (min-width: 968px) { footer { padding: 80px 0 40px; } }

.footer-content { display: grid; grid-template-columns: 1fr; gap: 36px; margin-bottom: 40px; }
@media (min-width: 640px) { .footer-content { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (min-width: 968px) { .footer-content { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px; margin-bottom: 60px; } }

.footer-brand h3 { font-size: 20px; margin-bottom: 12px; background: linear-gradient(135deg, var(--primary-light), white); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
@media (min-width: 968px) { .footer-brand h3 { font-size: 28px; } }
.footer-logo { margin-bottom: 12px; }
.footer-logo-image { height: 40px; width: auto; object-fit: contain; }
@media (min-width: 968px) { .footer-logo-image { height: 50px; } }
.footer-logo-placeholder { display: flex; align-items: center; }
.footer-brand p { color: var(--gray-400); line-height: 1.7; font-size: 14px; }
.footer-links h4 { font-size: 14px; margin-bottom: 14px; color: white; }
.footer-links ul { list-style: none; }
.footer-links a { color: var(--gray-400); text-decoration: none; display: flex; align-items: center; padding: 6px 0; font-size: 14px; transition: color 0.3s; min-height: 44px; }
.footer-links a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 28px; text-align: center; color: var(--gray-500); font-size: 13px; }

/* ── Popups ── */
.popup-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(5px); z-index: 999; animation: fadeIn 0.3s ease; }

.popup {
    display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
    background: white; padding: 36px 20px; border-radius: 18px;
    box-shadow: 0 30px 90px rgba(0,0,0,0.3); z-index: 1000;
    width: 95%; max-width: 500px; text-align: center;
    animation: popupSlide 0.4s ease;
    max-height: 92svh; overflow-y: auto;
}
@media (min-width: 640px) { .popup { padding: 48px 44px; border-radius: 24px; } }
@media (min-width: 968px) { .popup { padding: 60px; border-radius: 30px; } }

.popup-close { position: absolute; top: 14px; right: 14px; background: var(--gray-100); width: 44px; height: 44px; border-radius: 50%; font-size: 26px; cursor: pointer; color: var(--gray-600); display: flex; align-items: center; justify-content: center; text-decoration: none; font-weight: 300; line-height: 1; transition: background 0.3s, color 0.3s; z-index: 1001; }
.popup-close:hover { background: var(--danger); color: white; }

.popup h3 { font-size: 22px; margin-bottom: 12px; color: var(--gray-900); }
@media (min-width: 640px) { .popup h3 { font-size: 28px; margin-bottom: 14px; } }
@media (min-width: 968px) { .popup h3 { font-size: 32px; margin-bottom: 16px; } }
.popup p { color: var(--gray-600); margin-bottom: 20px; font-size: 14px; }
@media (min-width: 640px) { .popup p { font-size: 16px; margin-bottom: 24px; } }
.popup p strong { color: var(--primary); }

/* ── HubSpot overrides ── */
.hubspot-form-container { margin-top: 18px; }
.hubspot-form-container .hs-form { text-align: left; }
.hubspot-form-container .hs-form-field { margin-bottom: 14px; }
.hubspot-form-container .hs-input { width: 100% !important; padding: 14px 16px !important; border: 2px solid var(--gray-200) !important; border-radius: 10px !important; font-size: 16px !important; font-family: 'DM Sans', sans-serif !important; transition: border-color 0.3s !important; }
.hubspot-form-container .hs-input:focus { outline: none !important; border-color: var(--primary) !important; }
.hubspot-form-container .hs-button { width: 100% !important; background: linear-gradient(135deg, var(--primary), var(--primary-light)) !important; color: white !important; padding: 16px 20px !important; border: none !important; border-radius: 12px !important; font-size: 16px !important; font-weight: 700 !important; cursor: pointer !important; transition: all 0.3s !important; font-family: 'DM Sans', sans-serif !important; min-height: 52px !important; }
.hubspot-form-container .hs-button:hover { transform: translateY(-2px) !important; box-shadow: 0 6px 25px rgba(99,102,241,0.4) !important; }
.hubspot-form-container .hs-error-msgs { list-style: none !important; padding: 0 !important; margin-top: 6px !important; }
.hubspot-form-container .hs-error-msg { color: var(--danger) !important; font-size: 13px !important; }
.hubspot-form-container label { display: block !important; margin-bottom: 6px !important; color: var(--gray-700) !important; font-weight: 600 !important; font-size: 14px !important; }
