/* Hellobru — dark neon fintech skin */

@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/SpaceGrotesk.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/fonts/DMSans.ttf") format("truetype");
  font-weight: 100 1000;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/JetBrainsMono.ttf") format("truetype");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --bg: #020c08;
  --ink: #e7f6ed;
  --card: #071712;
  --primary: #3af77e;
  --primary-ink: #010f07;
  --secondary: #0f241d;
  --muted: #0e1e19;
  --muted-ink: #8ea59a;
  --border: #1e392e;
  --yellow: #f1cb1c;
  --red: #ef5350;
  --bubble-in: #12261f;
  --bubble-out: #095c34;

  --glow-sm: 0 0 18px rgba(58, 247, 126, 0.35);
  --glow: 0 0 32px rgba(58, 247, 126, 0.35), 0 0 80px rgba(58, 247, 126, 0.15);
  --glow-text: 0 0 28px rgba(58, 247, 126, 0.45);

  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --font-display: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --max: 1104px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .phone, .phone.is-tilt, .phone.is-tilt-out, .phone-frame, .phone-frame::after, .arrow-down, .badge-dot, .chat-status::before,
  .chat-chips .chip, .chat-chips .chip.is-next, .walk-step.is-current .walk-num, .bubble { animation: none !important; }
  .bg-glow, .intro, .burst-layer, .critter { display: none !important; }
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 60% 45% at 28% 18%, rgba(58, 247, 126, 0.10), transparent 70%),
    radial-gradient(ellipse 40% 35% at 78% 22%, rgba(58, 247, 126, 0.08), transparent 70%),
    linear-gradient(rgba(58, 247, 126, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58, 247, 126, 0.055) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 64px 64px, 64px 64px;
  background-attachment: scroll;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* pointer-following light; JS sets --mx/--my (and --gy to keep the grid aligned while scrolling) */
.bg-glow { position: fixed; inset: 0; z-index: 0; pointer-events: none; display: none; opacity: 0; transition: opacity 0.5s ease; }
html.has-glow .bg-glow { display: block; }
html.has-glow.glow-on .bg-glow { opacity: 1; }
.bg-glow::before, .bg-glow::after { content: ""; position: absolute; inset: 0; }
.bg-glow::before {
  background:
    radial-gradient(520px circle at var(--mx, 50%) var(--my, 30%), rgba(58, 247, 126, 0.11), rgba(58, 247, 126, 0.035) 45%, transparent 70%),
    radial-gradient(160px circle at var(--mx, 50%) var(--my, 30%), rgba(58, 247, 126, 0.08), transparent 70%);
}
.bg-glow::after {
  background-image:
    linear-gradient(rgba(58, 247, 126, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58, 247, 126, 0.3) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: 0 var(--gy, 0px);
  -webkit-mask-image: radial-gradient(260px circle at var(--mx, 50%) var(--my, 30%), #000, transparent 75%);
  mask-image: radial-gradient(260px circle at var(--mx, 50%) var(--my, 30%), #000, transparent 75%);
}
main, .site-footer { position: relative; z-index: 1; }

/* opening cryptogram → smooth crossfade into the site (JS drives .is-intro / .is-out) */
html.is-intro .site-header,
html.is-intro main,
html.is-intro .site-footer,
html.is-intro .sticky-cta,
html.is-intro .bg-glow {
  opacity: 0;
  pointer-events: none;
}
html.is-intro .site-header,
html.is-intro main,
html.is-intro .site-footer {
  transform: translateY(10px) scale(0.992);
  filter: blur(2px);
}
html:not(.is-intro) .site-header,
html:not(.is-intro) main,
html:not(.is-intro) .site-footer {
  transition: opacity 0.95s ease, transform 0.95s ease, filter 0.95s ease;
}
.intro {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; cursor: pointer;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(58, 247, 126, 0.12), transparent 70%),
    linear-gradient(rgba(58, 247, 126, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58, 247, 126, 0.055) 1px, transparent 1px);
  background-size: 100% 100%, 64px 64px, 64px 64px;
  animation: intro-fallback 0.5s ease 5s forwards;
  transition: opacity 0.95s ease, visibility 0s 0.95s;
}
.intro.is-out { opacity: 0; visibility: hidden; }
.intro.is-out-fast { opacity: 0; visibility: hidden; transition-duration: 0.45s, 0s; transition-delay: 0s, 0.45s; }
@keyframes intro-fallback { to { opacity: 0; visibility: hidden; } }
.intro-line {
  padding: 0 16px; text-align: center;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 7vw, 4.6rem); letter-spacing: -0.02em;
  color: var(--primary); text-shadow: var(--glow-text);
}
.intro-ch { display: inline-block; min-width: 0.3em; white-space: pre; color: rgba(58, 247, 126, 0.55); font-family: var(--font-mono); font-weight: 500; }
.intro-ch.is-set { color: var(--primary); font-family: var(--font-display); font-weight: 700; }
.intro-caret {
  display: inline-block; width: 0.08em; height: 0.9em; margin-left: 0.06em; vertical-align: -0.08em;
  background: var(--primary); box-shadow: 0 0 10px var(--primary); animation: caret 1.25s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }
.intro-skip {
  position: absolute; bottom: 28px; left: 0; right: 0; text-align: center;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted-ink);
}

h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.08; margin: 0; }
a { color: var(--primary); }
p { margin: 0; }

.hl { color: var(--primary); text-shadow: var(--glow-text); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--primary); color: var(--primary-ink); padding: 0.6rem 1rem;
  border-radius: 999px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

