/* YipYappy site: bright and character-led, matching beyondthegrove.com.
   No third-party requests: "Fredoka" is used when the visitor has it,
   otherwise SF Pro Rounded (the app's own font) or another rounded face. */
:root {
  color-scheme: light;
  --paper: #FFF8FB;          /* page */
  --white: #FFFFFF;
  --wash: #FBEFF6;           /* alternate section */
  --ink: #1C1624;
  --muted: #5B5166;
  --faint: #8B8094;
  --line: #EEDFE8;
  --pink: #FD5590;           /* YipYappy pink */
  --pink-deep: #D6155F;      /* text-safe pink */
  --grape: #6A4CFF;
  --sun: #FFC83D;
  --mint: #3FC9A8;
  --display: "Fredoka", "SF Pro Rounded", ui-rounded, "Nunito", "Varela Round", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r-lg: 28px; --r-md: 18px;
  --shadow: 0 18px 50px rgba(64, 20, 60, .12);
  --shadow-sm: 0 8px 22px rgba(64, 20, 60, .10);
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--body); overflow-x: clip; }
img, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--pink-deep); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--grape); outline-offset: 3px; border-radius: 10px; }
.skip { position: absolute; left: -999px; top: 12px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 12px; }
.wrap { max-width: 1140px; margin: 0 auto; padding-inline: 20px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: clamp(46px, 7.4vw, 88px); font-weight: 700; }
h2 { font-size: clamp(34px, 4.8vw, 54px); font-weight: 700; }
h3 { font-size: 21px; font-weight: 600; line-height: 1.2; }
p { margin: 0; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 52ch; }
.eyebrow { display: inline-flex; align-items: center; font: 600 14px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--pink-deep); }
.eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--pink); box-shadow: 14px 0 0 var(--sun), 28px 0 0 var(--grape); margin-right: 38px; }
section { padding-block: clamp(72px, 10vw, 120px); }
.wash { background: var(--wash); }

/* Buttons and chips */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px; font: 600 17px/1 var(--display); text-decoration: none; border: 2px solid transparent; transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s; }
.btn-pink { background: var(--pink-deep); color: #fff; box-shadow: 0 10px 24px rgba(214, 21, 95, .28); }
.btn-pink:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(214, 21, 95, .36); }
.btn-line { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn-line:hover { transform: translateY(-2px); border-color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font: 600 14px/1.2 var(--display); color: var(--muted); }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); flex: none; }

/* Header */
header.top { position: sticky; top: 0; z-index: 50; background: rgba(255, 248, 251, .84); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
header.top.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 24px; min-height: 70px; }
.nav .logo { margin-right: auto; }
.nav .logo img { height: 44px; width: auto; }
.nav nav { display: flex; gap: 24px; }
.nav nav a { color: var(--muted); text-decoration: none; font: 600 16px/1 var(--display); }
.nav nav a:hover, .nav nav a[aria-current] { color: var(--ink); }
.nav .btn { min-height: 44px; padding: 0 18px; font-size: 16px; }
@media (max-width: 880px) { .nav nav .opt { display: none; } .nav .btn { display: none; } }
@media (max-width: 420px) { .nav { gap: 16px; } .nav nav { gap: 16px; } .nav .logo img { height: 36px; } }

