/* =====================================================================
   PLANA — the wavy-blob app page. Rose / tomato / butter / sage,
   scalloped stickers, squiggles and three working phone mockups.
   ===================================================================== */

.page-plana {
  --pl-rose: #ecbcb2;
  --pl-rose-2: #f6dcd4;
  --pl-tomato-deep: #c4472f;   /* tomato that carries cream text at AA */
  --pl-phone: #2a2428;
  background: var(--cream);
}

/* ---------- shared phone ---------- */
.phone {
  --pw: 300px;
  position: relative;
  width: var(--pw);
  max-width: 100%;
  height: calc(var(--pw) * 2.166);
  flex: none;
  transform-style: preserve-3d;
  will-change: transform;
}
.phone__frame {
  position: relative; height: 100%;
  padding: 10px;
  border-radius: 52px;
  background: linear-gradient(145deg, #3a3236, var(--pl-phone) 40%, #1d191c);
  box-shadow:
    0 50px 80px -30px rgba(63, 54, 49, .55),
    0 18px 30px -12px rgba(63, 54, 49, .35),
    inset 0 0 0 1.5px #51464c,
    inset 0 0 0 4px #1b171a;
}
.phone__frame::before, .phone__frame::after {   /* side buttons */
  content: ''; position: absolute; width: 3px; border-radius: 3px; background: #3a3236;
}
.phone__frame::before { left: -3px; top: 22%; height: 9%; box-shadow: 0 60px 0 #3a3236; }
.phone__frame::after { right: -3px; top: 28%; height: 13%; }
.phone__screen {
  position: relative; height: 100%; overflow: hidden;
  border-radius: 42px;
  display: flex; flex-direction: column;
  background: var(--scr-bg, var(--cream));
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.35;
  isolation: isolate;
}
.phone__status {
  position: relative; flex: none; height: 46px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 24px 0 30px;
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; color: var(--ink-2);
}
.phone__island {
  position: absolute; left: 50%; top: 11px; translate: -50% 0;
  width: 90px; height: 26px; border-radius: 20px; background: #121012;
}
.phone__icons { display: inline-flex; gap: 3px; align-items: flex-end; }
.phone__icons i { display: block; width: 4px; background: currentColor; border-radius: 1px; }
.phone__icons i:nth-child(1) { height: 5px; }
.phone__icons i:nth-child(2) { height: 8px; }
.phone__icons i:nth-child(3) { height: 11px; width: 18px; border-radius: 3px; margin-left: 4px; background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; position: relative; }
.phone__icons i:nth-child(3)::after { content: ''; position: absolute; inset: 2.5px 5px 2.5px 2.5px; background: currentColor; border-radius: 1px; }

.scr__top {
  flex: none; display: flex; align-items: center; justify-content: space-between;
  padding: 2px 16px 6px;
}
.scr__title { font-size: 12px; font-weight: 500; letter-spacing: .02em; }
.scr__icon {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(254, 249, 237, .65); font-size: 16px; line-height: 1;
}
.scr__body {
  position: relative; flex: 1; min-height: 0;
  overflow-y: auto; overscroll-behavior: contain;
  padding: 4px 16px 18px;
  scrollbar-width: none;
}
.scr__body::-webkit-scrollbar { display: none; }

/* ---------- HERO ---------- */
.pl-hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh;
  padding: calc(var(--header-h) + 70px) 0 120px;
  background:
    radial-gradient(60% 50% at 80% 30%, var(--pl-rose-2), transparent 70%),
    radial-gradient(50% 60% at 10% 90%, #f3c9bd, transparent 70%),
    var(--pl-rose);
}
.pl-hero__blob { position: absolute; z-index: -1; pointer-events: none; }
.pl-hero__blob::before { content: ''; position: absolute; inset: 0; background: var(--b); -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; animation: spin var(--t, 50s) linear infinite; }
.pl-hero__blob--tomato { --b: var(--tomato); --m: url('../assets/shapes/scallop-16.svg'); --t: 70s; width: min(58vw, 760px); aspect-ratio: 1; right: -8vw; top: 6vh; opacity: .92; }
.pl-hero__blob--butter { --b: var(--butter); --m: url('../assets/shapes/flower-8.svg'); --t: 40s; width: 220px; aspect-ratio: 1; left: -60px; top: 18%; }
.pl-hero__blob--sage { --b: var(--sage); --m: url('../assets/shapes/sun-24.svg'); --t: 90s; width: 160px; aspect-ratio: 1; left: 38%; bottom: 40px; }

.pl-hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center; gap: clamp(2rem, 5vw, 5rem);
}
.pl-eyebrow { color: var(--ink-2); }
.pl-title {
  font-family: var(--font-serif); font-weight: 450;
  font-size: clamp(5.5rem, 17vw, 15.5rem); line-height: .82; letter-spacing: -.045em;
  color: var(--ink-2); margin: .2em 0 .12em -.04em;
}
.pl-title__word { display: inline-flex; }
.pl-title__word > span, .pl-title em > span { display: inline-block; transform-origin: 50% 90%; }
.pl-title em { font-style: italic; display: inline-flex; color: var(--pl-tomato-deep); padding-right: .06em; }
.pl-hero__tagline {
  font-family: var(--font-serif); font-size: clamp(1.4rem, 2.4vw, 2.15rem); line-height: 1.15; color: var(--ink-2);
  max-width: 20ch;
}
.pl-hero__tagline em { font-style: italic; }
.pl-hero__body { margin-top: 1.25rem; max-width: 46ch; color: var(--ink-2); font-size: 14px; }
.pl-hero__ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.pl-hero__stage { position: relative; display: grid; place-items: center; min-height: 640px; }
.pl-hero__squiggle { width: 120%; left: -10%; top: 8%; height: 80%; z-index: 0; }
.pl-hero__squiggle path { stroke: var(--ink-2); stroke-width: 1.4; }
.phone--hero { --pw: 300px; z-index: 1; transform: rotate(4deg); }
.pl-hero__st { position: absolute; z-index: 2; transition: none; }
.pl-hero__st--a { left: 2%; top: 14%; transform: rotate(-12deg); --s-bg: var(--pl-tomato-deep) !important; }
.pl-hero__st--b { right: 0; top: 42%; transform: rotate(10deg); }
.pl-hero__st--c { left: 8%; bottom: 6%; transform: rotate(-6deg); }

.scr--hero { --scr-bg: var(--butter); }
.hero-scr { padding: 6px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; min-height: 0; }
.hero-scr__big { font-family: var(--font-serif); font-size: 40px; line-height: .92; letter-spacing: -.02em; margin-top: 6px; }
.hero-scr__meta { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; }
.hero-scr__photo { position: relative; flex: 1; min-height: 120px; border-radius: 26px; overflow: hidden; }
.hero-scr__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-scr__band {
  position: relative; display: flex; justify-content: space-between; align-items: center; padding: 18px 18px; margin: 0 -18px;
  font-size: 12px; font-weight: 500; isolation: isolate;
}
.hero-scr__band::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--butter-2); -webkit-mask: url('../assets/shapes/sine-band.svg') 0 0 / 100% 100%; mask: url('../assets/shapes/sine-band.svg') 0 0 / 100% 100%; }
.hero-scr__count { font-family: var(--font-serif); font-size: 18px; }
.hero-scr__faces { display: flex; align-items: center; margin-bottom: 6px; }
.hero-scr__faces span {
  width: 32px; height: 32px; margin-right: -8px; display: grid; place-items: center; color: var(--cream); font-size: 12px; font-weight: 500; position: relative;
}
.hero-scr__faces span::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--c); -webkit-mask: url('../assets/shapes/scallop-12.svg') center / contain; mask: url('../assets/shapes/scallop-12.svg') center / contain; }
.hero-scr__faces b { margin-left: 18px; font-weight: 500; }
.scr__dock {
  flex: none; margin: 8px 12px 12px; height: 54px; border-radius: 30px; background: var(--ink-2);
  display: flex; align-items: center; justify-content: space-around; padding: 0 12px;
}
.scr__dock span { width: 16px; height: 16px; border-radius: 5px; box-shadow: inset 0 0 0 1.5px rgba(254, 249, 237, .7); }
.scr__dock .scr__dock-plus { width: 40px; height: 40px; border-radius: 50%; background: var(--cream); box-shadow: none; color: var(--ink-2); display: grid; place-items: center; font-size: 22px; margin-top: -22px; }