.section-inner, .site-header .inner, .hero {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 700px) {
  .section-inner, .site-header .inner, .hero { padding: 0 24px; }
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted-ink);
  line-height: 1.5;
}

/* ---------- header ---------- */
.site-header { position: relative; z-index: 10; padding: 22px 0; }
.site-header .inner { display: flex; align-items: center; gap: 1.5rem; }
.logo {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
  color: var(--ink); text-decoration: none;
}
.logo-mark {
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary); color: var(--primary-ink);
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
  box-shadow: var(--glow-sm);
}
.nav { display: none; gap: 1.6rem; margin-left: auto; }
@media (min-width: 820px) { .nav { display: flex; } }
.nav-link {
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted-ink);
  text-decoration: none; transition: color 0.15s;
}
.nav-link:hover, .nav-link.is-active { color: var(--primary); }
.btn-live {
  margin-left: auto;
  font-family: var(--font-mono); font-size: 0.82rem; color: var(--primary);
  text-decoration: none; white-space: nowrap;
  border: 1px solid rgba(58, 247, 126, 0.55); border-radius: 999px;
  padding: 0.5rem 1.1rem;
  transition: background 0.15s, box-shadow 0.15s;
}
.nav + .btn-live { margin-left: 0; }
@media (max-width: 819px) { .nav + .btn-live { margin-left: auto; } }
.btn-live:hover { background: rgba(58, 247, 126, 0.08); box-shadow: var(--glow-sm); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 56px; padding: 0 1.75rem; border-radius: var(--r);
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, border-color 0.15s;
  -webkit-user-select: none; user-select: none;
}
.btn-primary { background: var(--primary); color: var(--primary-ink); box-shadow: var(--glow); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 40px rgba(58, 247, 126, 0.5), 0 0 100px rgba(58, 247, 126, 0.2); }
.btn-ghost { background: rgba(7, 23, 18, 0.7); color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { border-color: rgba(58, 247, 126, 0.5); }

/* ---------- hero (Lovable-style: left copy + compact right phone) ---------- */
.hero {
  padding-top: 2rem; padding-bottom: 2.5rem;
  scroll-margin-top: 12px;
}
@media (min-width: 960px) { .hero { padding-top: 2.4rem; padding-bottom: 2.8rem; } }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: start;
  grid-template-areas: "copy" "phone" "side";
  perspective: 1100px;
}
.hero-copy { grid-area: copy; }
.phone { grid-area: phone; }
.hero-side { grid-area: side; }
@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 384px;
    grid-template-areas: "copy phone" "side phone";
    column-gap: 120px; row-gap: 1.25rem;
    align-items: start;
  }
}
.btn-try { min-width: 10rem; }
.hero-copy {
  display: flex; flex-direction: column; align-items: flex-start; text-align: left;
  max-width: 34rem;
}
@media (max-width: 959px) {
  .hero-copy { max-width: none; align-items: center; text-align: center; }
  .hero-side { text-align: left; }
}
.badge {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.38rem 0.9rem; border-radius: 999px;
  border: 1px solid var(--border); background: rgba(7, 23, 18, 0.8);
  font-family: var(--font-mono); font-size: 0.76rem; color: var(--primary);
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.45; } }
.hero h1 {
  margin-top: 1.25rem;
  font-size: clamp(2.4rem, 5.2vw, 4.1rem);
  font-weight: 700;
  line-height: 1.02;
  max-width: 528px;
}
@media (min-width: 960px) { .hero h1 .line { white-space: nowrap; } }
.hero h1 .line { display: block; }
.lede { margin-top: 1.35rem; max-width: 32rem; color: var(--muted-ink); font-size: 1.08rem; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 0.75rem; margin-top: 1.75rem; }
@media (max-width: 959px) { .hero-actions { justify-content: center; } }
.arrow-down { display: inline-block; animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(3px); } }
.btn-sm { min-height: 44px; padding: 0 1.15rem; font-size: 0.92rem; border-radius: 14px; }
.btn-primary.btn-sm { box-shadow: var(--glow-sm); }
.btn:active { transform: scale(0.97); }

