/* Bitty Kitchen — brand tokens from the packaging palette */
:root {
  --cream: #fffcf5;
  --cocoa: #573924;
  --peach: #f3b5a4;
  --peach-deep: #e89a86;
  --mint: #b4d6c5;
  --mint-deep: #8fbfa9;
  --butter: #f3d27a;
  --sage: #a3c48e;
  --soft: #6e503c;
  --white: #ffffff;
  --coral: #c8646e;
  --line: rgba(87, 57, 36, 0.12);
  --font-brand: "Shantell Sans", "Segoe Print", "Bradley Hand", cursive;
  --font-display: "Grandstander", "Trebuchet MS", sans-serif;
  --font-label: "Fredoka", "Trebuchet MS", sans-serif;
  --font-body: "Nunito Sans", "Segoe UI", system-ui, sans-serif;
  --shadow: 0 10px 30px rgba(87, 57, 36, 0.08);
  --shadow-sm: 0 4px 14px rgba(87, 57, 36, 0.07);
  --max: 70rem;
  --header-h: 4.25rem;
  --radius: 1.35rem;
}

@font-face {
  font-family: "Shantell Sans";
  src: url("assets/fonts/ShantellSans-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Grandstander";
  src: url("assets/fonts/Grandstander-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Grandstander";
  src: url("assets/fonts/Grandstander-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fredoka";
  src: url("assets/fonts/Fredoka-Semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fredoka";
  src: url("assets/fonts/Fredoka-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("assets/fonts/NunitoSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("assets/fonts/NunitoSans-Semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("assets/fonts/NunitoSans-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

html:not([lang="es"]) .i18n-es { display: none !important; }
html[lang="es"] .i18n-en { display: none !important; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--cocoa);
  background: var(--cream);
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--cocoa);
  color: var(--cream);
  padding: 0.6rem 1rem;
  border-radius: 999px;
}
.skip:focus { top: 0.75rem; }

/* Decorative page wash */
.page-wash {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(40rem 28rem at 100% -4%, rgba(243, 181, 164, 0.35), transparent 60%),
    radial-gradient(36rem 24rem at -10% 12%, rgba(180, 214, 197, 0.32), transparent 60%),
    radial-gradient(24rem 18rem at 80% 40%, rgba(243, 210, 122, 0.18), transparent 70%),
    var(--cream);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 252, 245, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.65rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: var(--header-h);
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  min-width: 0;
}
.logo img {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
  flex-shrink: 0;
}
.logo-text {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.logo-sub {
  display: block;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--soft);
  margin-top: 0.1rem;
}

.logo { order: 1; }
.header-actions {
  order: 2;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.site-nav { order: 3; }

.lang-toggle {
  display: inline-flex;
  background: var(--white);
  border: 1.5px solid var(--cocoa);
  border-radius: 999px;
  padding: 0.15rem;
  gap: 0;
}
.lang-toggle button {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.lang-toggle button[aria-pressed="true"] {
  background: var(--cocoa);
  color: var(--cream);
}

.menu-btn {
  appearance: none;
  background: var(--white);
  border: 1.5px solid var(--cocoa);
  border-radius: 999px;
  width: 2.6rem;
  height: 2.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.menu-btn svg { width: 1.2rem; height: 1.2rem; }

.site-nav {
  display: none;
  flex-basis: 100%;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.4rem 0 0.6rem;
}
.site-header.open .site-nav { display: flex; }
.site-nav a {
  text-decoration: none;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.55rem 0.7rem;
  border-radius: 0.8rem;
}
.site-nav a:hover { background: rgba(243, 181, 164, 0.35); }

@media (min-width: 880px) {
  .header-inner { flex-wrap: nowrap; }
  .menu-btn { display: none; }
  .site-nav {
    display: flex;
    flex-direction: row;
    flex-basis: auto;
    margin-left: auto;
    padding: 0;
    align-items: center;
    gap: 0.15rem;
  }
  .site-nav { order: 2; }
  .header-actions { order: 3; margin-left: 0.75rem; }
  .site-nav a { font-size: 0.88rem; padding: 0.4rem 0.55rem; }
  .logo-text { font-size: 1.35rem; }
}

/* Layout */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.15rem;
}

section { padding: 3.5rem 0; }
.band-peach { background: linear-gradient(180deg, rgba(243, 181, 164, 0.28), rgba(243, 181, 164, 0.08)); }
.band-mint { background: linear-gradient(180deg, rgba(180, 214, 197, 0.35), rgba(180, 214, 197, 0.08)); }
.band-butter { background: linear-gradient(180deg, rgba(243, 210, 122, 0.28), rgba(243, 210, 122, 0.06)); }

.eyebrow {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.6rem;
  color: var(--soft);
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; margin: 0; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.2rem; }
.lede { font-size: 1.12rem; max-width: 42rem; color: var(--soft); }

/* Hero */
.hero {
  padding: 2rem 0 3.25rem;
  position: relative;
}
.hero-grid {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}
.hero-copy { text-align: center; }
.hero h1 {
  font-family: var(--font-brand);
  font-size: clamp(2.6rem, 10vw, 5rem);
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin: 0.15rem 0 0.35rem;
}
.product-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4.5vw, 2.35rem);
  margin: 0;
}
.product-title span[lang] { display: block; } /* overridden by i18n hide */
.tagline {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0.85rem 0 1.1rem;
}
.hero-mascot {
  justify-self: center;
  width: min(22rem, 86vw);
  position: relative;
}
.hero-mascot img {
  width: 100%;
  filter: drop-shadow(0 16px 24px rgba(87, 57, 36, 0.12));
}
.doodle {
  position: absolute;
  pointer-events: none;
}
.doodle.heart-l { left: 4%; top: 12%; width: 1.6rem; }
.doodle.heart-r { right: 6%; top: 22%; width: 1.35rem; }
.doodle.leaf-l { left: -2%; bottom: 18%; width: 3.2rem; }
.doodle.leaf-r { right: -2%; bottom: 22%; width: 3.2rem; transform: scaleX(-1); }
.doodle.dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--butter); }
.doodle.dot-a { left: 12%; top: 6%; }
.doodle.dot-b { right: 16%; bottom: 12%; background: var(--peach); }

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
  margin: 1.15rem 0 1.4rem;
}
.pill {
  background: var(--mint);
  color: var(--cocoa);
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
}
.pill.alt { background: var(--peach); }
.pill.soft { background: var(--white); border-color: var(--line); }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
  border: 1.5px solid var(--cocoa);
  border-radius: 999px;
  padding: 0.75rem 1.25rem;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  background: var(--cocoa);
  color: var(--cream);
  box-shadow: var(--shadow-sm);
}
.btn.secondary {
  background: var(--white);
  color: var(--cocoa);
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible,
.lang-toggle button:focus-visible,
.menu-btn:focus-visible,
.faq-btn:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--mint-deep);
  outline-offset: 2px;
}