.pl-hero__edge { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 40px; fill: var(--cream); }

/* ---------- PROBLEM ---------- */
.pl-problem { padding: clamp(5rem, 10vw, 9rem) 0 clamp(3rem, 7vw, 6rem); }
.pl-problem__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 5rem); align-items: end; }
.pl-problem h2 em { font-style: italic; color: var(--pl-tomato-deep); }
.pl-problem__copy p + p { margin-top: 1rem; color: var(--ink-2); }
.pl-problem__row {
  position: relative; margin-top: clamp(3rem, 6vw, 5rem);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: center; justify-items: center; gap: 1rem;
}
.pl-problem__line { left: var(--edge); right: var(--edge); width: calc(100% - 2 * var(--edge)); top: 50%; height: 120px; translate: 0 -50%; z-index: -1; }
.pl-problem__line path { stroke: var(--ink-soft); stroke-dasharray: 6 8; }
.pl-problem__row { isolation: isolate; }
.pain { position: relative; display: grid; place-items: center; }
@media (min-width: 861px) {
  .pain .sticker { --s-size: 190px !important; font-size: 12px; }
  .pain--yes .sticker { --s-size: 230px !important; font-size: 13px; }
}
.pain:nth-child(2) { transform: rotate(-6deg); }
.pain:nth-child(3) { transform: rotate(5deg); }
.pain:nth-child(4) { transform: rotate(-3deg); }
.pain .sticker { color: var(--ink-soft); }
.pain s {
  position: absolute; inset: 0; pointer-events: none; font-size: 0;
  background: linear-gradient(to top right, transparent calc(50% - 1.5px), var(--pl-tomato-deep) calc(50% - 1.5px), var(--pl-tomato-deep) calc(50% + 1.5px), transparent calc(50% + 1.5px)) center / 70% 30% no-repeat;
  transform: rotate(-8deg);
}
.pain--yes .sticker { --s-bg: var(--pl-tomato-deep) !important; color: var(--cream); animation: wobble 3.2s ease-in-out infinite; }
@keyframes wobble { 50% { transform: rotate(8deg) scale(1.04); } }

