/* ============================================
   BatterUp! — Design tokens
   ============================================ */
:root {
  /* Color — grounded in the actual food/grain world, not generic terracotta */
  --cream: #FAF6EC;
  --cream-deep: #F1E9D8;
  --espresso: #2A1F18;
  --espresso-soft: #4A3B2E;
  --chili: #9A3324;
  --chili-deep: #7A2719;
  --curry-green: #3D4A2A;
  --curry-green-deep: #2C3620;
  --turmeric: #D4A857;
  --turmeric-soft: #E8D5A8;
  --paper: #FFFDF8;

  /* Type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --space-2xl: 8rem;

  --radius: 4px;
  --max-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--espresso);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

a { color: inherit; }

button { font-family: inherit; cursor: pointer; }

:focus-visible {
  outline: 2.5px solid var(--chili);
  outline-offset: 3px;
}

/* subtle paper grain over the whole page, ties to "staple foods" tactility */
.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================
   Eyebrows, section titles
   ============================================ */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--turmeric-soft);
  margin: 0 0 0.9rem;
}
.eyebrow-dark { color: var(--chili); }

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1.18;
  margin: 0 0 var(--space-lg);
  max-width: 18ch;
  color: var(--espresso);
}
.section-title-light { color: var(--paper); }

/* ============================================
   Header
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 236, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(42, 31, 24, 0.08);
}
.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--espresso);
  letter-spacing: -0.01em;
}
.logo-mark { color: var(--chili); }

.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}
.main-nav a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--espresso-soft);
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--chili); }
.nav-cta {
  background: var(--chili);
  color: var(--paper) !important;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius);
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--chili-deep); color: var(--paper) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.4rem;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--espresso);
}

/* ============================================
   Hero
   ============================================ */
.hero {
  padding: var(--space-2xl) 0 0;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 100%);
}
.hero-copy-centered {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding-bottom: var(--space-lg);
}
.hero-copy-centered .hero-sub { margin-left: auto; margin-right: auto; }
.hero-copy-centered .hero-actions { justify-content: center; }
.hero-photo {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto var(--space-lg);
  padding: 0 1.5rem;
}
.hero-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 20px 50px rgba(42, 31, 24, 0.18);
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 5.8vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-md);
  color: var(--espresso);
}
.strike {
  position: relative;
  color: var(--espresso-soft);
}
.strike::after {
  content: '';
  position: absolute;
  left: -2%;
  right: -2%;
  top: 52%;
  height: 0.06em;
  background: var(--chili);
  transform: rotate(-2deg);
}
.accent-text { color: var(--chili); font-style: italic; }
.accent-text-light { color: var(--turmeric); font-style: italic; }

.hero-sub {
  font-size: 1.18rem;
  color: var(--espresso-soft);
  max-width: 52ch;
  margin: 0 0 var(--space-lg);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.7rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn-primary {
  background: var(--chili);
  color: var(--paper);
}
.btn-primary:hover { background: var(--chili-deep); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  border-color: var(--espresso);
  color: var(--espresso);
}
.btn-ghost:hover { background: var(--espresso); color: var(--cream); }

.hero-strip {
  border-top: 1px solid rgba(42, 31, 24, 0.1);
  padding: 1.1rem 1.5rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--espresso-soft);
  font-weight: 500;
}

/* ============================================
   Problem section
   ============================================ */
.problem {
  background: var(--paper);
  padding: var(--space-2xl) 0;
}
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}
.problem-card {
  border-left: 2px solid var(--turmeric);
  padding-left: 1.3rem;
}
.problem-glyph {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--chili);
  margin-bottom: 0.6rem;
}
.problem-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.6rem;
}
.problem-card p {
  color: var(--espresso-soft);
  font-size: 0.96rem;
  margin: 0;
}
.problem-thesis {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  text-align: center;
  color: var(--curry-green);
  max-width: 30ch;
  margin: 0 auto;
  line-height: 1.4;
}

/* ============================================
   Solution / flow diagram — the signature element
   ============================================ */
.solution {
  background: var(--espresso);
  padding: var(--space-2xl) 0;
}
.solution .eyebrow { color: var(--turmeric); }

.flow-diagram {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: var(--space-sm);
  margin: var(--space-xl) 0;
}
.flow-step {
  text-align: center;
}
.flow-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(250, 246, 236, 0.18);
}
.flow-icon svg { width: 30px; height: 30px; }
.flow-icon-staple { color: var(--turmeric); }
.flow-icon-protein { color: var(--chili); background: rgba(154, 51, 36, 0.12); }
.flow-icon-micro { color: var(--curry-green); }
.flow-icon-better {
  color: var(--paper);
  background: var(--chili);
  border-color: var(--chili);
}
.flow-step h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--paper);
  margin: 0 0 0.5rem;
}
.flow-step p {
  font-size: 0.85rem;
  color: rgba(250, 246, 236, 0.6);
  margin: 0;
  line-height: 1.45;
}
.flow-step-final h3 { color: var(--turmeric); }
.flow-arrow {
  color: rgba(250, 246, 236, 0.3);
  font-size: 1.3rem;
  padding-top: 18px;
}

