:root {
  --bg: #000000;
  --card: #101012;
  --card-2: #17181c;
  --text: #f8fafc;
  --muted: #a2a9b4;
  --line: #24262d;
  --primary: #30d158;
  --primary-dark: #30d158;
  --danger: #ff453a;
  --calorie-good: #f5a9b8;
  --calorie-over: #ff2d55;
  --protein-low: #5bcefa;
  --protein-met: #5bcefa;
  --water-blue: #0a84ff;
  --ring-gold: #ffd60a;
  --notice: #111d2f;
  --success: #112515;
  --error: #2c1214;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.48);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 45, 85, 0.18), transparent 31rem),
    radial-gradient(circle at 20% 2rem, rgba(10, 132, 255, 0.12), transparent 26rem),
    var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  background: rgba(0, 0, 0, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  padding: 12px clamp(16px, 4vw, 32px);
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 5;
}
.brand {
  color: var(--text);
  font-weight: 900;
  letter-spacing: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand:hover { text-decoration: none; }

.brand-symbol {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.38);
}

nav { display: flex; gap: 8px; flex-wrap: wrap; font-size: 0.9rem; }
nav a {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 7px 11px;
}
nav a:hover {
  background: rgba(255, 255, 255, 0.14);
  text-decoration: none;
}

.container {
  width: min(1040px, calc(100% - 28px));
  margin: 18px auto 56px;
}

.landing-hero {
  min-height: calc(100vh - 132px);
  display: grid;
  position: relative;
  align-content: center;
  justify-items: center;
  gap: 20px;
  text-align: center;
  padding: 68px 0 58px;
  overflow: hidden;
}

.landing-hero::before {
  content: "";
  position: absolute;
  inset: 18px 0 auto;
  height: 72%;
  background:
    linear-gradient(135deg, rgba(245, 169, 184, 0.14), transparent 34%),
    linear-gradient(215deg, rgba(91, 206, 250, 0.14), transparent 38%),
    rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 34px;
  transform: skewY(-1.5deg);
}

.landing-hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 16px;
  width: min(880px, 100%);
}

.landing-mark {
  width: 92px;
  height: auto;
  border-radius: 22px;
  box-shadow:
    0 20px 44px rgba(0, 0, 0, 0.48),
    0 0 36px rgba(91, 206, 250, 0.14);
}

.landing-hero h1 {
  width: min(820px, 100%);
  margin: 0;
  color: #fff;
  font-size: 4.7rem;
  font-weight: 950;
  line-height: 1;
}

.landing-copy {
  width: min(720px, 100%);
  margin: 0;
  color: var(--muted);
  font-size: 1.18rem;
  font-weight: 650;
}

.landing-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.landing-button {
  min-width: min(260px, 100%);
  min-height: 62px;
  padding: 15px 26px;
  font-size: 1.12rem;
}

