/* ============================================================
   picadienis — scroll story styles (light / mockup direction)
   Brand Book v1.0: paprika / basil / dough cream / warm sand / charcoal
   Type: Manrope 800 statement headlines, Manrope UI
   Stage: warm cream backdrop + washed party photo + live phone UI
   ============================================================ */

:root {
  /* brandbook v1.0 core palette */
  --paprika: #f15a24;
  --paprika-soft: #f4794a;
  --paprika-tint: #fdeadf;
  --basil: #1f4b3a;
  --basil-mid: #2f7d4a;
  --basil-soft: #e7efe9;
  --success: #2f7d4a;
  --success-soft: #e4f1e8;
  --dough: #faf7f2;
  --dough-deep: #e9d8c7;   /* warm sand */
  --charcoal: #1b1b1b;
  --charcoal-60: rgba(27, 27, 27, .62);
  --charcoal-12: rgba(27, 27, 27, .12);
  --white: #fffdfa;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Manrope", "Segoe UI", -apple-system, sans-serif;

  --shadow-card: 0 10px 30px -12px rgba(96, 58, 24, .18);
  --shadow-deep: 0 40px 80px -30px rgba(96, 58, 24, .38);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--dough);
  color: var(--charcoal);
  overflow-x: hidden;
}

/* ===================== NAV ===================== */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(20px, 6vw, 96px);
  transition: background .4s ease, box-shadow .4s ease;
}
.nav.is-scrolled {
  background: rgba(250, 247, 242, .85);
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  box-shadow: 0 1px 0 rgba(27, 27, 27, .07);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -.03em;
  text-transform: lowercase;
  color: var(--charcoal);
  text-decoration: none;
}
.nav__logo-mark { width: 34px; height: 34px; }

.nav__center {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3.4vw, 44px);
}
.nav__center a {
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  color: var(--charcoal);
  transition: color .2s ease;
}
.nav__center a:hover { color: var(--paprika); }

.nav__login {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  color: var(--charcoal);
}
.nav__login svg { width: 26px; height: 26px; }
.nav__login:hover { color: var(--paprika); }

/* ===================== BUTTONS ===================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--sans);
  font-weight: 800;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn--primary {
  background: var(--paprika);
  color: var(--white) !important;
  padding: 18px 32px;
  font-size: 17px;
  box-shadow: 0 16px 36px -14px rgba(241, 90, 36, .55), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn--primary:hover { background: var(--paprika-soft); transform: translateY(-2px); }
.btn--primary:focus-visible { outline: 3px solid rgba(241, 90, 36, .4); outline-offset: 3px; }
.btn--big { padding: 21px 40px; font-size: 19px; }

.btn__arrow {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-right: -10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .22);
  font-style: normal;
  font-size: 17px;
  transition: transform .2s ease;
}
.btn--hero:hover .btn__arrow { transform: translateX(3px); }

/* ===================== SCROLL DOTS ===================== */

.dots {
  position: fixed;
  right: clamp(12px, 2.5vw, 32px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.dots__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background: rgba(27, 27, 27, .22);
  cursor: pointer;
  padding: 0;
  transition: height .35s ease, background .35s ease;
}
.dots__dot:hover { background: rgba(27, 27, 27, .45); }
.dots__dot:focus-visible { outline: 2px solid var(--paprika); outline-offset: 3px; }
.dots__dot.is-active {
  height: 28px;
  background: var(--paprika);
}

/* ===================== TRACK & STAGE ===================== */

.track { height: 900vh; position: relative; }

.stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  animation: stagein .5s ease both;
}
@keyframes stagein { from { opacity: 0; } }

/* ===================== BACKDROP ===================== */

.room {
  position: absolute;
  inset: -3%;
  background: var(--dough);
  will-change: transform, filter;
}

/* --- party illustration (drop-in upgrade, see ASSETS.md) ---
   multiply blend melts a white/light background into the cream page */
.room__party {
  position: absolute;
  right: -3%;
  bottom: -1%;
  width: min(74%, 1240px);
  max-height: 96%;
  object-fit: contain;
  object-position: right bottom;
  mix-blend-mode: multiply;
  opacity: 0;
  transition: opacity .8s ease;
}
.room.has-photo .room__party { opacity: .96; }
/* soft cream fade over the illustration's left & top edges */
.room.has-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--dough) 22%, rgba(250, 247, 242, .5) 44%, rgba(250, 247, 242, 0) 62%),
    linear-gradient(var(--dough) 4%, rgba(250, 247, 242, 0) 30%);
  pointer-events: none;
}

