/* =========================================================================
   FastCP marketing site
   One stylesheet, no build step. Tokens first, then layout, then components.
   Dark mode is a token swap: nothing below the token block hard-codes a color.
   ========================================================================= */

/* ---------- Fonts (self-hosted; no third-party requests) ---------- */
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/instrument-sans-latin.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: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/instrument-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/jetbrains-mono-latin.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 {
  color-scheme: light;

  --bg: #fbfcfb;
  --bg-alt: #f4f7f5;
  --surface: #ffffff;
  --surface-2: #f7faf8;

  --text: #131a16;
  --text-2: #3f4944;
  --muted: #5b6662;
  --subtle: #66716c;

  --border: #e4e9e6;
  --border-strong: #ccd5d0;

  --brand: #0c9373;
  --brand-hover: #0a7e63;
  --brand-text: #0a7e63;
  --brand-ink: #064f40;
  --brand-tint: #e6f4ef;
  --brand-ring: rgba(12, 147, 115, 0.32);

  /* Sections that stay dark in both themes. */
  --ink: #0f1512;
  --ink-2: #182119;
  --ink-border: #253029;
  --ink-text: #eef1ef;
  --ink-muted: #a4b0aa;

  --shadow-sm: 0 1px 2px rgba(15, 21, 18, 0.04), 0 1px 3px rgba(15, 21, 18, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 21, 18, 0.06), 0 12px 32px rgba(15, 21, 18, 0.06);
  --shadow-lg: 0 8px 24px rgba(15, 21, 18, 0.08), 0 32px 64px rgba(15, 21, 18, 0.1);

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 26px;

  --wrap: 1140px;
  --gutter: clamp(20px, 5vw, 40px);
  --section: clamp(72px, 10vw, 132px);

  --font-sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system,
    "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas,
    monospace;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;

    --bg: #0c110f;
    --bg-alt: #101714;
    --surface: #131a16;
    --surface-2: #172019;

    --text: #eef1ef;
    --text-2: #ccd5d0;
    --muted: #a4b0aa;
    --subtle: #8a948f;

    --border: #232e28;
    --border-strong: #33403a;

    --brand: #2fbf96;
    --brand-hover: #57cbab;
    --brand-text: #2fbf96;
    --brand-ink: #bfe0d5;
    --brand-tint: rgba(47, 191, 150, 0.12);
    --brand-ring: rgba(47, 191, 150, 0.34);

    --ink: #0a0f0d;
    --ink-2: #121a16;
    --ink-border: #222c26;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.32), 0 12px 32px rgba(0, 0, 0, 0.28);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4), 0 32px 64px rgba(0, 0, 0, 0.36);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-wrap: pretty;
  overflow-wrap: break-word;
}

h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* ---------- Layout primitives ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }
.section-tight { padding-block: clamp(56px, 7vw, 96px); }

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  background: var(--brand);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top 160ms var(--ease);
}
.skip-link:focus-visible { top: 12px; }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 6px 14px;
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-tint);
}

.section-label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-text);
}

h1, .h1 {
  font-size: clamp(2.5rem, 1.4rem + 4.6vw, 4.5rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
  font-weight: 600;
}

h2, .h2 {
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 600;
}

h3, .h3 {
  font-size: 1.15rem;
  line-height: 1.35;
  letter-spacing: -0.015em;
  font-weight: 600;
}

.lede {
  font-size: clamp(1.05rem, 0.98rem + 0.4vw, 1.25rem);
  line-height: 1.62;
  color: var(--muted);
}

.section-head { max-width: 62ch; }
.section-head h2 + p { margin-top: 18px; }
.section-head .section-label + h2 { margin-top: 14px; }

code, kbd, samp, pre { font-family: var(--font-mono); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease),
    color 160ms var(--ease), transform 160ms var(--ease), box-shadow 160ms var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 1px 2px rgba(6, 79, 64, 0.24), 0 6px 18px var(--brand-ring);
}
.btn-primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: #fff; }

