/* ============================================================
   DESIGN TOKENS
   Pulled from the approved avatar/banner: lavender field #9996CD,
   handset red #C8442F, cream blob #FFF8E2, ink outline near-black.
   Type: Baloo 2 (display, lane-specified) + Nunito Sans (body) +
   JetBrains Mono (CA / numbers, must stay exact-case and copyable).
   Shapes: thick ink borders + hard offset shadows (no blur) to echo
   the flat cartoon linework instead of generic soft-UI drop shadows.
   ============================================================ */
:root{
  --bg: #847ec2;
  --bg-deep: #6f69ad;
  --panel: #b5b0e4;
  --panel-light: #cfcbef;
  --cream: #fff8e2;
  --ink: #241f33;
  --red: #c8442f;
  --red-dark: #93311f;
  --green: #3f8f5c;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 96px;

  --border-w: 3px;
  --shadow-off: 6px;

  --font-display: 'Baloo 2', 'Nunito Sans', sans-serif;
  --font-body: 'Nunito Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

@font-face{
  font-family: 'Baloo 2';
  src: url('fonts/baloo-2-latin-700-normal.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face{
  font-family: 'Baloo 2';
  src: url('fonts/baloo-2-latin-800-normal.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face{
  font-family: 'Nunito Sans';
  src: url('fonts/nunito-sans-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face{
  font-family: 'Nunito Sans';
  src: url('fonts/nunito-sans-latin-600-normal.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face{
  font-family: 'Nunito Sans';
  src: url('fonts/nunito-sans-latin-700-normal.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face{
  font-family: 'JetBrains Mono';
  src: url('fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face{
  font-family: 'JetBrains Mono';
  src: url('fonts/jetbrains-mono-latin-700-normal.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; display: block; }

.skip-link{
  position: absolute; left: -999px; top: 0;
  background: var(--cream); color: var(--ink); padding: 10px 16px;
  z-index: 1000; border-radius: 0 0 8px 0;
}
.skip-link:focus{ left: 0; }

/* ============================= HERO ============================= */
.hero{
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-6) var(--space-4) var(--space-5);
  background:
    radial-gradient(ellipse at 50% 18%, var(--panel-light) 0%, transparent 60%),
    var(--bg);
  position: relative;
}
.hero-inner{
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(280px, 460px) 1fr;
  gap: var(--space-7);
  align-items: center;
}

.stage{
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: visible;
}
.stage-art{
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius-lg);
  transform-origin: 50% 65%;
}
.stage.shake .stage-art{ animation: stageShake 420ms ease-in-out 2; }
.stage-art.swivel{ animation: headSwivel 620ms ease-in-out 1; }

@keyframes headSwivel{
  0%{ transform: rotate(0deg); }
  20%{ transform: rotate(-7deg); }
  45%{ transform: rotate(6deg); }
  70%{ transform: rotate(-4deg); }
  100%{ transform: rotate(0deg); }
}
@keyframes stageShake{
  0%, 100%{ transform: translateX(0); }
  20%{ transform: translateX(-10px) rotate(-1.2deg); }
  40%{ transform: translateX(9px) rotate(1deg); }
  60%{ transform: translateX(-7px) rotate(-0.8deg); }
  80%{ transform: translateX(6px) rotate(0.6deg); }
}

.phone-hotspot{
  position: absolute;
  left: 10%; top: 39%;
  width: 16%; height: 38%;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  border-radius: var(--radius-pill);
}
.phone-hotspot:focus-visible{
  outline: 3px solid var(--cream);
  outline-offset: 4px;
}
.phone-right{ left: auto; right: 10.5%; }

.ring-ring{
  position: absolute;
  inset: -10%;
  border-radius: var(--radius-pill);
  pointer-events: none;
}
.phone-hotspot.ringing .ring-ring::before,
.phone-hotspot.ringing .ring-ring::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-pill);
  border: 3px solid var(--red);
  opacity: 0;
  animation: ringPulse 1.1s ease-out infinite;
}
.phone-hotspot.ringing .ring-ring::after{ animation-delay: .55s; }
@keyframes ringPulse{
  0%{ transform: scale(.72); opacity: .85; }
  100%{ transform: scale(1.22); opacity: 0; }
}
.phone-hotspot.ringing{ animation: hotspotJitter 260ms ease-in-out infinite; }
@keyframes hotspotJitter{
  0%, 100%{ transform: rotate(0deg); }
  25%{ transform: rotate(-3deg); }
  75%{ transform: rotate(3deg); }
}

.phone-hotspot.answered .ring-ring{ opacity: 0; }

.bubble{
  position: absolute;
  max-width: 180px;
  background: var(--cream);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-off) var(--shadow-off) 0 var(--ink);
  padding: 10px 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  line-height: 1.25;
  text-align: center;
  opacity: 0;
  transform: translateY(8px) scale(.9);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
  z-index: 5;
}
.bubble.show{ opacity: 1; transform: translateY(0) scale(1); }
.bubble-left{ left: -4%; top: 27%; }
.bubble-right{ right: -4%; top: 27%; }

.caught-stamp{
  position: absolute;
  top: 44%; left: 50%;
  transform: translate(-50%, -50%) rotate(-9deg) scale(0.6);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  color: var(--cream);
  background: var(--red);
  border: var(--border-w) solid var(--ink);
  padding: 6px 20px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-off) var(--shadow-off) 0 var(--ink);
  opacity: 0;
  z-index: 6;
  transition: opacity 160ms ease, transform 160ms ease;
}
.caught-stamp.show{
  opacity: 1;
  transform: translate(-50%, -50%) rotate(-9deg) scale(1);
}

.hero-side{ display: flex; flex-direction: column; gap: var(--space-2); }
.eyebrow{
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.78rem;
  color: var(--ink);
  opacity: 0.72;
  margin: 0 0 var(--space-1);
}
.h1{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  line-height: 1.04;
  margin: 0 0 var(--space-2);
  color: var(--ink);
}
.sub{
  font-size: 1.05rem;
  max-width: 46ch;
  margin: 0 0 var(--space-4);
  color: var(--ink);
}

.ca-box{
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--cream);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  width: fit-content;
  max-width: 100%;
  cursor: pointer;
  box-shadow: var(--shadow-off) var(--shadow-off) 0 var(--ink);
  margin-bottom: var(--space-4);
  position: relative;
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.ca-box:hover{ transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.ca-box:active{ transform: translate(0, 0); box-shadow: 3px 3px 0 var(--ink); }
.ca-label{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--red-dark);
  flex-shrink: 0;
}
.ca-value{
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.86rem;
  color: var(--ink);
  white-space: nowrap;
  overflow-x: auto;
  max-width: 54vw;
  user-select: all;
}
.ca-copied{
  position: absolute;
  top: -34px; right: 8px;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 8px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 150ms ease, transform 150ms ease;
  pointer-events: none;
}
.ca-copied.show{ opacity: 1; transform: translateY(0); }

.cta-row{ display: flex; gap: var(--space-2); flex-wrap: wrap; margin-bottom: var(--space-3); }
.btn{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  border: var(--border-w) solid var(--ink);
  box-shadow: var(--shadow-off) var(--shadow-off) 0 var(--ink);
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.btn:hover{ transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.btn:active{ transform: translate(0, 0); box-shadow: 3px 3px 0 var(--ink); }
.btn-primary{ background: var(--red); color: var(--cream); }
.btn-ghost{ background: var(--cream); color: var(--ink); }
.btn-ghost img{ filter: none; }

.counter-line{
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink);
  opacity: 0.8;
  margin: 0;
}
.counter-line span{ font-weight: 700; opacity: 1; }

.scroll-hint{
  position: absolute;
  bottom: var(--space-3);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.55;
}

/* ============================= SECTIONS ============================= */
.section{
  max-width: 980px;
  margin: 0 auto;
  padding: var(--space-7) var(--space-4);
}
.section-title{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  margin: 0 0 var(--space-1);
  color: var(--cream);
}
.section-sub{
  margin: 0 0 var(--space-5);
  color: var(--cream);
  opacity: 0.82;
  max-width: 56ch;
}

.testimonials, .faq{ background: var(--bg-deep); }
.testimonials .section-title, .faq .section-title,
.testimonials .section-sub, .faq .section-sub{ color: var(--cream); }

.testi-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}
.testi-card{
  background: var(--cream);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-off) var(--shadow-off) 0 var(--ink);
  padding: var(--space-4);
}
.testi-head{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-2);
}
.testi-id{
  font-family: var(--font-mono);
  font-size: 0.78rem;
  opacity: 0.7;
}
.testi-stars{ color: var(--red); letter-spacing: 1px; }
.testi-quote{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.35;
  margin: 0;
}
.testi-footnote{
  margin: var(--space-4) 0 0;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--cream);
  opacity: 0.75;
}

