/* ============================================================
   PROTEIN BOX — shared mockup styles
   Brand: premium Ontario beef, structured eating, adults 25+
   Palette: warm near-black, cream, butcher red, founding gold
   ============================================================ */

:root {
  --bg: #0f0d0b;
  --surface: #1a1714;
  --surface-2: #242019;
  --line: #2e2922;
  --line-soft: rgba(255, 255, 255, 0.08);

  --cream: #f4efe6;
  --cream-dim: #cfc8ba;
  --muted: #9a917f;

  --red: #b73225;
  --red-bright: #d6402f;
  --gold: #c9a05a;
  --gold-soft: rgba(201, 160, 90, 0.14);
  --green: #5a8a5e;

  --font-display: "Oswald", sans-serif;
  --font-body: "Archivo", sans-serif;

  --radius: 10px;
  --radius-lg: 16px;
  --container: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--cream);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }

a { color: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- mockup review bar (not part of final design) ---------- */

.mockup-bar {
  background: #060504;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
  position: sticky;
  top: 0;
  z-index: 100;
}

.mockup-bar .container {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 40px;
}

.mockup-bar strong { color: var(--cream-dim); font-weight: 600; letter-spacing: 0.04em; }

.mockup-bar nav { display: flex; gap: 2px; margin-left: auto; }

.mockup-bar nav a {
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 6px;
  color: var(--muted);
}

.mockup-bar nav a:hover { color: var(--cream); background: var(--surface); }
.mockup-bar nav a.active { color: var(--cream); background: var(--surface-2); }

/* ---------- site header ---------- */

.site-header {
  border-bottom: 1px solid var(--line-soft);
  background: rgba(15, 13, 11, 0.92);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 40px;
  z-index: 90;
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 40px;
  height: 68px;
}

.logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo .logo-mark {
  width: 28px;
  height: 28px;
  background: var(--red);
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 14px;
  color: var(--cream);
}

.site-nav { display: flex; gap: 28px; margin-left: auto; }

.site-nav a {
  text-decoration: none;
  font-size: 14.5px;
  color: var(--cream-dim);
  transition: color 0.15s ease;
}

.site-nav a:hover { color: var(--cream); }

@media (max-width: 760px) {
  .site-nav { display: none; }
  .site-header .header-cta { margin-left: auto; }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15.5px;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-bright); }

.btn-gold { background: var(--gold); color: #1a1408; }
.btn-gold:hover { background: #d9b16c; }

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--muted); background: var(--surface); }

.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-lg { padding: 17px 36px; font-size: 16.5px; }
.btn-block { width: 100%; }

.btn:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ---------- typography helpers ---------- */

.kicker {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red-bright);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.kicker::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--red-bright);
}

.kicker.kicker-gold { color: var(--gold); }
.kicker.kicker-gold::before { background: var(--gold); }

h1, h2, h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: 1.08;
  letter-spacing: 0.01em;
  font-weight: 600;
}

.display-xl { font-size: clamp(42px, 6.5vw, 76px); }
.display-lg { font-size: clamp(32px, 4.5vw, 52px); }
.display-md { font-size: clamp(24px, 3vw, 34px); }

.lede {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--cream-dim);
  max-width: 56ch;
}

.text-muted { color: var(--muted); }
.text-gold { color: var(--gold); }

/* ---------- sections ---------- */

.section { padding: 96px 0; }
.section-tight { padding: 72px 0; }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 56px;
  max-width: 720px;
}

.section-alt { background: var(--surface); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }

.section-cream {
  background: var(--cream);
  color: var(--ink, #171410);
}

.section-cream h2, .section-cream h3 { color: #171410; }
.section-cream .lede { color: #5b5346; }
.section-cream .text-muted { color: #847a68; }

/* ---------- cards & grids ---------- */

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--gold-soft);
  color: var(--gold);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}

.card h3 { font-size: 19px; margin-bottom: 10px; letter-spacing: 0.04em; }

.card p { font-size: 14.5px; color: var(--muted); }

/* ---------- badges ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--cream-dim);
}

.badge-gold { border-color: rgba(201, 160, 90, 0.5); color: var(--gold); background: var(--gold-soft); }
.badge-red { border-color: rgba(214, 64, 47, 0.5); color: #e87060; background: rgba(214, 64, 47, 0.12); }
.badge-green { border-color: rgba(90, 138, 94, 0.5); color: #8fbd93; background: rgba(90, 138, 94, 0.12); }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: 40px 0;
  font-size: 13.5px;
  color: var(--muted);
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================================
   QUIZ
   ============================================================ */

.quiz-shell {
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 24px 96px;
}

.quiz-progress-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
}

.quiz-progress-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
  white-space: nowrap;
}

.quiz-progress {
  flex: 1;
  height: 6px;
  background: var(--surface-2);
  border-radius: 999px;
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--red), var(--red-bright));
  border-radius: 999px;
  transition: width 0.3s ease;
}

.quiz-step-kicker {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.quiz-question {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 36px);
  text-transform: uppercase;
  line-height: 1.12;
  margin-bottom: 8px;
}

.quiz-hint { color: var(--muted); font-size: 14.5px; margin-bottom: 28px; }

.quiz-options { display: flex; flex-direction: column; gap: 12px; }

.quiz-option {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 17px 20px;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 15.5px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease;
}

.quiz-option:hover { border-color: var(--muted); background: var(--surface-2); }

.quiz-option.selected {
  border-color: var(--red-bright);
  background: rgba(214, 64, 47, 0.1);
}

.quiz-option .dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--line);
  flex-shrink: 0;
  display: grid;
  place-items: center;
  transition: border-color 0.12s ease;
}

.quiz-option.selected .dot { border-color: var(--red-bright); }

.quiz-option.selected .dot::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red-bright);
}

.quiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 36px;
  gap: 16px;
}

/* lead capture form */

.form-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }

.form-field label {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--cream-dim);
}

.form-field label .optional { color: var(--muted); font-weight: 400; }

.form-field input {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 15.5px;
  color: var(--cream);
  transition: border-color 0.12s ease;
}

.form-field input::placeholder { color: #6c6457; }

.form-field input:focus { outline: none; border-color: var(--gold); }

.form-field input.invalid { border-color: var(--red-bright); }

.field-error { font-size: 13px; color: #e87060; display: none; }
.field-error.show { display: block; }

.form-consent { font-size: 12.5px; color: var(--muted); margin-top: 16px; }

/* ============================================================
   RESULTS
   ============================================================ */

.score-dial {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  flex-shrink: 0;
}

.score-dial-inner {
  width: 138px;
  height: 138px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.score-dial-inner .score-num {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 700;
  line-height: 1;
}

.score-dial-inner .score-max { font-size: 12.5px; color: var(--muted); letter-spacing: 0.1em; }

.system-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.system-card.recommended {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(201, 160, 90, 0.1), var(--surface) 55%);
}

.system-card .system-name {
  font-family: var(--font-display);
  font-size: 21px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.system-card .system-qty {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
}

.system-card .system-qty span { font-size: 16px; font-weight: 400; color: var(--muted); font-family: var(--font-body); text-transform: none; }

.system-card .system-desc { font-size: 14px; color: var(--muted); }

.rec-flag {
  position: absolute;
  top: -12px;
  left: 24px;
}

.state-toggle {
  display: inline-flex;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
}

.state-toggle button {
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 999px;
  cursor: pointer;
}

.state-toggle button.active { background: var(--red); color: #fff; }

.benefit-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }

.benefit-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }

.benefit-list .check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 12px;
}

/* ============================================================
   HOW IT WORKS (Shopify explainer)
   ============================================================ */

.flow-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 12px;
}

.flow-arrow {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 20px;
}

@media (max-width: 860px) {
  .flow-row { grid-template-columns: 1fr; }
  .flow-arrow { transform: rotate(90deg); padding: 4px 0; }
}

.step-num {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.checklist { list-style: none; display: flex; flex-direction: column; gap: 12px; }

.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 14.5px;
}
