/* ============ MightyBits ============ */
:root {
  --green-900: #04461a;
  --green-800: #065a1f;   /* logo dark green */
  --green-600: #1f7a35;
  --lime: #8cc800;        /* logo leaf green */
  --lime-soft: #eef7d9;
  --cream: #f7faf2;
  --ink: #17301f;
  --muted: #5a6f60;
  --line: #dfe8d8;
  --white: #fff;
  --whatsapp: #1fa855;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(6, 90, 31, 0.08);
  --font: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0; color: var(--green-800); }
p { margin: 0; }

.container { width: min(1160px, 100% - 40px); margin-inline: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 2px solid transparent;
  font: 800 1rem var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green-800); color: var(--white); }
.btn-primary:hover { background: var(--green-900); box-shadow: 0 6px 18px rgba(6, 90, 31, .25); }
.btn-ghost { border-color: var(--green-800); color: var(--green-800); background: transparent; }
.btn-ghost:hover { background: var(--lime-soft); }
.btn-whatsapp { background: var(--whatsapp); color: var(--white); }
.btn-whatsapp:hover { background: #178a45; }
.btn-whatsapp svg { width: 20px; height: 20px; }
.btn-block { width: 100%; }

.eyebrow {
  font-weight: 800; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green-600); margin-bottom: 10px;
}
.eyebrow::before {
  content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 8px;
  background: var(--lime); border-radius: 0 70% 0 70%; vertical-align: 1px;
}
.eyebrow-light { color: var(--lime); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 44px; height: auto; }
.brand-name { font-weight: 900; font-size: 1.4rem; color: var(--green-800); letter-spacing: -.01em; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 700; color: var(--ink); }
.nav a:hover { color: var(--green-600); }
.cart-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px;
  background: var(--green-800); color: var(--white);
  font-weight: 800; text-decoration: none;
}
.cart-pill svg { width: 20px; height: 20px; }
.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-btn span { display: block; width: 24px; height: 3px; margin: 4px 0; border-radius: 2px; background: var(--green-800); }

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(circle at 85% 20%, var(--lime-soft) 0, transparent 45%),
    linear-gradient(180deg, var(--cream), var(--white));
  padding: 72px 0 88px;
}
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.8rem, 6vw, 4.6rem); font-weight: 900; letter-spacing: -.02em; }
.hero h1 span { color: var(--lime); text-shadow: 0 1px 0 rgba(6, 90, 31, .08); }
.lead { font-size: 1.2rem; color: var(--muted); margin: 20px 0 32px; max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-art {
  background: var(--white);
  border-radius: 32px;
  padding: 40px;
  box-shadow: var(--shadow);
}

/* ---------- sections ---------- */
.section { padding: 88px 0; }
.section-tint { background: var(--cream); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 900; }
.section-sub { color: var(--muted); margin-top: 12px; font-size: 1.08rem; }

/* about */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start; }
.about-text p { font-size: 1.08rem; margin-bottom: 18px; }
.about-text strong { color: var(--green-800); }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.feature-list li {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
}
.feature-icon {
  flex: none; width: 46px; height: 46px; display: grid; place-items: center;
  font-size: 1.4rem; border-radius: 14px; background: var(--lime-soft);
}
.feature-list h3 { font-size: 1.08rem; margin-bottom: 2px; }
.feature-list p { color: var(--muted); font-size: .96rem; }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { background: var(--white); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); }
.step-num {
  display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px;
  border-radius: 50%; background: var(--green-800); color: var(--white); font-weight: 900;
}
.steps h3 { font-size: 1.2rem; margin-bottom: 6px; }
.steps p { color: var(--muted); }

/* ---------- health note ---------- */
.caution-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.caution-grid li { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.caution-grid h3 { font-size: 1.12rem; color: var(--green-800); }
.caution-grid p { color: var(--muted); font-size: .96rem; }
.caution-grid .caution-tag { margin-top: auto; padding: 8px 12px; border-radius: 10px; background: var(--lime-soft); color: var(--ink); font-size: .85rem; font-weight: 700; }
.caution-note { margin-top: 28px; max-width: 720px; color: var(--muted); font-size: .95rem; }
.form-hint a { color: var(--green-800); font-weight: 700; }

/* ---------- shop ---------- */
.shop-layout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }

.product {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white);
  transition: box-shadow .2s ease, transform .2s ease;
}
.product:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.product-art { background: var(--lime-soft); aspect-ratio: 4 / 3; overflow: hidden; }
.product-art img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product:hover .product-art img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .product-art img { transition: none; } }
.product-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product h3 { font-size: 1.25rem; font-weight: 900; }
.product-taste { color: var(--ink); font-weight: 600; }
.product-use { color: var(--muted); font-size: .92rem; }
.product-use span { font-weight: 700; color: var(--green-600); }

