/* ============================================================
   global.css — single stylesheet for the static marketing site.

   Sections (grep for "--- <name> ---" to jump):

     Tokens & base typography           :root, html/body, h1-h4, p, a, ul/ol, code
     App-shell layout                   header.site, main, footer.site
     Page containers                    .main-content, .page, .page-md, .page-narrow
     Hero                               .hero, .hero-sm, .hero-xs, .hero-pricing,
                                          .hero-usecase, .hero-guide, .hero-stagger
     Reusable typography                .lede, .lede-soft, .hero-lede,
                                          .section-title, .section-sub, .section-label
     Deployment animation               .deploy-demo (homepage only)
     Chip / button system               .chip, .button + variants
     Step row (how-it-works)            .step-row, .step-icon, .step-eyebrow,
                                          .step-bullets, .step-body, .terminal, .example-card
     Showcase / feature grid            .showcase-card, .features-grid, .feature
     Tag chip / language row            .tag, .tech-langs, .lang-item
     Compare cards (You vs Tokay)       .compare-grid, .compare-card
     Final mega CTA                     .cta-mega, .section-cta, .section-final
     Getting Started: path picker       .path-picker, .path-pick
     Path block (numbered walkthrough)  .path-block, .num-steps, .num-badge,
                                          .path-cta-button, .next-panel, .jump-link
     "After you're live" card           .live-card, .live-list
     Guide cards (also warning,         .guide-card, .warning-card, .service-type-card
       service-type — shared base)        and friends (.guide-grid, .guide-grid-3)
     Pricing page                       .hero-pricing, .price-*, .price-callout-*
     Use-case pages                     .hero-usecase, .usecase-*, .cross-nav,
                                          .info-card, .num-step-list, .theme-card,
                                          .code-block
     Subsection heading block            .eyebrow, .subsection-title, .subsection-sub
                                          (used on guides + use-cases + 404/legal/faq)
     Guide pages                        .hero-guide, .guide-hero-title, .guide-hero-lede
                                          .handle-list, .rules-list, .code-pill
     Themed CTA buttons (shared body)   .button-pink/cyan/purple/orange/green/white,
                                          .button-outline
     Contact modal                      .contact-overlay, .contact-modal, .contact-*
     Prose pages (legal / faq / docs)   .legal-body, .legal-link
     Responsive @media blocks           (consolidated at bottom — never per-component)

   Conventions (see CLAUDE.md for the full set):
     - Tokens via CSS vars in :root. Don't bypass with raw hex.
     - Per-element theming via inline `style="--card-color: #..."`.
     - Hex notation: short form (#fff) and lowercase (#ff0080, never #FF0080).
     - Service-type palette is canonical: Web=#22d3ee, Scheduled=#f5a623,
       Function=#c084fc, Worker=#fbbf24, Accent=#ff0080, Success=#4ade80.
     - Shared-base components extend their selector; don't copy a body to add a variant.
   ============================================================ */

:root {
  --color-bg: #0a0a0a;
  --color-surface: #141414;
  --color-code-block: #0f0f0f;    /* <pre> and .code-block */
  --color-code-inline: #212121;   /* .code-pill */
  --color-border: #222;
  --color-fg: #fff;
  --color-accent: #ff0080;        /* pink: Paste/Code path */
  --color-accent-soft: #ff80bf;
  --color-info: #22d3ee;          /* cyan: Web Service */
  --color-success: #4ade80;       /* green: Live/Deploy state */
  --color-warn: #f5a623;          /* orange: Scheduled (golden) */
  --color-purple: #c084fc;        /* purple: Function/Webhook */
  --color-yellow: #fbbf24;        /* yellow: Background Worker */
  /* Gray ramp from light to dark. */
  --color-text-soft: #ccc;
  --color-soft: #aaa;
  --color-muted: #888;
  --color-slate: #a3b8cc;

  --font-sans: "Inter", -apple-system, "system-ui", "Segoe UI", Roboto, sans-serif;
  --font-display: "Manrope", "Inter", sans-serif;
  --font-mono: ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;

  --radius: 8px;
  --radius-lg: 16px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; height: 100%; overflow: hidden; }

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}
/* Faint dot-grid backdrop, fixed so it doesn't scroll with content. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: -1;
}

/* App-shell layout: header pinned, main scrolls, footer rides inside main. */
header.site { flex-shrink: 0; }
main {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  /* Thin scrollbar — mirrors the webapp's thinScrollbar so the two feel the same. */
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}
main::-webkit-scrollbar { width: 6px; }
main::-webkit-scrollbar-track { background: transparent; }
main::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}
main::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.25); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0 0 1rem;
  line-height: 1.15;
}
h2 { letter-spacing: -0.02em; }

h1 { font-size: 2.5rem; font-weight: 800; }
h2 { font-size: 1.75rem; font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 600; }

p { margin: 0 0 1rem; color: var(--color-soft); }

a {
  color: var(--color-accent-soft);
  text-decoration: none;
}
a:hover { color: var(--color-fg); }

/* Global keyboard-focus ring — applies to every focusable element. Uses
   :focus-visible so mouse clicks don't trigger it (only keyboard nav and
   forms inputs do). border-radius: inherit lets the ring follow the shape
   of the focused element. */
:focus-visible {
  outline: 2px solid var(--color-info);
  outline-offset: 2px;
  border-radius: inherit;
}

ul, ol { color: var(--color-soft); line-height: 1.8; padding-left: 1.25rem; }
li { margin-bottom: 0.25rem; }

code, pre {
  font-family: var(--font-mono);
  font-size: 0.9em;
}
pre {
  background: var(--color-code-block);
  color: var(--color-soft);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.5;
}
:not(pre) > code {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  color: var(--color-fg);
}

header.site {
  padding: 0 1.5rem;
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, #7928ca, var(--color-accent), var(--color-warn)) 1;
}
footer.site {
  background: var(--color-surface);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 48px 32px;
  color: var(--color-soft);
}

header.site nav {
  min-height: 64px;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
/* nowrap so labels like "How It Works" stay on one line at narrow widths. */
header.site nav a { white-space: nowrap; }

.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  margin-bottom: 32px;
}
.footer-cols nav { display: block; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; }
.footer-cols li { margin: 0; }
.footer-cols li + li a { margin-top: 8px; }
.footer-heading {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.57;
  color: var(--color-fg);
  margin: 0 0 16px;
  letter-spacing: 0;
}
.footer-cols a {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.75;
  color: var(--color-text-soft);
  padding: 6px 8px;
  margin: 0;
  border-radius: 6px;
  text-decoration: none;
}
.footer-cols a:hover { color: var(--color-fg); }