/* ---------- HOW ---------- */
.pl-how { padding: clamp(3rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 7rem); }
.pl-head { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.pl-head h2 em, .pl-demo h2 em, .pl-gallery h2 em, .pl-reel h2 em { font-style: italic; color: var(--pl-tomato-deep); }
.pl-head--row { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; }
.pl-head--row > p { max-width: 34ch; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.step {
  position: relative; padding: 26px 22px 28px; border-radius: 28px; background: var(--paper);
  display: flex; flex-direction: column; gap: .7rem; overflow: hidden; isolation: isolate;
  transition: transform .6s var(--ease-spring);
}
.step::after {
  content: ''; position: absolute; z-index: -1; right: -40px; bottom: -40px; width: 130px; aspect-ratio: 1; background: var(--step); opacity: .55;
  -webkit-mask: url('../assets/shapes/scallop-12.svg') center / contain; mask: url('../assets/shapes/scallop-12.svg') center / contain;
  transition: transform 1s var(--ease-out);
}
.step:hover { transform: translateY(-6px) rotate(-1deg); }
.step:hover::after { transform: rotate(45deg) scale(1.3); }
.step p { color: var(--ink-2); font-size: 13.5px; }
.step__n { margin-bottom: .4rem; }
.step__n .serif { font-size: 26px; }
.pl-facts { list-style: none; padding: 0; margin-top: 16px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pl-facts li {
  padding: 14px 18px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); font-size: 12.5px; color: var(--ink-2);
}
.pl-facts b { font-weight: 500; color: var(--pl-tomato-deep); }

/* ---------- DEMO ---------- */
.pl-demo {
  position: relative; isolation: isolate;
  padding: clamp(5rem, 10vw, 8rem) 0 clamp(5rem, 10vw, 8rem);
  background: var(--paper);
}
.pl-demo::before, .pl-demo::after {   /* wavy top & bottom edges */
  content: ''; position: absolute; left: 0; right: 0; height: 36px; background: var(--paper);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 36' preserveAspectRatio='none'%3E%3Cpath d='M0 18 Q15 0 30 18 T60 18 V36 H0Z'/%3E%3C/svg%3E") 0 0 / 60px 100% repeat-x;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 36' preserveAspectRatio='none'%3E%3Cpath d='M0 18 Q15 0 30 18 T60 18 V36 H0Z'/%3E%3C/svg%3E") 0 0 / 60px 100% repeat-x;
}
.pl-demo::before { top: -35px; }
.pl-demo::after { bottom: -35px; transform: scaleY(-1); }
.pl-demo__head { display: grid; grid-template-columns: 1fr minmax(0, 34ch); gap: 2rem; align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.pl-demo__head .sim-badge { margin-bottom: 1rem; }
.pl-demo__note { color: var(--ink-2); font-size: 13.5px; }

.demo-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 3rem);
  justify-items: center; perspective: 1600px;
}
.demo-cell { display: flex; flex-direction: column; align-items: center; gap: 18px; margin: 0; width: 100%; }
.demo-cell--mid { transform: translateY(48px); }
.demo-cap {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2);
}
.demo-cap__n {
  width: 34px; height: 34px; display: grid; place-items: center; position: relative; color: var(--ink-2); font-size: 11px;
}
.demo-cap__n::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--butter); -webkit-mask: url('../assets/shapes/scallop-12.svg') center / contain; mask: url('../assets/shapes/scallop-12.svg') center / contain; }
.demo-cap { isolation: isolate; }

