/* GoodMatch. Fonts are served from this domain, so no visitor IP address is sent to Google. */
@font-face{font-family:'Source Serif 4';font-style:normal;font-weight:400 700;font-display:swap;src:url(/fonts/source-serif-4-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Source Serif 4';font-style:normal;font-weight:400 700;font-display:swap;src:url(/fonts/source-serif-4-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Inter';font-style:normal;font-weight:300 800;font-display:swap;src:url(/fonts/inter-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Inter';font-style:normal;font-weight:300 800;font-display:swap;src:url(/fonts/inter-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Inter Fallback';src:local('Arial');size-adjust:107%;ascent-override:90%;descent-override:22%;line-gap-override:0%}
@font-face{font-family:'Source Serif Fallback';src:local('Georgia');size-adjust:98%;ascent-override:92%;descent-override:30%;line-gap-override:0%}

/* The palette is the GoodMatch logo itself: its navy ground and its gold infinity. */
:root {
  --indigo: #001F59;
  --violet: #ED9C14;
  --lavender: #F6C878;
  --ink: #0A1633;
  --ink-2: #33415F;
  --muted: #647089;
  --bg: #FFFFFF;
  --soft: #FBF7EF;
  --soft-2: #F5ECDA;
  --rule: #ECE4D3;
  --card: #FFFFFF;
  --good: #0E8A5F;
  --bad: #C2334D;
  --accent: #001F59;
  --accent-ink: #FFFFFF;
  /* The gold darkened until it holds AA on white and on the cream sections. */
  --link: #8A5500;
  --grad: linear-gradient(135deg, #001F59 0%, #0B3A8C 100%);
  --grad-text: linear-gradient(100deg, #C77A06 0%, #ED9C14 60%, #F2B544 100%);
  --glow: radial-gradient(60% 60% at 70% 30%, rgba(237, 156, 20, .18), rgba(237, 156, 20, 0) 70%);
  --shadow: 0 1px 2px rgba(10, 22, 51, .06), 0 12px 32px -12px rgba(0, 31, 89, .18);
  --shadow-lg: 0 2px 4px rgba(10, 22, 51, .06), 0 32px 64px -24px rgba(0, 31, 89, .32);
  --font: 'Inter', 'Inter Fallback', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Source Serif 4', 'Source Serif Fallback', Georgia, serif;
  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 32px);
  --r: 18px;
  --r-sm: 12px;
  color-scheme: light dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); overflow-x: clip; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--ink); overflow-x: clip;
  font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-feature-settings: 'cv11', 'ss03';
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 8px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--link);
}
.eyebrow::before { content: ''; width: 18px; height: 2px; border-radius: 2px; background: var(--grad); }
h1.h1, .h1 { font-family: var(--serif); font-optical-sizing: auto; font-weight: 600; font-size: clamp(40px, 6.2vw, 76px); line-height: 1.02; letter-spacing: -.035em; font-weight: 700; text-wrap: balance; }
.h2 { font-family: var(--serif); font-optical-sizing: auto; font-weight: 600; font-size: clamp(30px, 4.2vw, 50px); line-height: 1.08; letter-spacing: -.03em; font-weight: 700; text-wrap: balance; }
.lead, .card p, .step p { text-wrap: pretty; }
.h3 { font-size: 20px; line-height: 1.3; letter-spacing: -.015em; font-weight: 650; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--ink-2); }
.grad-text { background: var(--grad-text, var(--grad)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.sec { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.sec.soft { background: var(--soft); }
.sec-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.sec-head .h2 { margin: 14px 0 16px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .eyebrow { justify-content: center; }
.prose p + p { margin-top: 1em; }
.prose a, .text-link { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font-size: 16px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn svg { width: 18px; height: 18px; transition: transform .2s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 24px -10px rgba(35, 7, 137, .6); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -10px rgba(35, 7, 137, .7); }
.btn-ghost { border-color: var(--rule); background: var(--card); color: var(--ink); }
.btn-ghost:hover { border-color: var(--lavender); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--rule); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -.02em; }
.brand svg { width: 34px; height: 34px; border-radius: 9px; }
.brand b { font-weight: 700; }
.brand span { font-weight: 450; color: var(--ink-2); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 10px 14px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--ink-2); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--soft); }
.nav .btn { min-height: 42px; padding: 0 18px; margin-left: 8px; font-size: 15px; color: var(--accent-ink); }
.nav .btn:hover { background: var(--accent); color: var(--accent-ink); }
.menu-btn { display: none; }
@media (max-width: 920px) {
  .nav { display: none; }
  .menu-btn {
    display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px;
    border: 1px solid var(--rule); border-radius: 12px; background: var(--card); color: var(--ink);
  }
  .menu-btn svg { width: 22px; height: 22px; }
  .site-header.open .nav {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: absolute; left: 0; right: 0; top: 100%; padding: 12px var(--gutter) 20px;
    background: var(--bg); border-bottom: 1px solid var(--rule); box-shadow: var(--shadow);
  }
  .site-header.open .nav a { padding: 14px 12px; font-size: 17px; }
  .site-header.open .nav .btn { margin: 10px 0 0; min-height: 52px; }
}

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 8vw, 104px); overflow: clip; }
.hero::before { content: ''; position: absolute; inset: -20% -10% auto auto; width: 70%; height: 120%; background: var(--glow); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(40px, 5vw, 72px); align-items: center; position: relative; }
.hero .h1 { margin: 18px 0 22px; }
.hero .lead { max-width: 560px; margin-bottom: 32px; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.hero-note svg { width: 16px; height: 16px; color: var(--good); flex: none; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } }

