/* toolkit.bot — site stylesheet.
 * Token architecture follows the Wohnspinne model; the skin is toolkit.bot's own:
 * warm terracotta/leather brand, warm paper surfaces, Literata serif display.
 * Light theme only for now; dark theme later = a second :root block overriding
 * the semantic aliases under prefers-color-scheme + [data-theme="dark"]. */

/* ── Fonts (self-hosted, latin subsets, variable) ── */
@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/static/fonts/literata-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Literata';
  font-style: italic;
  font-weight: 400 600;
  font-display: swap;
  src: url('/static/fonts/literata-italic-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/static/fonts/inter-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Design tokens ── */
:root {
  /* Base palette — brand: warm terracotta / leather */
  --c-brand-50:  #faf1ec;
  --c-brand-100: #f3e1d7;
  --c-brand-200: #e6c6b4;
  --c-brand-400: #c17c5c;
  --c-brand-500: #a85f3f;
  --c-brand-600: #8f4a2e;
  --c-brand-700: #74391f;

  --c-green-50:  #eef7ec;
  --c-green-100: #dcefd8;
  --c-green-600: #2e7d43;
  --c-green-700: #256636;

  --c-amber-50:  #fdf6e3;
  --c-amber-200: #ecd9a0;
  --c-amber-800: #6e4a12;
  --c-amber-900: #5c3d0e;

  --c-paper-50:  #faf7f2;
  --c-paper-0:   #fffdf9;
  --c-paper-100: #f3ede3;
  --c-paper-200: #e7dfd2;
  --c-paper-300: #d6cab8;
  --c-ink-300:   #a89b88;
  --c-ink-400:   #6f6657;
  --c-ink-600:   #5c5245;
  --c-ink-900:   #221c14;

  --c-red-600:   #a03123;

  /* Semantic aliases */
  --bg-page:     var(--c-paper-50);
  --bg-surface:  var(--c-paper-0);
  --bg-subtle:   var(--c-paper-100);
  --bg-hover:    var(--c-brand-50);
  --border:        var(--c-paper-200);
  --border-strong: var(--c-paper-300);
  --text-primary:   var(--c-ink-900);
  --text-secondary: var(--c-ink-600);
  --text-muted:     var(--c-ink-400);
  --text-inverse:   var(--c-paper-0);
  --text-link:      var(--c-brand-600);
  --interactive:       var(--c-brand-600);
  --interactive-hover: var(--c-brand-700);
  --interactive-focus: var(--c-brand-400);
  --focus-ring: 0 0 0 3px var(--c-brand-100);

  --font-serif: 'Literata', Georgia, 'Times New Roman', serif;
  --font-sans:  'Inter', -apple-system, 'Segoe UI', sans-serif;

  --r-sm: 4px; --r-md: 6px; --r-lg: 10px; --r-xl: 16px; --r-full: 9999px;

  --shadow-xs: 0 1px 2px 0 rgb(60 42 20 / 0.06);
  --shadow-sm: 0 1px 3px 0 rgb(60 42 20 / 0.08), 0 1px 2px -1px rgb(60 42 20 / 0.08);
  --shadow-md: 0 4px 6px -1px rgb(60 42 20 / 0.1), 0 2px 4px -2px rgb(60 42 20 / 0.1);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 100ms;
  --dur-normal: 200ms;
}

/* ── Automatic dark theme ──
 * Inline styles across ~1000 content pages reference the BASE ramp via var(),
 * so dark mode redefines the ramp itself: paper turns to warm near-black ink,
 * ink turns to warm paper. Semantic aliases follow automatically. Every pair
 * below is contrast-checked (AA) — see the redesign commit. */
@media (prefers-color-scheme: dark) {
  :root {
    --c-brand-50:  #2c2118;
    --c-brand-100: #3a2a1d;
    --c-brand-200: #59402c;
    --c-brand-400: #b0714b;
    --c-brand-500: #c07f56;
    --c-brand-600: #cf8f66;
    --c-brand-700: #dd9f78;   /* hover goes lighter in the dark */

    --c-green-50:  #1d2a1c;
    --c-green-100: #2a3d26;
    --c-green-600: #6fbc82;
    --c-green-700: #8ccf9d;

    --c-amber-50:  #2b2410;
    --c-amber-200: #4d3f14;
    --c-amber-800: #d9b967;
    --c-amber-900: #e5ca85;

    --c-paper-50:  #16120d;
    --c-paper-0:   #1e1913;
    --c-paper-100: #292219;
    --c-paper-200: #382f22;
    --c-paper-300: #4d4130;
    --c-ink-300:   #6f6350;
    --c-ink-400:   #a3957c;
    --c-ink-600:   #c9bda9;
    --c-ink-900:   #ede5d8;

    --c-red-600:   #e28d70;

    --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.4);
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.5), 0 1px 2px -1px rgb(0 0 0 / 0.5);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.55), 0 2px 4px -2px rgb(0 0 0 / 0.55);
  }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  background: var(--bg-page); color: var(--text-primary);
  min-height: 100vh; display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--text-link); text-decoration: none; }
