/* ================= "Imagine your app" builder page ================= */
[hidden] { display: none !important; }
body.bp { min-height: 100vh; }
.bp-back { font-family: var(--hand); }
.bp-main { max-width: 1240px; margin: 0 auto; padding: 110px clamp(16px, 4vw, 48px) 80px; }

/* ---------- builder layout ---------- */
.bp-stage { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, 1fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.bp-right { position: sticky; top: 96px; display: flex; justify-content: center; }

.bp-progress { display: flex; align-items: center; gap: 14px; margin: 6px 0 26px; }
.bp-progress__track { position: relative; flex: 1; height: 10px; border: 2px solid var(--ink); border-radius: 99px; background: var(--paper); }
.bp-progress__fill { display: block; height: 100%; width: 0; background: var(--coral); border-radius: 99px; transition: width 0.6s cubic-bezier(.2,.8,.2,1); }
.bp-progress__sprout {
  position: absolute; top: 50%; left: 0; font-style: normal; font-size: 22px;
  transform: translate(-50%, -60%);
  transition: left 0.6s cubic-bezier(.2,.8,.2,1);
}
.bp-progress__label { font-family: var(--hand); font-weight: 700; font-size: 18px; color: var(--ink-dim); white-space: nowrap; }

.bp-q__inner { animation: qIn 0.45s cubic-bezier(.2,.8,.2,1); }
@keyframes qIn { from { opacity: 0; transform: translateX(calc(var(--dir, 1) * 40px)); } }
.bp-q__title { font-family: var(--brush); font-weight: 400; font-size: clamp(36px, 5vw, 60px); line-height: 1.05; margin: 0 0 8px; }
.bp-q__hint { font-family: var(--hand); font-weight: 700; font-size: 21px; color: #d9525a; margin: 0 0 26px; }

.bp-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.bp-tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bp-tiles--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bp-tile {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  padding: 16px 16px 14px;
  font: inherit; color: var(--ink); text-align: left; cursor: pointer;
  background: #fffdf8;
  border: 2.5px solid var(--ink);
  border-radius: 14px 18px 12px 20px;
  box-shadow: 4px 4px 0 var(--ink);
  animation: tileIn 0.5s cubic-bezier(.2,.8,.2,1) both;
  animation-delay: calc(var(--i) * 50ms);
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
}
@keyframes tileIn { from { opacity: 0; transform: translateY(16px) scale(0.96); } }
.bp-tile:hover { transform: translate(-2px, -3px) rotate(-0.6deg); box-shadow: 6px 7px 0 var(--ink); }
.bp-tile:active { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--ink); }
.bp-tile:focus-visible { outline: 3px dashed var(--coral); outline-offset: 4px; }
.bp-tile.is-on { background: var(--coral); box-shadow: 4px 4px 0 var(--ink); }
.bp-tile__emoji { font-size: 30px; line-height: 1; margin-bottom: 4px; transition: transform 0.3s cubic-bezier(.3,1.6,.5,1); }
.bp-tile.is-on .bp-tile__emoji { transform: scale(1.18) rotate(-8deg); }
.bp-tile__label { font-weight: 700; font-size: 16px; }
.bp-tile__desc { font-family: var(--hand); font-weight: 700; font-size: 16px; color: var(--ink-dim); }
.bp-tile.is-on .bp-tile__desc { color: var(--ink); }
.bp-tile__check {
  position: absolute; top: 10px; right: 10px;
  display: grid; place-items: center; width: 24px; height: 24px;
  font-size: 13px; font-weight: 700;
  background: var(--ink); color: var(--paper); border-radius: 50%;
  transform: scale(0); transition: transform 0.25s cubic-bezier(.3,1.6,.5,1);
}
.bp-tile.is-on .bp-tile__check { transform: scale(1); }

.bp-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 30px; }
.bp-btn { cursor: pointer; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; }

