@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0B0D10;
  --bg-2: #101317;
  --surface: #171B21;
  --surface-2: #1E232B;
  --surface-3: #262C36;
  --line: rgba(255,255,255,0.08);
  --line-2: rgba(255,255,255,0.14);
  --text: #F4F6F8;
  --muted: #9AA3AE;
  --faint: #6D7580;
  --home: #E8D5A3;
  --home-ink: #161410;
  --faith: #E8C36A;
  --faith-ink: #1A1508;
  --faith-soft: rgba(232,195,106,0.14);
  --food: #7BC99A;
  --food-ink: #0B160F;
  --food-soft: rgba(123,201,154,0.14);
  --fitness: #F08A64;
  --fitness-ink: #1A0E0A;
  --fitness-soft: rgba(240,138,100,0.14);
  --figure: #8AA0F0;
  --figure-ink: #0C101C;
  --figure-soft: rgba(138,160,240,0.14);
  --accent: var(--home);
  --accent-ink: var(--home-ink);
  --kcal: #E8C36A;
  --pro: #7BC99A;
  --fat: #E8C36A;
  --carb: #8AA0F0;
  --good: #6ECF97;
  --over: #FF6B6B;
  --shadow: 0 12px 40px rgba(0,0,0,0.35);
  --safe-top: 54px;
  --tab-h: 84px;
  --header-h: 52px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 16px;
  --radius-sm: 12px;
}

.theme-home { --accent: var(--home); --accent-ink: var(--home-ink); }
.theme-faith { --accent: var(--faith); --accent-ink: var(--faith-ink); }
.theme-food { --accent: var(--food); --accent-ink: var(--food-ink); }
.theme-fitness { --accent: var(--fitness); --accent-ink: var(--fitness-ink); }
.theme-figure { --accent: var(--figure); --accent-ink: var(--figure-ink); }

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
button, input { font-family: inherit; color: inherit; }
button { cursor: default; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01" on, "cv11" on;
}

body.mobile {
  width: 390px;
  height: 844px;
  overflow: hidden;
  position: relative;
  background: var(--bg);
}

@media (min-width: 600px) {
  html:has(body.mobile) { background: #090b0e; }
  body.mobile {
    margin: 32px auto;
    border-radius: 40px;
    box-shadow: 0 24px 70px rgba(0,0,0,0.55);
    border: 1px solid var(--line);
  }
}

/* ---- iOS chrome ---- */
.status {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: var(--safe-top);
  z-index: 40;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 22px 8px 28px;
  pointer-events: none;
  color: var(--text);
}
.status .time {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.status .icons { display: flex; align-items: center; gap: 6px; }
.island {
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 126px;
  height: 35px;
  background: #000;
  border-radius: 20px;
  z-index: 50;
}
.home-bar {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  width: 134px;
  height: 5px;
  background: #fff;
  border-radius: 100px;
  opacity: 0.85;
  z-index: 80;
  pointer-events: none;
}

.ex-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 3px 8px 3px 6px;
  white-space: nowrap;
}
.ex-pill i {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  display: block;
}
.ex-caption {
  text-align: center;
  font-size: 11px;
  color: var(--faint);
  padding: 10px 16px 16px;
  line-height: 1.45;
}

/* ---- Header / tabs ---- */
.m-header {
  position: absolute;
  top: var(--safe-top);
  left: 0; right: 0;
  height: var(--header-h);
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: linear-gradient(180deg, rgba(11,13,16,0.98), rgba(11,13,16,0.92));
  border-bottom: 1px solid var(--line);
}
.brand {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand .mark {
  width: 22px; height: 22px;
  border-radius: 7px;
  background: var(--accent);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
}
.when {
  text-align: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.when .d { font-size: 13px; font-weight: 650; letter-spacing: -0.02em; }
.when .sub { font-size: 10px; color: var(--muted); margin-top: 1px; }

.avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--surface-3);
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}

.tabs {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: var(--tab-h);
  z-index: 40;
  display: flex;
  align-items: flex-start;
  justify-content: space-around;
  padding: 8px 2px 0;
  background: rgba(16,19,23,0.94);
  border-top: 1px solid var(--line);
}
.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding-top: 4px;
  font-size: 9.5px;
  font-weight: 600;
  color: var(--faint);
  letter-spacing: 0.01em;
}
.tab svg {
  width: 22px; height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tab.active { color: var(--accent); }
.tab.t-faith.active { color: var(--faith); }
.tab.t-food.active { color: var(--food); }
.tab.t-fitness.active { color: var(--fitness); }
.tab.t-figure.active { color: var(--figure); }
.tab.t-home.active { color: var(--home); }

.scroll {
  position: absolute;
  top: calc(var(--safe-top) + var(--header-h));
  left: 0; right: 0;
  bottom: var(--tab-h);
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--bg);
  scrollbar-width: none;
}
.scroll::-webkit-scrollbar { display: none; }
.scroll-inner { padding: 12px 16px 10px; }

