/* ===================================================================
   Kudobee marketing landing — styles
   Mirrors the app's "doodle" design system:
   lib/design_system/tokens/* + doodle_card/doodle_button widgets.
   Ink-outlined wobbly cards, hard offset shadows, chunky lemon/sky
   buttons, gold coin pills, Fredoka + Nunito, Patrick Hand stickers.
   =================================================================== */
:root {
  --paper: #FFF8E7;
  --paper-2: #FFF1C7;
  --card: #FFFFFF;
  --ink: #2D3142;
  --ink-72: rgba(45, 49, 66, .72);
  --soft: #5E6472;
  --muted: #6E727D;
  --sky: #6EC6FF;
  --deep-sky: #2579AB;
  --sunny: #FFC857;
  --lemon: #FFE66D;
  --lemon-dark: #E9C948;
  --coral: #FF7A85;
  --candy: #FF5C70;
  --mint: #7DE2A8;
  --grass: #57CC99;
  --lav: #B69CFF;
  --coin: #FFD166;
  --coin-line: #E89F2D;
  --line: #F1E6C6;

  /* Hand-drawn "paper" shadow (offset + soft ambient), like DoodleCard */
  --sh-card: 4px 5px 0 rgba(45, 49, 66, .07), 0 12px 22px rgba(45, 49, 66, .08);
  --sh-soft: 0 8px 20px rgba(45, 49, 66, .10);
  --sh-btn: 0 4px 0 rgba(45, 49, 66, .16);

  /* Wobbly asymmetric corners (the hand-drawn feel) */
  --r-a: 22px 26px 20px 24px;
  --r-b: 26px 20px 24px 22px;
  --r-c: 16px 20px 14px 18px;
  --r-pill: 999px;

  --maxw: 1120px;
  --font-display: "Fredoka", system-ui, "Segoe UI", sans-serif;
  --font-body: "Nunito", system-ui, "Segoe UI", Roboto, sans-serif;
  --font-hand: "Patrick Hand", "Comic Sans MS", cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--paper);
  background-image: url(/assets/doodle-bg.svg);
  background-size: 180px 180px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; margin: 0; color: var(--ink); }
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: 22px; }
p { margin: 0 0 1rem; }

a { color: var(--deep-sky); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; width: 100%; }
.wrap-narrow { max-width: 780px; }
.center { text-align: center; }

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

.rough-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Shared "doodle card" surface. The ink outline is a sketchy hand-drawn stroke
   (SVG turbulence displacement) drawn on a ::before overlay so the card's own
   text stays perfectly crisp — this is what matches the app's DoodleCard. */
.card, .reward-tile, .step, .trust-item, .plan, .faq-item, .task-card, .app-tasks li {
  position: relative;
  background: var(--card);
  box-shadow: var(--sh-card);
}
.btn, .kicker, .trust-row li, .store-badge { position: relative; border: 0; }
.card::before, .reward-tile::before, .step::before, .trust-item::before, .plan::before,
.faq-item::before, .task-card::before, .app-tasks li::before,
.btn::before, .kicker::before, .trust-row li::before, .store-badge::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  border: 2.2px solid var(--ink); pointer-events: none;
}
/* Fainter second stroke, slightly offset → the app's hand-drawn "double pencil" line */
.card::after, .reward-tile::after, .step::after, .trust-item::after, .plan::after,
.faq-item::after, .task-card::after, .btn::after, .kicker::after {
  content: ""; position: absolute; inset: 3px 4px 4px 3px; border-radius: inherit;
  border: 1.4px solid rgba(45, 49, 66, .18); pointer-events: none;
}
.plan-premium::before { border-color: var(--sunny); border-width: 3px; }

