/* ===========================================================
   Happy Soul — design tokens
   Color: cream base, coral display accent (from wordmark),
   mint / lavender / pink lid colors as secondary accents,
   deep plum for text.
   Type: Baloo 2 (display, bubble/rounded — echoes wordmark),
   Manrope (body/UI, clean geometric contrast).
   Signature: blob-shaped photo frames (the round "hole" in the
   Soul logotype) + a vertical streamer-curtain backdrop lifted
   from the product photography.
   =========================================================== */

:root{
  --cream:      #FBF1DE;
  --cream-2:    #F7E9CC;
  --coral:      #EF8A63;
  --coral-dark: #D96F49;
  --plum:       #35263F;
  --mint:       #9FD3B4;
  --lavender:   #C6AEE0;
  --pink:       #F2A6C4;
  --yellow:     #F4CE4E;

  --radius-blob: 42% 58% 63% 37% / 47% 41% 59% 53%;
  --radius-blob-2: 58% 42% 39% 61% / 43% 60% 40% 57%;

  --font-display: "Baloo 2", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;

  --max-w: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

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

body{
  margin: 0;
  background: var(--cream);
  color: var(--plum);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3{
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  margin: 0 0 0.5em;
  color: var(--plum);
}

p{ margin: 0 0 1em; }

a{ color: inherit; }

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

.skip-link{
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--plum);
  color: var(--cream);
  padding: 0.75em 1.25em;
  border-radius: 0 0 10px 0;
  z-index: 999;
}
.skip-link:focus{ left: 0; }

:focus-visible{
  outline: 3px solid var(--coral-dark);
  outline-offset: 3px;
}

/* ===== Streamer curtain backdrop ===== */
.curtain{
  position: fixed;
  inset: 0;
  z-index: -1;
  display: flex;
  opacity: 0.16;
  pointer-events: none;
}
.curtain span{ flex: 1; }
.curtain span:nth-child(4n+1){ background: linear-gradient(var(--mint), transparent 70%); }
.curtain span:nth-child(4n+2){ background: linear-gradient(var(--pink), transparent 70%); }
.curtain span:nth-child(4n+3){ background: linear-gradient(var(--yellow), transparent 70%); }
.curtain span:nth-child(4n){ background: linear-gradient(var(--lavender), transparent 70%); }

/* ===== Layout helpers ===== */
.hero-inner, .story-inner, .flavor-inner, .benefits-inner, .faq-inner, .cta-inner, .footer-inner, .nav{
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section-eyebrow, .eyebrow{
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--coral-dark);
  margin: 0 0 0.9em;
}

/* ===== Buttons ===== */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn-primary{
  background: var(--coral);
  color: #fff;
  box-shadow: 0 8px 0 var(--coral-dark);
}
.btn-primary:hover{ transform: translateY(-2px); }
.btn-primary:active{ transform: translateY(2px); box-shadow: 0 4px 0 var(--coral-dark); }
.btn-ghost{
  background: transparent;
  border-color: var(--plum);
  color: var(--plum);
}
.btn-ghost:hover{ background: var(--plum); color: var(--cream); }
.btn-lg{ font-size: 1.15rem; padding: 1em 2.2em; }
.btn-block{ width: 100%; }
.btn-nav{ padding: 0.6em 1.3em; font-size: 0.9rem; box-shadow: 0 5px 0 var(--coral-dark); }

/* ===== Nav ===== */
.nav-wrap{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 241, 222, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid rgba(53, 38, 63, 0.08);
}
.nav{
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.logo{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--coral);
  text-decoration: none;
  margin-right: auto;
}
.logo-o{
  display: inline-block;
  color: var(--plum);
  background: var(--yellow);
  width: 1em;
  height: 1em;
  line-height: 1em;
  text-align: center;
  border-radius: 50%;
  font-size: 0.62em;
  vertical-align: middle;
  transform: translateY(-0.1em);
}
.nav-menu{
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
  font-weight: 600;
}
.nav-menu a{ text-decoration: none; }
.nav-menu a:hover{ color: var(--coral-dark); }

.nav-toggle{
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span{ width: 24px; height: 2.5px; background: var(--plum); border-radius: 2px; }

/* ===== Hero ===== */
.hero{ padding-top: clamp(2.5rem, 6vw, 5rem); position: relative; }
.hero-inner{
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-copy h1{
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  margin-bottom: 0.4em;
}
.hero-copy h1 em{ font-style: normal; color: var(--coral); }
.hero-sub{ font-size: 1.08rem; max-width: 46ch; color: #4c3a58; }
.hero-cta{ display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.6rem 0 2.2rem; }

.hero-stats{
  display: flex;
  gap: clamp(1.4rem, 4vw, 2.6rem);
}
.hero-stats div{ display: flex; flex-direction: column; }
.hero-stats strong{ font-family: var(--font-display); font-size: 1.5rem; color: var(--plum); }
.hero-stats span{ font-size: 0.82rem; color: #6a5878; }

.hero-art{ position: relative; display: flex; justify-content: center; align-items: center; min-height: 340px; }
.blob-frame{
  overflow: hidden;
  border-radius: var(--radius-blob);
  box-shadow: 0 30px 60px -20px rgba(53,38,63,0.35);
  animation: blobmorph 12s ease-in-out infinite;
  width: min(420px, 90%);
  aspect-ratio: 4/5;
}
.blob-frame img{ width: 100%; height: 100%; object-fit: cover; }
.blob-2{ animation-delay: -4s; border-radius: var(--radius-blob-2); }

@keyframes blobmorph{
  0%, 100%{ border-radius: var(--radius-blob); }
  50%{ border-radius: var(--radius-blob-2); }
}

.disco-ball{
  position: absolute;
  top: 6%;
  right: 6%;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.75) 0 6px, rgba(200,200,220,0.55) 6px 12px),
    linear-gradient(135deg, #e9e9f4, #b9b9cf);
  box-shadow: 0 10px 25px rgba(0,0,0,0.25), inset 0 0 10px rgba(255,255,255,0.6);
  animation: bob 4.5s ease-in-out infinite;
}
.disco-small{ position: static; margin: 0 auto 1.2rem; width: 46px; height: 46px; }
@keyframes bob{
  0%, 100%{ transform: translateY(0) rotate(0deg); }
  50%{ transform: translateY(-14px) rotate(20deg); }
}

.confetti{ position: absolute; border-radius: 3px; opacity: 0.9; }
.c1{ width: 14px; height: 14px; background: var(--pink); top: 12%; left: 4%; transform: rotate(18deg); animation: drift 6s ease-in-out infinite; }
.c2{ width: 10px; height: 10px; background: var(--lavender); bottom: 18%; left: 0%; border-radius: 50%; animation: drift 7s ease-in-out infinite reverse; }
.c3{ width: 12px; height: 12px; background: var(--yellow); bottom: 8%; right: 10%; transform: rotate(-12deg); animation: drift 5.5s ease-in-out infinite; }
.c4{ width: 9px; height: 9px; background: var(--mint); top: 4%; right: 22%; border-radius: 50%; animation: drift 6.5s ease-in-out infinite reverse; }
@keyframes drift{
  0%, 100%{ transform: translateY(0) rotate(0deg); }
  50%{ transform: translateY(-16px) rotate(25deg); }
}

.hero-marquee{
  margin-top: clamp(3rem, 6vw, 5rem);
  border-top: 2px solid rgba(53,38,63,0.1);
  border-bottom: 2px solid rgba(53,38,63,0.1);
  overflow: hidden;
  background: var(--coral);
}
.marquee-track{
  display: flex;
  gap: 0.6em;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  padding: 0.7em 0;
  animation: marquee 22s linear infinite;
  width: max-content;
}
@keyframes marquee{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

/* ===== Story ===== */
.story{ padding: clamp(4rem, 8vw, 7rem) 0; }
.story-inner{ max-width: 900px; }
.story h2{ font-size: clamp(1.8rem, 3.6vw, 2.6rem); max-width: 18ch; }
.story-text{ font-size: 1.08rem; max-width: 62ch; color: #4c3a58; }

.story-pillars{
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.pillar-mark{
  display: block;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-blob);
  margin-bottom: 0.9rem;
}
.pillar h3{ font-size: 1.1rem; margin-bottom: 0.3em; }
.pillar p{ font-size: 0.92rem; color: #5c4a68; margin: 0; }

/* ===== Flavor / order module ===== */
.flavor{ padding: clamp(3rem, 7vw, 5rem) 0; }
.order-wrap{
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.order-head{ max-width: 62ch; margin-bottom: 2.4rem; }
.order-head h2{ font-size: clamp(2rem, 4vw, 2.8rem); color: var(--coral-dark); }
.flavor-desc{ max-width: 60ch; color: #4c3a58; }

/* -- flavor picker cards -- */
.flavor-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-bottom: 2.6rem;
}
.flavor-card{
  background: var(--cream-2);
  border-radius: 28px;
  padding: 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.flavor-card-art{ width: 100%; aspect-ratio: 4/3; }
.flavor-card-art.blob-frame img{ object-position: center; }
.swatch{ position: relative; overflow: hidden; }
.swatch-chocolate{ background: linear-gradient(135deg, #6b4327, #45291a); }
.swatch-chocolate::after{
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.18), transparent 55%);
}
.swatch-stracciatella{
  background:
    radial-gradient(6px 6px at 20% 30%, #3a2a1c 0 100%, transparent 101%),
    radial-gradient(5px 5px at 65% 20%, #3a2a1c 0 100%, transparent 101%),
    radial-gradient(7px 7px at 45% 60%, #3a2a1c 0 100%, transparent 101%),
    radial-gradient(5px 5px at 80% 70%, #3a2a1c 0 100%, transparent 101%),
    radial-gradient(6px 6px at 15% 80%, #3a2a1c 0 100%, transparent 101%),
    radial-gradient(6px 6px at 90% 40%, #3a2a1c 0 100%, transparent 101%),
    #FBF3E3;
}
.flavor-card-body h3{ font-size: 1.25rem; margin-bottom: 0.25em; }
.flavor-card-body p{ font-size: 0.9rem; color: #5c4a68; margin: 0 0 1rem; min-height: 2.6em; }
.flavor-card-row{ display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; }
.flavor-price{ font-family: var(--font-display); font-weight: 700; color: var(--plum); }
.flavor-price small{ font-weight: 500; color: #7a6786; font-family: var(--font-body); }

.stepper{ display: flex; align-items: center; gap: 0.9rem; }
.stepper-btn{
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--plum);
  background: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
  flex-shrink: 0;
}
.stepper-btn:hover{ background: var(--plum); color: var(--cream); }
.stepper-value{ min-width: 1.4em; text-align: center; font-weight: 700; font-family: var(--font-display); }

/* -- order panel: summary + shipping + pay -- */
.order-panel{
  background: #fff;
  border-radius: 32px;
  padding: clamp(1.6rem, 4vw, 2.6rem);
  display: grid;
  gap: 2rem;
  box-shadow: 0 20px 50px -30px rgba(53,38,63,0.4);
}
.order-panel h3{ font-size: 1.15rem; margin-bottom: 0.8em; }

.summary-list{ list-style: none; margin: 0; padding: 0; }
.summary-list li{
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  padding: 0.5em 0;
  border-bottom: 1px dashed rgba(53,38,63,0.15);
}
.summary-empty{ color: #8a7896; font-style: italic; border-bottom: none !important; }

.order-total{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1rem 0 0;
  margin-top: 0.6rem;
  border-top: 2px solid rgba(53,38,63,0.15);
  font-family: var(--font-display);
}
.order-total strong{ font-size: 1.4rem; color: var(--coral-dark); }

.ship-form{ border-top: 2px solid rgba(53,38,63,0.1); padding-top: 1.8rem; }
.ship-note{
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--coral-dark);
  background: rgba(239,138,99,0.12);
  border-radius: 999px;
  padding: 0.35em 0.9em;
  margin: -0.4em 0 1.2em;
}
.ship-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.2rem;
  margin-bottom: 1.6rem;
}
.field{ display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.85rem; font-weight: 600; color: var(--plum); }
.field-wide{ grid-column: 1 / -1; }
.field input, .field select, .field textarea{
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.75em 0.9em;
  border-radius: 14px;
  border: 2px solid rgba(53,38,63,0.16);
  background: var(--cream);
  color: var(--plum);
  resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus{
  outline: none;
  border-color: var(--coral);
}
.field input:invalid:not(:placeholder-shown){ border-color: var(--pink); }

.paypal-container{ min-height: 55px; margin-top: 0.4rem; }

.order-note{ text-align: center; font-size: 0.8rem; color: #7a6786; margin: 0.9em 0 0; }

.order-success{ text-align: center; padding: 1rem 0; }
.order-success h3{ color: var(--coral-dark); }

/* ===== Benefits ===== */
.benefits{ padding: clamp(3rem, 7vw, 5rem) 0; }
.benefits h2{ font-size: clamp(1.8rem, 3.6vw, 2.6rem); max-width: 18ch; }
.benefit-grid{
  margin-top: 2.2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.benefit-card{
  background: #fff;
  border-radius: 24px;
  padding: 1.8rem 1.5rem;
  border-bottom: 6px solid var(--tint);
}
.benefit-icon{ font-size: 1.8rem; margin-bottom: 0.6rem; }
.benefit-card h3{ font-size: 1.05rem; margin-bottom: 0.3em; }
.benefit-card p{ font-size: 0.9rem; color: #5c4a68; margin: 0; }

/* ===== FAQ ===== */
.faq{ padding: clamp(3rem, 7vw, 5rem) 0; }
.faq-inner{ max-width: 820px; }
.faq h2{ font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.accordion{ margin-top: 2rem; border-top: 2px solid rgba(53,38,63,0.12); }
.acc-item{ border-bottom: 2px solid rgba(53,38,63,0.12); }
.acc-trigger{
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: none;
  border: none;
  text-align: left;
  padding: 1.2rem 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--plum);
  cursor: pointer;
}
.acc-icon{
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--coral);
  position: relative;
}
.acc-icon::before, .acc-icon::after{
  content: "";
  position: absolute;
  background: #fff;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.acc-icon::before{ width: 12px; height: 2px; }
.acc-icon::after{ width: 2px; height: 12px; transition: transform 0.25s ease; }
.acc-trigger[aria-expanded="true"] .acc-icon::after{ transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.acc-panel{
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.acc-panel p{ padding-bottom: 1.3rem; color: #4c3a58; max-width: 60ch; margin: 0; }

/* ===== CTA band ===== */
.cta-band{
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  background: var(--plum);
  color: var(--cream);
  text-align: center;
  border-radius: 40px 40px 0 0;
  margin-top: 2rem;
}
.cta-inner{ max-width: 640px; }
.cta-band h2{ color: #fff; font-size: clamp(1.9rem, 4vw, 2.6rem); }
.cta-band p{ color: rgba(251,241,222,0.75); margin-bottom: 1.8rem; }

/* ===== Footer ===== */
.footer{ background: var(--plum); color: rgba(251,241,222,0.7); text-align: center; padding: 2.5rem 0 3rem; }
.logo-footer{ color: var(--yellow); }
.footer p{ font-size: 0.85rem; max-width: 40ch; margin: 0.6em auto; }
.footer-copy{ opacity: 0.6; font-size: 0.78rem; margin-top: 1.2rem; }

/* ===== Confetti burst (JS-triggered) ===== */
.confetti-burst{ position: fixed; inset: 0; pointer-events: none; z-index: 300; }
.confetti-burst span{
  position: absolute;
  width: 8px; height: 8px;
  opacity: 0;
}

/* ===== Scroll reveal ===== */
[data-reveal]{
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].is-visible{ opacity: 1; transform: translateY(0); }

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 900px){
  .nav-menu{
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--cream);
    padding: 1.2rem var(--gutter) 1.6rem;
    gap: 1rem;
    border-bottom: 2px solid rgba(53,38,63,0.08);
    display: none;
  }
  .nav-menu.is-open{ display: flex; }
  .nav-toggle{ display: flex; }
  .btn-nav{ display: none; }

  .hero-inner{ grid-template-columns: 1fr; }
  .hero-art{ order: -1; }

  .story-pillars{ grid-template-columns: 1fr; }

  .flavor-grid{ grid-template-columns: 1fr 1fr; }

  .benefit-grid{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px){
  .benefit-grid{ grid-template-columns: 1fr; }
  .flavor-grid{ grid-template-columns: 1fr; }
  .ship-grid{ grid-template-columns: 1fr; }
  .hero-stats{ flex-wrap: wrap; row-gap: 1rem; }
  .cta-band{ border-radius: 28px 28px 0 0; }
}