.footer-meta {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--color-text-soft);
}
.footer-meta nav { display: flex; gap: 1.5rem; }
.footer-meta a {
  color: var(--color-text-soft);
  font-weight: 500;
  text-decoration: none;
  border-radius: 6px;
  line-height: 1.75;
}
.footer-meta a:hover { color: var(--color-fg); }

header.site .brand {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--color-fg);
  margin-right: auto;
  line-height: 1;
}
header.site .brand img {
  height: 40px;
  width: auto;
  display: block;
}
header.site .brand .wordmark {
  font-family: 'Outfit', var(--font-sans);
  font-weight: 200;
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: lowercase;
  color: var(--color-fg);
  padding-bottom: 2px;
}
/* Shrink the accent button when it sits in the header nav. */
header.site .button-accent {
  padding: 6px 24px;
  font-size: 0.8125rem;
  font-weight: 700;
  border-radius: 8px;
}

/* --- Page containers --- */
.main-content { padding: 7rem 0; }
.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.page-narrow { max-width: 720px; }
.page-md { max-width: 898px; }

/* Hero blocks rely on .main-content for their top padding, so their own
   padding is bottom-only. */
.hero {
  text-align: center;
  padding: 0 0 4rem;
  position: relative;
  isolation: isolate;
}
.hero h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  line-height: 0.95;
  color: var(--color-fg);
  margin: 0 0 1.5rem;
}
.hero-sm h1 { font-size: 4rem; line-height: 1.1; letter-spacing: -0.02em; }

/* Sub-pages: flat 6rem gap between sections. Homepage opts OUT with
   .main-content-loose because its section variants (.section-cta,
   .section-bordered, .section-final) bring their own internal padding. */
.main-content:not(.main-content-loose) > section { padding: 0; margin-bottom: 6rem; }
.main-content:not(.main-content-loose) > section:last-child { margin-bottom: 0; }
.main-content-loose > .hero + section { padding-top: 3rem; }

@media (prefers-reduced-motion: no-preference) {
  main { animation: pageFadeIn 0.15s ease-out; }
}
@keyframes pageFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Opt-in via .hero-stagger marker so sub-page heroes don't animate. */
@media (prefers-reduced-motion: no-preference) {
  .hero-stagger > .page > * {
    opacity: 0;
    animation: heroFadeUp 0.8s ease-out forwards;
  }
  .hero-stagger > .page > *:nth-child(1) { animation-delay: 0s; }
  .hero-stagger > .page > *:nth-child(2) { animation-delay: 0.1s; }
  .hero-stagger > .page > *:nth-child(3) { animation-delay: 0.2s; }
  .hero-stagger > .page > *:nth-child(4) { animation-delay: 0.3s; }
  .hero-stagger > .page > *:nth-child(5) { animation-delay: 0.4s; }
  .hero-stagger > .page > *:nth-child(6) { animation-delay: 0.5s; }
}
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* --- Action row (CTA row) ---
   Base is layout only. .actions-tight (hero CTAs under a lede) and
   .actions-loose (homepage hero, where the lede has no bottom margin
   so the CTA needs the breathing room itself) add the top spacing. */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.actions-tight { margin-top: 1.5rem; }
.actions-loose { margin-top: 3.5rem; }

/* --- Lede paragraphs ---
   .lede        — primary intro line under a headline.
   .lede-soft   — secondary; pairs under .lede for a two-line subhead.
   .hero-lede   — getting-started; single paragraph with an inline <br>. */
.lede {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-fg);
  max-width: 600px;
  margin: 0 auto 0.25rem;
}
.lede-soft {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-muted);
  max-width: 600px;
  margin: 0 auto;
}
.hero-lede {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.5;
  color: var(--color-soft);
  max-width: 640px;
  margin: 0 auto;
}

/* --- Deployment animation ---
   3-step "Your code → We build it → It's live" pipeline. State lives in
   a `data-step` attribute on the root, written by /assets/deploy-demo.js
   when the element enters the viewport. Node treatment mirrors the
   in-app PipelineTracker. */
.deploy-demo {
  --c-code: #8b5cf6;
  --c-build: var(--color-info);
  --c-live: var(--color-success);
  position: relative;
  max-width: 680px;
  margin: 4rem auto 0;
  isolation: isolate;
}
/* Radial glow behind the track, turns green at step 5 ("live"). */
.deploy-demo::before {
  content: '';
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  height: 180px;
  z-index: -1;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
  transition: background 2s ease;
}
.deploy-demo[data-step="5"]::before {
  background: radial-gradient(ellipse at center, rgba(74, 222, 128, 0.12) 0%, transparent 70%);
}
.deploy-track {
  position: relative;
}
.deploy-track::before {
  content: '';
  position: absolute;
  top: 7px;
  left: 16.66%;
  right: 16.66%;
  height: 3px;
  border-radius: 1px;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,0.06) 0 4px, transparent 4px 10px);
}
/* Two progress segments, one between each pair of dots. Each fills to
   33.34% when its destination dot lights up. */
.deploy-progress {
  position: absolute;
  top: 7px;
  height: 3px;
  width: 0;
  border-radius: 1px;
  opacity: 0.55;
  overflow: hidden;
  transition: width 1s ease, opacity 1s ease;
}
.deploy-progress-1 {
  left: 16.66%;
  background: linear-gradient(90deg, var(--c-code), var(--c-build));
}
.deploy-progress-2 {
  left: 50%;
  background: linear-gradient(90deg, var(--c-build), var(--c-live));
}
/* Seg 1 fills at step 2+, seg 2 fills at step 4+. */
.deploy-demo[data-step="2"] .deploy-progress-1,
.deploy-demo[data-step="3"] .deploy-progress-1,
.deploy-demo[data-step="4"] .deploy-progress-1,
.deploy-demo[data-step="5"] .deploy-progress-1 { width: 33.34%; }
.deploy-demo[data-step="4"] .deploy-progress-2,
.deploy-demo[data-step="5"] .deploy-progress-2 { width: 33.34%; }
.deploy-demo[data-step="5"] .deploy-progress {
  opacity: 0.7;
  animation: deployWave 6s ease-in-out infinite;
}

