/* YappiYak landing page. Brand: deep plum outline, sunny yellow, lavender, plus the 8 button colors. */
:root {
  --plum: #4A1D6B;
  --plum-2: #6B2F96;
  --yellow: #FFC21A;
  --yellow-2: #F5A800;
  --lav: #F4EFFC;
  --lav-2: #E6DCFA;
  --cream: #FBF1E4;
  --ink: #1F1430;
  --muted: #6E6480;
  --white: #FFFFFF;
  --radius: 24px;
  --shadow: 0 10px 30px rgba(74, 29, 107, .12);
  --wrap: 1120px;
  --font-display: "Baloo 2", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--plum-2); }
h1, h2, h3 { font-family: var(--font-display); color: var(--plum); line-height: 1.1; margin: 0 0 .4em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 800; }
h3 { font-size: 1.4rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--plum); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--yellow-2); outline-offset: 3px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  color: var(--plum); background: var(--yellow);
  padding: 14px 28px; border-radius: 999px; border: 3px solid var(--plum);
  text-decoration: none; cursor: pointer;
  box-shadow: 0 5px 0 var(--plum);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { background: #FFD24D; transform: translateY(-2px); box-shadow: 0 7px 0 var(--plum); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--plum); }
.btn-ghost { background: var(--white); }
.btn-ghost:hover { background: var(--lav); }
.btn-small { font-size: 1rem; padding: 8px 18px; box-shadow: 0 4px 0 var(--plum); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.nav.scrolled { border-color: var(--lav-2); box-shadow: 0 4px 20px rgba(74, 29, 107, .06); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 76px; }
.brand img { width: 96px; }
.nav-links { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--plum); font-weight: 700; }
.nav-links a:hover { color: var(--plum-2); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 6px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 500px at 85% 20%, #E9DEFF 0%, transparent 60%),
    radial-gradient(800px 400px at 0% 100%, #FFF2CC 0%, transparent 60%),
    var(--lav);
  padding: 56px 0 120px;
  overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--white); color: var(--plum);
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  padding: 6px 16px 6px 12px; border-radius: 999px; border: 2px solid var(--plum);
  margin-bottom: 20px;
}
.pill-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--yellow-2); box-shadow: 0 0 0 0 rgba(245, 168, 0, .6); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(245, 168, 0, .6); } 80%, 100% { box-shadow: 0 0 0 10px rgba(245, 168, 0, 0); } }
.hl {
  background: linear-gradient(transparent 62%, var(--yellow) 62%, var(--yellow) 90%, transparent 90%);
  padding: 0 .1em;
}
.lead { font-size: 1.25rem; color: #3E3352; max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 14px; }
.hint { color: var(--muted); font-size: .95rem; font-weight: 600; }
.hint::before { content: "👉 "; }
.wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: 80px; }

/* ---------- the Yak illustration ---------- */
.hero-art { display: flex; justify-content: center; }
.yak { position: relative; width: min(500px, 90vw); padding-bottom: 24px; }
.halo {
  position: absolute; inset: 6% -12% -4%; z-index: 0;
  background: radial-gradient(closest-side, var(--glow) 0%, transparent 72%);
  opacity: .55; filter: blur(14px);
  animation: breathe 3.2s ease-in-out infinite;
  transition: background .6s ease;
}
@keyframes breathe { 0%, 100% { opacity: .35; transform: scale(.96); } 50% { opacity: .75; transform: scale(1.03); } }
.yak-photo { position: relative; z-index: 2; width: 100%; filter: drop-shadow(0 18px 28px rgba(74, 29, 107, .25)); }
.hotspots { position: absolute; inset: 0 0 24px; z-index: 3; }
.yb {
  position: absolute; width: 7.4%; aspect-ratio: 1; padding: 0; cursor: pointer;
  transform: translate(-50%, -50%);
  border-radius: 50%; border: 0; background: transparent;
  transition: box-shadow .15s ease, transform .12s ease;
}
.yb:hover { box-shadow: 0 0 0 3px rgba(255, 255, 255, .9), 0 0 14px 4px var(--c); }
.yb:active, .yb.pressed { transform: translate(-50%, -50%) scale(.88); }
.yb.active { box-shadow: 0 0 0 3px var(--white), 0 0 20px 8px var(--c); animation: glowpulse 1.6s ease-in-out infinite; }
@keyframes glowpulse { 50% { box-shadow: 0 0 0 3px var(--white), 0 0 28px 12px var(--c); } }

