/* Leads Prosper: one stylesheet for every page. */
:root {
  --ink: #13233f;
  --text: #3a4759;
  --muted: #5b6878;
  --paper: #ffffff;
  --mist: #f1f4f7;
  --line: #d6dde5;
  --green: #0e6b53;
  --green-dark: #0a5241;
  --focus: #1d5fd1;
  --wrap: 72rem;
  --radius: 6px;
  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--green); text-underline-offset: 0.18em; }
a:hover { color: var(--green-dark); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4rem); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }
li { margin-bottom: 0.35em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.measure { max-width: 40rem; }
.lead { font-size: 1.2rem; color: var(--text); max-width: 38rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 0.6rem 1rem; z-index: 100; }
.skip:focus { left: 0.5rem; top: 0.5rem; color: #fff; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.9rem; padding: 0.6rem 1.25rem;
  border: 2px solid var(--green); border-radius: var(--radius);
  background: var(--green); color: #fff;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--mist); color: var(--ink); border-color: var(--ink); }
.btn-small { min-height: 2.4rem; padding: 0.35rem 0.9rem; font-size: 0.95rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.97); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 1rem; min-height: 4rem; }
.logo { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--ink); font-weight: 800; font-size: 1.15rem; text-decoration: none; white-space: nowrap; letter-spacing: -0.02em; }
.logo:hover { color: var(--ink); }
.logo-mark { width: 1.6rem; height: 1.6rem; flex: none; }
.nav { margin-left: auto; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0.25rem; }
.nav-list > li { position: relative; margin: 0; }
.nav-link, .menu-toggle {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.5rem 0.7rem; border: 0; background: none; border-radius: var(--radius);
  color: var(--ink); font: inherit; font-size: 0.98rem; font-weight: 600; text-decoration: none; cursor: pointer;
}
.nav-link:hover, .menu-toggle:hover { background: var(--mist); color: var(--ink); }
.nav-link[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.35em; }
.caret { width: 0.6rem; height: 0.6rem; transition: transform 0.15s; }
.menu-toggle[aria-expanded="true"] .caret { transform: rotate(180deg); }
.submenu {
  display: none; position: absolute; top: calc(100% + 0.35rem); left: 0; min-width: 15rem;
  list-style: none; margin: 0; padding: 0.4rem; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(19,35,63,0.12);
}
.submenu.open { display: block; }
.submenu a { display: block; padding: 0.55rem 0.75rem; border-radius: 4px; color: var(--ink); text-decoration: none; font-size: 0.97rem; }
.submenu a:hover { background: var(--mist); }
.submenu li { margin: 0; }
.submenu .sub-all { border-top: 1px solid var(--line); margin-top: 0.3rem; padding-top: 0.3rem; }
.header-cta { flex: none; }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .bar { gap: 0.5rem; }
  .nav { order: 4; margin: 0; }
  .header-cta { margin-left: auto; }
  .nav-toggle {
    display: inline-flex; align-items: center; min-height: 2.4rem; padding: 0.35rem 0.8rem;
    border: 2px solid var(--line); border-radius: var(--radius); background: #fff;
    color: var(--ink); font: inherit; font-size: 0.95rem; font-weight: 700; cursor: pointer;
  }
  .nav-panel { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(19,35,63,0.12); max-height: calc(100vh - 4rem); overflow-y: auto; }
  .nav-panel.open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; padding: 0.5rem 1.25rem 1.25rem; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--line); }
  .nav-list > li:last-child { border-bottom: 0; }
  .nav-link, .menu-toggle { width: 100%; justify-content: space-between; padding: 0.85rem 0; font-size: 1.05rem; }
  .nav-link:hover, .menu-toggle:hover { background: none; }
  .submenu { position: static; box-shadow: none; border: 0; padding: 0 0 0.75rem; min-width: 0; }
  .submenu a { padding: 0.5rem 0.75rem; }
}
@media (max-width: 380px) {
  .wrap { padding: 0 1rem; }
  .logo { font-size: 1.02rem; gap: 0.4rem; }
  .logo-mark { width: 1.35rem; height: 1.35rem; }
  .btn-small, .nav-toggle { padding: 0.3rem 0.65rem; font-size: 0.9rem; }
}

