/* ============================================
   StillFeeling — "Breathing Space" Design System
   ============================================
   Brand DNA: calm, organic, paper, weighted, warm, quiet
   Anti-DNA: no glass morphism, no gradient blobs, no feature grids,
             no testimonial carousels, no aggressive CTAs
   ============================================ */

/* --- Tokens --- */
:root {
    --bg-base: #f0e8dc;
    --bg-warm: #ebe2d4;
    --bg-card: #fffcf8;
    --text-main: #382a31;
    --text-muted: #5a4a50;
    --text-soft: #7a6b70;
    --accent: #a85075;
    --accent-light: #c97a9a;
    --accent-faint: rgba(168, 80, 117, 0.08);
    --accent-glow: rgba(168, 80, 117, 0.12);
    --border-soft: rgba(168, 80, 117, 0.22);
    --shadow-card: 0 2px 12px rgba(56, 42, 49, 0.08);
    --shadow-hover: 0 6px 24px rgba(56, 42, 49, 0.14);
    --shadow-float: 0 12px 40px rgba(56, 42, 49, 0.16);
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --radius-pill: 999px;
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 28px;
    --space-xl: 48px;
    --space-2xl: 72px;
    --max-width: 640px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    background-color: var(--bg-base);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Subtle paper texture */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.35;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
}

.main-container {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 100vh;
}

/* --- Scroll Reveal --- */
.main-container .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.main-container .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}



/* ============================================
   THRESHOLD (Hero)
   ============================================ */
.threshold {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: var(--space-sm) var(--space-lg) var(--space-lg);
}

.threshold-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.threshold-bg img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.75;
}
.threshold-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(250, 246, 240, 0.3) 0%, rgba(250, 246, 240, 0.75) 60%, var(--bg-base) 100%);
}

.threshold-content {
    position: relative;
    z-index: 2;
}

.threshold-breath {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 90px;
    background: linear-gradient(to top, var(--bg-base), transparent);
    pointer-events: none;
    z-index: 3;
}

/* ============================================
   THRESHOLD PARTICLES (Pastel butterflies)
   ============================================ */
.threshold-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.butterfly {
    position: absolute;
    top: var(--y);
    left: var(--x);
    width: var(--size);
    height: calc(var(--size) * 0.9);
    opacity: 0;
    pointer-events: none;
    perspective: 300px;
    animation: butterflyFly var(--dur) ease-in-out var(--delay) infinite;
    will-change: transform, opacity;
}

.butterfly svg {
    display: block;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    filter: drop-shadow(0 2px 5px rgba(168, 80, 117, 0.28));
}

.butterfly .bf-wing {
    transform-box: fill-box;
    animation: butterflyFlap var(--flap) ease-in-out infinite;
    will-change: transform;
}
.butterfly .bf-wing-left { transform-origin: right center; }
.butterfly .bf-wing-right { transform-origin: left center; }

@keyframes butterflyFly {
    0%   { transform: translate(0, 0) rotate(-4deg); opacity: 0; }
    6%   { opacity: 1; }
    15%  { transform: translate(calc(var(--tx) * 0.12), calc(var(--bob) * -0.9)) rotate(5deg); }
    30%  { transform: translate(calc(var(--tx) * 0.3), calc(var(--bob) * 0.7)) rotate(-5deg); }
    45%  { transform: translate(calc(var(--tx) * 0.5), calc(var(--bob) * -1)) rotate(4deg); }
    60%  { transform: translate(calc(var(--tx) * 0.68), calc(var(--bob) * 0.6)) rotate(-4deg); }
    78%  { transform: translate(calc(var(--tx) * 0.85), calc(var(--bob) * -0.8)) rotate(3deg); }
    94%  { opacity: 1; }
    100% { transform: translate(var(--tx), calc(var(--bob) * 0.5)) rotate(-2deg); opacity: 0; }
}

@keyframes butterflyFlap {
    0%, 100% { transform: rotateY(55deg); }
    50%      { transform: rotateY(-55deg); }
}