.btn-secondary {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { border-color: var(--brand); color: var(--brand-text); }

.btn-ghost { color: var(--muted); padding-inline: 6px; }
.btn-ghost:hover { color: var(--text); }

.btn-lg { padding: 15px 26px; font-size: 1rem; }
.btn-sm { padding: 9px 15px; font-size: 0.875rem; }
.btn-block { width: 100%; }

.btn-on-ink {
  background: var(--ink-text);
  border-color: var(--ink-text);
  color: var(--ink);
  box-shadow: none;
}
.btn-on-ink:hover { background: #fff; border-color: #fff; color: var(--ink); }

.btn-outline-ink {
  background: transparent;
  border-color: var(--ink-border);
  color: var(--ink-text);
}
.btn-outline-ink:hover { border-color: var(--ink-muted); color: #fff; }

.arrow { transition: transform 200ms var(--ease); }
.btn:hover .arrow, .link-arrow:hover .arrow { transform: translateX(3px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--brand-text);
}
.link-arrow:hover { color: var(--brand-hover); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg); /* fallback where color-mix is unsupported */
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease), background-color 200ms var(--ease);
}
.site-header[data-scrolled="true"] {
  border-bottom-color: var(--border);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
}

.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand picture { display: block; }
.brand img { width: 108px; height: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 0.94rem;
  color: var(--muted);
}
.nav a { position: relative; padding-block: 4px; transition: color 160ms var(--ease); }
.nav a:hover { color: var(--text); }
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1.5px;
  background: var(--brand);
  transition: right 220ms var(--ease);
}
.nav a:hover::after { right: 0; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.94rem;
}
.header-actions .signin { color: var(--muted); font-weight: 500; }
.header-actions .signin:hover { color: var(--text); }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.nav-toggle span {
  position: relative;
  display: block;
  width: 17px;
  height: 1.5px;
  background: var(--text);
  transition: transform 200ms var(--ease), background-color 200ms var(--ease);
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 17px;
  height: 1.5px;
  background: var(--text);
  transition: transform 200ms var(--ease);
}
.nav-toggle span::before { top: -5.5px; }
.nav-toggle span::after { top: 5.5px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-5.5px) rotate(-45deg); }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.mobile-nav[data-open="true"] { display: block; }
.mobile-nav ul {
  display: grid;
  gap: 2px;
  padding-block: 12px 20px;
}
.mobile-nav ul a {
  display: block;
  padding: 12px 4px;
  font-size: 1.05rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}
.mobile-nav .mobile-cta { display: grid; gap: 10px; padding-bottom: 24px; }

@media (max-width: 900px) {
  .nav, .header-actions .signin, .header-actions .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  /* Pages with no menu sheet (404) keep their one button at every width. */
  .header-actions--always .btn { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(56px, 8vw, 104px) clamp(56px, 7vw, 88px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -30% 0 auto -10%;
  width: 70%;
  aspect-ratio: 1;
  background: radial-gradient(circle at 40% 40%, var(--brand-tint), transparent 62%);
  opacity: 0.9;
  pointer-events: none;
}
.hero > * { position: relative; }

.hero h1 { margin-top: 26px; max-width: 16ch; }
.hero .lede { margin-top: 24px; max-width: 54ch; }

.hero-actions {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 18px;
  font-size: 0.875rem;
  color: var(--subtle);
}

.hero-facts {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 3vw, 32px);
}
.hero-facts li {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  font-size: 0.92rem;
  color: var(--muted);
}
.hero-facts strong {
  display: block;
  color: var(--text);
  font-weight: 600;
  font-size: 0.98rem;
  margin-bottom: 3px;
}

@media (max-width: 720px) {
  .hero-facts { grid-template-columns: 1fr; gap: 14px; }
}

/* ---------- Product panel (hand-built UI, not a screenshot) ---------- */
.panel {
  margin-top: clamp(48px, 6vw, 72px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.panel-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.panel-bar .lights { display: flex; gap: 6px; }
.panel-bar .lights i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border-strong);
}
.panel-bar .crumb {
  margin-left: 8px;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--subtle);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.panel-bar .status {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-text);
}

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 0 var(--brand-ring);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 var(--brand-ring); }
  70% { box-shadow: 0 0 0 7px rgba(12, 147, 115, 0); }
  100% { box-shadow: 0 0 0 0 rgba(12, 147, 115, 0); }
}

