:root {
  --bg:       #F1ECDF;
  --bg-2:     #FAF6EC;
  --card:     #FFFFFF;

  --ink:      #1B2A35;
  --ink-2:    #4E5963;
  --ink-3:    #8A95A1;

  --accent:    #DD5A2A;
  --accent-2:  #E8A14E;
  --teal:      #3F7E91;

  --hair:      rgba(27, 42, 53, 0.08);
  --hair-2:    rgba(27, 42, 53, 0.16);

  --radius:   18px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body {
  background:
    radial-gradient(1200px 700px at 88% -10%, rgba(232, 161, 78, 0.18), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(63, 126, 145, 0.10), transparent 60%),
    linear-gradient(180deg, #F4EFE3 0%, #F1ECDF 60%, #ECE6D6 100%);
  min-height: 100vh;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }

code {
  font-family: "SF Mono", ui-monospace, Menlo, monospace;
  font-size: 0.9em;
  padding: 0.08em 0.4em;
  border-radius: 6px;
  background: rgba(63, 126, 145, 0.08);
  color: var(--teal);
  border: 1px solid rgba(63, 126, 145, 0.2);
}

h1, h2, h3 {
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 0.5em;
  color: var(--ink);
}
h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 700; }
h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 650; }
h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0 0 14px;
  padding: 4px 10px;
  border: 1px solid var(--hair-2);
  border-radius: 999px;
  background: rgba(255,255,255,0.5);
}
.eyebrow.amber {
  color: var(--accent);
  border-color: rgba(221, 90, 42, 0.28);
  background: rgba(221, 90, 42, 0.06);
}
.mint { color: var(--accent); }

/* nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(20px, 5vw, 56px);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  background: rgba(241, 236, 223, 0.7);
  border-bottom: 1px solid var(--hair);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}
.brand img { border-radius: 8px; box-shadow: 0 4px 14px -6px rgba(0,0,0,0.25); }
.nav nav { display: flex; gap: clamp(14px, 2.4vw, 26px); align-items: center; }
.nav nav a { font-size: 14px; color: var(--ink-2); }
.nav nav a:hover { color: var(--accent); }
.nav .cta {
  background: var(--ink);
  color: var(--bg-2);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
}
.nav .cta:hover { background: var(--accent); color: #FFFFFF; }
@media (max-width: 720px) {
  .nav nav a:not(.cta) { display: none; }
}

/* layout */
main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px);
}
.band {
  padding: clamp(56px, 8vw, 96px) 0;
  border-top: 1px solid var(--hair);
}
.band.tinted { position: relative; }
.band.tinted::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(700px 360px at 80% 20%, rgba(63, 126, 145, 0.07), transparent 70%);
  pointer-events: none;
}

/* hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
  padding: clamp(56px, 8vw, 100px) 0 clamp(40px, 6vw, 80px);
}
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } }

.hero-copy h1 { margin-top: 6px; }
.hero-copy .lede {
  font-size: clamp(16px, 1.4vw, 18px);
  color: var(--ink-2);
  max-width: 52ch;
  margin-top: 16px;
}
.actions {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 22px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn small { font-weight: 400; font-size: 12px; opacity: 0.75; }
.btn.primary {
  background: var(--ink);
  color: #FFFFFF;
  box-shadow: 0 12px 30px -16px rgba(27, 42, 53, 0.5);
}
.btn.primary:hover { background: var(--accent); color: #FFFFFF; transform: translateY(-1px); }
.btn.ghost {
  background: rgba(255,255,255,0.55);
  color: var(--ink);
  border-color: var(--hair-2);
  align-self: center;
}
.btn.ghost:hover { background: rgba(255,255,255,0.85); }
.reqs {
  margin-top: 20px;
  font-size: 13px;
  color: var(--ink-3);
}

/* honest-note disclaimer (sits between hero and "how it works") */
.disclaimer {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(18px, 2.5vw, 28px) clamp(20px, 5vw, 56px) clamp(28px, 4vw, 48px);
}
.disclaimer p {
  margin: 0;
  padding: clamp(16px, 2.2vw, 22px) clamp(18px, 2.6vw, 26px);
  border-radius: 14px;
  background: rgba(221, 90, 42, 0.07);
  border: 1px solid rgba(221, 90, 42, 0.22);
  color: var(--ink-2);
  font-size: clamp(14px, 1.15vw, 16px);
  line-height: 1.55;
}
.disclaimer-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-right: 10px;
  vertical-align: 1px;
}
.disclaimer .wink { color: var(--accent); font-style: italic; }