.landing-hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.landing-ui-panel {
  position: absolute;
  display: grid;
  gap: 9px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(12, 13, 16, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(16px);
}

.landing-ui-main {
  left: 3%;
  bottom: 7%;
  width: min(320px, 32%);
  opacity: 0.78;
}

.landing-ui-side {
  right: 4%;
  top: 19%;
  width: min(250px, 28%);
  opacity: 0.68;
}

.landing-ui-panel strong {
  color: #fff;
  font-size: 0.92rem;
}

.landing-ui-panel span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.landing-ui-rings {
  position: relative;
  width: 86px;
  aspect-ratio: 1;
}

.landing-ui-rings span {
  position: absolute;
  inset: var(--ring-inset);
  border-radius: 50%;
  border: 8px solid rgba(255, 255, 255, 0.11);
  border-top-color: var(--ring-color);
  border-right-color: var(--ring-color);
  transform: rotate(var(--ring-rotate));
}

.landing-ui-rings span:nth-child(1) {
  --ring-inset: 0;
  --ring-color: #f5a9b8;
  --ring-rotate: 35deg;
}

.landing-ui-rings span:nth-child(2) {
  --ring-inset: 14px;
  --ring-color: #5bcefa;
  --ring-rotate: 95deg;
}

.landing-ui-rings span:nth-child(3) {
  --ring-inset: 28px;
  --ring-color: #30d158;
  --ring-rotate: 155deg;
}

.landing-ui-bars {
  height: 62px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
  align-items: end;
}

.landing-ui-bars i {
  height: var(--bar-height);
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(180deg, #5bcefa, #f5a9b8);
}

.landing-section {
  margin: 0 0 26px;
}

.landing-section-head {
  width: min(760px, 100%);
  margin-bottom: 16px;
}

.landing-section h2,
.landing-final-cta h2 {
  margin-bottom: 8px;
  color: #fff;
  font-size: 2rem;
  line-height: 1.08;
}

.landing-section p,
.landing-final-cta p {
  color: var(--muted);
  font-weight: 650;
}

.landing-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.landing-card-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.landing-card,
.landing-feature-list article,
.landing-pricing,
.landing-final-cta {
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.landing-card strong,
.landing-feature-list strong {
  color: #fff;
  font-size: 1rem;
}

.landing-card span,
.landing-feature-list p {
  color: var(--muted);
  font-weight: 650;
}

.landing-split {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(280px, 1fr);
  gap: 18px;
  align-items: start;
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(23, 24, 28, 0.84), rgba(12, 13, 16, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.landing-check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.landing-check-list li {
  min-width: 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  font-weight: 720;
}

.landing-feature-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.landing-feature-list p {
  margin: 0;
}

.landing-pricing {
  width: min(760px, 100%);
}

.landing-final-cta {
  justify-items: center;
  text-align: center;
  margin: 34px 0 42px;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(91, 206, 250, 0.13), transparent 42%),
    linear-gradient(215deg, rgba(245, 169, 184, 0.11), transparent 40%),
    rgba(255, 255, 255, 0.06);
}

.landing-final-cta p {
  width: min(680px, 100%);
  margin: 0;
}

.progress-panel {
  background: linear-gradient(180deg, rgba(23, 24, 28, 0.96), rgba(8, 8, 10, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: clamp(18px, 3vw, 28px);
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(18px, 3vw, 28px);
  align-items: start;
  justify-items: center;
  overflow: hidden;
}

.fitness-rings {
  --calorie-color: var(--calorie-good);
  --protein-color: var(--protein-low);
  width: min(100%, 260px);
  display: grid;
  place-items: center;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.45));
  position: relative;
}

.fitness-rings.rings-complete {
  filter:
    drop-shadow(0 0 14px rgba(255, 214, 10, 0.42))
    drop-shadow(0 18px 30px rgba(0, 0, 0, 0.45));
}

.rings-visual-wrap {
  width: 100%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  position: relative;
}

.rings-complete .rings-visual-wrap::before {
  content: "";
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 58%, rgba(255, 214, 10, 0.2) 64%, rgba(255, 149, 0, 0.12) 72%, transparent 79%);
  box-shadow:
    0 0 24px rgba(255, 214, 10, 0.34),
    0 0 48px rgba(255, 159, 10, 0.18);
  pointer-events: none;
}

.daily-rings {
  width: min(100%, 500px);
}

.daily-rings.rings-side-labels {
  width: min(100%, 640px);
}

.rings-side-labels {
  grid-template-columns: minmax(180px, 340px) minmax(140px, 1fr);
  gap: clamp(14px, 3vw, 26px);
  align-items: center;
  justify-items: center;
}

.daily-rings.rings-side-labels .rings-visual-wrap {
  width: min(100%, 340px);
}

.fitness-rings.calories-over,
.progress-panel.calories-over { --calorie-color: var(--calorie-over); }
.fitness-rings.calories-ok,
.progress-panel.calories-ok { --calorie-color: var(--calorie-good); }
.fitness-rings.protein-below,
.progress-panel.protein-below { --protein-color: var(--protein-low); }
.fitness-rings.protein-met,
.progress-panel.protein-met { --protein-color: var(--protein-met); }

.progress-visual {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.progress-details {
  width: min(100%, 960px);
}

.last-food-timer {
  display: grid;
  justify-items: center;
  gap: 2px;
  text-align: center;
}

.last-food-value {
  color: #fff;
  font-size: clamp(2.2rem, 6vw, 4.8rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 0;
}

.last-food-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.rings-svg {
  width: 100%;
  aspect-ratio: 1;
  display: block;
  overflow: visible;
}

.ring-track,
.ring-progress {
  fill: none;
  stroke-linecap: round;
  transform-origin: 64px 64px;
}

.ring-progress {
  filter: drop-shadow(0 0 7px rgba(255, 255, 255, 0.2));
}

.ring-progress {
  transform: rotate(-90deg);
}

.ring-progress-calorie,
.ring-progress-calories {
  filter: drop-shadow(0 0 7px color-mix(in srgb, var(--calorie-color), transparent 38%));
}

.ring-progress-protein-all {
  filter: drop-shadow(0 0 7px color-mix(in srgb, var(--protein-low), transparent 54%));
}

.ring-progress-protein-effective {
  filter: drop-shadow(0 0 7px color-mix(in srgb, var(--protein-met), transparent 38%));
}

.rings-center {
  width: 36%;
  height: 36%;
  border-radius: 50%;
  background: #050506;
  display: grid;
  place-items: center;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
}

.daily-rings .rings-center {
  width: 40%;
  height: 40%;
}

.rings-macros {
  display: grid;
  justify-items: center;
  gap: 3px;
  width: 100%;
}

.rings-macro {
  display: grid;
  justify-items: center;
  gap: 0;
  min-width: 0;
}

.rings-number {
  color: #fff;
  font-size: clamp(1.18rem, 2.4vw, 1.75rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: 0;
}

.rings-descriptor {
  color: var(--muted);
  font-size: clamp(0.48rem, 0.9vw, 0.62rem);
  font-weight: 850;
  line-height: 1.05;
  text-transform: uppercase;
}

.rings-subdescriptor {
  color: var(--protein-met);
  font-size: clamp(0.42rem, 0.78vw, 0.55rem);
  font-weight: 850;
  line-height: 1.05;
}

.progress-global .rings-number {
  font-size: clamp(1.22rem, 1.75vw, 1.9rem);
}

.progress-global .rings-subdescriptor {
  font-size: clamp(0.48rem, 0.72vw, 0.66rem);
}

.rings-side-list {
  display: grid;
  gap: 10px;
  width: 100%;
  justify-self: stretch;
}

.rings-side-item {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-width: 0;
}

.rings-side-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--metric-color);
  box-shadow: 0 0 12px color-mix(in srgb, var(--metric-color), transparent 25%);
}

.rings-side-item span:last-child {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.rings-side-item strong {
  color: #fff;
  font-size: clamp(1.28rem, 2.7vw, 2rem);
  font-weight: 900;
  line-height: 0.94;
  white-space: nowrap;
}

.rings-side-item small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
  line-height: 1.05;
  text-transform: uppercase;
}

.rings-side-item em {
  color: var(--metric-color);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 850;
  line-height: 1.05;
}

.progress-metric {
  display: grid;
  gap: 6px;
  margin-top: 18px;
}

.progress-date-label {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0;
}

.progress-details > .progress-metric:first-of-type {
  margin-top: 0;
}

.progress-metric-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 14px;
}

.progress-details > .progress-metric:first-of-type .progress-metric-head {
  border-top: 0;
  padding-top: 0;
}

.progress-metric-head strong {
  color: var(--metric-color, var(--calorie-color));
  font-size: 1.05rem;
  font-weight: 750;
}

.progress-metric-head span {
  color: var(--metric-color, var(--calorie-color));
  font-size: clamp(1.45rem, 3.7vw, 2.6rem);
  font-weight: 800;
  line-height: 1;
}

.protein-metric .progress-metric-head strong,
.protein-metric .progress-metric-head span {
  color: var(--metric-color, var(--protein-color));
}

.protein-metric-title strong,
.protein-metric-title span,
.protein-metric .protein-window-wait em {
  color: var(--metric-color, var(--protein-color));
}

.progress-metric small { color: var(--muted); font-weight: 650; }

.protein-metric-head {
  align-items: flex-start;
}

.protein-metric-title {
  min-width: 0;
}

.protein-metric-timer {
  min-width: 170px;
}

.protein-efficiency-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.protein-efficiency-stats div {
  min-width: 0;
}

.protein-efficiency-stats span {
  display: block;
  color: #fff;
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  font-weight: 900;
  line-height: 1.05;
}

.protein-efficiency-stats small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.protein-metric-subtext {
  margin: 5px 0 0;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 700;
}

.protein-window-card {
  margin-top: 16px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(10, 132, 255, 0.22);
  background:
    radial-gradient(circle at 82% 8%, rgba(10, 132, 255, 0.2), transparent 10rem),
    rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.protein-window-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.protein-window-head strong {
  display: block;
  color: var(--metric-color, var(--protein-color));
  font-size: 1.05rem;
  font-weight: 850;
}

.protein-window-head span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.protein-window-wait {
  min-width: 96px;
  text-align: right;
}

.protein-window-wait span {
  color: #fff;
  font-size: clamp(1.55rem, 3.7vw, 2.5rem);
  font-weight: 900;
  line-height: 1;
}

.protein-window-wait small {
  color: var(--muted);
  display: block;
  margin-top: 3px;
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.protein-window-wait em {
  color: var(--metric-color, var(--protein-color));
  display: block;
  margin-top: 12px;
  font-size: clamp(1.55rem, 3.7vw, 2.5rem);
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.protein-window-ready .protein-window-wait span {
  color: #30d158;
}

.protein-window-waiting .protein-window-wait span {
  color: var(--protein-met);
}

.water-metric .protein-window-wait span,
.water-metric .protein-window-wait em {
  color: var(--water-blue);
}

.protein-window-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 13px;
}

.protein-window-stats div {
  min-width: 0;
}

.protein-window-stats span {
  display: block;
  color: #fff;
  font-size: clamp(1.12rem, 2.8vw, 1.65rem);
  font-weight: 900;
  line-height: 1.05;
}

.protein-window-stats small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.protein-window-meter {
  height: 10px;
  margin-top: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
}

.protein-window-meter span {
  display: block;
  width: var(--window-effective);
  max-width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d4f4ff, var(--protein-met));
  box-shadow: 0 0 16px rgba(10, 132, 255, 0.45);
}

.protein-window-events {
  min-height: 52px;
  display: flex;
  align-items: end;
  gap: 7px;
  margin-top: 12px;
  padding-bottom: 2px;
  overflow-x: auto;
}

.protein-window-events span {
  min-width: 34px;
  display: grid;
  justify-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 800;
}

.protein-window-events i {
  width: 12px;
  height: var(--protein-height);
  min-height: 12px;
  border-radius: 999px;
  background: linear-gradient(
    to top,
    var(--protein-met) var(--effective-percent),
    rgba(245, 169, 184, 0.72) var(--effective-percent)
  );
  box-shadow: 0 0 12px rgba(10, 132, 255, 0.32);
}

.protein-window-events b {
  font: inherit;
}

.protein-window-card p {
  margin: 10px 0 0;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 700;
}

.protein-window-card > small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
}

.progress-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--metric-color, var(--calorie-color));
}

.progress-track.protein span { background: var(--metric-color, var(--protein-color)); }

.activity-bars {
  height: 86px;
  display: grid;
  grid-template-columns: repeat(24, minmax(2px, 1fr));
  gap: 3px;
  align-items: end;
  padding-top: 10px;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.28);
}

