/* ═══════════════════════════════════════════════════
   CALMORA — Premium Mental Wellness Design System
   Light, warm, editorial. Forest sage + cream.
═══════════════════════════════════════════════════ */

:root {
    /* Palette */
    --cream:        #f5f1ea;
    --cream-2:      #ece6db;
    --paper:        #fbf8f3;
    --ink:          #0f1e17;
    --ink-2:        #2a3a31;
    --muted:        #6b7a72;
    --muted-2:      #8a978f;
    --line:         #e3ddd0;
    --line-2:       #d4ccba;

    --forest:       #0f3d2e;
    --forest-2:     #1c5a45;
    --sage:         #6f9b85;
    --sage-soft:    #c8dccf;
    --sage-tint:    #e6efe9;
    --olive:        #8a9b6f;

    --rose:         #c97863;
    --amber:        #d49a3f;

    --shadow-soft:  0 1px 2px rgba(15,30,23,0.04), 0 8px 24px rgba(15,30,23,0.05);
    --shadow-card:  0 1px 2px rgba(15,30,23,0.05), 0 20px 50px rgba(15,30,23,0.07);
    --shadow-deep:  0 30px 80px rgba(15,30,23,0.12);

    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 24px;
    --r-xl: 32px;
    --r-full: 9999px;

    --font-serif: 'Fraunces', Georgia, serif;
    --font-sans:  'Inter', system-ui, sans-serif;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    background: var(--cream);
    color: var(--ink);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
button { background: none; border: none; cursor: pointer; color: inherit; }
img { max-width: 100%; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }

/* ─── Shared ─── */
.section-container { max-width: 1240px; margin: 0 auto; padding: 110px 28px; }
.section-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--sage);
    padding: 6px 14px;
    border-radius: var(--r-full);
    background: var(--sage-tint);
    margin-bottom: 22px;
}
.section-eyebrow.center { display: inline-block; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-header.left { text-align: left; }

.section-title {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: clamp(1.9rem, 3.6vw, 3rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 20px;
}
.section-title.center { text-align: center; }
.title-emph {
    font-style: italic;
    font-weight: 400;
    color: var(--forest);
}
.section-lead {
    font-size: 1.05rem;
    color: var(--muted);
    line-height: 1.7;
    max-width: 620px;
}
.section-lead.center { margin: 0 auto; text-align: center; }

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 22px;
    border-radius: var(--r-full);
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: -0.005em;
    transition: all 0.25s var(--ease);
    cursor: pointer;
    border: 1px solid transparent;
    white-space: nowrap;
}
.btn-sm { padding: 10px 18px; font-size: 0.86rem; }
.btn-lg { padding: 16px 28px; font-size: 1rem; }
.btn-primary {
    background: var(--forest);
    color: var(--paper);
}
.btn-primary:hover {
    background: var(--forest-2);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(15,61,46,0.25);
}
.btn-ghost {
    background: rgba(15,30,23,0.04);
    color: var(--ink);
}
.btn-ghost:hover { background: rgba(15,30,23,0.08); }
.btn-outline {
    background: transparent;
    color: var(--ink);
    border-color: var(--line-2);
}
.btn-outline:hover { border-color: var(--ink); }

/* ═════════════════════ NAVBAR ═════════════════════ */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 999;
    padding: 18px 24px;
    transition: all 0.3s var(--ease);
}
.navbar.scrolled {
    background: rgba(245,241,234,0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding: 12px 24px;
}
.nav-container {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.nav-logo {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.01em;
}
.logo-mark {
    display: inline-flex;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--forest);
    color: var(--sage-soft);
    align-items: center;
    justify-content: center;
}
.nav-links {
    display: flex; align-items: center; gap: 2px;
}
.nav-link {
    padding: 9px 16px;
    border-radius: var(--r-full);
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--ink-2);
    transition: all 0.2s var(--ease);
}
.nav-link:hover { background: rgba(15,30,23,0.05); color: var(--forest); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: 0.3s; }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═════════════════════ HERO ═════════════════════ */
.hero {
    position: relative;
    min-height: 92vh;
    padding: 140px 28px 60px;
    background:
        radial-gradient(circle at 80% 10%, rgba(111,155,133,0.18), transparent 50%),
        radial-gradient(circle at 10% 80%, rgba(212,154,63,0.10), transparent 50%),
        linear-gradient(180deg, var(--cream) 0%, var(--paper) 100%);
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(15,61,46,0.05) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    opacity: 0.6;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}
.hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}
.hero-rating {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-full);
    box-shadow: var(--shadow-soft);
    margin-bottom: 28px;
    font-size: 0.83rem;
}
.rating-pill { font-weight: 700; color: var(--forest); }
.stars { color: var(--amber); letter-spacing: 1px; }
.rating-meta { color: var(--muted); }

