:root {
  --bg: #0c0a12;
  --surface: #17121f;
  --surface-2: #211a2d;
  --text: #f3eff8;
  --muted: #b8aec6;
  --border: #33293f;
  --slime: #b6f01f;
  --slime-dark: #7fb80c;
  --purple: #6b2fa0;
  --purple-deep: #2a1140;
  --on-slime: #0c0a12;
  --code-bg: #241c31;
  --display: 'Bowlby One', 'Arial Black', Impact, sans-serif;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--slime);
}

a:hover {
  color: #d4ff6b;
}

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

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 20;
  padding: 0.5rem 1rem;
  background: var(--slime);
  color: var(--on-slime);
}

.wrap {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.narrow {
  max-width: 44rem;
}

.center {
  text-align: center;
}

h1,
h2,
.brand {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(2.25rem, 1.5rem + 3vw, 3.75rem);
  line-height: 1.05;
  margin: 0.5rem 0 1rem;
}

h2 {
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.25rem);
  line-height: 1.15;
  margin: 0 0 1.25rem;
}

h3 {
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
}

.lead {
  font-size: 1.2rem;
  color: var(--muted);
}

.eyebrow {
  margin: 0;
  color: var(--slime);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.slime {
  color: var(--slime);
  text-shadow: 0 0 24px rgb(182 240 31 / 0.45);
}

.muted,
.opt {
  color: var(--muted);
  font-weight: 400;
}

/* ---------------------------------------------------------------- buttons */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.75rem 0 0;
}

.center .actions {
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border: 2px solid var(--slime);
  border-radius: 999px;
  background: var(--slime);
  color: var(--on-slime);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 0 var(--slime-dark);
  transition: transform 0.12s, box-shadow 0.12s;
}

.btn:hover {
  color: var(--on-slime);
  transform: translateY(2px);
  box-shadow: 0 4px 0 var(--slime-dark);
}

.btn-ghost {
  background: transparent;
  color: var(--slime);
  box-shadow: none;
}

.btn-ghost:hover {
  color: var(--slime);
  background: rgb(182 240 31 / 0.1);
  box-shadow: none;
}

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border);
  background: rgb(12 10 18 / 0.92);
  backdrop-filter: blur(10px);
}

.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.625rem 1rem;
}

.brand {
  display: block;
  line-height: 0;
}

.brand img {
  width: auto;
  height: 48px;
  transition: filter 0.3s ease;
}

.brand:hover img,
.footer-brand:hover img {
  filter: drop-shadow(0 0 10px rgb(182 240 31 / 0.5));
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}

.site-nav a,
.subnav a {
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current='page'],
.subnav a:hover,
.subnav a[aria-current='page'] {
  color: var(--text);
}

.site-nav a[aria-current='page'],
.subnav a[aria-current='page'] {
  text-decoration: underline 3px var(--slime);
  text-underline-offset: 8px;
}

.subnav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.25rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.5rem 1rem 0.625rem;
  font-size: 0.95rem;
}

.subnav-title {
  margin-right: 0.5rem;
  color: var(--slime);
  font-weight: 800;
}

.subnav-title span {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.85rem;
}

/* ---------------------------------------------------------------- home */
.hero {
  overflow-x: clip;
  padding: 3.5rem 0 3rem;
  background:
    radial-gradient(ellipse 60% 70% at 78% 45%, rgb(182 240 31 / 0.16), transparent 70%),
    radial-gradient(ellipse 70% 80% at 10% 0%, rgb(107 47 160 / 0.45), transparent 70%),
    var(--purple-deep);
}

.hero-small {
  padding: 3rem 0;
}

.hero-grid,
.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 2rem 3rem;
}

.hero-logo {
  display: block;
  width: 100%;
  filter: drop-shadow(0 10px 30px rgb(182 240 31 / 0.25));
}