.activity-bars span {
  min-height: 3px;
  height: calc(var(--level) * 100%);
  border-radius: 999px 999px 3px 3px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
  position: relative;
}

.activity-bars span.has-value {
  background: var(--metric-color, var(--calorie-color));
  box-shadow: 0 0 12px color-mix(in srgb, var(--metric-color, var(--calorie-color)), transparent 65%);
}

.protein-bars span.has-value {
  background: rgba(245, 169, 184, 0.72);
  box-shadow:
    0 0 12px rgba(91, 206, 250, 0.28),
    0 0 9px rgba(245, 169, 184, 0.24);
}

.protein-bars span.has-value::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--effective-percent);
  border-radius: inherit;
  background: linear-gradient(180deg, #d4f4ff, var(--protein-met));
  box-shadow: 0 0 12px rgba(91, 206, 250, 0.42);
}

.water-bars span.has-value {
  background: linear-gradient(180deg, #64d2ff, var(--water-blue));
  box-shadow: 0 0 12px rgba(10, 132, 255, 0.45);
}

.activity-axis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.activity-axis span:nth-child(2),
.activity-axis span:nth-child(3),
.activity-axis span:nth-child(4) {
  text-align: center;
}

.page-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 16px;
}
.eyebrow { color: var(--muted); margin: 0; font-weight: 700; text-transform: uppercase; font-size: 0.78rem; }
h1, h2, h3 { line-height: 1.15; margin-top: 0; }
h1 { margin-bottom: 0; }
h2 { font-size: 1.15rem; }

