/* ================================
   safe space — landing redesign
   ================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Playfair+Display:ital,wght@0,400;0,700;0,800;0,900;1,400;1,700;1,800&family=DM+Mono:ital,wght@0,300;0,400;0,500;1,300;1,400&display=swap');

/* ---------- tokens ---------- */
:root {
    --cream: #F7F4EF;
    --cream-dark: #EEE9E0;
    --paper: #FFFFFF;
    --ink: #1A1612;
    --ink-muted: #7A6E65;
    --ink-faint: #b8aea5;
    --violet: #6D28D9;
    --violet-pale: #EDE9FE;
    --violet-mid: #8B5CF6;
    --tangerine: #EA580C;
    --tangerine-pale: #FFF1E6;
    --sage: #059669;
    --sage-pale: #ECFDF5;
    --r: 16px;
    --r-lg: 24px;
    --r-pill: 999px;
    --shadow: 0 2px 12px rgba(26, 22, 18, .07);
    --shadow-lg: 0 8px 32px rgba(26, 22, 18, .10);
    --ease: cubic-bezier(.4, 0, .2, 1);
    --t: .28s;
    --type-body: 1rem;
    --type-body-sm: .95rem;
    --type-label: .75rem;
    --type-title: clamp(2.1rem, 4vw, 3.1rem);
    --type-title-lg: clamp(2.35rem, 4.5vw, 3.45rem);
    --type-card-title: clamp(1.9rem, 3vw, 2.45rem);
}

/* ---------- reset ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    background: var(--cream);
}

body {
    font-family: 'Inter', 'Noto Color Emoji', 'Apple Color Emoji', 'Segoe UI Emoji', sans-serif;
    background: var(--cream);
    color: var(--ink);
    line-height: 1.65;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul,
ol {
    list-style: none;
}

strong {
    font-weight: 700;
}

/* ---------- utilities ---------- */
.serif {
    font-family: 'Playfair Display', Georgia, serif;
}

.mono {
    font-family: 'DM Mono', 'Courier New', monospace;
}

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 28px;
}

/* ---------- navbar ---------- */
.nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: 200;
    padding: 0;
    transition: background var(--t) var(--ease),
        box-shadow var(--t) var(--ease);
}

.nav.stuck {
    background: rgba(247, 244, 239, .9);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 1px 0 rgba(26, 22, 18, .08);
}

.nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 20px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity var(--t) var(--ease),
        transform var(--t) var(--ease);
}

.nav.stuck .nav-row {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: var(--type-body-sm);
    letter-spacing: -.02em;
}

.nav-brand img {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 22px;
    background: var(--ink);
    color: #fff;
    border-radius: var(--r-pill);
    font-size: .88rem;
    font-weight: 600;
    letter-spacing: .01em;
    transition: background var(--t), transform var(--t), box-shadow var(--t);
}

.nav-btn:hover {
    background: var(--violet);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(109, 40, 217, .35);
}

.nav-btn svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

/* ---------- hero ---------- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    background: #fff;
}

.hero-top {
    flex: 1;
    background: var(--cream);
    padding-top: 64px;
    /* for fixed nav */
    padding-bottom: 6vw;
    /* slight increase lowers the tear a tiny bit */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-tear {
    display: block;
    width: 100%;
    height: 0;
    /* Zero vertical space layout */
    position: relative;
    z-index: 2;
    /* Sits above the cream background to cut into it */
    overflow: visible;
    /* NO CROP! Let the massive white textured block flow downwards *behind* the text! */
    margin-top: -6vw;
    /* Pull it up onto the boundary */
}

.hero-tear img {
    position: absolute;
    top: 0;
    left: -10%;
    width: 120%;
    max-width: none;
    /* overrides global 100% image constraint! */
    height: auto;
    display: block;
    pointer-events: none;
    transform: translateX(4%);
    /* Shift the paper slightly to the right */
}

.hero-bottom {
    background: transparent;
    /* CRITICAL: Enables the text to sit OVER the tear paper image's textures! */
    padding: 8vw 0 60px;
    /* Distance text sits below the jagged tear peak */
    position: relative;
    z-index: 4;
    /* Physically layers the text over the tear image */
}

.hero-bottom-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}

.hb-action {
    display: flex;
    justify-content: flex-end;
}

.hb-text p.hero-desc {
    margin: 0;
    text-align: left;
    max-width: 100%;
    font-size: var(--type-body);
}

