/* =========================================================
   Left Pocket website
   Light theme is the default. Dark theme via [data-theme="dark"].
   ========================================================= */

/* Asap, self-hosted (SIL Open Font License, see assets/fonts) */
@font-face { font-family: "Asap"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/asap-400.woff2") format("woff2"); }
@font-face { font-family: "Asap"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/asap-500.woff2") format("woff2"); }
@font-face { font-family: "Asap"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/asap-600.woff2") format("woff2"); }
@font-face { font-family: "Asap"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/asap-700.woff2") format("woff2"); }
@font-face { font-family: "Asap"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/asap-800.woff2") format("woff2"); }
@font-face { font-family: "Asap"; font-style: normal; font-weight: 900; font-display: swap; src: url("../fonts/asap-900.woff2") format("woff2"); }

:root {
  --bg: #F6F5FA;
  --bg-2: #EEECF6;
  --surface: #FFFFFF;
  --surface-2: #F3F1F9;
  --ink: #15131F;
  --ink-2: #57526B;
  --ink-3: #8C87A1;
  --line: rgba(21, 19, 31, 0.08);
  --line-2: rgba(21, 19, 31, 0.14);
  --accent: #6560C8;
  --accent-2: #8A7CF0;
  --accent-soft: rgba(101, 96, 200, 0.10);
  --pos: #109A62;
  --neg: #D9434F;
  --shadow-sm: 0 1px 2px rgba(21,19,31,.05), 0 4px 14px rgba(21,19,31,.06);
  --shadow-lg: 0 2px 6px rgba(21,19,31,.05), 0 30px 70px -20px rgba(40,30,100,.28);
  --phone-shadow: 0 40px 80px -30px rgba(40,30,100,.45), 0 12px 30px -12px rgba(21,19,31,.25);
  --glow: rgba(124, 110, 240, 0.22);
  --glass-top: rgba(255, 255, 255, 0.72);
  --glass-bottom: rgba(255, 255, 255, 0.50);
  --glass-edge: rgba(255, 255, 255, 0.75);
  --glass-shine: rgba(255, 255, 255, 0.95);
  --glass-shadow: 0 24px 50px -18px rgba(40, 30, 100, .35), 0 4px 12px -4px rgba(21, 19, 31, .10);

  --radius: 22px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font: "Asap", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace; /* only for file/column names */
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0B0A10;
  --bg-2: #12101A;
  --surface: #17151F;
  --surface-2: #1E1B29;
  --ink: #F3F1FA;
  --ink-2: #ABA6BF;
  --ink-3: #757089;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.13);
  --accent: #8C84F2;
  --accent-2: #B3A8FF;
  --accent-soft: rgba(140, 132, 242, 0.14);
  --pos: #3DD68C;
  --neg: #FF6B78;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4), 0 6px 18px rgba(0,0,0,.3);
  --shadow-lg: 0 30px 70px -20px rgba(0,0,0,.7);
  --phone-shadow: 0 40px 90px -30px rgba(0,0,0,.9);
  --glow: rgba(124, 110, 240, 0.20);
  --glass-top: rgba(74, 68, 102, 0.56);
  --glass-bottom: rgba(24, 22, 36, 0.50);
  --glass-edge: rgba(255, 255, 255, 0.13);
  --glass-shine: rgba(255, 255, 255, 0.16);
  --glass-shadow: 0 30px 60px -20px rgba(0, 0, 0, .75);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
/* Headlines use Asap Black (900), like the app.
   'auto' smoothing keeps heavy weights from rendering thin on macOS. */
h1, h2, h3 { -webkit-font-smoothing: auto; -moz-osx-font-smoothing: auto; margin: 0; font-weight: 900; letter-spacing: -0.02em; line-height: 1.02; }
h4 { margin: 0; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
p { margin: 0; }
.mono { font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.eyebrow {
  font-size: 14px; font-weight: 500; color: var(--accent);
  letter-spacing: 0.01em; margin-bottom: 18px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 500; font-size: 16px; border-radius: 999px; border: 0;
  cursor: pointer; white-space: nowrap; font-family: inherit;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, opacity .25s;
}
.btn:active { transform: scale(.97); }
.btn .apple { width: 17px; height: 17px; fill: currentColor; margin-top: -2px; }
.btn-lg { height: 56px; padding: 0 28px; font-size: 17px; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; gap: 7px; }
.btn-sm .apple { width: 13px; height: 13px; }
.btn-accent {
  background: var(--accent); color: #fff;
  box-shadow: 0 10px 30px -10px var(--accent), inset 0 1px 0 rgba(255,255,255,.2);
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px var(--accent), inset 0 1px 0 rgba(255,255,255,.2); }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-ink:hover { opacity: .88; }
.btn-ghost { color: var(--ink); background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover { background: var(--surface); }
.btn-light { background: #fff; color: #15131F; }
.btn-light:hover { transform: translateY(-2px); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background-color .3s, box-shadow .3s, backdrop-filter .3s;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 24px; height: 68px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; font-size: 18px; letter-spacing: -0.01em; }
.brand img { border-radius: 8px; }
.nav-links { display: flex; gap: 32px; font-size: 15px; color: var(--ink-2); }
.nav-links a { transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  width: 38px; height: 38px; border-radius: 999px; border: 0; cursor: pointer;
  background: transparent; color: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--line-2);
  display: grid; place-items: center; position: relative;
  transition: color .2s, background-color .2s;
}
.theme-toggle:hover { color: var(--ink); background: var(--surface); }
.theme-toggle svg {
  width: 18px; height: 18px; position: absolute; fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .5s var(--ease), opacity .3s;
}
.theme-toggle .i-sun { opacity: 0; transform: rotate(-90deg) scale(.6); }
[data-theme="dark"] .theme-toggle .i-moon { opacity: 0; transform: rotate(90deg) scale(.6); }
[data-theme="dark"] .theme-toggle .i-sun { opacity: 1; transform: none; }

/* ---------- Download morph (button -> QR panel) ---------- */
.dl { position: relative; display: inline-block; }
.dl-panel {
  --bw: 200px; --bh: 56px;
  position: absolute; top: 0; left: 0; z-index: 60;
  width: 300px; padding: 52px 30px 26px;
  background: var(--accent); color: #fff; border-radius: 28px;
  text-align: center;
  box-shadow: 0 30px 60px -20px rgba(60, 40, 160, .55);
  clip-path: inset(0 calc(100% - var(--bw)) calc(100% - var(--bh)) 0 round 999px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: clip-path .6s var(--ease), opacity .2s, visibility 0s linear .6s;
}
.dl--right .dl-panel { left: auto; right: 0; clip-path: inset(0 0 calc(100% - var(--bh)) calc(100% - var(--bw)) round 999px); }
.dl--sm .dl-panel { background: var(--ink); color: var(--bg); }
.dl.open .dl-panel {
  clip-path: inset(0 0 0 0 round 28px);
  opacity: 1; visibility: visible; pointer-events: auto;
  transition: clip-path .6s var(--ease), opacity .15s, visibility 0s;
}
.dl-panel > * { opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .4s var(--ease); }
.dl.open .dl-panel > * { opacity: 1; transform: none; transition-delay: .18s; }
.dl.open .dl-panel > .dl-qr { transition-delay: .24s; }
.dl-qr {
  background: #fff; border-radius: 18px; padding: 8px; width: max-content; margin: 0 auto 16px;
}
.dl-qr img { width: 168px; height: 168px; }
.dl-title { font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.dl-sub { font-size: 14px; opacity: .78; margin-top: 2px; }
.dl-link { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 500; opacity: .85; border-bottom: 1px solid currentColor; }
.dl-link:hover { opacity: 1; }
.dl-close {
  position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border-radius: 999px;
  border: 0; background: rgba(255,255,255,.16); color: inherit; font-size: 20px; line-height: 1;
  cursor: pointer; display: grid; place-items: center;
}
.dl--sm .dl-close { background: color-mix(in srgb, var(--bg) 16%, transparent); }
.dl-close:hover { background: rgba(255,255,255,.28); }

/* Open upward when there's no room below */
.dl--up .dl-panel { top: auto; bottom: 0; clip-path: inset(calc(100% - var(--bh)) calc(100% - var(--bw)) 0 0 round 999px); }
.dl--up.dl--right .dl-panel { clip-path: inset(calc(100% - var(--bh)) 0 0 calc(100% - var(--bw)) round 999px); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 140px 0 80px; }
.glow {
  position: absolute; width: 900px; height: 900px; right: -200px; top: -160px; z-index: -1;
  background: radial-gradient(closest-side, var(--glow), transparent 70%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 48px; }
.hero h1 span.line { display: block; white-space: nowrap; }
.nw { white-space: nowrap; }
.hero h1 { font-size: clamp(44px, 5.6vw, 72px); letter-spacing: -0.012em; line-height: 1; }
.grad {
  background: linear-gradient(100deg, var(--accent) 10%, var(--accent-2) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: .14em; margin-bottom: -.14em; /* keeps descenders (y, g) from being clipped */
}
.lede { font-size: clamp(18px, 1.6vw, 20px); color: var(--ink-2); max-width: 480px; margin-top: 26px; line-height: 1.55; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; position: relative; z-index: 5; }
.rating { margin-top: 28px; display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink-2); }
.rating strong { color: var(--ink); font-weight: 600; }
.stars { color: #F5B83D; letter-spacing: 2px; font-size: 15px; }

.hero-visual { position: relative; display: flex; justify-content: center; min-height: 600px; }

/* ---------- iPhone 17 mockup ----------
   Built in CSS so it stays sharp at any size. All internal measurements use
   cqw (percent of the phone's own width), so only the width needs setting.
   Screen: 1206 x 2622 (iPhone 17 / 6.3"). Change --frame for another finish. */
.phone {
  --frame: #2B2B30;          /* aluminum color. Lavender option: #B9B1D9 */
  --frame-hi: #6A6A72;       /* edge highlight */
  --frame-lo: #141416;       /* edge shadow */
  container-type: inline-size;
  position: relative; width: 290px;
  aspect-ratio: 1 / 2.0896;
  border-radius: 16.3% / 7.8%;
  background:
    linear-gradient(90deg, var(--frame-lo) 0%, var(--frame-hi) 1.2%, var(--frame) 3%, var(--frame) 97%, var(--frame-hi) 98.8%, var(--frame-lo) 100%);
  box-shadow: var(--phone-shadow), inset 0 1px 1px rgba(255,255,255,.25), inset 0 -1px 1px rgba(0,0,0,.4);
}
.ph-bezel {
  position: absolute; inset: 1.15cqw; border-radius: 15.2cqw;
  background: #030303;
  box-shadow: inset 0 0 0 0.25cqw #1a1a1c;
}
.phone > img {
  position: absolute; top: 3.6cqw; left: 3.6cqw;
  width: calc(100% - 7.2cqw); height: calc(100% - 7.2cqw);
  object-fit: cover; border-radius: 12.7cqw;
}
.ph-glass {
  position: absolute; top: 3.6cqw; left: 3.6cqw; right: 3.6cqw; bottom: 3.6cqw;
  border-radius: 12.7cqw; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,.07) 0%, rgba(255,255,255,0) 38%);
}
.ph-island {
  position: absolute; top: 6.1cqw; left: 50%; transform: translateX(-50%);
  width: 28.6cqw; height: 8.4cqw; border-radius: 99px; background: #000;
}
.ph-btns i {
  position: absolute; width: 1.1cqw; border-radius: 0.6cqw;
  background: linear-gradient(90deg, var(--frame-lo), var(--frame-hi) 45%, var(--frame));
}
/* left: Action button, volume up, volume down */
.ph-btns i:nth-child(1) { left: -0.75cqw; top: 18.5%; height: 3.6%; }
.ph-btns i:nth-child(2) { left: -0.75cqw; top: 25.5%; height: 6.2%; }
.ph-btns i:nth-child(3) { left: -0.75cqw; top: 33.5%; height: 6.2%; }
/* right: side button, Camera Control */
.ph-btns i:nth-child(4) { right: -0.75cqw; top: 28%; height: 9.8%; background: linear-gradient(270deg, var(--frame-lo), var(--frame-hi) 45%, var(--frame)); }
.ph-btns i:nth-child(5) { right: -0.55cqw; top: 54%; height: 6.4%; width: 0.9cqw; background: linear-gradient(270deg, #0c0c0e, #3a3a40); }

.phone-hero { width: 310px; }
.phone-sm { width: 220px; }

/* ---------- Floating cards ---------- */
/* Frosted glass: whatever sits behind the card shows through, blurred.
   Light mode = milky glass, dark mode = smoked glass. */
.float-card {
  position: absolute; z-index: 3; border-radius: 22px; padding: 14px 18px;
  background: linear-gradient(155deg, var(--glass-top), var(--glass-bottom));
  -webkit-backdrop-filter: blur(34px) saturate(180%);
  backdrop-filter: blur(34px) saturate(180%);
  border: 1px solid var(--glass-edge);
  box-shadow: inset 0 1px 0 var(--glass-shine), inset 0 0 0 1px rgba(255,255,255,.04), var(--glass-shadow);
}
.fc-label { font-size: 12px; color: var(--ink-3); font-weight: 500; }
.fc-sub { font-size: 12px; color: var(--ink-3); }
.fc-big { font-size: 26px; font-weight: 800; line-height: 1.15; }
.fc-big span { font-size: 14px; color: var(--ink-3); font-weight: 500; }
.fc-text { font-size: 14px; font-weight: 500; line-height: 1.35; max-width: 190px; }
.pos { color: var(--pos); }

.fc-live { left: -40px; top: 262px; display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.fc-live .fc-label { color: var(--ink); font-size: 14px; font-weight: 600; }
.fc-timer { font-size: 18px; font-weight: 800; margin-left: 6px; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--pos); position: relative; flex: none; }
.live-dot::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--pos);
  animation: ping 1.8s var(--ease) infinite;
}
@keyframes ping { 0% { transform: scale(.5); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }

.fc-profit { right: -4px; bottom: 110px; width: 180px; }
.spark { width: 100%; height: 36px; margin-top: 4px; }
.spark path { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Stat band ---------- */
.stat-band { padding: 40px 0 30px; }
.stat-inner {
  display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: wrap;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-top: 44px; padding-bottom: 44px;
}
/* The big stat uses Inter Tight Black (self-hosted, trimmed to just digits, $, ., M, K: 2 KB). */
@font-face { font-family: "Stat Num"; font-weight: 900; font-display: swap; src: url("../fonts/stat-num-inter-tight-900.woff2") format("woff2"); }
.stat-num {
  font-family: "Stat Num", "Asap", sans-serif;
  font-weight: 900; font-variant-numeric: normal;
  font-size: clamp(76px, 11.5vw, 148px); letter-spacing: -0.02em; line-height: 1;
  color: var(--pos);
}
.stat-title { font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; letter-spacing: -0.01em; line-height: 1.15; }
.stat-sub { color: var(--ink-2); font-size: 16px; margin-top: 4px; }

/* ---------- Section intro ---------- */
.section-intro { padding-top: 120px; padding-bottom: 20px; }
.section-intro h2, .more-title { font-size: clamp(36px, 4.6vw, 56px); letter-spacing: -0.02em; }
.center { text-align: center; }

/* ---------- Feature blocks ---------- */
.feature {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 64px;
  padding-top: 90px; padding-bottom: 90px;
}
.feature--flip .feature-copy { order: 2; }
.feature-copy { max-width: 470px; }
.feature--flip .feature-copy { justify-self: end; }
.feature h3 { font-size: clamp(34px, 3.8vw, 50px); letter-spacing: -0.02em; margin: 18px 0 20px; }
.feature-copy > p { color: var(--ink-2); font-size: 18px; }
.feature-visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 560px; }

.tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; color: var(--accent);
  background: var(--accent-soft); padding: 6px 12px; border-radius: 999px;
}
.tag-new b {
  background: var(--accent); color: #fff; font-weight: 600; font-size: 11px;
  padding: 2px 7px; border-radius: 999px; letter-spacing: 0.02em; text-transform: uppercase;
}

.checks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 32px; font-weight: 500; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236560C8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}
[data-theme="dark"] .checks li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238C84F2' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E");
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chips span {
  font-size: 14px; font-weight: 500; padding: 7px 14px; border-radius: 999px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2);
}

.fine {
  display: flex; gap: 10px; align-items: center; margin-top: 24px;
  font-size: 14px; color: var(--ink-3); line-height: 1.5;
}
.fine svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }

.fc-stack { right: 4%; top: 20%; }

/* Fan of three phones (reports) */
.fan .phone { position: absolute; width: 250px; transition: transform 1.1s var(--ease), opacity .8s; }
.fan .fan-c { z-index: 3; }
.fan .fan-l, .fan .fan-r { z-index: 1; transform: translateX(0) scale(.9); }
html.js .fan:not(.in) .fan-l, html.js .fan:not(.in) .fan-r { opacity: 0; }
.fan.in .fan-l { transform: translateX(-46%) rotate(-7deg) scale(.88); }
.fan.in .fan-r { transform: translateX(46%) rotate(7deg) scale(.88); }

/* Two overlapping phones (health) */
.duo .phone { position: absolute; width: 260px; }
.duo-back { transform: translate(28%, -4%) rotate(5deg) scale(.92); opacity: .95; }
.duo-front { transform: translateX(-22%); z-index: 2; }
html.js .duo-back[data-reveal]:not(.in) { transform: translate(10%, 6%) rotate(0) scale(.92); }
html.js .duo-front[data-reveal]:not(.in) { transform: translate(-22%, 40px); }
.fc-insight { left: 0; top: 50%; translate: 0 -50%; display: flex; gap: 12px; align-items: center; z-index: 4; }
.insight-ico { width: 38px; height: 38px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 16%, transparent); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); display: grid; place-items: center; flex: none; }
.insight-ico svg { width: 18px; height: 18px; fill: var(--accent); }

/* Leaderboard card */
.lb-card {
  width: 100%; max-width: 420px; background: var(--surface); border-radius: 28px;
  border: 1px solid var(--line); box-shadow: var(--shadow-lg); padding: 26px;
}
.lb-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 22px; }
.lb-title { font-size: 22px; font-weight: 900; letter-spacing: -0.01em; }
.lb-sub { font-size: 14px; color: var(--ink-3); }
.lb-updated { font-size: 12px; font-weight: 500; color: var(--pos); background: color-mix(in srgb, var(--pos) 12%, transparent); padding: 4px 10px; border-radius: 999px; }
.lb-row { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.lb-badge { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.lb-badge svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.b-pro { background: rgba(245, 184, 61, .16); color: #D99A12; }
.b-reg { background: var(--accent-soft); color: var(--accent); }
.b-vol { background: color-mix(in srgb, var(--pos) 14%, transparent); color: var(--pos); }
.lb-main { flex: 1; }
.lb-line { display: flex; justify-content: space-between; font-size: 15px; font-weight: 500; margin-bottom: 8px; }
.lb-line b { font-weight: 600; }
.lb-bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.lb-bar i {
  display: block; height: 100%; width: var(--w); border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform-origin: left; transition: transform 1.2s var(--ease); transition-delay: calc(var(--d) + 300ms);
}
html.js .lb-card:not(.in) .lb-bar i { transform: scaleX(0); }
.lb-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 4px; font-size: 13px; color: var(--ink-3); }
.tiers { display: flex; gap: 6px; }
.tiers span { padding: 4px 10px; border-radius: 99px; background: var(--surface-2); font-weight: 500; }
.tiers .on { background: var(--accent); color: #fff; }

/* Leaderboard card (exported from the app) */
.lb-shot { width: 100%; max-width: 460px; }
.lb-shot img { width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(40, 30, 100, .28)) drop-shadow(0 6px 12px rgba(21, 19, 31, .12)); }
[data-theme="dark"] .lb-shot img { filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .7)); }


/* Smart Import card */
.import-card {
  width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 28px; box-shadow: var(--shadow-lg); padding: 22px;
}
.ic-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 10px; }
.ic-file { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--ink-2); min-width: 0; }
.ic-file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ic-file svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--ink-3); stroke-width: 1.8; stroke-linejoin: round; }
.ic-ai { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 500; color: var(--accent); background: var(--accent-soft); padding: 4px 10px; border-radius: 99px; flex: none; }
.ic-ai i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: blink 1s ease-in-out infinite; }
.import-card.done .ic-ai i { animation: none; }
@keyframes blink { 50% { opacity: .25; } }
.ic-map { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ic-map li {
  display: grid; grid-template-columns: 1fr 44px 1fr; align-items: center;
  padding: 10px 12px; border-radius: 14px; background: var(--surface-2);
  font-size: 14px;
}
.ic-map code { font-family: var(--mono); font-size: 13px; color: var(--ink-2); }
.ic-map b { font-weight: 600; justify-self: end; opacity: 0; transform: translateX(-8px); transition: opacity .4s, transform .5s var(--ease); transition-delay: calc(var(--i) * 260ms + 500ms); }
.ic-map .arr { height: 2px; background: var(--line-2); position: relative; border-radius: 2px; overflow: hidden; }
.ic-map .arr::after {
  content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease); transition-delay: calc(var(--i) * 260ms + 300ms);
}
.import-card.in .ic-map b { opacity: 1; transform: none; }
.import-card.in .ic-map .arr::after { transform: scaleX(1); }
.ic-done {
  margin-top: 14px; display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500;
  padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--pos) 12%, transparent); color: var(--ink);
  opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .6s var(--ease); transition-delay: 2.2s;
}
.ic-done svg { width: 20px; height: 20px; fill: none; stroke: var(--pos); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.import-card.in .ic-done { opacity: 1; transform: none; }

/* ---------- More row ---------- */
.more { padding-top: 70px; padding-bottom: 60px; }
.more-title { text-align: center; margin-bottom: 56px; }
.more-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; justify-items: center; }
.more figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.more figure .phone { transition: transform .5s var(--ease); }
.more figure:hover .phone { transform: translateY(-8px); }
.more figcaption { font-size: 15px; font-weight: 500; color: var(--ink-2); }

