/* ============================================================
   Hosty API — Global design system
   Dark navy Hosty blue · Space Grotesk · IBM Plex Mono
   Flat buttons, no gradients, no glow. Rich and full.
   ============================================================ */

/* ---------- Self-hosted fonts (latin subsets, local) ---------- */
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/space-grotesk-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  /* Surfaces */
  --bg: #070B14;
  --bg-soft: #0A0F1E;
  --bg-card: #0D1324;
  --bg-card-2: #101930;
  --bg-elev: #131C33;
  --bg-terminal: #05080F;
  --bg-footer: #04060C;

  /* Lines / edges */
  --line: #1A2440;
  --line-strong: #243254;
  --line-soft: #131B30;

  /* Ink */
  --ink: #E8EEF9;
  --ink-2: #B9C4DC;
  --ink-3: #8A96B5;
  --ink-4: #5C6884;

  /* Brand — sky blue (accents only, never on buttons) */
  --accent: #7DD3FC;
  --accent-strong: #3B82F6;
  --accent-soft: rgba(125, 211, 252, 0.12);
  --accent-soft-strong: rgba(125, 211, 252, 0.22);

  /* Status */
  --ok: #34D399;
  --warn: #FBBF24;
  --danger: #F87171;
  --violet: #A78BFA;

  /* Type */
  --font-head: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", Menlo, Consolas, monospace;

  /* Scale */
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.5rem;
  --fs-xl: 2rem;
  --fs-2xl: 3.25rem;
  --fs-hero: clamp(2.5rem, 8vw, 5.5rem);

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;
  --space-section: clamp(4rem, 9vw, 7rem);

  /* Shape */
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  /* Borders / shadows (flat, no glow) */
  --edge: 1px solid var(--line);
  --edge-strong: 1px solid var(--line-strong);
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 12px 32px rgba(0, 0, 0, 0.45);
  --shadow-pop: 0 2px 0 var(--line-strong), 0 16px 40px rgba(0, 0, 0, 0.55);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --max: 1200px;
  --max-narrow: 760px;
  --nav-h: 64px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
a:hover { color: #BAE6FD; }

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
}

button {
  cursor: pointer;
}

ul,
ol { list-style: none; }

::selection {
  background: var(--accent-strong);
  color: #fff;
}

/* Subtle backdrop texture: dot grid + a calm radial wash (body only, never buttons) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 900px 480px at 50% -80px, rgba(59, 130, 246, 0.13), transparent 65%),
    radial-gradient(ellipse 700px 400px at 85% 30%, rgba(125, 211, 252, 0.05), transparent 60%),
    radial-gradient(ellipse 600px 500px at 10% 70%, rgba(59, 130, 246, 0.06), transparent 60%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(125, 211, 252, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 55%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 55%);
}

/* ---------- Layout utilities ---------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}

.container--narrow { max-width: var(--max-narrow); }

.section { padding: var(--space-section) 0; position: relative; }

.section--alt {
  background: var(--bg-soft);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.section--deep {
  background: var(--bg-soft);
}

.stack > * + * { margin-top: var(--space-md); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--space-sm); align-items: center; }

/* Section headers */
.section-head {
  max-width: 720px;
  margin: 0 auto var(--space-2xl);
  text-align: center;
}
.section-head--left {
  margin-left: 0;
  text-align: left;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-soft-strong);
  background: var(--accent-soft);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  margin-bottom: var(--space-lg);
}
.kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: var(--space-md);
}
.section-lead {
  font-size: var(--fs-md);
  line-height: 1.7;
  color: var(--ink-3);
}
.section-lead strong { color: var(--ink); font-weight: 600; }

