/* =========================================================
   2Pati — Premium Kedi Kumu
   Organic minimalism · soft neumorphism · selective glass
   ========================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  /* Palette */
  --c-cream: #F3EBDD;
  --c-sage: #879B78;
  --c-forest: #344B3B;
  --c-cardboard: #D8C2A1;
  --c-white: #FCFAF6;
  --c-charcoal: #292D28;

  /* Derived */
  --c-forest-deep: #26382C;
  --c-forest-soft: #44604C;
  --c-sage-soft: #DCE2D2;
  --c-cream-deep: #EADFCC;
  --c-text: var(--c-charcoal);
  --c-muted: #5C6157;
  --c-line: rgba(52, 75, 59, .14);

  /* Typography */
  --f-head: "Outfit", "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --fs-xs: .8125rem;
  --fs-sm: .9375rem;
  --fs-base: 1rem;
  --fs-lead: clamp(1.0625rem, .98rem + .35vw, 1.25rem);
  --fs-h3: clamp(1.25rem, 1.15rem + .4vw, 1.5rem);
  --fs-h2: clamp(2rem, 1.4rem + 2.6vw, 3.5rem);
  --fs-h1: clamp(2.6rem, 1.6rem + 4vw, 4.9rem);

  /* Spacing */
  --s-1: .25rem;
  --s-2: .5rem;
  --s-3: .75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --section-y: clamp(4.5rem, 3rem + 6vw, 9rem);
  --gutter: clamp(1rem, .5rem + 2.5vw, 2.5rem);
  --container: 1240px;

  /* Radius */
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 32px;
  --r-xl: 48px;
  --r-pill: 999px;

  /* Shadows (soft neumorphism) */
  --sh-soft: 0 1px 2px rgba(41, 45, 40, .04), 0 8px 24px -12px rgba(41, 45, 40, .12);
  --sh-lift: 0 2px 4px rgba(41, 45, 40, .04), 0 24px 48px -20px rgba(41, 45, 40, .22);
  --sh-neu: 10px 10px 24px rgba(166, 146, 112, .22), -10px -10px 24px rgba(255, 253, 248, .85);
  --sh-neu-sm: 5px 5px 12px rgba(166, 146, 112, .2), -5px -5px 12px rgba(255, 253, 248, .9);
  --sh-neu-in: inset 3px 3px 7px rgba(166, 146, 112, .25), inset -3px -3px 7px rgba(255, 253, 248, .9);

  /* Motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --t-fast: .2s;
  --t-med: .45s;
  --t-slow: .9s;

  --nav-h: 76px;
}

/* ---------- 2. Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

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

h1, h2, h3 {
  font-family: var(--f-head);
  color: var(--c-forest);
  line-height: 1.08;
  letter-spacing: -.025em;
  margin: 0;
  font-weight: 600;
}

p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
address { font-style: normal; }

:focus-visible {
  outline: 2px solid var(--c-forest);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: var(--c-sage); color: var(--c-white); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  padding: .75rem 1.25rem;
  background: var(--c-forest);
  color: var(--c-cream);
  border-radius: var(--r-pill);
}
.skip-link:focus { top: 1rem; }

/* ---------- 3. Shared components ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--f-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-sage);
  margin-bottom: var(--s-4);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
}

.section { padding-block: var(--section-y); }

.section-title { font-size: var(--fs-h2); }

.section-head {
  max-width: 720px;
  margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
}

.lead {
  font-size: var(--fs-lead);
  color: var(--c-muted);
  line-height: 1.7;
}

/* Buttons */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--c-forest);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 46px;
  padding: .75rem 1.4rem;
  font-family: var(--f-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: .005em;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1.5px solid transparent;
  border-radius: var(--r-pill);
  transition: transform var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease),
              box-shadow var(--t-med) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
  white-space: nowrap;
}
.btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--t-fast) var(--ease);
}
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px) scale(.98); }

