/* ============================================================
   CEMenu — landing page styles
   Light theme only. Tweak the whole look from :root below.
   ============================================================ */

:root {
  /* ---- Colour kit ---- */
  --cream:      #FAF5EE;
  --white:      #FFFFFF;
  --amber:      #E8943A;
  --amber-deep: #C9781F;
  --amber-tint: #FBE7CE;
  --cocoa:      #3A2417;
  --mocha:      #6E5B4D;
  --sand:       #E7DCCB;
  --green:      #2E7D6B;

  /* ---- Typography ---- */
  --font-head: "Poppins", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-script: "Caveat", cursive;

  /* ---- Shape & depth ---- */
  --radius:    24px;
  --radius-sm: 16px;
  --radius-pill: 999px;
  --shadow-sm: 0 6px 18px rgba(58, 36, 23, 0.06);
  --shadow:    0 18px 40px rgba(58, 36, 23, 0.10);
  --shadow-lg: 0 30px 70px rgba(58, 36, 23, 0.16);

  /* ---- Layout ---- */
  --maxw: 1140px;
  --gap: clamp(1rem, 4vw, 2rem);

  /* ---- Frosted-glass tokens (tweak the whole glass look here) ---- */
  --glass-bg:        rgba(255, 255, 255, 0.55);  /* default translucent panel */
  --glass-bg-strong: rgba(255, 255, 255, 0.74);  /* for text-dense panels */
  --glass-blur:      14px;
  --glass-border:    rgba(255, 255, 255, 0.65);
  --glass-highlight: rgba(255, 255, 255, 0.85);
  --glass-shadow:    0 18px 40px rgba(58, 36, 23, 0.12);
  --glass-dark:      rgba(58, 36, 23, 0.82);      /* dark frosted panel (featured plan) */
  --motif-opacity:   0.08;                        /* faintness of food line-art */

  /* Scattered "sprinkle" dot texture */
  --sprinkle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Ccircle cx='30' cy='40' r='5' fill='%23E8943A' opacity='.18'/%3E%3Ccircle cx='165' cy='28' r='4' fill='%232E7D6B' opacity='.14'/%3E%3Ccircle cx='108' cy='120' r='6' fill='%23E8943A' opacity='.12'/%3E%3Ccircle cx='192' cy='162' r='5' fill='%23E8943A' opacity='.16'/%3E%3Ccircle cx='58' cy='180' r='4' fill='%232E7D6B' opacity='.13'/%3E%3Ccircle cx='18' cy='120' r='3' fill='%23E8943A' opacity='.22'/%3E%3Ccircle cx='140' cy='90' r='3' fill='%23C9781F' opacity='.16'/%3E%3C/svg%3E");
  --sprinkle-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Ccircle cx='30' cy='40' r='5' fill='%23FFFFFF' opacity='.22'/%3E%3Ccircle cx='165' cy='28' r='4' fill='%23FFFFFF' opacity='.16'/%3E%3Ccircle cx='108' cy='120' r='6' fill='%23FFFFFF' opacity='.14'/%3E%3Ccircle cx='192' cy='162' r='5' fill='%23FFFFFF' opacity='.18'/%3E%3Ccircle cx='58' cy='180' r='4' fill='%23FFFFFF' opacity='.15'/%3E%3Ccircle cx='18' cy='120' r='3' fill='%23FFFFFF' opacity='.24'/%3E%3C/svg%3E");
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;          /* 16px — avoids iOS zoom */
  line-height: 1.65;
  color: var(--mocha);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--cocoa);
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1rem; }

a { color: var(--amber-deep); text-decoration: none; }
a:hover { color: var(--cocoa); }

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

button { font-family: inherit; cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--amber-deep);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 5vw, 2rem);
}
.container--narrow { max-width: 760px; }

