/* ============================================================================
   Frontpagely — marketing.css
   The self-contained stylesheet for the unauthenticated marketing site
   (frontpagely.com). Linked once per page as <link href="/marketing.css?v=1">.

   Implements the Frontpagely Design System (frontpagely-design-system/project):
   light-first, flat backgrounds, hairline 1px borders doing the structural
   work, soft cool-tinted shadows, deep-indigo brand for actions/nav/links
   only, Space Grotesk for big metrics, and the semantic red→amber→green score
   ramp as the ONLY place color carries meaning. Calm, credible instrument —
   never a growth-hack SaaS landing page. No gradients, no photos, no textures.
   NEVER pink (that is the competitor).

   Tokens below are inlined verbatim from tokens/*.css so this file is
   self-contained — the page links only this one stylesheet. Sentence case
   everything; UPPERCASE only for the small letter-spaced labels.
   ============================================================================ */

/* Webfonts — Geist (UI), Space Grotesk (big numbers, tabular), Geist Mono
   (code/JSON-LD/domains). Mirrors tokens/fonts.css. The page <head> also
   async-loads the same families; this @import is the self-contained fallback. */
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@400;500;600&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ────────────────────────────────────────────────────────────────────────
   1. Design tokens (:root custom properties) — copied from tokens/*.css
   ──────────────────────────────────────────────────────────────────────── */