/* Shimmer overlay rides across the currently-flowing segment only. */
.deploy-progress::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.5) 50%, transparent 100%);
  background-size: 40% 100%;
  background-repeat: no-repeat;
  opacity: 0;
}
.deploy-demo[data-step="2"] .deploy-progress-1::after,
.deploy-demo[data-step="3"] .deploy-progress-1::after,
.deploy-demo[data-step="4"] .deploy-progress-2::after {
  opacity: 1;
  animation: deployFlow 1.5s ease-in-out infinite;
}
.deploy-phases {
  display: flex;
  position: relative;
}
.deploy-phase {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
/* Three states: waiting (dashed), active (pulse), complete/live (filled). */
.deploy-node {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px dashed color-mix(in srgb, var(--phase-color) 25%, transparent);
  background: transparent;
  color: var(--phase-color);
  transition: all 0.5s ease;
}
.deploy-phase.is-active .deploy-node,
.deploy-phase.is-complete .deploy-node,
.deploy-phase.is-live .deploy-node {
  background: var(--phase-color);
  border: 1.5px solid var(--phase-color);
}
.deploy-phase.is-live .deploy-node {
  background: var(--c-live);
  border-color: var(--c-live);
  color: var(--c-live);
  animation: deployBreath 4s ease-in-out infinite;
}
.deploy-phase.is-active .deploy-node {
  animation: deployPulse 2s ease-in-out infinite;
}
.deploy-label {
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-align: center;
  color: rgba(255, 255, 255, 0.2);
  transition: color 0.5s ease;
}
.deploy-phase.is-active .deploy-label,
.deploy-phase.is-complete .deploy-label { color: var(--color-fg); }
.deploy-phase.is-live .deploy-label { color: var(--c-live); }
.deploy-sub {
  font-size: 0.8rem;
  line-height: 1.3;
  text-align: center;
  color: rgba(255, 255, 255, 0.12);
  transition: color 0.5s ease;
}
.deploy-phase.is-active .deploy-sub,
.deploy-phase.is-complete .deploy-sub { color: rgba(255, 255, 255, 0.35); }
.deploy-phase.is-live .deploy-sub { color: rgba(74, 222, 128, 0.7); }
.deploy-url {
  text-align: center;
  margin-top: 2.5rem;
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--c-live);
  opacity: 0;
}
.deploy-demo[data-step="5"] .deploy-url { animation: deployFadeUp 0.6s ease forwards; }

@keyframes deployPulse {
  0%, 100% { box-shadow: 0 0 0 0 currentColor, 0 0 4px currentColor; }
  50%      { box-shadow: 0 0 0 4px transparent, 0 0 8px currentColor; }
}
@keyframes deployBreath {
  0%, 100% { box-shadow: 0 0 4px 0 currentColor; filter: brightness(1); }
  50%      { box-shadow: 0 0 12px 2px currentColor; filter: brightness(1.15); }
}
@keyframes deployFlow {
  0%   { background-position: -50% 0; }
  100% { background-position: 150% 0; }
}
@keyframes deployWave {
  0%   { opacity: 0.4; filter: brightness(1); }
  30%  { opacity: 0.8; filter: brightness(1.45); }
  60%  { opacity: 0.575; filter: brightness(1.175); }
  100% { opacity: 0.4; filter: brightness(1); }
}
@keyframes deployFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Reduced motion: jump straight to the final state, no animation. */
@media (prefers-reduced-motion: reduce) {
  .deploy-demo,
  .deploy-demo[data-step="5"] .deploy-url,
  .deploy-progress,
  .deploy-node { animation: none !important; transition: none !important; }
  .deploy-demo[data-step="5"] .deploy-url { opacity: 1; transform: none; }
}

/* --- Chip / button --- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  border: 1px solid transparent;
}
.chip-accent {
  background: rgba(255, 0, 128, 0.1);
  border-color: rgba(255, 0, 128, 0.2);
  color: var(--color-accent-soft);
}
.chip-success {
  background: var(--color-success);
  color: var(--color-fg);
  font-size: 0.875rem;
  padding: 4px 12px;
  border-radius: 8px;
}
.hero .chip { margin-bottom: 1.5rem; }

section { padding: 6rem 0; margin: 0; }
section > h2 { margin-bottom: 1.5rem; }
section > p { margin-bottom: 1.5rem; max-width: 720px; }

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-fg);
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
}
.button:hover { background: #1c1c1c; color: var(--color-fg); }

.button-accent {
  background: var(--color-accent);
  color: var(--color-fg);
  border-color: var(--color-accent);
  box-shadow: 0 0 20px rgba(255, 0, 128, 0.3);
}
.button-accent:hover {
  background: var(--color-accent);
  color: var(--color-fg);
  box-shadow: 0 0 30px rgba(255, 0, 128, 0.5);
}

/* Size + shape modifiers, combine with any variant. */
.button-lg {
  padding: 12px 32px;
  font-size: 1rem;
  border-radius: 6px;
}
.button-pill { border-radius: 999px; }

.button-info {
  background: var(--color-info);
  color: var(--color-bg);
  border-color: var(--color-info);
}
.button-info:hover {
  background: var(--color-info);
  color: var(--color-bg);
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.4);
}

.button-glass {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--color-fg);
  backdrop-filter: blur(10px);
}
.button-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-accent);
  color: var(--color-fg);
  box-shadow: 0 0 20px rgba(255, 0, 128, 0.3);
}

.button-ghost {
  display: inline-flex;
  align-items: center;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  border: 0;
  background: transparent;
  color: var(--color-muted);
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
}
.button-ghost:hover, .button-ghost.active {
  color: var(--color-fg);
}

/* --- Step row (how-it-works) ---
   Each step: .step-header (icon + eyebrow + title) over .step-body
   (2-col: description+bullets on the left, terminal/example panel on
   the right). Per-step accent color via --step-color. */
.step-row { --step-color: var(--color-fg); }
.step-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.step-row:last-child { margin-bottom: 0; padding-bottom: 0; }
.step-row:not(:last-child) {
  padding-bottom: 2.5rem;
  margin-bottom: 6rem;
  position: relative;
}
/* Gradient divider fading from current step color → next step color. */
.step-row:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    color-mix(in srgb, var(--step-color) 35%, transparent) 30%,
    color-mix(in srgb, var(--next-step-color, var(--step-color)) 35%, transparent) 70%,
    transparent);
}
.step-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.step-icon {
  width: 56px;
  height: 56px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--step-color) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--step-color) 20%, transparent);
  color: var(--step-color);
  flex-shrink: 0;
}
.step-icon svg { width: 28px; height: 28px; fill: currentColor; }
.step-header-text { display: flex; flex-direction: column; }
.step-eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.46;
  letter-spacing: 1.28px;
  text-transform: uppercase;
  color: var(--step-color);
  margin: 0;
}
.step-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.22;
  color: var(--color-fg);
  margin: 0;
}
.step-title-muted { color: var(--color-muted); font-weight: 400; font-size: 1.25rem; }
.step-desc {
  color: var(--color-soft);
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.7;
  margin: 0 0 1.5rem;
}
.step-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
}
.step-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.25rem 0;
  color: var(--color-text-soft);
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.53;
}
.step-bullets svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--step-color);
  fill: currentColor;
}

/* --- Terminal block --- */
.terminal {
  --terminal-color: var(--color-slate);
  background: var(--color-bg);
  border: 1px solid color-mix(in srgb, var(--terminal-color) 20%, transparent);
  border-radius: 16px;
  padding: 20px;
}
.terminal p {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 300;
  line-height: 1.46;
  color: var(--color-slate);
  margin: 0;
}
.terminal p + p { margin-top: 8px; }
.terminal p.is-result { color: var(--terminal-color); }

