/* CX Signals — marketing site
   Single stylesheet, no build step, no external dependencies.

   Design notes
   ------------
   Editorial rather than SaaS-generic: warm paper canvas, near-black ink,
   a deep teal primary with antique gold as the warm counterpoint, serif
   display headings over a sans body, pill buttons, near-square cards.

   Fonts are system stacks on purpose. A webfont would look sharper but would
   need either an external host (which the CSP in _headers blocks) or self-hosted
   font files. Georgia is a genuinely good editorial serif and costs nothing.

   Layout is mobile-first; the breakpoint at 760px widens to the desktop grid. */

:root {
  /* Ink */
  --ink:        #14201e;   /* near-black, faintly green */
  --ink-soft:   #4e5c59;   /* 6.4:1 on paper */
  --ink-faint:  #5d6b68;   /* 5.1:1 on paper — muted, but still WCAG AA at small sizes */

  /* Surfaces */
  --paper:      #f6f4ef;   /* warm paper — the default canvas */
  --paper-deep: #edeae2;
  --card:       #ffffff;
  --line:       #ddd8cc;
  --line-soft:  #e8e4da;

  /* Accents */
  --teal:       #16605a;
  --teal-dark:  #0f4a45;
  --teal-wash:  #e4eeec;
  /* Two golds, because one can't clear WCAG AA on both surfaces. --gold is for
     paper (5.0:1); --gold-light is for the dark ink bands (7.4:1). Using the
     wrong one on the wrong background is the main way to break this palette. */
  --gold:       #8a6114;
  --gold-light: #d9a441;
  --gold-wash:  #f6eeda;

  /* Semantics */
  --risk:       #8c3450;
  --opp:        #3d7a52;

  /* Type */
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1120px;
  --r-card: 4px;
  --r-pill: 999px;
  --shadow: 0 1px 2px rgba(20, 32, 30, .05), 0 12px 32px rgba(20, 32, 30, .06);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.68;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
}
h1 { font-size: 3rem; }
h2 { font-size: 2.15rem; }
h3 { font-size: 1.25rem; line-height: 1.3; }
p  { margin: 0 0 1em; }
a  { color: var(--teal); text-underline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 740px; }

/* Small uppercase letterspaced label, with a short rule leading into it.
   Sits above every section heading and carries most of the site's rhythm. */