.hero-title {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: clamp(2.6rem, 6vw, 5.2rem);
    line-height: 1.04;
    letter-spacing: -0.035em;
    color: var(--ink);
    margin-bottom: 24px;
}
.hero-italic {
    font-style: italic;
    font-weight: 400;
    color: var(--forest);
}
.hero-subtitle {
    font-size: 1.15rem;
    color: var(--muted);
    line-height: 1.7;
    max-width: 640px;
    margin: 0 auto 36px;
}
.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero-press {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 56px;
}
.press-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--muted-2);
    font-weight: 500;
}
.press-logos {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 1.05rem;
    color: var(--ink-2);
    opacity: 0.65;
    font-weight: 600;
}
.press-divider { color: var(--muted-2); }

/* Hero tiles */
.hero-tiles {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 18px;
    max-width: 1100px;
    margin: 0 auto;
}
.tile {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 26px;
    box-shadow: var(--shadow-soft);
    text-align: left;
}
.tile-lg {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    background:
        linear-gradient(135deg, rgba(111,155,133,0.10), rgba(212,154,63,0.05)),
        var(--paper);
}
.tile-pill {
    display: inline-flex;
    align-items: center;
    padding: 9px 16px;
    background: rgba(255,255,255,0.7);
    border: 1px solid var(--line);
    border-radius: var(--r-full);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--ink-2);
    width: fit-content;
}
.tile-dark {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}
.tile-stat {
    font-family: var(--font-serif);
    font-size: 2.4rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}
.tile-dark p { font-size: 0.9rem; color: rgba(255,255,255,0.75); }
.tile-eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--sage);
    font-weight: 700;
    margin-bottom: 12px;
}
.tile-affirmation {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.5;
    color: var(--ink);
}

/* ═════════════════════ ABOUT ═════════════════════ */
.about {
    background: var(--paper);
    border-top: 1px solid var(--line);
}
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}
.about-copy .section-title { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.about-bullets {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin: 28px 0 32px;
}
.about-bullets span {
    font-size: 0.88rem;
    color: var(--ink-2);
    font-weight: 500;
}
.about-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.about-visual {
    position: relative;
    height: 480px;
    background:
        radial-gradient(circle at 30% 30%, rgba(111,155,133,0.2), transparent 60%),
        linear-gradient(135deg, var(--sage-tint), var(--cream-2));
    border-radius: var(--r-xl);
    padding: 30px;
    overflow: hidden;
}
.visual-card {
    position: absolute;
    background: var(--paper);
    border-radius: var(--r-lg);
    padding: 22px;
    box-shadow: var(--shadow-deep);
    max-width: 280px;
    border: 1px solid var(--line);
}
.visual-card .visual-emoji { font-size: 1.8rem; margin-bottom: 10px; }
.visual-card p { font-size: 0.95rem; line-height: 1.5; color: var(--ink-2); margin-bottom: 10px; }
.visual-meta { font-size: 0.8rem; color: var(--muted); }
.visual-1 { top: 30px; left: 30px; }
.visual-2 { bottom: 30px; right: 30px; animation-delay: -2s; }

/* ═════════════════════ TOOLS ═════════════════════ */
.tools { background: var(--cream); }
.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.tool-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 30px;
    transition: all 0.3s var(--ease);
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: var(--shadow-soft);
    min-height: 380px;
}
.tool-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
    border-color: var(--sage-soft);
}
.tool-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--forest);
    padding: 5px 12px;
    background: var(--sage-tint);
    border-radius: var(--r-full);
    width: fit-content;
}
.tool-card h3 {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--ink);
}
.tool-card > p {
    font-size: 0.92rem;
    color: var(--muted);
    line-height: 1.6;
}
.tool-feature {
    grid-column: span 1;
    background: linear-gradient(180deg, var(--paper), var(--sage-tint));
}