/* -- screen A: plan -- */
.scr--plan { --scr-bg: var(--butter); }
.plan-title { font-family: var(--font-serif); font-size: 30px; line-height: 1; letter-spacing: -.015em; }
.plan-meta { margin-top: 4px; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; }
.plan-going { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; min-height: 40px; }
.faces { list-style: none; padding: 0; display: flex; }
.face {
  --c: var(--tomato);
  position: relative; width: 38px; height: 38px; margin-right: -8px; display: grid; place-items: center;
  color: var(--cream); font-size: 13px; font-weight: 500; isolation: isolate;
}
.face::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--c); -webkit-mask: url('../assets/shapes/scallop-12.svg') center / contain; mask: url('../assets/shapes/scallop-12.svg') center / contain; }
.plan-going__n { font-size: 11px; font-weight: 500; padding: 6px 10px; border-radius: 999px; background: var(--cream); }

.who { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.who button {
  height: 28px; padding: 0 10px; border-radius: 999px; font-size: 11px; font-weight: 500;
  box-shadow: inset 0 0 0 1px rgba(63, 54, 49, .35); display: inline-flex; align-items: center; gap: 6px;
  transition: background .25s, color .25s, transform .4s var(--ease-spring);
}
.who button i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.who button[aria-checked='true'] { background: var(--ink-2); color: var(--cream); box-shadow: none; }
.who button:active { transform: scale(.94); }
.who button[hidden] { display: none; }

.menu-h { display: flex; justify-content: space-between; margin-top: 14px; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; }
.menu-h .muted { color: rgba(63, 54, 49, .7); }
.menu { list-style: none; padding: 0; margin-top: 8px; display: grid; gap: 7px; }
.menu li {
  display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center;
  padding: 6px 6px 6px 6px; border-radius: 18px; background: rgba(254, 249, 237, .72);
}
.menu img { width: 44px; height: 44px; border-radius: 14px; object-fit: cover; }
.menu b { display: block; font-weight: 500; font-size: 12.5px; }
.menu small { font-size: 11px; color: rgba(63, 54, 49, .8); }
.add-btn {
  width: 36px; height: 36px; border-radius: 50%; background: var(--ink-2); color: var(--cream);
  display: grid; place-items: center; font-size: 20px; line-height: 1;
  transition: transform .45s var(--ease-spring), background .2s;
}
.add-btn:hover { transform: rotate(90deg) scale(1.08); background: var(--pl-tomato-deep); }
.add-btn:active { transform: scale(.88); }

.cart {
  position: relative; margin: 14px -16px 0; padding: 22px 16px 22px; isolation: isolate; min-height: 120px;
}
.cart::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--cream); -webkit-mask: url('../assets/shapes/wavy-band.svg') 0 0 / 100% 100%; mask: url('../assets/shapes/wavy-band.svg') 0 0 / 100% 100%; }
.cart__h { display: flex; justify-content: space-between; font-size: 11px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.cart__list { list-style: none; padding: 0; margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; max-height: 66px; overflow-y: auto; scrollbar-width: none; }
.cart__list::-webkit-scrollbar { display: none; }
.cart__empty { font-size: 11.5px; color: var(--ink-soft); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 4px 0 4px; border-radius: 999px;
  background: var(--paper); font-size: 11px; font-weight: 500;
}
.chip img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.chip__by { width: 18px; height: 18px; border-radius: 50%; background: var(--c); color: var(--cream); font-size: 9.5px; display: grid; place-items: center; }
.chip__x { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; line-height: 1; color: var(--ink-soft); }
.chip__x:hover { background: var(--rose); color: var(--ink-2); }

.scr__toast {
  position: absolute; left: 14px; right: 14px; top: 48px; z-index: 5;
  padding: 10px 14px; border-radius: 18px; background: var(--ink-2); color: var(--cream); font-size: 11.5px;
  display: flex; align-items: center; gap: 8px;
  transform: translateY(-140%); opacity: 0; pointer-events: none;
  transition: transform .6s var(--ease-spring), opacity .3s;
}
.scr__toast.is-on { transform: none; opacity: 1; }
.scr__toast i { width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--butter)); flex: none; }