/* ---------- use-case scenes ---------- */
.scenes { display: grid; gap: 56px; margin-top: 48px; }
.scene { display: grid; grid-template-columns: 1.25fr 1fr; gap: 44px; align-items: center; }
.scene img { width: 100%; border-radius: 28px; box-shadow: 0 20px 44px rgba(74, 29, 107, .18); border: 6px solid var(--white); outline: 3px solid var(--lav-2); }
.scene-flip img { order: 2; }
.scene-copy p { color: #4A4060; font-size: 1.1rem; margin: 0; }
.scene-copy h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.tag {
  display: inline-block; margin-bottom: 12px; padding: 4px 14px; border-radius: 999px;
  background: color-mix(in srgb, var(--c) 14%, white); color: var(--c);
  font-family: var(--font-display); font-weight: 800; font-size: .95rem;
}

/* ---------- lineup ---------- */
.lineup-section { background: linear-gradient(180deg, var(--white), var(--lav)); }
.lineup { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 40px 0 0; }
.lineup figure { margin: 0; text-align: center; }
.lineup img { width: 100%; transition: transform .3s ease; filter: drop-shadow(0 14px 18px rgba(74, 29, 107, .18)); }
.lineup figure:hover img { transform: translateY(-8px) rotate(-2deg); }
.lineup figcaption {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 6px;
  font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; color: var(--plum);
}
.lineup figcaption::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--c); border: 2px solid var(--plum); }

