:root {
  --ground: #17171B;
  --ground-2: #121215;
  --card: #27272D;
  --raised: #2A2A31;
  --hair: rgba(255, 255, 255, 0.07);
  --text: #ECECEF;
  --list: #D4D4DA;
  --secondary: #A1A1AA;
  --tertiary: #8A8A93;
  --quiet: #6A6A73;
  --earned: #2BD576;
  --amber: #E8A33D;
  --teal: #3EC6C1;
  --blue: #4FA8F5;
  --sleep: #8B8DF5;
  --meal: #F0705A;
  --text-font: "Barlow", system-ui, -apple-system, sans-serif;
  --num-font: "Barlow Semi Condensed", "Barlow", system-ui, sans-serif;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
section[id] { scroll-margin-top: 64px; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--text-font);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
h1, h2 { font-weight: 600; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(40px, 6.4vw, 76px); line-height: 1.02; }
h2 { font-size: clamp(30px, 4.2vw, 48px); line-height: 1.08; margin-bottom: 20px; }
p { margin: 0 0 16px; color: var(--secondary); }
.muted { color: var(--tertiary); font-size: 16px; }
.center { text-align: center; }

.eyebrow, .label {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12.5px;
  color: var(--tertiary);
}
.eyebrow { margin-bottom: 14px; }
.label { color: var(--list); }

.wordmark {
  font-family: var(--num-font);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.wordmark.small { font-size: 20px; }

.soon {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  white-space: nowrap;
}
.soon.big { font-size: 15px; padding: 12px 20px; }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 16px max(20px, calc((100vw - var(--max)) / 2));
  background: rgba(23, 23, 27, 0.82);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--hair);
}
.nav nav { display: flex; gap: 28px; }
.nav nav a { text-decoration: none; color: var(--secondary); font-size: 15px; font-weight: 500; }
.nav nav a:hover { color: var(--text); }

/* Hero */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 40px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 110px 20px 80px;
  position: relative;
}
.hero-copy .lede { font-size: 20px; max-width: 34em; margin-top: 24px; }
.cta-line { margin-top: 28px; }
.orb-wrap { position: relative; aspect-ratio: 1; width: 100%; max-width: 520px; justify-self: center; }
#orb { width: 100%; height: 100%; display: block; }
.orb-score {
  position: absolute; left: 0; right: 0; bottom: 4%;
  display: flex; flex-direction: column; align-items: center;
  font-family: var(--num-font); font-weight: 600;
}
.orb-score span { font-size: 44px; line-height: 1; color: var(--amber); transition: color 0.4s; }
.orb-score small { font-family: var(--text-font); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--tertiary); margin-top: 6px; }
.scroll-hint {
  position: absolute; left: 50%; bottom: 28px; width: 26px; height: 40px; margin-left: -13px;
  border: 1.5px solid rgba(255, 255, 255, 0.25); border-radius: 14px;
}
.scroll-hint span {
  position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px;
  background: var(--secondary); border-radius: 2px; animation: hint 1.8s ease-in-out infinite;
}
@keyframes hint { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* Bands */
.band { max-width: var(--max); margin: 0 auto; padding: 110px 20px; }
.band.alt { position: relative; }
.band.alt::before {
  content: ""; position: absolute; inset: 0 calc(50% - 50vw); z-index: -1;
  background: var(--ground-2);
}
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.split.reverse .copy { order: 2; }
.copy p { max-width: 32em; }

/* Card, as the app draws it */
.card {
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: 22px;
  padding: 20px 20px 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
.card-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.total { font-family: var(--num-font); color: var(--quiet); font-size: 14px; }
.total b { font-size: 17px; color: var(--amber); transition: color 0.4s; }
.row { padding: 14px 0 12px; border-top: 1px solid var(--hair); }
.card-head + .row { border-top: none; }
.row-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.row-num { font-family: var(--num-font); font-size: 18px; }
.part { display: grid; grid-template-columns: 92px minmax(0, 1fr) 136px; gap: 12px; align-items: center; margin: 7px 0; }
.part > span { font-size: 14px; color: var(--secondary); }
.part i { display: block; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.part u { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--c, var(--teal)); transition: width 1.2s cubic-bezier(.2, .8, .2, 1); }
.part em { font-style: normal; font-size: 12.5px; color: var(--quiet); text-align: right; white-space: nowrap; }
.part em b { font-family: var(--num-font); font-size: 15px; color: var(--text); }
.part .late { color: var(--amber); }
.row[data-key="training"] { --c: var(--teal); }
.row[data-key="steps"] { --c: var(--blue); }
.row[data-key="sleep"] { --c: var(--sleep); }
.row[data-key="nutrition"] { --c: var(--meal); }
.card.lit .part u { width: calc(var(--to) * 100%); }
.card.lit .part u.full { background: var(--earned); box-shadow: 0 0 10px rgba(43, 213, 118, 0.55); }
.ticks { display: flex; gap: 10px; padding-top: 14px; border-top: 1px solid var(--hair); margin-top: 4px; }
.tick {
  flex: 1; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.04); font-size: 14px; font-weight: 600; color: var(--list);
}
.tick::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--quiet); flex: none; }
.tick.on::before { border-color: var(--earned); background: radial-gradient(var(--earned) 40%, transparent 45%); }
.tick small { margin-left: auto; color: var(--quiet); font-weight: 400; font-size: 12px; }

