/* metabolime.com — the marketing page and the store-required pages (privacy, terms, support, delete
   account). Static files in site/, deployed by firebase-hosting.yml. Built on Adrenalime's site
   (Tyler, Nov 21: "like we've done for EazySkizy and Adrenalime"), in Metabolime's own look: near-black
   with green-tinted panels, lime, Michroma for display type (the app's wordmark font), the system font
   for reading, and the app's macro colors (protein lime, net carbs sky, fat violet). */

:root {
  --bg: #0a0a0a;
  --panel: #11170d;
  --edge: #26321b;
  --line: rgba(242, 245, 240, 0.1);
  --text: #f2f5f0;
  --dim: #b4bfae;
  --mute: #84907e;
  --lime: #84cc16;
  --live: #a3e635;
  --ink: #0d1404;
  --protein: #a3e635;
  --carbs: #38bdf8;
  --fat: #a78bfa;
  --amber: #f59e0b;
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    -apple-system, BlinkMacSystemFont, 'SF Pro Text', ui-sans-serif, system-ui, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: var(--live);
}
p {
  margin: 0;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

h1,
h2,
h3,
.display {
  font-family: 'Michroma', ui-sans-serif, system-ui, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.08;
  letter-spacing: 0.01em;
  text-wrap: balance;
  margin: 0;
}
h1 {
  font-size: clamp(34px, 6vw, 68px);
}
h2 {
  font-size: clamp(26px, 3.8vw, 42px);
}
h3 {
  font-size: 20px;
}
.lime {
  color: var(--live);
}
.glow-text {
  text-shadow: 0 0 28px rgba(163, 230, 53, 0.45);
}

.eyebrow {
  font-family: 'Michroma', ui-sans-serif, sans-serif;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--lime);
}
.lede {
  color: var(--dim);
  font-size: clamp(17px, 2vw, 20px);
  max-width: 50ch;
}
.center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: max(10px, env(safe-area-inset-top));
  padding-bottom: 10px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}
.wordmark {
  font-family: 'Michroma', sans-serif;
  font-size: 16px;
  letter-spacing: 0.12em;
  background: linear-gradient(180deg, #d9f86a, #9ee62e 55%, #72cc23);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.topbar nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.topbar nav a {
  color: var(--dim);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}
.topbar nav a:hover {
  color: var(--live);
}
.pill {
  color: var(--dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  white-space: nowrap;
}

/* Hero */
.hero-band {
  position: relative;
  overflow: hidden;
  min-height: min(90vh, 820px);
  display: flex;
  align-items: center;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(55% 70% at 72% 45%, rgba(132, 204, 22, 0.2), transparent 70%),
    linear-gradient(rgba(163, 230, 53, 0.05) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(163, 230, 53, 0.05) 1px, transparent 1px) 0 0 / 44px 44px,
    var(--bg);
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 10, 10, 0.9) 0%, rgba(10, 10, 10, 0.6) 50%, rgba(10, 10, 10, 0.25) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 30%);
}
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  width: 100%;
  padding: 64px 20px 80px;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}
.price-note {
  color: var(--mute);
  font-size: 15px;
}
.ghost {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  border-bottom: 2px solid var(--lime);
  padding-bottom: 2px;
}

