/* ============================================================================
   DetoxBrain — Landing site
   System-font design · Mist (light) + Night (dark) themes.
   ============================================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Mist (light) */
  --bg: #EEF1F5;
  --paper: #F6F8FB;
  --surface: #FFFFFF;
  --ink: #121821;
  --ink2: #3E4855;
  --ink3: #646F7D;
  --mute: #9AA4B2;
  --hair: #DDE3EB;
  --hair-soft: #E9EDF3;
  --accent: #198849;
  --accent-deep: #157A44;
  --accent-soft: #CDF5DD;
  --accent-faint: #E7F7EE;
  --leaf: #4C775C;
  --sky: #427392;
  --sun: #996E25;
  --sun-faint: #FBF1DE;
  --sun-text: #8A6420;
  --rose: #B04A63;
  --rose-faint: #F7E7EB;
  --rose-text: #6E4756;

  /* Mascot (light) */
  --m-body: #C6ECD5;
  --m-stroke: #1FA85A;
  --m-gyri: #8AD0A8;
  --m-eye: #243528;
  --m-leaf: #3FBE77;
  --m-cheek: rgba(31, 168, 90, 0.15);

  /* Brand gradient — marketing only (allowed per DESIGN_SYSTEM §2.6: gradient for icon/marketing) */
  --grad: linear-gradient(150deg, #157A45 0%, #0A4429 100%);
  --grad-soft: linear-gradient(160deg, #EAF8F0 0%, #E2F2FB 100%);

  /* App-icon colors for brand chips (third-party brand colors) */
  --brand-tiktok: #1A1A1A;
  --brand-ig: #C7477F;
  --brand-yt: #D64541;

  /* Radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 100px;

  /* Shadows — subtle only (DESIGN_SYSTEM §6) */
  --shadow-card: 0 1px 2px rgba(16, 20, 25, 0.04), 0 8px 24px rgba(16, 20, 25, 0.05);
  --shadow-float: 0 18px 50px rgba(16, 20, 25, 0.12), 0 4px 14px rgba(16, 20, 25, 0.06);
  --shadow-device: 0 40px 90px -30px rgba(16, 20, 25, 0.35), 0 8px 30px rgba(16, 20, 25, 0.12);

  /* Type */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-round: ui-rounded, "SF Pro Rounded", "Hiragino Maru Gothic ProN", var(--font-sans);
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", "Menlo", monospace;

  --maxw: 1120px;
  --nav-h: 64px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101419;
    --paper: #151A21;
    --surface: #1C222B;
    --ink: #E8EDF4;
    --ink2: #AFBAC8;
    --ink3: #7E8998;
    --mute: #4E5866;
    --hair: #2A313B;
    --hair-soft: #202730;
    --accent: #4FCB85;
    --accent-deep: #8CE6AF;
    --accent-soft: rgba(79, 203, 133, 0.18);
    --accent-faint: rgba(79, 203, 133, 0.10);
    --leaf: #7FB894;
    --sky: #7FB0CC;
    --sun: #DDB264;
    --sun-faint: rgba(221, 178, 100, 0.12);
    --sun-text: #DDB264;
    --rose: #D98098;
    --rose-faint: rgba(217, 128, 152, 0.12);
    --rose-text: #D98098;

    --m-body: #233329;
    --m-stroke: #4FCB85;
    --m-gyri: #3C7B57;
    --m-eye: #E4EFE8;
    --m-leaf: #6FDDA0;
    --m-cheek: rgba(92, 203, 138, 0.28);

    --grad: linear-gradient(150deg, #157A45 0%, #0A4429 100%);
    --grad-soft: linear-gradient(160deg, #18201E 0%, #141C24 100%);

    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 28px rgba(0, 0, 0, 0.35);
    --shadow-float: 0 20px 55px rgba(0, 0, 0, 0.5);
    --shadow-device: 0 40px 90px -25px rgba(0, 0, 0, 0.65), 0 8px 30px rgba(0, 0, 0, 0.4);
  }
}

/* Manual theme override (data-theme wins over prefers) */
:root[data-theme="dark"] {
  --bg: #101419; --paper: #151A21; --surface: #1C222B;
  --ink: #E8EDF4; --ink2: #AFBAC8; --ink3: #7E8998; --mute: #4E5866;
  --hair: #2A313B; --hair-soft: #202730;
  --accent: #4FCB85; --accent-deep: #8CE6AF; --accent-soft: rgba(79,203,133,0.18); --accent-faint: rgba(79,203,133,0.10);
  --leaf: #7FB894; --sky: #7FB0CC; --sun: #DDB264; --sun-faint: rgba(221,178,100,0.12); --sun-text: #DDB264;
  --rose: #D98098; --rose-faint: rgba(217,128,152,0.12); --rose-text: #D98098;
  --m-body: #233329; --m-stroke: #4FCB85; --m-gyri: #3C7B57; --m-eye: #E4EFE8; --m-leaf: #6FDDA0; --m-cheek: rgba(92,203,138,0.28);
  --grad: linear-gradient(150deg, #157A45 0%, #0A4429 100%);
  --grad-soft: linear-gradient(160deg, #18201E 0%, #141C24 100%);
  --shadow-card: 0 1px 2px rgba(0,0,0,0.3), 0 10px 28px rgba(0,0,0,0.35);
  --shadow-float: 0 20px 55px rgba(0,0,0,0.5);
  --shadow-device: 0 40px 90px -25px rgba(0,0,0,0.65), 0 8px 30px rgba(0,0,0,0.4);
}
:root[data-theme="light"] {
  --bg: #EEF1F5; --paper: #F6F8FB; --surface: #FFFFFF;
  --ink: #121821; --ink2: #3E4855; --ink3: #646F7D; --mute: #9AA4B2;
  --hair: #DDE3EB; --hair-soft: #E9EDF3;
  --accent: #198849; --accent-deep: #157A44; --accent-soft: #CDF5DD; --accent-faint: #E7F7EE;
  --leaf: #4C775C; --sky: #427392; --sun: #996E25; --sun-faint: #FBF1DE; --sun-text: #8A6420;
  --rose: #B04A63; --rose-faint: #F7E7EB; --rose-text: #6E4756;
  --m-body: #C6ECD5; --m-stroke: #1FA85A; --m-gyri: #8AD0A8; --m-eye: #243528; --m-leaf: #3FBE77; --m-cheek: rgba(31,168,90,0.15);
  --grad: linear-gradient(150deg, #157A45 0%, #0A4429 100%);
  --grad-soft: linear-gradient(160deg, #EAF8F0 0%, #E2F2FB 100%);
  --shadow-card: 0 1px 2px rgba(16,20,25,0.04), 0 8px 24px rgba(16,20,25,0.05);
  --shadow-float: 0 18px 50px rgba(16,20,25,0.12), 0 4px 14px rgba(16,20,25,0.06);
  --shadow-device: 0 40px 90px -30px rgba(16,20,25,0.35), 0 8px 30px rgba(16,20,25,0.12);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- Layout ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; position: relative; }
.section-sm { padding: 64px 0; }
@media (max-width: 720px) { .section { padding: 68px 0; } }

.eyebrow {
  font-size: 12.5px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--accent-deep); display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--accent); }

h1, h2, h3 { font-family: var(--font-round); letter-spacing: -0.02em; line-height: 1.08; font-weight: 700; color: var(--ink); }
.h-hero { font-size: clamp(2.6rem, 6vw, 4.4rem); }
.h-sec { font-size: clamp(2rem, 4vw, 3rem); }
.h-sub { font-size: clamp(1.35rem, 2.4vw, 1.7rem); font-weight: 650; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink2); line-height: 1.6; }
.muted { color: var(--ink3); }
.accent-word { color: var(--accent-deep); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 26px; border-radius: var(--r-pill);
  font-size: 1rem; font-weight: 600; white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, opacity .18s ease;
}
.btn-primary { background: var(--ink); color: var(--bg); box-shadow: var(--shadow-card); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-float); }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--hair); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-deep); transform: translateY(-2px); }