@media (min-width: 800px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2rem;
  }
  .hero-copy { text-align: left; }
  .pills, .cta-row { justify-content: flex-start; }
  .hero { padding: 3rem 0 4.5rem; }
}

/* Story */
.story-grid {
  display: grid;
  gap: 1.5rem;
}
.story-card, .quote-card, .card, .flavor, .price, .method, .faq-item, .form-card {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.story-card { padding: 1.5rem 1.35rem 1.6rem; }
.quote-card {
  padding: 1.5rem;
  background: var(--peach);
  border-color: transparent;
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.35;
}
.quote-card cite {
  display: block;
  margin-top: 0.9rem;
  font-family: var(--font-label);
  font-style: normal;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
@media (min-width: 800px) {
  .story-grid { grid-template-columns: 1.4fr 0.8fr; align-items: stretch; }
}

/* Flavors */
.section-head { margin-bottom: 1.6rem; }
.flavor-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 1fr;
}
.flavor {
  padding: 1.15rem 1.15rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  border-top: 7px solid var(--ribbon, var(--peach));
}
.flavor .ribbon {
  align-self: flex-start;
  background: var(--ribbon, var(--peach));
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}
.flavor .es-name { margin: 0; color: var(--soft); font-size: 0.95rem; }
.flavor .ings { margin: 0.15rem 0 0; font-size: 0.95rem; }
.flavor .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.55rem;
}
.chip {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(180, 214, 197, 0.5);
}
.chip.warn { background: rgba(200, 100, 110, 0.22); }
.chip.savory { background: rgba(163, 196, 142, 0.55); }
.tested-note {
  margin: 1.25rem 0 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.15rem;
}
@media (min-width: 640px) {
  .flavor-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) {
  .flavor-grid { grid-template-columns: 1fr 1fr 1fr 1fr; }
}

