/* ============================================================
   HabitRacer — landing page
   Clean structure, colour carried by gradient washes and
   per-feature accents rather than illustration.
   ============================================================ */

:root {
  --ink: #0F1121;
  --body: #545A70;
  --muted: #868DA2;
  --line: #E7E9F2;
  --bg: #FFFFFF;
  --soft: #F6F7FB;

  /* Accent family */
  --purple: #6C4DE0;
  --purple-dk: #5539C8;
  --indigo: #3B6BF5;
  --teal: #10A5A0;
  --amber: #E08A00;
  --pink: #DE3F87;
  --green: #0E9F5B;

  --radius: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 17, 33, 0.04), 0 6px 18px rgba(15, 17, 33, 0.05);
  --shadow-md: 0 18px 50px rgba(15, 17, 33, 0.12);
  --maxw: 1440px;
}

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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: rgba(108, 77, 224, 0.18); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(24px, 3vw, 48px); position: relative; z-index: 1; }

h1, h2, h3, h4 { color: var(--ink); font-weight: 700; letter-spacing: -0.024em; line-height: 1.15; }

/* ---------- Nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.nav.stuck { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 68px; }

.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.04rem; color: var(--ink);
  text-decoration: none; letter-spacing: -0.02em;
}
.logo-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, var(--purple), var(--indigo));
  display: grid; place-items: center;
  color: #fff; font-size: 0.88rem; font-weight: 700;
  box-shadow: 0 4px 12px rgba(108, 77, 224, 0.35);
}

.nav-links { margin-left: auto; display: flex; align-items: center; gap: 30px; }
.nav-links a {
  color: var(--body); text-decoration: none;
  font-size: 0.92rem; font-weight: 500;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--purple); }
/* `.nav-links a` outranks `.btn`, so the CTA needs its colours restated here
   or it renders grey-on-gradient. */