.why { list-style: none; padding: 0; margin: 64px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why li { font-size: 15px; color: var(--secondary); border-top: 1px solid var(--hair); padding-top: 16px; }
.why b { display: block; color: var(--text); font-weight: 600; margin-bottom: 6px; }

/* Zones */
.zone { display: grid; grid-template-columns: 64px 1fr 92px; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 8px 0; }
.zone .z { font-size: 14px; font-weight: 600; color: var(--list); }
.zone .bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.zone .bar u { display: block; height: 100%; width: calc(var(--w) * 100%); background: var(--c); border-radius: 3px; }
.zone em { font-style: normal; font-family: var(--num-font); font-size: 15px; text-align: right; }
.zone small { grid-column: 2 / 4; font-size: 12.5px; color: var(--quiet); margin-top: 2px; }
.zones .today { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--hair); }
.zones .today .part:first-of-type u { --c: var(--teal); }
.zones .today .part:last-of-type u { --c: var(--amber); }
.zones.lit .part u { width: calc(var(--to) * 100%); }

/* Chat */
.chat { display: flex; flex-direction: column; gap: 14px; }
.msg { display: flex; gap: 12px; align-items: flex-start; max-width: 460px; }
.msg p {
  margin: 0; padding: 14px 16px; border-radius: 18px; background: var(--card); color: var(--list);
  font-size: 16px; border: 1px solid var(--hair);
}
.msg .dot {
  flex: none; width: 26px; height: 26px; margin-top: 8px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFE2B8 0, #E8A33D 35%, #4A3415 75%, #1d1810 100%);
  box-shadow: 0 0 14px rgba(232, 163, 61, 0.45);
}
.msg.me { align-self: flex-end; }
.msg.me p { background: #34343C; color: var(--text); }
.chat .msg { opacity: 0; transform: translateY(10px); transition: opacity .6s, transform .6s; }
.chat.lit .msg { opacity: 1; transform: none; }
.chat.lit .msg:nth-child(2) { transition-delay: .5s; }
.chat.lit .msg:nth-child(3) { transition-delay: 1.1s; }
.chat.lit .msg:nth-child(4) { transition-delay: 1.7s; }

/* Devices */
.devices { text-align: center; }
.device-list { list-style: none; padding: 0; margin: 32px auto 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 760px; }
.device-list li {
  padding: 12px 20px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 600; font-size: 16px; color: var(--list);
}

/* Evidence */
.sources { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px; margin-top: 12px; }
.sources div { border-top: 1px solid var(--hair); padding: 18px 0; }
.sources b { display: block; font-weight: 600; margin-bottom: 4px; }
.sources span { color: var(--tertiary); font-size: 15px; }

/* Closing and footer */
.closing { text-align: center; padding: 140px 20px 120px; }
.closing p { font-size: 20px; }
.foot { max-width: var(--max); margin: 0 auto; padding: 36px 20px 48px; border-top: 1px solid var(--hair); }
.foot p { font-size: 13.5px; color: var(--quiet); max-width: 60em; margin-top: 12px; }
.copy-line { margin-top: 18px; }

/* Phones */
@media (max-width: 880px) {
  body { font-size: 17px; }
  .nav nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 88px; text-align: left; gap: 8px; }
  .orb-wrap { max-width: 340px; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse .copy { order: 0; }
  .why, .sources { grid-template-columns: 1fr 1fr; }
  .band { padding: 80px 16px; }
  .scroll-hint { display: none; }
}
@media (max-width: 520px) {
  .why, .sources { grid-template-columns: 1fr; }
  .part { grid-template-columns: 74px minmax(0, 1fr) 118px; gap: 10px; }
  .part em { font-size: 11.5px; }
  .part em b { font-size: 14px; }
  .soon:not(.big) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .part u, .chat .msg { transition: none; }
  .scroll-hint span { animation: none; }
}