.size-group { display: flex; gap: 8px; margin-top: 4px; }
.size-option { flex: 1; }
.size-option input { position: absolute; opacity: 0; pointer-events: none; }
.size-option span {
  display: block; text-align: center; padding: 7px 0; cursor: pointer;
  border: 2px solid var(--line); border-radius: 10px; font-weight: 800; font-size: .92rem; color: var(--muted);
  transition: all .15s ease;
}
.size-option input:checked + span { border-color: var(--green-800); background: var(--green-800); color: var(--white); }
.size-option input:focus-visible + span { outline: 3px solid var(--lime); outline-offset: 2px; }

.product-foot { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 6px; margin-top: auto; padding-top: 6px; }
.price { font-size: 1.35rem; font-weight: 900; color: var(--green-800); }

.stepper { display: inline-flex; align-items: center; border: 2px solid var(--line); border-radius: 999px; overflow: hidden; }
.stepper button {
  width: 34px; height: 34px; border: 0; background: var(--white); color: var(--green-800);
  font: 900 1.15rem var(--font); cursor: pointer;
}
.stepper button:hover { background: var(--lime-soft); }
.stepper input {
  width: 38px; height: 34px; border: 0; text-align: center; font: 800 1rem var(--font); color: var(--ink);
  -moz-appearance: textfield; appearance: textfield;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper-sm button { width: 28px; height: 28px; font-size: 1rem; }
.stepper-sm span { min-width: 24px; text-align: center; font-weight: 800; }

/* cart */
.cart {
  position: sticky; top: 90px;
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px;
}
.cart h3 { font-size: 1.35rem; font-weight: 900; margin-bottom: 14px; }
.cart-items { list-style: none; margin: 0; padding: 0; }
.cart-line {
  display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center;
  padding: 12px 0; border-bottom: 1px dashed var(--line);
}
.cart-line-info { display: flex; flex-direction: column; line-height: 1.3; }
.cart-line-info span { color: var(--muted); font-size: .85rem; }
.cart-line-total { font-weight: 800; min-width: 58px; text-align: right; }
.cart-empty { color: var(--muted); padding: 8px 0 4px; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0 4px; font-weight: 700; }
.cart-total strong { font-size: 1.4rem; color: var(--green-800); font-weight: 900; }

.order-form { display: grid; gap: 12px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.order-form label { display: grid; gap: 4px; font-weight: 700; font-size: .92rem; }
.order-form .optional { font-weight: 600; color: var(--muted); }
.order-form input, .order-form textarea {
  font: 600 1rem var(--font); color: var(--ink);
  padding: 10px 12px; border: 2px solid var(--line); border-radius: 12px; background: var(--white);
  resize: vertical;
}
.order-form input:focus, .order-form textarea:focus { outline: none; border-color: var(--green-600); }
.form-error { color: #b3261e; font-weight: 700; font-size: .9rem; min-height: 0; }
.form-error:empty { display: none; }
.form-hint { color: var(--muted); font-size: .85rem; text-align: center; }

/* ---------- contact ---------- */
.section-dark { background: var(--green-800); color: var(--white); }
.section-dark h2 { color: var(--white); font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 900; }
.contact-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.video-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--green-900); box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.video-frame svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* growing animation: one 12s loop. Base styles are the final frame (shown when motion is reduced). */
.grow-anim text { font-family: var(--font); }
.grow-anim .k { fill: #8cc800; font-size: 18px; font-weight: 800; }
.grow-anim .t { fill: #fff; font-size: 32px; font-weight: 900; }
.grow-anim .tt { fill: #fff; font-size: 42px; font-weight: 900; }
.grow-anim .ct { fill: #fff; font-size: 17px; font-weight: 700; }
.grow-anim .sp, .grow-anim .lf, .grow-anim .chip, .grow-anim .tag { transform-box: fill-box; }
.grow-anim .sp { transform-origin: 50% 100%; }
.grow-anim .lf.l { transform-origin: 100% 100%; }
.grow-anim .lf.r { transform-origin: 0% 100%; }
.grow-anim .seed, .grow-anim .drop, .grow-anim .lbl, .grow-anim .chip { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .grow-anim * { animation-duration: 12s; animation-iteration-count: infinite; animation-fill-mode: both; animation-delay: var(--d, 0s); }
  .grow-anim .sp { animation-name: mg-sprout; animation-timing-function: ease-out; }
  .grow-anim .lf.l { animation-name: mg-leaf-l; }
  .grow-anim .lf.r { animation-name: mg-leaf-r; }
  .grow-anim .seed { animation-name: mg-seed; }
  .grow-anim .drop { animation-name: mg-drop; animation-timing-function: ease-in; }
  .grow-anim .l1 { animation-name: mg-l1; }
  .grow-anim .l2 { animation-name: mg-l2; }
  .grow-anim .l3 { animation-name: mg-l3; }
  .grow-anim .chip { animation-name: mg-chip; }
  .grow-anim .tag { animation-name: mg-tag; }
}
@keyframes mg-sprout { 0% { transform: scale(.03); opacity: 0; } 6% { opacity: 1; } 14% { transform: scale(.03); } 46% { transform: scale(1); } 95% { transform: scale(1); opacity: 1; } 100% { transform: scale(1); opacity: 0; } }
@keyframes mg-leaf-l { 0%, 30% { transform: rotate(60deg); } 52%, 100% { transform: rotate(0); } }
@keyframes mg-leaf-r { 0%, 30% { transform: rotate(-60deg); } 52%, 100% { transform: rotate(0); } }
@keyframes mg-seed { 0% { opacity: 0; } 4%, 22% { opacity: 1; } 36%, 100% { opacity: 0; } }
@keyframes mg-drop { 0%, 6% { transform: translateY(-70px); opacity: 0; } 9% { opacity: 1; } 16%, 100% { transform: translateY(0); opacity: 0; } }
@keyframes mg-l1 { 0%, 3% { opacity: 0; } 6%, 21% { opacity: 1; } 24%, 100% { opacity: 0; } }
@keyframes mg-l2 { 0%, 25% { opacity: 0; } 28%, 44% { opacity: 1; } 47%, 100% { opacity: 0; } }
@keyframes mg-l3 { 0%, 48% { opacity: 0; } 51%, 71% { opacity: 1; } 74%, 100% { opacity: 0; } }
@keyframes mg-chip { 0%, 50% { opacity: 0; transform: translateX(24px); } 55%, 70% { opacity: 1; transform: translateX(0); } 74%, 100% { opacity: 0; transform: translateX(0); } }
@keyframes mg-tag { 0%, 75% { opacity: 0; transform: translateY(10px); } 79%, 94% { opacity: 1; transform: translateY(0); } 98%, 100% { opacity: 0; transform: translateY(0); } }
@media (max-width: 520px) { .grow-anim .chip { display: none; } }
.video-copy h2 { margin-top: 6px; }
.why-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 14px; color: #d7ead9; }
.why-list li { padding-left: 22px; position: relative; }
.why-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border-radius: 50%; background: var(--lime); }
.why-list strong { color: var(--white); }
@media (max-width: 820px) { .video-grid { grid-template-columns: 1fr; gap: 28px; } }
.contact-lead { color: #d7ead9; font-size: 1.1rem; margin-top: 14px; max-width: 46ch; }
.contact-cards { display: grid; gap: 16px; }
.contact-card {
  display: flex; flex-direction: column; gap: 2px; text-decoration: none;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius); padding: 20px 24px;
  transition: background .15s ease;
}
.contact-card:hover { background: rgba(255, 255, 255, .14); }
.contact-label { color: var(--lime); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; }
.contact-value { font-size: 1.6rem; font-weight: 900; }

/* ---------- footer ---------- */
.site-footer { background: var(--green-900); color: #cfe3d2; padding: 28px 0; font-size: .95rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; }
.brand-footer .brand-name { color: var(--white); }
.brand-footer .brand-mark { background: var(--white); border-radius: 10px; padding: 4px; width: 40px; }
.site-footer a { color: var(--lime); text-decoration: none; }
.credits { flex-basis: 100%; font-size: .82rem; color: #a9c4ae; }
.credits summary { cursor: pointer; width: max-content; padding: 6px 0; }
.credits p { margin: 4px 0 8px; }
.credits ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.credits a { text-decoration: underline; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%);
  background: var(--green-900); color: var(--white); font-weight: 700;
  padding: 12px 20px; border-radius: 999px; box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
  transition: transform .25s ease; z-index: 100; white-space: nowrap;
}
.toast.show { transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .shop-layout { grid-template-columns: 1fr; }
  .cart { position: static; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .hero-inner, .about-grid, .contact-inner { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 64px; }
  .hero-art { max-width: 440px; padding: 28px; }
  .section { padding: 64px 0; }
  .menu-btn { display: block; }
  .nav {
    display: none; position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--white); border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 20px; border-top: 1px solid var(--line); }
  .cart-pill { margin-left: auto; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .brand-name { font-size: 1.2rem; }
  .contact-value { font-size: 1.3rem; }
}
