/* ── Pizi site styles (built on tokens.css) ── */
* { margin: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--ink);
  color: var(--text-on-dark);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font-family: var(--font); }

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

/* anchors land below the sticky header */
[id] { scroll-margin-top: 84px; }

.skip-link {
  position: absolute; inset-inline-start: 50%; transform: translate(50%, -200%);
  top: 10px; z-index: 200; background: var(--lime); color: var(--ink);
  padding: 10px 22px; border-radius: var(--r-pill); font-weight: 700;
  text-decoration: none; transition: transform var(--t-fast) var(--ease);
}
.skip-link:focus-visible { transform: translate(50%, 0); outline-color: var(--cream); }

/* ── header / nav ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(4, 20, 14, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-med) var(--ease);
}
.site-header.scrolled { border-bottom-color: rgba(247, 243, 235, 0.08); }
.nav-wrap {
  max-width: 1160px; margin-inline: auto;
  padding: 14px var(--s-4);
  display: flex; align-items: center; gap: var(--s-5);
}

/* logo lockup — the brand-board component, scaled for the header */
.lockup { display: flex; align-items: center; gap: 10px; direction: ltr; text-decoration: none; --dot-hole: var(--ink); }
.lockup svg.mark { width: 42px; height: 42px; display: block; }
.word { font-size: 29px; font-weight: 700; -webkit-text-stroke: 0.033em currentColor; color: var(--cream); letter-spacing: 0.02em; position: relative; direction: ltr; line-height: 1; }
.word .i { position: relative; }
.word .i::before { content: ''; position: absolute; top: 0.02em; left: 0.06em; width: 0.3em; height: 0.3em; border-radius: 50%; background: var(--dot-hole, var(--ink-2)); -webkit-text-stroke: 0; }
.word .i::after { content: ''; position: absolute; top: 0.045em; left: 0.115em; width: 0.19em; height: 0.19em; border-radius: 50%; background: var(--lime); -webkit-text-stroke: 0; }

.nav-links { display: flex; align-items: center; gap: var(--s-5); list-style: none; margin-inline-start: auto; padding: 0; }
.nav-links a {
  text-decoration: none; font-size: var(--fs-400); color: var(--muted-on-dark);
  transition: color var(--t-fast) var(--ease);
}
.nav-links a:hover { color: var(--cream); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-size: var(--fs-500); border: 0; cursor: pointer;
  border-radius: var(--r-pill); padding: 13px 26px; text-decoration: none;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad); color: var(--ink); font-weight: 700; box-shadow: var(--shadow-glow); }
.btn-ghost { background: transparent; color: var(--cream); border: 1.5px solid rgba(247, 243, 235, 0.3); }
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); }
.btn-nav { padding: 10px 20px; font-size: var(--fs-400); box-shadow: 0 4px 18px rgba(45, 217, 82, 0.28); }

/* hamburger */
.menu-btn {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; padding: 10px;
  flex-direction: column; justify-content: center; gap: 6px; border-radius: var(--r-s);
}
.menu-btn span {
  display: block; height: 2.5px; width: 100%; border-radius: 2px;
  background: var(--cream); transition: transform var(--t-med) var(--ease), opacity var(--t-fast) var(--ease);
}
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* mobile menu panel */
.mobile-menu {
  display: none;
  background: var(--ink-2);
  border-bottom: 1px solid rgba(247, 243, 235, 0.08);
  padding: var(--s-3) var(--s-4) var(--s-5);
}
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; padding: 0; margin: 0 0 var(--s-4); }
.mobile-menu li a {
  display: block; padding: 14px 6px; text-decoration: none;
  font-size: var(--fs-600); color: var(--cream);
  border-bottom: 1px solid rgba(247, 243, 235, 0.07);
}
.mobile-menu .btn { width: 100%; }