/* ---------- Type ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
h1 { font-size: var(--fs-hero); font-weight: 700; }
h2 { font-size: clamp(1.75rem, 4.5vw, 2.75rem); font-weight: 700; }
h3 { font-size: var(--fs-lg); font-weight: 600; }
h4 { font-size: var(--fs-md); font-weight: 600; }

p { line-height: 1.7; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.92em;
  letter-spacing: -0.01em;
}

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 11, 20, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
  min-height: var(--nav-h);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.nav-logo:hover { color: var(--ink); }
.nav-logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--accent-strong);
  border: 1px solid #60A5FA;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.nav-logo-img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}
.nav-logo span em {
  font-style: normal;
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2.5vw, 2rem);
  list-style: none;
}
.nav-link {
  color: var(--ink-3);
  font-size: var(--fs-sm);
  font-weight: 500;
  padding: 0.5rem 0.25rem;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.nav-link:hover { color: var(--ink); }
.nav-link--active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

/* Mobile nav (JS toggles .nav--open on the header/nav element) */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  place-items: center;
  color: var(--ink);
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle span { position: relative; }
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.nav--open .nav-toggle span { background: transparent; }
.nav--open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav--open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Buttons ----------
   Flat "dark edge": solid fills, no gradients, no glow.
   Primary: flat dark edge, same as api.hosty.my — #16233F fill, #2E4A7A border. Secondary: dark outline. Ghost: text only.
   JS + HTML must use these exact class names. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn--primary {
  background: #16233F;
  border-color: #2E4A7A;
  color: var(--ink);
}
.btn--primary:hover { background: #1B2947; border-color: var(--accent-strong); color: var(--ink); }

.btn--secondary {
  background: var(--bg-elev);
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn--secondary:hover {
  background: var(--bg-card-2);
  border-color: var(--accent-strong);
  color: var(--ink);
}

.btn--ghost {
  background: transparent;
  border-color: transparent;
  color: var(--ink-2);
}
.btn--ghost:hover { color: var(--ink); background: var(--bg-card); }

.btn--accent {
  background: var(--accent);
  border-color: #A5DEF9;
  color: #06101F;
}
.btn--accent:hover { background: #9ADEFC; color: #06101F; }

.btn--sm { padding: 0.55rem 1rem; font-size: 0.85rem; border-radius: var(--radius-sm); }
.btn--lg { padding: 1rem 2rem; font-size: 1rem; }
.btn--block { width: 100%; }

.btn[disabled],
.btn--disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* Toggle switch — Monthly / Yearly (HTML: button.toggle-btn + [data-billing] or .toggle--monthly/.toggle--yearly) */
.toggle {
  display: inline-flex;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
}
.toggle-btn {
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-3);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.toggle-btn:hover { color: var(--ink); }
.toggle-btn.is-active,
.toggle-btn[aria-pressed="true"] {
  background: var(--accent-strong);
  color: #fff;
}
.toggle-btn .toggle-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  background: var(--accent-soft-strong);
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 999px;
  padding: 0.05rem 0.4rem;
  margin-left: 0.4rem;
  white-space: nowrap;
}
.toggle-btn.is-active .toggle-badge {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

/* ---------- Badges & chips ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg-card);
  color: var(--ink-2);
  white-space: nowrap;
}
.badge--accent {
  background: var(--accent-soft);
  border-color: var(--accent-soft-strong);
  color: var(--accent);
}
.badge--ok {
  background: rgba(52, 211, 153, 0.12);
  border-color: rgba(52, 211, 153, 0.4);
  color: var(--ok);
}
.badge--warn {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.4);
  color: var(--warn);
}
.badge--danger {
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.4);
  color: var(--danger);
}
.badge--hot {
  background: var(--accent-strong);
  border-color: #60A5FA;
  color: #fff;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-sm);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--ink-3);
}

.tag {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-soft-strong);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(4rem, 10vw, 7.5rem) 0 var(--space-2xl);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero-copy { min-width: 0; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-soft-strong);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  margin-bottom: var(--space-lg);
}
.hero-eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.hero-title {
  font-size: var(--fs-hero);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: var(--space-lg);
}
.hero-title .hl {
  color: var(--accent);
}
.hero-title .hl-line {
  display: block;
}

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.7;
  color: var(--ink-3);
  max-width: 56ch;
  margin-bottom: var(--space-xl);
}
.hero-sub strong { color: var(--ink); font-weight: 600; }
.hero-sub code,
.hero-sub .mono {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--accent-soft);
  border: 1px solid var(--accent-soft-strong);
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-sm);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: var(--space-xl);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--line-soft);
}
.hero-proof-item { min-width: 0; }
.hero-proof-num {
  font-family: var(--font-mono);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.hero-proof-num em { font-style: normal; color: var(--accent); }
.hero-proof-label {
  font-size: var(--fs-sm);
  color: var(--ink-4);
  margin-top: 0.15rem;
}

/* Hero visual column */
.hero-visual { min-width: 0; }

/* ---------- Terminal ---------- */
.terminal {
  background: var(--bg-terminal);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-pop);
  min-width: 0;
}
.terminal--hero { transform: none; }

.terminal-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--line);
}
.terminal-dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.terminal-dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: block;
}
.terminal-dots i:nth-child(1) { background: #F87171; }
.terminal-dots i:nth-child(2) { background: #FBBF24; }
.terminal-dots i:nth-child(3) { background: #34D399; }
.terminal-title {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--ink-4);
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.terminal-live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ok);
  flex-shrink: 0;
}
.terminal-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
}

.terminal-body {
  padding: 1.1rem 1.25rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.75;
  min-height: 300px;
  overflow-x: auto;
  overflow-y: hidden;
  tab-size: 2;
}
.terminal-body pre {
  font: inherit;
  white-space: pre;
  word-wrap: normal;
}

.t-line { display: block; white-space: pre-wrap; word-break: break-word; }
.t-prompt { color: var(--accent-strong); font-weight: 700; }
.t-path { color: var(--violet); }
.t-cmd { color: var(--ink); }
.t-out { color: var(--ink-3); }
.t-ok { color: var(--ok); }
.t-warn { color: var(--warn); }
.t-err { color: var(--danger); }
.t-dim { color: var(--ink-4); }
.t-key { color: var(--accent); }
.t-str { color: #7EE0A8; }
.t-num { color: #F9C784; }
.t-cursor {
  display: inline-block;
  width: 8px;
  height: 1.05em;
  background: var(--accent);
  vertical-align: text-bottom;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.terminal-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding: 0.65rem 1rem;
  border-top: 1px solid var(--line);
  background: var(--bg-card);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--ink-4);
}
.terminal-foot .num { color: var(--ink-3); }
.terminal-foot b { color: var(--ok); font-weight: 700; }

/* ---------- Stats strip ---------- */
.stats-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: clamp(1.25rem, 3vw, 2rem);
  text-align: center;
  border-right: 1px solid var(--line-soft);
  min-width: 0;
}
.stat:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.stat-num em { font-style: normal; color: var(--accent); }
.stat-label {
  font-size: var(--fs-sm);
  color: var(--ink-4);
  margin-top: 0.35rem;
  line-height: 1.45;
}

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
  min-width: 0;
}
.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-strong);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}
.feature-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.feature-icon svg { width: 22px; height: 22px; }

.feature-card h3 { font-size: 1.1rem; margin-bottom: 0.55rem; }
.feature-card p { font-size: var(--fs-sm); color: var(--ink-3); line-height: 1.65; }
.feature-card .mono-accent {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--accent);
}

/* Steps (how it works) */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  counter-reset: step;
}
.step {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  position: relative;
  min-width: 0;
}
.step-num {
  font-family: var(--font-mono);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent-strong);
  margin-bottom: 1rem;
}
.step h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.step p { font-size: var(--fs-sm); color: var(--ink-3); }
.step code,
.step .mono {
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.1rem 0.35rem;
  border-radius: var(--radius-sm);
  word-break: break-all;
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: stretch;
  margin-top: var(--space-xl);
}
.price-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 0;
  transition: border-color 0.25s var(--ease);
}
.price-card:hover { border-color: var(--line-strong); }

.price-card--featured {
  background: var(--bg-card-2);
  border-color: var(--accent-strong);
  border-width: 1px;
  box-shadow: var(--shadow-card);
}
.price-ribbon {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--accent-strong);
  color: #fff;
  border: 1px solid #60A5FA;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  white-space: nowrap;
}

