/* Offramp Software — site styles
   Type: Instrument Sans (display + body); the logo lockup keeps Overpass,
   drawn from highway-signage lettering. Palette: guide-sign pine on green-tinted paper,
   with one amber road-marking accent used sparingly. */

:root {
  --pine: #00C267;
  --pine-deep: #00C267;
  --pine-tint: rgba(0, 194, 103, 0.07);
  --ink: #1C2A22;
  --paper: #FFFFFF;
  --surface: #F4F7F3;
  --card: #FFFFFF;
  --muted: #566759;
  --night: #112B20;
  --mint: #A9C3B2;
  --line: #E4E9E2;
  --line-dark: #27463A;
  --amber: #C99A2E;
  --blue: #2463CC;
  --blue-sky: #7FB5FF;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 9px;
  --font: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --display: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(36, 99, 204, 0.2); }

h1, h2, h3 {
  font-family: var(--display);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0 0 0.55em;
}
h1 { font-size: clamp(2.6rem, 6.2vw, 4.4rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.04; }
h2 { font-size: clamp(1.9rem, 3.7vw, 2.75rem); font-weight: 700; letter-spacing: -0.028em; }
h3 { font-size: 1.28rem; font-weight: 600; line-height: 1.25; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
p, li { text-wrap: pretty; }

/* Lane-marking stripe above section headings: a divider between sections,
   so the first section on a page (nothing above it to divide) goes without. */
.section + .section h2[id]::before {
  content: "";
  display: block;
  width: 61px; /* three 15px dashes with 8px gaps, no partial dash at the end */
  height: 5px;
  background: repeating-linear-gradient(90deg, var(--pine) 0 15px, transparent 15px 23px);
  margin-bottom: 1.15rem;
}

a { color: var(--pine); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--blue); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2.5px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Header ---------- */

.site-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-row {
  display: flex;
  align-items: center;
  gap: 1.7rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}
.brand-logo { display: block; height: 38px; width: auto; }
.brand-text { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.brand-name {
  /* lockup matches the original Overpass wordmark exactly */
  font-family: "Overpass", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #00C267; /* same green as the logo route */
}
.brand-sub {
  /* tracked out so the tagline runs the same width as the name above it */
  font-family: "Overpass Mono", "SF Mono", Menlo, monospace;
  font-size: 0.47rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  margin-right: -0.22em; /* balance the trailing letter-space so centering is optical */
  text-transform: uppercase;
  color: #2463CC;
  margin-top: 0.24rem;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.25rem 0;
  transition: color 140ms ease;
}
.site-nav a:hover { color: var(--blue); }
.site-nav a[aria-current="page"] {
  color: var(--pine);
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--blue);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font);
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1;
  padding: 0.95rem 1.65rem;
  border-radius: 999px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--pine);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 1px 2px rgba(17, 43, 32, 0.1);
}
.btn-primary:hover {
  background: var(--pine-deep);
  transform: translateY(-1.5px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 8px 22px rgba(0, 194, 103, 0.3);
}
.btn-secondary {
  background: rgba(36, 99, 204, 0.06);
  color: var(--blue);
  box-shadow: inset 0 0 0 1.5px rgba(36, 99, 204, 0.4);
}
.btn-secondary:hover {
  background: rgba(36, 99, 204, 0.12);
  box-shadow: inset 0 0 0 1.5px var(--blue);
}
.btn-light {
  background: #fff;
  color: var(--night);
}
.btn-light:hover {
  background: var(--mint);
  color: var(--night);
  transform: translateY(-1.5px);
}

.header-cta { font-size: 0.95rem; padding: 0.75rem 1.3rem; }

/* ---------- Sections ---------- */

.section { padding: 4.8rem 0; }
.section + .section { padding-top: 0.8rem; }

.lede {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--muted);
  max-width: 42em;
}

.measure { max-width: 44em; }

/* ---------- Hero ---------- */