.flyer { position: fixed; z-index: 50; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; pointer-events: none; box-shadow: 0 10px 20px rgba(0, 0, 0, .2); }

/* -- screen B: split -- */
.scr--split { --scr-bg: var(--pl-rose); }
.split-title { font-family: var(--font-serif); font-size: 26px; line-height: 1; letter-spacing: -.015em; }
.seg {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; margin-top: 10px; padding: 4px; border-radius: 999px;
  background: rgba(254, 249, 237, .55); isolation: isolate;
}
.seg button { position: relative; z-index: 1; height: 32px; border-radius: 999px; font-size: 11.5px; font-weight: 500; transition: color .3s; }
.seg button[aria-checked='true'] { color: var(--cream); }
.seg__thumb { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--ink-2); transition: transform .55s var(--ease-spring); }
.seg[data-mode='equal'] .seg__thumb { transform: translateX(100%); }

.split-items { list-style: none; padding: 0; margin-top: 10px; display: grid; gap: 5px; max-height: 136px; overflow-y: auto; scrollbar-width: none; }
.split-items::-webkit-scrollbar { display: none; }
.split-items li { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 6px 6px 6px 10px; border-radius: 16px; background: rgba(254, 249, 237, .75); }
.si__row { display: flex; flex-direction: column; font-size: 11.5px; line-height: 1.2; min-width: 0; }
.si__row b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.si__row span { font-size: 10.5px; color: rgba(63, 54, 49, .8); }
.si__who { display: flex; gap: 3px; flex: none; }
.si__who button {
  height: 24px; width: 24px; padding: 0; border-radius: 50%; font-size: 10.5px; font-weight: 500;
  box-shadow: inset 0 0 0 1px rgba(63, 54, 49, .3); transition: background .2s, color .2s, transform .35s var(--ease-spring);
}
.si__who button[aria-pressed='true'] { background: var(--c); color: var(--cream); box-shadow: none; }
.si__who button:active { transform: scale(.9); }
.split-items.is-equal .si__who { opacity: .45; pointer-events: none; }
.split-empty { font-size: 11.5px; padding: 10px; color: var(--ink-2); }

.knobs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.knob { display: flex; flex-direction: column; gap: 3px; padding: 7px 8px; border-radius: 14px; background: var(--butter-2); font-size: 10px; letter-spacing: .03em; }
.knob input {
  width: 100%; border: 0; background: transparent; font-family: var(--font-serif); font-size: 18px; color: var(--ink-2); padding: 0;
  -moz-appearance: textfield; appearance: textfield;
}
.knob input::-webkit-outer-spin-button, .knob input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.knob:focus-within { box-shadow: 0 0 0 2px var(--pl-tomato-deep); }
.knobs__note { margin-top: 4px; font-size: 10px; color: rgba(63, 54, 49, .78); }

.sum { margin-top: 10px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; row-gap: 2px; font-size: 11px; }
.sum div { display: flex; justify-content: space-between; }
.sum dt { color: rgba(63, 54, 49, .82); }
.sum dd { margin: 0; font-variant-numeric: tabular-nums; }
.sum__total { grid-column: 1 / -1; align-items: baseline; margin-top: 4px; padding-top: 6px; border-top: 1px dashed rgba(63, 54, 49, .35); font-size: 13px; font-weight: 500; }
.sum__total dd { font-family: var(--font-serif); font-size: 20px; }

