/* ========================================================================
   EverRoots — Where Family Lives Forever
   Modern Landing Page Styles
   ======================================================================== */

/* ── Design Tokens ── */
:root {
    --primary: #1a6b3c;
    --primary-light: #2E8B57;
    --primary-lighter: #3CB371;
    --primary-dark: #0d4a28;
    --primary-50: rgba(26, 107, 60, 0.08);
    --primary-100: rgba(26, 107, 60, 0.15);

    --accent: #C67C37;
    --accent-light: #dba76a;
    --earth: #5D4037;
    --earth-light: #795548;

    --bg: #FAFAF5;
    --bg-warm: #FFF8F0;
    --bg-card: #FFFFFF;
    --bg-dark: #0a1628;
    --bg-dark-card: rgba(255,255,255,0.06);

    --text: #1a1a2e;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --text-light: #e2e8f0;
    --text-light-muted: rgba(255,255,255,0.6);

    --border: rgba(0,0,0,0.08);
    --border-light: rgba(255,255,255,0.1);

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    --shadow-glow: 0 0 30px rgba(26,107,60,0.2);

    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);

    --nav-h: 72px;
    --section-py: clamp(80px, 10vw, 140px);
    --container-max: 1200px;
    --container-px: clamp(16px, 4vw, 32px);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-h);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
    min-height: 100vh;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--primary-dark); }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul { list-style: none; }

.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
    position: fixed; top: -100%; left: 50%; transform: translateX(-50%);
    padding: 12px 24px; background: var(--primary); color: white;
    border-radius: var(--radius); z-index: 10000; font-weight: 600;
    transition: top 0.2s;
}
.skip-link:focus { top: 8px; color: white; }

/* ── Container ── */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-px);
}

/* Defer rendering work for offscreen sections on first paint */
@supports (content-visibility: auto) {
    #features,
    #legacy,
    #how-it-works,
    #web-platform,
    #app-preview,
    #pricing,
    #early-signals,
    #faq,
    #early-access {
        content-visibility: auto;
        contain-intrinsic-size: 1px 1000px;
    }
}

/* ── Typography ── */
h1, h2, h3, h4, h5 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--primary-lighter), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.text-glow {
    color: var(--primary-lighter);
    text-shadow: 0 0 20px rgba(46,139,87,0.4), 0 0 40px rgba(46,139,87,0.2);
}

/* ── Buttons ── */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-weight: 600; border-radius: var(--radius-full);
    transition: all 0.3s var(--ease); white-space: nowrap;
    text-decoration: none; position: relative; overflow: hidden;
}
.btn::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
    opacity: 0; transition: opacity 0.3s;
}
.btn:hover::before { opacity: 1; }

.btn-sm { padding: 8px 20px; font-size: 0.875rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white; box-shadow: 0 4px 15px rgba(26,107,60,0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26,107,60,0.4);
    color: white;
}

.btn-ghost {
    color: var(--primary); border: 1.5px solid var(--primary-100);
    background: transparent;
}
.btn-ghost:hover { background: var(--primary-50); color: var(--primary); }

.btn-glass {
    background: rgba(255,255,255,0.15); color: var(--text);
    border: 1px solid var(--border); backdrop-filter: blur(10px);
}
.btn-glass:hover { background: rgba(255,255,255,0.25); color: var(--text); }

.btn-outline {
    color: var(--primary); border: 2px solid var(--primary);
    background: transparent;
}
.btn-outline:hover { background: var(--primary); color: white; }

/* ── Section Headers ── */
.section-header { text-align: center; max-width: 680px; margin: 0 auto clamp(40px, 5vw, 64px); }
.section-tag {
    display: inline-block; padding: 6px 16px; border-radius: var(--radius-full);
    background: var(--primary-50); color: var(--primary); font-weight: 600;
    font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1.5px;
    margin-bottom: 16px;
}
.tag-light { background: rgba(255,255,255,0.1); color: var(--primary-lighter); }
.tag-accent { background: rgba(198,124,55,0.12); color: var(--accent); }
.section-title { margin-bottom: 16px; }
.title-light { color: white; }
.section-desc { color: var(--text-secondary); font-size: 1.1rem; }
.desc-light { color: var(--text-light-muted); }

/* ── Particles ── */
.particles {
    position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden;
}
.particle {
    position: absolute; width: 4px; height: 4px; border-radius: 50%;
    background: var(--primary); opacity: 0.15;
    animation: particle-float linear infinite;
}
@keyframes particle-float {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.15; }
    90% { opacity: 0.15; }
    100% { transform: translateY(-20px) rotate(360deg); opacity: 0; }
}

/* ── Scroll Animations ── */
.anim-item {
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out), filter 0.7s var(--ease-out);
}
.anim-item[data-anim="fade-left"] { transform: translateX(40px); }
.anim-item[data-anim="fade-right"] { transform: translateX(-40px); }
.anim-item[data-anim="scale-up"] { transform: scale(0.85); }
.anim-item[data-anim="blur-in"] { transform: translateY(20px); filter: blur(8px); }
.anim-item[data-anim="zoom-rotate"] { transform: scale(0.8) rotate(-3deg); }
.anim-item.anim-visible {
    opacity: 1; transform: translate(0, 0) scale(1) rotate(0);
    filter: blur(0);
}

/* Section parallax float effect */
.section-header .section-tag {
    transition: transform 0.6s var(--ease-out), opacity 0.6s var(--ease-out);
}
.anim-visible .section-tag {
    animation: tag-pop 0.5s var(--ease-out) both;
}
@keyframes tag-pop {
    0% { transform: scale(0.6) translateY(10px); opacity: 0; }
    60% { transform: scale(1.08); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

/* Stagger children in grids */
.anim-stagger > .anim-item:nth-child(1) { transition-delay: 0ms; }
.anim-stagger > .anim-item:nth-child(2) { transition-delay: 80ms; }
.anim-stagger > .anim-item:nth-child(3) { transition-delay: 160ms; }
.anim-stagger > .anim-item:nth-child(4) { transition-delay: 240ms; }
.anim-stagger > .anim-item:nth-child(5) { transition-delay: 320ms; }
.anim-stagger > .anim-item:nth-child(6) { transition-delay: 400ms; }
.anim-stagger > .anim-item:nth-child(7) { transition-delay: 480ms; }
.anim-stagger > .anim-item:nth-child(8) { transition-delay: 560ms; }

/* Scroll-driven section divider line */
.scroll-reveal-line {
    width: 0; height: 2px; margin: 0 auto 40px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    transition: width 1s var(--ease-out);
    border-radius: 2px;
}
.scroll-reveal-line.anim-visible { width: 120px; }

/* Parallax floating icons */
.parallax-float { transition: transform 0.3s ease-out; will-change: transform; }

@media (prefers-reduced-motion: reduce) {
    .anim-item { opacity: 1; transform: none; filter: none; transition: none; }
    .anim-stagger > .anim-item { transition-delay: 0ms !important; }
    .scroll-reveal-line { width: 120px; }
    .parallax-float { transform: none !important; }
}

/* ── Cookie Banner ── */
.cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--bg-card); border-top: 1px solid var(--border);
    padding: 16px var(--container-px); z-index: 9999;
    transform: translateY(100%); transition: transform 0.4s var(--ease);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-content { max-width: var(--container-max); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cookie-content p { font-size: 0.9rem; color: var(--text-secondary); }
.cookie-actions { display: flex; gap: 8px; }

/* ========================================================================
   NAVBAR
   ======================================================================== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 1000; padding: 0;
    background: transparent; transition: all 0.4s var(--ease);
}
.navbar.scrolled {
    background: rgba(250,250,245,0.92);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    box-shadow: 0 1px 20px rgba(0,0,0,0.06);
}
.nav-container {
    max-width: var(--container-max); margin: 0 auto;
    padding: 0 var(--container-px);
    display: flex; align-items: center; justify-content: space-between;
    height: var(--nav-h);
}

.nav-logo {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none; flex-shrink: 0;
}
.logo-icon {
    display: flex; align-items: center; justify-content: center;
}
.logo-text {
    font-family: var(--font-heading); font-size: 1.35rem; font-weight: 700;
    color: var(--text);
}
.logo-accent { color: var(--primary); }

.nav-links {
    display: flex; gap: 4px; align-items: center;
}
.nav-link {
    padding: 8px 16px; font-size: 0.9rem; font-weight: 500;
    color: var(--text-secondary); border-radius: var(--radius);
    transition: all 0.2s var(--ease);
}
.nav-link:hover { color: var(--primary); background: var(--primary-50); }

.nav-actions { display: flex; gap: 8px; align-items: center; }

.nav-toggle {
    display: none; width: 40px; height: 40px;
    flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    border-radius: var(--radius); z-index: 1001;
}
.hamburger-line {
    width: 22px; height: 2px; background: var(--text);
    border-radius: 2px; transition: all 0.3s var(--ease);
}
.nav-toggle.active .hamburger-line:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active .hamburger-line:nth-child(2) { opacity: 0; }
.nav-toggle.active .hamburger-line:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.4); z-index: 999;
    backdrop-filter: blur(4px); opacity: 0; transition: opacity 0.3s;
}
.mobile-overlay.show { display: block; opacity: 1; }

/* ========================================================================
   HERO
   ======================================================================== */
.hero {
    position: relative; min-height: 100vh; display: flex; align-items: center;
    padding: calc(var(--nav-h) + 40px) 0 60px; overflow: hidden;
}

.hero-bg {
    position: absolute; inset: 0; z-index: 0;
}
.hero-gradient {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, #f0f9f4 0%, var(--bg) 40%, var(--bg-warm) 70%, #fef3e2 100%);
}
.hero-orb {
    position: absolute; border-radius: 50%; filter: blur(80px);
    animation: orb-float 8s ease-in-out infinite alternate;
}
.hero-orb-1 { width: 400px; height: 400px; background: rgba(46,139,87,0.12); top: -100px; right: -100px; }
.hero-orb-2 { width: 300px; height: 300px; background: rgba(198,124,55,0.08); bottom: 0; left: -50px; animation-delay: 2s; }
.hero-orb-3 { width: 250px; height: 250px; background: rgba(26,107,60,0.06); top: 50%; left: 40%; animation-delay: 4s; }

@keyframes orb-float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, -20px) scale(1.08); }
}

.hero-container {
    max-width: var(--container-max); margin: 0 auto;
    padding: 0 var(--container-px);
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
    position: relative; z-index: 1;
}

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 16px; border-radius: var(--radius-full);
    background: var(--primary-50); font-size: 0.8rem;
    font-weight: 600; color: var(--primary); margin-bottom: 20px;
}
.badge-pulse {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--primary); position: relative;
}
.badge-pulse::before {
    content: ''; position: absolute; inset: -4px; border-radius: 50%;
    border: 2px solid var(--primary); animation: pulse-ring 2s ease-out infinite;
}
@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}

.hero-title {
    margin-bottom: 20px; letter-spacing: -0.02em;
}
.title-highlight {
    display: block;
    background: linear-gradient(135deg, var(--primary), var(--primary-lighter));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.15rem); color: var(--text-secondary);
    max-width: 520px; margin-bottom: 32px; line-height: 1.8;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-stats {
    display: flex; gap: 24px; align-items: center;
}
.stat-item { text-align: center; }
.stat-number {
    display: block; font-family: var(--font-heading); font-weight: 700;
    font-size: 1.6rem; color: var(--primary);
}
.stat-label { font-size: 0.8rem; color: var(--text-muted); }
.stat-divider {
    width: 1px; height: 32px;
    background: linear-gradient(to bottom, transparent, var(--border), transparent);
}

/* Hero Tree */
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-tree { position: relative; width: 400px; height: 500px; }
.tree-svg { width: 100%; height: 100%; }
.tree-glow {
    position: absolute; top: 20%; left: 15%; width: 70%; height: 60%;
    background: radial-gradient(ellipse, rgba(46,139,87,0.12), transparent 70%);
    border-radius: 50%; filter: blur(30px); animation: tree-breathe 4s ease-in-out infinite;
}
@keyframes tree-breathe {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

/* Tree animation keyframes */
.tree-roots .root { stroke-dasharray: 120; stroke-dashoffset: 120; animation: draw-line 1.5s var(--ease-out) forwards; }
.root.r1 { animation-delay: 0.1s; } .root.r2 { animation-delay: 0.2s; }
.root.r3 { animation-delay: 0.3s; } .root.r4 { animation-delay: 0.4s; } .root.r5 { animation-delay: 0.15s; }

.tree-trunk .trunk { transform-origin: bottom center; animation: grow-trunk 1s var(--ease-out) 0.6s both; }
@keyframes grow-trunk { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.tree-branches .branch { stroke-dasharray: 200; stroke-dashoffset: 200; animation: draw-line 1.2s var(--ease-out) forwards; }
.branch.b1 { animation-delay: 1.2s; } .branch.b2 { animation-delay: 1.3s; }
.branch.b3 { animation-delay: 1.5s; } .branch.b4 { animation-delay: 1.6s; }
.branch.b5 { animation-delay: 1.8s; } .branch.b6 { animation-delay: 1.9s; }
@keyframes draw-line { to { stroke-dashoffset: 0; } }

.tree-leaves .leaf { transform: scale(0); animation: pop-in 0.5s var(--ease-spring) forwards; }
.leaf.l1 { animation-delay: 1.4s; } .leaf.l2 { animation-delay: 1.5s; }
.leaf.l3 { animation-delay: 1.7s; } .leaf.l4 { animation-delay: 1.8s; }
.leaf.l5 { animation-delay: 2.0s; } .leaf.l6 { animation-delay: 2.1s; }
.leaf.l7 { animation-delay: 2.3s; } .leaf.l8 { animation-delay: 2.4s; }
.leaf.l9 { animation-delay: 2.5s; } .leaf.l10 { animation-delay: 2.6s; }
@keyframes pop-in { from { transform: scale(0); } to { transform: scale(1); } }

.tree-features .t-feat { opacity: 0; transform: translateY(20px); animation: feat-slide-in 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.t-feat.f1 { animation-delay: 2.8s; }
.t-feat.f2 { animation-delay: 3.0s; }
.t-feat.f3 { animation-delay: 3.2s; }
.t-feat.f4 { animation-delay: 3.4s; }
.t-feat.f5 { animation-delay: 3.6s; }

@keyframes feat-slide-in {
    to { opacity: 1; transform: translateY(0); }
}

.tree-features .feat-text {
    opacity: 0;
    animation: text-fade-in 0.8s ease forwards;
}

.t-feat.f1 .feat-text { animation-delay: 3.2s; }
.t-feat.f2 .feat-text { animation-delay: 3.4s; }
.t-feat.f3 .feat-text { animation-delay: 3.6s; }
.t-feat.f4 .feat-text { animation-delay: 3.8s; }
.t-feat.f5 .feat-text { animation-delay: 4.0s; }

@keyframes text-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.scroll-indicator span { font-size: 0.75rem; color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; }
.scroll-line {
    width: 2px; height: 40px; background: var(--border); border-radius: 2px;
    position: relative; overflow: hidden;
}
.scroll-dot {
    width: 2px; height: 12px; background: var(--primary); border-radius: 2px;
    animation: scroll-bounce 2s ease-in-out infinite;
}
@keyframes scroll-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(28px); } }

/* ========================================================================
   THREE PILLARS
   ======================================================================== */
.pillars { padding: var(--section-py) 0; }
.pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.pillar-card {
    background: var(--bg-card); border-radius: var(--radius-lg); padding: 40px 32px;
    border: 1px solid var(--border); position: relative; overflow: hidden;
    transition: all 0.4s var(--ease);
}
.pillar-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pillar-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-lighter));
    transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease);
}
.pillar-card:hover::before { transform: scaleX(1); }