/* Warm */
.method-grid {
  display: grid;
  gap: 0.9rem;
}
.method { padding: 1.25rem 1.15rem; text-align: center; }
.method .icon {
  width: 3.4rem;
  height: 3.4rem;
  margin: 0 auto 0.7rem;
  background: var(--mint);
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.method .icon svg { width: 1.7rem; height: 1.7rem; }
.method p { margin: 0.45rem 0 0; color: var(--soft); }
.fineprint { margin: 1.15rem 0 0; color: var(--soft); font-size: 0.95rem; }
@media (min-width: 720px) {
  .method-grid { grid-template-columns: 1fr 1fr 1fr; }
}

/* Pricing */
.price-grid {
  display: grid;
  gap: 0.9rem;
}
.price {
  padding: 1.7rem 1.2rem 1.5rem;
  text-align: center;
  position: relative;
}
.price.featured {
  background: var(--butter);
  border-color: transparent;
}
.price .amount {
  font-family: var(--font-brand);
  font-size: 2.6rem;
  line-height: 1;
  margin: 0.35rem 0 0.2rem;
}
.price .save {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--soft);
}
.badge-pop {
  position: absolute;
  top: -0.7rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--cocoa);
  color: var(--cream);
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  white-space: nowrap;
}
@media (min-width: 800px) {
  .price-grid { grid-template-columns: 1fr 1fr 1fr; align-items: stretch; }
}

/* Order */
.order-grid {
  display: grid;
  gap: 1.1rem;
}
.form-card, .order-blurb { padding: 1.4rem 1.2rem; }
label { display: block; font-family: var(--font-label); font-weight: 600; font-size: 0.88rem; margin: 0.85rem 0 0.3rem; }
label:first-child { margin-top: 0; }
input, textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  background: var(--cream);
  border-radius: 0.85rem;
  padding: 0.7rem 0.85rem;
}
textarea { min-height: 7rem; resize: vertical; }
.form-note, .placeholder-flag {
  font-size: 0.9rem;
  color: var(--soft);
  margin: 0.8rem 0 0;
}
.form-success {
  display: none;
  padding: 0.9rem 1rem;
  background: rgba(180, 214, 197, 0.45);
  border-radius: 0.9rem;
  margin-bottom: 1rem;
}
.form-success.show { display: block; }
@media (min-width: 800px) {
  .order-grid { grid-template-columns: 0.9fr 1.1fr; align-items: start; }
}

/* FAQ */
.faq-list { display: grid; gap: 0.65rem; }
.faq-item { overflow: hidden; }
.faq-btn {
  width: 100%;
  appearance: none;
  background: transparent;
  border: 0;
  text-align: left;
  padding: 1rem 1.15rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}
.faq-btn .chev {
  width: 0.7rem;
  height: 0.7rem;
  border-right: 2px solid var(--cocoa);
  border-bottom: 2px solid var(--cocoa);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.faq-item.open .faq-btn .chev { transform: rotate(225deg); }
.faq-panel {
  display: none;
  padding: 0 1.15rem 1.1rem;
  color: var(--soft);
}
.faq-item.open .faq-panel { display: block; }

/* Footer */
.site-footer {
  padding: 2.2rem 0 2.8rem;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 0.95rem;
  color: var(--soft);
}
.site-footer .wordmark {
  font-family: var(--font-brand);
  font-size: 1.6rem;
  color: var(--cocoa);
  margin: 0 0 0.4rem;
}
.disclaimer {
  max-width: 40rem;
  margin: 1.1rem auto 0;
  padding: 0.85rem 1rem;
  background: rgba(87, 57, 36, 0.05);
  border: 1px dashed rgba(87, 57, 36, 0.28);
  border-radius: 0.9rem;
  font-size: 0.88rem;
}
.tiny { font-size: 0.8rem; margin: 1rem 0 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
  * { transition: none !important; }
}
