/*
 * nutrimacrofitness.com — homepage
 *
 * Built to the supplied design. The palette is warm off-white with a single muted sage
 * accent and two full-bleed near-black bands; the accent appears only on the word the
 * design emphasises and on the small marks, never on a large filled surface.
 *
 * The phone and watch in the hero are NOT screenshots. They are built here in HTML from
 * the real app's own layout, because a mocked-up picture of your own product is a promise
 * you have not made — and because a real element stays sharp on every display and can be
 * corrected when the app changes.
 */

:root {
  --ink: #111113;
  --ink-soft: #4A4A4E;
  --ink-mute: #77777C;
  --paper: #FBFAF8;
  --paper-2: #F2F1ED;
  --line: #E4E2DC;
  --sage: #93A47C;
  --sage-deep: #7B8C66;
  --night: #0C0C0D;
  --night-2: #17171A;

  --display: 'Outfit', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --script: 'Caveat', 'Segoe Script', cursive;

  --wrap: 1180px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--display); margin: 0; letter-spacing: -0.02em; text-wrap: balance; }

.wrap { width: min(var(--wrap), calc(100% - 48px)); margin-inline: auto; }

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.sage { color: var(--sage); }
.script { font-family: var(--script); font-weight: 600; }

/* ── header ─────────────────────────────────────────────────────────────── */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 248, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}
.site-head.is-stuck { border-bottom-color: var(--line); }
.head-row { display: flex; align-items: center; gap: 40px; height: 76px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 50%;
  display: block; object-fit: cover;
}
.brand-name { font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: 0.06em; line-height: 1; }
.brand-tag { font-size: 8.5px; letter-spacing: 0.24em; color: var(--ink-mute); text-transform: uppercase; margin-top: 3px; }

.nav { display: flex; gap: 30px; margin-inline: auto; }
.nav a { font-size: 14.5px; color: var(--ink-soft); padding-bottom: 3px; }
.nav a:hover { color: var(--ink); }
.nav a.is-on { color: var(--ink); border-bottom: 2px solid var(--ink); }

.head-actions { display: flex; align-items: center; gap: 22px; }
.icon-btn { background: none; border: 0; padding: 4px; cursor: pointer; color: var(--ink); line-height: 0; }
.link-signin { font-size: 14.5px; color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 600; font-size: 14.5px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
}
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }

/* ── hero ───────────────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 24px; align-items: center; padding: 40px 0 64px;
}
.hero h1 { font-size: clamp(40px, 5vw, 62px); line-height: 1.04; font-weight: 700; margin: 18px 0 0; }
.hero-sub { color: var(--ink-soft); font-size: 16.5px; max-width: 36ch; margin: 22px 0 30px; }

.stores { display: flex; gap: 14px; flex-wrap: wrap; }
.store {
  display: flex; align-items: center; gap: 11px;
  background: var(--ink); color: #fff; border-radius: 12px; padding: 11px 20px;
}
.store svg { flex: none; }
.store small { display: block; font-size: 10px; letter-spacing: 0.04em; opacity: 0.82; line-height: 1.2; }
.store strong { display: block; font-family: var(--display); font-size: 17px; font-weight: 600; line-height: 1.15; }

.trust { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.faces { display: flex; }
.faces span {
  width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--paper);
  margin-left: -10px; background-size: cover; background-position: center;
}
.faces span:first-child { margin-left: 0; }
.stars { color: #E8B84B; font-size: 13px; letter-spacing: 2px; }
.trust-txt { font-size: 13.5px; color: var(--ink-soft); line-height: 1.35; }

/* the visual: photo, phone, watch, script line */
.hero-art { position: relative; min-height: 560px; }
.hero-photo {
  position: absolute; top: -40px; height: calc(100% + 104px);
  /* Out to the viewport edge, whatever gutter the wrap happens to have. */
  right: calc(-1 * max(24px, (100vw - var(--wrap)) / 2));
  width: calc(52% + max(24px, (100vw - var(--wrap)) / 2));
  object-fit: cover; object-position: 42% 38%;
}
.hero-photo-words {
  position: absolute; right: 2%; top: 46%; z-index: 3;
  font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: 0.08em;
  color: #fff; line-height: 1.55; text-shadow: 0 1px 12px rgba(0,0,0,0.4);
}
.hero-photo-words::after { content: ''; display: block; width: 22px; height: 2px; background: #fff; margin-top: 8px; }

.script-note {
  position: absolute; left: 46%; top: 6%; z-index: 4;
  font-family: var(--script); font-size: 30px; line-height: 1.12; color: var(--ink);
  transform: rotate(-7deg);
}
.script-note::after {
  content: ''; display: block; width: 86px; height: 3px; border-radius: 2px;
  background: var(--sage); margin: 6px 0 0 40px;
}

/* ── device mockups ─────────────────────────────────────────────────────── */
.phone {
  position: absolute; left: 4%; top: 0; z-index: 2;
  width: 268px; border-radius: 38px; padding: 9px;
  background: linear-gradient(150deg, #4A4A50, #121215 32%, #0A0A0C 70%, #3A3A40);
  box-shadow: 0 30px 70px rgba(0,0,0,0.34);
}
.phone-screen {
  background: #0B0B0D; border-radius: 30px; overflow: hidden;
  color: #fff; font-size: 11px; padding: 10px 13px 0;
}
/* A real screenshot fills the screen edge to edge. */
.phone-shot { padding: 0; }
.phone-shot img { display: block; width: 100%; height: auto; }
.status { display: flex; justify-content: space-between; align-items: center; font-size: 10.5px; font-weight: 600; }
.phone-greet { margin-top: 14px; display: flex; justify-content: space-between; align-items: flex-start; }
.phone-greet b { display: block; font-family: var(--display); font-size: 13px; font-weight: 600; }
.phone-greet span { font-size: 11px; color: #9A9AA2; }
.streak { text-align: right; font-size: 9px; color: #9A9AA2; }
.streak b { display: block; font-size: 10px; color: #fff; }

.ring { position: relative; display: grid; place-items: center; }
.ring::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(var(--c1) 0 var(--pct), #26262B var(--pct) 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - var(--w)), #000 calc(100% - var(--w)));
  mask: radial-gradient(farthest-side, transparent calc(100% - var(--w)), #000 calc(100% - var(--w)));
}
.ring-main {
  --w: 9px; --pct: 72%; --c1: #8FB98F;
  width: 128px; height: 128px; margin: 14px auto 0;
}
.ring-main b { font-family: var(--display); font-size: 25px; font-weight: 700; line-height: 1; }
.ring-main i { font-style: normal; font-size: 9.5px; color: #9A9AA2; display: block; margin-top: 2px; }
.ring-main u { text-decoration: none; font-size: 8.5px; color: #74747C; display: block; margin-top: 3px; }

.macros { display: flex; justify-content: space-around; margin-top: 14px; }
.macro { text-align: center; }
.macro .ring { --w: 4.5px; width: 38px; height: 38px; margin-inline: auto; }
.macro b { font-family: var(--display); font-size: 9.5px; font-weight: 600; display: block; margin-top: 5px; }
.macro span { font-size: 8px; color: #74747C; }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 14px; }
.tile {
  background: #17171B; border: 1px solid #232329; border-radius: 10px;
  padding: 9px 6px; text-align: center; font-size: 9.5px; color: #D8D8DE;
}
.tile svg { display: block; margin: 0 auto 4px; }

.tabbar {
  display: flex; justify-content: space-between; margin-top: 12px;
  border-top: 1px solid #1D1D22; padding: 8px 2px 10px;
  font-size: 7.5px; color: #6E6E76; text-align: center;
}
.tabbar div svg { display: block; margin: 0 auto 3px; }
.tabbar div:first-child { color: #fff; }

.watch {
  position: absolute; left: 44%; bottom: 6%; z-index: 3;
  width: 132px; border-radius: 34px; padding: 8px;
  background: linear-gradient(150deg, #4A4A50, #121215 40%, #2E2E34);
  box-shadow: 0 22px 48px rgba(0,0,0,0.4);
}
.watch-screen { background: #000; border-radius: 27px; padding: 9px 10px 12px; color: #fff; }
.watch-top { display: flex; justify-content: space-between; font-size: 8.5px; color: #A8A8B0; }
.watch .ring { --w: 7px; --pct: 72%; --c1: #8FB98F; width: 82px; height: 82px; margin: 8px auto 0; }
.watch .ring b { font-family: var(--display); font-size: 17px; font-weight: 700; line-height: 1; }
.watch .ring i { font-style: normal; font-size: 7px; color: #9A9AA2; display: block; }
.watch-stats { display: flex; justify-content: space-between; margin-top: 9px; font-size: 7.5px; }
.watch-stats b { display: block; font-family: var(--display); font-size: 10px; }
.watch-stats span { color: #8B8B93; }

/* ── capability strip ───────────────────────────────────────────────────── */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.strip-row { display: flex; justify-content: space-between; gap: 10px; padding: 26px 0; }
.strip-item { display: flex; align-items: center; gap: 12px; }
.strip-item b { display: block; font-family: var(--display); font-size: 14px; font-weight: 600; }
.strip-item span { font-size: 12.5px; color: var(--ink-mute); }

/* ── everything section ─────────────────────────────────────────────────── */
.everything { padding: 74px 0 0; }
.everything-grid { display: grid; grid-template-columns: 1fr 0.92fr; gap: 56px; align-items: end; }
.everything h2 { font-size: clamp(30px, 3.6vw, 42px); line-height: 1.12; font-weight: 700; margin-top: 16px; }
.everything p { color: var(--ink-soft); margin: 0 0 14px; }
.arrow-link {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: 14.5px; border-bottom: 1px solid var(--ink); padding-bottom: 2px;
}
.arrow-link:hover { gap: 14px; }

/* ── feature cards ──────────────────────────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; padding: 40px 0 72px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; display: flex; flex-direction: column; }
.card-img { position: relative; aspect-ratio: 1 / 1.22; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-badge {
  position: absolute; left: 12px; top: 12px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(10,10,12,0.72); backdrop-filter: blur(6px);
  display: grid; place-items: center; color: #fff;
}
.card-body { padding: 14px 14px 16px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 15px; font-weight: 600; }
.card-body p { font-size: 12.5px; color: var(--ink-mute); margin: 7px 0 18px; line-height: 1.55; }
.card-more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.card-more:hover { gap: 12px; }

/* the Insights card draws a chart rather than showing a photograph of one */
.chart { background: #101014; height: 100%; padding: 16px 14px; display: flex; flex-direction: column; justify-content: flex-end; }
.chart-legend { display: flex; gap: 10px; font-size: 7px; color: #8B8B93; margin-bottom: 8px; }
.chart-legend i { display: inline-block; width: 5px; height: 5px; border-radius: 50%; margin-right: 3px; }

/* ── dark band ──────────────────────────────────────────────────────────── */
.band { position: relative; background: var(--night); color: #fff; overflow: hidden; }
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.95; }
.band::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(12,12,13,0.88) 0%, rgba(12,12,13,0.30) 42%, rgba(12,12,13,0.30) 58%, rgba(12,12,13,0.80) 100%);
}
.band-row { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 40px; padding: 74px 0; }
.band h2 { font-size: 22px; font-weight: 600; line-height: 1.35; letter-spacing: 0.03em; }
.band h2::after { content: ''; display: block; width: 26px; height: 2px; background: #fff; margin-top: 14px; }
.band-items { display: flex; gap: 46px; }
.band-item { text-align: center; max-width: 110px; }
.band-item b { display: block; font-family: var(--display); font-size: 13.5px; font-weight: 600; margin-top: 10px; line-height: 1.35; }

/* ── integrations ───────────────────────────────────────────────────────── */
.connect { background: var(--paper-2); }
.connect-row { display: flex; align-items: center; justify-content: space-between; gap: 48px; padding: 52px 0; }
.connect-copy { max-width: 34ch; }
.connect h2 { font-size: 26px; font-weight: 700; }
.connect p { font-size: 13.5px; color: var(--ink-mute); margin: 8px 0 0; line-height: 1.6; }
.logos { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.logo-item { text-align: center; }
.logo-dot {
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line); box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  margin-inline: auto;
}
/* The label only — this used to match .logo-dot too (also a span), which replaced
   its grid centring with display:block and pushed every icon to the top. */
.logo-item > span:not(.logo-dot) { display: block; font-size: 12px; color: var(--ink-soft); margin-top: 10px; white-space: nowrap; }

/* ── closing CTA ────────────────────────────────────────────────────────── */
.cta { position: relative; background: var(--night); color: #fff; overflow: hidden; }
.cta-bg { position: absolute; left: 0; top: 0; height: 100%; width: 34%; object-fit: cover; opacity: 0.9; }
.cta-bg-fade { position: absolute; left: 0; top: 0; height: 100%; width: 42%; background: linear-gradient(90deg, rgba(12,12,13,0) 40%, var(--night) 100%); }
.cta-row { position: relative; z-index: 2; display: grid; grid-template-columns: 1.25fr 1fr; gap: 50px; align-items: center; padding: 62px 0; padding-left: 22%; }
.cta h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 700; }
.cta p { color: #B4B4BC; font-size: 14.5px; margin: 12px 0 26px; max-width: 44ch; }
.cta .store { background: #fff; color: var(--ink); }
.cta-right { border-left: 1px solid #26262B; padding-left: 46px; }
.cta-point { display: flex; align-items: center; gap: 11px; font-size: 14px; color: #D6D6DC; margin-bottom: 14px; }
.cta-script { font-family: var(--script); font-size: 34px; color: #fff; margin-top: 30px; }
.cta-script::after { content: ''; display: block; width: 74px; height: 2px; background: var(--sage); margin: 4px 0 0 30px; }

/* ── footer ─────────────────────────────────────────────────────────────── */
.site-foot { background: var(--night-2); color: #8E8E96; font-size: 13px; }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; flex-wrap: wrap; }
.foot-links { display: flex; gap: 24px; }
.foot-links a:hover { color: #fff; }

/* ── responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .band-items { gap: 28px; }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-art { min-height: 520px; }
  .everything-grid { grid-template-columns: 1fr; gap: 24px; align-items: start; }
  .strip-row { flex-wrap: wrap; gap: 22px 30px; justify-content: flex-start; }
  .band-row { flex-direction: column; align-items: flex-start; }
  .band-items { flex-wrap: wrap; }
  .connect-row { flex-direction: column; align-items: flex-start; }
  .logos { flex-wrap: wrap; gap: 22px; }
  .cta-row { grid-template-columns: 1fr; padding-left: 0; }
  .cta-bg, .cta-bg-fade { display: none; }
  .cta-right { border-left: 0; border-top: 1px solid #26262B; padding: 26px 0 0; }
}
@media (max-width: 620px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .phone { position: relative; left: 0; margin-inline: auto; }
  .watch, .hero-photo, .hero-photo-words, .script-note { display: none; }
  .hero-art { min-height: 0; }
}

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

/* ── document pages (about, privacy, delete account) ───────────────────── */
.doc { padding: 56px 0 88px; }
.doc h1 { font-size: clamp(32px, 4vw, 48px); line-height: 1.08; font-weight: 700; margin-top: 14px; }
.doc-lead { color: var(--ink-soft); font-size: 17px; margin: 16px 0 0; max-width: 54ch; }

.prose { max-width: 72ch; margin-top: 40px; }
.prose h2 {
  font-size: 22px; font-weight: 600; margin: 42px 0 12px;
  padding-top: 22px; border-top: 1px solid var(--line);
}
.prose h3 { font-size: 17px; font-weight: 600; margin: 26px 0 8px; }
.prose p { color: var(--ink-soft); margin: 0 0 15px; }
.prose ul, .prose ol { color: var(--ink-soft); padding-left: 20px; margin: 0 0 18px; }
.prose li { margin-bottom: 9px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--sage-deep); border-bottom: 1px solid rgba(123,140,102,0.4); }
.prose a:hover { border-bottom-color: var(--sage-deep); }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: 14.5px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { font-family: var(--display); font-weight: 600; color: var(--ink); }
.prose td { color: var(--ink-soft); }
.prose code { background: var(--paper-2); padding: 2px 6px; border-radius: 5px; font-size: 13.5px; }
.prose blockquote {
  margin: 0 0 18px; padding: 12px 18px; border-left: 3px solid var(--sage);
  background: var(--paper-2); color: var(--ink-soft);
}

/* ── header on phones ──────────────────────────────────────── */
/* The desktop row is brand + nav + actions. On a 375px phone that row wants about
   380px of the 327 it has, so the wordmark and "Sign In" printed on top of each
   other — and the nav was hidden outright, leaving a phone with no way to reach
   another page at all. Seen on the live site 21 Sep 2026.
   Below 860px the row is brand + a menu button, and everything the row carried
   moves into a panel underneath it. */
@media (max-width: 1080px) {
  .head-row { gap: 12px; justify-content: space-between; height: 66px; }
  .site-head .nav, .site-head .icon-btn, .site-head .head-actions { display: none; }
  .site-head .menu-btn { display: flex; }
  /* The wordmark may shrink rather than push into whatever is beside it. */
  .brand { min-width: 0; }
  .brand > span { min-width: 0; }
  .brand-tag { display: none; }
  .brand-name { font-size: 16px; }
  .foot-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .foot-links { flex-wrap: wrap; gap: 12px 16px; }
}

/* The button and the panel are built by site.js from the header's own links, so a
   page never carries two copies of its nav and the two can never disagree. Both
   are inert above 1080px. */
.menu-btn {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; margin-right: -10px; padding: 0;
  background: none; border: 0; cursor: pointer; color: var(--ink);
}
.menu-btn i {
  display: block; width: 21px; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.menu-btn[aria-expanded="true"] i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.menu-panel {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--paper); border-bottom: 1px solid var(--line);
  box-shadow: 0 20px 34px rgba(20, 20, 24, 0.10);
  padding: 4px 0 20px;
}
.menu-panel[hidden] { display: none; }
.menu-panel .wrap { display: flex; flex-direction: column; }
.menu-panel .menu-link {
  padding: 14px 2px; font-size: 16px; color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}
.menu-panel .menu-link.is-on { color: var(--ink); font-weight: 600; }
.menu-panel .menu-foot { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.menu-panel .menu-foot .link-signin { font-size: 15px; padding: 10px 2px; }
.menu-panel .menu-foot .btn { flex: 1; justify-content: center; }