.pillar-featured {
    background: linear-gradient(135deg, rgba(26,107,60,0.04), rgba(46,139,87,0.02));
    border-color: var(--primary-100);
}

.pillar-num {
    font-family: var(--font-heading); font-size: 3rem; font-weight: 700;
    color: var(--primary-50); line-height: 1; margin-bottom: 12px;
    background: linear-gradient(to bottom, rgba(26,107,60,0.08), transparent);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.pillar-icon-wrap { margin-bottom: 16px; }
.pillar-icon {
    width: 56px; height: 56px; display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; background: var(--primary-50); border-radius: var(--radius);
}
.pillar-card h3 { margin-bottom: 8px; font-size: 1.3rem; }
.pillar-card p { color: var(--text-secondary); line-height: 1.7; margin-bottom: 16px; }

.pillar-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pillar-tags span {
    padding: 4px 10px; border-radius: var(--radius-full); font-size: 0.75rem;
    background: var(--primary-50); color: var(--primary); font-weight: 500;
}

/* ========================================================================
   A DAY WITH EVERROOTS
   ======================================================================== */
.day-section {
    padding: var(--section-py) 0;
    background: linear-gradient(180deg, var(--bg-warm), var(--bg));
}
.day-timeline {
    position: relative; max-width: 700px; margin: 0 auto;
}
.timeline-line {
    position: absolute; left: 56px; top: 0; bottom: 0; width: 3px;
    background: var(--border); border-radius: 2px;
}
.timeline-progress {
    width: 100%; background: linear-gradient(to bottom, var(--primary), var(--primary-lighter));
    border-radius: 2px; height: 0; transition: height 0.3s;
}

.day-card {
    display: flex; gap: 24px; align-items: flex-start;
    margin-bottom: 48px; position: relative;
}
.day-card:last-child { margin-bottom: 0; }

.day-time {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    width: 110px; flex-shrink: 0; text-align: center;
}
.day-emoji { font-size: 2rem; color: var(--primary); }
.day-label {
    font-family: var(--font-heading); font-weight: 600; font-size: 0.9rem;
    color: var(--primary);
}

.day-content {
    background: var(--bg-card); border-radius: var(--radius-lg); padding: 28px;
    border: 1px solid var(--border); flex: 1;
    transition: all 0.3s var(--ease);
}
.day-content:hover { box-shadow: var(--shadow); }
.day-content h3 { margin-bottom: 8px; font-size: 1.2rem; }
.day-content p { color: var(--text-secondary); margin-bottom: 16px; }
.day-content em { color: var(--primary); font-style: italic; }

.day-features { display: flex; flex-wrap: wrap; gap: 8px; }
.day-features span {
    padding: 4px 12px; border-radius: var(--radius-full); font-size: 0.8rem;
    background: var(--primary-50); color: var(--primary); font-weight: 500;
}

.day-card-legacy .day-content {
    background: linear-gradient(135deg, #0a1628, #132040);
    border-color: var(--border-light); color: var(--text-light);
}
.day-card-legacy .day-content h3 { color: white; }
.day-card-legacy .day-content p { color: var(--text-light-muted); }
.day-card-legacy .day-features span { background: rgba(46,139,87,0.2); color: var(--primary-lighter); }

/* ========================================================================
   FEATURES
   ======================================================================== */
.features {
    padding: var(--section-py) 0;
}

/* Feature Tabs */
.feature-tabs {
    display: flex; justify-content: center; gap: 8px;
    margin-bottom: 48px; flex-wrap: wrap;
}
.feature-tab {
    padding: 10px 24px; border-radius: var(--radius-full);
    font-size: 0.9rem; font-weight: 600; color: var(--text-secondary);
    border: 1.5px solid var(--border); background: var(--bg-card);
    transition: all 0.3s var(--ease);
}
.feature-tab:hover { border-color: var(--primary-100); color: var(--primary); }
.feature-tab.active {
    background: var(--primary); color: white; border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(26,107,60,0.25);
}

.feature-panel { display: none; }
.feature-panel.active { display: block; }

.features-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}

/* Feature Cards */
.feature-card {
    background: var(--bg-card); border-radius: var(--radius-lg); padding: 28px;
    border: 1px solid var(--border); position: relative; overflow: hidden;
    transition: all 0.4s var(--ease);
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--primary-100); }

.fc-icon {
    font-size: 2rem; margin-bottom: 14px; color: var(--primary);
    width: 52px; height: 52px; display: flex; align-items: center; justify-content: center;
    background: var(--primary-50); border-radius: var(--radius);
}
.feature-card h3 { margin-bottom: 6px; }
.feature-card p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; }

.fc-large { grid-column: span 1; }

/* Sound Wave Mini */
.fc-visual {
    margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border);
    display: flex; align-items: center; gap: 12px;
}
.fc-visual small { font-size: 0.8rem; color: var(--text-muted); }
.sound-wave { display: flex; align-items: center; gap: 3px; height: 32px; }
.sound-wave span {
    width: 3px; border-radius: 2px; background: var(--primary);
    height: var(--h); animation: wave 1.2s ease-in-out infinite alternate;
}
.sound-wave span:nth-child(2) { animation-delay: 0.15s; }
.sound-wave span:nth-child(3) { animation-delay: 0.3s; }
.sound-wave span:nth-child(4) { animation-delay: 0.45s; }
.sound-wave span:nth-child(5) { animation-delay: 0.6s; }
.sound-wave span:nth-child(6) { animation-delay: 0.75s; }
.sound-wave span:nth-child(7) { animation-delay: 0.9s; }
.sound-wave span:nth-child(8) { animation-delay: 1.05s; }
@keyframes wave { 0% { height: var(--h); } 100% { height: calc(100% - var(--h)); } }

/* Recipe mini */
.recipe-mini {
    display: flex; align-items: center; gap: 12px;
}
.recipe-mini span { font-size: 2rem; }
.recipe-mini strong { display: block; font-size: 0.9rem; }
.recipe-mini small { color: var(--text-muted); font-size: 0.8rem; }

/* Streak mini */
.streak-mini { text-align: center; }
.streak-flames { margin-bottom: 4px; }
.streak-flames span { font-size: 1.4rem; }
.streak-mini strong { display: block; color: var(--primary); font-size: 0.95rem; }
.streak-mini small { color: var(--text-muted); font-size: 0.8rem; }

/* Mini tree vis */
.mini-tree-vis { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.mt-row { display: flex; gap: 8px; }
.mt-node {
    width: 36px; height: 36px; border-radius: 50%; background: var(--primary-50);
    display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.mt-line { width: 2px; height: 12px; background: var(--primary); border-radius: 2px; }

/* ========================================================================
   LEGACY
   ======================================================================== */
.legacy {
    padding: var(--section-py) 0;
    background: var(--bg-dark); position: relative; overflow: hidden;
}
.legacy-bg { position: absolute; inset: 0; z-index: 0; }
.legacy-gradient {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at top, rgba(26,107,60,0.08), transparent 60%);
}

/* Star Field */
.star-field { position: absolute; inset: 0; }
.star {
    position: absolute; border-radius: 50%;
    background: white; animation: twinkle 3s ease-in-out infinite alternate;
}
@keyframes twinkle { 0%, 100% { opacity: 0.2; } 50% { opacity: 0.8; } }

.legacy .container { position: relative; z-index: 1; }

.legacy-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 48px;
}

.legacy-card {
    background: var(--bg-dark-card); border-radius: var(--radius-lg); padding: 28px;
    border: 1px solid var(--border-light); position: relative; overflow: hidden;
    transition: all 0.4s var(--ease);
}
.legacy-card:hover { transform: translateY(-3px); border-color: rgba(46,139,87,0.3); }

.lc-glow {
    position: absolute; top: -50%; right: -50%; width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(46,139,87,0.08), transparent 70%);
    opacity: 0; transition: opacity 0.4s;
}
.legacy-card:hover .lc-glow { opacity: 1; }

.lc-icon { font-size: 2rem; display: block; margin-bottom: 14px; color: var(--primary-lighter); }
.lc-featured .lc-icon { color: white; }
.legacy-card h3 { color: white; margin-bottom: 8px; font-size: 1.2rem; }
.legacy-card p { color: var(--text-light-muted); font-size: 0.9rem; line-height: 1.6; }

.lc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.lc-tags span {
    padding: 3px 10px; border-radius: var(--radius-full); font-size: 0.72rem;
    background: rgba(46,139,87,0.15); color: var(--primary-lighter); font-weight: 500;
}

.lc-featured {
    grid-column: span 2; grid-row: span 1;
    background: linear-gradient(135deg, rgba(46,139,87,0.1), var(--bg-dark-card));
    border-color: rgba(46,139,87,0.2);
}
.lc-badge {
    position: absolute; top: 16px; right: 16px;
    padding: 4px 12px; border-radius: var(--radius-full); font-size: 0.72rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-lighter));
    color: white; font-weight: 600;
}

/* AI Preview bubble */
.ai-preview { margin-top: 20px; }
.ai-bubble-wrap { display: flex; gap: 12px; align-items: flex-start; }
.ai-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(46,139,87,0.2); display: flex; align-items: center;
    justify-content: center; font-size: 1.3rem; flex-shrink: 0;
    border: 2px solid rgba(46,139,87,0.3);
}
.ai-bubble {
    background: rgba(255,255,255,0.06); border-radius: var(--radius) var(--radius) var(--radius) 4px;
    padding: 12px 16px; border: 1px solid var(--border-light);
}
.ai-name { font-size: 0.75rem; color: var(--primary-lighter); font-weight: 600; display: block; margin-bottom: 4px; }
.ai-typing {
    color: var(--text-light); font-style: italic; font-size: 0.9rem;
    border-right: 2px solid var(--primary-lighter);
    animation: ai-blink 1s steps(1) infinite;
    white-space: nowrap; overflow: hidden;
    animation: ai-type 3s steps(40) 1s forwards, ai-blink 0.7s steps(1) infinite;
    width: 0; max-width: 100%;
}
@keyframes ai-type { to { width: 100%; } }
@keyframes ai-blink { 50% { border-color: transparent; } }

/* Memorial */
.memorial {
    text-align: center;
}
.memorial-inner {
    background: var(--bg-dark-card); border-radius: var(--radius-xl);
    padding: 48px; border: 1px solid var(--border-light); position: relative;
}
.memorial h3 { color: white; margin-bottom: 8px; font-size: 1.3rem; }
.memorial p { color: var(--text-light-muted); max-width: 500px; margin: 0 auto; }