.signin-box {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

/* hero stickers */
.hero-stickers {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.stk {
    position: absolute;
    filter: drop-shadow(0 12px 24px rgba(26, 22, 18, 0.12));
}

/* Left side */
.s-disco {
    width: 14vw;
    max-width: 180px;
    top: 6%;
    left: 4vw;
    transform: rotate(0deg);
}

.s-star1 {
    width: 5vw;
    max-width: 70px;
    top: 18%;
    left: 20vw;
    transform: rotate(-10deg);
}

.s-speak {
    width: 10vw;
    max-width: 130px;
    top: 52%;
    left: 6vw;
    transform: rotate(15deg);
}

.s-nyan {
    width: 15vw;
    max-width: 200px;
    top: 78%;
    left: 0vw;
    transform: rotate(-5deg);
}

.s-sad {
    width: 7vw;
    max-width: 90px;
    top: 62%;
    left: 18vw;
    transform: rotate(-5deg);
}

/* Right side */
.s-cat {
    width: 15vw;
    max-width: 200px;
    top: 10%;
    right: 4vw;
    transform: rotate(5deg);
}

.s-loved {
    width: 7vw;
    max-width: 100px;
    top: 22%;
    right: 26vw;
    transform: rotate(12deg);
}

.s-star2 {
    width: 6vw;
    max-width: 80px;
    top: 60%;
    right: 18vw;
    transform: rotate(10deg);
}

.s-pizza {
    width: 12vw;
    max-width: 160px;
    top: 46%;
    right: 8vw;
    transform: rotate(-8deg);
}

.s-car {
    width: 18vw;
    max-width: 260px;
    top: 75%;
    right: 2vw;
    transform: rotate(-5deg);
}

@media (max-width: 1100px) {

    .s-nyan,
    .s-car {
        display: none;
    }

    .hero-bottom-inner {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }

    .hb-action {
        justify-content: center;
    }

    .hb-text p.hero-desc {
        text-align: center;
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .hero {
        background: var(--cream);
        min-height: auto;
    }

    .hero-top {
        padding-top: 22px;
        padding-bottom: 44px;
        justify-content: flex-start;
    }

    .hero-bottom {
        padding: 22vw 0 48px;
    }

    /* center-align all hero content on mobile */
    .hero-inner {
        text-align: center;
    }

    .hb-text {
        text-align: center;
        align-items: center;
    }

    /* center sign-in button + hint text on mobile */
    .hb-action {
        display: flex;
        justify-content: center;
    }

    .hb-action .signin-box {
        align-items: center;
        text-align: center;
    }

    .hb-action .signin-note {
        text-align: center;
    }

    .hero-stickers {
        display: block;
    }

    .stk {
        filter: drop-shadow(0 6px 12px rgba(26, 22, 18, 0.10));
    }

    .s-disco {
        width: 22vw;
        top: 7%;
        left: 3vw;
    }

    .s-star1 {
        width: 8vw;
        top: 15%;
        left: 24vw;
    }

    .s-speak {
        width: 14vw;
        top: 55%;
        left: 2vw;
    }

    /* hide sad/frown sticker — overlaps headline on narrow screens */
    .s-sad {
        display: none;
    }

    .s-cat {
        width: 21vw;
        top: 8%;
        right: 2vw;
    }

    .s-loved {
        width: 10vw;
        top: 22%;
        right: 24vw;
    }

    .s-star2 {
        width: 8vw;
        top: 58%;
        right: 16vw;
    }

    .s-pizza {
        width: 16vw;
        top: 45%;
        right: 3vw;
    }

    /* pull tear higher on mobile */
    .hero-tear {
        margin-top: -10vw;
    }

    /* zoom in the tear so jagged peaks are taller on mobile */
    .hero-tear img {
        width: 230%;
        left: -65%;
        transform: translateX(0%);
    }

}

.hero-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    /* needed for ghost headline absolute positioning */
    z-index: 2;
}

.hero-app-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
}

.hero-app-icon {
    width: 90px;
    height: 90px;
    border-radius: 22px;
    box-shadow: var(--shadow-lg);
}

.hero-app-label {
    text-align: center;
}

.hero-app-name {
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -.02em;
}

.hero-app-sub {
    font-size: .75rem;
    color: var(--ink-muted);
    font-family: 'DM Mono', monospace;
}

/* big headline */
.hero-headline {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.35rem, 5vw, 4.15rem);
    font-weight: 900;
    line-height: 1.06;
    letter-spacing: -.03em;
    color: var(--ink);
    margin-bottom: 12px;
}

.hero-headline .line-italic {
    font-style: italic;
    color: var(--violet);
    display: block;
    white-space: nowrap;
}

/* "for" word keeps dark ink color, only "loud feelings." is violet */
#type-part-2-1 {
    color: var(--ink);
}

/* animated underline on tagline */
.u-line {
    position: relative;
    display: inline-block;
}

.u-line::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--tangerine);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
}

.u-line.drawn::after {
    animation: drawLine .9s var(--ease) forwards;
}

@keyframes drawLine {
    to {
        transform: scaleX(1);
    }
}

.typing-cursor {
    display: inline-block;
    width: 3px;
    height: 0.9em;
    background: var(--violet);
    animation: blink 1s step-end infinite;
    margin-left: -4px;
    vertical-align: text-bottom;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.hero-desc {
    font-size: var(--type-body);
    color: var(--ink-muted);
    max-width: 520px;
    margin: 24px auto 44px;
    line-height: 1.7;
}

/* google sign-in */
.signin-box {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    gap: 14px;
}

.btn-google {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    padding: 15px 32px;
    background: var(--paper);
    border: 1.5px solid rgba(26, 22, 18, .12);
    border-radius: var(--r-pill);
    font-size: var(--type-body-sm);
    font-weight: 600;
    color: var(--ink);
    box-shadow: var(--shadow);
    transition: transform var(--t), box-shadow var(--t), border-color var(--t);
    cursor: pointer;
}

.btn-google:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(109, 40, 217, .25);
}

.btn-google img {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.signin-note {
    font-size: .84rem;
    font-family: 'DM Mono', monospace;
    color: var(--ink-muted);
    letter-spacing: -.01em;
}

/* scroll indicator */
.scroll-cue {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-top: 64px;
    color: var(--ink-faint);
    font-size: .72rem;
    font-family: 'DM Mono', monospace;
    letter-spacing: .04em;
    text-transform: uppercase;
    animation: bob 2.2s ease-in-out infinite;
}

.scroll-cue svg {
    width: 18px;
    height: 18px;
}

@keyframes bob {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(5px);
    }
}

/* ---------- divider ---------- */
.divider-strip {
    background: var(--cream-dark);
    border-top: 1px solid rgba(26, 22, 18, .06);
    border-bottom: 1px solid rgba(26, 22, 18, .06);
    overflow: hidden;
    padding: 14px 0;
    white-space: nowrap;
}

.marquee-track {
    display: flex;
    gap: 0;
    animation: marquee 22s linear infinite;
    width: max-content;
}

.marquee-track span {
    font-size: .72rem;
    font-family: 'DM Mono', monospace;
    color: var(--ink-muted);
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 0 28px;
    border-right: 1px solid rgba(26, 22, 18, .12);
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ---------- sections ---------- */
.section {
    padding: 96px 0;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: var(--type-label);
    font-family: 'DM Mono', monospace;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--violet);
    margin-bottom: 16px;
}

.section-eyebrow::before {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background: var(--violet);
    border-radius: 1px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: var(--type-title);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -.025em;
}

.section-title em {
    font-style: italic;
    color: var(--violet);
}

.section-body {
    font-size: var(--type-body);
    color: var(--ink-muted);
    line-height: 1.75;
    max-width: 480px;
    margin-top: 16px;
}