.card {
  background: linear-gradient(180deg, rgba(23, 24, 28, 0.96), rgba(14, 14, 17, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
  margin-bottom: 16px;
}
.auth-card {
  max-width: 420px;
  margin: 40px auto;
  text-align: center;
}
.signup-card {
  max-width: 760px;
  text-align: left;
}
.auth-logo {
  display: block;
  width: min(128px, 42vw);
  height: auto;
  margin: 0 auto 18px;
  border-radius: 26px;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.48);
}
.auth-card h1 {
  margin-bottom: 18px;
}
.auth-card form {
  text-align: left;
}
.signup-card .auth-logo,
.signup-card h1 {
  margin-left: 0;
  margin-right: 0;
}
.auth-switch {
  margin: 16px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.signup-flow {
  display: grid;
  gap: 16px;
}

.signup-slide-window {
  touch-action: pan-y;
}

.signup-slide {
  display: block;
}

.signup-flow.is-enhanced .signup-slide[hidden] {
  display: none;
}

.signup-slide h2 {
  color: #fff;
  font-size: 1.55rem;
  margin-bottom: 8px;
}

.signup-slide-copy {
  margin: 0 0 18px;
  color: var(--muted);
  font-weight: 650;
}

.bmi-summary {
  display: grid;
  gap: 5px;
  justify-items: start;
  padding: 16px;
  margin-bottom: 12px;
  border-radius: 18px;
  background: rgba(91, 206, 250, 0.08);
  border: 1px solid rgba(91, 206, 250, 0.18);
}

.bmi-summary span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.bmi-summary strong {
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
}

.bmi-summary p,
.bmi-comment p {
  margin: 0;
  color: var(--muted);
  font-weight: 650;
}

.bmi-comment {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.signup-progress {
  display: none;
  justify-content: center;
  gap: 8px;
  padding: 2px 0;
}

.signup-flow.is-enhanced .signup-progress {
  display: flex;
}

.signup-progress button {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.signup-progress span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  transition: transform 160ms ease, background 160ms ease;
}

.signup-progress button.is-active span {
  transform: scale(1.35);
  background: var(--primary);
}

.signup-progress button.is-complete span {
  background: var(--protein-met);
}

.signup-slide-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.signup-slide-actions .button[hidden] {
  display: none;
}

.signup-slide-actions [data-signup-submit]:not([hidden]) {
  grid-column: 2;
}
.empty { color: var(--muted); text-align: center; }

.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.actions-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0; }
.prominent { margin: 22px 0; }

label { display: block; font-weight: 700; margin-bottom: 14px; }
input, select, textarea {
  width: 100%;
  margin-top: 6px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: #24252a;
  color: var(--text);
  font: inherit;
}
input[type="range"] {
  padding: 0;
  accent-color: var(--primary);
}
select option {
  background: #fff;
  color: #111;
}
input:focus, select:focus, textarea:focus {
  border-color: rgba(48, 209, 88, 0.65);
  box-shadow: 0 0 0 3px rgba(48, 209, 88, 0.14);
  outline: none;
}
textarea { resize: vertical; }

.form-fieldset {
  margin: 0 0 14px;
  padding: 0;
  border: 0;
}

.form-fieldset legend {
  margin-bottom: 8px;
  font-weight: 800;
}

.gender-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.choice-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.055);
}