.people { list-style: none; padding: 0; margin-top: 10px; display: grid; gap: 5px; }
.person { display: grid; grid-template-columns: 28px 1fr auto; gap: 8px; align-items: center; }
.person .face { width: 28px; height: 28px; margin: 0; font-size: 11px; }
.person__bar { position: relative; height: 22px; border-radius: 999px; background: rgba(254, 249, 237, .5); overflow: hidden; }
.person__fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 999px; background: color-mix(in srgb, var(--c) 42%, #fef9ed); transition: width .8s var(--ease-spring); }
.person__name { position: absolute; left: 10px; top: 50%; translate: 0 -50%; font-size: 10.5px; font-weight: 500; color: var(--ink-2); mix-blend-mode: normal; }
.person__amt { font-family: var(--font-serif); font-size: 15px; min-width: 64px; text-align: right; font-variant-numeric: tabular-nums; }
.sum__check { margin-top: 8px; font-size: 10px; color: rgba(63, 54, 49, .78); }

.scr__foot { flex: none; padding: 8px 14px 16px; }
.pay-btn {
  width: 100%; height: 50px; border-radius: 999px; background: var(--ink-2); color: var(--cream); font-size: 12px; font-weight: 500;
  transition: transform .45s var(--ease-spring), background .2s;
}
.pay-btn:hover { transform: scale(1.02); background: #2a2320; }
.pay-btn:active { transform: scale(.97); }

.pay-sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; padding: 12px 16px 20px;
  background: var(--cream); border-radius: 30px 30px 40px 40px; box-shadow: 0 -20px 40px rgba(63, 54, 49, .25);
  display: flex; flex-direction: column; gap: 10px;
}
.pay-sheet[hidden] { display: none; }
.pay-sheet__grab { width: 40px; height: 4px; border-radius: 4px; background: var(--line); align-self: center; }
.pay-sheet__h { font-family: var(--font-serif); font-size: 20px; }
.pay-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pay-opts button {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 4px; border-radius: 18px; background: var(--paper);
  transition: transform .4s var(--ease-spring), background .2s;
}
.pay-opts button b { font-weight: 500; font-size: 11.5px; }
.pay-opts button small { font-size: 9.5px; color: var(--ink-soft); }
.pay-opts button:hover { transform: translateY(-3px); background: var(--butter-2); }
.pay-opts button.is-picked { background: var(--sage); }
.pay-sheet__status { font-size: 11.5px; min-height: 1.4em; color: var(--ink-2); }
.pay-sheet__close { height: 38px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); font-size: 11.5px; }

/* -- screen C: rewards -- */
.scr--rewards { --scr-bg: var(--sage-2); }
.rw-title { font-family: var(--font-serif); font-size: 30px; line-height: 1; letter-spacing: -.015em; }
.scratch { position: relative; margin-top: 14px; height: 150px; border-radius: 24px; overflow: hidden; touch-action: none; }
.scratch__prize {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 2px; isolation: isolate;
  background: var(--butter);
}
.scratch__prize b { font-family: var(--font-serif); font-weight: 450; font-size: 40px; line-height: 1; color: var(--ink-2); }
.scratch__prize small { font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; }
.scratch__burst { position: absolute; z-index: -1; left: 50%; top: 50%; width: 220px; aspect-ratio: 1; translate: -50% -50%; background: var(--butter-2); -webkit-mask: url('../assets/shapes/sun-24.svg') center / contain; mask: url('../assets/shapes/sun-24.svg') center / contain; animation: spin 20s linear infinite; }
.scratch__cover { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; transition: opacity .6s; }
.scratch.is-done .scratch__cover { opacity: 0; pointer-events: none; }
.rw-btn {
  margin-top: 8px; height: 32px; padding: 0 14px; border-radius: 999px; font-size: 11px; font-weight: 500;
  box-shadow: inset 0 0 0 1px rgba(63, 54, 49, .35);
}
.rw-btn:hover { background: var(--cream); }

.wheel-wrap { position: relative; width: 210px; height: 210px; margin: 16px auto 0; }
.wheel { width: 100%; height: 100%; filter: drop-shadow(0 10px 16px rgba(63, 54, 49, .2)); }
.wheel svg { width: 100%; height: 100%; overflow: visible; }
.wheel text { font-family: var(--font-mono); font-size: 7.6px; font-weight: 500; fill: var(--ink-2); letter-spacing: .02em; }
.wheel__pin {
  position: absolute; left: 50%; top: -8px; translate: -50% 0; width: 22px; height: 26px; background: var(--ink-2);
  clip-path: polygon(50% 100%, 0 0, 100% 0); border-radius: 4px;
}
.wheel__hub {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 62px; height: 62px; border-radius: 50%;
  background: var(--ink-2); color: var(--cream); font-size: 12px; font-weight: 500; box-shadow: 0 0 0 5px var(--cream);
  transition: transform .45s var(--ease-spring);
}
.wheel__hub:hover { transform: scale(1.08); }
.wheel__hub:active { transform: scale(.94); }
.wheel__hub[disabled] { opacity: .8; cursor: wait; }
.wheel__result { margin-top: 10px; text-align: center; font-size: 11.5px; min-height: 2.6em; }
.wheel__result b { font-family: var(--font-serif); font-size: 16px; font-weight: 450; display: block; }

