:root {
  color-scheme: dark;
  --canvas: #0b1016;
  --surface: #151b24;
  --ink: #e0e3ea;
  --muted: #aab3c2;
  --quiet: #303a49;
  --boundary: #788395;
  --protein: #81c9b0;
  --carbs: #b9a4f5;
  --fat: #e9ba7b;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: 0.25em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible { outline: 2px solid #d6d0ff; outline-offset: 6px; border-radius: 3px; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.12; }
h1, h2 { text-wrap: balance; }
p { text-wrap: pretty; }
.wrap { width: min(1160px, calc(100% - 96px)); margin-inline: auto; }
.section-space { padding-block: 112px; }
.skip-link { position: absolute; top: -100px; left: 16px; z-index: 2; background: var(--ink); color: var(--canvas); padding: 12px 20px; }
.skip-link:focus { top: 16px; }

.site-header { min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.wordmark { display: inline-flex; align-items: center; gap: 11px; font-size: 22px; font-weight: 650; letter-spacing: -0.7px; text-decoration: none; }
.wordmark img { border-radius: 10px; }
.site-header nav, .site-footer nav { display: flex; align-items: center; gap: 32px; }
.site-header nav a, .site-footer nav a { font-size: 14px; color: var(--muted); text-decoration: none; padding-block: 12px; }
.site-header nav a:hover, .site-footer nav a:hover { color: var(--ink); text-decoration: underline; }
.site-header nav .nav-download { border: 1px solid var(--boundary); border-radius: 10px; padding: 9px 18px; color: var(--ink); }

.hero { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 72px; padding-block: 62px 72px; }
.platform { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; margin-bottom: 26px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--protein); flex-shrink: 0; }
h1 { font-size: clamp(44px, 4.8vw, 66px); font-weight: 550; letter-spacing: -2.7px; line-height: 1.08; }
.hero-description { max-width: 31rem; font-size: 18px; color: var(--muted); margin-top: 28px; line-height: 1.75; }
.hero-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 20px; }
/* Preserve the official artwork and at least 1/4 badge-height clear space. */
.store-options { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; padding-block: 14px; }
.store-badge { display: block; width: 189px; flex-shrink: 0; }
.store-badge img { display: block; width: 100%; height: auto; }
.platform-coming { display: flex; flex-direction: column; justify-content: center; min-height: 56px; padding-left: 22px; border-left: 1px solid var(--quiet); line-height: 1.5; }
.platform-coming span { font-size: 12px; color: var(--muted); }
.platform-coming strong { font-size: 14px; font-weight: 550; }
.text-link { font-size: 14px; font-weight: 550; }
.hero-note { max-width: 30rem; margin-top: 22px; font-size: 12px; color: var(--muted); }

