/* ==========================================================================
   SquirreList landing page
   ========================================================================== */

:root {
    /* App palette (lib/core/theme/colors/app_colors.dart) */
    --primary: #0CC4CE;
    --primary-700: #09939A;
    --primary-800: #077378;
    --primary-900: #03292B;
    --primary-100: #ECFDFE;
    --primary-200: #C5F9FC;
    --stroke-cyan: #0EE5F1;

    --amber: #F6B259;
    --coral: #DC6742;
    --bark: #B14E2F;
    --bark-deep: #8A3A21;
    --green: #7ACB5A;
    --green-ok: #5DC22E;
    --green-deep: #3E7A27;
    --orange: #FF8304;

    --ink: #1F2A2E;
    --ink-2: #121923;
    --muted: #4A5A5F;
    --muted-2: #5B6B70;
    --neutral: #6C7889;
    --faint: #A4ACB6;
    --line: #E0E3E6;

    --bg: #FFFFFF;
    --bg-hero: #EEF8F9;
    --bg-soft: #F7F9FA;
    --tint-teal: #EEF8F9;
    --tint-amber: #FFF4E6;
    --tint-coral: #FDEDE7;
    --tint-green: #EEF8E8;
    --peach: #FFD9CC;

    --band: var(--primary);
    --font: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --ease-bounce: cubic-bezier(.34, 1.56, .64, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* app.js keeps --header-h equal to the sticky header height, so anchor
       jumps land each section exactly under the header */
    scroll-padding-top: var(--header-h, 88px);
}

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    overflow-x: clip;
}

img {
    max-width: 100%;
}

a {
    color: var(--ink);
}

a:hover {
    color: #067A82;
}

h1,
h2,
h3,
p {
    margin: 0;
}

button {
    font-family: inherit;
}

:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 100;
    padding: 12px 18px;
    border-radius: 12px;
    background: var(--ink);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

.skip-link:focus {
    top: 12px;
    color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: 1100px;
    margin: 0 auto;
}