.faq-list{ display: flex; flex-direction: column; gap: var(--space-2); }
.faq-item{
  background: var(--cream);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-off) var(--shadow-off) 0 var(--ink);
  padding: var(--space-3) var(--space-4);
}
.faq-item summary{
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  list-style: none;
}
.faq-item summary::-webkit-details-marker{ display: none; }
.faq-item summary::before{
  content: "+";
  display: inline-block;
  width: 1.1em;
  color: var(--red);
  font-weight: 800;
}
.faq-item[open] summary::before{ content: "-"; }
.faq-item p{ margin: var(--space-2) 0 0; opacity: 0.88; }

.gallery{ background: var(--bg); }
.gallery .section-title{ color: var(--ink); }
.gallery .section-sub{ color: var(--ink); opacity: 0.78; }
.gallery-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}
.gchat{
  background: var(--cream);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-off) var(--shadow-off) 0 var(--ink);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.gchat-to{
  font-family: var(--font-mono);
  font-size: 0.72rem;
  opacity: 0.6;
}
.gchat-bubble{
  background: var(--panel-light);
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 8px 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  line-height: 1.25;
}
.gchat-time{
  font-family: var(--font-mono);
  font-size: 0.68rem;
  opacity: 0.55;
  align-self: flex-end;
}

/* ============================= FOOTER ============================= */
.footer{ background: var(--ink); padding: var(--space-5) var(--space-4); }
.footer-inner{
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  align-items: center;
  justify-content: space-between;
}
.footer-ticker{
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--cream);
  font-size: 1.05rem;
}
.footer-status{
  font-family: var(--font-mono);
  color: var(--panel-light);
  font-size: 0.8rem;
}
.footer-ca{
  font-family: var(--font-mono);
  color: var(--cream);
  font-size: 0.8rem;
  opacity: 0.85;
}

