@font-face {
  font-family: "Pixelify Sans";
  src: url("/fonts/pixelify-sans.woff2") format("woff2"),
       url("/fonts/pixelify-sans.ttf") format("truetype");
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/fonts/plus-jakarta-sans.woff2") format("woff2"),
       url("/fonts/plus-jakarta-sans.ttf") format("truetype");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --font-pixel: "Pixelify Sans", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  color-scheme: light;
}

html[data-mode="dark"] {
  color-scheme: dark;
}

html[data-cat="ember"][data-mode="light"] {
  --bg: #fff6ec; --bg-2: #fff0e1; --surface: #fffcf8; --ink: #2b1a10; --muted: #6b5040;
  --primary: #e8630a; --on-primary: #ffffff; --primary-soft: #ffddbf; --edge: #3a2416; --on-primary-soft: #3a1600; --line: #ebd3bd;
  --nav: #fffcf8; --radius: 4px; --border-w: 2px;
  --frame-shadow: 3px 3px 0 #3a2416; --press-shadow: 1px 1px 0 #3a2416;
}
html[data-cat="ember"][data-mode="dark"] {
  --bg: #1c130d; --bg-2: #2e2117; --surface: #271b13; --ink: #fbeadb; --muted: #d5b9a3;
  --primary: #ff9a4d; --on-primary: #3a1600; --primary-soft: #6b2e08; --edge: #0e0906; --on-primary-soft: #ffddbf; --line: #4a3628;
  --nav: #231810; --radius: 4px; --border-w: 2px;
  --frame-shadow: 3px 3px 0 #0b0704; --press-shadow: 1px 1px 0 #0b0704;
}
html[data-cat="silk"][data-mode="light"] {
  --bg: #faf7f5; --bg-2: #f6f1ef; --surface: #ffffff; --ink: #2a2226; --muted: #6e6166;
  --primary: #b5677a; --on-primary: #ffffff; --primary-soft: #f8dde3; --edge: #d8c8cc; --on-primary-soft: #45202b; --line: #e8dddf;
  --nav: #ffffff; --radius: 20px; --border-w: 1px;
  --frame-shadow: 0 14px 36px #6e4a551f; --press-shadow: 0 6px 16px #6e4a551f;
}
html[data-cat="silk"][data-mode="dark"] {
  --bg: #17141a; --bg-2: #28232a; --surface: #211d23; --ink: #f4eef0; --muted: #cdbfc4;
  --primary: #f0aebd; --on-primary: #4a1e2a; --primary-soft: #6e3747; --edge: #4a4148; --on-primary-soft: #ffd9e1; --line: #3e363d;
  --nav: #1c191e; --radius: 20px; --border-w: 1px;
  --frame-shadow: 0 16px 40px #00000066; --press-shadow: 0 6px 16px #00000066;
}
html[data-cat="shadow"][data-mode="light"] {
  --bg: #f1f1f6; --bg-2: #eae9f2; --surface: #ffffff; --ink: #16151d; --muted: #4a4860;
  --primary: #5b45c9; --on-primary: #ffffff; --primary-soft: #e3deff; --edge: #2a2936; --on-primary-soft: #1c0f5c; --line: #cfcde0;
  --nav: #ffffff; --radius: 10px; --border-w: 1px;
  --frame-shadow: 0 10px 28px #2a293633; --press-shadow: 0 4px 12px #2a293633;
}
html[data-cat="shadow"][data-mode="dark"] {
  --bg: #0f0f14; --bg-2: #1d1c26; --surface: #18171f; --ink: #eceaf4; --muted: #b6b2c8;
  --primary: #a99bff; --on-primary: #1e1066; --primary-soft: #3a2d8f; --edge: #3a3750; --on-primary-soft: #e3deff; --line: #34313f;
  --nav: #14131a; --radius: 10px; --border-w: 1px;
  --frame-shadow: 0 12px 32px #00000099; --press-shadow: 0 4px 12px #00000099;
}
html[data-cat="volt"][data-mode="light"] {
  --bg: #f2f6fa; --bg-2: #eaf0f6; --surface: #ffffff; --ink: #0e1520; --muted: #435266;
  --primary: #00818a; --on-primary: #ffffff; --primary-soft: #c6f6f8; --edge: #9fb3c8; --on-primary-soft: #00373b; --line: #cbd6e2;
  --nav: #ffffff; --radius: 8px; --border-w: 1.5px;
  --frame-shadow: 0 10px 28px #00818a33; --press-shadow: 0 4px 12px #00818a33;
}
html[data-cat="volt"][data-mode="dark"] {
  --bg: #0b0c12; --bg-2: #181a26; --surface: #14151f; --ink: #eaf6ff; --muted: #9fb0c6;
  --primary: #4be8ee; --on-primary: #00363a; --primary-soft: #0a4a52; --edge: #2b6f86; --on-primary-soft: #b9fbfd; --line: #262b3d;
  --nav: #10111a; --radius: 8px; --border-w: 1.5px;
  --frame-shadow: 0 0 28px #4be8ee66; --press-shadow: 0 0 12px #4be8ee44;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  transition: background-color 280ms cubic-bezier(0.16, 1, 0.3, 1), color 280ms cubic-bezier(0.16, 1, 0.3, 1);
}
img { max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:where(a, button, [tabindex]):focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.wrap { width: min(1400px, calc(100% - 2rem)); margin-inline: auto; }
@media (min-width: 768px) { .wrap { width: min(1400px, calc(100% - 4rem)); } }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 80;
  padding: 0.6rem 0.9rem; background: var(--primary); color: var(--on-primary);
}
.skip:focus { top: 1rem; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--nav); border-bottom: 1px solid var(--line);
}
.site-header .bar {
  height: 72px; display: flex; align-items: center; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.brand img { width: 36px; height: 36px; }
.brand span { font-family: var(--font-pixel); font-size: 1.25rem; }
.nav-desk { margin-left: auto; display: none; align-items: center; gap: 1.5rem; }
.nav-desk a:not(.purr-btn) { text-decoration: none; font-size: 0.9rem; font-weight: 700; color: var(--muted); }
.nav-desk a:not(.purr-btn):hover { color: var(--ink); }
.nav-tools { margin-left: auto; display: flex; align-items: center; gap: 0.35rem; }
.icon-btn {
  min-width: 48px; height: 48px; padding: 0 0.5rem;
  display: grid; place-items: center;
  font-size: 0.9rem; font-weight: 700; color: var(--muted);
  border-radius: var(--radius);
}
.icon-btn:hover { color: var(--ink); background: var(--bg-2); }
.nav-mob { display: none; padding: 1rem; border-top: 1px solid var(--line); background: var(--nav); }
.nav-mob.open { display: grid; gap: 0.75rem; }
.nav-mob a:not(.purr-btn) { text-decoration: none; font-weight: 700; padding: 0.25rem 0; }
.nav-mob .purr-btn { margin-top: 0.25rem; }
@media (min-width: 1024px) {
  .nav-desk { display: flex; }
  .nav-tools { display: none; }
  .nav-mob { display: none !important; }
}

html[data-cat="volt"] .purr-frame,
html[data-cat="volt"] .purr-btn {
  clip-path: polygon(
    8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px),
    calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px
  );
}
.purr-frame {
  background: var(--surface);
  border: var(--border-w) solid var(--edge);
  border-radius: var(--radius);
  box-shadow: var(--frame-shadow);
}
.purr-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 1.25rem; white-space: nowrap; text-decoration: none;
  border: var(--border-w) solid var(--edge); border-radius: var(--radius);
  box-shadow: var(--frame-shadow); font-family: var(--font-pixel); font-weight: 700; font-size: 1.2rem;
  transition: transform 120ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 120ms cubic-bezier(0.16, 1, 0.3, 1);
}
.purr-btn:hover { transform: translate(-1px, -1px); }
.purr-btn:active { transform: translate(2px, 2px); box-shadow: var(--press-shadow); }
.purr-btn-primary { background: var(--primary); color: var(--on-primary); }
.purr-btn-ghost { background: var(--surface); color: var(--ink); }