.price-name {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.price-tokens {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.price-tokens small {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--ink-4);
  display: block;
  margin-top: 0.25rem;
  letter-spacing: 0;
}
.price-amount {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin: 1.5rem 0 0.25rem;
}
.price-amount .num {
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}
.price-amount .cur { font-family: var(--font-mono); font-size: var(--fs-md); color: var(--ink-3); }
.price-per {
  font-size: var(--fs-sm);
  color: var(--ink-4);
  margin-bottom: 1.5rem;
  min-height: 1.5em;
}
.price-per .save { color: var(--ok); font-weight: 600; }

.price-feats {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 1.5rem;
  flex: 1;
}
.price-feats li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: var(--fs-sm);
  color: var(--ink-2);
  line-height: 1.5;
}
.price-feats li::before {
  content: "✓";
  color: var(--ok);
  font-weight: 700;
  flex-shrink: 0;
  font-size: 0.85rem;
  margin-top: 0.05rem;
}
.price-feats li.is-off { color: var(--ink-4); }
.price-feats li.is-off::before { content: "—"; color: var(--ink-4); }

.pricing-note {
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--ink-4);
  margin-top: var(--space-lg);
  line-height: 1.7;
}
.pricing-note .mono { color: var(--accent); }

/* Toggle wrapper */
.billing-toggle-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.billing-toggle-note {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--ok);
}

/* ---------- Reset packs ---------- */
.reset-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: var(--space-xl);
}
.reset-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: border-color 0.25s var(--ease);
}
.reset-card:hover { border-color: var(--line-strong); }

.reset-count {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.reset-count .num {
  font-size: 3rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}
.reset-count .unit {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.reset-desc { font-size: var(--fs-sm); color: var(--ink-3); line-height: 1.65; margin-bottom: 1.25rem; flex: 1; }
.reset-price {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}
.reset-price .num { font-size: 1.75rem; font-weight: 700; color: var(--ink); }
.reset-price .cur { font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--ink-3); }
.reset-per { font-size: var(--fs-xs); color: var(--ink-4); font-family: var(--font-mono); }

.reset-note {
  margin-top: var(--space-lg);
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: var(--fs-sm);
  color: var(--ink-3);
  line-height: 1.65;
}
.reset-note-icon {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.reset-note strong { color: var(--ink); }

/* ---------- Usage bars ---------- */
.usage-demo {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
  margin-top: var(--space-xl);
  min-width: 0;
}
.usage-demo-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.usage-demo-head h3 { font-size: 1.05rem; }
.usage-demo-head .mono { color: var(--ink-4); font-size: var(--fs-xs); }

.usage-row {
  display: grid;
  grid-template-columns: 110px 1fr 64px;
  gap: 0.75rem;
  align-items: center;
  padding: 0.7rem 0;
}
.usage-row + .usage-row { border-top: 1px solid var(--line-soft); }
.usage-label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.usage-track {
  height: 12px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  min-width: 0;
}
.usage-fill {
  height: 100%;
  width: var(--fill, 0%);
  background: var(--accent-strong);
  border-radius: 999px;
  transition: width 0.8s var(--ease);
}
.usage-fill--ok { background: var(--ok); }
.usage-fill--warn { background: var(--warn); }
.usage-fill--crit { background: var(--danger); }
.usage-fill--flat { transition: none; }
.usage-pct {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--ink);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.usage-pct--ok { color: var(--ok); }
.usage-pct--warn { color: var(--warn); }
.usage-pct--crit { color: var(--danger); }

.usage-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: 1rem;
  font-size: var(--fs-xs);
  color: var(--ink-4);
  font-family: var(--font-mono);
}
.usage-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-right: 0.4rem;
  vertical-align: baseline;
}

/* Generic progress bar (same contract as usage) */
.progress {
  height: 12px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: var(--accent-strong);
  border-radius: 999px;
  width: var(--fill, 0%);
}

/* ---------- Model cards ---------- */
.model-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: var(--space-xl);
}
.model-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  position: relative;
  min-width: 0;
  transition: border-color 0.25s var(--ease);
}
.model-card:hover { border-color: var(--line-strong); }
.model-card--featured {
  border-color: var(--accent-strong);
  background: var(--bg-card-2);
}
.model-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}
.model-name {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  word-break: break-all;
}
.model-best {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.model-desc { font-size: var(--fs-sm); color: var(--ink-3); line-height: 1.65; margin-bottom: 1.1rem; }
.model-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.model-meta .tag { white-space: normal; }

/* ---------- Code blocks ---------- */
.code-wrap {
  margin-top: var(--space-xl);
  min-width: 0;
}
.code-card {
  background: var(--bg-terminal);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-width: 0;
}
.code-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem 0.6rem 1rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--line);
}
.code-tabs {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.code-tabs::-webkit-scrollbar { display: none; }
.code-tab {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  color: var(--ink-4);
  white-space: nowrap;
  border: 1px solid transparent;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.code-tab:hover { color: var(--ink-2); }
.code-tab.is-active {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: var(--accent-soft-strong);
}
.code-lang {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--ink-4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  flex-shrink: 0;
}
.copy-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--ink-2);
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.8rem;
  flex-shrink: 0;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.copy-btn:hover { color: var(--ink); border-color: var(--accent-strong); }
.copy-btn.is-copied {
  color: var(--ok);
  border-color: rgba(52, 211, 153, 0.5);
  background: rgba(52, 211, 153, 0.1);
}
.copy-btn svg { width: 14px; height: 14px; }

.code-body {
  padding: 1.25rem;
  overflow-x: auto;
  overflow-y: hidden;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.75;
  tab-size: 2;
}
.code-body pre {
  font: inherit;
  white-space: pre;
}
.code-body code { font: inherit; }

/* Syntax tokens */
.code-body .tok-key { color: var(--accent); }
.code-body .tok-str { color: #7EE0A8; }
.code-body .tok-num { color: #F9C784; }
.code-body .tok-bool { color: var(--violet); }
.code-body .tok-punc { color: var(--ink-4); }
.code-body .tok-com { color: var(--ink-4); font-style: italic; }
.code-body .tok-prop { color: #93C5FD; }
.code-body .tok-fn { color: #F0ABFC; }

.code-caption {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--line);
  background: var(--bg-card);
  font-size: var(--fs-xs);
  color: var(--ink-4);
}
.code-caption .mono { color: var(--accent); word-break: break-all; }

/* Inline code */
code.inline,
.inline-code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-soft-strong);
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-sm);
  word-break: break-all;
}

/* ---------- FAQ ---------- */
.faq { max-width: var(--max-narrow); margin: 0 auto; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
  min-width: 0;
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  padding: 1.1rem 1.35rem;
  font-family: var(--font-head);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ink);
  transition: color 0.2s var(--ease);
}
.faq-q:hover { color: var(--accent); }
.faq-q-icon {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}
.faq-item.is-open .faq-q-icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}
.faq-a-inner {
  padding: 0 1.35rem 1.2rem;
  font-size: var(--fs-sm);
  color: var(--ink-3);
  line-height: 1.7;
}
.faq-a-inner strong { color: var(--ink); }
.faq-a-inner .mono { color: var(--accent); font-size: 0.9em; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  padding: clamp(2.25rem, 6vw, 4rem) clamp(1.5rem, 5vw, 3.5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-strong);
}
.cta-band h2 {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  margin-bottom: 0.75rem;
}
.cta-band p {
  color: var(--ink-3);
  max-width: 52ch;
  margin: 0 auto var(--space-xl);
  font-size: var(--fs-md);
}
.cta-band .btn-group { justify-content: center; }
.cta-band-notes {
  margin-top: var(--space-lg);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--ink-4);
}
.cta-band-notes b { color: var(--accent); font-weight: 700; }

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-footer);
  border-top: 1px solid var(--line);
  padding: var(--space-2xl) 0 var(--space-xl);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid var(--line-soft);
}
.footer-brand p {
  font-size: var(--fs-sm);
  color: var(--ink-4);
  line-height: 1.65;
  margin-top: 0.85rem;
  max-width: 38ch;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col a {
  font-size: var(--fs-sm);
  color: var(--ink-4);
  transition: color 0.2s var(--ease);
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-top: var(--space-lg);
  font-size: var(--fs-xs);
  color: var(--ink-4);
}
.footer-bottom .mono { color: var(--ink-3); }
.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  color: var(--ok);
}
.footer-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
}