/* side walkthrough under hero copy (Jacques likes the side stuff) */
.hero-side { margin-top: 0; width: 100%; max-width: 34rem; scroll-margin-top: 16px; }
@media (max-width: 959px) { .hero-side { max-width: none; } }
.hero-side .mono-label { margin: 0; }
.try-lede { margin-top: 0.55rem; max-width: 30rem; color: var(--muted-ink); font-size: 0.95rem; }
.mini-totals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin: 1rem 0 0; }
.mini {
  padding: 0.55rem 0.7rem; border-radius: 12px; border: 1px solid var(--border);
  background: rgba(7, 23, 18, 0.85); min-width: 0;
}
.mini dt { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-ink); }
.mini dd { margin: 0.1rem 0 0; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-in dd { color: var(--primary); }
.mini-out dd { color: var(--red); }
.mini-profit dd { color: var(--yellow); }

.walk { list-style: none; margin: 0.9rem 0 0; padding: 0; display: grid; gap: 0.45rem; }
.walk-step {
  display: flex; align-items: center; gap: 0.9rem; width: 100%;
  padding: 0.62rem 0.85rem; border-radius: var(--r);
  background: rgba(7, 23, 18, 0.85); border: 1px solid var(--border);
  color: var(--ink); font: inherit; text-align: left; cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s, transform 0.12s;
}
.walk-step:hover { border-color: rgba(58, 247, 126, 0.45); transform: translateX(2px); }
.walk-step:active { transform: scale(0.98); }
.walk-num {
  display: grid; place-items: center; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--border); font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted-ink);
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.walk-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.walk-text strong { font-family: var(--font-display); font-weight: 600; font-size: 0.98rem; }
.walk-text span { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.walk-step.is-current {
  border-color: rgba(58, 247, 126, 0.65); background: rgba(58, 247, 126, 0.06);
  box-shadow: 0 0 22px rgba(58, 247, 126, 0.16);
}
.walk-step.is-current .walk-num {
  background: var(--primary); color: var(--primary-ink); border-color: var(--primary);
  box-shadow: var(--glow-sm); animation: num-pulse 1.8s ease-in-out infinite;
}
@keyframes num-pulse { 50% { box-shadow: 0 0 0 5px rgba(58, 247, 126, 0.12), 0 0 22px rgba(58, 247, 126, 0.5); } }
.walk-step.is-done .walk-num { color: var(--primary); border-color: rgba(58, 247, 126, 0.55); }
.walk-step.is-done .walk-text strong { color: var(--muted-ink); }
.walk-bar { display: flex; align-items: center; gap: 0.8rem; margin-top: 1.1rem; }
.walk-track { flex: 1; height: 4px; border-radius: 999px; background: var(--secondary); overflow: hidden; }
.walk-fill {
  display: block; height: 100%; width: 100%; background: var(--primary); box-shadow: var(--glow-sm);
  transform: scaleX(0); transform-origin: left center; transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.walk-count { font-family: var(--font-mono); font-size: 0.74rem; color: var(--muted-ink); }
.walk-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.walk-status { margin-top: 0.8rem; min-height: 1.4em; font-family: var(--font-mono); font-size: 0.76rem; color: var(--primary); }

/* ---------- phone (Lovable compact ~384×537, right column) ---------- */
/* Phone motion: 5s ±12px float, .45s pop-in, static neon glow — match reference. */
.phone {
  width: 100%; max-width: 384px; justify-self: center; scroll-margin: 12px;
  animation: phone-pop 0.45s cubic-bezier(0.2, 1.4, 0.4, 1) both;
  transform-style: preserve-3d;
  will-change: transform;
}
.phone.is-settled,
.phone.is-tilt,
.phone.is-tilt-out {
  animation: none;
}
@media (min-width: 960px) {
  .phone { justify-self: end; position: sticky; top: 1.2rem; }
}
/* hover parallax: JS sets --tilt-rx/--tilt-ry/--tilt-tx/--tilt-ty while pointer is over the phone */
.phone.is-tilt {
  animation: none;
  transition: transform 0.08s ease-out;
  transform:
    rotateX(var(--tilt-rx, 0deg))
    rotateY(var(--tilt-ry, 0deg))
    translate3d(var(--tilt-tx, 0px), var(--tilt-ty, 0px), 0);
}
.phone.is-tilt-out {
  animation: none;
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform: rotateX(0deg) rotateY(0deg) translate3d(0, 0, 0);
}
.phone-frame {
  position: relative;
  animation: float 5s ease-in-out infinite;
  border-radius: 40px; padding: 11px;
  background: #04110c;
  border: 2px solid rgba(58, 247, 126, 0.6);
  box-shadow: 0 0 0 1px rgba(58, 247, 126, 0.15), 0 0 40px rgba(58, 247, 126, 0.4), 0 0 120px rgba(58, 247, 126, 0.2);
  transform-style: preserve-3d;
}
.phone.is-tilt .phone-frame {
  /* while tilting, keep a soft depth lift instead of the idle float */
  animation: none;
  transform: translateZ(18px);
  box-shadow:
    0 0 0 1px rgba(58, 247, 126, 0.2),
    0 18px 40px rgba(0, 0, 0, 0.45),
    0 0 50px rgba(58, 247, 126, 0.45),
    0 0 120px rgba(58, 247, 126, 0.22);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.phone-frame::after {
  content: ""; position: absolute; inset: -2px; border-radius: inherit; pointer-events: none;
  border: 2px solid var(--primary); opacity: 0;
}
.phone.is-flash .phone-frame::after { animation: frame-flash 1.1s ease-out; }
.phone:hover .phone-frame, .phone:focus-within .phone-frame { animation-play-state: paused; }
@keyframes phone-pop {
  0% { opacity: 0; transform: translateY(18px) scale(0.94); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes frame-flash { 0% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.06); } }
.chat {
  display: flex; flex-direction: column;
  height: 515px; border-radius: 30px; overflow: hidden;
  background: #050f0b;
}

.chat-header {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.9rem 1rem; background: var(--bubble-in);
  border-bottom: 1px solid rgba(30, 57, 46, 0.6);
}
.chat-avatar {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary); color: var(--primary-ink);
  font-family: var(--font-display); font-weight: 700;
}
.chat-meta { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.chat-meta strong { font-family: var(--font-display); font-size: 0.95rem; }
.chat-status { display: inline-flex; align-items: center; gap: 0.35rem; font-family: var(--font-mono); font-size: 0.68rem; color: var(--primary); }
.chat-status::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--primary);
  box-shadow: 0 0 8px var(--primary); animation: status-pulse 2s ease-in-out infinite;
}
@keyframes status-pulse { 50% { opacity: 0.5; } }

.chat-messages {
  flex: 1; overflow-y: auto; padding: 0.9rem 0.8rem;
  display: flex; flex-direction: column; gap: 0.5rem;
  scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}
.bubble {
  max-width: 86%; padding: 0.5rem 0.8rem; border-radius: 14px;
  font-size: 0.88rem; line-height: 1.45; white-space: pre-line; word-wrap: break-word;
  animation: pop-in 0.45s cubic-bezier(0.2, 1.4, 0.4, 1) both; transform-origin: bottom left;
}
/* bubble + chip pop-in, same curve as the reference */
@keyframes pop-in {
  0% { opacity: 0; transform: scale(0.6); }
  60% { opacity: 1; transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}
.bubble.user { transform-origin: bottom right; align-self: flex-end; background: var(--bubble-out); color: var(--ink); border-bottom-right-radius: 4px; }
.bubble.bot { align-self: flex-start; background: var(--bubble-in); color: var(--ink); border-bottom-left-radius: 4px; }
.bubble.ok { font-family: var(--font-mono); font-size: 0.78rem; color: var(--primary); }
.bubble.system {
  transform-origin: center; align-self: center; max-width: 92%; padding: 0.25rem 0.7rem; border-radius: 999px;
  background: transparent; border: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 0.66rem; color: var(--muted-ink); text-align: center;
}
.bubble .who { display: block; font-family: var(--font-mono); font-size: 0.66rem; color: var(--primary); margin-bottom: 0.15rem; }
.bubble .meta { display: block; text-align: right; font-family: var(--font-mono); font-size: 0.6rem; color: rgba(231, 246, 237, 0.45); margin-top: 0.15rem; }
.bubble.ok .meta { color: rgba(58, 247, 126, 0.45); }
.bubble.typing { display: flex; gap: 0.25rem; padding: 0.7rem 0.85rem; }
.bubble.typing span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--primary);
  animation: typing-dot 1s ease-in-out infinite;
}
.bubble.typing span:nth-child(2) { animation-delay: 0.15s; }
.bubble.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing-dot { 0%, 60%, 100% { opacity: 0.25; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }

.chat-chips {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  padding: 0.6rem 0.8rem 0.7rem;
}
.chat-chips:empty { display: none; }
.chip {
  font-family: var(--font-mono); font-size: 0.7rem; line-height: 1.2;
  color: var(--primary); background: transparent;
  border: 1px solid rgba(58, 247, 126, 0.55); border-radius: 999px;
  padding: 0.35rem 0.65rem; cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s, transform 0.12s, border-color 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.chip:hover { background: rgba(58, 247, 126, 0.1); box-shadow: var(--glow-sm); transform: translateY(-1px); }
.chip:active { transform: scale(0.93); background: rgba(58, 247, 126, 0.2); }
.chat-chips .chip { animation: pop-in 0.45s cubic-bezier(0.2, 1.4, 0.4, 1) both; }
.chat-chips .chip:nth-child(2) { animation-delay: 0.05s; }
.chat-chips .chip:nth-child(3) { animation-delay: 0.1s; }
.chat-chips .chip:nth-child(4) { animation-delay: 0.15s; }
.chat-chips .chip:nth-child(5) { animation-delay: 0.2s; }
.chat-chips .chip:nth-child(n+6) { animation-delay: 0.25s; }
.chat-chips .chip.is-next {
  color: var(--ink); background: rgba(58, 247, 126, 0.16); border-color: var(--primary);
  animation: pop-in 0.45s cubic-bezier(0.2, 1.4, 0.4, 1) both, chip-next 1.8s ease-in-out 0.5s infinite;
}
.chat-chips .chip.is-next::before { content: "→ "; color: var(--primary); }
@keyframes chip-next {
  0%, 100% { box-shadow: 0 0 0 0 rgba(58, 247, 126, 0.45); }
  50% { box-shadow: 0 0 0 5px rgba(58, 247, 126, 0), 0 0 18px rgba(58, 247, 126, 0.45); }
}
.chip.danger { color: var(--red); border-color: rgba(239, 83, 80, 0.55); }
.chip.danger:hover { background: rgba(239, 83, 80, 0.1); box-shadow: 0 0 14px rgba(239, 83, 80, 0.3); }

.chat-composer {
  display: flex; gap: 0.5rem; align-items: center;
  padding: 0.7rem 0.8rem 0.85rem; border-top: 1px solid rgba(30, 57, 46, 0.6);
}
.chat-input {
  flex: 1; min-width: 0; height: 42px; padding: 0 1rem;
  border-radius: 999px; border: 1px solid transparent;
  background: var(--bubble-in); color: var(--ink);
  font-family: var(--font-body); font-size: 16px;
}
.chat-input::placeholder { color: var(--muted-ink); }
.chat-input:focus { outline: none; border-color: rgba(58, 247, 126, 0.6); }
.chat-send {
  display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 50%; border: 0; cursor: pointer;
  background: var(--primary); color: var(--primary-ink); box-shadow: var(--glow-sm);
}
.chat-send { transition: transform 0.12s, box-shadow 0.15s; }
.chat-send:hover { box-shadow: 0 0 24px rgba(58, 247, 126, 0.55); }
.chat-send:active { transform: scale(0.88); }
.phone.is-auto .chat-input { border-color: rgba(58, 247, 126, 0.35); }

/* chip tap splash: neon dots + star sparkles (JS sets --dx/--dy/--rot/--spin) */
.burst-layer { position: fixed; inset: 0; z-index: 160; pointer-events: none; overflow: hidden; }
.burst-p {
  position: absolute; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%;
  background: var(--primary); box-shadow: 0 0 10px var(--primary);
  animation: burst 0.7s ease-out forwards;
}
.burst-p.is-amber { background: var(--yellow); box-shadow: 0 0 10px rgba(241, 203, 28, 0.85); }
.burst-p.is-white { background: #eafff2; box-shadow: 0 0 12px rgba(234, 255, 242, 0.9); }
.burst-p:nth-child(3n) { width: 4px; height: 4px; margin: -2px 0 0 -2px; }
.burst-flash {
  position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 18px #3af77e, 0 0 42px rgba(58, 247, 126, 0.85);
  animation: burst-flash 0.42s ease-out forwards;
}
.burst-ring {
  position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  border: 2px solid rgba(58, 247, 126, 0.85); box-shadow: 0 0 16px rgba(58, 247, 126, 0.55);
  animation: burst-ring 0.55s ease-out forwards;
}
.burst-star {
  position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px;
  background: var(--primary);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  box-shadow: 0 0 14px rgba(58, 247, 126, 0.95);
  animation: burst-star 0.85s cubic-bezier(0.15, 0.85, 0.25, 1) forwards;
}
.burst-star.is-amber {
  background: var(--yellow);
  box-shadow: 0 0 14px rgba(241, 203, 28, 0.95);
}
.burst-star.is-sm { width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; }
@keyframes burst {
  0% { opacity: 1; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0); }
}
@keyframes burst-flash {
  0% { opacity: 1; transform: scale(0.4); }
  40% { opacity: 1; transform: scale(1.8); }
  100% { opacity: 0; transform: scale(0.2); }
}
@keyframes burst-ring {
  0% { opacity: 0.95; transform: scale(0.4); }
  100% { opacity: 0; transform: scale(4.2); }
}
@keyframes burst-star {
  0% { opacity: 1; transform: translate(0, 0) scale(0.4) rotate(var(--rot, 0deg)); }
  55% { opacity: 1; transform: translate(calc(var(--dx) * 0.72), calc(var(--dy) * 0.72)) scale(1.15) rotate(calc(var(--rot, 0deg) + var(--spin, 120deg))); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0.15) rotate(calc(var(--rot, 0deg) + var(--spin, 220deg))); }
}

.path-toggle { display: flex; justify-content: center; gap: 0.4rem; margin-top: 1.1rem; flex-wrap: wrap; }
.path-btn {
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted-ink);
  background: rgba(7, 23, 18, 0.8); border: 1px solid var(--border);
  border-radius: 999px; padding: 0.4rem 0.85rem; cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.path-btn:hover { color: var(--ink); }
.path-btn.is-active { color: var(--primary); border-color: rgba(58, 247, 126, 0.55); }
.phone-hint { margin-top: 0.6rem; text-align: center; font-size: 0.82rem; color: var(--muted-ink); min-height: 1.3em; }

/* compact phone keeps Lovable proportions; light polish only on larger screens */
@media (min-width: 960px) {
  .path-toggle { margin-top: 0.85rem; }
}

/* ---------- live totals ---------- */
.live { padding-bottom: 5.5rem; }
.totals-grid { display: grid; gap: 1rem; margin-top: 1.1rem; }
@media (min-width: 720px) { .totals-grid { grid-template-columns: repeat(3, 1fr); } }
.tot {
  display: flex; flex-direction: column; gap: 0.35rem;
  padding: 1.5rem 1.6rem; border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(14, 30, 25, 0.9), rgba(7, 23, 18, 0.9));
  border: 1px solid var(--border);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.tot-label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-ink); }