a:hover { color: var(--interactive-hover); text-decoration: underline; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--r-sm); }
h1, h2, h3 { font-family: var(--font-serif); letter-spacing: -0.01em; color: var(--text-primary); }

/* ── Site header / footer ── */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--bg-surface); border-bottom: 1px solid var(--border);
  width: 100%;
}
.site-header .wrap {
  max-width: 1080px; margin: 0 auto; height: 60px; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.logo:hover { text-decoration: none; }
.logo svg { flex-shrink: 0; }
.logo-word {
  font-family: var(--font-serif); font-size: 19px; font-weight: 700;
  color: var(--text-primary);
}
.logo-word span { color: var(--interactive); }
.site-nav { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.nav-link {
  font-size: 14px; font-weight: 500; color: var(--text-secondary);
  padding: 8px 12px; border-radius: var(--r-md);
}
.nav-link:hover { background: var(--bg-subtle); color: var(--text-primary); text-decoration: none; }
.nav-cta {
  font-size: 14px; font-weight: 600; color: var(--text-inverse);
  background: var(--interactive); padding: 8px 16px; border-radius: var(--r-md);
  transition: background var(--dur-fast) var(--ease);
}
.nav-cta:hover { background: var(--interactive-hover); color: var(--text-inverse); text-decoration: none; }

.site-footer {
  background: var(--bg-surface); border-top: 1px solid var(--border);
  padding: 32px 24px; margin-top: 48px; width: 100%;
}
.site-footer .wrap {
  max-width: 1080px; margin: 0 auto; display: flex; flex-direction: column;
  gap: 12px; align-items: center; text-align: center;
  color: var(--text-muted); font-size: 0.85rem;
}
.site-footer a { color: var(--text-secondary); }

.announce {
  background: var(--c-green-50); border-bottom: 1px solid var(--c-green-100);
  padding: 8px 24px; text-align: center; font-size: 13px; color: var(--c-green-700);
  width: 100%;
}
.announce a { color: var(--text-link); font-weight: 500; }

/* ── Buttons ── */
.btn-primary, .upload-cta, .plan-cta.primary, .cta-box .btn {
  display: inline-block; background: var(--interactive); color: var(--text-inverse);
  font-family: inherit; font-weight: 600; text-decoration: none;
  padding: 0.75rem 1.75rem; border-radius: var(--r-md); border: none; cursor: pointer;
  transition: background var(--dur-fast) var(--ease);
}
.btn-primary:hover, .upload-cta:hover, .plan-cta.primary:hover, .cta-box .btn:hover {
  background: var(--interactive-hover); color: var(--text-inverse); text-decoration: none;
}
.btn-outline, .plan-cta.secondary {
  display: inline-block; border: 1px solid var(--border-strong); color: var(--text-primary);
  background: var(--bg-surface); padding: 0.6rem 1.4rem; border-radius: var(--r-md);
  text-decoration: none; font-weight: 600; font-size: 0.92rem; cursor: pointer;
  transition: background var(--dur-fast) var(--ease);
}
.btn-outline:hover, .plan-cta.secondary:hover {
  background: var(--bg-subtle); color: var(--text-primary); text-decoration: none;
  border-color: var(--border-strong);
}

/* ── Shared page shell (.container pages) ── */
.container { max-width: 720px; width: 100%; margin: 0 auto; padding: 2rem 1.5rem 0; flex: 1; }
.container h1 { font-size: 2.2rem; font-weight: 600; margin: 1.5rem 0 0.5rem; text-align: center; }
.subtitle { color: var(--text-secondary); margin-bottom: 2.5rem; font-size: 1.1rem; text-align: center; }
.back { color: var(--text-link); font-size: 0.95rem; }

/* legacy tier cards (premium/shell pages) */
.tiers { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem; }
.tier { border: 1px solid var(--border); background: var(--bg-surface); border-radius: var(--r-xl); padding: 2rem; flex: 1; min-width: 260px; max-width: 320px; }
.tier.highlighted { border-color: var(--interactive); }
.tier h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.tier .price { font-size: 2rem; font-family: var(--font-serif); font-weight: 600; }
.tier .period { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1rem; }
.tier ul { list-style: none; padding: 0; margin-bottom: 1.5rem; color: var(--text-secondary); font-size: 0.95rem; line-height: 2; }
.tier ul li::before { content: "✓ "; color: var(--c-green-600); }
.tier .btn { display: inline-block; background: var(--interactive); color: var(--text-inverse); padding: 0.6rem 1.5rem; border-radius: var(--r-md); text-decoration: none; font-weight: 600; width: 100%; text-align: center; }
.tier .btn:hover { background: var(--interactive-hover); }
.tier .btn-outline { background: transparent; border: 1px solid var(--interactive); color: var(--interactive); }
.tier .btn-outline:hover { background: var(--bg-hover); }
.premium-intro { color: var(--text-primary); font-size: 1.05rem; line-height: 1.7; margin-bottom: 2rem; text-align: center; }
.checklist { list-style: none; padding: 0; display: inline-block; text-align: left; color: var(--text-secondary); font-size: 1rem; line-height: 2.2; margin-bottom: 2rem; }
.checklist li::before { content: "✓ "; color: var(--c-green-600); font-weight: 600; }
.cta-box { text-align: center; margin: 2rem 0; }

/* ── Homepage ── */
.home-main { flex: 1; width: 100%; }
.home-col { max-width: 640px; margin: 0 auto; padding: 0 1.5rem; }
.hero { text-align: center; padding: 3rem 0 0; }
.hero h1 {
  font-size: clamp(2rem, 6vw, 2.75rem); font-weight: 600;
  line-height: 1.15; margin-bottom: 0.75rem; text-wrap: pretty;
}
.hero h1 em { font-style: normal; color: var(--interactive); }
.hero-sub { color: var(--text-secondary); font-size: 1.05rem; margin-bottom: 1.5rem; line-height: 1.5; }
.badge-row { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-bottom: 1.5rem; }
.badge {
  background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--r-full);
  padding: 0.3rem 0.85rem; font-size: 0.82rem; color: var(--text-secondary); white-space: nowrap;
}
#conversion-counter { color: var(--text-muted); font-size: 0.85rem; margin-top: 0.25rem; min-height: 1.2em; }
.plan-pill {
  background: var(--c-brand-50); color: var(--interactive); border: 1px solid var(--c-brand-200);
  border-radius: var(--r-full); padding: 0.15rem 0.6rem; font-size: 0.78rem; margin-right: 0.5rem;
}
/* The nav CTA becomes a pill for subscribers — keep the pill colours on hover. */
.nav-link.plan-pill:hover { background: var(--c-brand-50); color: var(--interactive); }

/* converter card */
.upload-wrap {
  margin: 1.75rem 0 0.75rem; background: var(--bg-surface);
  border: 1px solid var(--border); border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm); padding: 24px; text-align: left;
}
.upload-area {
  border: 2px dashed var(--border-strong); border-radius: var(--r-lg);
  padding: 2.75rem 1.5rem 2.5rem; text-align: center;
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
  position: relative; cursor: pointer;
}
.upload-area:hover, .upload-area.dragover { border-color: var(--c-brand-400); background: var(--c-brand-50); }
.upload-area input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.upload-icon {
  width: 48px; height: 48px; margin: 0 auto 14px; border-radius: var(--r-full);
  background: var(--c-brand-50); color: var(--interactive);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 600;
}
.upload-cta { font-size: 1.02rem; margin-bottom: 0.75rem; pointer-events: none; }
.upload-hint { color: var(--text-muted); font-size: 0.85rem; }
.trust-strip {
  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--bg-subtle);
  display: flex; justify-content: center; gap: 10px; flex-wrap: wrap;
  font-size: 12px; color: var(--text-muted);
}
.trust-strip .dot { color: var(--border-strong); }

