/* Shared styles for the segment, trust and comparison pages added on
   1 Oct 2026: /for-agencies, /for-local-businesses, /security, /vs/*,
   /alternatives/*. Tokens and scale match pricing.html and index.html;
   header.css and footer.css still style the site chrome. Paths in these
   pages are root-relative, because /vs/ and /alternatives/ pages sit one
   folder down. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { line-height: 1.6; -webkit-font-smoothing: antialiased; font-family: var(--font-body); background: var(--bg); color: var(--text); overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }

:root {
  --bg: #fafafa; --bg-alt: #f3f4f6; --text: #111827; --text-muted: #6b7280;
  --primary: #6366f1; --primary-hover: #4f46e5; --primary-ink: #4338ca;
  --border: #e5e7eb; --card-bg: #ffffff; --card-border: #e5e7eb;
  --badge-bg: rgba(99,102,241,0.08); --glow: rgba(99,102,241,0.15);
  --good: #047857; --good-bg: rgba(5,150,105,0.08);
  --warn: #b45309; --warn-bg: rgba(180,83,9,0.1);
  --footer-bg: #111827; --footer-text: #d1d5db; --footer-heading: #f9fafb; --footer-border: #1f2937;
  --font-heading: "Outfit", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Inter Fallback", system-ui, -apple-system, sans-serif;
  --radius-card: 16px; --radius-sm: 8px; --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.06);
  --space-section: 3.5rem;
  --fs-h1: clamp(2rem, 4.6vw, 3rem); --fs-h2: clamp(1.5rem, 3.2vw, 2.1rem); --fs-h3: 1.125rem;
  --fs-small: 0.875rem; --fs-fine: 0.8125rem;
  --focus-ring: 0 0 0 3px rgba(99,102,241,0.45);
}
.dark {
  --bg: #0a0a0a; --bg-alt: #111111; --text: #f1f5f9; --text-muted: #94a3b8;
  --primary: #818cf8; --primary-hover: #6366f1; --primary-ink: #a5b4fc;
  --border: #27272a; --card-bg: #18181b; --card-border: #27272a;
  --badge-bg: rgba(129,140,248,0.1); --glow: rgba(129,140,248,0.15);
  --good: #34d399; --good-bg: rgba(52,211,153,0.1);
  --warn: #fbbf24; --warn-bg: rgba(251,191,36,0.12);
  --footer-bg: #09090b; --footer-text: #94a3b8; --footer-heading: #f1f5f9; --footer-border: #27272a;
  --shadow-card: 0 1px 2px rgba(0,0,0,0.3), 0 8px 24px rgba(0,0,0,0.35);
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }
.container.narrow { max-width: 760px; }
@media (max-width: 640px) { .container { padding: 0 1rem; } }

h1, h2, h3 { font-family: var(--font-heading); letter-spacing: -0.02em; text-wrap: balance; color: var(--text); line-height: 1.2; }
p a, li a, td a, dd a, .link { color: var(--primary-ink); font-weight: 500; }
p a:hover, li a:hover, td a:hover, dd a:hover, .link:hover { text-decoration: underline; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.btn-primary, .btn-outline { padding: 0.7rem 1.25rem; min-height: 44px; font-size: 0.9375rem; font-weight: 600; border-radius: 10px; gap: 0.4rem; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-outline:hover { border-color: var(--primary); background: var(--badge-bg); }
.btn-primary:focus-visible, .btn-outline:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.btn-lg { padding: 0.85rem 1.6rem; font-size: 1rem; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.8125rem; min-height: 38px; font-weight: 500; }

.section { padding: var(--space-section) 0; }
.section-alt { background: var(--bg-alt); }
.section-header { text-align: center; max-width: 680px; margin: 0 auto 2rem; }
.section-header h2 { font-size: var(--fs-h2); font-weight: 700; margin-bottom: 0.6rem; }
.section-header p { color: var(--text-muted); }
.eyebrow { display: inline-block; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--primary-ink); margin-bottom: 0.6rem; }

/* Hero */
.lp-hero { padding: 7rem 0 2.5rem; }
.lp-hero.center { text-align: center; }
.lp-hero h1 { font-size: var(--fs-h1); font-weight: 700; line-height: 1.12; margin-bottom: 1rem; }
.lp-hero .lede { font-size: 1.125rem; color: var(--text-muted); max-width: 44rem; margin-bottom: 1.5rem; }
.lp-hero.center .lede { margin-left: auto; margin-right: auto; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.lp-hero.center .hero-ctas { justify-content: center; }
.hero-fine { font-size: var(--fs-fine); color: var(--text-muted); margin-top: 0.9rem; }
.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }
.lp-hero.center .chip-row { justify-content: center; }
.chip { font-size: 0.8125rem; padding: 0.3rem 0.7rem; border: 1px solid var(--border); border-radius: var(--radius-pill); color: var(--text-muted); background: var(--card-bg); }
.checked-on { display: inline-block; font-size: 0.75rem; font-weight: 600; color: var(--text-muted); background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 0.2rem 0.65rem; margin-bottom: 1rem; }