.kicker {
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pill {
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 14px;
}

.pill-amber {
    background: var(--tint-amber);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 22px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand-mark {
    width: 74px;
    height: 40px;
    object-fit: cover;
    display: block;
}

.brand-word {
    height: 22px;
    width: auto;
}

.nav {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.nav a {
    padding: 12px 14px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    border-radius: 999px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-lang {
    display: none;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.menu-toggle svg {
    display: block;
    flex: none;
    transition: rotate .25s ease, opacity .2s ease;
}

.menu-toggle .icon-close,
.menu-toggle[aria-expanded="true"] .icon-open {
    display: none;
}

.menu-toggle[aria-expanded="true"] .icon-close {
    display: block;
    animation: sqMenuIcon .25s ease both;
}

@keyframes sqMenuIcon {
    from { rotate: -90deg; opacity: 0; }
    to { rotate: 0deg; opacity: 1; }
}

.lang-toggle {
    display: flex;
    height: 44px;
    padding: 4px;
    border-radius: 999px;
    background: #fff;
}

.lang-btn {
    min-width: 40px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted-2);
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
}

.lang-btn.active {
    background: var(--primary-100);
    color: var(--ink);
}

.btn-dark {
    white-space: nowrap;
    height: 44px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-weight: 800;
    font-size: 15px;
    text-decoration: none;
}

.btn-dark:hover {
    color: #fff;
    background: #000;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
    background: var(--bg-hero);
    padding-bottom: 120px;
}

.hero-copy {
    padding-top: 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 22px;
}

.hero-title {
    font-weight: 900;
    font-size: clamp(44px, 6.2vw, 84px);
    line-height: 1.02;
    letter-spacing: -0.025em;
    max-width: 900px;
}

.hero-desc {
    max-width: 560px;
    font-size: 19px;
    line-height: 1.6;
    color: var(--muted);
}

.hero-ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    padding-top: 6px;
}

.btn-amber,
.btn-white {
    height: 54px;
    display: flex;
    align-items: center;
    border-radius: 999px;
    text-decoration: none;
    font-size: 17px;
}

.btn-amber {
    padding: 0 30px;
    background: var(--amber);
    font-weight: 900;
    box-shadow: 0 16px 30px -14px rgba(220, 103, 66, 0.55);
}

.btn-white {
    padding: 0 24px;
    background: #fff;
    font-weight: 800;
}

.btn-amber:hover,
.btn-white:hover {
    color: var(--ink);
    translate: 0 -2px;
}

/* Phone stage — a recreation of the app's Home screen (home_page.dart) */
.stage-wrap {
    margin-top: 72px;
    display: flex;
    justify-content: center;
    /* app.js scales the whole composition to the viewport (--stage-zoom) */
    zoom: var(--stage-zoom, 0.75);
}

/* Tablet: satellites tucked in around the phone */
.stage-wrap.compact .fly-week { left: -130px; top: -40px; }
.stage-wrap.compact .fly-notif { left: 250px; top: 40px; }
.stage-wrap.compact .fly-streak { left: 340px; top: 250px; }
.stage-wrap.compact .fly-plus { left: -120px; top: 720px; }
.stage-wrap.compact .acorn-1 { left: -60px; top: 800px; }
.stage-wrap.compact .acorn-2 { left: -20px; top: 70px; }
.stage-wrap.compact .acorn-3 { left: 470px; top: 690px; }
.stage-wrap.compact .acorn-4 { left: 440px; top: 790px; }

/* Phone: no satellites, just the phone, cards and Amrita */
.stage-wrap.mobile .fly {
    display: none;
}

.stage {
    position: relative;
    width: 402px;
    height: 852px;
    flex: none;
}

.phone {
    width: 402px;
    height: 852px;
    padding: 12px;
    border-radius: 60px;
    background: var(--ink);
    box-shadow: 0 60px 120px -50px rgba(3, 41, 43, 0.55);
}

.phone-screen {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 48px;
    background: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.app-bar {
    position: relative;
    background: var(--primary-200);
    border-bottom-right-radius: 32px;
    padding: 14px 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.app-bar-tail {
    position: absolute;
    left: 0;
    top: 100%;
    display: block;
}

.status-bar {
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    font-weight: 800;
    font-size: 15px;
    color: var(--primary-900);
}

.status-island {
    width: 110px;
    height: 30px;
    border-radius: 999px;
    background: var(--ink);
}

.app-bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.app-bar-icon {
    padding: 8px;
    display: flex;
}

.app-bar-main {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.app-bar-title {
    display: flex;
    flex-direction: column;
}

.app-bar-today {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.5;
    color: var(--ink-2);
}

.app-bar-date {
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.4px;
    color: var(--primary-800);
}

.app-bar-streak {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 12px;
    font-weight: 700;
    font-size: 16px;
    color: var(--primary-800);
}

.home-bubble-row {
    margin: 16px 16px 28px;
    min-height: 200px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.home-bubble-spacer {
    width: 104px;
    flex: none;
}

.home-bubble {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.5px;
    color: var(--primary-700);
    position: relative;
    top: -50px;
}

.home-tags {
    display: flex;
    gap: 12px;
    padding: 0 16px;
    overflow: hidden;
    position: relative;
    top: -110px;
}

.home-tag {
    height: 36px;
    padding: 0 12px;
    border-radius: 100px;
    background: #F7F8F8;
    display: flex;
    align-items: center;
    flex: none;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.25px;
    color: var(--ink-2);
}

.home-tag.active {
    padding: 0 16px;
    background: var(--primary-100);
}

.home-indicator {
    position: absolute;
    left: 50%;
    bottom: 8px;
    width: 134px;
    height: 5px;
    margin-left: -67px;
    border-radius: 999px;
    background: var(--ink-2);
}

/* Task items (item_task.dart) cascading out of the phone */
.task-stack {
    position: absolute;
    left: 1px;
    top: 332px;
    width: 400px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 2;
    text-align: left;
}

.task-item {
    position: relative;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 18px 36px -18px rgba(3, 41, 43, 0.32), 0 0 0 1px #EDECF4;
    overflow: hidden;
    transform: translateX(var(--shift, 0));
    animation: sqStepIn .8s cubic-bezier(.34, 1.4, .64, 1) both, sqBob 4.5s ease-in-out infinite;
    animation-delay: var(--d1, 0s), var(--d2, 1s);
    transition: translate .35s var(--ease-bounce), box-shadow .35s ease;
}

.task-item:hover {
    translate: -8px -6px;
    box-shadow: 0 30px 50px -22px rgba(3, 41, 43, .45), 0 0 0 2px var(--primary);
    z-index: 5;
}

.task-item.big {
    transform: translateX(var(--shift, 0)) scale(1.1);
}

.task-row {
    display: flex;
    align-items: center;
    padding: 10px 0;
}

.task-edge {
    width: 2px;
    height: 36px;
    border-radius: 0 8px 8px 0;
    background: var(--primary);
    flex: none;
    margin-right: 12px;
}

.task-edge.overdue {
    background: #FE4C3E;
}

.task-icon {
    padding: 8px;
    border-radius: 8px;
    flex: none;
    margin-right: 8px;
    display: flex;
}

.task-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.task-name {
    font-weight: 700;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--ink-2);
}

.task-item.done .task-name {
    text-decoration: line-through;
    color: var(--faint);
}

.task-time {
    font-size: 12px;
    line-height: 1.33;
    letter-spacing: 0.4px;
    color: var(--ink-2);
}

.task-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.4px;
}

.task-meta img {
    width: 12px;
    height: 12px;
}

.task-meta .gap {
    width: 12px;
}

.task-play {
    width: 24px;
    height: 24px;
    flex: none;
    margin: 0 12px 0 16px;
}

.task-row .end {
    width: 12px;
    flex: none;
}

.task-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: rgba(236, 253, 254, 0.3);
}

.task-progress span {
    display: block;
    height: 4px;
    border-radius: 2px;
}

.fab {
    position: absolute;
    right: 28px;
    bottom: 42px;
    z-index: 4;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: sqPulse 1.8s ease-out infinite, sqNudge 3.6s ease-in-out infinite;
}

.hero-mascot {
    position: absolute;
    left: -124px;
    top: 112px;
    width: 248px;
    height: 248px;
    z-index: 3;
    filter: drop-shadow(0 24px 30px rgba(3, 41, 43, 0.25));
}

/* Floating satellites around the phone */
.fly {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    text-align: left;
}

.fly > * {
    position: absolute;
}

.float-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 24px 48px -24px rgba(3, 41, 43, 0.35);
}

.float-pill {
    border-radius: 999px;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.fly-notif {
    left: 446px;
    top: 70px;
    width: 270px;
    padding: 12px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.notif-app-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 0 0 1px var(--line);
    overflow: hidden;
    display: flex;
    flex: none;
}

.notif-app-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fly-notif-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.fly-notif-text .from {
    font-size: 12px;
    font-weight: 700;
    color: var(--neutral);
}

.fly-notif-text .msg {
    font-size: 14px;
    font-weight: 800;
    color: var(--ink-2);
}

.fly-streak {
    left: 470px;
    top: 236px;
    height: 52px;
    padding: 0 18px 0 12px;
    gap: 8px;
    font-weight: 900;
    font-size: 18px;
    color: var(--primary-800);
}

.fly-streak img {
    width: 30px;
    height: 30px;
}

.fly-week {
    left: -340px;
    top: 52px;
    width: 240px;
    padding: 14px;
}

.mini-label {
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 0.5px;
    color: var(--bark);
    padding-bottom: 8px;
    text-transform: uppercase;
}

.week-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
    text-align: center;
}

.week-grid span {
    font-size: 10px;
    font-weight: 700;
    color: var(--neutral);
}

.week-grid img {
    width: 26px;
    height: 26px;
    margin: auto;
}

.fly-plus {
    left: -300px;
    top: 470px;
    height: 48px;
    padding: 0 18px 0 8px;
    gap: 10px;
    font-weight: 800;
    font-size: 16px;
    color: #1F845A;
}

.check-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--green-ok);
    display: flex;
    align-items: center;
    justify-content: center;
}

.acorn-1 { left: -248px; top: 630px; width: 40px; height: 40px; rotate: -14deg; }
.acorn-2 { left: -64px; top: 30px; width: 40px; height: 40px; rotate: -18deg; }
.acorn-3 { left: 640px; top: 420px; width: 30px; height: 30px; rotate: 24deg; }
.acorn-4 { left: 640px; top: 760px; width: 48px; height: 48px; rotate: 12deg; }

.f1, .f3 { animation: sqFloat 5s ease-in-out infinite; }
.f2, .f4 { animation: sqFloat 6s ease-in-out infinite; animation-delay: -2s; }

/* --------------------------------------------------------------------------
   Intro strip
   -------------------------------------------------------------------------- */
.intro {
    padding: 110px 24px;
}

.intro .container-narrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 56px;
}