:root {
  /* --- Neutral foundation: a slightly cool gray scale --- */
  --gray-50:  #F7F9FB;
  --gray-100: #F1F4F7;
  --gray-150: #E9EDF2;
  --gray-200: #E2E7EE;
  --gray-300: #D0D7E0;
  --gray-400: #AAB4C2;
  --gray-500: #828D9D;
  --gray-600: #5B6675;
  --gray-700: #3C4552;
  --gray-800: #262C36;
  --gray-900: #161A21;

  /* --- Brand: confident deep indigo-blue. Actions / nav / links only.
         NEVER used for the score ramp, never pink. --- */
  --color-brand:        #2F46DB;
  --color-brand-hover:  #2336B4;
  --color-brand-active: #1C2C95;
  --color-brand-subtle: #EEF1FD;  /* selected rows, info banners */
  --color-brand-ghost:  #F6F8FE;  /* lighter wash for hover rows */
  --color-on-brand:     #FFFFFF;

  /* --- Surfaces (flat, light-first) --- */
  --color-bg:         #FAFBFC;
  --color-surface:    #FFFFFF;
  --color-surface-2:  #F4F6F9;
  --color-overlay:    rgba(22, 26, 33, 0.45);

  /* --- Lines (hairline borders do the structural work) --- */
  --color-border:        #E2E7EE;
  --color-border-strong: #D0D7E0;
  --color-border-faint:  #EDF0F4;

  /* --- Text --- */
  --color-text:        #161A21;
  --color-text-muted:  #5B6675;
  --color-text-subtle: #828D9D;
  --color-text-onfill: #FFFFFF;

  /* --- Focus --- */
  --color-focus-ring: #2F46DB;
  --focus-ring: 0 0 0 3px rgba(47, 70, 219, 0.35);

  /* --- Semantic: status --- */
  --color-success:     #15935A;
  --color-success-bg:  #E4F3EC;
  --color-warning:     #B5710E;
  --color-warning-bg:  #FCF1DF;
  --color-warning-mark:#E8A317;
  --color-danger:      #CE3A2C;
  --color-danger-bg:   #FBEAE8;
  --color-info:        #2563C9;
  --color-info-bg:     #E7EFFB;

  /* --- Honesty markers (first-class, never fine print) --- */
  --color-directional:    #6F6AA6;
  --color-directional-bg: #EDECF5;
  --color-low-confidence:    #7C879B;
  --color-low-confidence-bg: #EEF1F5;

  /* --- SeenRate score ramp (poor → strong). Absolute, independent of brand.
         The ONLY place color carries meaning. --- */
  --score-poor:      #DA3B2C;  /* 0–24  */
  --score-fair:      #E58A22;  /* 25–49 */
  --score-good:      #8FAE2A;  /* 50–74 */
  --score-strong:    #15935A;  /* 75–100 */
  --score-track:     #E6EAF0;

  --score-poor-bg:   #FBEAE8;
  --score-fair-bg:   #FCF1E1;
  --score-good-bg:   #F1F4E1;
  --score-strong-bg: #E4F3EC;

  --score-ramp-0:   #DA3B2C;
  --score-ramp-25:  #E58A22;
  --score-ramp-50:  #C7B12B;
  --score-ramp-75:  #8FAE2A;
  --score-ramp-100: #15935A;

  /* --- Typography --- */
  --font-sans:    'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-numeric: 'Space Grotesk', 'Geist', system-ui, sans-serif;
  --font-mono:    'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --text-display: 64px;
  --text-h1:      30px;
  --text-h2:      22px;
  --text-h3:      18px;
  --text-body:    15px;
  --text-sm:      13.5px;
  --text-xs:      12px;

  --leading-tight:   1.05;
  --leading-snug:    1.2;
  --leading-normal:  1.5;
  --leading-relaxed: 1.65;

  --weight-light:    300;
  --weight-regular:  400;
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;

  --tracking-display: -0.02em;
  --tracking-tight:   -0.01em;
  --tracking-normal:  0;
  --tracking-label:   0.06em;

  --fonts-tabular: 'tnum' 1, 'lnum' 1;

  /* --- Spacing (4px base) --- */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  24px;   /* default card padding */
  --space-6:  32px;   /* section gap */
  --space-8:  48px;
  --space-10: 64px;

  --card-pad:    var(--space-5);
  --section-gap: var(--space-6);

  --control-height:    40px;
  --control-height-sm: 32px;

  /* Marketing reading column */
  --container-max: 1080px;
  --prose-max:     720px;

  /* --- Radius --- */
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;
  --radius-full: 9999px;

  /* --- Elevation (soft, cool-tinted, low-contrast) --- */
  --elev-0: none;
  --elev-1: 0 1px 2px rgba(28, 42, 92, 0.06),
            0 1px 1px rgba(28, 42, 92, 0.04);
  --elev-2: 0 4px 12px rgba(28, 42, 92, 0.08),
            0 1px 3px rgba(28, 42, 92, 0.06);
  --elev-3: 0 16px 40px rgba(20, 30, 66, 0.16),
            0 4px 12px rgba(20, 30, 66, 0.10);
  --elev-toast: 0 10px 30px rgba(20, 30, 66, 0.22),
                0 2px 8px rgba(20, 30, 66, 0.14);

  /* --- Motion --- */
  --motion-fast: 120ms;
  --motion-base: 200ms;
  --motion-slow: 400ms;
  --ease-standard: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-in-out:   cubic-bezier(0.45, 0, 0.40, 1);

  /* --- Marketing landing page (the Salient-style horizontal home).
         The design's default "Blend" theme, recreated statically. These
         drive the hero gradient blobs, the tilted marquee strips, and the
         pricing toggle. Brand stays indigo (--mkt-accent). --- */
  --mkt-accent:     #2F46DB;  /* = --color-brand; the landing accent */
  --mkt-gA:         #3A5BFF;  /* hero blob gradient start */
  --mkt-gB:         #8EA2FF;  /* hero blob gradient end */
  --mkt-gC:         #FFB35C;  /* warm accent circle */
  --mkt-marquee:    #2F46DB;  /* first marquee strip fill */
  --mkt-mtext:      #ffffff;  /* first marquee strip text */
  --mkt-warm:       #E8A317;  /* underline-squiggle stroke */
  --mkt-strip2:     #FFD9A6;  /* second marquee strip fill */
  --mkt-strip2text: #7a4a12;  /* second marquee strip text */
  --mkt-radius:     20px;     /* card radius on the landing */
  --mkt-radius-sm:  12px;     /* button radius on the landing */

  /* Pricing toggle state — flipped by the inline vanilla <script> in the
     home body (no framework). Defaults = monthly. */
  --mkt-knob-x:    2px;       /* toggle knob x-offset (monthly) */
  --mkt-monthly-w: 600;       /* "Monthly" label weight when active */
  --mkt-yearly-w:  400;       /* "Yearly" label weight when inactive */
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --motion-fast: 0ms;
    --motion-base: 0ms;
    --motion-slow: 0ms;
  }
}