/* ---------- Reveal animation (JS adds .in-view) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.in-view {
  opacity: 1;
  transform: none;
}
.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .t-cursor,
  .hero-eyebrow-dot { animation: none; }
}

/* ============================================================
   Responsive
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
  .feature-grid,
  .steps { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid,
  .reset-grid { grid-template-columns: repeat(2, 1fr); }
  .price-card--featured { order: -1; grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Small tablet / nav collapse */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero { text-align: left; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-bottom: 1px solid var(--line-soft); }
  .stat:nth-child(odd) { border-right: 1px solid var(--line-soft); }
  .stat:nth-child(3) { border-right: none; }
  .stat:nth-child(4) { border-right: none; }
  .stat:nth-child(3),
  .stat:nth-child(4) { border-bottom: none; }

  .model-grid { grid-template-columns: 1fr; }

  /* Mobile nav */
  .nav-toggle { display: grid; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1rem 1rem;
    display: none;
  }
  .nav--open .nav-links { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--line-soft); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-link {
    display: block;
    padding: 0.85rem 0.5rem;
    border-bottom: none;
    font-size: 1rem;
  }
  .nav-link--active { border-bottom: none; color: var(--accent); }
  .nav-actions .btn { padding: 0.6rem 1rem; font-size: 0.85rem; }
  .nav-actions .btn--ghost { display: none; }
}

/* Phone */
@media (max-width: 640px) {
  :root {
    --fs-hero: clamp(2.1rem, 11vw, 3rem);
  }

  .feature-grid,
  .steps,
  .pricing-grid,
  .reset-grid { grid-template-columns: 1fr; }

  .price-card--featured { order: 0; grid-column: auto; }
  .price-card { padding: 1.5rem; }
  .price-ribbon { font-size: 0.62rem; top: -12px; }

  .reset-card { padding: 1.5rem; }

  .usage-row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "label pct"
      "track track";
    row-gap: 0.45rem;
    padding: 0.85rem 0;
  }
  .usage-label { grid-area: label; }
  .usage-track { grid-area: track; }
  .usage-pct { grid-area: pct; }

  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; }
  .hero-proof { gap: 1.25rem; }

  .terminal-body {
    font-size: 0.73rem;
    padding: 1rem;
    min-height: 260px;
  }
  .terminal-head { padding: 0.6rem 0.75rem; }
  .terminal-title { font-size: 0.68rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer-bottom { justify-content: center; text-align: center; }

  .code-body { font-size: 0.72rem; padding: 1rem; }
  .code-tab { padding: 0.35rem 0.6rem; }

  .cta-band .btn-group { flex-direction: column; align-items: stretch; }
  .cta-band .btn { width: 100%; }
}

@media (max-width: 420px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 1.1rem 0.75rem; }
  .stat-num { font-size: 1.3rem; white-space: normal; }
  .btn { padding: 0.8rem 1.3rem; }
  .btn--lg { padding: 0.95rem 1.5rem; }
  .nav-actions .btn--primary { padding: 0.55rem 0.85rem; }
  .nav-logo { font-size: 1rem; }
  .nav-logo-mark { width: 30px; height: 30px; }
  .nav-logo-img { width: 30px; height: 30px; }
  .hero-proof-num { font-size: 1.4rem; }
  .model-card { padding: 1.35rem; }
  .feature-card { padding: 1.35rem; }
  .faq-q { padding: 1rem; }
  .faq-a-inner { padding: 0 1rem 1rem; }
}