.panel-body {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0;
}
.panel-col { padding: clamp(20px, 3vw, 30px); }
.panel-col + .panel-col { border-left: 1px solid var(--border); }

.panel-col h4 {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--subtle);
  margin-bottom: 16px;
}

.app-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}
.app-row:last-child { border-bottom: 0; padding-bottom: 0; }

.app-badge {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: var(--brand-tint);
  color: var(--brand-ink);
}
.app-badge.alt { background: var(--bg-alt); color: var(--muted); }

.app-meta { min-width: 0; flex: 1; }
.app-meta .name {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-meta .sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--subtle);
  margin-top: 2px;
}

.tag {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--brand-tint);
  color: var(--brand-ink);
}
.tag.neutral { background: var(--bg-alt); color: var(--muted); }

.meter { display: grid; gap: 14px; }
.meter-item .meter-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 7px;
}
.meter-item .meter-top b { color: var(--text); font-weight: 600; font-family: var(--font-mono); }
.meter-track {
  height: 6px;
  border-radius: 999px;
  background: var(--bg-alt);
  overflow: hidden;
}
.meter-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--brand-hover));
  transform-origin: left;
  animation: fill 1.1s var(--ease) both;
}
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.checklist { display: grid; gap: 11px; margin-top: 22px; }
.checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  color: var(--muted);
}
.checklist .tick {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
}
.checklist .tick svg { width: 11px; height: 11px; }
.checklist li.pending .tick { background: var(--bg-alt); color: var(--subtle); }

@media (max-width: 820px) {
  .panel-body { grid-template-columns: 1fr; }
  .panel-col + .panel-col { border-left: 0; border-top: 1px solid var(--border); }
}

/* ---------- Stack strip ---------- */
.stack-strip {
  border-block: 1px solid var(--border);
  background: var(--bg-alt);
}
.stack-strip .wrap {
  padding-block: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 4vw, 48px);
  flex-wrap: wrap;
}
.stack-strip .label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--subtle);
}
.stack-strip li {
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-2);
}
.stack-strip ul {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
  flex-wrap: wrap;
  justify-content: center;
}

/* ---------- Compare ---------- */
.compare {
  margin-top: clamp(36px, 5vw, 56px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2vw, 24px);
}
.compare-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 34px);
  background: var(--bg-alt);
}
.compare-card.is-fastcp {
  background: var(--surface);
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
}
.compare-card .kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--subtle);
}
.compare-card.is-fastcp .kicker { color: var(--brand-text); }
.compare-card h3 { margin-top: 12px; font-size: 1.28rem; }
.compare-card ul { margin-top: 22px; display: grid; gap: 14px; }
.compare-card li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 11px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--muted);
}
.compare-card.is-fastcp li { color: var(--text-2); }
.compare-card li svg { width: 17px; height: 17px; margin-top: 3px; color: var(--subtle); }
.compare-card.is-fastcp li svg { color: var(--brand-text); }

@media (max-width: 800px) { .compare { grid-template-columns: 1fr; } }

/* ---------- Features ---------- */
.features {
  margin-top: clamp(36px, 4vw, 56px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
}
.feature {
  padding: clamp(28px, 3vw, 38px) clamp(20px, 2.4vw, 32px);
  border-bottom: 1px solid var(--border);
  border-left: 1px solid var(--border);
  transition: background-color 200ms var(--ease);
}
.feature:nth-child(3n + 1) { border-left: 0; padding-left: 0; }
.feature:nth-child(3n) { padding-right: 0; }
.feature:hover { background: var(--surface); }

.feature-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--brand-tint);
  color: var(--brand-ink);
  margin-bottom: 18px;
}
.feature-icon svg { width: 19px; height: 19px; }
.feature h3 { font-size: 1.05rem; }
.feature p { margin-top: 10px; font-size: 0.94rem; line-height: 1.62; color: var(--muted); }

@media (max-width: 900px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .feature:nth-child(3n + 1) { border-left: 1px solid var(--border); padding-left: clamp(20px, 2.4vw, 32px); }
  .feature:nth-child(3n) { padding-right: clamp(20px, 2.4vw, 32px); }
  .feature:nth-child(2n + 1) { border-left: 0; padding-left: 0; }
  .feature:nth-child(2n) { padding-right: 0; }
}
@media (max-width: 620px) {
  .features { grid-template-columns: 1fr; }
  .feature { border-left: 0 !important; padding-inline: 0 !important; }
}

