/* ===== Tokens ===== */
:root {
  --cream: #f3ebe1;
  --cream-2: #ede2d3;
  --brown: #4a2a1a;
  --brown-2: #3a2013;
  --cream-text: #faf5ed;

  --font-display: 'Fredoka', ui-rounded, 'Segoe UI Rounded', system-ui, sans-serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

  --max: 760px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

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

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

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== Lockup ===== */
.lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 40px;
  color: var(--brown);
  line-height: 1;
}

.sprinkle {
  width: 80px;
  height: auto;
  color: var(--brown);
}
.sprinkle circle { fill: currentColor; }

.lockup--on-dark .wordmark { color: var(--cream-text); }
.lockup--on-dark .sprinkle { color: var(--cream-text); }

/* ===== Hero (mobile-first: capture must fit above the fold) ===== */
.hero {
  background: var(--cream);
  padding: 20px 0 24px;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.tagline {
  margin: 8px 0 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 600;
}

.headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 30px;
  line-height: 1.05;
  margin: 8px 0 6px;
  color: var(--brown);
}

.descriptor {
  margin: 0 0 14px;
  font-size: 12px;
  color: var(--brown);
  opacity: 0.85;
}

.hero__media { width: 100%; max-width: 520px; margin-bottom: 14px; }
.hero__jars { width: 100%; border-radius: 14px; }

/* ===== Email capture (shared) ===== */
.capture { width: 100%; max-width: 440px; }

.capture__row {
  display: flex;
  gap: 8px;
  width: 100%;
}

.capture__input {
  flex: 1;
  min-width: 0;
  padding: 13px 15px;
  border-radius: 999px;
  border: 1.5px solid var(--brown-2);
  background: var(--cream-text);
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--brown);
}
.capture__input:focus-visible {
  outline: 2px solid var(--brown);
  outline-offset: 2px;
}
.capture__input[aria-invalid="true"] {
  border-color: var(--brown);
  border-width: 2px;
}

.capture__button {
  flex-shrink: 0;
  padding: 13px 18px;
  border-radius: 999px;
  border: none;
  background: var(--brown);
  color: var(--cream-text);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
}
.capture__button:hover { background: var(--brown-2); }
.capture__button:focus-visible { outline: 2px solid var(--brown); outline-offset: 2px; }
.capture__button:disabled { opacity: 0.6; cursor: default; }
.capture__input:disabled { opacity: 0.6; }

.capture__error {
  margin: 8px 4px 0;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.capture__success {
  text-align: center;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--brown-2);
  background: var(--cream-text);
  color: var(--brown);
}

.capture--dark .capture__input { border-color: var(--cream-text); }
.capture--dark .capture__button { background: var(--cream-text); color: var(--brown); }
.capture--dark .capture__button:hover { background: var(--cream); }
.capture--dark .capture__success {
  border-color: var(--cream-text);
  background: transparent;
  color: var(--cream-text);
}

/* ===== Section label ===== */
.section-label {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-align: center;
  margin: 0 0 22px;
  color: var(--brown);
  opacity: 0.75;
}

/* ===== Lineup ===== */
.lineup {
  background: var(--cream-2);
  padding: 40px 0;
}

.lineup__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 16px;
  margin-bottom: 32px;
}

.sku {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}

.sku__swatch {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--sku-color);
  border: 1.5px solid rgba(74, 42, 26, 0.15);
}

.sku__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  margin: 2px 0 0;
  color: var(--brown);
}

.sku__usage {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
  color: var(--brown);
  opacity: 0.85;
}

.lineup__box {
  border-radius: 16px;
  margin: 0 auto;
  max-width: 520px;
  width: 100%;
}

/* ===== The jar ===== */
.jar {
  background: var(--cream);
  padding: 40px 0;
}

.jar__grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.jar__feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.jar__icon {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: var(--brown);
  stroke-width: 2;
}

.jar__feature h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
  color: var(--brown);
}

.jar__feature p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  max-width: 320px;
  color: var(--brown);
  opacity: 0.9;
}

/* ===== Final capture section ===== */
.capture-section {
  background: var(--brown);
  color: var(--cream-text);
  padding: 44px 0 48px;
}

.capture-section__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}

.tagline--on-dark { color: var(--cream-text); margin-bottom: 20px; }

/* ===== Footer contact (lives inside the dark capture section) =====
   Compound element+class selectors and !important are deliberate here:
   the browser's own UA stylesheet styles :link/:visited at element+pseudo
   specificity, so a bare .footer-contact class can lose that fight in some
   engines. Pinning every state explicitly removes any ambiguity. */
a.footer-contact,
a.footer-contact:link,
a.footer-contact:visited {
  display: inline-block;
  margin-top: 44px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--cream-text) !important;
  text-decoration: none !important;
  opacity: 0.8;
}
a.footer-contact:hover,
a.footer-contact:focus-visible {
  color: var(--cream-text) !important;
  opacity: 1;
  text-decoration: underline !important;
}
a.footer-contact:focus-visible { outline: 2px solid var(--cream-text); outline-offset: 3px; }

/* ===== Desktop ===== */
@media (min-width: 760px) {
  .wrap { max-width: 1080px; padding: 0 40px; }

  .hero { padding: 64px 0; }

  .wordmark { font-size: 56px; }
  .sprinkle { width: 108px; }
  .headline { font-size: 60px; }
  .tagline { font-size: 13px; }
  .descriptor { font-size: 15px; margin-bottom: 26px; }
  a.footer-contact,
  a.footer-contact:link,
  a.footer-contact:visited { font-size: 11px; }

  .hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "text media" "capture media";
    align-items: center;
    gap: 16px 56px;
    text-align: left;
  }
  .hero__text { grid-area: text; align-items: flex-start; text-align: left; }
  .capture { grid-area: capture; max-width: 440px; }
  .hero__media { grid-area: media; margin-bottom: 0; max-width: 100%; }

  .lineup { padding: 64px 0; }
  .lineup__grid { grid-template-columns: repeat(3, 1fr); gap: 32px 24px; }
  .sku__swatch { width: 40px; height: 40px; }
  .sku__name { font-size: 20px; }
  .sku__usage { font-size: 11px; }

  .jar { padding: 64px 0; }
  .jar__grid { flex-direction: row; justify-content: space-between; gap: 32px; }
  .jar__feature { flex: 1; }

  .capture-section { padding: 64px 0; }
}