.purr-btn[aria-disabled="true"] {
  background: var(--primary-soft);
  color: var(--on-primary-soft);
  cursor: default;
}
.purr-btn[aria-disabled="true"]:hover,
.purr-btn[aria-disabled="true"]:active {
  transform: none;
  box-shadow: var(--frame-shadow);
}
.purr-btn[aria-disabled="true"]::after {
  content: "";
  width: 7px; height: 7px; margin-left: 0.6rem;
  background: var(--primary);
  border-radius: 50%;
}

.hero {
  display: grid; gap: 2.5rem; align-items: center;
  min-height: calc(100dvh - 72px); padding: 2.5rem 0 4rem;
}
.hero h1 {
  font-family: var(--font-pixel); font-size: clamp(2.2rem, 5vw, 3.75rem);
  line-height: 1.1; letter-spacing: -0.02em; margin: 0; padding-bottom: 0.25rem;
}
.hero .lede { margin: 1.25rem 0 0; max-width: 36ch; font-size: 1.125rem; line-height: 1.7; color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero-card .sprite-stage { min-height: 240px; }
.hero-card .name { font-family: var(--font-pixel); font-size: 1.15rem; margin: 0; }
.hero-card .tag { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.9rem; }
.sprite-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  overflow: hidden;
  min-height: 180px;
  margin-top: 2rem;
  width: 100%;
}
.sprite-stage .cat-sprite[data-patrol="true"] {
  position: absolute;
  bottom: 0;
  left: 0;
  transform-origin: center bottom;
  will-change: transform;
}
.floor { height: 3px; width: 100%; background: var(--edge); margin-top: 0; }
@media (min-width: 768px) {
  .hero { grid-template-columns: 1fr 1fr; padding-top: 3rem; }
  .hero-card { padding: 2.5rem; }
}

