/* ========== Design Tokens ========== */
:root{
  --bg: #f4f1ea;
  --paper: rgba(255,255,255,.65);
  --paper2: rgba(255,255,255,.72);
  --ink: #1f2c26;
  --muted: rgba(31,44,38,.64);
  --muted2: rgba(31,44,38,.50);
  --line: rgba(31,44,38,.10);

  --green: #234c3a;
  --green2:#1f3f31;
  --leaf: rgba(35,76,58,.10);

  --gold: #e4a64a;

  --r-xl: 30px;
  --r-lg: 26px;
  --r-md: 22px;
  --r-sm: 16px;

  --shadow: 0 20px 60px rgba(0,0,0,.10);
  --shadow-soft: 0 14px 40px rgba(0,0,0,.08);

  --serif: "Playfair Display", serif;
  --sans: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--sans);
  color:var(--ink);
  background:
    radial-gradient(800px 520px at 20% 12%, rgba(35,76,58,.12) 0%, rgba(35,76,58,0) 60%),
    radial-gradient(760px 520px at 86% 34%, rgba(35,76,58,.08) 0%, rgba(35,76,58,0) 58%),
    radial-gradient(900px 620px at 30% 92%, rgba(35,76,58,.06) 0%, rgba(35,76,58,0) 58%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg) 100%);
  overflow-x:hidden;
}

a{color:inherit; text-decoration:none}
img{max-width:100%; display:block}

/* Grain */
.bg-grain{
  position:fixed; inset:0;
  pointer-events:none;
  opacity:.10;
  mix-blend-mode:multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}

/* Layout */
.wrap{
  width:min(560px, 92vw);
  margin:0 auto;
}

/* Header */
.header{
  position:sticky; top:0; z-index:50;
  background:rgba(244,241,234,.74);
  backdrop-filter: blur(14px);
  border-bottom:1px solid rgba(31,44,38,.06);
}
.header__inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 16px;
}
.brand{
  display:flex; align-items:baseline; gap:6px;
  font-family:var(--serif);
  letter-spacing:.2px;
}
.brand__vita{
  font-style:italic;
  font-weight:600;
  font-size:18px;
  color:var(--green);
}
.brand__nature{
  font-family:var(--sans);
  font-weight:700;
  font-size:14px;
  letter-spacing:.08em;
  color:var(--green);
}