/* Mood grid inside tool */
.mood-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 4px;
}
.mood-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 6px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--ink-2);
    transition: all 0.2s var(--ease);
}
.mood-btn span { font-size: 1.4rem; }
.mood-btn:hover {
    background: var(--sage-tint);
    border-color: var(--sage);
    transform: translateY(-2px);
}
.mood-btn.selected {
    background: var(--forest);
    color: var(--paper);
    border-color: var(--forest);
}

/* Tool inputs */
.tool-form { display: flex; flex-direction: column; gap: 10px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tool-textarea, .tool-form input, .tool-form select {
    width: 100%;
    padding: 11px 14px;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    font-size: 0.88rem;
    color: var(--ink);
    font-family: var(--font-sans);
    outline: none;
    transition: 0.2s var(--ease);
    resize: vertical;
    min-height: 44px;
}
.tool-textarea { min-height: 70px; }
.tool-textarea.tall { min-height: 110px; }
.tool-textarea:focus, .tool-form input:focus, .tool-form select:focus {
    border-color: var(--sage);
    background: var(--paper);
    box-shadow: 0 0 0 3px rgba(111,155,133,0.15);
}
.tool-output {
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--ink-2);
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s var(--ease);
    opacity: 0;
    white-space: pre-wrap;
}
.tool-output.visible {
    padding: 16px 18px;
    max-height: 1200px;
    opacity: 1;
    margin-top: 4px;
}
.tool-output strong { color: var(--forest); }
.tool-output .loading-dots {
    display: inline-flex; gap: 4px;
}
.tool-output .loading-dots span {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--sage); animation: dotPulse 1.4s ease-in-out infinite;
}
.tool-output .loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.tool-output .loading-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dotPulse {
    0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(-4px); }
}

/* Breathing tool */
.tool-breath { align-items: center; text-align: center; }
.tool-breath h3, .tool-breath > p { text-align: center; }
.breath-orb-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 0;
}
.breath-orb {
    width: 130px; height: 130px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--sage) 0%, var(--forest) 100%);
    color: var(--paper);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    font-weight: 600;
    box-shadow: 0 0 0 12px rgba(111,155,133,0.18), 0 0 0 24px rgba(111,155,133,0.08);
    transition: transform 4s var(--ease), box-shadow 4s var(--ease);
}
.breath-orb.inhale { transform: scale(1.4); }
.breath-orb.exhale { transform: scale(1); }
.breath-actions { display: flex; gap: 8px; justify-content: center; }

/* Affirmation */
.tool-affirm { background: linear-gradient(180deg, var(--paper), var(--cream-2)); }
.affirm-card {
    background: var(--paper);
    border: 1px dashed var(--sage);
    border-radius: var(--r-md);
    padding: 22px;
    text-align: center;
    min-height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.affirm-quote {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.5;
    color: var(--ink);
}

/* ═════════════════════ STORIES ═════════════════════ */
.stories { background: var(--paper); border-top: 1px solid var(--line); }
.stories-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 22px;
    align-items: stretch;
}
.story-card {
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.story-feature {
    background: var(--forest);
    color: var(--paper);
    border-color: var(--forest);
}
.story-feature .story-tag { background: rgba(255,255,255,0.12); color: var(--sage-soft); }
.story-feature .story-quote { color: rgba(255,255,255,0.95); }
.story-feature .story-author strong { color: var(--paper); }
.story-feature .story-author span { color: rgba(255,255,255,0.65); }
.story-feature .story-avatar { background: var(--sage); color: var(--ink); }

.story-tag {
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--forest);
    background: var(--sage-tint);
    padding: 5px 12px;
    border-radius: var(--r-full);
    width: fit-content;
}
.story-quote {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--ink);
    letter-spacing: -0.005em;
    font-weight: 400;
    flex: 1;
}
.story-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.story-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--forest);
    color: var(--paper);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}
.story-author strong { display: block; font-size: 0.92rem; color: var(--ink); }
.story-author span { font-size: 0.8rem; color: var(--muted); }

