/* ==========================================================
   RangePass marketing site
   Colors are sampled from the RangePass logo.
   ========================================================== */
:root {
  /* Brand */
  --navy-900: #032433;   /* logo "Range" text: headlines, footer */
  --navy-800: #083246;   /* primary buttons, nav button */
  --navy-700: #0E4560;   /* button hover */
  --green-600: #269135;  /* logo "Pass" text: icons, accents */
  --green-700: #1E7A2C;  /* accent text on white (passes WCAG AA) */
  --green-400: #6CCB45;  /* bright accent on navy */
  --green-50:  #EAF6EC;  /* soft icon backgrounds */

  /* Neutrals */
  --white: #FFFFFF;
  --bg-alt: #F3F6F9;     /* light gray-blue alternating sections */
  --text: #1B2B35;
  --text-muted: #4F606B;
  --border: #DCE3EA;

  /* Type and shape */
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 1px 2px rgba(3, 36, 51, .06), 0 8px 24px rgba(3, 36, 51, .08);
  --shadow-lg: 0 24px 60px rgba(3, 36, 51, .18);
  --header-h: 68px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3 { color: var(--navy-900); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

a { color: var(--green-700); text-underline-offset: 3px; }
a:hover { color: var(--navy-900); }

:focus-visible {
  outline: 3px solid var(--green-600);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 700;
}
.skip-link:focus { top: 12px; color: var(--white); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 48px;
  padding: 12px 24px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn-primary {
  background: var(--navy-800);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(3, 36, 51, .18);
}
.btn-primary:hover { background: var(--navy-700); color: var(--white); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-sm { min-height: 42px; padding: 8px 18px; font-size: .95rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }

.link-arrow {
  font-weight: 700;
  color: var(--navy-900);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .35em;
  min-height: 48px;
}
.link-arrow span { color: var(--green-600); transition: transform .2s ease; }
.link-arrow:hover { color: var(--green-700); }
.link-arrow:hover span { transform: translateX(3px); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav-logo img { height: 36px; width: auto; }
@media (max-width: 380px) {
  .nav-logo img { height: 28px; }
  .btn-sm { padding: 8px 14px; font-size: .9rem; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 48px 0 64px;
  background:
    radial-gradient(900px 420px at 85% 10%, rgba(38, 145, 53, .08), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(3, 36, 51, .05), transparent 60%),
    var(--white);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--green-50);
  color: var(--green-700);
  font-size: .9rem;
  font-weight: 700;
}
.accent { color: var(--green-700); }
.lead {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 36em;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 28px;
}

@media (min-width: 900px) {
  .hero { padding: 80px 0 96px; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 64px; }
}

/* ---------- Phone mockup ---------- */
.hero-visual { display: flex; justify-content: center; }
.phone {
  position: relative;
  width: min(300px, 82vw);
  aspect-ratio: 9 / 18.5;
  padding: 12px;
  border-radius: 44px;
  background: var(--navy-900);
  box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255, 255, 255, .08);
  transform: rotate(2deg);
}
.phone-notch {
  position: absolute;
  top: 20px;
  left: 50%;
  width: 84px;
  height: 22px;
  border-radius: 999px;
  background: var(--navy-900);
  transform: translateX(-50%);
  z-index: 2;
}
.phone-screen {
  height: 100%;
  border-radius: 34px;
  background: var(--bg-alt);
  padding: 52px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.35;
}
.app-bar { display: flex; align-items: center; gap: 10px; }
.app-icon { width: 28px; height: 28px; border-radius: 8px; }
.app-range { font-weight: 800; color: var(--navy-900); font-size: 14px; }
.app-sub { color: var(--text-muted); font-size: 11.5px; }

.punch-card {
  background: var(--white);
  border-radius: 18px;
  padding: 14px;
  box-shadow: var(--shadow);
}
.punch-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}
.punch-title { font-weight: 800; color: var(--navy-900); font-size: 12.5px; }
.punch-count { font-weight: 800; color: var(--green-700); font-size: 12.5px; }
.punches {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.punch {
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px dashed #B9C6D1;
  display: grid;
  place-items: center;
}
.punch.filled {
  border: 0;
  background: var(--navy-800);
  /* white check mark */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E");
  background-size: 60%;
  background-repeat: no-repeat;
  background-position: center;
}
.punch.free {
  border: 2px solid var(--green-600);
  background: var(--green-50);
  color: var(--green-700);
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: .03em;
}
.progress {
  height: 6px;
  border-radius: 999px;
  background: #E3E9EF;
  overflow: hidden;
}
.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green-600), var(--green-400));
}
.punch-note { margin: 8px 0 0; color: var(--text-muted); font-size: 11.5px; }

.visits {
  background: var(--white);
  border-radius: 18px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
}
.visits-title { margin: 0 0 6px; font-weight: 800; color: var(--navy-900); font-size: 12px; }
.visits ul { list-style: none; margin: 0; padding: 0; }
.visits li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  color: var(--text);
  font-size: 11.5px;
  border-top: 1px solid #EEF2F5;
}
.visits li:first-child { border-top: 0; }
.visit-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-600); flex: none; }
.visit-date { margin-left: auto; color: var(--text-muted); }