.btn--primary {
  --btn-bg: var(--c-forest);
  --btn-fg: var(--c-cream);
  box-shadow: 0 10px 24px -12px rgba(52, 75, 59, .7), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.btn--primary:hover {
  --btn-bg: var(--c-forest-deep);
  box-shadow: 0 16px 32px -14px rgba(52, 75, 59, .8), inset 0 1px 0 rgba(255, 255, 255, .12);
  transform: translateY(-2px);
}

.btn--ghost {
  --btn-fg: var(--c-forest);
  border-color: rgba(52, 75, 59, .25);
}
.btn--ghost:hover {
  --btn-bg: var(--c-white);
  border-color: transparent;
  box-shadow: var(--sh-neu-sm);
  transform: translateY(-2px);
}

.btn--cream {
  --btn-bg: var(--c-cream);
  --btn-fg: var(--c-forest);
}
.btn--cream:hover {
  --btn-bg: var(--c-white);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -16px rgba(0, 0, 0, .45);
}

.btn--lg { min-height: 54px; padding: .9rem 1.75rem; font-size: var(--fs-base); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* Glass (used sparingly) */
.glass {
  background: rgba(252, 250, 246, .55);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, .6);
  box-shadow: 0 12px 32px -16px rgba(41, 45, 40, .25), inset 0 1px 0 rgba(255, 255, 255, .7);
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--c-forest);
}
.logo__mark { width: 30px; height: 30px; object-fit: contain; }
.logo__text {
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: -.03em;
  line-height: 1;
}

/* ---------- 4. Navbar ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background-color var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease),
              height var(--t-med) var(--ease), backdrop-filter var(--t-med) var(--ease);
}
.nav.is-scrolled {
  --nav-h: 66px;
  background: rgba(243, 235, 221, .82);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--c-line), 0 10px 30px -20px rgba(41, 45, 40, .25);
}

/* backdrop-filter would trap the fixed mobile menu inside the bar */
.nav.menu-open {
  background: var(--c-cream);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.nav__cta { display: none; }

/* Mobile menu (default) */
.nav__menu {
  position: fixed;
  inset: 0;
  z-index: -1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--s-7);
  padding: calc(var(--nav-h) + 1rem) var(--gutter) 2.5rem;
  background: var(--c-cream);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease), visibility 0s linear var(--t-med);
}
.nav__menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease), visibility 0s;
}
.nav__links {
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.nav__link {
  display: block;
  padding: .4rem 0;
  font-family: var(--f-head);
  font-size: clamp(2rem, 8vw, 2.8rem);
  font-weight: 500;
  letter-spacing: -.03em;
  color: var(--c-forest);
}
.nav__menu-cta { align-self: flex-start; }

.cart-btn,
.icon-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--c-forest);
  transition: background-color var(--t-fast) var(--ease), box-shadow var(--t-med) var(--ease);
}
.cart-btn:hover,
.icon-btn:hover { background: var(--c-white); box-shadow: var(--sh-neu-sm); }
.cart-btn svg,
.icon-btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cart-btn__count {
  position: absolute;
  top: 5px;
  right: 3px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  color: var(--c-cream);
  background: var(--c-sage);
  border-radius: var(--r-pill);
  border: 2px solid var(--c-cream);
  transform: scale(0);
  transition: transform var(--t-med) var(--ease-out);
}
.cart-btn__count.has-items { transform: scale(1); }
.cart-btn__count.bump { animation: bump .5s var(--ease-out); }

@keyframes bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

.burger {
  width: 46px;
  height: 46px;
  display: grid;
  place-content: center;
  gap: 6px;
  border: 0;
  background: transparent;
  border-radius: 50%;
}
.burger span {
  width: 22px;
  height: 1.8px;
  background: var(--c-forest);
  border-radius: 2px;
  transition: transform var(--t-med) var(--ease);
}
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.9px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.9px) rotate(-45deg); }