/* --- Showcase card ("people who ship" group on how-it-works) --- */
.showcase-card {
  max-width: 880px;
  margin: 0 auto;
  padding: 4rem 3rem;
  border: 1px solid rgba(255, 0, 128, 0.15);
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(255, 0, 128, 0.06) 0%, rgba(192, 132, 252, 0.06) 100%);
}
.showcase-card .features-grid { gap: 1rem; }
.showcase-card .feature {
  background: transparent;
  border: 0;
  padding: 0;
}
.showcase-card .feature:hover {
  background: transparent;
  border: 0;
  box-shadow: none;
}
.showcase-card .feature-title { font-size: 1.1rem; }
.showcase-card .feature-desc { font-size: 0.875rem; line-height: 1.65; }

/* --- Example card (right column of step 1 on how-it-works) --- */
.example-card {
  --example-color: var(--color-fg);
  display: flex;
  align-items: center;
  gap: 1rem;
  background: color-mix(in srgb, var(--example-color) 4%, transparent);
  border: 1px solid color-mix(in srgb, var(--example-color) 15%, transparent);
  border-radius: 16px;
  padding: 20px;
}
.example-card + .example-card { margin-top: 16px; }
.example-icon {
  width: 40px;
  height: 40px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--example-color) 10%, transparent);
  color: var(--example-color);
  flex-shrink: 0;
}
.example-icon svg { width: 20px; height: 20px; fill: currentColor; }
.example-title {
  color: var(--color-fg);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.53;
  margin: 0;
}
.example-sub {
  color: var(--color-muted);
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.43;
  margin: 0;
}

.muted { color: var(--color-muted); }
.center { text-align: center; }
.text-accent { color: var(--color-accent); }
.text-info { color: var(--color-info); }
.text-gradient {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-purple) 50%, var(--color-info) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Phosphor UI icons (256 viewBox) and brand logos (24 viewBox) are both
   fill-based, so one fill:currentColor default covers both. */
.icon { width: 24px; height: 24px; fill: currentColor; flex-shrink: 0; }
.icon-xs { width: 12px; height: 12px; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 32px; height: 32px; }
.icon-xl { width: 36px; height: 36px; }

/* --- Section title + variants ---
   .section-title    (3.5rem) — main centered h2
   .section-title-sm (3rem)
   .section-title-xs (2.5rem) — sub-page sections
   When a .section-sub follows directly, the title's bottom margin
   collapses so the pair reads as one unit. */
.section-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  margin: 0 auto 4rem;
}
.section-title:has(+ .section-sub) { margin-bottom: 1rem; }
.section-title-sm { font-size: 3rem; }
.section-title-xs { font-size: 2.5rem; line-height: 1.175; }
.section-sub {
  text-align: center;
  color: var(--color-soft);
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.5;
  max-width: 640px;
  margin: 0 auto 3rem;
}
.section-label {
  display: block;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.66;
  color: var(--color-muted);
  margin: 0 0 1rem;
}
.section-bordered {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: rgba(0, 0, 0, 0.4);
  padding: 6rem 0;
}

/* --- Feature card grid ---
   Per-card accent via inline --feature-color. Fixed 3 cols on desktop
   instead of auto-fit, which produces an ugly 2-col intermediate state
   with one orphan card on its own row. */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature {
  --feature-color: var(--color-fg);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 32px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.feature:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: color-mix(in srgb, var(--feature-color) 40%, transparent);
  box-shadow: 0 10px 40px -10px color-mix(in srgb, var(--feature-color) 30%, transparent);
}
.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--feature-color) 10%, transparent);
  color: var(--feature-color);
  border: 1px solid color-mix(in srgb, var(--feature-color) 20%, transparent);
}
.feature-title {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.334;
  color: var(--color-fg);
  margin: 0 0 0.5rem;
}
.features-grid-sm {
  max-width: 880px;
  margin: 0 auto;
}
.features-grid-sm .feature { padding: 1rem; gap: 0.75rem; }
.features-grid-sm .feature-icon { width: 52px; height: 52px; border-radius: 24px; margin-bottom: 1rem; }
.features-grid-sm .feature-title { font-size: 18px; line-height: 1.444; margin-bottom: 12px; }
.features-grid-sm .feature-desc { font-size: 0.9375rem; line-height: 1.733; }
.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--feature-color) 10%, transparent);
  color: var(--feature-color);
  border: 1px solid color-mix(in srgb, var(--feature-color) 20%, transparent);
  max-width: 100%;
}
.feature-desc {
  color: var(--color-soft);
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.6;
  margin: 0;
}

/* --- Tag chip (frameworks, addons) — smaller and mono, distinct from .chip. --- */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  max-width: 720px;
  margin: 0 auto;
}
.tag {
  display: inline-flex;
  align-items: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  font-weight: 300;
  line-height: 1.43;
  color: var(--color-text-soft);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 400px;
  padding: 4px 12px;
  transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}
.tag:hover {
  color: var(--color-info);
  background: rgba(34, 211, 238, 0.05);
  border-color: rgba(34, 211, 238, 0.4);
}

/* --- Compare cards (You vs Tokay) --- */
.compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  align-items: stretch;
}
.compare-card {
  --card-color: var(--color-fg);
  display: flex;
  flex-direction: column;
  padding: 2rem;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid color-mix(in srgb, var(--card-color) 20%, transparent);
}
.compare-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.compare-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  border-radius: 16px;
  background: color-mix(in srgb, var(--card-color) 10%, transparent);
  color: var(--card-color);
}
.compare-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-fg);
  margin: 0;
}
.compare-subtitle {
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--color-muted);
  line-height: 1.43;
  margin: 0;
}
.compare-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}
.compare-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  color: var(--color-text-soft);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
}
.compare-list-emphasis li {
  padding: 0.75rem 0;
  color: var(--color-fg);
  font-size: 1.1rem;
  font-weight: 500;
}
.compare-list svg { color: var(--card-color); flex-shrink: 0; }
.compare-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: auto;
  padding: 20px;
  border-radius: 16px;
  font-weight: 600;
  text-decoration: none;
  color: var(--card-color);
  background: color-mix(in srgb, var(--card-color) 5%, transparent);
  border: 1px solid color-mix(in srgb, var(--card-color) 30%, transparent);
  transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.compare-cta:hover {
  background: color-mix(in srgb, var(--card-color) 15%, transparent);
  border-color: var(--card-color);
  box-shadow: 0 8px 24px -6px color-mix(in srgb, var(--card-color) 40%, transparent);
  color: var(--card-color);
}