.threshold-content {
    display: flex;
    flex-direction: column;
    max-width: var(--max-width);
    padding-top: var(--space-md);
    animation: heroFadeIn 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

.threshold-title {
    font-family: var(--font-serif);
    font-size: clamp(2.4rem, 6vw, 3.6rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.08;
    margin-bottom: var(--space-sm);
    color: var(--text-main);
}

.threshold-title-heart {
    display: inline-block;
    font-size: 0.9em;
    color: var(--accent);
    animation: voiceBeat 2s ease-in-out infinite;
    transform-origin: center;
}

.threshold-tagline {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 400;
    color: var(--accent);
    margin-bottom: var(--space-lg);
    line-height: 1.3;
}

.threshold-description {
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    font-weight: 400;
    color: var(--text-muted);
    max-width: 420px;
    line-height: 1.65;
    margin-bottom: var(--space-lg);
}

.threshold-description-heart {
    color: var(--accent);
}

.threshold-more-btn {
    display: inline;
    padding: 0;
    border: none;
    background: none;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.15s ease;
}
.threshold-more-btn:hover { color: #954568; }

.threshold-about-btn {
    margin-top: var(--space-xs);
}
.threshold-about-btn[hidden] { display: none; }

.threshold-actions {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: nowrap;
    align-items: stretch;
    margin-top: var(--space-md);
}
.threshold-actions .btn {
    flex: 0 0 auto;
    width: auto;
    white-space: nowrap;
    padding: 13px 22px;
}
@media (max-width: 480px) {
    .threshold-actions { gap: 8px; }
    .threshold-actions .btn { padding: 12px 10px; font-size: 0.74rem; }
}

/* ============================================
   FEATURE STRIP (Auto-rotating highlights)
   ============================================ */
.feature-strip {
    margin-top: var(--space-md);
    width: 100%;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
}

.feature-strip-track {
    position: relative;
    height: 72px;
    overflow: hidden;
    border-radius: var(--radius-md);
}

/* --- Per-item colour themes --- */
.feature-strip-item:nth-child(1) {
    --item-accent: #c75b7a;
    --item-bg: linear-gradient(135deg, #fff5f8 0%, #fde8ef 45%, #f8d5e0 100%);
    --item-icon-bg: linear-gradient(135deg, #fce4ec, #f8bbd0);
    --item-glow: rgba(199, 91, 122, 0.22);
}
.feature-strip-item:nth-child(2) {
    --item-accent: #7e57c2;
    --item-bg: linear-gradient(135deg, #f8f5ff 0%, #ede4ff 45%, #ddd0f5 100%);
    --item-icon-bg: linear-gradient(135deg, #ede7f6, #d1c4e9);
    --item-glow: rgba(126, 87, 194, 0.22);
}
.feature-strip-item:nth-child(3) {
    --item-accent: #c76a3e;
    --item-bg: linear-gradient(135deg, #fff8f5 0%, #fde8d8 45%, #f8ddd0 100%);
    --item-icon-bg: linear-gradient(135deg, #fbe9e7, #ffccbc);
    --item-glow: rgba(199, 106, 62, 0.22);
}
.feature-strip-item:nth-child(4) {
    --item-accent: #5a8a6a;
    --item-bg: linear-gradient(135deg, #f5faf7 0%, #e4f0e8 45%, #d5e8da 100%);
    --item-icon-bg: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    --item-glow: rgba(90, 138, 106, 0.22);
}
.feature-strip-item:nth-child(5) {
    --item-accent: #4a7fb5;
    --item-bg: linear-gradient(135deg, #f5f8ff 0%, #e0ecf8 45%, #d0e0f0 100%);
    --item-icon-bg: linear-gradient(135deg, #e3f2fd, #bbdefb);
    --item-glow: rgba(74, 127, 181, 0.22);
}
.feature-strip-item:nth-child(6) {
    --item-accent: #b8860b;
    --item-bg: linear-gradient(135deg, #fffbf5 0%, #f8f0d8 45%, #f0e4c8 100%);
    --item-icon-bg: linear-gradient(135deg, #fff8e1, #ffecb3);
    --item-glow: rgba(184, 134, 11, 0.22);
}
.feature-strip-item:nth-child(7) {
    --item-accent: #c75b7a;
    --item-bg: linear-gradient(135deg, #fff6f8 0%, #fde4ec 45%, #f6d2de 100%);
    --item-icon-bg: linear-gradient(135deg, #fce4ec, #f8bbd0);
    --item-glow: rgba(199, 91, 122, 0.22);
}
.feature-strip-item:nth-child(8) {
    --item-accent: #9b6bb3;
    --item-bg: linear-gradient(135deg, #faf6fd 0%, #efe2f7 45%, #e2d2f0 100%);
    --item-icon-bg: linear-gradient(135deg, #f3e5f5, #e1bee7);
    --item-glow: rgba(155, 107, 179, 0.22);
}
.feature-strip-item:nth-child(9) {
    --item-accent: #5f7cb8;
    --item-bg: linear-gradient(135deg, #f6f8fd 0%, #e4ebf7 45%, #d5def0 100%);
    --item-icon-bg: linear-gradient(135deg, #e8eaf6, #c5cae9);
    --item-glow: rgba(95, 124, 184, 0.22);
}
.feature-strip-item:nth-child(10) {
    --item-accent: #4f9b8f;
    --item-bg: linear-gradient(135deg, #f4faf8 0%, #dfefe9 45%, #d0e4dd 100%);
    --item-icon-bg: linear-gradient(135deg, #e0f2f1, #b2dfdb);
    --item-glow: rgba(79, 155, 143, 0.22);
}
.feature-strip-item:nth-child(11) {
    --item-accent: #7a6b70;
    --item-bg: linear-gradient(135deg, #faf6f7 0%, #ede3e6 45%, #e0d3d7 100%);
    --item-icon-bg: linear-gradient(135deg, #eceff1, #cfd8dc);
    --item-glow: rgba(122, 107, 112, 0.22);
}
.feature-strip-item:nth-child(12) {
    --item-accent: #8a9a5b;
    --item-bg: linear-gradient(135deg, #fafbf5 0%, #ebf0dc 45%, #dde6c8 100%);
    --item-icon-bg: linear-gradient(135deg, #f0f4e3, #dce6c3);
    --item-glow: rgba(138, 154, 91, 0.22);
}
.feature-strip-item:nth-child(13) {
    --item-accent: #a0508a;
    --item-bg: linear-gradient(135deg, #fdf6fb 0%, #f5e0ef 45%, #eccfe3 100%);
    --item-icon-bg: linear-gradient(135deg, #f8e6f2, #eccee3);
    --item-glow: rgba(160, 80, 138, 0.22);
}

.feature-strip-item {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    background: var(--item-bg);
    border: 1.5px solid rgba(56, 42, 49, 0.30);
    border-radius: var(--radius-md);
    opacity: 0;
    transform: translateX(18px) scale(0.97);
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(56, 42, 49, 0.07);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}
.feature-strip-item.active {
    opacity: 1;
    transform: translateX(0) scale(1);
    pointer-events: auto;
    box-shadow: 0 4px 24px var(--item-glow), 0 1px 4px rgba(56, 42, 49, 0.06);
}

/* Shimmer sweep on enter */
@keyframes stripShimmer {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(250%); }
}
.feature-strip-item.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: translateX(-100%);
    animation: stripShimmer 0.7s ease-out 0.15s 1;
    pointer-events: none;
    border-radius: inherit;
}

/* --- Icon --- */
.feature-strip-icon {
    font-size: 1.35rem;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--item-icon-bg);
    border: 1.5px solid rgba(56, 42, 49, 0.25);
    border-radius: 13px;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.feature-strip-item.active .feature-strip-icon {
    animation: iconBreathe 3s ease-in-out infinite;
    box-shadow: 0 3px 12px var(--item-glow);
}

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

/* --- Text --- */
.feature-strip-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.feature-strip-text strong {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--item-accent);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}
.feature-strip-text span {
    font-size: 0.75rem;
    font-weight: 600;
    color: #33242c;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- Progress bar --- */
.feature-strip-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: var(--accent);
    border-radius: 0 3px 3px 0;
    pointer-events: none;
    z-index: 2;
    transition: none;
}
.feature-strip-progress.animate {
    transition: width 3.5s linear;
    width: 100%;
}

/* --- Dots --- */
.feature-strip-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
}
.feature-strip-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-pill);
    background: rgba(168, 80, 117, 0.18);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.3s ease, width 0.3s ease, transform 0.3s ease;
}
.feature-strip-dot:hover {
    background: rgba(168, 80, 117, 0.35);
    transform: scale(1.15);
}
.feature-strip-dot.active {
    width: 24px;
    background: var(--accent);
}

@media (min-width: 520px) {
    .feature-strip { max-width: 480px; }
}



/* ============================================
   BUTTONS
   ============================================ */
.btn {
    font-family: var(--font-sans);
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}
.btn:active { transform: scale(0.97); }

.btn-primary {
    background: var(--accent);
    color: #fff;
    padding: 13px 28px;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    box-shadow: 0 2px 12px rgba(168, 80, 117, 0.2);
}
.btn-primary:hover {
    background: #954568;
    box-shadow: 0 4px 20px rgba(168, 80, 117, 0.3);
    transform: translateY(-1px);
}

.btn-soft {
    background: var(--accent-faint);
    color: var(--text-main);
    padding: 13px 28px;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
}
.btn-soft:hover {
    background: var(--accent-glow);
    color: var(--accent);
}

.btn-sm {
    padding: 9px 18px;
    font-size: 0.78rem;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav-mesh {
    position: relative;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) 0;
}

.brand-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    max-width: min(340px, calc(100vw - 120px));
    text-decoration: none;
    color: var(--text-main);
}
.brand-logo-img {
    display: block;
    width: clamp(120px, 24vw, 185px);
    height: auto;
}
.brand-tagline {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 0.76rem;
    font-weight: 400;
    line-height: 1.25;
    color: var(--accent);
}
.brand-heart {
    color: var(--accent);
    font-size: 1rem;
}

.nav-pills { position: relative; margin-left: auto; }

.menu-toggle {
    list-style: none;
    appearance: none;
    border: none;
    background: var(--accent-faint);
    border-radius: var(--radius-pill);
    color: var(--text-main);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 8px 14px;
    line-height: 1;
    transition: background 0.2s ease;
}
.menu-toggle:hover { background: var(--accent-glow); }
.menu-toggle::-webkit-details-marker { display: none; }

.nav-menu-panel {
    position: fixed;
    top: 52px;
    right: 12px;
    display: none;
    flex-direction: column;
    gap: 6px;
    width: min(280px, calc(100vw - 24px));
    max-height: calc(100vh - 68px);
    overflow-y: auto;
    padding: 14px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    box-shadow: var(--shadow-float);
    z-index: 200;
    overscroll-behavior: contain;
}
.nav-pills[open] .nav-menu-panel { display: flex; }

.nav-menu-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-bottom: var(--space-sm);
}
.nav-menu-section + .nav-menu-section {
    border-top: 1px solid var(--border-soft);
    padding-top: var(--space-sm);
    margin-top: 2px;
}

.nav-menu-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--accent);
    font-weight: 700;
    padding: 3px 4px 2px;
}

.nav-pill-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    font-size: 0.75rem;
    background: transparent;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: background 0.15s ease;
}
.nav-pill-item:hover { background: var(--accent-faint); }

.nav-pill-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    border-radius: var(--radius-pill);
    font-size: 0.58rem;
    font-weight: 700;
    background: var(--accent);
    color: #fff;
}

/* ============================================
   ROOMS (Feature Cards)
   ============================================ */
.room {
    max-width: 720px;
    margin: 0 auto;
    padding: var(--space-2xl) var(--space-lg);
    border-top: 1px solid var(--border-soft);
}

.room-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.room-icon {
    color: var(--accent);
    font-size: 1rem;
    margin-bottom: var(--space-sm);
}

.room-title {
    font-family: var(--font-serif);
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    line-height: 1.2;
}

.room-subtitle {
    font-size: 0.82rem;
    color: var(--text-muted);
    max-width: 380px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Feature grid */
.room-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

@media (min-width: 520px) {
    .room-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.room-card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.room-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.room-card-image {
    width: 100%;
    border: none;
    background: var(--accent-faint);
    padding: var(--space-md);
    cursor: pointer;
    display: block;
}
.room-card-image:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}
.room-card-image img {
    display: block;
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.room-card-body {
    padding: var(--space-md) var(--space-md) var(--space-lg);
}

.room-card-title {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.room-card-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: var(--space-md);
}

.room-card-link {
    font-size: 0.8rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.15s ease;
}
.room-card-link:hover { color: #954568; }

/* Room card emoji header (Post & Save, Unspoken Words) */
.room-card-emoji {
    font-size: 1.6rem;
    line-height: 1;
    margin-bottom: var(--space-sm);
    color: var(--accent);
}

.room-card-field {
    width: 100%;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font: inherit;
    font-size: 0.78rem;
    color: var(--text-main);
    background: var(--bg-base);
    margin-bottom: var(--space-sm);
    resize: vertical;
    transition: border-color 0.15s ease;
}
.room-card-field:focus {
    outline: none;
    border-color: var(--accent-light);
}

.room-card-actions {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    margin-bottom: var(--space-sm);
}

.room-feed {
    display: grid;
    gap: var(--space-sm);
}

/* ============================================
   BREATHING PAUSE (Accent Banner)
   ============================================ */
.breathing-pause {
    max-width: 720px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-lg);
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    margin-left: var(--space-lg);
    margin-right: var(--space-lg);
    box-shadow: var(--shadow-card);
}

.pause-title {
    font-family: var(--font-serif);
    font-size: clamp(1.05rem, 2.5vw, 1.25rem);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    letter-spacing: -0.01em;
}

.pause-text {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
    line-height: 1.5;
}

/* ============================================
   MOOD SECTION
   ============================================ */
#mood {
    padding-top: var(--space-lg);
    padding-bottom: var(--space-lg);
}
#mood .room-header {
    margin-bottom: var(--space-md);
}

.mood-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: var(--space-sm) 0 var(--space-md);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scroll-padding-left: 4px;
    touch-action: pan-x;
}
.mood-row::-webkit-scrollbar { display: none; }

.mood-card {
    background: var(--bg-card);
    padding: var(--space-md) var(--space-md);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    border: 1px solid var(--border-soft);
    cursor: pointer;
    flex: 0 0 110px;
    scroll-snap-align: start;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.mood-card:hover,
.mood-card:focus-visible {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    outline: none;
}
.mood-card:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.mood-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji', sans-serif;
    background: linear-gradient(135deg, var(--mood-bg, #f6e7ff) 0%, #fff 140%);
    color: var(--mood-fg, var(--accent));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 2px 8px rgba(168, 80, 117, 0.06);
}

.mood-name {
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}

.mood-hint {
    font-size: 0.68rem;
    color: var(--text-soft);
    margin-top: var(--space-sm);
    text-align: center;
}

/* ============================================
   DEEPER SPACES (Premium Features)
   ============================================ */
.deeper-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

@media (min-width: 520px) {
    .deeper-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.deeper-card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.25s ease;
}
.deeper-card:hover {
    box-shadow: var(--shadow-hover);
}

.deeper-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    padding: 5px 10px;
    border-radius: var(--radius-pill);
    font-size: 0.56rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 700;
    color: var(--accent);
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
}

.deeper-visual {
    overflow: hidden;
}

.deeper-img {
    display: block;
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.deeper-body {
    display: grid;
    gap: 10px;
    padding: var(--space-md);
}

.deeper-kicker {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--accent);
    font-weight: 700;
}

.deeper-title {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 600;
}

.deeper-copy {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.deeper-preview {
    background: var(--accent-faint);
    border-radius: var(--radius-sm);
    padding: var(--space-md);
    border: 1px solid var(--border-soft);
}

.deeper-preview-title {
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.deeper-preview-body {
    font-family: var(--font-serif);
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    font-style: italic;
}

.deeper-actions {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.deeper-field {
    width: 100%;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font: inherit;
    font-size: 0.78rem;
    color: var(--text-main);
    background: var(--bg-base);
    transition: border-color 0.15s ease;
}
.deeper-field:focus {
    outline: none;
    border-color: var(--accent-light);
}

/* ============================================
   MOMENTS (Archive Gallery)
   ============================================ */
.moments-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

@media (min-width: 520px) {
    .moments-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.moment-card {
    border: 1px solid var(--border-soft);
    background: var(--bg-card);
    padding: 0;
    cursor: pointer;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4 / 5;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: var(--shadow-card);
}
.moment-card:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
}
.moment-card:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.moment-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
}

/* ============================================
   FEATURE / IMAGE MODALS
   ============================================ */
.image-modal,
.feature-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    background: rgba(56, 42, 49, 0.85);
    backdrop-filter: blur(12px);
    z-index: 500;
}
.image-modal.open,
.feature-modal.open { display: flex; }

.image-modal-panel {
    position: relative;
    width: min(92vw, 800px);
    max-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.image-modal-panel img {
    display: block;
    max-width: 100%;
    max-height: 88vh;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-float);
}
.image-modal-close,
.feature-modal-close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: var(--bg-card);
    color: var(--accent);
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-modal-panel {
    position: relative;
    width: min(92vw, 800px);
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-soft);
    background: var(--bg-card);
    box-shadow: var(--shadow-float);
}

.feature-modal-header {
    padding: var(--space-lg) var(--space-lg) var(--space-md);
    border-bottom: 1px solid var(--border-soft);
}

.feature-modal-kicker {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.feature-modal-title {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.feature-modal-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.feature-modal-body {
    padding: var(--space-md) var(--space-lg) var(--space-lg);
    overflow-y: auto;
    display: grid;
    gap: 14px;
}

.feature-modal-close {
    top: 12px;
    right: 12px;
}

/* Feature modal inner elements */
.feature-tabs {
    display: flex;
    gap: var(--space-sm);
    overflow-x: auto;
    scrollbar-width: none;
}
.feature-tabs::-webkit-scrollbar { display: none; }

.feature-tab {
    border: 1px solid var(--border-soft);
    background: var(--accent-faint);
    color: var(--text-main);
    border-radius: var(--radius-pill);
    padding: 8px 14px;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
}
.feature-tab.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.feature-card-block {
    background: var(--accent-faint);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    border: 1px solid var(--border-soft);
}
.feature-card-title {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}
.feature-card-copy {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.feature-action-row {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}
.feature-action {
    border: none;
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius-pill);
    padding: 10px 16px;
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
}
.feature-action:hover { background: #954568; }
.feature-action.secondary {
    background: var(--accent-faint);
    color: var(--text-main);
}
.feature-action.secondary:hover { background: var(--accent-glow); }

.feature-chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}
.feature-chip {
    border: 1px solid var(--border-soft);
    background: var(--bg-card);
    color: var(--text-main);
    border-radius: var(--radius-pill);
    padding: 8px 14px;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.feature-chip.active {
    background: var(--accent-faint);
    border-color: var(--accent-light);
    color: var(--accent);
}

.feature-affirmation {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    line-height: 1.45;
    color: var(--text-main);
}

.feature-steps {
    display: grid;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
}
.feature-step {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
}
.feature-step-index {
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-faint);
    color: var(--accent);
    font-size: 0.68rem;
    font-weight: 700;
}

.feature-textarea {
    width: 100%;
    min-height: 100px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    padding: 12px;
    font: inherit;
    font-size: 0.78rem;
    resize: vertical;
    color: var(--text-main);
    background: var(--bg-base);
}
.feature-textarea:focus {
    outline: none;
    border-color: var(--accent-light);
}

.feature-journal-list {
    display: grid;
    gap: var(--space-sm);
}
.feature-journal-entry {
    background: var(--accent-faint);
    border-radius: var(--radius-sm);
    padding: 12px;
    border: 1px solid var(--border-soft);
}
.feature-journal-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.66rem;
    color: var(--text-soft);
    margin-bottom: var(--space-xs);
}
.feature-journal-text {
    font-size: 0.78rem;
    color: var(--text-main);
    line-height: 1.55;
    white-space: pre-wrap;
}

.feature-status {
    font-size: 0.72rem;
    color: var(--text-soft);
}

.feature-feed {
    display: grid;
    gap: var(--space-sm);
}
.feature-feed-item {
    background: var(--accent-faint);
    border-radius: var(--radius-sm);
    padding: 12px;
    border: 1px solid var(--border-soft);
}
.feature-feed-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.66rem;
    color: var(--text-soft);
    margin-bottom: var(--space-xs);
}
.feature-feed-text {
    font-size: 0.78rem;
    color: var(--text-main);
    line-height: 1.55;
    white-space: pre-wrap;
}

@media (max-width: 767px) {
    .feature-modal-panel {
        width: 100%;
        max-height: calc(100vh - 32px);
    }
    .feature-modal-header,
    .feature-modal-body {
        padding-left: var(--space-md);
        padding-right: var(--space-md);
    }
}

/* ============================================
   FOOTER
   ============================================ */
.app-footer {
    text-align: center;
    padding: var(--space-2xl) var(--space-lg) var(--space-xl);
    border-top: 1px solid var(--border-soft);
    margin-top: var(--space-xl);
    background: var(--bg-warm);
}

.footer-message {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
    line-height: 1.5;
}

.app-footer-links {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm) var(--space-lg);
    margin-bottom: var(--space-md);
}
.app-footer-links a {
    color: var(--text-soft);
    text-decoration: none;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
    transition: color 0.15s ease;
}
.app-footer-links a:hover { color: var(--accent); }

.footer-copy {
    font-size: 0.66rem;
    color: var(--text-soft);
    letter-spacing: 0.04em;
}

/* ============================================
   PAGE SHELL (for inner pages)
   ============================================ */
.page-shell {
    max-width: 640px;
    margin: 0 auto;
    padding: var(--space-xl) var(--space-lg);
    display: grid;
    gap: var(--space-lg);
}

.page-top { margin-bottom: var(--space-md); }

.back-link {
    display: inline-block;
    font-size: 0.78rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: var(--space-lg);
}
.back-link:hover { color: #954568; }

.page-eyebrow {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.page-title {
    font-family: var(--font-serif);
    font-size: clamp(1.3rem, 4vw, 1.8rem);
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: var(--space-sm);
}

.page-lede {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.page-card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
}
.page-card h2 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
}
.page-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}
.page-card p:last-child { margin-bottom: 0; }
.page-card ul {
    list-style: none;
    padding: 0;
    display: grid;
    gap: var(--space-sm);
}
.page-card li {
    font-size: 0.82rem;
    color: var(--text-main);
    line-height: 1.55;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: var(--accent-faint);
    border: 1px solid var(--border-soft);
}

.page-actions {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-lg);
    flex-wrap: wrap;
}
.page-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.page-action:hover { transform: translateY(-1px); }
.page-action.primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 2px 10px rgba(168, 80, 117, 0.2);
}
.page-action.secondary {
    background: var(--accent-faint);
    color: var(--text-main);
}

.page-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm) var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-soft);
}
.page-footer a {
    color: var(--text-soft);
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.15s ease;
}
.page-footer a:hover { color: var(--accent); }

/* ============================================
   VOICE CARD (Personal Intro)
   ============================================ */
.voice-card {
    max-width: 720px;
    margin: 0 auto;
    padding: var(--space-lg) var(--space-lg) 0;
}
.voice-card-inner {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: var(--space-xl) var(--space-lg);
    text-align: center;
    box-shadow: var(--shadow-card);
}
.voice-heart {
    font-size: 1.4rem;
    color: var(--accent);
    margin-bottom: var(--space-md);
    animation: voiceBeat 2s ease-in-out infinite;
}
@keyframes voiceBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.12); }
}
.voice-name {
    font-family: var(--font-serif);
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--text-main);
}
.voice-text {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.65;
    max-width: 460px;
    margin: 0 auto;
}

/* ============================================
   START HERE
   ============================================ */
.start-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}
@media (max-width: 480px) {
    .start-grid {
        grid-template-columns: 1fr;
    }
}
.start-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: var(--space-lg) var(--space-md);
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.start-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}
.start-emoji {
    font-size: 1.6rem;
    margin-bottom: var(--space-xs);
}
.start-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-main);
}
.start-desc {
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.4;
}