/* ── hero ── */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 520px at 18% 8%, rgba(45, 217, 82, 0.09), transparent 65%),
    radial-gradient(700px 480px at 85% 90%, rgba(197, 240, 58, 0.05), transparent 60%),
    var(--ink);
}
.hero-wrap {
  max-width: 1160px; margin-inline: auto;
  padding: var(--s-8) var(--s-4) var(--s-8);
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: var(--s-7); align-items: center;
}
.hero-copy h1 {
  font-size: var(--fs-900); line-height: var(--lh-tight);
  letter-spacing: -0.01em; margin-bottom: var(--s-4);
}
.hero-copy h1 .accent {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  white-space: nowrap;
}
.hero-lead {
  font-size: var(--fs-600); color: var(--muted-on-dark);
  max-width: 34ch; margin-bottom: var(--s-5);
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; margin-bottom: var(--s-3); }
.hero-trust {
  display: inline-flex; align-items: center; gap: 7px;
  margin: 0 0 14px; padding: 7px 12px;
  font-size: var(--fs-300); line-height: 1.5;
  color: var(--muted-on-dark);
  background: rgba(45, 217, 82, 0.06); /* --green @ 6% */
  border: 1px solid rgba(45, 217, 82, 0.22);
  border-radius: var(--r-pill);
}
.hero-trust svg { flex: none; color: var(--green); }
.hero-trust strong { color: var(--text-on-dark); font-weight: 700; }

.hero-note {
  font-size: var(--fs-300); color: var(--muted-on-dark);
  display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 0; margin: 0; list-style: none;
}
.hero-note li { display: flex; align-items: center; gap: 7px; }
.hero-note svg { flex: none; }

/* ── the conversation (the hero of the hero) ── */
.phone-col { display: flex; justify-content: center; }
.phone {
  position: relative; width: min(390px, 100%);
  background: var(--ink-2);
  border: 1px solid rgba(247, 243, 235, 0.1);
  border-radius: var(--r-l);
  box-shadow: var(--shadow-m), 0 0 70px rgba(45, 217, 82, 0.12);
  overflow: hidden;
}
.phone::before {
  content: ''; position: absolute; inset: -1px; pointer-events: none; border-radius: inherit;
  background: linear-gradient(180deg, rgba(197, 240, 58, 0.09), transparent 30%);
}
.phone-top {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: rgba(4, 20, 14, 0.55);
  border-bottom: 1px solid rgba(247, 243, 235, 0.08);
}
.avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  background: var(--grad); display: grid; place-items: center;
}
.avatar svg { width: 26px; height: 26px; display: block; }
.phone-top .who { line-height: 1.3; }
.phone-top .who strong { display: block; font-size: var(--fs-400); }
.phone-top .who small {
  font-size: var(--fs-300); color: var(--muted-on-dark);
  display: flex; align-items: center; gap: 6px;
}
.phone-top .who small::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 8px rgba(45, 217, 82, 0.8);
}
.chat {
  display: grid; gap: 10px; padding: var(--s-4) var(--s-3) var(--s-4);
  min-height: 372px; align-content: start;
}
.chip {
  justify-self: center; font-size: var(--fs-300); color: var(--muted-on-dark);
  background: rgba(247, 243, 235, 0.06); border: 1px solid rgba(247, 243, 235, 0.07);
  padding: 4px 14px; border-radius: var(--r-pill);
}
.msg {
  padding: 11px 15px; border-radius: var(--r-bubble);
  font-size: var(--fs-400); line-height: 1.5; width: fit-content; max-width: 85%;
}
.msg.in { background: rgba(247, 243, 235, 0.07); border: 1px solid rgba(247, 243, 235, 0.08); border-end-start-radius: 8px; }
.msg.out { background: var(--grad); color: var(--ink); margin-inline-start: auto; border-end-end-radius: 8px; font-weight: 600; }
.msg .meta {
  display: block; font-size: 11px; font-weight: 400; opacity: 0.62;
  margin-top: 3px; text-align: left; direction: ltr;
}
.chip.end { color: var(--lime); background: rgba(197, 240, 58, 0.08); border-color: rgba(197, 240, 58, 0.18); }

/* typing indicator lives INSIDE the upcoming bot message's slot — the
   typing→message swap is a crossfade in place, no column jump */