.hero-split { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; }
@media (min-width: 960px) { .hero-split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 3rem; } }
.hero-split > div { min-width: 0; }

/* Cards */
.grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 720px) { .grid.two { grid-template-columns: repeat(2, 1fr); } .grid.three { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid.three { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius-card); padding: 1.4rem 1.5rem; }
.card h3 { font-size: var(--fs-h3); font-weight: 600; margin-bottom: 0.4rem; }
.card p, .card li { font-size: var(--fs-small); color: var(--text-muted); line-height: 1.6; }
.card ul { display: grid; gap: 0.4rem; margin-top: 0.6rem; }
.card li { padding-left: 1.2rem; position: relative; }
.card li::before { content: ""; position: absolute; left: 0.2rem; top: 0.55em; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--primary); }
.card .tag { display: inline-block; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.2rem 0.6rem; border-radius: var(--radius-pill); background: var(--badge-bg); color: var(--primary-ink); margin-bottom: 0.6rem; }
.card .outcome { border-left: 3px solid var(--good); padding-left: 0.75rem; color: var(--text); margin-top: 0.6rem; }

/* Numbered steps */
.steps { display: grid; grid-template-columns: 1fr; gap: 1rem; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } .steps.three { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius-card); padding: 1.25rem; counter-increment: step; }
.step::before { content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--primary); color: #fff; font-family: var(--font-heading); font-weight: 700; margin-bottom: 0.75rem; }
.step h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.3rem; }
.step p { font-size: var(--fs-small); color: var(--text-muted); }

/* Callouts */
.callout { border: 1px solid var(--border); border-left: 3px solid var(--primary); border-radius: 0 12px 12px 0; background: var(--card-bg); padding: 1.1rem 1.25rem; }
.callout p { color: var(--text); }
.callout p + p { margin-top: 0.4rem; color: var(--text-muted); font-size: var(--fs-small); }
.label-note { font-size: 0.75rem; color: var(--text-muted); text-align: center; margin-top: 0.75rem; }

/* Offer box (Founding Agency, one-off report) */
.offer { display: grid; grid-template-columns: 1fr; gap: 1.25rem; align-items: center; padding: 1.5rem; border: 1px solid var(--primary); border-radius: var(--radius-card); background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(79,70,229,0.03)); box-shadow: 0 12px 32px var(--glow); }
@media (min-width: 820px) { .offer { grid-template-columns: 1.6fr 1fr; padding: 1.75rem 2rem; } }
.offer h2, .offer h3 { font-size: clamp(1.25rem, 2.6vw, 1.6rem); font-weight: 700; margin-bottom: 0.5rem; }
.offer p, .offer li { font-size: var(--fs-small); color: var(--text-muted); line-height: 1.6; }
.offer ul { display: grid; gap: 0.35rem; margin-top: 0.5rem; }
.offer li { padding-left: 1.3rem; position: relative; color: var(--text); }
.offer li::before { content: "\2713"; position: absolute; left: 0; color: var(--good); font-weight: 700; }
.offer-cta { display: flex; flex-direction: column; gap: 0.6rem; text-align: center; }
.offer-cta .btn-primary, .offer-cta .btn-outline { justify-content: center; }
.offer-price { font-family: var(--font-heading); font-size: 2.25rem; font-weight: 700; color: var(--text); line-height: 1; }
.offer-price small { font-size: 0.9rem; font-weight: 500; color: var(--text-muted); font-family: var(--font-body); }

/* Tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--card-border); border-radius: var(--radius-card); background: var(--card-bg); }
table.cmp { width: 100%; border-collapse: collapse; font-size: var(--fs-small); min-width: 600px; }
.cmp th, .cmp td { padding: 0.7rem 0.9rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.cmp thead th { font-family: var(--font-heading); font-weight: 600; background: var(--bg-alt); }
.cmp tbody th { font-weight: 500; width: 28%; }
.cmp td { color: var(--text-muted); }
.cmp td.us { color: var(--text); background: rgba(99,102,241,0.04); }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: none; }
.cmp caption { caption-side: bottom; text-align: left; font-size: 0.75rem; color: var(--text-muted); padding: 0.6rem 0.9rem; }
/* Phones: each row becomes a small card, every cell labelled by its column. */
@media (max-width: 640px) {
  table.cmp { min-width: 0; }
  .cmp thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .cmp tbody tr { display: block; padding: 0.85rem 1rem; border-bottom: 1px solid var(--border); }
  .cmp tbody tr:last-child { border-bottom: none; }
  .cmp tbody th, .cmp td { display: block; width: auto; padding: 0; border: none; }
  .cmp tbody th { margin-bottom: 0.35rem; }
  .cmp td { padding: 0.3rem 0 0.3rem 0.6rem; border-left: 2px solid var(--border); margin-top: 0.25rem; }
  .cmp td.us { border-left-color: var(--primary); background: transparent; }
  .cmp td[data-label]::before { content: attr(data-label); display: block; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.1rem; }
}