.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  background: var(--cocoa); color: var(--white);
  padding: .6rem 1rem; border-radius: var(--radius-sm);
  z-index: 2000; transition: top .2s ease;
}
.skip-link:focus { top: 1rem; color: var(--white); }

/* ============================================================
   Page loader
   ============================================================ */
.loader {
  position: fixed; inset: 0;
  display: grid; place-items: center;
  background: var(--cream);
  z-index: 3000;
  transition: opacity .5s ease, visibility .5s ease;
}
.loader.is-hidden { opacity: 0; visibility: hidden; }
.loader__dots { display: flex; gap: .55rem; }
.loader__dots span {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--amber);
  animation: bounce 1s ease-in-out infinite;
}
.loader__dots span:nth-child(2) { animation-delay: .15s; background: var(--amber-deep); }
.loader__dots span:nth-child(3) { animation-delay: .3s; }
@keyframes bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: .55; }
  40%           { transform: translateY(-12px); opacity: 1; }
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  --btn-pad-y: .7rem;
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  padding: var(--btn-pad-y) 1.5rem;
  min-height: 46px;
  font-family: var(--font-head);
  font-weight: 600; font-size: 1rem;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease,
              box-shadow .2s ease, color .2s ease, border-color .2s ease;
  text-align: center;
}
.btn--lg { --btn-pad-y: .9rem; min-height: 54px; padding-inline: 1.9rem; font-size: 1.06rem; }
.btn--block { display: flex; width: 100%; }
.btn .ic { flex: none; }

.btn--primary { background: var(--amber); color: var(--white); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--amber-deep); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow); }

.btn--secondary { background: transparent; color: var(--cocoa); border-color: var(--sand); }
.btn--secondary:hover { background: var(--white); color: var(--cocoa); border-color: var(--amber); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

.btn--light { background: var(--white); color: var(--cocoa); box-shadow: var(--shadow); }
.btn--light:hover { background: var(--cream); color: var(--cocoa); transform: translateY(-2px); }

.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn--ghost:hover { background: rgba(255,255,255,.14); color: var(--white); border-color: var(--white); transform: translateY(-2px); }

/* Press feedback — gentle scale-down */
.btn:active { transform: translateY(0) scale(.96); }

/* ============================================================
   Logo wordmark (text, not an image)
   ============================================================ */
.logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  line-height: 1;
}
.logo:hover { color: inherit; }
.logo-ce { color: var(--amber); }
.logo-menu { color: var(--cocoa); }

/* ============================================================
   Header / nav
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(250, 245, 238, 0.85);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  transition: box-shadow .25s ease, background-color .25s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); background: rgba(250, 245, 238, 0.95); }

.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center;
  gap: 5px; width: 46px; height: 46px;
  background: transparent; border: 0; padding: 10px;
  border-radius: 12px;
}
.nav-toggle__bar {
  display: block; height: 2.5px; width: 100%; border-radius: 2px;
  background: var(--cocoa);
  transition: transform .3s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.nav-links {
  position: fixed;
  inset: 68px 0 auto 0;
  background: var(--white);
  display: grid; gap: .4rem;
  padding: 1rem clamp(1.1rem, 5vw, 2rem) 1.5rem;
  box-shadow: var(--shadow);
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
  transform: translateY(-130%);
  transition: transform .35s cubic-bezier(.22,.61,.36,1);
  visibility: hidden;
}
.nav-links.is-open { transform: translateY(0); visibility: visible; }
.nav-links a {
  font-family: var(--font-head); font-weight: 500;
  color: var(--cocoa); padding: .7rem .25rem;
  border-radius: 10px;
}
.nav-links a:hover { color: var(--amber-deep); }
.nav-links a.nav-cta { margin-top: .4rem; color: var(--white); }
.nav-links a.nav-cta:hover { color: var(--white); }

/* Subtle underline-grow on footer links */
.footer__nav a { position: relative; }
.footer__nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px;
  height: 2px; border-radius: 2px; background: var(--amber);
  transition: right .25s ease;
}
.footer__nav a:hover::after { right: 0; }