.nav-links a.btn { color: #fff; }
.nav-links a.btn:hover { color: #fff; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, var(--purple), var(--indigo));
  color: #fff; text-decoration: none;
  font-size: 0.95rem; font-weight: 600; letter-spacing: -0.01em;
  padding: 12px 22px; border-radius: 11px; border: 0;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(108, 77, 224, 0.32);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.btn:hover { filter: brightness(1.07); box-shadow: 0 12px 30px rgba(108, 77, 224, 0.4); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.6; cursor: default; box-shadow: none; }
.btn.ghost {
  background: #fff; color: var(--ink);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.btn.ghost:hover { border-color: rgba(108, 77, 224, 0.45); color: var(--purple); filter: none; }
.btn.sm { padding: 9px 17px; font-size: 0.88rem; border-radius: 9px; }

/* ---------- Store badges (both pre-launch) ---------- */

.stores { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.store {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 11px 22px 11px 18px;
  min-width: 200px; cursor: default;
  box-shadow: var(--shadow-sm);
}
.store svg { width: 25px; height: 25px; flex: none; }
.store .s-text { text-align: left; line-height: 1.2; }
.store .s-top { display: block; font-size: 0.65rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.store .s-bottom { display: block; font-size: 1.02rem; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.store .s-tag {
  position: absolute; top: -10px; right: 12px;
  background: linear-gradient(135deg, var(--amber), #F2B01E);
  color: #2B1900; font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px;
  box-shadow: 0 4px 12px rgba(224, 138, 0, 0.35);
}

/* ---------- Sections ---------- */

section { padding: clamp(56px, 6vw, 88px) 0; position: relative; }
.sec-soft { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.sec-head { max-width: 640px; margin: 0 auto clamp(40px, 5vw, 62px); text-align: center; }
.sec-head h2 { font-size: clamp(1.65rem, 3.1vw, 2.3rem); }
.sec-head p { margin-top: 13px; font-size: 1.04rem; color: var(--body); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.11em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 14px;
}

.grad {
  background: linear-gradient(110deg, var(--purple) 0%, var(--indigo) 45%, var(--pink) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Scroll reveal */
.rv { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.rv.in { opacity: 1; transform: none; }

/* ---------- Hero ---------- */

.hero { padding: clamp(40px, 4vw, 68px) 0 clamp(30px, 4vw, 56px); text-align: left; overflow: hidden; }

/* Two columns on desktop: the centred version stranded ~250px of dead gutter
   on each side of a wide monitor. Collapses back to centred on narrow screens. */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(28px, 3.5vw, 64px);
  align-items: center;
}
.hero-media { display: flex; align-items: center; justify-content: center; gap: clamp(12px, 1.5vw, 26px); }
.hero-media .phone.trail { transform: translateY(26px); }

/* Aurora wash — the main source of colour, kept soft and far behind the type */
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.aurora i {
  position: absolute; display: block; border-radius: 50%;
  filter: blur(90px); opacity: 0.5;
}
.aurora .a1 { width: 46vw; height: 46vw; max-width: 620px; max-height: 620px; background: rgba(108, 77, 224, 0.5);  top: -14%; left: 50%; transform: translateX(-50%); }
.aurora .a2 { width: 34vw; height: 34vw; max-width: 460px; max-height: 460px; background: rgba(59, 107, 245, 0.38); top: 12%;  left: -6%; }
.aurora .a3 { width: 32vw; height: 32vw; max-width: 430px; max-height: 430px; background: rgba(222, 63, 135, 0.28); top: 6%;   right: -6%; }
.aurora .a4 { width: 30vw; height: 30vw; max-width: 400px; max-height: 400px; background: rgba(16, 165, 160, 0.26); bottom: 4%; left: 22%; }

.pre-pill {
  display: inline-flex; align-items: center; gap: 9px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 16px 7px 8px;
  font-size: 0.84rem; font-weight: 600; color: var(--ink);
  box-shadow: var(--shadow-sm); margin-bottom: 26px;
}
.pre-pill .flag {
  background: linear-gradient(135deg, var(--purple), var(--indigo));
  color: #fff; font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px;
  white-space: nowrap;
}

.hero h1 {
  font-size: clamp(2.15rem, 4vw, 3.9rem);
  letter-spacing: -0.04em; line-height: 1.04;
  max-width: 13ch; margin: 0;
}
.hero .sub {
  margin: 20px 0 0; max-width: 46ch;
  font-size: clamp(1.02rem, 1.15vw, 1.16rem); color: var(--body);
}
.hero-cta { margin-top: 30px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hero-stores { margin-top: 22px; justify-content: flex-start; }
.hero-meta {
  margin-top: 22px;
  display: flex; align-items: center;
  gap: 10px 20px; flex-wrap: wrap;
  font-size: 0.88rem; color: var(--muted); font-weight: 500;
}
.hero-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--purple); opacity: 0.45; }

/* ---------- Leo coach moment ---------- */

.coach-section { padding-top: clamp(30px, 4vw, 58px); padding-bottom: clamp(54px, 7vw, 96px); }
.coach-card {
  min-height: 520px;
  display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(390px, 1.08fr);
  align-items: stretch; overflow: hidden; position: relative;
  border-radius: 34px;
  background:
    radial-gradient(900px 520px at 90% 10%, rgba(85, 127, 255, 0.24), transparent 62%),
    linear-gradient(135deg, #12152C 0%, #171A3A 55%, #20275C 100%);
  box-shadow: 0 32px 90px rgba(20, 24, 62, 0.22);
}
.coach-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.2;
  background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, transparent, #000);
}
.coach-copy {
  padding: clamp(42px, 5.5vw, 78px); position: relative; z-index: 2;
  display: flex; flex-direction: column; justify-content: center;
}
.coach-kicker {
  display: inline-flex; align-items: center; gap: 9px; width: max-content;
  color: #B9C4FF; font-size: .76rem; text-transform: uppercase;
  font-weight: 700; letter-spacing: .12em; margin-bottom: 20px;
}
.coach-kicker i { width: 7px; height: 7px; border-radius: 50%; background: #7CFFB2; box-shadow: 0 0 0 6px rgba(124,255,178,.1); }
.coach-copy h2 { color: #fff; max-width: 10ch; font-size: clamp(2rem, 3.6vw, 3.65rem); line-height: 1.03; letter-spacing: -.05em; }
.coach-copy > p { color: rgba(255,255,255,.7); max-width: 47ch; margin-top: 22px; font-size: 1.03rem; }
.coach-proof { margin-top: 34px; display: flex; flex-direction: column; gap: 12px; }
.coach-proof span { display: flex; align-items: center; gap: 13px; color: rgba(255,255,255,.86); font-size: .9rem; font-weight: 500; }
.coach-proof b { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; color: #BFC8FF; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); font-size: .65rem; }
.coach-scene { min-height: 520px; position: relative; display: flex; align-items: flex-end; justify-content: center; z-index: 1; }
.coach-scene::after { content: ""; position: absolute; width: 62%; height: 8%; bottom: 5%; border-radius: 50%; background: rgba(0,0,0,.36); filter: blur(18px); }
.coach-scene img { width: min(430px, 77%); max-height: 480px; object-fit: contain; position: relative; z-index: 2; filter: drop-shadow(0 28px 30px rgba(0,0,0,.28)); }
.coach-orbit { position: absolute; border: 1px solid rgba(159,178,255,.22); border-radius: 50%; }
.orbit-one { width: 440px; height: 440px; top: 50%; left: 50%; transform: translate(-50%,-45%); }
.orbit-two { width: 320px; height: 320px; top: 50%; left: 50%; transform: translate(-50%,-44%); border-style: dashed; }
.coach-bubble {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 9px;
  color: #171A32; background: rgba(255,255,255,.95); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.82); border-radius: 14px; padding: 11px 15px;
  box-shadow: 0 18px 45px rgba(0,0,0,.22); font-size: .78rem; font-weight: 650;
}
.coach-bubble span { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 8px; background: #ECF9F1; color: var(--green); }
.coach-bubble-one { left: 2%; top: 28%; }
.coach-bubble-two { right: 5%; top: 15%; }
.coach-bubble-two span { background: #EEF1FF; color: var(--indigo); }


/* ---------- Phone mockup ---------- */

.phone {
  --pw: 272px;
  width: var(--pw); flex: none;
  background: #15172A;
  border-radius: 32px; padding: 7px;
  box-shadow: var(--shadow-md);
}
.phone.lead { --pw: 306px; }
.screen {
  background: #FBFBFE; border-radius: 26px; overflow: hidden;
  height: calc(var(--pw) * 2); display: flex; flex-direction: column;
}
.notch { width: 74px; height: 18px; background: #15172A; border-radius: 999px; margin: 8px auto 2px; flex: none; }
.screen-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px 8px; flex: none; }
.screen-head .st { font-weight: 700; font-size: 0.86rem; color: var(--ink); letter-spacing: -0.01em; }
.screen-head .sd { font-size: 0.62rem; color: var(--muted); font-weight: 500; }
.screen-body { padding: 4px 11px 12px; display: flex; flex-direction: column; gap: 9px; overflow: hidden; }

.hcard { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 11px 11px 9px; }
.hcard-top { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }
.hcard-emoji { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-size: 0.88rem; flex: none; }
.hcard-name { font-weight: 600; font-size: 0.78rem; line-height: 1.25; color: var(--ink); }
.hcard-sub { font-size: 0.62rem; color: var(--muted); font-weight: 500; }
.hcard-check { margin-left: auto; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; font-size: 0.7rem; font-weight: 700; flex: none; }
.heatmap { display: grid; grid-template-columns: repeat(14, 1fr); gap: 3px; }
.heatmap i { aspect-ratio: 1; border-radius: 2px; background: #EFF0F7; }

.pbubble { padding: 8px 11px; border-radius: 12px; font-size: 0.7rem; font-weight: 500; max-width: 86%; line-height: 1.45; }
.pbubble.user { background: linear-gradient(135deg, var(--purple), var(--indigo)); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.pbubble.leo { background: #fff; color: var(--ink); align-self: flex-start; border-bottom-left-radius: 4px; border: 1px solid var(--line); }
.pbubble.leo b { color: var(--purple); font-weight: 600; }
.leo-row { display: flex; align-items: center; gap: 7px; }
.leo-dot {
  width: 22px; height: 22px; border-radius: 7px;
  background: linear-gradient(135deg, var(--purple), var(--indigo));
  color: #fff; display: grid; place-items: center; font-size: 0.62rem; font-weight: 700;
}
.leo-row span { font-size: 0.7rem; font-weight: 600; color: var(--ink); }

.stat-card { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 13px; text-align: center; }
.stat-card .num { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.2; color: var(--purple); }
.stat-card .lbl { font-size: 0.6rem; color: var(--muted); font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; margin-top: 2px; }
.stat-row { display: flex; gap: 9px; }
.stat-row .stat-card { flex: 1; }
.stat-row .num { font-size: 1.1rem; }
.stat-row .stat-card:first-child .num { color: var(--teal); }
.stat-row .stat-card:last-child .num { color: var(--pink); }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 68px; padding-top: 4px; }
.bars i { flex: 1; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, var(--purple), var(--indigo)); }

/* ---------- Product preview: mirrors the real app UI ---------- */

.product-stage {
  width: min(100%, 720px); height: 690px; position: relative; isolation: isolate;
  border-radius: 44px;
  background:
    radial-gradient(circle at 75% 18%, rgba(37, 99, 235, .18), transparent 29%),
    radial-gradient(circle at 15% 74%, rgba(76, 217, 160, .2), transparent 28%),
    linear-gradient(145deg, rgba(255,255,255,.74), rgba(238,246,255,.74));
  border: 1px solid rgba(182, 204, 254, .72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 34px 90px rgba(40,70,135,.14);
}
.stage-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(37,99,235,.12); z-index: -1; }
.ring-a { width: 490px; height: 490px; right: -120px; top: -80px; }
.ring-b { width: 360px; height: 360px; left: -120px; bottom: -90px; border-style: dashed; }
.app-device {
  position: absolute; width: 362px; height: 650px; left: 36px; top: 20px;
  display: flex; flex-direction: column; overflow: hidden;
  background: #F4FAFF; border: 7px solid #101527; border-radius: 42px;
  box-shadow: 0 28px 60px rgba(17,24,39,.22), 0 0 0 1px rgba(255,255,255,.5) inset;
}
.device-top { height: 29px; flex: none; padding: 8px 19px 0; display: flex; justify-content: space-between; align-items: center; color: #141A2B; font-size: 8px; font-weight: 800; }
.device-top i { width: 72px; height: 18px; background: #101527; border-radius: 999px; position: absolute; top: 4px; left: 50%; transform: translateX(-50%); }
.app-toolbar { height: 47px; display: flex; align-items: center; justify-content: space-between; padding: 6px 12px 6px 15px; }
.app-toolbar > img { width: 136px; height: 32px; object-fit: contain; object-position: left center; }
.toolbar-actions { display: flex; align-items: center; gap: 6px; }
.toolbar-actions b { border-radius: 999px; padding: 4px 9px; color: #754900; background: linear-gradient(#FFE7A3,#F4BF47); border: 1px solid #E1A92F; font-size: 7px; }
.toolbar-actions span { width: 23px; height: 23px; display: grid; place-items: center; color: #2355AE; background: #EAF2FF; border: 1px solid #D3E2FF; border-radius: 8px; font-size: 9px; }
.app-home { flex: 1; overflow: hidden; padding: 8px 13px 12px; }
.app-greeting { display: flex; flex-direction: column; margin-bottom: 9px; }
.app-greeting strong { color: #111; font-size: 13px; line-height: 1.2; font-weight: 850; letter-spacing: -.02em; }
.app-greeting strong em { font-style: normal; color: #1D4ED8; }
.app-greeting > span { color: #6B7280; font-size: 8px; margin-top: 2px; }
.momentum-card { background: linear-gradient(#fff,#FBFDFC); border: 1px solid #E1E9E3; border-radius: 12px; padding: 9px; box-shadow: 0 5px 14px rgba(15,23,42,.06); }
.momentum-stats { height: 62px; display: flex; align-items: center; }
.momentum-stat { flex: 1; display: flex; align-items: center; gap: 7px; }
.momentum-stat img { width: 42px; height: 42px; object-fit: contain; }
.momentum-stat span { display: flex; flex-direction: column; color: #111; }
.momentum-stat small { color: #64748B; font-size: 7px; font-weight: 650; }
.momentum-stat b { color: #07843B; font-size: 19px; letter-spacing: -.05em; line-height: 1; }
.momentum-stat b i { color: #0F5F36; font-size: 7px; font-style: normal; letter-spacing: 0; }
.momentum-stat:last-child b { color: #1D4ED8; }
.momentum-stat:last-child b i { color: #1F4EA3; }
.momentum-divider { width: 1px; height: 43px; background: #E4ECE7; margin: 0 7px; }
.today-line { display: flex; align-items: center; justify-content: space-between; gap: 7px; margin-top: 3px; }
.today-line strong { color: #374151; font-size: 7.5px; }
.today-line span { color: #15803D; font-size: 7px; font-weight: 800; }
.today-progress { height: 5px; border-radius: 99px; background: #DDEDE4; margin-top: 5px; overflow: hidden; }
.today-progress i { display: block; width: 68%; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#1FA971,#5FD7A8); }
.week-strip { display: flex; align-items: center; justify-content: space-between; margin-top: 9px; padding-top: 8px; border-top: 1px solid #E4ECE7; }
.week-strip > span { color: #5F6B7A; font-size: 6.5px; font-weight: 800; }
.week-strip b { display: flex; gap: 5px; }
.week-strip b i { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 6px; color: #8994A2; background: #EDF1F4; font-size: 6px; font-style: normal; }
.week-strip b i.done { color: #fff; background: #1FA971; }
.week-strip b i.today { color: #fff; background: #2563EB; box-shadow: 0 0 0 3px rgba(37,99,235,.14); }
.habit-heading { display: flex; justify-content: space-between; margin: 12px 1px 7px; font-size: 7px; color: #5B6573; letter-spacing: .08em; }
.habit-heading span, .habit-heading b { font-weight: 800; }
.habit-heading b { letter-spacing: 0; color: #526172; }
.app-habit { min-height: 65px; display: flex; align-items: center; gap: 8px; margin-top: 7px; padding: 7px 9px; border: 1px solid #E5EAF1; border-radius: 11px; background: linear-gradient(90deg, rgba(89,207,174,.25), #fff 67%); }
.app-habit.blue { background: linear-gradient(90deg, rgba(96,165,250,.24), #fff 67%); }
.app-habit.violet { background: linear-gradient(90deg, rgba(139,92,246,.22), #fff 67%); }
.app-habit > img { width: 46px; height: 46px; object-fit: contain; flex: none; }
.app-habit > span { display: flex; flex: 1; min-width: 0; flex-direction: column; }
.app-habit > span b { color: #111827; font-size: 9px; line-height: 1.25; }
.app-habit > span small { color: #6B7280; font-size: 7px; margin-top: 2px; }
.app-habit button { width: 25px; height: 25px; border-radius: 50%; border: 1px solid #D2D8DE; background: #fff; color: #8793A1; font-size: 10px; }
.app-habit > button, .habit-actions button:last-child { color: #fff; border-color: #0F8A5F; background: linear-gradient(#1FA971,#0F8A5F); }
.habit-actions { display: flex; gap: 5px; }
.app-bottom-nav { height: 57px; flex: none; display: flex; align-items: center; justify-content: space-around; padding: 0 8px 3px; background: rgba(255,255,255,.96); border-top: 1px solid #DDE7F3; }
.app-bottom-nav > span { width: 45px; display: flex; flex-direction: column; align-items: center; gap: 2px; color: #7E8997; font-size: 13px; }
.app-bottom-nav small { font-size: 6px; font-weight: 700; }
.app-bottom-nav .active { color: #1D4ED8; }
.app-bottom-nav .leo-tab { width: 38px; height: 38px; justify-content: center; transform: translateY(-9px); color: #fff; border-radius: 14px; background: linear-gradient(135deg,#2563EB,#60A5FA); box-shadow: 0 8px 18px rgba(37,99,235,.32); }
.app-bottom-nav .leo-tab small { color: #1D4ED8; position: absolute; transform: translateY(29px); }
.leo-sheet { position: absolute; width: 344px; right: 18px; bottom: 58px; padding: 15px; border-radius: 24px; background: rgba(255,255,255,.95); border: 1px solid #D8E5FF; box-shadow: 0 26px 60px rgba(26,43,89,.2); backdrop-filter: blur(18px); transform: rotate(1.2deg); }
.leo-sheet-head { display: flex; align-items: center; gap: 10px; }
.leo-sheet-head > img { width: 52px; height: 52px; object-fit: contain; border-radius: 16px; background: radial-gradient(circle,#EDF5FF,#DCE8FF); }
.leo-sheet-head > span { display: flex; flex: 1; flex-direction: column; line-height: 1.1; }
.leo-sheet-head small { color: #7C3AED; font-size: 6px; letter-spacing: .12em; font-weight: 850; }
.leo-sheet-head b { color: #111827; font-size: 16px; margin: 2px 0 3px; }
.leo-sheet-head i { color: #16A34A; font-size: 7px; font-style: normal; font-weight: 650; }
.leo-sheet-head em { color: #8993A5; font-style: normal; letter-spacing: 2px; }
.leo-message { color: #252B3D; background: #F5F8FF; border: 1px solid #D8E5FF; border-radius: 6px 16px 16px 16px; padding: 12px; margin-top: 12px; font-size: 9px; line-height: 1.5; font-weight: 550; }
.leo-message b { color: #1D4ED8; }
.leo-replies { display: flex; gap: 7px; margin-top: 9px; }
.leo-replies span { color: #1D4ED8; background: #EFF5FF; border: 1px solid #C9DAFF; border-radius: 999px; padding: 6px 9px; font-size: 7px; font-weight: 750; }
.leo-input { height: 37px; display: flex; align-items: center; justify-content: space-between; margin-top: 11px; padding: 0 6px 0 12px; color: #929BAD; background: #F8FAFF; border: 1px solid #D8E5FF; border-radius: 13px; font-size: 7px; }
.leo-input b { width: 27px; height: 27px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg,#2563EB,#60A5FA); border-radius: 9px; font-size: 11px; }
.floating-win { position: absolute; display: flex; align-items: center; gap: 10px; right: 2px; top: 56px; padding: 10px 14px 10px 10px; border-radius: 16px; color: #163E2B; background: rgba(244,255,249,.96); border: 1px solid #BDE9D0; box-shadow: 0 18px 35px rgba(20,99,59,.14); transform: rotate(2deg); }
.floating-win > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: linear-gradient(#35C58A,#15996A); font-weight: 800; }
.floating-win div { display: flex; flex-direction: column; }
.floating-win small { color: #228356; font-size: 6px; letter-spacing: .12em; font-weight: 850; }
.floating-win b { color: #173D2B; font-size: 8px; margin-top: 2px; }

/* ---------- Editorial hero refresh ---------- */

.nav {
  background: rgba(7, 10, 18, .88);
  border-bottom-color: rgba(255,255,255,.07);
}
.nav.stuck { border-bottom-color: rgba(255,255,255,.13); }
.logo-wordmark img { width: 154px; height: 38px; object-fit: contain; object-position: left center; }
.nav-links a { color: rgba(255,255,255,.7); }
.nav-links a:hover { color: #fff; }

.hero {
  padding: clamp(52px, 5vw, 76px) 0 clamp(64px, 8vw, 110px);
  background: #070A12;
  color: #fff;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0; height: 180px; pointer-events: none;
  background: linear-gradient(transparent, rgba(16,24,48,.62));
}
.hero-grid { grid-template-columns: minmax(0, .86fr) minmax(620px, 1.14fr); gap: clamp(32px, 4vw, 64px); align-items: center; }
.hero-copy { max-width: 600px; margin: 0; text-align: left; }
.hero h1 { max-width: 11ch; margin: 0; color: #fff; font-size: clamp(3.6rem, 5.2vw, 5.8rem); line-height: .96; letter-spacing: -.065em; }
.hero .grad { background-image: linear-gradient(105deg,#71A6FF 2%,#8B72FF 46%,#FF5E9C 96%); }
.hero .sub { max-width: 49ch; margin: 24px 0 0; color: rgba(231,236,255,.7); font-size: clamp(1.02rem,1.2vw,1.16rem); }
.hero .pre-pill { color: #DDE6FF; background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.14); box-shadow: none; }
.hero .pre-pill .flag { background: linear-gradient(135deg,#2563EB,#7C3AED); }
.hero-cta, .hero-stores, .hero-meta { justify-content: flex-start; }
.hero-cta { margin-top: 34px; }
.hero .btn { padding: 14px 25px; border-radius: 13px; }
.hero .btn.ghost { color: #fff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); box-shadow: none; }
.hero .btn.ghost:hover { color: #fff; border-color: rgba(113,166,255,.65); background: rgba(255,255,255,.12); }
.hero-stores { margin-top: 26px; }
.hero-stores .store { min-width: 230px; }
.hero .store { border-color: rgba(255,255,255,.12); box-shadow: 0 12px 35px rgba(0,0,0,.24); }
.hero-meta { color: rgba(213,221,244,.55); }
.hero-meta .dot { background: #71A6FF; opacity: .85; }
.hero-media { width: 100%; }
.hero .aurora i { opacity: .42; filter: blur(120px); }
.hero .aurora .a1 { background: rgba(83,72,214,.75); top: -26%; }
.hero .aurora .a2 { background: rgba(37,99,235,.5); top: 20%; }
.hero .aurora .a3 { background: rgba(244,63,94,.35); }
.hero .aurora .a4 { background: rgba(16,185,129,.24); }

.hero .product-stage {
  width: 100%; height: 650px; margin: 0 auto;
  border-radius: 42px;
  background:
    radial-gradient(700px 520px at 50% 46%, rgba(77,98,255,.25), transparent 68%),
    radial-gradient(500px 390px at 9% 82%, rgba(15,185,129,.14), transparent 68%),
    radial-gradient(500px 390px at 92% 18%, rgba(244,63,94,.15), transparent 68%),
    linear-gradient(145deg,#101629,#080B14 74%);
  border-color: rgba(139,163,255,.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.09), 0 44px 120px rgba(0,0,0,.46);
}
.hero .product-stage::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: .19; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.06) 1px,transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom,transparent,#000 25%,#000 75%,transparent);
}
.hero .stage-ring { border-color: rgba(113,166,255,.18); }
.hero .ring-a { width: 630px; height: 630px; right: -120px; top: -260px; }
.hero .ring-b { width: 520px; height: 520px; left: -170px; bottom: -250px; }
.stage-label { position: absolute; left: 28px; top: 25px; display: flex; align-items: center; gap: 12px; z-index: 8; }
.stage-label span { color: #8DB5FF; background: rgba(37,99,235,.14); border: 1px solid rgba(113,166,255,.25); padding: 6px 9px; border-radius: 999px; font-size: 7px; font-weight: 850; letter-spacing: .13em; }
.stage-label b { color: rgba(223,231,255,.42); font-size: 7px; letter-spacing: .16em; }
.hero .app-device { width: 334px; height: 580px; left: -34px; top: 49px; z-index: 2; transform: rotate(-2.2deg); transform-origin: center; box-shadow: 0 40px 80px rgba(0,0,0,.48); }
.splash-device {
  position: absolute; z-index: 5; width: 300px; height: 578px; left: 50%; top: 35px;
  transform: translateX(-50%); overflow: hidden; border: 8px solid #0B0F1B; border-radius: 46px;
  background: #fff; box-shadow: 0 42px 90px rgba(0,0,0,.58), 0 0 0 1px rgba(255,255,255,.2);
}
.splash-top { position: absolute; z-index: 3; top: 0; left: 0; right: 0; height: 30px; display: flex; justify-content: space-between; align-items: center; padding: 8px 18px 0; color: #111827; font-size: 7px; font-weight: 800; }
.splash-top i { position: absolute; width: 78px; height: 20px; left: 50%; top: 3px; transform: translateX(-50%); border-radius: 999px; background: #0B0F1B; }
.splash-top b { font-size: 6px; letter-spacing: 3px; }
.splash-device video { width: 100%; height: 100%; object-fit: cover; display: block; }
.splash-caption { position: absolute; z-index: 3; left: 18px; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 2px; padding: 11px 13px; border-radius: 13px; background: rgba(7,10,18,.84); border: 1px solid rgba(255,255,255,.13); backdrop-filter: blur(12px); }
.splash-caption span { color: #91B7FF; font-size: 6px; font-weight: 850; letter-spacing: .12em; }
.splash-caption b { color: #fff; font-size: 10px; letter-spacing: .04em; }
.hero .leo-sheet { width: 330px; right: -44px; bottom: 75px; z-index: 6; transform: rotate(2.3deg); box-shadow: 0 38px 80px rgba(0,0,0,.42); }
.hero .floating-win { right: 12px; top: 90px; z-index: 7; }
.stage-foot { position: absolute; left: 28px; right: 28px; bottom: 21px; z-index: 8; display: flex; justify-content: space-between; color: rgba(225,232,255,.42); font-size: 7px; letter-spacing: .11em; font-weight: 700; }
.stage-foot span { display: flex; align-items: center; gap: 8px; }
.stage-foot i { width: 6px; height: 6px; border-radius: 50%; background: #47E4A1; box-shadow: 0 0 0 5px rgba(71,228,161,.1); }
.stage-foot b { color: #90B6FF; }
.launch .ios-note { margin: -15px auto 22px; color: rgba(255,255,255,.68); font-size: .88rem; }

@media (max-width: 1240px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { max-width: 840px; margin: 0 auto; text-align: center; }
  .hero h1 { max-width: 14ch; margin: 0 auto; }
  .hero .sub { max-width: 58ch; margin-left: auto; margin-right: auto; }
  .hero-cta, .hero-stores, .hero-meta { justify-content: center; }
  .hero .product-stage { width: min(100%, 920px); height: 690px; }
  .hero .app-device { left: 24px; top: 62px; }
  .splash-device { width: 310px; height: 604px; top: 42px; }
  .hero .leo-sheet { right: 16px; bottom: 92px; }
  .hero .floating-win { right: 24px; top: 102px; }
}

/* ---------- Features ---------- */

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2vw, 26px); }
.feature {
  --c: var(--purple);
  --c-soft: rgba(108, 77, 224, 0.09);
  background: linear-gradient(170deg, var(--c-soft), #fff 62%);
  border: 1px solid var(--line); border-radius: var(--radius);
  min-height: 310px; padding: clamp(22px, 2.4vw, 30px); position: relative; overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.feature::after { content: ""; position: absolute; width: 160px; height: 160px; right: -60px; bottom: -70px; background: var(--c); opacity: .055; border-radius: 50%; }
.feature:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--c) 45%, var(--line)); box-shadow: 0 24px 55px rgba(15, 17, 33, 0.11); }
.feature .ico {
  width: 96px; height: 96px; border-radius: 24px;
  background: transparent;
  display: grid; place-items: center; margin-bottom: 24px;
  box-shadow: 0 14px 30px var(--c-soft);
  transition: transform .22s ease;
}
.feature:hover .ico { transform: rotate(-2deg) scale(1.04); }
.feature .ico img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.feature-no { position: absolute; top: 28px; right: 28px; color: var(--c); opacity: .58; font-size: .69rem; letter-spacing: .12em; font-weight: 750; }
.feature h3 { font-size: 1.12rem; margin-bottom: 8px; }
.feature p { font-size: 0.95rem; color: var(--body); }

.feature.c-indigo { --c: var(--indigo); --c-soft: rgba(59, 107, 245, 0.10); }
.feature.c-teal   { --c: var(--teal);   --c-soft: rgba(16, 165, 160, 0.11); }
.feature.c-amber  { --c: var(--amber);  --c-soft: rgba(224, 138, 0, 0.12); }
.feature.c-pink   { --c: var(--pink);   --c-soft: rgba(222, 63, 135, 0.10); }
.feature.c-green  { --c: var(--green);  --c-soft: rgba(14, 159, 91, 0.11); }

/* ---------- Launch band ---------- */

.launch {
  position: relative; overflow: hidden;
  background: linear-gradient(125deg, #5539C8 0%, #6C4DE0 38%, #3B6BF5 72%, #2FA6C9 100%);
  border-radius: 24px; color: #fff;
  padding: clamp(44px, 5.5vw, 68px) clamp(24px, 4vw, 56px);
  text-align: center;
  box-shadow: 0 30px 70px rgba(85, 57, 200, 0.3);
}
.launch::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(680px 320px at 18% -20%, rgba(255, 255, 255, 0.3), transparent 68%);
  pointer-events: none;
}
.launch > * { position: relative; }
.launch h2 { color: #fff; font-size: clamp(1.55rem, 2.9vw, 2.1rem); }
.launch p { margin: 13px auto 30px; max-width: 48ch; color: rgba(255, 255, 255, 0.82); font-size: 1.03rem; }
.launch .store { background: rgba(255, 255, 255, 0.97); border-color: transparent; }
.launch .stores { margin-bottom: 26px; }
.launch .btn { background: #fff; color: var(--purple); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16); }
.launch .btn:hover { filter: none; background: #F3F1FE; }

/* ---------- Newsletter ---------- */

.news {
  max-width: 620px; margin: 0 auto; text-align: center;
  background: #fff; border: 1px solid var(--line); border-radius: 22px;
  padding: clamp(30px, 4vw, 46px) clamp(24px, 3.5vw, 44px);
  box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
}
.news::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--purple), var(--indigo), var(--teal), var(--amber), var(--pink));
}
.news h2 { font-size: clamp(1.45rem, 2.5vw, 1.9rem); }
.news p { margin-top: 12px; font-size: 1.01rem; }
.news-form { margin-top: 26px; display: flex; gap: 10px; }
.news-form input {
  flex: 1; min-width: 0;
  font: inherit; font-size: 0.96rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 11px;
  padding: 12px 15px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.news-form input::placeholder { color: var(--muted); }
.news-form input:focus {
  outline: none; border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(108, 77, 224, 0.15);
}
.news-form .btn { flex: none; }
.news-note { margin-top: 13px; font-size: 0.85rem; color: var(--muted); min-height: 22px; }
.news-note.ok { color: var(--green); font-weight: 600; }
.news-note.err { color: #C0392B; font-weight: 600; }

/* ---------- Footer ---------- */

footer { border-top: 1px solid var(--line); padding: 48px 0 40px; }
.foot-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot-brand p { margin-top: 10px; font-size: 0.9rem; color: var(--muted); max-width: 34ch; }
.foot-links { display: flex; gap: 30px; flex-wrap: wrap; }
.foot-links a { color: var(--body); text-decoration: none; font-size: 0.9rem; font-weight: 500; }
.foot-links a:hover { color: var(--purple); }
.foot-bottom {
  margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 0.85rem; color: var(--muted);
}

/* ---------- Legal pages ---------- */

.legal { max-width: 720px; margin: 0 auto; padding: 64px 24px 88px; }
.legal h1 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin-bottom: 8px; }
.legal .updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 34px; }
.legal h2 { font-size: 1.18rem; margin: 36px 0 10px; }
.legal h3 { font-size: 1rem; margin: 22px 0 6px; }
.legal p, .legal li { color: var(--body); font-size: 0.98rem; }
.legal ul, .legal ol { padding-left: 22px; margin: 10px 0; }
.legal li { margin: 5px 0; }
.legal a { color: var(--purple); font-weight: 500; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal .card-note {
  background: var(--soft); border: 1px solid var(--line);
  border-left: 3px solid var(--purple);
  border-radius: var(--radius); padding: 18px 22px; margin: 22px 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 1040px) {
  .hero { text-align: center; }
  .hero-grid { grid-template-columns: 1fr; gap: clamp(48px, 7vw, 72px); }
  .hero h1 { max-width: 15ch; margin: 0 auto; font-size: clamp(3.2rem, 8vw, 5.4rem); }
  .hero .sub { margin: 20px auto 0; max-width: 56ch; }
  .hero-cta, .hero-stores, .hero-meta { justify-content: center; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .hero .product-stage { width: min(920px, 100%); margin: 0 auto; }
  .hero .app-device { left: 22px; }
  .hero .leo-sheet { right: 20px; }
  .coach-card { grid-template-columns: 1fr 1fr; }
  .coach-bubble-one { left: -3%; }
}

@media (max-width: 860px) {
  .hero .app-device { left: -58px; opacity: .7; }
  .hero .leo-sheet { right: -36px; }
  .hero .floating-win { right: 15px; }
}

@media (max-width: 760px) {
  .hero-media .phone.trail { display: none; }
  .hero-media .phone.trail { transform: none; }
  .hero .product-stage { width: min(620px, 100%); height: 660px; }
  .hero .app-device { display: none; }
  .splash-device { width: 300px; height: 575px; top: 40px; }
  .hero .leo-sheet { width: 290px; right: -10px; bottom: 42px; }
  .hero .floating-win { display: none; }
  .stage-label { left: 18px; top: 17px; }
  .coach-card { grid-template-columns: 1fr; }
  .coach-copy { padding-bottom: 20px; }
  .coach-copy h2 { max-width: 12ch; }
  .coach-scene { min-height: 430px; }
  .coach-bubble-one { left: 4%; }
}

@media (max-width: 640px) {
  .nav-links { gap: 16px; }
  .nav-links a:not(.btn) { display: none; }
  .features { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .feature { min-height: 0; }
  .coach-card { border-radius: 26px; }
  .coach-copy { padding: 36px 26px 12px; }
  .coach-scene { min-height: 380px; }
  .coach-scene img { width: 80%; max-height: 350px; }
  .coach-bubble { font-size: .68rem; padding: 9px 11px; }
  .coach-bubble-one { left: 3%; top: 29%; }
  .coach-bubble-two { right: 3%; top: 11%; }
  .hero-meta { flex-direction: column; gap: 6px; }
  .hero-meta .dot { display: none; }
  .news-form { flex-direction: column; }
  .news-form .btn { width: 100%; }
  .foot-links { gap: 14px 24px; }
  .store { min-width: 0; flex: 1 1 100%; justify-content: center; }
  .phone.lead { --pw: min(300px, 84vw); }
  .logo-wordmark img { width: 118px; height: 32px; }
  .hero { padding-top: 48px; }
  .hero h1 { font-size: clamp(2.7rem, 13vw, 3.7rem); }
  .hero .sub { font-size: 1rem; }
  .hero .product-stage { width: 100%; height: 640px; border-radius: 30px; }
  .hero .app-device { display: none; }
  .splash-device { width: 266px; height: 520px; top: 56px; border-width: 7px; border-radius: 39px; }
  .app-home { padding-left: 11px; padding-right: 11px; }
  .app-toolbar > img { width: 120px; }
  .momentum-card { padding: 7px; }
  .momentum-stat img { width: 35px; height: 35px; }
  .momentum-stat b { font-size: 16px; }
  .app-habit { min-height: 56px; }
  .app-habit > img { width: 38px; height: 38px; }
  .hero .leo-sheet { width: 262px; right: -8px; bottom: 20px; padding: 12px; transform: rotate(1.8deg); }
  .leo-sheet-head > img { width: 43px; height: 43px; }
  .leo-message { padding: 9px; }
  .floating-win { display: none; }
  .stage-foot { display: none; }
  .stage-label b { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .feature:hover { transform: none; }
}