/* ---------- Buttons (DoodleButton) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 900; font-size: 17px;
  padding: 13px 26px; border-radius: 16px 20px 15px 19px; cursor: pointer;
  text-decoration: none;
  transition: transform .1s ease, box-shadow .1s ease;
  max-width: 100%; text-align: center;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(2px); }
.btn-primary { background: var(--lemon); color: var(--ink); box-shadow: var(--sh-btn); }
.btn-primary:hover { box-shadow: 0 6px 0 rgba(45, 49, 66, .16); }
.btn-primary:active { box-shadow: 0 2px 0 rgba(45, 49, 66, .16); }
.btn-secondary { background: var(--sky); color: var(--ink); box-shadow: var(--sh-btn); }
.btn-lg { font-size: 19px; padding: 16px 32px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 248, 231, .96);
  border-bottom: 2px solid var(--ink);
}
.header-inner { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand img { height: 40px; width: auto; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.site-nav > a:not(.btn) { color: var(--soft); font-weight: 700; font-size: 16px; }
.site-nav > a:not(.btn):hover { color: var(--ink); text-decoration: none; }
.nav-cta { color: var(--ink); }

.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--ink); border-radius: 3px; margin: 5px 0; transition: .2s; }

/* Language dropdown */
.lang-menu { position: relative; }
.lang-menu > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; color: var(--soft); font-size: 15px; padding: 6px 10px; border-radius: 999px;
}
.lang-menu > summary::-webkit-details-marker { display: none; }
.lang-menu > summary:hover { background: var(--paper-2); color: var(--ink); }
.lang-menu[open] > summary { background: var(--paper-2); color: var(--ink); }
.globe { font-size: 16px; }
.lang-list {
  position: absolute; right: 0; top: calc(100% + 8px); margin: 0; padding: 8px; list-style: none;
  background: var(--card); border: 2px solid var(--ink); border-radius: 16px;
  box-shadow: var(--sh-card); min-width: 160px; z-index: 200;
}
.lang-list li { margin: 0; }
.lang-list a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--ink); font-weight: 600; font-size: 15px; }
.lang-list a:hover { background: var(--paper); text-decoration: none; }
.lang-list a[aria-current="true"] { background: var(--lemon); color: var(--ink); }