/* The dial: the app's Neon sweep, drawn in SVG (protein outer, net carbs and fat inside). */
.dial {
  width: min(380px, 80vw);
  margin: 0 auto;
  filter: drop-shadow(0 0 40px rgba(163, 230, 53, 0.25));
}
.dial .track {
  fill: none;
  stroke: rgba(242, 245, 240, 0.07);
  stroke-linecap: round;
}
.dial .arc {
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: var(--len) var(--len);
  stroke-dashoffset: var(--len);
  animation: sweep 1.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.dial .p {
  stroke: url(#gp);
  stroke-width: 22;
  animation-delay: 0.2s;
}
.dial .c {
  stroke: url(#gc);
  stroke-width: 9;
  animation-delay: 0.45s;
}
.dial .f {
  stroke: url(#gf);
  stroke-width: 9;
  animation-delay: 0.7s;
}
.dial text {
  font-family: 'Michroma', sans-serif;
  fill: var(--text);
}
@keyframes sweep {
  to {
    stroke-dashoffset: var(--to);
  }
}

/* Store badges and "Coming soon" */
.badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.badges .apple {
  height: 44px;
  width: auto;
}
.soon {
  display: inline-block;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: var(--live);
  border-radius: 14px;
  padding: 12px 20px;
  box-shadow: 0 0 24px rgba(163, 230, 53, 0.35);
}

/* Three-up strip */
.strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.strip div {
  padding: 26px 22px;
}
.strip div + div {
  border-left: 1px solid var(--line);
}
.strip strong {
  display: block;
  font-size: 18px;
  margin-bottom: 4px;
}
.strip span {
  color: var(--mute);
  font-size: 15px;
}

/* Watch */
.watch {
  padding: 88px 0 40px;
}
.player {
  margin: 34px auto 0;
  max-width: 980px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--edge);
  box-shadow:
    0 40px 120px rgba(0, 0, 0, 0.7),
    0 0 90px rgba(132, 204, 22, 0.18);
  background: #000;
}
.player video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}
.player .later {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  color: var(--mute);
  background: radial-gradient(60% 80% at 50% 50%, rgba(132, 204, 22, 0.12), transparent 70%), #050505;
}

/* Phone frames around real screenshots */
.phone {
  background: #050505;
  border: 1px solid var(--edge);
  border-radius: 34px;
  padding: 8px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 60px rgba(132, 204, 22, 0.12);
  max-width: 300px;
  width: 100%;
  margin: 0 auto;
}
.phone img {
  border-radius: 27px;
}
.phone .pending {
  aspect-ratio: 804 / 1748;
  border-radius: 27px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  color: var(--mute);
  font-size: 14px;
  background: radial-gradient(70% 50% at 50% 40%, rgba(132, 204, 22, 0.14), transparent 70%), var(--panel);
}
.phone .pending img {
  width: 96px;
  margin: 0 auto 12px;
  border-radius: 22px;
}

/* How it works */
.how {
  padding: 72px 0 24px;
}
.step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}
.step:last-child {
  border-bottom: 0;
}
.step.flip .step-copy {
  order: 2;
}
.step-copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 470px;
}
.step-copy h3 {
  font-size: clamp(24px, 3vw, 34px);
}
.step-copy p {
  color: var(--dim);
  font-size: 18px;
}
.num {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--live), var(--lime));
  color: var(--ink);
  font-family: 'Michroma', sans-serif;
  font-size: 18px;
  box-shadow: 0 0 30px rgba(163, 230, 53, 0.45);
}
.macros {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.macros span {
  font-size: 14px;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 12px;
  border: 1px solid currentColor;
}
.macros .p {
  color: var(--protein);
}
.macros .c {
  color: var(--carbs);
}
.macros .f {
  color: var(--fat);
}

/* Everything else */
.more {
  padding: 76px 0;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 36px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--edge);
  border-radius: 18px;
  padding: 20px;
  transition: border-color 0.2s;
}
.card:hover {
  border-color: rgba(163, 230, 53, 0.45);
}
.card strong {
  display: block;
  font-size: 18px;
  margin-bottom: 6px;
}
.card p {
  color: var(--mute);
  font-size: 15px;
}

/* Promise */
.promise {
  padding: 40px 0 76px;
}
.promise .card {
  max-width: 820px;
  margin: 0 auto;
  padding: 28px;
  display: grid;
  gap: 10px;
}
.promise .card p {
  color: var(--dim);
  font-size: 17px;
}