.bubble {
  position: absolute; z-index: 5; top: -2%; right: -10%;
  background: var(--white); border: 3px solid var(--plum); border-radius: 22px 22px 22px 6px;
  padding: 10px 16px; max-width: 220px;
  box-shadow: 0 6px 0 var(--plum);
  display: flex; flex-direction: column; line-height: 1.25;
  transform-origin: bottom left;
  animation: pop .45s cubic-bezier(.3, 1.6, .5, 1);
}
.bubble-who { font-family: var(--font-display); font-weight: 800; color: var(--glow-text, var(--plum)); font-size: 1rem; }
.bubble-who::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--glow); margin-right: 6px; vertical-align: 1px; }
.bubble-msg { font-weight: 700; color: var(--ink); font-size: .98rem; }
.bubble.again { animation: none; }
@keyframes pop { from { transform: scale(.6) rotate(-6deg); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- sections ---------- */
.section { padding: 96px 0; }
.section-tint { background: var(--lav); }
.eyebrow {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: .12em;
  color: var(--yellow-2); font-size: .95rem; margin-bottom: 8px;
}
.section-lead { font-size: 1.2rem; color: #4A4060; max-width: 38em; }

.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: none; }
.step { background: var(--white); border: 3px solid var(--lav-2); border-radius: var(--radius); padding: 28px; position: relative; }
.step-num {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--c); color: var(--white); border: 3px solid var(--plum); box-shadow: 0 4px 0 var(--plum);
  font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; margin-bottom: 18px;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .25);
}
.step p { color: #4A4060; margin: 0; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; }
.card {
  background: var(--white); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(74, 29, 107, .16); }
.card-icon { font-size: 2.2rem; width: 64px; height: 64px; display: grid; place-items: center; background: var(--lav); border-radius: 18px; margin-bottom: 16px; }
.card p { color: #4A4060; margin: 0; }

.safety { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li {
  position: relative; padding: 18px 20px 18px 62px;
  background: var(--lav); border-radius: 18px; color: #3E3352;
}
.checks li::before {
  content: "✓"; position: absolute; left: 18px; top: 16px;
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: #22C55E; color: #fff; font-weight: 800; border: 2px solid var(--plum);
}
.checks strong { color: var(--plum); }

/* ---------- waitlist ---------- */
.cta {
  background:
    radial-gradient(600px 300px at 15% 10%, rgba(255, 194, 26, .25), transparent 70%),
    radial-gradient(600px 300px at 90% 90%, rgba(139, 92, 246, .35), transparent 70%),
    var(--plum);
  color: var(--white); text-align: center;
}
.cta h2 { color: var(--white); font-size: clamp(2.4rem, 5.5vw, 4rem); }
.cta .section-lead { color: #E6DCFA; margin-inline: auto; }
.cta-inner { display: flex; flex-direction: column; align-items: center; }
.cta-logo { width: 200px; margin-bottom: 12px; animation: bob 4s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-8px) rotate(2deg); } }
.waitlist { display: flex; gap: 12px; width: min(520px, 100%); margin-top: 18px; }
.waitlist input {
  flex: 1; min-width: 0; font: inherit; font-weight: 600;
  padding: 14px 20px; border-radius: 999px; border: 3px solid var(--white);
  background: var(--white); color: var(--ink);
}
.waitlist input:focus { outline: none; border-color: var(--yellow); }
.waitlist input[aria-invalid="true"] { border-color: #FF8A8A; }
.cta .btn { box-shadow: 0 5px 0 #2B0F40; border-color: #2B0F40; }
.form-note { margin-top: 16px; font-size: .95rem; color: #CFC2EC; min-height: 1.6em; }
.form-note.ok { color: var(--yellow); font-weight: 800; font-size: 1.1rem; }
.form-note.err { color: #FFB4B4; font-weight: 700; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 820px; }
.faq { margin-top: 32px; display: grid; gap: 12px; }
.faq details { background: var(--lav); border-radius: 18px; padding: 4px 22px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 32px 16px 0; position: relative;
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--plum);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 10px; font-size: 1.6rem; color: var(--yellow-2); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: #4A4060; padding-bottom: 8px; }

/* ---------- footer ---------- */
.footer { background: var(--lav); padding: 36px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer p { margin: 0; color: var(--muted); font-weight: 600; }
.to-top { font-weight: 800; text-decoration: none; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { order: 2; }
  .hero-art { order: 1; }
  .lead { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .steps, .grid { grid-template-columns: 1fr 1fr; }
  .safety { grid-template-columns: 1fr; gap: 24px; }
  .scene { grid-template-columns: 1fr; gap: 20px; }
  .scene-flip img { order: 0; }
  .bubble { right: -2%; }
}
@media (max-width: 720px) {
  body { font-size: 17px; }
  .nav-links { display: none; }
  .hero { padding: 32px 0 96px; }
  .steps, .grid { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .waitlist { flex-direction: column; }
  .bubble { top: -4%; right: 0; max-width: 180px; padding: 8px 12px; }
  .yb { width: 9%; }
  .lineup { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .lineup figcaption { font-size: 1rem; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* About the creators (FAQ accordion) */
.faq .creator { display: flex; gap: 22px; align-items: flex-start; padding: 6px 0 14px; }
.faq .creator img { width: 132px; height: 132px; flex: none; border-radius: 50%; object-fit: cover; border: 4px solid #fff; box-shadow: 0 6px 18px rgba(74, 29, 107, .18); }
.faq .creator h3 { margin: 4px 0 6px; font-size: 1.15rem; }
.faq .creator p { padding-bottom: 0; margin: 0 0 10px; }
@media (max-width: 560px) {
  .faq .creator { flex-direction: column; align-items: center; text-align: center; }
}
.waitlist .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
