/* ===========================================================
   Kinetic Habit — landing page
   Sleek premium dark mode, punchy lime accent
   =========================================================== */

:root {
  /* surfaces (cool-neutral near-blacks) */
  --bg:        oklch(0.155 0.012 256);
  --bg-1:      oklch(0.185 0.014 256);
  --bg-2:      oklch(0.215 0.015 256);
  --bg-3:      oklch(0.255 0.016 256);
  --border:    oklch(1 0 0 / 0.09);
  --border-2:  oklch(1 0 0 / 0.16);

  /* text */
  --text:      oklch(0.97 0.004 256);
  --text-dim:  oklch(0.76 0.012 256);
  --text-faint:oklch(0.58 0.013 256);

  /* punchy accent (driven by Tweaks) */
  --accent:    oklch(0.72 0.17 300);
  --accent-2:  oklch(0.72 0.16 325);
  --accent-ink:oklch(0.97 0.02 300);
  --accent-glow: oklch(0.72 0.17 300 / 0.40);

  /* mood semantic colors */
  --mood-energized: oklch(0.72 0.17 300);
  --mood-good:      oklch(0.80 0.13 215);
  --mood-tired:     oklch(0.74 0.15 295);
  --mood-stressed:  oklch(0.82 0.15 60);

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;

  --maxw: 1180px;
  --radius: 20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.05; letter-spacing: -0.02em; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1.5px;
  background: var(--accent);
  display: inline-block;
}

.muted { color: var(--text-dim); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 9px;
  font-weight: 700; font-size: 15px;
  padding: 13px 22px; border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .18s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 30px -8px var(--accent-glow); }
.btn-primary:hover { box-shadow: 0 16px 40px -8px var(--accent-glow); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-2); }
.btn-ghost:hover { background: var(--bg-2); border-color: var(--text-faint); }

/* ---------- store buttons ---------- */
.stores { display: flex; flex-wrap: wrap; gap: 14px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 13px;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: 15px;
  padding: 11px 20px 11px 17px;
  color: var(--text);
  transition: transform .18s ease, border-color .2s ease, background .2s ease;
}
.store-btn:hover { transform: translateY(-3px); border-color: var(--text-faint); background: var(--bg-3); }
.store-btn svg { width: 26px; height: 26px; flex: none; }
.store-btn .s-top { font-size: 11px; color: var(--text-dim); letter-spacing: 0.04em; line-height: 1.1; }
.store-btn .s-main { font-family: var(--font-display); font-weight: 600; font-size: 18px; line-height: 1.15; letter-spacing: -0.01em; }

/* ===========================================================
   NAV
   =========================================================== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: oklch(0.155 0.012 256 / 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.nav.scrolled { border-color: var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.brand .mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--accent);
  display: grid; place-items: center;
  position: relative;
  box-shadow: 0 6px 18px -6px var(--accent-glow);
}
.brand .mark svg { width: 20px; height: 20px; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 15px; font-weight: 600; color: var(--text-dim); transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 14px; }

/* ===========================================================
   HERO
   =========================================================== */
.hero { position: relative; padding: 70px 0 90px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
}
.hero-bg .glow {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: 0.5;
}
.hero-bg .g1 { width: 620px; height: 620px; top: -240px; right: -120px; background: var(--accent-glow); }
.hero-bg .g2 { width: 460px; height: 460px; bottom: -200px; left: -160px; background: oklch(0.55 0.16 265 / 0.32); }
.hero-bg .grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%);
  opacity: 0.5;
}

.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.4vw, 70px); margin: 22px 0 0; }
.hero h1 .hl { color: var(--accent); }
.hero .sub { font-size: 19px; color: var(--text-dim); margin: 22px 0 30px; max-width: 30em; text-wrap: pretty; }
.hero-actions { display: flex; flex-direction: column; gap: 18px; }
.hero-rating { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text-dim); margin-top: 6px; }
.stars { display: inline-flex; gap: 2px; color: var(--accent); }
.stars svg { width: 16px; height: 16px; }