/* ---------- journal modes section ---------- */
.journal-section {
    background: var(--paper);
}

.modes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 52px;
}

.mode-card {
    min-height: 270px;
    border-radius: 18px;
    padding: 34px 34px 30px;
    position: relative;
    overflow: hidden;
    transition: transform var(--t), box-shadow var(--t);
    box-shadow: 0 10px 24px rgba(26, 22, 18, .06);
}

.mode-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(26, 22, 18, .1);
}

.mode-card.type-text {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .42), rgba(255, 255, 255, 0) 38%),
        linear-gradient(135deg, #FFF39C 0%, #FFE970 100%);
    --mode-icon-size-static: 100%;
    --mode-icon-size-animated: 118%;
}

.mode-card.type-voice {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .32), rgba(255, 255, 255, 0) 38%),
        linear-gradient(135deg, #ADD9FB 0%, #97C7F2 100%);
    color: var(--ink);
    --mode-icon-size-static: 100%;
    --mode-icon-size-animated: 122%;
}

.mode-badge {
    display: none;
}

.mode-title {
    font-family: 'Playfair Display', serif;
    font-size: var(--type-card-title);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 28px;
    letter-spacing: -.02em;
    max-width: calc(100% - 118px);
}

.mode-card.type-voice .mode-title,
.mode-card.type-voice .mode-desc {
    color: var(--ink);
}

.mode-desc {
    max-width: 330px;
    font-size: 0;
    color: var(--ink);
    line-height: 0;
    margin-bottom: 28px;
}

.mode-card.type-text .mode-desc::before,
.mode-card.type-voice .mode-desc::before {
    display: block;
    font-size: var(--type-body);
    line-height: 1.25;
}

.mode-card.type-text .mode-desc::before {
    content: "Type your thoughts and let Safe Space detect the emotion behind every entry. Clean and quiet.";
}

.mode-card.type-voice .mode-desc::before {
    content: "Record your feelings out. On-device AI analyzes your voice, and reads the emotion in it.";
}

.mode-tag {
    display: block;
    max-width: 310px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    font-size: 0;
    line-height: 0;
    font-family: 'Inter', sans-serif;
}

.mode-card::after {
    content: '';
    position: absolute;
    top: 26px;
    right: 30px;
    width: 86px;
    height: 86px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: var(--mode-icon-size-static);
    pointer-events: none;
}

.mode-card.type-text::after {
    background-image: url("../resources/paperandpencil-static.png");
}

.mode-card.type-voice::after {
    background-image: url("../resources/speaknow-static.png");
}

.mode-card.type-text:hover::after {
    background-image: url("../resources/paperandpencil.webp");
    background-size: var(--mode-icon-size-animated);
}

.mode-card.type-voice:hover::after {
    background-image: url("../resources/speaknow.webp");
    background-size: var(--mode-icon-size-animated);
}

.mode-card:hover::after {
    transform: none;
}

.mode-card.type-text .mode-tag,
.mode-card.type-voice .mode-tag {
    color: var(--ink);
}

.mode-card.type-text .mode-tag::before,
.mode-card.type-voice .mode-tag::before {
    display: block;
    font-size: var(--type-body);
    line-height: 1.25;
}

.mode-card.type-text .mode-tag::before {
    content: "Suitable when in shared spaces (like boarding houses).";
}

.mode-card.type-voice .mode-tag::before {
    content: "Suitable when alone and need to express out loud.";
}

/* ---------- mockup showcase ---------- */
.mockup-showcase-section {
    background: #1592ec;
    color: #fff;
    overflow: hidden;
}

.mockup-showcase-intro {
    text-align: center;
    max-width: 1240px;
    margin: 0 auto 56px;
}

.mockup-title {
    color: #fff;
    font-size: var(--type-title);
    line-height: 1.18;
    letter-spacing: -.025em;
    max-width: 880px;
    margin: 0 auto;
}

.mockup-showcase-intro .mockup-title {
    display: none;
}

.mockup-showcase-intro .mockup-title.mockup-title-clean {
    display: block;
}

.sosumi-ref {
    font-size: .5em;
    vertical-align: super;
    margin-left: 4px;
    color: inherit;
    text-decoration: none;
    font-weight: 700;
    line-height: 0;
}

.sosumi-ref:hover {
    text-decoration: underline;
}

.showcase-shell {
    max-width: 1320px;
    margin: 0 auto;
}

.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    font-variation-settings:
        'FILL' 0,
        'wght' 500,
        'GRAD' 0,
        'opsz' 24;
}

.font-mono-custom {
    font-family:
        "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
        "Liberation Mono", "Courier New", monospace;
}

.button-transition {
    transition: all .3s ease-in-out;
}

.button-fade-out {
    opacity: 0;
    transform: scale(.95);
    pointer-events: none;
    position: absolute;
}

.button-fade-in {
    opacity: 1;
    transform: scale(1);
}

@keyframes pulse-height {

    0%,
    100% {
        height: 12px;
        opacity: .6;
    }

    50% {
        height: 20px;
        opacity: 1;
    }
}

.loader-bar {
    width: 4px;
    background-color: #fff;
    border-radius: 2px;
    animation: pulse-height 1s ease-in-out infinite;
}

.loader-bar:nth-child(2) {
    animation-delay: .2s;
}

@keyframes mesh-shift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.mesh-gradient-card {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
}

.mesh-gradient-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-size: 200% 200%;
    animation: mesh-shift 8s ease-in-out infinite;
    opacity: .4;
    z-index: 0;
}