/* monthly allowance meter, under the uploader */
.usage-meter { margin-top: 0.9rem; }
.usage-bar {
  height: 5px; border-radius: 999px; background: var(--bg-subtle); overflow: hidden;
}
.usage-bar-fill {
  display: block; height: 100%; width: 0; border-radius: 999px;
  background: var(--c-brand-400); transition: width 0.3s ease;
}
.usage-meter[data-state="low"] .usage-bar-fill { background: var(--c-amber-800); }
.usage-meter[data-state="full"] .usage-bar-fill { background: var(--c-amber-900); }
.usage-text {
  margin: 0.4rem 0 0; text-align: center; font-size: 12px; color: var(--text-muted);
}
.usage-meter[data-state="low"] .usage-text,
.usage-meter[data-state="full"] .usage-text { color: var(--c-amber-800); }
.usage-text a { color: var(--c-brand-600); }
#status { margin-top: 0.9rem; padding: 1rem; border-radius: var(--r-lg); display: none; font-size: 0.95rem; text-align: center; }
#status.info { display: block; background: var(--c-brand-50); color: var(--interactive); }
#status.success { display: block; background: var(--c-green-50); color: var(--c-green-700); }
#status.error { display: block; background: var(--c-amber-50); border: 1px solid var(--c-amber-200); color: var(--c-amber-800); }