.tot-val {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem, 5vw, 3.1rem);
  line-height: 1.05; letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
  display: inline-block; transform-origin: left center; transition: transform 0.2s;
}
.tot-n { font-family: var(--font-mono); font-size: 0.74rem; color: var(--muted-ink); }
.tot-in .tot-val { color: var(--primary); text-shadow: 0 0 22px rgba(58, 247, 126, 0.35); }
.tot-out .tot-val { color: var(--red); text-shadow: 0 0 22px rgba(239, 83, 80, 0.3); }
.tot-profit .tot-val { color: var(--yellow); text-shadow: 0 0 22px rgba(241, 203, 28, 0.3); }
.tot-in.is-bump { border-color: rgba(58, 247, 126, 0.6); box-shadow: var(--glow-sm); }
.tot-out.is-bump { border-color: rgba(239, 83, 80, 0.6); box-shadow: 0 0 18px rgba(239, 83, 80, 0.25); }
.tot-profit.is-bump { border-color: rgba(241, 203, 28, 0.55); box-shadow: 0 0 18px rgba(241, 203, 28, 0.2); }
.tot-val.is-pop { transform: scale(1.05); }

.totals-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.4rem; }
.totals-chips .chip {
  font-size: 0.84rem; color: var(--ink); border-color: var(--border);
  background: rgba(7, 23, 18, 0.8); padding: 0.6rem 1rem;
}
.totals-chips .chip:hover { border-color: rgba(58, 247, 126, 0.55); color: var(--primary); }
.totals-note { margin-top: 0.9rem; font-family: var(--font-mono); font-size: 0.74rem; color: var(--muted-ink); }