/* Sections */
main { display: block; }
.section { padding: clamp(3rem, 2rem + 4vw, 5.5rem) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section.tint { background: var(--mist); border-top: 0; }
.section.tint + .section { border-top: 0; }
.section-head { max-width: 40rem; margin-bottom: 2.25rem; }
.section-head p { color: var(--muted); }

/* Hero */
.hero { padding: clamp(3.5rem, 2rem + 6vw, 7rem) 0 clamp(2.5rem, 2rem + 3vw, 4rem); }
.hero h1 { max-width: 14ch; }
.page-hero { padding: clamp(3rem, 2rem + 4vw, 5rem) 0 clamp(2rem, 1.5rem + 2vw, 3rem); }
.page-hero h1 { max-width: 18ch; font-size: clamp(2.1rem, 1.4rem + 2.8vw, 3.4rem); }
.crumbs { font-size: 0.92rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: var(--muted); }

/* Lead path: the signature element */
.path { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.path::before {
  content: ""; position: absolute; left: 0.5rem; right: calc(20% - 0.6rem); top: 0.48rem; height: 3px; background: var(--green);
  transform-origin: left; animation: draw 1.1s ease-out 0.2s both;
}
.path li { position: relative; margin: 0; padding: 2rem 1.25rem 0 0; }
.path li::before {
  content: ""; position: absolute; left: 0; top: 0; width: 1.15rem; height: 1.15rem;
  border-radius: 50%; background: #fff; border: 3px solid var(--green);
}
.path li:last-child::before { background: var(--green); }
.path strong { display: block; color: var(--ink); font-size: 1.15rem; margin-bottom: 0.3rem; }
.path span { display: block; color: var(--muted); font-size: 0.97rem; line-height: 1.5; }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-width: 760px) {
  .path { grid-template-columns: 1fr; }
  .path::before { display: none; }
  .path li:not(:last-child)::after {
    content: ""; position: absolute; left: 0.48rem; top: 0.6rem; bottom: -0.6rem; width: 3px;
    background: var(--green); transform-origin: top; animation: drawv 0.9s ease-out 0.2s both;
  }
  .path li::before { z-index: 1; }
  .path li { padding: 0 0 1.6rem 2.4rem; }
  .path li:last-child { padding-bottom: 0; }
}
@keyframes drawv { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* Rows and grids */
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) 10rem; gap: 1.5rem; align-items: baseline; padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
.row h3 { margin: 0; font-size: 1.4rem; }
.row p { margin: 0; }
.row a.more { font-weight: 700; white-space: nowrap; justify-self: end; }
@media (max-width: 760px) { .row { grid-template-columns: 1fr; gap: 0.5rem; } .row a.more { justify-self: start; } }

.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 2rem 2.5rem; }
.cols h3 { margin-bottom: 0.35rem; }
.cols p { color: var(--text); margin: 0; }

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 2rem; }
.steps li { counter-increment: step; margin: 0; padding-top: 1rem; border-top: 3px solid var(--ink); }
.steps li::before { content: counter(step); display: block; font-weight: 800; color: var(--green); font-size: 1rem; margin-bottom: 0.4rem; }
.steps strong { display: block; color: var(--ink); font-size: 1.15rem; margin-bottom: 0.3rem; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; gap: 2rem; } }

.checks { list-style: none; padding: 0; }
.checks li { position: relative; padding-left: 1.75rem; margin-bottom: 0.7rem; }
.checks li::before { content: ""; position: absolute; left: 0.1rem; top: 0.5em; width: 0.8rem; height: 0.45rem; border-left: 3px solid var(--green); border-bottom: 3px solid var(--green); transform: rotate(-45deg); }

.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 0; }
.tags li { margin: 0; padding: 0.35rem 0.8rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 0.95rem; color: var(--ink); }

.industry { padding: 1.75rem 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 1.5rem; }
.industry:first-child { border-top: 1px solid var(--line); }
.industry h3 { margin: 0; }
.industry p { margin: 0 0 0.5rem; }
.industry .examples { color: var(--muted); font-size: 0.97rem; margin: 0; }
@media (max-width: 760px) { .industry { grid-template-columns: 1fr; gap: 0.5rem; } }