@media (min-width: 960px) {
  .burger,
  .nav__menu-cta { display: none; }
  .nav__cta { display: inline-flex; }

  .nav__menu {
    position: static;
    z-index: auto;
    flex-direction: row;
    padding: 0;
    background: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }
  .nav__links {
    flex-direction: row;
    gap: .25rem;
    padding: .3rem;
    border-radius: var(--r-pill);
  }
  .nav__link {
    position: relative;
    padding: .5rem 1rem;
    font-family: var(--f-body);
    font-size: var(--fs-sm);
    font-weight: 500;
    letter-spacing: 0;
    color: var(--c-charcoal);
    border-radius: var(--r-pill);
    transition: color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
  }
  .nav__link:hover { color: var(--c-forest); background: rgba(252, 250, 246, .7); }
  .nav__link.is-active { color: var(--c-forest); }
  .nav__link.is-active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 3px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--c-sage);
    transform: translateX(-50%);
  }
  .nav__inner { display: grid; grid-template-columns: 1fr auto 1fr; }
  .nav__actions { justify-self: end; }
}

/* ---------- 5. Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 2rem) 0 4rem;
  overflow: hidden;
  isolation: isolate;
}

.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.blob {
  position: absolute;
  display: block;
  border-radius: 58% 42% 55% 45% / 46% 52% 48% 54%;
  filter: blur(2px);
}
.blob--1 {
  width: min(78vw, 820px);
  aspect-ratio: 1;
  right: -18%;
  top: 6%;
  background: radial-gradient(circle at 40% 40%, rgba(216, 194, 161, .75), rgba(216, 194, 161, 0) 70%);
  animation: morph 22s var(--ease) infinite alternate;
}
.blob--2 {
  width: min(60vw, 520px);
  aspect-ratio: 1.15;
  left: -16%;
  bottom: -18%;
  background: radial-gradient(circle at 50% 50%, rgba(135, 155, 120, .28), rgba(135, 155, 120, 0) 70%);
  animation: morph 26s var(--ease) infinite alternate-reverse;
}
.blob--3 {
  width: 220px;
  aspect-ratio: 1;
  left: 42%;
  top: 14%;
  background: radial-gradient(circle, rgba(252, 250, 246, .9), rgba(252, 250, 246, 0) 70%);
}

@keyframes morph {
  0% { border-radius: 58% 42% 55% 45% / 46% 52% 48% 54%; transform: translate(0, 0) rotate(0); }
  100% { border-radius: 42% 58% 44% 56% / 55% 44% 56% 45%; transform: translate(-3%, 4%) rotate(8deg); }
}

.hero__grid {
  display: grid;
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  align-items: center;
}

.hero__title {
  font-size: var(--fs-h1);
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1.02;
  margin-bottom: var(--s-5);
}
.hero__title span { color: var(--c-sage); font-weight: 500; }

.hero__text {
  max-width: 34rem;
  font-size: var(--fs-lead);
  color: var(--c-muted);
  margin-bottom: var(--s-6);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: var(--s-6);
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.hero__chips li {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem .9rem;
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--c-forest);
  background: var(--c-cream);
  border-radius: var(--r-pill);
  box-shadow: var(--sh-neu-sm);
}
.hero__chips li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-sage);
}

.hero__visual {
  position: relative;
  width: 100%;
  max-width: 620px;
  margin-inline: auto;
}
.hero__stage {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.hero__stage::before {
  content: "";
  position: absolute;
  inset: 8% 6% 10%;
  border-radius: 46% 54% 48% 52% / 52% 46% 54% 48%;
  background: linear-gradient(160deg, var(--c-white) 0%, var(--c-cream-deep) 100%);
  box-shadow: var(--sh-neu);
}
.hero__ring {
  position: absolute;
  inset: 2% 0 4%;
  border-radius: 50%;
  border: 1px dashed rgba(135, 155, 120, .45);
  animation: spin 80s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero__img {
  position: relative;
  width: 96%;
  animation: float 7s var(--ease) infinite;
  filter: drop-shadow(0 30px 40px rgba(78, 60, 38, .18));
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: .75rem;
  border-radius: var(--r-md);
  font-size: var(--fs-xs);
  color: var(--c-forest);
}
.float-card--a {
  left: -2%;
  bottom: 0;
  padding: .7rem 1rem .7rem .7rem;
  animation: float 8s var(--ease) infinite .6s;
}
.float-card--a strong { display: block; font-family: var(--f-head); font-size: .95rem; font-weight: 600; letter-spacing: -.01em; }
.float-card--a small { display: block; color: var(--c-muted); font-size: .75rem; }
.float-card__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--c-forest);
  color: var(--c-cream);
  flex: none;
}
.float-card__icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.float-card--b {
  right: 0;
  top: 10%;
  padding: .55rem 1rem;
  border-radius: var(--r-pill);
  font-weight: 500;
  letter-spacing: .02em;
  animation: float 9s var(--ease) infinite 1.2s;
}
.float-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-sage);
  box-shadow: 0 0 0 4px rgba(135, 155, 120, .2);
}

.leaf {
  position: absolute;
  width: 46px;
  fill: var(--c-sage);
  opacity: .55;
}
.leaf__vein { fill: none; stroke: var(--c-cream); stroke-width: 1.5; }
.leaf--1 { top: 2%; left: 14%; transform: rotate(-20deg); animation: drift 10s var(--ease) infinite; }
.leaf--2 { right: 6%; bottom: 4%; width: 32px; transform: rotate(140deg); opacity: .4; animation: drift 12s var(--ease) infinite reverse; }
@keyframes drift {
  0%, 100% { translate: 0 0; }
  50% { translate: 6px -10px; }
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  translate: -50% 0;
  width: 26px;
  height: 42px;
  border: 1.5px solid rgba(52, 75, 59, .35);
  border-radius: 14px;
  display: none;
}
.scroll-hint span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 3px;
  height: 8px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--c-forest);
  animation: wheel 2s var(--ease) infinite;
}
@keyframes wheel {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(12px); }
}

@media (min-width: 640px) {
  .float-card--a { left: -4%; bottom: 6%; }
}

@media (min-width: 960px) {
  .hero__grid { grid-template-columns: 1.02fr 1fr; }
  .hero__visual { max-width: none; }
  .scroll-hint { display: block; }
}

/* ---------- 6. Benefits bar ---------- */
.benefits {
  position: relative;
  z-index: 1;
  margin-top: -2rem;
}
.benefits__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  background: var(--c-white);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lift);
  overflow: hidden;
}
.benefit {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .75rem;
  padding: 1.5rem 1.25rem;
  font-family: var(--f-head);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -.01em;
  color: var(--c-forest);
}
.benefit:nth-child(odd) { border-right: 1px solid var(--c-line); }
.benefit:nth-child(-n+2) { border-bottom: 1px solid var(--c-line); }
.benefit svg {
  width: 28px;
  height: 28px;
  flex: none;
  fill: none;
  stroke: var(--c-sage);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (min-width: 900px) {
  .benefits__list { grid-template-columns: repeat(4, 1fr); padding-block: .5rem; }
  .benefit {
    flex-direction: row;
    align-items: center;
    padding: 1.6rem 1.75rem;
    border: 0 !important;
    position: relative;
  }
  .benefit + .benefit::before {
    content: "";
    position: absolute;
    left: 0;
    top: 28%;
    bottom: 28%;
    width: 1px;
    background: var(--c-line);
  }
}

/* ---------- 7. Product intro ---------- */
.intro {
  background: var(--c-white);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}
.intro__grid {
  display: grid;
  gap: clamp(2.5rem, 2rem + 4vw, 6rem);
  align-items: center;
}
.intro__visual { position: relative; }
.intro__frame {
  position: relative;
  aspect-ratio: 4 / 4.4;
  border-radius: var(--r-xl) var(--r-xl) var(--r-xl) 140px;
  background: linear-gradient(170deg, #E6D4B7 0%, var(--c-cardboard) 100%);
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}
.intro__shape {
  position: absolute;
  z-index: -1;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, rgba(252, 250, 246, .85), rgba(252, 250, 246, 0) 68%);
}
.intro__frame img {
  width: 88%;
  transform: translateY(4%) rotate(-2deg);
  transition: transform var(--t-slow) var(--ease-out);
  filter: drop-shadow(0 26px 30px rgba(78, 60, 38, .22));
}
.intro__visual:hover .intro__frame img { transform: translateY(2%) rotate(0); }

.pack-buy {
  display: grid;
  gap: 1rem;
  max-width: 28rem;
}
.pack-buy__price {
  margin: 0;
  font-family: var(--f-head);
  font-size: clamp(1.35rem, 1.2rem + .4vw, 1.6rem);
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--c-forest);
}
.pack-buy__row {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.pack-buy__row .btn { flex: 1; min-width: 0; }

@media (max-width: 420px) {
  .pack-buy__row { flex-direction: column; align-items: stretch; }
  .pack-buy .qty { align-self: flex-start; }
}

.intro__badge {
  position: absolute;
  right: -4px;
  top: 8%;
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .7rem 1.1rem .7rem .7rem;
  border-radius: var(--r-pill);
  font-family: var(--f-head);
  font-weight: 500;
  color: var(--c-forest);
}
.intro__badge-num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--c-forest);
  color: var(--c-cream);
  font-size: .8rem;
}

