/* Momora redesign system — based on the redesign handoff */
:root {
    --ink: #2c2418;
    --muted: #6b5e4f;
    --quiet: #9a8b79;
    --paper: #fafafd;
    --panel: #f4f3f8;
    --line: #ebe7f2;
    --pink: #d63e78;
    --pink-dark: #b22a60;
    --blue: #cfe1f4;
    --yellow: #ffe7b0;
    --green: #d6edde;
    --purple: #e5d2f1;
    --display: "Newsreader", Georgia, serif;
    --body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --hand: "Caveat", cursive;
    --mono: "Space Mono", monospace;
}

html { overflow-x: clip; scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--body);
    line-height: 1.6;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: var(--pink); font-weight: 600; text-decoration: none; }
a:hover { color: var(--pink-dark); }
.container { max-width: 1160px; padding: 0 24px; }

.header {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 0;
    background: rgba(250, 250, 253, .96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
}
.header .container {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.logo, .brand-lockup { display: inline-flex; align-items: baseline; gap: 3px; }
.logo-img { display: none; }
.brand-name {
    color: var(--ink);
    font-family: var(--display);
    font-size: 25px;
    font-weight: 500;
    letter-spacing: -.02em;
}
.brand-dot { width: 7px; height: 7px; border-radius: 999px; background: var(--pink); display: inline-block; }
.nav { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.nav-link { color: var(--muted); font-size: 14px; font-weight: 600; }
.nav-link:hover, .nav-link.active { color: var(--ink); }
.nav .btn-secondary { color: var(--paper); background: var(--pink); border: 0; }
.nav .btn-secondary:hover { color: var(--paper); background: var(--pink-dark); }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 18px;
    border: 0;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}
.btn-primary { color: var(--paper); background: var(--pink); }
.btn-primary:hover { color: var(--paper); background: var(--pink-dark); transform: translateY(-1px); }

.store-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 164px;
    padding: 9px 18px 10px;
    border-radius: 12px;
    background: var(--ink);
    color: var(--paper);
    box-shadow: none;
    transition: background .2s ease, transform .2s ease;
}
.store-button:hover { color: var(--paper); background: #463a28; transform: translateY(-1px); }
.store-button > span:last-child { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store-icon { width: 22px; height: 22px; flex: none; }
.store-label { color: #cfc8e0; font-size: 10px; font-weight: 500; line-height: 1.15; }
.store-name { color: var(--paper); font-size: 16px; font-weight: 600; line-height: 1.15; }
.download-buttons { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.download-buttons-large .store-button { padding: 11px 20px 12px; }

/* Landing page */
.landing-hero {
    max-width: 1160px;
    margin: 0 auto;
    padding: 72px 24px 96px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 64px;
}
.landing-copy { flex: 1 1 460px; min-width: 0; }
.landing-eyebrow, .feature-kicker {
    color: var(--pink);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.landing-eyebrow { margin-bottom: 20px; }
.landing-hero h1, .landing-section h2, .payoff h2, .landing-cta h2 {
    font-family: var(--display);
    font-weight: 500;
    letter-spacing: -.015em;
    text-wrap: pretty;
}
.landing-hero h1 {
    max-width: 13ch;
    margin: 0 0 24px;
    font-size: clamp(40px, 5.6vw, 64px);
    line-height: 1.05;
}
.underlined { position: relative; display: inline-block; white-space: nowrap; }
.crayon-underline { position: absolute; left: 0; bottom: -10px; width: 100%; height: 14px; overflow: visible; }
.crayon-stroke { fill: none; stroke: var(--pink); stroke-linecap: round; stroke-dasharray: 420; stroke-dashoffset: 420; animation: squiggleDraw 1.1s ease .5s forwards; }
.crayon-stroke--thick { stroke-width: 6.5; opacity: .55; }
.crayon-stroke--thin { stroke-width: 4.5; opacity: .85; animation-delay: .55s; }
.landing-lede { max-width: 54ch; margin: 0 0 32px; color: var(--muted); font-size: 18px; line-height: 1.6; }
.landing-note { margin-top: 16px; color: var(--quiet); font-size: 13.5px; }
.landing-visual { flex: 0 1 340px; margin: 0 auto; }

/* --- Phone mockup system (shared by hero + how-it-works blocks) --- */
.mockup-wrap { position: relative; width: 300px; max-width: 100%; margin: 0 auto; }
.mockup-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    opacity: .5;
    pointer-events: none;
}
.mockup-glow--hero { width: 420px; height: 420px; opacity: 1; background: radial-gradient(circle, #fdeaf1 0%, rgba(253, 234, 241, 0) 70%); }
.mockup-glow--teal { opacity: .55; background: radial-gradient(circle, #c9ece9 0%, rgba(201, 236, 233, 0) 70%); }
.mockup-glow--green { opacity: .55; background: radial-gradient(circle, #d6edde 0%, rgba(214, 237, 222, 0) 70%); }
.mockup-glow--blue { background: radial-gradient(circle, #cfe1f4 0%, rgba(207, 225, 244, 0) 70%); }
.mockup-glow--purple { background: radial-gradient(circle, #e5d2f1 0%, rgba(229, 210, 241, 0) 70%); }
.mockup-glow--pink2 { background: radial-gradient(circle, #fbd6e1 0%, rgba(251, 214, 225, 0) 70%); }

.phone-mockup { position: relative; padding: 10px; border-radius: 46px; background: var(--ink); box-shadow: 0 18px 40px -20px rgba(44, 36, 24, .35); }
.phone-mockup-screen { position: relative; height: 560px; border-radius: 37px; background: var(--paper); overflow: hidden; display: flex; flex-direction: column; line-height: normal; }
.phone-mockup-screen.hero-screen { height: 580px; }
.phone-status-bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 22px 2px; font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--ink); flex: none; }
.battery-icon { width: 18px; height: 9px; border: 1.5px solid var(--quiet); border-radius: 3px; display: inline-block; }
.caret { display: inline-block; width: 2px; height: 16px; background: var(--pink); vertical-align: text-bottom; margin-left: 1px; animation: blink 1s infinite; }
.caret--sm { height: 14px; }

.mockup-fab { position: absolute; right: 15px; bottom: 66px; width: 46px; height: 46px; border-radius: 999px; background: var(--pink); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 22px -8px rgba(214, 62, 120, .55); z-index: 3; }
.mockup-tabbar { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 3; display: flex; align-items: center; justify-content: space-between; padding: 5px 9px; background: rgba(255, 255, 255, .94); border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 12px 28px -14px rgba(40, 32, 20, .3); }
.mockup-tab-active { display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; border-radius: 999px; background: var(--pink); font-size: 10px; font-weight: 700; color: var(--paper); }
.mockup-tab-icon { padding: 6px 10px; display: inline-flex; }

.mockup-annotation { position: absolute; top: -58px; z-index: 2; font-family: var(--hand); font-size: 23px; text-align: center; line-height: 1; }
.mockup-annotation svg { display: block; margin: 2px auto 0; }
.mockup-annotation--right { right: 6px; transform: rotate(3deg); }
.mockup-annotation--left { left: 6px; transform: rotate(-3deg); }
.mockup-annotation--teal { color: #1f5a56; }
.mockup-annotation--green { color: #3f6a4c; }
.mockup-annotation--blue { color: #3a5b7a; }
.mockup-annotation--purple { color: #5c4374; }
.mockup-annotation--pink2 { color: #9c4f68; }

/* Shared "memory card" list item used in hero scroller + block timelines */
.hero-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.hero-card-strip { height: 3px; }
.hero-card-strip--blue { background: #cfe1f4; }
.hero-card-strip--green { background: #d6edde; }
.hero-card-strip--purple { background: #e5d2f1; }
.hero-card-strip--yellow { background: #ffe7b0; }
.hero-card-strip--pink { background: #fbd6e1; }
.hero-card-strip--pink2 { background: #fbd3e2; }
.hero-card-quote { margin: 0; padding: 11px 13px 2px; font-family: var(--display); font-style: italic; font-size: 14.5px; line-height: 1.35; color: var(--ink); }
.hero-card-quote--sm { padding: 10px 13px 2px; font-size: 13.5px; }
.hero-card-img { display: block; width: 100%; height: 140px; object-fit: cover; }
.hero-card-img--aquarium { object-position: 50% 18%; }
.hero-card-img--mischief { height: 130px; }
.hero-card-img--swing { height: 130px; object-position: 50% 20%; }
.hero-card-meta-row { display: flex; align-items: center; gap: 14px; padding: 7px 13px 0; }
.hero-card-meta-row--media { padding-top: 9px; }
.hero-card-stat { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; color: var(--muted); }
.hero-card-stat--active { color: var(--pink); }
.hero-card-caption { margin: 0; padding: 8px 13px 0; font-size: 12px; line-height: 1.5; color: var(--ink); }
.hero-card-footer { display: flex; align-items: center; gap: 6px; padding: 8px 13px 12px; }
.hero-card-time { font-size: 8px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--quiet); }
.spacer { flex: 1; }
.avatar { width: 16px; height: 16px; border-radius: 999px; border: 1.5px solid #fff; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 8px; color: var(--paper); flex: none; }
img.avatar { object-fit: cover; background: #f8f0dd; padding: 0; line-height: 0; }
.avatar--sm { width: 14px; height: 14px; font-size: 7px; }
.avatar--blue { background: linear-gradient(135deg, #cfe1f4, #4f8fcc 90%); }
.avatar--yellow { background: linear-gradient(135deg, #ffe7b0, #f5a623 90%); }
.avatar--green { background: linear-gradient(135deg, #d6edde, #6bb58a 90%); }
.avatar--purple { background: linear-gradient(135deg, #e5d2f1, #9863b8 90%); }
.avatar--pink { background: linear-gradient(135deg, #fbd3e2, #d63e78 90%); }
.avatar-stack { display: flex; }
.avatar-stack .avatar:not(:first-child) { margin-left: -5px; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px 2px 6px; border-radius: 999px; font-size: 9px; font-weight: 700; }
.tag-dot { width: 4px; height: 4px; border-radius: 999px; }
.tag--blue { background: #cfe1f4; color: #3a5b7a; }
.tag--blue .tag-dot { background: #4f8fcc; }
.tag--yellow { background: #ffe7b0; color: #8a5b13; }
.tag--yellow .tag-dot { background: #f5a623; }
.tag--purple { background: #e5d2f1; color: #5c4374; }
.tag--purple .tag-dot { background: #9863b8; }
.tag--green { background: #d6edde; color: #3f6a4c; }
.tag--green .tag-dot { background: #6bb58a; }
.tag--pink { background: #fbd6e1; color: #9c4f68; }
.tag--pink .tag-dot { background: #ec7fa1; }
.hero-card-video-thumb { position: relative; height: 118px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: radial-gradient(ellipse at 30% 70%, #d6edde 0%, transparent 60%), linear-gradient(135deg, #c9ece9, #d6edde); }
.hero-card-video-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-card-video-thumb::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(44, 36, 24, .18); }
.play-btn { position: relative; z-index: 1; width: 38px; height: 38px; border-radius: 999px; background: rgba(250, 250, 253, .85); display: flex; align-items: center; justify-content: center; }
.badge { display: inline-flex; padding: 2px 8px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); font-size: 8.5px; font-weight: 700; color: var(--quiet); }
.media-chip { position: absolute; z-index: 1; padding: 2px 7px; border-radius: 999px; background: rgba(44, 36, 24, .55); font-size: 8px; font-weight: 700; color: #fff; }
.media-chip--br { right: 8px; bottom: 8px; }
.media-chip--tr { top: 8px; right: 8px; }
.hero-card-carousel { position: relative; height: 140px; overflow: hidden; }
.hero-card-carousel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: carouselFade 12s ease infinite; }
.hero-card-carousel img:first-child { opacity: 1; }
.hero-card-carousel img:nth-child(2) { animation-delay: 4s; }
.hero-card-carousel img:nth-child(3) { animation-delay: 8s; }
.carousel-dots { position: absolute; z-index: 1; left: 50%; bottom: 8px; transform: translateX(-50%); display: flex; gap: 5px; }
.carousel-dot { width: 5px; height: 5px; border-radius: 999px; background: rgba(255, 255, 255, .55); animation: carouselDot 12s ease infinite; }
.carousel-dot:first-child { background: #fff; }
.carousel-dot:nth-child(2) { animation-delay: 4s; }
.carousel-dot:nth-child(3) { animation-delay: 8s; }

/* Hero phone specifics */
.hero-screen-head { padding: 10px 16px 0; flex: none; }
.hero-kicker { font-size: 9px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--quiet); }
.hero-title { margin-top: 6px; font-family: var(--display); font-weight: 400; font-size: 29px; line-height: 1; letter-spacing: -.018em; }
.hero-week-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding-bottom: 13px; }
.hero-week-label { font-size: 8px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--quiet); }
.hero-dots { display: flex; gap: 6px; align-items: center; }
.hero-dot { width: 7px; height: 7px; border-radius: 999px; background: var(--line); }
.hero-dot--on { background: var(--pink); }
.hero-dot--glow { background: var(--pink); box-shadow: 0 0 8px rgba(214, 62, 120, .55); }
.hero-cards-viewport { flex: 1; overflow: hidden; position: relative; }
.hero-cards-track { padding: 0 14px 90px; display: flex; flex-direction: column; gap: 11px; animation: heroScroll 30s ease-in-out infinite alternate; }
.hero-cards-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 44px; background: linear-gradient(to top, var(--paper), rgba(250, 250, 253, 0)); pointer-events: none; }

.sticky-note { position: absolute; top: -52px; left: -16px; transform: rotate(-6deg); z-index: 2; }
.sticky-note-inner { animation: bob 3.4s ease-in-out infinite alternate; background: #fbe8b8; border: 1px solid #f2b441; border-radius: 12px; padding: 10px 14px; box-shadow: 0 4px 14px -6px rgba(44, 36, 24, .2); max-width: 150px; font-family: var(--hand); font-size: 21px; line-height: 1.05; color: #7a560f; }
.polaroid { position: absolute; bottom: -34px; right: -52px; transform: rotate(5deg); z-index: 4; }
.polaroid-inner { animation: bob 4.2s ease-in-out .8s infinite alternate; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 7px; box-shadow: 0 10px 24px -12px rgba(44, 36, 24, .3); width: 124px; }
.polaroid-inner img { display: block; width: 100%; height: 96px; object-fit: cover; object-position: 50% 20%; border-radius: 9px; }
.polaroid-caption { padding: 7px 0 3px; font-family: var(--hand); font-size: 17px; line-height: 1; color: var(--muted); text-align: center; }

.quote-ticker { overflow: hidden; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--panel); }
.quote-ticker-label { margin-bottom: 10px; text-align: center; font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--quiet); }
.quote-ticker-track { display: flex; width: max-content; animation: tickerMove 36s linear infinite; }
.quote-ticker-half { display: flex; gap: 36px; align-items: baseline; padding-right: 36px; white-space: nowrap; }
.quote-word { font-family: var(--hand); font-size: 27px; }
.quote-dot { color: #cfc8e0; }
.tc-brown { color: #8a5b13; }
.tc-blue { color: #3a5b7a; }
.tc-rose { color: #9c4f68; }
.tc-purple { color: #5c4374; }
.tc-green { color: #3f6a4c; }
.tc-pink { color: #b22a60; }

.landing-section { max-width: 1160px; margin: 0 auto; padding: 88px 24px 40px; }
.landing-section h2 { margin: 0 0 12px; font-size: clamp(32px, 4vw, 44px); line-height: 1.1; }
.section-intro { max-width: 60ch; margin: 0 0 44px; color: var(--muted); font-size: 17px; }
.promise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.promise h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.4; }
.promise p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }

/* "You, probably." section */
/* User request: center this section's heading (design file has it left-aligned). */
#recognition-title { text-align: center; }
.you-probably-grid { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; justify-content: center; }
.chat-card, .symptoms-card { flex: 1 1 340px; max-width: 480px; background: var(--panel); border: 1px solid var(--line); border-radius: 24px; }
.chat-card { padding: 22px; transform: rotate(-.6deg); }
.symptoms-card { padding: 28px 26px; transform: rotate(.5deg); }
.chat-card-name { margin-bottom: 4px; text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); }
.chat-card-time { margin-bottom: 16px; text-align: center; font-family: var(--mono); font-size: 10px; color: var(--quiet); }
.chat-thread { display: flex; flex-direction: column; gap: 8px; }
.chat-bubble { max-width: 80%; padding: 9px 13px; font-size: 14px; line-height: 1.45; border-radius: 16px 16px 16px 4px; }
.chat-bubble--in { align-self: flex-start; background: var(--paper); border: 1px solid var(--line); }
.chat-bubble--out { align-self: flex-end; background: var(--pink); color: var(--paper); border-radius: 16px 16px 4px 16px; }
.symptoms-title { margin-bottom: 4px; font-size: 16px; font-weight: 700; }
.symptoms-sub { margin-bottom: 18px; font-family: var(--hand); font-size: 20px; color: var(--quiet); }
.symptoms-list { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }
.symptoms-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; }
.symptom-check { width: 20px; height: 20px; border-radius: 6px; background: var(--pink); display: flex; align-items: center; justify-content: center; flex: none; margin-top: 1px; }
.no-judgment { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 48px; text-align: center; }
.no-judgment-line { font-family: var(--hand); font-size: 36px; line-height: 1; color: var(--pink); }
.no-judgment p { max-width: 56ch; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.6; }
.feature-stack { padding-top: 16px; }
.feature-row { max-width: 1160px; margin: 0 auto; padding: 64px 24px; display: flex; flex-wrap: wrap; gap: 64px; align-items: center; }
.feature-row.reverse { flex-direction: row-reverse; }
.feature-copy { flex: 1 1 420px; min-width: 0; }
.feature-badge { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; margin-bottom: 16px; border-radius: 999px; font-family: var(--mono); font-size: 13px; }
.feature-badge--01 { background: #c9ece9; color: #1f5a56; }
.feature-badge--02 { background: #d6edde; color: #3f6a4c; }
.feature-badge--03 { background: #cfe1f4; color: #3a5b7a; }
.feature-badge--04 { background: #e5d2f1; color: #5c4374; }
.feature-badge--05 { background: #fbd6e1; color: #9c4f68; }
.feature-copy h2 { margin: 0 0 18px; font-family: var(--display); font-weight: 500; font-size: clamp(30px, 3.6vw, 40px); font-style: italic; line-height: 1.12; text-wrap: pretty; }
.feature-copy.has-sub h2 { margin-bottom: 12px; }
.feature-sub { margin: 0 0 18px; font-family: var(--display); font-style: italic; font-size: 19px; color: var(--quiet); }
.feature-copy p { max-width: 52ch; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.65; }
.feature-visual { flex: 0 1 340px; margin: 0 auto; }

.payoff { margin-top: 48px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--panel); }
.payoff h2 { margin: 0 0 18px; font-size: clamp(32px, 3.8vw, 44px); line-height: 1.1; }
.payoff-inner { max-width: 1160px; margin: 0 auto; padding: 96px 24px; display: flex; flex-wrap: wrap; gap: 72px; align-items: center; }
.payoff-visual { flex: 0 1 420px; margin: 0 auto; transform: rotate(-2deg); }
.payoff-polaroid { padding: 14px 14px 8px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: 0 24px 48px -24px rgba(44, 36, 24, .35); }
.payoff-polaroid img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 8%; border-radius: 10px; }
.payoff-polaroid-caption { padding: 12px 4px 8px; color: var(--muted); font-family: var(--hand); font-size: 26px; text-align: center; }
.payoff-copy { flex: 1 1 380px; min-width: 0; }
.payoff-copy p { max-width: 50ch; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.65; }

/* --- Block 01: voice capture (JS-driven cross-fade) --- */
/* Screen B (compose) is the always-opaque base layer; screen A (listen) sits
   above it with its own opaque background and only A's opacity animates, so
   the dark phone shell can never show through mid-fade. */
.voice-panel { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--paper); border-radius: 37px; overflow: hidden; }
.voice-panel--a { z-index: 2; transition: opacity .5s; }
.voice-panel--a.is-hidden { opacity: 0; }
.voice-topbar { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px 4px; }
.voice-topbar span:first-child { min-width: 48px; font-size: 13px; font-weight: 700; color: var(--pink); }
.voice-topbar-label { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; color: var(--muted); }
.voice-topbar span:last-child { min-width: 48px; }
.voice-center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-bottom: 44px; }
.mic-wrap { position: relative; width: 124px; height: 124px; display: flex; align-items: center; justify-content: center; margin-bottom: 28px; }
.mic-ring { position: absolute; inset: 0; border-radius: 999px; background: #6aaeaa; animation: ringPulse 1.5s ease-out infinite; }
.mic-ring--delay { animation-delay: .65s; }
.mic-button { position: relative; width: 72px; height: 72px; border-radius: 999px; background: #6aaeaa; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(106, 174, 170, .4); }
.voice-prompt { margin-bottom: 9px; font-family: var(--display); font-size: 21px; color: var(--ink); }
.voice-timer { font-family: var(--mono); font-size: 12px; color: var(--quiet); }
.voice-topbar-b { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px 6px; }
.voice-topbar-b span:first-child, .voice-topbar-b span:last-child { font-size: 13px; font-weight: 700; color: var(--pink); }
.pill-badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; background: #fdeaf1; border: 1px solid #fbd3e2; font-size: 10px; font-weight: 700; color: var(--pink); }
.voice-date-chip { padding: 8px 16px 0; }
.chip-plain { display: inline-flex; padding: 4px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 11px; font-weight: 600; color: var(--muted); }
.voice-text { flex: 1; padding: 14px 18px 0; font-family: var(--display); font-size: 17.5px; line-height: 1.45; color: var(--ink); }
.voice-wordcount { padding: 0 18px 10px; text-align: right; font-family: var(--mono); font-size: 9px; color: var(--quiet); }
.voice-chip-row { display: flex; gap: 7px; padding: 0 16px 12px; }
.person-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px 4px 5px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.person-chip--selected { background: #fdeaf1; border: 1px solid #fbd3e2; color: var(--pink-dark); }
.person-chip--muted { background: #fff; border: 1px solid var(--line); color: var(--muted); font-weight: 600; }
.voice-bottombar { display: flex; align-items: center; gap: 8px; padding: 10px 16px 20px; border-top: 1px solid var(--line); }
.round-icon-btn { width: 34px; height: 34px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; }
.round-icon-btn--teal { background: #c9ece9; }
.round-icon-btn--outline { background: #fff; border: 1px solid var(--line); }
.voice-toggle-label { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.voice-toggle-label span:first-child { font-size: 10px; font-weight: 700; color: var(--ink); }
.voice-toggle-label span:last-child { font-size: 8.5px; color: var(--quiet); }
.toggle-switch { position: relative; display: inline-block; flex: none; width: 30px; height: 18px; border-radius: 999px; background: var(--pink); }
.toggle-switch::after { content: ""; position: absolute; top: 2px; right: 2px; width: 14px; height: 14px; border-radius: 999px; background: #fff; }

/* --- Block 02: backdating (pure CSS loop) --- */
.backdate-panel { position: absolute; inset: 0; display: flex; flex-direction: column; }
.backdate-panel--a { animation: b2a 14s ease infinite; }
.backdate-panel--b { opacity: 0; background: var(--paper); animation: b2b 14s ease infinite; }
.date-pill-wrap { padding: 6px 16px 0; }
.date-pill { position: relative; height: 30px; width: 150px; overflow: hidden; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.date-roll { animation: dateRoll 14s ease infinite; }
.date-roll div { height: 30px; line-height: 30px; padding: 0 13px; font-size: 12px; font-weight: 600; color: var(--muted); }
.date-roll div.is-target { font-weight: 700; color: var(--pink); }
.date-pill-note { margin-top: 8px; font-size: 11px; color: var(--quiet); }
.backdate-text { flex: 1; padding: 14px 18px 0; font-family: var(--display); font-size: 17px; line-height: 1.45; color: var(--ink); }
.backdate-chip-row { display: flex; gap: 7px; padding: 0 16px 20px; }
.backdate-head { padding: 10px 16px 12px; }
.backdate-head .hero-kicker { font-size: 9px; }
.backdate-head .hero-title { margin-top: 5px; font-size: 26px; }
.timeline-list { padding: 0 14px; display: flex; flex-direction: column; gap: 10px; }
.slot-in { overflow: hidden; height: 0; opacity: 0; animation: slotIn 14s ease infinite; }
.hero-card--highlight { height: 96px; box-sizing: border-box; border: 1.5px solid #fbd3e2; box-shadow: 0 6px 16px -8px rgba(214, 62, 120, .3); }
.hero-card--highlight .hero-card-strip { background: #fbd3e2; }
.hero-card--highlight .hero-card-time { color: var(--pink-dark); }

/* --- Block 03: search (JS-driven) --- */
.search-bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.search-bar-wrap { padding: 12px 16px 8px; }
.search-result-count { height: 18px; padding: 4px 2px 0; font-size: 11px; font-weight: 600; color: var(--pink-dark); opacity: 0; transition: opacity .4s; }
.search-result-count.is-visible { opacity: 1; }
.search-list-viewport { flex: 1; overflow: hidden; position: relative; }
.search-list { padding: 0 14px; display: flex; flex-direction: column; gap: 10px; transform: translateY(0); transition: transform .9s cubic-bezier(.22, .61, .36, 1); }
.search-list.is-searching { transform: translateY(-355px); }
.search-card { transition: opacity .5s, background .5s, border-color .5s; }
.search-card.is-dim { opacity: .22; }
.search-card.is-match { background: #fdeaf1; border: 1.5px solid #d63e78; }
.search-list-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 40px; background: linear-gradient(to top, var(--paper), rgba(250, 250, 253, 0)); pointer-events: none; }
.search-tabbar { margin: auto 10px 12px; flex: none; }

/* --- Block 04: illustrations (pure CSS loop) --- */
.illus-screen { background: linear-gradient(to bottom, #e5d2f1 0%, var(--paper) 48%); }
.illus-back { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 999px; background: rgba(255, 255, 255, .85); }
.illus-topbar { padding: 8px 14px 0; display: flex; justify-content: space-between; align-items: center; }
.illus-body { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 0 14px 16px; }
.illus-detail-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 18px 40px -18px rgba(40, 30, 20, .28); }
.illus-art-wrap { padding: 8px 8px 0; }
.illus-art { position: relative; height: 220px; border-radius: 12px; overflow: hidden; background: radial-gradient(ellipse at 70% 30%, #e5d2f1 0%, transparent 60%), radial-gradient(ellipse at 30% 80%, #fbd3e2 0%, transparent 55%), linear-gradient(135deg, #fce0bb, #e5d2f1); }
.illus-label-wrap { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; animation: drawLbl 10s ease infinite; }
.illus-label { display: inline-flex; align-items: center; gap: 7px; padding: 7px 15px; border-radius: 999px; background: rgba(250, 250, 253, .9); font-size: 12px; font-weight: 600; color: var(--muted); }
.illus-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; animation: illusIn 10s ease infinite; }
.illus-card-body { padding: 10px 14px 14px; display: flex; flex-direction: column; gap: 9px; }
.illus-meta-row { display: flex; align-items: center; gap: 15px; }
.illus-meta-row .hero-card-stat { font-size: 11.5px; }
.illus-caption { font-size: 12.5px; line-height: 1.55; color: var(--ink); }
.illus-chip-row { display: flex; gap: 6px; flex-wrap: wrap; }
.illus-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 3px; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.illus-chip span:last-child { font-size: 10px; font-weight: 700; color: var(--ink); }
.illus-footer-row { display: flex; align-items: center; justify-content: space-between; margin-top: 2px; }
.illus-added-by { font-size: 9px; color: var(--quiet); }

/* --- Block 05: family sharing (pure CSS loop) --- */
.family-head { padding: 12px 16px 10px; }
.family-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--pink); }
.family-title { font-family: var(--display); font-weight: 500; font-size: 23px; }
.family-list { padding: 0 14px; display: flex; flex-direction: column; gap: 6px; }
.family-member { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 7px 12px; display: flex; align-items: center; gap: 10px; }
.family-avatar { width: 34px; height: 34px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 15px; color: var(--paper); flex: none; }
img.family-avatar { object-fit: cover; background: #f8f0dd; }
.family-avatar--pink { background: linear-gradient(135deg, #fbd3e2, #d63e78 90%); }
.family-avatar--green { background: linear-gradient(135deg, #d6edde, #6bb58a 90%); }
.family-avatar--purple { background: linear-gradient(135deg, #e5d2f1, #9863b8 90%); }
.family-member-name { flex: 1; font-size: 14px; font-weight: 600; }
.family-role { font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); background: #f2eff8; border-radius: 999px; padding: 3px 9px; }
.family-invite { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
.family-invite-inner { display: flex; align-items: center; gap: 10px; }
.family-invite-icon { width: 34px; height: 34px; border-radius: 999px; border: 1.5px dashed #cfc8e0; display: flex; align-items: center; justify-content: center; flex: none; }
.family-invite-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.family-latest-label { margin-top: 6px; font-size: 10px; font-weight: 700; letter-spacing: .08em; color: var(--quiet); }
.stat-swap { position: relative; display: inline-flex; align-items: center; }
.stat-swap-out { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; color: var(--muted); animation: swapOut 9s ease infinite; }
.stat-swap-in { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; color: var(--pink); animation: swapIn 9s ease infinite; }
.stat-swap-in svg { animation: heartPop 9s ease infinite; transform-origin: center; }
.family-comment-count { animation: swapIn 9s ease infinite; }
.family-comment-wrap { overflow: hidden; height: 0; opacity: 0; margin: 0 10px; animation: cmtIn 9s ease infinite; }
.family-comment { display: flex; gap: 8px; box-sizing: border-box; height: 70px; padding: 9px 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.family-comment-avatar { width: 24px; height: 24px; border-radius: 999px; background: linear-gradient(135deg, #e5d2f1, #9863b8 90%); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 11px; color: var(--paper); flex: none; }
img.family-comment-avatar { object-fit: cover; background: #f8f0dd; }
.family-comment-name { font-size: 11px; font-weight: 700; }
.family-comment-text { font-size: 12px; line-height: 1.45; color: var(--muted); }
.promise-grid { grid-template-columns: repeat(3, 1fr); }
.promise { padding-top: 20px; border-top: 3px solid var(--pink); }
.promise:nth-child(2) { border-color: #3fa8a1; }
.promise:nth-child(3) { border-color: #f2b441; }
.landing-cta { max-width: 1160px; margin: 0 auto; padding: 24px 24px 120px; }
.landing-cta-inner { max-width: 880px; margin: 0 auto; padding: 72px 32px; border: 1px solid var(--line); border-radius: 24px; background: var(--panel); text-align: center; }
.hand-note { margin: 0 0 8px; color: var(--pink); font-family: var(--hand); font-size: 28px; }
.landing-cta h2 { margin: 0 0 18px; font-size: clamp(36px, 4.8vw, 52px); line-height: 1.08; }
.landing-cta p { max-width: 48ch; margin: 0 auto 32px; color: var(--muted); font-size: 17px; line-height: 1.65; }
.landing-cta .download-buttons { justify-content: center; }

/* Shared content pages */
.faq-hero { padding: 78px 0 52px; background: var(--panel); text-align: center; border-bottom: 1px solid var(--line); }
.faq-hero-title { margin: 0 0 12px; color: var(--ink); font-family: var(--display); font-size: clamp(36px, 5vw, 56px); font-weight: 500; letter-spacing: -.02em; }
.faq-hero-subtitle { margin: 0; color: var(--muted); font-size: 17px; }
.faq-content { padding: 64px 0 88px; background: var(--paper); }
.faq-section { margin: 0 auto 52px; max-width: 820px; }
.faq-section-title { margin: 0 0 18px; padding: 0 0 12px; border-bottom: 2px solid var(--pink); color: var(--ink); font-family: var(--display); font-size: 32px; font-weight: 500; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden; transition: border-color .2s ease, box-shadow .2s ease; }
.faq-item:hover, .faq-item.active { border-color: #f2b6ca; box-shadow: 0 8px 20px -18px rgba(44, 36, 24, .45); }
.faq-question { width: 100%; display: flex; align-items: center; gap: 14px; padding: 20px; border: 0; background: transparent; color: var(--ink); font: 600 15px/1.45 var(--body); text-align: left; cursor: pointer; }
.faq-question:hover { color: var(--pink-dark); }
.faq-number { color: var(--pink); font-family: var(--mono); font-size: 12px; }
.faq-question span:nth-child(2) { flex: 1; }
.faq-icon { width: 18px; height: 18px; color: var(--pink); transition: transform .2s ease; }
.faq-item.active .faq-icon { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; padding: 0 20px; transition: max-height .3s ease, padding .3s ease; }
.faq-item.active .faq-answer { max-height: 640px; padding: 0 20px 20px; }
.faq-answer p, .faq-answer li { color: var(--muted); font-size: 15px; line-height: 1.7; }
.faq-answer p { margin: 0 0 12px; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer a { color: var(--pink); }
.faq-warning { margin-top: 14px; padding: 12px 14px; border-left: 3px solid var(--pink); border-radius: 8px; background: #fdeaf1; color: var(--ink); font-size: 14px; }
.faq-cta { padding: 80px 0; border-top: 1px solid var(--line); background: var(--panel); }
.faq-cta-content { max-width: 600px; margin: 0 auto; text-align: center; }
.faq-cta-title { margin: 0 0 12px; color: var(--ink); font-family: var(--display); font-size: 40px; font-weight: 500; }
.faq-cta-subtitle { margin: 0 0 24px; color: var(--muted); }

.content-page { min-height: 70vh; padding: 80px 0; background: var(--paper); }
.content-container { max-width: 820px; margin: 0 auto; padding: 0 24px; }
.content-body { color: var(--muted); font-size: 16px; line-height: 1.8; }
.content-body h1, .content-body h2, .content-body h3 { color: var(--ink); font-family: var(--display); font-weight: 500; line-height: 1.15; }
.content-body h1 { margin: 0 0 28px; font-size: clamp(40px, 6vw, 60px); }
.content-body h2 { margin: 52px 0 16px; font-size: 32px; }
.content-body h3 { margin: 34px 0 12px; font-size: 24px; }
.content-body p { margin: 0 0 18px; }
.content-body ul, .content-body ol { margin: 0 0 22px; padding-left: 24px; }
.content-body li { margin-bottom: 8px; }
.content-body a { color: var(--pink); text-decoration: underline; text-decoration-color: #f2b6ca; text-underline-offset: 3px; }
.content-body blockquote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--pink); color: var(--muted); font-family: var(--display); font-size: 20px; font-style: italic; }
.content-body code { padding: 2px 6px; border-radius: 6px; background: var(--panel); font-family: var(--mono); font-size: .9em; }
.content-body pre { overflow-x: auto; padding: 18px; border-radius: 12px; background: var(--ink); color: var(--paper); }
.content-body table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.content-body th, .content-body td { padding: 10px; border: 1px solid var(--line); text-align: left; }
.content-body th { background: var(--panel); color: var(--ink); }
.content-body hr { margin: 40px 0; border: 0; border-top: 1px solid var(--line); }

.footer { padding: 48px 0 36px; border-top: 1px solid var(--line); background: var(--panel); color: var(--ink); }
.footer-content { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 34px; }
.footer-brand p { margin: 6px 0 0; color: var(--muted); font-family: var(--hand); font-size: 23px; }
.footer-links { display: flex; gap: 32px; flex-wrap: wrap; }
.footer-column { display: flex; flex-direction: column; gap: 8px; min-width: 116px; }
.footer-column h4 { margin: 0 0 4px; color: var(--quiet); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.footer-column a { color: var(--muted); font-size: 14px; font-weight: 600; }
.footer-column a:hover { color: var(--ink); }
.footer-bottom { padding-top: 24px; border-top: 1px solid var(--line); color: var(--quiet); font-size: 12px; }
.footer-bottom p { margin: 0; }

/* Invite keeps its no-analytics, no-external-font behavior but uses the same visual language. */
.invite-hero { min-height: 70vh; padding: 72px 16px 96px; background: var(--paper); }
.invite-container { max-width: 520px; }
.invite-card { padding: 42px 28px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: 0 20px 50px -34px rgba(44, 36, 24, .45); }
.invite-eyebrow { color: var(--pink); font-size: 12px; letter-spacing: .08em; }
.invite-title { color: var(--ink); font-family: var(--display); font-size: 38px; font-weight: 500; line-height: 1.1; }
.invite-subtitle { color: var(--muted); }
.invite-code-box { background: var(--panel); }
.invite-code-value { color: var(--ink); font-family: var(--mono); }
.invite-copy-btn { background: var(--pink); border-radius: 10px; }
.invite-copy-btn:hover { background: var(--pink-dark); }
.invite-step-num { background: var(--pink); }
.invite-steps { display: flex; flex-direction: column; gap: 14px; margin: 0 0 24px; padding: 0; list-style: none; text-align: left; }
.invite-steps li { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.invite-store-primary { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 12px; }
.invite-store-both { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.invite-store-secondary { color: var(--muted); font-size: 14px; }
.invite-store-secondary a { color: var(--muted); text-decoration: underline; }
.invite-note { color: var(--quiet); }

@keyframes bob { from { transform: translateY(0); } to { transform: translateY(-7px); } }
@keyframes tickerMove { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* End value tracks the hero card track height (design was -870px at 1426px track;
   current copy renders an 1444px track, so scroll 18px further). */
@keyframes heroScroll { from { transform: translateY(0); } to { transform: translateY(-888px); } }
@keyframes ringPulse { 0% { transform: scale(1); opacity: .4; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes squiggleDraw { to { stroke-dashoffset: 0; } }
@keyframes blink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }
@keyframes b2a { 0%, 36% { opacity: 1; } 44%, 94% { opacity: 0; } 100% { opacity: 1; } }
@keyframes b2b { 0%, 36% { opacity: 0; } 44%, 94% { opacity: 1; } 100% { opacity: 0; } }
@keyframes swapOut { 0%, 42% { opacity: 1; } 46%, 92% { opacity: 0; } 100% { opacity: 1; } }
@keyframes swapIn { 0%, 42% { opacity: 0; } 46%, 92% { opacity: 1; } 100% { opacity: 0; } }
@keyframes dateRoll { 0%, 10% { transform: translateY(0); } 30%, 100% { transform: translateY(-150px); } }
@keyframes slotIn { 0%, 52% { height: 0; opacity: 0; margin-bottom: 0; } 62%, 100% { height: 96px; opacity: 1; margin-bottom: 10px; } }
@keyframes illusIn { 0%, 16% { opacity: 0; } 36%, 92% { opacity: 1; } 100% { opacity: 0; } }
@keyframes drawLbl { 0%, 14% { opacity: 1; } 32%, 100% { opacity: 0; } }
@keyframes cmtIn { 0%, 42% { height: 0; opacity: 0; transform: translateY(8px); } 54%, 92% { height: 80px; opacity: 1; transform: translateY(0); } 100% { height: 0; opacity: 0; } }
@keyframes heartPop { 0%, 44% { transform: scale(0); } 56% { transform: scale(1.3); } 64%, 92% { transform: scale(1); } 100% { transform: scale(0); } }
@keyframes carouselFade { 0%, 30% { opacity: 1; } 40%, 100% { opacity: 0; } }
@keyframes carouselDot { 0%, 30% { background: #fff; } 40%, 100% { background: rgba(255, 255, 255, .55); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; } }
@media (max-width: 760px) {
    .header .container { padding-top: 12px; padding-bottom: 12px; }
    .nav { gap: 14px; }
    .nav-link:not(.active) { display: none; }
    .landing-hero { padding-top: 54px; gap: 48px; }
    .landing-hero h1 { max-width: none; }
    .landing-visual { order: -1; width: 100%; }
    .sticky-note, .polaroid { display: none; }
    .promise-grid { grid-template-columns: 1fr; }
    .you-probably-grid { flex-direction: column; }
    .chat-card, .symptoms-card { max-width: none; transform: none; }
    .feature-row, .feature-row.reverse { gap: 34px; flex-direction: column; align-items: stretch; }
    /* In column direction the desktop flex-basis values (420px/340px/460px)
       would become fixed heights and pad the blocks with empty space. */
    .feature-copy, .feature-visual, .landing-copy, .landing-visual,
    .chat-card, .symptoms-card { flex-basis: auto; }
    .feature-visual { width: 100%; }
    .mockup-annotation { display: none; }
    .payoff-visual { width: 100%; transform: none; }
    .payoff-inner { gap: 38px; padding-top: 64px; padding-bottom: 64px; }
    .landing-cta-inner { padding: 52px 22px; }
    .footer-links { gap: 22px; }
    .content-page { padding: 56px 0; }
}
@media (max-width: 480px) {
    .container, .landing-hero, .landing-section, .feature-row, .payoff-inner, .landing-cta { padding-left: 18px; padding-right: 18px; }
    .nav .btn-secondary { padding-left: 14px; padding-right: 14px; }
    .download-buttons, .download-buttons .store-button { width: 100%; }
    .store-button { justify-content: flex-start; }
    .invite-card { padding: 32px 20px; }
    .invite-title { font-size: 32px; }
}
