/* =========================================================================
   Cadre — marketing + docs site
   Zero-build static CSS. System fonts only, no external requests.
   Theme-aware: light/dark via prefers-color-scheme + [data-theme] override.

   Design language: Apple-like minimalism — near-monochrome surfaces, one warm
   accent used sparingly, generous whitespace, hairline borders, soft depth.
   No decorative gradients: fills are flat, shadows are quiet.
   ========================================================================= */

/* ---- Design tokens ----------------------------------------------------- */
:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #fafafb;
  --border: #e6e6ea;
  --border-strong: #d2d2d7;
  --text: #1d1d1f;
  --text-2: #48484a;
  --muted: #86868b;
  --accent: #d8451c;
  --accent-2: #d8451c;
  --accent-soft: rgba(216, 69, 28, 0.08);
  --on-accent: #ffffff;
  --code-bg: #0e1013;
  --code-surface: #16181d;
  --code-text: #e6e8ec;
  --code-muted: #8b93a0;
  --code-accent: #ff9d6b;
  --code-green: #7ee0a3;
  --shadow-sm: 0 1px 2px rgba(20, 22, 26, 0.05);
  --shadow-md: 0 10px 34px -20px rgba(20, 22, 26, 0.22);
  --shadow-lg: 0 34px 80px -48px rgba(20, 22, 26, 0.32);

  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 22px;
  --radius-pill: 980px;
  --maxw: 1120px;
  --readw: 720px;
  --nav-h: 64px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Monaco,
    "Cascadia Code", "Roboto Mono", Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0d;
    --bg-soft: #101013;
    --surface: #161618;
    --surface-2: #1c1c1f;
    --border: #262629;
    --border-strong: #343439;
    --text: #f5f5f7;
    --text-2: #c7c7cc;
    --muted: #8e8e93;
    --accent: #ff6a3d;
    --accent-2: #ff6a3d;
    --accent-soft: rgba(255, 106, 61, 0.11);
    --on-accent: #17100c;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 14px 40px -22px rgba(0, 0, 0, 0.66);
    --shadow-lg: 0 44px 100px -56px rgba(0, 0, 0, 0.82);
  }
}

/* Manual theme override wins over the media query in both directions. */
:root[data-theme="light"] {
  --bg: #ffffff; --bg-soft: #f5f5f7; --surface: #ffffff; --surface-2: #fafafb;
  --border: #e6e6ea; --border-strong: #d2d2d7;
  --text: #1d1d1f; --text-2: #48484a; --muted: #86868b;
  --accent: #d8451c; --accent-2: #d8451c; --accent-soft: rgba(216, 69, 28, 0.08);
  --on-accent: #ffffff;
  --shadow-sm: 0 1px 2px rgba(20, 22, 26, 0.05);
  --shadow-md: 0 10px 34px -20px rgba(20, 22, 26, 0.22);
  --shadow-lg: 0 34px 80px -48px rgba(20, 22, 26, 0.32);
}
:root[data-theme="dark"] {
  --bg: #0b0b0d; --bg-soft: #101013; --surface: #161618; --surface-2: #1c1c1f;
  --border: #262629; --border-strong: #343439;
  --text: #f5f5f7; --text-2: #c7c7cc; --muted: #8e8e93;
  --accent: #ff6a3d; --accent-2: #ff6a3d; --accent-soft: rgba(255, 106, 61, 0.11);
  --on-accent: #17100c;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 14px 40px -22px rgba(0, 0, 0, 0.66);
  --shadow-lg: 0 44px 100px -56px rgba(0, 0, 0, 0.82);
}

/* ---- Reset / base ------------------------------------------------------ */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { letter-spacing: -0.021em; line-height: 1.1; margin: 0; font-weight: 600; }

p { margin: 0; }

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

::selection { background: var(--accent-soft); }

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

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: clamp(20px, 5vw, 48px);
  padding-right: clamp(20px, 5vw, 48px);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--accent);
  color: var(--on-accent);
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 100;
}
.skip-link:focus { left: 12px; }