.label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.label::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  flex: none;
}
.label.is-centred { justify-content: center; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 244, 239, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  flex-wrap: wrap;
}
.logo {
  font-family: var(--serif);
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.logo-mark {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-wash);
  flex: none;
}
.nav { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
/* :not(.btn) matters — `.nav a` outranks `.btn-primary` on specificity, so
   without it the header CTA inherits --ink-soft text on its dark fill. */
.nav a:not(.btn) {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: .93rem;
  font-weight: 500;
}
.nav a:not(.btn):hover { color: var(--ink); }
.nav a[aria-current="page"]:not(.btn) { color: var(--ink); box-shadow: inset 0 -1px 0 var(--gold); }

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

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: var(--r-pill);
  font-family: var(--sans);
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .01em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--teal); }
.btn-primary:disabled { background: var(--ink-faint); cursor: not-allowed; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-lg { padding: 15px 34px; font-size: 1rem; }

/* ── Bands ────────────────────────────────────────────────── */

section { padding: 96px 0; }
.band-white { background: var(--card); }
.band-deep  { background: var(--paper-deep); }
.band-ink   { background: var(--ink); color: var(--paper); }
.band-ink h1, .band-ink h2, .band-ink h3 { color: var(--paper); }
.band-ink p { color: rgba(246, 244, 239, .72); }
.band-ink .label { color: var(--gold-light); }
.band-ink a { color: var(--gold-light); }

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 { margin-bottom: .35em; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; margin-bottom: 0; }
.band-ink .section-head p { color: rgba(246, 244, 239, .7); }
.section-head.is-centred { margin-inline: auto; text-align: center; }

.grid { display: grid; gap: 28px; }
@media (min-width: 760px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
/* Four tracks below ~1000px leaves each column too narrow to read; pair them
   up instead. Only .grid-4 is affected — currently just the pricing stats. */
@media (min-width: 760px) and (max-width: 999px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

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

.hero { padding: 104px 0 88px; }
.hero h1 { font-size: 3.3rem; max-width: 20ch; margin-bottom: .3em; }
.hero-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 28px;
}
.hero .lede {
  font-size: 1.18rem;
  color: var(--ink-soft);
  max-width: 56ch;
  margin-bottom: 1.1em;
}
.hero .lede:last-of-type { margin-bottom: 38px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-note { font-size: .88rem; color: var(--ink-faint); margin: 24px 0 0; }
.hero-sub { padding: 88px 0 40px; }
.hero-sub h1 { font-size: 3rem; }
.hero-sub .lede { font-size: 1.14rem; color: var(--ink-soft); max-width: 56ch; margin-bottom: 0; }

/* ── Cards ────────────────────────────────────────────────── */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 32px;
}
.card h3 { margin-bottom: .35em; font-size: 1.15rem; }
.card p { color: var(--ink-soft); font-size: .96rem; margin-bottom: 0; }
.band-white .card { background: var(--paper); }

/* ── How it works ─────────────────────────────────────────
   A vertical list of rows rather than a card grid: the step count changes as
   the product grows, and rows absorb that without reflowing into a ragged
   last line. Desktop is a three-track row (numeral · title · body); narrow
   screens stack the same markup. Also used, in card form, for the About
   principles — see .grid .step below. */

.step-figure {
  font-family: var(--serif);
  font-size: 3.4rem;
  line-height: 1;
  color: var(--gold-light);
  display: block;
}
.step h3 { font-size: 1.35rem; margin-bottom: .4em; }
.step p { font-size: .99rem; margin-bottom: 1em; }
.step p:last-child { margin-bottom: 0; }
.step em { font-style: italic; color: var(--paper); }

.steps .step {
  border-top: 1px solid rgba(246, 244, 239, .16);
  padding: 34px 0;
  display: grid;
  gap: 4px 32px;
  grid-template-columns: 1fr;
}
.steps .step:last-child { border-bottom: 1px solid rgba(246, 244, 239, .16); }
.steps .step-figure { margin-bottom: 12px; }

@media (min-width: 860px) {
  .steps .step {
    grid-template-columns: 96px 220px 1fr;
    align-items: start;
    padding: 40px 0;
  }
  .steps .step-figure { margin-bottom: 0; }
  .steps .step h3 { margin-bottom: 0; padding-top: .35em; }
  .steps .step-body { padding-top: .5em; }
}

/* Card variant — the three principles on the About page sit in a .grid,
   so they need the block layout the rows override above. */
.grid .step {
  border-top: 1px solid rgba(246, 244, 239, .16);
  padding-top: 26px;
}
.grid .step-figure { margin-bottom: 18px; }

/* ── Two-column contrast (today vs with CX Signals) ───────── */

.contrast {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 34px;
}
.contrast.is-good { background: var(--ink); border-color: var(--ink); }
.contrast h3 {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1.2em;
}
.contrast.is-good h3 { color: var(--gold-light); }
.contrast ul { margin: 0; padding: 0; list-style: none; }
.contrast li {
  color: var(--ink-soft);
  padding: 14px 0;
  border-top: 1px solid var(--line-soft);
  font-size: .97rem;
}
.contrast li:first-child { border-top: 0; padding-top: 0; }
.contrast.is-good li { color: rgba(246, 244, 239, .82); border-top-color: rgba(246, 244, 239, .14); }

/* ── Sample talking-point card ────────────────────────────── */

.sample {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 30px;
  box-shadow: var(--shadow);
}
.sample-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.badge {
  font-family: var(--sans);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  color: #fff;
}
.badge-risk { background: var(--risk); }
.badge-opp  { background: var(--opp); }
.badge-new  { background: var(--gold); }
.sample h3 { font-size: 1.3rem; margin-bottom: .5em; }
.sample p { font-size: .97rem; color: var(--ink-soft); margin-bottom: 0; }
.sample-source {
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

/* ── Stats ────────────────────────────────────────────────── */

.stat { text-align: center; }
.stat-num {
  font-family: var(--serif);
  font-size: 3.2rem;
  line-height: 1;
  color: var(--gold-light);
  display: block;
  margin-bottom: 12px;
}
/* Word-based headline instead of a figure. Smaller, because a three-word
   phrase at 3.2rem wraps to three lines in a quarter-width column — but it
   keeps the numerals' box height so every stat's body text starts on the
   same line across the row. */
.stat-num.is-phrase {
  font-size: 2rem;
  line-height: 1.15;
  min-height: 3.2rem;
  display: grid;
  place-items: center;
}
.stat p { font-size: .95rem; margin-bottom: 0; }

/* ── Pricing ──────────────────────────────────────────────── */

.price-grid { display: grid; gap: 28px; align-items: stretch; }
@media (min-width: 760px) { .price-grid { grid-template-columns: repeat(2, 1fr); } }

.plan {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 40px 36px;
  background: var(--card);
  display: flex;
  flex-direction: column;
}
.plan.is-featured {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.plan-flag {
  position: absolute;
  top: 0; right: 32px;
  transform: translateY(-50%);
  background: var(--gold);
  color: #fff;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--r-pill);
}
.plan-name {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.plan.is-featured .plan-name { color: var(--gold-light); }
.plan-price {
  font-family: var(--serif);
  font-size: 3.4rem;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 16px 0 6px;
}
.plan-price span { font-family: var(--sans); font-size: .95rem; color: var(--ink-faint); letter-spacing: .02em; }
.plan.is-featured .plan-price span { color: rgba(246, 244, 239, .6); }
.plan-sub { color: var(--ink-soft); font-size: .98rem; }
.plan.is-featured .plan-sub { color: rgba(246, 244, 239, .72); }
.plan ul { list-style: none; padding: 0; margin: 30px 0; flex: 1; }
.plan li {
  padding: 13px 0 13px 30px;
  position: relative;
  border-top: 1px solid var(--line-soft);
  color: var(--ink-soft);
  font-size: .96rem;
}
.plan.is-featured li { color: rgba(246, 244, 239, .82); border-top-color: rgba(246, 244, 239, .14); }
.plan li::before {
  content: "";
  position: absolute;
  left: 4px; top: 1.35em;
  width: 6px; height: 11px;
  border: solid var(--teal);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}
.plan.is-featured li::before { border-color: var(--gold-light); }
.plan.is-featured .btn-ghost { border-color: var(--paper); color: var(--paper); }
.plan.is-featured .btn-ghost:hover { background: var(--paper); color: var(--ink); }

.plan-note {
  margin: 26px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(246, 244, 239, .14);
  font-size: .86rem;
  line-height: 1.6;
  color: rgba(246, 244, 239, .66);
}

/* ── Pricing calculator ───────────────────────────────────── */

.calc {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--card);
}
@media (min-width: 860px) { .calc { grid-template-columns: 1.05fr .95fr; } }

.calc-inputs { padding: 40px; }
.calc-field { margin-bottom: 28px; border: 0; padding: 0; }
.calc-field:last-child { margin-bottom: 0; }
.calc-field > label, .calc-field legend {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 10px;
  padding: 0;
}
.calc-field input[type="number"], .calc-field select {
  width: 100%;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--ink);
}
.calc-field select { font-size: 1.2rem; }
.calc-field input[type="number"]:focus, .calc-field select:focus {
  outline: none;
  border-bottom-color: var(--teal);
  border-bottom-width: 2px;
  padding-bottom: 9px;
}

/* Segmented rate switch — real radios, restyled. Keeping them as radios means
   arrow-key navigation and screen-reader grouping work without extra script. */
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.segmented input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segmented label {
  display: block;
  text-align: center;
  padding: 14px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  cursor: pointer;
  font-size: .95rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.segmented label span {
  display: block;
  font-weight: 400;
  font-size: .82rem;
  color: var(--ink-faint);
  margin-top: 2px;
}
.segmented label:hover { border-color: var(--ink-faint); }
.segmented input:checked + label {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.segmented input:checked + label span { color: var(--gold-light); }
.segmented input:focus-visible + label { outline: 2px solid var(--teal); outline-offset: 2px; }

.calc-result {
  background: var(--ink);
  color: var(--paper);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.calc-result-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 10px;
}
.calc-figure {
  font-family: var(--serif);
  font-size: 4rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--paper);
  margin: 0 0 32px;
}
.calc-meta { margin: 0; display: grid; gap: 0; }
.calc-meta > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-top: 1px solid rgba(246, 244, 239, .14);
}
.calc-meta dt { font-size: .9rem; color: rgba(246, 244, 239, .66); }
.calc-meta dd { margin: 0; font-family: var(--serif); font-size: 1.15rem; color: var(--paper); }

table.compare { width: 100%; border-collapse: collapse; font-size: .96rem; }
table.compare th, table.compare td { text-align: left; padding: 16px 16px; border-bottom: 1px solid var(--line-soft); }
table.compare th {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--ink-faint);
  border-bottom-color: var(--line);
}
table.compare tbody tr:hover { background: var(--paper); }
table.compare td:not(:first-child) { text-align: center; }
table.compare td:last-child { font-family: var(--serif); font-size: 1.1rem; color: var(--ink); }
.table-scroll { overflow-x: auto; }

/* ── FAQ ──────────────────────────────────────────────────── */

.faq { max-width: 760px; }
.faq-item { border-top: 1px solid var(--line); padding: 30px 0; }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item h3 { font-size: 1.25rem; margin-bottom: .45em; }
.faq-item p { color: var(--ink-soft); margin-bottom: 0; }

/* ── Form ─────────────────────────────────────────────────── */

.split { display: grid; gap: 56px; }
@media (min-width: 900px) { .split { grid-template-columns: 1.1fr .9fr; gap: 80px; } }

.form { max-width: 560px; }
.field { margin-bottom: 24px; }
.field label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.field .hint { letter-spacing: .08em; color: var(--ink-faint); font-weight: 600; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 13px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  font-family: var(--sans);
  font-size: 1.05rem;
  color: var(--ink);
}
.field select { padding-left: 0; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-bottom-color: var(--teal);
  border-bottom-width: 2px;
  padding-bottom: 12px;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field textarea { min-height: 96px; resize: vertical; }

/* Honeypot — hidden from humans, tempting to bots. Not display:none,
   which some bots skip; off-screen positioning catches more of them. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { margin-top: 20px; font-size: .95rem; padding: 14px 18px; border-radius: var(--r-card); display: none; }
.form-status.is-error { display: block; background: #fbeef1; color: var(--risk); border: 1px solid #efd4db; }
.form-status.is-ok    { display: block; background: var(--teal-wash); color: var(--teal-dark); border: 1px solid #c9ded9; }

/* Reassurance panel beside the form */
.aside-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 36px;
}
.aside-panel ol { list-style: none; counter-reset: nx; padding: 0; margin: 0; }
.aside-panel li {
  counter-increment: nx;
  position: relative;
  padding: 0 0 26px 46px;
  color: var(--ink-soft);
  font-size: .96rem;
}
.aside-panel li:last-child { padding-bottom: 0; }
.aside-panel li::before {
  content: counter(nx);
  position: absolute;
  left: 0; top: -4px;
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--gold);   /* on white card — paper gold is correct here */
}
.aside-panel strong { color: var(--ink); font-weight: 600; display: block; }

/* ── CTA band ─────────────────────────────────────────────── */

.cta-band { background: var(--ink); color: var(--paper); text-align: center; }
.cta-band h2 { color: var(--paper); font-size: 2.6rem; max-width: 18ch; margin-inline: auto; }
.cta-band p { color: rgba(246, 244, 239, .72); max-width: 46ch; margin-inline: auto; }
.cta-band .btn-primary { background: var(--paper); color: var(--ink); }
.cta-band .btn-primary:hover { background: var(--gold-light); color: var(--ink); }

/* ── Prose / editorial ────────────────────────────────────── */

.prose { padding: 64px 0 96px; }
.prose h2 { font-size: 1.75rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.6em; }
.prose ul { color: var(--ink-soft); padding-left: 22px; }
.prose li { margin-bottom: .5em; }
.prose p { color: var(--ink-soft); }
.prose .lead { font-size: 1.2rem; color: var(--ink); font-family: var(--serif); line-height: 1.5; }
.updated { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }

.pullquote {
  font-family: var(--serif);
  font-size: 1.7rem;
  line-height: 1.35;
  color: var(--ink);
  border-left: 2px solid var(--gold);
  padding: 4px 0 4px 28px;
  margin: 48px 0;
}

.callout {
  background: var(--gold-wash);
  border: 1px solid #e6d3a8;
  border-radius: var(--r-card);
  padding: 20px 22px;
  font-size: .93rem;
  color: #6b4c10;
}
.callout p:last-child { margin-bottom: 0; }

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

.site-footer {
  background: var(--ink);
  color: rgba(246, 244, 239, .68);
  padding: 64px 0 56px;
  font-size: .93rem;
}
.site-footer .logo { color: var(--paper); }
.footer-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.site-footer a { color: rgba(246, 244, 239, .68); text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); }
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-legal {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid rgba(246, 244, 239, .14);
  color: rgba(246, 244, 239, .55);   /* .45 dropped below AA at this size */
  font-size: .82rem;
}