/* ────────────────────────────────────────────────────────────────────────
   2. Base resets + ergonomic defaults (mirrors tokens/base.css)
   ──────────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

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

h1, h2, h3, h4, h5, h6, p, figure { margin: 0; }

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text);
  text-wrap: balance;
}
h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }

p  { color: var(--color-text-muted); }

a {
  color: var(--color-brand);
  text-decoration: none;
  transition: color var(--motion-fast) var(--ease-standard);
}
a:hover { color: var(--color-brand-hover); }

img, svg { max-width: 100%; height: auto; display: block; }

hr {
  border: 0;
  border-top: 1px solid var(--color-border);
  margin: var(--space-6) 0;
}

code, pre, kbd, samp { font-family: var(--font-mono); font-size: 0.92em; }
pre {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  overflow: auto;
  line-height: var(--leading-normal);
  color: var(--color-text);
}
code { color: var(--color-text); }

:focus-visible {
  outline: 2px solid var(--color-focus-ring);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
::selection { background: var(--color-brand-subtle); }

/* ────────────────────────────────────────────────────────────────────────
   3. Layout primitives — container, sections, grids
   ──────────────────────────────────────────────────────────────────────── */

/* .s — the shared <main> content wrapper the SSG emits on every marketing
   page today. A calm, centered reading column with generous vertical rhythm.
   Headings and paragraphs inside it space themselves so a bare hero reads
   well before the Phase-3 component templates land. */
.s {
  max-width: var(--prose-max);
  margin-inline: auto;
  padding: var(--space-10) var(--space-5);
  display: flow-root;
}
.s > h1 {
  font-size: var(--text-h1);
  margin-bottom: var(--space-4);
}
.s > p {
  font-size: var(--text-body);
  line-height: var(--leading-relaxed);
  color: var(--color-text-muted);
  max-width: var(--prose-max);
}
.s > * + * { margin-top: var(--space-4); }
.s article > * + * { margin-top: var(--space-4); }
.s ul, .s ol { padding-left: var(--space-5); color: var(--color-text-muted); }
.s li + li { margin-top: var(--space-2); }
.s pre { margin-top: var(--space-5); }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
.container-narrow { max-width: 860px; }
.container-wide   { max-width: 1240px; }

.section { padding-block: var(--space-10); }
.section-tight { padding-block: var(--space-8); }
.section-alt { background: var(--color-surface); border-block: 1px solid var(--color-border); }
.section-head { max-width: var(--prose-max); margin-bottom: var(--space-6); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-title { font-size: var(--text-h2); }
.section-sub { margin-top: var(--space-3); color: var(--color-text-muted); font-size: var(--text-body); }

.stack   { display: flex; flex-direction: column; gap: var(--space-4); }
.stack-lg { display: flex; flex-direction: column; gap: var(--space-6); }
.row-flex { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }
.center-text { text-align: center; }
.muted { color: var(--color-text-muted); }
.subtle { color: var(--color-text-subtle); }

.grid { display: grid; gap: var(--space-5); }
.grid-2 { display: grid; gap: var(--space-5); grid-template-columns: repeat(2, 1fr); }
.grid-3 { display: grid; gap: var(--space-5); grid-template-columns: repeat(3, 1fr); }
.grid-4 { display: grid; gap: var(--space-5); grid-template-columns: repeat(4, 1fr); }
.cards { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* ────────────────────────────────────────────────────────────────────────
   4. Top navigation
   ──────────────────────────────────────────────────────────────────────── */
.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--color-surface) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.topnav-inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding: var(--space-3) var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}
.topnav .brand,
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-tight);
  color: var(--color-text);
  font-size: var(--text-h3);
}
.topnav .brand:hover, .nav-brand:hover { color: var(--color-text); }
.nav-brand-mark { width: 24px; height: 24px; background: url('/assets/frontpagely-seal.svg') center / contain no-repeat; }
.topnav nav { display: flex; align-items: center; gap: var(--space-5); }
.topnav nav a {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
}
.topnav nav a:hover { color: var(--color-text); }
.topnav nav a.active { color: var(--color-text); }
.nav-links { display: flex; align-items: center; gap: var(--space-5); }
.nav-actions { display: flex; align-items: center; gap: var(--space-3); }
.nav-toggle { display: none; }