/* ═════════════════════ EXPERTS ═════════════════════ */
.experts { background: var(--cream); }
.experts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.expert-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 32px 28px;
    text-align: center;
    transition: 0.3s var(--ease);
}
.expert-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.expert-photo {
    width: 96px; height: 96px;
    border-radius: 50%;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.6rem;
}
.expert-photo-1 { background: linear-gradient(135deg, var(--sage-tint), var(--sage-soft)); }
.expert-photo-2 { background: linear-gradient(135deg, #f3ead8, #e8d9b8); }
.expert-photo-3 { background: linear-gradient(135deg, var(--cream-2), var(--sage-tint)); }
.expert-card h4 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 4px;
}
.expert-role {
    display: block;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sage);
    font-weight: 600;
    margin-bottom: 14px;
}
.expert-card p { font-size: 0.9rem; color: var(--muted); line-height: 1.6; }

/* ═════════════════════ CHAT ═════════════════════ */
.chat-section {
    background: linear-gradient(180deg, var(--paper), var(--cream));
    border-top: 1px solid var(--line);
}
.chat-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}
.chat-intro .section-title { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.chat-features-list { display: flex; flex-direction: column; gap: 12px; margin: 22px 0 24px; }
.chat-features-list li {
    display: flex; align-items: center; gap: 12px;
    font-size: 0.93rem;
    color: var(--ink-2);
}
.check {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--sage-tint);
    color: var(--forest);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    flex-shrink: 0;
}
.disclaimer-box {
    padding: 14px 18px;
    background: #fdf4ec;
    border: 1px solid #f0d9bf;
    border-radius: var(--r-md);
    font-size: 0.85rem;
    color: var(--ink-2);
    line-height: 1.5;
}
.disclaimer-box strong { color: var(--rose); }

.chat-widget {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    overflow: hidden;
    box-shadow: var(--shadow-deep);
    display: flex;
    flex-direction: column;
    height: 580px;
}
.chat-widget-header {
    display: flex; align-items: center; gap: 14px;
    padding: 20px 22px;
    background: linear-gradient(135deg, var(--sage-tint), var(--paper));
    border-bottom: 1px solid var(--line);
}
.chat-widget-avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--forest);
    color: var(--sage-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.chat-widget-info { display: flex; flex-direction: column; gap: 2px; }
.chat-widget-name {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ink);
}
.chat-widget-status {
    display: flex; align-items: center; gap: 6px;
    font-size: 0.78rem;
    color: var(--sage);
    font-weight: 500;
}
.status-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--sage); animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(111,155,133,0.5); }
    50% { box-shadow: 0 0 0 6px rgba(111,155,133,0); }
}

.chat-box {
    flex: 1;
    padding: 22px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.chat-box::-webkit-scrollbar { width: 5px; }
.chat-box::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 4px; }

.message { display: flex; gap: 10px; max-width: 88%; animation: msgIn 0.3s var(--ease); }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.bot-message { align-self: flex-start; }
.user-message { align-self: flex-end; flex-direction: row-reverse; }
.msg-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--sage-tint);
    color: var(--forest);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
    margin-top: 2px;
}
.user-message .msg-avatar { background: var(--cream-2); color: var(--ink); }
.msg-content {
    padding: 12px 16px;
    border-radius: var(--r-md);
    font-size: 0.92rem;
    line-height: 1.55;
}
.bot-message .msg-content {
    background: var(--cream);
    color: var(--ink);
    border-bottom-left-radius: 4px;
}
.user-message .msg-content {
    background: var(--forest);
    color: var(--paper);
    border-bottom-right-radius: 4px;
}

.typing-indicator { display: flex; gap: 10px; align-self: flex-start; }
.typing-bubbles {
    display: flex; align-items: center; gap: 5px;
    background: var(--cream);
    padding: 14px 18px;
    border-radius: var(--r-md);
    border-bottom-left-radius: 4px;
}
.typing-bubbles span {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--muted-2);
    animation: typingDot 1.4s ease-in-out infinite;
}
.typing-bubbles span:nth-child(2) { animation-delay: 0.2s; }
.typing-bubbles span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingDot {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-6px); opacity: 1; }
}