/* ---------- NUMBERS ---------- */
.pl-numbers { padding: clamp(6rem, 11vw, 9rem) 0 clamp(3rem, 6vw, 5rem); }
.nums { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(.5rem, 2vw, 1.5rem); }
.num {
  position: relative; aspect-ratio: 1; display: grid; place-content: center; text-align: center; padding: 18%;
  isolation: isolate; color: var(--n-fg, var(--ink-2));
}
.num::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--n-bg); -webkit-mask: url('../assets/shapes/scallop-16.svg') center / contain no-repeat; mask: url('../assets/shapes/scallop-16.svg') center / contain no-repeat; transition: transform 1s var(--ease-out); }
.num--flower::before { -webkit-mask-image: url('../assets/shapes/flower-8.svg'); mask-image: url('../assets/shapes/flower-8.svg'); }
.num:nth-child(odd) { transform: rotate(-4deg); }
.num:nth-child(even) { transform: rotate(5deg) translateY(18px); }
.num:hover::before { transform: rotate(40deg); }
.num b { font-family: var(--font-serif); font-weight: 450; font-size: clamp(2.2rem, 4.4vw, 4rem); line-height: 1; letter-spacing: -.02em; }
.num b small { font-size: .4em; margin-left: .1em; letter-spacing: 0; }
.num span { display: block; margin-top: .5rem; font-size: 11px; line-height: 1.3; letter-spacing: .02em; }
.num:first-child { --n-bg: var(--pl-tomato-deep) !important; }

/* ---------- GALLERY ---------- */
.pl-gallery { padding: clamp(3rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 7rem); overflow: hidden; }
.gal { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; cursor: grab; padding: 10px 0 30px; outline-offset: -4px; }
.gal::-webkit-scrollbar { display: none; }
.gal.is-drag { cursor: grabbing; }
.gal.is-drag img { pointer-events: none; }
.gal__track {
  list-style: none; margin: 0; display: flex; gap: clamp(1rem, 2.5vw, 2rem); align-items: center; width: max-content;
  padding-inline: max(var(--edge), calc((100vw - var(--max)) / 2 + var(--edge)));
}
.gal__item { position: relative; flex: none; width: clamp(240px, 28vw, 400px); aspect-ratio: 4 / 5; user-select: none; }
.gal__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.gal__item:hover img { transform: scale(1.06); }
.gal__item--arch { border-radius: 999px 999px 28px 28px; overflow: hidden; }
.gal__item--blob { width: clamp(260px, 32vw, 460px); aspect-ratio: 1; -webkit-mask: url('../assets/shapes/wobble.svg') center / contain no-repeat; mask: url('../assets/shapes/wobble.svg') center / contain no-repeat; }
.gal__item--tall { aspect-ratio: 3 / 5; width: clamp(200px, 22vw, 320px); border-radius: 36px; overflow: hidden; }
.gal__item--scallop { width: clamp(260px, 30vw, 440px); aspect-ratio: 1; -webkit-mask: url('../assets/shapes/scallop-16.svg') center / contain no-repeat; mask: url('../assets/shapes/scallop-16.svg') center / contain no-repeat; }
.gal__item--blob .ph-note, .gal__item--scallop .ph-note { left: 50%; bottom: 18%; translate: -50% 0; }
.gal__item--arch .ph-note, .gal__item--tall .ph-note { left: 50%; translate: -50% 0; bottom: 16px; }
.gal__cap {
  position: absolute; left: 50%; top: 14%; translate: -50% 0; z-index: 3;
  font-family: var(--font-serif); font-style: italic; font-size: clamp(1.2rem, 2vw, 1.7rem); color: var(--cream);
  text-shadow: 0 2px 18px rgba(0, 0, 0, .45); white-space: nowrap; pointer-events: none;
}