/* --- Tech languages row --- per-item color via inline --lang-color. */
.tech-langs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  /* Extra breathing above the language row. padding-top (not margin-top)
     because the surrounding .section-sub would margin-collapse otherwise. */
  padding-top: 1.5rem;
  margin-bottom: 3rem;
}
.lang-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-soft);
  transition: color 0.2s;
}
.lang-item:hover { color: var(--color-fg); }
/* drop-shadow on the wrapper div, not the SVG: filtering a complex path
   re-rasterizes on every hover (visibly laggy on Rust's path).
   Fixed 62px height keeps the text baselines aligned despite icons
   varying in --lang-size. */
.lang-icon {
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lang-color);
}
.lang-icon svg {
  width: var(--lang-size, 48px);
  height: var(--lang-size, 48px);
  fill: currentColor;
}
.lang-item:hover .lang-icon {
  filter: drop-shadow(0 0 10px color-mix(in srgb, currentColor 60%, transparent));
}
.lang-name {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
}

.tech-group { margin-bottom: 3rem; }

/* --- Final mega CTA ("Make It Happen") --- */
.cta-mega {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: 0.04em;
  color: var(--color-fg);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.25s, transform 0.25s, filter 0.25s;
}
.cta-mega:hover {
  opacity: 1;
  transform: scale(1.02);
  background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-purple) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 0 30px rgba(255, 0, 128, 0.3));
}

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  color: var(--color-soft);
  transition: color 0.15s;
}
.icon-link:hover { color: var(--color-accent); }

/* --- Section CTA banner --- inline "between sections" call to action. */
.section-cta {
  text-align: center;
  position: relative;
  isolation: isolate;
}
.section-cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}
.section-cta h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0 auto 1.5rem;
}
.section-cta p {
  color: var(--color-slate);
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 3rem;
  line-height: 1.5;
  font-weight: 400;
}

/* --- Section final (giant "Make It Happen" block) --- */
.section-final {
  text-align: center;
  border-top: 1px solid var(--color-border);
  padding: 5rem 0;
}
.section-final h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.235;
  color: var(--color-soft);
  margin: 0 0 1.5rem;
}
.section-final .cta-mega { margin-bottom: 3rem; }
.section-final .chip { margin-bottom: 1.5rem; }
.section-final .icon-link-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* --- Hero size variants ---
   .hero-sm (64px, how-it-works), .hero-xs (56px, getting-started). */
.hero-xs h1 {
  font-size: 3.5rem;
  line-height: 1.107;
  letter-spacing: -0.02em;
  font-weight: 800;
}

/* --- Getting Started: path picker (2-col card row inside the hero) --- */
.path-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 5rem;
}

.path-pick {
  --card-color: var(--color-fg);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.75rem;
  border-radius: 16px;
  background: color-mix(in srgb, var(--card-color) 4%, transparent);
  border: 1px solid color-mix(in srgb, var(--card-color) 15%, transparent);
  text-decoration: none;
  text-align: left;
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
}
.path-pick:hover {
  background: color-mix(in srgb, var(--card-color) 8%, transparent);
  border-color: color-mix(in srgb, var(--card-color) 35%, transparent);
  transform: translateY(-1px);
}
.path-pick-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: color-mix(in srgb, var(--card-color) 10%, transparent);
  color: var(--card-color);
}
.path-pick-icon svg { width: 24px; height: 24px; fill: currentColor; }
.path-pick-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--color-fg);
  margin: 0;
}
.path-pick-sub {
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.5;
  color: var(--color-muted);
  margin: 0;
}

/* --- Path block (numbered walkthrough on getting-started) ---
   Flat wrapper. The inner .next-panel is the only bordered card in
   the block. */
.path-block {
  --card-color: var(--color-fg);
}
.path-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}
.path-card-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: color-mix(in srgb, var(--card-color) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--card-color) 20%, transparent);
  color: var(--card-color);
}
.path-card-icon svg { width: 24px; height: 24px; fill: currentColor; }
.path-card-title {
  font-size: 1.8125rem;
  font-weight: 700;
  line-height: 1.241;
  color: var(--color-fg);
  margin: 0;
  font-family: var(--font-display);
}
.num-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.num-steps li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.num-steps p {
  margin: 0;
  color: var(--color-text-soft);
  font-size: 1rem;
  line-height: 1.6875;
  font-weight: 300;
}
.num-steps strong {
  color: var(--color-fg);
  font-weight: 600;
}
.num-badge {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: monospace;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--card-color);
  background: color-mix(in srgb, var(--card-color) 15%, transparent);
}
.path-card-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 1rem;
}
a.path-cta-button,
a.path-cta-button:visited,
a.path-cta-button:hover {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 12px 32px;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--card-fg, #fff);
  background: var(--card-color);
  border: 1px solid color-mix(in srgb, var(--card-color) 20%, transparent);
  transition: filter 0.2s, box-shadow 0.2s;
}
a.path-cta-button:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 24px -4px color-mix(in srgb, var(--card-color) 50%, transparent);
}
.path-cta-button svg { width: 18px; height: 18px; fill: currentColor; }
.path-cta-sub {
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.5;
  color: var(--color-muted);
  margin: 8px 0 0;
  text-align: left;
}
.next-panel {
  margin-top: 2.5rem;
  padding: 1.5rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.next-panel-title {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-fg);
  margin: 0 0 1rem;
}
.next-panel-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.next-panel-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.next-panel-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-top: 2px;
}
.next-panel-icon svg { width: 18px; height: 18px; fill: currentColor; }
.next-panel-list p {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.5;
  color: var(--color-soft);
}
.next-panel-label {
  font-weight: 500;
  color: var(--color-text-soft);
}

/* --- Jump link (inline cross-link between path A and path B) --- */
.jump-link {
  --card-color: var(--color-info);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 2.5rem;
  color: var(--card-color);
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.5;
  text-decoration: none;
  transition: opacity 0.2s;
}
.jump-link:hover { opacity: 0.8; }
.jump-link svg { width: 16px; height: 16px; fill: currentColor; }

/* --- "After you're live" card (getting-started) --- */
.live-card {
  --card-color: var(--color-success);
  padding: 3rem 2.5rem;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.04) 0%, rgba(34, 211, 238, 0.04) 100%);
  border: 1px solid color-mix(in srgb, var(--card-color) 12%, transparent);
}
.live-card-title {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.235;
  letter-spacing: normal;
  color: var(--color-fg);
  margin: 0 0 2rem;
  font-family: var(--font-display);
}
.live-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.live-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.live-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-top: 4px;
}
.live-icon svg { width: 20px; height: 20px; fill: currentColor; }
.live-list p {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--color-text-soft);
}
.live-list strong {
  display: inline;
  font-weight: 600;
  color: var(--color-fg);
}

/* --- Guide card grid + bordered-card base ---
   .guide-card, .warning-card, .service-type-card share the shape;
   each variant adds its own layout (flex direction, hover) on top. */