.slot { position: relative; min-height: 44px; }
.typing {
  position: absolute; top: 0; inset-inline-end: 0;
  background: rgba(247, 243, 235, 0.07);
  border: 1px solid rgba(247, 243, 235, 0.08);
  border-radius: var(--r-bubble); border-end-end-radius: 8px;
  padding: 13px 17px; display: flex; gap: 5px; width: fit-content;
  opacity: 0; pointer-events: none;
  transition: opacity var(--t-fast) var(--ease);
}
.typing.show { opacity: 1; }
.typing i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--lime);
  animation: bounce 1.1s infinite var(--ease);
}
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
  30% { transform: translateY(-5px); opacity: 1; }
}

/* message entrance choreography */
.chat .step { opacity: 0; transform: translateY(14px) scale(0.97); }
.chat .step.in { transform-origin: bottom right; }
.chat .step.out { transform-origin: bottom left; }
.chat .step.show {
  opacity: 1; transform: none;
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease);
}

.phone-caption {
  margin-top: var(--s-3); text-align: center;
  font-size: var(--fs-300); color: var(--muted-on-dark);
}

/* ── mobile sticky CTA bar ── */
.sticky-cta {
  display: none; position: fixed; inset-inline: 0; bottom: 0; z-index: 90;
  padding: 10px var(--s-3) calc(10px + env(safe-area-inset-bottom));
  background: rgba(4, 20, 14, 0.9);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(247, 243, 235, 0.1);
}
.sticky-cta .btn { width: 100%; padding: 14px; }
.sticky-cta small { display: block; text-align: center; margin-top: 5px; font-size: var(--fs-300); color: var(--muted-on-dark); }

/* ── responsive ── */
@media (max-width: 980px) {
  .hero-wrap { grid-template-columns: 1fr; gap: var(--s-6); padding-block: var(--s-6) var(--s-7); }
  .hero-copy { text-align: center; }
  .hero-lead { margin-inline: auto; }
  .hero-ctas, .hero-note { justify-content: center; }
}
@media (max-width: 860px) {
  /* links collapse into the hamburger, but the header CTA stays until the
     sticky bar takes over at 720 — no CTA dead zone (spec: header CTA + sticky) */
  .nav-links { display: none; }
  .menu-btn { display: flex; margin-inline-start: auto; }
  .site-header .btn-nav { margin-inline-start: auto; }
  .menu-btn { margin-inline-start: 0; }
}
@media (max-width: 720px) {
  .site-header .btn-nav { display: none; }
  .menu-btn { margin-inline-start: auto; }
  .sticky-cta { display: block; }
  body { padding-bottom: 92px; }
  .hero-ctas .btn { width: 100%; }
  /* the fixed CTA bar covers the canvas bottom — keep the progress dots visible */
  .story-progress { padding-bottom: calc(var(--s-5) + 96px + env(safe-area-inset-bottom)); }
}

/* ── reduced motion: everything static, conversation fully visible ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .chat .step { opacity: 1; transform: none; }
  .typing { display: none !important; }
  .btn:hover { transform: none; }
}

/* ═══════════ Phase 3: how / scroll story / features ═══════════ */

.section-head { max-width: 1160px; margin-inline: auto; padding: 0 var(--s-4); text-align: center; }
.section-head h2 { font-size: var(--fs-800); line-height: var(--lh-tight); margin-bottom: var(--s-3); }
.section-head .kicker {
  display: inline-block; font-size: var(--fs-300); color: var(--lime);
  background: rgba(197, 240, 58, 0.08); border: 1px solid rgba(197, 240, 58, 0.18);
  padding: 4px 14px; border-radius: var(--r-pill); margin-bottom: var(--s-3);
}
.section-head .sub { font-size: var(--fs-600); color: var(--muted-on-dark); max-width: 46ch; margin-inline: auto; }

