/* Trustline Bridge. Ink-blue ground, bone surface, one accent: the logo blue (#1f5eeb). */
:root {
  --navy: #0f1b33;
  --navy-2: #132548;
  --accent-soft: #8fb0ff;
  --canvas: #f3f1ec;
  --surface: #fbfaf7;
  --ink: #15202c;
  --ink-soft: #4b5867;
  --line: #dcd8cf;
  --accent: #1f5eeb;
  --accent-press: #1a4fc6;
  --on-dark: #f4f1ea;
  --on-dark-soft: #b9c3cf;
  --radius: 14px;
  --radius-sm: 10px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(56px, 9vw, 112px);
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --shadow-1: 0 1px 2px rgba(19, 40, 63, 0.06), 0 2px 8px rgba(19, 40, 63, 0.06);
  --shadow-2: 0 2px 4px rgba(19, 40, 63, 0.08), 0 12px 32px rgba(19, 40, 63, 0.12);
  --display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --text: 'Figtree', 'Segoe UI', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.9rem); line-height: 1.02; letter-spacing: -0.025em; font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.08; letter-spacing: -0.02em; font-weight: 700; }
h3 { font-size: 1.15rem; line-height: 1.25; letter-spacing: -0.01em; font-weight: 700; }
p { margin: 0; text-wrap: pretty; }

.wrap { width: min(1160px, 100%); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 680px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 3px; border-radius: 4px; }