.emotion-happy {
    background: linear-gradient(135deg,
            #0d9488 0%,
            #14b8a6 30%,
            #2dd4bf 60%,
            #5eead4 100%);
}

.emotion-happy::before {
    background:
        radial-gradient(circle at 20% 80%,
            rgba(255, 255, 255, .3) 0%,
            transparent 50%),
        radial-gradient(circle at 80% 20%,
            rgba(255, 255, 255, .2) 0%,
            transparent 40%);
}

.emotion-fear {
    background: linear-gradient(135deg,
            #6b21a8 0%,
            #9333ea 30%,
            #a855f7 60%,
            #c084fc 100%);
}

.emotion-fear::before {
    background:
        radial-gradient(circle at 20% 80%,
            rgba(255, 255, 255, .3) 0%,
            transparent 50%),
        radial-gradient(circle at 80% 20%,
            rgba(255, 255, 255, .2) 0%,
            transparent 40%);
}

.confidence-gradient {
    background: linear-gradient(135deg,
            #0891b2 0%,
            #06b6d4 30%,
            #22d3ee 60%,
            #67e8f9 100%);
}

.confidence-gradient::before {
    background:
        radial-gradient(circle at 20% 80%,
            rgba(255, 255, 255, .3) 0%,
            transparent 50%),
        radial-gradient(circle at 80% 20%,
            rgba(255, 255, 255, .2) 0%,
            transparent 40%);
}

.result-card-content {
    position: relative;
    z-index: 1;
}

.landing-emoji {
    font-family: 'Noto Color Emoji', 'Apple Color Emoji', 'Segoe UI Emoji', sans-serif;
    font-style: normal;
    font-weight: 400;
    line-height: 1;
}

.landing-emoji-soft {
    font-size: 2rem;
    opacity: .9;
}

@property --gradient-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

@keyframes ai-gradient-rotate {
    0% {
        --gradient-angle: 0deg;
    }

    100% {
        --gradient-angle: 360deg;
    }
}

.text-entry-card {
    position: relative;
    z-index: 1;
    transition: background .6s ease;
}

.text-entry-card.ai-glow-active {
    background: linear-gradient(var(--gradient-angle),
            #7c5bf5,
            #4bb8f0,
            #f05caa,
            #f7a04b,
            #7c5bf5) !important;
    animation: ai-gradient-rotate 3s linear infinite;
}

.text-entry-card.ai-glow-active::before {
    content: '';
    position: absolute;
    inset: 3px;
    background: #fff;
    border-radius: calc(2rem - 3px);
    z-index: 0;
}

.text-entry-card.ai-glow-active::after {
    content: '';
    position: absolute;
    inset: -8px;
    background: linear-gradient(var(--gradient-angle),
            #7c5bf5,
            #4bb8f0,
            #f05caa,
            #f7a04b,
            #7c5bf5);
    border-radius: 2.4rem;
    z-index: -1;
    filter: blur(20px);
    opacity: .6;
    animation: ai-gradient-rotate 3s linear infinite;
}

.text-entry-card>* {
    position: relative;
    z-index: 1;
}

.landing-showcase-card {
    width: 100%;
    min-height: 0;
    padding: 40px 42px 26px;
    background: #fff;
    border-radius: 2rem;
    box-shadow: 0 18px 44px rgba(10, 21, 44, .16);
    overflow: hidden;
}

.step-hidden {
    display: none;
}

.landing-step-grid,
.landing-result-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px;
}

.landing-step-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
    padding-right: 20px;
}

.landing-step-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 22px;
    object-fit: contain;
}

.landing-step-copy h3 {
    color: #111827;
    font-size: var(--type-card-title);
    line-height: 1.08;
    letter-spacing: -.04em;
    margin-bottom: 14px;
}

.landing-step-copy p {
    color: #6b7280;
    font-size: var(--type-body);
    line-height: 1.72;
}

.landing-step-editor {
    padding-top: 10px;
}

.landing-textarea-wrap {
    position: relative;
}

.landing-textarea-wrap::before,
.landing-textarea-wrap::after {
    content: '';
    position: absolute;
    right: 10px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    z-index: 2;
}

.landing-textarea-wrap::before {
    top: 8px;
    border-bottom: 10px solid #9ca3af;
}

.landing-textarea-wrap::after {
    bottom: 8px;
    border-top: 10px solid #9ca3af;
}

.landing-textarea {
    width: 100%;
    height: 260px;
    padding: 16px 16px 20px;
    border: none;
    resize: none;
    outline: none;
    background: #e5e7eb;
    border-radius: 1rem;
    color: #1f2937;
    font-size: var(--type-body-sm);
    line-height: 1.58;
}

.landing-char-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
}

.landing-char-row span {
    color: #4b5563;
    font-weight: 700;
    font-size: var(--type-body-sm);
}

.landing-char-track {
    flex: 1;
    height: 12px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}

.landing-char-track div {
    width: 73%;
    height: 100%;
    background: #9ca3af;
    border-radius: inherit;
}

.landing-step-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 24px;
}

.landing-link-btn {
    border: none;
    background: transparent;
    color: #dc2626;
    font-weight: 700;
    font-size: 1rem;
    padding: 0;
    cursor: default;
}

.landing-loader-wrap {
    position: relative;
    display: flex;
    justify-content: flex-end;
    width: min(100%, 420px);
    min-height: 64px;
}

.landing-submit-btn,
.landing-loader-pill {
    width: 100%;
    border-radius: 1rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .14);
}

.landing-submit-btn {
    border: none;
    background: #2563eb;
    color: #fff;
    font-weight: 700;
    font-size: var(--type-body-sm);
    padding: 18px 28px;
}

.landing-loader-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #000;
    color: #fff;
    padding: 18px 24px;
}

.landing-loader-bars {
    display: flex;
    align-items: center;
    gap: 5px;
    height: 24px;
}

.landing-result-grid {
    gap: 22px;
    align-items: stretch;
}

.landing-result-stats {
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: 100%;
}

.landing-stat-card {
    min-height: 170px;
    flex: 1;
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #fff;
}

.landing-stat-icon-row {
    display: flex;
    justify-content: flex-end;
}

.landing-stat-number {
    color: #fff;
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 6px;
}

.landing-stat-label {
    color: rgba(255, 255, 255, .82);
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.landing-result-panel {
    background: #111827;
    border-radius: 1rem;
    padding: 22px 24px;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.landing-result-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 16px;
}

.landing-result-emoji {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
}

.landing-result-emoji img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 18px rgba(255, 255, 255, .12));
}