.qr-block {
  margin-top: auto;
  background: var(--white);
  border-radius: 18px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow);
}
.qr-block img { width: 92px; height: 92px; }
.qr-block p { margin: 0; font-weight: 700; color: var(--navy-900); font-size: 12px; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
@media (min-width: 900px) { .section { padding: 96px 0; } }

.section-kicker {
  margin-bottom: 10px;
  color: var(--green-700);
  font-weight: 800;
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.section-title { max-width: 22em; margin-bottom: 40px; }

/* Shared line-icon styling */
.problem-icon svg, .step-icon svg, .card-icon svg, .check svg, .data-note svg, .success-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Problem */
.problem-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.problem-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.problem-list p { margin: 0; font-size: 1.08rem; }
.problem-list strong { color: var(--navy-900); }
.problem-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--navy-900);
  color: var(--white);
}
.problem-icon svg { width: 26px; height: 26px; }
@media (min-width: 900px) {
  .problem-list { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .problem-list li { flex-direction: column; align-items: flex-start; padding: 28px; }
}

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 24px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--border);
}
.step-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin-bottom: 18px;
  border-radius: 18px;
  background: var(--green-50);
  color: var(--green-600);
}
.step-icon svg { width: 32px; height: 32px; }
.step-num {
  display: block;
  margin-bottom: 4px;
  color: var(--green-700);
  font-weight: 800;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.step p { margin: 0; color: var(--text-muted); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 28px; }
}

/* Cards */
.cards { display: grid; gap: 24px; }
.card {
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card p { margin: 0; color: var(--text-muted); }
.card-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  border-radius: 16px;
  background: var(--navy-900);
  color: var(--green-400);
}
.card-icon svg { width: 30px; height: 30px; }
@media (min-width: 900px) { .cards { grid-template-columns: repeat(3, 1fr); gap: 28px; } }

.data-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 32px 0 0;
  color: var(--text-muted);
  font-size: .98rem;
}
.data-note svg { flex: none; width: 22px; height: 22px; color: var(--green-600); }

/* Why */
.why-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 28px;
}
.why-list li { display: flex; gap: 16px; align-items: flex-start; }
.why-list h3 { margin-bottom: .3em; }
.why-list p { margin: 0; color: var(--text-muted); }
.check {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green-600);
  color: var(--white);
}
.check svg { width: 20px; height: 20px; stroke-width: 2.6; }
@media (min-width: 900px) { .why-list { grid-template-columns: repeat(3, 1fr); gap: 36px; } }

/* Pilot banner */
.pilot {
  padding: 22px 0;
  border-top: 1px solid var(--border);
  background: var(--white);
}
.pilot-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
}
.pilot p { margin: 0; color: var(--text-muted); font-size: .98rem; }
.pilot-dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green-600);
  box-shadow: 0 0 0 5px var(--green-50);
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 36px; }
.contact-copy p { color: var(--text-muted); font-size: 1.1rem; max-width: 30em; }
.contact-copy .section-title { margin-bottom: 16px; }
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
}

.form-card {
  padding: 28px 22px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
}
@media (min-width: 600px) { .form-card { padding: 36px; } }

.field { margin-bottom: 18px; }
.field-row { display: grid; gap: 0 16px; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }

label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  color: var(--navy-900);
  font-size: .98rem;
}
.optional { font-weight: 400; color: var(--text-muted); }

input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text);
  font: inherit;
  font-size: 1rem; /* 16px+ prevents iOS zoom on focus */
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { resize: vertical; min-height: 120px; }
input:focus, textarea:focus {
  outline: none;
  border-color: var(--green-600);
  box-shadow: 0 0 0 4px rgba(38, 145, 53, .15);
}
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #B42318; }

.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-fineprint { margin: 14px 0 0; font-size: .9rem; color: var(--text-muted); text-align: center; }
.form-status { margin: 12px 0 0; font-weight: 600; text-align: center; }
.form-status:empty { display: none; }
.form-status.is-error { color: #B42318; }

.form-success { text-align: center; padding: 24px 8px; }
.form-success:focus { outline: none; }
.form-success p { color: var(--text-muted); margin: 0; }
.success-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--green-600);
  color: var(--white);
}
.success-icon svg { width: 34px; height: 34px; stroke-width: 2.6; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 48px 0 40px;
  background: var(--navy-900);
  color: rgba(255, 255, 255, .8);
}
.footer-inner {
  display: grid;
  gap: 20px;
  justify-items: center;
  text-align: center;
}
.footer-logo { height: 40px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; }
.footer-links a { color: var(--white); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--green-400); text-decoration: underline; }
.copyright { margin: 0; font-size: .92rem; }
@media (min-width: 900px) {
  .footer-inner { grid-template-columns: auto 1fr auto; justify-items: stretch; text-align: left; }
  .footer-links { justify-content: center; }
}

/* ---------- Privacy / simple content pages ---------- */
.page { padding: 56px 0 80px; }
.prose { max-width: 720px; }
.prose h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); }
.prose h2 { font-size: 1.4rem; margin-top: 2em; }
.prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.draft-banner {
  margin-bottom: 32px;
  padding: 16px 20px;
  border-radius: var(--radius);
  border: 2px dashed #C58A00;
  background: #FFF8E6;
  color: #5C4100;
  font-weight: 600;
}
.muted { color: var(--text-muted); }
