/* ============================================================
   Nerve Link — nervelinksf.com
   ============================================================ */

:root {
  --ink:        #0b1117;
  --ink-2:      #131d28;
  --ink-3:      #1e2b38;
  --text:       #17222d;
  --muted:      #5a6b7b;
  --muted-2:    #8494a3;
  --line:       #e4eaf0;
  --bg:         #ffffff;
  --bg-alt:     #f6f8fa;
  --accent:     #ef6415;
  --accent-2:   #ff8a3d;
  --accent-ink: #c04c07;

  --wrap:   1120px;
  --narrow: 780px;
  --r:      14px;
  --shadow: 0 1px 2px rgba(11,17,23,.05), 0 12px 32px -12px rgba(11,17,23,.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  margin: 0 0 .6em;
  font-family: "Libre Franklin", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.15;
  letter-spacing: -0.021em;
  font-weight: 700;
  color: var(--ink);
}

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}
.wrap-narrow { max-width: var(--narrow); }

.eyebrow {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin: 0 0 1.1em;
}
.eyebrow-dark { color: var(--accent-ink); }

.cite {
  display: block;
  margin-top: .5em;
  font-size: .84rem;
  color: var(--muted-2);
}

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

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 13px 26px;
  border-radius: 10px;
  border: 1px solid var(--accent);
  transition: background .16s ease, transform .16s ease, box-shadow .16s ease;
  box-shadow: 0 6px 18px -8px rgba(239,100,21,.7);
}
.btn:hover { background: var(--accent-2); border-color: var(--accent-2); transform: translateY(-1px); }
.btn-sm  { padding: 9px 18px; font-size: .93rem; }
.btn-lg  { padding: 16px 34px; font-size: 1.05rem; }

.btn-invert {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
  box-shadow: 0 8px 26px -10px rgba(0,0,0,.5);
}
.btn-invert:hover { background: #f2f4f6; border-color: #f2f4f6; }

.btn-ghost {
  text-decoration: none;
  font-weight: 500;
  color: rgba(255,255,255,.78);
  padding: 13px 4px;
  transition: color .16s ease;
}
.btn-ghost:hover { color: #fff; }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11,17,23,.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: -0.01em;
}
.mark { width: 26px; height: 26px; color: var(--accent-2); flex: none; }

.nav-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
}
.nav-links a {
  text-decoration: none;
  color: rgba(255,255,255,.72);
  font-size: .95rem;
  font-weight: 500;
  transition: color .16s ease;
}
.nav-links a:hover { color: #fff; }

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

.hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  padding: 104px 0 112px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -260px;
  left: 50%;
  transform: translateX(-58%);
  width: 1100px;
  height: 700px;
  background: radial-gradient(closest-side, rgba(239,100,21,.20), rgba(239,100,21,0) 72%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 880px; }
.hero h1 {
  color: #fff;
  font-size: clamp(2.3rem, 5.6vw, 3.9rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: .45em;
}
.lede {
  font-size: clamp(1.05rem, 2.2vw, 1.24rem);
  line-height: 1.6;
  color: rgba(255,255,255,.76);
  max-width: 700px;
}
.lede strong { color: #fff; font-weight: 600; }

.hero-cta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 34px;
}

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

.section { padding: 92px 0; }
.band {
  padding: 92px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.35rem);
  max-width: 22ch;
  margin-bottom: 1.4em;
}
.band h2 { font-size: clamp(1.7rem, 3.4vw, 2.2rem); }

.split {
  display: grid;
  grid-template-columns: 1.25fr .85fr;
  gap: 64px;
  align-items: start;
}
.split p { color: var(--muted); }
.split h2 { max-width: 20ch; }

.gap-list {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  border-left: 2px solid var(--line);
}
.gap-list li {
  position: relative;
  padding: 0 0 26px 24px;
}
.gap-list li:last-child { padding-bottom: 0; }
.gap-list li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 9px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--bg-alt);
}
.gap-list .t {
  display: block;
  font-weight: 700;
  color: var(--ink);
  font-size: .95rem;
  letter-spacing: -0.005em;
}
.gap-list .d {
  display: block;
  font-size: .95rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ---------- Services: one feature panel + two supporting blocks ----------
   The hierarchy is real, not decorative. 01 is the core build the whole
   page argues for; 02 and 03 are for contractors who already have some
   infrastructure. Equal-weight cards flattened that difference. */

.cards-asym {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 30px;
  align-items: stretch;
}

.card-num {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--accent);
  margin-bottom: 14px;
}