/* ── how: 3 steps, 5 minutes ── */
.how { padding: var(--s-8) 0 var(--s-7); }
.steps {
  max-width: 1160px; margin: var(--s-6) auto 0; padding: 0 var(--s-4);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4);
  counter-reset: step;
}
.step-card {
  position: relative; background: var(--ink-2);
  border: 1px solid rgba(247, 243, 235, 0.08);
  border-radius: var(--r-l); padding: var(--s-5) var(--s-4) var(--s-4);
}
.step-card::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -18px; inset-inline-start: var(--s-4);
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--grad); color: var(--ink);
  font-weight: 700; font-size: var(--fs-600);
  display: grid; place-items: center;
  box-shadow: 0 4px 18px rgba(45, 217, 82, 0.35);
}
.step-card h3 { font-size: var(--fs-700); margin-bottom: var(--s-2); }
.step-card p { font-size: var(--fs-400); color: var(--muted-on-dark); }

/* ── the scroll story ── */
.story-track { position: relative; height: 300vh; background: var(--ink-story); }
.story-canvas {
  position: sticky; top: 0;
  height: 100vh; height: 100svh; height: 100dvh;
  overflow: hidden; display: grid;
  grid-template-rows: auto 1fr auto;
  background:
    radial-gradient(1000px 600px at 50% 72%, rgba(45, 217, 82, 0.10), transparent 65%),
    var(--ink-story);
}
.story-copy { text-align: center; padding: calc(76px + var(--s-5)) var(--s-4) 0; position: relative; z-index: 3; }
.story-copy .kicker {
  display: inline-block; font-size: var(--fs-300); color: var(--lime);
  background: rgba(197, 240, 58, 0.08); border: 1px solid rgba(197, 240, 58, 0.18);
  padding: 4px 14px; border-radius: var(--r-pill); margin-bottom: var(--s-3);
}
/* grid-stacked lines: the row auto-sizes to the tallest line at every width */
.story-lines { display: grid; }
.story-line {
  grid-area: 1 / 1;
  opacity: 0; transform: translateY(16px);
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
}
.story-line h2 { font-size: var(--fs-800); line-height: var(--lh-tight); margin-bottom: 6px; }
.story-line p { font-size: var(--fs-600); color: var(--muted-on-dark); }
.story-canvas[data-stage="1"] .story-line[data-line="1"],
.story-canvas[data-stage="2"] .story-line[data-line="2"],
.story-canvas[data-stage="3"] .story-line[data-line="3"] { opacity: 1; transform: none; }

/* scene */
.story-scene { position: relative; z-index: 1; }

/* the core */
.core {
  position: absolute; top: 50%; inset-inline-start: 50%;
  transform: translate(50%, -50%);
  width: 148px; height: 148px; display: grid; place-items: center;
  transition: transform var(--t-slow) var(--ease), opacity var(--t-slow) var(--ease);
}
.core svg { width: 96px; height: 96px; position: relative; z-index: 2; filter: drop-shadow(0 0 24px rgba(45, 217, 82, 0.45)); }
.core::before, .core::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
}
.core::before {
  background: radial-gradient(circle, rgba(45, 217, 82, 0.28), rgba(45, 217, 82, 0.05) 55%, transparent 72%);
  transform: scale(calc(1.35 + var(--p, 0) * 0.3));
}
.core::after {
  border: 1.5px solid rgba(45, 217, 82, 0.35);
  animation: corePulse 2.8s var(--ease) infinite;
}
@keyframes corePulse {
  0% { transform: scale(1); opacity: 0.8; }
  70%, 100% { transform: scale(1.9); opacity: 0; }
}
.story-canvas[data-stage="3"] .core { transform: translate(50%, -50%) scale(0.62); opacity: 0.45; }