/* ── Narrow screens ───────────────────────────────────────── */

@media (max-width: 759px) {
  body { font-size: 16px; }
  h1 { font-size: 2.3rem; }
  h2 { font-size: 1.8rem; }
  .hero { padding: 60px 0 52px; }
  .hero h1 { font-size: 2.15rem; }
  .hero-tagline { font-size: 1.08rem; margin-bottom: 22px; }
  .hero .lede { font-size: 1.06rem; }
  .steps .step { padding: 26px 0; }
  .step-figure { font-size: 2.8rem; }
  .hero-sub { padding: 52px 0 28px; }
  .hero-sub h1 { font-size: 2.2rem; }
  section { padding: 64px 0; }
  .section-head { margin-bottom: 40px; }
  .plan, .contrast, .aside-panel { padding: 28px 24px; }
  .calc-inputs, .calc-result { padding: 28px 24px; }
  .calc-figure { font-size: 3rem; }
  .plan-price { font-size: 2.8rem; }
  .cta-band h2 { font-size: 2rem; }
  .pullquote { font-size: 1.35rem; padding-left: 20px; }
  .site-header .wrap { min-height: 62px; }
  .nav { gap: 18px; }
}

/* Three-up pricing (standard / wider lens / enterprise) */
@media (min-width: 1000px) { .price-grid.is-three { grid-template-columns: repeat(3, 1fr); } }