/* ============================================================
   Sections shared
   ============================================================ */
.section { padding: clamp(3.5rem, 9vw, 6.5rem) 0; }
.section--tint { background: var(--amber-tint); }

.section__head { max-width: 640px; margin: 0 auto clamp(2rem, 5vw, 3.25rem); text-align: center; }
.section__title { font-size: clamp(1.7rem, 5vw, 2.6rem); font-weight: 700; }
.section__lead { font-size: 1.08rem; color: var(--mocha); margin-top: .5rem; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head); font-weight: 600;
  font-size: .82rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--amber-deep);
  background: var(--amber-tint);
  padding: .35rem .85rem; border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}
.section--tint .eyebrow { background: var(--white); }

/* Card base */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: clamp(1.4rem, 4vw, 2rem);
}

/* Hover lift for content cards (works alongside the reveal transition) */
.feature.card, .plan.card, .step.card {
  transition: transform .3s ease, box-shadow .3s ease, opacity .6s ease;
}
.feature.card:hover, .plan.card:hover, .step.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; overflow: hidden; padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(3rem, 8vw, 5.5rem); }
.sprinkles {
  position: absolute; inset: -8%; z-index: 0;
  background-image: var(--sprinkle);
  background-size: 220px 220px;
  pointer-events: none;
  animation: sprinkle-drift 26s ease-in-out infinite alternate;
}
.sprinkles--light { background-image: var(--sprinkle-light); }
@keyframes sprinkle-drift {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(2%, 2.4%, 0); }
}

.hero__inner { position: relative; z-index: 1; display: grid; gap: clamp(2rem, 6vw, 3rem); align-items: center; }

.hero__title {
  font-size: clamp(2.3rem, 9vw, 4rem);
  font-weight: 800;
  margin-bottom: .6rem;
}
.script {
  font-family: var(--font-script);
  color: var(--amber);
  font-weight: 700;
  font-size: 1.15em;
  display: inline-block;
}
.hero__sub { font-size: clamp(1.05rem, 2.5vw, 1.22rem); max-width: 34ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 1rem; }
.hero__note { font-size: .9rem; color: var(--mocha); margin: 0; }
.hero__actions .btn { flex: 1 1 auto; }

/* Phone mockup */
.hero__visual { position: relative; display: flex; justify-content: center; }

/* 3D stage + tilt group (hero phone only) */
.phone-stage { perspective: 1000px; display: flex; justify-content: center; width: 100%; }
.phone-tilt {
  position: relative;
  transform-style: preserve-3d;
  transform: rotateY(-8deg) rotateX(4deg);  /* resting angle; JS refines it on pointer devices */
  will-change: transform;
}

.phone {
  position: relative;
  width: min(270px, 72vw);
  background: var(--cocoa);
  padding: 12px;
  border-radius: 42px;
  box-shadow: var(--shadow-lg);
}
.phone--sm { width: min(250px, 66vw); }
.phone__notch {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  width: 38%; height: 18px; background: var(--cocoa);
  border-radius: 0 0 14px 14px; z-index: 3;
}

/* Demo phone (See it in action): plain image screen — unchanged */
.phone__screen {
  width: 100%; border-radius: 32px; display: block;
  background: var(--cream);
}

/* Hero phone: screenshot clipped to the screen, anchored to the top */
.phone__screen-wrap {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  aspect-ratio: 246 / 519;
  background: var(--cream);
}
.phone__screen-wrap .phone__screen {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  border-radius: 0;
}
.phone__sheen {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  border-radius: 32px;
  background: linear-gradient(115deg,
    rgba(255, 255, 255, 0) 38%,
    rgba(255, 255, 255, .32) 50%,
    rgba(255, 255, 255, 0) 62%);
  opacity: 0;
  mix-blend-mode: screen;
  will-change: transform, opacity;
}