/* ---------- sections ---------- */
.steps, .savings, .faq, .cta { padding: 3.5rem 0 4.5rem; }
.steps h2, .savings h2, .faq h2 { font-size: clamp(2rem, 4.6vw, 2.9rem); font-weight: 700; }
.how-lede {
  margin-top: 1rem; max-width: 38rem;
  color: var(--muted-ink); font-size: 1.05rem; line-height: 1.55;
}

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

.step-grid { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 760px) { .step-grid { grid-template-columns: repeat(3, 1fr); } }
.step-card {
  padding: 1.6rem 1.6rem 1.8rem; border-radius: var(--r-lg);
  background: rgba(7, 23, 18, 0.85); border: 1px solid var(--border);
  transition: border-color 0.2s;
}
.step-card:hover { border-color: rgba(58, 247, 126, 0.4); }
.step-num {
  display: block; font-family: var(--font-mono); font-weight: 700; font-size: 2.4rem;
  color: rgba(58, 247, 126, 0.32); line-height: 1;
}
.step-card h3 { margin-top: 1.2rem; font-size: 1.25rem; font-weight: 600; }
.step-card p { margin-top: 0.6rem; color: var(--muted-ink); font-size: 0.95rem; }

/* ---------- savings ---------- */
.roi-disclaimer { margin-top: 0.9rem; font-family: var(--font-mono); font-size: 0.76rem; color: var(--muted-ink); }
.roi-panel { display: grid; gap: 1rem; margin-top: 2rem; }
@media (min-width: 900px) { .roi-panel { grid-template-columns: 1.1fr 0.9fr; } }
.roi-controls, .roi-results {
  padding: 1.6rem; border-radius: var(--r-lg);
  background: rgba(7, 23, 18, 0.85); border: 1px solid var(--border);
}
.roi-controls { display: grid; gap: 1.3rem; }
.roi-field label {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  font-size: 0.92rem; color: var(--ink);
}
.roi-value { font-family: var(--font-mono); font-size: 0.85rem; color: var(--primary); white-space: nowrap; display: inline-block; transition: transform 0.15s; }
.roi-value.is-pop { transform: scale(1.12); }
.roi-field input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 4px; margin-top: 0.75rem;
  border-radius: 999px; background: var(--secondary); outline-offset: 6px; cursor: pointer;
}
.roi-field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--primary); border: 3px solid var(--bg); box-shadow: var(--glow-sm);
}
.roi-field input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--primary); border: 3px solid var(--bg); box-shadow: var(--glow-sm);
}
.roi-field input[type="range"]::-moz-range-progress { background: var(--primary); height: 4px; border-radius: 999px; }