/* Pricing footnote sits under the cards so button rows align across all three */
.price-footnote { margin: 28px 0 0; max-width: 70ch; font-size: .88rem; line-height: 1.6; color: var(--ink-faint); }

/* ── Contact page ─────────────────────────────────────────── */

.contact-hero {
  padding: 84px 0 140px;
  text-align: center;
  background:
    radial-gradient(900px 340px at 85% -10%, rgba(217, 164, 65, .22), transparent 70%),
    radial-gradient(800px 360px at 10% 0%, rgba(22, 96, 90, .16), transparent 70%),
    var(--paper-deep);
}
.contact-hero .lede { margin-left: auto; margin-right: auto; }
.contact-body { padding: 0 0 72px; }
.form-card {
  max-width: 720px;
  margin: -88px auto 0;
  padding: 44px 48px 36px;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: var(--r-card);
  box-shadow: var(--shadow), 0 24px 60px rgba(20, 32, 30, .10);
}
.form-card .form { max-width: none; }
.field-row { display: grid; gap: 0 24px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.form-card .field input,
.form-card .field textarea,
.form-card .field select {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper);
}
.form-card .field input:focus,
.form-card .field textarea:focus,
.form-card .field select:focus {
  border: 1px solid var(--teal);
  box-shadow: 0 0 0 3px var(--teal-wash);
  background: var(--card);
  padding-bottom: 13px;
}
.btn-block { width: 100%; justify-content: center; text-align: center; }
.form-fine { margin: 22px 0 0; font-size: .86rem; color: var(--ink-faint); text-align: center; }
.trust-row {
  list-style: none;
  margin: 36px auto 0;
  padding: 0;
  max-width: 900px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 36px;
  font-size: .92rem;
  color: var(--ink-soft);
}
.trust-row li::before { content: "\2713"; color: var(--teal); font-weight: 700; margin-right: 8px; }
.next-band { padding: 84px 0; }
.next-steps .step h3 { margin-top: 6px; }
@media (max-width: 759px) {
  .contact-hero { padding: 56px 0 120px; }
  .form-card { padding: 30px 22px 26px; margin-top: -72px; }
}