/* Store badge buttons */
.badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store-badge {
  display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 22px;
  border-radius: var(--r-md); background: var(--ink); color: var(--bg);
  box-shadow: var(--shadow-card); transition: transform .18s ease, box-shadow .18s ease;
  position: relative;
}
.store-badge:hover { transform: translateY(-2px); box-shadow: var(--shadow-float); }
.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge .sb-txt { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.store-badge .sb-small { font-size: 10.5px; opacity: .82; letter-spacing: .3px; }
.store-badge .sb-big { font-size: 17px; font-weight: 650; font-family: var(--font-round); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent; transition: border-color .3s ease, background .3s ease;
}
.nav.scrolled { border-bottom-color: var(--hair); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: 0; font-family: var(--font-round); font-weight: 700; font-size: 1.18rem; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: var(--shadow-card); flex: none; }
.brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a { padding: 8px 14px; border-radius: var(--r-pill); font-size: 0.95rem; font-weight: 550; color: var(--ink2); transition: background .18s, color .18s; }
.nav-links a:hover { background: var(--accent-faint); color: var(--accent-deep); }
.nav-tools { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: var(--r-pill); display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink2); border: 1px solid var(--hair); background: var(--surface); transition: color .18s, border-color .18s, transform .18s;
}
.icon-btn:hover { color: var(--accent-deep); border-color: var(--accent); }
.icon-btn svg { width: 19px; height: 19px; }
.lang-select {
  height: 40px; min-width: 0; max-width: 168px; padding: 0 32px 0 14px;
  border: 1px solid var(--hair); border-radius: var(--r-pill); background-color: var(--surface);
  color: var(--ink2); font: 600 0.82rem/1 var(--font-sans); cursor: pointer;
  white-space: nowrap; text-overflow: ellipsis;
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239AA4B2' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  transition: color .18s, border-color .18s;
}
.lang-select:hover { color: var(--accent-deep); border-color: var(--accent); }
.nav-burger { display: none; }
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
}
@media (max-width: 400px) {
  .nav .wrap { padding: 0 16px; }
  .nav-tools { gap: 6px; }
  .lang-select { max-width: 118px; height: 38px; padding: 0 28px 0 10px; }
  .icon-btn { width: 38px; height: 38px; }
  .brand { font-size: 1.08rem; gap: 9px; }
}

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 49;
  background: var(--bg); border-bottom: 1px solid var(--hair);
  padding: 12px 24px 22px; display: none; flex-direction: column; gap: 4px;
  box-shadow: var(--shadow-float);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 13px 8px; border-radius: var(--r-md); font-weight: 600; color: var(--ink); }