.qr-card {
  position: absolute; bottom: -14px; left: -10px; z-index: 4;
  transform: translateZ(45px);   /* floats in front within the 3D scene */
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: .7rem; width: 120px;
  display: grid; justify-items: center; gap: .35rem;
  text-align: center;
}
.qr-card img { width: 84px; height: 84px; border-radius: 8px; }
.qr-card span {
  font-family: var(--font-head); font-weight: 600; font-size: .78rem;
  color: var(--cocoa);
}

/* ============================================================
   How it works — steps
   ============================================================ */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1.25rem;
}
.step { position: relative; padding-top: 2.6rem; }
.step__num {
  position: absolute; top: -22px; left: clamp(1.4rem, 4vw, 2rem);
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--amber); color: var(--white);
  font-family: var(--font-head); font-weight: 800; font-size: 1.4rem;
  box-shadow: var(--shadow-sm);
}
.step h3 { font-size: 1.25rem; }
.step p { margin: 0; }

/* ============================================================
   Why it's better — features
   ============================================================ */
.features { display: grid; gap: 1.25rem; }
.feature__icon {
  display: inline-grid; place-items: center;
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--amber-tint); color: var(--amber-deep);
  margin-bottom: 1rem;
}
.section--tint .feature__icon { background: var(--cream); }
.feature h3 { font-size: 1.2rem; }
.feature p { margin: 0; }

/* ============================================================
   Pricing
   ============================================================ */
.plans { display: grid; gap: 1.4rem; align-items: start; }
.plan { display: flex; flex-direction: column; position: relative; }
.plan__name { font-size: 1.35rem; font-weight: 700; margin-bottom: .3rem; }
.plan__price { display: flex; align-items: baseline; gap: .3rem; margin: 0 0 .8rem; }
.plan__amount { font-family: var(--font-head); font-weight: 800; font-size: 2.1rem; color: var(--cocoa); }
.plan__per { color: var(--mocha); font-size: .95rem; }
.plan__desc { flex: 1 1 auto; color: var(--mocha); }
.plan .btn { margin-top: 1.25rem; }

.plan--featured {
  background: var(--cocoa);
  box-shadow: var(--shadow-lg);
}
.plan--featured .plan__name,
.plan--featured .plan__amount { color: var(--white); }
.plan--featured .plan__desc,
.plan--featured .plan__per { color: var(--amber-tint); }
.plan__badge {
  position: absolute; top: -14px; right: clamp(1.4rem, 4vw, 2rem);
  background: var(--amber); color: var(--white);
  font-family: var(--font-head); font-weight: 600; font-size: .78rem;
  padding: .35rem .9rem; border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm); letter-spacing: .02em;
}

/* Smooth price swap on billing change */
.plan__price { transition: opacity .25s ease, transform .25s ease; }
.plan__price.is-swapping { opacity: 0; transform: translateY(6px); }

/* "20% off when billed yearly" subtext */
.plan__save {
  margin: -.5rem 0 .2rem;
  font-size: .85rem; font-weight: 600;
  color: var(--green);
}
.plan--featured .plan__save { color: var(--amber-tint); }
.plan__save[hidden] { display: none; }

/* Monthly / Annual toggle */
.billing-toggle {
  display: flex; width: max-content; max-width: 100%;
  margin: 1.5rem auto 0;
  gap: .25rem; padding: .3rem;
  background: var(--amber-tint);
  border-radius: var(--radius-pill);
}
.section--tint .billing-toggle { background: var(--white); }
.billing-toggle__btn {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 0; background: transparent; cursor: pointer;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  color: var(--mocha);
  padding: .55rem 1.2rem; min-height: 44px;
  border-radius: var(--radius-pill);
  transition: background-color .25s ease, color .25s ease, box-shadow .25s ease;
}
.billing-toggle__btn.is-active { background: var(--white); color: var(--cocoa); box-shadow: var(--shadow-sm); }
.section--tint .billing-toggle__btn.is-active { background: var(--cream); }
.billing-toggle__save {
  background: var(--green); color: var(--white);
  font-size: .68rem; font-weight: 700; letter-spacing: .02em;
  padding: .15rem .5rem; border-radius: var(--radius-pill);
}