/* The audit card: an illustration of what a review finds, drawn in HTML so it is sharp at any size,
   readable in dark mode and costs no image request. It is marked as illustrative. */
.audit { position: relative; }
.audit-card {
  position: relative; background: var(--card); border: 1px solid var(--rule); border-radius: 24px;
  box-shadow: var(--shadow-lg); padding: 26px; font-size: 15px;
}
/* Title and chip stack on the left, so the top-right corner is free for the floating badge. */
.audit-top { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 20px; }
.audit-top b { font-size: 16px; letter-spacing: -.01em; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--soft-2); color: var(--indigo); }
.chip.good { background: color-mix(in srgb, var(--good) 14%, transparent); color: var(--good); }
.audit-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--rule); }
.audit-row span { color: var(--ink-2); }
.audit-row strong { font-variant-numeric: tabular-nums; font-weight: 650; }
.meter { grid-column: 1 / -1; height: 8px; border-radius: 8px; background: var(--soft-2); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: inherit; background: var(--grad); width: var(--w); }
.meter.before i { background: var(--lavender); }
.audit-sum { margin-top: 8px; padding: 18px; border-radius: 16px; background: var(--grad); color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.audit-sum small { display: block; opacity: .85; font-size: 13px; }
.audit-sum strong { font-size: 30px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.audit-float {
  position: absolute; background: var(--card); border: 1px solid var(--rule); border-radius: 16px;
  box-shadow: var(--shadow); padding: 12px 16px; font-size: 13px; display: flex; gap: 10px; align-items: center;
}
.audit-float b { display: block; font-size: 18px; letter-spacing: -.02em; }
.audit-float .dot { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--soft-2); color: var(--indigo); flex: none; }
.audit-float .dot svg { width: 18px; height: 18px; }
/* Both badges sit on the card's edge, over its padding, never over a figure. */
.af-1 { left: -30px; bottom: -40px; }
.af-2 { right: -22px; top: -26px; }
.illus { position: absolute; right: 18px; bottom: -28px; font-size: 12px; color: var(--muted); }
@media (max-width: 980px) { .audit { max-width: 520px; margin-inline: auto; width: 100%; } .af-1 { left: -8px; } .af-2 { right: -6px; } }
@media (max-width: 520px) { .af-1, .af-2 { display: none; } .audit-card { padding: 20px; } }
@media (prefers-reduced-motion: no-preference) {
  .af-1 { animation: bob 7s ease-in-out infinite; }
  .af-2 { animation: bob 8s ease-in-out -3s infinite; }
}
@keyframes bob { 50% { transform: translateY(-8px); } }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--rule); border-radius: var(--r); background: var(--card); overflow: hidden; }
.stat { padding: 28px 26px; border-left: 1px solid var(--rule); }
.stat:first-child { border-left: 0; }
.stat dt { font-size: clamp(32px, 3.6vw, 44px); font-weight: 700; letter-spacing: -.035em; line-height: 1; }
.stat dd { margin-top: 10px; font-size: 15px; color: var(--muted); }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(3) { border-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--rule); } }

/* ---------- logo wall ---------- */
/* Every logo is a one-colour mask (scripts/build-logos.py) painted in the text colour, so the wall
   is one calm colour in light mode and in dark mode alike. */
/* The lines between tiles are each tile's own right and bottom edge. The outer frame clips the ones on
   the far edges, and a short last row leaves plain card behind it rather than a coloured block. */