/* ────────────────────────────────────────────────────────────────────────
   5. Hero
   ──────────────────────────────────────────────────────────────────────── */
.hero {
  padding-block: var(--space-10);
  text-align: center;
}
.hero-inner {
  max-width: 820px;
  margin-inline: auto;
  padding-inline: var(--space-5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
}
.hero-eyebrow {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-text-subtle);
}
.hero-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
}
.hero-lede {
  font-size: clamp(16px, 2.4vw, 19px);
  line-height: var(--leading-relaxed);
  color: var(--color-text-muted);
  max-width: 60ch;
}
.hero-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; justify-content: center; }
.hero-note { font-size: var(--text-sm); color: var(--color-text-subtle); }
.hero-media {
  margin-top: var(--space-8);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--elev-2);
  overflow: hidden;
}

/* ────────────────────────────────────────────────────────────────────────
   6. Cards
   ──────────────────────────────────────────────────────────────────────── */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--card-pad);
  box-shadow: var(--elev-1);
}
.card-lg { border-radius: var(--radius-lg); padding: var(--space-6); }
.card-flush { box-shadow: var(--elev-0); }
.card-quiet { background: var(--color-surface-2); box-shadow: var(--elev-0); }
.card-title { font-size: var(--text-h3); font-weight: var(--weight-semibold); }
.card-body { margin-top: var(--space-3); color: var(--color-text-muted); font-size: var(--text-sm); line-height: var(--leading-relaxed); }
.card-icon {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  background: var(--color-brand-subtle);
  color: var(--color-brand);
  margin-bottom: var(--space-4);
}
.card-link { margin-top: var(--space-4); font-size: var(--text-sm); font-weight: var(--weight-medium); display: inline-flex; align-items: center; gap: 6px; }

.feature { display: flex; flex-direction: column; }
.feature-title { font-size: var(--text-h3); font-weight: var(--weight-semibold); margin-bottom: var(--space-2); }
.feature-text { color: var(--color-text-muted); font-size: var(--text-sm); line-height: var(--leading-relaxed); }

/* A feature/checklist line: icon + text, never color-only (accessibility). */
.feature-item {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding-block: var(--space-2);
}
.feature-item .check {
  flex: none;
  width: 20px; height: 20px;
  color: var(--color-success);
  margin-top: 2px;
}

/* ────────────────────────────────────────────────────────────────────────
   7. Buttons
   ──────────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--control-height);
  padding: 0 var(--space-5);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--motion-fast) var(--ease-standard),
              border-color var(--motion-fast) var(--ease-standard),
              color var(--motion-fast) var(--ease-standard);
}
.btn:focus-visible { outline: 2px solid var(--color-focus-ring); outline-offset: 2px; }

/* Primary — solid indigo. Hover = one step darker, press = active step. */
.btn-primary {
  background: var(--color-brand);
  color: var(--color-on-brand);
  border-color: var(--color-brand);
}
.btn-primary:hover { background: var(--color-brand-hover); border-color: var(--color-brand-hover); color: var(--color-on-brand); }
.btn-primary:active { background: var(--color-brand-active); border-color: var(--color-brand-active); }