.landing-result-head h3 {
    color: #fff;
    font-size: var(--type-card-title);
    line-height: 1.1;
    letter-spacing: -.03em;
}

.landing-result-panel p {
    color: #9ca3af;
    line-height: 1.72;
    font-size: var(--type-body);
}

.landing-result-panel p+p {
    margin-top: 14px;
}

.landing-result-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 18px;
}

.landing-result-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #6b7280;
    font-size: .84rem;
    line-height: 1.55;
}

.landing-warning {
    font-size: 1.35rem;
    line-height: 1;
}

.landing-result-actions {
    display: flex;
    gap: 16px;
}

.landing-replay-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 28px auto 0;
    width: fit-content;
    border: none;
    background: transparent;
    color: #fff;
    font-size: var(--type-body-sm);
    font-weight: 600;
    cursor: pointer;
}

.landing-replay-btn .material-symbols-outlined {
    font-size: 1.2rem;
}

.landing-replay-btn:hover {
    color: rgba(255, 255, 255, .82);
}

.landing-secondary-btn,
.landing-primary-btn {
    border: none;
    border-radius: 1rem;
    font-weight: 700;
    font-size: var(--type-body-sm);
    padding: 18px 28px;
    min-width: 180px;
}

.landing-secondary-btn {
    background: #e5e7eb;
    color: #111827;
}

.landing-primary-btn {
    background: #2563eb;
    color: #fff;
    box-shadow: 0 12px 24px rgba(37, 99, 235, .22);
}

/* ---------- streak + state of mind ---------- */
.duo-showcase-section {
    border-top: 1px solid rgba(26, 22, 18, .06);
    border-bottom: 1px solid rgba(26, 22, 18, .06);
}

.duo-showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.duo-panel {
    min-height: 0;
    padding: 72px 64px 56px;
    position: relative;
}

.duo-panel+.duo-panel {
    border-left: 1px solid rgba(26, 22, 18, .08);
}

.duo-panel-streak {
    background: #f1ecb6;
}

.duo-panel-mind {
    background: #eee98f;
}

.duo-copy {
    max-width: 820px;
}

.duo-copy h2 {
    font-family: 'Playfair Display', serif;
    font-size: var(--type-title);
    line-height: 1.18;
    letter-spacing: -.025em;
    margin-bottom: 20px;
    color: #111827;
}

.duo-copy p {
    max-width: 620px;
    color: #111827;
    font-size: var(--type-body);
    line-height: 1.5;
    letter-spacing: -.01em;
}

.streak-preview-card {
    margin-top: 64px;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(26, 22, 18, .12);
    position: relative;
    aspect-ratio: 1976 / 864;
}

.streak-preview-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.streak-preview-overlay {
    position: absolute;
    left: 34px;
    bottom: 28px;
    color: rgba(255, 255, 255, .98);
    text-shadow: 0 6px 18px rgba(15, 23, 42, .35);
}

.streak-preview-number {
    font-size: clamp(3.3rem, 5.5vw, 4.8rem);
    font-weight: 800;
    line-height: .95;
    margin-bottom: 8px;
}

.streak-preview-title {
    font-size: clamp(1.15rem, 1.8vw, 1.9rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 10px;
}

.streak-preview-sub {
    font-size: clamp(.95rem, 1.2vw, 1.45rem);
    font-weight: 500;
    opacity: .95;
}

.mind-preview-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: clamp(250px, 20vw, 340px);
    margin-top: 60px;
}

.mind-preview-card {
    position: relative;
    width: clamp(230px, 18vw, 300px);
    aspect-ratio: 1 / 1;
    height: auto;
    min-height: 0;
    border-radius: 24px;
    padding: 24px 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
    box-shadow: 0 20px 44px rgba(128, 0, 128, .22);
    background:
        radial-gradient(ellipse at 20% 20%,
            rgba(255, 215, 0, 0.9) 0%,
            transparent 55%),
        radial-gradient(ellipse at 80% 15%,
            rgba(128, 0, 128, 0.8) 0%,
            transparent 50%),
        radial-gradient(ellipse at 65% 75%,
            rgba(255, 165, 0, 0.7) 0%,
            transparent 50%),
        radial-gradient(ellipse at 15% 70%,
            rgba(75, 0, 130, 0.6) 0%,
            transparent 55%),
        radial-gradient(ellipse at 45% 40%,
            rgba(200, 100, 180, 0.5) 0%,
            transparent 45%),
        radial-gradient(ellipse at 75% 50%,
            rgba(255, 193, 7, 0.5) 0%,
            transparent 40%),
        linear-gradient(135deg,
            rgba(255, 215, 0, 0.95) 0%,
            rgba(200, 100, 180, 0.8) 50%,
            rgba(128, 0, 128, 0.95) 100%);
}

.mind-info {
    position: absolute;
    top: 12px;
    right: 12px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, .9);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mind-info .material-symbols-outlined {
    font-size: 1.8rem;
}

.mind-preview-emoji {
    font-size: 3.3rem;
    line-height: 1;
    margin-bottom: 14px;
}

.mind-preview-card h3 {
    font-size: clamp(1.25rem, 1.55vw, 1.55rem);
    line-height: 1.24;
    letter-spacing: -.035em;
    margin-bottom: 10px;
}

.mind-preview-card p {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
}

.mind-splatter {
    position: absolute;
    line-height: 1;
    user-select: none;
    pointer-events: none;
    filter: drop-shadow(0 8px 18px rgba(26, 22, 18, .14));
}

.splatter-1 {
    left: 14%;
    top: 10%;
    font-size: 3rem;
}

.splatter-2 {
    left: 7%;
    bottom: 8%;
    font-size: 5.2rem;
}

.splatter-3 {
    right: 13%;
    top: 26%;
    font-size: 4.1rem;
}

.splatter-4 {
    right: 9%;
    bottom: 12%;
    font-size: 3.1rem;
}

.splatter-5 {
    right: 24%;
    bottom: 2%;
    font-size: 3rem;
}

/* ---------- emotion strip ---------- */
.emotion-strip {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 28px;
    align-items: center;
}