/* ═══════════════════════════════════════════════════════════
   Polish layer (2026-10-04). Sits on top of the base styles above so the
   original design stays readable and any piece can be reverted by deleting
   its block. Covers: type, buttons, tinted backgrounds, meaning-carrying
   colour, richer cards, scroll reveal.
   ═══════════════════════════════════════════════════════════ */

/* ── Type ─────────────────────────────────────────────────── */
/* Still system fonts (the CSP and privacy stance forbid a font CDN). The stack
   now prefers the better editorial serifs that ship with each OS — Iowan/Charter
   on Apple, Sitka/Cambria on Windows — before falling back to Georgia. */
:root {
  --serif: "Iowan Old Style", Charter, "Sitka Text", Cambria, Georgia, "Palatino Linotype", Palatino, "Times New Roman", serif;
}
h1 { font-size: clamp(2.5rem, 5.2vw, 3.6rem); line-height: 1.06; letter-spacing: -0.028em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); letter-spacing: -0.022em; }
.hero h1 { font-size: clamp(2.7rem, 5.6vw, 4rem); max-width: 17ch; }
.hero-sub h1 { font-size: clamp(2.4rem, 4.6vw, 3.4rem); }
h1 em, h2 em, .hero h1 em { font-style: italic; color: var(--gold); }
.band-ink h1 em, .band-ink h2 em, .cta-band h2 em { color: var(--gold-light); }
::selection { background: var(--gold-wash); color: var(--ink); }