/* Candles */
.candles { display: flex; justify-content: center; gap: 32px; margin-bottom: 24px; }
.candle { display: flex; flex-direction: column; align-items: center; }
.wax { width: 8px; height: 28px; background: #f5e6d3; border-radius: 0 0 4px 4px; }
.flame {
    width: 12px; height: 20px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    background: linear-gradient(to top, #ff6b35, #ffc107, #fff3cd);
    position: relative; animation: flicker 1.5s ease-in-out infinite alternate;
}
.flame-inner {
    position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%);
    width: 4px; height: 8px; border-radius: 50%;
    background: rgba(255,255,255,0.9);
}
@keyframes flicker {
    0% { transform: scale(1) rotate(-2deg); opacity: 0.9; }
    25% { transform: scale(1.05) rotate(1deg); opacity: 1; }
    50% { transform: scale(0.95) rotate(-1deg); opacity: 0.85; }
    75% { transform: scale(1.02) rotate(2deg); opacity: 0.95; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* ========================================================================
   HOW IT WORKS
   ======================================================================== */
.how-it-works { padding: var(--section-py) 0; }

.steps-container {
    max-width: 600px; margin: 0 auto; position: relative;
}
.steps-line {
    position: absolute; left: 28px; top: 40px; bottom: 40px; width: 3px;
    background: linear-gradient(to bottom, var(--primary-50), var(--primary), var(--primary-50));
    border-radius: 2px;
}

.step {
    display: flex; gap: 24px; align-items: flex-start;
    padding: 24px 0; position: relative;
}

.step-marker {
    width: 56px; height: 56px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    position: relative; z-index: 1;
}
.step-num {
    width: 56px; height: 56px; border-radius: 50%; display: flex;
    align-items: center; justify-content: center; font-weight: 700;
    font-size: 1.1rem; background: var(--bg-card); color: var(--primary);
    border: 2px solid var(--primary); z-index: 1; position: relative;
    transition: all 0.3s var(--ease);
}
.step:hover .step-num {
    background: var(--primary); color: white;
    box-shadow: 0 0 20px rgba(26,107,60,0.3);
}
.step-pulse {
    position: absolute; inset: -4px; border-radius: 50%;
    border: 2px solid var(--primary); opacity: 0;
    transition: all 0.3s;
}
.step:hover .step-pulse { animation: pulse-ring 1.5s ease-out infinite; opacity: 1; }

.step-body { padding: 4px 0; }
.step-emoji { font-size: 2rem; margin-bottom: 8px; color: var(--primary); }
.step-body h3 { margin-bottom: 6px; }
.step-body p { color: var(--text-secondary); font-size: 0.95rem; }

/* ========================================================================
   WEB PLATFORM
   ======================================================================== */
.web-platform {
    padding: var(--section-py) 0;
    background: linear-gradient(180deg, var(--bg), var(--bg-warm));
}

.web-inner {
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
    background: var(--bg-card); border-radius: var(--radius-xl); padding: 60px;
    border: 1px solid var(--border); box-shadow: var(--shadow-lg);
}

.web-content h2 { margin-bottom: 16px; }
.web-content > p { color: var(--text-secondary); margin-bottom: 32px; line-height: 1.7; }

.web-features { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.web-feat {
    display: flex; align-items: center; gap: 14px;
}
.web-feat span { font-size: 1.8rem; flex-shrink: 0; color: var(--primary); }
.web-feat strong { display: block; font-size: 0.95rem; }
.web-feat small { color: var(--text-muted); font-size: 0.85rem; }

/* Device Stack */
.web-visual { position: relative; }
.device-stack { position: relative; padding: 20px; }
.device { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }

.device-laptop {
    background: #1a1a2e; padding: 12px; border-radius: var(--radius-lg);
}
.device-phone {
    position: absolute; bottom: -20px; right: -10px;
    width: 140px; background: #1a1a2e; padding: 8px; border-radius: var(--radius);
    animation: phone-float 3s ease-in-out infinite alternate;
}
@keyframes phone-float {
    0% { transform: translateY(0); }
    100% { transform: translateY(-8px); }
}

.device-screen { background: white; border-radius: var(--radius-sm); overflow: hidden; }
.ds-bar {
    padding: 8px 12px; background: var(--primary); color: white;
    font-size: 0.7rem; font-weight: 600;
}
.ds-bar-sm { padding: 6px 8px; font-size: 0.6rem; }
.ds-tree { padding: 16px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ds-row { display: flex; gap: 8px; }
.ds-node {
    width: 36px; height: 36px; border-radius: 50%; color: var(--primary);
    background: var(--primary-50); display: flex; align-items: center;
    justify-content: center; font-size: 1rem;
}
.ds-conn { width: 2px; height: 10px; background: var(--primary-100); }
.ds-item { padding: 6px 8px; border-bottom: 1px solid var(--border); font-size: 0.65rem; }
.ds-item span { margin-right: 4px; }

/* ========================================================================
   APP PREVIEW / CAROUSEL
   ======================================================================== */
.app-preview {
    padding: var(--section-py) 0;
    background: var(--bg);
}

.carousel { position: relative; max-width: 800px; margin: 0 auto; }
.carousel-track {
    display: flex; gap: 20px; overflow: hidden;
    scroll-snap-type: x mandatory;
}
.carousel-slide {
    min-width: 100%; display: flex; flex-direction: column; align-items: center;
    scroll-snap-align: center; transition: opacity 0.4s;
    opacity: 0; position: absolute; top: 0; left: 0;
}
.carousel-slide.active { opacity: 1; position: relative; }

.slide-label {
    margin-top: 16px; font-weight: 600; color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Phone Mock */
.slide-phone { perspective: 800px; }
.sp-frame {
    width: 260px; background: #1a1a2e; border-radius: 28px;
    padding: 8px; box-shadow: var(--shadow-xl);
    transition: transform 0.4s var(--ease);
}
.carousel-slide.active .sp-frame { transform: rotateY(0); }
.sp-notch {
    width: 80px; height: 6px; background: #2a2a3e; border-radius: 3px;
    margin: 4px auto 8px;
}
.sp-screen {
    background: #f5f5f0; border-radius: 20px; overflow: hidden;
    min-height: 380px; display: flex; flex-direction: column;
}
.sp-bar {
    padding: 12px 16px; display: flex; justify-content: space-between;
    align-items: center; background: white; font-size: 0.8rem;
    border-bottom: 1px solid var(--border);
}
.sp-bar-dark { background: var(--bg-dark); color: white; border-color: var(--border-light); }
.sp-bar strong { font-size: 0.85rem; }

.sp-greeting {
    padding: 16px; font-family: var(--font-heading); font-size: 1rem;
    color: var(--primary-dark);
}
.sp-item {
    padding: 10px 16px; border-bottom: 1px solid var(--border);
    font-size: 0.78rem; color: var(--text-secondary);
    display: flex; align-items: center; gap: 8px;
}
.sp-item span { font-size: 1rem; color: var(--primary); }

.sp-bottom {
    margin-top: auto; padding: 10px; display: flex; justify-content: space-around;
    background: white; border-top: 1px solid var(--border);
    font-size: 1.1rem;
}
.sp-bottom-dark { background: #131830; border-color: var(--border-light); }
.sp-bottom span { opacity: 0.5; }
.sp-bottom span.active { opacity: 1; }

.sp-health {
    padding: 10px 16px; font-size: 0.78rem; color: var(--primary);
    font-weight: 600; text-align: center;
}

/* SP Tree */
.sp-tree-vis { padding: 16px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.spt-row { display: flex; gap: 8px; }
.spt-node {
    width: 40px; height: 40px; border-radius: 50%; color: var(--primary);
    background: var(--primary-50); display: flex; align-items: center;
    justify-content: center; font-size: 0.9rem;
}
.spt-line { width: 2px; height: 8px; background: var(--primary-100); }

/* SP Legacy Grid */
.sp-lgrid {
    padding: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.sp-litem {
    text-align: center; padding: 10px 4px; color: var(--primary-lighter);
    background: rgba(255,255,255,0.06); border-radius: var(--radius-sm);
    font-size: 1.2rem;
}
.sp-litem small { display: block; font-size: 0.6rem; color: var(--text-light-muted); margin-top: 2px; }
.sp-legacy-screen { background: var(--bg-dark); }

/* SP Recipe list */
.sp-rlist { padding: 8px 0; flex: 1; }
.sp-recipe, .sp-ritual {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 16px; border-bottom: 1px solid var(--border);
}
.sp-recipe span, .sp-ritual span { font-size: 1.4rem; color: var(--primary); }
.sp-recipe strong, .sp-ritual strong { display: block; font-size: 0.78rem; }
.sp-recipe small, .sp-ritual small { display: block; font-size: 0.68rem; color: var(--text-muted); }

/* Carousel Controls */
.carousel-controls {
    display: flex; align-items: center; justify-content: center; gap: 16px;
    margin-top: 32px;
}
.c-btn {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--bg-card); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-secondary); transition: all 0.2s;
}
.c-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }
.c-dots { display: flex; gap: 8px; }
.c-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--border); transition: all 0.3s;
    cursor: pointer; border: none;
}
.c-dot.active { background: var(--primary); transform: scale(1.2); }

/* ========================================================================
   PRICING
   ======================================================================== */
.pricing {
    padding: var(--section-py) 0;
    background: linear-gradient(180deg, var(--bg-warm), var(--bg));
}

.pricing-toggle {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    margin-bottom: 48px;
}
.toggle-label { font-size: 0.9rem; color: var(--text-muted); font-weight: 500; transition: color 0.3s; }
.toggle-label.active { color: var(--primary); font-weight: 600; }
.toggle-switch {
    width: 52px; height: 28px; border-radius: var(--radius-full);
    background: var(--border); position: relative; padding: 3px;
    transition: background 0.3s;
}
.toggle-switch[aria-checked="true"] { background: var(--primary); }
.toggle-knob {
    width: 22px; height: 22px; border-radius: 50%; background: white;
    box-shadow: var(--shadow-sm); display: block;
    transition: transform 0.3s var(--ease-spring);
}
.toggle-switch[aria-checked="true"] .toggle-knob { transform: translateX(24px); }
.save-badge {
    background: rgba(198,124,55,0.12); color: var(--accent);
    padding: 2px 8px; border-radius: var(--radius-full); font-size: 0.72rem;
    font-weight: 600; margin-left: 4px;
}

.pricing-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}

.price-card {
    background: var(--bg-card); border-radius: var(--radius-lg); padding: 32px 24px;
    border: 1px solid var(--border); text-align: center;
    transition: all 0.4s var(--ease); position: relative;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.pc-popular {
    border-color: var(--primary); background: linear-gradient(to bottom, rgba(26,107,60,0.04), var(--bg-card));
    box-shadow: var(--shadow-glow);
    transform: scale(1.04);
}
.pc-popular:hover { transform: scale(1.04) translateY(-4px); }
.popular-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    padding: 4px 16px; border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary), var(--primary-lighter));
    color: white; font-size: 0.75rem; font-weight: 600; white-space: nowrap;
}

.pc-header { margin-bottom: 20px; }
.pc-icon { font-size: 2rem; margin-bottom: 8px; }
.pc-header h3 { font-size: 1.4rem; margin-bottom: 4px; }
.pc-tagline { color: var(--text-muted); font-size: 0.85rem; }

.pc-price { margin-bottom: 24px; }
.pc-amount {
    font-family: var(--font-heading); font-weight: 700;
    font-size: 2.5rem; color: var(--text);
    transition: all 0.3s var(--ease);
}
.pc-period { color: var(--text-muted); font-size: 0.85rem; }

.pc-features { margin-bottom: 28px; text-align: left; }
.pc-features li {
    padding: 8px 0; font-size: 0.9rem; border-bottom: 1px solid rgba(0,0,0,0.04);
    display: flex; align-items: center; gap: 8px;
}
.pc-features li::before { font-size: 0.8rem; }
.pc-features li.yes { color: var(--text); }
.pc-features li.yes::before { content: '✓'; color: var(--primary); font-weight: 700; }
.pc-features li.no { color: var(--text-muted); }
.pc-features li.no::before { content: '—'; color: var(--text-muted); }

/* ========================================================================
   TESTIMONIALS
   ======================================================================== */
.testimonials { padding: var(--section-py) 0; }

.testimonial-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}

.test-card {
    background: var(--bg-card); border-radius: var(--radius-lg); padding: 28px;
    border: 1px solid var(--border); transition: all 0.3s var(--ease);
}
.test-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.test-stars { color: #fbbf24; margin-bottom: 12px; font-size: 1rem; letter-spacing: 2px; }
.test-card blockquote {
    font-size: 0.95rem; line-height: 1.7; color: var(--text-secondary);
    margin-bottom: 16px; font-style: italic;
}

.test-author { display: flex; align-items: center; gap: 12px; }
.test-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--bg, var(--primary)); color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; font-weight: 700;
}
.test-author strong { display: block; font-size: 0.9rem; }
.test-author span { display: block; font-size: 0.8rem; color: var(--text-muted); }

/* ========================================================================
   FAQ
   ======================================================================== */
.faq { padding: var(--section-py) 0; background: var(--bg-warm); }

.faq-list { max-width: 700px; margin: 0 auto; }
.faq-item {
    border-bottom: 1px solid var(--border); overflow: hidden;
}
.faq-q {
    width: 100%; display: flex; align-items: center; justify-content: space-between;
    padding: 20px 0; font-size: 1rem; font-weight: 600;
    color: var(--text); text-align: left; gap: 16px;
    transition: color 0.2s;
}
.faq-q:hover { color: var(--primary); }
.faq-q span { flex: 1; }
.faq-chevron { flex-shrink: 0; transition: transform 0.3s var(--ease); color: var(--text-muted); }
.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--primary); }

.faq-a {
    max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease), padding 0.4s var(--ease);
}
.faq-item.open .faq-a { max-height: 300px; padding-bottom: 20px; }
.faq-a p { color: var(--text-secondary); line-height: 1.7; font-size: 0.95rem; }

/* ========================================================================
   CTA
   ======================================================================== */
.cta {
    padding: var(--section-py) 0; text-align: center; position: relative; overflow: hidden;
    background: linear-gradient(135deg, #f0f9f4, var(--bg-warm));
}
.cta-bg { position: absolute; inset: 0; z-index: 0; }
.cta-orb { position: absolute; border-radius: 50%; filter: blur(100px); }
.cta-orb-1 { width: 400px; height: 400px; background: rgba(26,107,60,0.08); top: -100px; left: -100px; }
.cta-orb-2 { width: 350px; height: 350px; background: rgba(198,124,55,0.06); bottom: -100px; right: -100px; }

.cta .container { position: relative; z-index: 1; }
.cta-content { max-width: 600px; margin: 0 auto; }
.cta-title { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 12px; }
.cta-desc { color: var(--text-secondary); margin-bottom: 32px; font-size: 1.05rem; }

/* Form */
.cta-form { margin-bottom: 24px; }
.form-row {
    display: flex; gap: 10px; flex-wrap: wrap;
    max-width: 540px; margin: 0 auto;
}
.form-group {
    flex: 1; min-width: 160px; position: relative;
}
.form-group input {
    width: 100%; padding: 14px 16px; border: 1.5px solid var(--border);
    border-radius: var(--radius-full); font-size: 0.95rem;
    background: var(--bg-card); color: var(--text);
    transition: all 0.2s var(--ease); outline: none;
}
.form-group input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-50); }
.form-group input.error { border-color: #e53e3e; }
.form-error {
    display: none; position: absolute; bottom: -18px; left: 16px;
    font-size: 0.72rem; color: #e53e3e;
}
.form-group input.error ~ .form-error { display: block; }

.btn-submit { flex-shrink: 0; }
.btn-loading, .btn-done { display: none; }
.btn-submit.loading .btn-text { display: none; }
.btn-submit.loading .btn-loading { display: flex; align-items: center; }
.btn-submit.done .btn-text { display: none; }
.btn-submit.done .btn-loading { display: none; }
.btn-submit.done .btn-done { display: inline; }
.btn-submit.done { background: #38a169; }

.spinner { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-privacy { font-size: 0.8rem; color: var(--text-muted); margin-top: 12px; }

.cta-proof {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    font-size: 0.9rem; color: var(--text-secondary);
}
.cta-avatars { display: flex; }
.cta-av {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--bg, var(--primary)); color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.65rem; font-weight: 700;
    border: 2px solid var(--bg-card); margin-left: -8px;
}
.cta-av:first-child { margin-left: 0; }

/* ========================================================================
   FOOTER
   ======================================================================== */
.footer {
    background: var(--text); color: var(--text-light); padding: 60px 0 24px;
}

.footer-top {
    display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 40px;
    margin-bottom: 48px;
}

.footer-brand {}
.footer-logo {
    display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
    color: white; text-decoration: none;
}
.footer-logo span { font-family: var(--font-heading); font-weight: 700; font-size: 1.2rem; }
.footer-brand > p { color: var(--text-light-muted); font-size: 0.9rem; margin-bottom: 16px; }

.social-links { display: flex; gap: 10px; }
.social-link {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,0.08); display: flex;
    align-items: center; justify-content: center;
    color: var(--text-light-muted); transition: all 0.2s;
}
.social-link:hover { background: var(--primary); color: white; }

.footer-col h4 {
    font-family: var(--font-body); font-size: 0.85rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 1px;
    margin-bottom: 16px; color: white;
}
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--text-light-muted); font-size: 0.9rem; }
.footer-col a:hover { color: white; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 0.85rem; color: var(--text-light-muted); }
.footer-quote {
    font-style: italic; font-family: var(--font-heading); font-size: 0.9rem !important;
    color: var(--text-light-muted);
}

/* ========================================================================
   BACK TO TOP
   ======================================================================== */
.back-to-top {
    position: fixed; bottom: 24px; right: 24px; z-index: 900;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--primary); color: white;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow); opacity: 0; transform: translateY(20px);
    transition: all 0.3s var(--ease); pointer-events: none;
}
.back-to-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* ========================================================================
   TOAST
   ======================================================================== */
.toast {
    position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%) translateY(100px);
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 12px 20px; display: flex; align-items: center; gap: 10px;
    box-shadow: var(--shadow-lg); z-index: 9999; opacity: 0;
    transition: all 0.4s var(--ease); pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; pointer-events: auto; }