/* Header */
.top { background: var(--navy); color: var(--on-dark); position: sticky; top: 0; z-index: 5; border-bottom: 1px solid rgba(255,255,255,0.06); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.12rem; letter-spacing: -0.01em; }
.brand img { border-radius: 7px; }
.switch { display: flex; background: rgba(255,255,255,0.08); border-radius: 999px; padding: 4px; }
.switch a { text-decoration: none; padding: 7px 14px; border-radius: 999px; font-size: 0.92rem; font-weight: 600; color: var(--on-dark-soft); transition: background-color 160ms var(--ease), color 160ms var(--ease); }
.switch a[aria-current="page"] { background: var(--on-dark); color: var(--navy); }
@media (hover: hover) and (pointer: fine) { .switch a:not([aria-current]):hover { color: var(--on-dark); background: rgba(255,255,255,0.08); } }
@media (max-width: 480px) { .brand span { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff;
  font: 700 1rem/1 var(--text); text-decoration: none; white-space: nowrap;
  padding: 16px 26px; border-radius: 999px; border: 0; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), 0 2px 8px rgba(31,94,235,0.28);
  transition: background-color 140ms var(--ease), transform 120ms var(--ease);
}
@media (hover: hover) and (pointer: fine) { .btn:hover { background: #2f6cf2; } }
.btn:active { transform: translateY(1px) scale(0.98); background: var(--accent-press); }
.btn:disabled { opacity: 0.6; cursor: progress; transform: none; }
.btn-ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
@media (hover: hover) and (pointer: fine) { .btn-ghost:hover { background: rgba(127,127,127,0.12); } }
.btn-ghost:active { background: rgba(127,127,127,0.18); }

/* Hero */
.hero { background: var(--navy); color: var(--on-dark); padding: clamp(48px, 8vw, 104px) 0 clamp(56px, 9vw, 120px); position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; inset: auto -10% -60% 30%; height: 120%; background: radial-gradient(closest-side, rgba(31,94,235,0.30), transparent 70%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; position: relative; z-index: 1; }
.hero-copy h1 { max-width: 22ch; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.5; color: var(--on-dark-soft); margin: 22px 0 32px; max-width: 40ch; }
.hero-card {
  background: var(--surface); color: var(--ink); border-radius: var(--radius); padding: 26px 26px 22px;
  box-shadow: var(--shadow-2), inset 0 1px 0 rgba(255,255,255,0.9);
  transform: rotate(1.2deg);
}
.hc-label { font-size: 0.8rem; font-weight: 600; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.06em; }
.hc-line { margin: 8px 0 18px; color: var(--ink-soft); font-size: 0.95rem; }
.hc-line strong { color: var(--ink); font-family: var(--display); font-size: 1.3rem; letter-spacing: -0.01em; }
.hc-step { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-weight: 500; color: var(--ink-soft); }
.hc-step span { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); flex: none; }
.hc-step.done { color: var(--ink); }
.hc-step.done span { background: var(--navy); border-color: var(--navy); box-shadow: inset 0 0 0 4px var(--surface); }
.thanks { min-height: 56vh; display: flex; align-items: center; }
.thanks .lede { margin-bottom: 28px; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { transform: none; max-width: 440px; }
}

/* Sections */
.band { padding: var(--section) 0; }
.sub { color: var(--ink-soft); font-size: 1.08rem; margin-top: 12px; max-width: 46ch; }
.two { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(28px, 6vw, 88px); align-items: start; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 52px 1fr; column-gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s); grid-row: span 2; font-family: var(--display); font-weight: 800; font-size: 2rem; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.steps p { color: var(--ink-soft); margin-top: 6px; }

.compare { background: var(--surface); }
.vs { display: grid; grid-template-columns: 1fr 1.15fr; gap: 20px; margin-top: 36px; }
.vs-col { border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.vs-col.ours { background: var(--navy); color: var(--on-dark); border-color: var(--navy); box-shadow: var(--shadow-2); }
.vs-title { font-family: var(--display); font-weight: 700; font-size: 1.2rem; margin-bottom: 14px; }
.vs ul { margin: 0; padding: 0; list-style: none; }
.vs li { padding: 10px 0 10px 30px; position: relative; border-top: 1px solid var(--line); }
.vs .ours li { border-color: rgba(255,255,255,0.12); }
.vs li::before { content: ''; position: absolute; left: 4px; top: 19px; width: 12px; height: 2px; background: var(--ink-soft); }
.vs .ours li::before { width: 12px; height: 7px; top: 15px; background: none; border: solid var(--accent-soft); border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg); }
@media (max-width: 720px) { .vs { grid-template-columns: 1fr; } }

/* Reviews as posts */
.posts { columns: 3 300px; column-gap: 20px; margin-top: 36px; }
.post { break-inside: avoid; margin: 0 0 20px; background: var(--surface); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-1), inset 0 1px 0 #fff; }
.post-head { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.post-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: var(--on-dark); display: grid; place-items: center; font-family: var(--display); font-weight: 700; }
.post-who { font-weight: 600; line-height: 1.2; }
.post-meta { font-size: 0.86rem; color: var(--ink-soft); }
.stars { color: #c47a12; letter-spacing: 1px; font-size: 0.95rem; }
.post blockquote { margin: 16px 0 12px; }
.post blockquote p { font-size: 1rem; line-height: 1.6; }
.post figcaption { font-size: 0.82rem; color: var(--ink-soft); }

/* Check lists */
.vetted { background: var(--surface); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; }
.checks li { padding-left: 38px; position: relative; }
.checks li::before { content: ''; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); }
.checks li::after { content: ''; position: absolute; left: 7px; top: 8px; width: 10px; height: 5px; border: solid #fff; border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg); }
.checks p { color: var(--ink-soft); margin-top: 6px; }
@media (max-width: 560px) { .checks { grid-template-columns: 1fr; } }

/* Business offers: one lead offer, three supporting */
.offer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; grid-template-rows: auto auto; gap: 20px; margin-top: 36px; }
.offer { background: var(--surface); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-1), inset 0 1px 0 #fff; }
.offer p { color: var(--ink-soft); margin-top: 10px; }
.offer-lead { grid-row: span 2; background: var(--navy); color: var(--on-dark); box-shadow: var(--shadow-2); display: flex; flex-direction: column; }
.offer-lead h3 { font-size: 1.6rem; }
.offer-lead p { color: var(--on-dark-soft); }
.offer-tag { display: inline-block; align-self: flex-start; background: var(--accent); color: #fff !important; font-weight: 700; font-size: 0.8rem; padding: 5px 12px; border-radius: 999px; margin: 0 0 18px !important; }
.offer-note { margin-top: auto !important; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.14); color: var(--on-dark) !important; }
.offer:nth-child(4) { grid-column: 2 / span 2; }
@media (max-width: 860px) {
  .offer-grid { grid-template-columns: 1fr; }
  .offer-lead { grid-row: auto; }
  .offer:nth-child(4) { grid-column: auto; }
  .offer-note { margin-top: 18px !important; }
}

.need { background: var(--surface); }
.flow-list { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.flow-list li { padding: 22px 22px 0 0; border-top: 3px solid var(--navy); position: relative; }
.flow-list li::before { content: ''; position: absolute; top: -9px; left: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--canvas); }
.flow-who { font-family: var(--display); font-weight: 700; font-size: 1.1rem; margin-bottom: 6px; }
.flow-list li p:not(.flow-who) { color: var(--ink-soft); }
.flow-link { margin-top: 32px; font-weight: 600; }
@media (max-width: 860px) {
  .flow-list { grid-template-columns: 1fr; }
  .flow-list li { border-top: 0; border-left: 3px solid var(--navy); padding: 0 0 26px 24px; }
  .flow-list li::before { top: 4px; left: -9px; }
}

/* Forms */
.request { background: var(--navy-2); color: var(--on-dark); }
.request .sub, .request .small { color: var(--on-dark-soft); }
.request .small { margin-top: 18px; font-size: 0.95rem; max-width: 42ch; }
.form { background: var(--surface); color: var(--ink); border-radius: var(--radius); padding: clamp(22px, 3.5vw, 36px); box-shadow: var(--shadow-2); display: grid; gap: 18px; }
.field { display: grid; gap: 7px; min-width: 0; border: 0; margin: 0; padding: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
label, legend { font-weight: 600; font-size: 0.95rem; }
legend { margin-bottom: 7px; padding: 0; }
.opt { font-weight: 400; color: var(--ink-soft); }
input, select, textarea {
  width: 100%; font: 400 1rem/1.4 var(--text); color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px; transition: border-color 140ms var(--ease), box-shadow 140ms var(--ease);
  caret-color: var(--navy);
}
textarea { resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: #bfb9ad; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(31,94,235,0.35); }
.check { display: flex; align-items: center; gap: 10px; font-weight: 500; padding: 4px 0; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }
.form .btn { justify-self: start; margin-top: 4px; }
@media (max-width: 560px) { .form .btn { justify-self: stretch; } }

/* Crossover to the other side */
.crossover { padding: clamp(40px, 6vw, 64px) 0; }
.crossover-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.crossover h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.crossover p { color: var(--ink-soft); margin-top: 8px; }

/* Footer */
.foot { background: var(--navy); color: var(--on-dark-soft); padding: 48px 0 28px; font-size: 0.95rem; }
.foot-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot-brand { font-family: var(--display); color: var(--on-dark); font-weight: 700; font-size: 1.15rem; margin-bottom: 6px; }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot nav a { color: var(--on-dark); font-weight: 600; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .foot nav a:hover { text-decoration: underline; } }
.foot-small { margin-top: 32px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.86rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; }
  .hero-card { transform: none; }
}