/* ---------- phone mockup ---------- */
.phone-stage { position: relative; display: grid; place-items: center; }
.phone-stage .halo {
  position: absolute; width: 360px; height: 360px; border-radius: 50%;
  background: var(--accent-glow); filter: blur(80px); opacity: 0.55; z-index: 0;
}
.phone {
  position: relative; z-index: 1;
  width: 300px; height: 612px;
  background: oklch(0.12 0.01 256);
  border-radius: 46px;
  padding: 11px;
  border: 1px solid var(--border-2);
  box-shadow: 0 40px 90px -30px #000, 0 0 0 1px oklch(1 0 0 / 0.04) inset;
}
.phone-screen {
  position: relative;
  width: 100%; height: 100%;
  background: var(--bg-1);
  border-radius: 36px;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 96px; height: 26px; background: oklch(0.12 0.01 256); border-radius: 14px; z-index: 5; }

.scr-status { display: flex; justify-content: space-between; align-items: center; padding: 13px 22px 0; font-size: 12px; font-weight: 700; color: var(--text); }
.scr-status .dots { display: flex; gap: 4px; align-items: center; }

.scr-body { flex: 1; padding: 16px 18px 0; display: flex; flex-direction: column; gap: 13px; overflow: hidden; }
.scr-hello .s-name { font-family: var(--font-display); font-size: 21px; font-weight: 600; }
.scr-hello .s-date { font-size: 12.5px; color: var(--text-faint); margin-top: 2px; }

.scr-mood {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 15px; padding: 11px 13px;
}
.scr-mood .m-emoji { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 18px; background: color-mix(in oklch, var(--accent) 16%, transparent); }
.scr-mood .m-lbl { font-size: 11px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.08em; }
.scr-mood .m-val { font-size: 14.5px; font-weight: 700; }
.scr-mood .m-chev { margin-left: auto; color: var(--text-faint); }

.scr-card {
  border-radius: 16px; padding: 15px;
  background: linear-gradient(150deg, color-mix(in oklch, var(--accent) 16%, transparent), color-mix(in oklch, var(--accent) 4%, transparent));
  border: 1px solid color-mix(in oklch, var(--accent) 30%, transparent);
}
.scr-card .c-tag { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); font-weight: 800; }
.scr-card .c-title { font-family: var(--font-display); font-size: 19px; font-weight: 600; margin: 7px 0 3px; }
.scr-card .c-meta { font-size: 12.5px; color: var(--text-dim); }
.scr-card .c-go { margin-top: 12px; width: 100%; padding: 10px; border-radius: 11px; background: var(--accent); color: var(--accent-ink); border: none; font-weight: 800; font-size: 13.5px; }

.scr-rings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.ring-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: 14px; padding: 11px 8px; text-align: center; }
.ring-card .rc-label { font-size: 10.5px; color: var(--text-faint); margin-top: 7px; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; }
.ring-card .rc-val { font-size: 13px; font-weight: 700; }
.ring { --p: 70; --rc: var(--accent); width: 46px; height: 46px; border-radius: 50%; margin: 0 auto; display: grid; place-items: center;
  background: conic-gradient(var(--rc) calc(var(--p) * 1%), oklch(1 0 0 / 0.08) 0); }
.ring::after { content: ""; width: 34px; height: 34px; border-radius: 50%; background: var(--bg-2); }
.ring span { position: absolute; font-size: 11px; font-weight: 800; }

.scr-nav { margin-top: auto; display: flex; justify-content: space-around; padding: 13px 0 18px; border-top: 1px solid var(--border); background: var(--bg-1); }
.scr-nav .ni { width: 22px; height: 22px; color: var(--text-faint); }
.scr-nav .ni.active { color: var(--accent); }

/* ===========================================================
   SECTION SCAFFOLD
   =========================================================== */
section { position: relative; }
.section { padding: 100px 0; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(31px, 4vw, 48px); margin: 16px 0 0; }
.section-head p { font-size: 18px; color: var(--text-dim); margin-top: 16px; text-wrap: pretty; }

/* ---------- features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: var(--bg-1); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.feature:hover { transform: translateY(-6px); border-color: var(--border-2); background: var(--bg-2); }
.feature .f-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in oklch, var(--accent) 14%, transparent); color: var(--accent); margin-bottom: 22px; }
.feature .f-icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 22px; margin-bottom: 10px; }
.feature p { color: var(--text-dim); font-size: 15.5px; }
.feature ul { list-style: none; margin-top: 18px; display: flex; flex-direction: column; gap: 9px; }
.feature li { font-size: 14.5px; color: var(--text-dim); display: flex; align-items: center; gap: 10px; }
.feature li svg { width: 16px; height: 16px; color: var(--accent); flex: none; }

/* ===========================================================
   MOOD DEMO
   =========================================================== */