/* incoming bubbles (stage 1) */
.s-bubble {
  position: absolute; width: fit-content;
  padding: 10px 16px; border-radius: var(--r-bubble); border-end-start-radius: 8px;
  background: rgba(247, 243, 235, 0.08); border: 1px solid rgba(247, 243, 235, 0.1);
  font-size: var(--fs-400); color: var(--text-on-dark);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  /* short linear transform transition = smoothing for scroll-scrubbed motion */
  transition: opacity var(--t-slow) var(--ease), transform 0.3s linear;
  opacity: 0; transform: translate(0, 24px) scale(0.92);
}
.story-canvas[data-stage="1"] .s-bubble {
  opacity: 1;
  transform: translate(calc(var(--p1, 0) * var(--fly-x) * var(--fly-scale, 1)), calc(var(--p1, 0) * var(--fly-y) * var(--fly-scale, 1))) scale(calc(1 - var(--p1, 0) * 0.15));
}
.story-canvas[data-stage="2"] .s-bubble,
.story-canvas[data-stage="3"] .s-bubble {
  opacity: 0;
  transform: translate(var(--fly-x), var(--fly-y)) scale(0.4);
}
.s-bubble:nth-child(odd)  { border-end-start-radius: var(--r-bubble); border-end-end-radius: 8px; }

/* outcome cards (stage 2) */
.cards { position: absolute; inset: 0; pointer-events: none; }
.s-card {
  position: absolute; width: 208px;
  display: flex; align-items: center; gap: 10px;
  background: var(--ink-story-2); border: 1px solid rgba(45, 217, 82, 0.22);
  border-radius: var(--r-m); padding: 12px 14px;
  font-size: var(--fs-400);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4), 0 0 24px rgba(45, 217, 82, 0.08);
  opacity: 0; transform: translateY(26px) scale(0.9);
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
}
.s-card .ic {
  flex: none; width: 34px; height: 34px; border-radius: var(--r-s);
  background: rgba(45, 217, 82, 0.14); display: grid; place-items: center;
}
.s-card .ic svg { width: 19px; height: 19px; stroke: var(--lime); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.s-card strong { display: block; font-size: var(--fs-400); font-weight: 700; }
.s-card small { font-size: var(--fs-300); color: var(--muted-on-dark); }
.s-card .ok {
  margin-inline-start: auto; flex: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--grad); display: grid; place-items: center;
}
.s-card .ok svg { width: 11px; height: 11px; stroke: var(--ink); fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.story-canvas[data-stage="2"] .s-card { opacity: 1; transform: none; }
.story-canvas[data-stage="2"] .s-card:nth-of-type(2) { transition-delay: 90ms; }
.story-canvas[data-stage="2"] .s-card:nth-of-type(3) { transition-delay: 180ms; }
.story-canvas[data-stage="2"] .s-card:nth-of-type(4) { transition-delay: 270ms; }
.story-canvas[data-stage="3"] .s-card { opacity: 0; transform: translateY(60px) scale(0.5); }

/* daily summary (stage 3) */
.s-summary {
  position: absolute; top: 50%; inset-inline-start: 50%;
  transform: translate(50%, -38%) scale(0.94);
  width: min(360px, calc(100vw - 48px));
  background: var(--ink-story-2); border: 1px solid rgba(45, 217, 82, 0.25);
  border-radius: var(--r-l); padding: var(--s-4);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(45, 217, 82, 0.10);
  opacity: 0;
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
}
.story-canvas[data-stage="3"] .s-summary { opacity: 1; transform: translate(50%, -50%); }
.s-summary header { display: flex; align-items: center; gap: 10px; margin-bottom: var(--s-3); }
.s-summary header .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px rgba(45, 217, 82, 0.8); }
.s-summary header strong { font-size: var(--fs-500); }
.s-summary header small { margin-inline-start: auto; font-size: var(--fs-300); color: var(--muted-on-dark); }
.s-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 4px; border-top: 1px solid rgba(247, 243, 235, 0.07);
  font-size: var(--fs-400);
}
.s-row svg { flex: none; width: 18px; height: 18px; stroke: var(--lime); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.s-row b { margin-inline-start: auto; font-weight: 700; color: var(--lime); }
.s-note { margin-top: var(--s-3); font-size: var(--fs-300); color: var(--muted-on-dark); text-align: center; }

/* progress dots */
.story-progress {
  display: flex; justify-content: center; gap: 10px;
  padding: 0 0 calc(var(--s-5) + env(safe-area-inset-bottom)); position: relative; z-index: 3;
}
.story-progress i {
  width: 8px; height: 8px; border-radius: var(--r-pill);
  background: rgba(247, 243, 235, 0.18);
  transition: background var(--t-med) var(--ease), width var(--t-med) var(--ease);
}
.story-canvas[data-stage="1"] .story-progress i:nth-child(1),
.story-canvas[data-stage="2"] .story-progress i:nth-child(2),
.story-canvas[data-stage="3"] .story-progress i:nth-child(3) { background: var(--lime); width: 26px; }

/* ── features grid ── */
.features { padding: var(--s-8) 0; }
.f-grid {
  max-width: 1160px; margin: var(--s-6) auto 0; padding: 0 var(--s-4);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-3);
}
.f-card {
  background: var(--ink-2); border: 1px solid rgba(247, 243, 235, 0.08);
  border-radius: var(--r-l); padding: var(--s-4);
  transition: transform var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.f-card:hover { transform: translateY(-4px); border-color: rgba(45, 217, 82, 0.3); }
.f-card .f-ic {
  width: 42px; height: 42px; border-radius: var(--r-s); margin-bottom: var(--s-3);
  background: rgba(45, 217, 82, 0.12); display: grid; place-items: center;
}
.f-card .f-ic svg { width: 22px; height: 22px; stroke: var(--lime); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.f-card h3 { font-size: var(--fs-500); margin-bottom: 6px; }
.f-card p { font-size: var(--fs-300); color: var(--muted-on-dark); }

/* reveal on scroll (generic) */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); }
.reveal.on { opacity: 1; transform: none; }