.choice-pill input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--primary);
}

.choice-pill span {
  min-width: 0;
}

.optional-gender-details {
  margin-top: 8px;
}

.optional-gender-details summary {
  width: fit-content;
  cursor: pointer;
  color: var(--primary);
  font-weight: 800;
}

.optional-gender-details .gender-options {
  margin-top: 8px;
}

.range-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 10px;
  align-items: center;
}

.range-pair input {
  margin-top: 6px;
}

.range-pair input[type="range"] {
  height: 42px;
  background: transparent;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.09);
  color: var(--text);
  cursor: pointer;
  font-weight: 750;
  text-decoration: none;
}
.button:hover { text-decoration: none; background: rgba(255, 255, 255, 0.16); }
.button.primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.button.primary:hover { background: #6bd8fb; }
.button.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.button.disabled,
.button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.42;
  pointer-events: none;
}

.notice {
  background: var(--notice);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 16px;
}
.notice.success { background: var(--success); }
.notice.error { background: var(--error); border-color: rgba(255, 69, 58, 0.42); }
.muted { color: var(--muted); }
.compact-notice {
  display: inline-block;
  margin: 0 0 12px;
  padding: 7px 10px;
}

.entry-list { display: grid; gap: 14px; }
.entry-card h3 { margin-bottom: 8px; }
.entry-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.78rem;
}
.macro-line { font-weight: 850; font-size: 1.08rem; }
.entry-actions { display: flex; gap: 14px; font-weight: 800; }
.compact {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px;
}