.guides-title {
  text-align: left;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.235;
  letter-spacing: normal;
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
}
.guides-sub {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--color-muted);
  margin: 0 0 2rem;
  max-width: 560px;
}
.guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.guide-card,
.warning-card,
.service-type-card {
  --card-color: var(--color-fg);
  padding: 1.5rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid color-mix(in srgb, var(--card-color) 12%, transparent);
}
.guide-card,
.service-type-card {
  display: flex;
  flex-direction: column;
}
.guide-card {
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s;
}
.guide-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: color-mix(in srgb, var(--card-color) 35%, transparent);
}
.guide-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: color-mix(in srgb, var(--card-color) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--card-color) 20%, transparent);
  color: var(--card-color);
}
.guide-icon svg { width: 22px; height: 22px; fill: currentColor; }
.guide-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--color-fg);
  margin: 0.75rem 0 0;
}
.guide-desc {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--color-soft);
  margin: 0.75rem 0 0;
}
/* mt:auto aligns the CTA to the card bottom across uneven descriptions. */
.guide-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1rem;
  color: var(--card-color);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
}
.guide-cta svg { width: 14px; height: 14px; fill: currentColor; }

/* --- Pricing page ---
   Tighter section rhythm than other sub-pages (4rem between sections
   vs the default 6rem) — the page is short and the $0 hero + Honor
   Code callout are visually heavy, so they want less air between. */
.main-content > .hero.hero-pricing,
.main-content > .hero.hero-pricing ~ section:not(:last-child) {
  margin-bottom: 4rem;
}
.hero-pricing { text-align: center; }
/* Higher specificity than .hero h1 (clamp max 6rem). */
.hero-pricing .price-hero {
  font-size: 7rem;
  font-weight: 800;
  line-height: 0.95;
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-purple) 50%, var(--color-warn) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.price-sub {
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.167;
  color: var(--color-muted);
  margin: 0 0 1rem;
  font-family: var(--font-display);
  text-align: center;
}
.price-line {
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--color-fg);
  font-weight: 500;
  margin: 0;
  text-align: center;
}
.price-pink {
  color: var(--color-accent-soft);
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.5;
}
.price-line-sub {
  margin-top: 2rem;
  color: var(--color-soft);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.7;
}
.price-strong {
  color: var(--color-fg);
  font-weight: 500;
}
.price-callout {
  --callout-color: var(--color-accent);
  margin: 2rem 0 0;
  padding: 2rem;
  border-radius: 16px;
  background: color-mix(in srgb, var(--callout-color) 5%, transparent);
  border: 1px solid color-mix(in srgb, var(--callout-color) 20%, transparent);
}
.price-callout p {
  margin: 0;
  color: var(--color-text-soft);
  font-size: 1.1rem;
  line-height: 1.7;
  font-weight: 400;
}
.price-callout p + p { margin-top: 1rem; }
.price-callout-q {
  font-style: italic;
}
.price-callout-pink { text-align: center; }
.price-callout-honor {
  --callout-color: var(--color-warn);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: color-mix(in srgb, var(--callout-color) 3%, transparent);
  border: 1px dashed color-mix(in srgb, var(--callout-color) 40%, transparent);
  padding: 1.5rem;
}
.honor-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--callout-color);
}
.honor-icon svg { width: 32px; height: 32px; fill: currentColor; }
.price-callout-honor .honor-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--callout-color);
  margin: 0 0 8px;
}
.price-callout-honor p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-soft);
  font-weight: 300;
}
.honor-strong {
  color: var(--color-fg);
  font-weight: 300;
}
.price-line-final {
  margin-top: 2rem;
  text-align: center;
  color: var(--color-soft);
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1.7;
}
.price-ship {
  font-size: 1.8rem;
  font-weight: 600;
  font-family: var(--font-sans);
  background: linear-gradient(90deg, var(--color-purple) 0%, var(--color-warn) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.price-cta-section { text-align: center; }
a.price-cta-button,
a.price-cta-button:visited,
a.price-cta-button:hover {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 16px 40px;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.75;
  text-decoration: none;
  color: #000;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--color-info) 20%, transparent);
  transition: filter 0.2s, box-shadow 0.2s;
}
a.price-cta-button:hover {
  filter: brightness(1.08);
  box-shadow: 0 0 24px -4px color-mix(in srgb, var(--color-info) 40%, transparent);
}
.price-cta-button svg { width: 18px; height: 18px; fill: currentColor; }
.price-cta-sub {
  margin: 4rem 0 0;
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.5;
  color: var(--color-muted);
}
/* border-bottom (not text-decoration) so the underline sits cleanly below the baseline. */
a.price-cta-mail,
a.price-cta-mail:visited {
  color: var(--color-accent-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
a.price-cta-mail:hover {
  color: var(--color-accent-soft);
  border-bottom-color: var(--color-accent-soft);
}

/* --- Use-case pages --- shared system across the 4 deploy-* pages. */
.hero-usecase { text-align: center; }
/* background-clip:text can clip the bottom of a gradient even when the
   line box has room — line-height + padding-bottom prevent descender cutoff. */
.usecase-hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: normal;
  margin: 0 0 1.5rem;
  padding-bottom: 0.75rem;
  font-family: var(--font-display);
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-purple) 50%, var(--color-warn) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.usecase-hero-sub {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-soft);
  margin: 0 auto 2rem;
  max-width: 700px;
}
/* --- Guide pages --- shared system across the 5 guide pages. */
.hero-guide { text-align: center; }
.hero-guide .guide-hero-lede { margin-left: auto; margin-right: auto; }
/* Higher specificity than .hero h1 (clamp max 6rem). */
.hero-guide .guide-hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
  color: var(--color-fg);
  font-family: var(--font-display);
}
.guide-hero-lede {
  font-size: 1.1875rem;
  font-weight: 300;
  line-height: 1.684;
  color: var(--color-muted);
  margin: 0 0 2rem;
  max-width: 620px;
}

/* --- Subsection heading block ---
   Used to introduce a content block within a page. Left-aligned, eyebrow +
   h2 + sub paragraph (the sub is optional). Used on guide pages, use-case
   pages, and any sub-page that wants the "documentation rhythm." Distinct
   from the centered .section-title family used in heroes/homepage. */
.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-soft);
  margin: 0 0 1rem;
}
.subsection-title {
  font-size: 2.1875rem;
  font-weight: 700;
  line-height: 1.114;
  margin: 1rem 0 1rem;
  color: var(--color-fg);
  font-family: var(--font-display);
}
.subsection-sub {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--color-muted);
  margin: 1rem 0 1.5rem;
  max-width: 720px;
}

/* --- Themed CTA buttons ---
   Six color variants share one body. Each variant supplies --btn-bg
   (and --btn-fg for light bgs that need black text instead of white). */