/* ── Buttons: teal is the action colour ───────────────────── */
.btn { transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 6px 16px rgba(22, 96, 90, .22); }
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(22, 96, 90, .28); }
.btn-primary:disabled { background: var(--ink-faint); box-shadow: none; transform: none; }
.btn-ghost { border-color: var(--teal); color: var(--teal); }
.btn-ghost:hover { background: var(--teal); color: #fff; }
.cta-band .btn-primary, .band-ink .btn-primary { background: var(--gold-light); color: var(--ink); box-shadow: 0 8px 22px rgba(217, 164, 65, .28); }
.cta-band .btn-primary:hover, .band-ink .btn-primary:hover { background: #fff; color: var(--ink); }
.band-ink .btn-ghost { border-color: rgba(246, 244, 239, .5); color: var(--paper); }
.band-ink .btn-ghost:hover { background: var(--paper); color: var(--ink); }
.plan.is-featured .btn-ghost { border-color: var(--gold-light); color: var(--gold-light); }
.plan.is-featured .btn-ghost:hover { background: var(--gold-light); color: var(--ink); }
.logo-mark { background: var(--gold); box-shadow: 0 0 0 4px var(--gold-wash), 0 0 0 5px rgba(22, 96, 90, .35); }
.nav a[aria-current="page"]:not(.btn) { box-shadow: inset 0 -2px 0 var(--teal); }

/* ── Tinted backgrounds ───────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(760px 380px at 92% -8%, rgba(217, 164, 65, .24), transparent 70%),
    radial-gradient(820px 420px at 4% 0%, rgba(22, 96, 90, .15), transparent 70%),
    var(--paper-deep);
}
/* faint dot grid, fading out downward */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(20, 32, 30, .16) 1px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
  pointer-events: none;
}
.hero > .wrap { position: relative; }
.hero-sub {
  background:
    radial-gradient(760px 300px at 90% -20%, rgba(217, 164, 65, .20), transparent 70%),
    radial-gradient(760px 320px at 6% -10%, rgba(22, 96, 90, .13), transparent 70%),
    var(--paper-deep);
  padding-bottom: 72px;
}
.band-ink {
  background:
    radial-gradient(640px 320px at 100% 0%, rgba(217, 164, 65, .13), transparent 70%),
    linear-gradient(165deg, #14201e 0%, #0d3430 100%);
}
.cta-band {
  background:
    radial-gradient(560px 260px at 15% 0%, rgba(217, 164, 65, .18), transparent 70%),
    radial-gradient(640px 300px at 90% 100%, rgba(22, 96, 90, .55), transparent 70%),
    var(--ink);
}
.site-footer { background: linear-gradient(180deg, #0f1a18 0%, #14201e 100%); }
.band-tint { background: linear-gradient(180deg, var(--teal-wash) 0%, #f1f5f3 100%); }
.band-tint .card { background: var(--card); border-color: rgba(22, 96, 90, .16); }
.band-deep { background: linear-gradient(180deg, var(--gold-wash) 0%, var(--paper-deep) 100%); }

/* ── Colour that means something ──────────────────────────── */
/* Today vs With CX Signals: a plum cross vs a green tick, and a coloured top edge. */
.contrast { border-top: 4px solid var(--risk); }
.contrast.is-good { border-top-color: #5fb27f; }
.contrast li { position: relative; padding-left: 32px; }
.contrast li::before {
  content: "\2715";
  position: absolute; left: 0; top: 15px;
  width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: .62rem; font-weight: 700;
  color: var(--risk); background: #f6e6ec;
}
.contrast li:first-child::before { top: 1px; }
.contrast.is-good li::before { content: "\2713"; color: #0f2f2c; background: #7fcf9b; }
.contrast h3 { color: var(--risk); }
.contrast.is-good h3 { color: #7fcf9b; }
/* Sample signals carry their label colour on the card edge. */
.sample { border-left: 4px solid var(--line); }
.sample:has(.badge-opp)  { border-left-color: var(--opp); background: linear-gradient(135deg, #f1f8f3 0%, #fff 55%); }
.sample:has(.badge-risk) { border-left-color: var(--risk); background: linear-gradient(135deg, #fbf1f4 0%, #fff 55%); }
.stat-num { background: linear-gradient(180deg, #f2c66d, #c98f27); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ── Richer cards ─────────────────────────────────────────── */
.card { position: relative; overflow: hidden; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.card::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--gold-light));
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow), 0 18px 40px rgba(20, 32, 30, .08); border-color: rgba(22, 96, 90, .35); }
.card:hover::before { transform: scaleX(1); }
.card-icon {
  width: 46px; height: 46px; margin-bottom: 20px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--teal-wash); color: var(--teal);
}
.card-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.grid .card:nth-child(3n+2) .card-icon { background: var(--gold-wash); color: var(--gold); }
.grid .card:nth-child(3n) .card-icon { background: #e6f2ea; color: var(--opp); }
.plan { transition: transform .22s ease, box-shadow .22s ease; }
.plan:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

/* ── Scroll reveal (only when JS is running; never hides content otherwise) ── */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .card, .card::before, .btn, .plan { transition: none; }
  .card:hover, .plan:hover, .btn-primary:hover { transform: none; }
  html { scroll-behavior: auto; }
}

h1, h2 { text-wrap: balance; }