/* ---------- Hero ---------- */
.hero { padding: 48px 0 34px; background:
  radial-gradient(1200px 500px at 82% -12%, rgba(110,198,255,.22), transparent 60%),
  radial-gradient(900px 460px at 2% 8%, rgba(255,200,87,.22), transparent 55%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; }
.hero-title { font-size: clamp(34px, 5.4vw, 58px); font-weight: 700; letter-spacing: -.5px; }
.mark {
  background: linear-gradient(180deg, transparent 56%, var(--sunny) 56%);
  color: var(--ink); padding: 0 4px;
}
.hero-sub { font-size: clamp(17px, 2vw, 21px); color: var(--soft); max-width: 34ch; margin-top: 16px; }

.trust-row { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.trust-row li {
  font-size: 14px; font-weight: 800; color: var(--ink); display: inline-flex; align-items: center; gap: 5px;
  background: var(--card); border-radius: 999px; padding: 5px 12px;
  box-shadow: 0 2px 0 rgba(45,49,66,.10);
}

.cta-cluster { margin-top: 26px; }

.store-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px; position: relative;
  padding: 9px 16px 9px 14px; border-radius: 14px;
  background: var(--card); color: var(--ink);
}
.store-badge.is-disabled { filter: grayscale(.35); cursor: not-allowed; }
.store-badge.is-disabled .store-text, .store-badge.is-disabled > svg { opacity: .55; }
.store-badge .store-text { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.store-badge small { font-size: 10px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); }
.store-badge strong { font-family: var(--font-display); font-size: 17px; }
.soon-pill {
  position: absolute; top: -10px; right: -8px; background: var(--coral); color: var(--ink);
  font-size: 10.5px; font-weight: 800; padding: 2px 9px; border-radius: 999px; letter-spacing: .3px;
  border: 2px solid var(--ink);
}

/* ---------- Phone mockup ---------- */
.hero-visual { position: relative; display: flex; justify-content: center; }
.phone {
  width: 300px; max-width: 82vw; background: var(--ink); border-radius: 42px; padding: 12px;
  box-shadow: var(--sh-soft); position: relative; z-index: 2;
}
.phone::before {
  content: ""; position: absolute; top: 16px; left: 50%; transform: translateX(-50%);
  width: 120px; height: 22px; background: var(--ink); border-radius: 0 0 14px 14px; z-index: 3;
}
.phone-screen {
  background: var(--paper); background-image: url(/assets/doodle-bg.svg); background-size: 150px 150px;
  border-radius: 32px; padding: 34px 15px 20px; min-height: 470px;
}
/* Real screenshot fills the phone screen (drop files into src/assets/shots/) */
.phone-screen.has-shot { padding: 0; background: none; overflow: hidden; min-height: 0; aspect-ratio: 300 / 620; }
.phone-shot { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: 32px; }
.app-top { display: flex; align-items: center; justify-content: space-between; }
.app-child { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--sky); border: 2px solid var(--ink); display: grid; place-items: center; font-size: 18px; }
.app-name { font-size: 16px; font-family: var(--font-display); }
.coin-balance .coin, .t-coin, .rw-price {
  display: inline-flex; align-items: center; gap: 4px; font-weight: 800; color: var(--ink);
  background: var(--paper-2); border: 1.8px solid var(--coin-line); border-radius: 999px; padding: 3px 9px;
}
.coin-balance .coin::after, .t-coin::after, .rw-price::after { content: "🪙"; font-size: .95em; }
.coin-balance .coin { font-size: 14px; padding: 4px 11px; }
.app-date { color: var(--muted); font-size: 13px; margin: 12px 0 2px; font-weight: 700; }
.app-section { font-size: 12px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: var(--soft); margin: 12px 0 8px; }
.app-tasks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.app-tasks li {
  display: flex; align-items: center; gap: 10px; border-radius: 16px 13px 15px 12px;
  padding: 10px 12px; font-size: 14.5px; font-weight: 700; box-shadow: 0 3px 0 rgba(45,49,66,.07);
}
.app-tasks li.done { background: #EBF9F0; }
.tick { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--ink); flex: 0 0 auto; display: grid; place-items: center; color: #fff; font-size: 13px; background: #fff; }
.tick-on { background: var(--grass); border-color: var(--ink); }
.t-emoji { font-size: 18px; }
.t-name { flex: 1; }
.t-coin { font-size: 12.5px; padding: 2px 8px; }

.pip { position: absolute; z-index: 4; pointer-events: none; filter: drop-shadow(0 8px 14px rgba(45,49,66,.18)); }
.pip-hero { width: 132px; height: auto; right: -6px; bottom: -16px; }

/* ---------- Sections ---------- */
.section { padding: 66px 0; }
.section-tint { background: var(--paper-2); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.section-head { max-width: 760px; margin: 0 auto 42px; text-align: center; }
.kicker {
  display: inline-block; font-family: var(--font-hand); font-weight: 400; font-size: 18px; letter-spacing: .2px;
  color: var(--ink); background: var(--lemon); padding: 1px 14px;
  border-radius: 12px 9px 13px 10px; transform: rotate(-1.4deg); margin: 0 0 12px; box-shadow: 0 3px 0 rgba(45,49,66,.12);
}
/* Hero eyebrow: the brand+category label, first visible text on the page */
.hero-kicker { margin-bottom: 14px; }
.lead { font-size: 19px; color: var(--soft); }
.lead.center { margin-left: auto; margin-right: auto; max-width: 60ch; }

.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.feature-grid.reverse .feature-copy { order: 2; }
.feature-visual { position: relative; display: flex; justify-content: center; }
.feature-copy h2 { margin-bottom: 14px; }

.check-list { list-style: none; margin: 18px 0 0; padding: 0; }
.check-list li { position: relative; padding: 6px 0 6px 36px; font-weight: 600; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 5px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--mint); border: 2px solid var(--ink); color: var(--ink); font-weight: 900; font-size: 13px; display: grid; place-items: center;
}

.card { border-radius: var(--r-a); }
.task-card { width: 330px; max-width: 88vw; padding: 18px; border-radius: var(--r-b); }
.pip-checklist { width: 104px; left: -18px; bottom: -26px; }

/* Reward grid */
.reward-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; width: 100%; max-width: 440px; }
.reward-tile {
  border-radius: var(--r-c); padding: 16px 10px 12px;
  display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center;
  transition: transform .12s ease;
}
.reward-tile:nth-child(even) { border-radius: 20px 16px 18px 14px; }
.reward-tile:hover { transform: translateY(-3px) rotate(-1deg); }
.rw-emoji { font-size: 34px; }
.rw-name { font-size: 13.5px; font-weight: 800; line-height: 1.2; }
.rw-price { font-size: 13px; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step { border-radius: var(--r-a); padding: 32px 24px 26px; text-align: center; position: relative; }
.step:nth-child(2) { border-radius: var(--r-b); }
.step-num {
  position: absolute; top: -18px; left: 50%; transform: translateX(-50%); width: 38px; height: 38px; border-radius: 50%;
  background: var(--sky); border: 2px solid var(--ink); color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 18px; display: grid; place-items: center;
  box-shadow: 0 3px 0 rgba(45,49,66,.14);
}
.step-emoji { font-size: 42px; display: block; margin: 10px 0 12px; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--soft); margin: 0; font-size: 16px; }