.em-chip {
    padding: 6px 16px;
    border-radius: var(--r-pill);
    font-size: .78rem;
    font-family: 'DM Mono', monospace;
    font-weight: 400;
    border: 1px solid transparent;
}

.em-chip.joy {
    background: #DCFCE7;
    color: #166534;
}

.em-chip.sad {
    background: #DBEAFE;
    color: #1e40af;
}

.em-chip.anger {
    background: #FEE2E2;
    color: #991b1b;
}

.em-chip.fear {
    background: #F3E8FF;
    color: #6b21a8;
}

.em-chip.neutral {
    background: #F3F4F6;
    color: #374151;
}

/* ---------- features strip ---------- */
.features-section {
    background: var(--cream);
    padding: 96px 0;
}

.features-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: end;
    margin-bottom: 60px;
}

.features-intro .section-body {
    margin-top: 12px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.feat-card {
    background: var(--paper);
    border-radius: 20px;
    padding: 28px;
    border: 1px solid rgba(26, 22, 18, .07);
    box-shadow: var(--shadow);
    transition: transform var(--t), box-shadow var(--t);
}

.feat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feat-card.highlighted {
    background: var(--tangerine);
    color: #fff;
    border-color: transparent;
}

.feat-card.highlighted .feat-label {
    color: rgba(255, 255, 255, .7);
}

.feat-card.highlighted .feat-desc {
    color: rgba(255, 255, 255, .82);
}

.feat-icon {
    font-size: 1.7rem;
    margin-bottom: 16px;
    display: block;
}

.feat-label {
    font-size: var(--type-label);
    font-family: 'DM Mono', monospace;
    color: var(--ink-muted);
    letter-spacing: .07em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.feat-name {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 8px;
    letter-spacing: -.01em;
    line-height: 1.3;
}

.feat-desc {
    font-size: .92rem;
    color: var(--ink-muted);
    line-height: 1.6;
}

/* min-height to make last row aligned */
.feat-card:nth-child(4),
.feat-card:nth-child(5) {
    grid-column: span 1;
}

/* ---------- SOM / streak mockup ---------- */
.som-card {
    margin-top: 16px;
    padding: 14px 16px;
    background: linear-gradient(130deg, #ede9fe 0%, #ddd6fe 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.som-emo {
    font-size: 1.6rem;
}

.som-mood {
    font-weight: 700;
    font-size: .98rem;
    color: #4c1d95;
}

.som-trend {
    font-size: .72rem;
    font-family: 'DM Mono', monospace;
    color: #6d28d9;
}

.streak-row {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    margin-top: 16px;
}

.streak-n {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--tangerine);
    line-height: 1;
}

.streak-lbl {
    font-size: .8rem;
    color: var(--ink-muted);
    padding-bottom: 5px;
    font-family: 'DM Mono', monospace;
}

/* ---------- privacy section ---------- */
.privacy-section {
    background: var(--ink);
    color: #fff;
    padding: 96px 0;
    position: relative;
    overflow: hidden;
}

.privacy-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 60% at 90% 50%, rgba(109, 40, 217, .25) 0%, transparent 70%),
        radial-gradient(ellipse 35% 40% at 10% 80%, rgba(234, 88, 12, .12) 0%, transparent 60%);
    pointer-events: none;
}

.privacy-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}

.privacy-inner .section-eyebrow {
    color: rgba(255, 255, 255, .5);
}

.privacy-inner .section-eyebrow::before {
    background: rgba(255, 255, 255, .4);
}

.privacy-inner .section-title {
    color: #fff;
}

.privacy-inner .section-body {
    color: rgba(255, 255, 255, .65);
}

.privacy-legacy-copy {
    display: none;
}

.lock-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.lock-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 20px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--r);
    backdrop-filter: blur(8px);
    transition: background var(--t);
}

.lock-row:hover {
    background: rgba(255, 255, 255, .1);
}

.lock-ico {
    font-size: 1.4rem;
    flex-shrink: 0;
    width: auto;
    height: auto;
    background: transparent;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Noto Color Emoji', 'Apple Color Emoji', 'Segoe UI Emoji', sans-serif;
    line-height: 1;
}

.lock-title {
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
    margin-bottom: 3px;
}

.lock-desc {
    font-size: .92rem;
    color: rgba(255, 255, 255, .55);
    line-height: 1.5;
}

.lock-desc-legacy {
    font-size: 0;
    line-height: 0;
    color: transparent;
}

.lock-desc-legacy::before {
    display: block;
    font-size: .92rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, .55);
}

.lock-row:nth-child(1) .lock-desc-legacy::before {
    content: "Your journal text, emotion results, and voice transcripts are locked and encrypted in your local database.";
}

.lock-row:nth-child(2) .lock-desc-legacy::before {
    content: "Emotion analysis runs on your device. Your private journal is not uploaded to online servers.";
}

.lock-row:nth-child(3) .lock-desc-legacy::before {
    content: "When you export or restore your journal, you need your personal PIN. Your backup stays in your control.";
}

.privacy-modal-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 999;
    background: rgba(9, 11, 19, .38);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .24s ease, backdrop-filter .24s ease, -webkit-backdrop-filter .24s ease, visibility 0s linear .24s;
}

.privacy-modal-overlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: opacity .24s ease, backdrop-filter .24s ease, -webkit-backdrop-filter .24s ease;
}

.privacy-modal-card {
    width: min(860px, 100%);
    max-height: min(82vh, 840px);
    background: #fff;
    color: #111827;
    border-radius: 20px;
    padding: 26px 26px 22px;
    position: relative;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .28);
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px) scale(.97);
    transition: opacity .28s ease, transform .28s cubic-bezier(.2, .75, .2, 1);
}

.privacy-modal-overlay.open .privacy-modal-card {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.privacy-modal-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 16px;
}

.privacy-modal-content {
    overflow: auto;
    padding-right: 4px;
}

.privacy-modal-content h4 {
    font-size: 1rem;
    margin: 14px 0 8px;
    line-height: 1.3;
}

.privacy-modal-content p,
.privacy-modal-content li {
    font-size: .94rem;
    color: #374151;
    line-height: 1.6;
}