/* Slime band under the hero, with drips that stretch and drop a droplet now and then. */
.drip-wrap {
  position: relative;
  z-index: 1;
  overflow-x: clip;
  overflow-y: visible;
}

.drop {
  position: absolute;
  top: 6px;
  left: var(--x);
  width: var(--w);
  pointer-events: none;
}

.drop::before,
.drop::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  background: var(--slime);
  animation: var(--d) cubic-bezier(0.45, 0, 0.55, 1) var(--t) infinite;
}

/* the stretching stem */
.drop::before {
  top: 0;
  height: 34px;
  border-radius: 0 0 999px 999px;
  transform-origin: top;
  animation-name: ooze;
}

/* the droplet that forms at the tip and falls */
.drop::after {
  top: calc(34px - var(--w) / 2);
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: 0 0 10px rgb(182 240 31 / 0.5);
  animation-name: droplet;
}

@keyframes ooze {
  0%, 100% { transform: scaleY(0.3); }
  68% { transform: scaleY(1); }
  76% { transform: scaleY(0.45); }
}

@keyframes droplet {
  0%, 100% { transform: translateY(-24px) scale(0.5); opacity: 0; }
  20% { opacity: 1; }
  68% { transform: translateY(0) scale(1); opacity: 1; }
  92% { transform: translateY(90px) scale(0.85, 1.1); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .drop::before,
  .drop::after {
    animation: none;
  }

  .drop::before {
    transform: scaleY(0.6);
  }

  .drop::after {
    display: none;
  }
}

.drip {
  display: block;
  width: 100%;
  height: 40px;
  margin-top: -1px;
  fill: var(--slime);
  filter: drop-shadow(0 4px 10px rgb(182 240 31 / 0.3));
}

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.grid > li {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
}

.grid p {
  margin: 0;
  color: var(--muted);
}

.services > li {
  border-top: 4px solid var(--slime);
}

.steps-grid {
  counter-reset: step;
}

.steps-grid h3::before {
  counter-increment: step;
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  margin-right: 0.5rem;
  border-radius: 50%;
  background: var(--purple);
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 400;
  vertical-align: 2px;
}

.section-alt .grid > li {
  background: var(--bg);
}

.cta {
  text-align: center;
  background: radial-gradient(ellipse 60% 90% at 50% 100%, rgb(182 240 31 / 0.14), transparent 70%);
}

.cta .actions {
  justify-content: center;
}

/* Glow behind the hero logo: brightens on hover and follows the mouse (site.js sets --gx/--gy). */
.hero-art {
  position: relative;
  isolation: isolate;
  justify-self: center;
  width: 100%;
  max-width: 520px;
}

.hero-art::before {
  content: '';
  position: absolute;
  inset: -12%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgb(182 240 31 / 0.75), rgb(182 240 31 / 0.18) 35%, transparent 62%);
  filter: blur(28px);
  opacity: 0.3;
  transform: scale(0.9);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}

.hero-art:hover::before {
  opacity: 1;
  transform: scale(1.05);
}

.hero-art .hero-logo {
  transition: filter 0.45s ease;
}

.hero-art:hover .hero-logo {
  filter: drop-shadow(0 0 22px rgb(182 240 31 / 0.55));
}

/* Holographic trading card that tilts toward the mouse (site.js sets --rx/--ry/--mx/--my). */
.card-stage {
  justify-self: center;
  padding: 1.5rem;
  perspective: 900px;
}

