/* Agency Beat marketing + legal site (session 18).
   Standalone static stylesheet for the apex Cloudflare Pages project — it cannot import the
   dashboard's web/src/styles.css, so the :root token block below is copied VERBATIM from it so the
   site and the dashboard read as one brand. Marketing-only layout classes follow the tokens.
   Light theme is pinned to match the dashboard. No frameworks, no build step, no tracking. */

:root {
  color-scheme: light;

  --ab-bg: #f5f7fa;
  --ab-surface: #ffffff;
  --ab-surface-2: #f8fafc;
  --ab-border: #e4e8ee;
  --ab-border-strong: #cdd4de;
  --ab-text: #1b2433;
  --ab-text-muted: #687287;
  --ab-text-faint: #98a2b3;

  --ab-primary: #3a5bd9;
  --ab-primary-hover: #2f4abc;
  --ab-primary-weak: #eef1fd;
  --ab-danger: #d64545;
  --ab-danger-hover: #b93636;
  --ab-danger-weak: #fdecec;

  --ab-up: #1f9d5a;
  --ab-up-bg: #e6f6ed;
  --ab-down: #d64545;
  --ab-down-bg: #fdecec;
  --ab-degraded: #b9770b;
  --ab-degraded-bg: #fbf1df;
  --ab-paused: #687287;
  --ab-paused-bg: #eef1f5;
  --ab-pending: #5b6472;
  --ab-pending-bg: #eef1f5;

  --ab-s1: 4px;
  --ab-s2: 8px;
  --ab-s3: 12px;
  --ab-s4: 16px;
  --ab-s5: 24px;
  --ab-s6: 32px;

  --ab-radius-sm: 6px;
  --ab-radius: 10px;
  --ab-radius-pill: 999px;

  --ab-shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06);
  --ab-shadow: 0 6px 20px rgba(16, 24, 40, 0.08);

  --ab-fs-xs: 12px;
  --ab-fs-sm: 13px;
  --ab-fs-base: 14px;
  --ab-fs-lg: 16px;
  --ab-fs-xl: 20px;

  --ab-font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ab-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--ab-font);
  font-size: var(--ab-fs-base);
  line-height: 1.5;
  color: var(--ab-text);
  background: var(--ab-bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--ab-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ── Page width ──────────────────────────────────────────────────────────── */

.ab-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--ab-s5);
}

/* Narrower column for long-form legal copy. */
.ab-prose-wrap {
  max-width: 720px;
}

/* ── Header ──────────────────────────────────────────────────────────────── */

.ab-site-header {
  border-bottom: 1px solid var(--ab-border);
  background: var(--ab-surface);
}

.ab-site-header .ab-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ab-s4);
  min-height: 64px;
}

.ab-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--ab-s3);
  font-weight: 700;
  font-size: var(--ab-fs-xl);
  letter-spacing: -0.01em;
  color: var(--ab-text);
}

.ab-brand:hover {
  text-decoration: none;
}

.ab-mark {
  display: block;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  flex: none;
}

.ab-site-nav {
  display: flex;
  align-items: center;
  gap: var(--ab-s5);
  font-size: var(--ab-fs-base);
}

.ab-site-nav a {
  color: var(--ab-text-muted);
  font-weight: 500;
}

.ab-site-nav a:hover {
  color: var(--ab-text);
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */

.ab-btn {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: var(--ab-radius);
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1.2;
}

.ab-btn-primary {
  background: var(--ab-primary);
  color: #ffffff;
}

.ab-btn-primary:hover {
  background: var(--ab-primary-hover);
  text-decoration: none;
}

/* ── Hero ────────────────────────────────────────────────────────────────── */

.ab-hero {
  padding: 88px 0 56px;
  text-align: center;
}

.ab-hero h1 {
  margin: 0 auto var(--ab-s4);
  max-width: 720px;
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.ab-hero .ab-lede {
  margin: 0 auto var(--ab-s5);
  max-width: 620px;
  font-size: var(--ab-fs-lg);
  color: var(--ab-text-muted);
}

.ab-cta-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--ab-s2);
}

.ab-cta-note {
  font-size: var(--ab-fs-sm);
  color: var(--ab-text-faint);
}

/* ── Generic section ─────────────────────────────────────────────────────── */

.ab-section {
  padding: 56px 0;
}

.ab-section--alt {
  background: var(--ab-surface);
  border-top: 1px solid var(--ab-border);
  border-bottom: 1px solid var(--ab-border);
}

.ab-section h2 {
  font-size: 26px;
  letter-spacing: -0.01em;
  margin: 0 0 var(--ab-s4);
}

.ab-section--center {
  text-align: center;
}

.ab-section--center h2 {
  margin-bottom: var(--ab-s5);
}

.ab-problem {
  max-width: 680px;
  font-size: var(--ab-fs-lg);
  color: var(--ab-text-muted);
}

/* ── Feature grid ────────────────────────────────────────────────────────── */

.ab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--ab-s4);
}

.ab-feature {
  background: var(--ab-surface);
  border: 1px solid var(--ab-border);
  border-radius: var(--ab-radius);
  box-shadow: var(--ab-shadow-sm);
  padding: var(--ab-s5);
}

.ab-feature h3 {
  margin: 0 0 var(--ab-s2);
  font-size: var(--ab-fs-lg);
}

.ab-feature p {
  margin: 0;
  color: var(--ab-text-muted);
}

/* ── How it works ────────────────────────────────────────────────────────── */

.ab-steps {
  list-style: none;
  counter-reset: step;
  margin: 0 auto;
  padding: 0;
  max-width: 640px;
  display: grid;
  gap: var(--ab-s4);
}

.ab-steps li {
  counter-increment: step;
  position: relative;
  padding-left: 56px;
  min-height: 36px;
  display: flex;
  align-items: center;
  font-size: var(--ab-fs-lg);
}

.ab-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  border-radius: var(--ab-radius-pill);
  background: var(--ab-primary-weak);
  color: var(--ab-primary);
  font-weight: 700;
  display: grid;
  place-items: center;
}

/* ── Legal / prose ───────────────────────────────────────────────────────── */

.ab-prose {
  padding: 56px 0 72px;
}

.ab-prose h1 {
  font-size: 30px;
  letter-spacing: -0.01em;
  margin: 0 0 var(--ab-s2);
}

.ab-effective {
  color: var(--ab-text-muted);
  font-style: italic;
  margin: 0 0 var(--ab-s6);
}

.ab-prose h2 {
  font-size: var(--ab-fs-lg);
  margin: var(--ab-s6) 0 var(--ab-s2);
}

.ab-prose p {
  margin: 0 0 var(--ab-s4);
  color: var(--ab-text);
}

/* ── Footer ──────────────────────────────────────────────────────────────── */

.ab-site-footer {
  border-top: 1px solid var(--ab-border);
  background: var(--ab-surface);
  padding: var(--ab-s5) 0;
}

.ab-site-footer .ab-wrap {
  text-align: center;
  font-size: var(--ab-fs-sm);
  color: var(--ab-text-muted);
}

.ab-site-footer a {
  color: var(--ab-text-muted);
}

.ab-site-footer a:hover {
  color: var(--ab-text);
}

.ab-dot {
  color: var(--ab-border-strong);
  padding: 0 var(--ab-s1);
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
  .ab-wrap {
    padding: 0 var(--ab-s4);
  }

  .ab-hero {
    padding: 56px 0 40px;
  }

  .ab-hero h1 {
    font-size: 32px;
  }

  .ab-site-nav {
    gap: var(--ab-s4);
  }
}