/* ============================================================
   Plans + resets section (scoped: .plans-section)
   Self-contained tokens + components; loaded after the design
   system so its rules win collisions inside the section.
   ============================================================
/* ===== Plans + resets: scoped styles (prefix pl-) ===== */
.plans-section {
  --pl-bg: #070B14;
  --pl-card: #0C1322;
  --pl-card-2: #0F1830;
  --pl-border: #1B2740;
  --pl-accent: #7DD3FC;
  --pl-accent-2: #3B82F6;
  --pl-text: #E8EFFA;
  --pl-muted: #8FA0B8;
  --pl-dim: #5E6F8A;
  --pl-ink: #06101F;
  --pl-font-display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --pl-font-mono: 'IBM Plex Mono', 'SFMono-Regular', Menlo, Consolas, monospace;

  background: var(--pl-bg);
  background-image:
    linear-gradient(rgba(125, 211, 252, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 211, 252, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  color: var(--pl-text);
  font-family: var(--pl-font-display);
  padding: 76px 20px 84px;
  position: relative;
  overflow: hidden;
}
.plans-section *, .plans-section *::before, .plans-section *::after { box-sizing: border-box; }
.plans-inner { max-width: 1000px; margin: 0 auto; }
.plans-section h2, .plans-section h3, .plans-section p { margin: 0; }

.plans-head { max-width: 700px; margin: 0 auto 36px; text-align: center; }
.plans-eyebrow {
  font-family: var(--pl-font-mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--pl-accent);
}
.plans-title {
  font-size: clamp(30px, 7vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin-top: 14px;
}
.plans-title-accent { color: var(--pl-accent); }
.plans-sub { color: var(--pl-muted); font-size: 16px; line-height: 1.6; margin-top: 14px; }

.billing-toggle {
  display: flex;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 32px;
  padding: 4px;
  background: var(--pl-card);
  border: 1px solid var(--pl-border);
  border-radius: 999px;
}
.billing-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--pl-muted);
  font-family: var(--pl-font-display);
  font-size: 14px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.18s ease, color 0.18s ease;
}
.billing-btn.is-active { background: var(--pl-accent); color: var(--pl-ink); }
.billing-badge {
  font-family: var(--pl-font-mono);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(125, 211, 252, 0.12);
  color: var(--pl-accent);
}
.billing-btn.is-active .billing-badge { background: rgba(6, 16, 31, 0.16); color: var(--pl-ink); }

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  max-width: 940px;
  margin: 0 auto;
}
.plan-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--pl-card);
  border: 1px solid var(--pl-border);
  border-radius: 14px;
  padding: 26px 24px 24px;
}
.plan-card.is-featured { background: var(--pl-card-2); border-color: var(--pl-accent-2); }
.plan-name {
  font-family: var(--pl-font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pl-dim);
}
.plan-card.is-featured .plan-name { color: var(--pl-accent); }
.plan-quota { margin-top: 12px; display: flex; align-items: baseline; gap: 8px; }
.plan-size {
  font-family: var(--pl-font-mono);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}
.plan-unit { color: var(--pl-muted); font-size: 14px; }
.plan-price {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--pl-border);
  display: flex;
  align-items: baseline;
  gap: 5px;
}
.plan-amount { font-family: var(--pl-font-mono); font-size: 30px; font-weight: 700; line-height: 1; }
.plan-per { color: var(--pl-muted); font-size: 14px; }
.plan-bill { color: var(--pl-dim); font-size: 12.5px; margin-top: 8px; min-height: 1.3em; }
.plan-cta {
  margin-top: 22px;
  display: block;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid var(--pl-accent-2);
  color: var(--pl-accent);
  background: transparent;
  transition: background 0.15s ease, color 0.15s ease;
}
.plan-cta:hover { background: rgba(59, 130, 246, 0.14); }
.plan-cta.is-solid { background: var(--pl-accent); border-color: var(--pl-accent); color: var(--pl-ink); }
.plan-cta.is-solid:hover { background: #A5E0FD; }

.plans-weekly {
  max-width: 940px;
  margin: 22px auto 0;
  background: var(--pl-card);
  border: 1px solid var(--pl-border);
  border-left: 3px solid var(--pl-accent);
  border-radius: 10px;
  padding: 14px 18px;
  color: var(--pl-muted);
  font-size: 14px;
  line-height: 1.55;
}
.plans-weekly strong { color: var(--pl-text); }

.resets { max-width: 940px; margin: 48px auto 0; }
.resets-title { font-size: 24px; font-weight: 700; letter-spacing: -0.01em; }
.resets-sub { color: var(--pl-muted); font-size: 14.5px; margin-top: 6px; }
.reset-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.reset-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  background: var(--pl-card);
  border: 1px solid var(--pl-border);
  border-radius: 12px;
  padding: 18px 16px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.reset-card:hover { border-color: var(--pl-accent-2); background: var(--pl-card-2); }
.reset-mult { font-family: var(--pl-font-mono); font-size: 22px; font-weight: 700; color: var(--pl-accent); line-height: 1; }
.reset-price { font-family: var(--pl-font-mono); font-size: 20px; font-weight: 700; line-height: 1; }
.reset-label { color: var(--pl-muted); font-size: 12.5px; }
.reset-save {
  align-self: flex-start;
  font-family: var(--pl-font-mono);
  font-size: 11px;
  color: var(--pl-accent);
  border: 1px solid rgba(125, 211, 252, 0.35);
  border-radius: 999px;
  padding: 2px 8px;
  margin-top: 2px;
}

.payg {
  max-width: 940px;
  margin: 26px auto 0;
  border: 1px dashed var(--pl-border);
  border-radius: 12px;
  padding: 18px 20px;
}
.payg-main { font-size: 15px; line-height: 1.55; }
.payg-main strong { color: var(--pl-text); }
.payg-rate { font-family: var(--pl-font-mono); color: var(--pl-accent); font-weight: 700; }
.payg-sub { color: var(--pl-muted); font-size: 13.5px; line-height: 1.55; margin-top: 6px; }

.usage-demo { max-width: 940px; margin: 48px auto 0; }
.usage-title { font-size: 24px; font-weight: 700; letter-spacing: -0.01em; }
.usage-sub { color: var(--pl-muted); font-size: 14.5px; margin-top: 6px; }
.usage-rows { margin-top: 18px; display: flex; flex-direction: column; gap: 14px; }
.usage-row { display: flex; align-items: center; gap: 14px; min-width: 0; }
.usage-track {
  flex: 1;
  min-width: 0;
  height: 12px;
  border-radius: 6px;
  background: #101A2C;
  border: 1px solid var(--pl-border);
  overflow: hidden;
}
.usage-fill {
  width: 0;
  height: 100%;
  border-radius: 5px 0 0 5px;
  background: var(--pl-accent);
  transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.usage-row[data-usage="100"] .usage-fill { background: var(--pl-accent-2); }
.usage-pct {
  font-family: var(--pl-font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--pl-accent);
  min-width: 4ch;
  text-align: right;
  flex: none;
}
.usage-row[data-usage="100"] .usage-pct { color: var(--pl-text); }

.plans-storeline {
  max-width: 940px;
  margin: 44px auto 0;
  text-align: center;
  color: var(--pl-dim);
  font-family: var(--pl-font-mono);
  font-size: 12.5px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.plans-storeline a { color: var(--pl-accent); text-decoration: none; border-bottom: 1px solid rgba(125, 211, 252, 0.4); }
.plans-storeline a:hover { border-bottom-color: var(--pl-accent); }

@media (max-width: 480px) {
  .plans-section { padding: 56px 16px 64px; }
  .plans-head { margin-bottom: 28px; }
  .billing-toggle { margin-bottom: 26px; }
  .billing-btn { padding: 9px 14px; font-size: 13.5px; }
  .plans-grid { gap: 14px; }
  .plan-card { padding: 22px 20px 20px; }
  .resets, .usage-demo { margin-top: 40px; }
  .reset-grid { gap: 10px; }
  .reset-card { padding: 16px 12px; }
  .reset-mult { font-size: 20px; }
  .reset-price { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .plans-section .billing-btn, .plans-section .plan-cta, .plans-section .reset-card, .plans-section .usage-fill { transition: none; }
}


/* ============================================================
   calculator.css (merged fragment)
   ============================================================ */

/* ============================================================
   Hosty API — fragments/calculator.css
   Quota calculator. Scoped: every class calc-.
   Flat design: no gradients, no glow.
   ============================================================ */

.calc-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
  min-width: 0;
}

.calc-grid {
  display: grid;
  grid-template-columns: minmax(260px, 5fr) minmax(0, 7fr);
  gap: var(--space-xl);
  align-items: start;
}
@media (max-width: 940px) {
  .calc-grid { grid-template-columns: 1fr; }
}

/* ---------- Controls ---------- */
.calc-controls {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  min-width: 0;
}

.calc-field { min-width: 0; }

.calc-label {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: var(--space-sm);
}

.calc-range-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  min-width: 0;
}

.calc-range {
  flex: 1 1 auto;
  min-width: 0;
  height: 28px;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
}
.calc-range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
}
.calc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  margin-top: -8px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 1px var(--accent-strong);
}
.calc-range::-moz-range-track {
  height: 6px;
  border-radius: 999px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
}
.calc-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 1px var(--accent-strong);
}
.calc-range:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 4px;
}