.mobile-menu a:hover { background: var(--accent-faint); color: var(--accent-deep); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 64px 0 40px; overflow: hidden; }
.hero-glow {
  position: absolute; z-index: 0; width: 900px; height: 900px; border-radius: 50%;
  top: -420px; right: -260px; pointer-events: none;
  background: radial-gradient(circle, var(--accent-faint) 0%, transparent 62%);
  opacity: .9;
}
.hero-glow.two { top: auto; bottom: -560px; left: -320px; right: auto; background: radial-gradient(circle, color-mix(in srgb, var(--sky) 14%, transparent) 0%, transparent 62%); }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero-copy { max-width: 560px; }
.hero-copy h1 { margin: 20px 0 20px; }
.hero-copy .lead { max-width: 500px; }
.hero-cta { margin-top: 34px; }
.hero-note { margin-top: 18px; font-size: 0.9rem; color: var(--ink3); display: flex; align-items: center; gap: 8px; }
.hero-note .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 0 4px color-mix(in srgb, var(--leaf) 18%, transparent); }
.hero-visual { display: flex; justify-content: center; position: relative; }
@media (max-width: 940px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-copy { max-width: 620px; margin: 0 auto; }
  .hero-copy .lead, .hero-copy { margin-inline: auto; }
  .hero-cta .badges { justify-content: center; }
  .hero-note { justify-content: center; }
  .eyebrow { justify-content: center; }
}