.section { padding: 6rem 0; }
.section h2 {
  font-family: var(--font-pixel); font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  line-height: 1.15; margin: 0; max-width: 18ch;
}
.muted { color: var(--muted); }
#how, #plans, #cats, #faq { scroll-margin-top: 88px; }

.how-grid { display: grid; gap: 1rem; margin-top: 2.5rem; }
.how-grid .purr-frame { padding: 1.5rem; }
.how-grid h3 { font-family: var(--font-pixel); margin: 1rem 0 0.5rem; font-size: 1.35rem; }
.how-grid p { margin: 0; color: var(--muted); }
.how-main .sprite-stage { justify-content: flex-end; margin-top: 2.5rem; min-height: 120px; }
@media (min-width: 768px) {
  .how-grid { grid-template-columns: 2fr 1fr; grid-template-rows: auto auto; }
  .how-main { grid-row: span 2; padding: 2.5rem; }
  .how-tint { background: var(--bg-2); }
}

.band { background: var(--bg-2); border-block: 1px solid var(--line); }
.band .lede { margin: 1rem 0 0; max-width: 52ch; }
.cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-top: 2.5rem; }
.cat-pick {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 1.25rem 0.75rem; cursor: pointer;
}
.cat-pick[aria-pressed="true"] { background: var(--primary-soft); }
.cat-pick[aria-pressed="true"] strong,
.cat-pick[aria-pressed="true"] span { color: var(--on-primary-soft); }
.cat-pick img { width: 80px; height: 80px; object-fit: contain; image-rendering: pixelated; }
.cat-pick strong { font-family: var(--font-pixel); font-size: 1.1rem; margin-top: 0.75rem; font-weight: 600; }
.cat-pick span { font-size: 0.75rem; color: var(--muted); }
@media (min-width: 768px) {
  .cat-grid { grid-template-columns: repeat(4, 1fr); gap: 1rem; }
  .cat-pick img { width: 96px; height: 96px; }
}

.starter {
  display: grid; gap: 1.5rem; padding: 1.5rem; margin-top: 2.5rem;
  background: var(--primary-soft); color: var(--on-primary-soft);
}
.starter .muted { color: var(--on-primary-soft); opacity: 0.8; }
.starter h3, .plan-card h3 { font-family: var(--font-pixel); font-size: 1.85rem; margin: 0.35rem 0 0; }
.price { font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; margin: 0.5rem 0 0; }
.plan-grid { display: grid; gap: 1rem; margin-top: 1rem; }
.plan-card { padding: 1.5rem; }
.plan-card ul, .starter ul { margin: 1rem 0 0; padding-left: 1.1rem; display: grid; gap: 0.4rem; }
.note { font-size: 0.9rem; color: var(--muted); margin-top: 1rem; }
@media (min-width: 768px) {
  .starter { grid-template-columns: 1.2fr 1fr; padding: 2.5rem; }
  .plan-grid { grid-template-columns: 1fr 1fr; }
  .plan-card { padding: 2rem; }
}

