/* Landing page. Mobile first: most visitors arrive by scanning a QR code. */
:root {
  --sun: #ffc93c;
  --sun-top: #ffd966;
  --sun-bottom: #ffb92e;
  --red-deep: #7d1711;
}

.landing { overflow-x: hidden; }
.landing h2 {
  display: block;
  font-size: clamp(1.75rem, 6.5vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 0.9rem;
}
.landing h3 { font-size: 1.1rem; margin: 0 0 0.3rem; }
.landing .center { text-align: center; }
.lead-text { font-size: 1.12rem; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(circle at 85% 8%, rgba(255, 255, 255, 0.55) 0, transparent 42%),
    linear-gradient(180deg, var(--sun-top), var(--sun-bottom));
  padding: 1.4rem 1.25rem 0;
}
.hero-inner { max-width: 68rem; margin: 0 auto; display: grid; gap: 0.5rem; }
.hero-text > * { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-text > :nth-child(2) { animation-delay: 0.08s; }
.hero-text > :nth-child(3) { animation-delay: 0.16s; }
.hero-text > :nth-child(4) { animation-delay: 0.24s; }

.chip {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: rgba(255, 255, 255, 0.7); border-radius: 99px;
  padding: 0.4rem 0.9rem; margin: 0;
  font-size: 0.88rem; font-weight: 700;
}
.hero h1 {
  font-size: clamp(2.5rem, 10.5vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin: 1rem 0 0.9rem;
}
.hero h1 em {
  font-style: normal; color: var(--accent);
  background: linear-gradient(transparent 66%, #fff 66%, #fff 94%, transparent 94%);
  padding: 0 0.08em; margin: 0 -0.08em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.hero-lead { font-size: 1.15rem; max-width: 30rem; margin-bottom: 1.2rem; }
.hero-price { margin: 0 0 0.7rem; font-size: 1.05rem; }
.hero-price strong { font-family: var(--display); font-size: 2rem; font-weight: 800; }
.countdown, .hero-closed { display: flex; align-items: center; gap: 0.45rem; margin: 1rem 0 0; font-weight: 600; }
.countdown { font-size: 0.95rem; }
.hero-closed { background: rgba(255, 255, 255, 0.75); border-radius: var(--radius); padding: 0.9rem 1rem; font-size: 1.05rem; }
.hero-art { display: grid; place-items: center; }
.pot { width: min(88%, 25rem); height: auto; margin-bottom: -6px; animation: float 5s ease-in-out infinite; }

.drip-wrap { background: var(--bg); line-height: 0; margin-top: -1px; }
.drip { display: block; width: 100%; height: clamp(46px, 9vw, 112px); fill: var(--sun-bottom); }

/* Illustration animations */
.steam { opacity: 0; animation: steam 3.2s ease-in-out infinite; }
.steam-2 { animation-delay: 0.9s; }
.steam-3 { animation-delay: 1.8s; }
.pot-fork { animation: dip 3.4s ease-in-out infinite; }
.pot-flame { transform-origin: 170px 258px; animation: flicker 0.45s ease-in-out infinite alternate; }
.pot-flame-core { animation-duration: 0.3s; }

/* ---------- Call to action ---------- */
.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  width: 100%; min-height: 3.7rem; padding: 0.9rem 1.2rem; white-space: nowrap;
  background: var(--accent); color: #fff; border-radius: 99px;
  font-size: clamp(1.02rem, 4.7vw, 1.15rem); font-weight: 800; text-decoration: none;
  box-shadow: 0 6px 0 var(--red-deep), 0 16px 26px rgba(125, 23, 17, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  position: relative;
}
.cta::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(179, 38, 30, 0.45);
  animation: pulse 2.6s ease-out infinite;
  pointer-events: none;
}
.cta:hover { background: #c22b22; transform: translateY(-2px); box-shadow: 0 8px 0 var(--red-deep), 0 20px 30px rgba(125, 23, 17, 0.3); }
.cta:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--red-deep), 0 6px 12px rgba(125, 23, 17, 0.25); }
.cta:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.cta svg.lucide { transition: transform 0.2s ease; }
.cta:hover svg.lucide { transform: translateX(4px); }
.cta-big { min-height: 4.2rem; font-size: 1.25rem; }

/* ---------- Bands ---------- */
.band { padding: 3.2rem 1.25rem; }
.band .inner { max-width: 44rem; margin: 0 auto; }
.band-cream { background: var(--bg); }
.band-white { background: #fff; padding-left: 0; padding-right: 0; overflow: hidden; }
.band-white .inner { padding: 0 1.25rem; }
.band-red { background: linear-gradient(170deg, #a8241c, var(--red-deep)); color: #fff6e0; }
.band-yellow { background: linear-gradient(180deg, var(--sun-top), var(--sun-bottom)); }
.band-cream:first-of-type { padding-top: 1.2rem; }

/* Counter */
.goal-card {
  background: #fff; border-radius: 22px; padding: 1.3rem 1.3rem 1.1rem;
  box-shadow: 0 18px 40px rgba(91, 70, 54, 0.14);
}
.goal-top { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 0 0 0.6rem; font-weight: 600; }
.count { font-family: var(--display); font-size: 2.8rem; line-height: 1; color: var(--accent); margin-right: 0.15rem; font-variant-numeric: tabular-nums; }
.goal-target { color: var(--muted); font-size: 0.9rem; font-weight: 400; white-space: nowrap; }
.bar { height: 0.95rem; border-radius: 99px; background: #f3e8d0; overflow: hidden; }
.bar span {
  display: block; height: 100%; width: var(--pct); min-width: 0.95rem; border-radius: 99px;
  background: linear-gradient(90deg, var(--sun), #ff8a1f);
  transition: width 1.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js .bar span:not(.is-on) { width: 0; min-width: 0; }
.goal-note { margin: 0.6rem 0 0; color: var(--muted); font-size: 0.92rem; }

.why { margin-top: 2.4rem; }
.why-icon, .secret-icon {
  display: inline-grid; place-items: center; width: 3.2rem; height: 3.2rem;
  border-radius: 50%; background: var(--sun); margin-bottom: 0.8rem;
}
.why-icon svg.lucide, .secret-icon svg.lucide { width: 1.6rem; height: 1.6rem; }
.why p { font-size: 1.12rem; }

/* Half and half */
.halves { display: flex; justify-content: center; gap: 6px; margin: 1.6rem 0 1.4rem; }
.half { display: flex; flex-direction: column; gap: 0.7rem; width: 8.2rem; transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.half strong { text-align: center; line-height: 1.25; }
.half-shape {
  display: grid; place-items: center; width: 6.6rem; height: 13.2rem;
  font-family: var(--display); font-size: 2.6rem; font-weight: 800; color: rgba(43, 33, 24, 0.8);
  box-shadow: inset 0 -10px 0 rgba(0, 0, 0, 0.06);
}
.half-a { align-items: flex-end; }
.half-b { align-items: flex-start; }
.half-a .half-shape { border-radius: 13.2rem 0 0 13.2rem; background: #f6c445; }
.half-b .half-shape { border-radius: 0 13.2rem 13.2rem 0; background: #ffeaa6; }
.half-a strong, .half-b strong { width: 8.2rem; }
.halves-plus { display: none; }
.js .halves:not(.is-visible) .half-a { transform: translateX(-46px) rotate(-8deg); }
.js .halves:not(.is-visible) .half-b { transform: translateX(46px) rotate(8deg); }
.secrets-title { text-align: center; margin: 2.2rem 0 0.4rem !important; font-size: 1.2rem !important; }

.secrets {
  list-style: none; margin: 0; padding: 0.8rem 1.25rem 1.4rem;
  display: flex; gap: 0.9rem; overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-padding: 0 1.25rem;
  -webkit-overflow-scrolling: touch;
}
.secrets:focus-visible { outline: 3px solid var(--sun); outline-offset: -3px; }
.secret {
  flex: 0 0 76%; max-width: 17rem; scroll-snap-align: start;
  background: var(--bg); border-radius: 22px; padding: 1.2rem 1.2rem 1rem;
}
.secret p { margin: 0; color: #4d4035; }

/* Steps */
.steps-list { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 1.1rem; }
.step { display: flex; gap: 1rem; align-items: flex-start; background: #fff; border-radius: 22px; padding: 1.1rem 1.2rem; box-shadow: 0 10px 24px rgba(91, 70, 54, 0.08); }
.step-num {
  flex: none; display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border-radius: 50%;
  background: var(--accent); color: #fff; font-family: var(--display); font-size: 1.4rem; font-weight: 800;
}
.step h3 { display: flex; align-items: flex-start; gap: 0.45rem; }
.step h3 svg.lucide { color: var(--accent); margin-top: 0.15em; }
.step p { margin: 0; color: #4d4035; }

/* Delivery */
.band-red h2 { color: #fff; }
.band-red h3 { margin-top: 0.4rem; color: var(--sun); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem !important; }
.road { position: relative; height: 3.6rem; margin: 1.4rem -1.25rem 1.6rem; overflow: hidden; }
.road::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 3px dashed rgba(255, 246, 224, 0.5); }
.road-car {
  position: absolute; top: 50%; left: -3.4rem; width: 3.2rem; height: 3.2rem; margin-top: -1.6rem;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--sun); color: var(--ink);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
  animation: drive 7s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
.road-car svg.lucide { width: 1.7rem; height: 1.7rem; }
.communes { list-style: none; padding: 0; margin: 0.6rem 0 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.communes li {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: rgba(255, 246, 224, 0.14); border: 1px solid rgba(255, 246, 224, 0.3);
  border-radius: 99px; padding: 0.45rem 0.9rem; font-weight: 600;
}
.communes svg.lucide { color: var(--sun); }
.zone-note { font-size: 0.92rem; opacity: 0.85; margin: 0; }

/* Final call */
.final { padding-top: 3.6rem; padding-bottom: 3.8rem; }
.final-price { margin: 0 0 1.2rem; }
.final-price strong { font-family: var(--display); font-size: 1.5rem; }

/* Sticky order bar */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 0.9rem;
  padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom));
  background: rgba(43, 33, 24, 0.96); color: #fff;
  transform: translateY(110%); visibility: hidden;
  transition: transform 0.3s ease, visibility 0.3s;
}
.sticky-cta.is-shown { transform: none; visibility: visible; }
.sticky-cta p { margin: 0; font-size: 0.9rem; line-height: 1.2; white-space: nowrap; }
.sticky-cta strong { font-family: var(--display); font-size: 1.3rem; margin-right: 0.2rem; }
.sticky-cta .cta { width: auto; flex: none; min-height: 3rem; padding: 0.5rem 1.4rem; font-size: 1.05rem; box-shadow: none; white-space: nowrap; }
.sticky-cta .cta::after { display: none; }
/* Leave room for the sticky bar so it never covers the last lines. */
.landing:has(.sticky-cta) .footer { padding-bottom: 5.5rem; }

/* Scroll reveal (only when JavaScript is running) */
.js [data-reveal] {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--delay, 0ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes steam {
  0% { opacity: 0; transform: translateY(12px); }
  40% { opacity: 0.9; }
  100% { opacity: 0; transform: translateY(-16px); }
}
@keyframes dip { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(11px, -12px); } }
@keyframes flicker { from { transform: scale(1, 1); } to { transform: scale(0.92, 1.14); } }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(179, 38, 30, 0.45); }
  70%, 100% { box-shadow: 0 0 0 18px rgba(179, 38, 30, 0); }
}
@keyframes drive { from { left: -3.4rem; } to { left: 100%; } }

/* ---------- Larger screens ---------- */
@media (min-width: 760px) {
  .hero { padding: 2.5rem 2rem 0; }
  .hero-inner { grid-template-columns: 1.15fr 0.85fr; align-items: end; gap: 2rem; }
  .hero-text { padding-bottom: 2.5rem; }
  .cta { width: auto; padding-left: 1.8rem; padding-right: 1.8rem; }
  .pot { width: 100%; max-width: 27rem; }
  .band { padding: 4.5rem 2rem; }
  .band-cream:first-of-type { padding-top: 2rem; }
  .secrets {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr));
    overflow: visible; max-width: 68rem; margin: 0 auto; padding: 0.8rem 2rem 0;
  }
  .secret { max-width: none; }
  .steps-list { grid-template-columns: repeat(3, 1fr); }
  .step { flex-direction: column; }
  .road { margin-left: 0; margin-right: 0; }
  .sticky-cta { justify-content: center; gap: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .landing *, .landing *::before, .landing *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .halves:not(.is-visible) .half-a, .js .halves:not(.is-visible) .half-b { transform: none; }
  .steam { opacity: 0.8; }
  .road-car { left: calc(50% - 1.6rem); }
}