.holo-card {
  --rx: 0deg;
  --ry: 0deg;
  --mx: 50%;
  --my: 50%;
  position: relative;
  width: min(16rem, 62vw);
  aspect-ratio: 63 / 88;
  padding: 0.55rem;
  border-radius: 14px;
  background: linear-gradient(135deg, #f1f2f6, #9aa0b0 45%, #e4e6ec 60%, #8a90a0);
  box-shadow: 0 30px 60px rgb(0 0 0 / 0.55), 0 0 0 1px rgb(255 255 255 / 0.15) inset;
  transform: rotateZ(-5deg) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.holo-card.is-tilting {
  transform: rotateZ(0deg) rotateX(var(--rx)) rotateY(var(--ry)) scale(1.04);
  box-shadow: 0 40px 70px rgb(0 0 0 / 0.6), 0 0 40px rgb(255 79 154 / 0.25);
  transition: transform 0.08s linear, box-shadow 0.3s ease;
}

.hc-face {
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 0.5rem;
  height: 100%;
  padding: 0.6rem;
  border-radius: 9px;
  background:
    repeating-linear-gradient(115deg, rgb(255 255 255 / 0) 0 6px, rgb(255 255 255 / 0.07) 6px 7px),
    linear-gradient(135deg, #3b42ff, #ff4f9a 50%, #ffc23b);
  background-size: 100% 100%, 160% 160%;
  background-position: 0 0, var(--mx) var(--my);
  color: #fff;
  overflow: hidden;
}

.hc-top,
.hc-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hc-top {
  font-family: var(--display);
  font-size: 1.35rem;
  text-shadow: 0 2px 0 rgb(0 0 0 / 0.25);
}

.hc-star {
  font-size: 1rem;
}

.hc-art {
  display: grid;
  place-items: center;
  border: 3px solid rgb(255 255 255 / 0.7);
  border-radius: 6px;
  background:
    radial-gradient(circle at 25% 30%, rgb(255 255 255 / 0.9) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 72% 22%, rgb(255 255 255 / 0.8) 0 1px, transparent 2px),
    radial-gradient(circle at 62% 75%, rgb(255 255 255 / 0.85) 0 1.5px, transparent 2.5px),
    radial-gradient(circle at 18% 80%, rgb(255 255 255 / 0.7) 0 1px, transparent 2px),
    radial-gradient(circle at 50% 45%, rgb(255 255 255 / 0.35), transparent 60%),
    linear-gradient(160deg, #1d1060, #5b1f7a 55%, #b8326e);
}

.hc-art span {
  font-family: var(--display);
  font-size: 4.5rem;
  line-height: 1;
  background: linear-gradient(135deg, #ffc23b, #ff4f9a 50%, #8f95ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 0 rgb(0 0 0 / 0.3));
}

.hc-text {
  padding: 0.45rem 0.6rem;
  border-radius: 6px;
  background: rgb(255 255 255 / 0.85);
  color: #1a1530;
  font-size: 0.8rem;
  line-height: 1.35;
}

.hc-text strong {
  display: block;
}

.hc-foot {
  font-size: 0.7rem;
  font-weight: 700;
  opacity: 0.9;
}

.hc-glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgb(255 255 255 / 0.5), rgb(255 255 255 / 0.08) 30%, transparent 55%),
    linear-gradient(115deg, transparent 25%, rgb(90 255 230 / 0.45) 38%, rgb(255 240 110 / 0.4) 47%, rgb(255 110 230 / 0.45) 56%, transparent 70%);
  background-size: 100% 100%, 250% 250%;
  background-position: 0 0, var(--mx) var(--my);
  mix-blend-mode: screen;
  opacity: 0.3;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.is-tilting .hc-glare {
  opacity: 1;
}

/* ---------------------------------------------------------------- card scenes
   Each card in What we do and How we work has a small scene that plays on hover
   (or when scrolled to the middle of the screen on touch devices, see site.js). */
.fx {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.fx::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle 160px at var(--gx, 50%) var(--gy, 0%), rgb(182 240 31 / 0.13), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

:is(.fx:hover, .fx.is-live) {
  transform: translateY(-4px);
  border-color: rgb(182 240 31 / 0.6);
  box-shadow: 0 14px 30px rgb(0 0 0 / 0.4), 0 0 24px rgb(182 240 31 / 0.08);
}

:is(.fx:hover, .fx.is-live)::after {
  opacity: 1;
}

.fx-art {
  position: relative;
  height: 88px;
  margin-bottom: 1.1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  overflow: hidden;
}

.fx-art i,
.fx-art b {
  display: block;
  font-style: normal;
}

/* Shopify stores: the cart rolls to the shelf, the products hop and a badge pops. */
.fx-store .shelf {
  position: absolute;
  right: 14px;
  bottom: 18px;
  display: flex;
  gap: 5px;
  padding-bottom: 4px;
  border-bottom: 3px solid var(--border);
}

.fx-store .shelf i {
  width: 18px;
  height: 24px;
  border-radius: 4px;
  background: var(--slime);
}

.fx-store .shelf i:nth-child(2) {
  height: 30px;
  background: #ff4f9a;
}

.fx-store .shelf i:nth-child(3) {
  background: #8f6bff;
}

.fx-store .cart {
  position: absolute;
  left: 12px;
  bottom: 14px;
  width: 44px;
  color: var(--text);
  fill: var(--text);
  transition: left 0.7s cubic-bezier(0.5, 0, 0.3, 1.3);
}

.fx-store .cart b {
  position: absolute;
  top: -10px;
  right: -8px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--slime);
  color: var(--on-slime);
  font-size: 0.75rem;
  transform: scale(0);
  transition: transform 0.3s cubic-bezier(0.3, 1.6, 0.5, 1);
}

:is(.fx-store:hover, .fx-store.is-live) .cart {
  left: calc(100% - 150px);
}

:is(.fx-store:hover, .fx-store.is-live) .cart b {
  transform: scale(1);
  transition-delay: 0.95s;
}

:is(.fx-store:hover, .fx-store.is-live) .shelf i {
  animation: hop 0.45s ease 0.6s 2;
}

:is(.fx-store:hover, .fx-store.is-live) .shelf i:nth-child(2) {
  animation-delay: 0.7s;
}

:is(.fx-store:hover, .fx-store.is-live) .shelf i:nth-child(3) {
  animation-delay: 0.8s;
}

@keyframes hop {
  50% { transform: translateY(-10px) rotate(-6deg); }
}

/* Shopify themes: a mini storefront flips through color schemes and corner styles. */
.fx-themes .mock {
  position: absolute;
  inset: 12px 18%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 8px 1fr 14px;
  gap: 5px;
}

.fx-themes .mock i {
  border-radius: 4px;
  background: var(--slime);
}

.fx-themes .m-bar {
  grid-column: 1 / -1;
  opacity: 0.5;
}

.fx-themes .m-hero {
  grid-column: 1 / -1;
  background: linear-gradient(120deg, var(--slime), #4a7a00) !important;
}

.fx-themes .m-tile {
  opacity: 0.75;
}

:is(.fx-themes:hover, .fx-themes.is-live) .mock {
  animation: retheme 2.4s steps(1) infinite;
}

:is(.fx-themes:hover, .fx-themes.is-live) .mock i {
  animation: reshape 2.4s steps(1) infinite;
}

@keyframes retheme {
  0% { filter: none; }
  25% { filter: hue-rotate(230deg) saturate(1.3); }
  50% { filter: hue-rotate(140deg); }
  75% { filter: hue-rotate(290deg) saturate(1.4); }
}

@keyframes reshape {
  0% { border-radius: 4px; }
  25% { border-radius: 0; }
  50% { border-radius: 10px; }
  75% { border-radius: 2px 10px; }
}

/* Custom websites: the browser shrinks from desktop to phone and the blocks reflow. */
.fx-web .browser {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 82%;
  border: 2px solid var(--muted);
  border-radius: 8px;
  overflow: hidden;
  transform: translateX(-50%);
}

.fx-web .b-bar {
  display: flex;
  gap: 4px;
  padding: 4px 6px;
  background: var(--surface-2);
}

.fx-web .b-bar i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff5f57;
}

.fx-web .b-bar i:nth-child(2) {
  background: #febc2e;
}

.fx-web .b-bar i:nth-child(3) {
  background: var(--slime);
}

.fx-web .b-body {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 5px;
}

.fx-web .b-body i {
  flex: 1 1 34px;
  height: 14px;
  border-radius: 3px;
  background: var(--purple);
}

.fx-web .b-body i.wide {
  flex-basis: 100%;
  height: 10px;
  background: var(--slime);
}

:is(.fx-web:hover, .fx-web.is-live) .browser {
  animation: resize 3s ease-in-out infinite;
}

@keyframes resize {
  0%, 100% { width: 82%; }
  35%, 50% { width: 30%; }
  70% { width: 55%; }
}

/* Custom features: a terminal types a command and prints the result. */
.fx-code .term {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 0 14px;
  font: 0.8rem/1.4 ui-monospace, 'Cascadia Code', Consolas, monospace;
  color: var(--muted);
}

.fx-code .t-line {
  display: flex;
  white-space: nowrap;
}

.fx-code .t-type {
  display: inline-block;
  width: 0;
  margin-left: 0.6ch;
  overflow: hidden;
  border-right: 2px solid var(--slime);
  color: var(--text);
  animation: caret 0.8s steps(1) infinite;
}

.fx-code .t-out {
  color: var(--slime);
  opacity: 0;
}

:is(.fx-code:hover, .fx-code.is-live) .t-type {
  animation: type 1.1s steps(17) forwards, caret 0.8s steps(1) infinite;
}

:is(.fx-code:hover, .fx-code.is-live) .t-out {
  animation: fade-up 0.35s ease 1.3s forwards;
}

@keyframes type {
  to { width: 17ch; }
}

@keyframes caret {
  50% { border-color: transparent; }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* Talk: the typing dots turn into a short conversation. */
.fx-talk .fx-art {
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 0 12px;
}

.fx-talk .msg {
  max-width: 80%;
  padding: 3px 10px;
  border-radius: 12px 12px 12px 3px;
  background: var(--surface-2);
  font-size: 0.78rem;
  font-weight: 600;
  opacity: 0;
  transform: scale(0.6);
  transform-origin: left bottom;
}

.fx-talk .msg.us {
  justify-self: end;
  border-radius: 12px 12px 3px 12px;
  background: var(--slime);
  color: var(--on-slime);
  transform-origin: right bottom;
}

.fx-talk .typing {
  position: absolute;
  left: 12px;
  top: 50%;
  display: flex;
  gap: 4px;
  padding: 8px 10px;
  border-radius: 12px;
  background: var(--surface-2);
  transform: translateY(-50%);
  transition: opacity 0.2s;
}

.fx-talk .typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  animation: blink 1.2s ease-in-out infinite;
}

.fx-talk .typing i:nth-child(2) {
  animation-delay: 0.2s;
}

.fx-talk .typing i:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes blink {
  0%, 60%, 100% { opacity: 0.3; transform: none; }
  30% { opacity: 1; transform: translateY(-3px); }
}

:is(.fx-talk:hover, .fx-talk.is-live) .typing {
  opacity: 0;
}

:is(.fx-talk:hover, .fx-talk.is-live) .msg {
  animation: pop 0.35s cubic-bezier(0.3, 1.5, 0.5, 1) 0.15s forwards;
}

:is(.fx-talk:hover, .fx-talk.is-live) .msg.us {
  animation-delay: 0.75s;
}

@keyframes pop {
  to { opacity: 1; transform: none; }
}

/* Plan: a blueprint grid lights up and the checklist ticks itself off. */
.fx-plan .fx-art {
  background:
    repeating-linear-gradient(0deg, rgb(120 160 255 / 0.08) 0 1px, transparent 1px 12px),
    repeating-linear-gradient(90deg, rgb(120 160 255 / 0.08) 0 1px, transparent 1px 12px),
    var(--bg);
  transition: background-color 0.4s;
}

:is(.fx-plan:hover, .fx-plan.is-live) .fx-art {
  background-color: #10183a;
}

.fx-plan .checks {
  position: absolute;
  inset: 0 16px;
  display: grid;
  align-content: center;
  gap: 7px;
}

.fx-plan .checks > span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fx-plan .checks i {
  position: relative;
  flex: none;
  width: 16px;
  height: 16px;
  border: 2px solid var(--muted);
  border-radius: 4px;
}

.fx-plan .checks i::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 0;
  width: 5px;
  height: 9px;
  border: solid var(--on-slime);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
}

.fx-plan .checks b {
  height: 6px;
  border-radius: 3px;
  background: var(--border);
}

:is(.fx-plan:hover, .fx-plan.is-live) .checks i {
  animation: check-box 0.3s ease forwards;
}

:is(.fx-plan:hover, .fx-plan.is-live) .checks i::after {
  animation: check-mark 0.3s cubic-bezier(0.3, 1.6, 0.5, 1) forwards;
}

:is(.fx-plan:hover, .fx-plan.is-live) .checks > span:nth-child(2) i,
:is(.fx-plan:hover, .fx-plan.is-live) .checks > span:nth-child(2) i::after {
  animation-delay: 0.35s;
}

:is(.fx-plan:hover, .fx-plan.is-live) .checks > span:nth-child(3) i,
:is(.fx-plan:hover, .fx-plan.is-live) .checks > span:nth-child(3) i::after {
  animation-delay: 0.7s;
}

@keyframes check-box {
  to { border-color: var(--slime); background: var(--slime); }
}

@keyframes check-mark {
  to { transform: rotate(45deg) scale(1); }
}

/* Build: the progress bar counts to 100% while bricks drop into place. */
@property --p {
  syntax: '<integer>';
  initial-value: 0;
  inherits: true;
}

.fx-build .progress {
  position: absolute;
  left: 14px;
  right: 92px;
  top: 50%;
  display: grid;
  gap: 4px;
  transform: translateY(-50%);
}

.fx-build .p-bar {
  height: 10px;
  border-radius: 5px;
  background: var(--surface-2);
  overflow: hidden;
}

.fx-build .p-bar i {
  width: 0;
  height: 100%;
  background: repeating-linear-gradient(-45deg, var(--slime) 0 6px, #9fd615 6px 12px);
}

.fx-build .pct {
  color: var(--muted);
  font: 700 0.75rem/1 ui-monospace, Consolas, monospace;
}

.fx-build .pct::after {
  counter-reset: p var(--p);
  content: counter(p) '%';
}

.fx-build .bricks {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: grid;
  grid-template-columns: repeat(3, 18px);
  gap: 3px;
}

.fx-build .bricks i {
  height: 12px;
  border: 1px dashed var(--border);
  border-radius: 2px;
}

:is(.fx-build:hover, .fx-build.is-live) .p-bar i {
  animation: fill 1.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

:is(.fx-build:hover, .fx-build.is-live) .pct {
  animation: count 1.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

:is(.fx-build:hover, .fx-build.is-live) .bricks i {
  animation: brick 0.35s cubic-bezier(0.5, 0, 0.5, 1.4) both;
}

:is(.fx-build:hover, .fx-build.is-live) .bricks i:nth-child(4) { animation-delay: 0.1s; }
:is(.fx-build:hover, .fx-build.is-live) .bricks i:nth-child(5) { animation-delay: 0.3s; }
:is(.fx-build:hover, .fx-build.is-live) .bricks i:nth-child(6) { animation-delay: 0.5s; }
:is(.fx-build:hover, .fx-build.is-live) .bricks i:nth-child(1) { animation-delay: 0.7s; }
:is(.fx-build:hover, .fx-build.is-live) .bricks i:nth-child(2) { animation-delay: 0.9s; }
:is(.fx-build:hover, .fx-build.is-live) .bricks i:nth-child(3) { animation-delay: 1.1s; }

@keyframes fill {
  to { width: 100%; }
}

@keyframes count {
  to { --p: 100; color: var(--slime); }
}

@keyframes brick {
  from { transform: translateY(-50px); opacity: 0; }
  to { border: 0; background: #8f6bff; }
}

/* Launch: the rocket shakes, blasts off, then lands again. */
.fx-launch .fx-art {
  background:
    radial-gradient(circle at 20% 30%, #fff 0 1px, transparent 1.5px),
    radial-gradient(circle at 75% 20%, #fff 0 1px, transparent 1.5px),
    radial-gradient(circle at 60% 60%, rgb(255 255 255 / 0.7) 0 1px, transparent 1.5px),
    radial-gradient(circle at 35% 75%, rgb(255 255 255 / 0.6) 0 1px, transparent 1.5px),
    radial-gradient(circle at 88% 70%, #fff 0 1px, transparent 1.5px),
    var(--bg);
  background-size: 100% 88px;
}

.fx-launch .rocket {
  position: absolute;
  left: 50%;
  bottom: 10px;
  width: 22px;
  margin-left: -11px;
}

.fx-launch .rocket svg {
  display: block;
}

.fx-launch .flame {
  position: absolute;
  top: 88%;
  left: 50%;
  width: 10px;
  height: 22px;
  margin-left: -5px;
  border-radius: 50% 50% 50% 50% / 30% 30% 70% 70%;
  background: linear-gradient(#fff6b0, #ffb02e 40%, #ff4f2e);
  transform: scaleY(0);
  transform-origin: top;
}

.fx-launch .pad {
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 44px;
  height: 4px;
  margin-left: -22px;
  border-radius: 2px;
  background: var(--border);
}

:is(.fx-launch:hover, .fx-launch.is-live) .rocket {
  animation: launch 2.6s ease-in-out infinite;
}

:is(.fx-launch:hover, .fx-launch.is-live) .flame {
  animation: flame 2.6s ease-in-out infinite;
}

:is(.fx-launch:hover, .fx-launch.is-live) .fx-art {
  animation: stars 2.6s linear infinite;
}

@keyframes launch {
  0% { transform: none; }
  4%, 12%, 20% { transform: translateX(-1.5px); }
  8%, 16%, 24% { transform: translateX(1.5px); }
  55% { transform: translateY(-140px); animation-timing-function: steps(1); }
  56% { transform: translateY(80px); animation-timing-function: cubic-bezier(0.2, 0.8, 0.3, 1); }
  85%, 100% { transform: none; }
}

@keyframes flame {
  0%, 85%, 100% { transform: scaleY(0); }
  10% { transform: scaleY(0.6); }
  25%, 75% { transform: scaleY(1.2); }
}

@keyframes stars {
  from { background-position: 0 0; }
  to { background-position: 0 176px; }
}

@media (prefers-reduced-motion: reduce) {
  .fx,
  .fx * {
    animation: none !important;
  }

  :is(.fx:hover, .fx.is-live) {
    transform: none;
  }
}

/* ---------------------------------------------------------------- forms and callouts */
.page {
  padding: 3rem 1rem 4rem;
}

.page h2 {
  margin-top: 3rem;
  font-size: 1.5rem;
}

.form,
.support-form {
  display: grid;
  gap: 1.1rem;
  max-width: 36rem;
  margin: 2rem 0;
}

.form label,
.support-form label {
  display: grid;
  gap: 0.375rem;
  font-weight: 700;
}

.form input,
.form select,
.form textarea,
.support-form input,
.support-form select,
.support-form textarea {
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 400;
}

.form input:focus,
.form select:focus,
.form textarea:focus,
.support-form input:focus,
.support-form textarea:focus {
  border-color: var(--slime);
}

.form .btn,
.support-form button {
  justify-self: start;
}

.support-form button {
  padding: 0.8rem 1.5rem;
  border: 0;
  border-radius: 999px;
  background: var(--slime);
  color: var(--on-slime);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 0 var(--slime-dark);
}

.callout,
.contact-box,
.note {
  padding: 0.875rem 1.1rem;
  border-left: 4px solid var(--slime);
  border-radius: 0 10px 10px 0;
  background: var(--surface);
}

/* ---------------------------------------------------------------- docs */
.docs {
  max-width: 60rem;
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.docs h1 {
  font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem);
}

.docs h2 {
  margin-top: 2.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 1.6rem;
}

.docs h3 {
  margin-top: 1.75rem;
}

[id] {
  scroll-margin-top: 8rem;
}

code,
pre {
  background: var(--code-bg);
  border-radius: 6px;
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
  font-size: 0.9em;
}

code {
  padding: 0.1em 0.35em;
}

pre {
  padding: 0.875rem 1rem;
  overflow-x: auto;
}

.toc {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-radius: 14px;
  background: var(--surface);
}

.toc ul {
  margin: 0;
  padding-left: 1.1rem;
}

.toc > ul {
  columns: 2 16rem;
  column-gap: 2rem;
}

.toc > ul > li {
  break-inside: avoid;
  margin-bottom: 0.5rem;
}

.steps li,
.tips li {
  margin-bottom: 0.5rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.875rem;
  padding: 0;
  list-style: none;
}

.cards a {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  height: 100%;
  padding: 1rem 1.125rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg);
  color: var(--text);
  text-decoration: none;
}

.docs .cards a {
  background: var(--surface);
}

.cards a:hover {
  border-color: var(--slime);
}

.cards strong {
  color: var(--slime);
}

.cards span {
  color: var(--muted);
  font-size: 0.95rem;
}

.defs dt {
  margin-top: 1rem;
  font-weight: 700;
}

.defs dd {
  margin: 0.25rem 0 0;
}

table.settings {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0;
  font-size: 0.95rem;
}

.settings th,
.settings td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.settings td:first-child {
  width: 30%;
  font-weight: 600;
}

.settings tr.group th {
  padding-top: 1rem;
  color: var(--slime);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.options {
  display: block;
  color: var(--muted);
  font-size: 0.875rem;
}

.ref {
  margin: 1.5rem 0 2rem;
}

details {
  margin: 0.5rem 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

details > summary {
  padding: 0.625rem 0.875rem;
  cursor: pointer;
  font-weight: 700;
}

details > table,
details > p {
  margin: 0 0.875rem 0.75rem;
  width: calc(100% - 1.75rem);
}

.faq {
  margin: 0.625rem 0;
}

.block-note {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------------------------------------------------------------- footer */
.site-footer {
  padding: 2.5rem 0 2rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-grid p {
  margin: 0;
}

.footer-brand {
  display: inline-block;
  margin-bottom: 0.5rem;
  line-height: 0;
}

.footer-brand img {
  width: auto;
  height: 72px;
  transition: filter 0.3s ease;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.site-footer nav a {
  color: var(--text);
  text-decoration: none;
}

.site-footer nav a:hover {
  color: var(--slime);
}

.legal {
  margin-top: 2rem;
  font-size: 0.85rem;
}

/* ---------------------------------------------------------------- small screens */
@media (max-width: 860px) {
  .hero-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2rem;
  }

  .hero-art {
    order: -1;
    max-width: 360px;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: static;
  }

  .bar {
    justify-content: center;
  }

  .site-nav {
    justify-content: center;
    gap: 0.25rem 1.1rem;
  }

  .section {
    padding: 3rem 0;
  }

  .settings td:first-child {
    width: 40%;
  }

  table.settings {
    font-size: 0.875rem;
  }
}

/* Honeypot field for Netlify Forms spam filtering: hidden from people, filled by bots. */
.hp {
  position: absolute;
  left: -9999px;
}