.hero {
  padding: 6rem 0 5.2rem;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(46rem 28rem at 85% 0%, rgba(0, 194, 103, 0.1), transparent 62%),
    radial-gradient(52rem 30rem at 85% 0%, rgba(169, 195, 178, 0.22), transparent 65%),
    radial-gradient(40rem 24rem at 0% 100%, rgba(36, 99, 204, 0.08), transparent 60%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(17, 43, 32, 0.1) 1.1px, transparent 1.1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(58rem 36rem at 82% 0%, #000, transparent 68%);
  mask-image: radial-gradient(58rem 36rem at 82% 0%, #000, transparent 68%);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 3.5rem;
  align-items: center;
}
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-road { max-width: 170px; }
}
.hero h1 { max-width: 14em; }
.hero .lede { margin-top: 1.2rem; }
.hero-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 2.3rem;
}
.hero-road { width: 100%; max-width: 240px; height: auto; display: block; margin: 0 auto; overflow: visible; }

/* Subpage intro */
.page-intro { padding: 5rem 0 3.4rem; }
.page-intro .lede { margin-top: 1.1rem; }
.page-intro + .section { padding-top: 1rem; }

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  margin-top: 2.4rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 2rem 1.9rem;
  box-shadow: 0 1px 2px rgba(17, 43, 32, 0.04);
}
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--muted); font-size: 1rem; }

.card-icon {
  display: block;
  box-sizing: content-box;
  width: 28px;
  height: 28px;
  padding: 10px;
  background: #EEF3FB; /* icons that mask with a white fill use this hex too */
  border-radius: 13px;
  margin-bottom: 1.2rem;
  color: var(--blue);
}

.path-card {
  box-shadow: 0 1px 2px rgba(17, 43, 32, 0.04), 0 10px 30px rgba(17, 43, 32, 0.05);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  position: relative;
  transition: box-shadow 200ms ease, transform 200ms ease, border-color 200ms ease;
}
.path-card:hover,
.path-card:focus-within {
  border-color: #D7DED5;
  transform: translateY(-4px);
  box-shadow: 0 1px 2px rgba(17, 43, 32, 0.05), 0 22px 48px rgba(17, 43, 32, 0.12);
}
.path-card .card-link {
  margin-top: auto;
  padding-top: 1.2rem;
  font-weight: 600;
  text-decoration: none;
}
.path-card .card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
}
.path-card .card-link span { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.path-card:hover .card-link span { text-decoration-color: var(--blue); }

/* ---------- Steps ---------- */

.steps {
  list-style: none;
  counter-reset: step;
  margin: 2.6rem 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 2.4rem 3.6rem;
}
.steps li::before {
  content: counter(step);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  background: var(--blue);
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 0;
  top: 0;
}
.steps li::after {
  content: "";
  position: absolute;
  left: calc(1.175rem - 1px);
  top: 2.55rem;
  bottom: 0.2rem;
  width: 2px;
  border-radius: 2px;
  background: var(--line);
}
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
.steps h3 { margin-bottom: 0.3rem; padding-top: 0.32rem; }
.steps p { color: var(--muted); max-width: 42em; }

/* ---------- Diagram ---------- */

.diagram {
  margin: 2.6rem 0 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  overflow-x: auto;
  box-shadow: 0 1px 2px rgba(17, 43, 32, 0.04);
}
.diagram svg { display: block; min-width: 620px; width: 100%; height: auto; }
.diagram-caption {
  font-size: 0.94rem;
  color: var(--muted);
  margin-top: 1.1rem;
  max-width: 46em;
}

/* ---------- Checklist / feature lists ---------- */

.plain-list {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.95rem;
  max-width: 46em;
}
.plain-list li {
  padding-left: 1.9rem;
  position: relative;
  color: var(--ink);
}
.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.9rem;
  height: 0.5rem;
  border-left: 2.5px solid var(--blue);
  border-bottom: 2.5px solid var(--blue);
  transform: rotate(-45deg);
}
.plain-list li strong { font-weight: 600; }

/* ---------- Split layout ---------- */

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  align-items: start;
}

.logo-aside {
  align-self: center;
  display: flex;
  justify-content: center;
}
.logo-aside img { width: 220px; max-width: 70%; height: auto; }