/* how it works */
.how { margin: 3rem 0; text-align: center; }
.how-title, .faq-title, .section-label, .devices-label {
  color: var(--text-muted); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1.25rem;
}
.steps { display: flex; gap: 0; justify-content: center; align-items: flex-start; flex-wrap: wrap; }
.step { flex: 1; min-width: 120px; max-width: 170px; padding: 0 0.5rem; text-align: center; }
.step-num {
  font-family: var(--font-serif); font-size: 1.9rem; font-weight: 600;
  color: var(--c-brand-200); line-height: 1; display: block; margin-bottom: 0.5rem;
}
.step-label { color: var(--text-primary); font-size: 0.9rem; font-weight: 600; line-height: 1.3; }
.step-body { color: var(--text-muted); font-size: 0.8rem; margin-top: 0.25rem; line-height: 1.5; }
.step-arrow { color: var(--c-brand-400); font-size: 1.2rem; padding-top: 0.6rem; flex-shrink: 0; }

/* before/after panel — panel chrome is CSS (so it follows the theme and the
   labels stay real text); the two screens inside are real conversion output. */
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; margin: 0.5rem 0 0.75rem; }
.ba-panel { border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--bg-surface); overflow: hidden; padding-bottom: 10px; }
.ba-panel.after { border-color: var(--c-brand-200); border-left: 3px solid var(--c-brand-600); }
.ba-head { padding: 8px 12px; border-bottom: 1px solid var(--border); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--c-ink-300); }
.ba-panel.after .ba-head { border-bottom-color: var(--c-brand-100); color: var(--c-brand-600); }
.ba-shot { padding: 12px 12px 0; }
/* The PDF screenshot is white paper in both themes — a PDF cannot re-colour
   itself, which is part of what the comparison is showing. */