.toast-msg { font-size: 0.9rem; font-weight: 500; }
.toast-icon { font-size: 1.2rem; color: var(--primary); display: flex; align-items: center; }
.toast-close { font-size: 1.2rem; color: var(--text-muted); padding: 4px 8px; }

/* ========================================================================
   PRICING COMING SOON
   ======================================================================== */
.pricing-coming-soon {
    max-width: 640px; margin: 0 auto;
}
.pcs-card {
    text-align: center; padding: 48px 40px;
    background: var(--bg-card); border-radius: var(--radius-lg);
    border: 2px dashed var(--primary-lighter);
    box-shadow: var(--shadow);
}
.pcs-icon { font-size: 3rem; margin-bottom: 16px; color: var(--primary); }
.pcs-card h3 {
    font-family: var(--font-heading); font-size: 1.8rem; font-weight: 700;
    color: var(--text); margin-bottom: 12px;
}
.pcs-card > p {
    color: var(--text-muted); font-size: 1.05rem; line-height: 1.6;
    margin-bottom: 28px; max-width: 480px; margin-left: auto; margin-right: auto;
}
.pcs-highlights {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px;
    max-width: 380px; margin: 0 auto 32px; text-align: left;
}
.pcs-item {
    display: flex; align-items: center; gap: 10px;
    font-size: 0.95rem; color: var(--text-secondary);
}

/* ========================================================================
   LANGUAGE SWITCHER
   ======================================================================== */
.lang-switcher {
    position: relative;
}
.lang-btn {
    display: flex; align-items: center; gap: 6px;
    padding: 6px 10px; border-radius: 6px;
    background: transparent; color: var(--text-secondary);
    font-size: 0.85rem; font-weight: 600;
    cursor: pointer; transition: all 0.2s;
    border: 1px solid transparent;
}
.lang-btn:hover { background: var(--primary-50); color: var(--primary); }
.lang-btn svg { width: 16px; height: 16px; }

.lang-dropdown {
    position: absolute; top: 100%; right: 0; z-index: 1001;
    min-width: 180px; max-height: 320px; overflow-y: auto;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow-lg);
    padding: 6px 0; opacity: 0; transform: translateY(-8px);
    pointer-events: none; transition: all 0.2s var(--ease);
}
.lang-dropdown.open {
    opacity: 1; transform: translateY(4px); pointer-events: auto;
}
.lang-option {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 16px; font-size: 0.9rem; color: var(--text);
    cursor: pointer; transition: background 0.15s; width: 100%;
    text-align: left; background: none; border: none;
}
.lang-option:hover { background: var(--primary-50); }
.lang-option.active { color: var(--primary); font-weight: 600; }
.lang-option .lang-native { color: var(--text-muted); font-size: 0.8rem; }

/* ========================================================================
   RESPONSIVE
   ======================================================================== */
@media (max-width: 1024px) {
    .hero-container { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .hero-subtitle { margin: 0 auto 32px; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-visual { order: -1; }
    .hero-tree { width: 300px; height: 380px; }

    .pillars-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .legacy-grid { grid-template-columns: repeat(2, 1fr); }
    .lc-featured { grid-column: span 2; }
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .pc-popular { transform: scale(1); }
    .pc-popular:hover { transform: translateY(-4px); }
    .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: repeat(3, 1fr); }
    .footer-brand { grid-column: span 3; }
    .web-inner { grid-template-columns: 1fr; padding: 40px; }
    .web-visual { display: none; }
}

@media (max-width: 768px) {
    :root { --nav-h: 64px; }

    .nav-links {
        position: fixed; top: 0; right: 0; width: 280px; height: 100vh;
        flex-direction: column; padding: 80px 24px 24px;
        background: var(--bg-card); box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        transform: translateX(100%); transition: transform 0.3s var(--ease);
        z-index: 1000; overflow-y: auto;
    }
    .nav-links.open { transform: translateX(0); }
    .nav-link { padding: 12px 16px; width: 100%; font-size: 1rem; }
    .nav-actions { display: none; }
    .nav-toggle { display: flex; }

    .features-grid { grid-template-columns: 1fr; }
    .legacy-grid { grid-template-columns: 1fr; }
    .lc-featured { grid-column: span 1; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }
    .testimonial-grid { grid-template-columns: 1fr; }

    .day-card { flex-direction: column; }
    .day-time { flex-direction: row; width: auto; gap: 8px; }
    .timeline-line { display: none; }

    .form-row { flex-direction: column; }
    .btn-submit { width: 100%; justify-content: center; }

    .footer-top { grid-template-columns: repeat(2, 1fr); }
    .footer-brand { grid-column: span 2; }
    .footer-bottom { flex-direction: column; text-align: center; }

    .scroll-indicator { display: none; }

    .web-inner { padding: 28px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2.2rem; }
    .hero-tree { width: 240px; height: 300px; }
    .hero-stats { flex-direction: column; gap: 12px; }
    .stat-divider { width: 32px; height: 1px; }

    .feature-tabs { gap: 4px; }
    .feature-tab { padding: 8px 14px; font-size: 0.8rem; }

    .pillars-grid, .testimonial-grid { max-width: 100%; }
    .footer-top { grid-template-columns: 1fr; }
    .footer-brand { grid-column: span 1; }
}

/* ── Print ── */
@media print {
    .navbar, .particles, .cookie-banner, .back-to-top, .toast,
    .hero-bg, .legacy-bg, .scroll-indicator, .cta-bg { display: none !important; }
    body { background: white; color: black; }
    .hero { min-height: auto; padding: 40px 0; }
}

/* ── 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; }
    .anim-item { opacity: 1; transform: none; }
}

/* ========================================================================
   ── REFINEMENT LAYER ── (Apr 2026)
   Restraint pass: kill decorative orbs, gradient-on-everything, glow halos,
   fake star fields. Add semantic tokens, true dark theme, focus ring.
   This block intentionally lives at the end so it overrides upstream rules
   without the risk of editing the original sections.
   ======================================================================== */

/* ── Semantic tokens (alias existing brand vars) ── */
:root {
    --surface: #FAFAF5;
    --surface-2: #F4F1E8;
    --surface-elev: #FFFFFF;
    --ink: #14201A;
    --ink-soft: #3D4A43;
    --ink-muted: #6B7770;
    --line: rgba(20, 32, 26, 0.10);
    --line-strong: rgba(20, 32, 26, 0.16);
    --brand: #1a6b3c;
    --brand-soft: #2E8B57;
    --brand-tint: rgba(26, 107, 60, 0.08);
    --brand-tint-strong: rgba(26, 107, 60, 0.16);
    --ring: 0 0 0 3px rgba(46, 139, 87, 0.35);
    --shadow-1: 0 1px 2px rgba(20, 32, 26, 0.04), 0 1px 3px rgba(20, 32, 26, 0.06);
    --shadow-2: 0 4px 12px rgba(20, 32, 26, 0.06), 0 2px 4px rgba(20, 32, 26, 0.04);
    --shadow-3: 0 12px 32px rgba(20, 32, 26, 0.10), 0 4px 8px rgba(20, 32, 26, 0.04);
    color-scheme: light;
}

/* ── Dark theme ── (manual via [data-theme="dark"] OR system pref unless light is forced) */
:root[data-theme="dark"] {
    --surface: #0E1A14;
    --surface-2: #13251C;
    --surface-elev: #182E22;
    --ink: #ECF3EE;
    --ink-soft: #B8C7BC;
    --ink-muted: #8B9C92;
    --line: rgba(236, 243, 238, 0.10);
    --line-strong: rgba(236, 243, 238, 0.18);
    --brand: #3CB371;
    --brand-soft: #5FCB8E;
    --brand-tint: rgba(60, 179, 113, 0.12);
    --brand-tint-strong: rgba(60, 179, 113, 0.22);
    --ring: 0 0 0 3px rgba(95, 203, 142, 0.45);
    --shadow-1: 0 1px 2px rgba(0,0,0,0.3);
    --shadow-2: 0 4px 12px rgba(0,0,0,0.35);
    --shadow-3: 0 12px 32px rgba(0,0,0,0.45);

    /* Override legacy brand vars so existing rules pick up dark palette */
    --bg: var(--surface);
    --bg-warm: var(--surface-2);
    --bg-card: var(--surface-elev);
    --bg-dark: #08130D;
    --bg-dark-card: rgba(255,255,255,0.04);
    --text: var(--ink);
    --text-secondary: var(--ink-soft);
    --text-muted: var(--ink-muted);
    --border: var(--line);
    --primary: var(--brand-soft);
    --primary-light: var(--brand-soft);
    --primary-lighter: #7BD9A8;
    --primary-dark: var(--brand);
    --primary-50: var(--brand-tint);
    --primary-100: var(--brand-tint-strong);
    color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --surface: #0E1A14;
        --surface-2: #13251C;
        --surface-elev: #182E22;
        --ink: #ECF3EE;
        --ink-soft: #B8C7BC;
        --ink-muted: #8B9C92;
        --line: rgba(236, 243, 238, 0.10);
        --line-strong: rgba(236, 243, 238, 0.18);
        --brand: #3CB371;
        --brand-soft: #5FCB8E;
        --brand-tint: rgba(60, 179, 113, 0.12);
        --brand-tint-strong: rgba(60, 179, 113, 0.22);
        --ring: 0 0 0 3px rgba(95, 203, 142, 0.45);
        --shadow-1: 0 1px 2px rgba(0,0,0,0.3);
        --shadow-2: 0 4px 12px rgba(0,0,0,0.35);
        --shadow-3: 0 12px 32px rgba(0,0,0,0.45);
        --bg: var(--surface);
        --bg-warm: var(--surface-2);
        --bg-card: var(--surface-elev);
        --bg-dark: #08130D;
        --bg-dark-card: rgba(255,255,255,0.04);
        --text: var(--ink);
        --text-secondary: var(--ink-soft);
        --text-muted: var(--ink-muted);
        --border: var(--line);
        --primary: var(--brand-soft);
        --primary-light: var(--brand-soft);
        --primary-lighter: #7BD9A8;
        --primary-dark: var(--brand);
        --primary-50: var(--brand-tint);
        --primary-100: var(--brand-tint-strong);
        color-scheme: dark;
    }
}

/* ── Focus ring (a11y, both themes) ── */
*:focus-visible {
    outline: none;
    box-shadow: var(--ring);
    border-radius: 6px;
}
.btn:focus-visible, .nav-link:focus-visible, .lang-btn:focus-visible,
.theme-toggle:focus-visible, .faq-q:focus-visible, .feature-tab:focus-visible {
    box-shadow: var(--ring);
}

/* ── Body baseline polish ── */
body {
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    font-feature-settings: "ss01", "cv11";
}

/* ── Restrain heading gradients to hero + one accent only ── */
.section-title .text-gradient,
.cta-title .text-glow,
.hero-title .title-highlight {
    /* keep these */
}
.section-title:not(.title-light) {
    color: var(--ink);
}

/* ── Hero: kill decoration ── */
.hero-orb-1, .hero-orb-2, .hero-orb-3,
.particles, .star-field { display: none !important; }
.hero-gradient {
    background:
        radial-gradient(ellipse 60% 50% at 50% 0%, var(--brand-tint), transparent 60%),
        linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
}
.tree-glow { display: none; }
.badge-pulse::before { animation: none; }
.scroll-indicator { display: none !important; }

/* ── Hero tree: restore the choreographed grow sequence (roots → trunk → branches → leaves → feature pills).
   This is an on-brand brand moment, not gratuitous decoration.
   Honour prefers-reduced-motion for accessibility. ── */