/* Multi-location callout strip */
.multi-callout {
  margin-top: clamp(1.6rem, 4vw, 2.4rem);
  background: var(--amber-tint);
  border-radius: var(--radius);
  padding: clamp(1.3rem, 4vw, 1.7rem) clamp(1.4rem, 4vw, 2rem);
  display: flex; flex-direction: column; align-items: flex-start; gap: 1.1rem;
}
.multi-callout__text { margin: 0; color: var(--cocoa); font-weight: 500; }
.multi-callout__btn { flex: none; }
@media (min-width: 640px) {
  .multi-callout { flex-direction: row; align-items: center; justify-content: space-between; gap: 1.75rem; }
  .multi-callout__text { flex: 1; }
}

/* ============================================================
   See it in action
   ============================================================ */
.showcase { display: grid; gap: clamp(2rem, 6vw, 3rem); align-items: center; }
.showcase__copy .section__title { font-size: clamp(1.6rem, 4.5vw, 2.3rem); max-width: 18ch; }
.showcase__visual { display: flex; justify-content: center; }

/* Testimonials (ready when you uncomment them in the HTML) */
.testimonials { display: grid; gap: 1rem; margin-top: 2rem; }
.testimonial { margin: 0; }
.testimonial p { font-size: 1.05rem; color: var(--cocoa); }
.testimonial footer { color: var(--mocha); font-size: .92rem; }

/* ============================================================
   FAQ accordion
   ============================================================ */
.faq { display: grid; gap: .9rem; }
.faq__item {
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq__q {
  width: 100%; background: transparent; border: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem clamp(1.1rem, 4vw, 1.5rem);
  text-align: left;
  font-family: var(--font-head); font-weight: 600; font-size: 1.05rem;
  color: var(--cocoa);
  min-height: 44px;
}
.faq__chevron { flex: none; color: var(--amber-deep); transition: transform .3s ease; }
.faq__q[aria-expanded="true"] .faq__chevron { transform: rotate(180deg); }
.faq__a {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease;
}
.faq__a p {
  margin: 0;
  padding: 0 clamp(1.1rem, 4vw, 1.5rem) 1.2rem;
  color: var(--mocha);
}

/* ============================================================
   Final CTA
   ============================================================ */
.final-cta {
  position: relative; overflow: hidden;
  background: var(--amber);
  color: var(--white);
  text-align: center;
  padding: clamp(3rem, 8vw, 5rem) 0;
}
.final-cta__inner { position: relative; z-index: 1; max-width: 640px; }
.final-cta h2 { color: var(--white); font-size: clamp(1.8rem, 5vw, 2.7rem); }
.final-cta p { color: rgba(255,255,255,.92); font-size: 1.1rem; margin-bottom: 1.8rem; }
.final-cta__actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }
.final-cta__actions .btn { flex: 1 1 220px; max-width: 320px; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--cocoa); color: var(--sand); padding: clamp(2.5rem, 6vw, 3.5rem) 0 1.5rem; }
.footer__inner { display: grid; gap: 1.8rem; }
.site-footer .logo-menu { color: var(--cream); }
.footer__tagline { color: var(--sand); margin: .8rem 0 0; max-width: 32ch; }
.footer__nav { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; }
.footer__nav a { color: var(--sand); font-family: var(--font-head); font-weight: 500; }
.footer__nav a:hover { color: var(--amber); }
.footer__whatsapp {
  display: inline-flex; align-items: center; gap: .55rem;
  align-self: start;
  background: var(--green); color: var(--white);
  font-family: var(--font-head); font-weight: 600;
  padding: .75rem 1.3rem; border-radius: var(--radius-pill);
  min-height: 46px;
  transition: transform .2s ease, filter .2s ease;
}
.footer__whatsapp:hover { color: var(--white); transform: translateY(-2px); filter: brightness(1.08); }
.footer__legal {
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
  margin-top: 2rem; padding-top: 1.3rem;
  border-top: 1px solid rgba(231, 220, 203, .18);
  font-size: .85rem; color: rgba(231, 220, 203, .75);
}