/* ---------- Device (phone) mockup ---------- */
.device {
  --dw: 300px; width: min(var(--dw), 100%); flex: none; position: relative;
  aspect-ratio: 300 / 620; border-radius: 46px;
  background: #0c0f13; padding: 12px;
  box-shadow: var(--shadow-device);
  border: 1px solid rgba(255,255,255,0.06);
}
.device::before { /* side button */
  content: ""; position: absolute; right: -2px; top: 150px; width: 3px; height: 62px; border-radius: 3px; background: #26292e;
}
.device-screen {
  width: 100%; height: 100%; border-radius: 36px; overflow: hidden; position: relative;
  background: var(--bg); display: flex; flex-direction: column;
}
.device-island {
  position: absolute; top: 11px; left: 50%; transform: translateX(-50%); z-index: 5;
  width: 88px; height: 26px; border-radius: 100px; background: #0c0f13;
}
.screen-scroll { padding: 46px 14px 16px; height: 100%; overflow: hidden; }

/* Float animation on hero device */
.floaty { animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ---------- In-app UI recreations ---------- */
.app-statusbar { display: flex; justify-content: space-between; align-items: center; padding: 0 8px 8px; font-size: 12px; font-weight: 650; color: var(--ink2); font-family: var(--font-round); }
.app-statusbar .sb-icons { display: inline-flex; gap: 5px; align-items: center; }
.app-kicker { font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink3); padding: 0 6px; }
.app-h { font-family: var(--font-round); font-size: 22px; font-weight: 700; letter-spacing: -0.02em; padding: 2px 6px 12px; }
.app-h .accent-word { color: var(--accent-deep); }

.ring-wrap { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0 12px; }
.usage-ring { position: relative; width: 176px; height: 176px; }
.usage-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.usage-ring .track { fill: none; stroke: var(--hair-soft); stroke-width: 13; }
.usage-ring .prog { fill: none; stroke: var(--accent); stroke-width: 13; stroke-linecap: round;
  stroke-dasharray: var(--circ); stroke-dashoffset: var(--circ); transition: stroke-dashoffset 1.2s cubic-bezier(.22,1,.36,1); }
.usage-ring.in-view .prog { stroke-dashoffset: var(--target); }
.ring-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-center .big { font-family: var(--font-round); font-size: 34px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.ring-center .small { font-size: 12px; color: var(--ink3); margin-top: 2px; }

.mascot-card, .app-card {
  background: var(--surface); border: 0.5px solid var(--hair); border-radius: var(--r-lg);
  margin: 6px; padding: 12px; box-shadow: var(--shadow-card);
}
.mascot-card { display: flex; align-items: center; gap: 12px; }
.mascot-card .m-ic { width: 46px; height: 46px; flex: none; }
.mascot-card .m-txt { flex: 1; }
.mascot-card .m-title { font-weight: 650; font-size: 14px; color: var(--ink); }
.mascot-card .m-sub { font-size: 12px; color: var(--ink3); }
.streak-badge { display: inline-flex; align-items: center; gap: 4px; background: var(--accent-faint); color: var(--accent-deep); border: 0.5px solid var(--accent-soft); border-radius: var(--r-pill); padding: 4px 10px; font-size: 12px; font-weight: 700; font-family: var(--font-round); }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 6px; }
.stat-tile { background: var(--surface); border: 0.5px solid var(--hair); border-radius: var(--r-md); padding: 12px 8px; text-align: center; box-shadow: var(--shadow-card); }
.stat-tile .num { font-family: var(--font-round); font-size: 18px; font-weight: 700; color: var(--ink); letter-spacing: -0.03em; white-space: nowrap; }
.stat-tile .lbl { font-size: 10.5px; color: var(--ink3); margin-top: 2px; }