.section-title {
    text-align: center;
    font-weight: 900;
    font-size: clamp(30px, 3.6vw, 44px);
    line-height: 1.15;
    letter-spacing: -0.02em;
    max-width: 640px;
}

.intro-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.intro-card {
    padding: 26px;
    border-radius: 24px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: translate .3s var(--ease-bounce);
}

.intro-card:hover {
    translate: 0 -4px;
    color: var(--ink);
}

.intro-card .icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.intro-card .title {
    font-weight: 900;
    font-size: 20px;
}

.intro-card .desc {
    font-size: 15px;
    line-height: 1.5;
    color: var(--muted);
}

.tone-teal { background: var(--tint-teal); }
.tone-teal .icon { background: var(--primary); }
.tone-amber { background: var(--tint-amber); }
.tone-amber .icon { background: var(--amber); }
.tone-coral { background: var(--tint-coral); }
.tone-coral .icon { background: var(--coral); }
.tone-green { background: var(--tint-green); }
.tone-green .icon { background: var(--green); }

/* --------------------------------------------------------------------------
   1 · Motivation band
   -------------------------------------------------------------------------- */
.band {
    background: var(--band);
    color: #fff;
    padding: 130px 24px;
}

.split {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 64px;
}

.split-copy {
    flex: 1 1 420px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.band-title {
    font-weight: 900;
    font-size: clamp(44px, 5.6vw, 76px);
    line-height: 1.02;
    letter-spacing: -0.025em;
}

.band-desc {
    font-size: 19px;
    line-height: 1.6;
    max-width: 440px;
}

.voice-pill {
    align-self: flex-start;
    padding: 6px 6px 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-weight: 800;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wave {
    height: 20px;
    display: flex;
    align-items: center;
    gap: 2px;
}

.wave span {
    width: 3px;
    border-radius: 2px;
    background: currentColor;
    display: block;
    animation: sqWave .9s ease-in-out infinite;
}

.soon {
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--amber);
    color: var(--ink);
    font-size: 12px;
    font-weight: 900;
}

.bubbles {
    flex: 1 1 440px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.bubble {
    max-width: 380px;
    padding: 20px 24px;
    border-radius: 26px 26px 26px 8px;
    background: #fff;
    color: var(--ink);
    font-weight: 800;
    font-size: 21px;
    line-height: 1.35;
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.45);
    align-self: flex-start;
    animation: sqWiggle 2.7s ease-in-out infinite;
    transform-origin: center bottom;
}

.bubble.right {
    align-self: flex-end;
    border-radius: 26px 26px 8px 26px;
    background: var(--amber);
    animation-delay: -0.9s;
}

.bubble.with-icon {
    display: flex;
    gap: 14px;
    align-items: center;
    animation-delay: -1.8s;
}

.bubble.with-icon img {
    width: 36px;
    height: 36px;
    flex: none;
}

/* --------------------------------------------------------------------------
   Sóc hiểu bạn (squirrel personality, overload assistant, day summary,
   balance) — mini screens rebuilt from lib/features/{voice_personality,
   assistant, day_summary}
   -------------------------------------------------------------------------- */
.soc {
    background: var(--bg-hero);
    padding: 130px 24px;
}

.soc .container-narrow {
    display: flex;
    flex-direction: column;
    gap: 56px;
}

.soc-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    text-align: center;
}

.soc-head .kicker {
    color: var(--primary-800);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.soc-head .soon {
    letter-spacing: 0;
    text-transform: none;
}

.soc-head .lead {
    max-width: 620px;
}

.soc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
    gap: 24px;
}