/* ============================= SOUND TOGGLE ============================= */
.sound-toggle{
  position: fixed;
  top: var(--space-3);
  right: var(--space-3);
  z-index: 50;
  background: var(--cream);
  border: var(--border-w) solid var(--ink);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-off) var(--shadow-off) 0 var(--ink);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 8px 14px;
  cursor: pointer;
  color: var(--ink);
}
.sound-toggle .sound-off{ display: inline; }
.sound-toggle .sound-on{ display: none; }
.sound-toggle[aria-pressed="true"] .sound-off{ display: none; }
.sound-toggle[aria-pressed="true"] .sound-on{ display: inline; }

/* ============================= RESPONSIVE ============================= */
@media (max-width: 920px){
  .hero-inner{ grid-template-columns: 1fr; gap: var(--space-5); }
  .hero{ padding-top: var(--space-5); }
  .stage{ max-width: 420px; margin: 0 auto; }
  .testi-grid{ grid-template-columns: 1fr; }
  .scroll-hint{ position: static; transform: none; text-align: center; margin-top: var(--space-5); }
}
@media (max-width: 700px){ .gallery-grid{ grid-template-columns: repeat(2, 1fr); gap: var(--space-2); } }
@media (max-width: 360px){ .gallery-grid{ grid-template-columns: 1fr; } }
@media (max-width: 420px){
  .bubble{ max-width: 128px; font-size: 0.74rem; padding: 8px 10px; }
  .cta-row{ flex-direction: column; align-items: stretch; }
  .btn{ justify-content: center; }
  .ca-box{ max-width: 100%; }
  .ca-value{ max-width: 48vw; font-size: 0.76rem; }
}

/* ============================= REDUCED MOTION ============================= */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .phone-hotspot.ringing{ animation: none; }
  .phone-hotspot.ringing .ring-ring{
    background: var(--red);
    opacity: 0.9;
    width: 14px; height: 14px;
    inset: auto;
    top: 6px; right: 6px;
    border-radius: 50%;
  }
  .phone-hotspot.ringing .ring-ring::before,
  .phone-hotspot.ringing .ring-ring::after{ display: none; }
  .stage.shake .stage-art, .stage-art.swivel{ animation: none; }
  .bubble, .caught-stamp, .btn, .ca-box{ transition: none; }
}
