@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400&display=swap');

:root {
  --cream: #f8f5ec;
  --cream-90: rgba(248,245,236,.9);
  --cream-60: rgba(248,245,236,.6);
  --cream-55: rgba(248,245,236,.55);
  --cream-50: rgba(248,245,236,.5);
  --cream-40: rgba(248,245,236,.4);
  --hair: rgba(248,245,236,.16);
  --mint: #b0f7cb;
  --max: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: #000;
  color: var(--cream);
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (min-width: 900px) { .wrap { padding: 0; width: calc(100% - 240px); } }

/* ---------- Nav (glass pill) ---------- */
.nav {
  position: fixed; top: 24px; left: 50%; transform: translateX(-50%);
  z-index: 50;
  display: flex; align-items: center; gap: 4px;
  padding: 6px 6px 6px 18px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  white-space: nowrap;
}
.brand { display: flex; align-items: center; gap: 6px; padding-right: 18px; font-size: 15px; }
.logo { width: 24px; height: 24px; }
.nav .link { padding: 0 12px; font-size: 12px; color: rgba(248,245,236,.8); transition: color .2s; }
.nav .link:hover { color: var(--cream); }
.nav .spacer { width: 10px; }

.btn {
  display: inline-flex; align-items: center;
  background: var(--cream); color: #000;
  font: 400 12px/1.68 'Poppins', sans-serif;
  padding: 10px 18px; border-radius: 999px; border: 0; cursor: pointer;
  transition: opacity .2s;
}
.btn:hover { opacity: .85; }

@media (max-width: 640px) {
  .nav { top: 16px; padding-left: 14px; }
  .nav .link { display: none; }
  .nav .spacer { width: 4px; }
  .brand { padding-right: 10px; }
}

/* ---------- Shared ---------- */
.label {
  display: inline-flex; border: 1px solid var(--cream); border-radius: 10px;
  padding: 8px 16px; font-size: 13px;
}
.hairline { height: 1px; background: var(--hair); }
.lead { font-size: 28px; line-height: 1.28; letter-spacing: -.02em; }
.body { font-size: 14px; color: var(--cream-55); }

/* ---------- Hero ---------- */
.hero { position: relative; height: 900px; max-height: 100vh; min-height: 640px; overflow: hidden; }
.hero-img {
  position: absolute; top: 0; right: 0; width: 50%; height: 100%;
  background: url('assets/hero.jpg') center/cover no-repeat;
}
.hero-img::before, .hero-img::after { content: ''; position: absolute; }
.hero-img::before { left: 0; top: 0; bottom: 0; width: 300px; background: linear-gradient(to right, #000, transparent); }
.hero-img::after { left: 0; right: 0; bottom: 0; height: 200px; background: linear-gradient(to bottom, transparent, #000); }
.hero .wrap { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.hero h1 { font-weight: 300; font-size: 64px; line-height: 1.12; letter-spacing: -.02em; }
.hero p.sub { margin-top: 32px; max-width: 420px; font-size: 15px; color: var(--cream-60); }
.hero .btn { margin-top: 48px; align-self: flex-start; }
.hero .note { position: absolute; bottom: 60px; font-size: 11px; color: var(--cream-40); }

@media (max-width: 899px) {
  .hero { height: auto; max-height: none; min-height: 100vh; }
  .hero-img { width: 100%; opacity: .55; }
  .hero-img::before { width: 100%; background: linear-gradient(to right, rgba(0,0,0,.85), rgba(0,0,0,.2)); }
  .hero .wrap { padding-top: 140px; padding-bottom: 120px; min-height: 100vh; }
  .hero h1 { font-size: 44px; }
}

/* ---------- Two-column sections ---------- */
.split { padding: 120px 0; display: grid; grid-template-columns: 1fr; gap: 32px; }
.split .right { display: flex; flex-direction: column; gap: 28px; max-width: 520px; }
.split .right .body { max-width: 440px; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 520px; gap: 0; }
  .split .label { align-self: flex-start; }
}

/* ---------- Scores ---------- */
.scores { position: relative; overflow: hidden; }
.scores-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 56px; padding-top: 120px; padding-bottom: 120px; }
@media (min-width: 900px) { .scores-grid { grid-template-columns: minmax(0,1fr) 520px; gap: 0; min-height: 960px; padding-bottom: 0; } }
.score-list { display: flex; flex-direction: column; }
.score-list .label { align-self: flex-start; margin-bottom: 64px; }
.score { padding: 0 0 28px; }
.score + .hairline { margin-bottom: 28px; }
.score h3 { font-weight: 300; font-size: 28px; line-height: 1.28; letter-spacing: -.02em; }
.score .q { margin-top: 12px; font-size: 15px; color: var(--cream-90); }
.score .a { margin-top: 4px; font-size: 13px; color: var(--cream-50); max-width: 440px; }

.phone-stage { min-width: 0; position: relative; display: flex; justify-content: center; align-items: flex-start; }
.ring-glow {
  position: absolute; width: 660px; height: 660px; border-radius: 50%;
  top: 240px; left: 50%; transform: translateX(-50%);
  border: 1px solid rgba(248,245,236,.35);
  box-shadow: 0 -2px 40px rgba(200,230,225,.18), inset 0 2px 30px rgba(200,230,225,.08);
  pointer-events: none;
}
.phone-fade { position: absolute; left: 0; right: 0; bottom: -1px; height: 220px; background: linear-gradient(to bottom, transparent, #000 90%); pointer-events: none; z-index: 2; }
@media (max-width: 899px) {
  .ring-glow { width: 520px; height: 520px; top: 160px; }
  .phone-stage { height: 640px; overflow: hidden; }
}

/* Phone mockup (rebuilt from the Figma app screen) */
.phone {
  position: relative; z-index: 1;
  width: 422px; height: 894px; flex: none;
  background: #0a0a0a; border: 1px solid rgba(247,245,237,.18); border-radius: 66px;
  padding: 9px; transform-origin: top center;
}
@media (max-width: 480px) { .phone { transform: scale(.78); } }
.screen { width: 100%; height: 100%; background: #010101; border-radius: 56px; overflow: hidden; position: relative; padding: 0 24px; }
.status { display: flex; justify-content: space-between; padding: 18px 12px 0; font-size: 15px; font-weight: 400; }
.status .icons { display: flex; gap: 6px; align-items: center; }
.status .icons span { display: block; background: var(--cream); border-radius: 2px; }
.app-head { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; position: relative; }
.app-head .title { position: absolute; left: 50%; transform: translateX(-50%); font-size: 31px; }
.glass-btn { width: 44px; height: 44px; border-radius: 50%; background: rgba(248,245,236,.05); display: grid; place-items: center; font-size: 15px; color: rgba(248,245,236,.5); }
.app-head .actions { display: flex; gap: 8px; }
.spheres { display: flex; justify-content: space-between; padding: 0 4px; margin-top: 60px; }
.sph { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.sphere {
  width: 104px; height: 104px; border-radius: 50%;
  background-image: radial-gradient(circle, rgba(248,245,236,.95) 1.1px, transparent 1.6px);
  background-size: 7px 7px;
  -webkit-mask-image: radial-gradient(circle at 42% 38%, #000 0%, rgba(0,0,0,.75) 45%, rgba(0,0,0,.15) 70%, transparent 71%);
          mask-image: radial-gradient(circle at 42% 38%, #000 0%, rgba(0,0,0,.75) 45%, rgba(0,0,0,.15) 70%, transparent 71%);
}
.sphere.dim { opacity: .55; background-size: 9px 9px; }
.sph .num { font-size: 26px; line-height: 1; letter-spacing: -.04em; }
.sph .nm { font-size: 13px; margin-top: -9px; }
.sph .range { width: 64px; height: 2px; background: rgba(248,245,236,.2); border-radius: 2px; position: relative; margin-top: -5px; }
.sph .range i { position: absolute; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--cream); }
.sph .sub { font-size: 11px; color: rgba(248,245,236,.58); margin-top: -8px; }
.today { margin-top: 36px; display: flex; justify-content: space-between; align-items: center; }
.today b { font-weight: 400; font-size: 24px; }
.dots { display: flex; gap: 4px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }
.dots i.off { background: #3b3b3d; }
.habits { display: flex; justify-content: space-between; margin-top: 20px; }
.habit { width: 52px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 10px; color: var(--cream-90); white-space: nowrap; }
.habit .ring { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--mint); display: grid; place-items: center; color: var(--mint); font-size: 16px; }
.habit .ring.open { border-color: #3b3b3d; color: transparent; }
.rows { margin-top: 20px; }
.row { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; border-bottom: 1px solid rgba(248,245,236,.1); }
.row .k { font-size: 14px; opacity: .5; }
.row .t { font-size: 20px; line-height: 26px; }
.row .v { font-size: 28px; letter-spacing: -.04em; }
.row .v small { font-size: 14px; color: var(--cream-60); letter-spacing: 0; margin-left: 4px; }

/* ---------- Waitlist ---------- */
.waitlist {
  position: relative; min-height: 820px; display: grid; place-items: center; overflow: hidden;
  background:
    radial-gradient(ellipse 40% 55% at 72% 55%, rgba(30,40,40,.95), transparent 70%),
    radial-gradient(ellipse 70% 80% at 45% 50%, #5c7472, #2f3f3f 55%, #151c1c 100%);
}
.waitlist::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.3); }
.glass-card {
  position: relative; width: min(600px, calc(100% - 48px));
  padding: 47px 24px 52px; text-align: center;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.45); border-radius: 28px;
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
}
.glass-card h2 { font-weight: 300; font-size: 36px; line-height: 1.2; letter-spacing: -.02em; }
.glass-card .body { color: var(--cream-90); font-size: 13px; margin-top: 14px; }
.email-field {
  margin: 30px auto 0; max-width: 440px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 5px 5px 5px 20px; border-radius: 999px;
  background: rgba(0,0,0,.4); border: 1px solid rgba(255,255,255,.3);
}
.email-field input {
  flex: 1; min-width: 0; background: none; border: 0; outline: none;
  color: var(--cream); font: 300 13px 'Poppins', sans-serif;
}
.email-field input::placeholder { color: rgba(248,245,236,.7); }
.email-field .btn { padding: 9px 16px; }
.glass-card .fine { margin: 28px auto 0; max-width: 420px; font-size: 11px; color: rgba(248,245,236,.65); }
.glass-card .fine a { text-decoration: underline; }
.waitlist .mark { position: absolute; bottom: 60px; left: 50%; transform: translateX(-50%); width: 30px; height: 30px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--hair); }
footer .inner {
  display: flex; flex-wrap: wrap; gap: 16px 24px; justify-content: space-between; align-items: center;
  padding: 36px 56px 46px; font-size: 11px;
}
footer .copy { color: var(--cream-40); }
footer nav { display: flex; gap: 24px; flex-wrap: wrap; color: var(--cream-60); }
footer nav a:hover { color: var(--cream); }
@media (max-width: 640px) { footer .inner { padding: 32px 24px; } }

/* ---------- Legal / support pages ---------- */
.page { position: relative; overflow: hidden; }
.fog {
  position: absolute; width: 1000px; height: 760px; top: -260px; left: 50%; margin-left: -110px;
  transform: rotate(24deg);
  background: radial-gradient(ellipse at center, rgba(120,140,140,.42), rgba(60,75,75,.18) 45%, transparent 70%);
  filter: blur(40px); pointer-events: none;
}
.page-head { position: relative; padding-top: 170px; padding-bottom: 64px; }
.page-head h1 { font-weight: 300; font-size: 40px; line-height: 1.2; letter-spacing: -.02em; margin-top: 22px; }
.page-head p { margin-top: 16px; max-width: 520px; font-size: 14px; color: var(--cream-60); line-height: 1.72; }
.page-body { position: relative; display: grid; grid-template-columns: 1fr; gap: 40px; padding-top: 50px; padding-bottom: 120px; }
@media (min-width: 900px) { .page-body { grid-template-columns: 440px 640px; } }
.toc { display: flex; flex-direction: column; gap: 10px; font-size: 12px; color: var(--cream-50); line-height: 1.72; }
@media (min-width: 900px) { .toc { position: sticky; top: 120px; align-self: start; } }
.toc a:hover { color: var(--cream); }
.toc span { display: inline-block; width: 30px; }
.sections { display: flex; flex-direction: column; gap: 52px; }
.sections section { scroll-margin-top: 120px; }
.sections h2, .faq h2 { font-weight: 300; font-size: 20px; line-height: 1.4; margin-bottom: 12px; }
.sections p, .faq p { font-size: 14px; color: var(--cream-60); line-height: 1.72; }
.sections p + p { margin-top: 1.72em; }
.sections a, .faq a { text-decoration: underline; text-underline-offset: 2px; }
.contact-k { font-size: 12px; color: var(--cream-50); }
.contact-v { font-size: 24px; line-height: 1.4; }
.faq > div { padding: 28px 0; border-bottom: 1px solid var(--hair); }
.faq > div:first-child { padding-top: 0; }
.faq p { max-width: 560px; }