/* Secondary — white with hairline border. */
.btn-secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-border-strong);
}
.btn-secondary:hover { background: var(--color-surface-2); border-color: var(--color-border-strong); color: var(--color-text); }
.btn-secondary:active { background: var(--color-gray-100, var(--gray-100)); }

/* Ghost — text-only, brand on hover wash. */
.btn-ghost {
  background: transparent;
  color: var(--color-brand);
  border-color: transparent;
}
.btn-ghost:hover { background: var(--color-brand-ghost); color: var(--color-brand-hover); }

.btn-lg { min-height: 48px; padding: 0 var(--space-6); font-size: var(--text-body); }
.btn-sm { min-height: var(--control-height-sm); padding: 0 var(--space-4); font-size: var(--text-sm); }
.btn-block { display: flex; width: 100%; }

/* ────────────────────────────────────────────────────────────────────────
   8. Badges, chips, pills, labels
   ──────────────────────────────────────────────────────────────────────── */
.label, .eyebrow {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-text-subtle);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  background: var(--color-surface-2);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}
.badge-brand { background: var(--color-brand-subtle); color: var(--color-brand); border-color: transparent; }
.badge-success { background: var(--color-success-bg); color: var(--color-success); border-color: transparent; }
.badge-warning { background: var(--color-warning-bg); color: var(--color-warning); border-color: transparent; }
.badge-danger  { background: var(--color-danger-bg);  color: var(--color-danger);  border-color: transparent; }
.badge-info    { background: var(--color-info-bg);    color: var(--color-info);    border-color: transparent; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

/* Honesty markers — first-class, deliberately outside the status palette. */
.tag-directional { background: var(--color-directional-bg); color: var(--color-directional); border-color: transparent; }
.tag-low-confidence { background: var(--color-low-confidence-bg); color: var(--color-low-confidence); border-color: transparent; }

/* ────────────────────────────────────────────────────────────────────────
   9. SeenRate score ramp — the ONE place color carries meaning.
      Always paired with the band label text, never color-only.
   ──────────────────────────────────────────────────────────────────────── */
.metric {
  font-family: var(--font-numeric);
  font-feature-settings: var(--fonts-tabular);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-display);
  line-height: var(--leading-tight);
  color: var(--color-text);
}
.metric-display { font-size: var(--text-display); }
.metric-lg { font-size: 40px; }
.metric-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-text-subtle);
}