.calc-range-val {
  flex-shrink: 0;
  min-width: 4.5ch;
  text-align: right;
  font-family: var(--font-mono);
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.calc-range-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 0.2rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--ink-4);
}

.calc-input-row { margin-top: var(--space-sm); }

.calc-input-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-width: 0;
}

.calc-currency,
.calc-suffix {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--ink-4);
  pointer-events: none;
}
.calc-currency { margin-right: 0.5rem; }
.calc-suffix { margin-left: 0.5rem; }

.calc-input {
  width: 9ch;
  background: var(--bg-terminal);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: var(--fs-base);
  padding: 0.5rem 0.65rem;
  min-width: 0;
  -moz-appearance: textfield;
}
.calc-input::-webkit-outer-spin-button,
.calc-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.calc-input:focus {
  outline: none;
  border-color: var(--accent-strong);
}

.calc-hint {
  margin-top: var(--space-xs);
  font-size: var(--fs-xs);
  color: var(--ink-4);
  line-height: 1.55;
}

/* ---------- Billing toggle ---------- */
.calc-toggle {
  display: inline-flex;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg-elev);
  padding: 3px;
  gap: 2px;
  max-width: 100%;
}

.calc-toggle-btn {
  border: 0;
  background: transparent;
  color: var(--ink-3);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.calc-toggle-btn:hover { color: var(--ink); }
.calc-toggle-btn.is-active {
  background: var(--accent-strong);
  color: #fff;
}
.calc-toggle-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.calc-toggle-badge {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  background: var(--accent-soft-strong);
  color: var(--accent);
}
.calc-toggle-btn.is-active .calc-toggle-badge {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

/* ---------- Recommendation ---------- */
.calc-recommend {
  font-size: var(--fs-md);
  line-height: 1.55;
  color: var(--ink);
  min-height: 3.2em;
}
.calc-recommend b { color: var(--accent); }

.calc-note {
  font-size: var(--fs-xs);
  color: var(--ink-4);
  line-height: 1.6;
}
.calc-note a { color: var(--accent); text-decoration: none; }
.calc-note a:hover { text-decoration: underline; }

/* ---------- Results ---------- */
.calc-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-sm);
  min-width: 0;
}
@media (max-width: 560px) {
  .calc-results { grid-template-columns: 1fr; }
}

.calc-result {
  background: var(--bg-card-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-md);
  min-width: 0;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.calc-result--featured { border-color: var(--line-strong); }

.calc-result--payg { border-style: dashed; }

.calc-result--muted { opacity: 0.75; }

.calc-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-bottom: 0.5rem;
  min-width: 0;
}

.calc-result-name {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.calc-pill {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  border: 1px solid var(--line-strong);
  color: var(--ink-4);
  white-space: nowrap;
}
.calc-pill--best {
  background: var(--accent);
  border-color: var(--accent);
  color: #0B1220;
}
.calc-pill--alt {
  border-color: var(--accent-strong);
  color: var(--accent);
}

.calc-result-price {
  font-family: var(--font-head);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.calc-result-per {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--ink-4);
}

.calc-result-meta {
  margin-top: 0.25rem;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--ink-4);
}

.calc-result-nums {
  margin-top: 0.55rem;
  font-size: var(--fs-xs);
  color: var(--ink-2);
  line-height: 1.6;
  min-height: 2.6em;
}
.calc-result-nums b { color: var(--ok); font-weight: 600; }
.calc-result-nums .neg { color: var(--warn); }

/* ---------- Verdict ---------- */
.calc-verdict {
  margin-top: var(--space-lg);
  padding: var(--space-md) var(--space-lg);
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  background: var(--bg-card-2);
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--ink-2);
}
.calc-verdict b { color: var(--ink); }
.calc-verdict .pos { color: var(--ok); }
.calc-verdict .neg { color: var(--warn); }

.calc-legal {
  margin-top: var(--space-md);
  font-size: 0.7rem;
  color: var(--ink-4);
  line-height: 1.6;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .calc-result,
  .calc-toggle-btn { transition: none; }
}


/* ============================================================
   playground.css (merged fragment)
   ============================================================ */

/* ============================================================
   Hosty API — playground fragment
   All classes pg- prefixed. Flat, no gradients, no glow.
   Depends on the global tokens in style.css :root.
   ============================================================ */

/* ---------- Main card ---------- */
.pg-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.1rem, 3vw, 1.75rem);
  min-width: 0;
}