/* ---------- Dark band (steps + security) ---------- */
.band {
  background: var(--ink);
  color: var(--ink-text);
}
.band h2 { color: var(--ink-text); }
.band .lede { color: var(--ink-muted); }
.band .section-label { color: var(--brand); }

.steps {
  margin-top: clamp(40px, 5vw, 66px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 40px);
  counter-reset: step;
}
.step { border-top: 1px solid var(--ink-border); padding-top: 24px; }
.step .num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--brand);
  letter-spacing: 0.08em;
}
.step h3 { margin-top: 16px; font-size: 1.25rem; color: var(--ink-text); }
.step p { margin-top: 11px; font-size: 0.95rem; line-height: 1.65; color: var(--ink-muted); }

@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

.assurances {
  margin-top: clamp(36px, 4vw, 52px);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2vw, 22px);
}
.assurance {
  border: 1px solid var(--ink-border);
  border-radius: var(--radius);
  background: var(--ink-2);
  padding: clamp(20px, 2.4vw, 26px);
}
.assurance .assurance-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(47, 191, 150, 0.14);
  color: var(--brand);
  margin-bottom: 16px;
}
.assurance .assurance-icon svg { width: 17px; height: 17px; }
.assurance h3 { font-size: 1rem; color: var(--ink-text); }
.assurance p { margin-top: 8px; font-size: 0.92rem; line-height: 1.6; color: var(--ink-muted); }

@media (max-width: 720px) { .assurances { grid-template-columns: 1fr; } }

/* ---------- Pricing ---------- */
.pricing-grid {
  margin-top: clamp(36px, 4vw, 52px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 26px);
  max-width: 860px;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: clamp(26px, 3vw, 34px);
}
.plan.featured {
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
}
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan h3 { font-size: 1.2rem; }
.plan .badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
}
.plan .tagline { margin-top: 8px; font-size: 0.92rem; color: var(--muted); }
.plan .price {
  margin-top: 26px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.plan .amount {
  font-size: clamp(2.4rem, 2rem + 1.4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}
.plan .per { font-size: 0.9rem; color: var(--muted); }
.plan ul { margin-top: 26px; display: grid; gap: 12px; flex: 1; }
.plan li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 11px;
  font-size: 0.93rem;
  line-height: 1.5;
  color: var(--text-2);
}
.plan li svg { width: 16px; height: 16px; margin-top: 3px; color: var(--brand-text); }
.plan li.off { color: var(--subtle); }
.plan li.off svg { color: var(--border-strong); }
.plan .btn { margin-top: 30px; }

.pricing-note {
  margin-top: 22px;
  font-size: 0.88rem;
  color: var(--subtle);
  max-width: 62ch;
}

@media (max-width: 720px) { .pricing-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { margin-top: clamp(32px, 4vw, 48px); max-width: 820px; }
.faq details {
  border-top: 1px solid var(--border);
}
.faq details:last-of-type { border-bottom: 1px solid var(--border); }
.faq summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.012em;
  cursor: pointer;
  list-style: none;
  transition: color 160ms var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--brand-text); }