/* Buttons */
.btn{
  border:none;
  cursor:pointer;
  display:inline-flex; align-items:center; justify-content:center; gap:12px;
  padding:14px 18px;
  border-radius:999px;
  background: linear-gradient(180deg, #2b5a46 0%, var(--green) 65%, #214233 100%);
  color:#f7f5ee;
  font-weight:800;
  font-size:12px;
  letter-spacing:.18em;
  text-transform:uppercase;
  box-shadow: 0 14px 32px rgba(35,76,58,.22);
  border:1px solid rgba(255,255,255,.14);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.btn:hover{transform: translateY(-2px); box-shadow: 0 18px 44px rgba(35,76,58,.26); filter:saturate(1.05)}
.btn:active{transform: translateY(0) scale(.98)}
.btn__icon{display:inline-flex; opacity:.92}
.btn__arrow{font-size:16px; opacity:.92}

.btn--header{
  padding:12px 16px;
  font-size:11px;
  letter-spacing:.22em;
}

.btn--cta{
  width:100%;
  padding:18px 18px;
  margin-top:10px;
}

.btn--buy{
  width:100%;
  padding:18px 18px;
  margin-top:14px;
}

/* Hero */
.hero{
  position:relative;
  padding:30px 0 12px;
}
.hero__vignette{
  position:absolute; inset:-40px -60px auto -60px;
  height:380px;
  background:
    radial-gradient(480px 260px at 30% 40%, rgba(35,76,58,.10), transparent 62%),
    radial-gradient(520px 300px at 75% 25%, rgba(35,76,58,.08), transparent 60%),
    radial-gradient(520px 340px at 55% 95%, rgba(255,255,255,.55), transparent 65%);
  pointer-events:none;
}
.hero__eyebrow{
  display:flex; align-items:center; justify-content:center; gap:12px;
  margin-top:10px;
  color:rgba(31,44,38,.45);
  font-weight:700;
  font-size:11px;
  letter-spacing:.42em;
}
.hero__eyebrowLine{
  height:2px; width:54px;
  background:rgba(31,44,38,.18);
  border-radius:99px;
  transform: translateY(1px);
}
.hero__title{
  margin:18px auto 0;
  font-family:var(--serif);
  color:var(--green);
  text-align:center;
  font-weight:700;
  font-size:56px;
  line-height:1.02;
  letter-spacing:-.02em;
}
.hero__titleItalic{
  font-style:italic;
  font-weight:600;
}
.hero__lead{
  margin:14px auto 0;
  text-align:center;
  color:rgba(31,44,38,.48);
  font-weight:400;
  line-height:1.75;
  font-size:16px;
  max-width:44ch;
}

/* Social proof */
.proof{
  display:flex; align-items:center; justify-content:center; gap:12px;
  margin:14px 0 8px;
}
.proof__avatars{display:flex}
.av{
  width:30px; height:30px; border-radius:999px;
  border:2px solid rgba(244,241,234,.9);
  margin-left:-10px;
  box-shadow: 0 12px 24px rgba(0,0,0,.10);
  background-size:cover; background-position:center;
}
.av--1{margin-left:0; background-image:url('https://images.unsplash.com/photo-1535713875002-d1d0cf377fde?auto=format&fit=crop&w=100&q=60')}
.av--2{background-image:url('https://images.unsplash.com/photo-1502685104226-ee32379fefbe?auto=format&fit=crop&w=100&q=60')}
.av--3{background-image:url('https://images.unsplash.com/photo-1527980965255-d3b416303d12?auto=format&fit=crop&w=100&q=60')}
.proof__meta{display:flex; flex-direction:column; gap:2px}
.proof__stars{color:var(--gold); letter-spacing:2px; font-size:14px; line-height:1}
.proof__text{display:flex; gap:6px; align-items:baseline}
.proof__count{font-weight:800; color:rgba(31,44,38,.70)}
.proof__label{font-weight:700; letter-spacing:.12em; color:rgba(31,44,38,.52); font-size:12px}

/* Image card */
.media{padding:10px 0 22px}
.imgCard{
  position:relative;
  border-radius:var(--r-xl);
  overflow:hidden;
  background: rgba(255,255,255,.45);
  border:1px solid rgba(31,44,38,.10);
  box-shadow: var(--shadow);
}
.imgCard__img{
  width:100%;
  height: 600px;
  object-fit:cover;
  transform: scale(1.02);
  filter:saturate(1.05) contrast(1.02);
}
.imgCard__blend{
  position:absolute; inset:0;
  background:
    radial-gradient(520px 280px at 80% 18%, rgba(244,241,234,.70), transparent 58%),
    radial-gradient(520px 360px at 20% 85%, rgba(255,255,255,.36), transparent 62%),
    linear-gradient(180deg, rgba(244,241,234,.10), rgba(244,241,234,.70));
  mix-blend-mode:soft-light;
  pointer-events:none;
}

.badge{
  position:absolute;
  display:inline-flex; align-items:center; gap:10px;
  padding:14px 16px;
  border-radius:18px;
  background: rgba(255,255,255,.70);
  border:1px solid rgba(31,44,38,.10);
  box-shadow: var(--shadow-soft);
  color:var(--green);
  font-weight:800;
  letter-spacing:.08em;
  font-size:11px;
  text-transform:uppercase;
  backdrop-filter: blur(10px);
}
.badge__icon{display:inline-flex; opacity:.9}
.badge--topRight{right:16px; top:16px}
.badge--left{
  left:-2px; bottom:18px;
  border-top-left-radius:0;
  border-bottom-left-radius:0;
  padding:16px 16px;
  background: linear-gradient(180deg, rgba(35,76,58,.95), rgba(35,76,58,.92));
  color:#f6f3ea;
  border:1px solid rgba(255,255,255,.12);
}
.badge--left .badge__icon{color:#f6f3ea}
.badge__stack{display:flex; flex-direction:column; line-height:1.05}
.badge__small{font-size:11px; opacity:.92}
.badge__big{font-size:12px; letter-spacing:.14em}

/* Cards */
.cards{padding: 4px 0 26px}
.card{
  background: rgba(255,255,255,.64);
  border:1px solid rgba(31,44,38,.08);
  border-radius:var(--r-xl);
  padding:22px 20px;
  box-shadow: 0 16px 44px rgba(0,0,0,.08);
}
.card + .card{margin-top:18px}
.card__icon{
  width:54px; height:54px;
  border-radius:16px;
  background: rgba(35,76,58,.08);
  border:1px solid rgba(35,76,58,.12);
  display:flex; align-items:center; justify-content:center;
  color:var(--green);
  margin-bottom:14px;
}
.card__title{
  margin:0;
  font-family:var(--serif);
  font-style:italic;
  color:var(--green);
  font-weight:600;
  font-size:28px;
  letter-spacing:-.01em;
}
.card__text{
  margin:10px 0 0;
  color:rgba(31,44,38,.48);
  line-height:1.75;
  font-size:15px;
}

/* Offer */
.offer{padding: 10px 0 26px}
.product{
  background: rgba(255,255,255,.70);
  border:1px solid rgba(31,44,38,.08);
  border-radius:var(--r-xl);
  padding:26px 20px 22px;
  box-shadow: 0 20px 60px rgba(0,0,0,.10);
}
.product__brand{
  margin:0;
  text-align:center;
  font-family:var(--serif);
  color:var(--green);
  font-weight:700;
  font-size:40px;
  letter-spacing:-.01em;
}
.product__edition{
  text-align:center;
  font-family:var(--serif);
  font-style:italic;
  font-weight:600;
  font-size:36px;
  margin-top:4px;
  color:rgba(31,44,38,.52);
}
.product__rating{
  display:flex; align-items:center; justify-content:center; gap:10px;
  margin-top:12px;
}
.product__stars{color:var(--gold); letter-spacing:2px; font-size:18px}
.product__ratingText{color:rgba(31,44,38,.58); font-weight:700; letter-spacing:.06em; font-size:12px}
.product__desc{
  margin:16px auto 0;
  text-align:center;
  color:rgba(31,44,38,.45);
  line-height:1.75;
  font-size:16px;
  max-width:44ch;
}

.checklist{
  list-style:none;
  padding:0;
  margin:18px 0 0;
  display:flex;
  flex-direction:column;
  gap:14px;
  color:rgba(31,44,38,.55);
  font-weight:600;
}
.checklist li{
  display:flex; align-items:flex-start; gap:12px;
  line-height:1.5;
}
.tick{
  width:28px; height:28px;
  border-radius:999px;
  background: rgba(35,76,58,.10);
  border:1px solid rgba(35,76,58,.14);
  display:inline-flex; align-items:center; justify-content:center;
  color:var(--green);
  font-weight:900;
  flex: 0 0 auto;
  transform: translateY(2px);
}

.divider{
  height:1px;
  background: rgba(31,44,38,.12);
  margin:18px 0 16px;
}

.priceRow__price{
  display:flex; align-items:baseline; justify-content:flex-start; gap:16px;
}
.priceNow{
  font-family:var(--serif);
  color:var(--green);
  font-size:44px;
  font-weight:700;
}
.priceOld{
  font-family:var(--serif);
  color:rgba(31,44,38,.28);
  font-size:26px;
  text-decoration:line-through;
  font-weight:600;
}

.qtyPill{
  margin-top:14px;
  width:100%;
  height:56px;
  border-radius:999px;
  background: rgba(31,44,38,.06);
  border:1px solid rgba(31,44,38,.08);
  display:flex; align-items:center; justify-content:space-between;
  padding:0 14px;
}
.qtyBtn{
  width:52px; height:40px;
  border-radius:999px;
  border:none;
  background: rgba(255,255,255,.70);
  color:var(--green);
  font-size:22px;
  font-weight:900;
  cursor:pointer;
  transition: transform .15s ease, background .15s ease;
}
.qtyBtn:hover{background:#fff; transform: translateY(-1px)}
.qtyBtn:active{transform: scale(.98)}
.qtyNum{
  font-weight:900;
  font-size:18px;
  color:var(--green);
}

/* Bottom media */
.media--bottom{padding-top:0}
.imgCard--bottom .imgCard__img{height:360px}

/* Footer */
.footer{
  padding: 22px 0 40px;
  color:rgba(31,44,38,.55);
}
.footer__brand{
  padding-top:8px;
}
.footer__logo{
  font-family:var(--serif);
  color:var(--green);
  font-weight:700;
  font-size:26px;
}
.footer__logo span{
  font-family:var(--sans);
  font-size:16px;
  letter-spacing:.10em;
  font-weight:800;
}
.footer__desc{
  margin:12px 0 0;
  line-height:1.75;
  max-width:52ch;
}
.footer__cols{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:26px;
  margin-top:18px;
}
.col__title{
  font-weight:900;
  letter-spacing:.22em;
  font-size:12px;
  color:rgba(31,44,38,.70);
  margin-bottom:12px;
}
.col a{
  display:block;
  padding:10px 0;
  color:rgba(31,44,38,.45);
}

.footer__bottom{
  margin-top:18px;
  padding-top:18px;
  border-top:1px solid rgba(31,44,38,.10);
  text-align:center;
}
.footer__copy{
  font-size:12px;
  letter-spacing:.22em;
  color:rgba(31,44,38,.30);
  text-transform:uppercase;
}
.footer__legal{
  margin-top:16px;
  display:flex; justify-content:center; gap:22px;
}
.footer__legal a{
  font-size:12px;
  letter-spacing:.22em;
  color:rgba(31,44,38,.34);
  text-transform:uppercase;
}

/* Toast */
.toast{
  position:fixed;
  left:50%;
  bottom:16px;
  transform: translateX(-50%);
  background: rgba(31,44,38,.92);
  color:#fff;
  padding:10px 14px;
  border-radius:999px;
  font-size:12px;
  opacity:0;
  pointer-events:none;
  transition: opacity .22s ease, transform .22s ease;
  z-index:80;
}
.toast.is-on{
  opacity:1;
  transform: translateX(-50%) translateY(-6px);
}

/* Small phones */
@media (max-width: 380px){
  .hero__title{font-size:52px}
  .imgCard__img{height:380px}
  .product__brand{font-size:36px}
  .product__edition{font-size:32px}
  .priceNow{font-size:40px}
}

/* Bottle integration - non destructive */
.image-section, .image-wrapper {
  background: radial-gradient(120% 120% at 50% 0%, #ffffff 0%, #f4f1eb 60%, #eee9df 100%);
}
.image-wrapper img {
  filter: drop-shadow(0 28px 56px rgba(40,60,40,.18));
}

/* === HERO OVERLAP FIX (SAFE PATCH) === */
.hero, .hero-section {
  position: relative;
  min-height: auto;
  height: auto;
  padding-bottom: clamp(48px, 10vw, 96px);
}

.hero::before,
.hero::after {
  pointer-events: none;
}

.hero .cta,
.hero .btn,
.hero button {
  position: relative;
  z-index: 5;
}
/* === END FIX === */

/* === CTA MICRO-ANIMATIONS (PREMIUM) === */
.btn, .cta, .btn-primary {
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  will-change: transform;
}
.btn:hover, .cta:hover, .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0,0,0,.18);
}
.btn:active, .cta:active, .btn-primary:active {
  transform: translateY(0) scale(.98);
}
/* subtle pulse on load */
@keyframes ctaPulse {
  0% { box-shadow: 0 0 0 0 rgba(35,76,58,.25); }
  100% { box-shadow: 0 0 0 18px rgba(35,76,58,0); }
}
.btn--cta, .btn-primary {
  animation: ctaPulse 1.8s ease-out 1;
}

/* === CLS / LCP OPTIMIZATION === */
img {
  height: auto;
}
.hero img, .imgCard__img, .hero-image img {
  aspect-ratio: 4 / 5; /* reserve space to avoid layout shift */
}

/* === TRUST STRIP (HIGH-TICKET) === */
.trust-strip {
  background: rgba(255,255,255,.55);
  border-top:1px solid rgba(0,0,0,.06);
  border-bottom:1px solid rgba(0,0,0,.06);
  margin: 24px 0;
}
.trust-strip .wrap {
  display:flex;
  justify-content:space-around;
  padding:12px 0;
  font-weight:600;
  font-size:13px;
  color:rgba(31,44,38,.65);
}