.faq details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; color: var(--ink); font-weight: 700; font-size: 1.08rem; }
.faq details p { margin: 0.75rem 0 0; max-width: 42rem; }

.cta-band { background: var(--ink); color: #dfe6ef; padding: clamp(3rem, 2rem + 4vw, 5rem) 0; }
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 36rem; }
.cta-band .btn { background: #fff; border-color: #fff; color: var(--ink); }
.cta-band .btn:hover { background: var(--mist); border-color: var(--mist); color: var(--ink); }
.cta-band a:not(.btn) { color: #fff; }
.cta-band :focus-visible { outline-color: #9cc2ff; }

/* Forms */
.form-wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 3.5rem; align-items: start; }
@media (max-width: 860px) { .form-wrap { grid-template-columns: 1fr; gap: 2.5rem; } }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); }
.field { margin-bottom: 1.15rem; }
.field label, .field legend { display: block; font-weight: 700; color: var(--ink); margin-bottom: 0.35rem; font-size: 0.98rem; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="url"], .field select, .field textarea {
  width: 100%; min-height: 2.9rem; padding: 0.6rem 0.75rem;
  border: 1.5px solid #9aa6b5; border-radius: var(--radius); background: #fff;
  color: var(--ink); font: inherit; font-size: 1rem;
}
.field textarea { min-height: 7rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--focus); outline: 3px solid rgba(29,95,209,0.25); outline-offset: 0; }
.field fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.choice { display: flex; align-items: center; gap: 0.55rem; margin: 0.35rem 0; font-size: 1rem; color: var(--text); cursor: pointer; }
.choice input { width: 1.15rem; height: 1.15rem; accent-color: var(--green); flex: none; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 0 1rem; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #b3261e; }
.error { display: none; color: #b3261e; font-size: 0.92rem; margin-top: 0.35rem; font-weight: 600; }
.field.invalid .error { display: block; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.92rem; color: var(--muted); margin: 0.9rem 0 0; }
.form-status { margin-top: 1rem; font-weight: 600; }
.form-status.err { color: #b3261e; }
.form-done { border: 1px solid var(--green); border-left-width: 5px; border-radius: var(--radius); padding: 1.5rem; background: #f3faf7; }
.form-done h2 { font-size: 1.5rem; }
.aside h2 { font-size: 1.5rem; }

/* Footer */
.site-footer { background: var(--mist); border-top: 1px solid var(--line); padding: 3.5rem 0 6rem; font-size: 0.97rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .foot-about, .foot-grid > div:last-child { grid-column: 1 / -1; } }
.site-footer h2 { font-size: 1rem; margin-bottom: 0.75rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.45rem; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.foot-about p { color: var(--muted); max-width: 22rem; }
.legal { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }

/* Floating contact button */
.float-contact {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 40;
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 3rem; padding: 0.6rem 1.1rem; border-radius: 999px;
  background: var(--ink); color: #fff; font-weight: 700; text-decoration: none;
  box-shadow: 0 8px 24px rgba(19,35,63,0.28);
}
.float-contact:hover { background: var(--green-dark); color: #fff; }
.float-contact svg { width: 1.15rem; height: 1.15rem; }
.float-group { position: fixed; right: 1rem; bottom: 1rem; z-index: 40; display: flex; gap: 0.5rem; }
.float-group .float-contact { position: static; }

.notfound { padding: clamp(4rem, 3rem + 6vw, 8rem) 0; }

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

/* Industry links */
.tag-links li { padding: 0; }
.tag-links a { display: block; padding: 0.4rem 0.85rem; color: var(--ink); text-decoration: none; border-radius: 999px; }
.tag-links a:hover { background: var(--mist); color: var(--ink); text-decoration: underline; }
.industry h3 a.industry-link { color: var(--ink); text-decoration: none; }
.industry h3 a.industry-link:hover { text-decoration: underline; }
.page-hero .tags { margin-top: 1.25rem; }