/* ── responsive: story + grids ── */
@media (max-width: 980px) {
  .steps { grid-template-columns: 1fr; gap: var(--s-5); max-width: 480px; }
  .f-grid { grid-template-columns: repeat(2, 1fr); }
  .story-line h2 { font-size: var(--fs-700); }
  .story-line p { font-size: var(--fs-500); }
  .s-card { width: 186px; }
}
@media (max-width: 640px) {
  .f-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  /* story on small screens: shorter bubble flights, cards in a tidy 2x2 grid */
  .story-scene { --fly-scale: 0.4; }
  .s-bubble { font-size: var(--fs-300); }
  /* clear the core: push the lower bubble pair further down (beats inline styles) */
  div.s-bubble:nth-of-type(4) { top: 68% !important; }
  div.s-bubble:nth-of-type(5) { top: 78% !important; }
  .cards {
    inset: auto var(--s-3);
    top: 50%; transform: translateY(-50%);
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  }
  .s-card { position: static !important; width: auto; }
  .story-canvas[data-stage="2"] .core { opacity: 0.22; }
}

/* ── reduced motion: story becomes three static panels ── */
@media (prefers-reduced-motion: reduce) {
  .story-track { height: auto; }
  .story-canvas { position: static; height: auto; overflow: visible; display: block; padding-block: var(--s-7); }
  .story-lines { min-height: 0; }
  .story-line { position: static; opacity: 1; transform: none; margin-bottom: var(--s-5); }
  .story-scene { display: none; }
  .story-progress { display: none; }
  .reveal { opacity: 1; transform: none; }
}

/* ═══════════ Phase 4-5: showcase / demo / pricing / faq / footer ═══════════ */

/* ── showcase: the generated device scenes, parallax-floated ── */
.showcase { padding: var(--s-8) 0 var(--s-6); overflow: hidden; }
.showcase-hero { max-width: 1160px; margin: var(--s-6) auto 0; padding: 0 var(--s-4); position: relative; }
.showcase-hero img {
  width: 100%; height: auto; display: block;
  border-radius: var(--r-l);
  border: 1px solid rgba(45, 217, 82, 0.16);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(45, 217, 82, 0.10);
  will-change: transform;
}
.float-idle { animation: floatIdle 7s var(--ease) infinite alternate; }
@keyframes floatIdle {
  from { translate: 0 0; }
  to { translate: 0 -10px; }
}
.showcase-split {
  max-width: 1160px; margin: var(--s-7) auto 0; padding: 0 var(--s-4);
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); align-items: center;
}
.showcase-split img {
  width: 100%; height: auto; display: block;
  border-radius: var(--r-l);
  border: 1px solid rgba(45, 217, 82, 0.16);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
  will-change: transform;
}
.showcase-split h3 { font-size: var(--fs-800); line-height: var(--lh-tight); margin-bottom: var(--s-3); }
.showcase-split p { font-size: var(--fs-600); color: var(--muted-on-dark); max-width: 40ch; }