/* Roadmap: a vertical spine of phases. Quarters, never hard dates. */
.phase-list { display: grid; gap: 1rem; margin-top: 2.5rem; }
.phase { padding: 1.5rem; display: grid; gap: 0.75rem; }
.phase-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.phase h3 { font-family: var(--font-pixel); font-size: 1.35rem; margin: 0; }
.phase p { margin: 0; color: var(--muted); line-height: 1.7; }
.phase ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.4rem; color: var(--muted); }
.phase ul li::marker { color: var(--primary); }
.chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.3rem 0.7rem; font-size: 0.75rem; font-weight: 700;
  border-radius: 999px; white-space: nowrap;
  background: var(--bg-2); color: var(--muted); border: 1px solid var(--line);
}
.chip-now { background: var(--primary); color: var(--on-primary); border-color: transparent; }
/* Inside the highlighted phase the chip would vanish into the card, so it flips to the surface. */
.phase-now .chip-now { background: var(--surface); color: var(--ink); }
.chip-next { background: var(--surface); color: var(--ink); }
.phase-now { background: var(--primary-soft); }
.phase-now p, .phase-now ul { color: var(--on-primary-soft); opacity: 0.85; }
@media (min-width: 768px) { .phase { padding: 2rem 2.5rem; } }

/* Supported apps grid */
.app-grid { display: grid; gap: 0.75rem; margin-top: 2rem; }
.app-col { padding: 1.5rem; }
.app-col h3 { font-family: var(--font-pixel); font-size: 1.2rem; margin: 0 0 1rem; }
.app-col ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.45rem; color: var(--muted); }
@media (min-width: 768px) { .app-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }

/* FAQ */
.faq { display: grid; gap: 0.75rem; margin-top: 2.5rem; }
.faq details { padding: 1.25rem 1.5rem; }
.faq summary {
  cursor: pointer; font-weight: 700; font-size: 1.05rem;
  list-style: none; display: flex; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-pixel); color: var(--primary); }
.faq details[open] summary::after { content: "2"; }
.faq details[open] summary { margin-bottom: 0.75rem; }
.faq p { margin: 0; color: var(--muted); line-height: 1.7; }

.trust { max-width: 48rem; }
.trust h2 { max-width: none; margin-top: 1.25rem; }
.trust p { font-size: 1.125rem; line-height: 1.7; }

.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); }
.foot-grid { display: grid; gap: 2.5rem; padding: 3.5rem 0; }
.foot-grid p { max-width: 42ch; color: var(--muted); }
.foot-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; font-size: 0.9rem; }
.foot-cols p { color: var(--ink); font-weight: 700; margin: 0 0 0.5rem; }
.foot-cols a { display: block; color: var(--muted); text-decoration: none; margin-top: 0.4rem; }
.foot-cols a:hover { color: var(--ink); }
.copy { border-top: 1px solid var(--line); padding: 1.25rem 0; text-align: center; font-size: 0.75rem; color: var(--muted); }
@media (min-width: 768px) { .foot-grid { grid-template-columns: 1.4fr 1fr; } }

.legal { width: min(48rem, calc(100% - 2rem)); margin: 0 auto; padding: 4rem 0; }
.legal h1 { font-family: var(--font-pixel); font-size: 2.4rem; line-height: 1.15; margin: 0.75rem 0 0; }
.legal .crumb { font-size: 0.9rem; color: var(--muted); }
.legal .crumb a { color: var(--primary); text-decoration: none; }
.legal-body h2 { font-family: var(--font-pixel); font-size: 1.5rem; line-height: 1.25; margin: 2.25rem 0 0.75rem; }
.legal-body h3 { font-size: 1.05rem; margin: 1.5rem 0 0.5rem; }
.legal-body p, .legal-body li { color: var(--muted); line-height: 1.7; }
.legal-body p { margin: 0 0 0.9rem; }
.legal-body ul, .legal-body ol { margin: 0 0 1rem; padding-left: 1.2rem; }
.legal-body a { color: var(--primary); text-underline-offset: 3px; }

.cat-sprite {
  image-rendering: pixelated;
  background-repeat: no-repeat;
  background-position: 0 0;
  flex-shrink: 0;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