.compact-head {
  align-items: center;
  margin-bottom: 18px;
}

.template-list {
  display: grid;
  gap: 12px;
}

.template-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(255, 255, 255, 0.045);
}

.template-card h3 {
  margin-bottom: 7px;
}

.template-card p {
  margin: 0 0 7px;
}

.template-card p:last-child {
  margin-bottom: 0;
}

.template-add-form {
  flex: 0 0 190px;
  display: grid;
  gap: 8px;
}

.template-add-form label {
  margin-bottom: 0;
}

.template-add-form .button {
  width: 100%;
}

.copy-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.endpoint-list {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.endpoint-list .copy-row {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.endpoint-list .copy-row > span {
  min-width: 120px;
  color: var(--muted);
  font-weight: 800;
}

.endpoint-list code {
  flex: 1 1 280px;
}

.ring-option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.check-card {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.055);
}

.check-card input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--primary);
}

.check-card span {
  display: grid;
  gap: 1px;
}

.check-card strong {
  font-size: 0.92rem;
}

.check-card small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.ring-settings-card {
  align-items: center;
  justify-content: space-between;
}

.ring-settings-label {
  min-width: 0;
}

.ring-check-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  min-width: 0;
}

.ring-settings-card select {
  width: min(100%, 132px);
  flex: 0 0 132px;
  margin: 0;
  padding: 7px 26px 7px 10px;
  border-radius: 10px;
  background: #2f3036;
  color: #fff;
  font-weight: 800;
}

.import-prompt-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  margin: 14px 0 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.import-prompt-actions h2 {
  margin-bottom: 4px;
}

.import-prompt-actions p {
  margin: 0;
}

.install-card-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.install-card-head h2 {
  margin-bottom: 4px;
}

.install-icon-preview {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45);
  flex: 0 0 auto;
}

.install-steps {
  margin: 14px 0 10px;
  padding-left: 22px;
  color: var(--text);
}

.install-steps li {
  margin-bottom: 8px;
}

.install-installed {
  margin-top: 14px;
}

.install-button:not([hidden]) {
  display: inline-flex;
  margin-bottom: 12px;
}

