/* ==================== @FONT-FACE: Inter (self-hosted) ==================== */

/* Inter 400 - Latin Extended */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../../innerpulse/fonts/inter-latin-ext-400-normal.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Inter 400 - Latin */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../../innerpulse/fonts/inter-latin-400-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Inter 500 - Latin Extended */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../../innerpulse/fonts/inter-latin-ext-500-normal.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Inter 500 - Latin */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../../innerpulse/fonts/inter-latin-500-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Inter 600 - Latin Extended */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../../innerpulse/fonts/inter-latin-ext-600-normal.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Inter 600 - Latin */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../../innerpulse/fonts/inter-latin-600-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Inter 700 - Latin Extended */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../../innerpulse/fonts/inter-latin-ext-700-normal.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Inter 700 - Latin */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../../innerpulse/fonts/inter-latin-700-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==================== CSS VARIABLES ==================== */
:root {
    --accent: #6366f1;
    --accent-light: #818cf8;
    --accent-glow: rgba(99, 102, 241, 0.25);
    --warm: #f59e0b;
    --warm-light: #fbbf24;
    --green: #34d399;
    --green-soft: rgba(52, 211, 153, 0.15);
    --red: #f87171;
    --orange: #fb923c;
    --indigo: #818cf8;
    --teal: #2dd4bf;
    --purple: #a78bfa;
    --bg-dark: #0b0b10;
    --bg: #101017;
    --bg-elevated: #16161f;
    --bg-card: #1c1c28;
    --bg-card-hover: #232330;
    --text: #ececf1;
    --text-secondary: #8e8ea0;
    --text-dim: #5a5a6e;
    --border: #262638;
    --border-light: #303046;
    --radius: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

/* ==================== NAV ==================== */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    background: rgba(11, 11, 16, 0.75);
    border-bottom: 1px solid rgba(38, 38, 56, 0.6);
}
.nav-inner {
    max-width: 1120px; margin: 0 auto; padding: 14px 24px;
    display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
    font-size: 19px; font-weight: 800; color: var(--text);
    text-decoration: none; letter-spacing: -0.02em;
}
.nav-links { display: flex; gap: 28px; list-style: none; align-items: center; }
.nav-links a {
    color: var(--text-secondary); text-decoration: none;
    font-size: 14px; font-weight: 500; transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
    background: var(--accent); color: #fff !important; padding: 8px 18px;
    border-radius: 10px; font-weight: 600; font-size: 13px;
    text-decoration: none; transition: transform 0.15s, box-shadow 0.15s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 20px var(--accent-glow); }
.nav-back {
    color: var(--accent-light); text-decoration: none;
    font-size: 14px; font-weight: 600;
}
.nav-back:hover { text-decoration: underline; }
.lang-toggle {
    background: transparent; border: 1px solid var(--border);
    border-radius: 8px; padding: 5px 10px; color: var(--text-dim);
    font-size: 12px; cursor: pointer; font-family: inherit; font-weight: 600;
    transition: border-color 0.2s, color 0.2s;
}
.lang-toggle:hover { border-color: var(--accent); color: var(--text-secondary); }

/* -- Nav Right -- */
.nav-right {
    display: flex; align-items: center; gap: 12px;
}
.lang-trigger {
    display: flex; align-items: center; gap: 6px;
    background: transparent; border: 1px solid var(--border);
    border-radius: 8px; padding: 6px 12px;
    color: var(--text-dim); font-size: 12px; font-weight: 600;
    cursor: pointer; font-family: inherit;
    transition: border-color 0.2s, color 0.2s;
}
.lang-trigger:hover { border-color: var(--accent); color: var(--text-secondary); }
.lang-trigger svg { opacity: 0.6; }