/* ---------- Placeholders ---------- */

.placeholder {
  border: 2px dashed var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.8rem;
  color: var(--muted);
  background: transparent;
}
.tag {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  display: inline-block;
  background: var(--surface);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  margin-bottom: 0.8rem;
}
.placeholder p { font-size: 0.95rem; }

/* ---------- FAQ ---------- */

.faq { margin-top: 1.6rem; max-width: 50em; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.08rem;
  padding: 1.2rem 3rem 1.2rem 0;
  list-style: none;
  position: relative;
}
.faq summary:hover { color: var(--pine); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  right: 0.5rem;
  top: 50%;
  width: 15px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--blue);
  transform: translateY(-50%);
}
.faq summary::before {
  transform: translateY(-50%) rotate(90deg);
  transition: transform 250ms ease;
}
.faq details[open] summary::before { transform: translateY(-50%) rotate(0deg); }
.faq .faq-body { padding: 0 2.5rem 1.3rem 0; color: var(--muted); overflow: hidden; }
.faq .faq-body p { max-width: 42em; }

/* ---------- Dark sections ---------- */

.band-dark {
  background:
    radial-gradient(46rem 26rem at 8% 0%, rgba(0, 194, 103, 0.14), transparent 62%),
    linear-gradient(172deg, #16382A, var(--night) 58%);
  color: #fff;
  padding: 5rem 0;
}
.band-dark h2 { color: #fff; }
.band-dark p { color: var(--mint); }
.band-dark .lede { color: var(--mint); }

.cta-band { text-align: left; }
.cta-band .hero-actions { margin-top: 2rem; }
.cta-band p { max-width: 42em; font-size: 1.1rem; }

/* ---------- Forms ---------- */

.form-grid { display: grid; gap: 1.3rem; }
.form-row { display: grid; gap: 1.3rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}
.field input[type="text"],
.field input[type="email"],
.field textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.95rem;
  transition: border-color 140ms ease;
}
.field input:focus, .field textarea:focus { border-color: var(--blue); }
.field textarea { min-height: 9rem; resize: vertical; }

fieldset.field {
  border: 0;
  padding: 0;
  margin: 0;
}
fieldset.field legend {
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0;
  margin-bottom: 0.5rem;
}
.radio-cards { display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.radio-cards label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 0.75rem 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease;
}
.radio-cards label:hover { border-color: var(--mint); }
.radio-cards label:has(input:checked) {
  border-color: var(--blue);
  background: rgba(36, 99, 204, 0.07);
  font-weight: 600;
}
.radio-cards input { accent-color: var(--blue); margin: 0; }

.form-note {
  font-size: 0.92rem;
  color: var(--muted);
}

/* ---------- Footer ---------- */

.site-footer {
  background:
    radial-gradient(44rem 24rem at 92% 0%, rgba(0, 194, 103, 0.09), transparent 60%),
    var(--night);
  color: var(--mint);
  padding: 4rem 0 2.6rem;
  font-size: 0.97rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.site-footer .brand { color: #fff; margin-bottom: 0.9rem; }
.site-footer .brand-name { color: #fff; } /* matches the dark logo's white route */
.site-footer .brand-sub { color: #7FB5FF; }
.site-footer p { max-width: 34em; }
.footer-heading {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 1rem;
}
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.footer-links a { color: var(--mint); text-decoration: none; }
.footer-links a:hover { color: var(--blue-sky); text-decoration: underline; }
.footer-legal {
  border-top: 1px solid var(--line-dark);
  margin-top: 2.9rem;
  padding-top: 1.6rem;
  font-size: 0.86rem;
  color: #74917F;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-legal p { margin: 0; max-width: 46em; }

/* ---------- Mobile navigation ---------- */

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.5rem 0.2rem;
  cursor: pointer;
}
.nav-toggle-bars { display: block; width: 24px; }
.nav-toggle-bars span {
  display: block;
  height: 2.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 200ms ease, opacity 200ms ease;
}
.nav-toggle-bars span + span { margin-top: 5.5px; }

/* ---------- Small screens ---------- */

@media (max-width: 860px) {
  .header-cta { display: none; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    gap: 0.1rem;
    padding: 0.4rem 0 1rem;
    border-top: 1px solid var(--line);
    margin-top: 0.5rem;
  }
  body.nav-open .site-nav { display: flex; }
  .site-nav a { padding: 0.55rem 0; font-size: 1.08rem; }
  .site-nav a[aria-current="page"] { box-shadow: none; }
  body.nav-open .header-cta {
    display: inline-block;
    flex-basis: 100%;
    text-align: center;
    margin-bottom: 0.9rem;
  }
  body.nav-open .nav-toggle-bars span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  body.nav-open .nav-toggle-bars span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle-bars span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}
@media (max-width: 640px) {
  .section { padding: 3.4rem 0; }
  .section + .section { padding-top: 0.6rem; }
  .hero { padding: 3.8rem 0 3.2rem; }
  .page-intro { padding: 3.6rem 0 2.4rem; }
  .band-dark { padding: 3.4rem 0; }
  .card { padding: 1.6rem 1.5rem 1.5rem; }
}

/* Hero animation runs as SVG animation inside the SVG itself: the main route
   fades in while it draws and the arrowhead rides the tip; the lane is static. */

/* ---------- Migration timeline draw-on-scroll ---------- */

.diagram.will-animate .t-green {
  stroke-dasharray: var(--len);
  stroke-dashoffset: 596; /* 40 units pre-drawn behind the arrow */
  transition: stroke-dashoffset 1.2s cubic-bezier(0.65, 0, 0.35, 1);
}
.diagram.will-animate .t-arrow {
  transform: translateX(-596px);
  transition: transform 1.2s cubic-bezier(0.65, 0, 0.35, 1);
}
.diagram.in-view .t-green { stroke-dashoffset: 0; }
.diagram.in-view .t-arrow { transform: translateX(0); }

/* ---------- Cost calculator ---------- */

.calc {
  margin-top: 2rem;
  max-width: 46em;
}
.calc-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.calc .field input[type="number"] {
  width: 100%;
  font-family: var(--font);
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.95rem;
  transition: border-color 140ms ease;
}
.calc .field input[type="number"]:focus { border-color: var(--blue); }
.calc-result {
  margin-top: 1.5rem;
  font-size: 1.18rem;
  max-width: 34em;
}
.calc-result strong {
  color: var(--blue);
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.calc-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.7rem;
  max-width: 40em;
}

/* ---------- Dark band background motif ---------- */

.band-dark { position: relative; overflow: hidden; }
.band-dark .shell { position: relative; }
.band-art {
  position: absolute;
  right: 3%;
  top: 50%;
  transform: translateY(-50%);
  height: 175%;
  width: auto;
  pointer-events: none;
}

/* ---------- Steps activate as they enter view ---------- */

.js-steps .steps li::before {
  background: var(--paper);
  color: var(--blue);
  box-shadow: inset 0 0 0 2px var(--blue);
  transform: scale(0.85);
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}
.js-steps .steps li.on::before {
  background: var(--blue);
  color: #fff;
  transform: scale(1);
}
.js-steps .steps li::after {
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.55s ease 0.15s;
}
.js-steps .steps li.on::after { transform: scaleY(1); }

/* ---------- Timeline: cutover marker pulses; the old-CRM lane is static ---------- */

.diagram.will-animate .t-cut { opacity: 0.3; }
.diagram.in-view .t-cut { animation: cut-pulse 0.8s ease 0.95s both; }
@keyframes cut-pulse {
  from { opacity: 0.3; }
  55%  { opacity: 1; }
  72%  { opacity: 0.55; }
  to   { opacity: 1; }
}

/* ---------- Automation flow: dashes travel along the connectors ---------- */

.diagram .flow { stroke-dasharray: 6 14; }
.diagram.in-view .flow {
  animation: flow-dash 1s linear infinite;
  animation-delay: var(--d, 0s);
}
@keyframes flow-dash {
  to { stroke-dashoffset: -20; }
}

/* ---------- Client logo strip ---------- */

.logo-strip { padding: 2.6rem 0; border-bottom: 1px solid var(--line); }
.logo-strip-caption {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 1.4rem;
}
.logo-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
  align-items: center;
}
.logo-slot {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--line);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 0.84rem;
  text-align: center;
  padding: 0.5rem;
}
/* Real logos: drop an <img> in each slot, remove the dashed border styling above. */
.logo-slot img {
  max-height: 44px;
  max-width: 100%;
  filter: grayscale(1);
  opacity: 0.65;
}

/* ---------- Comparison table ---------- */

.compare {
  margin-top: 2.4rem;
  overflow-x: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px rgba(17, 43, 32, 0.04);
}
.compare table {
  width: 100%;
  min-width: 620px;
  border-collapse: separate; /* collapse would discard the .own header's rounding */
  border-spacing: 0;
}
.compare th,
.compare td {
  text-align: left;
  vertical-align: top;
  padding: 1.15rem 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 1rem;
}
.compare thead th {
  border-top: 0;
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 600;
}
.compare tbody th {
  font-weight: 600;
  white-space: nowrap;
  color: var(--ink);
}
.compare td { color: var(--muted); }
.compare .own { background: var(--pine-tint); }
.compare thead th.own {
  /* the owned column header as a guide sign: white type on dark green */
  background: var(--night);
  color: #fff;
  border-radius: 14px 14px 0 0;
}
.compare td.own {
  color: var(--ink);
  box-shadow: inset 1.5px 0 0 rgba(0, 194, 103, 0.3), inset -1.5px 0 0 rgba(0, 194, 103, 0.3);
}

/* ---------- Case studies ---------- */

.case-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  margin-top: 2.4rem;
}
.case-card {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.case-head h3 { margin: 0.9rem 0 0.4rem; }
.case-head p { color: var(--muted); font-size: 0.96rem; }
.case-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.case-col { padding: 1.1rem 1.2rem; }
.case-col h4 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 0.6rem;
}
.case-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  font-size: 0.93rem;
  color: var(--muted);
}
.case-before { background: rgba(17, 43, 32, 0.045); }
.case-after { background: var(--pine-tint); }
.case-after h4 { color: var(--pine); }
.case-outcome { margin: 0; font-size: 0.98rem; color: var(--muted); }
.case-outcome strong {
  display: block;
  color: var(--pine);
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}
@media (max-width: 420px) {
  .case-compare { grid-template-columns: 1fr; }
}

/* ---------- Fit / not-fit lists ---------- */

.fit-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  margin-top: 2.4rem;
}
.fit-grid .plain-list { margin-top: 1.1rem; }
.fit-grid .plain-list li { font-size: 1rem; }
.plain-list.list-dash li::before {
  border-left: none;
  border-bottom: 2.5px solid var(--muted);
  width: 0.85rem;
  height: 0;
  transform: none;
  top: 0.75em;
}

/* ---------- Deliverables ---------- */

.deliverables {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  margin-top: 2.4rem;
}
.deliverable {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.6rem 1.4rem;
  box-shadow: 0 1px 2px rgba(17, 43, 32, 0.04);
}
.deliverable h3 { font-size: 1.08rem; margin-bottom: 0.4rem; }
.deliverable p { color: var(--muted); font-size: 0.95rem; }

/* ---------- 404 ---------- */

.error-hero { padding: 6rem 0 5.5rem; position: relative; }
.error-hero .shell {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: 3.5rem;
  align-items: center;
}
@media (max-width: 820px) {
  .error-hero .shell { grid-template-columns: 1fr; }
  .error-sign { max-width: 230px; }
}
.error-sign {
  width: 100%;
  max-width: 300px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ---------- Scroll-in reveals ----------
   site.js adds .js-reveal to <html> and .reveal to the targets only when
   IntersectionObserver exists and reduced motion is off, so content is
   never hidden without JS. --rd staggers siblings within a grid. */

.js-reveal .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--rd, 0s);
}
.js-reveal .reveal.on {
  opacity: 1;
  transform: none;
}