.privacy-modal-content ul {
    margin: 0 0 8px 20px;
    list-style: disc;
}

.privacy-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    border: none;
    background: rgba(17, 24, 39, .06);
    color: #111827;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    font-size: 1.45rem;
    line-height: 1;
    cursor: pointer;
}

.privacy-modal-close:hover {
    background: rgba(17, 24, 39, .12);
}

body.privacy-modal-open>*:not(.privacy-modal-overlay) {
    filter: blur(6px);
    transition: filter .2s ease;
}

@media (prefers-reduced-motion: reduce) {
    .privacy-modal-overlay,
    .privacy-modal-card {
        transition: none;
    }
}

.enc-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(5, 150, 105, .22);
    border: 1px solid rgba(5, 150, 105, .4);
    border-radius: var(--r-pill);
    font-size: .72rem;
    font-family: 'DM Mono', monospace;
    color: #6ee7b7;
    margin-top: 10px;
}

/* ---------- opt-in section ---------- */
.optin-section {
    background: var(--cream-dark);
    padding: 88px 0;
}

.optin-inner {
    text-align: center;
    max-width: 620px;
    margin: 0 auto;
}

.optin-inner .section-title {
    margin: 0 auto;
}

.optin-inner .section-body {
    margin: 16px auto 36px;
}

.optin-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.optin-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: var(--paper);
    border: 1px solid rgba(26, 22, 18, .1);
    border-radius: var(--r-pill);
    font-size: .9rem;
    color: var(--ink);
    box-shadow: var(--shadow);
    font-weight: 500;
}

/* ---------- download section ---------- */
.download-section {
    background: transparent;
    padding: 0;
    border-top: 1px solid rgba(26, 22, 18, .06);
    border-bottom: 1px solid rgba(26, 22, 18, .06);
}

.download-section .container {
    max-width: none;
    padding: 0;
}

.download-inner {
    max-width: none;
    margin: 0 auto;
}

.download-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch;
}

.download-col {
    min-width: 0;
    padding: 72px 64px 80px;
}

.download-compat {
    text-align: left;
    background: #dff3ef;
}

.download-compat .section-body {
    max-width: 520px;
}

.device-grid {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.device-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--cream);
    border: 1px solid rgba(26, 22, 18, .1);
    border-radius: 12px;
    font-size: .92rem;
    color: var(--ink);
    font-weight: 500;
}

.device-grid .device-chip:nth-child(5) {
    grid-column: 1 / -1;
}

.device-grid .device-chip:nth-child(6) {
    display: none;
}

.download-try {
    text-align: center;
    background: #d7e9ff;
    border-left: 1px solid rgba(26, 22, 18, .08);
}

.email-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 40px;
}

.email-field {
    display: flex;
    width: 100%;
    max-width: 520px;
    background: var(--cream);
    border: 1.5px solid rgba(26, 22, 18, .12);
    border-radius: var(--r-pill);
    overflow: hidden;
    transition: border-color var(--t), box-shadow var(--t);
    box-shadow: var(--shadow);
}

.email-field:focus-within {
    border-color: var(--violet);
    box-shadow: 0 0 0 3px rgba(109, 40, 217, .12);
}

.email-input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-size: var(--type-body);
    color: var(--ink);
    padding: 15px 8px 15px 24px;
}

.email-input::placeholder {
    color: var(--ink-faint);
}

.email-suffix {
    padding: 15px 22px 15px 0;
    font-size: .82rem;
    font-family: 'DM Mono', monospace;
    color: var(--violet);
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
    border-left: 1px solid rgba(26, 22, 18, .10);
    padding-left: 14px;
}