/* --- ambient blobs (until photos are provided) --- */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
}
.blob--peach {
  width: 60vmax; height: 46vmax;
  right: -18vmax; top: -10vmax;
  background: radial-gradient(circle, rgba(244, 150, 100, .35), rgba(244, 150, 100, 0) 68%);
}
.blob--basil {
  width: 34vmax; height: 34vmax;
  right: 16vmax; bottom: -14vmax;
  background: radial-gradient(circle, rgba(63, 116, 72, .16), rgba(63, 116, 72, 0) 70%);
}
.blob--sand {
  width: 40vmax; height: 34vmax;
  left: -14vmax; bottom: -8vmax;
  background: radial-gradient(circle, rgba(233, 216, 199, .8), rgba(233, 216, 199, 0) 70%);
}

/* fine film grain, very subtle on cream */
.grain {
  position: absolute;
  inset: -8%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.2  0 0 0 0 0.12  0 0 0 0 0.05  0.5 0 0 0 0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 300px 300px;
  opacity: .05;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 6;
}

/* --- finale pizzas --- */
.prop { position: absolute; }
.pz {
  opacity: 0;
  transform: scale(.6) rotate(-8deg);
  transition: opacity .8s ease, transform .9s cubic-bezier(.16, 1.3, .3, 1);
  will-change: transform, opacity;
}
.pz svg { width: 100%; height: 100%; display: block; }
.pz--main  { left: 62%; top: 6%; width: 42vmin; height: 42vmin; }
.pz--eaten { left: 4%; bottom: 4%; width: 30vmin; height: 30vmin; transform: scale(.6) rotate(30deg); }
body[data-scene="6"] .pz { opacity: 1; transform: scale(1) rotate(0deg); }
body[data-scene="6"] .pz--eaten { transform: scale(1) rotate(14deg); transition-delay: .12s; }
/* the illustration already shows the feast — hide decorative pizzas then */
.room.has-photo .pz { display: none; }

/* ===================== BRAND ORBITS ===================== */

.orbits { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.orbit { position: absolute; overflow: visible; }
.orbit--tr {
  width: min(44vw, 560px);
  aspect-ratio: 1;
  top: -12%;
  right: -10%;
  animation: orbitspin 90s linear infinite;
}
.orbit--bl {
  width: min(30vw, 380px);
  aspect-ratio: 1;
  bottom: -14%;
  left: -8%;
  animation: orbitspin 120s linear infinite reverse;
}
@keyframes orbitspin { to { transform: rotate(360deg); } }
.orbit__ring {
  fill: none;
  stroke: #b9a68e;
  stroke-width: 1.4;
  stroke-dasharray: 1 9;
  stroke-linecap: round;
  opacity: .5;
}
.orbit__dot--paprika { fill: var(--paprika); opacity: .8; }
.orbit__dot--basil { fill: var(--basil-mid); opacity: .7; }
.orbit__dot--sand { fill: var(--dough-deep); opacity: .9; }

/* ===================== PHONE ===================== */

.phone-wrap {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 10;
  opacity: 0;
  transform: translate(-50%, calc(-50% + 16vh));
  transition: opacity .42s ease;
  will-change: transform, opacity;
}

.phone {
  position: relative;
  width: min(350px, 78vw);
  aspect-ratio: 9 / 19;
  max-height: 78vh;
  border-radius: 46px;
  background: linear-gradient(155deg, #3a3835 0%, #201d1a 40%, #121009 100%);
  padding: 11px;
  box-shadow:
    var(--shadow-deep),
    0 18px 40px -18px rgba(96, 58, 24, .4),
    inset 0 1px 1px rgba(255, 255, 255, .18);
  transition: transform .6s ease;
  transform: rotate(4deg);
}
body[data-scene="1"] .phone { transform: rotate(6deg); }
body[data-scene="4"] .phone { transform: rotate(-3deg); }
body[data-scene="5"] .phone { transform: rotate(0deg); }

/* polished metal rim */
.phone::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 46px;
  padding: 2px;
  background: linear-gradient(155deg,
    rgba(255, 255, 255, .55), rgba(255, 255, 255, .08) 28%,
    rgba(255, 255, 255, 0) 55%, rgba(255, 255, 255, .28) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  pointer-events: none;
}
.phone__btn {
  position: absolute;
  right: -2.5px;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #45403c, #1b1713);
}
.phone__btn--power { top: 26%; height: 9%; }
.phone__btn--vol1 { left: -2.5px; right: auto; top: 22%; height: 6%; }
.phone__btn--vol2 { left: -2.5px; right: auto; top: 29.5%; height: 6%; }

.phone__notch {
  position: absolute;
  left: 50%; top: 20px;
  transform: translateX(-50%);
  width: 34%;
  height: 22px;
  border-radius: 999px;
  background: #121009;
  z-index: 3;
}
.phone__notch::after {
  content: "";
  position: absolute;
  right: 14%; top: 50%;
  width: 8px; height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #2c3a4a, #10161d 70%);
  box-shadow: inset 0 0 2px rgba(120, 160, 220, .5);
}

.phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 36px;
  background: var(--dough);
  overflow: hidden;
}
.phone__screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 40;
  background: linear-gradient(118deg,
    rgba(255, 255, 255, .10) 0%, rgba(255, 255, 255, .035) 24%,
    transparent 38%, transparent 100%);
  pointer-events: none;
}