.soc-card {
    padding: 28px;
    border-radius: 32px;
    background: #fff;
    box-shadow: 0 30px 60px -40px rgba(3, 41, 43, 0.35);
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.soc-card-copy {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.soc-card-copy h3 {
    font-weight: 900;
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.soc-card-copy p {
    font-size: 16px;
    line-height: 1.55;
    color: var(--muted);
}

.soc-art {
    flex: 1;
    justify-content: center;
    padding: 18px;
    border-radius: 24px;
    background: var(--bg-soft);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.soc-art .outline-bubble {
    background: #fff;
    font-weight: 700;
}

/* Teasers — one telling detail per feature, looping while on screen (app.js
   toggles state classes; the motion lives here) */
.teaser {
    position: relative;
    overflow: hidden;
    min-height: 300px;
    align-items: center;
    text-align: center;
    gap: 18px;
}

.teaser.no-anim,
.teaser.no-anim * {
    transition: none !important;
}

.typed .ghost {
    color: transparent;
}

/* 1 · Voice: the line and the shape of the voice ------------------------- */
.vv-head {
    align-self: stretch;
    display: flex;
    align-items: center;
    gap: 10px;
}

.vv-mascot {
    width: 64px;
    height: 64px;
    flex: none;
    object-fit: contain;
}

.vv-mascot.pop {
    animation: sqMascotPop .6s var(--ease-bounce);
}

.vv-name {
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--primary-100);
    color: var(--primary-800);
    font-weight: 900;
    font-size: 15px;
}

.vv-name.swap {
    animation: sqLineIn .45s var(--ease-bounce);
}

.vv-dots {
    margin-left: auto;
    display: flex;
}

.vv-dot {
    width: 26px;
    height: 26px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vv-dot::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--line);
    transition: background-color .25s ease, width .3s var(--ease-bounce);
}

.vv-dot.active::before {
    width: 22px;
    border-radius: 5px;
    background: var(--primary);
}

.vv-line {
    align-self: stretch;
    min-height: 88px;
    padding: 14px 18px;
    border-radius: 20px 20px 20px 6px;
    background: #fff;
    box-shadow: 0 0 0 1px var(--line);
    color: var(--primary-700);
    font-weight: 800;
    font-size: 19px;
    line-height: 1.4;
    text-align: left;
    display: flex;
    align-items: center;
}

/* Each personality has its own voice: height (pitch) and pace (rate) */
.v-voice { --amp: 1; --pace: .5s; }
.v-voice[data-persona="serious"] { --amp: .5; --pace: 1.1s; }
.v-voice[data-persona="enthusiastic"] { --amp: .85; --pace: .65s; }

.vv-wave {
    height: 56px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.vv-wave span {
    width: 5px;
    height: calc(56px * var(--h, .5));
    border-radius: 3px;
    background: var(--primary);
    scale: 1 .14;
    transition: scale .35s ease;
}

.v-voice.speaking .vv-wave span {
    scale: 1 var(--amp);
    animation: sqVoice var(--pace) ease-in-out var(--d, 0s) infinite alternate;
}

.vv-tune {
    font-size: 13px;
    font-weight: 700;
    color: var(--neutral);
}

/* 2 · Assistant: the chance of finishing ---------------------------------- */
.va-gauge {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.va-value {
    font-size: 64px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.03em;
    color: #FE4C3E;
    transition: color .5s ease;
}

.va-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--neutral);
}

.va-bar {
    width: 100%;
    max-width: 320px;
    height: 8px;
    margin-top: 6px;
    border-radius: 4px;
    background: #FFE8E6;
    overflow: hidden;
    transition: background-color .5s ease;
}

.va-bar span {
    display: block;
    width: var(--v, 40%);
    height: 100%;
    background: #FE4C3E;
    transition: width .9s cubic-bezier(.22, 1, .36, 1), background-color .5s ease;
}

.v-assist.done .va-value {
    color: var(--primary-700);
}

.v-assist.done .va-bar {
    background: var(--primary-100);
}

.v-assist.done .va-bar span {
    background: var(--primary);
}

.va-btn {
    height: 44px;
    padding: 0 22px;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: scale .15s ease, box-shadow .2s ease, opacity .4s ease;
}

.v-assist.press .va-btn {
    scale: .95;
    box-shadow: 0 0 0 5px rgba(12, 196, 206, 0.25);
}

.v-assist.done .va-btn {
    opacity: .5;
}

.va-tasks {
    min-height: 74px;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    justify-content: center;
    gap: 8px;
}

.va-task {
    padding: 7px 12px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 1px 1px 6px #EDECF4, -1px -1px 6px #EDECF4;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 800;
    color: var(--ink-2);
    transition: translate .55s cubic-bezier(.65, 0, .35, 1), opacity .55s ease, scale .55s ease;
}

.va-task i {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: var(--c);
}

.va-task em {
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    font-style: normal;
    color: var(--primary-800);
    transition: max-width .35s ease;
}

.va-task em::before {
    content: '→ ';
}

.va-task.tag em {
    max-width: 100px;
}

.va-task.gone {
    translate: 80px -6px;
    scale: .9;
    opacity: 0;
}

/* 3 · Summary: the 21:00 notification ----------------------------------- */
.v-sum {
    background: linear-gradient(180deg, var(--primary-900) 0%, var(--primary-800) 100%);
    gap: 14px;
}

.vs-time {
    font-size: 56px;
    font-weight: 300;
    line-height: 1;
    letter-spacing: -2px;
    color: #fff;
}

.vs-notif {
    max-width: 380px;
    background: rgba(255, 255, 255, 0.94);
    text-align: left;
    box-shadow: 0 24px 40px -24px rgba(0, 0, 0, 0.6);
    opacity: 0;
    translate: 0 -160px;
    transition: translate .6s var(--ease-bounce), opacity .25s ease;
}

.v-sum.notif-in .vs-notif {
    opacity: 1;
    translate: 0 0;
}

.v-sum .ring {
    position: relative;
    width: 96px;
    height: 96px;
    padding: 6px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 16px 32px -16px rgba(0, 0, 0, 0.6);
    scale: .5;
    opacity: 0;
    transition: scale .5s var(--ease-bounce), opacity .25s ease;
}

.v-sum.ring-in .ring {
    scale: 1;
    opacity: 1;
}

.ring svg {
    width: 100%;
    height: 100%;
    rotate: -90deg;
}

.ring circle {
    fill: none;
    stroke-width: 11;
}

.ring-track {
    stroke: var(--line);
}

.ring-fill {
    stroke: var(--primary);
    stroke-linecap: round;
    stroke-dasharray: 326.7;
    stroke-dashoffset: var(--off, 65.3);
    transition: stroke-dashoffset .9s cubic-bezier(.33, 1, .68, 1);
}

.ring-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: var(--neutral);
}

.ring-text b {
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
    color: var(--primary-900);
}

/* 4 · Balance: the empty slot of the forgotten group --------------------- */
.v-bal {
    align-items: stretch;
    text-align: left;
}

.vb-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--neutral);
}

.vb-head b {
    font-size: 24px;
    font-weight: 900;
    text-transform: none;
    white-space: nowrap;
    color: var(--primary-900);
}

.vb-bar {
    height: 20px;
    display: flex;
    gap: 4px;
}