/* A static, labelled example, not an interactive imitation of the app. */
.app-figure { width: min(100%, 382px); justify-self: end; }
.app-preview { border: 1px solid #3e4959; border-radius: 28px; overflow: hidden; padding: 24px 22px 0; background: var(--surface); box-shadow: 0 24px 64px #0003; font-variant-numeric: tabular-nums; }
.preview-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.preview-title { font-size: 24px; font-weight: 650; letter-spacing: -0.6px; }
.preview-today { font-size: 12px; background: #29313d; border-radius: 8px; padding: 4px 12px; }
.preview-date { font-size: 12px; color: var(--muted); margin-top: 4px; }
.calorie-orbit { position: relative; width: 204px; height: 204px; border-radius: 50%; margin: 24px auto 14px; background: conic-gradient(from 0deg, #8ca8cf 0%, #d6d0ff 69.5238%, #303a49 69.5238%, #303a49 100%); }
.calorie-orbit::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: var(--surface); }
.orbit-centre { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.orbit-centre strong { font-size: 58px; font-weight: 300; letter-spacing: -2px; line-height: 1.1; }
.orbit-centre span { font-size: 12px; color: var(--muted); margin-top: 5px; }
.calorie-equation { text-align: center; font-size: 13px; }
.calorie-equation strong { font-weight: 600; }
.calorie-equation span { color: var(--muted); }
.macro-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-block: 22px 18px; }
.macro > div { display: flex; flex-direction: column; gap: 2px; }
.macro span { font-size: 11px; }
.macro strong { font-size: 13px; font-weight: 500; white-space: nowrap; }
.macro small { font-size: 10px; font-weight: 400; color: var(--muted); }
.protein { --macro: var(--protein); }
.carbs { --macro: var(--carbs); }
.fat { --macro: var(--fat); }
.macro span { color: var(--macro); }
meter { display: block; width: 100%; height: 4px; margin-top: 8px; border: 0; border-radius: 2px; background: #303a49; }
meter::-webkit-meter-bar { height: 4px; border: 0; border-radius: 2px; background: #303a49; }
meter::-webkit-meter-optimum-value { background: var(--macro); border-radius: 2px; }
meter::-moz-meter-bar { background: var(--macro); border-radius: 2px; }
.diary-meals { border-top: 1px solid var(--quiet); }
.meal-row { display: flex; align-items: center; gap: 12px; padding-block: 14px; border-bottom: 1px solid var(--quiet); }
.meal-symbol { display: grid; place-items: center; background: #202733; width: 32px; height: 32px; border-radius: 10px; font-size: 20px; flex-shrink: 0; color: var(--muted); }
.meal-row > div { min-width: 0; }
.meal-row strong { display: block; font-size: 12px; font-weight: 600; }
.meal-row div > span { display: block; color: var(--muted); font-size: 10px; }
.meal-calories { margin-left: auto; font-size: 14px; white-space: nowrap; }
.meal-calories small { font-size: 10px; color: var(--muted); }
.preview-navigation { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding-block: 15px; font-size: 10px; color: var(--muted); }
.preview-navigation span { padding: 5px 12px; }
.preview-navigation .preview-selected { color: var(--ink); background: #29313d; border-radius: 8px; }
.app-figure figcaption { margin-top: 16px; text-align: center; font-size: 11px; color: var(--muted); }

.intro-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--quiet); padding-block: 28px; gap: 36px; }
.intro-strip p { display: flex; flex-direction: column; gap: 4px; }
.intro-strip strong { font-size: 14px; font-weight: 550; }
.intro-strip span { font-size: 13px; color: var(--muted); }
.section-heading { display: grid; grid-template-columns: 1.1fr 1fr; align-items: end; gap: 90px; margin-bottom: 64px; }
h2 { font-size: clamp(30px, 3.4vw, 42px); font-weight: 500; letter-spacing: -1.4px; line-height: 1.16; }
.section-heading p { color: var(--muted); max-width: 26rem; font-size: 16px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 48px; }
.feature-icon { width: 30px; height: 30px; color: var(--muted); margin-bottom: 18px; }
.feature h3 { font-size: 18px; font-weight: 550; letter-spacing: -0.35px; line-height: 1.4; margin-bottom: 12px; }
.feature p { color: var(--muted); font-size: 14px; line-height: 1.8; max-width: 36ch; }

.local-section { background: var(--surface); border-block: 1px solid var(--quiet); }
.local-inner { padding-block: 80px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 90px; }
.section-kicker { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.local-description { color: var(--muted); font-size: 16px; margin-block: 24px; max-width: 46ch; }
.local-details { align-self: center; }
.local-details > div { padding-block: 20px; border-bottom: 1px solid var(--quiet); }
.local-details > div:first-child { padding-top: 0; }
.local-details > div:last-child { border-bottom: 0; padding-bottom: 0; }
.local-details dt { font-size: 16px; font-weight: 550; margin-bottom: 7px; }
.local-details dd { font-size: 14px; line-height: 1.8; color: var(--muted); max-width: 46ch; }

.questions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; }
.questions h2 { max-width: 10ch; }
.question-list { border-top: 1px solid var(--quiet); }
details { border-bottom: 1px solid var(--quiet); }
summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 22px; cursor: pointer; list-style: none; font-size: 16px; font-weight: 500; line-height: 1.5; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 22px; font-weight: 300; color: var(--muted); flex-shrink: 0; }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); font-size: 14px; line-height: 1.8; padding: 0 24px 24px 0; max-width: 65ch; }
.download { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 64px; border-block: 1px solid var(--quiet); padding-block: 72px; }
.download-icon { display: block; border-radius: 14px; margin-bottom: 24px; }
.download-copy > p { color: var(--muted); font-size: 16px; max-width: 36ch; margin-top: 20px; }
.download-copy .store-options { margin-top: 14px; }
.download-copy .download-help { font-size: 12px; max-width: 48ch; }
.download-qr { text-align: center; }
.download-qr > a { display: inline-block; border-radius: 12px; background: #fff; overflow: hidden; vertical-align: top; }
.download-qr img { display: block; width: 220px; max-width: 100%; height: auto; }
.download-qr figcaption { display: flex; flex-direction: column; gap: 3px; margin-top: 18px; font-size: 12px; }
.download-qr figcaption strong { font-size: 14px; font-weight: 550; }
.download-qr figcaption span { color: var(--muted); }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px 32px; padding-block: 40px; }
.site-footer .wordmark { font-size: 18px; }
.site-footer p { font-size: 12px; color: var(--muted); margin-top: 4px; }
.site-footer .trademark-note { flex-basis: 100%; font-size: 11px; margin-top: 0; }

@media (min-width: 960px) {
  /* The Eclipse reading-surface wash stays behind the hero, never the cards. */
  body { background-image: radial-gradient(ellipse 65% 440px at 65% 0, #151b24, transparent); background-repeat: no-repeat; }
}

@media (max-width: 1050px) {
  .wrap { width: calc(100% - 64px); }
  .hero { gap: 40px; grid-template-columns: 1fr 1fr; }
  h1 { font-size: clamp(42px, 5vw, 56px); letter-spacing: -2px; }
  .hero-actions { gap: 20px; }
  .hero-description { font-size: 16px; }
  .section-heading, .local-inner { gap: 48px; }
  .feature-grid { gap: 40px 32px; }
  .questions { gap: 40px; }
}

@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .site-header { min-height: 88px; gap: 8px 20px; flex-wrap: wrap; padding-block: 16px; }
  .site-header nav { gap: 16px; }
  .site-header nav .nav-download { padding-inline: 12px; }
  .site-header nav a { font-size: 12px; }
  .wordmark { font-size: 20px; }
  .wordmark img { width: 30px; height: 30px; }
  .hero { grid-template-columns: 1fr; gap: 48px; padding-block: 40px 48px; }
  .hero-copy { max-width: 34rem; }
  h1 { font-size: clamp(44px, 8vw, 62px); }
  .hero-description { font-size: 17px; }
  .hero-actions { gap: 24px; }
  .hero-note { font-size: 12px; }
  .app-figure { justify-self: center; }
  .intro-strip { gap: 24px; }
  .intro-strip span { font-size: 12px; }
  .section-space { padding-block: 72px; }
  .section-heading, .local-inner { grid-template-columns: 1fr; gap: 24px; }
  .section-heading { margin-bottom: 40px; }
  .section-heading p { max-width: 38rem; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 28px; }
  .local-inner { padding-block: 56px; gap: 40px; }
  .local-description { max-width: 50ch; }
  .local-details dd { max-width: 60ch; }
  .questions { grid-template-columns: 1fr; gap: 32px; }
  .questions h2 { max-width: none; }
  .download { grid-template-columns: 1fr; gap: 40px; padding-block: 48px; }
  .download-qr { justify-self: start; }
  .site-footer { flex-wrap: wrap; }
}

@media (max-width: 420px) {
  .site-header { align-items: start; flex-direction: column; gap: 8px; padding-block: 20px 8px; }
  .site-header nav { width: 100%; justify-content: space-between; }
  .site-header nav a { font-size: 14px; }
  .hero { padding-top: 32px; }
  .platform { font-size: 12px; }
  h1 { font-size: 42px; letter-spacing: -1.8px; }
  .hero-actions { gap: 20px; }
  .intro-strip { grid-template-columns: 1fr; gap: 18px; }
  .intro-strip p { gap: 2px; }
  .feature-grid { grid-template-columns: 1fr; gap: 36px; }
  .feature p { max-width: none; }
  .app-preview { padding-inline: 16px; }
  .meal-row { gap: 8px; }
  .meal-symbol { width: 26px; height: 30px; }
  .meal-calories { font-size: 12px; }
  .meal-calories small { display: block; text-align: right; }
  .preview-navigation span { padding-inline: 8px; }
  .site-footer nav { flex-wrap: wrap; column-gap: 24px; row-gap: 4px; }
}

@media (forced-colors: active) {
  .calorie-orbit { outline: 8px solid CanvasText; }
  .app-preview, .preview-selected { border: 1px solid CanvasText; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