.intro__content .section-title { margin-bottom: var(--s-5); }
.intro__content .lead { margin-bottom: var(--s-6); max-width: 36rem; }

.check-list {
  display: grid;
  gap: .9rem;
  margin-bottom: var(--s-6);
}
.check-list li {
  display: flex;
  align-items: center;
  gap: .9rem;
  font-weight: 500;
  color: var(--c-charcoal);
}
.check {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--c-cream);
  box-shadow: var(--sh-neu-sm);
}
.check svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--c-forest);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (min-width: 900px) {
  .intro__grid { grid-template-columns: 1.1fr 1fr; }
  .intro__badge { right: -24px; }
}

/* ---------- 8. Features ---------- */
.features {
  background: var(--c-white);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}
.features__grid {
  display: grid;
  gap: var(--s-5);
}
.feature-card {
  position: relative;
  padding: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);
  border-radius: var(--r-lg);
  background: var(--c-cream);
  box-shadow: 8px 8px 22px rgba(176, 156, 120, .18), -8px -8px 22px rgba(255, 255, 255, .95);
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease), background-color var(--t-med) var(--ease);
  overflow: hidden;
}
.feature-card::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(135, 155, 120, .18), transparent 70%);
  transition: transform var(--t-slow) var(--ease-out);
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 14px 18px 36px rgba(176, 156, 120, .26), -8px -8px 22px rgba(255, 255, 255, .95);
}
.feature-card:hover::after { transform: scale(1.6); }