code {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 4px 7px;
  overflow-wrap: anywhere;
}
.copy-text { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.9rem; }
.copy-source {
  position: fixed;
  left: -100vw;
  top: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.jump-form { display: flex; gap: 8px; align-items: end; }

.week-strip-panel {
  background: rgba(16, 16, 18, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 12px 14px 14px;
  margin-bottom: 12px;
  touch-action: pan-y;
  backdrop-filter: blur(16px);
}

.week-strip-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}

.week-strip-head strong {
  font-size: 0.95rem;
}

.week-strip-head span {
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.week-strip-frame {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 36px;
  gap: 10px;
  align-items: center;
}

.week-nav-arrow {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--text);
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 1.75rem;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
}

.week-nav-arrow:hover {
  background: rgba(255, 255, 255, 0.16);
  text-decoration: none;
}

.week-nav-arrow.is-disabled {
  cursor: not-allowed;
  opacity: 0.28;
  pointer-events: none;
}

.week-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  align-items: start;
}

.week-strip-day {
  min-width: 0;
  display: grid;
  gap: 6px;
  justify-items: center;
  color: var(--text);
  border-radius: 16px;
  padding: 6px 3px 7px;
}

.week-strip-day:hover {
  text-decoration: none;
}

.week-strip-day.is-disabled {
  cursor: not-allowed;
  opacity: 0.34;
  pointer-events: none;
}

.week-strip-day > span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
}

.week-strip-day.is-today > span {
  color: var(--text);
  background: rgba(255, 45, 85, 0.55);
}

.week-strip-day.is-selected {
  background: rgba(255, 255, 255, 0.08);
}

.week-strip-day.is-selected > span {
  color: #000;
  background: #fff;
}

.week-strip-rings {
  width: min(58px, 100%);
  filter: none;
}

.week-strip-rings .rings-center,
.week-strip-rings .rings-side-list,
.week-mini-rings .rings-side-list {
  display: none;
}

.week-head {
  align-items: start;
}

.week-actions {
  margin-top: 0;
}

.week-overview {
  touch-action: pan-y;
}

.week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.week-day {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 12px 8px;
  color: var(--text);
  text-align: center;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
  display: grid;
  gap: 8px;
  justify-items: center;
}

.week-day:hover {
  text-decoration: none;
  border-color: rgba(255, 255, 255, 0.22);
}

.week-day.is-today {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(48, 209, 88, 0.18), 0 14px 32px rgba(0, 0, 0, 0.28);
}

.week-day-label {
  display: grid;
  gap: 2px;
}

.week-day-label strong {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--muted);
}

.week-day-label span {
  font-size: 1.1rem;
  font-weight: 900;
}

.week-mini-rings {
  width: min(86px, 100%);
}

.week-mini-rings .calorie-ring,
.week-mini-rings .protein-ring {
  padding: 10px;
}

.week-mini-rings .rings-center {
  display: none;
}

.week-day-stats {
  display: grid;
  gap: 1px;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.25;
}

.week-summary {
  margin-top: 16px;
}