/* Price */
.price {
  padding: 84px 0;
}
.price-card {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 44px 32px;
  border-radius: 26px;
  border: 1px solid rgba(163, 230, 53, 0.4);
  background: linear-gradient(180deg, rgba(132, 204, 22, 0.12), var(--panel) 45%);
  box-shadow: 0 0 80px rgba(132, 204, 22, 0.15);
}
.amount {
  font-family: 'Michroma', sans-serif;
  font-size: clamp(52px, 9vw, 84px);
  line-height: 1;
  color: var(--live);
  text-shadow: 0 0 40px rgba(163, 230, 53, 0.35);
}
.amount small {
  font-size: 0.28em;
  color: var(--dim);
  letter-spacing: 0.04em;
}
.points {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  display: grid;
  gap: 10px;
  color: var(--dim);
  text-align: left;
}
.points li {
  position: relative;
  padding-left: 22px;
}
.points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  background: var(--lime);
}

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
  color: var(--mute);
  font-size: 14px;
}
footer .links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 14px;
}
footer .links a {
  color: var(--dim);
  text-decoration: none;
}
footer p + p {
  margin-top: 6px;
}
.foot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.foot-brand img {
  width: 32px;
  border-radius: 8px;
}

/* Plain document pages: privacy, terms, support, delete account */
.doc {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 20px 80px;
}
.doc h1 {
  font-size: clamp(30px, 6vw, 44px);
  margin: 26px 0 8px;
}
.doc h2 {
  font-size: 20px;
  margin: 34px 0 8px;
}
.doc h3 {
  font-size: 18px;
  margin: 22px 0 4px;
  text-transform: none;
  font-family: inherit;
  font-weight: 700;
  line-height: 1.3;
}
.doc p,
.doc li {
  color: var(--dim);
}
.doc p + p {
  margin-top: 12px;
}
.doc ul,
.doc ol {
  padding-left: 20px;
}
.doc li {
  margin: 4px 0;
}
.doc .muted {
  color: var(--mute);
  font-size: 14px;
}
.doc .card {
  margin: 18px 0;
}
.doc .card p {
  color: var(--dim);
  font-size: 16px;
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: var(--dim);
  text-decoration: none;
}
.back img {
  width: 24px;
  border-radius: 6px;
}

@media (max-width: 860px) {
  .topbar nav a:not(.pill) {
    display: none;
  }
  .hero-band {
    min-height: auto;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 40px 20px 56px;
  }
  .hero-shade {
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.5) 0%, rgba(10, 10, 10, 0.88) 60%, var(--bg) 100%);
  }
  .strip {
    grid-template-columns: 1fr;
  }
  .strip div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .step {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 44px 0;
  }
  .step.flip .step-copy {
    order: 0;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .phone {
    max-width: 270px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dial .arc {
    animation: none;
    stroke-dashoffset: var(--to);
  }
  html {
    scroll-behavior: auto;
  }
}

/* Protein calculator (site/protein-calculator.html) */
.calc-form label[for='weight'] {
  display: block;
  color: var(--dim);
  font-size: 14px;
  margin-bottom: 6px;
}
.calc-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.calc-row input[type='number'] {
  width: 140px;
  font-size: 24px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--edge);
  background: var(--bg);
  color: var(--text);
}
.calc-row .unit {
  display: flex;
  gap: 14px;
  color: var(--text);
}
.calc-out {
  margin-top: 18px;
}
.calc-goal strong {
  display: block;
  font-family: 'Michroma', ui-sans-serif, sans-serif;
  font-size: 44px;
  line-height: 1.1;
  color: var(--protein);
}
.calc-goal span {
  color: var(--mute);
  font-size: 14px;
}
.doc .calc-meals {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.calc-meals li {
  border: 1px solid var(--edge);
  border-radius: 12px;
  padding: 8px;
  text-align: center;
  margin: 0;
}
.calc-meals span {
  display: block;
  font-size: 12px;
  color: var(--mute);
}
.calc-meals strong {
  color: var(--text);
}
.table-wrap {
  overflow-x: auto;
}
.calc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.calc-table th,
.calc-table td {
  text-align: left;
  padding: 8px 6px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.calc-table th {
  color: var(--mute);
  font-weight: 600;
  font-size: 13px;
}
.calc-cta .pill {
  display: inline-block;
  margin-top: 10px;
}
@media (max-width: 420px) {
  .doc .calc-meals {
    grid-template-columns: repeat(2, 1fr);
  }
}
