/* ============================================================
   RangerLead — styles.css
   Design system: "Field-tested precision"
   Pine green + high-vis signal amber, Archivo + Manrope.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Greens */
  --green-900: #0F2820;
  --green-800: #15332A;
  --green-700: #1B4335;
  --green-600: #24503F;
  --green-200: #9CBFAE;
  --green-100: #DCE8E1;

  /* Accent (signal amber) */
  --accent: #EE8A2E;
  --accent-dark: #D0741C;
  --accent-soft: #FCEBD7;

  /* Neutrals */
  --ink: #16211C;
  --muted: #566A61;
  --line: #E2E8E3;
  --bg: #FBFCFB;
  --bg-soft: #F2F6F3;
  --white: #FFFFFF;

  /* Type */
  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;

  /* Layout */
  --maxw: 1120px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(15, 40, 32, .06), 0 4px 14px rgba(15, 40, 32, .05);
  --shadow-md: 0 8px 30px rgba(15, 40, 32, .10);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 22px;
}
.container-narrow { max-width: 760px; }

.section { padding: 88px 0; }

.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin: 0 0 14px;
}
.eyebrow-center { text-align: center; }

.section-title { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 800; }
.section-title.center { text-align: center; }
.section-intro {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.1rem;
  margin-top: 16px;
}
.section-intro.center { margin-inline: auto; text-align: center; }

/* ---------- Accessibility helpers ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--green-800);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 13px 22px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background-color .18s ease, box-shadow .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 9px 16px; font-size: .92rem; }
.btn-lg { padding: 16px 28px; font-size: 1.05rem; }

.btn-primary { background: var(--green-800); color: #fff; }
.btn-primary:hover { background: var(--green-700); box-shadow: var(--shadow-md); }

.btn-accent { background: var(--accent); color: #241305; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; box-shadow: var(--shadow-md); }

.btn-ghost { background: transparent; color: var(--green-800); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--green-600); background: var(--white); }

.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 252, 251, .88);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { flex: none; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; }

.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a {
  font-weight: 600;
  font-size: .96rem;
  color: var(--muted);
  transition: color .15s ease;
}
.nav a:hover { color: var(--ink); }
.header-cta { margin-left: 4px; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav[hidden] { display: none; }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 22px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.mobile-nav a { padding: 12px 6px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); }
.mobile-nav a:last-child { border: none; margin-top: 10px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%); }
.hero-contours { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-contours svg { width: 100%; height: 100%; }

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 54px;
  align-items: center;
  padding-top: 92px;
  padding-bottom: 96px;
}
.hero-copy h1 {
  font-size: clamp(2.3rem, 5.2vw, 3.7rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 22px;
}
.hero-sub { font-size: 1.18rem; color: var(--muted); max-width: 40ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 26px;
  color: var(--muted);
  font-size: .92rem;
  font-weight: 600;
}
.hero-trust span { position: relative; padding-left: 22px; }
.hero-trust span::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 13px; height: 13px;
  margin-top: -7px;
  background: var(--accent);
  clip-path: polygon(43% 0, 100% 0, 57% 100%, 0 100%);
  opacity: .85;
}

/* Hero conceptual card */
.hero-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 22px;
  transform: rotate(-1.2deg);
}
.hero-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.02rem;
  padding-bottom: 16px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.hero-card-dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.hero-card-rows li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
  font-size: .96rem;
}
.hcr-label { color: var(--muted); font-weight: 600; }
.hcr-val { font-weight: 600; text-align: right; }
.hcr-ok { color: var(--green-600); }
.hero-card-note {
  margin-top: 14px;
  font-size: .78rem;
  color: var(--muted);
  font-style: italic;
}

/* ---------- Value prop (dark band) ---------- */
.valueprop {
  background: var(--green-800);
  color: #EAF1EC;
  padding: 84px 0;
}
.vp-title { color: #fff; font-size: clamp(1.9rem, 4.4vw, 2.9rem); font-weight: 800; }
.vp-lead { color: var(--green-200); font-size: 1.16rem; max-width: 60ch; margin-top: 20px; }
.vp-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 48px;
}
.pillar {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  padding: 26px;
}
.pillar-icon {
  width: 44px; height: 44px;
  color: var(--accent);
  background: rgba(238,138,46,.14);
  border-radius: 11px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.pillar-icon svg { width: 24px; height: 24px; }
.pillar h3 { color: #fff; font-size: 1.16rem; font-weight: 700; margin-bottom: 8px; }
.pillar p { color: var(--green-200); font-size: .98rem; }

/* ---------- Problem ---------- */
.problem { background: var(--bg); }
.problem-list {
  max-width: 720px;
  margin: 34px auto 0;
  display: grid;
  gap: 14px;
}
.problem-list li {
  position: relative;
  padding: 16px 18px 16px 52px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 1.04rem;
  box-shadow: var(--shadow-sm);
}
.problem-list li::before {
  content: "";
  position: absolute;
  left: 18px; top: 50%;
  width: 18px; height: 18px;
  margin-top: -9px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 2px solid var(--accent);
}
.problem-close {
  max-width: 720px;
  margin: 30px auto 0;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--ink);
}

/* ---------- How it works ---------- */
.how { background: var(--bg-soft); }
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-top: 46px;
  counter-reset: none;
}
.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: var(--shadow-sm);
}
.step-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--accent-dark);
  display: inline-block;
  margin-bottom: 14px;
  padding-bottom: 6px;
  border-bottom: 3px solid var(--accent);
}
.step h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: .94rem; color: var(--muted); }
.how-close {
  text-align: center;
  max-width: 640px;
  margin: 34px auto 0;
  font-size: 1.12rem;
  color: var(--ink);
  font-weight: 500;
}