@media (max-width: 720px) {
  .grid.two { grid-template-columns: 1fr; }
  .page-head { display: block; }
  .jump-form { margin-top: 14px; }
  .site-header {
    position: static;
    border-bottom-color: rgba(255, 255, 255, 0.05);
  }
  nav {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }
  .button { width: 100%; }
  .actions-row .button, .jump-form .button { width: auto; }
  .import-prompt-actions {
    display: grid;
  }
  .template-card {
    display: grid;
    align-items: stretch;
  }
  .template-add-form {
    flex-basis: auto;
  }
  .container {
    width: min(100% - 18px, 520px);
    margin-top: 8px;
  }
  .landing-hero {
    min-height: auto;
    padding-top: 28px;
    padding-bottom: 32px;
  }
  .landing-hero::before {
    inset: 8px -8px auto;
    height: 78%;
    border-radius: 26px;
  }
  .landing-hero h1 {
    font-size: 2.6rem;
  }
  .landing-copy {
    font-size: 1rem;
  }
  .landing-mark {
    width: 78px;
    border-radius: 18px;
  }
  .landing-ui-panel {
    display: none;
  }
  .landing-actions {
    width: 100%;
  }
  .landing-button {
    width: 100%;
  }
  .landing-card-grid,
  .landing-card-grid.four,
  .landing-feature-list,
  .landing-check-list,
  .landing-split {
    grid-template-columns: 1fr;
  }
  .landing-section h2,
  .landing-final-cta h2 {
    font-size: 1.55rem;
  }
  .landing-split,
  .landing-final-cta,
  .landing-pricing {
    padding: 16px;
    border-radius: 18px;
  }
  .signup-slide-actions {
    grid-template-columns: 1fr;
  }
  .signup-slide-actions [data-signup-submit]:not([hidden]) {
    grid-column: auto;
  }
  .range-pair {
    grid-template-columns: 1fr;
  }
  .progress-panel {
    min-height: auto;
    padding: 14px 14px 16px;
    grid-template-columns: 1fr;
    place-items: center;
    align-content: start;
    gap: 10px;
    border-radius: 28px;
  }
  .progress-visual {
    gap: 8px;
  }
  .last-food-value {
    font-size: clamp(2rem, 9vw, 3.25rem);
  }
  .last-food-label {
    font-size: 0.68rem;
  }
  .fitness-rings {
    width: min(68vw, 320px);
  }
  .fitness-rings.rings-side-labels {
    width: min(100%, 430px);
    grid-template-columns: minmax(150px, 1fr) minmax(104px, 0.7fr);
    gap: 10px;
  }
  .daily-rings.rings-side-labels .rings-visual-wrap {
    width: min(58vw, 250px);
  }
  .rings-center {
    width: 37%;
    height: 37%;
  }
  .rings-side-list {
    gap: 7px;
  }
  .rings-side-item {
    grid-template-columns: 8px minmax(0, 1fr);
    gap: 7px;
  }
  .rings-side-dot {
    width: 8px;
    height: 8px;
  }
  .rings-side-item strong {
    font-size: clamp(1.05rem, 5vw, 1.55rem);
  }
  .rings-side-item small,
  .rings-side-item em {
    font-size: 0.56rem;
  }
  .rings-number {
    font-size: clamp(1.32rem, 5.2vw, 2rem);
  }
  .rings-descriptor {
    font-size: clamp(0.5rem, 1.9vw, 0.68rem);
  }
  .progress-details {
    width: min(100%, 430px);
  }
  .progress-metric {
    gap: 3px;
    margin-top: 10px;
  }
  .progress-metric-head {
    display: block;
  }
  .protein-metric-head {
    display: grid;
    gap: 8px;
  }
  .protein-metric-timer {
    min-width: 0;
    text-align: left;
  }
  .progress-metric-head span {
    display: block;
    margin-top: 3px;
    font-size: clamp(1.25rem, 5vw, 1.75rem);
  }
  .activity-bars {
    height: 44px;
    padding-top: 5px;
  }
  .activity-axis {
    font-size: 0.7rem;
  }
  .progress-metric small {
    font-size: 0.8rem;
  }
  .protein-efficiency-stats {
    grid-template-columns: 1fr;
  }
  .protein-efficiency-stats div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: baseline;
  }
  .protein-efficiency-stats small {
    text-align: right;
  }
  .protein-window-card {
    padding: 12px;
  }
  .protein-window-head {
    display: grid;
  }
  .protein-window-wait {
    text-align: left;
  }
  .protein-window-stats {
    grid-template-columns: 1fr;
  }
  .protein-window-stats div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: baseline;
  }
  .protein-window-stats small {
    text-align: right;
  }
  .week-head .week-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    width: 100%;
  }
  .week-head .week-actions .button {
    width: 100%;
    min-width: 0;
    padding-left: 8px;
    padding-right: 8px;
  }
  .week-grid {
    grid-template-columns: repeat(7, minmax(78px, 1fr));
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
  }
  .week-day {
    scroll-snap-align: center;
  }
  .week-mini-rings {
    width: 82px;
  }
  .week-strip-panel {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 22px;
  }
  .week-strip-frame {
    grid-template-columns: 1fr;
  }
  .week-nav-arrow {
    display: none;
  }
  .week-strip {
    gap: 4px;
  }
  .week-strip-rings {
    width: min(12vw, 52px);
  }
}