/* Flex, not grid, so a short last row sits in the middle instead of hanging off the left. */
.logos { display: flex; flex-wrap: wrap; justify-content: center; background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; }
/* min-width 0: a flex item will not shrink below its content, so one wide logo pushed a row to five. */
.logo { flex: 0 0 calc(100% / 6); min-width: 0; display: grid; place-items: center; min-height: 104px; padding: 18px 22px; box-shadow: 1px 0 0 var(--rule), 0 1px 0 var(--rule); }
.logo i {
  display: block; width: calc(var(--w) * .46px); max-width: 80%; aspect-ratio: var(--w) / var(--h);
  background: var(--ink-2); opacity: .82; transition: opacity .2s ease, background-color .2s ease;
  -webkit-mask: var(--src) center / contain no-repeat; mask: var(--src) center / contain no-repeat;
}
.logo:hover i { opacity: 1; background: var(--indigo); }
@media (max-width: 980px) { .logo { flex-basis: 25%; } }
@media (max-width: 620px) { .logo { flex-basis: 50%; min-height: 84px; padding: 16px 20px; } .logo i { width: calc(var(--w) * .38px); } }
.logos-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 20px; flex-wrap: wrap; font-size: 15px; color: var(--muted); }

/* ---------- cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 980px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card {
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); padding: 30px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
a.card { display: block; text-decoration: none; }
a.card:hover, .card.lift:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--lavender); }
.card .h3 { margin: 18px 0 10px; }
.card p { color: var(--ink-2); font-size: 16px; }
.ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--soft-2); color: var(--indigo); }
.ico svg { width: 24px; height: 24px; }
.card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-weight: 600; font-size: 15px; color: var(--link); }
.card .more svg { width: 16px; height: 16px; transition: transform .2s ease; }
a.card:hover .more svg { transform: translateX(3px); }

/* The payments manager, alone and with us: the same four jobs, side by side. */
.pm-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.pm-col { border-radius: var(--r); padding: 30px; border: 1px solid var(--rule); background: var(--soft); }
.pm-col.with { background: var(--card); border-color: var(--violet); box-shadow: var(--shadow); }
.pm-col h3 { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.pm-col.with h3 { color: var(--link); }
.pm-col li { display: flex; gap: 12px; align-items: flex-start; padding: 13px 0; border-top: 1px solid var(--rule); color: var(--ink-2); text-wrap: pretty; }
.pm-col li:first-child { border-top: 0; }
.pm-col.alone li::before { content: ''; flex: none; width: 12px; height: 2px; margin: 12px 4px 0; border-radius: 2px; background: var(--muted); }
.pm-col.with li { color: var(--ink); font-weight: 500; }
.pm-col.with li svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--good); }
@media (max-width: 680px) { .pm-compare { grid-template-columns: 1fr; } .pm-col { padding: 24px; } }
.pm-foot { margin-top: 28px; font-size: 18px; color: var(--ink-2); text-wrap: pretty; }
.pm-foot b { color: var(--ink); font-weight: 650; }
.pm-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 24px; }
.pm-cta .muted { font-size: 15px; }
.pm-cta .btn { white-space: normal; text-align: center; min-height: 52px; padding-block: 12px; }