.feature-card__icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin-bottom: var(--s-7);
  border-radius: 18px;
  background: var(--c-cream);
  box-shadow: var(--sh-neu-in);
  transition: background-color var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.feature-card:hover .feature-card__icon {
  background: var(--c-forest);
  box-shadow: 0 10px 20px -10px rgba(52, 75, 59, .7);
}
.feature-card__icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--c-forest);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke var(--t-med) var(--ease);
}
.feature-card:hover .feature-card__icon svg { stroke: var(--c-cream); }

.feature-card__num {
  position: absolute;
  top: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);
  right: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);
  font-family: var(--f-head);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--c-sage);
}
.feature-card h3 { font-size: var(--fs-h3); margin-bottom: var(--s-2); }
.feature-card p { color: var(--c-muted); max-width: 22rem; }

@media (min-width: 760px) {
  .features__grid { grid-template-columns: repeat(3, 1fr); }
  .feature-card:nth-child(2) { margin-top: 2.5rem; }
}

/* ---------- 9. Emotional story ---------- */
.story {
  position: relative;
  background: var(--c-white);
  padding-bottom: var(--section-y);
}
.story__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.story__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 60%;
}
.story__media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 30%;
  background: linear-gradient(to top, var(--c-white), transparent);
}
.story__inner { position: relative; margin-top: -4rem; }
.story__card {
  max-width: 34rem;
  padding: clamp(1.75rem, 1.3rem + 2vw, 3rem);
  border-radius: var(--r-lg);
}
.story__title {
  font-size: var(--fs-h2);
  margin-bottom: var(--s-4);
}
.story__card > p:not(.eyebrow) {
  font-size: var(--fs-lead);
  color: var(--c-muted);
  margin-bottom: var(--s-5);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  color: var(--c-forest);
  border-bottom: 1.5px solid rgba(52, 75, 59, .3);
  padding-bottom: 2px;
  transition: border-color var(--t-fast) var(--ease), gap var(--t-fast) var(--ease);
}
.link-arrow svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.link-arrow:hover { border-color: var(--c-forest); gap: .8rem; }

