/* ── Fonts ────────────────────────────────────────────────────────────── */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/bricolage-grotesque-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
    U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Switzer";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/switzer-variable.woff2") format("woff2");
}

/* ── Tokens ───────────────────────────────────────────────────────────── */
:root {
  --bg:              #0F0E0C;
  --surface:         #1D1B19;
  --surface-raised:  #2B2A27;
  --border:          #2E2B26;
  --text-primary:    #F0EBE3;
  --text-muted:      #8A8378;
  --accent:          #C9973A;
  --accent-light:    #F4BE5D;
  --accent-gradient: linear-gradient(135deg, #F4BE5D 0%, #C9973A 100%);
  --accent-text:     #422C00;
  --green:           #5CC87A;

  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body:    "Switzer", system-ui, sans-serif;
}

/* ── Reset ────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
a { color: inherit; text-decoration: none; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Shared section wrapper ───────────────────────────────────────────── */
.section {
  padding: 80px 24px;
  max-width: 960px;
  margin: 0 auto;
}

/* ── Shared typography ────────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.6;
  margin-bottom: 48px;
}

/* ── Shared button styles ─────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  background: var(--accent-gradient);
  color: var(--accent-text);
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }

/* ── Responsive base ──────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .section { padding: 60px 20px; }
}

/* ── Nav ──────────────────────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: rgba(15, 14, 12, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--accent);
  /* NO gradient text — solid accent only */
}

.nav-cta {
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 14px;
}

@media (max-width: 640px) {
  nav { padding: 14px 20px; }
}

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 64px;
  align-items: center;
  padding-top: 96px;
  padding-bottom: 96px;
}

.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 20px;
  /* NO gradient text — solid white only */
}

.hero-sub {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 440px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-install-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  transition: opacity 0.15s;
}
.hero-install-link:hover { opacity: 0.75; }

/* ── Calorie card ─────────────────────────────────────────────────────── */
.calorie-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.4);
}

.calorie-total {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 24px;
}

.calorie-num {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 72px);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text-primary);
}

.calorie-goal {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 400;
}

.calorie-entries {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-bottom: 16px;
}

.calorie-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
  font-size: 14px;
}
.calorie-row:last-child { border-bottom: none; }

.calorie-row-name { color: var(--text-primary); font-weight: 400; }
.calorie-row-val  { color: var(--accent); font-weight: 600; font-size: 13px; }

.calorie-bar-wrap {
  height: 3px;
  background: var(--surface-raised);
  border-radius: 2px;
  overflow: hidden;
}
.calorie-bar {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: 2px;
}

/* Hero responsive */
@media (max-width: 640px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 56px;
    padding-bottom: 56px;
  }
  .calorie-num { font-size: 52px; }
}

/* ── Features ─────────────────────────────────────────────────────────── */
.spotlight {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 36px;
  margin-bottom: 16px;
}

.spotlight-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.spotlight-body {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
  max-width: 420px;
}

.spotlight-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(201, 151, 58, 0.1);
  color: var(--accent);
  border: 1px solid rgba(201, 151, 58, 0.25);
}

/* Spotlight UI mockup */
.spotlight-ui {
  background: var(--surface-raised);
  border-radius: 14px;
  padding: 18px;
  border: 1px solid var(--border);
}

.spotlight-ui-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.spotlight-ui-date {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.spotlight-ui-total {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.spotlight-ui-unit {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
}

.spotlight-ui-entry {
  padding: 8px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
}
.spotlight-ui-entry:last-child { border-bottom: none; }

.spotlight-ui-entry-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.spotlight-ui-entry-meta {
  font-size: 11px;
  color: var(--text-muted);
}

/* Add-on cards */
.addon-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.addon-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}

.addon-label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.addon-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.addon-body {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Features responsive */
@media (max-width: 640px) {
  .spotlight {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 28px;
  }
  .addon-row {
    grid-template-columns: 1fr;
  }
}

/* ── How it works ─────────────────────────────────────────────────────── */
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 600px;
  position: relative;
}

.step {
  display: grid;
  grid-template-columns: 40px 2px minmax(0, 1fr);
  gap: 0 16px;
  padding-bottom: 36px;
}
.step:last-child { padding-bottom: 0; }

.step-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1;
  padding-top: 2px;
  /* Plain accent text — NO gradient-filled circle */
}

.step-connector {
  width: 2px;
  background: var(--border);
  margin: 28px auto 0;
  align-self: stretch;
}
.step:last-child .step-connector { display: none; }

.step-content { padding-top: 4px; grid-column: 3; }

.step-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.step-body {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

@media (max-width: 400px) {
  .step {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 0 12px;
  }
  .step-connector { display: none; }
  .step-content { grid-column: 2; }
}

/* ── Install guide ────────────────────────────────────────────────────── */
.install-box {
  background: var(--surface);
  border-radius: 24px;
  padding: 40px;
  border: 1px solid var(--border);
}

.install-platforms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.install-platform-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.install-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  counter-reset: install-step;
}

.install-steps li {
  counter-increment: install-step;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.install-steps li::before {
  content: counter(install-step);
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(201, 151, 58, 0.12);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.install-steps li strong { color: var(--text-primary); font-weight: 600; }

.install-note {
  margin-top: 28px;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(92, 200, 122, 0.07);
  border: 1px solid rgba(92, 200, 122, 0.18);
  font-size: 13px;
  color: var(--green);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

@media (max-width: 640px) {
  .install-box { padding: 24px 20px; }
  .install-platforms { grid-template-columns: 1fr; gap: 24px; }
}

/* ── Footer ───────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  text-align: center;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
  /* NO gradient text — solid accent only */
}

.footer-tagline {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  transition: opacity 0.15s;
}
.footer-link:hover { opacity: 0.75; }