/* The pain: a number first, then what it costs. */
.pain .num { font-size: clamp(40px, 4.4vw, 56px); font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.pain .h3 { margin-top: 14px; }

/* ---------- model band ---------- */
.model { background: var(--ink); color: #fff; border-radius: 28px; padding: clamp(36px, 5vw, 64px); display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; position: relative; overflow: hidden; }
.model::after { content: ''; position: absolute; right: -10%; top: -40%; width: 60%; height: 180%; background: radial-gradient(closest-side, rgba(138, 85, 249, .45), transparent); pointer-events: none; }
.model .eyebrow { color: var(--lavender); }
.model .h2 { margin: 14px 0 16px; }
.model p { color: rgba(255, 255, 255, .8); }
.model ul { display: grid; gap: 14px; position: relative; z-index: 1; }
.model li { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.model li svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--lavender); }
@media (max-width: 880px) { .model { grid-template-columns: 1fr; } }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: s; }
.step { position: relative; padding: 26px 22px; border-radius: var(--r); background: var(--card); border: 1px solid var(--rule); counter-increment: s; }
.step::before { content: counter(s, decimal-leading-zero); display: block; font-size: 14px; font-weight: 700; letter-spacing: .08em; color: var(--violet); margin-bottom: 26px; }
.step h3 { font-size: 18px; font-weight: 650; letter-spacing: -.015em; margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--ink-2); }
@media (max-width: 1080px) { .steps { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px) { .steps { grid-template-columns: 1fr; } .step::before { margin-bottom: 12px; } }

/* ---------- industries ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--rule); background: var(--card); font-size: 15px; font-weight: 500; }
.tag svg { width: 18px; height: 18px; color: var(--violet); }

/* ---------- quote ---------- */
.quote { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: start; max-width: 900px; margin-inline: auto; }
.quote svg.qm { width: 56px; height: 56px; color: var(--lavender); }
.quote blockquote p { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.35; letter-spacing: -.02em; font-weight: 500; }
.quote figcaption { margin-top: 20px; font-size: 16px; color: var(--muted); }
.quote figcaption b { color: var(--ink); font-weight: 600; }
@media (max-width: 640px) { .quote { grid-template-columns: 1fr; gap: 14px; } }

/* ---------- faq ---------- */
.faq { max-width: 820px; margin-inline: auto; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 22px; height: 22px; flex: none; color: var(--violet); transition: transform .25s ease; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq .a { padding: 0 0 24px; color: var(--ink-2); max-width: 700px; }

/* ---------- cta + contact ---------- */
.cta { border-radius: 28px; padding: clamp(40px, 6vw, 72px); background: var(--grad); color: #fff; display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.cta .h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, .85); margin-top: 14px; }
.cta .btn-primary { background: #fff; color: var(--indigo); box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .45); }
.cta .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
.cta .btn-row { justify-content: flex-end; }
@media (max-width: 880px) { .cta { grid-template-columns: 1fr; } .cta .btn-row { justify-content: flex-start; } }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.person { display: flex; gap: 18px; align-items: center; }
.avatar { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 700; font-size: 22px; letter-spacing: -.02em; flex: none; }
.lines { display: grid; gap: 4px; margin-top: 22px; }
.lines a { display: flex; align-items: center; gap: 12px; padding: 12px 0; text-decoration: none; font-weight: 500; border-top: 1px solid var(--rule); }
.lines a:hover { color: var(--link); }
.lines svg { width: 20px; height: 20px; color: var(--violet); flex: none; }

/* ---------- page hero (inner pages) ---------- */
.page-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 5vw, 64px); position: relative; overflow: clip; }
.page-hero::before { content: ''; position: absolute; inset: -40% -10% auto auto; width: 60%; height: 160%; background: var(--glow); pointer-events: none; }
.page-hero h1.h1, .h1 { font-family: var(--serif); font-optical-sizing: auto; font-weight: 600; font-size: clamp(38px, 5.4vw, 64px); margin: 16px 0 20px; max-width: 900px; position: relative; }
.page-hero .lead { max-width: 680px; position: relative; }
.crumbs { font-size: 14px; color: var(--muted); display: flex; gap: 8px; position: relative; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--link); }
.two-col { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 880px) { .two-col { grid-template-columns: 1fr; } }
.checks { display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg { width: 22px; height: 22px; flex: none; margin-top: 2px; color: var(--good); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--rule); padding: 56px 0 36px; margin-top: clamp(72px, 10vw, 128px); font-size: 15px; }
.foot { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot h2 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 14px; }
.foot ul { display: grid; gap: 10px; }
.foot a { text-decoration: none; color: var(--ink-2); }
.foot a:hover { color: var(--link); }
.foot .blurb { color: var(--muted); max-width: 320px; margin-top: 14px; }
.legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 14px; }
.legal a { text-decoration: none; }
@media (max-width: 820px) { .foot { grid-template-columns: 1fr 1fr; } .foot > :first-child { grid-column: 1 / -1; } }

/* ---------- reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* ---------- dark ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #F3F1EA;
    --ink-2: #C9CFDD;
    --muted: #98A2BA;
    --bg: #06112B;
    --soft: #0A1838;
    --soft-2: #13244A;
    --rule: #1C2E58;
    --card: #0C1A3C;
    --good: #3FD39B;
    --accent: #ED9C14;
    --accent-ink: #06112B;
    --link: #F2B544;
    --lavender: #8A6420;
    --grad: linear-gradient(135deg, #0B3A8C 0%, #001F59 100%);
    --grad-text: linear-gradient(100deg, #F6C878 0%, #ED9C14 100%);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .6);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 32px 64px -24px rgba(0, 0, 0, .8);
    --glow: radial-gradient(60% 60% at 70% 30%, rgba(237, 156, 20, .16), rgba(237, 156, 20, 0) 70%);
  }
  .chip, .ico, .audit-float .dot { color: #F6C878; }
  .logo:hover i { background: #fff; }
  .model { background: #0C1A3C; }
  .cta .btn-primary { color: #001F59; }
}

/* ================= GoodMatch components ================= */
/* The brand is the gold mark as a picture and the wordmark as a one-colour mask in the text colour,
   so "GoodMatch" is navy on white and white in the dark theme. */