/* ---- Buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.2s ease, border-color 0.2s ease,
    opacity 0.2s ease, color 0.2s ease;
}
.btn:active { transform: translateY(0.5px); }

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }
@media (prefers-color-scheme: dark) {
  .btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, #fff); }
}
:root[data-theme="dark"] .btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, #fff); }
:root[data-theme="light"] .btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }

.btn-ghost {
  border-color: var(--border-strong);
  color: var(--text);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--text); background: var(--bg-soft); }

.btn-lg { padding: 14px 30px; font-size: 16px; }
.btn-block { width: 100%; }

.btn[data-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}
/* Honour the `hidden` attribute: the class's `display` would otherwise win over
   the UA `[hidden]{display:none}` rule, so a config-hidden CTA (e.g. the monthly
   checkout while its URL is null) must be explicitly collapsed. */
.btn[hidden] { display: none; }

/* ---- Nav --------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.brand img { width: 26px; height: 26px; border-radius: 7px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a.link {
  color: var(--muted);
  font-size: 14.5px;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color 0.18s ease;
}
.nav-links a.link:hover { color: var(--text); }
.nav-links a.link[aria-current="page"] { color: var(--text); }

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.theme-toggle:hover { border-color: var(--border-strong); background: var(--bg-soft); }
.theme-toggle .sun { display: none; }
.theme-toggle .moon { display: block; }
@media (prefers-color-scheme: dark) {
  .theme-toggle .sun { display: block; }
  .theme-toggle .moon { display: none; }
}
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
:root[data-theme="light"] .theme-toggle .sun { display: none; }
:root[data-theme="light"] .theme-toggle .moon { display: block; }

@media (max-width: 640px) {
  .nav-links a.link { display: none; }
  .nav-links a.link.keep { display: inline-flex; padding: 8px; }
}

/* ---- Section rhythm ---------------------------------------------------- */
section { scroll-margin-top: calc(var(--nav-h) + 8px); }
.section { padding: clamp(64px, 10vw, 128px) 0; }
.section-tight { padding: clamp(44px, 6vw, 76px) 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 18px;
}

.section-head { max-width: var(--readw); margin: 0 0 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); letter-spacing: -0.03em; }
.section-head p { margin-top: 16px; color: var(--muted); font-size: clamp(16px, 2vw, 19px); line-height: 1.5; }

.accent { color: var(--accent); }
/* Kept for markup compatibility; the brand headline is now flat monochrome. */
.grad { color: var(--text); }

/* ---- Hero -------------------------------------------------------------- */
.hero {
  position: relative;
  padding: clamp(64px, 10vw, 116px) 0 clamp(44px, 6vw, 76px);
  overflow: hidden;
}
.hero .container { position: relative; z-index: 1; }
.hero-inner { max-width: 800px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-2);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  margin-bottom: 26px;
}
.pill .tag {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
}