@media (min-width: 900px) {
  .story {
    min-height: min(92vh, 820px);
    display: flex;
    align-items: center;
    padding: 0;
    overflow: hidden;
  }
  .story__media { position: absolute; inset: 0; aspect-ratio: auto; }
  .story__media img { object-position: 65% 70%; }
  .story__media::after {
    inset: 0;
    height: auto;
    background: linear-gradient(90deg, rgba(243, 235, 221, .65) 0%, rgba(243, 235, 221, 0) 55%);
  }
  .story__inner { margin-top: 0; }
  .story__card { max-width: 30rem; }
}

/* ---------- 10. Quantity (product box + cart) ---------- */
.qty {
  display: inline-flex;
  align-items: center;
  height: 54px;
  padding: 4px;
  border-radius: var(--r-pill);
  background: var(--c-cream);
  box-shadow: var(--sh-neu-in);
}
.qty__btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--c-cream);
  box-shadow: 3px 3px 8px rgba(166, 146, 112, .25), -3px -3px 8px rgba(255, 253, 248, .9);
  transition: transform var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.qty__btn:hover { background: var(--c-white); }
.qty__btn:active { transform: scale(.92); }
.qty__btn:disabled { opacity: .4; cursor: not-allowed; }
.qty__btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--c-forest);
  stroke-width: 2;
  stroke-linecap: round;
}
.qty__input {
  width: 44px;
  border: 0;
  background: transparent;
  text-align: center;
  font-family: var(--f-head);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--c-forest);
  -moz-appearance: textfield;
  appearance: textfield;
}
.qty__input::-webkit-outer-spin-button,
.qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty__input:focus-visible { outline-offset: 0; }

#add-to-cart.is-added { --btn-bg: var(--c-sage); }

/* ---------- 11. FAQ ---------- */
.faq { background: var(--c-cream); }
.faq__grid {
  display: grid;
  gap: var(--s-7);
}
.faq__head .section-title { margin-bottom: var(--s-4); }
.faq__head p:not(.eyebrow) { color: var(--c-muted); }
.faq__head a {
  color: var(--c-forest);
  font-weight: 600;
  border-bottom: 1.5px solid var(--c-sage);
}

.accordion { border-top: 1px solid var(--c-line); }
.acc-item { border-bottom: 1px solid var(--c-line); }
.acc-item__h { font-size: inherit; letter-spacing: 0; }
.acc-item__btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border: 0;
  background: none;
  text-align: left;
  font-family: var(--f-head);
  font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem);
  font-weight: 500;
  letter-spacing: -.01em;
  color: var(--c-forest);
  transition: color var(--t-fast) var(--ease);
}
.acc-item__btn:hover { color: var(--c-forest-soft); }
.acc-item__icon {
  position: relative;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--c-white);
  box-shadow: var(--sh-neu-sm);
  transition: background-color var(--t-med) var(--ease), transform var(--t-med) var(--ease);
}
.acc-item__icon::before,
.acc-item__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 1.8px;
  margin: -.9px 0 0 -6px;
  border-radius: 2px;
  background: var(--c-forest);
  transition: transform var(--t-med) var(--ease), background-color var(--t-med) var(--ease);
}
.acc-item__icon::after { transform: rotate(90deg); }
.acc-item__btn[aria-expanded="true"] .acc-item__icon { background: var(--c-forest); transform: rotate(180deg); }
.acc-item__btn[aria-expanded="true"] .acc-item__icon::before,
.acc-item__btn[aria-expanded="true"] .acc-item__icon::after { background: var(--c-cream); }
.acc-item__btn[aria-expanded="true"] .acc-item__icon::after { transform: rotate(0); }