a.button-pink,   a.button-pink:visited,   a.button-pink:hover,
a.button-cyan,   a.button-cyan:visited,   a.button-cyan:hover,
a.button-purple, a.button-purple:visited, a.button-purple:hover,
a.button-orange, a.button-orange:visited, a.button-orange:hover,
a.button-green,  a.button-green:visited,  a.button-green:hover,
a.button-white,  a.button-white:visited,  a.button-white:hover {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 12px 32px;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.75;
  text-decoration: none;
  color: var(--btn-fg, #fff);
  background: var(--btn-bg);
  border: 1px solid color-mix(in srgb, var(--color-info) 20%, transparent);
  transition: filter 0.2s, box-shadow 0.2s;
}
a.button-pink:hover, a.button-cyan:hover, a.button-purple:hover,
a.button-orange:hover, a.button-green:hover, a.button-white:hover {
  filter: brightness(1.08);
  box-shadow: 0 0 24px -4px color-mix(in srgb, var(--btn-bg) 50%, transparent);
}
.button-pink   { --btn-bg: var(--color-accent); }
.button-cyan   { --btn-bg: var(--color-info);    --btn-fg: #000; }
.button-purple { --btn-bg: var(--color-purple); }
.button-orange { --btn-bg: var(--color-warn);    --btn-fg: #000; }
.button-green  { --btn-bg: var(--color-success); --btn-fg: #000; }
.button-white  { --btn-bg: #fff;              --btn-fg: #000; }
a.button-pink svg, a.button-cyan svg, a.button-purple svg,
a.button-orange svg, a.button-green svg, a.button-white svg {
  width: 18px; height: 18px; fill: currentColor;
}

/* --- Service-type grid (2x2) --- */
.service-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* .service-type-card shape inherits from the .guide-card base above. */
.service-type-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: color-mix(in srgb, var(--card-color) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--card-color) 20%, transparent);
  color: var(--card-color);
}
.service-type-icon svg { width: 22px; height: 22px; fill: currentColor; }
.service-type-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.471;
  color: var(--color-fg);
  margin: 0.75rem 0 0;
}
.service-type-desc {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.6875;
  color: var(--color-soft);
  margin: 0.75rem 0 0;
}
.service-type-divider-label {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.533;
  color: var(--color-fg);
  margin: 1.5rem 0 0;
}
.service-type-after {
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.733;
  color: var(--color-soft);
  margin: 0.5rem 0 0;
}

/* --- Rules list (inline-numbered prose, e.g. service-types) --- */
.rules-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.rules-list li {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.6875;
  color: var(--color-text-soft);
}
.rules-list strong:first-child {
  display: inline-block;
  min-width: 1.5rem;
  font-weight: 600;
  color: var(--color-fg);
}
.rule-tag {
  font-weight: 600;
  color: var(--color-fg);
}

/* --- Code pill --- inline terminal-prompt + snippet (`>_ git push tokay`). */
.code-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--color-code-inline);
}
.code-pill svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  color: var(--color-soft);
  flex-shrink: 0;
}
.code-pill code {
  font-family: monospace;
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.5;
  color: var(--color-fg);
}

/* Higher specificity than the default .num-steps p rule. */
.num-steps .num-line-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-fg);
  margin: 0 0 0.25rem;
}
.num-steps .num-line-desc {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--color-soft);
  margin: 0;
}

/* --- Handle list (icon-bullet list with bold inline label + body) --- */
.handle-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.handle-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.handle-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-top: 4px;
  color: var(--color-accent);
}
.handle-icon svg { width: 20px; height: 20px; fill: currentColor; }
.handle-list p {
  margin: 0;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.6875;
  color: var(--color-soft);
}
.handle-list strong {
  font-weight: 600;
  color: var(--color-fg);
  margin-right: 0.25rem;
}

.warning-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* .warning-card shape inherits from the .guide-card base above. */
.warning-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--card-color) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--card-color) 20%, transparent);
  color: var(--card-color);
}
.warning-icon svg { width: 22px; height: 22px; fill: currentColor; }
.warning-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.471;
  color: var(--color-fg);
  margin: 0.75rem 0 0;
}
.warning-desc {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.6875;
  color: var(--color-soft);
  margin: 0.75rem 0 0;
}

/* 3-col variant of .guide-grid (default is 2-col). */
.guide-grid-3 { grid-template-columns: repeat(3, 1fr); }


/* --- Cross-nav (other use-case pages) ---
   Cards live in partials/cross-nav-use-cases.html (all 4). Each use-case
   page sets <body data-current-usecase="X">; the selector below hides
   that page's own card so the grid renders the remaining 3. Adding a
   5th use case = append one card + add one selector. No per-page edits. */
.cross-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
body[data-current-usecase="webapp"]  .cross-nav-card[data-usecase="webapp"],
body[data-current-usecase="cron"]    .cross-nav-card[data-usecase="cron"],
body[data-current-usecase="webhook"] .cross-nav-card[data-usecase="webhook"],
body[data-current-usecase="worker"]  .cross-nav-card[data-usecase="worker"] { display: none; }

a.cross-nav-card,
a.cross-nav-card:visited,
a.cross-nav-card:hover {
  --card-color: var(--color-fg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid color-mix(in srgb, var(--card-color) 15%, transparent);
  text-decoration: none;
  color: var(--color-fg);
  transition: background-color 0.2s, border-color 0.2s;
}
a.cross-nav-card:hover {
  background: color-mix(in srgb, var(--card-color) 6%, transparent);
  border-color: color-mix(in srgb, var(--card-color) 40%, transparent);
}
.cross-nav-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--card-color) 10%, transparent);
  color: var(--card-color);
}
.cross-nav-icon svg { width: 18px; height: 18px; fill: currentColor; }
.cross-nav-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cross-nav-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted);
}
.cross-nav-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-fg);
  line-height: 1.3;
}

/* --- Info card (icon-left + title + sub) --- */
.info-card-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.info-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.info-card-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.info-card-icon svg { width: 24px; height: 24px; fill: currentColor; }
.info-card-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-fg);
  margin: 0 0 0.25rem;
}
.info-card-sub {
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.533;
  color: var(--color-soft);
  margin: 0;
}

/* --- Numbered step list (40px gradient badge + title + sub) --- */
.num-step-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.num-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.num-step-badge {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-purple) 100%);
  color: var(--color-fg);
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.5;
}
.num-step-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-fg);
  margin: 0 0 0.25rem;
}
.num-step-sub {
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.533;
  color: var(--color-soft);
  margin: 0;
}
/* Inline pill for short code references like `git push tokay`. */
.ml-pill {
  display: inline-block;
  padding: 0 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.533;
  color: var(--color-accent);
  background: color-mix(in srgb, var(--color-accent) 10%, transparent);
}

