/* ElectroCreatine® — tokens from Brand Book v1.0 (12 Oct 2026) */
:root {
  --mint: #CDE1D8;        /* core mint, primary ground */
  --pale-mint: #E5F3F1;   /* secondary bands and panels */
  --white: #FFFFFF;
  --ink: #4F564D;         /* wordmark, text, buttons */
  --ink-hover: #41483F;
  --green: #5B9573;       /* cross and details */
  --emblem-mint: #A1D6B8;
  --lemon: #F4D438;
  --orange: #EB9B4F;
  --red: #DF3C4B;
  --rule: rgba(79, 86, 77, 0.22);
  --flavour: linear-gradient(90deg, var(--lemon) 0%, var(--orange) 58%, var(--red) 82%, var(--red) 100%);

  --font: "neue-haas-grotesk-text", "Neue Haas Grotesk Text", "Neue Haas Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --content: 1200px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-weight: 400; margin: 0; line-height: 1.15; }
h1 { font-size: clamp(32px, 4.4vw, 56px); }
h2 { font-size: clamp(24px, 2.6vw, 32px); }
h3 { font-size: 20px; }
p { margin: 0; }
a { color: inherit; }
figure { margin: 0; }

.wrap { max-width: calc(var(--content) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.band-mint { background: var(--mint); }
.band-pale { background: var(--pale-mint); }
.band-white { background: var(--white); }
section { position: relative; overflow: hidden; padding: 96px 0; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--white); padding: 12px 24px; z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons — 48px min, 12×24 padding, 4px radius */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 24px; border-radius: 4px;
  font: inherit; font-size: 16px; text-decoration: none;
  border: 1px solid var(--ink); transition: background-color .15s, color .15s;
}
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--ink-hover); border-color: var(--ink-hover); }
.btn-secondary { background: transparent; color: var(--ink); }
.btn-secondary:hover { background: rgba(79, 86, 77, 0.06); }
.btn-sm { min-height: 40px; padding: 8px 16px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.site-footer :focus-visible { outline-color: var(--white); }

/* Flavour line — 3px, horizontal, lemon left */
.flavour-line { display: block; height: 3px; width: 240px; max-width: 100%; background: var(--flavour); }
.flavour-line--wide { width: 400px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--rule); }
.header-inner { display: flex; align-items: center; gap: 32px; min-height: 80px; }
.brand { padding: 8px 0; margin-right: auto; }
.brand img { width: 220px; }
.nav { display: flex; gap: 32px; }
.nav a { text-decoration: none; font-size: 15px; }
.nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Hero */
.hero { padding: 64px 0; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.masterbrand { width: 180px; margin-bottom: 8px; }
.formula-lines { font-size: 18px; line-height: 1.7; }
.actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; }
.hero-media img { width: 100%; border-radius: 4px; aspect-ratio: 1613 / 975; object-fit: cover; }

/* Section heads */
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: end; margin-bottom: 48px; }
.lede { font-size: 18px; max-width: 520px; }

/* Formula */
.formula .wrap { position: relative; z-index: 1; }
.emblem { position: absolute; width: 560px; right: -280px; top: -280px; opacity: .9; pointer-events: none; }
.flavour-label { font-weight: 700; font-size: 13px; margin-bottom: 12px; }
.ingredients { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.ingredients li { display: flex; flex-direction: column; gap: 8px; padding: 32px 24px 32px 0; border-bottom: 1px solid var(--rule); }
.ingredients .amount { font-size: clamp(32px, 3.4vw, 48px); line-height: 1; }
.ingredients li:nth-child(n+4) .amount { color: var(--green); }
.ingredients .name { font-size: 16px; }

/* How to use */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.steps li { background: var(--white); padding: 32px; border-radius: 4px; display: flex; flex-direction: column; gap: 12px; }
.step-num { font-size: 13px; color: var(--green); font-weight: 500; }

/* Shop */
.shop-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.descriptor { font-size: 20px; margin-top: 8px; }
.callout { font-weight: 700; color: var(--green); font-size: 15px; margin: 24px 0 16px; }
.spec { margin: 0 0 32px; border-top: 1px solid var(--rule); }
.spec div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.spec dt { font-size: 13px; padding-top: 2px; }
.spec dd { margin: 0; }
.shop-media img { border-radius: 4px; width: 100%; }

/* FAQs */
.faq-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; }
.faq-inner .section-head { display: block; }
.faq-list { border-top: 1px solid var(--rule); }
details { border-bottom: 1px solid var(--rule); }
summary { list-style: none; cursor: pointer; padding: 24px 40px 24px 0; font-size: 18px; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 16px; height: 16px; margin-top: -8px;
  background: linear-gradient(var(--green), var(--green)) center / 16px 2px no-repeat, linear-gradient(var(--green), var(--green)) center / 2px 16px no-repeat; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 40px 24px 0; max-width: 640px; }

/* Slogan */
.slogan { padding: 128px 0; text-align: center; }
.slogan-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 32px; }
.slogan-text { font-size: clamp(26px, 4vw, 48px); line-height: 1.1; }
.emblem--corner { width: 560px; right: -180px; top: -200px; transform: none; }

/* Footer — white on ink */
.site-footer { background: var(--ink); color: var(--white); padding: 64px 0 48px; }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 48px; align-items: start; }
.footer-lockup { display: flex; flex-direction: column; gap: 16px; }
.footer-lockup img:first-child { width: 110px; }
.footer-lockup img:last-child { width: 220px; }
.footer-nav { display: flex; gap: 24px; justify-self: center; flex-wrap: wrap; }
.footer-nav a { text-decoration: none; font-size: 15px; }
.footer-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-meta { font-size: 13px; text-align: right; display: grid; gap: 8px; opacity: .85; }

/* Responsive */
@media (max-width: 960px) {
  .hero-inner, .shop-inner, .faq-inner { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .ingredients { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ingredients li:last-child { grid-column: 1 / -1; }
  .steps { grid-template-columns: 1fr; }
  .section-head { grid-template-columns: 1fr; gap: 16px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { justify-self: start; }
  .footer-meta { text-align: left; }
  .formula .emblem { display: none; }
}
@media (max-width: 720px) {
  :root { --gutter: 16px; }
  section { padding: 64px 0; }
  .hero { padding: 32px 0 48px; }
  .nav { display: none; }
  .brand img { width: 160px; }
  .header-inner { min-height: 64px; gap: 16px; }
  .actions .btn { flex: 1 1 100%; }
  .flavour-line--wide { width: 100%; }
  .spec div { grid-template-columns: 1fr; gap: 4px; }
  .slogan { padding: 96px 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