/* scroll parallax: JS sets --pv in [-1,1] by element position in viewport */
[data-parallax] { transform: translateY(calc(var(--pv, 0) * var(--par, 24px))); }

/* ── live demo ── */
.demo { padding: var(--s-8) 0; background:
  radial-gradient(800px 500px at 50% 20%, rgba(45, 217, 82, 0.07), transparent 65%), var(--ink); }
.demo-wrap { max-width: 560px; margin: var(--s-6) auto 0; padding: 0 var(--s-4); }
.demo .phone { width: 100%; }
.demo .chat, .demo-live .chat { min-height: 300px; max-height: 420px; overflow-y: auto; scroll-behavior: smooth; }
.demo .msg, .demo-live .msg { white-space: pre-wrap; }
.demo-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 var(--s-3) var(--s-3); }
.demo-chip {
  font-family: var(--font); font-size: var(--fs-300); cursor: pointer;
  color: var(--lime); background: rgba(197, 240, 58, 0.08);
  border: 1px solid rgba(197, 240, 58, 0.22); border-radius: var(--r-pill);
  padding: 7px 14px; transition: background var(--t-fast) var(--ease);
}
.demo-chip:hover { background: rgba(197, 240, 58, 0.16); }
.demo-input {
  display: flex; gap: 8px; padding: 12px;
  border-top: 1px solid rgba(247, 243, 235, 0.08);
  background: rgba(4, 20, 14, 0.55);
}
.demo-input input {
  flex: 1; font-family: var(--font); font-size: var(--fs-500);
  background: rgba(247, 243, 235, 0.07); color: var(--text-on-dark);
  border: 1px solid rgba(247, 243, 235, 0.12); border-radius: var(--r-pill);
  padding: 11px 18px; outline: none;
}
.demo-input input:focus-visible { border-color: var(--lime); outline: none; }
.demo-input input::placeholder { color: var(--muted-on-dark); }
.demo-send {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  border: 0; cursor: pointer; background: var(--grad);
  display: grid; place-items: center;
  transition: transform var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease);
}
.demo-send:hover { transform: scale(1.06); }
.demo-send:disabled { opacity: 0.45; cursor: default; transform: none; }
.demo-send svg { width: 20px; height: 20px; stroke: var(--ink); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.demo-note { text-align: center; margin-top: var(--s-3); font-size: var(--fs-300); color: var(--muted-on-dark); }
.demo .typing, .demo-live .typing { position: static; margin-inline-start: auto; display: none; }
.demo .typing.show, .demo-live .typing.show { display: flex; }

/* ── pricing ── */
.pricing { padding: var(--s-8) 0; }
.plan-toggle {
  display: flex; justify-content: center; gap: 6px; margin: var(--s-5) auto 0;
  background: var(--ink-2); border: 1px solid rgba(247, 243, 235, 0.1);
  border-radius: var(--r-pill); padding: 5px; width: fit-content;
}
.plan-toggle button {
  font-family: var(--font); font-size: var(--fs-400); cursor: pointer;
  border: 0; background: transparent; color: var(--muted-on-dark);
  border-radius: var(--r-pill); padding: 9px 22px;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.plan-toggle button[aria-pressed="true"] { background: var(--grad); color: var(--ink); font-weight: 700; }
.plans {
  max-width: 1160px; margin: var(--s-6) auto 0; padding: 0 var(--s-4);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); align-items: stretch;
}
.plans.personal-mode { grid-template-columns: minmax(0, 420px); justify-content: center; }
.plans[hidden] { display: none; }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--ink-2); border: 1px solid rgba(247, 243, 235, 0.09);
  border-radius: var(--r-l); padding: var(--s-5) var(--s-4) var(--s-4);
}
.plan.hot { border-color: rgba(45, 217, 82, 0.45); box-shadow: 0 0 40px rgba(45, 217, 82, 0.12); }
.plan .flag {
  position: absolute; top: -14px; inset-inline-start: 50%; translate: 50% 0;
  background: var(--grad); color: var(--ink); font-size: var(--fs-300); font-weight: 700;
  padding: 4px 16px; border-radius: var(--r-pill); white-space: nowrap;
}
.plan h3 { font-size: var(--fs-700); }
.plan .tagline { font-size: var(--fs-300); color: var(--muted-on-dark); margin-bottom: var(--s-3); }
.plan .price { display: flex; align-items: baseline; gap: 6px; margin-bottom: var(--s-3); }
.plan .price b { font-size: 2.4rem; line-height: 1; }
.plan .price span { font-size: var(--fs-300); color: var(--muted-on-dark); }
.plan ul { list-style: none; padding: 0; margin: 0 0 var(--s-4); display: grid; gap: 9px; }
.plan li { display: flex; gap: 8px; align-items: start; font-size: var(--fs-400); color: var(--text-on-dark); }
.plan li svg { flex: none; margin-top: 4px; }
.plan .btn { margin-top: auto; width: 100%; }
.pricing-note { text-align: center; margin-top: var(--s-4); font-size: var(--fs-300); color: var(--muted-on-dark); }