/* ---------- Benefits ---------- */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 46px;
}
.benefit {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.benefit:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.benefit h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.benefit h3::before {
  content: "";
  display: inline-block;
  width: 10px; height: 10px;
  margin-right: 9px;
  background: var(--accent);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  vertical-align: middle;
}
.benefit p { color: var(--muted); font-size: .98rem; }

/* ---------- Who it's for ---------- */
.for-who { background: var(--bg-soft); }
.fit-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 44px;
}
.fit-card { padding: 30px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--white); }
.fit-card h3 { font-size: 1.22rem; font-weight: 700; margin-bottom: 18px; }
.fit-card ul { display: grid; gap: 12px; }
.fit-card li { position: relative; padding-left: 30px; color: var(--ink); }
.fit-yes { border-top: 4px solid var(--green-600); }
.fit-no { border-top: 4px solid var(--accent); background: var(--bg); }
.fit-yes li::before,
.fit-no li::before {
  position: absolute;
  left: 0; top: 0;
  font-family: var(--font-display);
  font-weight: 800;
}
.fit-yes li::before { content: "✓"; color: var(--green-600); }
.fit-no li::before { content: "—"; color: var(--accent-dark); }
.fit-note { margin-top: 16px; color: var(--muted); font-size: .96rem; }

/* ---------- Getting started ---------- */
.getting-started { background: var(--bg); }
.gs-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 46px;
}
.gs-step {
  text-align: center;
  padding: 30px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.gs-num {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--green-800);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
}
.gs-step h3 { font-size: 1.14rem; font-weight: 700; margin-bottom: 8px; }
.gs-step p { color: var(--muted); font-size: .98rem; }
.gs-close { text-align: center; margin-top: 30px; font-weight: 600; color: var(--ink); }

/* ---------- FAQ ---------- */
.faq { background: var(--bg-soft); }
.faq-list { margin-top: 40px; display: grid; gap: 12px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.06rem;
  color: var(--ink);
}
.faq-icon { position: relative; width: 16px; height: 16px; flex: none; }
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--accent-dark);
  border-radius: 2px;
  transition: transform .2s ease;
}
.faq-icon::before { left: 0; top: 7px; width: 16px; height: 2px; }
.faq-icon::after { left: 7px; top: 0; width: 2px; height: 16px; }
.faq-q[aria-expanded="true"] .faq-icon::after { transform: scaleY(0); }
.faq-a { padding: 0 22px 22px; }
.faq-a p { color: var(--muted); }

/* ---------- Final CTA ---------- */
.final-cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--green-800), var(--green-900));
  color: #fff;
  padding: 96px 0;
  scroll-margin-top: 80px;
}
.final-contours { opacity: .8; }
.final-inner { position: relative; z-index: 1; text-align: center; max-width: 720px; }
.final-inner h2 { font-size: clamp(2rem, 4.6vw, 3rem); font-weight: 800; color: #fff; }
.final-inner > p { color: var(--green-200); font-size: 1.16rem; margin: 20px auto 0; max-width: 56ch; }
.final-buttons { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 32px; }
.final-reassure { margin-top: 26px; color: var(--green-200); font-weight: 600; font-size: .96rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: #C9D8CF; padding: 52px 0 30px; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.site-footer .brand-name { color: #fff; }
.footer-tag { margin-top: 8px; font-size: .9rem; color: var(--green-200); }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: #C9D8CF; font-weight: 600; font-size: .95rem; }
.footer-links a:hover { color: #fff; }
.footer-bottom { padding-top: 22px; font-size: .86rem; color: var(--green-200); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Contour draw animation ---------- */
.contour {
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: draw 2.4s ease forwards;
}
.contour:nth-child(2) { animation-delay: .15s; }
.contour:nth-child(3) { animation-delay: .3s; }
.contour:nth-child(4) { animation-delay: .45s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 940px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }

  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding-top: 62px; padding-bottom: 66px; }
  .hero-card { max-width: 420px; transform: none; }

  .vp-pillars { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .benefit-grid { grid-template-columns: 1fr 1fr; }
  .gs-steps { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .section { padding: 62px 0; }
  .valueprop { padding: 60px 0; }
  .final-cta { padding: 68px 0; }

  .steps { grid-template-columns: 1fr; }
  .benefit-grid { grid-template-columns: 1fr; }
  .fit-cols { grid-template-columns: 1fr; }

  .hero-cta .btn, .final-buttons .btn { width: 100%; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .contour { stroke-dashoffset: 0; }
}