/* Feature panel */
.card-feature {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--ink);
  border-radius: var(--r);
  padding: 46px 44px 48px;
  box-shadow: 0 18px 44px -20px rgba(11,17,23,.55);
}
.card-feature::after {
  content: "";
  position: absolute;
  top: -180px;
  right: -140px;
  width: 460px;
  height: 460px;
  background: radial-gradient(closest-side, rgba(239,100,21,.22), rgba(239,100,21,0) 70%);
  pointer-events: none;
}
.card-feature > * { position: relative; }
.card-feature .card-num { color: var(--accent-2); }
.card-feature h3 {
  color: #fff;
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  letter-spacing: -0.025em;
  margin-bottom: .65em;
}
.card-feature p {
  color: rgba(255,255,255,.74);
  font-size: 1.02rem;
  line-height: 1.65;
  max-width: 46ch;
}

/* Supporting blocks: no card chrome, just a rule and type */
.card-support-col {
  display: grid;
  gap: 34px;
}
.card-support {
  border-top: 2px solid var(--ink);
  padding-top: 22px;
}
.card-support h3 {
  font-size: 1.16rem;
  margin-bottom: .6em;
}
.card-support p {
  font-size: .95rem;
  color: var(--muted);
  line-height: 1.62;
}

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

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}
.step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  margin-bottom: 16px;
}
.steps h3 { font-size: 1.1rem; margin-bottom: .55em; }
.steps p { font-size: .97rem; color: var(--muted); line-height: 1.62; }

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

.faq {
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 24px 44px 24px 0;
  position: relative;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink);
  letter-spacing: -0.012em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -7px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.faq details[open] summary::after {
  transform: rotate(-135deg);
  margin-top: -3px;
}
.faq-body {
  padding: 0 8px 26px 0;
  color: var(--muted);
  font-size: 1rem;
}

/* ---------- CTA ---------- */

.cta {
  background: var(--ink);
  color: #fff;
  padding: 92px 0;
  text-align: center;
}
.cta-inner h2 {
  color: #fff;
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  margin-bottom: .5em;
}
.cta-inner p {
  color: rgba(255,255,255,.72);
  max-width: 56ch;
  margin: 0 auto 34px;
}

/* ---------- Service area ---------- */

.areas-split {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.areas-copy p { color: var(--muted); }
.areas-copy a { color: var(--accent-ink); font-weight: 500; }

.area-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.area-grid li {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px 10px;
  text-align: center;
  font-size: .93rem;
  font-weight: 500;
  color: var(--ink);
}

/* ---------- Founder ---------- */

.founder {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 40px;
  align-items: start;
}
.founder-photo {
  width: 160px;
  height: 160px;
  border-radius: 16px;
  object-fit: cover;
  display: block;
}
.founder-photo-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(150deg, var(--ink-3), var(--ink));
  color: rgba(255,255,255,.5);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: .08em;
  border: 1px solid rgba(255,255,255,.1);
}
.founder-copy p { color: var(--muted); }
.founder-copy a { color: var(--accent-ink); font-weight: 500; }
.founder-copy h2 { font-size: clamp(1.5rem, 3vw, 1.95rem); }

/* ---------- Lead form ---------- */

.lead-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  text-align: left;
  margin-top: 38px;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field-wide { grid-column: 1 / -1; }
.field label {
  font-size: .88rem;
  font-weight: 600;
  color: rgba(255,255,255,.82);
}
.field .opt { font-weight: 400; color: rgba(255,255,255,.45); }
.field input,
.field textarea {
  font: inherit;
  font-size: 1rem;
  color: #fff;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 9px;
  padding: 12px 14px;
  width: 100%;
  transition: border-color .15s ease, background .15s ease;
}
.field textarea { resize: vertical; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent-2);
  background: rgba(255,255,255,.1);
}
.field input:user-invalid { border-color: #ef4444; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.form-actions .btn { border: none; cursor: pointer; font-family: inherit; }
.form-actions .btn:disabled { opacity: .6; cursor: default; transform: none; }
.form-note {
  margin: 0;
  font-size: .85rem;
  color: rgba(255,255,255,.5);
  max-width: 40ch;
  text-align: left;
  line-height: 1.5;
}
.form-note a { color: rgba(255,255,255,.75); }

.form-msg {
  grid-column: 1 / -1;
  margin: 0;
  font-size: .95rem;
  text-align: left;
}
.form-msg.is-error {
  color: #ffb4a2;
  background: rgba(239,68,68,.12);
  border: 1px solid rgba(239,68,68,.35);
  border-radius: 9px;
  padding: 12px 14px;
}

/* ---------- Sticky mobile CTA ---------- */

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: rgba(11,17,23,.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 11px 0 calc(11px + env(safe-area-inset-bottom));
  transform: translateY(110%);
  transition: transform .22s ease;
  display: none;
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.sticky-cta span {
  color: rgba(255,255,255,.85);
  font-size: .92rem;
  font-weight: 500;
  line-height: 1.3;
}
.sticky-cta .btn { flex: none; }

/* ---------- Subpages ---------- */

.page { padding: 64px 0 96px; }
.page h1 { font-size: clamp(1.9rem, 4.4vw, 2.7rem); }
.page-center { text-align: center; }
.page-center .lost-links,
.page-center .steps-plain { text-align: left; }

.lede-dark {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 58ch;
}
.page-center .lede-dark { margin-left: auto; margin-right: auto; }

.mt { margin-top: 2.2em; }

.crumbs { margin-bottom: 30px; font-size: .88rem; }
.crumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  color: var(--muted-2);
}
.page-center .crumbs ol { justify-content: center; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent-ink); }