.roi-results {
  display: flex; flex-direction: column; gap: 1rem;
  border-color: rgba(58, 247, 126, 0.45);
  box-shadow: 0 0 36px rgba(58, 247, 126, 0.12);
}
.roi-big { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem; }
.roi-big strong {
  font-family: var(--font-display); font-size: clamp(2.6rem, 6vw, 3.4rem); line-height: 1;
  color: var(--primary); text-shadow: var(--glow-text);
}
.roi-big span { color: var(--muted-ink); }
.roi-chips { display: grid; gap: 0.6rem; }
@media (min-width: 520px) { .roi-chips { grid-template-columns: repeat(3, 1fr); } }
.roi-chip {
  display: flex; flex-direction: column; gap: 0.15rem; padding: 0.8rem 0.9rem;
  border-radius: var(--r); background: var(--muted); border: 1px solid var(--border);
}
.roi-chip span { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-ink); }
.roi-chip strong { font-family: var(--font-display); font-size: 1.25rem; color: var(--yellow); }
.roi-chip small { font-size: 0.74rem; color: var(--muted-ink); line-height: 1.35; }
.roi-year { color: var(--muted-ink); }
.roi-year strong { color: var(--ink); }
.roi-results .btn { align-self: flex-start; margin-top: 0.4rem; }

/* ---------- FAQ ---------- */
.faq-inner { max-width: 760px; }
.faq-list { display: grid; gap: 0.7rem; margin-top: 1.8rem; }
.acc-item {
  border-radius: var(--r); background: rgba(7, 23, 18, 0.85); border: 1px solid var(--border);
  transition: border-color 0.2s;
}
.acc-item.is-open { border-color: rgba(58, 247, 126, 0.4); }
.acc-h { margin: 0; font-size: 1rem; letter-spacing: -0.01em; }
.acc-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: 100%; padding: 1.1rem 1.25rem; background: none; border: 0; cursor: pointer;
  color: var(--ink); font: inherit; font-family: var(--font-display); font-weight: 600; text-align: left;
}
.acc-btn::after {
  content: "+"; font-family: var(--font-mono); font-weight: 400; font-size: 1.1rem; color: var(--primary);
  transition: transform 0.2s;
}
.acc-btn[aria-expanded="true"]::after { transform: rotate(45deg); }
.acc-btn:focus-visible { outline-offset: -2px; border-radius: var(--r); }
.acc-panel { color: var(--muted-ink); font-size: 0.95rem; }
.acc-inner p { padding: 0 1.25rem 1.15rem; }
.faq-list.js-acc .acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.28s ease; }
.faq-list.js-acc .acc-inner { overflow: hidden; min-height: 0; }
.faq-list.js-acc .acc-item.is-open .acc-panel { grid-template-rows: 1fr; }
.faq-list.js-acc .acc-panel[aria-hidden="true"] { visibility: hidden; transition: grid-template-rows 0.28s ease, visibility 0s 0.28s; }