.acc-item__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--t-med) var(--ease);
}
.acc-item__panel.is-open { grid-template-rows: 1fr; }
.acc-item__body { overflow: hidden; }
.acc-item__body p {
  padding: 0 3.5rem 1.6rem 0;
  color: var(--c-muted);
  max-width: 44rem;
}

@media (min-width: 900px) {
  .faq__grid { grid-template-columns: .8fr 1.4fr; gap: var(--s-9); }
  .faq__head { position: sticky; top: calc(var(--nav-h) + 2rem); align-self: start; }
}

/* ---------- 12. Final CTA ---------- */
.cta {
  position: relative;
  padding-block: var(--section-y);
  color: var(--c-cream);
  background-color: var(--c-forest);
  background-image:
    radial-gradient(ellipse at 85% 50%, rgba(135, 155, 120, .35), transparent 55%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='%23F3EBDD' fill-opacity='.045'%3E%3Cg transform='translate(30 32) rotate(-18)'%3E%3Cpath d='M0 3.2c-4.6 0-8.4 3.4-8.4 6.6 0 2.6 2.2 3.6 4.4 3.6 1.6 0 2.6-.8 4-.8s2.4.8 4 .8c2.2 0 4.4-1 4.4-3.6 0-3.2-3.8-6.6-8.4-6.6z'/%3E%3Cellipse cx='-8.6' cy='-1.6' rx='2.5' ry='3.1'/%3E%3Cellipse cx='-3.2' cy='-5.6' rx='2.5' ry='3.3'/%3E%3Cellipse cx='3.2' cy='-5.6' rx='2.5' ry='3.3'/%3E%3Cellipse cx='8.6' cy='-1.6' rx='2.5' ry='3.1'/%3E%3C/g%3E%3Cg transform='translate(88 90) rotate(22)'%3E%3Cpath d='M0 3.2c-4.6 0-8.4 3.4-8.4 6.6 0 2.6 2.2 3.6 4.4 3.6 1.6 0 2.6-.8 4-.8s2.4.8 4 .8c2.2 0 4.4-1 4.4-3.6 0-3.2-3.8-6.6-8.4-6.6z'/%3E%3Cellipse cx='-8.6' cy='-1.6' rx='2.5' ry='3.1'/%3E%3Cellipse cx='-3.2' cy='-5.6' rx='2.5' ry='3.3'/%3E%3Cellipse cx='3.2' cy='-5.6' rx='2.5' ry='3.3'/%3E%3Cellipse cx='8.6' cy='-1.6' rx='2.5' ry='3.1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-size: auto, 120px 120px;
  overflow: hidden;
}
.cta__inner {
  display: grid;
  gap: var(--s-7);
  align-items: center;
}
.cta__title {
  font-size: var(--fs-h2);
  color: var(--c-cream);
  margin-bottom: var(--s-4);
  max-width: 14ch;
}
.cta__content p {
  font-size: var(--fs-lead);
  color: rgba(243, 235, 221, .78);
  margin-bottom: var(--s-6);
  max-width: 30rem;
}
.cta__visual {
  position: relative;
  justify-self: center;
  width: min(80%, 420px);
}
.cta__visual::before {
  content: "";
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243, 235, 221, .16), transparent 68%);
}
.cta__visual img { position: relative; animation: float 8s var(--ease) infinite; }
.cta .eyebrow { color: var(--c-cardboard); }

@media (min-width: 900px) {
  .cta__inner { grid-template-columns: 1.3fr 1fr; }
  .cta__visual { justify-self: end; }
}

/* ---------- 13. Footer ---------- */
.footer {
  padding-top: clamp(3.5rem, 2.5rem + 4vw, 6rem);
  background: var(--c-cream);
  color: var(--c-muted);
  font-size: var(--fs-sm);
}
.footer__grid {
  display: grid;
  gap: var(--s-7);
  padding-bottom: var(--s-8);
}
.footer__brand .logo { margin-bottom: var(--s-4); }
.footer__brand p { max-width: 24rem; margin-bottom: var(--s-5); }
.footer__col h3 {
  font-family: var(--f-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-forest);
  margin-bottom: var(--s-4);
}
.footer__col ul { display: grid; gap: .55rem; }
.footer a { transition: color var(--t-fast) var(--ease); }
.footer a:hover { color: var(--c-forest); }