.hero h1 {
  font-size: clamp(38px, 6.2vw, 62px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0 0 24px;
}
.hero .sub {
  font-size: clamp(17px, 2.1vw, 21px);
  color: var(--muted);
  max-width: 640px;
  line-height: 1.5;
  margin: 0 0 32px;
}
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.fineprint { color: var(--muted); font-size: 13.5px; margin-top: 20px; }
.fineprint.center { text-align: center; }

/* Terminal-style hero visual */
.hero-demo {
  margin-top: clamp(44px, 6vw, 68px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--code-bg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero-demo .bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--code-surface);
}
.hero-demo .dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.r { background: #ff5f57; }
.dot.y { background: #febc2e; }
.dot.g { background: #28c840; }
.hero-demo .bar .title {
  margin-left: 8px;
  font: 12.5px/1 var(--font-mono);
  color: var(--code-muted);
}
.hero-demo .body {
  padding: 24px clamp(18px, 3vw, 32px) 28px;
  font: 14px/1.75 var(--font-mono);
  color: var(--code-text);
  overflow-x: auto;
}
.hero-demo .body .prompt { color: var(--code-green); }
.hero-demo .body .you { color: var(--code-text); }
.hero-demo .body .cmt { color: var(--code-muted); }
.hero-demo .body .ok { color: var(--code-accent); }
.hero-demo .body .caret {
  display: inline-block;
  width: 8px;
  height: 15px;
  vertical-align: -2px;
  background: var(--code-accent);
  margin-left: 3px;
  animation: blink 1.1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---- Steps (how it works) --------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 4px 4px 0;
}
.step .num {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 18px;
}
.step h3 { font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; line-height: 1.55; }

/* ---- Feature grid ------------------------------------------------------ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s ease, box-shadow 0.24s ease, transform 0.2s ease;
}
.card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card .ico {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  font-size: 20px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 18px;
}
.card h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }

/* ---- Split feature (agent) -------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.split .prose h2 { font-size: clamp(26px, 3.6vw, 38px); letter-spacing: -0.03em; margin-bottom: 18px; }
.split .prose p { color: var(--muted); font-size: 17px; line-height: 1.55; margin-bottom: 16px; }
.check-list { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 13px; }
.check-list li { position: relative; padding-left: 30px; color: var(--text-2); font-size: 15px; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 5px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center/22px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center/22px no-repeat;
}

/* Code block (shared) */
.code {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--code-bg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.code .bar {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 15px;
  background: var(--code-surface);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.code .bar .title { margin-left: 6px; font: 12px/1 var(--font-mono); color: var(--code-muted); }
.code pre {
  margin: 0;
  padding: 20px;
  font: 13.5px/1.7 var(--font-mono);
  color: var(--code-text);
  overflow-x: auto;
}
.code pre .prompt { color: var(--code-green); }
.code pre .cmt { color: var(--code-muted); }
.code pre .flag { color: var(--code-accent); }
.code pre .str { color: #9ad4ff; }
.code pre b { color: #fff; font-weight: 600; }

/* Inline code */
code.inline {
  font: 0.88em var(--font-mono);
  background: var(--accent-soft);
  color: var(--accent);
  padding: 2px 6px;
  border-radius: 6px;
}

/* ---- Pricing ----------------------------------------------------------- */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  max-width: 760px;
  margin: 0 auto;
}
.plans-single {
  max-width: 440px;
}
.plan {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
}
.plan-featured {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}
.plan .badge {
  position: absolute;
  top: -12px; left: 32px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 12px; font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
}
.plan h3 { font-size: 20px; font-weight: 600; margin-bottom: 6px; }
.plan .plan-desc { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.price .amount { font-size: 44px; font-weight: 600; letter-spacing: -0.035em; }
.price .per { font-size: 15px; color: var(--muted); }
.price-alt { font-size: 13.5px; color: var(--muted); margin-bottom: 24px; }
.plan ul { list-style: none; padding: 0; margin: 8px 0 28px; display: grid; gap: 12px; }
.plan li { position: relative; padding-left: 26px; font-size: 15px; color: var(--text-2); }
.plan li::before {
  content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700;
}
.plan li.off { color: var(--muted); }
.plan li.off::before { content: "–"; color: var(--muted); }
.plan .btn { margin-top: auto; }
/* Second (monthly) CTA stacks tight under the annual one — a single auto
   margin above the pair keeps both pinned to the card bottom together. */
.plan .btn + .btn { margin-top: 10px; }
.plan .note { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 14px; }

/* ---- FAQ --------------------------------------------------------------- */
.faq { max-width: var(--readw); margin: 0 auto; display: grid; gap: 0; }
.faq details {
  border-bottom: 1px solid var(--border);
  padding: 4px 4px;
}
.faq details:first-child { border-top: 1px solid var(--border); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 4px;
  font-weight: 500;
  font-size: 16.5px;
  letter-spacing: -0.01em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--muted);
  font-weight: 300;
  font-size: 24px;
  line-height: 1;
  transition: transform 0.2s ease, color 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); color: var(--accent); }
.faq details p { color: var(--muted); font-size: 15px; line-height: 1.6; padding: 0 4px 20px; }
.faq details p a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* ---- Download CTA ------------------------------------------------------ */
.download-cta {
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  padding: clamp(48px, 6vw, 76px) clamp(24px, 5vw, 48px);
}
.download-cta img { width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 15px; }
.download-cta h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.03em; margin-bottom: 10px; }
.download-cta p.meta { color: var(--muted); margin-bottom: 26px; }

/* ---- Docs page --------------------------------------------------------- */
.doc-hero { padding: clamp(52px, 7vw, 88px) 0 clamp(28px, 4vw, 44px); }
.doc-hero .breadcrumb { font-size: 13.5px; color: var(--muted); margin-bottom: 20px; }
.doc-hero .breadcrumb a:hover { color: var(--accent); }
.doc-hero h1 { font-size: clamp(32px, 5vw, 50px); font-weight: 600; margin-bottom: 18px; letter-spacing: -0.035em; }
.doc-hero .lede { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); line-height: 1.5; max-width: 680px; }

.doc-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 5vw, 60px); }
.doc-toc { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; font-size: 14px; }
/* Not a heading: the TOC label sits before the article body, so an <h4> here
   made the document outline jump h1 -> h4. Bold is explicit because it came
   from the browser's default h4 styling, not from this rule. */
.doc-toc-label { text-transform: uppercase; letter-spacing: 0.1em; font-size: 11.5px; font-weight: 700; line-height: 1.12; color: var(--muted); margin: 0 0 12px; }
.doc-toc a { display: block; padding: 6px 0; color: var(--muted); transition: color 0.18s ease; }
.doc-toc a:hover { color: var(--accent); }

.doc-body { min-width: 0; }
.doc-body h2 { font-size: clamp(23px, 3vw, 31px); font-weight: 600; letter-spacing: -0.03em; margin: 8px 0 16px; scroll-margin-top: calc(var(--nav-h) + 16px); }
.doc-body h3 { font-size: 18px; font-weight: 600; margin: 30px 0 10px; }
.doc-body p { color: var(--text-2); line-height: 1.65; margin-bottom: 16px; max-width: 680px; }
.doc-body ul, .doc-body ol { color: var(--text-2); line-height: 1.65; max-width: 680px; padding-left: 20px; margin: 0 0 18px; }
.doc-body li { margin-bottom: 8px; }
.doc-body .block { margin-bottom: 48px; }
.doc-body .code { margin: 18px 0 8px; }
.doc-body .callout {
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-2);
  margin: 18px 0;
}

/* Tool table */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table.tools { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
table.tools th, table.tools td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); }
table.tools thead th { background: var(--surface-2); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; }
table.tools td:first-child { font-family: var(--font-mono); font-size: 13px; color: var(--accent); white-space: nowrap; }
table.tools tr:last-child td { border-bottom: none; }