/* ---------- REEL ---------- */
.pl-reel { padding: 0 0 clamp(4rem, 8vw, 7rem); }
.pl-reel__frame {
  position: relative; aspect-ratio: 16 / 8; border-radius: 48px; overflow: hidden; background: var(--pl-rose);
}
.pl-reel__video { width: 100%; height: 100%; object-fit: cover; }
.pl-reel__st { position: absolute; right: 4%; top: 6%; z-index: 3; animation: spin 24s linear infinite; }
.pl-reel__toggle { position: absolute; right: 18px; bottom: 18px; z-index: 3; }
.pl-reel__frame .ph-note { left: 18px; bottom: 22px; }
.pl-reel__h { margin-top: 1.5rem; max-width: 22ch; }

/* ---------- STACK + LINKS ---------- */
.pl-stack { padding: 0 0 clamp(5rem, 9vw, 8rem); }
.pl-stack__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.stack-cloud { list-style: none; padding: 0; margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 10px; }
.stack-cloud li {
  padding: 12px 20px; border-radius: 999px; background: var(--b); color: var(--ink-2);
  font-family: var(--font-serif); font-size: clamp(1.1rem, 1.8vw, 1.5rem); line-height: 1;
  rotate: var(--r); transition: rotate .6s var(--ease-spring), transform .6s var(--ease-spring);
}
.stack-cloud li:hover { rotate: 0deg; transform: translateY(-4px) scale(1.05); }
.pl-links { padding: 28px; border-radius: 32px; background: var(--paper); }
.pl-links ul { list-style: none; padding: 0; margin: 1rem 0 1.5rem; display: grid; gap: 0; }
.pl-links li { display: grid; grid-template-columns: 70px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 13px; }
.pl-links li span { color: var(--ink-soft); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; padding-top: 2px; }
.pl-links li b { font-weight: 500; color: var(--ink-2); }
.pl-links a { text-decoration: underline; text-decoration-color: var(--hero-4); text-underline-offset: 4px; }

/* ---------- next project + footer tweaks ---------- */
.page-plana .next-project > span:not(.next-project__blob) { display: block; position: relative; }
.page-plana .next-project__title em { color: #7c3653; }
.page-plana .next-project__label { color: var(--ink-2); opacity: 1; }
/* base: `.site-footer a` wins over .pill--cream's colour, leaving cream text on a cream pill */
.page-plana .site-footer .pill--cream { color: var(--ink); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
  .demo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 3rem; }
  .demo-cell--mid { transform: none; }
  .demo-cell:last-child { grid-column: 1 / -1; }
  .steps, .pl-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nums { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 2rem; }
}
@media (max-width: 860px) {
  .pl-hero { padding-top: calc(var(--header-h) + 50px); }
  .pl-hero__grid { grid-template-columns: 1fr; }
  .pl-hero__stage { min-height: 560px; }
  .pl-problem__grid, .pl-demo__head, .pl-stack__grid { grid-template-columns: 1fr; }
  .pl-problem__row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.5rem; }
  .pl-problem__line { display: none; }
}
@media (max-width: 720px) {
  .pl-title { font-size: 31vw; margin-top: .1em; }
  .demo-grid { grid-template-columns: 1fr; }
  .demo-cell:last-child { grid-column: auto; }
  .steps, .pl-facts { grid-template-columns: 1fr; }
  .pl-facts li { border-radius: 20px; }
  .nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nums .num:last-child { grid-column: 1 / -1; width: 55%; justify-self: center; }
  .num { padding: 14%; }
  .pl-reel__frame { aspect-ratio: 4 / 5; border-radius: 32px; }
  .pl-reel__st { --s-size: 92px !important; }
  .pl-hero__blob--tomato { width: 110vw; right: -40vw; top: auto; bottom: 10%; }
  .pl-hero__blob--butter { width: 150px; left: auto; right: -50px; top: 14%; }
  .pl-hero__st--a { left: -2%; top: 6%; --s-size: 96px !important; }
  .pl-hero__st--b { right: -2%; --s-size: 98px !important; }
  .pl-hero__st--c { left: 0; bottom: 2%; --s-size: 90px !important; }
  .phone--hero { --pw: 260px; }
  .pain .sticker { --s-size: 128px !important; }
  .pain--yes .sticker { --s-size: 144px !important; }
}
@media (max-width: 380px) {
  .phone { --pw: 290px; }
}

@media (prefers-reduced-motion: reduce) {
  .pl-hero__blob::before, .scratch__burst, .pl-reel__st, .pain--yes .sticker { animation: none; }
}

/* parent fix: keep rotated number stickers from causing horizontal scroll */
.pl-numbers { overflow-x: clip; }