.social {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .5rem 1rem .5rem .6rem;
  border-radius: var(--r-pill);
  background: var(--c-cream);
  box-shadow: var(--sh-neu-sm);
  color: var(--c-forest);
  font-weight: 500;
}
.social svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem 2rem;
  border-top: 1px solid var(--c-line);
  font-size: var(--fs-xs);
}
.footer__bottom ul { display: flex; flex-wrap: wrap; gap: 1.5rem; }

@media (min-width: 760px) {
  .footer__grid { grid-template-columns: 1.6fr 1fr 1fr; }
}

/* ---------- 14. Cart drawer, toast, to-top ---------- */
.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: rgba(41, 45, 40, .35);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity var(--t-med) var(--ease);
}
.cart-overlay.is-visible { opacity: 1; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 150;
  width: min(420px, 100%);
  display: flex;
  flex-direction: column;
  background: var(--c-white);
  box-shadow: -20px 0 60px -20px rgba(41, 45, 40, .3);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform var(--t-med) var(--ease-out), visibility 0s linear var(--t-med);
}
.cart-drawer.is-open {
  transform: none;
  visibility: visible;
  transition: transform var(--t-med) var(--ease-out), visibility 0s;
}
.cart-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--c-line);
}
.cart-drawer__head h2 { font-size: 1.5rem; }
.cart-drawer__body { flex: 1; overflow-y: auto; padding: 1.5rem; }
.cart-drawer__foot {
  display: grid;
  gap: .9rem;
  padding: 1.5rem;
  border-top: 1px solid var(--c-line);
}
.cart-drawer__total {
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-sm);
}
.cart-drawer__total strong { color: var(--c-forest); font-weight: 600; }
.cart-drawer__note { font-size: var(--fs-xs); color: var(--c-muted); text-align: center; }

.cart-empty {
  display: grid;
  justify-items: center;
  gap: 1rem;
  padding: 3rem 0;
  text-align: center;
  color: var(--c-muted);
}
.cart-empty svg {
  width: 56px;
  height: 56px;
  fill: none;
  stroke: var(--c-sage);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-item {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 1rem;
  align-items: center;
}
.cart-item__img {
  aspect-ratio: 1;
  border-radius: var(--r-sm);
  background: linear-gradient(160deg, #E9DAC2, var(--c-cardboard));
  display: grid;
  place-items: center;
  padding: 6px;
}
.cart-item h3 { font-size: 1.05rem; margin-bottom: .2rem; }
.cart-item__price { font-size: var(--fs-xs); color: var(--c-muted); margin-bottom: .6rem; }
.cart-item__row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.cart-item .qty { height: 40px; padding: 3px; }
.cart-item .qty__btn { width: 34px; height: 34px; }
.cart-item .qty__input { width: 34px; font-size: 1rem; }
.cart-remove {
  border: 0;
  background: none;
  font-size: var(--fs-xs);
  color: var(--c-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cart-remove:hover { color: var(--c-forest); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  z-index: 160;
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .85rem 1.25rem;
  max-width: calc(100% - 2rem);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--c-cream);
  background: var(--c-charcoal);
  border-radius: var(--r-pill);
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .45);
  transform: translate(-50%, 140%);
  opacity: 0;
  transition: transform var(--t-med) var(--ease-out), opacity var(--t-med) var(--ease);
  pointer-events: none;
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }
.toast svg {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: var(--c-sage);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 50%;
  color: var(--c-forest);
  background: rgba(252, 250, 246, .75);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--sh-lift), inset 0 0 0 1px rgba(255, 255, 255, .6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease), visibility 0s linear var(--t-med), background-color var(--t-fast);
}
.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease), visibility 0s, background-color var(--t-fast);
}
.to-top:hover { background: var(--c-forest); color: var(--c-cream); }
.to-top svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- 15. Scroll reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out);
  transition-delay: var(--delay, 0s);
}
.js .reveal--left { transform: translateX(-30px); }
.js .reveal--scale { transform: scale(.94); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 16. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