/* -- Language Modal -- */
.lang-modal-overlay {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.lang-modal-overlay.open { opacity: 1; pointer-events: auto; visibility: visible; }
.lang-modal {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 0;
    width: 320px; max-width: 90vw; overflow: hidden;
}
.lang-modal-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 20px; border-bottom: 1px solid var(--border);
}
.lang-modal-title { font-size: 15px; font-weight: 700; }
.lang-modal-close {
    background: none; border: none; color: var(--text-dim);
    font-size: 24px; cursor: pointer; line-height: 1;
}
.lang-modal-list { padding: 8px 0; }
.lang-modal-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 20px; color: var(--text); text-decoration: none;
    transition: background 0.15s;
}
.lang-modal-item:hover { background: rgba(255, 255, 255, 0.05); }
.lang-modal-item.active { color: var(--accent-light); }
.lang-modal-name { flex: 1; font-size: 15px; font-weight: 500; }
.lang-modal-code { font-size: 12px; color: var(--text-dim); font-weight: 600; }
.lang-modal-check { color: var(--green); font-size: 14px; }

/* ==================== HERO ==================== */
.hero {
    padding: 140px 24px 80px;
    max-width: 1120px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 16px; align-items: center;
}
.hero-text { max-width: 460px; }
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--warm-light); font-size: 14px; font-weight: 600;
    margin-bottom: 20px;
}
.hero-eyebrow svg { flex-shrink: 0; }
h1 {
    font-size: clamp(34px, 5vw, 50px); font-weight: 800;
    line-height: 1.12; margin-bottom: 20px; letter-spacing: -0.03em;
}
.nav-logo-icon {
    width: 28px; height: 28px; border-radius: 7px;
    vertical-align: middle; margin-right: 8px;
    position: relative; top: -1px;
}
/* Rotating word in headline */
.h1-rotate {
    display: inline-block;
    position: relative;
    min-width: 0;
}
.h1-rotate .rotate-word {
    display: inline-block;
    position: absolute; left: 0; top: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    white-space: nowrap;
}
.h1-rotate .rotate-word.active {
    position: relative;
    opacity: 1;
    transform: translateY(0);
}
.hero-sub {
    font-size: 17px; color: var(--text-secondary); line-height: 1.7;
    margin-bottom: 32px; max-width: 460px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.hero-proof {
    font-size: 13px; color: var(--text-dim); font-weight: 500;
    letter-spacing: 0.01em;
}

.btn-primary {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--accent); color: #fff; padding: 15px 28px;
    border-radius: 14px; text-decoration: none; font-weight: 700;
    font-size: 15px; transition: transform 0.15s, box-shadow 0.15s;
    border: none; cursor: pointer;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--accent-glow);
}
.btn-ghost {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--text-secondary); padding: 15px 24px;
    border-radius: 14px; text-decoration: none; font-weight: 600;
    font-size: 15px; transition: color 0.2s;
}
.btn-ghost:hover { color: var(--text); }