/* Definition lists (security facts) */
.facts { display: grid; gap: 0; border: 1px solid var(--card-border); border-radius: var(--radius-card); background: var(--card-bg); overflow: hidden; }
.facts > div { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); gap: 0.3rem 1.25rem; padding: 0.9rem 1.25rem; border-bottom: 1px solid var(--border); }
.facts > div:last-child { border-bottom: none; }
.facts dt { font-weight: 600; color: var(--text); font-size: var(--fs-small); }
.facts dd { color: var(--text-muted); font-size: var(--fs-small); }
@media (max-width: 640px) { .facts > div { grid-template-columns: 1fr; } }
.prose h2 { font-size: 1.35rem; font-weight: 700; margin: 2rem 0 0.6rem; }
.prose p, .prose li { color: var(--text-muted); }
.prose p + p { margin-top: 0.75rem; }
.prose ul { display: grid; gap: 0.4rem; margin: 0.6rem 0 0; }
.prose li { padding-left: 1.2rem; position: relative; }
.prose li::before { content: ""; position: absolute; left: 0.2rem; top: 0.6em; width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--primary); }
.prose strong { color: var(--text); }

/* FAQ */
.faq-wrap { max-width: 46rem; margin: 0 auto; display: flex; flex-direction: column; gap: 0.5rem; }
.faq-wrap details { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 12px; padding: 1rem 1.25rem; }
.faq-wrap details[open], .faq-wrap details:hover { border-color: rgba(99,102,241,0.4); }
.faq-wrap summary { font-weight: 600; cursor: pointer; font-size: 0.9375rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-wrap summary::-webkit-details-marker { display: none; }
.faq-wrap summary::after { content: "+"; font-weight: 400; color: var(--text-muted); font-size: 1.25rem; line-height: 1; }
.faq-wrap details[open] summary::after { content: "\2013"; }
.faq-wrap p { color: var(--text-muted); font-size: var(--fs-small); line-height: 1.65; margin-top: 0.75rem; }

/* Final CTA band */
.cta-band { text-align: center; padding: 2.5rem 1.5rem; border-radius: var(--radius-card); background: linear-gradient(135deg, #6366f1, #4f46e5); color: #fff; }
.cta-band h2 { color: #fff; font-size: var(--fs-h2); font-weight: 700; margin-bottom: 0.5rem; }
.cta-band p { color: rgba(255,255,255,0.88); max-width: 40rem; margin: 0 auto 1.25rem; }
.cta-band .hero-ctas { justify-content: center; }
.cta-band .btn-primary { background: #fff; color: #312e81; }
.cta-band .btn-primary:hover { background: #eef2ff; }
.cta-band .btn-outline { color: #fff; border-color: rgba(255,255,255,0.6); }
.cta-band .btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

/* Example result cards (same look as the homepage card) */
.ex-result { background: var(--card-bg); border: 1px solid var(--border); border-radius: 1rem; padding: 1.25rem; box-shadow: 0 20px 50px rgba(0,0,0,0.08); }
.ex-label { font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.75rem; }
.ex-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: 0.75rem; overflow: hidden; margin-bottom: 1rem; }
.ex-stats > div { padding: 0.75rem 0.85rem; border-right: 1px solid var(--border); min-width: 0; }
.ex-stats > div:last-child { border-right: 0; }
.ex-k { font-size: 0.72rem; color: var(--text-muted); overflow-wrap: anywhere; }
.ex-v { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.ex-fine { font-size: 0.75rem; color: var(--text-muted); }
.ex-rows { display: grid; gap: 0.5rem; }
.ex-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.35rem 0.75rem; align-items: center; font-size: 0.875rem; padding: 0.55rem 0.7rem; border-radius: 0.6rem; background: var(--bg-alt); }
.ex-q { color: var(--text); flex: 1 1 14rem; min-width: 0; }
.ex-pill { font-size: 0.72rem; font-weight: 600; padding: 0.2rem 0.55rem; border-radius: 999px; white-space: nowrap; }
.ex-pill.good { background: var(--good-bg); color: var(--good); }
.ex-pill.warn { background: var(--warn-bg); color: var(--warn); }
.ex-pill.muted { background: rgba(107,114,128,0.12); color: var(--text-muted); }
.ex-fix { margin-top: 1rem; padding: 0.85rem 0.9rem; border-left: 3px solid var(--primary); background: var(--bg-alt); border-radius: 0 0.6rem 0.6rem 0; font-size: 0.875rem; }
.ex-fix strong { display: block; font-family: var(--font-heading); margin-bottom: 0.15rem; }
.ex-note { margin-top: 0.6rem; font-size: 0.78rem; color: var(--text-muted); text-align: center; }
@media (max-width: 560px) {
  .ex-stats { grid-template-columns: 1fr; }
  .ex-stats > div { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 1rem; border-right: 0; border-bottom: 1px solid var(--border); }
  .ex-stats > div:last-child { border-bottom: 0; }
  .ex-stats .ex-v { grid-column: 2; grid-row: 1 / span 2; }
}

.pill-row { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; }
.center { text-align: center; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
