/* BunnyMoney site v4, FitAI-simple: nav / hero (3 words) / 3 cards / footer.
   Atmosphere only: pastel orbs, grain, carrot cursor, one alive bunny. */
:root {
  --bg: #F3F7F7;
  --card: #FFFFFF;
  --accent: #9FD4D9;
  --accent-deep: #5FB1BC;
  --text: #262A33;
  --muted: #8A98A0;
  --hairline: rgba(38,42,51,.08);
  --ease: cubic-bezier(.2,.8,.2,1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .28s ease both; }
::view-transition-new(root) { animation: vt-in .34s ease both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }
html { scroll-behavior: smooth; cursor: url('assets/cursor-carrot.png') 14 2, auto; }
a, button, .badge, .bunny { cursor: url('assets/cursor-carrot-point.png') 16 2, pointer !important; }
::selection { background: var(--accent); color: #fff; }
body {
  font-family: 'Nunito', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
a { color: var(--accent-deep); text-decoration: none; font-weight: 700; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--accent-deep); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--accent-deep); color: #fff; padding: 10px 18px; border-radius: 0 0 12px 0; z-index: 200; font-weight: 800; }
.skip-link:focus { left: 0; }

/* grain */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 999; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ambient pastel orbs */
#orbs { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.orb { position: absolute; border-radius: 50%; will-change: transform; }
.o1 { width: 64vw; height: 64vw; background: radial-gradient(circle, rgba(159,212,217,.38) 0%, rgba(159,212,217,.14) 45%, transparent 70%); top: -22%; left: -16%; animation: od1 22s ease-in-out infinite alternate; }
.o2 { width: 56vw; height: 56vw; background: radial-gradient(circle, rgba(244,169,192,.22) 0%, rgba(244,169,192,.08) 45%, transparent 70%); bottom: -16%; right: -14%; animation: od2 28s ease-in-out infinite alternate; }
.o3 { width: 44vw; height: 44vw; background: radial-gradient(circle, rgba(242,200,121,.16) 0%, rgba(242,200,121,.06) 45%, transparent 70%); top: 44%; left: 36%; animation: od3 18s ease-in-out infinite alternate; }
@keyframes od1 { to { transform: translate(5vw, 8vh); } }

/* floating app-UI bits: spending bubbles, gold coins, carrot chip, loose emoji */
#floaties { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
#floaties > span {
  position: absolute; left: var(--x); top: var(--y);
  will-change: transform, translate;
  rotate: var(--r, 0deg);
  animation: floaty var(--d, 12s) ease-in-out infinite alternate;
}
#floaties > span:nth-child(even) { animation-name: floaty2; }
@keyframes floaty  { from { transform: translateY(0)      rotate(0deg); } to { transform: translateY(-28px) rotate(6deg); } }
@keyframes floaty2 { from { transform: translateY(-16px) rotate(3deg); } to { transform: translateY(16px)  rotate(-5deg); } }

/* the app's category bubbles */
.bub {
  width: var(--s); height: var(--s); border-radius: 50%;
  background: var(--bg); border: 3px solid #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1px; opacity: .8;
  box-shadow: 0 3px 8px rgba(38,42,51,.08), 0 16px 34px rgba(95,177,188,.3);
}
.bub i { font-style: normal; font-size: calc(var(--s) * .32); line-height: 1; }
.bub b { color: #fff; font-weight: 900; font-size: calc(var(--s) * .17); letter-spacing: -0.2px; }

/* proper gold coins */
.coin {
  width: var(--s); height: var(--s); border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 900; font-size: calc(var(--s) * .5); color: #9A6A12;
  background: radial-gradient(circle at 32% 28%, #FFE9A8, #F5C24B 55%, #D99A2B 100%);
  border: calc(var(--s) * .07) solid #E8B23C;
  box-shadow: inset 0 calc(var(--s) * -.06) calc(var(--s) * .1) rgba(154,106,18,.45),
              inset 0 calc(var(--s) * .05) calc(var(--s) * .08) rgba(255,255,255,.7),
              0 10px 22px rgba(217,154,43,.4);
  opacity: .85;
}

/* carrot balance chip from the shop */
.chip {
  background: #FFF3C9; color: #7A5B12;
  border: 2.5px solid #fff; border-radius: 999px;
  padding: 9px 16px; font-weight: 900; font-size: 15px;
  box-shadow: 0 3px 8px rgba(38,42,51,.08), 0 14px 30px rgba(242,200,121,.45);
  opacity: .9;
}

/* loose emoji */
.fl { font-size: var(--s, 30px); opacity: var(--o, .5); filter: drop-shadow(0 6px 12px rgba(95,177,188,.25)); }
@keyframes od2 { to { transform: translate(-4vw, -6vh); } }
@keyframes od3 { to { transform: translate(3vw, -5vh); } }

/* nav */
.site-nav {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(24px, 5vw, 48px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; font-size: 18px; letter-spacing: -0.3px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 2px 8px rgba(38,42,51,.12); }
.nav-pill {
  background: var(--text); color: #fff; padding: 9px 20px; border-radius: 100px;
  font-weight: 700; font-size: 13px; letter-spacing: -0.1px;
}

/* hero */
main { position: relative; z-index: 1; flex: 1; }
.hero {
  min-height: 78dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 28px 24px 56px;
}
.bunny-stage { position: relative; display: inline-block; }
.speech {
  position: absolute; top: -12px; left: 64%; z-index: 3;
  background: rgba(255,255,255,.94); border: 1px solid rgba(255,255,255,.9);
  border-radius: 16px 16px 16px 4px;
  padding: 10px 16px; font-size: 13.5px; font-weight: 800; color: var(--text);
  box-shadow: 0 12px 30px rgba(95,177,188,.24);
  white-space: nowrap; transform-origin: bottom left;
  animation: speechIn .55s var(--ease) both;
  transition: opacity .25s ease, transform .25s ease;
}
.speech.retype { opacity: 0; transform: scale(.9); }
@keyframes speechIn { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: scale(1); } }

.hero .bunny {
  width: 168px; height: 168px;
  filter: drop-shadow(0 16px 24px rgba(95,177,188,.28));
  animation: bob 3.4s ease-in-out infinite;
  transition: opacity .18s ease, transform .18s ease;
}
.hero .bunny.swap { opacity: 0; transform: scale(.92); }
.hero .bunny.hop { animation: hop .55s cubic-bezier(.28,1.6,.5,1) 1, bob 3.4s ease-in-out .55s infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes hop { 0% { transform: translateY(0); } 40% { transform: translateY(-32px) rotate(-3deg); } 100% { transform: translateY(0); } }

.hero > *, .hero .bunny-stage { animation: rise .8s var(--ease) both; }
.hero .bunny-stage { animation-delay: 0s; }
.hero .hero-tag { animation-delay: .1s; }
.hero h1 { animation: none; }
.hero .hero-sub { animation-delay: .42s; }
.hero .waitlist { animation-delay: .54s; }
.hero .micro { animation-delay: .66s; }

.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 22px 0 18px;
  font-size: 12.5px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--accent-deep);
  border: 1px solid rgba(95,177,188,.3); border-radius: 100px; padding: 7px 16px;
  background: rgba(255,255,255,.55);
}
.hero-tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-deep); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.hero h1 { font-weight: 900; font-size: clamp(42px, 7.4vw, 82px); line-height: 1.0; letter-spacing: -2.2px; }
.hero h1 .line { display: block; animation: rise .8s var(--ease) both; animation-delay: .16s; }
.hero h1 .line:nth-child(2) { animation-delay: .26s; }
.hero h1 .line:nth-child(3) { animation-delay: .36s; }
.hero h1 .dim { color: var(--accent-deep); }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

.hero-sub { color: #5d6a72; font-size: 18.5px; font-weight: 600; max-width: 46ch; margin: 22px 0 30px; text-wrap: balance; }

.badge {
  position: relative; display: inline-block; overflow: hidden;
  background: linear-gradient(135deg, #6FBEC8, var(--accent-deep));
  color: #fff; border-radius: 100px; padding: 15px 32px;
  font-weight: 900; font-size: 15.5px;
  box-shadow: 0 2px 6px rgba(95,177,188,.4), 0 14px 38px rgba(95,177,188,.4), inset 0 1px 0 rgba(255,255,255,.35);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.badge:hover { transform: translateY(-3px); text-decoration: none; }
.badge:active { transform: scale(.97) translateY(1px); }

/* features: exactly three cards */
.features { padding: 12px clamp(24px, 5vw, 48px) 96px; max-width: 1060px; margin: 0 auto; width: 100%; }
.features-label {
  text-align: center; font-size: 12.5px; font-weight: 800; letter-spacing: 1.8px;
  text-transform: uppercase; color: var(--muted); margin-bottom: 26px;
}
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat-card {
  position: relative;
  background: var(--card); border-radius: 26px; padding: 30px 28px;
  border: 1px solid rgba(255,255,255,.85);
  box-shadow: 0 1px 2px rgba(38,42,51,.04), 0 14px 40px rgba(95,177,188,.14);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.feat-card:hover { transform: translateY(-6px) scale(1.01); box-shadow: 0 1px 2px rgba(38,42,51,.04), 0 24px 56px rgba(95,177,188,.24); }
.feat-num { position: absolute; top: 24px; right: 26px; font-weight: 900; font-size: 13px; color: rgba(95,177,188,.55); letter-spacing: 1px; }
.feat-icon {
  width: 54px; height: 54px; border-radius: 17px; display: grid; place-items: center;
  font-size: 26px; background: linear-gradient(150deg, #E7F3F4, #fff);
  border: 1px solid rgba(95,177,188,.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 6px 14px rgba(95,177,188,.14);
  transition: transform .3s cubic-bezier(.3,1.8,.5,1);
}
.feat-card:hover .feat-icon { transform: scale(1.1) rotate(-5deg); }
.feat-card h3 { font-size: 19px; font-weight: 800; margin: 16px 0 6px; letter-spacing: -0.2px; }
.feat-card p { color: var(--muted); font-size: 14.5px; }

/* waitlist */
.waitlist { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.waitlist .hp { position: absolute; left: -9999px; }
.waitlist input[type='email'] {
  font-family: inherit; font-weight: 700; font-size: 15px; color: var(--text);
  background: rgba(255,255,255,.9); border: 2px solid rgba(95,177,188,.35);
  border-radius: 100px; padding: 14px 22px; min-width: 250px; outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.waitlist input[type='email']:focus { border-color: var(--accent-deep); box-shadow: 0 0 0 4px rgba(159,212,217,.3); }
.waitlist .badge { border: none; font-family: inherit; }
.hero .micro { color: var(--muted); font-size: 13px; margin-top: 14px; }
.hero .micro.ok { color: var(--accent-deep); font-weight: 800; font-size: 15px; }

/* play section: draggable bubbles + real screenshot */
.play { padding: 8px clamp(24px, 5vw, 48px) 96px; max-width: 1060px; margin: 0 auto; width: 100%; }
.play-wrap {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: center;
  background: var(--card); border-radius: 30px; padding: 40px;
  border: 1px solid rgba(255,255,255,.85);
  box-shadow: 0 1px 2px rgba(38,42,51,.04), 0 18px 48px rgba(95,177,188,.16);
}
.play h2 { font-size: clamp(24px, 3.4vw, 32px); font-weight: 900; letter-spacing: -0.7px; text-align: left; margin-bottom: 8px; }
.play .features-label { text-align: left; margin-bottom: 10px; }
.play-sub { color: var(--muted); font-size: 15px; max-width: 44ch; margin-bottom: 20px; }
#pond {
  position: relative; height: 240px; border-radius: 24px;
  background: linear-gradient(150deg, #E7F3F4, #F3F7F7);
  border: 1px solid rgba(95,177,188,.16);
  overflow: hidden; touch-action: none;
}
.pbub {
  position: absolute; left: 0; top: 0;
  width: calc(var(--r, 40) * 1px); height: auto;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
  background: var(--bg); border: 3px solid #fff; border-radius: 50%;
  box-shadow: 0 3px 8px rgba(38,42,51,.08), 0 12px 26px rgba(95,177,188,.3);
  cursor: url('assets/cursor-carrot-point.png') 16 2, grab !important;
  user-select: none;
}
.pbub[data-r='46'] { width: 92px; height: 92px; }
.pbub[data-r='38'] { width: 76px; height: 76px; }
.pbub[data-r='33'] { width: 66px; height: 66px; }
.pbub[data-r='28'] { width: 56px; height: 56px; }
.pbub i { font-style: normal; font-size: 26px; line-height: 1.1; }
.pbub[data-r='33'] i, .pbub[data-r='28'] i { font-size: 20px; }
.pbub b { color: #fff; font-weight: 900; font-size: 13px; }
.pbub[data-r='28'] b { font-size: 11px; }
.pbub.grab { box-shadow: 0 6px 14px rgba(38,42,51,.14), 0 22px 44px rgba(95,177,188,.42); z-index: 5; scale: 1.08; }
.pbub { transition: scale .25s cubic-bezier(.3,1.6,.5,1); }
.pbub.settle { transition: transform .32s cubic-bezier(.2,.8,.3,1.1); }
.play-phone { justify-self: center; }
.play-phone img {
  width: 210px; border-radius: 26px; display: block;
  border: 7px solid #2A3F44;
  box-shadow: 0 26px 56px rgba(27,58,64,.35);
  rotate: 3deg;
}

/* footer */
.site-foot {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 34px 24px 44px;
  border-top: 1px solid var(--hairline);
  background: rgba(255,255,255,.6);
  font-size: 13.5px; color: var(--muted); text-align: center;
}
.foot-links { display: flex; gap: 20px; }
.foot-links a[aria-current='page'] { color: var(--text); }

/* legal pages (privacy/terms/support/404) */
.wrap { max-width: 880px; margin: 0 auto; padding: 0 24px; }
header.site { position: relative; z-index: 2; padding: 16px 0; background: rgba(255,255,255,.75); border-bottom: 1px solid var(--hairline); }
header.site .wrap { display: flex; align-items: center; gap: 12px; }
header.site img { width: 36px; height: 36px; border-radius: 10px; }
header.site .name { font-weight: 900; font-size: 18px; }
header.site nav { margin-left: auto; display: flex; gap: 18px; font-size: 14px; }
header.site nav a[aria-current='page'] { color: var(--text); border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
.legal { position: relative; z-index: 1; padding: 48px 0 64px; }
.legal .card { background: var(--card); border-radius: 26px; padding: 42px; box-shadow: 0 1px 2px rgba(38,42,51,.04), 0 14px 40px rgba(95,177,188,.14); }
.legal h1 { font-size: 30px; font-weight: 900; margin-bottom: 6px; letter-spacing: -0.5px; }
.legal .updated { color: var(--muted); font-size: 13.5px; margin-bottom: 26px; }
.legal h2 { font-size: 19px; font-weight: 800; margin: 26px 0 8px; }
.legal p, .legal li { font-size: 15px; color: #3d454f; max-width: 68ch; }
.legal ul { padding-left: 22px; margin: 8px 0; }
footer.site {
  border-top: 1px solid var(--hairline); padding: 28px 0 40px;
  color: var(--muted); font-size: 13.5px; text-align: center; background: rgba(255,255,255,.6);
  position: relative; z-index: 1;
}
footer.site .links { margin-bottom: 8px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* reveals */
.reveal { opacity: 0; transform: translateY(26px) scale(.985); transition: opacity .8s var(--ease), transform .8s cubic-bezier(.2,.9,.25,1.05); transition-delay: calc(var(--i, 0) * 120ms); will-change: transform, opacity; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .hero h1 .line { opacity: 1; transform: none; }
}
@media (max-width: 820px) {
  .play-wrap { grid-template-columns: 1fr; padding: 26px; }
  .play-phone img { width: 180px; }
  .speech { font-size: 12px; left: 55%; top: -22px; white-space: normal; width: max-content; max-width: 185px; text-align: left; border-radius: 14px 14px 14px 4px; }
  #floaties .m-hide { display: none; }
  .bub { opacity: .55; }
  .feat-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .hero { min-height: 70dvh; }
}