/* ---------- Reviews ---------- */
.reviews { padding-bottom: 60px; overflow: hidden; }
.big-rating { display: inline-flex; align-items: center; gap: 14px; margin-bottom: 18px; text-align: left; }
.big-rating > .mono { font-size: 60px; font-weight: 900; letter-spacing: -0.02em; line-height: 1; }
.big-rating .small { display: block; font-size: 13px; color: var(--ink-3); }
.marquee {
  margin-top: 40px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; gap: 18px; width: max-content; animation: marquee 60s linear infinite; padding: 10px 0 30px; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 9px)); } }
.review {
  display: flex; flex-direction: column;
  width: 340px; flex: none; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm);
}
.review .stars { font-size: 13px; }
.review h4 { font-size: 18px; letter-spacing: -0.02em; margin: 10px 0 8px; line-height: 1.25; }
.review p { font-size: 15px; color: var(--ink-2); line-height: 1.55; }
.review .who { display: block; margin-top: auto; padding-top: 14px; font-size: 13px; color: var(--ink-3); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; padding-top: 100px; padding-bottom: 100px; }
.faq-list { display: grid; gap: 10px; }
/* FAQ heading matches the feature headings (capsule tag + same size/spacing) */
.faq h2 { font-size: clamp(34px, 3.8vw, 50px); margin: 18px 0 0; }
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 0 22px;
  transition: box-shadow .3s;
}
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 30px 20px 0; font-weight: 600; font-size: 17px;
  letter-spacing: -0.01em; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 2px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3);
  transform: rotate(45deg); transition: transform .35s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { color: var(--ink-2); padding-bottom: 20px; font-size: 16px; }