.pg-grid {
  display: grid;
  grid-template-columns: minmax(280px, 5fr) minmax(0, 7fr);
  gap: var(--space-lg);
  align-items: start;
}
@media (max-width: 940px) {
  .pg-grid { grid-template-columns: 1fr; }
}

/* ---------- Controls ---------- */
.pg-controls {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  min-width: 0;
}

.pg-field { min-width: 0; }

.pg-label {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: var(--space-xs);
}
.pg-label-soft { color: var(--ink-4); text-transform: none; letter-spacing: 0.04em; }

.pg-note {
  font-size: var(--fs-xs);
  color: var(--ink-4);
  line-height: 1.55;
  margin-top: var(--space-xs);
}

/* Model chips (radio group) */
.pg-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  min-width: 0;
}
.pg-chip {
  position: relative;
  display: inline-flex;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.pg-chip input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}
.pg-chip-face {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg-elev);
  color: var(--ink-3);
  white-space: nowrap;
  transition: color 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.pg-chip:hover .pg-chip-face { color: var(--ink); border-color: var(--accent-strong); }
.pg-chip input:checked + .pg-chip-face {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: var(--accent-strong);
}
.pg-chip input:focus-visible + .pg-chip-face {
  outline: 2px solid var(--accent-strong);
  outline-offset: 2px;
}
.pg-chip-badge {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #0B1220;
  background: var(--accent);
  border-radius: 4px;
  padding: 0.08rem 0.35rem;
}

/* Inputs */
.pg-textarea,
.pg-input {
  width: 100%;
  background: var(--bg-terminal);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  line-height: 1.6;
  padding: 0.7rem 0.85rem;
  transition: border-color 0.2s var(--ease);
  min-width: 0;
}
.pg-textarea { resize: vertical; min-height: 96px; }
.pg-textarea::placeholder,
.pg-input::placeholder { color: var(--ink-4); }
.pg-textarea:focus,
.pg-input:focus {
  outline: none;
  border-color: var(--accent-strong);
}

/* Run / Stop */
.pg-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}
.pg-run,
.pg-stop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), opacity 0.2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.pg-run {
  background: var(--accent-strong);
  border-color: #60A5FA;
  color: #fff;
}
.pg-run:hover { background: #2F6FDE; }
.pg-run:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.pg-run:focus-visible,
.pg-stop:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.pg-stop {
  background: var(--bg-elev);
  border-color: var(--line-strong);
  color: var(--danger);
}
.pg-stop:hover { border-color: var(--danger); }

/* ---------- Terminal output ---------- */
.pg-terminal {
  background: var(--bg-terminal);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.pg-terminal-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--line);
}
.pg-dots { display: flex; gap: 6px; flex-shrink: 0; }
.pg-dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.pg-dots i:nth-child(1) { background: #F87171; }
.pg-dots i:nth-child(2) { background: #FBBF24; }
.pg-dots i:nth-child(3) { background: #34D399; }
.pg-terminal-title {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--ink-4);
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pg-status {
  margin-left: auto;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-4);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
}
.pg-status[data-state="running"] { color: var(--warn); border-color: rgba(251, 191, 36, 0.4); }
.pg-status[data-state="done"] { color: var(--ok); border-color: rgba(52, 211, 153, 0.4); }
.pg-status[data-state="stopped"] { color: var(--warn); border-color: rgba(251, 191, 36, 0.4); }

/* Simulation banner */
.pg-banner[hidden],
.pg-banner-note[hidden] { display: none; }
.pg-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem 0.5rem;
  padding: 0.55rem 1rem;
  background: rgba(251, 191, 36, 0.07);
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-xs);
  line-height: 1.55;
  color: var(--ink-2);
}
.pg-banner strong {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--warn);
}
.pg-banner-note {
  flex-basis: 100%;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--warn);
}

/* Output body */
.pg-output {
  min-height: 280px;
  max-height: 420px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1.1rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--ink-2);
  tab-size: 2;
  scroll-behavior: auto;
}
.pg-output pre {
  font: inherit;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}
.pg-placeholder { color: var(--ink-4); font-style: italic; }
.pg-cursor {
  display: inline-block;
  width: 8px;
  height: 1.05em;
  background: var(--accent);
  vertical-align: text-bottom;
  animation: pg-blink 1s steps(1) infinite;
}
.pg-cursor[hidden] { display: none; }
@keyframes pg-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Footer line */
.pg-terminal-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding: 0.65rem 1rem;
  border-top: 1px solid var(--line);
  background: var(--bg-card);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--ink-4);
}
.pg-num {
  font-variant-numeric: tabular-nums;
  color: var(--ink-3);
}

/* ---------- Code cards ---------- */
.pg-codes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
  min-width: 0;
}
@media (max-width: 940px) {
  .pg-codes { grid-template-columns: 1fr; }
}

.pg-code-card {
  background: var(--bg-terminal);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-width: 0;
}
.pg-code-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem 0.6rem 1rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--line);
}
.pg-code-lang {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--ink-4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  flex-shrink: 0;
}
.pg-code-body {
  padding: 1.25rem;
  overflow-x: auto;
  overflow-y: hidden;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.75;
  tab-size: 2;
  min-width: 0;
}
.pg-code-body pre { font: inherit; white-space: pre; margin: 0; }
.pg-code-body code { font: inherit; }
.pg-code-cap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--line);
  background: var(--bg-card);
  font-size: var(--fs-xs);
  color: var(--ink-4);
}

/* ---------- Footnote ---------- */
.pg-footnote {
  margin-top: var(--space-lg);
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--ink-4);
}
.pg-footnote a { color: var(--accent); text-decoration: none; }
.pg-footnote a:hover { text-decoration: underline; }
.pg-mono {
  font-family: var(--font-mono);
  font-size: 0.92em;
  color: var(--ink-3);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .pg-cursor { animation: none; opacity: 1; }
  .pg-run,
  .pg-stop,
  .pg-chip-face,
  .pg-textarea,
  .pg-input { transition: none; }
}


/* ============================================================
   dashboard.css (merged fragment)
   ============================================================ */

/* ============================================================
   Hosty API — fragments/dashboard.css
   Live usage dashboard demo. Scoped: every class dash-.
   Flat design: no gradients, no glow.
   ============================================================ */

.dash-demo-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: var(--space-md);
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg-card);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--warn);
}