/* ============================================================
   Scroll reveal
   ============================================================ */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
  transition-delay: calc(var(--reveal-delay, 0) * 90ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   Responsive — tablet & up
   ============================================================ */
@media (min-width: 640px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1.4fr 1fr auto; align-items: start; }
  .hero__actions .btn { flex: 0 0 auto; }
}

@media (min-width: 880px) {
  .nav-toggle { display: none; }
  .nav-links {
    position: static; transform: none; visibility: visible;
    display: flex; align-items: center; gap: 2rem;
    background: transparent; box-shadow: none; padding: 0;
  }
  .nav-links a { padding: .25rem 0; }
  .nav-cta { margin-top: 0; padding: .55rem 1.4rem; }
  /* underline-grow on the horizontal nav links */
  .nav-links a:not(.nav-cta) { position: relative; }
  .nav-links a:not(.nav-cta)::after {
    content: ""; position: absolute; left: 0; right: 100%; bottom: -3px;
    height: 2px; border-radius: 2px; background: var(--amber);
    transition: right .25s ease;
  }
  .nav-links a:not(.nav-cta):hover::after { right: 0; }

  .hero__inner { grid-template-columns: 1.05fr .95fr; }
  .features { grid-template-columns: repeat(4, 1fr); }
  .plans { grid-template-columns: repeat(3, 1fr); }
  .plan--featured { transform: translateY(-14px); }
  .plan--featured.card:hover { transform: translateY(-20px); }
  .showcase { grid-template-columns: 1.1fr .9fr; }
  .qr-card { width: 132px; }
  .qr-card img { width: 96px; height: 96px; }
}

/* ============================================================
   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;
  }
  .reveal { opacity: 1; transform: none; }
  /* Flatten the phone (no tilt/float) and drop the sheen */
  .phone-tilt { transform: none !important; }
  .phone__sheen { display: none; }
  .sprinkles { animation: none; }
}

/* ============================================================
   FROSTED GLASS + AMBIENT FOOD BACKGROUND
   ============================================================ */

/* Ambient layer sits behind everything; fixed so glass always has
   a warm, colourful backdrop to refract as you scroll. */