.app__statusbar {
  position: absolute;
  inset: 0 0 auto 0;
  display: flex;
  justify-content: space-between;
  padding: 12px 22px 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--charcoal-60);
  z-index: 2;
}

/* in-app brand row */
.app__head {
  position: absolute;
  top: 34px; left: 20px; right: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
}
.app__brand { width: 22px; height: 22px; }
.app__step {
  font-size: 12px;
  font-weight: 800;
  color: var(--charcoal-60);
  opacity: 0;
  transition: opacity .3s ease;
}
.app__step.is-on { opacity: 1; }

.app__progress {
  position: absolute;
  top: 64px; left: 20px; right: 20px;
  height: 4px;
  border-radius: 99px;
  background: var(--dough-deep);
  opacity: 0;
  transition: opacity .3s ease;
  z-index: 2;
}
.app__progress.is-on { opacity: 1; }
.app__progress i {
  display: block;
  height: 100%;
  width: calc(var(--appp, 0) * 100%);
  border-radius: 99px;
  background: var(--paprika);
}

/* --- generic app screen --- */
.screen {
  position: absolute;
  inset: 0;
  padding: 82px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  transform: translateY(26px);
  pointer-events: none;
  transition: opacity .45s ease, transform .45s ease;
}
.screen.is-active { opacity: 1; transform: translateY(0); }
.screen--center {
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
}