.vb-seg {
    flex: var(--w) 1 0;
    border-radius: 6px;
    transition: flex-grow .7s cubic-bezier(.33, 1, .68, 1);
}

.vb-seg + .vb-seg {
    transition-delay: .1s;
}

.v-bal:not(.grow) .vb-seg {
    flex-grow: 0.001;
}

.vb-gap {
    flex: 40 1 0;
    border-radius: 6px;
    background: #F3FBEE;
    outline: 2px dashed var(--green-ok);
    outline-offset: -2px;
    opacity: .35;
    transition: opacity .3s ease;
}

.v-bal.miss .vb-gap {
    opacity: 1;
    animation: sqGapPulse 1.6s ease-in-out infinite;
}

.vb-legend {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    font-size: 13px;
    font-weight: 800;
    color: var(--ink-2);
}

.vb-legend li {
    display: flex;
    align-items: center;
    gap: 6px;
}

.vb-legend i {
    width: 10px;
    height: 10px;
    border-radius: 3px;
}

.vb-legend b {
    font-weight: 700;
    color: var(--neutral);
}

.v-bal.miss .vb-legend .miss {
    animation: sqShake .5s ease;
}

.v-bal.miss .vb-legend .miss b {
    color: #FE4C3E;
}

.vb-talk {
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    translate: 0 8px;
    transition: opacity .35s ease, translate .45s var(--ease-bounce);
}

.v-bal.talk .vb-talk {
    opacity: 1;
    translate: 0 0;
}

.vb-talk img {
    width: 52px;
    height: 52px;
    flex: none;
    object-fit: contain;
}

.vb-talk .outline-bubble {
    min-height: 56px;
    display: flex;
    align-items: center;
    background: #fff;
    font-size: 15px;
}

@keyframes sqLineIn { 0% { opacity: 0; translate: 0 6px; } 100% { opacity: 1; translate: 0 0; } }
@keyframes sqMascotPop { 0% { scale: .8; rotate: -6deg; } 100% { scale: 1; rotate: 0deg; } }
@keyframes sqVoice { 0% { scale: 1 calc(var(--amp) * .25); } 100% { scale: 1 var(--amp); } }
@keyframes sqShake { 0%, 100% { translate: 0 0; } 20% { translate: -5px 0; } 40% { translate: 5px 0; } 60% { translate: -3px 0; } 80% { translate: 3px 0; } }
@keyframes sqGapPulse { 0%, 100% { background: #F3FBEE; } 50% { background: #E2F5D8; } }



/* --------------------------------------------------------------------------
   2 · Streak
   -------------------------------------------------------------------------- */
.streak {
    padding: 130px 24px 60px;
}

.streak .container-narrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    text-align: center;
}

.streak .kicker {
    color: var(--bark);
}

.title-lg {
    font-weight: 900;
    font-size: clamp(36px, 4.4vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.02em;
    max-width: 720px;
}

.pill-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.streak-panel {
    width: 100%;
    margin-top: 40px;
    padding: 40px;
    border-radius: 32px;
    background: var(--bg-soft);
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    justify-content: center;
    text-align: left;
}

.streak-head {
    flex: 1 1 340px;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.streak-count {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.streak-number {
    position: relative;
    display: block;
    font-weight: 900;
    font-size: 56px;
    line-height: 1;
}

.streak-number .stroke {
    color: transparent;
    -webkit-text-stroke: 3px var(--stroke-cyan);
}

.streak-number .fill {
    position: absolute;
    inset: 0;
    color: var(--primary-700);
}

.streak-label {
    font-weight: 800;
    font-size: 24px;
    color: var(--primary-700);
}

.streak-mascot-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 12px 24px;
}

.streak-mascot {
    width: 200px;
    height: 200px;
    object-fit: contain;
    flex: none;
    margin: -40px -12px -40px -28px;
}

.outline-bubble {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    font-size: 16px;
    line-height: 1.5;
    color: var(--primary-700);
}

.calendar {
    flex: 1 1 380px;
    max-width: 420px;
    padding: 20px 16px;
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 30px 60px -34px rgba(3, 41, 43, 0.3);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.calendar-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 4px 0;
    font-weight: 700;
    font-size: 16px;
    color: var(--primary-900);
}

.calendar-head svg {
    width: 40px;
    height: 40px;
    padding: 8px;
}

.calendar-weekdays,
.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    text-align: center;
}

.calendar-weekdays {
    font-size: 14px;
    color: var(--neutral);
}

.calendar-days {
    row-gap: 8px;
    justify-items: center;
}

.day {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--ink-2);
}

.day img {
    position: absolute;
    inset: 0;
    width: 40px;
    height: 40px;
}

.day span {
    position: relative;
}

.day.on-icon {
    color: #fff;
}

.day.low {
    color: var(--ink-2);
}

.day.today {
    border-radius: 50%;
    background: var(--primary-100);
    color: var(--primary);
    flex-direction: column;
    line-height: 1.2;
    padding-top: 4px;
}

.day.today::after {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--primary);
}

/* Reminder split */
.reminder {
    padding: 60px 24px 130px;
}

.reminder .container-narrow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 56px;
}