.chat-suggestions {
    display: flex; gap: 8px; padding: 0 22px 14px;
    flex-wrap: wrap;
}
.suggestion-chip {
    font-size: 0.8rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: var(--r-full);
    background: var(--cream);
    color: var(--ink-2);
    border: 1px solid var(--line);
    transition: 0.2s var(--ease);
}
.suggestion-chip:hover {
    background: var(--sage-tint);
    border-color: var(--sage);
    color: var(--forest);
}

.input-area {
    display: flex; gap: 10px;
    padding: 16px 18px;
    border-top: 1px solid var(--line);
    background: var(--paper);
}
#user-input {
    flex: 1;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--r-full);
    padding: 12px 18px;
    font-size: 0.92rem;
    color: var(--ink);
    outline: none;
    transition: 0.2s var(--ease);
}
#user-input::placeholder { color: var(--muted-2); }
#user-input:focus {
    border-color: var(--sage);
    background: var(--paper);
    box-shadow: 0 0 0 3px rgba(111,155,133,0.18);
}
#send-btn {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--forest);
    color: var(--paper);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: 0.2s var(--ease);
}
#send-btn:hover { background: var(--forest-2); transform: scale(1.06); }
#send-btn:active { transform: scale(0.96); }

/* ═════════════════════ PRICING / COUNSELLING ═════════════════════ */
.pricing {
    background: linear-gradient(180deg, var(--cream), var(--paper));
    border-top: 1px solid var(--line);
}
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr 1fr;
    gap: 22px;
    align-items: stretch;
    margin-bottom: 60px;
}
.price-card {
    position: relative;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    padding: 34px 30px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: 0.3s var(--ease);
    box-shadow: var(--shadow-soft);
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.price-featured {
    background: linear-gradient(180deg, var(--forest), #0a3024);
    color: var(--paper);
    border-color: var(--forest);
    transform: translateY(-12px);
    box-shadow: 0 30px 70px rgba(15,61,46,0.25);
}
.price-featured:hover { transform: translateY(-16px); }
.price-featured .price-tag { background: rgba(255,255,255,0.12); color: var(--sage-soft); }
.price-featured .price-desc,
.price-featured .price-note { color: rgba(255,255,255,0.7); }
.price-featured .price-features li { color: rgba(255,255,255,0.92); }
.price-featured .check { background: var(--sage); color: var(--ink); }
.price-featured .price-strike { color: rgba(255,255,255,0.4); }

.price-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--amber);
    color: var(--ink);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: var(--r-full);
    white-space: nowrap;
}
.price-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--forest);
    background: var(--sage-tint);
    padding: 6px 14px;
    border-radius: var(--r-full);
    width: fit-content;
}
.price-amount {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-family: var(--font-serif);
    line-height: 1;
}
.price-cur { font-size: 1.6rem; font-weight: 500; opacity: 0.7; }
.price-val { font-size: 3.6rem; font-weight: 600; letter-spacing: -0.03em; }
.price-strike {
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--muted-2);
    text-decoration: line-through;
    font-weight: 500;
}
.price-desc {
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--muted);
    min-height: 44px;
}
.price-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 4px 0 6px;
    flex: 1;
}
.price-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--ink-2);
    line-height: 1.4;
}
.price-features .check { flex-shrink: 0; margin-top: 1px; }
.btn-block { width: 100%; justify-content: center; }
.price-note {
    font-size: 0.78rem;
    color: var(--muted);
    text-align: center;
    margin-top: 4px;
}