.ba-shot img { display: block; width: 100%; height: auto; border-radius: calc(var(--r-lg) / 2); border: 1px solid var(--border); }
.ba-note { margin-top: 10px; font-size: 10px; color: var(--c-ink-300); text-align: center; }
.ba-panel.after .ba-note { color: var(--c-brand-600); }
.comparison-caption { color: var(--text-muted); font-size: 0.82rem; text-align: center; margin-top: 0.5rem; }
.devices { text-align: center; margin: 2rem 0; font-size: 0.85rem; }
.devices-label { margin-bottom: 0.75rem; }
.devices-list { display: flex; flex-wrap: wrap; gap: 0.4rem 0.6rem; justify-content: center; align-items: center; }
.device-chip {
  background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--r-full);
  padding: 0.35rem 0.9rem; font-size: 0.85rem; color: var(--text-secondary);
  display: flex; align-items: center; gap: 0.35rem;
}
.feature-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin: 1.5rem 0; }
.feature-card {
  background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 1.1rem 1.15rem 1rem; text-align: left;
}
.fc-icon { color: var(--c-green-600); font-weight: 700; display: block; margin-bottom: 0.4rem; }
.fc-title { color: var(--text-primary); font-size: 0.92rem; font-weight: 600; margin-bottom: 0.3rem; }
.fc-body { color: var(--text-secondary); font-size: 0.83rem; line-height: 1.55; }
.pricing-strip {
  background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 1.4rem 1.5rem; margin: 1.5rem 0; text-align: center;
}
.pricing-strip p { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 0.9rem; }
.pricing-strip strong { color: var(--text-primary); }

/* FAQ + guides */
.faq { margin: 2.5rem 0 1rem; }
.faq details, .pricing-faq details { border-bottom: 1px solid var(--border); padding: 0.85rem 0.25rem; }
.faq summary, .pricing-faq summary {
  color: var(--text-primary); cursor: pointer; font-size: 0.95rem; font-weight: 500;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::after, .pricing-faq summary::after { content: '+'; color: var(--text-muted); font-size: 1.1rem; flex-shrink: 0; }
.faq details[open] summary::after, .pricing-faq details[open] summary::after { content: '−'; }
.faq details p, .pricing-faq details p { color: var(--text-secondary); margin-top: 0.6rem; font-size: 0.9rem; line-height: 1.65; }
.guides { margin: 2rem 0 1rem; }
.guide-link { display: block; color: var(--text-link); font-size: 0.93rem; line-height: 1.5; margin-bottom: 0.5rem; }
.guide-link-more { color: var(--text-muted); font-size: 0.87rem; }

/* ── Pricing page ── */
.pricing-hero { text-align: center; padding: 2.5rem 1rem 1rem; }
.pricing-hero h1 { font-size: 2.25rem; font-weight: 600; margin: 0 0 0.4rem; }
.pricing-hero p { color: var(--text-secondary); font-size: 1.05rem; margin: 0; }
.plans { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; max-width: 760px; margin: 2rem auto 0; padding: 0 1rem; }
.plan {
  background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: 2rem 1.75rem; flex: 1; min-width: 260px; max-width: 340px;
  display: flex; flex-direction: column;
}
.plan.pro { border: 2px solid var(--interactive); position: relative; box-shadow: var(--shadow-md); }
.plan-badge {
  position: absolute; top: -11px; left: 28px;
  background: var(--interactive); color: var(--text-inverse);
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.06em;
  padding: 3px 10px; border-radius: var(--r-full); text-transform: uppercase;
}
.plan h2 { font-family: var(--font-sans); color: var(--text-primary); font-size: 1.1rem; font-weight: 600; margin: 0 0 0.2rem; }
.plan .price { font-family: var(--font-serif); color: var(--text-primary); font-size: 2.4rem; font-weight: 600; margin: 0.6rem 0 0; line-height: 1; }
.plan .price span { font-family: var(--font-sans); font-size: 1rem; font-weight: 400; color: var(--text-muted); }
.plan .tagline { color: var(--text-muted); font-size: 0.88rem; margin: 0.4rem 0 1.4rem; }
/* Pro's tagline reads as a lead-in to the feature list, so it sits closer to it. */
.plan.pro .tagline { margin-bottom: 0.85rem; }
.plan ul { list-style: none; padding: 0; margin: 0 0 1.75rem; flex: 1; }
.plan ul li { color: var(--text-primary); font-size: 0.9rem; line-height: 2.1; padding-left: 1.35rem; position: relative; }
.plan ul li::before { content: "✓"; position: absolute; left: 0; color: var(--c-green-600); font-weight: 700; }
.plan-cta { display: inline-block; text-align: center; padding: 0.75rem 1.5rem; border-radius: var(--r-md); font-weight: 600; font-size: 0.95rem; text-decoration: none; cursor: pointer; border: none; width: 100%; }
#pro-email-form { margin-top: 0.75rem; }
#pro-email-input {
  width: 100%; padding: 0.7rem 0.9rem; border-radius: var(--r-md);
  border: 1px solid var(--border-strong); background: var(--bg-surface);
  color: var(--text-primary); font-family: inherit; font-size: 0.95rem; margin-bottom: 0.5rem;
}
#pro-email-input:focus { border-color: var(--interactive-focus); box-shadow: var(--focus-ring); outline: none; }
#pro-go-btn { width: 100%; background: var(--interactive); color: var(--text-inverse); border: none; padding: 0.75rem; border-radius: var(--r-md); font-family: inherit; font-weight: 600; font-size: 0.95rem; cursor: pointer; }
#pro-go-btn:hover { background: var(--interactive-hover); }
#pro-cancel-link { color: var(--text-muted); font-size: 0.82rem; cursor: pointer; margin-top: 0.4rem; display: block; text-align: center; }
#pro-form-msg { color: var(--text-secondary); font-size: 0.85rem; margin-top: 0.5rem; display: none; }
.other-plans, .pricing-trust { text-align: center; margin: 2rem auto 0; color: var(--text-muted); font-size: 0.87rem; max-width: 640px; padding: 0 1rem; }
.enterprise-card {
  max-width: 760px; margin: 1.75rem auto 0; background: var(--bg-subtle);
  border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.5rem 1.75rem;
  display: flex; flex-direction: column; gap: 0.9rem;
}
.enterprise-card h2 { font-size: 1.15rem; font-weight: 600; }
.enterprise-card p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; }
.pricing-faq { max-width: 620px; margin: 3rem auto 0; text-align: left; padding: 0 1rem; }
.pricing-faq h2 { font-size: 1.4rem; font-weight: 600; margin-bottom: 1rem; text-align: center; }