.bp-live { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.bp-live__platforms { display: flex; gap: 8px; min-height: 30px; flex-wrap: wrap; justify-content: center; }
.bp-live__platforms span {
  font-family: var(--hand); font-weight: 700; font-size: 16px;
  padding: 2px 12px; background: #fffdf8; border: 2px solid var(--ink); border-radius: 99px;
}
.bp-live__cap { font-family: var(--hand); font-weight: 700; font-size: 18px; color: var(--ink-dim); margin: 0; }

/* ---------- the imagined app (all sizes in em so phones scale with --w) ---------- */
.ap {
  --bg: #fff8ef; --card: #ffffff; --ink2: #141010; --muted: #7a6e68; --accent: #fe878b; --accent2: #ffd3d0; --line: #141010; --on: #141010;
  --cardBorder: 0.13em solid var(--line); --cardShadow: 0.25em 0.25em 0 var(--line); --head: var(--hand);
  position: relative;
  width: var(--w, 280px);
  aspect-ratio: 9 / 19;
  font-size: calc(var(--w, 280px) / 26);
  padding: 0.55em;
  background: #141010;
  border-radius: 3.6em;
  box-shadow: 0.7em 0.9em 0 var(--coral);
  flex: none;
}
.ap[data-vibe="minimal"] { --bg: #ffffff; --card: #f4f5f7; --ink2: #111; --muted: #8a8f98; --accent: #3b6cff; --accent2: #e7edff; --line: #e3e5e8; --on: #fff; --cardBorder: 0.09em solid var(--line); --cardShadow: none; --head: var(--sans); }
.ap[data-vibe="dark"] { --bg: #101113; --card: #1c1e22; --ink2: #f4f4f5; --muted: #8b8d93; --accent: #c6ff3d; --accent2: #2a3415; --line: #2d3036; --on: #101113; --cardBorder: 0.09em solid var(--line); --cardShadow: none; --head: var(--sans); }
.ap[data-vibe="pastel"] { --bg: #f4f0ff; --card: #ffffff; --ink2: #2b2340; --muted: #8a80a8; --accent: #9b7bff; --accent2: #e9e2ff; --line: #e2daf7; --on: #fff; --cardBorder: 0.09em solid var(--line); --cardShadow: 0 0.3em 0.9em rgba(155, 123, 255, 0.15); --head: var(--sans); }
.ap-notch { position: absolute; top: 1.1em; left: 50%; z-index: 3; width: 7em; height: 1.7em; transform: translateX(-50%); background: #141010; border-radius: 99px; }
.ap-screen {
  position: relative; display: flex; flex-direction: column;
  height: 100%; overflow: hidden;
  background: var(--bg); color: var(--ink2);
  border-radius: 3.1em;
  font-family: var(--sans);
  transition: background 0.4s, color 0.4s;
}
.ap-status { display: flex; justify-content: space-between; align-items: center; gap: 0.5em; padding: 1.2em 2em 0.4em; font-size: 0.95em; }
.ap-status span:last-child { letter-spacing: -0.1em; opacity: 0.7; }
.ap-off { margin-left: auto; margin-right: 6.4em; padding: 0.05em 0.6em; font-size: 0.8em; font-weight: 700; color: var(--on); background: var(--accent); border-radius: 99px; }
.ap-head { display: flex; align-items: center; gap: 0.6em; padding: 1.4em 1.6em 0.6em; }
.ap-logo { display: grid; place-items: center; width: 2.4em; height: 2.4em; font-size: 1.1em; background: var(--accent2); border-radius: 0.8em; }
.ap-logo.sm { width: 2em; height: 2em; font-size: 0.9em; }
.ap-name { font-family: var(--head); font-size: 1.6em; line-height: 1; }
.ap[data-vibe="playful"] .ap-name { font-size: 1.9em; }
.ap-back { font-size: 2em; line-height: 1; color: var(--muted); }
.ap-head__r { margin-left: auto; display: flex; gap: 0.6em; align-items: center; }
.ap-bell { position: relative; font-size: 1.3em; }
.ap-bell i { position: absolute; top: 0; right: -0.1em; width: 0.5em; height: 0.5em; background: #ff4d4d; border-radius: 50%; }
.ap-avatar { display: grid; place-items: center; width: 2.3em; height: 2.3em; font-weight: 700; color: var(--on); background: var(--accent); border-radius: 50%; }
.ap-avatar.big { width: 5em; height: 5em; font-size: 1.3em; }

.ap-body { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 0.9em; padding: 0.4em 1.6em 1em; }
.ap-hi { margin: 0; font-size: 1.15em; font-weight: 700; color: var(--muted); }
.ap-card { display: flex; align-items: center; gap: 0.6em; padding: 0.9em 1em; background: var(--card); border: var(--cardBorder); box-shadow: var(--cardShadow); border-radius: 1.1em; font-size: 1em; }
.ap-rewards { background: var(--accent2); }
.ap-rewards span { margin-left: auto; font-weight: 700; color: var(--accent); filter: saturate(1.4); }
.ap[data-vibe="playful"] .ap-rewards span, .ap[data-vibe="minimal"] .ap-rewards span { color: var(--ink2); }
.ap-ai span { font-size: 0.92em; color: var(--muted); }
.ap-map { position: relative; min-height: 4.4em; background:
  repeating-linear-gradient(35deg, transparent 0 1.1em, rgba(127,127,127,0.13) 1.1em 1.25em),
  repeating-linear-gradient(-55deg, transparent 0 1.6em, rgba(127,127,127,0.13) 1.6em 1.75em), var(--card); }
.ap-map .pin { font-style: normal; font-size: 1.6em; animation: pinBob 1.6s ease-in-out infinite; }
@keyframes pinBob { 50% { transform: translateY(-0.2em); } }
.ap-map span { font-weight: 700; }
.ap-pay { background: var(--ink2); color: var(--bg); border-color: var(--ink2); }
.ap-pay b { margin-left: auto; }
.ap-pay em { font-style: normal; font-weight: 700; padding: 0.3em 0.8em; color: var(--on); background: var(--accent); border-radius: 99px; }

.ap-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6em; }
.ap-list li { display: flex; align-items: center; gap: 0.7em; padding: 0.7em 0.8em; background: var(--card); border: var(--cardBorder); border-radius: 1em; }
.ap-ic { display: grid; place-items: center; flex: none; width: 2.3em; height: 2.3em; background: var(--accent2); border-radius: 0.7em; }
.ap-list b { font-size: 1em; font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ap-list em { margin-left: auto; font-style: normal; font-size: 0.9em; color: var(--muted); white-space: nowrap; }

.ap-stories { display: flex; gap: 0.7em; }
.ap-story { display: flex; flex-direction: column; align-items: center; gap: 0.3em; }
.ap-story i { display: grid; place-items: center; width: 3.2em; height: 3.2em; font-style: normal; font-weight: 700; background: var(--accent2); border: 0.2em solid var(--accent); border-radius: 50%; }
.ap-story.is-you i { border-style: dashed; border-color: var(--muted); background: var(--card); }
.ap-story em { font-style: normal; font-size: 0.8em; color: var(--muted); }
.ap-banner { position: relative; display: flex; flex-direction: column; padding: 1.2em 1.3em; color: var(--on); background: var(--accent); border-radius: 1.3em; overflow: hidden; }
.ap-banner b { font-family: var(--brush); font-size: 2.2em; line-height: 1; }
.ap-banner span { font-weight: 700; }
.ap-banner i { position: absolute; right: 0.4em; bottom: -0.2em; font-style: normal; font-size: 3.6em; transform: rotate(-12deg); }
.ap-ring { display: flex; align-items: center; gap: 1em; padding: 1em; background: var(--card); border: var(--cardBorder); box-shadow: var(--cardShadow); border-radius: 1.3em; }
.ap-ring svg { width: 4.4em; height: 4.4em; transform: rotate(-90deg); }
.ap-ring circle { fill: none; stroke-width: 4; }
.ap-ring .bg { stroke: var(--accent2); }
.ap-ring .fg { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 94.2; stroke-dashoffset: 37.7; }
.ap-ring b { display: block; font-family: var(--head); font-size: 1.8em; line-height: 1; }
.ap-ring span { color: var(--muted); }
.ap-search { display: flex; gap: 0.5em; padding: 0.8em 1em; color: var(--muted); background: var(--card); border: var(--cardBorder); border-radius: 99px; }
.ap-chips { display: flex; gap: 0.5em; }
.ap-chips span { padding: 0.35em 0.8em; font-size: 0.9em; white-space: nowrap; background: var(--accent2); border-radius: 99px; }
.ap-dates { display: flex; gap: 0.5em; }
.ap-dates span { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 0.6em 0; background: var(--card); border: var(--cardBorder); border-radius: 0.9em; }
.ap-dates span.on { color: var(--on); background: var(--accent); border-color: var(--accent); }
.ap-dates em { font-style: normal; font-size: 0.8em; opacity: 0.8; }
.ap-dates b { font-size: 1.3em; }
.ap-course { display: flex; flex-direction: column; gap: 0.3em; padding: 1.1em 1.2em; color: var(--on); background: var(--accent); border-radius: 1.3em; }
.ap-course span { font-family: var(--head); font-size: 1.5em; font-weight: 700; }
.ap-course i { display: block; height: 0.5em; margin-top: 0.4em; background: rgba(255,255,255,0.45); border-radius: 99px; overflow: hidden; }
.ap-course s { display: block; height: 100%; background: var(--on); }

.ap-tabs { display: flex; justify-content: space-around; padding: 0.9em 1.4em 1.6em; font-size: 1.3em; border-top: 0.08em solid var(--line); background: var(--bg); }
.ap-tabs span { position: relative; opacity: 0.5; }
.ap-tabs span.on { opacity: 1; color: var(--accent); }
.ap-tab-chat { opacity: 1 !important; }
.ap-tab-chat i { position: absolute; top: -0.3em; right: -0.6em; display: grid; place-items: center; width: 1.1em; height: 1.1em; font-size: 0.55em; font-style: normal; font-weight: 700; color: #fff; background: #ff4d4d; border-radius: 50%; }
.ap-fab { position: absolute; right: 1.4em; bottom: 5.4em; display: grid; place-items: center; width: 3.6em; height: 3.6em; font-size: 1.1em; background: var(--accent); border-radius: 50%; box-shadow: 0 0.4em 1em rgba(0,0,0,0.2); }
.ap-toast { position: absolute; top: 3.6em; left: 1em; right: 1em; z-index: 4; padding: 0.8em 1em; font-size: 0.95em; font-weight: 600; color: var(--ink2); background: var(--card); border: var(--cardBorder); border-radius: 1em; box-shadow: 0 0.6em 1.4em rgba(0,0,0,0.18); animation: toast 2.6s ease forwards; }
@keyframes toast { 0% { transform: translateY(-140%); opacity: 0; } 15%, 75% { transform: none; opacity: 1; } 100% { transform: translateY(-140%); opacity: 0; } }

.ap-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.6em; text-align: center; color: var(--muted); }
.ap-empty span { display: grid; place-items: center; width: 4em; height: 4em; font-family: var(--brush); font-size: 2.2em; color: var(--accent); border: 0.12em dashed var(--muted); border-radius: 50%; animation: pinBob 2s ease-in-out infinite; }
.ap-empty p { margin: 0; font-family: var(--hand); font-weight: 700; font-size: 1.6em; line-height: 1.2; }

/* second-screen pieces */
.ap-chat { display: flex; flex-direction: column; gap: 0.6em; margin-top: 0.4em; }
.ap-chat p { margin: 0; max-width: 80%; padding: 0.7em 0.9em; font-size: 1em; border-radius: 1.1em; }
.ap-chat .in { align-self: flex-start; background: var(--card); border: var(--cardBorder); border-bottom-left-radius: 0.3em; }
.ap-chat .in.ai { background: var(--accent2); }
.ap-chat .out { align-self: flex-end; color: var(--on); background: var(--accent); border-bottom-right-radius: 0.3em; }
.ap-input { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding: 0.8em 1em; color: var(--muted); background: var(--card); border: var(--cardBorder); border-radius: 99px; }
.ap-input b { color: var(--accent); }
.ap-total { display: flex; justify-content: space-between; padding: 0.6em 0.3em; font-size: 1.2em; font-weight: 700; border-top: 0.1em dashed var(--muted); }
.ap-methods { display: flex; gap: 0.5em; }
.ap-methods span { flex: 1; padding: 0.6em 0; text-align: center; background: var(--card); border: var(--cardBorder); border-radius: 0.8em; }
.ap-methods span.on { border-color: var(--accent); box-shadow: 0 0 0 0.15em var(--accent); }
.ap-cta { margin-top: auto; padding: 1em; text-align: center; font-weight: 700; color: var(--on); background: var(--accent); border-radius: 1em; }
.ap-bigmap { position: relative; flex: 1; min-height: 14em; border-radius: 1.2em; border: var(--cardBorder); background:
  repeating-linear-gradient(35deg, transparent 0 1.6em, rgba(127,127,127,0.14) 1.6em 1.85em),
  repeating-linear-gradient(-55deg, transparent 0 2.2em, rgba(127,127,127,0.14) 2.2em 2.45em), var(--card); }
.ap-bigmap i { position: absolute; font-style: normal; font-size: 1.8em; animation: pinBob 1.8s ease-in-out infinite; }
.ap-bigmap .me { position: absolute; left: 45%; top: 70%; font-size: 1.4em; color: var(--accent); filter: drop-shadow(0 0 0.4em var(--accent)); }
.ap-profile { display: flex; flex-direction: column; align-items: center; gap: 0.3em; padding: 1em 0; }
.ap-profile b { font-family: var(--head); font-size: 1.6em; }
.ap-profile em { font-style: normal; color: var(--muted); }

.pop { animation: popIn 0.55s cubic-bezier(.3,1.6,.5,1) both; }
@keyframes popIn { from { opacity: 0; transform: scale(0.6) translateY(0.6em); } }

/* web mockup */
.ap-browser {
  --bg: #fff8ef; --card: #ffffff; --ink2: #141010; --muted: #7a6e68; --accent: #fe878b; --accent2: #ffd3d0; --line: #141010; --on: #141010;
  --cardBorder: 0.13em solid var(--line); --cardShadow: 0.25em 0.25em 0 var(--line); --head: var(--hand);
  width: 420px; font-size: 10px; color: var(--ink2);
  background: var(--bg); border: 3px solid #141010; border-radius: 14px; overflow: hidden;
  box-shadow: 8px 10px 0 var(--coral);
}
.ap-browser[data-vibe="minimal"] { --bg: #ffffff; --card: #f4f5f7; --ink2: #111; --muted: #8a8f98; --accent: #3b6cff; --accent2: #e7edff; --line: #e3e5e8; --on: #fff; --cardBorder: 0.09em solid var(--line); --cardShadow: none; --head: var(--sans); }
.ap-browser[data-vibe="dark"] { --bg: #101113; --card: #1c1e22; --ink2: #f4f4f5; --muted: #8b8d93; --accent: #c6ff3d; --accent2: #2a3415; --line: #2d3036; --on: #101113; --cardBorder: 0.09em solid var(--line); --cardShadow: none; --head: var(--sans); }
.ap-browser[data-vibe="pastel"] { --bg: #f4f0ff; --card: #ffffff; --ink2: #2b2340; --muted: #8a80a8; --accent: #9b7bff; --accent2: #e9e2ff; --line: #e2daf7; --on: #fff; --cardBorder: 0.09em solid var(--line); --cardShadow: none; --head: var(--sans); }
.ap-browser__bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #141010; }
.ap-browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: #fe878b; }
.ap-browser__bar i:nth-child(2) { background: #ffc94d; }
.ap-browser__bar i:nth-child(3) { background: #3fae63; }
.ap-browser__bar span { margin-left: 10px; padding: 2px 14px; font-size: 11px; color: #ddd; background: #2a2626; border-radius: 99px; }
.ap-browser__body { display: flex; min-height: 240px; font-family: var(--sans); }
.ap-side { display: flex; flex-direction: column; gap: 8px; width: 120px; padding: 14px 12px; font-size: 11px; border-right: 1px solid var(--line); }
.ap-side b { font-family: var(--head); font-size: 15px; margin-bottom: 6px; }
.ap-side span { padding: 4px 8px; border-radius: 6px; color: var(--muted); }
.ap-side span.on { color: var(--on); background: var(--accent); }
.ap-main { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 14px; font-size: 11px; }

/* ---------- result ---------- */
.bp-result__head { text-align: center; margin-bottom: 36px; }
.bp-result__name { display: inline-flex; align-items: center; gap: 14px; margin: 4px 0 6px; font-family: var(--brush); font-weight: 400; font-size: clamp(54px, 9vw, 110px); line-height: 1; }
.bp-result__name #resName { background: linear-gradient(transparent 62%, var(--coral-soft) 62%, var(--coral-soft) 92%, transparent 92%); padding: 0 8px; }
.bp-result__name .wiggle { animation: wiggleName 0.5s ease; }
@keyframes wiggleName { 25% { transform: rotate(-3deg) scale(1.04); } 75% { transform: rotate(2deg); } }
.bp-dice {
  font-size: 30px; line-height: 1; padding: 8px 10px; cursor: pointer;
  background: #fffdf8; border: 2.5px solid var(--ink); border-radius: 14px; box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.25s cubic-bezier(.3,1.6,.5,1);
}
.bp-dice:hover { transform: rotate(-20deg) scale(1.1); }
.bp-dice:active { transform: rotate(200deg) scale(0.9); }
.bp-result__tagline { font-family: var(--hand); font-weight: 700; font-size: 24px; color: #d9525a; margin: 0; }

.bp-result__body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(24px, 4vw, 56px); align-items: start; }
.bp-devices { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 34px 30px; }
.bp-dev { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.bp-dev__cap { font-family: var(--hand); font-weight: 700; font-size: 19px; color: var(--ink-dim); }
.bp-result.is-in .bp-dev { animation: devIn 0.8s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(0.15s + var(--i) * 0.15s); }
.bp-result.is-in .bp-dev:nth-child(1) .ap { transform: rotate(-3deg); }
.bp-result.is-in .bp-dev:nth-child(2) .ap { transform: rotate(2.5deg); }
@keyframes devIn { from { opacity: 0; transform: translateY(60px) scale(0.92); } }

.bp-receipt {
  position: relative;
  padding: 26px 24px 18px;
  font-family: var(--sans);
  background: #fffdf8;
  border: 2.5px solid var(--ink);
  border-bottom: 0;
  box-shadow: 6px 6px 0 var(--ink);
  transform: rotate(1.2deg);
}
.bp-result.is-in .bp-receipt { animation: receiptIn 0.9s cubic-bezier(.2,.8,.2,1) 0.45s both; }
@keyframes receiptIn { from { opacity: 0; clip-path: inset(0 0 100% 0); } to { opacity: 1; clip-path: inset(0 0 -20px 0); } }
/* torn paper edge */
.bp-receipt::after {
  content: ""; position: absolute; left: -2.5px; right: -2.5px; bottom: -14px; height: 16px;
  background:
    linear-gradient(135deg, #fffdf8 33%, transparent 33%) 0 0 / 16px 16px,
    linear-gradient(225deg, #fffdf8 33%, transparent 33%) 0 0 / 16px 16px;
  filter: drop-shadow(0 2.5px 0 var(--ink));
}
.rc-title { margin: 0; text-align: center; font-family: var(--brush); font-size: 28px; }
.rc-sub { margin: 2px 0 14px; text-align: center; font-family: monospace; font-size: 12px; color: var(--ink-dim); padding-bottom: 12px; border-bottom: 2px dashed var(--ink-dim); }
.bp-receipt dl { margin: 0 0 12px; font-family: monospace; font-size: 14px; }
.bp-receipt dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 3px 0; line-height: 1.5; }
.bp-receipt dt { color: var(--ink-dim); }
.bp-receipt dd { margin: 0; font-weight: 700; text-align: right; }
.rc-label { margin: 14px 0 6px; font-family: var(--hand); font-weight: 700; font-size: 19px; }
.rc-label b { color: #d9525a; }
.rc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rc-chips span { padding: 2px 10px; font-size: 13px; background: var(--coral-soft); border: 1.5px solid var(--ink); border-radius: 99px; }
.rc-meter { height: 12px; border: 2px solid var(--ink); border-radius: 99px; overflow: hidden; background: var(--paper); }
.rc-meter span { display: block; height: 100%; width: var(--to); background: repeating-linear-gradient(-45deg, var(--coral) 0 8px, #f46d73 8px 16px); }
.bp-result.is-in .rc-meter span { animation: meter 1.1s cubic-bezier(.2,.8,.2,1) 1.1s both; }
@keyframes meter { from { width: 0; } }
.rc-stack { margin: 0; padding: 0; list-style: none; font-family: monospace; font-size: 13px; }
.rc-stack li::before { content: "› "; color: #d9525a; }
.rc-fine { margin: 16px 0 10px; padding-top: 12px; border-top: 2px dashed var(--ink-dim); text-align: center; font-family: monospace; font-size: 11px; line-height: 1.6; color: var(--ink-dim); }
.rc-barcode { height: 34px; margin: 0 10px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 9px, var(--ink) 9px 12px, transparent 12px 14px); }

.bp-result__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 56px; }
.bp-result__cta .btn { cursor: pointer; }
.bp-note { min-height: 1.4em; margin: 14px 0 0; text-align: center; font-family: var(--hand); font-weight: 700; font-size: 18px; color: #2a7a4a; word-break: break-all; }

.bp-confetti { position: fixed; inset: 0; pointer-events: none; z-index: 200; overflow: hidden; }
.bp-confetti i { position: absolute; top: -20px; width: 9px; height: 14px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translate(var(--dx), 110vh) rotate(var(--rot)); } }

.bp-email { margin: 16px 0 0; text-align: center; font-family: var(--hand); font-weight: 700; font-size: 17px; color: var(--ink-dim); }

/* ---------- talk to Raghav (visitor chat) ---------- */
.talk {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
  margin-top: 110px;
  padding-top: 60px;
  border-top: 2.5px dashed var(--ink-dim);
}
.talk__title { font-family: var(--brush); font-weight: 400; font-size: clamp(34px, 4.4vw, 54px); line-height: 1.05; margin: 0 0 14px; }
.talk__lede { font-size: 17px; line-height: 1.65; color: var(--ink-dim); margin: 0 0 18px; max-width: 420px; }
.talk__points { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-family: var(--hand); font-weight: 700; font-size: 19px; }
.talk__points li:first-letter { color: #d9525a; }

/* ---------- small screens ---------- */
.bp-right, .bp-nav { transition: opacity 0.25s, transform 0.25s; }
@media (max-width: 900px) {
  .bp-stage { grid-template-columns: 1fr; }
  /* on small screens the live phone floats in the corner so it stays visible while tapping */
  .bp-right { position: fixed; top: auto; right: 12px; bottom: 84px; z-index: 30; transform: rotate(3deg); pointer-events: none; }
  .bp-right .ap { box-shadow: 0.5em 0.6em 0 var(--coral), 0 0.8em 2em rgba(20, 16, 16, 0.25); }
  .bp-live { gap: 6px; }
  .bp-live__platforms, .bp-live__cap { display: none; }
  .bp-left { padding-bottom: 300px; }
  body.talk-visible .bp-right { opacity: 0; transform: translateY(30px) rotate(3deg); }
  body.talk-visible .bp-nav { opacity: 0; transform: translateY(100%); pointer-events: none; }
  .bp-result__body { grid-template-columns: 1fr; }
  .talk { grid-template-columns: 1fr; margin-top: 60px; }
  .bp-receipt { max-width: 380px; margin: 0 auto; }
  .ap-browser { width: min(420px, 90vw); }
}
@media (max-width: 760px) {
  .bp-main { padding-top: 90px; }
  .bp-tiles, .bp-tiles--3, .bp-tiles--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .bp-tile { padding: 12px; }
  .bp-tile__emoji { font-size: 24px; }
  .bp-tile__label { font-size: 14px; }
  .bp-q__hint { font-size: 18px; margin-bottom: 18px; }
  .bp-nav { position: fixed; left: 0; right: 0; bottom: 0; margin: 0; padding: 24px 16px 14px; background: linear-gradient(transparent, var(--paper) 30%); z-index: 20; }
  .nav__links .bp-back { display: inline !important; }
}
@media (prefers-reduced-motion: reduce) {
  .bp-q__inner, .bp-tile, .pop, .ap-toast, .bp-dev, .bp-receipt, .rc-meter span { animation: none !important; }
}