.mood { background: var(--bg-1); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.mood-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.mood-pills { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 8px; }
.mood-pill {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--bg-2); border: 1.5px solid var(--border-2);
  border-radius: 14px; padding: 13px 18px;
  font-weight: 700; font-size: 15.5px; color: var(--text-dim);
  transition: all .22s ease;
}
.mood-pill .pe { font-size: 20px; }
.mood-pill:hover { color: var(--text); transform: translateY(-2px); }
.mood-pill.active { color: var(--text); border-color: var(--mc); background: color-mix(in oklch, var(--mc) 16%, var(--bg-2)); box-shadow: 0 10px 30px -12px var(--mc); }
.mood-note { font-size: 14px; color: var(--text-faint); margin-top: 14px; display: flex; gap: 8px; align-items: center; }
.mood-note svg { width: 16px; height: 16px; color: var(--accent); flex: none; }

.mood-result {
  position: relative;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 24px; padding: 30px; overflow: hidden;
  transition: border-color .3s ease;
}
.mood-result .mr-glow { position: absolute; width: 320px; height: 320px; top: -160px; right: -120px; border-radius: 50%; filter: blur(70px); opacity: 0.4; transition: background .4s ease; }
.mr-head { display: flex; align-items: center; gap: 14px; position: relative; z-index: 1; }
.mr-badge { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 28px; transition: background .35s ease; }
.mr-head .mr-state { font-size: 13px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; }
.mr-head .mr-title { font-family: var(--font-display); font-size: 24px; font-weight: 600; transition: color .35s; }
.mr-body { position: relative; z-index: 1; margin-top: 24px; }
.mr-plan { display: flex; flex-direction: column; gap: 10px; }
.mr-row { display: flex; align-items: center; gap: 14px; background: var(--bg-1); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; }
.mr-row .ri { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex: none; transition: background .35s, color .35s; }
.mr-row .ri svg { width: 20px; height: 20px; }
.mr-row .rt { font-weight: 700; font-size: 15.5px; }
.mr-row .rd { font-size: 13px; color: var(--text-dim); }
.mr-row .rmeta { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--text-dim); white-space: nowrap; }
.mr-quote { margin-top: 18px; font-size: 14.5px; color: var(--text-dim); font-style: italic; display: flex; gap: 10px; }
.mr-quote .q { color: var(--mc, var(--accent)); font-size: 30px; line-height: 1; font-family: var(--font-display); }
.fade-swap { animation: fadeSwap .4s ease; }
@keyframes fadeSwap { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.pro-flag { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent-ink); background: var(--accent); padding: 4px 10px; border-radius: 999px; position: absolute; top: 22px; right: 22px; z-index: 2; }

/* ===========================================================
   HOW IT WORKS
   =========================================================== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding: 30px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-1); }
.step .s-num { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--accent-ink); background: var(--accent); width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 20px; }
.step h3 { font-size: 21px; margin-bottom: 9px; }
.step p { color: var(--text-dim); font-size: 15px; }
.step-line { position: absolute; top: 49px; left: 100%; width: 22px; height: 1px; background: var(--border-2); }

/* ===========================================================
   TESTIMONIALS
   =========================================================== */
.tcols { columns: 3; column-gap: 22px; }
.tcard { break-inside: avoid; margin-bottom: 22px; background: var(--bg-1); border: 1px solid var(--border); border-radius: 18px; padding: 24px; }
.tcard .stars { margin-bottom: 14px; }
.tcard p { font-size: 15.5px; color: var(--text); line-height: 1.55; }
.tcard .who { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.tcard .av { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-3); display: grid; place-items: center; font-weight: 800; font-family: var(--font-display); color: var(--accent); border: 1px solid var(--border-2); }
.tcard .who .n { font-weight: 700; font-size: 14.5px; }
.tcard .who .h { font-size: 12.5px; color: var(--text-faint); }