/* --- Theme-colored card list --- cards sharing one --card-color. */
.theme-card-list {
  --card-color: var(--color-fg);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.theme-card {
  padding: 1.5rem;
  border-radius: 16px;
  background: color-mix(in srgb, var(--card-color) 5%, transparent);
  border: 1px solid color-mix(in srgb, var(--card-color) 20%, transparent);
}
.theme-card-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-fg);
  margin: 0 0 0.5rem;
}
.theme-card-desc {
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--color-soft);
  margin: 0;
}
.theme-card-list-sm { gap: 1rem; }
.theme-card-list-sm .theme-card {
  padding: 1rem;
  border-radius: 8px;
  background: color-mix(in srgb, var(--card-color) 5%, transparent);
  border-color: color-mix(in srgb, var(--card-color) 10%, transparent);
}
.theme-card-list-sm .theme-card-title {
  color: var(--color-accent);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}
.theme-card-list-sm .theme-card-desc {
  font-size: 0.875rem;
  line-height: 1.43;
  color: var(--color-muted);
}

/* --- Code blocks --- */
.code-title {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--color-fg);
  margin: 0 0 1rem;
  font-family: var(--font-display);
}
.code-block {
  margin: 0 0 2rem;
  padding: 1.5rem;
  border-radius: 8px;
  background: var(--color-code-block);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow-x: auto;
}
.code-block code {
  display: block;
  font-family: monospace;
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.43;
  color: var(--color-soft);
  white-space: pre;
}
.code-closing {
  margin: 1rem 0 0;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.5;
  color: var(--color-soft);
  text-align: center;
}

/* Outline secondary button (transparent + white border). */
a.button-outline,
a.button-outline:visited,
a.button-outline:hover {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 12px 32px;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.75;
  text-decoration: none;
  color: var(--color-fg);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: background-color 0.2s, border-color 0.2s;
}
a.button-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 24px -4px rgba(255, 255, 255, 0.2);
}
a.button-outline.button-outline-sm,
a.button-outline.button-outline-sm:visited,
a.button-outline.button-outline-sm:hover {
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.75;
  border-color: rgba(255, 255, 255, 0.15);
}

/* --- Contact modal page ---
   The destination for Sign In / Sign Up on prod during alpha (locally
   they go to the webapp auth pages instead — see partials/header.html). */
.contact-overlay {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}
.contact-modal {
  position: relative;
  width: 100%;
  max-width: 480px;
  padding: 3rem 2rem 2rem;
  border-radius: 16px;
  background: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 24px 80px -16px rgba(0, 0, 0, 0.6);
  text-align: center;
}
.contact-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--color-soft);
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}
.contact-modal-close:hover { color: var(--color-fg); background: rgba(255, 255, 255, 0.05); }
/* Arrow-right rotated 135° as a makeshift X — no X icon in the sprite yet. */
.contact-modal-close svg { width: 18px; height: 18px; fill: currentColor; transform: rotate(135deg); }
.contact-modal-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--color-accent) 12%, transparent);
  color: var(--color-accent);
}
.contact-modal-icon svg { width: 28px; height: 28px; fill: currentColor; }
.contact-modal-title {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-fg);
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
}
.contact-modal-sub {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--color-soft);
  margin: 0 auto 2rem;
  max-width: 360px;
}
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.contact-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border-radius: 8px;
  background: var(--color-bg);
  border: 1px solid var(--color-info);
  color: var(--color-fg);
  font-size: 1rem;
  font-family: inherit;
  box-sizing: border-box;
}
.contact-input::placeholder { color: var(--color-soft); }
.contact-input:focus {
  outline: none;
  border-color: var(--color-info);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-info) 20%, transparent);
}
.contact-submit {
  padding: 0.875rem 1rem;
  border-radius: 8px;
  background: var(--color-accent);
  color: var(--color-info);
  border: none;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: filter 0.2s;
}
.contact-submit:hover { filter: brightness(1.1); }
.contact-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.contact-status {
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
  min-height: 1.5em;
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* --- Prose pages (legal, faq, docs) --- */
.legal-body {
  color: var(--color-text-soft);
}
.legal-body .page {
  font-size: 1rem;
  line-height: 1.7;
}
.legal-body h2 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-fg);
  margin: 2.5rem 0 0.75rem;
  font-family: var(--font-display);
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body p {
  margin: 0 0 1rem;
  color: var(--color-text-soft);
}
.legal-body ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--color-text-soft);
}
.legal-body li { margin-bottom: 0.25rem; }
a.legal-link,
a.legal-link:visited {
  color: var(--color-accent-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
a.legal-link:hover {
  color: var(--color-accent-soft);
  border-bottom-color: var(--color-accent-soft);
}

/* ============================================================
   Responsive — all breakpoints consolidated here, no per-component @media.
   Nav links drop progressively as width tightens (secondary → tertiary
   → quaternary); the dropped ones stay reachable via the footer.
   ============================================================ */

/* ≤900px: shrink hero/section titles, collapse all multi-column grids. */
@media (max-width: 900px) {
  .main-content { padding: 4rem 0; }

  .section-title { font-size: 2.5rem; }
  .section-title.section-title-sm { font-size: 2rem; }
  .section-cta h2 { font-size: 1.8rem; }
  .hero h1,
  .hero-sm h1,
  .hero-xs h1,
  .hero-guide .guide-hero-title,
  .usecase-hero-title { font-size: 2.5rem; }
  .hero-pricing .price-hero { font-size: 5rem; }

  /* Medium: stack the CTA row and give each button a fixed width so
     buttons of different label lengths visually match each other. */
  .actions { flex-direction: column; align-items: center; }
  .actions > a { width: 280px; max-width: 100%; box-sizing: border-box; }

  .features-grid,
  .step-body,
  .path-picker,
  .guide-grid,
  .guide-grid-3,
  .service-type-grid,
  .warning-grid,
  .cross-nav { grid-template-columns: 1fr; }
  .step-body { gap: 1.5rem; }
}

/* ≤768px: drop secondary nav links. */
@media (max-width: 768px) { .nav-secondary { display: none; } }

/* ≤600px: shrink typography + CTA buttons go full-width. */
@media (max-width: 600px) {
  main { padding: 2rem 1rem; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .hero { padding: 1rem 0 2rem; }
  .hero-pricing .price-hero { font-size: 4rem; }
  .actions > a { width: 100%; }
}

/* ≤500px: tighten header side-padding to claim the outer edge. */
@media (max-width: 500px) { header.site { padding: 0 0.75rem; } }

/* ≤460px: drop tertiary nav links (Use Cases). */
@media (max-width: 460px) { .nav-tertiary { display: none; } }

/* ≤400px: drop quaternary nav links (Pricing). */
@media (max-width: 400px) { .nav-quaternary { display: none; } }