.section-label { font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--ink3); display: flex; justify-content: space-between; align-items: center; padding: 12px 12px 6px; }
.section-label .link { color: var(--accent-deep); font-weight: 650; text-transform: none; letter-spacing: 0; font-size: 12px; }

.app-list { display: flex; flex-direction: column; gap: 8px; margin: 0 6px; }
.app-row { display: flex; align-items: center; gap: 11px; background: var(--surface); border: 0.5px solid var(--hair); border-radius: var(--r-md); padding: 10px 12px; position: relative; overflow: hidden; }
.app-row .ic { width: 34px; height: 34px; border-radius: 9px; flex: none; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 15px; font-family: var(--font-round); }
.app-row .meta { flex: 1; min-width: 0; }
.app-row .nm { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.app-row .op { font-size: 11px; color: var(--ink3); }
.app-row .tm { font-family: var(--font-round); font-weight: 650; font-size: 14px; color: var(--ink); }
.app-row .fill { position: absolute; right: 0; top: 0; bottom: 0; background: var(--accent-faint); z-index: 0; }
.app-row > * { position: relative; z-index: 1; }

.goal-card { background: var(--surface); border: 0.5px solid var(--hair); border-radius: var(--r-md); margin: 6px; padding: 12px; box-shadow: var(--shadow-card); }
.goal-top { display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: 8px; }
.goal-top .l { font-weight: 650; color: var(--ink); }
.goal-top .r { color: var(--accent-deep); font-weight: 650; }
.goal-track { height: 8px; border-radius: 100px; background: var(--hair-soft); overflow: hidden; }
.goal-bar { height: 100%; border-radius: 100px; background: var(--accent); width: 0; transition: width 1.2s cubic-bezier(.22,1,.36,1); }
.in-view .goal-bar { width: var(--goal, 62%); }

/* Shield screen recreation */
.shield-screen { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px 22px; gap: 4px; background: linear-gradient(180deg, var(--accent-faint), var(--bg)); }
.shield-screen .m-ic { width: 92px; height: 92px; margin-bottom: 10px; }
.shield-screen .sh-title { font-family: var(--font-round); font-size: 21px; font-weight: 700; color: var(--ink); }
.shield-screen .sh-body { font-size: 13px; color: var(--ink2); max-width: 220px; margin: 6px auto 18px; }
.shield-screen .sh-btn { width: 100%; height: 46px; border-radius: var(--r-pill); background: var(--ink); color: var(--bg); font-weight: 650; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.shield-screen .sh-link { margin-top: 12px; font-size: 12.5px; color: var(--accent-deep); font-weight: 600; }
.shield-pill { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border: 0.5px solid var(--hair); border-radius: 100px; padding: 5px 12px; font-size: 11px; font-weight: 650; color: var(--leaf); }

/* Focus timer recreation */
.focus-screen { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; gap: 16px; }
.focus-ring { position: relative; width: 190px; height: 190px; }
.focus-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.focus-ring .track { fill: none; stroke: var(--hair-soft); stroke-width: 12; }
.focus-ring .prog { fill: none; stroke: var(--sky); stroke-width: 12; stroke-linecap: round; stroke-dasharray: var(--circ); stroke-dashoffset: calc(var(--circ) * 0.28); }
.focus-ring .fc { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.focus-ring .fc .t { font-family: var(--font-round); font-size: 40px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.focus-ring .fc .s { font-size: 12px; color: var(--sky); font-weight: 650; margin-top: 2px; }

/* Bar chart recreation */
.bars { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; height: 130px; padding: 12px 12px 0; }
.bar { flex: 1; border-radius: 6px 6px 0 0; background: var(--accent-soft); height: var(--h, 40%); transform-origin: bottom; transform: scaleY(0); transition: transform .7s cubic-bezier(.22,1,.36,1); }
.bar.today { background: var(--accent); }
.in-view .bar { transform: scaleY(1); }
.bars-x { display: flex; justify-content: space-between; gap: 6px; padding: 6px 12px 0; }
.bars-x span { flex: 1; text-align: center; font-size: 9.5px; color: var(--ink3); }

/* ---------- Feature sections ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature.rev .feature-media { order: 2; }
.feature.rev .feature-copy { order: 1; }
.feature-copy h2 { margin: 16px 0 18px; }
.feature-media { display: flex; justify-content: center; position: relative; }
.feature + .feature { margin-top: 108px; }
@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; gap: 36px; text-align: center; }
  .feature.rev .feature-media, .feature.rev .feature-copy { order: initial; }
  .feature .eyebrow { justify-content: center; }
  .feature + .feature { margin-top: 72px; }
}

.feat-list { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.feat-list li { display: flex; gap: 12px; align-items: flex-start; text-align: left; }
.feat-list .tick { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-faint); color: var(--accent-deep); display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.feat-list .tick svg { width: 13px; height: 13px; }
.feat-list b { color: var(--ink); font-weight: 650; }
.feat-list span { color: var(--ink2); font-size: 0.98rem; }
@media (max-width: 900px) { .feat-list { max-width: 460px; margin-inline: auto; } }

/* ---------- Pillars grid ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 52px; }
.pillar { background: var(--surface); border: 0.5px solid var(--hair); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow-card); transition: transform .22s ease, box-shadow .22s ease; }
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-float); }
.pillar .p-ic { width: 46px; height: 46px; border-radius: var(--r-md); background: var(--accent-faint); color: var(--accent-deep); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.pillar .p-ic svg { width: 23px; height: 23px; }
.pillar h3 { font-size: 1.2rem; margin-bottom: 8px; }
.pillar p { color: var(--ink2); font-size: 0.97rem; }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; gap: 14px; } }

/* ---------- Privacy banner ---------- */
.privacy-band { background: var(--grad-soft); border-top: 0.5px solid var(--hair); border-bottom: 0.5px solid var(--hair); }
.privacy-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.privacy-quote { font-family: var(--font-round); font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; }
.privacy-quote em { color: var(--accent-deep); font-style: normal; }
.privacy-facts { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.privacy-facts li { display: flex; gap: 13px; align-items: flex-start; background: var(--surface); border: 0.5px solid var(--hair); border-radius: var(--r-md); padding: 15px 17px; box-shadow: var(--shadow-card); }
.privacy-facts .x { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--rose-faint); color: var(--rose-text); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.privacy-facts b { color: var(--ink); }
.privacy-facts span { color: var(--ink2); font-size: 0.95rem; }
@media (max-width: 860px) { .privacy-inner { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Mascot showcase ---------- */
.moods { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 48px; }
.mood { background: var(--surface); border: 0.5px solid var(--hair); border-radius: var(--r-lg); padding: 22px 14px 18px; text-align: center; box-shadow: var(--shadow-card); }
.mood .mstage { height: 96px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.mood .mstage svg { width: 78px; height: 84px; overflow: visible; }
.mood h4 { font-family: var(--font-round); font-size: 0.98rem; font-weight: 650; margin-bottom: 3px; }
.mood p { font-size: 0.8rem; color: var(--ink3); line-height: 1.4; }
@media (max-width: 860px) { .moods { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .moods { grid-template-columns: 1fr 1fr; gap: 10px; } .mood .mstage { height: 78px; } }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; align-items: stretch; }
.plan { background: var(--surface); border: 0.5px solid var(--hair); border-radius: var(--r-xl); padding: 30px 26px; display: flex; flex-direction: column; box-shadow: var(--shadow-card); position: relative; }
.plan.featured { border: 1.5px solid var(--accent); box-shadow: var(--shadow-float); }
.plan .tag { position: absolute; top: 20px; right: 22px; font-size: 10.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--accent-deep); background: var(--accent-faint); padding: 5px 11px; border-radius: var(--r-pill); }
.plan h3 { font-size: 1.3rem; }
.plan .price { font-family: var(--font-round); margin: 14px 0 4px; }
.plan .price .amt { font-size: 2.6rem; font-weight: 700; letter-spacing: -0.03em; }
.plan .price .per { font-size: 0.95rem; color: var(--ink3); font-family: var(--font-sans); }
.plan .price .strike { font-size: 1.1rem; color: var(--mute); text-decoration: line-through; margin-right: 8px; }
.plan .p-note { font-size: 0.88rem; color: var(--ink3); margin-bottom: 20px; min-height: 20px; }
.plan ul { list-style: none; display: flex; flex-direction: column; gap: 11px; margin-bottom: 22px; flex: 1; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.94rem; color: var(--ink2); }
.plan li svg { flex: none; width: 16px; height: 16px; color: var(--accent-deep); margin-top: 3px; }
.plan .btn { width: 100%; }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } }

.price-foot { text-align: center; margin-top: 28px; font-size: 0.92rem; color: var(--ink3); }
.price-foot b { color: var(--ink2); }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-card { background: var(--grad); border-radius: var(--r-xl); padding: 62px 32px; text-align: center; color: #fff; position: relative; overflow: hidden; box-shadow: var(--shadow-float); }
.cta-card h2 { color: #fff; }
.cta-card p { color: #fff; max-width: 520px; margin: 16px auto 30px; font-size: 1.1rem; }
.cta-card .badges { justify-content: center; }
.cta-card .store-badge { background: #fff; color: #101419; }
.cta-mascot { width: 76px; height: 82px; margin: 0 auto 20px; overflow: visible; }

/* ---------- Footer ---------- */
.footer { border-top: 0.5px solid var(--hair); padding: 56px 0 40px; background: var(--paper); }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand { max-width: 320px; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { color: var(--ink3); font-size: 0.92rem; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h5 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1px; color: var(--ink3); margin-bottom: 14px; font-weight: 700; }
.footer-col a { display: block; padding: 6px 0; color: var(--ink2); font-size: 0.94rem; transition: color .18s; }
.footer-col a:hover { color: var(--accent-deep); }
.footer-bottom { margin-top: 46px; padding-top: 22px; border-top: 0.5px solid var(--hair); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.86rem; color: var(--ink3); }
.footer-bottom a { color: var(--ink3); }
.footer-bottom a:hover { color: var(--accent-deep); }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1); }
.reveal.in-view { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

/* ---------- Mascot animation (breathe + blink) ---------- */
.mascot-anim { animation: breathe 3.4s ease-in-out infinite; transform-origin: center 70%; }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.045); } }
.mascot-eyes { animation: blink 4.6s infinite; transform-origin: center 62%; transform-box: fill-box; }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 96% { transform: scaleY(0.1); } }
.mz { animation: zfloat 3.6s ease-in-out infinite; }
@keyframes zfloat { 0% { opacity: 0; transform: translate(0, 4px) scale(.9); } 30% { opacity: .9; } 100% { opacity: 0; transform: translate(6px, -14px) scale(1.1); } }
.spin-slow { animation: spin 5.5s linear infinite; transform-box: view-box; transform-origin: center; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Legal / content pages ---------- */
.doc-hero { padding: 56px 0 22px; }
.doc-hero .eyebrow { margin-bottom: 14px; }
.doc-hero h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
.doc-hero .meta { margin-top: 14px; color: var(--ink3); font-size: 0.92rem; }
.doc { max-width: 760px; margin: 0 auto; padding: 24px 24px 90px; }
.doc h2 { font-size: 1.55rem; margin: 44px 0 14px; padding-top: 10px; }
.doc h3 { font-size: 1.18rem; margin: 30px 0 10px; font-family: var(--font-round); }
.doc h4 { font-size: 1.02rem; margin: 22px 0 8px; font-weight: 650; color: var(--ink); }
.doc p { color: var(--ink2); margin: 12px 0; }
.doc ul, .doc ol { margin: 12px 0 12px 4px; padding-left: 22px; color: var(--ink2); }
.doc li { margin: 7px 0; }
.doc a { color: var(--accent-deep); font-weight: 550; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--accent-soft); }
.doc a:hover { text-decoration-color: var(--accent); }
.doc strong, .doc b { color: var(--ink); font-weight: 650; }
.doc hr { border: none; border-top: 0.5px solid var(--hair); margin: 40px 0; }
.doc blockquote { border-left: 3px solid var(--accent); background: var(--accent-faint); border-radius: 0 var(--r-md) var(--r-md) 0; padding: 14px 18px; margin: 20px 0; color: var(--ink2); }
.doc blockquote p { margin: 6px 0; }
.doc .table-scroll { overflow-x: auto; margin: 18px 0; border: 0.5px solid var(--hair); border-radius: var(--r-md); }
.doc table { border-collapse: collapse; width: 100%; font-size: 0.92rem; min-width: 440px; }
.doc th, .doc td { text-align: left; padding: 11px 14px; border-bottom: 0.5px solid var(--hair); color: var(--ink2); vertical-align: top; }
.doc th { background: var(--paper); color: var(--ink); font-weight: 650; font-size: 0.82rem; text-transform: uppercase; letter-spacing: .4px; }
.doc tr:last-child td { border-bottom: none; }
.doc .callout { background: var(--sun-faint); border: 0.5px solid color-mix(in srgb, var(--sun) 30%, transparent); border-radius: var(--r-md); padding: 16px 18px; margin: 20px 0; }
.doc .callout p { color: var(--sun-text); margin: 4px 0; }
.doc code { font-family: var(--font-mono); font-size: 0.86em; background: var(--hair-soft); padding: 2px 6px; border-radius: 5px; color: var(--ink); }

.toc { background: var(--surface); border: 0.5px solid var(--hair); border-radius: var(--r-lg); padding: 20px 22px; margin: 24px auto 0; max-width: 760px; box-shadow: var(--shadow-card); }
.toc h5 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1px; color: var(--ink3); margin-bottom: 12px; }
.toc-links { display: flex; flex-wrap: wrap; gap: 8px; }
.toc-links a { font-size: 0.86rem; color: var(--accent-deep); background: var(--accent-faint); padding: 6px 12px; border-radius: var(--r-pill); font-weight: 550; }
.toc-links a:hover { background: var(--accent-soft); }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 40px auto 0; display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--surface); border: 0.5px solid var(--hair); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-card); }
.faq summary { padding: 18px 20px; font-weight: 650; color: var(--ink); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 1.02rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--accent-deep); font-weight: 400; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 20px 20px; color: var(--ink2); }
.faq .faq-body p { margin: 8px 0; }
.faq .faq-body a { color: var(--accent-deep); text-decoration: underline; }