/* ===========================================================
   PRICING
   =========================================================== */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 860px; margin: 0 auto; }
.plan { background: var(--bg-1); border: 1px solid var(--border); border-radius: 24px; padding: 34px; position: relative; }
.plan.pro { border-color: var(--accent); background: linear-gradient(180deg, color-mix(in oklch, var(--accent) 8%, transparent), var(--bg-1) 40%); }
.plan .p-name { font-family: var(--font-display); font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim); }
.plan.pro .p-name { color: var(--accent); }
.plan .p-price { font-family: var(--font-display); font-size: 46px; font-weight: 600; margin: 16px 0 2px; letter-spacing: -0.02em; }
.plan .p-price small { font-size: 16px; color: var(--text-faint); font-weight: 500; font-family: var(--font-body); }
.plan .p-desc { color: var(--text-dim); font-size: 15px; margin-bottom: 24px; }
.plan .p-year { display: block; margin-top: 8px; font-size: 13.5px; font-weight: 700; color: var(--accent); }
.plan ul { list-style: none; display: flex; flex-direction: column; gap: 13px; margin-bottom: 28px; }
.plan li { display: flex; gap: 11px; align-items: flex-start; font-size: 15px; color: var(--text-dim); }
.plan li svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 2px; }
.plan li.off { color: var(--text-faint); }
.plan li.off svg { color: var(--text-faint); }
.plan .btn { width: 100%; }
.plan-flag { position: absolute; top: 22px; right: 24px; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent-ink); background: var(--accent); padding: 5px 12px; border-radius: 999px; }

/* ===========================================================
   FAQ
   =========================================================== */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; background: none; border: none; color: var(--text); text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 4px; font-family: var(--font-display); font-size: 19px; font-weight: 600; }
.faq-q .pm { width: 24px; height: 24px; flex: none; position: relative; transition: transform .3s; }
.faq-q .pm::before, .faq-q .pm::after { content: ""; position: absolute; background: var(--accent); border-radius: 2px; }
.faq-q .pm::before { width: 16px; height: 2px; top: 11px; left: 4px; }
.faq-q .pm::after { width: 2px; height: 16px; top: 4px; left: 11px; transition: transform .3s; }
.faq-item.open .pm::after { transform: rotate(90deg); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a p { padding: 0 4px 24px; color: var(--text-dim); font-size: 16px; }

/* ===========================================================
   CTA + FOOTER
   =========================================================== */
.cta { padding: 30px 0 110px; }
.cta-card {
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--border-2);
  border-radius: 32px; padding: 64px; text-align: center;
}
.cta-card .glow { position: absolute; width: 480px; height: 480px; border-radius: 50%; filter: blur(90px); background: var(--accent-glow); opacity: 0.4; top: -240px; left: 50%; transform: translateX(-50%); }
.cta-card > * { position: relative; z-index: 1; }
.cta-card h2 { font-size: clamp(32px, 4.5vw, 54px); }
.cta-card p { font-size: 19px; color: var(--text-dim); margin: 18px auto 32px; max-width: 30em; }
.cta-card .stores { justify-content: center; }

footer { border-top: 1px solid var(--border); padding: 54px 0 40px; }
.foot-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.foot-brand { max-width: 300px; }
.foot-brand p { color: var(--text-faint); font-size: 14.5px; margin-top: 16px; }
.foot-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.foot-col h4 { font-family: var(--font-body); font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-faint); margin-bottom: 16px; }
.foot-col a { display: block; color: var(--text-dim); font-size: 14.5px; padding: 5px 0; transition: color .2s; }
.foot-col a:hover { color: var(--text); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.foot-bottom p { color: var(--text-faint); font-size: 13.5px; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .phone-stage { order: -1; }
  .mood-inner { grid-template-columns: 1fr; gap: 36px; }
  .features, .steps { grid-template-columns: 1fr; }
  .tcols { columns: 2; }
  .step-line { display: none; }
  .nav-links { display: none; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .section { padding: 72px 0; }
  .tcols { columns: 1; }
  .plans { grid-template-columns: 1fr; }
  .cta-card { padding: 40px 24px; }
  .nav-cta .btn-ghost { display: none; }
  body { font-size: 16px; }
}

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