/* hero art */
.hero-art {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

/* menubar strip */
.menubar-strip {
  width: min(100%, 460px);
  height: 28px;
  border-radius: 10px;
  background: linear-gradient(180deg, #2A3946 0%, #1B2A35 100%);
  border: 1px solid rgba(0,0,0,0.3);
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  font-size: 12px;
  color: #F1ECDF;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 6px 20px -10px rgba(27, 42, 53, 0.35);
}
.mb-time { color: #F1ECDF; font-weight: 500; }
.mb-tray {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.mb-pod {
  width: 22px;
  height: 14px;
  object-fit: contain;
  display: inline-block;
  transition: opacity 0.1s ease;
}
.mb-dot {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--teal);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.18);
  transition: background 0.2s ease;
}

/* popover */
.popover {
  width: min(100%, 360px);
  border-radius: 18px;
  background: #F6F3EC;
  color: #1B1F22;
  border: 1px solid rgba(27, 42, 53, 0.14);
  box-shadow: 0 30px 60px -28px rgba(27, 42, 53, 0.25), 0 1px 0 rgba(255,255,255,0.8) inset;
  padding: 14px;
  font-size: 13px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.popover::after {
  content: "";
  position: absolute;
  inset: -40px -50px;
  background:
    radial-gradient(400px 220px at 90% 10%, rgba(232, 161, 78, 0.16), transparent 70%),
    radial-gradient(400px 220px at 10% 90%, rgba(63, 126, 145, 0.12), transparent 70%);
  filter: blur(10px);
  z-index: -1;
}

/* app-style cards */
.app-card {
  background: #FBFAF4;
  border: 1px solid rgba(0,0,0,0.095);
  border-radius: 10px;
  padding: 12px;
}

/* LiveSignalPanel */
.live-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.live-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.live-tag {
  display: flex;
  align-items: center;
  gap: 7px;
}
.pod-sm {
  width: 16px;
  height: 11px;
  object-fit: contain;
}
.sec-text { font-size: 11px; font-weight: 500; color: #6B7176; }
.live-headline {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #1B2A35;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.live-subline { font-size: 11px; color: #6B7176; margin-top: 3px; }

/* SignalStrip */
.signal-strip { display: flex; gap: 4px; align-items: center; }
.signal-cap {
  height: 5px;
  border-radius: 999px;
  transition: width 0.12s ease, opacity 0.12s ease;
}

/* MotionDial */
.motion-dial-wrap {
  position: relative;
  width: 82px;
  height: 82px;
  flex-shrink: 0;
}
.motion-dial-wrap svg { display: block; }
.dial-text-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  pointer-events: none;
}
.dial-deg {
  font-size: 20px;
  font-weight: 600;
  color: #1B2A35;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.dial-live-lbl { font-size: 9px; font-weight: 500; color: #6B7176; line-height: 1; }

/* TodayOverview */
.today-row { display: flex; align-items: center; gap: 14px; }
.score-dial-wrap {
  position: relative;
  width: 70px;
  height: 70px;
  flex-shrink: 0;
}
.score-dial-wrap svg { display: block; }
.score-text-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.score-pct-lbl {
  font-size: 17px;
  font-weight: 600;
  color: #1B2A35;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.score-sub-lbl { font-size: 9px; font-weight: 500; color: #6B7176; }
.today-stats {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.today-head { font-size: 12px; font-weight: 600; color: #1B2A35; }
.metric-line {
  display: flex;
  align-items: center;
  gap: 7px;
}
.metric-ic {
  font-size: 10px;
  font-weight: 600;
  color: #6B7176;
  width: 14px;
  text-align: center;
  flex-shrink: 0;
}
.metric-label { font-size: 10px; color: #6B7176; flex: 1; }
.metric-val {
  font-size: 12px;
  font-weight: 600;
  color: #1B2A35;
  font-variant-numeric: tabular-nums;
}

/* MiniHistorySection */
.week-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 9px;
}
.week-label { font-size: 11px; font-weight: 500; color: #6B7176; }
.week-pct { font-size: 12px; font-weight: 600; color: #6B7176; font-variant-numeric: tabular-nums; }
.trendsvg { display: block; }
.day-dots-row {
  display: flex;
  justify-content: space-around;
  margin-top: 4px;
}
.day-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* BottomToolbar */
.pop-toolbar-new {
  display: flex;
  gap: 8px;
  padding-top: 1px;
}
.tb-btn-new {
  flex: 1;
  height: 34px;
  border-radius: 6px;
  background: rgba(0,0,0,0.055);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #6B7176;
  cursor: default;
  user-select: none;
}

/* steps */
.steps {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; } }
.steps li {
  background: var(--card);
  border: 1px solid var(--hair-2);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 8px 22px -16px rgba(27, 42, 53, 0.18);
}
.step-num {
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--accent);
  font-weight: 600;
  display: inline-block;
  margin-bottom: 12px;
}
.steps li p { color: var(--ink-2); margin: 6px 0 0; }

/* privacy */
.privacy-line {
  color: var(--ink-2);
  font-size: clamp(15px, 1.3vw, 17px);
  max-width: 70ch;
  margin: 16px 0 0;
}

/* faq */
.faq {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 28px;
}
@media (max-width: 720px) { .faq { grid-template-columns: 1fr; } }
details {
  border: 1px solid var(--hair-2);
  border-radius: 14px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.55);
  transition: border-color 0.2s ease, background 0.2s ease;
}
details[open] {
  border-color: rgba(221, 90, 42, 0.32);
  background: rgba(221, 90, 42, 0.05);
}
summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-right: 24px;
  color: var(--ink);
  font-size: 14.5px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  position: absolute;
  right: 0; top: -2px;
  font-size: 22px;
  font-weight: 300;
  color: var(--accent);
}
details[open] summary::after { content: "−"; }
details p { color: var(--ink-2); margin: 8px 0 0; font-size: 14px; }

/* footer */
footer {
  margin-top: clamp(40px, 6vw, 80px);
  padding: 32px clamp(20px, 5vw, 56px);
  border-top: 1px solid var(--hair);
  background: rgba(255,255,255,0.4);
}
.foot-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.foot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}
.foot-brand img { border-radius: 6px; }
footer p { color: var(--ink-3); font-size: 13px; margin: 0; }
footer a { color: var(--accent); }
.heart { color: #DD5A2A; font-size: 1em; vertical-align: -0.05em; padding: 0 1px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