.m-fade {
  position: absolute;
  left: 0; right: 0;
  bottom: var(--tab-h);
  height: 28px;
  background: linear-gradient(to bottom, rgba(11,13,16,0), var(--bg) 90%);
  z-index: 25;
  pointer-events: none;
}

/* ---- Shared bits ---- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 10px;
}
.section-h {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.section-h span {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 550;
  color: var(--faint);
}
.check {
  width: 22px; height: 22px;
  border-radius: 7px;
  border: 1.5px solid var(--line-2);
  background: var(--surface-2);
  flex-shrink: 0;
  display: grid;
  place-items: center;
}
.check.on {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.check svg {
  width: 13px; height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.seg-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  background: var(--bg);
  border-radius: 12px;
  padding: 3px;
  margin-bottom: 12px;
}
.seg-row .seg {
  text-align: center;
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--muted);
  padding: 8px 2px;
  border-radius: 9px;
  line-height: 1.15;
}
.seg-row .seg.on {
  background: var(--surface-3);
  color: var(--text);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04);
}
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-ghost {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--line-2);
}
.field {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 10px;
  height: 38px;
  display: flex;
  align-items: center;
  color: var(--faint);
  font-size: 13px;
}

/* ---- Landing ---- */
.date-hero {
  margin-bottom: 12px;
  padding: 2px 2px 4px;
}
.date-hero .kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.date-hero .kicker .lbl {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.date-hero h1 {
  font-size: 26px;
  font-weight: 720;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.dash-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px 12px;
  margin-bottom: 8px;
  position: relative;
  overflow: hidden;
}
.dash-card .ch {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.dash-card .ico {
  width: 26px; height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.dash-card .ico svg {
  width: 15px; height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dash-card .name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
  flex: 1;
}
.dash-card .chev {
  color: var(--faint);
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
}
.dash-card.faith { box-shadow: inset 3px 0 0 var(--faith); }
.dash-card.faith .ico { background: var(--faith-soft); color: var(--faith); }
.dash-card.faith .name { color: var(--faith); }
.dash-card.food { box-shadow: inset 3px 0 0 var(--food); }
.dash-card.food .ico { background: var(--food-soft); color: var(--food); }
.dash-card.food .name { color: var(--food); }
.dash-card.fitness { box-shadow: inset 3px 0 0 var(--fitness); }
.dash-card.fitness .ico { background: var(--fitness-soft); color: var(--fitness); }
.dash-card.fitness .name { color: var(--fitness); }
.dash-card.figure { box-shadow: inset 3px 0 0 var(--figure); }
.dash-card.figure .ico { background: var(--figure-soft); color: var(--figure); }
.dash-card.figure .name { color: var(--figure); }

.read-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.read-row .check { width: 20px; height: 20px; border-radius: 6px; }
.read-row .check svg { width: 12px; height: 12px; }
.dash-card.faith .read-row .check.on {
  background: var(--faith);
  border-color: var(--faith);
  color: var(--faith-ink);
}
.practice {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 550;
}
.practice b { color: var(--text); font-weight: 650; }

.food-nums {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.food-nums .pair .lbl {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}
.food-nums .pair .val {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  margin-top: 1px;
}
.food-nums .pair .val small {
  font-size: 11px;
  font-weight: 550;
  color: var(--muted);
  margin-left: 2px;
}
.track {
  height: 5px;
  background: var(--surface-3);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 10px;
}
.track > i {
  display: block;
  height: 100%;
  border-radius: 99px;
}
.dash-card.food .track > i {
  width: 75%;
  background: linear-gradient(90deg, #5AA87C, var(--food));
}

.fit-line {
  display: flex;
  align-items: center;
  gap: 10px;
}
.dash-card.fitness .fit-line .check.on {
  background: var(--fitness);
  border-color: var(--fitness);
  color: var(--fitness-ink);
}
.fit-line .title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.fit-line .sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 1px;
}

.fig-nums .avg {
  font-size: 20px;
  font-weight: 720;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.fig-nums .avg small {
  font-size: 13px;
  font-weight: 550;
  color: var(--muted);
}
.fig-nums .slope {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 650;
  color: var(--good);
}

/* ---- Faith page ---- */
.hero-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
}
.theme-faith .hero-panel {
  background: radial-gradient(120% 140% at 50% 0%, #221C10 0%, var(--surface) 60%, var(--surface) 100%);
}
.theme-food .hero-panel {
  background: radial-gradient(120% 140% at 50% 0%, #142017 0%, var(--surface) 60%, var(--surface) 100%);
}
.theme-fitness .hero-panel {
  background: radial-gradient(120% 140% at 50% 0%, #221610 0%, var(--surface) 60%, var(--surface) 100%);
}
.theme-figure .hero-panel {
  background: radial-gradient(120% 140% at 50% 0%, #15182A 0%, var(--surface) 60%, var(--surface) 100%);
}
.hero-panel .eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.hero-panel h2 {
  font-size: 22px;
  font-weight: 720;
  letter-spacing: -0.03em;
}
.hero-panel .meta { font-size: 12px; color: var(--muted); margin-top: 4px; }
.hero-panel .big {
  font-size: 56px;
  font-weight: 720;
  letter-spacing: -0.05em;
  line-height: 0.92;
  font-variant-numeric: tabular-nums;
  margin: 4px 0 0;
}
.hero-panel .unit {
  font-size: 14px;
  font-weight: 550;
  color: var(--muted);
  margin: 4px 0 12px;
}
.hero-panel .unit b { color: var(--text); font-weight: 600; }

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.hero-stat {
  background: rgba(0,0,0,0.28);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 10px 9px;
}
.hero-stat .lbl {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}
.hero-stat .val {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  margin-top: 1px;
}
.hero-stat .val small {
  font-size: 12px;
  font-weight: 550;
  color: var(--muted);
  margin-left: 3px;
}
.hero-stat.left .val { color: var(--good); }

.reading {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.reading:first-of-type { border-top: 0; }
.reading .meta { flex: 1; min-width: 0; }
.reading .tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2px;
}
.reading .n { font-size: 16px; font-weight: 700; letter-spacing: -0.02em; }
.reading .preview { font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.4; }
.reading .state {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--faint);
  padding-top: 2px;
}
.reading .state.on { color: var(--good); }

.practice-card p.prompt {
  font-size: 14px;
  font-weight: 550;
  letter-spacing: -0.02em;
  line-height: 1.45;
  margin-bottom: 6px;
}
.practice-card .cite { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.practice-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.practice-row .n { font-size: 13.5px; font-weight: 650; }
.practice-row .s { font-size: 11px; color: var(--muted); margin-top: 1px; }

/* ---- Food macros / meals ---- */
.macros {
  margin-bottom: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 6px 12px 10px;
}
.macros .cols {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.95fr 0.85fr;
  padding: 6px 4px 4px;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--faint);
}
.macro { padding: 8px 4px 6px; border-top: 1px solid var(--line); }
.macro .row {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.95fr 0.85fr;
  align-items: baseline;
}
.macro .name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.macro .name .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.macro.pro .dot { background: var(--pro); }
.macro.fat .dot { background: var(--fat); }
.macro.carb .dot { background: var(--carb); }
.auto-tag {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--carb);
  background: rgba(138,160,240,0.12);
  border-radius: 99px;
  padding: 1px 5px;
}
.macro .num {
  font-size: 14px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.macro .num.muted { color: var(--muted); font-weight: 550; }
.macro .num em {
  font-style: normal;
  font-size: 10px;
  color: var(--faint);
  font-weight: 550;
  margin-left: 2px;
}
.macro .num.good { color: var(--good); }
.macro .bar {
  height: 4px;
  background: var(--surface-3);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 6px;
}
.macro .bar > i { display: block; height: 100%; border-radius: 99px; }
.macro.pro .bar > i { width: 76.13%; background: var(--pro); }
.macro.fat .bar > i { width: 73.85%; background: var(--fat); }
.macro.carb .bar > i { width: 74.75%; background: var(--carb); }
.macros .note {
  font-size: 11px;
  color: var(--faint);
  padding: 4px 4px 2px;
  line-height: 1.4;
}
.macros .note b { color: var(--muted); font-weight: 600; }

.entry {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
  margin-bottom: 12px;
}
.entry h2 { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.entry-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.meal {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-bottom: 10px;
  overflow: hidden;
}
.meal-h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 10px 12px 8px;
  gap: 8px;
}
.meal-h h3 { font-size: 14px; font-weight: 700; letter-spacing: -0.02em; }
.meal-h .subtot {
  font-size: 11px;
  font-weight: 550;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.meal-h .subtot b { color: var(--text); font-weight: 650; }
.food-row { padding: 8px 12px 9px; border-top: 1px solid var(--line); }
.food-row .r1 { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.food-row .name { font-size: 13.5px; font-weight: 600; letter-spacing: -0.02em; }
.food-row .grams { font-size: 12px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.food-row .r2 {
  display: flex;
  gap: 10px;
  margin-top: 3px;
  font-size: 11px;
  font-weight: 550;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.food-row .r2 span b { font-weight: 500; color: var(--faint); margin-left: 3px; font-size: 9px; }

/* ---- Fitness ---- */
.ex-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.ex-row:first-of-type { border-top: 0; margin-top: 10px; }
.ex-row .en { font-weight: 650; flex: 1; letter-spacing: -0.02em; }
.ex-row .es { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ex-row .done { color: var(--good); font-size: 11px; font-weight: 700; width: 52px; text-align: right; }
.ex-row .todo { color: var(--faint); font-size: 11px; font-weight: 650; width: 52px; text-align: right; }
.theme-fitness .ex-row .check.on { background: var(--fitness); border-color: var(--fitness); color: var(--fitness-ink); }

.act-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}
.act {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
}
.act.wide { grid-column: 1 / -1; }
.act .lbl {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}
.act .v {
  font-size: 26px;
  font-weight: 720;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  margin: 4px 0 0;
}
.act .v small { font-size: 13px; font-weight: 550; color: var(--muted); }
.act .sub { font-size: 11px; color: var(--muted); margin-top: 2px; }
.act .bar { height: 4px; background: var(--surface-3); border-radius: 99px; overflow: hidden; margin-top: 8px; }
.act .bar > i { display: block; height: 100%; width: 72.4%; background: var(--accent); border-radius: 99px; }

/* ---- Figure ---- */
.week-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 10px;
}
.day-cell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 2px 8px;
  text-align: center;
}
.day-cell .dow {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--faint);
}
.day-cell .dt { font-size: 11px; font-weight: 650; color: var(--muted); margin: 1px 0 4px; }
.day-cell .wt {
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}
.day-cell.today {
  border-color: rgba(138,160,240,0.45);
  background: var(--figure-soft);
}
.day-cell.today .dow,
.day-cell.today .wt { color: var(--figure); }

.weight-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 12px 8px;
  margin-bottom: 10px;
}
.weight-card .top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 4px;
}
.weight-card .lbl {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}
.weight-card .now {
  font-size: 22px;
  font-weight: 720;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.weight-card .now small { font-size: 13px; color: var(--muted); font-weight: 550; }
.weight-card .delta { font-size: 12px; font-weight: 650; color: var(--good); text-align: right; }
.weight-card .delta .sub { display: block; font-size: 10px; color: var(--muted); font-weight: 550; margin-top: 2px; }
.weight-card svg { width: 100%; height: 132px; display: block; }

.log-weight {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}
.log-weight .field { height: 42px; color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.log-weight .field .suffix { margin-left: auto; color: var(--muted); font-weight: 550; }
.log-weight .btn { padding: 0 16px; }

/* ---- Desktop landing ---- */
body.web {
  width: 1440px;
  height: 900px;
  overflow: hidden;
  position: relative;
  background: var(--bg);
}
.web-shell {
  display: grid;
  grid-template-columns: 232px 1fr;
  height: 900px;
}
.side {
  background: var(--bg-2);
  border-right: 1px solid var(--line);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
}
.side .brand { font-size: 16px; margin-bottom: 6px; padding: 0 8px; }
.side .brand .mark { width: 26px; height: 26px; font-size: 14px; }
.side .ex-pill { margin: 10px 8px 28px; align-self: flex-start; }
.snav { display: flex; flex-direction: column; gap: 4px; }
.snav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
.snav a svg {
  width: 20px; height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.snav a.on {
  background: var(--surface-2);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line);
}
.snav a.on.t-home svg { color: var(--home); }
.snav a.t-faith:hover svg, .snav a.t-faith.on svg { color: var(--faith); }
.snav a.t-food:hover svg, .snav a.t-food.on svg { color: var(--food); }
.snav a.t-fitness:hover svg, .snav a.t-fitness.on svg { color: var(--fitness); }
.snav a.t-figure:hover svg, .snav a.t-figure.on svg { color: var(--figure); }
.side .foot {
  margin-top: auto;
  padding: 12px 8px 0;
  border-top: 1px solid var(--line);
}
.side-user { display: flex; align-items: center; gap: 10px; padding: 12px 4px 8px; }
.side-user .avatar { width: 36px; height: 36px; }
.side-user .n { font-size: 13px; font-weight: 650; }
.side-user .e { font-size: 11px; color: var(--muted); }

.web-main { display: flex; flex-direction: column; min-width: 0; height: 900px; }
.web-top {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.web-top h1 { font-size: 22px; font-weight: 720; letter-spacing: -0.03em; }
.web-top .sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.web-body { flex: 1; padding: 28px 36px 32px; overflow: hidden; }
.web-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-content: start;
  height: auto;
}
.web-grid .dash-card {
  margin: 0;
  padding: 22px 24px 20px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 250px;
}
.web-grid .dash-card .ch { margin-bottom: 16px; }
.web-grid .dash-card .name { font-size: 18px; }
.web-grid .dash-card .ico { width: 36px; height: 36px; border-radius: 10px; }
.web-grid .dash-card .ico svg { width: 20px; height: 20px; }
.web-grid .read-row { font-size: 18px; padding: 6px 0; }
.web-grid .read-row .check { width: 24px; height: 24px; }
.web-grid .practice { font-size: 14px; margin-top: 12px; }
.web-grid .food-nums .pair .val { font-size: 28px; }
.web-grid .fit-line .title { font-size: 24px; }
.web-grid .fig-nums .avg { font-size: 32px; }
.web-grid .fig-nums .slope { font-size: 16px; }
.web-grid .track { height: 7px; margin-top: 16px; }

/* ---- Overview gallery ---- */
body.gallery {
  width: auto;
  height: auto;
  overflow: auto;
  background: #090b0e;
}
.gallery-wrap { padding: 48px 48px 64px; }
.gallery-wrap header h1 {
  font-size: 32px;
  font-weight: 730;
  letter-spacing: -0.04em;
}
.gallery-wrap header p {
  color: var(--muted);
  margin: 8px 0 32px;
  font-size: 15px;
}
.g-row {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}
.gcell h2 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.gcell .cap {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
  line-height: 1.4;
  min-height: 32px;
}
.gcell img.phone {
  width: 390px;
  height: 844px;
  background: #000;
}

/* ---- PR #1 guest landing (mobile web at /) ---- */
body.guest {
  width: 390px;
  min-height: 844px;
  height: auto;
  overflow: visible;
  position: relative;
  background: var(--bg);
}
body.guest .g-top {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 12px;
  background: linear-gradient(180deg, rgba(11,13,16,0.98), rgba(11,13,16,0.92));
  border-bottom: 1px solid var(--line);
}
body.guest .g-top .brand { font-size: 16px; }
body.guest .g-top .hdr-login {
  font-size: 13px;
  font-weight: 650;
  color: var(--text);
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  border-radius: 99px;
  padding: 7px 14px;
  letter-spacing: -0.01em;
}

.g-wrap { padding: 22px 16px 40px; }

.g-hero {
  background: radial-gradient(120% 140% at 50% 0%, #1A2114 0%, var(--surface) 58%, var(--surface) 100%);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px 18px 18px;
  position: relative;
  overflow: hidden;
  margin-bottom: 14px;
}
.g-hero::before {
  content: "";
  position: absolute;
  inset: auto -20% -50% -20%;
  height: 160px;
  background: radial-gradient(circle, rgba(212,245,66,0.10), transparent 62%);
  pointer-events: none;
}
.g-hero .kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.g-hero .kicker .lbl {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.g-hero h1 {
  font-size: 32px;
  font-weight: 720;
  letter-spacing: -0.045em;
  line-height: 1.05;
  margin: 0 0 10px;
  position: relative;
}
.g-hero .sub {
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
  font-weight: 500;
  position: relative;
  margin-bottom: 16px;
}

.cta-stack { display: grid; gap: 8px; position: relative; }
.cta-stack .btn { width: 100%; height: 46px; font-size: 15px; }
.cta-cap {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 2px 0 0;
}
.cta-stack .btn + .cta-cap { margin-top: 6px; }

.seo-intro {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px 16px;
  margin-bottom: 18px;
}
.seo-intro p {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
  font-weight: 500;
}
.seo-intro p .lead { color: var(--text); font-weight: 600; }

.g-sec { margin-bottom: 16px; }
.g-sec .sec-h {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.g-sec .sec-h .ico {
  width: 26px; height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.g-sec .sec-h .ico svg {
  width: 15px; height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.g-sec .sec-h h2 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.g-sec.faith .sec-h .ico { background: var(--faith-soft); color: var(--faith); }
.g-sec.faith .sec-h h2 { color: var(--faith); }
.g-sec.food .sec-h .ico { background: var(--food-soft); color: var(--food); }
.g-sec.food .sec-h h2 { color: var(--food); }
.g-sec.fitness .sec-h .ico { background: var(--fitness-soft); color: var(--fitness); }
.g-sec.fitness .sec-h h2 { color: var(--fitness); }
.g-sec.figure .sec-h .ico { background: var(--figure-soft); color: var(--figure); }
.g-sec.figure .sec-h h2 { color: var(--figure); }
.g-sec .blurb {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 10px;
}

.preview-phone {
  width: 250px;
  margin: 0 auto;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 28px;
  padding: 8px 8px 12px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.preview-phone .p-island {
  width: 72px;
  height: 16px;
  background: #000;
  border-radius: 20px;
  margin: 2px auto 8px;
}
.preview-phone .p-screen {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px 10px 12px;
  overflow: hidden;
}
.preview-phone .p-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.preview-phone .p-label .nm {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.preview-phone.faith .p-label .nm { color: var(--faith); }
.preview-phone.food .p-label .nm { color: var(--food); }
.preview-phone.fitness .p-label .nm { color: var(--fitness); }
.preview-phone.figure .p-label .nm { color: var(--figure); }

.g-close {
  margin-top: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px 16px 18px;
}
.g-close h3 {
  font-size: 20px;
  font-weight: 720;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 14px;
}
.g-foot {
  text-align: center;
  font-size: 11px;
  color: var(--faint);
  margin-top: 16px;
  line-height: 1.4;
}

/* Guest uses FitTrack lime for CTAs / brand mark */
body.guest {
  --accent: #D4F542;
  --accent-ink: #14180A;
}

/* ---- Production layout: real viewport, no mock iPhone chrome ---- */
html:has(body.guest),
html:has(body.signup),
html:has(body.app) {
  background: var(--bg);
}

body.guest,
body.signup {
  width: 100%;
  max-width: 430px;
  min-height: 100%;
  height: auto;
  overflow: visible;
  margin: 0 auto;
  position: relative;
}

body.app {
  width: 100%;
  max-width: 430px;
  height: 100%;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

body.app .m-header {
  position: absolute;
  top: 0;
  padding-top: env(safe-area-inset-top, 0px);
  height: calc(var(--header-h) + env(safe-area-inset-top, 0px));
}

body.app .tabs {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  height: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px));
}

body.app .scroll {
  top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  bottom: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px));
}

body.app .m-fade {
  bottom: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px));
}

body.guest .g-top {
  padding-top: calc(14px + env(safe-area-inset-top, 0px));
}

a.btn { color: inherit; }
a.btn.btn-accent { color: var(--accent-ink); }

.placeholder-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 16px 20px;
}
.placeholder-card h1 {
  font-size: 26px;
  font-weight: 720;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 4px 0 10px;
}
.placeholder-card p {
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
  font-weight: 500;
}
.placeholder-card a {
  color: var(--accent);
  font-weight: 650;
}

.signup-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px 18px 20px;
  margin-top: 18px;
}
.signup-card .kicker {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.signup-card h1 {
  font-size: 28px;
  font-weight: 720;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 10px;
}
.signup-card p {
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 16px;
}