/* Scheduler card */
.booking-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    padding: 48px;
    box-shadow: var(--shadow-card);
    max-width: 1000px;
    margin: 0 auto;
}
.scheduler-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: center;
}
.scheduler-copy .section-eyebrow { margin-bottom: 16px; }
.scheduler-lead {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.65;
    margin: 12px 0 22px;
}
.scheduler-perks {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.scheduler-perks li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    color: var(--ink-2);
}
.scheduler-cta {
    background: linear-gradient(180deg, var(--forest), #0a3024);
    color: var(--paper);
    border-radius: var(--r-lg);
    padding: 36px 28px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(15,61,46,0.18);
}
.scheduler-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    font-family: var(--font-serif);
    margin-bottom: 22px;
    color: var(--paper);
}
.scheduler-cur { font-size: 1.4rem; opacity: 0.85; }
.scheduler-val { font-size: 3.2rem; font-weight: 600; letter-spacing: -0.03em; }
.scheduler-unit { font-family: var(--font-sans); font-size: 0.85rem; color: rgba(255,255,255,0.7); margin-left: 4px; }
.scheduler-cta .btn-primary {
    background: var(--sage);
    color: var(--ink);
}
.scheduler-cta .btn-primary:hover {
    background: var(--sage-soft);
    box-shadow: 0 8px 24px rgba(200,220,207,0.4);
}
.scheduler-cta .booking-fine { color: rgba(255,255,255,0.6); margin-top: 14px; }
.booking-title {
    font-family: var(--font-serif);
    font-size: clamp(1.4rem, 2.4vw, 1.9rem);
    font-weight: 500;
    color: var(--ink);
    line-height: 1.3;
    letter-spacing: -0.01em;
}
.booking-form { display: flex; flex-direction: column; gap: 14px; }
.booking-form input,
.booking-form select {
    width: 100%;
    padding: 14px 18px;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    font-size: 0.95rem;
    color: var(--ink);
    font-family: var(--font-sans);
    outline: none;
    transition: 0.2s var(--ease);
}
.booking-form input:focus,
.booking-form select:focus {
    border-color: var(--forest);
    background: var(--paper);
    box-shadow: 0 0 0 3px rgba(15,61,46,0.12);
}
.booking-fine {
    font-size: 0.78rem;
    color: var(--muted);
    text-align: center;
    line-height: 1.5;
    margin-top: 4px;
}
.booking-success {
    text-align: center;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.booking-success-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: var(--sage-tint);
    color: var(--forest);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
}
.booking-success h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--ink);
}
.booking-success p { color: var(--muted); max-width: 480px; }

.disclaimer-link {
    color: var(--rose);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

/* ═════════════════════ RESOURCES ═════════════════════ */
.resources { background: var(--cream); }
.resources-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.resource-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 28px;
    transition: 0.25s var(--ease);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.resource-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.resource-card.crisis {
    background: #fdf4ec;
    border-color: #f0d9bf;
}
.resource-tag {
    display: inline-block;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--muted);
    padding: 4px 10px;
    border-radius: var(--r-full);
    background: var(--cream-2);
    width: fit-content;
}
.crisis-tag { background: var(--rose); color: var(--paper); }
.resource-card h3 {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--ink);
}
.resource-card p { font-size: 0.88rem; color: var(--muted); line-height: 1.55; flex: 1; }
.resource-link {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--forest);
    transition: 0.2s;
}
.resource-link:hover { color: var(--forest-2); }
.resource-link.muted { color: var(--muted); font-style: italic; font-weight: 400; }
.resource-card.crisis .resource-link { color: var(--rose); }

/* ═════════════════════ FOOTER ═════════════════════ */
.footer {
    background: var(--ink);
    color: rgba(255,255,255,0.7);
    padding: 70px 28px 40px;
}
.footer-container {
    max-width: 1240px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}
.footer-top { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.footer-brand {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--paper);
}
.footer .logo-mark { background: var(--sage); color: var(--ink); }
.footer-tag { font-size: 0.95rem; color: rgba(255,255,255,0.6); }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }
.footer-links a {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.65);
    transition: 0.2s;
}
.footer-links a:hover { color: var(--sage-soft); }
.footer-note {
    max-width: 620px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.6;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--r-md);
    padding: 14px 20px;
}
.footer-copy { font-size: 0.78rem; color: rgba(255,255,255,0.4); }

/* Payment toast */
.pay-toast {
    position: fixed;
    left: 50%;
    bottom: 96px;
    transform: translateX(-50%) translateY(20px);
    background: var(--ink);
    color: var(--paper);
    padding: 14px 22px;
    border-radius: var(--r-full);
    font-size: 0.92rem;
    font-weight: 500;
    box-shadow: 0 20px 40px rgba(15,30,23,0.25);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s var(--ease);
    max-width: 90vw;
    text-align: center;
}
.pay-toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.pay-toast-success { background: var(--forest); }
.pay-toast-error   { background: var(--rose); color: var(--paper); }
.pay-toast-info    { background: var(--ink); }