/* comparison section on /pricing */
.comp-section { max-width: 760px; margin: 3.5rem auto 0; padding: 0 1rem; }
.comp-section h2 { font-size: 1.4rem; font-weight: 600; margin-bottom: 1.25rem; text-align: center; }
.comp-table { width: 100%; border-collapse: collapse; font-size: 0.87rem; margin-bottom: 2rem; overflow-x: auto; display: block; background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--r-lg); }
.comp-table th { background: var(--bg-subtle); color: var(--text-secondary); font-weight: 600; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--border); text-align: left; white-space: nowrap; }
.comp-table th:first-child { color: var(--interactive); }
.comp-table td { padding: 0.55rem 0.75rem; border-bottom: 1px solid var(--bg-subtle); color: var(--text-secondary); white-space: nowrap; }
.comp-table tr:last-child td { border-bottom: none; }
.comp-table td:first-child { color: var(--text-primary); font-weight: 500; }
.comp-table .us { color: var(--c-green-700); font-weight: 700; }
.comp-table .no { color: var(--c-amber-900); }
.comp-table .partial { color: var(--c-amber-800); }
.comp-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 2rem; }
.comp-card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.25rem; }
.comp-card h3 { font-family: var(--font-sans); color: var(--text-primary); font-size: 0.92rem; font-weight: 600; margin: 0 0 0.5rem; }
.comp-card p { color: var(--text-secondary); font-size: 0.85rem; line-height: 1.6; margin: 0; }
.comp-banner { background: var(--c-brand-50); border: 1px solid var(--c-brand-200); border-radius: var(--r-lg); padding: 1.5rem 1.75rem; margin-bottom: 1rem; }
.comp-banner p { color: var(--text-primary); font-size: 0.92rem; line-height: 1.7; margin: 0 0 1rem; }

/* ── Blog ── */
article { text-align: left; margin-top: 2rem; }
article h2 { font-size: 1.45rem; margin: 2rem 0 0.75rem; }
article p { color: var(--text-primary); font-family: var(--font-serif); line-height: 1.75; margin-bottom: 1rem; max-width: 68ch; }
article ol, article ul { color: var(--text-primary); font-family: var(--font-serif); line-height: 1.75; margin: 0 0 1rem 1.5rem; }
article li { margin-bottom: 0.25rem; }
.post-card {
  background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 1.5rem; margin-bottom: 1.25rem; text-decoration: none; display: block;
  transition: border-color var(--dur-fast) var(--ease);
}
.post-card:hover { border-color: var(--c-brand-400); text-decoration: none; }
.post-card h2 { font-size: 1.2rem; margin: 0 0 0.4rem; }
.post-card p { color: var(--text-secondary); font-size: 0.95rem; margin: 0; }