.brand { gap: 10px; }
.brand .gm-mark { width: auto; height: 26px; }
.brand .gm-word { display: block; width: 118px; aspect-ratio: 762 / 124; background: var(--ink); -webkit-mask: url(/assets/gm-wordmark.webp) center / contain no-repeat; mask: url(/assets/gm-wordmark.webp) center / contain no-repeat; }
.eyebrow::before { background: var(--violet); }
.step::before { color: var(--link); }
.pain .num { font-family: var(--serif); font-weight: 600; letter-spacing: -.02em; font-size: clamp(34px, 3.4vw, 44px); }
.steps.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .steps.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .steps.four { grid-template-columns: 1fr; } }
.model .h2 { color: #fff; }
.model .eyebrow { color: var(--lavender); }
.model b { color: #fff; }
.model { background: #001F59; }
.model::after { background: radial-gradient(closest-side, rgba(237, 156, 20, .35), transparent); }
.model li svg { color: #F2B544; }
.cta { background: linear-gradient(135deg, #001F59 0%, #0B3A8C 100%); }
.cta .btn-primary { background: #ED9C14; color: #06112B; }
.cta-lines { display: grid; gap: 8px; margin-top: 22px; }
.cta-lines a, .cta-lines span { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 500; }
.cta-lines svg { width: 18px; height: 18px; color: #F2B544; }

/* The match: a business, three candidate providers, one best match. Drawn in HTML, marked illustrative. */
.match { position: relative; display: grid; gap: 14px; }
.m-biz, .m-options, .m-result { background: var(--card); border: 1px solid var(--rule); border-radius: 20px; box-shadow: var(--shadow); padding: 20px 22px; }
.m-label { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--link); }
.m-name { font-family: var(--serif); font-size: 22px; font-weight: 600; margin: 6px 0 14px; letter-spacing: -.01em; }
.m-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.m-facts li { background: var(--soft); border-radius: 12px; padding: 10px 12px; font-size: 13px; }
.m-facts span { display: block; color: var(--muted); }
.m-facts b { font-size: 18px; font-variant-numeric: tabular-nums; }
.m-link { width: 120px; height: 34px; margin-inline: auto; color: var(--violet); }
.m-options { display: grid; gap: 12px; }
.m-opt { display: grid; grid-template-columns: 132px 1fr 46px; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-2); }
.m-opt i { height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--soft-2) var(--w), var(--soft) 0); }
.m-opt b { text-align: right; font-variant-numeric: tabular-nums; }
.m-opt.best { color: var(--ink); font-weight: 600; }
.m-opt.best i { background: linear-gradient(90deg, #ED9C14 var(--w), var(--soft) 0); }
.m-opt.best b { color: var(--link); }
.m-result { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: #001F59; color: #fff; border-color: #001F59; }
.m-result small { display: block; opacity: .8; font-size: 13px; }
.m-result strong { font-family: var(--serif); font-size: 34px; color: #F2B544; letter-spacing: -.02em; }
.match .illus { position: static; text-align: right; margin-top: -4px; }
@media (max-width: 980px) { .match { max-width: 520px; margin-inline: auto; width: 100%; } }
@media (max-width: 420px) { .m-facts { gap: 6px; } .m-facts li { padding: 8px 9px; font-size: 11.5px; } .m-facts b { font-size: 16px; } .m-opt { grid-template-columns: 118px 1fr 40px; } }

/* Team */
.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.member { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; }
.member img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.member div { padding: 18px 20px 20px; }
.member h3 { font-family: var(--serif); font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.member p { color: var(--muted); font-size: 15px; margin-top: 4px; }
@media (max-width: 980px) { .team { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-color-scheme: dark) {
  .m-result { background: #13244A; border-color: #1C2E58; }
  .model { background: #0C1A3C; }
}
/* The result number in the match graphic never breaks across two lines. */
.m-result strong { white-space: nowrap; flex: none; }
@media (max-width: 420px) { .m-result strong { font-size: 28px; } }
