/*
 * /zuzu page (views/pages/zuzu.php, assets/js/zuzu-page.js). site.css is a prebuilt Tailwind file,
 * so this page uses its own zp- classes instead of new utilities.
 */
.zp { --ink: #1a1a1a; --grey: #6e6c66; --line: #c9c5b9; --teal: #1d5e63; --deep: #0c2a2d; --coral: #f15a4a; --coral-deep: #c83a2d; --coral-soft: #fbd9d2; --cream: #faf7f0; --paper: #f0ede4; }
.zp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.zp-face { display: block; width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; object-fit: cover; background: radial-gradient(circle at 50% 38%, #fdf1ea 0%, #f6e3d6 70%); box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(12, 42, 45, .15); }

/* ---- Hero --------------------------------------------------------------- */
.zp-hero { position: relative; margin-top: -1rem; overflow: hidden; border-radius: 36px; color: #fff; background: radial-gradient(110% 80% at 100% 0%, #1b5257 0%, #0c2a2d 55%); }
.zp-hero-glow { position: absolute; left: -9rem; bottom: -9rem; width: 28rem; height: 28rem; border-radius: 50%; background: rgba(241, 90, 74, .2); filter: blur(70px); pointer-events: none; }
.zp-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); }
.zp-hero-copy { padding: 2.75rem 1.5rem 1.5rem; }
.zp-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; margin: 0 0 1.5rem; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--coral-soft); }
.zp-pill { display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .75rem; border-radius: 999px; background: var(--coral); color: #fff; letter-spacing: .08em; }
.zp-h1 { margin: 0 0 1.25rem; font-family: var(--font-brand); font-size: clamp(2.3rem, 3vw + 1.2rem, 3.9rem); line-height: 1.02; letter-spacing: -.02em; text-wrap: balance; }
.zp-h1 em { font-style: normal; color: var(--coral-soft); }
.zp-lede { margin: 0 0 2rem; max-width: 36rem; font-size: 1.125rem; line-height: 1.6; color: rgba(250, 247, 240, .8); text-wrap: pretty; }
.zp-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.zp-cta { background: var(--cream); color: var(--ink); }
.zp-cta:hover, .zp-cta:focus-visible { background: #fff; }
.zp-cta-ghost { border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .08); color: #fff; }
.zp-cta-ghost:hover, .zp-cta-ghost:focus-visible { background: rgba(255, 255, 255, .15); }
.zp-proof { display: flex; flex-wrap: wrap; gap: .6rem 1.25rem; margin: 1.75rem 0 0; padding: 0; list-style: none; font-size: .875rem; font-weight: 600; color: rgba(250, 247, 240, .85); }
.zp-proof li { display: inline-flex; align-items: center; gap: .4rem; }
.zp-proof svg { color: #7fd1c0; }

.zp-hero-stage { position: relative; display: flex; justify-content: center; align-items: flex-end; padding: 1rem 1rem 2rem; }
.zp-hero-mascot { display: none; }
.zp-panel { position: relative; z-index: 2; display: flex; flex-direction: column; width: 100%; max-width: 410px; margin: 0; overflow: hidden; border-radius: 26px; background: #fff; color: var(--ink); box-shadow: 0 30px 70px rgba(0, 0, 0, .35), 0 0 0 1px rgba(255, 255, 255, .08); }
.zp-panel-head { display: flex; align-items: center; gap: .65rem; padding: .85rem 1rem; border-bottom: 1px solid rgba(201, 197, 185, .7); background: var(--cream); }
.zp-panel-name { margin: 0; font-family: var(--font-brand); font-size: 1.05rem; line-height: 1.1; }
.zp-panel-sub { margin: 0; font-size: .75rem; color: var(--grey); }
.zp-panel-tag { margin-left: auto; padding: .25rem .55rem; border-radius: 999px; border: 1px solid var(--line); font-size: .6875rem; font-weight: 700; color: var(--grey); white-space: nowrap; }
.zp-panel-body { display: flex; flex-direction: column; gap: .7rem; height: 470px; padding: 1rem; overflow: hidden; background: var(--paper); }
.zp-step { display: flex; flex-direction: column; gap: .5rem; }
.zp-step[data-who="you"] { align-items: flex-end; }
.zp-step[data-who="zuzu"] { align-items: flex-start; }
.zp-msg { margin: 0; max-width: 88%; padding: .6rem .85rem; border-radius: 16px; font-size: .875rem; line-height: 1.45; text-wrap: pretty; }
.zp-msg--you { background: var(--teal); color: #fff; font-weight: 600; border-bottom-right-radius: 5px; }
.zp-msg--zuzu { background: #fff; border: 1px solid rgba(201, 197, 185, .8); border-bottom-left-radius: 5px; }
.zp-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; width: 88%; }
.zp-stats div { padding: .5rem .6rem; border-radius: 12px; background: #fff; border: 1px solid rgba(201, 197, 185, .8); }
.zp-stats b { display: block; font-family: var(--font-brand); font-size: .95rem; color: var(--teal); }
.zp-stats span { font-size: .6875rem; color: var(--grey); }
.zp-done { display: inline-flex; align-items: center; gap: .4rem; margin: 0; padding: .4rem .7rem; border-radius: 999px; background: #e3f1ec; color: #1f5e4c; font-size: .75rem; }
.zp-panel-foot { display: flex; align-items: center; gap: .5rem; padding: .75rem 1rem; border-top: 1px solid rgba(201, 197, 185, .7); background: #fff; }
.zp-composer { flex: 1; min-width: 0; padding: .55rem .8rem; border-radius: 12px; border: 1px solid var(--line); font-size: .8125rem; color: var(--grey); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zp-replay { display: inline-flex; align-items: center; gap: .3rem; padding: .5rem .7rem; border: 0; border-radius: 10px; background: var(--paper); color: var(--teal); font: inherit; font-size: .75rem; font-weight: 700; cursor: pointer; }
.zp-replay:hover { background: #e6e2d6; }
.zp-replay[hidden] { display: none; }
.zp-typing { display: none; gap: .25rem; align-self: flex-start; padding: .7rem .9rem; border-radius: 16px; background: #fff; border: 1px solid rgba(201, 197, 185, .8); }
.zp-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--grey); animation: zp-dot 1s infinite ease-in-out; }
.zp-typing span:nth-child(2) { animation-delay: .15s; }
.zp-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes zp-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
/* Script running: steps start hidden and appear one by one. */
.zp-panel.is-playing .zp-step { display: none; }
.zp-panel.is-playing .zp-step.is-shown { display: flex; animation: zp-in .35s cubic-bezier(.22, 1, .36, 1); }
.zp-panel.is-typing .zp-typing { display: inline-flex; }
@keyframes zp-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Confirmation card (hero and question picker). */
.zp-confirm { width: 92%; max-width: 22rem; padding: .85rem; border-radius: 16px; background: #fff; border: 1px solid rgba(241, 90, 74, .35); box-shadow: 0 8px 24px rgba(12, 42, 45, .07); }
.zp-confirm-head { display: flex; align-items: center; gap: .4rem; margin: 0 0 .6rem; font-size: .875rem; font-weight: 800; }
.zp-confirm-head svg { color: var(--coral); }
.zp-confirm ul, .zp-rows { margin: 0; padding: 0; list-style: none; }
.zp-confirm li, .zp-rows li { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; border-top: 1px solid rgba(201, 197, 185, .55); font-size: .8125rem; }
.zp-confirm li b { color: var(--coral-deep); white-space: nowrap; }
.zp-confirm-actions { display: flex; justify-content: flex-end; gap: .4rem; margin-top: .6rem; padding-top: .6rem; border-top: 1px solid rgba(201, 197, 185, .55); }
.zp-btn-ghost, .zp-btn-solid { padding: .45rem .75rem; border-radius: 10px; font-size: .75rem; font-weight: 700; }
.zp-btn-ghost { color: var(--grey); }
.zp-btn-solid { background: var(--teal); color: #fff; }

/* ---- Sections ----------------------------------------------------------- */
.zp-section { padding: 4.5rem 0; }
.zp-section--tight { padding: 2.5rem 0 4.5rem; }
.zp-head { max-width: 46rem; margin: 0 auto 2.75rem; text-align: center; }
.zp-h2 { margin: 0 0 1rem; font-family: var(--font-brand); font-size: clamp(1.9rem, 2.4vw + 1rem, 3.1rem); line-height: 1.06; letter-spacing: -.015em; text-wrap: balance; }
.zp-h2--light { color: #fff; }
.zp-sub { margin: 0 auto; max-width: 38rem; font-size: 1.0625rem; line-height: 1.6; color: var(--grey); text-wrap: pretty; }
.zp-sub--left { margin: 0; }

/* Question picker. */
.zp-try { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
.zp-tabs { display: grid; gap: .5rem; }
.zp-tab { display: flex; align-items: flex-start; gap: .75rem; width: 100%; padding: .85rem 1rem; border-radius: 18px; border: 1px solid rgba(201, 197, 185, .8); background: rgba(255, 255, 255, .7); color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: background-color .15s, border-color .15s, box-shadow .15s; }
.zp-tab:hover { background: #fff; }
.zp-tab:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.zp-tab b { display: block; font-size: .9375rem; }
.zp-tab small { display: block; margin-top: .15rem; font-size: .8125rem; color: var(--grey); }
.zp-tab-icon { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; flex-shrink: 0; border-radius: 11px; background: var(--paper); color: var(--teal); }
.zp-tab[aria-selected="true"] { background: #fff; border-color: var(--teal); box-shadow: 0 10px 28px rgba(12, 42, 45, .1); }
.zp-tab[aria-selected="true"] .zp-tab-icon { background: var(--teal); color: #fff; }
.zp-try-panes { display: grid; gap: 1rem; }
.zp-pane { display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; padding: 1.25rem; border-radius: 26px; background: var(--paper); border: 1px solid rgba(201, 197, 185, .7); }
.zp-pane-chat { display: flex; flex-direction: column; gap: .9rem; }
.zp-msg-row { display: flex; gap: .6rem; }
.zp-msg-row--you { flex-direction: column; align-items: flex-end; }
.zp-msg-row--zuzu { align-items: flex-start; }
.zp-msg-row--zuzu .zp-face { width: 34px; height: 34px; }
.zp-msg-stack { display: flex; flex-direction: column; gap: .5rem; min-width: 0; flex: 1; }
.zp-msg-stack .zp-msg { max-width: 100%; }
.zp-pane .zp-msg { font-size: .9375rem; }
.zp-pane .zp-confirm { width: 100%; }
.zp-file { display: inline-flex; align-items: center; gap: .4rem; margin: .35rem 0 0; padding: .4rem .7rem; border-radius: 10px; background: #fff; border: 1px dashed var(--line); font-size: .8125rem; color: var(--grey); }
.zp-rows { max-width: 22rem; padding: .35rem .85rem; border-radius: 14px; background: #fff; border: 1px solid rgba(201, 197, 185, .8); }
.zp-rows li:first-child { border-top: 0; }
.zp-rows li b { color: var(--teal); white-space: nowrap; }
.zp-pane-note { display: flex; align-items: flex-start; gap: .45rem; margin: 0; font-size: .8125rem; line-height: 1.45; color: var(--grey); }
.zp-pane-note svg { margin-top: .1rem; flex-shrink: 0; color: var(--teal); }
/* Script running: only the chosen answer shows. */
.zp-try.is-enhanced .zp-pane { display: none; }
.zp-try.is-enhanced .zp-pane.is-active { display: flex; animation: zp-in .3s cubic-bezier(.22, 1, .36, 1); }

/* Below 64rem the tabs are a swipeable row above the answer, so a tap never pushes it off screen. */
@media (max-width: 63.99rem) {
  .zp-try.is-enhanced .zp-tabs { grid-auto-flow: column; grid-auto-columns: minmax(15rem, 72%); overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -1rem; padding: .25rem 1rem .75rem; scrollbar-width: none; }
  .zp-try.is-enhanced .zp-tabs::-webkit-scrollbar { display: none; }
  .zp-try.is-enhanced .zp-tab { scroll-snap-align: start; }
}

/* Comparison. */
.zp-compare { max-width: 64rem; margin: 0 auto; overflow: hidden; border-radius: 26px; border: 1px solid rgba(201, 197, 185, .8); background: #fff; }
.zp-compare-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: .4rem; padding: 1rem 1.25rem; border-top: 1px solid rgba(201, 197, 185, .6); }
.zp-compare-row--head { display: none; }
.zp-compare-job { font-weight: 800; }
.zp-compare-old, .zp-compare-new { display: flex; align-items: flex-start; gap: .45rem; font-size: .9375rem; line-height: 1.45; }
.zp-compare-old { color: var(--grey); }
.zp-compare-old svg { margin-top: .2rem; flex-shrink: 0; color: var(--line); }
.zp-compare-new { font-weight: 700; color: var(--teal); }
.zp-compare-new svg { margin-top: .2rem; flex-shrink: 0; color: var(--coral); }
.zp-compare-foot { margin: 1.25rem auto 0; max-width: 40rem; text-align: center; font-size: .9375rem; color: var(--grey); }

/* Safety. */
.zp-safe { display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden; border-radius: 36px; background: radial-gradient(120% 90% at 0% 100%, #14454a 0%, #0c2a2d 58%); color: #fff; }
.zp-safe-art { min-height: 320px; padding: 2rem 1rem 0; align-items: flex-end; }
.zp-safe-art > img { max-height: 320px; width: auto; }
.zp-safe-copy { padding: 1.5rem 1.5rem 2.5rem; }
.zp-guards { display: grid; gap: .75rem; margin: 1.75rem 0; }
.zp-guard { padding: 1.1rem 1.2rem; border-radius: 20px; background: rgba(250, 247, 240, .06); border: 1px solid rgba(250, 247, 240, .12); }
.zp-guard-icon { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; margin-bottom: .7rem; border-radius: 12px; background: rgba(241, 90, 74, .18); color: var(--coral-soft); }
.zp-guard h3 { margin: 0 0 .35rem; font-size: 1.05rem; font-weight: 800; }
.zp-guard p { margin: 0; font-size: .875rem; line-height: 1.5; color: rgba(250, 247, 240, .74); }
.zp-never-label { margin: 0 0 .7rem; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(250, 247, 240, .7); }
.zp-never { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.zp-never li { display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .75rem; border-radius: 999px; border: 1px solid rgba(250, 247, 240, .18); font-size: .8125rem; color: rgba(250, 247, 240, .88); }
.zp-never svg { color: var(--coral-soft); }
.zp-safe-link, .zp-avail-link { margin: 1.75rem 0 0; }
.zp-safe-link a, .zp-avail-link a { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; text-decoration: underline; text-decoration-color: var(--coral); text-underline-offset: 4px; }
.zp-safe-link a { color: #fff; }
.zp-avail-link a { color: var(--teal); }

/* Availability. */
.zp-avail { display: grid; gap: 2rem; align-items: center; padding: 2rem 1.5rem; border-radius: 30px; border: 1px solid rgba(201, 197, 185, .8); background: rgba(255, 255, 255, .7); }
.zp-facts { display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.zp-facts li { display: flex; gap: .85rem; align-items: flex-start; padding: 1rem; border-radius: 18px; background: var(--cream); border: 1px solid rgba(201, 197, 185, .6); }
.zp-fact-icon { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; flex-shrink: 0; border-radius: 12px; background: var(--teal); color: #fff; }
.zp-facts b { font-family: var(--font-brand); font-size: 1.05rem; color: var(--teal); }
.zp-facts p { margin: .2rem 0 0; font-size: .875rem; line-height: 1.45; color: var(--grey); }

/* ---- Wider screens ------------------------------------------------------ */
@media (min-width: 48rem) {
  .zp-hero { border-radius: 48px; }
  .zp-hero-copy { padding: 3.5rem 3rem 1.5rem; }
  .zp-section { padding: 6rem 0; }
  .zp-section--tight { padding: 3rem 0 6rem; }
  .zp-compare-row { grid-template-columns: minmax(0, .8fr) minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.5rem; align-items: center; padding: 1.15rem 1.75rem; }
  .zp-compare-row--head { display: grid; padding-block: .9rem; border-top: 0; background: var(--paper); font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--grey); }
  .zp-compare-row--head span:last-child { display: flex; align-items: center; gap: .5rem; color: var(--teal); }
  .zp-compare-row--head .zp-face { width: 26px; height: 26px; }
  .zp-safe-copy { padding: 2rem 3rem 3rem; }
  .zp-guards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .zp-avail { padding: 3rem; }
}
@media (min-width: 64rem) {
  .zp-hero-grid { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); align-items: center; min-height: 660px; }
  .zp-hero-copy { padding: 4.5rem 0 4.5rem 3.5rem; }
  .zp-hero-stage { align-self: stretch; justify-content: flex-end; align-items: center; padding: 3rem 3rem 3rem 0; }
  .zp-panel { max-width: 360px; }
  .zp-panel-body { height: 440px; }
  .zp-try { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 1.5rem; align-items: start; }
  .zp-try.is-enhanced .zp-try-panes { position: sticky; top: 6rem; }
  .zp-pane { min-height: 460px; padding: 1.75rem; }
  .zp-safe { grid-template-columns: minmax(0, .62fr) minmax(0, 1.38fr); }
  .zp-safe-art { min-height: 100%; padding: 3rem 0 3rem 2rem; align-items: center; }
  .zp-safe-art > img { max-height: 500px; }
  .zp-safe-copy { padding: 3.5rem 3.5rem 3.5rem 1rem; }
  .zp-avail { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); padding: 3.5rem; }
}
/* From 1200px Zuzu stands beside the panel, feet level with its bottom edge. She is in the flow, not
   behind the panel: the negative margins only overlap the artwork's transparent sides (the figure spans
   25%-82% of zuzu-wave.webp's width), so the panel never covers her. Narrower, the panel's face is enough. */
@media (min-width: 64rem) and (max-width: 74.99rem) {
  .zp-hero-stage { justify-content: center; padding-left: 1.5rem; }
}
@media (min-width: 75rem) {
  .zp-hero-stage { align-self: center; align-items: flex-end; padding-left: 0; }
  .zp-hero-mascot { --h: 380px; display: block; flex: none; height: var(--h); width: auto; margin: 0 calc(var(--h) * -.13 + .75rem) 0 calc(var(--h) * -.18); background: radial-gradient(30% 1.8% at 54% 98%, rgba(127, 209, 192, .55), rgba(29, 94, 99, 0)) no-repeat; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .3)); }
  .zp-panel { flex: 0 1 380px; min-width: 330px; }
}
@media (min-width: 80rem) {
  .zp-hero-copy { padding-left: 4.5rem; }
  .zp-hero-mascot { --h: 430px; }
  .zp-panel { flex-basis: 390px; max-width: 390px; }
}
@media (prefers-reduced-motion: reduce) {
  .zp-panel.is-playing .zp-step.is-shown, .zp-try.is-enhanced .zp-pane.is-active { animation: none; }
  .zp-typing span { animation: none; }
}