/* ---------- CTA ---------- */
.cta-box {
  position: relative; text-align: center;
  padding: 3.5rem 1.5rem; border-radius: var(--r-xl);
  background: linear-gradient(180deg, rgba(14, 30, 25, 0.95), rgba(7, 23, 18, 0.95));
  border: 1px solid rgba(58, 247, 126, 0.45);
  box-shadow: 0 0 40px rgba(58, 247, 126, 0.22), 0 0 120px rgba(58, 247, 126, 0.08);
}
.cta-box h2 { font-size: clamp(2.1rem, 5.4vw, 3.4rem); font-weight: 700; }
.cta-lede { max-width: 34rem; margin: 1.1rem auto 0; color: var(--muted-ink); }
.cta-trust { position: relative; display: flex; flex-direction: column; align-items: center; margin-top: 2rem; }
.cta-contact { margin-top: 1.2rem; font-family: var(--font-mono); font-size: 0.76rem; color: var(--muted-ink); }

/* waitlist: hold to join */
#waitlist-btn { touch-action: manipulation; -webkit-touch-callout: none; }
.hold-ring { width: 0; height: 1.3rem; opacity: 0; transition: width 0.2s, opacity 0.2s; transform: rotate(-90deg); flex-shrink: 0; }
#waitlist-btn.is-holding .hold-ring, #waitlist-btn.is-done .hold-ring { width: 1.3rem; opacity: 1; }
.hold-ring-bg { fill: none; stroke: rgba(1, 15, 7, 0.25); stroke-width: 3; }
.hold-ring-fg { fill: none; stroke: var(--primary-ink); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 62.83; stroke-dashoffset: 62.83; }
#waitlist-btn.is-holding .hold-ring-fg { stroke-dashoffset: 0; transition: stroke-dashoffset 0.9s linear; }
#waitlist-btn.is-done .hold-ring-fg { stroke-dashoffset: 0; }
.hold-check { fill: none; stroke: var(--primary-ink); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: rotate(90deg); transform-origin: 12px 12px; }
#waitlist-btn.is-done .hold-check { opacity: 1; }
#waitlist-btn.is-holding { transform: scale(0.97); }
.hold-tip { margin-top: 0.8rem; font-size: 0.85rem; color: var(--muted-ink); }
.hold-status { margin-top: 0.4rem; min-height: 1.4em; font-weight: 600; color: var(--primary); }
.confetti { position: absolute; left: 50%; top: 1.75rem; width: 0; height: 0; pointer-events: none; }
.confetti-bit {
  position: absolute; width: 0.5rem; height: 0.85rem; border-radius: 2px;
  background: var(--primary); opacity: 0; animation: confetti-pop 1s ease-out forwards;
  box-shadow: 0 0 6px rgba(58, 247, 126, 0.6);
}
.confetti-bit:nth-child(3n) { background: var(--yellow); box-shadow: 0 0 6px rgba(241, 203, 28, 0.6); }
.confetti-bit:nth-child(3n+1) { background: var(--ink); box-shadow: none; }
.confetti-bit:nth-child(5n) { border-radius: 50%; width: 0.55rem; height: 0.55rem; }
@keyframes confetti-pop {
  0% { opacity: 1; transform: translate(0, 0) rotate(0); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); }
}
@media (prefers-reduced-motion: reduce) { .confetti-bit { display: none; } }

/* ---------- footer ---------- */
.site-footer { padding: 1rem 16px 3rem; text-align: center; }
.site-footer p { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted-ink); }
.site-footer a { color: var(--muted-ink); }
.site-footer a:hover { color: var(--primary); }