/* ── faq ── */
.faq { padding: var(--s-8) 0; }
.faq-list { max-width: 760px; margin: var(--s-6) auto 0; padding: 0 var(--s-4); display: grid; gap: var(--s-2); }
.faq-item {
  background: var(--ink-2); border: 1px solid rgba(247, 243, 235, 0.08);
  border-radius: var(--r-m); overflow: hidden;
}
.faq-item summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; gap: 12px;
  padding: 18px 20px; font-size: var(--fs-500); font-weight: 700;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ''; margin-inline-start: auto; flex: none; width: 10px; height: 10px;
  border-inline-end: 2px solid var(--lime); border-bottom: 2px solid var(--lime);
  /* closed: chevron points down; open: up (inline-end border = left in RTL) */
  transform: translateY(-2px) rotate(-45deg); transition: transform var(--t-med) var(--ease);
}
.faq-item[open] summary::after { transform: translateY(3px) rotate(135deg); }
.faq-item .a { padding: 0 20px 18px; font-size: var(--fs-400); color: var(--muted-on-dark); line-height: var(--lh-body); }

/* ── footer ── */
.site-footer { border-top: 1px solid rgba(247, 243, 235, 0.08); background: var(--ink-2); }
.footer-wrap {
  max-width: 1160px; margin-inline: auto; padding: var(--s-6) var(--s-4);
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-6);
}
.site-footer .lockup svg.mark { width: 34px; height: 34px; }
.site-footer .word { font-size: 23px; --dot-hole: var(--ink-2); }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-4); list-style: none; padding: 0; margin: 0; }
.footer-links a { text-decoration: none; font-size: var(--fs-300); color: var(--muted-on-dark); }
.footer-links a:hover { color: var(--cream); }
.footer-copy { margin-inline-start: auto; font-size: var(--fs-300); color: var(--muted-on-dark); }

/* ── responsive for the new sections ── */
@media (max-width: 980px) {
  .showcase-split { grid-template-columns: 1fr; gap: var(--s-5); }
  .plans { grid-template-columns: 1fr; max-width: 480px; }
  .plan.hot { order: -1; }
}
@media (prefers-reduced-motion: reduce) {
  [data-parallax] { transform: none; }
  .float-idle { animation: none; }
}

/* live widget in the hero */
.demo-live { width: min(390px, 100%); }
.demo-live .phone { width: 100%; }

/* links inside demo bubbles (wa.me / app.pizi.co) */
.demo-live .msg a, .demo .msg a { color: inherit; text-decoration: underline; font-weight: 700; word-break: break-all; }