/* Floating chat FAB */
.chat-fab {
    position: fixed;
    bottom: 24px; right: 24px;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--forest);
    color: var(--paper);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(15,61,46,0.35);
    z-index: 99;
    transition: 0.25s var(--ease);
}
.chat-fab:hover { transform: scale(1.08); background: var(--forest-2); }

/* ═════════════════════ RESPONSIVE ═════════════════════ */
@media (max-width: 1024px) {
    .tools-grid, .resources-grid, .experts-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto 60px; }
    .price-featured { transform: none; }
    .price-featured:hover { transform: translateY(-4px); }
    .booking-card { padding: 32px; }
    .scheduler-grid { grid-template-columns: 1fr; gap: 30px; }
    .stories-grid { grid-template-columns: 1fr; }
    .chat-layout { grid-template-columns: 1fr; gap: 40px; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-tiles { grid-template-columns: 1fr 1fr; }
    .tile-lg { grid-column: span 2; }
}
@media (max-width: 768px) {
    .nav-actions { display: none; }
    .nav-links {
        position: fixed;
        top: 64px; left: 0; right: 0;
        background: rgba(245,241,234,0.97);
        backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 22px;
        gap: 6px;
        border-bottom: 1px solid var(--line);
        transform: translateY(-120%);
        transition: transform 0.3s var(--ease);
    }
    .nav-links.open { transform: translateY(0); }
    .hamburger { display: flex; }
    .nav-link { width: 100%; text-align: center; padding: 12px; }
    .section-container { padding: 80px 22px; }
    .hero { padding: 120px 22px 60px; min-height: auto; }
    .tools-grid, .resources-grid, .experts-grid { grid-template-columns: 1fr; }
    .hero-tiles { grid-template-columns: 1fr; }
    .tile-lg { grid-column: span 1; }
    .about-visual { height: 380px; }
    .visual-card { max-width: 220px; }
    .row-2 { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions .btn { width: 100%; justify-content: center; }
}

/* ─── AUTH MODAL ─── */
.auth-modal-backdrop {
    position: fixed; inset: 0;
    background: rgba(15, 30, 25, 0.55);
    backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999; padding: 20px;
    animation: fadeIn 0.2s ease;
}
.auth-modal {
    background: #fff; border-radius: 20px;
    padding: 36px 32px 32px; max-width: 420px; width: 100%;
    box-shadow: 0 30px 80px rgba(0,0,0,0.25);
    position: relative;
}
.auth-close {
    position: absolute; top: 12px; right: 16px;
    background: none; border: none; font-size: 28px;
    cursor: pointer; color: #888; line-height: 1;
}
.auth-close:hover { color: #222; }
.auth-header { text-align: center; margin-bottom: 20px; }
.auth-header .logo-mark { color: #0f3d2e; display: inline-flex; }
.auth-header h3 {
    font-family: 'Fraunces', serif;
    font-size: 26px; margin: 8px 0 6px; color: #0f3d2e;
}
.auth-header p { color: #666; font-size: 14px; margin: 0; }
.auth-tabs {
    display: flex; gap: 8px; background: #f3f1ed;
    border-radius: 12px; padding: 4px; margin-bottom: 20px;
}
.auth-tab {
    flex: 1; padding: 10px; border: none; background: transparent;
    border-radius: 9px; cursor: pointer; font-weight: 600;
    color: #777; font-size: 14px; transition: all 0.2s;
}
.auth-tab.active { background: #fff; color: #0f3d2e; box-shadow: 0 2px 6px rgba(0,0,0,0.06); }
.auth-form { display: flex; flex-direction: column; gap: 12px; }
.auth-form input {
    width: 100%; padding: 13px 14px; border-radius: 10px;
    border: 1.5px solid #e5e2dc; font-size: 15px; font-family: inherit;
    transition: border-color 0.2s;
}
.auth-form input:focus { outline: none; border-color: #0f3d2e; }
.auth-error { color: #b54848; font-size: 13px; min-height: 18px; text-align: center; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