/* Hero */
.hero { position: relative; padding-block: clamp(40px, 6vw, 88px) clamp(64px, 8vw, 112px); overflow: hidden; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; z-index: 0; pointer-events: none; }
.hero::before { width: 520px; height: 520px; background: #FFC2DA; right: -120px; top: -120px; }
.hero::after { width: 420px; height: 420px; background: #D9D0FF; left: -160px; bottom: -140px; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-top: 18px; }
.hero h1 .pop { color: var(--pink-deep); display: inline-block; }
.hero .lead { margin-top: 22px; }
.hero .btn-row { margin-top: 32px; }
.hero-meta { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }

/* Talking phone */
.stage { position: relative; justify-self: center; width: min(300px, 70vw); }
.phone { position: relative; aspect-ratio: 9 / 19.5; border-radius: 48px; padding: 12px; background: #17121C; box-shadow: var(--shadow), inset 0 0 0 2px #3B3342; }
.phone video, .phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 38px; background: #2A2131; }
.phone::before { content: ""; position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 30%; height: 22px; border-radius: 999px; background: #17121C; z-index: 2; }
.bubble { position: absolute; z-index: 3; padding: 12px 16px; border-radius: 20px; background: var(--white); box-shadow: var(--shadow-sm); font: 600 16px/1.2 var(--display); color: var(--ink); white-space: nowrap; }
.bubble::after { content: ""; position: absolute; width: 16px; height: 16px; background: inherit; transform: rotate(45deg); bottom: -6px; }
.b1 { left: -24%; top: 15%; } .b1::after { right: 26px; }
.b2 { right: -20%; top: 47%; background: var(--sun); } .b2::after { left: 26px; }
.b3 { left: -16%; bottom: 12%; background: var(--pink-deep); color: #fff; } .b3::after { right: 30px; }
.sticker { position: absolute; z-index: 3; width: 30%; right: -12%; top: -6%; transform: rotate(9deg); filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .18)); }
.mark { position: absolute; z-index: 3; width: 17%; right: -9%; bottom: -3%; transform: rotate(10deg); filter: drop-shadow(0 8px 14px rgba(214, 21, 95, .25)); }
@media (prefers-reduced-motion: no-preference) {
  .bubble { animation: bob 4.8s var(--ease) infinite; }
  .b2 { animation-delay: -1.6s; } .b3 { animation-delay: -3.2s; }
  .sticker { animation: wiggle 6s ease-in-out infinite; }
  @keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
  @keyframes wiggle { 0%, 100% { transform: rotate(9deg); } 50% { transform: rotate(3deg) translateY(-6px); } }
}
@media (max-width: 520px) { .b1 { left: -8%; } .b2 { right: -8%; } .b3 { left: -6%; } .sticker { right: -6%; } .mark { right: -4%; } }

/* Four ways strip */
.ways { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: clamp(48px, 6vw, 72px); }
.way { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); font: 600 17px/1.2 var(--display); box-shadow: var(--shadow-sm); }
.way span { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; font-size: 20px; }
.way small { display: block; font: 400 14px/1.3 var(--body); color: var(--muted); }
@media (max-width: 980px) { .ways { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .way { flex-direction: column; align-items: flex-start; gap: 10px; font-size: 16px; } }
@media (max-width: 340px) { .ways { grid-template-columns: minmax(0, 1fr); } }

/* Section head */
.head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.head h2 { margin-top: 14px; }
.head p { margin-top: 16px; color: var(--muted); font-size: 19px; }
.head.center { margin-inline: auto; text-align: center; }
.head.center .eyebrow { justify-content: center; }

/* Screenshot cards */
.shots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.shots.three { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 900px; margin-inline: auto; }
.shot { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px 12px 20px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 12px; transition: transform .25s var(--ease); }
.shot:hover { transform: translateY(-4px) rotate(-.4deg); }
.shot img { border-radius: 18px; aspect-ratio: 478 / 1036; object-fit: cover; object-position: top; width: 100%; background: #17121C; }
.shot .tag { font: 600 12px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--pink-deep); padding-inline: 6px; margin-top: 4px; }
.shot h3 { padding-inline: 6px; margin-top: -4px; }
.shot p { font-size: 15px; color: var(--muted); padding-inline: 6px; }
@media (max-width: 980px) { .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .shots.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } .shots.three .shot:last-child { display: none; } }
@media (max-width: 400px) { .shots { gap: 12px; } .shot { padding: 8px 8px 16px; } .shot h3 { font-size: 18px; } .shot p { font-size: 14px; } }

/* Draw feature */
.draw { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.draw-media { position: relative; justify-self: center; width: min(340px, 78vw); }
.draw-media img { border-radius: 36px; box-shadow: var(--shadow); border: 10px solid #17121C; }
.draw-media .tag { position: absolute; right: -10%; bottom: 14%; background: var(--sun); font: 700 17px/1.1 var(--display); padding: 12px 16px; border-radius: 16px; transform: rotate(5deg); box-shadow: var(--shadow-sm); }
.draw h2 { margin-top: 14px; }
.draw .lead { margin-top: 18px; }
.ticks { margin: 24px 0 0; display: grid; gap: 12px; padding: 0; list-style: none; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); }
.ticks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%; background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 12.5l3 3 7-7' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.ticks strong { color: var(--ink); }
@media (max-width: 880px) { .draw { grid-template-columns: minmax(0, 1fr); } .draw-media { order: -1; } .draw-media .tag { right: -4%; } }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: clamp(36px, 5vw, 56px); }
.feature { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; }
.feature .ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 24px; margin-bottom: 18px; }
.feature p { margin-top: 10px; color: var(--muted); font-size: 16px; }
@media (max-width: 880px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .features { grid-template-columns: minmax(0, 1fr); } }

/* Privacy promises */
.promises { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.promise { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.promise .ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 24px; margin-bottom: 18px; }
.promise p { margin-top: 10px; color: var(--muted); }
.more { margin-top: 28px; text-align: center; color: var(--muted); }
@media (max-width: 880px) { .promises { grid-template-columns: minmax(0, 1fr); } }

/* Closing call to action */
.cta-band { display: flex; flex-wrap: wrap; gap: 20px 28px; align-items: center; justify-content: space-between; padding: clamp(26px, 4vw, 40px); border-radius: 36px; background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; background: var(--pink); filter: blur(80px); opacity: .35; right: -80px; top: -140px; }
.cta-band > * { position: relative; }
.cta-band .say { display: flex; align-items: center; gap: 18px; }
.cta-band .say img { width: 64px; flex: none; }
.cta-band p { font: 600 clamp(20px, 2.4vw, 26px)/1.25 var(--display); max-width: 30ch; }
.cta-band p em { font-style: normal; color: #FF8DB8; }
.cta-band .btn-line { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.cta-band .btn-line:hover { border-color: #fff; }

/* Footer */
footer { background: var(--ink); color: #E9DFEA; padding-block: 56px 34px; }
.foot { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 28px; }
.foot .logo img { height: 40px; width: auto; }
.foot .tagline { margin-top: 14px; color: #B9ADBF; font-size: 15px; max-width: 30ch; }
.foot h4 { margin: 0 0 12px; font: 600 15px/1 var(--display); color: #fff; }
.foot a { display: block; color: #CFC3D3; text-decoration: none; padding: 4px 0; }
.foot a:hover { color: #fff; }
.foot address { color: #B9ADBF; font-style: normal; font-size: 15px; }
.legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: #A99DAF; }
.legal a { color: #CFC3D3; }
@media (max-width: 880px) { .foot { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot { grid-template-columns: minmax(0, 1fr); } }

/* Reveal: content is visible by default; it only animates when JS and motion allow */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* Support and legal pages */
.page-hero { position: relative; padding-block: clamp(40px, 6vw, 72px) 8px; }
.page-hero::before { content: ""; position: absolute; width: 440px; height: 440px; border-radius: 50%; background: #FFC2DA; filter: blur(70px); opacity: .5; right: -140px; top: -180px; z-index: 0; }
.page-hero::after { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: #D9D0FF; filter: blur(70px); opacity: .45; left: -140px; top: 40px; z-index: 0; }
.page-hero .wrap { position: relative; z-index: 1; max-width: 800px; }
.page-hero h1 { font-size: clamp(40px, 6vw, 64px); margin-top: 16px; }
.page-hero .updated { color: var(--faint); margin-top: 12px; font-size: 15px; }
.doc { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; padding: 24px 20px clamp(64px, 8vw, 100px); }
.doc h2 { font-size: clamp(24px, 3vw, 30px); margin: 44px 0 12px; }
.doc h3 { font-size: 19px; margin: 26px 0 6px; }
.doc p { margin: 0 0 12px; color: var(--muted); }
.doc li { color: var(--muted); }
.doc strong { color: var(--ink); }
.doc ul { padding-left: 1.2em; display: grid; gap: 8px; margin: 0 0 12px; }
.doc li::marker { color: var(--pink); }
.doc .box { background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 22px 24px 12px; box-shadow: var(--shadow-sm); }
.doc .box.contact { background: linear-gradient(150deg, #FFE3EE, #EFE7FF); border-color: #F6CFE0; }