.email-domain-select {
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    min-width: 210px;
    text-align: left;
    padding-right: 36px;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--violet) 50%),
        linear-gradient(135deg, var(--violet) 50%, transparent 50%);
    background-position:
        calc(100% - 18px) calc(50% - 2px),
        calc(100% - 12px) calc(50% - 2px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.btn-send {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 15px 34px;
    background: var(--violet);
    color: #fff;
    border: none;
    border-radius: var(--r-pill);
    font-size: var(--type-body-sm);
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: background var(--t), transform var(--t), box-shadow var(--t);
}

.btn-send:hover {
    background: #5B21B6;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(109, 40, 217, .35);
}

.btn-send svg {
    width: 15px;
    height: 15px;
}

.email-fine {
    font-size: .75rem;
    font-family: 'DM Mono', monospace;
    color: var(--ink-faint);
}

/* ---------- sosumi footnotes ---------- */
.sosumi-section {
    background: #fff;
    border-top: 1px solid rgba(26, 22, 18, .08);
    border-bottom: 1px solid rgba(26, 22, 18, .08);
    padding: 24px 0 28px;
}

.sosumi-inner {
    max-width: 980px;
    margin: 0 auto;
}

.sosumi-title {
    font-size: .92rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 10px;
}

.sosumi-list {
    margin: 0;
    padding-left: 20px;
    list-style: decimal;
    display: grid;
    gap: 10px;
}

.sosumi-list li {
    font-size: .82rem;
    line-height: 1.55;
    color: #4b5563;
    scroll-margin-top: 90px;
}

/* ---------- footer ---------- */
footer {
    background: var(--ink);
    padding: 28px 0;
    text-align: center;
    font-size: .8rem;
    color: rgba(255, 255, 255, .35);
}

footer strong {
    color: rgba(255, 255, 255, .65);
    font-weight: 600;
}

footer a {
    color: rgba(255, 255, 255, .35);
    transition: color var(--t);
}

footer a:hover {
    color: rgba(255, 255, 255, .8);
}

/* ---------- reveal animations ---------- */
.rv {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .6s var(--ease), transform .6s var(--ease);
}

.rv.in {
    opacity: 1;
    transform: translateY(0);
}

.rv-2 {
    transition-delay: .1s;
}

.rv-3 {
    transition-delay: .18s;
}

.rv-4 {
    transition-delay: .26s;
}

.rv-5 {
    transition-delay: .34s;
}

/* ---------- responsive ---------- */
@media (max-width: 820px) {
    .modes-grid {
        grid-template-columns: 1fr;
    }

    .mode-card {
        min-height: 250px;
    }

    .features-intro {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .features-grid {
        grid-template-columns: 1fr 1fr;
    }

    .privacy-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .download-split {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .download-compat {
        text-align: center;
    }

    .download-col {
        padding: 56px 40px;
    }

    .download-compat .section-body {
        margin-left: auto;
        margin-right: auto;
    }

    .device-grid {
        max-width: 640px;
        margin: 24px auto 0;
    }

    .landing-showcase-card {
        min-height: auto;
        padding: 34px 30px 28px;
    }

    .landing-step-grid,
    .landing-result-grid {
        grid-template-columns: 1fr;
    }

    .landing-step-copy {
        min-height: auto;
        padding-right: 0;
    }

    .landing-loader-wrap {
        width: 100%;
    }

    .landing-result-panel {
        min-height: auto;
    }

    .landing-result-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .landing-result-actions {
        justify-content: flex-start;
    }

    .duo-showcase-grid {
        grid-template-columns: 1fr;
    }

    .duo-panel {
        min-height: auto;
        padding: 56px 40px;
    }

    .duo-panel+.duo-panel {
        border-left: none;
        border-top: 1px solid rgba(26, 22, 18, .08);
    }

    .mind-preview-wrap {
        min-height: 460px;
    }
}

@media (max-width: 560px) {

    section,
    .section,
    .features-section,
    .privacy-section,
    .download-section,
    .optin-section {
        padding: 72px 0;
    }

    .hero {
        padding: 0;
        min-height: auto;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .mode-card {
        min-height: auto;
        padding: 26px 22px 24px;
    }

    .mode-card::after {
        top: 18px;
        right: 20px;
        width: 68px;
        height: 68px;
    }

    .mode-title {
        font-size: 1.85rem;
        max-width: calc(100% - 84px);
        margin-bottom: 18px;
    }

    .mode-desc,
    .mode-tag {
        max-width: 100%;
        font-size: 0;
        line-height: 0;
    }

    .mode-card.type-text .mode-desc::before,
    .mode-card.type-voice .mode-desc::before,
    .mode-card.type-text .mode-tag::before,
    .mode-card.type-voice .mode-tag::before {
        font-size: .98rem;
        line-height: 1.35;
        max-width: calc(100% - 90px);
    }

    .mockup-showcase-intro {
        margin-bottom: 28px;
    }

    .landing-showcase-card {
        border-radius: 24px;
        padding: 24px 20px;
    }

    .mockup-title {
        font-size: 2.05rem;
        line-height: 1.18;
    }

    .landing-step-copy h3 {
        font-size: 1.8rem;
    }

    .landing-step-copy p,
    .landing-result-panel p,
    .landing-result-note {
        font-size: .95rem;
    }

    .landing-textarea {
        height: 250px;
        padding: 18px;
        font-size: .9rem;
    }

    .landing-char-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .landing-step-actions {
        align-items: stretch;
        flex-direction: column;
        margin-top: 32px;
    }

    .landing-result-panel {
        padding: 24px 22px;
        border-radius: 20px;
    }

    .landing-stat-card {
        min-height: 150px;
    }

    .landing-result-head h3 {
        font-size: 1.8rem;
    }

    .landing-result-actions {
        width: 100%;
        flex-direction: column;
    }

    .landing-secondary-btn,
    .landing-primary-btn {
        width: 100%;
        min-width: 0;
        padding: 16px 18px;
        border-radius: 16px;
    }

    .duo-panel {
        padding: 42px 22px;
    }

    .download-col {
        padding: 42px 22px;
    }

    .download-try {
        border-left: none;
        border-top: 1px solid rgba(26, 22, 18, .08);
    }

    .duo-copy h2 {
        font-size: 2.05rem;
        margin-bottom: 20px;
    }

    .duo-copy p {
        font-size: 1rem;
        line-height: 1.5;
    }

    .streak-preview-card {
        margin-top: 36px;
        border-radius: 20px;
    }

    .streak-preview-overlay {
        left: 18px;
        bottom: 14px;
    }

    .streak-preview-number {
        font-size: 2.7rem;
        margin-bottom: 6px;
    }

    .streak-preview-title {
        font-size: 1.2rem;
        margin-bottom: 6px;
    }

    .streak-preview-sub {
        font-size: .95rem;
    }

    .mind-preview-wrap {
        min-height: 300px;
        margin-top: 34px;
    }

    .mind-preview-card {
        width: min(230px, 100%);
        height: auto;
        aspect-ratio: 1 / 1;
        min-height: 0;
        border-radius: 22px;
        padding: 20px 16px 16px;
    }

    .mind-preview-emoji {
        font-size: 3.5rem;
        margin-bottom: 16px;
    }

    .mind-preview-card h3 {
        font-size: 1.5rem;
    }

    .mind-preview-card p {
        font-size: .88rem;
    }

    .splatter-1 {
        left: 4%;
        top: 5%;
        font-size: 2.8rem;
    }

    .splatter-2 {
        left: 0;
        bottom: 10%;
        font-size: 3.4rem;
    }

    .splatter-3 {
        right: 2%;
        top: 12%;
        font-size: 3rem;
    }

    .splatter-4 {
        right: -2%;
        bottom: 18%;
        font-size: 2.3rem;
    }

    .splatter-5 {
        right: 12%;
        bottom: 0;
        font-size: 2.5rem;
    }

    .email-field {
        border-radius: 16px;
        flex-direction: column;
    }

    .device-grid {
        grid-template-columns: 1fr;
    }

    .email-input {
        padding: 14px 20px 4px;
    }

    .email-suffix {
        border-left: none;
        border-top: 1px solid rgba(26, 22, 18, .1);
        padding: 6px 20px 14px;
    }

    .email-domain-select {
        width: 100%;
        min-width: 0;
        background-position:
            calc(100% - 20px) calc(50% - 2px),
            calc(100% - 14px) calc(50% - 2px);
    }
}