@media (prefers-reduced-motion: reduce) {
    .tree-roots .root,
    .tree-branches .branch { stroke-dasharray: none !important; stroke-dashoffset: 0 !important; animation: none !important; }
    .tree-trunk .trunk { transform: none !important; animation: none !important; }
    .tree-leaves .leaf { transform: none !important; animation: none !important; }
    .tree-features .t-feat,
    .tree-features .feat-text { opacity: 1 !important; transform: none !important; animation: none !important; }
}
/* Slightly soften the timing curve and feature-pill styling so it reads "calm growth", not "marketing spinner". */
.tree-features .t-feat circle:first-child { fill: var(--surface-elev, #fff); }
:root[data-theme="dark"] .tree-features .t-feat circle:first-child { fill: #16241D; stroke: var(--brand-soft); }
:root[data-theme="dark"] .tree-features .t-feat path,
:root[data-theme="dark"] .tree-features .t-feat circle:nth-child(2) { stroke: var(--brand-soft); fill: var(--brand-soft); }
:root[data-theme="dark"] .tree-features .feat-text { fill: var(--ink); stroke: rgba(14,26,20,0.85); }

/* ── Tree feature TAGS (HTML overlay) — replaces in-SVG hand-drawn pills.
   Cleaner typography, consistent lucide icons, leader-dot connecting each tag
   to its anchor point on the tree silhouette. ── */
.tree-features { display: none !important; }   /* hide legacy SVG pills */
.hero-tree { position: relative; }
.tree-tags {
    position: absolute;
    inset: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    pointer-events: none;
}
.tree-tag {
    position: absolute;
    left: var(--x);
    top: var(--y);
    transform: translate(-50%, -50%) translateY(8px);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px 7px 10px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(26, 107, 60, 0.18);
    border-radius: 999px;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.06),
        0 8px 24px rgba(26, 107, 60, 0.10);
    color: #0a1628;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
    opacity: 0;
    animation: tag-pop 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: var(--delay, 3s);
    pointer-events: auto;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.tree-tag:hover {
    transform: translate(-50%, -50%) translateY(-2px);
    box-shadow:
        0 2px 4px rgba(15, 23, 42, 0.08),
        0 14px 30px rgba(26, 107, 60, 0.18);
    border-color: rgba(26, 107, 60, 0.40);
}
.tt-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--brand-tint, rgba(26, 107, 60, 0.10));
    color: var(--brand, #1a6b3c);
    flex-shrink: 0;
}
.tt-icon svg,
.tt-icon i { width: 13px; height: 13px; color: var(--brand, #1a6b3c); }
.tt-label { line-height: 1; }
/* Subtle leader dot: marks the tag's "anchor" point on the tree, like a leaf-tip pin. */
.tt-dot {
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand, #1a6b3c);
    box-shadow: 0 0 0 3px rgba(26, 107, 60, 0.18);
    opacity: 0;
    animation: tag-dot 0.4s ease forwards;
    animation-delay: calc(var(--delay, 3s) + 0.1s);
}
/* Mirror the dot to the right side for tags positioned on the right of the tree. */
.tree-tag.tt-memories .tt-dot,
.tree-tag.tt-recipes .tt-dot { left: auto; right: -8px; }

@keyframes tag-pop {
    0%   { opacity: 0; transform: translate(-50%, -50%) translateY(8px) scale(0.92); }
    60%  { opacity: 1; transform: translate(-50%, -50%) translateY(-2px) scale(1.02); }
    100% { opacity: 1; transform: translate(-50%, -50%) translateY(0) scale(1); }
}
@keyframes tag-dot {
    to { opacity: 1; }
}

/* Dark theme: glass tag on dark bg */
:root[data-theme="dark"] .tree-tag {
    background: rgba(22, 36, 29, 0.85);
    border-color: rgba(60, 179, 113, 0.30);
    color: #e6f1ea;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.30),
        0 10px 28px rgba(0, 0, 0, 0.35);
}
:root[data-theme="dark"] .tt-icon {
    background: rgba(60, 179, 113, 0.16);
    color: var(--brand-soft, #3CB371);
}
:root[data-theme="dark"] .tt-icon svg,
:root[data-theme="dark"] .tt-icon i { color: var(--brand-soft, #3CB371); }
:root[data-theme="dark"] .tt-dot {
    background: var(--brand-soft, #3CB371);
    box-shadow: 0 0 0 3px rgba(60, 179, 113, 0.22);
}

@media (prefers-reduced-motion: reduce) {
    .tree-tag, .tt-dot { animation: none !important; opacity: 1 !important; transform: translate(-50%, -50%) !important; }
}

/* Hide tags on very small screens — the tree silhouette alone reads cleaner there. */
@media (max-width: 520px) {
    .tree-tag { font-size: 0.72rem; padding: 5px 10px 5px 8px; }
    .tree-tag .tt-label { display: none; }
    .tree-tag.tt-legacy .tt-label { display: inline; }
}

/* ── Buttons: tighten radius, drop sheen ── */
.btn { border-radius: 10px; }
.btn::before { display: none; }
.btn-primary {
    background: var(--brand);
    box-shadow: 0 1px 2px rgba(0,0,0,0.08), 0 4px 12px rgba(26,107,60,0.18);
}
:root[data-theme="dark"] .btn-primary,
.dark-auto .btn-primary { background: var(--brand-soft); color: #0a1410; }
.btn-primary:hover { background: var(--brand-soft); }
.btn-glass { background: var(--surface-elev); border-color: var(--line-strong); color: var(--ink); backdrop-filter: none; }
.btn-glass:hover { background: var(--surface-2); color: var(--ink); }

/* ── Section tag: simpler, no pop animation ── */
.anim-visible .section-tag { animation: none; }
.section-tag {
    background: var(--brand-tint);
    color: var(--brand);
    border: 1px solid var(--brand-tint-strong);
    text-transform: uppercase;
    letter-spacing: 1.4px;
    font-size: 0.72rem;
    padding: 5px 12px;
}
:root[data-theme="dark"] .section-tag,
:root:not([data-theme="light"]) .section-tag { color: var(--primary-lighter); }

/* ── Cards: unify radius, shadow, hover ── */
.pillar-card, .feature-card, .test-card, .day-content, .legacy-card,
.pcs-card {
    border-radius: 14px;
    border-color: var(--line);
    background: var(--surface-elev);
    box-shadow: var(--shadow-1);
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.pillar-card:hover, .feature-card:hover, .day-content:hover, .test-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-2);
    border-color: var(--line-strong);
}

/* ── Pillars: drop big numerals + featured lift ── */
.pillar-num { display: none; }
.pillar-card::before { display: none; }
.pillar-featured {
    background: var(--surface-elev);
    border-color: var(--line);
}
.pillar-icon {
    background: var(--brand-tint);
    color: var(--brand);
    width: 44px; height: 44px;
    border-radius: 10px;
    font-size: 1.2rem;
}
.pillar-icon i { width: 22px; height: 22px; }
.pillar-card h3 { font-size: 1.15rem; color: var(--ink); }
.pillar-card p { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.65; }
.pillar-tags span {
    background: transparent;
    color: var(--ink-muted);
    border: 1px solid var(--line);
    font-weight: 500;
    font-size: 0.72rem;
}

/* ── Day timeline polish ── */
.day-section { background: var(--surface-2); }
.day-features span {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--ink-soft);
    font-weight: 500;
}
.day-features span i { color: var(--brand) !important; }
.day-card-legacy .day-content {
    background: var(--surface-elev);
    border-color: var(--brand-tint-strong);
    color: var(--ink);
}
.day-card-legacy .day-content h3 { color: var(--ink); }
.day-card-legacy .day-content p { color: var(--ink-soft); }
.day-card-legacy .day-features span {
    background: var(--brand-tint);
    border-color: var(--brand-tint-strong);
    color: var(--brand);
}
:root[data-theme="dark"] .day-card-legacy .day-features span,
:root:not([data-theme="light"]) .day-card-legacy .day-features span { color: var(--primary-lighter); }

/* ── Feature cards refinements ── */
.fc-icon {
    background: var(--brand-tint);
    color: var(--brand);
    width: 42px; height: 42px;
    border-radius: 10px;
    font-size: 1.1rem;
}
.fc-icon i { width: 20px; height: 20px; }
.feature-tab {
    background: var(--surface-elev);
    border-color: var(--line);
    color: var(--ink-soft);
}
.feature-tab.active {
    background: var(--brand);
    border-color: var(--brand);
    color: white;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}
:root[data-theme="dark"] .feature-tab.active,
:root:not([data-theme="light"]) .feature-tab.active { color: #0a1410; background: var(--brand-soft); border-color: var(--brand-soft); }

/* ── Legacy section: keep the original dark navy background — it's intentionally a
   "night sky" / afterlife mood and contrasts the warm sections above. We just clean
   up the orbs/star-field decoration so it reads calm, not gimmicky. ── */
.legacy {
    background:
        radial-gradient(ellipse at top, rgba(46,139,87,0.18), transparent 60%),
        var(--bg-dark, #0a1628);
}
.legacy-gradient { display: block; }
.legacy-card {
    background: var(--bg-dark-card, rgba(255,255,255,0.06));
    border-color: var(--border-light, rgba(255,255,255,0.10));
}
.legacy-card h3 { color: #fff; }
.legacy-card p { color: var(--text-light-muted, rgba(255,255,255,0.65)); }
.lc-glow { /* keep the subtle hover glow on dark cards */ }
.lc-icon { color: var(--primary-lighter, #6FCF97); }
.lc-featured {
    background: linear-gradient(135deg, rgba(46,139,87,0.18), var(--bg-dark-card, rgba(255,255,255,0.06)));
    border-color: rgba(46,139,87,0.35);
}
.lc-featured .lc-icon { color: #fff; }
.lc-tags span {
    background: rgba(46,139,87,0.18);
    border: 1px solid rgba(46,139,87,0.30);
    color: var(--primary-lighter, #6FCF97);
    font-weight: 500;
}
.lc-badge {
    background: linear-gradient(135deg, var(--primary, #2E8B57), var(--primary-lighter, #6FCF97));
    color: #fff;
    box-shadow: 0 4px 12px rgba(46,139,87,0.30);
}
.legacy .section-title.title-light { color: #fff; }
.legacy .section-desc.desc-light { color: var(--text-light-muted, rgba(255,255,255,0.65)); }
.legacy .section-tag.tag-light {
    background: rgba(46,139,87,0.18);
    color: var(--primary-lighter, #6FCF97);
    border: 1px solid rgba(46,139,87,0.30);
}
.legacy .text-glow {
    color: var(--primary-lighter, #6FCF97);
    text-shadow: 0 0 30px rgba(46,139,87,0.40);
}
/* Re-enable the star-field but tame it for the legacy section only (subtle). */
.legacy .star-field { display: block; opacity: 0.55; }

/* ── Memorial: keep dark, replace candle stack with two clear feature pills (Memorial Garden + Guardian Hub) ── */
.memorial-inner {
    background: var(--bg-dark-card, rgba(255,255,255,0.06));
    border: 1px solid rgba(46,139,87,0.25);
    border-radius: var(--radius-xl, 24px);
    padding: 40px 32px;
    text-align: center;
}
.memorial h3 { color: #fff; }
.memorial p { color: var(--text-light-muted, rgba(255,255,255,0.70)); max-width: 560px; margin: 0 auto 20px; }
.candles { display: none; }
.memorial-inner::before { content: none; }
.memorial-pillars {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}
.memorial-pillar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(46,139,87,0.14);
    border: 1px solid rgba(46,139,87,0.32);
    border-radius: 999px;
    color: var(--primary-lighter, #6FCF97);
    font-size: 0.88rem;
    font-weight: 500;
}
.memorial-pillar svg,
.memorial-pillar i { width: 16px; height: 16px; color: var(--primary-lighter, #6FCF97); flex-shrink: 0; }

/* ── How it works: simpler ── */
.steps-line { background: var(--line); }
.step-num {
    background: var(--surface-elev);
    color: var(--brand);
    border-color: var(--brand-tint-strong);
    box-shadow: var(--shadow-1);
}
.step:hover .step-num { background: var(--brand); color: white; box-shadow: var(--shadow-2); }
.step-pulse { display: none; }
.step-emoji { color: var(--brand); }
.step-body p { color: var(--ink-soft); }

/* ── Web platform: drop floating phone, simplify ── */
.web-platform { background: var(--surface-2); }
.web-inner {
    background: var(--surface-elev);
    border-color: var(--line);
    box-shadow: var(--shadow-2);
    padding: 48px;
}
.device-phone {
    position: relative;
    bottom: auto; right: auto;
    margin: 16px auto 0;
    animation: none !important;
    width: 160px;
}
.web-feat span { color: var(--brand); }
.web-feat strong { color: var(--ink); }
.web-feat small { color: var(--ink-muted); }

/* ── Carousel: refine phone frame, neutral status bar ── */
.app-preview { background: var(--surface); }
.sp-frame {
    background: #1d2722;
    box-shadow: var(--shadow-3);
    border-radius: 32px;
    padding: 10px;
}
.sp-screen { background: var(--surface); border-radius: 22px; }
.sp-bar { background: var(--surface-elev); color: var(--ink); border-color: var(--line); }
.sp-greeting { color: var(--ink); font-size: 0.95rem; }
.sp-item { color: var(--ink-soft); border-color: var(--line); font-size: 0.78rem; }
.sp-item span { color: var(--brand); }
.sp-bottom { background: var(--surface-elev); border-color: var(--line); color: var(--ink-muted); }
.sp-bottom span.active { color: var(--brand); }
.spt-node { background: var(--brand-tint); color: var(--brand); }

/* ─────────────────────────────────────────────────────────────────────────────
   SUBPAGE DESIGN SYSTEM (about / privacy / terms / cookies / contact)
   Shared shell so secondary pages feel like first-class citizens, not afterthoughts.
   Dark-theme aware via existing semantic tokens.
   ───────────────────────────────────────────────────────────────────────────── */

/* Hero band — gentle brand-tinted gradient, eyebrow + breadcrumb stack */
.page-hero {
    position: relative;
    padding: 132px 0 56px;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, var(--brand-tint, rgba(46,139,87,0.12)) 0%, transparent 70%),
        linear-gradient(180deg, var(--surface-elev, #fff) 0%, var(--surface, #fafaf5) 100%);
    border-bottom: 1px solid var(--line, rgba(46,139,87,0.10));
    overflow: hidden;
}
.page-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 -1px 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--brand-soft, #2E8B57) 50%, transparent);
    opacity: 0.35;
}
.page-hero .container {
    max-width: 880px;
    text-align: left;
}
.page-hero .breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--ink-muted, #6b7570);
    margin-bottom: 16px;
}
.page-hero .breadcrumb a {
    color: var(--ink-muted, #6b7570);
    text-decoration: none;
    transition: color .2s;
}
.page-hero .breadcrumb a:hover { color: var(--brand, #1a6b3c); }
.page-hero .breadcrumb svg {
    width: 14px;
    height: 14px;
    opacity: 0.5;
}
.page-hero .eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brand, #1a6b3c);
    background: var(--brand-tint, rgba(46,139,87,0.10));
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 16px;
}
.page-hero h1 {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: clamp(2rem, 4.5vw, 3rem);
    line-height: 1.15;
    margin: 0 0 14px;
    color: var(--ink, #0e1a14);
    letter-spacing: -0.01em;
}
.page-hero .lede {
    color: var(--ink-soft, #45524d);
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 640px;
    margin: 0;
}
.page-hero .meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}
.page-hero .meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--ink-soft, #45524d);
    background: var(--surface-elev, #fff);
    border: 1px solid var(--line, rgba(46,139,87,0.10));
    padding: 6px 12px;
    border-radius: 999px;
}
.page-hero .meta-chip svg { width: 14px; height: 14px; color: var(--brand, #1a6b3c); }

/* Page content */
.page-content { padding: 56px 0 96px; background: var(--surface, #fafaf5); }
.page-content .container { max-width: 880px; }
.page-content h2 {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: 1.6rem;
    margin: 44px 0 14px;
    color: var(--ink, #0e1a14);
    scroll-margin-top: 100px;
}
.page-content h2:first-child { margin-top: 0; }
.page-content h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 28px 0 10px;
    color: var(--ink, #0e1a14);
}
.page-content p,
.page-content li {
    line-height: 1.75;
    color: var(--ink-soft, #45524d);
    font-size: 1rem;
}
.page-content ul { padding-left: 22px; margin: 12px 0; }
.page-content li { margin-bottom: 8px; }
.page-content a { color: var(--brand, #1a6b3c); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.page-content a:hover { color: var(--brand-strong, #14532b); }

/* Two-column legal layout: TOC sidebar + body */
.legal-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 56px;
    align-items: start;
}
.page-toc {
    position: sticky;
    top: 96px;
    align-self: start;
    border-left: 2px solid var(--line, rgba(46,139,87,0.12));
    padding: 4px 0 4px 16px;
}
.page-toc-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-muted, #6b7570);
    margin-bottom: 12px;
}
.page-toc ol {
    list-style: none;
    counter-reset: tocItem;
    padding: 0;
    margin: 0;
}
.page-toc li {
    counter-increment: tocItem;
    margin: 0 0 10px;
}
.page-toc a {
    display: block;
    font-size: 0.88rem;
    line-height: 1.4;
    color: var(--ink-soft, #45524d);
    text-decoration: none;
    padding: 4px 0;
    transition: color .15s;
}
.page-toc a::before {
    content: counter(tocItem) ". ";
    color: var(--ink-muted, #9aa6a1);
    font-variant-numeric: tabular-nums;
}
.page-toc a:hover,
.page-toc a.is-active {
    color: var(--brand, #1a6b3c);
}
.page-toc a.is-active { font-weight: 600; }

/* Plain-English summary callout */
.page-summary {
    background:
        linear-gradient(180deg, var(--brand-tint, rgba(46,139,87,0.10)), transparent 100%),
        var(--surface-elev, #fff);
    border: 1px solid var(--line, rgba(46,139,87,0.14));
    border-left: 4px solid var(--brand, #1a6b3c);
    border-radius: 14px;
    padding: 22px 24px;
    margin: 0 0 36px;
}
.page-summary-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ink, #0e1a14);
    margin: 0 0 10px;
}
.page-summary-title svg { width: 18px; height: 18px; color: var(--brand, #1a6b3c); }
.page-summary ul {
    margin: 0;
    padding-left: 20px;
}
.page-summary li {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--ink-soft, #45524d);
    margin-bottom: 6px;
}

/* About — value cards (icon variant, not emoji) */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin: 28px 0 8px;
}
.value-card {
    padding: 28px 26px;
    background: var(--surface-elev, #fff);
    border: 1px solid var(--line, rgba(46,139,87,0.10));
    border-radius: 16px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.value-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(14,26,20,0.06);
    border-color: var(--brand-soft, rgba(46,139,87,0.30));
}
.value-card .v-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--brand-tint, rgba(46,139,87,0.12));
    color: var(--brand, #1a6b3c);
    margin-bottom: 14px;
}
.value-card .v-badge svg { width: 22px; height: 22px; }
.value-card h3 {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 6px;
    color: var(--ink, #0e1a14);
}
.value-card p {
    font-size: 0.94rem;
    color: var(--ink-soft, #45524d);
    margin: 0;
    line-height: 1.55;
}

/* About — principles strip */
.principles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin: 24px 0 8px;
}
.principle {
    padding: 16px 18px;
    background: var(--surface, #fafaf5);
    border: 1px dashed var(--line, rgba(46,139,87,0.18));
    border-radius: 12px;
    font-size: 0.92rem;
    color: var(--ink-soft, #45524d);
}
.principle strong { color: var(--ink, #0e1a14); display: block; margin-bottom: 2px; font-size: 0.95rem; }

/* About / generic CTA bar */
.page-cta {
    margin: 56px 0 0;
    padding: 36px 32px;
    background:
        radial-gradient(ellipse at top right, var(--brand-tint, rgba(46,139,87,0.18)), transparent 60%),
        var(--surface-elev, #fff);
    border: 1px solid var(--line, rgba(46,139,87,0.14));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.page-cta h3 {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: 1.35rem;
    margin: 0 0 4px;
    color: var(--ink, #0e1a14);
}
.page-cta p { margin: 0; color: var(--ink-soft, #45524d); }

/* Contact — 2-column with channels left, form right */
.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 48px;
    align-items: start;
    margin-top: 8px;
}
.contact-channels { display: flex; flex-direction: column; gap: 16px; }
.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 22px;
    background: var(--surface-elev, #fff);
    border: 1px solid var(--line, rgba(46,139,87,0.10));
    border-radius: 14px;
    transition: border-color .2s, transform .2s;
}
.contact-card:hover { border-color: var(--brand-soft, rgba(46,139,87,0.30)); transform: translateY(-1px); }
.contact-card .c-badge {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--brand-tint, rgba(46,139,87,0.12));
    color: var(--brand, #1a6b3c);
}
.contact-card .c-badge svg { width: 20px; height: 20px; }
.contact-card h3 {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: 1.02rem;
    font-weight: 600;
    margin: 0 0 4px;
    color: var(--ink, #0e1a14);
}
.contact-card p, .contact-card a {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--ink-soft, #45524d);
}
.contact-card a { color: var(--brand, #1a6b3c); font-weight: 500; }

.contact-form {
    background: var(--surface-elev, #fff);
    border: 1px solid var(--line, rgba(46,139,87,0.10));
    border-radius: 18px;
    padding: 32px;
}
.contact-form h2 {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: 1.35rem;
    margin: 0 0 4px;
    color: var(--ink, #0e1a14);
    text-align: left;
}
.contact-form .form-intro { color: var(--ink-soft, #45524d); font-size: 0.92rem; margin: 0 0 22px; }
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--ink, #0e1a14);
    letter-spacing: 0.01em;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--line, rgba(46,139,87,0.18));
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    background: var(--surface, #fafaf5);
    color: var(--ink, #0e1a14);
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand, #1a6b3c);
    box-shadow: 0 0 0 3px var(--brand-tint, rgba(46,139,87,0.15));
    background: var(--surface-elev, #fff);
}
.form-group textarea { min-height: 130px; resize: vertical; }
.form-submit { margin-top: 8px; }

/* Dark theme tweaks */
:root[data-theme="dark"] .page-hero {
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(60,179,113,0.15) 0%, transparent 70%),
        linear-gradient(180deg, #16241D 0%, #0E1A14 100%);
    border-bottom-color: rgba(60,179,113,0.18);
}
:root[data-theme="dark"] .page-hero .meta-chip { background: #16241D; border-color: rgba(60,179,113,0.18); }
:root[data-theme="dark"] .value-card,
:root[data-theme="dark"] .contact-card,
:root[data-theme="dark"] .contact-form,
:root[data-theme="dark"] .page-summary { background: #16241D; border-color: rgba(60,179,113,0.18); }
:root[data-theme="dark"] .principle { background: rgba(60,179,113,0.05); border-color: rgba(60,179,113,0.20); }
:root[data-theme="dark"] .page-toc { border-left-color: rgba(60,179,113,0.20); }
:root[data-theme="dark"] .form-group input,
:root[data-theme="dark"] .form-group textarea { background: #0E1A14; border-color: rgba(60,179,113,0.22); }
:root[data-theme="dark"] .page-cta {
    background:
        radial-gradient(ellipse at top right, rgba(60,179,113,0.20), transparent 60%),
        #16241D;
    border-color: rgba(60,179,113,0.18);
}

/* Responsive */
@media (max-width: 900px) {
    .legal-layout { grid-template-columns: 1fr; gap: 24px; }
    .page-toc { position: static; border-left: none; border-top: 2px solid var(--line, rgba(46,139,87,0.12)); padding: 16px 0 0; }
    .contact-layout { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 600px) {
    .page-hero { padding: 110px 0 44px; }
    .page-hero h1 { font-size: 1.85rem; }
    .page-hero .lede { font-size: 1rem; }
    .page-content { padding: 40px 0 72px; }
    .contact-form { padding: 24px; }
    .page-cta { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
}
.sp-recipe span, .sp-ritual span { color: var(--brand); }
.sp-recipe strong, .sp-ritual strong { color: var(--ink); }
.sp-recipe small, .sp-ritual small { color: var(--ink-muted); }
.sp-health { color: var(--brand); }
.c-btn { background: var(--surface-elev); border-color: var(--line); color: var(--ink-soft); }
.c-btn:hover { background: var(--brand); color: white; border-color: var(--brand); }
.c-dot { background: var(--line-strong); }
.c-dot.active { background: var(--brand); }

/* ── Pricing coming-soon card ── */
.pricing { background: var(--surface-2); }
.pcs-card {
    border: 1px solid var(--line);
    background: var(--surface-elev);
    box-shadow: var(--shadow-2);
}
.pcs-card h3 { color: var(--ink); }
.pcs-card > p { color: var(--ink-soft); }
.pcs-icon { color: var(--brand); }
.pcs-item { color: var(--ink-soft); }
.pcs-item span { color: var(--brand); display: inline-flex; align-items: center; }

/* ── Testimonials → "Early Signals" ── */
.testimonials { background: var(--surface); }
.test-card { background: var(--surface-elev); border-color: var(--line); }
.test-stars { display: none; }
.test-card blockquote { color: var(--ink-soft); font-style: normal; }
.test-author strong { color: var(--ink); }
.test-author span { color: var(--ink-muted); }
.signal-tag {
    display: inline-block; padding: 3px 10px; border-radius: 999px;
    background: var(--brand-tint); color: var(--brand); border: 1px solid var(--brand-tint-strong);
    font-size: 0.7rem; font-weight: 600; letter-spacing: 0.6px; text-transform: uppercase;
    margin-bottom: 12px;
}
:root[data-theme="dark"] .signal-tag,
:root:not([data-theme="light"]) .signal-tag { color: var(--primary-lighter); }

/* ── FAQ ── */
.faq { background: var(--surface-2); }
.faq-q { color: var(--ink); }
.faq-a p { color: var(--ink-soft); }
.faq-item { border-color: var(--line); }

/* ── CTA: drop orbs + dark-blue gradient ── */
.cta {
    background:
        radial-gradient(ellipse 60% 50% at 50% 100%, var(--brand-tint), transparent 60%),
        var(--surface);
}
.cta-orb-1, .cta-orb-2, .cta-bg { display: none !important; }
.cta-title { color: var(--ink); }
.cta-title .text-glow {
    background: linear-gradient(135deg, var(--brand), var(--brand-soft));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--brand);
    text-shadow: none;
}
.cta-desc { color: var(--ink-soft); }
.form-group input { background: var(--surface-elev); border-color: var(--line-strong); color: var(--ink); }
.form-group input::placeholder { color: var(--ink-muted); }
.cta-avatars { display: none; }
.cta-proof { color: var(--ink-soft); }

/* ── Hero stats: hide extras (kept for backward compat with cleaned markup) ── */
.hero-stats .stat-divider { background: var(--line-strong); }
.stat-number { color: var(--brand); }
.stat-label { color: var(--ink-muted); }

/* ── Trust line under hero CTAs ── */
.hero-trust {
    margin-top: 28px;
    font-size: 0.85rem;
    color: var(--ink-muted);
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    align-items: center;
}
.hero-trust strong { color: var(--ink-soft); font-weight: 600; }
.hero-trust .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-muted); display: inline-block; }

/* ── Navbar: refined surface ── */
.navbar.scrolled {
    background: color-mix(in srgb, var(--surface) 85%, transparent);
    box-shadow: 0 1px 0 var(--line);
    backdrop-filter: blur(16px) saturate(1.1);
    -webkit-backdrop-filter: blur(16px) saturate(1.1);
}
.nav-link { color: var(--ink-soft); }
.nav-link:hover { color: var(--brand); background: var(--brand-tint); }
.logo-text { color: var(--ink); }
.logo-accent { color: var(--brand); }

/* ── Theme toggle ── */
.theme-toggle {
    width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 8px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--ink-soft);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.theme-toggle:hover { background: var(--brand-tint); color: var(--brand); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-sun,
:root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon,
:root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) .theme-toggle .icon-sun { display: none; }
    :root:not([data-theme="dark"]) .theme-toggle .icon-moon { display: block; }
}

/* ── Footer: subtle dark in light mode, deeper in dark mode ── */
.footer {
    background: #0E1A14;
    color: #B8C7BC;
}
:root[data-theme="dark"] .footer,
:root:not([data-theme="light"]) .footer { background: #08130D; }

/* ── Cookie banner refinement ── */
.cookie-banner {
    background: var(--surface-elev);
    border-top: 1px solid var(--line);
    box-shadow: 0 -4px 16px rgba(0,0,0,0.06);
}
.cookie-content p { color: var(--ink-soft); }

/* ── Toast ── */
.toast { background: var(--surface-elev); border-color: var(--line); color: var(--ink); }
.toast-msg { color: var(--ink); }

/* ── Lang switcher dark-mode adaptation ── */
.lang-dropdown { background: var(--surface-elev); border-color: var(--line); }
.lang-option { color: var(--ink); }
.lang-option:hover { background: var(--brand-tint); }
.lang-option .lang-native { color: var(--ink-muted); }

/* ── Scroll-reveal line subtler ── */
.scroll-reveal-line { background: linear-gradient(90deg, transparent, var(--line-strong), transparent); }
.scroll-reveal-line.anim-visible { width: 80px; }

/* ── Hero waitlist hidden until populated by JS ── */
.hero-stats[hidden],
.hero-stats.is-empty { display: none; }




/* ========================================================================
   EARLY SIGNALS (replaces fabricated testimonials)
   ======================================================================== */
.early-signals .signals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 2.5rem;
}
.signal-card {
    background: var(--surface, #ffffff);
    border: 1px solid var(--border, rgba(0,0,0,.08));
    border-radius: 16px;
    padding: 1.5rem 1.5rem 1.25rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.signal-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(26, 107, 60, .08);
    border-color: rgba(26, 107, 60, .25);
}
.signal-quote {
    font-size: 1.0625rem;
    line-height: 1.55;
    color: var(--text, #0a1628);
    margin: 0 0 .75rem;
    font-weight: 500;
}
.signal-meta {
    font-size: .8125rem;
    color: var(--text-muted, #64748b);
    margin: 0;
    letter-spacing: .01em;
}
:root[data-theme="dark"] .signal-card {
    background: var(--surface, #111827);
    border-color: rgba(255,255,255,.08);
}

/* Impact row — how the app is helping families preserve memories */
.signals-impact {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--line, rgba(0,0,0,.08));
}
.signals-impact-title {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--ink, #0a1628);
    margin: 0 0 1.75rem;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}
.signals-impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}
.impact-card {
    background: var(--surface, #ffffff);
    border: 1px solid var(--line, rgba(0,0,0,.08));
    border-radius: 16px;
    padding: 1.5rem;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.impact-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(26, 107, 60, .10);
    border-color: rgba(26, 107, 60, .28);
}
.impact-badge {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--brand-tint, rgba(26,107,60,.10));
    color: var(--brand, #1a6b3c);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.impact-badge svg,
.impact-badge i { width: 22px; height: 22px; color: var(--brand, #1a6b3c); }
.impact-card h4 {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--ink, #0a1628);
    margin: 0 0 .5rem;
    line-height: 1.35;
}
.impact-card p {
    font-size: .9375rem;
    line-height: 1.5;
    color: var(--ink-soft, #475569);
    margin: 0 0 .5rem;
}
.impact-card .impact-meta {
    font-size: .8125rem;
    color: var(--ink-muted, #64748b);
    margin: 0;
}
:root[data-theme="dark"] .signals-impact { border-top-color: rgba(255,255,255,.08); }
:root[data-theme="dark"] .signals-impact-title { color: var(--ink, #e2e8f0); }
:root[data-theme="dark"] .impact-card {
    background: var(--surface-elev, #16241D);
    border-color: rgba(255,255,255,.08);
}
:root[data-theme="dark"] .impact-card h4 { color: var(--ink, #e2e8f0); }
:root[data-theme="dark"] .impact-card p { color: var(--ink-soft, rgba(255,255,255,.75)); }
:root[data-theme="dark"] .impact-card .impact-meta { color: var(--ink-muted, rgba(255,255,255,.55)); }
:root[data-theme="dark"] .impact-badge {
    background: rgba(60,179,113,.14);
    color: var(--brand-soft, #3CB371);
}
:root[data-theme="dark"] .impact-badge svg,
:root[data-theme="dark"] .impact-badge i { color: var(--brand-soft, #3CB371); }

/* CTA proof � hidden until count >= 50, no fake avatars */
.cta-proof[hidden] { display: none !important; }
.cta-proof {
    margin-top: 1.5rem;
    text-align: center;
    color: var(--text-muted, #64748b);
    font-size: .9375rem;
}
.cta-proof strong { color: var(--primary, #1a6b3c); font-weight: 700; }




/* ========================================================================
   Blog & Search (added by Eleventy revamp)
   ======================================================================== */

/* Page hero shared by blog index, post hero, and search */
.page-hero { padding: 140px 0 60px; text-align: center; background: var(--bg-warm); border-bottom: 1px solid var(--border); }
.page-hero h1 { font-family: var(--font-heading); font-size: clamp(2.2rem, 4vw, 3rem); margin-bottom: 16px; color: var(--text); }
.page-hero p { color: var(--text-secondary); font-size: 1.1rem; max-width: 640px; margin: 0 auto 16px; }
[data-theme="dark"] .page-hero { background: rgba(255,255,255,0.02); }
.page-content { padding: 60px 0 100px; }

/* Search button in nav */
.nav-search-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: var(--radius-full); color: var(--text-secondary); transition: background 0.2s var(--ease), color 0.2s var(--ease); }
.nav-search-btn:hover { background: var(--primary-50); color: var(--primary); }

/* Blog index */
.blog-search-bar { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.tag-nav { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 32px; color: var(--text-muted); font-size: 0.9rem; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }

.blog-card { position: relative; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px 24px; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease); display: flex; flex-direction: column; gap: 12px; }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary-100); }
.blog-card h2, .blog-card h3 { font-family: var(--font-heading); font-size: 1.35rem; line-height: 1.25; color: var(--text); }
.blog-card h2 a, .blog-card h3 a { color: inherit; text-decoration: none; }

/* ========================================================================
   FIX BATCH — May 2026
   1. Mobile hero-tree centering
   2. Mobile day-card: icons inside card, hide outer day-time
   3. How It Works: JS-driven step highlighting
   4. Mobile nav: theme + lang controls inside drawer
   ======================================================================== */

/* ── 1. Hero tree: always centered in single-column layout ── */
@media (max-width: 1024px) {
    .hero-visual { justify-content: center; align-items: center; width: 100%; }
    .hero-tree { margin: 0 auto; }
}

/* ── 2. "How Families Use It" cards — mobile: hide external day-time, show inline header ── */
/* Desktop: show external day-time, hide inline header */
.day-content-header { display: none; }

@media (max-width: 768px) {
    /* Hide the external icon/label that was floating outside the card */
    .day-card .day-time { display: none; }
    /* Show inline header inside the card */
    .day-content-header {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 12px;
        padding-bottom: 12px;
        border-bottom: 1px solid var(--line, rgba(0,0,0,0.08));
    }
    .day-emoji-inline {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px; height: 36px;
        border-radius: 50%;
        background: var(--brand-tint, rgba(26,107,60,0.10));
        color: var(--brand, #1a6b3c);
        flex-shrink: 0;
    }
    .day-emoji-inline i, .day-emoji-inline svg { width: 18px; height: 18px; color: var(--brand, #1a6b3c); }
    .day-label-inline {
        font-family: var(--font-heading, 'Playfair Display', serif);
        font-weight: 600;
        font-size: 0.9rem;
        color: var(--brand, #1a6b3c);
    }
    /* Also hide the timeline line (already hidden by existing rule, keep reinforced) */
    .timeline-line { display: none; }
    /* Ensure card takes full width with proper gap */
    .day-card { flex-direction: column; gap: 0; }
    .day-content { flex: 1; width: 100%; }
}

/* ── 3. How It Works — step highlighting (JS adds .step-active class) ── */
.step-num {
    transition: background 0.35s ease, color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}
.step.step-active .step-num {
    background: var(--brand, #1a6b3c);
    color: white;
    box-shadow: 0 0 0 4px var(--brand-tint-strong, rgba(26,107,60,0.22)), 0 4px 16px rgba(26,107,60,0.28);
    transform: scale(1.1);
}
.step.step-active .step-body h3 { color: var(--brand, #1a6b3c); }
.step-emoji { transition: none; }
/* Dark mode adjustments */
:root[data-theme="dark"] .step.step-active .step-num {
    background: var(--brand-soft, #3CB371);
    color: #0a1410;
    box-shadow: 0 0 0 4px rgba(60,179,113,0.25), 0 4px 16px rgba(60,179,113,0.30);
}
:root[data-theme="dark"] .step.step-active .step-body h3 { color: var(--brand-soft, #3CB371); }

/* ── 4. Mobile nav drawer: theme toggle + lang switcher at the bottom ── */
/* These items are only visible inside the mobile slide-out nav */
.mobile-nav-actions { display: none; }
@media (max-width: 768px) {
    .mobile-nav-actions {
        display: block;
        margin-top: auto;
        padding-top: 16px;
        border-top: 1px solid var(--line, rgba(0,0,0,0.10));
        width: 100%;
    }
    .mobile-nav-tools {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 8px 16px;
    }
    /* Mobile lang switcher shares same styles as desktop, just different ID */
    .lang-switcher-mobile { position: relative; flex: 1; }
    .lang-switcher-mobile .lang-btn {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 9px 14px;
        border-radius: 10px;
        border: 1px solid var(--line-strong, rgba(0,0,0,0.14));
        background: var(--surface-elev, #fff);
        color: var(--ink, #14201A);
        font-size: 0.88rem;
        font-weight: 600;
        cursor: pointer;
        width: 100%;
        justify-content: center;
    }
    .lang-switcher-mobile .lang-dropdown {
        position: absolute;
        bottom: calc(100% + 8px);
        left: 0;
        right: 0;
    }
    /* Mobile theme toggle: show label beside icon */
    .theme-toggle-mobile {
        width: auto;
        height: auto;
        padding: 9px 14px;
        border-radius: 10px;
        border: 1px solid var(--line-strong, rgba(0,0,0,0.14)) !important;
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 0.88rem;
        font-weight: 600;
        color: var(--ink, #14201A);
        background: var(--surface-elev, #fff);
        white-space: nowrap;
        flex-shrink: 0;
    }
    .theme-toggle-label { display: inline; font-size: 0.85rem; color: var(--ink-soft, #3D4A43); }
}
.blog-card p { color: var(--text-secondary); line-height: 1.6; font-size: 0.98rem; }
.blog-card-meta { color: var(--text-muted); font-size: 0.85rem; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: auto; }
.blog-card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.blog-card-link { position: absolute; inset: 0; z-index: 1; }
.blog-card h2, .blog-card h3, .blog-card p, .blog-card-meta, .blog-card-tags { position: relative; z-index: 2; }
.blog-card-sm { padding: 20px; }
.blog-card-sm h3 { font-size: 1.1rem; }
[data-theme="dark"] .blog-card { background: var(--bg-dark-card); border-color: var(--border-light); }

.tag-pill { display: inline-block; padding: 4px 10px; border-radius: var(--radius-full); background: var(--primary-50); color: var(--primary); font-size: 0.78rem; font-weight: 500; text-decoration: none; transition: background 0.2s var(--ease); }
.tag-pill:hover { background: var(--primary-100); }
[data-theme="dark"] .tag-pill { background: rgba(60,179,113,0.15); color: var(--primary-lighter); }

.pagination { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 0.95rem; }
.pagination a { color: var(--primary); text-decoration: none; font-weight: 500; }
.pagination a:hover { text-decoration: underline; }

/* Single post */
.post-article .post-hero { padding: 120px 0 40px; background: var(--bg-warm); border-bottom: 1px solid var(--border); text-align: center; }
[data-theme="dark"] .post-article .post-hero { background: rgba(255,255,255,0.02); }
.post-hero-container { max-width: 800px; }
.post-back { display: inline-block; color: var(--primary); text-decoration: none; font-size: 0.9rem; margin-bottom: 24px; font-weight: 500; }
.post-back:hover { text-decoration: underline; }
.post-title { font-family: var(--font-heading); font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1.15; color: var(--text); margin-bottom: 20px; }
.post-deck { font-size: 1.2rem; color: var(--text-secondary); line-height: 1.55; max-width: 680px; margin: 0 auto 24px; }
.post-meta { color: var(--text-muted); font-size: 0.92rem; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; align-items: center; }
.post-meta-sep { opacity: 0.5; }
.post-author { font-weight: 500; color: var(--text-secondary); }
.post-author-role { color: var(--text-muted); font-weight: 400; }
.post-tags { margin-top: 16px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }

.post-body-container { max-width: 740px; padding-top: 56px; padding-bottom: 56px; }
.post-body { font-size: 1.1rem; line-height: 1.8; color: var(--text); }
.post-body h2 { font-family: var(--font-heading); font-size: 1.8rem; margin: 48px 0 16px; line-height: 1.25; }
.post-body h3 { font-family: var(--font-heading); font-size: 1.35rem; margin: 32px 0 12px; }
.post-body p { margin-bottom: 20px; color: var(--text-secondary); }
.post-body ul, .post-body ol { margin: 0 0 20px 1.4em; color: var(--text-secondary); }
.post-body li { margin-bottom: 8px; }
.post-body strong { color: var(--text); }
.post-body a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.post-body blockquote { border-left: 4px solid var(--accent); background: var(--primary-50); padding: 16px 20px; margin: 28px 0; font-family: var(--font-heading); font-style: italic; font-size: 1.15rem; color: var(--text); border-radius: 0 var(--radius) var(--radius) 0; }
[data-theme="dark"] .post-body blockquote { background: rgba(198,124,55,0.08); }
.post-body table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 0.95rem; }
.post-body th, .post-body td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.post-body th { background: var(--primary-50); color: var(--text); font-weight: 600; }
.post-body code { background: var(--primary-50); padding: 2px 6px; border-radius: 4px; font-size: 0.92em; }

/* Author + CTA + related */
.author-card { display: flex; gap: 16px; align-items: flex-start; padding: 24px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); margin: 48px 0 32px; }
.author-avatar { width: 56px; height: 56px; border-radius: var(--radius-full); background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; flex-shrink: 0; }
.author-name { font-weight: 600; color: var(--text); margin-bottom: 4px; }
.author-role { color: var(--text-muted); font-weight: 400; font-size: 0.92rem; }
.author-bio { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.55; }
[data-theme="dark"] .author-card { background: var(--bg-dark-card); border-color: var(--border-light); }

.cta-card { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff; padding: 36px 32px; border-radius: var(--radius-lg); text-align: center; margin: 32px 0 48px; }
.cta-card h3 { font-family: var(--font-heading); font-size: 1.6rem; color: #fff; margin-bottom: 8px; }
.cta-card p { color: rgba(255,255,255,0.9); margin-bottom: 20px; line-height: 1.55; }
.cta-card .btn { background: #fff; color: var(--primary); }
.cta-card .btn:hover { background: var(--bg-warm); }

.related-posts { margin: 48px 0; }
.related-posts h2 { font-family: var(--font-heading); font-size: 1.5rem; margin-bottom: 20px; color: var(--text); }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }

/* Comments */
.post-comments { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--border); }
.comments-heading { font-family: var(--font-heading); font-size: 1.4rem; margin-bottom: 8px; color: var(--text); }
.comments-help { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 20px; }

/* Pagefind UI overrides � match site theme */
.pagefind-host { min-height: 200px; }
.pagefind-ui { --pagefind-ui-primary: var(--primary); --pagefind-ui-text: var(--text); --pagefind-ui-background: var(--bg-card); --pagefind-ui-border: var(--border); --pagefind-ui-tag: var(--primary-50); --pagefind-ui-border-radius: var(--radius); --pagefind-ui-font: var(--font-body); }
[data-theme="dark"] .pagefind-ui { --pagefind-ui-text: var(--text-light); --pagefind-ui-background: var(--bg-dark-card); --pagefind-ui-border: var(--border-light); --pagefind-ui-tag: rgba(60,179,113,0.15); }

/* ========================================================================
   Blog & Article Redesign (v2)
   ======================================================================== */

/* Reading progress bar */
.reading-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1000; background: transparent; pointer-events: none; }
.reading-progress-bar { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--primary), var(--primary-lighter), var(--accent)); transition: width 0.1s linear; box-shadow: 0 0 12px rgba(46,139,87,0.4); }

/* ── Blog Hero (index) ──────────────────────────────────────────────── */
.blog-hero { position: relative; padding: calc(var(--nav-h) + 60px) 0 80px; overflow: hidden; }
.blog-hero-bg { position: absolute; inset: 0; z-index: 0; }
.blog-hero-gradient { position: absolute; inset: 0; background: linear-gradient(135deg, #f0f9f4 0%, var(--bg) 40%, var(--bg-warm) 70%, #fef3e2 100%); }
[data-theme="dark"] .blog-hero-gradient { background: linear-gradient(135deg, #0a1628 0%, #0e1b2c 50%, #14202f 100%); }
.blog-hero-container { position: relative; z-index: 1; text-align: center; max-width: 820px; }
.blog-hero-title { font-family: var(--font-heading); font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1.1; letter-spacing: -0.02em; margin: 18px 0 18px; color: var(--text); font-weight: 700; }
.blog-hero-subtitle { font-size: clamp(1rem, 1.4vw, 1.18rem); color: var(--text-secondary); line-height: 1.7; max-width: 620px; margin: 0 auto 28px; }
.blog-hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.blog-hero-actions .btn { display: inline-flex; align-items: center; gap: 8px; }

/* ── Topic chips ─────────────────────────────────────────────────────── */
.blog-page { padding: 60px 0 100px; }
.blog-topics { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 56px; padding-bottom: 24px; border-bottom: 1px dashed var(--border); }
.blog-topics-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 600; color: var(--text-muted); }
.blog-topics-list { display: flex; flex-wrap: wrap; gap: 8px; }
.topic-chip { display: inline-flex; align-items: center; padding: 6px 14px; border-radius: var(--radius-full); background: var(--bg-card); color: var(--text-secondary); border: 1px solid var(--border); font-size: 0.85rem; font-weight: 500; text-decoration: none; transition: all 0.2s var(--ease); text-transform: capitalize; }
.topic-chip:hover { background: var(--primary-50); border-color: var(--primary-100); color: var(--primary); transform: translateY(-1px); }
.topic-chip-sm { padding: 3px 10px; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.6px; font-weight: 600; background: var(--primary-50); color: var(--primary); border-color: transparent; }
[data-theme="dark"] .topic-chip { background: var(--bg-dark-card); border-color: var(--border-light); color: var(--text-light-muted); }
[data-theme="dark"] .topic-chip-sm { background: rgba(60,179,113,0.15); color: var(--primary-lighter); }

/* ── Featured post ───────────────────────────────────────────────────── */
.featured-post { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; background: var(--bg-card); border: 1px solid var(--border); border-radius: 24px; padding: 32px; margin-bottom: 80px; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); position: relative; overflow: hidden; }
.featured-post::before { content: ''; position: absolute; inset: 0; background: radial-gradient(800px 300px at 0% 0%, rgba(46,139,87,0.06), transparent 60%); pointer-events: none; }
.featured-post:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
[data-theme="dark"] .featured-post { background: var(--bg-dark-card); border-color: var(--border-light); }
.featured-post-media { position: relative; display: block; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; background: linear-gradient(135deg, var(--primary-50), var(--primary-100, rgba(46,139,87,0.15))); }
.featured-post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.featured-post:hover .featured-post-media img { transform: scale(1.04); }
.featured-badge { position: absolute; top: 16px; left: 16px; background: rgba(255,255,255,0.95); color: var(--primary); padding: 6px 12px; border-radius: var(--radius-full); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.featured-post-body { position: relative; z-index: 1; }
.featured-post-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.featured-post-title { font-family: var(--font-heading); font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 14px; }
.featured-post-title a { color: var(--text); text-decoration: none; background-image: linear-gradient(var(--primary), var(--primary)); background-size: 0% 2px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size 0.3s var(--ease); }
.featured-post-title a:hover { background-size: 100% 2px; }
.featured-post-excerpt { color: var(--text-secondary); font-size: 1.05rem; line-height: 1.7; margin-bottom: 20px; }
.featured-post-link { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-weight: 600; text-decoration: none; margin-top: 16px; transition: gap 0.2s var(--ease); }
.featured-post-link:hover { gap: 10px; }

/* ── Section headers ─────────────────────────────────────────────────── */
.blog-section-header { display: flex; align-items: center; gap: 20px; margin: 0 0 32px; }
.blog-section-title { font-family: var(--font-heading); font-size: 1.6rem; color: var(--text); margin: 0; letter-spacing: -0.01em; }
.blog-section-rule { flex: 1; height: 1px; background: linear-gradient(to right, var(--border), transparent); }

/* ── Post grid (cards) ───────────────────────────────────────────────── */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 32px; }
.post-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease); position: relative; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary-100); }
[data-theme="dark"] .post-card { background: var(--bg-dark-card); border-color: var(--border-light); }
.post-card-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, var(--primary-50), rgba(198,124,55,0.1)); position: relative; }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.post-card:hover .post-card-media img { transform: scale(1.06); }
.post-card-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.post-card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.post-card-title { font-family: var(--font-heading); font-size: 1.3rem; line-height: 1.3; letter-spacing: -0.005em; margin: 0; }
.post-card-title a { color: var(--text); text-decoration: none; transition: color 0.2s var(--ease); }
.post-card-title a:hover { color: var(--primary); }
.post-card-excerpt { color: var(--text-secondary); line-height: 1.6; font-size: 0.95rem; margin: 0; }
.post-card-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--text-muted); font-size: 0.82rem; margin-top: auto; padding-top: 8px; }
.post-meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-muted); opacity: 0.5; display: inline-block; }

/* ── Shared meta row (with avatar) ───────────────────────────────────── */
.post-meta-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--text-muted); font-size: 0.88rem; margin-bottom: 16px; }
.post-meta-author { display: inline-flex; align-items: center; gap: 10px; }
.post-meta-avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-weight: 700; font-size: 1rem; flex-shrink: 0; }
.post-meta-author-text { line-height: 1.3; color: var(--text-secondary); font-size: 0.85rem; }
.post-meta-author-text strong { color: var(--text); font-weight: 600; }
.post-meta-role { color: var(--text-muted); font-size: 0.78rem; }

/* ── Pagination ──────────────────────────────────────────────────────── */
.pagination { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 0.95rem; }
.pagination > :first-child { justify-self: start; }
.pagination > :last-child { justify-self: end; }
.pagination .pagination-info { font-family: var(--font-heading); font-size: 0.95rem; }
.pagination a { color: var(--primary); text-decoration: none; font-weight: 600; padding: 10px 18px; border-radius: var(--radius-full); border: 1px solid var(--border); transition: all 0.2s var(--ease); }
.pagination a:hover { background: var(--primary-50); border-color: var(--primary-100); }

/* ── Article hero (v2) ───────────────────────────────────────────────── */
.post-hero-v2 { position: relative; padding: calc(var(--nav-h) + 48px) 0 60px; overflow: hidden; border-bottom: 1px solid var(--border); }
.post-hero-bg { position: absolute; inset: 0; z-index: 0; }
.post-hero-bg .blog-hero-gradient { opacity: 0.65; }
.post-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; max-width: 1140px; }
.post-hero-text { min-width: 0; }
.post-back { display: inline-flex; align-items: center; gap: 4px; color: var(--text-muted); text-decoration: none; font-size: 0.88rem; margin-bottom: 24px; font-weight: 500; transition: color 0.2s var(--ease); }
.post-back:hover { color: var(--primary); }
.post-hero-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.post-title-v2 { font-family: var(--font-heading); font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.1; letter-spacing: -0.025em; color: var(--text); margin: 0 0 18px; font-weight: 700; }
.post-deck-v2 { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--text-secondary); line-height: 1.6; margin: 0 0 28px; max-width: 60ch; }
.post-meta-row-hero { font-size: 0.92rem; }
.post-hero-media { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow-lg); background: linear-gradient(135deg, var(--primary-50), rgba(198,124,55,0.1)); }
.post-hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* ── Article body (v2) ───────────────────────────────────────────────── */
.post-body-container-v2 { max-width: 720px; padding-top: 64px; padding-bottom: 64px; }
.post-body-v2 { font-size: 1.125rem; line-height: 1.85; color: var(--text-secondary); font-family: var(--font-body); }
.post-body-v2 > p:first-of-type { font-size: 1.22rem; line-height: 1.7; color: var(--text); }
.post-body-v2 > p:first-of-type::first-letter { font-family: var(--font-heading); font-size: 4.2rem; line-height: 0.95; float: left; padding: 6px 14px 0 0; color: var(--primary); font-weight: 700; }
.post-body-v2 h2 { font-family: var(--font-heading); font-size: clamp(1.5rem, 2.4vw, 1.95rem); margin: 56px 0 18px; line-height: 1.25; color: var(--text); letter-spacing: -0.01em; position: relative; padding-left: 20px; }
.post-body-v2 h2::before { content: ''; position: absolute; left: 0; top: 0.35em; bottom: 0.35em; width: 4px; border-radius: 4px; background: linear-gradient(to bottom, var(--primary), var(--accent)); }
.post-body-v2 h3 { font-family: var(--font-heading); font-size: 1.4rem; margin: 36px 0 12px; color: var(--text); letter-spacing: -0.005em; }
.post-body-v2 p { margin-bottom: 22px; }
.post-body-v2 ul, .post-body-v2 ol { margin: 0 0 24px 0; padding-left: 1.4em; }
.post-body-v2 li { margin-bottom: 10px; padding-left: 6px; }
.post-body-v2 li::marker { color: var(--primary); }
.post-body-v2 strong { color: var(--text); font-weight: 600; }
.post-body-v2 a { color: var(--primary); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; text-decoration-color: rgba(46,139,87,0.4); transition: text-decoration-color 0.2s var(--ease); }
.post-body-v2 a:hover { text-decoration-color: var(--primary); }
.post-body-v2 blockquote { border: none; background: linear-gradient(135deg, var(--primary-50), rgba(198,124,55,0.05)); padding: 28px 32px; margin: 36px -16px; font-family: var(--font-heading); font-style: italic; font-size: 1.3rem; line-height: 1.5; color: var(--text); border-radius: 16px; position: relative; }
.post-body-v2 blockquote::before { content: '\201C'; position: absolute; top: -8px; left: 16px; font-size: 4rem; color: var(--primary); opacity: 0.3; font-family: var(--font-heading); line-height: 1; }
[data-theme="dark"] .post-body-v2 blockquote { background: rgba(46,139,87,0.08); }
.post-body-v2 table { width: 100%; border-collapse: collapse; margin: 32px 0; font-size: 0.96rem; background: var(--bg-card); border-radius: 12px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.post-body-v2 th, .post-body-v2 td { padding: 14px 18px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.post-body-v2 th { background: var(--primary-50); color: var(--text); font-weight: 600; font-family: var(--font-heading); font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.5px; }
.post-body-v2 tr:last-child td { border-bottom: none; }
.post-body-v2 code { background: var(--primary-50); color: var(--primary); padding: 2px 8px; border-radius: 6px; font-size: 0.9em; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.post-body-v2 hr { border: none; height: 1px; background: linear-gradient(to right, transparent, var(--border), transparent); margin: 48px 0; }
.post-body-v2 img { max-width: 100%; border-radius: 16px; margin: 24px 0; }

/* ── Share row ───────────────────────────────────────────────────────── */
.post-share { display: flex; align-items: center; gap: 12px; margin: 48px 0 8px; padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.post-share-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 600; color: var(--text-muted); margin-right: 4px; }
.share-btn { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--bg-card); border: 1px solid var(--border); color: var(--text-secondary); cursor: pointer; transition: all 0.2s var(--ease); text-decoration: none; }
.share-btn:hover { background: var(--primary-50); border-color: var(--primary-100); color: var(--primary); transform: translateY(-2px); }
.share-btn.share-copied { background: var(--primary); color: #fff; border-color: var(--primary); }
[data-theme="dark"] .share-btn { background: var(--bg-dark-card); border-color: var(--border-light); }

/* ── Author card v2 ──────────────────────────────────────────────────── */
.author-card-v2 { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; padding: 28px; background: linear-gradient(135deg, var(--bg-card), var(--bg-warm)); border: 1px solid var(--border); border-radius: 20px; margin: 48px 0 32px; }
[data-theme="dark"] .author-card-v2 { background: var(--bg-dark-card); border-color: var(--border-light); }
.author-avatar-v2 { width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-size: 2rem; font-weight: 700; box-shadow: 0 4px 16px rgba(26,107,60,0.25); }
.author-card-eyebrow { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 700; color: var(--primary); display: block; margin-bottom: 4px; }
.author-name-v2 { font-family: var(--font-heading); font-weight: 700; font-size: 1.25rem; color: var(--text); margin: 0 0 6px; }
.author-role-v2 { color: var(--text-muted); font-weight: 400; font-size: 0.92rem; }
.author-bio-v2 { color: var(--text-secondary); font-size: 0.98rem; line-height: 1.6; margin: 0; }

/* ── CTA card v2 ─────────────────────────────────────────────────────── */
.cta-card-v2 { position: relative; background: linear-gradient(135deg, #1a6b3c 0%, #2E8B57 60%, #C67C37 130%); color: #fff; padding: 48px 40px; border-radius: 24px; text-align: center; margin: 32px 0 64px; overflow: hidden; }
.cta-card-glow { position: absolute; inset: -50%; background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 50%); animation: orb-float 6s ease-in-out infinite alternate; pointer-events: none; }
.cta-card-content { position: relative; z-index: 1; }
.cta-card-v2 .cta-badge { background: rgba(255,255,255,0.18); color: #fff; backdrop-filter: blur(8px); margin-bottom: 16px; }
.cta-card-v2 .cta-badge .badge-pulse { background: #fff; }
.cta-card-v2 .cta-badge .badge-pulse::before { border-color: #fff; }
.cta-card-v2 h3 { font-family: var(--font-heading); font-size: clamp(1.6rem, 3vw, 2.2rem); color: #fff; margin: 0 0 12px; letter-spacing: -0.01em; }
.cta-card-v2 p { color: rgba(255,255,255,0.92); margin: 0 auto 24px; line-height: 1.6; max-width: 480px; font-size: 1.05rem; }
.cta-card-v2 .btn { background: #fff; color: var(--primary); font-weight: 600; padding: 14px 28px; }
.cta-card-v2 .btn:hover { background: var(--bg-warm); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }

/* ── Related ─────────────────────────────────────────────────────────── */
.related-posts-v2 { margin: 64px 0 32px; }
.related-grid-v2 { gap: 24px; }
.related-grid-v2 .post-card-title { font-size: 1.15rem; }
.related-grid-v2 .post-card-body { padding: 20px; }

/* ── Comments spacing ────────────────────────────────────────────────── */
.post-comments { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--border); }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .featured-post { grid-template-columns: 1fr; gap: 24px; padding: 20px; }
  .featured-post-media { aspect-ratio: 16 / 9; }
  .post-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .post-hero-media { aspect-ratio: 16 / 9; max-width: 560px; margin: 0 auto; width: 100%; }
  .post-body-v2 blockquote { margin-left: 0; margin-right: 0; padding: 22px 24px; font-size: 1.15rem; }
  .post-body-v2 > p:first-of-type::first-letter { font-size: 3.4rem; }
  .author-card-v2 { grid-template-columns: 1fr; text-align: center; }
  .author-avatar-v2 { margin: 0 auto; }
}
@media (max-width: 600px) {
  .blog-hero { padding-top: calc(var(--nav-h) + 32px); padding-bottom: 56px; }
  .post-grid { grid-template-columns: 1fr; gap: 24px; }
  .pagination { grid-template-columns: 1fr; gap: 12px; text-align: center; }
  .pagination > :first-child, .pagination > :last-child { justify-self: center; }
  .cta-card-v2 { padding: 36px 24px; }
}

/* ======================================================================
   FIX BATCH � Round 2 (June 2026)
   ====================================================================== */

/* -- R2-1: Mobile lang dropdown � escape overflow-y:auto clipping ----- */
/* The .nav-links drawer has overflow-y:auto which clips position:absolute.
   Override the dropdown to use position:fixed, computed via JS below, 
   but as a CSS-only fallback use a slide-down (non-absolute) approach. */
@media (max-width: 768px) {
    /* .nav-links has overflow-y:auto which clips position:absolute children.
       overflow:visible lets the lang dropdown escape upward. With 6 links +
       actions the nav content fits on any phone without needing to scroll. */
    .nav-links { overflow: visible; }
    .lang-switcher-mobile .lang-dropdown {
        position: absolute;
        bottom: calc(100% + 8px);
        top: auto;
        left: 0;
        right: 0;
        z-index: 2000;
        max-height: 260px;
        overflow-y: auto;
        border-radius: 12px;
    }
    .lang-switcher-mobile .lang-dropdown.open {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
}

/* -- R2-2: Mobile tree � show all tag labels (not just Legacy) --------- */
@media (max-width: 520px) {
    /* Override the existing hide-all-labels rule */
    .tree-tag .tt-label { display: inline !important; }
    /* Shrink tags slightly so they fit the smaller tree canvas */
    .tree-tag {
        font-size: 0.66rem !important;
        padding: 4px 8px 4px 6px !important;
        gap: 5px !important;
    }
    .tt-icon {
        width: 18px !important;
        height: 18px !important;
    }
    .tt-icon svg, .tt-icon i { width: 11px !important; height: 11px !important; }
    /* Ensure the tree container doesn't clip tags at the edges */
    .hero-tree { overflow: visible; }
    .tree-visual { overflow: visible; }
}

/* -- R2-3: Blog featured image � fix left-side crop ------------------- */
/* The SVG images have content starting at x=80 (left-ish). With
   object-fit:cover the default center crop cuts the left portion.
   Anchor to left so the start of the design is always visible. */
/* -- R2-3: Blog featured image — center crop for photo compositions ---- */
.featured-post-media img {
    object-position: center center;
}