.dash-demo-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--warn);
  flex-shrink: 0;
}

/* ---------- Card ---------- */
.dash-card {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
  min-width: 0;
}

.dash-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.dash-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
}

.dash-card-sub {
  margin-top: 0.2rem;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--ink-4);
}

.dash-live-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-card-2);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ok);
  flex-shrink: 0;
}

.dash-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  flex-shrink: 0;
}

/* ---------- Chart ---------- */
.dash-chart-wrap {
  position: relative;
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card-2);
  padding: 0.5rem 0.25rem 0.15rem;
}

.dash-chart {
  display: block;
  width: 100%;
  height: clamp(200px, 24vw, 250px);
}

/* ---------- Panel grid ---------- */
.dash-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-sm);
  margin-top: var(--space-md);
  min-width: 0;
}

.dash-panel {
  min-width: 0;
  background: var(--bg-card-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-sm) var(--space-md);
}

.dash-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.35rem var(--space-sm);
  margin-bottom: 0.6rem;
  min-width: 0;
}

.dash-panel-label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-3);
}

.dash-panel-note {
  margin-top: 0.55rem;
  font-size: var(--fs-xs);
  color: var(--ink-4);
  line-height: 1.55;
  min-width: 0;
  overflow-wrap: break-word;
}

/* ---------- Usage bar ---------- */
.dash-pct {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.dash-track {
  height: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  min-width: 0;
}

.dash-fill {
  height: 100%;
  width: 0%;
  background: var(--accent-strong);
  border-radius: 999px;
  transition: width 0.9s var(--ease);
}

.dash-fill--flat { transition: none; }

/* ---------- Countdown ---------- */
.dash-countdown {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  min-width: 0;
}

/* ---------- Credits + reset ---------- */
.dash-credits {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
  min-width: 0;
}

.dash-credit-num {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  color: var(--ok);
  font-variant-numeric: tabular-nums;
}

.dash-credit-num--bump { animation: dash-bump 0.35s var(--ease); }

@keyframes dash-bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.45); }
  100% { transform: scale(1); }
}

.dash-credit-unit {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--ink-4);
}

.dash-reset-btn {
  width: 100%;
  padding: 0.6rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.dash-reset-btn:hover { border-color: var(--accent); }

.dash-reset-btn:disabled {
  cursor: not-allowed;
  color: var(--ink-4);
  background: var(--bg-card);
  border-color: var(--line);
}

.dash-hint { color: var(--danger); }

/* ---------- Buy buttons ---------- */
.dash-buy-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  min-width: 0;
}

.dash-buy-btn {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  padding: 0.5rem 0.4rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.dash-buy-btn:hover { border-color: var(--accent); }

.dash-buy-btn b {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 700;
  white-space: nowrap;
}

.dash-buy-btn span {
  font-size: 0.65rem;
  color: var(--ok);
  white-space: nowrap;
}

.dash-store-link {
  color: var(--accent);
  text-decoration: none;
  overflow-wrap: break-word;
}

.dash-store-link:hover { text-decoration: underline; }

/* ---------- Toast ---------- */
.dash-toast {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translate(-50%, 8px);
  max-width: calc(100% - 2rem);
  padding: 0.5rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-align: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
  z-index: 5;
}

.dash-toast--show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .dash-grid { grid-template-columns: 1fr; }
  .dash-countdown { white-space: normal; }
  .dash-buy-btn { flex: 1 1 30%; }
}

@media (max-width: 380px) {
  .dash-buy-row { flex-direction: column; }
  .dash-buy-btn { flex-basis: auto; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .dash-fill,
  .dash-toast,
  .dash-reset-btn,
  .dash-buy-btn { transition: none; }
  .dash-credit-num--bump { animation: none; }
}


/* ============================================================
   terminal.css (merged fragment)
   ============================================================ */

/* ============================================================
   Hosty API — fragments/terminal.css
   Clickable demo terminal. Scoped: every class term2-
   (hero terminal already owns .terminal / .t-line).
   Flat design: no gradients, no glow.
   ============================================================ */

.term2-card {
  background: var(--bg-terminal);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.term2-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--line);
}

.term2-dots { display: flex; gap: 6px; flex-shrink: 0; }
.term2-dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.term2-dots i:nth-child(1) { background: #F87171; }
.term2-dots i:nth-child(2) { background: #FBBF24; }
.term2-dots i:nth-child(3) { background: #34D399; }

.term2-title {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--ink-4);
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.term2-tag {
  margin-left: auto;
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--warn);
  border: 1px solid rgba(251, 191, 36, 0.4);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
}

/* ---------- Command chips ---------- */
.term2-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-card);
  border-bottom: 1px solid var(--line);
  min-width: 0;
}

.term2-chip {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--ink-2);
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.term2-chip:hover { color: var(--accent); border-color: var(--accent-strong); }
.term2-chip:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.term2-chip:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ---------- Terminal body ---------- */
.term2-body {
  min-height: 240px;
  max-height: 340px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1rem 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--ink-2);
  tab-size: 2;
}

.term2-hint {
  color: var(--ink-4);
  font-style: italic;
}

.term2-line { white-space: pre-wrap; word-break: break-word; }
.term2-line--cmd { color: var(--ink); }
.term2-line--cmd .term2-prompt { color: var(--ok); }
.term2-line--dim { color: var(--ink-4); }
.term2-line--ok { color: var(--ok); }
.term2-line--accent { color: var(--accent); }
.term2-line--warn { color: var(--warn); }

.term2-cursor {
  display: inline-block;
  width: 8px;
  height: 1.05em;
  background: var(--accent);
  vertical-align: text-bottom;
  animation: term2-blink 1s steps(1) infinite;
}
@keyframes term2-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.term2-foot {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  padding: 0.6rem 1rem;
  border-top: 1px solid var(--line);
  background: var(--bg-card);
  font-size: var(--fs-xs);
  color: var(--ink-4);
}
.term2-foot-mono { font-family: var(--font-mono); }

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
  .term2-chips { padding: var(--space-xs) var(--space-sm); }
  .term2-chip { padding: 0.35rem 0.65rem; font-size: 0.7rem; }
  .term2-body { padding: 0.85rem 0.9rem; min-height: 200px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .term2-cursor { animation: none; opacity: 1; }
  .term2-chip { transition: none; }
}