/* ── /for/* audience pages ── */
.for-hero { text-align: center; padding: 3rem 0 2rem; }
.for-hero h1 { font-size: 2.2rem; margin-bottom: 0.75rem; line-height: 1.25; }
.for-hero .lead { color: var(--text-secondary); font-size: 1.1rem; line-height: 1.7; max-width: 58ch; margin: 0 auto 2rem; }
.for-hero .btn { display: inline-block; background: var(--interactive); color: var(--text-inverse); padding: 0.75rem 2rem; border-radius: var(--r-md); text-decoration: none; font-weight: 600; font-size: 1.05rem; }
.for-hero .btn:hover { background: var(--interactive-hover); }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; margin: 2.5rem 0; }
.use-cases { margin: 2.5rem 0; }
.use-cases h2 { font-size: 1.3rem; margin-bottom: 1rem; }
.use-case-list { list-style: none; padding: 0; }
.use-case-list li { color: var(--text-primary); line-height: 1.8; padding: 0.4rem 0; border-bottom: 1px solid var(--bg-subtle); font-size: 0.97rem; }
.use-case-list li::before { content: "→ "; color: var(--interactive); font-weight: 600; }
.related-posts { margin: 2.5rem 0; }
.related-posts h2 { font-size: 1.2rem; margin-bottom: 1rem; }
.post-link-row { display: flex; flex-direction: column; gap: 0.6rem; }
.post-link-row a { color: var(--text-link); font-size: 0.95rem; border: 1px solid var(--border); border-radius: var(--r-md); padding: 0.6rem 1rem; background: var(--bg-surface); }
.post-link-row a:hover { border-color: var(--c-brand-400); }
.cta-section { background: var(--c-brand-50); border: 1px solid var(--c-brand-200); border-radius: var(--r-lg); padding: 2rem; text-align: center; margin: 2.5rem 0; }
.cta-section h2 { margin-bottom: 0.5rem; font-size: 1.2rem; }
.cta-section p { color: var(--text-secondary); margin-bottom: 1.25rem; font-size: 0.97rem; }
.pricing-callout { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 2rem; margin: 2.5rem 0; text-align: center; }
.pricing-callout h2 { font-size: 1.3rem; margin-bottom: 1rem; }
.pricing-list { list-style: none; padding: 0; margin: 0 auto 1.5rem; max-width: 36ch; text-align: left; }
.pricing-list li { color: var(--text-primary); padding: 0.45rem 0; border-bottom: 1px solid var(--bg-subtle); font-size: 0.95rem; }
.pricing-list li strong { color: var(--text-primary); }

/* ── Responsive ── */
@media (max-width: 720px) {
  .site-nav .nav-link:nth-child(3), .site-nav .nav-link:nth-child(4) { display: none; }
  .feature-cards, .comp-cards { grid-template-columns: 1fr; }
  .plans { gap: 1rem; }
  .plan { min-width: 100%; max-width: 100%; }
  .pricing-hero h1 { font-size: 1.7rem; }
  .steps { flex-direction: column; align-items: center; gap: 1.1rem; }
  .step { max-width: 260px; }
  .step-arrow { display: none; }
}

/* Side by side is what makes the comparison read, so keep both panels in one
   row for as long as each screenshot stays legible; below that, stack them. */
@media (max-width: 560px) {
  .ba-grid { grid-template-columns: 1fr; justify-items: center; }
  .ba-panel { max-width: 320px; width: 100%; }
}

/* Conversion is slow enough that a line of text alone reads as a stalled page;
   the spinner is the only thing on screen that says work is still happening. */
.spinner {
  display: inline-block;
  width: 0.85em;
  height: 0.85em;
  margin-right: 0.5em;
  vertical-align: -0.1em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spinner-turn 0.7s linear infinite;
}
@keyframes spinner-turn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .spinner { animation-duration: 2.4s; }
}