/* Contact card */
.contact-card { max-width: 760px; margin: 40px auto 0; background: var(--grad-soft); border: 0.5px solid var(--hair); border-radius: var(--r-xl); padding: 40px; text-align: center; }
.contact-card .m-ic { width: 66px; height: 72px; margin: 0 auto 16px; overflow: visible; }
.contact-card h3 { font-size: 1.5rem; margin-bottom: 8px; }
.contact-card p { color: var(--ink2); max-width: 480px; margin: 0 auto 22px; }
.contact-email { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-round); font-weight: 650; font-size: 1.1rem; color: var(--accent-deep); background: var(--surface); border: 0.5px solid var(--hair); padding: 14px 24px; border-radius: var(--r-pill); box-shadow: var(--shadow-card); transition: transform .18s, box-shadow .18s; }
.contact-email:hover { transform: translateY(-2px); box-shadow: var(--shadow-float); }

/* Lang visibility */
[data-lang-vi] { display: none; }
:root[data-lang="vi"] [data-lang-en] { display: none; }
:root[data-lang="vi"] [data-lang-vi] { display: revert; }

/* Reduced motion — mirror the app's Reduce Motion behavior */
@media (prefers-reduced-motion: reduce) {
  .floaty, .mascot-anim, .mascot-eyes, .mz, .spin-slow { animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .usage-ring .prog { transition: none !important; }
  .goal-bar, .bar { transition: none !important; }
}