/* Trust grid */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.trust-item { border-radius: var(--r-a); padding: 26px 22px; }
.trust-item:nth-child(3n-1) { border-radius: var(--r-b); }
.ti-emoji { font-size: 32px; display: block; margin-bottom: 10px; }
.trust-item h3 { font-size: 19px; margin-bottom: 6px; }
.trust-item p { color: var(--soft); margin: 0; font-size: 15.5px; }

/* Plans */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; max-width: 860px; margin: 0 auto; align-items: start; }
.plan { padding: 30px 28px; border-radius: var(--r-a); }
.plan-name { font-size: 22px; margin-bottom: 8px; }
.plan-note { color: var(--soft); font-weight: 700; margin-bottom: 6px; }
.plan-premium { border-width: 2px; background: linear-gradient(180deg, #FFFBEC, #FFFFFF); box-shadow: 5px 6px 0 rgba(45,49,66,.10), 0 14px 26px rgba(45,49,66,.10); }
.plan-badge { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 22px; margin-bottom: 8px; }
.plan-badge img { width: 46px; height: 46px; position: static; z-index: auto; }
.trial-note {
  margin: 16px 0 0; font-weight: 800; color: var(--ink); background: var(--lemon);
  border: 2px solid var(--ink); border-radius: 12px 9px 13px 10px; padding: 8px 14px; display: inline-block;
}
.fineprint { color: var(--muted); font-size: 14px; margin-top: 22px; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 14px; }
.faq-item { border-radius: 18px; }
.faq-item > summary {
  list-style: none; cursor: pointer; padding: 18px 22px; border-radius: 18px; font-family: var(--font-display); font-weight: 600; font-size: 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
  content: "+"; font-size: 22px; color: var(--ink); font-weight: 700; transition: transform .2s;
  width: 28px; height: 28px; flex: 0 0 auto; display: grid; place-items: center;
  background: var(--lemon); border: 2px solid var(--ink); border-radius: 50%;
}
.faq-item[open] > summary::after { transform: rotate(45deg); }
.faq-a { padding: 0 22px 20px; color: var(--soft); }

/* CTA band */
.cta-band { background: var(--sky); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); padding: 62px 0; text-align: center; }
.cta-band-inner { position: relative; max-width: 680px; }
.cta-band h2 { margin-bottom: 12px; font-size: clamp(28px, 4vw, 42px); }
.cta-band p { color: var(--ink); font-size: 19px; font-weight: 600; }
.cta-band .pip-celebrate { position: static; margin: 0 auto 6px; width: 118px; height: auto; filter: drop-shadow(0 10px 18px rgba(45,49,66,.22)); }
.cta-band .btn-primary { margin-top: 12px; }
.cta-soon { font-size: 14px; margin-top: 16px; color: var(--ink) !important; font-weight: 700; opacity: .8; }

/* Footer */
.site-footer { background: var(--ink); color: #C9CDD8; padding: 54px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 34px; }
.footer-brand img { height: 40px; width: auto; margin-bottom: 14px; background: #fff; padding: 8px 12px; border-radius: 14px; box-shadow: 0 3px 0 rgba(0, 0, 0, .18); }
.footer-tagline { font-family: var(--font-hand); font-size: 20px; color: var(--lemon); margin: 0; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social .soc {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  color: #C9CDD8; background: rgba(255, 255, 255, .08);
  transition: background .15s ease, color .15s ease, transform .12s ease;
}
.footer-social .soc:hover { background: var(--lemon); color: var(--ink); transform: translateY(-2px); }
.footer-col h4 { color: #fff; font-family: var(--font-display); font-size: 16px; margin-bottom: 12px; }
.footer-col a { display: block; color: #C9CDD8; padding: 4px 0; font-size: 15px; }
.footer-col a:hover { color: #fff; }
.footer-lang { margin-top: 12px; display: flex; align-items: flex-start; gap: 8px; }
.footer-lang .lang-list { position: static; box-shadow: none; background: transparent; border: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 10px; min-width: 0; }
.footer-lang .lang-list a { color: #C9CDD8; padding: 2px 0; }
.footer-lang .lang-list a[aria-current="true"] { background: none; color: var(--lemon); font-weight: 800; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 34px; padding-top: 20px; }
.footer-legal p { color: #A7ADBA; font-size: 13.5px; margin: 4px 0; }

/* ===================================================================
   Responsive — phone → tablet → desktop
   =================================================================== */
@media (max-width: 1024px) {
  .section { padding: 56px 0; }
  .feature-grid { gap: 40px; }
  .steps, .trust-grid { gap: 20px; }
}
@media (max-width: 900px) {
  .hero-grid, .feature-grid, .feature-grid.reverse { grid-template-columns: 1fr; gap: 34px; }
  .feature-grid.reverse .feature-copy { order: 0; }
  .hero-copy { text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .trust-row, .cta-cluster, .store-badges { justify-content: center; }
  .hero-visual { margin-top: 6px; }
  .steps, .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: 70px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 2px solid var(--ink); padding: 8px 22px 18px;
    box-shadow: var(--sh-soft); margin: 0; max-height: calc(100vh - 70px); overflow-y: auto;
    opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-10px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .site-nav.open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
  .site-nav > a:not(.btn) { padding: 12px 2px; border-bottom: 1px solid var(--line); }
  .lang-menu { padding: 8px 0; }
  .lang-menu .lang-list { position: static; box-shadow: none; border: 0; background: transparent; padding: 4px 0; }
  .nav-cta { margin-top: 12px; text-align: center; }
  .steps, .trust-grid { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr; max-width: 460px; }
  .section { padding: 50px 0; }
}
@media (max-width: 500px) {
  body { font-size: 17px; }
  .steps, .trust-grid, .footer-grid { grid-template-columns: 1fr; }
  .reward-grid { grid-template-columns: repeat(2, 1fr); max-width: 100%; }
  .section-head { margin-bottom: 32px; }
  .trust-row li { font-size: 13px; }
}

/* ===================================================================
   Animation & motion — scroll reveals, floating mascots, hovers
   (transform/opacity only; JS adds .reveal so no-JS keeps content shown)
   =================================================================== */
.site-header { transition: box-shadow .2s ease; }
.site-header.scrolled { box-shadow: 0 6px 20px rgba(45, 49, 66, .12); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .65s cubic-bezier(.22, 1.15, .36, 1); }
.reveal.in { opacity: 1; transform: none; }

@keyframes kb-float { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-10px) rotate(-2deg); } }
@keyframes kb-bob   { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes kb-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.09); } }
@keyframes kb-pop   { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.12); } 100% { transform: scale(1); opacity: 1; } }

.pip-hero { animation: kb-float 4.6s ease-in-out infinite; }
.pip-checklist { animation: kb-float 5.4s ease-in-out infinite .3s; }
.cta-band .pip-celebrate { animation: kb-float 4s ease-in-out infinite; }
.phone { animation: kb-bob 5s ease-in-out infinite; }
.soon-pill { animation: kb-pulse 2.4s ease-in-out infinite; transform-origin: center; }

/* Coins pop when their card reveals */
.reveal.in .t-coin, .reveal.in .coin-balance .coin { animation: kb-pop .5s ease both; }

/* Hover micro-interactions */
.trust-item, .step, .plan { transition: transform .18s ease, box-shadow .18s ease; }
.trust-item:hover, .step:hover, .plan:hover {
  transform: translateY(-5px) rotate(-.5deg);
  box-shadow: 6px 9px 0 rgba(45, 49, 66, .09), 0 18px 30px rgba(45, 49, 66, .10);
}
.btn, .store-badge, .lang-list a, .footer-col a { transition: transform .15s ease, color .15s ease, background .15s ease, box-shadow .12s ease; }
.faq-item > summary { transition: background .15s ease; }
.faq-item[open] > summary, .faq-item > summary:hover { background: rgba(255, 230, 109, .18); }

/* Visible keyboard focus */
a:focus-visible, button:focus-visible, summary:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--deep-sky); outline-offset: 2px; border-radius: 6px;
}
main:focus { outline: none; } /* skip-link target shouldn't ring the whole page */
.site-footer :focus-visible { outline-color: var(--lemon); }
.cta-band :focus-visible { outline-color: var(--ink); }

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