.prompt-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 24px 26px;
  margin-bottom: 16px;
}
.prompt-card .quote { font-size: 16.5px; color: var(--text); margin-bottom: 10px; letter-spacing: -0.01em; }
.prompt-card .quote::before { content: "\201C"; color: var(--accent); font-weight: 700; }
.prompt-card .quote::after { content: "\201D"; color: var(--accent); font-weight: 700; }
.prompt-card .does { font-size: 14px; line-height: 1.6; color: var(--muted); }

/* ---- Footer ------------------------------------------------------------ */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 56px;
  margin-top: 24px;
}
.footer .container { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.footer .brand.small { font-size: 15px; }
.footer .brand.small img { width: 22px; height: 22px; }
.footer .tag { color: var(--muted); font-size: 13.5px; line-height: 1.5; margin-top: 12px; max-width: 320px; }
.footer nav { display: flex; gap: 48px; flex-wrap: wrap; }
.footer .col h5 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 14px; font-weight: 600; }
.footer .col a { display: block; color: var(--text-2); font-size: 14px; padding: 5px 0; transition: color 0.18s ease; }
.footer .col a:hover { color: var(--accent); }
.footer .legal { width: 100%; border-top: 1px solid var(--border); margin-top: 16px; padding-top: 24px; color: var(--muted); font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---- Purchase activation handoff -------------------------------------- */
.activation-page {
  min-height: calc(100vh - var(--nav-h) - 76px);
  display: grid;
  place-items: center;
  padding: 64px 20px;
}

.activation-card {
  width: min(100%, 600px);
  padding: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.activation-card > img { border-radius: 17px; box-shadow: var(--shadow-md); }
.activation-card .eyebrow { margin: 22px 0 8px; }
.activation-card h1 { font-size: clamp(34px, 7vw, 50px); }
.activation-message { margin: 18px auto 0; max-width: 470px; color: var(--text-2); }
.activation-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

.activation-key-row {
  margin-top: 24px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  text-align: left;
}

.activation-key-row span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.activation-key-row code { display: block; overflow-wrap: anywhere; color: var(--text); font-family: var(--font-mono); font-size: 13px; }
.activation-fallback { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--border); }
.activation-fallback h2 { font-size: 19px; }
.activation-fallback p { margin: 10px auto 18px; max-width: 460px; color: var(--muted); font-size: 14px; }
.activation-security { margin: 26px 0 0; color: var(--muted); font-size: 12px; }
.activation-footer { min-height: 76px; padding: 22px 28px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 13px; }
.activation-footer a { color: var(--text); font-weight: 600; }

@media (max-width: 600px) {
  .activation-page { padding: 28px 14px; }
  .activation-card { padding: 32px 20px; }
  .activation-actions .btn { width: 100%; }
  .activation-footer { flex-direction: column; text-align: center; }
}

/* ---- Comparison matrix + guide extras (SEO cornerstone pages) ---------- */
/* Additive only — new classes, no changes to existing components. Uses the
   same design tokens as everything above, so it inherits light/dark theming. */
.matrix-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 20px 0 8px;
}
table.matrix { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
table.matrix th, table.matrix td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
table.matrix thead th {
  background: var(--surface-2);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 600;
}
table.matrix thead th.col-cadre { color: var(--accent); }
table.matrix tbody th { font-weight: 600; color: var(--text); white-space: nowrap; }
table.matrix td.col-cadre, table.matrix th.col-cadre { background: var(--accent-soft); }
table.matrix tr:last-child th, table.matrix tr:last-child td { border-bottom: none; }
table.matrix .yes { color: var(--accent); font-weight: 700; }
table.matrix .no { color: var(--muted); }
table.matrix .sub { display: block; color: var(--muted); font-size: 12.5px; margin-top: 3px; font-weight: 400; }

/* Compact centred call-to-action used mid-guide and at the foot of a page. */
.cta-band {
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  padding: clamp(40px, 5vw, 60px) clamp(22px, 5vw, 44px);
  margin: 44px 0 8px;
}
.cta-band h2 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.03em; margin-bottom: 12px; }
.cta-band p { color: var(--muted); line-height: 1.55; margin: 0 auto 22px; max-width: 540px; }
.cta-band .cta-row { justify-content: center; }

/* Lightweight "key takeaway" lead-in box for the top of a guide. */
.tldr {
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  margin: 4px 0 28px;
}
.tldr strong { color: var(--text); }
.tldr p { color: var(--text-2); line-height: 1.6; margin: 0; font-size: 15px; }

/* ---- Responsive -------------------------------------------------------- */
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .split { grid-template-columns: 1fr; }
  .doc-layout { grid-template-columns: 1fr; }
  .doc-toc { display: none; }
}
@media (max-width: 480px) {
  .cta-row .btn { width: 100%; }
}