.check {
  width: 68px;
  height: 68px;
  margin: 0 auto 26px;
  border-radius: 50%;
  background: rgba(239,100,21,.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.check svg { width: 40px; height: 40px; }

.code-404 {
  font-size: 4.2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--line);
  margin: 0 0 .1em;
  line-height: 1;
}

.steps-plain, .lost-links {
  max-width: 60ch;
  margin: 0 auto;
  padding-left: 1.25em;
  color: var(--muted);
}
.steps-plain li, .lost-links li { margin-bottom: .7em; line-height: 1.6; }
.steps-plain strong { color: var(--ink); }
.lost-links a, .steps-plain a { color: var(--accent-ink); font-weight: 500; }

/* ---------- Prose (privacy policy) ---------- */

.updated { color: var(--muted-2); font-size: .92rem; margin-top: -.6em; }
.prose { max-width: 68ch; }
.prose h2 {
  font-size: 1.28rem;
  margin-top: 2em;
  margin-bottom: .6em;
}
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 1.25em; margin: 0 0 1.05em; }
.prose li { margin-bottom: .45em; line-height: 1.6; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--accent-ink); }
.contact-block {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px 22px;
  line-height: 1.8;
}
.pending { color: var(--muted-2); font-style: italic; }

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

.footer {
  background: var(--ink-2);
  color: rgba(255,255,255,.62);
  padding: 56px 0 30px;
  font-size: .93rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 44px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 14px;
}
.footer-brand .mark { width: 22px; height: 22px; }
.footer-blurb { margin: 0; max-width: 34ch; line-height: 1.6; }
.footer-h {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin: 0 0 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: rgba(255,255,255,.72); text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-address { margin: 0 0 18px; line-height: 1.7; }
.footer-address .pending { color: rgba(255,255,255,.4); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 24px;
  font-size: .88rem;
  color: rgba(255,255,255,.45);
}
.footer-bottom-only { padding-top: 0; border-top: none; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: rgba(255,255,255,.7); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Responsive ---------- */

@media (max-width: 940px) {
  .cards-asym, .steps { grid-template-columns: 1fr; }
  .card-feature { padding: 36px 30px 38px; }
  .split, .areas-split { grid-template-columns: 1fr; gap: 40px; }
  .split h2 { max-width: none; }
  .section-title { max-width: none; }
  .area-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 34px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .nav-inner { gap: 12px; }
  .brand { margin-right: auto; }
  .hero { padding: 76px 0 84px; }
  .section, .band, .cta { padding: 68px 0; }
  .hero-cta { gap: 12px; }
  .hero-cta .btn { width: 100%; text-align: center; }
  .btn-ghost { width: 100%; text-align: center; }

  .area-grid { grid-template-columns: repeat(2, 1fr); }

  .founder { grid-template-columns: 1fr; gap: 24px; justify-items: center; text-align: center; }
  .founder-copy { text-align: left; }

  .lead-form { grid-template-columns: 1fr; }
  .form-actions { flex-direction: column; align-items: stretch; }
  .form-actions .btn { width: 100%; }
  .form-note { max-width: none; text-align: center; }

  /* Sticky CTA is mobile-only; pad the page so it can't cover the footer. */
  .sticky-cta { display: block; }
  body { padding-bottom: 68px; }

  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .page { padding: 48px 0 76px; }
}

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