/* ParitySense marketing site — one stylesheet, system fonts (no web-font
   download, no layout shift). Tokens mirror the app's brand (--pv-*);
   text colours meet WCAG AA on the ink background. */
:root {
  --ink: #0B0F17;
  --panel: #121722;
  --panel-2: #171D2A;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .16);
  --text: #F1F5F9;
  --slate: #A3ADBD;          /* 7.6:1 on --ink */
  --muted: #8C97A8;          /* 5.4:1 on --ink */
  --amber: #F59E0B;
  --amber-deep: #E6930A;
  --copper: var(--amber);    /* blog.css alias */
  --green: #34D399;
  --radius: 14px;
  --wrap: 1120px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--ink); color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--amber); }
a:hover { color: #FBBF24; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .6rem; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.15rem; letter-spacing: -.01em; }
p { margin: 0 0 1rem; }
.muted { color: var(--slate); }
.small { font-size: .85rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--amber); color: var(--ink); padding: .5rem .9rem; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }
.eyebrow { color: var(--amber); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .7rem; }

/* ── Header ── */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11, 15, 23, .86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav { max-width: var(--wrap); margin: 0 auto; padding: .7rem 20px; display: flex; align-items: center; gap: 1.4rem; }
.logo { font-weight: 800; font-size: 1.25rem; color: var(--text); text-decoration: none; letter-spacing: -.02em; }
.logo span { color: var(--amber); }
.nav-links { list-style: none; display: flex; gap: 1.3rem; margin: 0 0 0 auto; padding: 0; }
.nav-links a { color: var(--slate); text-decoration: none; font-size: .93rem; }
.nav-links a:hover { color: var(--text); }
@media (max-width: 860px) { .nav-links { display: none; } .nav-cta { margin-left: auto; } }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px; padding: .65rem 1.25rem; border-radius: 10px; font-weight: 700; font-size: .95rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: var(--amber); color: #14100C; }
.btn-primary:hover { background: #FBBF24; color: #14100C; }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--amber); color: var(--text); }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; }

/* ── Sections ── */
section { padding: 88px 0; }
section + section { border-top: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 2.4rem; }
.section-head p { color: var(--slate); font-size: 1.1rem; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* Hero */
.hero { padding: 72px 0 56px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; align-items: center; }
.hero-copy { max-width: 760px; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--slate); max-width: 640px; }
.hero .actions { margin-top: 1.6rem; }
.trust-line { margin-top: 1.2rem; color: var(--muted); font-size: .88rem; }

/* Product screens */
.screen { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-strong); box-shadow: 0 30px 80px rgba(0, 0, 0, .55); background: var(--panel); }
.screen figcaption { padding: .75rem 1rem; color: var(--slate); font-size: .88rem; border-top: 1px solid var(--line); }

/* Problem cards */
.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--slate); margin: 0; }
a.card { display: block; text-decoration: none; color: inherit; transition: border-color .15s; }
a.card:hover { border-color: var(--amber); }
.card .more { display: inline-block; margin-top: .8rem; color: var(--amber); font-weight: 600; font-size: .92rem; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); counter-reset: step; }
.steps li { counter-increment: step; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: rgba(245, 158, 11, .14); color: var(--amber); font-weight: 800; margin-bottom: .8rem; }
.steps p { color: var(--slate); margin: 0; }

/* Timeline: one revision, start to finish */
.timeline { list-style: none; margin: 0; padding: 0; max-width: 780px; border-left: 2px solid var(--line-strong); }
.timeline li { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; padding: 0 0 1.4rem 1.4rem; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: .45rem; width: 12px; height: 12px; border-radius: 50%; background: var(--amber); }
.timeline time { color: var(--amber); font-weight: 700; font-variant-numeric: tabular-nums; }
.timeline div { color: var(--slate); }
.timeline strong { color: var(--text); }
@media (max-width: 520px) { .timeline li { grid-template-columns: 1fr; gap: .2rem; } }

/* Feature split: copy + screen */
.split { display: grid; gap: 2.5rem; align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .split.reverse > :first-child { order: 2; }
}
.ticks { list-style: none; padding: 0; margin: 1rem 0 0; }
.ticks li { padding-left: 1.7rem; position: relative; margin-bottom: .55rem; color: var(--slate); }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.ticks strong { color: var(--text); font-weight: 600; }