.faq summary .sign {
  flex-shrink: 0;
  position: relative;
  width: 14px;
  height: 14px;
  margin-top: 5px;
}
.faq summary .sign::before,
.faq summary .sign::after {
  content: "";
  position: absolute;
  background: var(--subtle);
  transition: transform 220ms var(--ease), opacity 220ms var(--ease);
}
.faq summary .sign::before { top: 6px; left: 0; width: 14px; height: 1.6px; }
.faq summary .sign::after { left: 6px; top: 0; width: 1.6px; height: 14px; }
.faq details[open] summary .sign::after { transform: rotate(90deg); opacity: 0; }
.faq details[open] summary { color: var(--text); }
.faq .answer {
  padding: 0 48px 24px 0;
  font-size: 0.98rem;
  line-height: 1.68;
  color: var(--muted);
  animation: fade-in 260ms var(--ease) both;
}
@keyframes fade-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---------- Final CTA ---------- */
.cta-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  padding: clamp(36px, 5vw, 68px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(28px, 4vw, 56px);
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-card::after {
  content: "";
  position: absolute;
  right: -12%;
  top: -60%;
  width: 46%;
  aspect-ratio: 1;
  background: radial-gradient(circle at center, var(--brand-tint), transparent 66%);
  pointer-events: none;
}
.cta-card > * { position: relative; }
.cta-card .cta-copy { flex: 1 1 400px; }
.cta-card h2 { max-width: 20ch; }
.cta-card p { margin-top: 16px; max-width: 44ch; }
.cta-actions { flex: 0 0 auto; display: grid; gap: 12px; min-width: 250px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}
.footer-grid {
  padding-block: clamp(48px, 6vw, 68px) 40px;
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: clamp(28px, 4vw, 48px);
}
.footer-grid .about p {
  margin-top: 16px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 32ch;
}
.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--subtle);
}
.footer-col ul { margin-top: 16px; display: grid; gap: 11px; }
.footer-col a { font-size: 0.92rem; color: var(--muted); transition: color 160ms var(--ease); }
.footer-col a:hover { color: var(--brand-text); }

.footer-base {
  border-top: 1px solid var(--border);
  padding-block: 22px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--subtle);
}
.footer-base .status-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid .about { grid-column: 1 / -1; }
}

/* ---------- Legal pages ---------- */
.legal-hero { padding-block: clamp(48px, 6vw, 76px) 0; }
.legal-hero .updated {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--subtle);
  letter-spacing: 0.02em;
}
.legal-hero h1 {
  margin-top: 14px;
  font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.1rem);
}
.legal-hero p { margin-top: 18px; max-width: 60ch; }

.legal-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  padding-block: clamp(40px, 5vw, 64px) var(--section);
}

.toc {
  position: sticky;
  top: 96px;
  border-left: 1px solid var(--border);
  padding-left: 20px;
}
.toc h2 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--subtle);
}
.toc ul { margin-top: 16px; display: grid; gap: 10px; }
.toc a { font-size: 0.88rem; color: var(--muted); }
.toc a:hover { color: var(--brand-text); }

@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; }
  .toc { position: static; border-left: 0; padding-left: 0; border-top: 1px solid var(--border); padding-top: 24px; }
}

.prose { max-width: 68ch; }
.prose h2 {
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  margin-top: 52px;
  scroll-margin-top: 96px;
}
.prose h2:first-child { margin-top: 0; }
.prose p { margin-top: 16px; color: var(--muted); line-height: 1.72; }
.prose ul { margin-top: 16px; display: grid; gap: 12px; }
.prose ul li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 11px;
  color: var(--muted);
  line-height: 1.66;
}
.prose ul li svg { width: 16px; height: 16px; margin-top: 5px; color: var(--brand-text); }
.prose a { color: var(--brand-text); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--brand-hover); }
.prose strong { color: var(--text); font-weight: 600; }

.callout {
  margin-top: 44px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 20px 22px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- 404 ---------- */
.error-page {
  min-height: 72vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: var(--section);
}
.error-page .code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  color: var(--brand-text);
}
.error-page h1 { margin-top: 16px; }
.error-page p { margin-top: 18px; margin-inline: auto; max-width: 44ch; }
.error-page .hero-actions { justify-content: center; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms var(--ease), transform 620ms var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .toc, .hero-actions, .cta-actions { display: none; }
  body { background: #fff; color: #000; }
}

/* ---------- Utilities (kept last; they exist so no HTML needs a style attribute,
   which lets the Content-Security-Policy stay free of 'unsafe-inline') ---------- */
.icon-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.d1 { --reveal-delay: 70ms; }
.d2 { --reveal-delay: 140ms; }
.d3 { --reveal-delay: 210ms; }

.band-split { border-top: 1px solid var(--ink-border); }

.meter-fill.v18 { width: 18%; }
.meter-fill.v41 { width: 41%; }
.meter-fill.v26 { width: 26%; }

.footer-base--plain { border-top: 0; }
.footer-base a { color: var(--muted); transition: color 160ms var(--ease); }
.footer-base a:hover { color: var(--brand-text); }