.score-band {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}
.score-poor   { background: var(--score-poor-bg);   color: var(--score-poor); }
.score-fair   { background: var(--score-fair-bg);   color: #9a5a10; }
.score-good   { background: var(--score-good-bg);   color: #5f7a14; }
.score-strong { background: var(--score-strong-bg); color: var(--score-strong); }

/* ────────────────────────────────────────────────────────────────────────
   10. Pricing
   ──────────────────────────────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: start;
}
.price-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--elev-1);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.price-card.featured {
  border-color: var(--color-brand);
  box-shadow: var(--elev-2);
}
.price-tier { font-size: var(--text-h3); font-weight: var(--weight-semibold); }
.price-amount {
  font-family: var(--font-numeric);
  font-feature-settings: var(--fonts-tabular);
  font-size: 40px;
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-display);
  line-height: 1;
}
.price-period { font-size: var(--text-sm); color: var(--color-text-subtle); font-family: var(--font-sans); }
.price-desc { color: var(--color-text-muted); font-size: var(--text-sm); }
.price-features { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.price-features li { display: flex; gap: var(--space-2); align-items: flex-start; font-size: var(--text-sm); color: var(--color-text-muted); }
.price-features li::before {
  content: "";
  flex: none;
  width: 16px; height: 16px;
  margin-top: 3px;
  background: var(--color-success);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ────────────────────────────────────────────────────────────────────────
   11. Comparison / data tables
   ──────────────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.table th, .table td {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border);
}
.table th {
  font-weight: var(--weight-semibold);
  color: var(--color-text-muted);
  background: var(--color-surface-2);
}
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--color-brand-ghost); }
.table .num { font-family: var(--font-numeric); font-feature-settings: var(--fonts-tabular); text-align: right; }

/* ────────────────────────────────────────────────────────────────────────
   12. Forms
   ──────────────────────────────────────────────────────────────────────── */
.form { display: flex; flex-direction: column; gap: var(--space-4); max-width: 480px; }
.form-row { display: flex; flex-direction: column; gap: var(--space-2); }
.form-label { font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--color-text); }
.form-hint { font-size: var(--text-xs); color: var(--color-text-subtle); }
.input, .textarea, .select {
  width: 100%;
  min-height: var(--control-height);
  padding: 0 var(--space-3);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  transition: border-color var(--motion-fast) var(--ease-standard),
              box-shadow var(--motion-fast) var(--ease-standard);
}
.textarea { min-height: 120px; padding: var(--space-3); line-height: var(--leading-normal); resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--color-text-subtle); }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--color-brand);
  box-shadow: var(--focus-ring);
}
.input-group { display: flex; gap: var(--space-2); }
.input-group .input { flex: 1; }

/* The free-audit funnel CTA — a single domain input + primary button. */
.audit-form { display: flex; gap: var(--space-2); flex-wrap: wrap; max-width: 520px; }
.audit-form .input { flex: 1 1 220px; min-height: 48px; }
.audit-form .btn { min-height: 48px; }

/* ────────────────────────────────────────────────────────────────────────
   13. Call-to-action band
   ──────────────────────────────────────────────────────────────────────── */
.cta {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
  text-align: center;
  box-shadow: var(--elev-1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}
.cta-brand { background: var(--color-brand-subtle); border-color: transparent; }
.cta-title { font-size: var(--text-h2); font-weight: var(--weight-semibold); }
.cta-sub { color: var(--color-text-muted); max-width: 56ch; }
.cta-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; justify-content: center; }

/* ────────────────────────────────────────────────────────────────────────
   14. Prose / blog
   ──────────────────────────────────────────────────────────────────────── */
.prose {
  max-width: var(--prose-max);
  margin-inline: auto;
  color: var(--color-text);
  font-size: 16px;
  line-height: var(--leading-relaxed);
}
.prose > * + * { margin-top: var(--space-4); }
.prose h2 { font-size: var(--text-h2); margin-top: var(--space-8); }
.prose h3 { font-size: var(--text-h3); margin-top: var(--space-6); }
.prose p, .prose li { color: var(--color-text-muted); }
.prose ul, .prose ol { padding-left: var(--space-5); }
.prose li + li { margin-top: var(--space-2); }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose blockquote {
  margin: var(--space-5) 0;
  padding: var(--space-2) var(--space-5);
  border-left: 3px solid var(--color-brand);
  color: var(--color-text-muted);
  background: var(--color-brand-ghost);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.prose img { border-radius: var(--radius-md); border: 1px solid var(--color-border); margin-block: var(--space-5); }
.prose code { background: var(--color-surface-2); padding: 1px 6px; border-radius: 4px; }
.prose pre code { background: transparent; padding: 0; }

.post-meta { font-size: var(--text-sm); color: var(--color-text-subtle); margin-bottom: var(--space-5); }
.post-title { font-size: clamp(28px, 4vw, 40px); line-height: var(--leading-snug); }

.post-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--space-5); }
.post-list-item { padding-bottom: var(--space-5); border-bottom: 1px solid var(--color-border); }
.post-list-item:last-child { border-bottom: 0; }
.post-list-title { font-size: var(--text-h3); font-weight: var(--weight-semibold); }
.post-list-desc { margin-top: var(--space-2); color: var(--color-text-muted); font-size: var(--text-sm); }