/* Human promise */
.promise { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.promise div { border-left: 3px solid var(--amber); padding: .2rem 0 .2rem 1rem; }
.promise strong { display: block; font-size: 1.05rem; }
.promise span { color: var(--slate); font-size: .95rem; }

/* FAQ */
.faq { max-width: 780px; }
.faq details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::after { content: "+"; color: var(--amber); font-weight: 800; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--slate); margin: .7rem 0 0; }

/* CTA band */
.cta-band { background: radial-gradient(800px 300px at 50% 0%, rgba(245, 158, 11, .14), transparent), var(--panel); border-top: 1px solid var(--line); text-align: center; }
.cta-band .actions { justify-content: center; margin-top: 1.4rem; }

/* Pricing */
.tiers { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.tier { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; display: flex; flex-direction: column; }
.tier.featured { border-color: var(--amber); }
.tier h2 { font-size: 1.3rem; }
.tier .price { font-size: 1.5rem; font-weight: 800; margin: .3rem 0 .2rem; }
.tier .per { color: var(--muted); font-size: .85rem; margin-bottom: 1rem; }
.tier .btn { margin-top: auto; }
.tier ul { padding-left: 1.1rem; color: var(--slate); margin: 0 0 1.4rem; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.compare { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 620px; }
table.compare th, table.compare td { padding: .65rem .9rem; border-bottom: 1px solid var(--line); text-align: center; }
table.compare th:first-child, table.compare td:first-child { text-align: left; }
table.compare thead th { background: var(--panel-2); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--slate); }
table.compare .group td { background: var(--panel-2); color: var(--amber); font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; text-align: left; }
.yes { color: var(--green); font-weight: 800; }
.no { color: var(--muted); }

/* Prose pages (about, contact, legal) */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.4rem; margin-top: 2rem; }
.prose p, .prose li { color: var(--slate); }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 56px 20px 32px; max-width: var(--wrap); margin: 0 auto; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 2fr 1fr 1.4fr 1fr; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
.footer-h { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: .7rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer a:not(.logo) { color: var(--slate); text-decoration: none; font-size: .92rem; }
.site-footer a:not(.logo):hover { color: var(--text); }
.footer-legal { margin-top: 2.4rem; border-top: 1px solid var(--line); padding-top: 1.2rem; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  section { padding: 64px 0; }
  .hero { padding-top: 48px; }
}

/* Contact form */
.form { display: grid; gap: 1rem; }
.form fieldset { border: 0; margin: 0; padding: 0; display: flex; gap: 1.2rem; align-items: center; }
.form legend { float: left; margin-right: .6rem; color: var(--slate); }
.form .intent label { display: inline-flex; gap: .4rem; align-items: center; font-weight: 600; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 600; font-size: .92rem; }
.field-row { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.form input:not([type=radio]), .form select, .form textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text); background: var(--ink);
  border: 1px solid var(--line-strong); border-radius: 10px; padding: .6rem .75rem; min-height: 44px;
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--amber); outline: none; box-shadow: 0 0 0 3px rgba(245, 158, 11, .25); }
.form [aria-invalid="true"] { border-color: #F87171; }
.err { color: #FCA5A5; font-size: .85rem; margin: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.4em; color: #FCA5A5; }

/* ── Value visuals (charts are SVG with text in HTML: legible at 360 px,
      no inline styles — the CSP is style-src 'self') ── */
.chart-hand { fill: #4B5568; }
.chart-ps { fill: var(--amber); }
.chart-grid { stroke: var(--line-strong); stroke-width: 1; }
.chart-1 { fill: var(--green); }
.chart-10 { fill: #FBBF24; }
.chart-100 { fill: #F97316; }
.note { color: var(--muted); font-size: .82rem; margin: .8rem 0 0; }

/* Hero value card: one comparison, read in two seconds */
.value-card { margin: 0; background: linear-gradient(160deg, var(--panel-2), var(--panel)); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 1.6rem; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.vc-title { font-weight: 700; margin-bottom: 1.2rem; }
.vc-row { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr) 4rem; gap: .8rem; align-items: center; margin-bottom: .8rem; font-size: .92rem; color: var(--slate); }
.vc-row svg { width: 100%; height: 16px; display: block; }
.vc-val { text-align: right; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.vc-big { margin: 1.4rem 0 0; padding-top: 1.2rem; border-top: 1px solid var(--line); color: var(--slate); }
.vc-big strong { display: block; font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.1; color: var(--text); letter-spacing: -.03em; }
@media (min-width: 960px) { .hero-grid.with-card { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
@media (max-width: 420px) { .vc-row { grid-template-columns: 1fr 4rem; } .vc-row svg { grid-column: 1 / -1; order: 3; } }

/* Value pillars */
.pillars { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.pillar { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.pillar svg { width: 36px; height: 36px; color: var(--amber); background: rgba(245, 158, 11, .12); border-radius: 10px; padding: 7px; margin-bottom: .9rem; display: block; }
.pillar h3 { margin-bottom: .35rem; }
.pillar p { color: var(--slate); margin: 0; }
.pillar .figure { display: inline-block; margin-top: .7rem; color: var(--amber); font-weight: 700; font-size: .9rem; }
@media (max-width: 360px) { .pillars { grid-template-columns: minmax(0, 1fr); } }

/* Cost of finding it late */
.escalation { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; max-width: 640px; }
.esc { display: grid; grid-template-rows: 170px auto; gap: .6rem; text-align: center; }
.esc svg { width: 100%; height: 100%; display: block; }
.esc strong { display: block; font-size: 1.5rem; letter-spacing: -.02em; }
.esc span { color: var(--slate); font-size: .9rem; line-height: 1.35; display: block; }

/* Proof moment: one cropped product image, never a whole screen */
.moment { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-strong); background: var(--panel); box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.moment figcaption { padding: .7rem 1rem; color: var(--slate); font-size: .85rem; border-top: 1px solid var(--line); }

/* Estimator */
.estimator { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .estimator { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; } }
.est-inputs { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
@media (max-width: 480px) { .est-inputs { grid-template-columns: minmax(0, 1fr); } }
.est-inputs label { display: grid; gap: .35rem; font-weight: 600; font-size: .9rem; }
.est-inputs input { width: 100%; font: inherit; font-size: 16px; color: var(--text); background: var(--ink); border: 1px solid var(--line-strong); border-radius: 10px; padding: .55rem .7rem; min-height: 44px; font-variant-numeric: tabular-nums; }
.est-inputs input:focus { border-color: var(--amber); outline: none; box-shadow: 0 0 0 3px rgba(245, 158, 11, .25); }
.est-result { background: linear-gradient(160deg, var(--panel-2), var(--panel)); border: 1px solid var(--amber); border-radius: var(--radius); padding: 1.4rem; }
.est-result .vc-row { grid-template-columns: 8.5rem minmax(0, 1fr) 5rem; }
.est-big { display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
@media (max-width: 480px) { .est-big { grid-template-columns: minmax(0, 1fr); } }
.est-big div { display: grid; gap: .2rem; }
.est-big output { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.est-big span { color: var(--slate); font-size: .88rem; }
.assumptions { margin-top: 1rem; }
.assumptions summary { cursor: pointer; color: var(--amber); font-weight: 600; font-size: .92rem; }
.assumptions p { color: var(--slate); font-size: .9rem; margin: .6rem 0 0; }

/* Before / after */
.versus { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.versus > div { border-radius: var(--radius); padding: 1.4rem; border: 1px solid var(--line); background: var(--panel); }
.versus > .after { border-color: rgba(245, 158, 11, .5); }
.versus h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.versus .after h3 { color: var(--amber); }
.versus ul { margin: 0; padding-left: 1.1rem; color: var(--slate); }
.versus li { margin-bottom: .45rem; }
.versus li strong { color: var(--text); font-weight: 600; }
.steps-compact { grid-template-columns: minmax(0, 1fr); margin-top: 1.4rem; }
.steps-compact li { padding: 1rem 1.2rem; display: grid; grid-template-columns: 2rem minmax(0, 1fr); column-gap: .9rem; }
.steps-compact li::before { margin: 0; grid-row: span 2; }
.steps-compact h3 { margin: 0; }
.est-big span output { font-size: inherit; font-weight: 700; letter-spacing: 0; color: var(--text); }
.est-inputs label { grid-template-rows: 1fr auto; align-items: end; }

/* ROI calculator */
.presets { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.2rem; }
.presets .btn[aria-pressed="true"] { border-color: var(--amber); background: rgba(245, 158, 11, .1); }
.est-inputs .wide { grid-column: 1 / -1; }
.est-inputs select { width: 100%; font: inherit; font-size: 16px; color: var(--text); background: var(--ink); border: 1px solid var(--line-strong); border-radius: 10px; padding: .55rem .7rem; min-height: 44px; }
.est-inputs select:focus { border-color: var(--amber); outline: none; box-shadow: 0 0 0 3px rgba(245, 158, 11, .25); }
.roi-total { margin: 0 0 .4rem; display: grid; }
.roi-total output { font-size: clamp(3rem, 7vw, 4.6rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--amber); font-variant-numeric: tabular-nums; }
.roi-total span { color: var(--slate); margin-top: .3rem; }
.roi-hours { color: var(--slate); padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.roi-hours output { color: var(--text); font-weight: 700; }
.roi-rows { margin-top: 1.1rem; }
.roi .vc-row { grid-template-columns: 8.5rem minmax(0, 1fr) 4.2rem; }
table.method td, table.method th { text-align: left; vertical-align: top; }
table.method td:first-child { font-weight: 600; white-space: nowrap; }
table.method td { color: var(--slate); }
.stat { display: block; font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; color: var(--text); line-height: 1.1; margin-bottom: .3rem; }
.stat-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.sources li { margin-bottom: .6rem; font-size: .92rem; }

/* Agent briefing (hero) — illustrative, not an app screen */
.briefing { margin: 0; background: linear-gradient(160deg, var(--panel-2), var(--panel)); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 1.5rem; box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 0 1px rgba(245, 158, 11, .08); }
.br-head { display: flex; align-items: center; gap: .6rem; font-weight: 700; margin-bottom: 1rem; }
.orb { width: 12px; height: 12px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 0 rgba(245, 158, 11, .6); animation: orb 2.2s ease-out infinite; flex: none; }
@keyframes orb { 0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, .55); } 80%, 100% { box-shadow: 0 0 0 12px rgba(245, 158, 11, 0); } }
@media (prefers-reduced-motion: reduce) { .orb { animation: none; } }
.br-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.br-list li { display: grid; grid-template-columns: 7.8rem minmax(0, 1fr); gap: .7rem; align-items: baseline; color: var(--slate); font-size: .93rem; padding-bottom: .55rem; border-bottom: 1px solid var(--line); }
.br-agent { color: var(--green); font-weight: 700; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.br-agent::before { content: "✓ "; }
.br-foot { margin: 1rem 0 0; font-size: 1.05rem; }
.br-foot strong { color: var(--amber); }
@media (max-width: 420px) { .br-list li { grid-template-columns: minmax(0, 1fr); gap: .1rem; } }

/* Research stats band */
.stats-band { padding: 44px 0; background: var(--panel); }
.stats { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.stats div { display: grid; gap: .25rem; align-content: start; }
.stats strong { font-size: clamp(2rem, 4vw, 2.6rem); letter-spacing: -.03em; line-height: 1; color: var(--amber); }
.stats span { color: var(--slate); font-size: .92rem; }
.stats a { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }

/* Problem → agent cards */
a.pillar { display: block; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
a.pillar:hover { border-color: var(--amber); }
@media (prefers-reduced-motion: no-preference) { a.pillar:hover { transform: translateY(-2px); } }
.pillar .problem { color: var(--text); font-style: italic; margin-bottom: .7rem; }
.teaser .roi-total output { font-size: clamp(2.6rem, 6vw, 3.8rem); }

.section-head .eyebrow { color: var(--amber); font-size: .78rem; }
@media (max-width: 420px) { .roi .vc-row, .est-result .vc-row { grid-template-columns: minmax(0, 1fr) 4.2rem; } }
