:root {
  --accent: #c2410c;
  --accent-soft: #fff1ea;
  --bg: #ffffff;
  --bg-alt: #f6f5f3;
  --text: #1c1917;
  --muted: #6b6560;
  --line: #e7e4e0;
  --protein: #e5484d;
  --fat: #e89b0c;
  --carbs: #2f7cf6;
  --radius: 22px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #ff7a45;
    --accent-soft: #2a1a12;
    --bg: #0f0e0d;
    --bg-alt: #1a1817;
    --text: #f5f3f1;
    --muted: #a39d97;
    --line: #2c2927;
    --protein: #ff6369;
    --fat: #ffb224;
    --carbs: #5ea0ff;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

img { max-width: 100%; height: auto; display: block; }

.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 32px); margin-inline: auto; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 18px; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; }
.site-header nav { display: flex; gap: 20px; font-size: 15px; }
.site-header nav a { color: var(--muted); }
.site-header nav a:hover { color: var(--text); text-decoration: none; }

/* Hero */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}
.hero h1 span { color: var(--accent); }
.hero p.lede { font-size: 20px; color: var(--muted); margin: 0 0 28px; max-width: 34ch; }
.hero .phones { display: flex; gap: 16px; justify-content: center; }
.hero .phones img {
  width: 48%;
  max-width: 260px;
  border-radius: 36px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgb(0 0 0 / 0.14);
}
.hero .phones img:last-child { margin-top: 48px; }

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--text);
  color: var(--bg);
  padding: 12px 22px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 17px;
}
.store-badge:hover { text-decoration: none; opacity: 0.9; }
.store-badge svg { width: 22px; height: 22px; fill: currentColor; }
.fine { color: var(--muted); font-size: 14px; margin-top: 14px; }

.macro-bar { display: flex; gap: 6px; margin: 0 0 28px; max-width: 360px; }
.macro-bar i { height: 10px; border-radius: 5px; display: block; }
.macro-bar i:nth-child(1) { background: var(--protein); flex: 34; }
.macro-bar i:nth-child(2) { background: var(--fat); flex: 30; }
.macro-bar i:nth-child(3) { background: var(--carbs); flex: 36; }

/* Sections */
section.band { padding: 72px 0; }
section.alt { background: var(--bg-alt); }
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 12px; }
.section-lede { color: var(--muted); font-size: 19px; margin: 0 0 40px; max-width: 56ch; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
section.alt .card { background: var(--bg); }
.card h3 { margin: 0 0 6px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.card .dot { width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 14px; font-weight: 700; }

.plus { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.plus ul { list-style: none; padding: 0; margin: 0 0 20px; }
.plus li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.plus li:last-child { border-bottom: 0; }
.price { font-size: 44px; font-weight: 800; letter-spacing: -0.02em; color: var(--accent); }
.price small { font-size: 17px; font-weight: 500; color: var(--muted); margin-left: 6px; }

.devices { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: end; }
.devices figure { margin: 0; }
.devices img { border-radius: 24px; border: 1px solid var(--line); }
.devices figcaption { color: var(--muted); font-size: 15px; margin-top: 10px; }

/* Prose pages */
.page { padding: 56px 0 80px; }
.page h1 { font-size: clamp(34px, 5vw, 46px); letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 8px; }
.page .updated { color: var(--muted); margin: 0 0 36px; }
.page h2 { font-size: 22px; margin: 36px 0 8px; letter-spacing: 0; }
.page p, .page li { color: var(--text); }
.page ul { padding-left: 22px; }
.page .callout { background: var(--accent-soft); border-radius: 16px; padding: 18px 22px; margin: 0 0 28px; }
.page .callout p { margin: 0; }
.legal-caps { font-size: 14px; color: var(--muted); }

details { border-bottom: 1px solid var(--line); padding: 16px 0; }
details summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--accent); font-weight: 400; font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 10px 0 0; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

@media (max-width: 860px) {
  .hero { padding-top: 40px; }
  .hero .wrap, .plus, .devices { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .hero .phones img:last-child { margin-top: 32px; }
  .site-header nav { gap: 14px; }
}

@media (max-width: 420px) {
  .site-header nav a.hide-sm { display: none; }
}