/* ---------- Final CTA ---------- */
.final { padding-bottom: 100px; }
.final-card {
  position: relative; overflow: hidden; border-radius: 36px; padding: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  background: radial-gradient(120% 140% at 0% 0%, #7E74E6 0%, #5650B8 45%, #2E2A6E 100%);
  color: #fff;
}
.final-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(40% 60% at 85% 20%, rgba(255,255,255,.18), transparent 70%);
}
.final-icon { border-radius: 18px; box-shadow: 0 14px 30px -10px rgba(0,0,0,.45); margin-bottom: 26px; }
.final h2 { font-size: clamp(36px, 4.6vw, 56px); letter-spacing: -0.02em; }
.final-copy p { font-size: 18px; opacity: .8; margin: 14px 0 30px; }
.final-qr { display: flex; flex-direction: column; align-items: center; gap: 14px; position: relative; z-index: 1; }
.final-qr .dl-qr { margin: 0; padding: 10px; border-radius: 22px; }
.final-qr img { width: 180px; height: 180px; }
.final-qr span { font-size: 14px; opacity: .8; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 36px 0 calc(36px + env(safe-area-inset-bottom)); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer nav { display: flex; gap: 28px; font-size: 15px; color: var(--ink-2); }
.footer nav a:hover { color: var(--ink); }
.copy { font-size: 14px; color: var(--ink-3); }

/* ---------- Reveal animations ---------- */
html.js [data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity .9s var(--ease), transform 1s var(--ease), filter .9s var(--ease);
  transition-delay: var(--d, 0ms);
  filter: blur(4px);
}
html.js [data-reveal="up"] { transform: translateY(60px); }
html.js [data-reveal="right"] { transform: translateX(40px); }
html.js [data-reveal="fan"], html.js [data-reveal="import"] { transform: translateY(40px); }
html.js [data-reveal].in { opacity: 1; transform: none; filter: none; }
/* Elements whose transform is used for layout keep it once revealed */
html.js .duo-back[data-reveal].in { transform: translate(28%, -4%) rotate(5deg) scale(.92); }
html.js .duo-front[data-reveal].in { transform: translateX(-22%); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .hero { padding-top: 120px; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .lede { margin-left: auto; margin-right: auto; }
  .hero-cta, .rating { justify-content: center; }
  .hero-visual { min-height: 0; margin-top: 20px; }
  .fc-live { left: 50%; top: 45%; transform: translateX(-100%); }
  .feature { grid-template-columns: 1fr; gap: 40px; padding-top: 70px; padding-bottom: 70px; }
  .feature--flip .feature-copy { order: 0; justify-self: start; }
  .feature-copy { max-width: 600px; }
  .feature-visual { min-height: 520px; }
  .section-intro { padding-top: 90px; }
  .feature { padding-top: 56px; padding-bottom: 56px; }
  .more-row { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .faq { grid-template-columns: 1fr; gap: 28px; }
  .final-card { flex-direction: column; text-align: center; padding: 48px 28px; }
  .final-qr { display: none; }
  .br-lg { display: none; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap, .nav-inner { padding-left: 16px; padding-right: 16px; }
  .hero-cta { width: 100%; flex-direction: column; align-items: stretch; }
  .hero-cta .dl, .hero-cta .btn { width: 100%; }
  .phone-hero { width: 260px; }
  .hero h1 { font-size: clamp(38px, 11vw, 46px); }
  .hero h1 span.line { white-space: normal; }
  .fc-live { transform: none; left: 0; top: 36%; }
  .fc-profit { right: 0; bottom: 50px; width: 150px; }
  .fc-big { font-size: 22px; }
  .phone { width: 250px; }
  .feature-visual { min-height: 470px; }
  .fan .phone { width: 200px; }
  .fan.in .fan-l { transform: translateX(-38%) rotate(-7deg) scale(.86); }
  .fan.in .fan-r { transform: translateX(38%) rotate(7deg) scale(.86); }
  .duo .phone { width: 210px; }
  .fc-insight { left: 0; }
  .fc-stack { right: 0; }
  .phone-sm { width: 150px; }
  .more-row { gap: 16px; }
  .review { width: 290px; }
  .stat-inner { flex-direction: column; text-align: center; gap: 10px; }
  .lb-card, .import-card { padding: 18px; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js [data-reveal] { opacity: 1; transform: none; filter: none; transition: none; }
  html.js .duo-back[data-reveal] { transform: translate(28%, -4%) rotate(5deg) scale(.92); }
  html.js .duo-front[data-reveal] { transform: translateX(-22%); }
  .marquee-track { animation: none; }
  .live-dot::after { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* ---------- Legal pages ---------- */
.legal { max-width: 760px; padding-top: 140px; padding-bottom: 100px; }
.legal h1 { font-size: clamp(40px, 6vw, 64px); letter-spacing: -0.02em; }
.legal-date { color: var(--ink-3); margin-top: 14px; font-size: 15px; }
.legal-body { margin-top: 48px; color: var(--ink-2); font-size: 16px; line-height: 1.7; }
.legal-body h2 { color: var(--ink); font-size: 26px; letter-spacing: -0.01em; margin: 52px 0 16px; line-height: 1.2; }
.legal-body h3 { color: var(--ink); font-size: 18px; letter-spacing: -0.01em; margin: 30px 0 10px; line-height: 1.3; }
.legal-body p { margin: 0 0 14px; }
.legal-body ul { margin: 0 0 18px; padding-left: 20px; display: grid; gap: 8px; }
.legal-body li::marker { color: var(--accent); }
.legal-body strong { color: var(--ink); font-weight: 600; }
.legal-body a { color: var(--accent); border-bottom: 1px solid currentColor; }

.notfound { min-height: 80vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 18px; padding-top: 100px; }
.notfound h1 { font-size: clamp(64px, 12vw, 140px); letter-spacing: -0.03em; }
.notfound p { color: var(--ink-2); font-size: 18px; }

/* ---------- Small phones ---------- */
html { overflow-x: clip; }
.brand span { white-space: nowrap; }
@media (max-width: 380px) {
  .nav .brand span { display: none; }
}

/* Phones: hide the hero's floating cards (they crowd each other at this size) */
@media (max-width: 767px) {
  .hero-visual .float-card { display: none; }
}

/* Desktop only: more breathing room between the features intro and the first feature */
@media (min-width: 961px) {
  #features { padding-bottom: 80px; }
}