.bg-layer {
  position: fixed; inset: 0; z-index: -1;
  overflow: hidden; pointer-events: none;
  background: linear-gradient(180deg, #FFFCF7 0%, var(--cream) 42%, #F3E7D4 100%);
}

/* Large, soft, drifting colour blobs (radial-gradient = soft edge, no costly blur) */
.blob { position: absolute; border-radius: 50%; will-change: transform; }
.blob--amber {
  width: 46vmax; height: 46vmax; top: -14vmax; left: -8vmax;
  background: radial-gradient(circle, rgba(232,148,58,.34), rgba(232,148,58,0) 68%);
  animation: blob-drift-a 32s ease-in-out infinite alternate;
}
.blob--peach {
  width: 40vmax; height: 40vmax; top: 28vmax; right: -10vmax;
  background: radial-gradient(circle, rgba(251,231,206,.75), rgba(251,231,206,0) 68%);
  animation: blob-drift-b 38s ease-in-out infinite alternate;
}
.blob--green {
  width: 36vmax; height: 36vmax; bottom: -12vmax; left: 18%;
  background: radial-gradient(circle, rgba(46,125,107,.16), rgba(46,125,107,0) 68%);
  animation: blob-drift-c 44s ease-in-out infinite alternate;
}
.blob--amber2 {
  width: 30vmax; height: 30vmax; top: 56vmax; left: 6%;
  background: radial-gradient(circle, rgba(232,148,58,.16), rgba(232,148,58,0) 70%);
  animation: blob-drift-b 50s ease-in-out infinite alternate;
}
@keyframes blob-drift-a { from { transform: translate3d(0,0,0); } to { transform: translate3d(4vmax,3vmax,0); } }
@keyframes blob-drift-b { from { transform: translate3d(0,0,0); } to { transform: translate3d(-3vmax,4vmax,0); } }
@keyframes blob-drift-c { from { transform: translate3d(0,0,0); } to { transform: translate3d(3vmax,-3vmax,0); } }

/* Faint food line-art motifs */
.motif {
  position: absolute; color: var(--motif-color, var(--amber));
  opacity: var(--motif-opacity); will-change: transform;
}
.motif--anise   { width: 74px; height: 74px; top: 13%; left: 5%;    animation: blob-drift-a 36s ease-in-out infinite alternate; }
.motif--cinnamon{ width: 70px; height: 70px; top: 67%; left: 8%;    --motif-color: var(--sand); animation: blob-drift-b 42s ease-in-out infinite alternate; }
.motif--cup     { width: 78px; height: 78px; top: 23%; right: 7%;   animation: blob-drift-c 40s ease-in-out infinite alternate; }
.motif--leaf    { width: 66px; height: 66px; bottom: 16%; right: 12%; --motif-color: var(--green); opacity: calc(var(--motif-opacity) * .85); animation: blob-drift-a 46s ease-in-out infinite alternate; }
.motif--bowl    { width: 84px; height: 84px; bottom: 9%; left: 37%;  animation: blob-drift-b 48s ease-in-out infinite alternate; }
.motif--citrus  { width: 60px; height: 60px; top: 45%; right: 23%;  --motif-color: var(--sand); animation: blob-drift-c 52s ease-in-out infinite alternate; }

/* ---- Glass surfaces ---- */
.site-header {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  border-bottom: 1px solid var(--glass-border);
}
.site-header.is-scrolled {
  background: var(--glass-bg-strong);
  box-shadow: var(--glass-shadow);
}

.qr-card {
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(150%);
  backdrop-filter: blur(var(--glass-blur)) saturate(150%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

/* Content panels: frosted light glass (text-dense → use the stronger tint) */
.feature.card,
.step.card,
.plan.card:not(.plan--featured),
.faq__item,
.multi-callout {
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}
.feature.card,
.step.card,
.plan.card,
.faq__item,
.multi-callout {
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(150%);
  backdrop-filter: blur(var(--glass-blur)) saturate(150%);
}
/* "Most popular" plan: dark frosted glass keeps the accent + white text crisp */
.plan--featured.card {
  background: var(--glass-dark);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow-lg);
}

/* ---- Compatibility & performance ---- */
/* No backdrop-filter support: fall back to near-solid panels */
@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  :root { --glass-bg: rgba(255,255,255,.9); --glass-bg-strong: rgba(255,255,255,.95); }
}
/* User prefers less transparency: drop the blur, make panels nearly solid */
@media (prefers-reduced-transparency: reduce) {
  :root { --glass-bg: rgba(255,255,255,.94); --glass-bg-strong: rgba(255,255,255,.97); --glass-blur: 0px; }
}
/* Small / low-end screens: drop blur entirely (perf), near-solid panels,
   static blobs, hide motifs for crispness */
@media (max-width: 480px) {
  :root { --glass-bg: rgba(255,255,255,.9); --glass-bg-strong: rgba(255,255,255,.95); }
  .site-header, .qr-card,
  .feature.card, .step.card, .plan.card, .faq__item, .multi-callout {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .blob { animation: none; }
  .motif { display: none; }
}