.screen__q {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 6px;
}
.qnum {
  flex: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 2px solid var(--paprika);
  color: var(--paprika);
  font-style: normal;
  font-size: 13px;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.screen__q--tight { margin-bottom: 0; }
.screen__done { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.screen__note { font-size: 13px; color: var(--charcoal-60); }

/* --- options: bordered rows with radio-check (mockup style) --- */
.opt {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 13px 44px 13px 16px;
  border-radius: 14px;
  background: var(--white);
  border: 1.5px solid var(--charcoal-12);
  font-weight: 700;
  font-size: 14px;
  transition: border-color .35s ease, background .35s ease, transform .35s ease;
}
.opt--tall { padding-block: 17px; }
.opt__sub { font-style: normal; font-weight: 500; font-size: 12px; color: var(--charcoal-60); }
.opt::after {
  content: "";
  position: absolute;
  right: 14px; top: 50%;
  width: 20px; height: 20px;
  margin-top: -10px;
  border-radius: 50%;
  border: 2px solid var(--charcoal-12);
  transition: all .3s ease;
}
.opt.is-picked {
  border-color: var(--paprika);
  background: var(--paprika-tint);
  transform: scale(1.02);
}
.opt.is-picked::after {
  border-color: var(--paprika);
  background: var(--paprika) url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"%3E%3Cpath d="M5 12.5l4.5 4.5L19 7.5" fill="none" stroke="%23fff" stroke-width="3.4" stroke-linecap="round" stroke-linejoin="round"/%3E%3C/svg%3E') center/12px no-repeat;
}
.opt.is-picked .opt__sub { color: var(--paprika); font-weight: 700; }

/* --- fields (2.2) --- */
.field {
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--white);
  border: 1.5px solid var(--charcoal-12);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .4s ease, transform .4s ease, border-color .3s ease;
}
.screen.is-active .field { opacity: 1; transform: none; }
.screen.is-active .field--2 { transition-delay: .12s; }
.screen.is-active .field--3 { transition-delay: .24s; }
.field label { display: block; font-size: 10px; font-weight: 700; color: var(--charcoal-60); text-transform: uppercase; letter-spacing: .07em; }
.field strong { font-size: 14px; }

/* --- menu cards (2.3, mockup style) --- */
.mgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.mcard {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 10px 12px;
  border-radius: 14px;
  background: var(--white);
  border: 1.5px solid var(--charcoal-12);
  font-weight: 800;
  font-size: 13px;
}
.mcard--on { border-color: var(--paprika); background: var(--paprika-tint); }
.mcard--on::after {
  content: "";
  position: absolute;
  right: 8px; top: 8px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--paprika) url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"%3E%3Cpath d="M5 12.5l4.5 4.5L19 7.5" fill="none" stroke="%23fff" stroke-width="3.4" stroke-linecap="round" stroke-linejoin="round"/%3E%3C/svg%3E') center/10px no-repeat;
}
.mthumb {
  width: 52px; height: 52px;
  border-radius: 50%;
  position: relative;
}
.mthumb--pizza {
  background: radial-gradient(circle at 45% 35%, #f0c76e, #d99b43 62%, #c07f2c 100%);
  box-shadow: inset 0 0 0 5px #cd8127;
}
.mthumb--pizza::after {
  content: "";
  position: absolute;
  inset: 26% 34% auto auto;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #c74a28;
  box-shadow: -14px 9px 0 -1px #c74a28, -5px 19px 0 0 #a03418;
}
.mthumb--snack {
  background: radial-gradient(circle at 42% 36%, #f3e3c8, #e4cba0 70%);
}
.mthumb--snack::after {
  content: "";
  position: absolute;
  left: 10px; top: 12px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 32%, #e8b169, #c48844);
  box-shadow: 15px 2px 0 0 #d29a55, 7px 14px 0 0 #c48844, 20px 15px 0 -2px #daa661;
}
.mthumb--drink {
  background: radial-gradient(circle at 45% 35%, #ffe3b0, #e9a83e 68%, #c9821c 100%);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .55);
}
.mthumb--dessert {
  background: radial-gradient(circle at 45% 35%, #f7d9c8, #e3a988 66%, #c97f56 100%);
}
.mthumb--dessert::after {
  content: "";
  position: absolute;
  inset: 30%;
  border-radius: 50%;
  background: var(--white);
}

/* --- app buttons --- */
.app-btn {
  margin-top: auto;
  padding: 15px 18px;
  border: none;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 15px;
  cursor: default;
  position: relative;
}
.app-btn--primary {
  background: var(--paprika);
  color: var(--white);
  box-shadow: 0 10px 24px -8px rgba(241, 90, 36, .5), inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform .25s ease, background .3s ease;
}
.screen--center .app-btn { margin-top: 8px; width: 100%; }
.app-btn.is-pressed { transform: scale(.96); background: #d84c17; }

/* "Toliau" with arrow chip (mockup) */
.app-btn--next {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.app-btn__arr {
  display: grid;
  place-items: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .25);
  font-size: 13px;
}

.payspinner {
  position: absolute;
  left: 50%; top: 50%;
  width: 18px; height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, .35);
  border-top-color: var(--white);
  opacity: 0;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.app-btn.is-loading .paylabel { opacity: 0; }
.app-btn.is-loading .payspinner { opacity: 1; }

/* --- big check circles --- */
.bigcheck {
  width: 84px; height: 84px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transform: scale(.5);
  transition: transform .5s cubic-bezier(.2, 1.6, .4, 1);
}
.screen.is-active .bigcheck { transform: scale(1); }
.bigcheck svg { width: 42px; height: 42px; }
.bigcheck--orange { background: var(--paprika-tint); color: var(--paprika); }
.bigcheck--green { background: var(--success-soft); color: var(--success); }

/* --- share (scene 3) --- */
.linkchip {
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--white);
  border: 1.5px solid var(--charcoal-12);
  font-weight: 800;
  font-size: 15px;
  color: var(--paprika);
}
.deadline { font-size: 13px; color: var(--charcoal-60); }
.deadline strong { color: var(--charcoal); }
.sharesheet {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .4s ease, transform .4s ease;
}
.sharesheet.is-on { opacity: 1; transform: none; }
.sharesheet span {
  padding: 8px 14px;
  border-radius: 99px;
  background: var(--white);
  border: 1.5px solid var(--charcoal-12);
  font-size: 12px;
  font-weight: 700;
}

/* --- dishes (scene 4) --- */
.dish {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 44px 11px 14px;
  border-radius: 14px;
  background: var(--white);
  border: 1.5px solid var(--charcoal-12);
  transition: border-color .35s ease, background .35s ease;
}
.dish::after {
  content: "";
  position: absolute;
  right: 14px; top: 50%;
  width: 20px; height: 20px;
  margin-top: -10px;
  border-radius: 50%;
  border: 2px solid var(--charcoal-12);
  transition: all .3s ease;
}
.dish.is-picked { border-color: var(--paprika); background: var(--paprika-tint); }
.dish.is-picked::after {
  border-color: var(--paprika);
  background: var(--paprika) url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"%3E%3Cpath d="M5 12.5l4.5 4.5L19 7.5" fill="none" stroke="%23fff" stroke-width="3.4" stroke-linecap="round" stroke-linejoin="round"/%3E%3C/svg%3E') center/12px no-repeat;
}
.dish__pic {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: radial-gradient(circle at 45% 35%, #f0c76e, #d99b43 70%);
  box-shadow: inset 0 0 0 4px #cd8127;
  position: relative;
  flex: none;
}
.dish__pic::after {
  content: "";
  position: absolute;
  inset: 30% 40% auto auto;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #c74a28;
  box-shadow: -12px 8px 0 -1px #c74a28, -4px 16px 0 0 #a03418;
}
.dish__pic--marg::after { background: #3f7448; box-shadow: -12px 8px 0 -1px #3f7448, -4px 16px 0 0 #2c5a36; }
.dish__name { font-weight: 800; font-size: 14px; }
.dish__price { margin-left: auto; font-weight: 700; font-size: 13px; color: var(--charcoal-60); font-variant-numeric: tabular-nums; }
.dish.is-picked .dish__price { color: var(--paprika); }

/* --- cart (scene 4) --- */
.cartline {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--white);
  border: 1.5px solid var(--charcoal-12);
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .4s ease, transform .4s ease;
  font-variant-numeric: tabular-nums;
}
.screen.is-active .cartline { opacity: 1; transform: none; }
.screen.is-active .cartline--2 { transition-delay: .15s; }
.screen.is-active .cartline--total { transition-delay: .3s; }
.cartline .green { color: var(--success); }
.cartline--total { font-weight: 800; font-size: 15px; border-color: var(--dough-deep); background: var(--white); }
.discount-tag {
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 99px;
  background: var(--basil-soft);
  color: var(--basil);
  font-size: 12px;
  font-weight: 800;
  opacity: 0;
  transform: scale(.8);
  transition: opacity .4s ease .25s, transform .4s cubic-bezier(.2, 1.6, .4, 1) .25s;
}
.screen.is-active .discount-tag { opacity: 1; transform: none; }

/* --- organizer dashboard (scene 5) --- */
.dashprog { margin-bottom: 2px; }
.dashprog__row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: var(--charcoal-60);
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
.dashprog__row b { color: var(--charcoal); }
.dashprog__bar {
  height: 6px;
  border-radius: 99px;
  background: var(--dough-deep);
  overflow: hidden;
}
.dashprog__bar i {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 99px;
  background: var(--success);
  transition: width .3s ease;
}

.guest {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 12px;
  background: var(--white);
  border: 1.5px solid var(--charcoal-12);
  font-size: 13px;
  font-weight: 700;
}
.guest__dot {
  width: 20px; height: 20px;
  flex: none;
  border-radius: 50%;
  background: var(--dough-deep);
  position: relative;
  transition: background .35s ease;
}
.guest__dot::after {
  content: "";
  position: absolute;
  left: 6px; top: 4px;
  width: 5px; height: 9px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform .3s ease;
}
.guest em {
  margin-left: auto;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  color: var(--charcoal-60);
  transition: color .35s ease;
}
.guest.is-paid .guest__dot { background: var(--success); }
.guest.is-paid .guest__dot::after { transform: rotate(45deg) scale(1); }
.guest.is-paid em { color: var(--success); }

.dashsum {
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--white);
  border: 1.5px solid var(--charcoal-12);
  font-size: 12px;
  font-weight: 600;
  color: var(--charcoal-60);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dashsum__total {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px dashed var(--dough-deep);
  font-size: 14px;
  color: var(--charcoal);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* --- confirmed pizza slices assemble into a whole pizza --- */
.pizza-assemble {
  width: 118px;
  height: 118px;
  display: block;
  overflow: visible;
}
.pizza-shadow {
  fill: rgba(58, 36, 16, .16);
  opacity: 0;
  transform: scale(.72);
  transform-origin: 60px 60px;
  transition: opacity .45s ease .22s, transform .65s cubic-bezier(.2, 1.35, .3, 1) .22s;
}
.pizza-slice {
  transform-box: view-box;
  transform-origin: 60px 60px;
  opacity: 0;
  filter: url(#confirmPizzaShadow);
  transform: rotate(var(--slice-angle)) translateY(-42px) scale(.82);
  transition: transform .72s cubic-bezier(.17, 1.25, .32, 1), opacity .38s ease;
}
.pizza-slice__cheese {
  fill: url(#confirmCheese);
  stroke: rgba(121, 69, 18, .18);
  stroke-width: 1;
  stroke-linejoin: round;
}
.pizza-slice__crust {
  fill: none;
  stroke: url(#confirmCrust);
  stroke-width: 10;
  stroke-linecap: round;
}
.pizza-slice__pep { fill: url(#confirmPepperoni); }
.pizza-slice__leaf { fill: var(--basil-mid); opacity: .9; }
.pizza-slice--1 { --slice-angle: 0deg; }
.pizza-slice--2 { --slice-angle: 60deg; }
.pizza-slice--3 { --slice-angle: 120deg; }
.pizza-slice--4 { --slice-angle: 180deg; }
.pizza-slice--5 { --slice-angle: 240deg; }
.pizza-slice--6 { --slice-angle: 300deg; }
.screen.is-active .pizza-shadow { opacity: 1; transform: scale(1); }
.screen.is-active .pizza-slice {
  opacity: 1;
  transform: rotate(var(--slice-angle)) translateY(0) scale(1);
}
.screen.is-active .pizza-slice--1 { transition-delay: .04s; }
.screen.is-active .pizza-slice--2 { transition-delay: .11s; }
.screen.is-active .pizza-slice--3 { transition-delay: .18s; }
.screen.is-active .pizza-slice--4 { transition-delay: .25s; }
.screen.is-active .pizza-slice--5 { transition-delay: .32s; }
.screen.is-active .pizza-slice--6 { transition-delay: .39s; }

/* ===================== FLYING AVATARS (scene 3) ===================== */

.flock { position: absolute; inset: -8vh -15vw; pointer-events: none; }
.fly {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transform: translate(0, 0) scale(.2);
  transition: transform .8s cubic-bezier(.2, 1.2, .3, 1), opacity .5s ease;
}
.fly__ava {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 19px;
  color: var(--white);
  box-shadow: 0 14px 28px -10px rgba(96, 58, 24, .45), 0 0 0 3px var(--white);
}
.fly--1 .fly__ava, .fly--4 .fly__ava { background: var(--paprika); }
.fly--2 .fly__ava, .fly--5 .fly__ava { background: var(--basil-mid); }
.fly--3 .fly__ava { background: var(--dough-deep); color: var(--charcoal); }
.fly__st {
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--white);
  color: var(--charcoal);
  font-size: 11px;
  font-weight: 800;
  box-shadow: var(--shadow-card);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .4s ease, transform .4s ease;
}
.fly--1 { left: 6%;  top: 16%; }
.fly--2 { left: 0;   top: 52%; }
.fly--3 { right: 4%; top: 12%; }
.fly--4 { right: 0;  top: 48%; }
.fly--5 { left: 12%; top: 80%; }

.flock.is-on .fly { opacity: 1; transform: translate(0, 0) scale(1); }
.flock.is-on .fly--2 { transition-delay: .1s; }
.flock.is-on .fly--3 { transition-delay: .2s; }
.flock.is-on .fly--4 { transition-delay: .3s; }
.flock.is-on .fly--5 { transition-delay: .4s; }
.flock.has-status .fly__st { opacity: 1; transform: none; }
.flock.has-status .fly--2 .fly__st { transition-delay: .12s; }
.flock.has-status .fly--3 .fly__st { transition-delay: .24s; }
.flock.has-status .fly--4 .fly__st { transition-delay: .36s; }
.flock.has-status .fly--5 .fly__st { transition-delay: .48s; }

.fly--3 .fly__ava { position: relative; }
.fly--3 .fly__ava::after {
  content: "✓";
  position: absolute;
  right: -4px; bottom: -4px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--success);
  color: var(--white);
  font-size: 12px;
  display: grid;
  place-items: center;
  transform: scale(0);
  transition: transform .4s cubic-bezier(.2, 1.6, .4, 1);
}
.flock.paid-one .fly--3 .fly__ava::after { transform: scale(1); }

/* ===================== COPY OVERLAYS ===================== */

.copy__block {
  position: absolute;
  left: clamp(20px, 6vw, 96px);
  top: 50%;
  transform: translateY(-50%);
  max-width: min(560px, 44vw);
  z-index: 20;
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s ease, transform .5s ease, visibility .5s;
}
.copy__block.is-on { opacity: 1; visibility: visible; }

/* badge pill (mockup) */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(27, 27, 27, .18);
  background: rgba(255, 253, 250, .6);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 26px;
}
.badge svg { width: 15px; height: 15px; color: var(--paprika); }

.eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--paprika);
  margin-bottom: 18px;
}
.eyebrow::after {
  content: "";
  display: block;
  width: 30px;
  height: 3px;
  border-radius: 2px;
  background: var(--paprika);
  margin-top: 10px;
}
.copy__block--final .eyebrow::after { margin-inline: auto; }

/* statement headlines: heavy rounded sans, charcoal, paprika accent */
.headline {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(36px, 4.6vw, 66px);
  line-height: 1.06;
  letter-spacing: -.035em;
  color: var(--charcoal);
  margin-bottom: 22px;
  text-wrap: balance;
}
.headline--md { font-size: clamp(28px, 3.4vw, 46px); }
.accent { color: var(--paprika); }
.squiggle {
  display: inline-block;
  width: 1.35em;
  height: .3em;
  margin-left: .18em;
  color: var(--basil-mid);
}

/* hero block: statement scale + staged entrance */
#text-1 { max-width: min(700px, 52vw); }
#text-1 .headline { font-size: clamp(40px, 5vw, 76px); line-height: 1.04; }
#text-1 > * {
  opacity: 0;
  translate: 0 26px;
  animation: riseIn .9s cubic-bezier(.2, .7, .3, 1) forwards;
}
#text-1 .badge { animation-delay: .25s; }
#text-1 .headline { animation-delay: .4s; }
#text-1 .lede { animation-delay: .55s; }
#text-1 .btn { animation-delay: .7s; }
#text-1 .chips { animation-delay: .85s; }
@keyframes riseIn { to { opacity: 1; translate: 0 0; } }

.lede {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: rgba(27, 27, 27, .72);
  margin-bottom: 30px;
  max-width: 46ch;
}

.micro {
  margin-top: 14px;
  font-size: 13px;
  color: rgba(27, 27, 27, .5);
}

/* feature chips (mockup) */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px 10px 10px;
  border-radius: 15px;
  background: var(--white);
  box-shadow: var(--shadow-card);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}
.chip__ic {
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.chip__ic svg { width: 17px; height: 17px; }
.chip__ic--basil { background: var(--basil); color: var(--white); }
.chip__ic--paprika { background: var(--paprika); color: var(--white); }

/* slice rhythm divider */
.slicerow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 26px;
}
.slicerow svg {
  width: 18px;
  height: 18px;
  fill: var(--dough-deep);
  stroke: var(--dough-deep);
  opacity: .9;
}
.slicerow__dot { width: 7px; height: 7px; border-radius: 50%; }
.slicerow__dot--basil { background: var(--basil-mid); }
.slicerow__dot--paprika { background: var(--paprika); }

/* swappable captions in scene 2 */
.lede--swap {
  position: absolute;
  margin-bottom: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .4s ease, transform .4s ease;
}
.lede--swap.is-on { opacity: 1; transform: none; position: relative; }

.copy__block--side { max-width: min(500px, 38vw); }

.copy__block--final {
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  max-width: min(760px, 88vw);
  padding: 44px 48px;
  border-radius: 32px;
  background: radial-gradient(closest-side,
    rgba(250, 247, 242, .95) 55%, rgba(250, 247, 242, .72) 80%, rgba(250, 247, 242, 0));
}
.copy__block--final .lede { margin-inline: auto; }

/* ===================== SCROLL HINT ===================== */

.scrollhint {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(27, 27, 27, .55);
  transition: opacity .5s ease;
  opacity: 0;
  animation: riseIn .9s ease 1.15s forwards;
}
.scrollhint span {
  width: 22px; height: 34px;
  border: 2px solid rgba(27, 27, 27, .35);
  border-radius: 99px;
  position: relative;
}
.scrollhint span::after {
  content: "";
  position: absolute;
  left: 50%; top: 6px;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 99px;
  background: var(--paprika);
  animation: wheel 1.6s ease-in-out infinite;
}
@keyframes wheel {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}
.scrollhint.is-hidden { opacity: 0; animation: none; }

/* ===================== FOOTER ===================== */

.footer {
  position: relative;
  z-index: 45;
  background: var(--white);
  border-top: 1px solid rgba(27, 27, 27, .08);
  color: var(--charcoal);
  padding: 64px clamp(20px, 6vw, 96px) 40px;
}
.footer__inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px 32px;
  align-items: center;
}
.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -.03em;
  text-transform: lowercase;
  color: var(--charcoal);
  text-decoration: none;
}
.footer__logo svg { width: 30px; height: 30px; }
.footer__tag { grid-column: 1; font-size: 14px; color: var(--charcoal-60); }
.footer__links { grid-column: 2; grid-row: 1; display: flex; gap: 24px; }
.footer__links a {
  color: var(--charcoal);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}
.footer__links a:hover { color: var(--paprika); }
.footer__copy { grid-column: 2; justify-self: end; font-size: 13px; color: var(--charcoal-60); }

/* ===================== PHONE POSITION PER SCENE ===================== */

@media (min-width: 981px) {
  body[data-scene="1"] .phone-wrap,
  body[data-scene="2"] .phone-wrap,
  body[data-scene="3"] .phone-wrap,
  body[data-scene="4"] .phone-wrap,
  body[data-scene="5"] .phone-wrap { left: 68%; }
}

/* ===================== RESPONSIVE ===================== */

@media (max-width: 980px) {
  .copy__block,
  .copy__block--side {
    left: 50%;
    top: auto;
    bottom: max(10px, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    max-width: calc(100vw - 20px);
    width: calc(100vw - 20px);
    text-align: center;
    background: rgba(255, 253, 250, .92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 22px;
    box-shadow: var(--shadow-card);
    padding: 14px 16px 16px;
  }
  .copy__block--final {
    top: 50%;
    bottom: auto;
    transform: translate(-50%, -50%);
  }
  #text-1 { max-width: calc(100vw - 20px); }
  #text-1 .headline { font-size: clamp(22px, 5.8vw, 30px); line-height: 1.05; }
  .headline { font-size: clamp(20px, 5.4vw, 28px); margin-bottom: 6px; line-height: 1.1; }
  .headline--md { font-size: clamp(18px, 5vw, 24px); }
  .badge { margin-bottom: 8px; padding: 6px 12px; font-size: 10px; }
  .eyebrow { margin-bottom: 6px; font-size: 11px; }
  .eyebrow::after { margin-inline: auto; }
  .lede { font-size: 13px; margin-bottom: 10px; margin-inline: auto; line-height: 1.35; }
  .btn--primary { padding: 11px 20px; font-size: 14px; }
  .btn--hero { margin-top: 2px; }
  .chips { justify-content: center; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
  .chip { padding: 6px 10px 6px 6px; font-size: 10.5px; }
  .chip__ic { width: 22px; height: 22px; }
  .chip__ic svg { width: 12px; height: 12px; }

  /* Phone: fit in the top half of the screen without touching the copy card */
  .phone {
    width: min(210px, 54vw);
    max-height: 44vh;
    border-radius: 32px;
    padding: 7px;
    transform: rotate(3deg);
  }
  body[data-scene="1"] .phone { transform: rotate(4deg); }
  .phone::before { border-radius: 32px; }
  .phone__screen { border-radius: 25px; }
  .phone-wrap { top: 26%; }
  .phone__notch { top: 14px; height: 18px; width: 30%; }
  .screen { padding: 54px 12px 12px; gap: 6px; }
  .screen__q { font-size: 14px; }
  .qnum { width: 18px; height: 18px; font-size: 10px; }
  .app__head { top: 22px; left: 12px; right: 12px; }
  .app__progress { top: 44px; left: 12px; right: 12px; }
  .app__statusbar { padding: 7px 14px 0; font-size: 9px; }
  .opt { padding: 8px 34px 8px 10px; font-size: 12px; }
  .app-btn { padding: 10px 12px; font-size: 12.5px; }

  .nav { padding: 10px 14px; }
  .nav__center { display: none; }
  .nav__login { font-size: 13px; }
  .nav__login svg { width: 20px; height: 20px; }
  .nav__logo { font-size: 17px; }

  .dots { right: 8px; gap: 8px; }
  .dots__dot { width: 5px; height: 14px; }
  .dots__dot.is-active { height: 22px; }

  .fly__ava { width: 34px; height: 34px; font-size: 13px; }
  .fly--1 { left: 4%;  top: 10%; }
  .fly--2 { left: 2%;  top: 40%; }
  .fly--3 { right: 4%; top: 8%; }
  .fly--4 { right: 2%; top: 36%; }
  .fly--5 { left: 12%; top: 68%; }

  .pz--main { left: 52%; top: 2%; width: 36vmin; height: 36vmin; }
  .pz--eaten { left: 2%; bottom: 2%; width: 24vmin; height: 24vmin; }

  .scrollhint { bottom: 8px; font-size: 10px; }

  .footer { padding: 36px 18px 26px; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__links, .footer__copy { grid-column: 1; justify-self: start; }
}

/* Very narrow / short phones */
@media (max-width: 380px), (max-height: 700px) and (max-width: 980px) {
  #text-1 .headline { font-size: clamp(19px, 5.2vw, 24px); }
  .lede { font-size: 12.5px; margin-bottom: 8px; }
  .btn--primary { padding: 10px 18px; font-size: 13px; }
  .chips { margin-top: 8px; }
  .phone { width: min(190px, 50vw); max-height: 40vh; }
  .phone-wrap { top: 24%; }
  .copy__block { padding: 12px 14px 14px; }
}

/* ===================== REDUCED MOTION ===================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
  /* Keep pizza assembled without rotation animation */
  .pizza-slice { opacity: 1 !important; transform: none !important; transition: none !important; }
  .orbit, .orbit--reverse { animation: none !important; }
  .scrollhint { animation: none !important; }
  .marquee__track { animation: none !important; }
}