/* Phone Mockup (Hero) */
.hero-visual { display: flex; justify-content: flex-start; position: relative; width: 280px; }
.phone {
    width: 280px; height: 580px;
    background: #0b0b0f;
    border-radius: 44px; border: 3px solid #2e2e42;
    overflow: hidden; position: relative; z-index: 2;
    box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04) inset;
}
.phone-notch {
    width: 120px; height: 28px; background: #0b0b10;
    border-radius: 0 0 18px 18px; margin: 0 auto;
    position: relative; z-index: 2;
}
.phone-screen { padding: 16px 16px 0; }
.phone-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 16px;
}
.phone-title {
    font-size: 22px; font-weight: 800; letter-spacing: -0.02em;
}
.phone-plus {
    width: 28px; height: 28px; border-radius: 50%;
    background: #2a2a3a; display: flex; align-items: center;
    justify-content: center;
}
.phone-plus img { width: 14px; height: 14px; opacity: 0.6; }
.phone-chart-area {
    height: 70px; margin-bottom: 20px; position: relative;
}
.phone-section-label {
    font-size: 9px; font-weight: 700; color: var(--text-dim);
    text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px;
}
.phone-entry {
    display: flex; align-items: center; gap: 8px;
    background: #1a1a24; border-radius: 10px; padding: 9px 10px;
    margin-bottom: 10px; border: 1px solid rgba(255,255,255,0.04);
}
.phone-entry-ring { flex-shrink: 0; }
.phone-entry-info { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.phone-entry-bar {
    height: 6px; border-radius: 3px; background: rgba(255,255,255,0.25);
}
.phone-entry-bar.title { width: 70px; }
.phone-entry-bar.time { width: 28px; background: rgba(255,255,255,0.12); }
.phone-entry-factors { display: flex; align-items: center; margin-right: 2px; }
.phone-factor-dot {
    width: 20px; height: 20px; border-radius: 50%;
    background: #2a2a34;
    border: 1.5px solid #1a1a24;
    display: inline-flex; align-items: center; justify-content: center;
    line-height: 0;
    margin-left: -4px;
}
.phone-factor-dot:first-child { margin-left: 0; }
.phone-factor-dot svg {
    width: 11px; height: 11px;
    display: block;
}
.phone-entry-chevron { font-size: 9px; color: var(--text-dim); }
.phone-tabbar {
    position: absolute; bottom: 0; left: 0; right: 0;
    display: flex; justify-content: space-around; align-items: center;
    padding: 8px 4px 20px; background: #111118;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.phone-tab {
    display: flex; flex-direction: column; align-items: center;
    gap: 2px; font-size: 7px; font-weight: 600; color: var(--text-dim);
}
.phone-tab.active { color: #3b82f6; }
.phone-tab-icon { font-size: 14px; line-height: 1; }
.phone-tab-icon img { width: 16px; height: 16px; }
.phone-tab.active .phone-tab-icon img { filter: brightness(0) saturate(100%) invert(42%) sepia(93%) saturate(1350%) hue-rotate(206deg) brightness(99%) contrast(95%); }
.phone-tab:not(.active) .phone-tab-icon img { filter: brightness(0) invert(0.35); }
.phone-entry-chevron img { width: 8px; height: 8px; filter: brightness(0) invert(0.3); }

/* Floating widgets */
.float-widget {
    position: absolute;
    background: #1a1a24; border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px; padding: 14px 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    font-size: 11px; width: 220px;
}
.float-widget-factors {
    top: 120px; right: -200px; transform: rotate(2deg);
    z-index: 4;
}
.float-widget-weekdays {
    bottom: 100px; right: -210px; transform: rotate(-2deg);
    z-index: 1;
}
.float-widget h4 {
    font-size: 12px; font-weight: 700; margin-bottom: 2px;
}
.float-widget .widget-sub {
    font-size: 9px; color: var(--text-dim); margin-bottom: 8px;
}
.factor-row {
    display: flex; align-items: center; gap: 6px;
    padding: 3px 0; font-size: 10px;
}
.factor-dot {
    width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
}
.factor-name { flex: 1; color: var(--text); }
.factor-count { color: var(--text-dim); font-size: 9px; }
.factor-impact { font-weight: 700; font-size: 10px; }
.impact-pos { color: var(--green); }
.impact-neg { color: #f87171; }
.weekday-bars {
    display: flex; align-items: stretch; gap: 6px;
    height: 72px; margin-top: 4px; position: relative;
}
.weekday-col {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; position: relative;
}
.weekday-plot-area {
    flex: 1; width: 100%; position: relative;
}
.weekday-range {
    position: absolute; left: 50%; transform: translateX(-50%);
    width: 12px; border-radius: 5px;
    background: linear-gradient(to top, #5e4a0f, #8a6e16);
    opacity: 0.6;
}
.weekday-median {
    position: absolute; left: 50%; transform: translate(-50%, -50%);
    width: 8px; height: 8px; border-radius: 50%;
    background: #eab308;
    z-index: 1;
}
.weekday-label { font-size: 7px; color: var(--text-dim); margin-top: 2px; }

/* Glow effect behind phone */
.hero-visual::before {
    content: ''; position: absolute;
    width: 340px; height: 340px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    z-index: 0; filter: blur(40px);
}

/* ==================== SOCIAL PROOF BAR ==================== */
.proof-bar {
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    background: var(--bg-dark);
    padding: 28px 24px;
}
.proof-inner {
    max-width: 900px; margin: 0 auto;
    display: flex; justify-content: center; align-items: center;
    gap: 40px; flex-wrap: wrap;
}
.proof-badge {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.proof-stars { color: var(--warm); letter-spacing: 2px; font-size: 16px; text-align: center; }
.proof-text { font-size: 14px; color: var(--text-secondary); font-weight: 500; }
.proof-item {
    display: flex; align-items: center; gap: 10px;
    color: var(--text-secondary); font-size: 14px; font-weight: 500;
}
.proof-icon { font-size: 18px; flex-shrink: 0; }
.proof-highlight { color: var(--text); font-weight: 700; }

/* ==================== SCROLL EXPERIENCE ==================== */
.experience {
    position: relative;
    max-width: 1200px; margin: 0 auto;
}
.phone-column {
    position: sticky; top: 0;
    height: 100vh;
    display: flex; align-items: center; justify-content: center;
    pointer-events: none;
    z-index: 10;
}

/* iPhone frame (scroll experience) */
.iphone {
    width: 280px; height: 600px;
    background: #0a0a0f;
    border-radius: 48px;
    border: 3px solid #2a2a3e;
    position: relative;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.03) inset,
        0 40px 100px rgba(0,0,0,0.6),
        0 0 80px rgba(99, 102, 241, 0.06);
    overflow: hidden;
    pointer-events: auto;
    animation: float-gentle 6s ease-in-out infinite;
}
@keyframes float-gentle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
.iphone-notch {
    width: 126px; height: 32px;
    background: #0a0a0f;
    border-radius: 0 0 20px 20px;
    margin: 0 auto; position: relative; z-index: 5;
}
.iphone-screen {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 45px; overflow: hidden;
}

/* Screen slides */
.screen {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0; transition: opacity 0.5s ease;
    display: flex; flex-direction: column;
    background: #0f0f16;
    padding: 48px 16px 0;
    overflow: hidden;
}
.screen.active { opacity: 1; }

/* Sections container */
.sections-container {
    position: relative;
    margin-top: -100vh;
}
.section-panel {
    min-height: 100vh;
    display: flex; align-items: center;
    padding: 0 32px;
    position: relative;
}
.section-content {
    max-width: 360px;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.section-content.visible {
    opacity: 1; transform: translateY(0);
}
.section-panel:nth-child(odd) .section-content {
    margin-right: auto;
}
.section-panel:nth-child(even) .section-content {
    margin-left: auto;
}
.section-label {
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.12em; color: var(--accent-light);
    margin-bottom: 12px;
}
.section-content h2 {
    font-size: clamp(28px, 3.5vw, 38px);
    font-weight: 800; line-height: 1.2;
    margin-bottom: 16px; letter-spacing: -0.02em;
}
.section-content p {
    color: var(--text-secondary); font-size: 15px; line-height: 1.7;
}
.section-content .highlight {
    color: var(--text); font-weight: 600;
}

/* ===== PHONE SCREEN CONTENT ===== */

/* -- Journal Screen -- */
.s-journal-title {
    font-size: 20px; font-weight: 800; margin-bottom: 12px;
    display: flex; justify-content: space-between; align-items: center;
}
.s-plus-btn {
    width: 26px; height: 26px; border-radius: 50%;
    background: #2a2a3a; display: flex; align-items: center;
    justify-content: center; font-size: 16px; color: var(--accent);
}
.s-chart {
    height: 64px; margin-bottom: 16px; position: relative;
    display: flex; align-items: flex-end;
}
.s-chart svg { width: 100%; height: 100%; }
.s-entries-label {
    font-size: 9px; font-weight: 700; color: var(--text-dim);
    text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px;
}
.s-entry {
    display: flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.03); border-radius: 12px;
    padding: 10px; margin-bottom: 8px;
    border: 1px solid rgba(255,255,255,0.04);
}
.s-entry-emoji { font-size: 18px; }
.s-entry-bars { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.s-entry-bar {
    height: 5px; border-radius: 3px; background: rgba(255,255,255,0.15);
}
.s-entry-bar.short { width: 40px; background: rgba(255,255,255,0.08); }
.s-entry-score { font-size: 12px; font-weight: 700; }
.s-entry-chevron { color: var(--text-dim); font-size: 10px; }

/* -- Check-in Screen -- */
.s-checkin-header {
    font-size: 16px; font-weight: 700; margin-bottom: 4px;
    text-align: center;
}
.s-checkin-sub {
    font-size: 10px; color: var(--text-dim); text-align: center;
    margin-bottom: 20px;
}
.s-mood-display {
    text-align: center; margin-bottom: 16px;
}
.s-mood-emoji { font-size: 52px; line-height: 1; margin-bottom: 8px; }
.s-mood-score {
    font-size: 24px; font-weight: 800; font-family: system-ui;
}
.s-mood-desc {
    font-size: 11px; color: var(--text-secondary); margin-top: 2px;
}
.s-slider-track {
    height: 6px; border-radius: 3px;
    background: linear-gradient(to right, var(--red), var(--orange), var(--warm-light), var(--green));
    margin: 0 8px 20px; position: relative;
}
.s-slider-thumb {
    width: 22px; height: 22px; border-radius: 50%;
    background: #fff; border: 3px solid var(--green);
    position: absolute; top: 50%; transform: translate(-50%, -50%);
    left: 70%; box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: left 0.5s ease;
}
.s-slider-labels {
    display: flex; justify-content: space-between;
    font-size: 9px; color: var(--text-dim); margin: -12px 8px 16px;
}
.s-section-title {
    font-size: 12px; font-weight: 700; margin-bottom: 8px;
}
.s-factors {
    display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 16px;
}
.s-factor {
    font-size: 9px; padding: 5px 10px; border-radius: 20px;
    display: inline-flex; align-items: center; gap: 4px;
    transition: all 0.3s ease;
}
.s-factor svg { width: 11px; height: 11px; flex-shrink: 0; }
.s-factor.active { background: var(--accent); color: #fff; }
.s-factor.active svg { fill: #fff; stroke: #fff; }
.s-factor.inactive { background: rgba(255,255,255,0.07); color: var(--text-dim); }
.s-factor.inactive svg { fill: var(--text-dim); stroke: var(--text-dim); }

/* -- Insights Screen -- */
.s-insights-title {
    font-size: 20px; font-weight: 800; margin-bottom: 16px;
}
.s-week-card {
    background: rgba(255,255,255,0.03); border-radius: 14px;
    padding: 14px; margin-bottom: 12px;
    border: 1px solid rgba(255,255,255,0.04);
}
.s-week-label { font-size: 10px; color: var(--text-secondary); margin-bottom: 8px; font-weight: 600; }
.s-mood-ring {
    width: 60px; height: 60px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; margin: 0 auto 8px;
    background: conic-gradient(from 0deg, var(--green), var(--teal), var(--accent), var(--green));
    padding: 3px;
}
.s-mood-ring-inner {
    width: 100%; height: 100%; border-radius: 50%;
    background: #0f0f16;
    display: flex; align-items: center; justify-content: center;
}
.s-week-stats {
    display: flex; justify-content: space-around; text-align: center;
}
.s-week-stat-val { font-size: 16px; font-weight: 800; }
.s-week-stat-label { font-size: 8px; color: var(--text-dim); text-transform: uppercase; }

.s-factor-card {
    background: rgba(255,255,255,0.03); border-radius: 14px;
    padding: 14px; border: 1px solid rgba(255,255,255,0.04);
}
.s-factor-title {
    font-size: 11px; font-weight: 700; margin-bottom: 8px;
}
.s-factor-row {
    display: flex; align-items: center; gap: 6px;
    padding: 3px 0; font-size: 10px;
}
.s-factor-dot {
    width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
}
.s-factor-name { flex: 1; }
.s-factor-impact { font-weight: 700; font-size: 10px; }
.s-impact-pos { color: var(--green); }
.s-impact-neg { color: var(--red); }

/* -- Privacy Screen -- */
.s-privacy-icon {
    text-align: center; font-size: 48px; margin-bottom: 16px;
    margin-top: 40px;
}
.s-privacy-title {
    text-align: center; font-size: 18px; font-weight: 800;
    margin-bottom: 8px;
}
.s-privacy-sub {
    text-align: center; font-size: 11px; color: var(--text-secondary);
    margin-bottom: 24px; padding: 0 8px; line-height: 1.6;
}
.s-privacy-item {
    display: flex; align-items: center; gap: 10px;
    padding: 12px; margin-bottom: 8px;
    background: rgba(255,255,255,0.03); border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.04);
}
.s-privacy-check {
    width: 24px; height: 24px; border-radius: 50%;
    background: rgba(52, 211, 153, 0.15);
    display: flex; align-items: center; justify-content: center;
    color: var(--green); font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.s-privacy-text { font-size: 11px; font-weight: 600; }

/* -- Questionnaire Screen -- */
.s-quest-header {
    display: flex; align-items: center; gap: 12px;
    font-size: 14px; font-weight: 700; margin-bottom: 12px;
}
.s-quest-back {
    width: 28px; height: 28px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; color: var(--text-dim);
}
.s-quest-result-card {
    background: rgba(255, 255, 255, 0.03); border-radius: 14px;
    padding: 14px; margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.04); text-align: center;
}
.s-quest-date { font-size: 10px; color: var(--text-secondary); margin-bottom: 6px; }
.s-quest-badge {
    display: inline-block; font-size: 8px; font-weight: 700;
    padding: 2px 6px; border-radius: 4px;
    background: rgba(255, 255, 255, 0.1); color: var(--text-dim);
    margin-left: 4px;
}
.s-quest-score { margin-bottom: 6px; }
.s-quest-score-val { font-size: 32px; font-weight: 800; }
.s-quest-score-max { font-size: 14px; color: var(--text-dim); }
.s-quest-label {
    display: inline-block; font-size: 10px; font-weight: 600;
    padding: 4px 12px; border-radius: 20px; margin-bottom: 8px;
}
.s-quest-progress {
    height: 4px; background: rgba(255, 255, 255, 0.1);
    border-radius: 2px; overflow: hidden;
}
.s-quest-progress-fill {
    height: 100%; background: #38bdf8; border-radius: 2px;
}
.s-quest-answers {
    background: rgba(255, 255, 255, 0.03); border-radius: 14px;
    padding: 12px; border: 1px solid rgba(255, 255, 255, 0.04);
}
.s-quest-answers-title { font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.s-quest-item {
    display: flex; align-items: flex-start; gap: 6px;
    padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.s-quest-item:last-child { border-bottom: none; }
.s-quest-num {
    font-size: 9px; color: var(--text-dim); min-width: 14px; padding-top: 2px;
}
.s-quest-item-info {
    flex: 1; display: flex; flex-direction: column; gap: 2px;
}
.s-quest-item-info strong { font-size: 11px; font-weight: 600; }
.s-quest-item-sub { font-size: 9px; color: var(--text-dim); }
.s-quest-item-score { font-size: 10px; font-weight: 700; flex-shrink: 0; }

/* Tab bar (scroll experience) */
.s-tabbar {
    position: absolute; bottom: 0; left: 0; right: 0;
    display: flex; justify-content: space-around; align-items: center;
    padding: 8px 4px 24px;
    background: linear-gradient(to top, #0f0f16 60%, transparent);
}
.s-tab {
    display: flex; flex-direction: column; align-items: center;
    gap: 2px; font-size: 7px; font-weight: 600; color: var(--text-dim);
}
.s-tab.active { color: #3b82f6; }
.s-tab-icon { font-size: 14px; line-height: 1; }
.s-tab-icon img { width: 16px; height: 16px; }
.s-tab.active .s-tab-icon img { filter: brightness(0) saturate(100%) invert(42%) sepia(93%) saturate(1350%) hue-rotate(206deg) brightness(99%) contrast(95%); }
.s-tab:not(.active) .s-tab-icon img { filter: brightness(0) invert(0.35); }

/* Screen entry animations */
.screen .s-entry,
.screen .s-factor,
.screen .s-privacy-item,
.screen .s-week-card,
.screen .s-factor-card,
.screen .s-quest-item,
.screen .s-quest-result-card {
    opacity: 0; transform: translateY(10px);
}
.screen.active .s-entry,
.screen.active .s-factor,
.screen.active .s-privacy-item,
.screen.active .s-week-card,
.screen.active .s-factor-card,
.screen.active .s-quest-item,
.screen.active .s-quest-result-card {
    opacity: 1; transform: translateY(0);
}
.screen.active .s-privacy-item { transition: all 0.4s ease 0.1s; }
.screen.active .s-entry:nth-child(1),
.screen.active .s-factor:nth-child(1),
.screen.active .s-quest-item:nth-child(1) { transition: all 0.4s ease 0.1s; }
.screen.active .s-entry:nth-child(2),
.screen.active .s-factor:nth-child(2),
.screen.active .s-quest-item:nth-child(2) { transition: all 0.4s ease 0.15s; }
.screen.active .s-entry:nth-child(3),
.screen.active .s-factor:nth-child(3),
.screen.active .s-quest-item:nth-child(3) { transition: all 0.4s ease 0.2s; }
.screen.active .s-entry:nth-child(4),
.screen.active .s-factor:nth-child(4),
.screen.active .s-quest-item:nth-child(4) { transition: all 0.4s ease 0.25s; }
.screen.active .s-entry:nth-child(5),
.screen.active .s-factor:nth-child(5),
.screen.active .s-quest-item:nth-child(5) { transition: all 0.4s ease 0.3s; }
.screen.active .s-entry:nth-child(6),
.screen.active .s-factor:nth-child(6),
.screen.active .s-quest-item:nth-child(6) { transition: all 0.4s ease 0.35s; }
.screen.active .s-entry:nth-child(7),
.screen.active .s-quest-item:nth-child(7) { transition: all 0.4s ease 0.4s; }
.screen.active .s-entry:nth-child(8),
.screen.active .s-quest-item:nth-child(8) { transition: all 0.4s ease 0.45s; }
.screen.active .s-week-card { transition: all 0.4s ease 0.1s; }
.screen.active .s-factor-card { transition: all 0.4s ease 0.25s; }
.screen.active .s-quest-result-card { transition: all 0.4s ease 0.1s; }

/* Slider animation */
@keyframes slide-thumb {
    0% { left: 20%; }
    50% { left: 75%; }
    100% { left: 70%; }
}
.screen.active .s-slider-thumb {
    animation: slide-thumb 1.5s ease-out 0.3s both;
}

/* Mood ring glow */
@keyframes ring-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
    50% { box-shadow: 0 0 20px 4px rgba(52, 211, 153, 0.15); }
}
.screen.active .s-mood-ring {
    animation: ring-glow 3s ease-in-out infinite 0.5s;
}

/* ==================== MID CTA ==================== */


/* ==================== TESTIMONIALS ==================== */


/* ==================== EMOTIONAL CLOSER ==================== */
.closer {
    padding: 100px 24px 120px; text-align: center;
    background: linear-gradient(180deg, var(--bg) 0%, #0d0d18 100%);
    position: relative;
}
.closer::before {
    content: ''; position: absolute;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(99,102,241,0.08) 0%, transparent 70%);
    top: 20%; left: 50%; transform: translateX(-50%);
    z-index: 0; filter: blur(60px);
}
.closer-content { position: relative; z-index: 1; }
.closer h2 {
    font-size: clamp(30px, 5vw, 46px); font-weight: 800;
    line-height: 1.15; margin-bottom: 20px; letter-spacing: -0.03em;
}
.closer p {
    font-size: 18px; color: var(--text-secondary); max-width: 500px;
    margin: 0 auto 36px; line-height: 1.7;
}
.closer .btn-primary { font-size: 17px; padding: 18px 36px; }

/* ==================== FOOTER ==================== */
footer {
    border-top: 1px solid var(--border); padding: 36px 24px;
    background: var(--bg-dark);
}
.footer-inner {
    max-width: 1120px; margin: 0 auto;
    display: flex; justify-content: space-between;
    align-items: center; flex-wrap: wrap; gap: 16px;
}
.footer-left { display: flex; align-items: center; gap: 24px; }
.footer-logo { font-size: 15px; font-weight: 800; color: var(--text-dim); }
footer small { color: var(--text-dim); font-size: 12px; }
.footer-links { display: flex; gap: 20px; list-style: none; }
.footer-links a {
    color: var(--text-dim); text-decoration: none; font-size: 13px;
    font-weight: 500; transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-secondary); }
.footer-lang-trigger {
    display: none; /* shown only on mobile */
    align-items: center; gap: 6px;
    background: transparent; border: 1px solid var(--border);
    border-radius: 8px; padding: 8px 16px;
    color: var(--text-dim); font-size: 13px; font-weight: 600;
    cursor: pointer; font-family: inherit;
    transition: border-color 0.2s, color 0.2s;
    margin: 0 auto;
}
.footer-lang-trigger:hover { border-color: var(--accent); color: var(--text-secondary); }
.footer-lang-trigger svg { opacity: 0.6; }

/* ==================== LEGAL / PRIVACY CONTENT PAGES ==================== */
.content {
    max-width: 720px; margin: 0 auto; padding: 48px 24px 100px; padding-top: 100px;
}
.updated { color: var(--text-secondary); font-size: 14px; margin-bottom: 40px; }
p, li {
    color: var(--text-secondary); font-size: 15px; line-height: 1.75;
    margin-bottom: 12px;
}
ul { padding-left: 24px; margin-bottom: 16px; }
strong { color: var(--text); }
a { color: var(--accent-light); }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; text-align: center; padding-top: 100px; gap: 0; }
    .hero-text { display: contents; }
    .hero-eyebrow { order: 1; margin-bottom: 16px; justify-content: center; }
    h1 { order: 2; margin-bottom: 24px; }
    .hero-visual { order: 3; width: fit-content; margin: 0 auto 8px; overflow: visible; padding-top: 0; }
    .hero-sub { order: 4; margin: 0 auto 24px; max-width: 400px; }
    .hero-ctas { order: 5; justify-content: center; margin-bottom: 0; flex-direction: column; align-items: center; }
    .hero-proof { order: 6; }
    .hero-visual .phone { transform: scale(0.85); transform-origin: top center; margin-bottom: -75px; }
    .hero-visual::before { width: 240px; height: 240px; }
    .float-widget { transform: scale(0.7); }
    .float-widget-factors { top: 40px; left: -110px; }
    .float-widget-weekdays { bottom: 100px; right: -80px; z-index: 3; }


    /* Scroll experience — hide desktop layout on mobile */
    .phone-column { display: none; }
    .sections-container { display: none; }

    /* Mobile gallery */
    .mobile-gallery { display: flex; flex-direction: column; align-items: center; gap: 24px; padding: 0 24px; padding-top: 60px; }
    .gallery-text { text-align: center; max-width: 480px; min-height: 110px; }
    .gallery-label {
        font-size: 11px; font-weight: 700; text-transform: uppercase;
        letter-spacing: 0.12em; color: var(--accent-light); margin-bottom: 12px;
    }
    .gallery-text h2 {
        font-size: clamp(24px, 5vw, 32px); font-weight: 800;
        line-height: 1.2; margin-bottom: 12px; letter-spacing: -0.02em;
        color: var(--text);
    }
    .gallery-text p {
        font-size: 15px; color: var(--text-secondary); line-height: 1.7;
    }
    .gallery-phone-wrap { display: flex; align-items: center; gap: 12px; max-width: 100%; }
    .gallery-phone { position: relative; }
    .gallery-phone .iphone { animation: none; width: 250px; height: 536px; }
    .gallery-phone .screen { position: absolute; inset: 0; opacity: 0; transition: opacity 0.4s ease; pointer-events: none; }
    .gallery-phone .screen.active { position: relative; opacity: 1; pointer-events: auto; }

    /* Gallery navigation */
    .gallery-nav { display: flex; flex-direction: column; align-items: center; gap: 16px; }
    .gallery-arrow {
        width: 40px; height: 40px; border-radius: 50%;
        background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15);
        color: #fff; font-size: 18px;
        display: flex; align-items: center; justify-content: center;
        cursor: pointer; transition: all 0.2s ease;
        -webkit-tap-highlight-color: transparent;
    }
    .gallery-arrow:active { background: rgba(255,255,255,0.15); transform: scale(0.92); }
    .gallery-arrow.disabled { opacity: 0.25; pointer-events: none; }
    .gallery-dots { display: flex; gap: 10px; align-items: center; }
}
@media (max-width: 640px) {
    .nav-links { display: none; }
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-left { flex-direction: column; gap: 8px; }
    .lang-trigger { display: none; }
    .footer-lang-trigger { display: inline-flex; }
}

/* Hide mobile gallery on desktop */
@media (min-width: 641px) {
    .footer-lang-trigger { display: none !important; }
}
@media (min-width: 901px) {
    .mobile-gallery { display: none !important; }
    .gallery-nav { display: none !important; }
    .gallery-phone-wrap { display: none !important; }
    .gallery-arrow { display: none !important; }
}

[id] { scroll-margin-top: 80px; }