.reminder-copy {
    flex: 1 1 320px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.reminder-copy h3 {
    font-weight: 900;
    font-size: 30px;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.lead {
    font-size: 17px;
    line-height: 1.6;
    color: var(--muted);
    max-width: 380px;
}

.reminder-art {
    flex: 1 1 480px;
    min-height: 280px;
    border-radius: 32px;
    background: var(--tint-coral);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.notif {
    width: 100%;
    max-width: 380px;
    padding: 18px 20px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 30px 60px -30px rgba(177, 78, 47, 0.45);
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.notif .notif-app-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    box-shadow: 0 0 0 1px #F1E4DE;
}

.notif-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.notif-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.notif-top strong {
    font-weight: 900;
    font-size: 15px;
}

.notif-top span {
    font-size: 13px;
    font-weight: 700;
    color: var(--muted-2);
}

.notif-msg {
    font-weight: 600;
    font-size: 15px;
    line-height: 1.45;
}

/* --------------------------------------------------------------------------
   3 · Widget band (Sồi rơi)
   -------------------------------------------------------------------------- */
.widget-band {
    background: var(--peach);
    padding: 130px 24px;
}

.widget-band .split {
    flex-wrap: wrap-reverse;
}

.widget-band .kicker,
.widget-band .band-title {
    color: var(--bark-deep);
}

.widget-band .band-desc {
    color: #5A2A1A;
}

.widgets {
    flex: 1 1 460px;
    display: flex;
    justify-content: center;
}

.widgets-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.widgets-row {
    display: flex;
    gap: 24px;
}

.w-small {
    width: 170px;
    height: 170px;
    border-radius: 22px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.w-today {
    background: #fff;
    gap: 2px;
}

.w-label {
    font-weight: 800;
    font-size: 12px;
    color: var(--neutral);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.w-count {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.w-count b {
    font-weight: 900;
    font-size: 36px;
    color: var(--primary-900);
}

.w-count span {
    font-weight: 800;
    font-size: 16px;
    color: var(--neutral);
}

.w-dots {
    display: flex;
    gap: 4px;
}

.w-dots span {
    width: 10px;
    height: 10px;
    border-radius: 5px;
    background: var(--line);
    transition: background .3s;
}

.w-dots span.on {
    background: var(--amber);
}

.w-streak-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 2px;
    font-weight: 900;
    font-size: 13px;
    color: var(--orange);
}

.w-streak-badge img,
.w-streak-line img {
    width: 14px;
    height: 14px;
}

.w-week {
    background: #FFF6EA;
}

.w-week .w-label {
    color: var(--bark);
}

.w-week-days {
    font-weight: 900;
    font-size: 30px;
    color: var(--orange);
    line-height: 1.1;
    margin-top: 4px;
}

.w-week-sub {
    font-weight: 700;
    font-size: 13px;
    color: var(--neutral);
}

.w-week .week-grid {
    margin-top: auto;
    gap: 2px;
}

.w-week .week-grid span:last-of-type {
    color: var(--orange);
    font-weight: 800;
}

.w-week .week-grid img {
    width: 18px;
    height: 18px;
}

.w-week .week-grid img.off {
    filter: grayscale(1);
    opacity: 0.3;
}

.w-large {
    width: 364px;
    height: 382px;
    background: #fff;
    border-radius: 22px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.w-large-head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.pile {
    position: relative;
}

.pile-large {
    width: 88px;
    height: 72px;
    flex-shrink: 0;
}

.pile .acorn {
    position: absolute;
    display: block;
    transition: left .7s var(--ease-bounce), right .7s var(--ease-bounce), top .7s var(--ease-bounce), bottom .7s var(--ease-bounce);
    animation: sqAcornDrop .8s cubic-bezier(.45, 0, .55, 1) both;
}

.pile .acorn img {
    width: 100%;
    height: 100%;
    display: block;
}

.w-large-title {
    font-weight: 900;
    font-size: 22px;
    color: var(--primary-900);
}

.w-large-left {
    font-weight: 600;
    font-size: 14px;
    color: var(--neutral);
}

.w-streak-line {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 800;
    font-size: 13px;
    color: var(--orange);
    margin-top: 4px;
}

.w-divider {
    height: 1px;
    background: var(--line);
}

.w-task {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 2px;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
    min-height: 48px;
    border-radius: 12px;
}

.w-task:hover {
    background: var(--bg-soft);
}

.w-check {
    width: 26px;
    height: 26px;
    border-radius: 13px;
    border: 2px solid var(--c, var(--primary));
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .25s, border-color .25s;
}

.w-check svg {
    opacity: 0;
    transition: opacity .2s;
}

.w-task-text {
    flex: 1;
    min-width: 0;
}

.w-task-name {
    font-weight: 800;
    font-size: 15px;
    color: var(--ink-2);
}

.w-task-sub {
    font-weight: 600;
    font-size: 12px;
    color: var(--neutral);
}

.w-task[aria-pressed="true"] .w-check {
    background: var(--green-ok);
    border-color: var(--green-ok);
}

.w-task[aria-pressed="true"] .w-check svg {
    opacity: 1;
}

.w-task[aria-pressed="true"] .w-task-name {
    font-weight: 600;
    color: var(--faint);
    text-decoration: line-through;
}

.w-task[aria-pressed="true"] .w-task-sub {
    color: var(--faint);
}

.w-task .sub-done {
    display: none;
}

.w-task[aria-pressed="true"] .sub-todo {
    display: none;
}

.w-task[aria-pressed="true"] .sub-done {
    display: inline;
}

.w-hint {
    margin-top: auto;
    font-weight: 600;
    font-size: 12px;
    color: var(--faint);
    text-align: center;
}

/* --------------------------------------------------------------------------
   4 · Habits
   -------------------------------------------------------------------------- */
.habit {
    padding: 130px 24px 70px;
}

.habit .container-narrow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 56px;
}

.habit-copy {
    flex: 1 1 340px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.habit-copy .kicker {
    color: var(--green-deep);
}

.title-md {
    font-weight: 900;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.habit-art {
    flex: 1 1 480px;
    padding: 40px;
    border-radius: 32px;
    background: var(--tint-green);
    display: flex;
    justify-content: center;
}

.habit-card {
    width: 100%;
    max-width: 400px;
    padding: 24px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 30px 60px -30px rgba(62, 122, 39, 0.4);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.habit-card-title {
    font-weight: 900;
    font-size: 19px;
}

.field-label {
    font-size: 13px;
    font-weight: 800;
    color: var(--muted-2);
    text-transform: uppercase;
}

.chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.chip {
    padding: 8px 14px;
    border-radius: 999px;
    background: #F2F5F5;
    font-weight: 800;
    font-size: 14px;
    color: var(--muted-2);
}

.chip.on {
    background: var(--green);
    color: var(--ink);
}

.remind-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--bg-soft);
    font-weight: 800;
    font-size: 15px;
}

.remind-row strong {
    font-weight: 900;
    font-size: 20px;
}

.hashtag {
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 13px;
}

.hashtag.teal {
    background: var(--tint-teal);
    color: #067A82;
}

.hashtag.amber {
    background: var(--tint-amber);
    color: var(--bark);
}

/* Categories */
.cats {
    padding: 70px 24px 130px;
}

.cats .container-narrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
}

.cats-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.cats-head p {
    font-size: 17px;
    color: var(--muted);
}

.cats-grid {
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.cat {
    padding: 24px 16px;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 15px;
}

.cat .icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cat.teal { background: var(--tint-teal); }
.cat.teal .icon { background: var(--primary); }
.cat.amber { background: var(--tint-amber); }
.cat.amber .icon { background: var(--amber); }
.cat.coral { background: var(--tint-coral); }
.cat.coral .icon { background: #F29A7C; }
.cat.green { background: var(--tint-green); }
.cat.green .icon { background: var(--green); }

/* --------------------------------------------------------------------------
   Download + footer
   -------------------------------------------------------------------------- */
.download {
    background: var(--bg-hero);
    padding: 120px 24px 0;
}

.download .container-narrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
}

.download-title {
    text-align: center;
    font-weight: 900;
    font-size: clamp(36px, 4.6vw, 60px);
    line-height: 1.05;
    letter-spacing: -0.025em;
}

.download-cards {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: stretch;
}

.card-free {
    flex: 1 1 340px;
    padding: 36px;
    border-radius: 32px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 18px;
    box-shadow: 0 30px 60px -36px rgba(31, 42, 46, 0.3);
}

.card-free h3 {
    font-weight: 900;
    font-size: 24px;
}

.perks {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 16px;
    font-weight: 700;
}

.perks li {
    display: flex;
    gap: 10px;
    align-items: center;
}

.card-stores {
    flex: 1.4 1 420px;
    padding: 36px;
    border-radius: 32px;
    background: var(--band);
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.card-stores h3 {
    font-weight: 900;
    font-size: 30px;
    line-height: 1.15;
}

.card-stores p {
    font-size: 17px;
    line-height: 1.55;
    max-width: 420px;
    margin-top: 10px;
}

.store-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    position: relative;
}

.store-btn {
    height: 56px;
    padding: 0 22px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 16px;
    background: #fff;
    color: #000;
    text-decoration: none;
    font-weight: 900;
    font-size: 17px;
    transition: translate .2s;
}

.store-btn:hover {
    color: #000;
    translate: 0 -2px;
}

.stores-acorn {
    position: absolute;
    pointer-events: none;
    display: block;
}

.stores-acorn img {
    width: 100%;
    height: 100%;
    display: block;
    animation: sqRock 2.8s ease-in-out infinite;
    transform-origin: 50% 90%;
}

.stores-acorn.a1 {
    right: -28px;
    bottom: -36px;
    width: 170px;
    height: 170px;
    rotate: -18deg;
}

.stores-acorn.a2 {
    right: 120px;
    bottom: -14px;
    width: 64px;
    height: 64px;
    rotate: 24deg;
}

.stores-acorn.a2 img {
    animation-delay: -1.1s;
    animation-duration: 2.2s;
}

.site-footer {
    max-width: 1100px;
    margin: 100px auto 0;
    padding: 48px 0 34px;
    border-top: 1px solid rgba(31, 42, 46, 0.12);
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-brand {
    flex: 1 1 320px;
    max-width: 460px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-brand img {
    height: 32px;
    width: auto;
    align-self: flex-start;
}

.footer-brand p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--muted-2);
}

.socials {
    display: flex;
    gap: 10px;
}

.social {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(31, 42, 46, 0.12);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-2);
}

.social:hover {
    color: var(--primary-700);
    border-color: var(--primary);
}

.footer-bottom {
    padding-top: 22px;
    border-top: 1px solid rgba(31, 42, 46, 0.12);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--muted-2);
}

.footer-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-links a {
    padding: 12px;
    text-decoration: none;
    color: var(--muted-2);
}

.footer-links a:last-child {
    padding-right: 0;
}

.footer-links a:hover {
    color: var(--primary-700);
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */
/* Scroll reveal — elements ease in one after another as they enter the
   viewport (app.js staggers each batch via --reveal-delay). Cards "pop" with a
   little squirrel bounce; chat bubbles slide in from their side; the push
   notification drops in from the top. */
.reveal-on [data-reveal] {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
    transition:
        opacity .8s cubic-bezier(.22, 1, .36, 1) var(--reveal-delay, 0s),
        transform .9s cubic-bezier(.22, 1, .36, 1) var(--reveal-delay, 0s);
}

.reveal-on [data-reveal="rise"] {
    transform: translate3d(0, 64px, 0);
    transition-duration: 1s, 1.1s;
}

.reveal-on [data-reveal="pop"] {
    transform: translate3d(0, 26px, 0) scale(.94);
    transition:
        opacity .6s ease var(--reveal-delay, 0s),
        transform .75s var(--ease-bounce) var(--reveal-delay, 0s);
}

.reveal-on [data-reveal="left"] {
    transform: translate3d(-40px, 0, 0);
}

.reveal-on [data-reveal="right"] {
    transform: translate3d(40px, 0, 0);
}

.reveal-on [data-reveal="drop"] {
    transform: translate3d(0, -36px, 0) scale(.96);
    transition:
        opacity .5s ease var(--reveal-delay, 0s),
        transform .8s var(--ease-bounce) var(--reveal-delay, 0s);
}

.reveal-on [data-reveal].is-in {
    opacity: 1;
    transform: none;
}

/* Streak calendar: acorns pop in day by day once the calendar is revealed */
.reveal-on .calendar .day > img {
    scale: 0;
    opacity: 0;
}

.reveal-on .calendar.is-in .day > img {
    animation: sqAcornPop .55s var(--ease-bounce) both;
    animation-delay: calc(.35s + var(--i, 0) * 70ms);
}

.reveal-on .calendar .day.today {
    scale: .6;
    opacity: 0;
}

.reveal-on .calendar.is-in .day.today {
    animation: sqAcornPop .55s var(--ease-bounce) both;
    animation-delay: calc(.35s + var(--i, 0) * 70ms);
}

@keyframes sqAcornPop {
    0% { scale: 0; opacity: 0; rotate: -25deg; }
    60% { opacity: 1; }
    100% { scale: 1; opacity: 1; rotate: 0deg; }
}

@keyframes sqFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes sqAcornDrop { 0% { translate: 0 -260%; opacity: 0; } 12% { opacity: 1; } 62% { translate: 0 0; } 76% { translate: 0 -14%; } 88% { translate: 0 0; } 94% { translate: 0 -4%; } 100% { translate: 0 0; } }
@keyframes sqPulse {
    0% { box-shadow: 0 6px 12px -4px rgba(3, 41, 43, .35), 0 0 0 0 rgba(12, 196, 206, .55); }
    70% { box-shadow: 0 6px 12px -4px rgba(3, 41, 43, .35), 0 0 0 18px rgba(12, 196, 206, 0); }
    100% { box-shadow: 0 6px 12px -4px rgba(3, 41, 43, .35), 0 0 0 0 rgba(12, 196, 206, 0); }
}
@keyframes sqNudge { 0%, 60%, 100% { scale: 1; rotate: 0deg; } 68% { scale: 1.12; rotate: -8deg; } 76% { scale: 1.08; rotate: 6deg; } 84% { scale: 1.1; rotate: 0deg; } }
@keyframes sqWave { 0%, 100% { scale: 1 .35; } 50% { scale: 1 1; } }
@keyframes sqStepIn { 0% { opacity: 0; translate: -48px 16px; } 60% { opacity: 1; translate: 6px 0; } 100% { opacity: 1; translate: 0 0; } }
@keyframes sqBob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -4px; } }
@keyframes sqWiggle { 0%, 100% { rotate: 0deg; translate: 0 0; } 10% { rotate: -1.6deg; translate: 0 -3px; } 20% { rotate: 1.4deg; translate: 0 -3px; } 30% { rotate: -.8deg; translate: 0 -1px; } 40% { rotate: 0deg; translate: 0 0; } }
@keyframes sqRock { 0%, 100% { rotate: 0deg; } 15% { rotate: -7deg; } 30% { rotate: 5deg; } 45% { rotate: -3deg; } 60% { rotate: 0deg; } }

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .site-header {
        flex-wrap: nowrap;
    }

    .menu-toggle {
        display: flex;
    }

    /* Hamburger menu: the nav becomes a dropdown panel under the header */
    .nav {
        position: absolute;
        top: calc(100% - 8px);
        right: 16px;
        width: min(360px, calc(100% - 32px));
        z-index: 50;
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 2px;
        padding: 8px;
        border-radius: 20px;
        background: #fff;
        box-shadow: 0 24px 48px -20px rgba(3, 41, 43, 0.35), 0 0 0 1px rgba(31, 42, 46, 0.06);
        opacity: 0;
        visibility: hidden;
        translate: 0 -8px;
        transition: opacity .2s ease, translate .2s ease, visibility 0s linear .2s;
    }

    .nav.open {
        opacity: 1;
        visibility: visible;
        translate: 0 0;
        transition: opacity .2s ease, translate .2s ease;
    }

    .nav a {
        padding: 14px 16px;
        border-radius: 14px;
        font-size: 16px;
    }

    .nav a:hover {
        background: var(--primary-100);
    }

    .header-lang {
        display: none;
    }

    .nav-lang {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-top: 6px;
        padding: 10px 8px 4px 16px;
        border-top: 1px solid var(--line);
        font-weight: 700;
        font-size: 16px;
    }

    .nav-lang .lang-toggle {
        background: var(--bg-soft);
    }
}

@media (max-width: 760px) {
    .band,
    .widget-band,
    .soc {
        padding: 96px 20px;
    }

    .soc-card {
        padding: 22px 18px;
    }

    .soc-art {
        padding: 16px;
    }

    .vv-line {
        font-size: 17px;
    }

    .va-value {
        font-size: 54px;
    }

    /* One task per row, so tagging them never reflows the gauge */
    .va-tasks {
        flex-direction: column;
        align-items: center;
    }

    .streak-panel,
    .reminder-art,
    .habit-art {
        padding: 24px 16px;
    }

    .streak-mascot {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 440px) {
    .site-header {
        padding: 16px;
    }

    .brand-word {
        display: none;
    }

    .header-actions {
        gap: 6px;
    }

    .brand-mark {
        width: 60px;
        height: 32px;
    }

    .btn-dark {
        padding: 0 14px;
    }

    .hero-title br {
        display: none;
    }

    .widgets-row {
        gap: 12px;
    }

    .w-small {
        width: calc(50vw - 26px);
        height: calc(50vw - 26px);
        min-width: 150px;
        min-height: 150px;
    }

    .w-large {
        width: 100%;
    }

    .day,
    .day img {
        width: 36px;
        height: 36px;
    }
}

/* Header / footer share the hero and download backgrounds */
/* Sticky header: stays on top while scrolling, gains a soft edge once the
   page has moved */
.header-wrap {
    position: sticky;
    top: 0;
    z-index: 60;
    background: var(--bg-hero);
    transition: box-shadow .25s ease, background-color .25s ease;
}

.header-wrap.scrolled {
    background: rgba(238, 248, 249, 0.92);
    -webkit-backdrop-filter: saturate(1.4) blur(12px);
    backdrop-filter: saturate(1.4) blur(12px);
    box-shadow: 0 1px 0 rgba(31, 42, 46, 0.08), 0 10px 24px -18px rgba(3, 41, 43, 0.35);
}



.footer-wrap {
    display: flow-root;
    background: var(--bg-hero);
    padding: 0 24px;
}