/* ---------- sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50;
  display: none; align-items: center; justify-content: center; min-height: 52px;
  border-radius: var(--r); background: var(--primary); color: var(--primary-ink);
  font-family: var(--font-display); font-weight: 600; text-decoration: none;
  box-shadow: var(--glow);
  opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity 0.2s, transform 0.2s;
}
.sticky-cta.is-shown { opacity: 1; transform: none; pointer-events: auto; }
@media (max-width: 759px) {
  .sticky-cta { display: flex; }
  .site-footer { padding-bottom: 6rem; }
}

@media (max-width: 420px) {
  .btn { width: 100%; }
  .hero-actions { flex-direction: column; }
  .chat-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .chat-chips::-webkit-scrollbar { display: none; }
  .chat-chips .chip { flex-shrink: 0; }
  .phone-frame { border-radius: 34px; padding: 10px; }
}

/* ---------- Hellobru little-accountant cursor mascot (fine pointers only; JS sets transform / state classes) ---------- */
.critter {
  position: fixed; left: 0; top: 0; z-index: 150; width: 44px; height: 44px; margin: -22px 0 0 -22px;
  pointer-events: none; display: none; opacity: 0; transition: opacity 0.3s ease; will-change: transform;
}
html.has-critter .critter { display: block; }
.critter.is-on { opacity: 1; }
.critter-lunge, .critter-flip { width: 100%; height: 100%; }
.critter-flip { transition: transform 0.16s ease; }
.critter.is-left .critter-flip { transform: scaleX(-1); }
.critter svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 7px rgba(58, 247, 126, 0.55)); }
.critter .c-suit { fill: #0a2a18; stroke: var(--primary); stroke-width: 1.1; }
.critter .c-shirt { fill: #eafff2; }
.critter .c-tie { fill: var(--primary); }
.critter .c-head { fill: var(--primary); }
.critter .c-limb { stroke: var(--primary); stroke-width: 2.4; stroke-linecap: round; fill: none; }
.critter .c-eye { fill: #021a0e; }
.critter .c-glint { fill: #eafff2; }
.critter .c-glass { fill: none; stroke: #021a0e; stroke-width: 1.35; }
.critter .c-glass-bridge { stroke: #021a0e; stroke-width: 1.2; stroke-linecap: round; }
.critter .c-mouth { fill: #021a0e; }
.critter .c-tooth { fill: #eafff2; }
.critter .c-shadow { fill: rgba(58, 247, 126, 0.18); }
.critter .c-pencil-wood { fill: #c4a574; }
.critter .c-pencil-tip { fill: #021a0e; }
.critter .c-pencil-lead { fill: #1a3d2e; }
.critter .c-body-g, .critter .c-head-g, .critter .c-eyes, .critter .c-jaw, .critter .c-leg, .critter .c-arm-g {
  transform-box: fill-box;
}
.critter .c-leg { transform-origin: 50% 0; }
.critter .c-head-g { transform-origin: 50% 85%; }
.critter .c-arm-g { transform-origin: 0% 50%; }
.critter .c-eyes { transform-origin: 50% 50%; animation: critter-blink 4.2s ease-in-out infinite; }
.critter .c-jaw { transform-origin: 0% 50%; transform: scaleY(0.32); }
.critter.is-run .c-leg-a { animation: critter-leg 0.14s ease-in-out infinite alternate; }
.critter.is-run .c-leg-b { animation: critter-leg 0.14s ease-in-out infinite alternate-reverse; }
.critter.is-run .c-body-g { transform-origin: 50% 100%; animation: critter-waddle 0.14s ease-in-out infinite alternate; }
.critter.is-run .c-arm-g { animation: arm-pump 0.14s ease-in-out infinite alternate; }
.critter.is-scramble .c-leg-a { animation: scramble-leg 0.09s ease-in-out infinite alternate; }
.critter.is-scramble .c-leg-b { animation: scramble-leg 0.09s ease-in-out infinite alternate-reverse; }
.critter.is-scramble .c-body-g { transform-origin: 50% 100%; animation: scramble-body 0.1s ease-in-out infinite alternate; }
.critter.is-scramble .c-arm-g { animation: scramble-arm 0.08s ease-in-out infinite alternate; }
.critter.is-scramble .c-head-g { animation: scramble-head 0.12s ease-in-out infinite alternate; }
.critter.is-look .c-head-g { animation: look-around 0.9s ease-in-out; }
.critter.is-look .c-eyes { animation: look-pupils 0.9s ease-in-out, critter-blink 4.2s ease-in-out infinite; }
.critter.is-bite .critter-lunge { animation: critter-lunge 0.58s cubic-bezier(0.15, 1.55, 0.35, 1); }
.critter.is-bite .c-jaw { animation: critter-chomp 0.58s ease-in-out; }
.critter.is-bite svg { animation: bite-pop 0.58s cubic-bezier(0.2, 1.6, 0.35, 1); }
@keyframes critter-leg { from { transform: rotate(-40deg); } to { transform: rotate(40deg); } }
@keyframes critter-waddle {
  from { transform: translateY(0) rotate(-7deg) skewX(-3deg); }
  to { transform: translateY(-2.5px) rotate(7deg) skewX(3deg); }
}
@keyframes arm-pump { from { transform: rotate(-18deg); } to { transform: rotate(16deg); } }
@keyframes scramble-leg { from { transform: rotate(-55deg); } to { transform: rotate(55deg); } }
@keyframes scramble-body {
  from { transform: translateY(1px) rotate(-14deg) skewX(-10deg) scale(1.02, 0.94); }
  to { transform: translateY(-4px) rotate(14deg) skewX(10deg) scale(0.96, 1.06); }
}
@keyframes scramble-arm { from { transform: rotate(-48deg); } to { transform: rotate(52deg); } }
@keyframes scramble-head { from { transform: rotate(-12deg) translateX(-1px); } to { transform: rotate(12deg) translateX(1px); } }
@keyframes critter-blink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(0.1); } }
@keyframes look-around {
  0% { transform: rotate(0deg); }
  30% { transform: rotate(-20deg); }
  60% { transform: rotate(22deg); }
  100% { transform: rotate(0deg); }
}
@keyframes look-pupils {
  0%, 100% { transform: translateX(0); }
  30% { transform: translateX(-1.4px); }
  60% { transform: translateX(1.6px); }
}
@keyframes critter-lunge {
  0% { transform: translate(0, 0) scale(1); }
  28% { transform: translate(calc(var(--lx, 18px) * -0.15), calc(var(--ly, 0px) * -0.15)) scale(0.88, 1.12); }
  48% { transform: translate(var(--lx, 22px), var(--ly, 0px)) scale(1.42, 0.82); }
  68% { transform: translate(var(--lx, 22px), var(--ly, 0px)) scale(0.92, 1.12); }
  100% { transform: translate(0, 0) scale(1); }
}
@keyframes bite-pop {
  0%, 100% { transform: scale(1); }
  45% { transform: scale(1.28); }
  70% { transform: scale(0.94); }
}
@keyframes critter-chomp {
  0% { transform: scaleY(0.32); }
  22% { transform: scaleY(1.95); }
  40% { transform: scaleY(0.05); }
  58% { transform: scaleY(1.45); }
  78% { transform: scaleY(0.05); }
  100% { transform: scaleY(0.32); }
}