/* ────────────────────────────────────────────────────────────────────────
   15. Footer
   ──────────────────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  margin-top: var(--space-10);
}
.footer-inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding: var(--space-8) var(--space-5);
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1.4fr repeat(3, 1fr);
}
.footer-brand { display: flex; flex-direction: column; gap: var(--space-3); max-width: 32ch; }
.footer-tagline { color: var(--color-text-muted); font-size: var(--text-sm); }
.footer-col { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-col h4 {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-text-subtle);
}
.footer-col a { color: var(--color-text-muted); font-size: var(--text-sm); }
.footer-col a:hover { color: var(--color-text); }
.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding: var(--space-4) var(--space-5);
  max-width: var(--container-max);
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  color: var(--color-text-subtle);
  font-size: var(--text-sm);
}

/* ────────────────────────────────────────────────────────────────────────
   16. Misc helpers
   ──────────────────────────────────────────────────────────────────────── */
.banner {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-info-bg);
  color: var(--color-text);
  font-size: var(--text-sm);
}
.banner-brand { background: var(--color-brand-subtle); border-color: transparent; }
.divider { height: 1px; background: var(--color-border); border: 0; margin-block: var(--space-6); }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mb-0 { margin-bottom: 0; }

/* ────────────────────────────────────────────────────────────────────────
   17. Responsive — mobile-first marketing site collapses multi-column
       grids to a single column; the nav links stack behind a disclosure.
   ──────────────────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .s { padding-block: var(--space-8); }
  .section, .hero { padding-block: var(--space-8); }
  .topnav nav, .nav-links { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { justify-content: flex-start; }
  .price-card, .card-lg, .cta { padding: var(--space-5); }
}

/* ────────────────────────────────────────────────────────────────────────
   18. Marketing landing page (the Salient-style horizontal home)
       Recreated statically from templates/marketing-site/MarketingSite.dc.html.
       The design body is ~95% inline-styled; only the handful of structural
       grid wrappers and the marquee tracks carry classes — defined here so
       the css-guard passes and the responsive collapse + scroll-anim work.
       html { scroll-behavior } is set so the in-page #anchors glide.
   ──────────────────────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

@keyframes mkt-marq     { from { transform: translateX(0);     } to { transform: translateX(-50%); } }
@keyframes mkt-marq-rev { from { transform: translateX(-50%);  } to { transform: translateX(0);    } }

/* The two-up hero split, the alternating feature rows, the 3-up testimonial/
   pricing grids, and the footer columns. Defaults match the design's inline
   grid-template-columns; the @media blocks below collapse them on narrow
   viewports (the design's own breakpoints). */
.mkt-hero { display: grid; grid-template-columns: 1.05fr 1fr; }
.mkt-row  { display: grid; grid-template-columns: 1fr 1fr; }
.mkt-3col { display: grid; grid-template-columns: repeat(3, 1fr); }
.mkt-foot { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; }
.mkt-h1   { /* hero headline — size set inline; class is the responsive hook */ }
.mkt-marq-track { display: flex; width: max-content; }
/* Pricing card period text ("/month" ↔ "/mo, billed yearly"); the toggle
   <script> rewrites its textContent. Styling is inline on each element. */
.mkt-period { }

@media (prefers-reduced-motion: reduce) {
  .mkt-marq-track { animation: none !important; }
  html { scroll-behavior: auto; }
}

@media (max-width: 940px) {
  .mkt-hero { grid-template-columns: 1fr; }
  .mkt-row  { grid-template-columns: 1fr; }
  .mkt-row > * { order: 0 !important; }
  .mkt-3col { grid-template-columns: 1fr; }
  .mkt-foot { grid-template-columns: 1fr 1fr; }
  .mkt-h1   { font-size: 44px !important; }
}

@media (max-width: 560px) {
  .mkt-foot { grid-template-columns: 1fr; }
}