.solution-tagline {
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--turmeric-soft);
  margin: 0;
}

/* ============================================
   Products
   ============================================ */
.products {
  background: var(--cream);
  padding: var(--space-2xl) 0;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}
.product-card {
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(42, 31, 24, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(42, 31, 24, 0.1);
}
.product-media {
  height: 190px;
  overflow: hidden;
  line-height: 0;
}
.product-media img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.product-card:hover .product-media img {
  transform: scale(1.04);
}
.product-body { padding: 1.3rem; }
.product-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--curry-green);
}
.product-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0.5rem 0 0.5rem;
}
.product-card p {
  font-size: 0.88rem;
  color: var(--espresso-soft);
  margin: 0 0 1rem;
  min-height: 4.4em;
}
.product-cta {
  width: 100%;
  background: transparent;
  border: 1.5px solid var(--chili);
  color: var(--chili);
  padding: 0.6rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.85rem;
  transition: background 0.15s ease, color 0.15s ease;
}
.product-cta:hover { background: var(--chili); color: var(--paper); }

.products-note {
  text-align: center;
  font-size: 0.92rem;
  color: var(--espresso-soft);
  font-style: italic;
}

/* ============================================
   Vision — iodized salt analogy
   ============================================ */
.vision {
  background: var(--curry-green-deep);
  padding: var(--space-2xl) 0;
}
.vision-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-xl);
  align-items: center;
}
.vision .eyebrow { color: var(--turmeric); }
.vision-body {
  color: rgba(250, 246, 236, 0.75);
  font-size: 1.05rem;
  max-width: 42ch;
}
.vision-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.vision-box {
  width: 100%;
  background: rgba(250, 246, 236, 0.06);
  border: 1px solid rgba(250, 246, 236, 0.15);
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
  text-align: center;
}
.vision-icon {
  width: 36px;
  height: 36px;
  margin: 0 auto 0.6rem;
  display: block;
}
.vision-box-accent {
  background: rgba(212, 168, 87, 0.12);
  border-color: var(--turmeric);
}
.vision-box-label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--paper);
  margin-bottom: 0.35rem;
}
.vision-box-sub {
  display: block;
  font-size: 0.82rem;
  color: rgba(250, 246, 236, 0.6);
}
.vision-arrow {
  color: var(--turmeric);
  font-size: 1.2rem;
}

/* ============================================
   Mission statement band
   ============================================ */
.mission-statement {
  background: var(--chili);
  padding: var(--space-xl) 0;
}
.mission-line {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  color: var(--paper);
  text-align: center;
  max-width: 48ch;
  margin: 0 auto;
  line-height: 1.45;
}

/* ============================================
   Register form
   ============================================ */
.register {
  background: var(--paper);
  padding: var(--space-2xl) 0;
}
.register-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--space-xl);
}
.register-intro { padding-top: 0.4rem; }
.register-sub {
  color: var(--espresso-soft);
  font-size: 1rem;
  max-width: 38ch;
}

.register-form {
  background: var(--cream);
  border: 1px solid rgba(42, 31, 24, 0.08);
  border-radius: 6px;
  padding: var(--space-lg);
}
.form-row { margin-bottom: 1.3rem; }
.form-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.3rem;
  margin-bottom: 1.3rem;
}
.form-row-split .form-row { margin-bottom: 0; }
label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  color: var(--espresso);
}
label span { color: var(--chili); }
input, select, textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid rgba(42, 31, 24, 0.18);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--paper);
  color: var(--espresso);
  transition: border-color 0.15s ease;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--chili);
  outline: none;
}
textarea { resize: vertical; }

.btn-submit {
  width: 100%;
  margin-top: 0.4rem;
  position: relative;
}
.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-status {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 1.2em;
}
.form-status.success { color: var(--curry-green); }
.form-status.error { color: var(--chili); }

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--espresso);
  padding: var(--space-lg) 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-brand p {
  color: rgba(250, 246, 236, 0.5);
  font-size: 0.85rem;
  margin: 0.3rem 0 0;
}
.logo-footer { color: var(--paper); }
.footer-meta {
  color: rgba(250, 246, 236, 0.45);
  font-size: 0.82rem;
  margin: 0;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 900px) {
  .hero-photo { padding: 0 1rem; }
  .problem-grid { grid-template-columns: 1fr; gap: var(--space-md); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .vision-inner { grid-template-columns: 1fr; }
  .register-inner { grid-template-columns: 1fr; }
  .flow-diagram {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .flow-arrow { transform: rotate(90deg); padding: 4px 0; }
}

@media (max-width: 640px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(42, 31, 24, 0.08);
  }
  .main-nav.nav-open { display: flex; }
  .main-nav a { padding: 0.7rem 0; width: 100%; }
  .nav-cta { margin-top: 0.5rem; text-align: center; }
  .nav-toggle { display: flex; }
  .hero { padding-top: var(--space-xl); }
  .form-row-split { grid-template-columns: 1fr; gap: 1.3rem; }
  .product-grid { grid-template-columns: 1fr; }
  :root {
    --space-xl: 3.5rem;
    --space-2xl: 5rem;
  }
}
