/* ================================================================
   Reachframe — style.css  v2.0
   Design system: bright white/off-white theme
   Clean, premium, conversion-focused service business
================================================================ */

/* ── DESIGN TOKENS ───────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg:          #ffffff;
  --bg-soft:     #f8f9fb;
  --bg-mid:      #f2f4f8;
  --bg-card:     #ffffff;

  /* Borders */
  --border:      #e4e8ef;
  --border-mid:  #d0d6e0;

  /* Text */
  --text:        #1a1f2e;
  --text-body:   #3d4557;
  --text-muted:  #6b7490;
  --text-light:  #8e96a8;

  /* Accent — one strong blue-green */
  --accent:      #1a56db;
  --accent-dark: #1240a8;
  --accent-soft: #eef3fd;
  --accent-mid:  #c7d9f9;

  /* Semantic */
  --success:     #059669;
  --warning:     #d97706;

  /* Radius */
  --r-sm:   6px;
  --r:      10px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-full: 999px;

  /* Shadows */
  --shadow-xs:  0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-sm:  0 2px 8px rgba(0,0,0,.07), 0 1px 3px rgba(0,0,0,.04);
  --shadow-md:  0 4px 20px rgba(0,0,0,.09), 0 2px 6px rgba(0,0,0,.05);
  --shadow-lg:  0 8px 40px rgba(0,0,0,.10), 0 3px 10px rgba(0,0,0,.06);

  /* Typography */
  --font-display: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, sans-serif;
  --font:         "Inter", system-ui, -apple-system, sans-serif;

  /* Layout */
  --max-w:     1160px;
  --max-w-sm:  780px;
  --header-h:  68px;
}

/* ── RESET ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img, video, svg { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button, input, textarea, select {
  font: inherit;
  border: none;
  outline: none;
  background: none;
  color: inherit;
}
button { cursor: pointer; }

/* ── LAYOUT ──────────────────────────────────────────────────── */
.rf-container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.rf-container-sm {
  width: 100%;
  max-width: var(--max-w-sm);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.rf-section        { padding: 5.5rem 0; }
.rf-section-sm     { padding: 3.5rem 0; }
.rf-section-alt    { background: var(--bg-soft); }
.rf-section-mid    { background: var(--bg-mid); }
.rf-section-accent { background: var(--accent); color: #fff; }

/* ── TYPOGRAPHY ──────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--text);
}
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.3rem); }
h4 { font-size: 1rem; font-weight: 600; }
p  { color: var(--text-body); line-height: 1.7; }

.rf-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .9rem;
}
.rf-eyebrow::before {
  content: '';
  display: block;
  width: 18px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.rf-lead {
  font-size: clamp(1.05rem, 1.6vw, 1.175rem);
  color: var(--text-body);
  max-width: 44rem;
  line-height: 1.72;
}

.rf-section-header { max-width: 52rem; }
.rf-section-header--centered { text-align: center; margin: 0 auto; }
.rf-section-header h2 { margin-bottom: .75rem; }
.rf-section-header p  { max-width: 44rem; }

/* ── HEADER / NAV ────────────────────────────────────────────── */
.rf-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}
.rf-header .rf-container {
  display: flex;
  align-items: center;
  width: 100%;
}
.rf-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: var(--header-h);
}
.rf-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  /* Fallback text style when image fails */
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
}
.rf-logo span { color: var(--accent); }
.rf-logo__img {
  display: block;
  height: 36px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}
.rf-logo__img--footer {
  height: 32px;
  /* Invert if logo is dark and footer background is dark */
  /* filter: brightness(0) invert(1); */
}
.rf-nav {
  display: flex;
  align-items: center;
  gap: .15rem;
}
.rf-nav a {
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-body);
  padding: .45rem .75rem;
  border-radius: var(--r);
  transition: color .15s, background .15s;
  text-decoration: none;
}
.rf-nav a:hover { color: var(--accent); background: var(--accent-soft); }
.rf-nav a.active { color: var(--accent); }

.rf-nav__dropdown {
  position: relative;
}
.rf-nav__dropdown-toggle {
  display: flex;
  align-items: center;
  gap: .3rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-body);
  padding: .45rem .75rem;
  border-radius: var(--r);
  cursor: pointer;
  transition: color .15s, background .15s;
  background: none;
  border: none;
}
.rf-nav__dropdown-toggle:hover { color: var(--accent); background: var(--accent-soft); }
.rf-nav__dropdown-toggle svg { width: 14px; height: 14px; transition: transform .2s; }
.rf-nav__dropdown:hover .rf-nav__dropdown-toggle svg { transform: rotate(180deg); }

.rf-nav__dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + .5rem);
  left: 0;
  min-width: 220px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: .5rem;
  box-shadow: var(--shadow-lg);
  z-index: 200;
}
.rf-nav__dropdown:hover .rf-nav__dropdown-menu { display: block; }
.rf-nav__dropdown-menu a {
  display: block;
  padding: .55rem .9rem;
  border-radius: var(--r);
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-body);
  text-decoration: none;
  transition: color .15s, background .15s;
}
.rf-nav__dropdown-menu a:hover { color: var(--accent); background: var(--accent-soft); }

.rf-header__cta {
  display: flex;
  align-items: center;
  gap: .75rem;
}

/* Mobile nav toggle */
.rf-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: .4rem;
  border-radius: var(--r-sm);
  cursor: pointer;
  background: none;
  border: none;
}
.rf-nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .7rem 1.4rem;
  border-radius: var(--r);
  font-size: .9rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: all .18s ease;
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--accent);
}
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(26,86,219,.3);
}
.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border-mid);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
  text-decoration: none;
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 2px solid transparent;
  padding: .7rem .5rem;
}
.btn-ghost:hover { text-decoration: underline; }
.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.5);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.15);
  border-color: #fff;
  text-decoration: none;
}
.btn-white {
  background: #fff;
  color: var(--accent);
  border: 2px solid #fff;
}
.btn-white:hover {
  background: #f0f4ff;
  text-decoration: none;
  transform: translateY(-1px);
}
.btn-lg {
  padding: .875rem 1.75rem;
  font-size: 1rem;
}
.btn-sm {
  padding: .5rem 1rem;
  font-size: .82rem;
}

/* ── HERO ────────────────────────────────────────────────────── */
.rf-hero {
  padding: 5rem 0 5.5rem;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.rf-hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26,86,219,.06) 0%, transparent 70%);
  pointer-events: none;
}
.rf-hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.rf-hero__content { max-width: 580px; }
.rf-hero__headline { margin-bottom: 1.25rem; }
.rf-hero__lead { margin-bottom: 2rem; }
.rf-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .875rem;
  margin-bottom: 2.5rem;
}
.rf-hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
}
.rf-hero__trust-item {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .82rem;
  font-weight: 500;
  color: var(--text-muted);
}
.rf-hero__trust-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--success);
}

.rf-hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.rf-hero__card-stack {
  position: relative;
  width: 100%;
  max-width: 460px;
}

/* Hero stats card */
.rf-stats-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}
.rf-stats-card__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.rf-stat-item { text-align: center; }
.rf-stat-item__value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: .25rem;
}
.rf-stat-item__label {
  font-size: .8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Floating badge on hero */
.rf-hero__badge {
  position: absolute;
  bottom: -16px;
  left: -20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: .75rem 1rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: .65rem;
}
.rf-hero__badge-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ecfdf5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.rf-hero__badge-icon svg { width: 16px; height: 16px; color: var(--success); }
.rf-hero__badge-text { font-size: .8rem; }
.rf-hero__badge-text strong { display: block; color: var(--text); font-weight: 700; font-size: .85rem; }

/* ── TRUST BAR ───────────────────────────────────────────────── */
.rf-trust-bar {
  padding: 1.75rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}
.rf-trust-bar__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  align-items: center;
  justify-content: center;
}
.rf-trust-bar__item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: .01em;
}
.rf-trust-bar__item svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
}

/* ── CARDS ───────────────────────────────────────────────────── */
.rf-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  transition: box-shadow .2s, border-color .2s, transform .2s;
}
.rf-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-mid);
  transform: translateY(-2px);
}
.rf-card--featured {
  border-color: var(--accent);
  position: relative;
}
.rf-card--featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .25rem .75rem;
  border-radius: var(--r-full);
}

.rf-card__icon {
  width: 46px;
  height: 46px;
  border-radius: var(--r);
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  flex-shrink: 0;
}
.rf-card__icon svg { width: 22px; height: 22px; color: var(--accent); }

/* Service cards grid */
.rf-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

/* Process / how-it-works */
.rf-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}
.rf-step {
  position: relative;
  padding-top: 1rem;
  counter-increment: step;
}
.rf-step__num {
  font-family: var(--font-display);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--accent);
  margin-bottom: .6rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.rf-step__num::before {
  content: counter(step, decimal-leading-zero);
}
.rf-step__num::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Testimonials */
.rf-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.rf-testimonial {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.75rem;
}
.rf-testimonial__stars {
  display: flex;
  gap: .2rem;
  margin-bottom: .875rem;
}
.rf-testimonial__stars svg {
  width: 16px;
  height: 16px;
  color: #f59e0b;
}
.rf-testimonial__body {
  font-size: .95rem;
  line-height: 1.65;
  color: var(--text-body);
  margin-bottom: 1.25rem;
  font-style: italic;
}
.rf-testimonial__author {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.rf-testimonial__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .9rem;
  color: var(--accent);
  flex-shrink: 0;
}
.rf-testimonial__name {
  font-size: .875rem;
  font-weight: 700;
  color: var(--text);
}
.rf-testimonial__role {
  font-size: .78rem;
  color: var(--text-muted);
}

/* ── PRICING ─────────────────────────────────────────────────── */
.rf-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}
.rf-pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2.25rem;
}
.rf-pricing-card--featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(26,86,219,.07);
  position: relative;
}
.rf-pricing-card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .28rem .8rem;
  border-radius: var(--r-full);
  white-space: nowrap;
}
.rf-pricing-card__name {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .5rem;
}
.rf-pricing-card__price {
  display: flex;
  align-items: flex-end;
  gap: .3rem;
  margin-bottom: .4rem;
}
.rf-pricing-card__amount {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.04em;
  line-height: 1;
}
.rf-pricing-card__currency {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-muted);
  align-self: flex-start;
  margin-top: .35rem;
}
.rf-pricing-card__period {
  font-size: .875rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.rf-pricing-card__desc {
  font-size: .9rem;
  color: var(--text-body);
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.rf-pricing-card__features {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  margin-bottom: 1.75rem;
}
.rf-pricing-card__feature {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .875rem;
  color: var(--text-body);
}
.rf-pricing-card__feature svg {
  width: 16px;
  height: 16px;
  color: var(--success);
  flex-shrink: 0;
  margin-top: .15rem;
}

/* ── FAQ ─────────────────────────────────────────────────────── */
.rf-faq {
  max-width: 720px;
  margin: 0 auto;
}
.rf-faq__item {
  border-bottom: 1px solid var(--border);
}
.rf-faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.2rem 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: .975rem;
  font-weight: 600;
  color: var(--text);
  transition: color .15s;
}
.rf-faq__question:hover { color: var(--accent); }
.rf-faq__icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .15s, transform .25s;
}
.rf-faq__icon svg { width: 12px; height: 12px; color: var(--text-muted); }
.rf-faq__item.open .rf-faq__icon { background: var(--accent-soft); transform: rotate(45deg); }
.rf-faq__item.open .rf-faq__icon svg { color: var(--accent); }
.rf-faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  font-size: .95rem;
  color: var(--text-body);
  line-height: 1.7;
}
.rf-faq__answer-inner { padding-bottom: 1.2rem; }
.rf-faq__item.open .rf-faq__answer { max-height: 400px; }

/* ── COMPARISON TABLE ────────────────────────────────────────── */
.rf-compare {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.rf-compare table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}
.rf-compare th, .rf-compare td {
  padding: .9rem 1.25rem;
  text-align: left;
  font-size: .875rem;
  border-bottom: 1px solid var(--border);
}
.rf-compare th {
  background: var(--bg-soft);
  font-weight: 700;
  color: var(--text);
  font-size: .8rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.rf-compare td { color: var(--text-body); }
.rf-compare td:first-child { font-weight: 600; color: var(--text); }
.rf-compare tr:last-child td, .rf-compare tr:last-child th { border-bottom: none; }
.rf-compare .yes { color: var(--success); font-weight: 600; }
.rf-compare .no  { color: var(--text-light); }

/* ── NICHE / INDUSTRY PILLS ──────────────────────────────────── */
.rf-niches-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}
.rf-niche-pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .55rem 1rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-body);
  text-decoration: none;
  transition: all .15s;
}
.rf-niche-pill:hover {
  background: var(--accent-soft);
  border-color: var(--accent-mid);
  color: var(--accent);
  text-decoration: none;
  transform: translateY(-1px);
}
.rf-niche-pill svg { width: 16px; height: 16px; }

/* ── FORM ────────────────────────────────────────────────────── */
.rf-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.rf-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.rf-form-group {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.rf-form-group label {
  font-size: .825rem;
  font-weight: 600;
  color: var(--text);
}
.rf-form-group input,
.rf-form-group select,
.rf-form-group textarea {
  padding: .75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  background: var(--bg);
  color: var(--text);
  font-size: .925rem;
  transition: border-color .15s, box-shadow .15s;
}
.rf-form-group input:focus,
.rf-form-group select:focus,
.rf-form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26,86,219,.1);
  outline: none;
}
.rf-form-group input::placeholder,
.rf-form-group textarea::placeholder { color: var(--text-light); }
.rf-form-group textarea { resize: vertical; min-height: 120px; }
.rf-form-group select { appearance: none; cursor: pointer; }
.rf-consent {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.rf-consent input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--border-mid);
  border-radius: 3px;
  margin-top: .1rem;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: var(--accent);
}
.rf-consent a { color: var(--accent); text-decoration: underline; }
.rf-form-success {
  display: none;
  text-align: center;
  padding: 2.5rem 2rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--r-lg);
}
.rf-form-success svg { width: 40px; height: 40px; color: var(--success); margin: 0 auto .875rem; }
.rf-form-success h3 { color: var(--text); margin-bottom: .5rem; }
.rf-form-success p { color: var(--text-body); font-size: .925rem; }


/* ── CTA BAND ─────────────────────────────────────────────────── */
.rf-cta-band {
  background: var(--accent);
  color: #fff;
  padding: 4.5rem 0;
  text-align: center;
}
.rf-cta-band h2 { color: #fff; margin-bottom: .75rem; }
.rf-cta-band p { color: rgba(255,255,255,.85); max-width: 44rem; margin: 0 auto 2rem; }
.rf-cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .875rem;
  justify-content: center;
}

/* ── FOOTER ──────────────────────────────────────────────────── */
.rf-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2.5rem;
}
.rf-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.rf-footer__brand p {
  font-size: .875rem;
  color: var(--text-muted);
  max-width: 28rem;
  margin-top: .75rem;
  line-height: 1.65;
}
.rf-footer__col h4 {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text);
  margin-bottom: .875rem;
}
.rf-footer__col ul {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.rf-footer__col ul a {
  font-size: .875rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color .15s;
}
.rf-footer__col ul a:hover { color: var(--accent); }
.rf-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: .8rem;
  color: var(--text-light);
}
.rf-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.rf-footer__legal a {
  color: var(--text-light);
  text-decoration: none;
  font-size: .8rem;
}
.rf-footer__legal a:hover { color: var(--accent); }

/* ── PAGE HEADER (inner pages) ───────────────────────────────── */
.rf-page-header {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 0;
}
.rf-page-header .rf-eyebrow { margin-bottom: .75rem; }
.rf-page-header h1 { margin-bottom: .875rem; }
.rf-page-header p   { max-width: 52rem; }

/* ── BREADCRUMB ──────────────────────────────────────────────── */
.rf-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  align-items: center;
  font-size: .8rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.rf-breadcrumb a { color: var(--text-muted); text-decoration: none; }
.rf-breadcrumb a:hover { color: var(--accent); }
.rf-breadcrumb__sep { color: var(--text-light); }

/* ── TWO COLUMN LAYOUT ───────────────────────────────────────── */
.rf-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 4rem;
  align-items: center;
}
.rf-two-col--wide { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.rf-two-col--reverse > *:first-child { order: 2; }
.rf-two-col--reverse > *:last-child  { order: 1; }

/* ── CHECKLIST ───────────────────────────────────────────────── */
.rf-checklist {
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.rf-checklist li {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  font-size: .95rem;
  color: var(--text-body);
}
.rf-checklist li::before {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-soft);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 8l3.5 3.5L13 5' stroke='%231a56db' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 14px;
  background-position: center;
  background-repeat: no-repeat;
  flex-shrink: 0;
  margin-top: .15rem;
}

/* ── RESULT / CASE STUDY CARD ────────────────────────────────── */
.rf-results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.rf-result-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  overflow: hidden;
}
.rf-result-card__niche {
  display: inline-flex;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: .25rem .65rem;
  border-radius: var(--r-full);
  margin-bottom: 1rem;
}
.rf-result-card__stats {
  display: flex;
  gap: 1.5rem;
  margin: 1rem 0;
}
.rf-result-stat__value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1;
}
.rf-result-stat__label { font-size: .75rem; color: var(--text-muted); font-weight: 500; }

/* ── BLOG CARD ───────────────────────────────────────────────── */
.rf-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.rf-blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none;
  transition: box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
}
.rf-blog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  text-decoration: none;
}
.rf-blog-card__img {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.rf-blog-card__img svg { width: 40px; height: 40px; color: var(--border); }
.rf-blog-card__body { padding: 1.25rem 1.5rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.rf-blog-card__cat {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .5rem;
}
.rf-blog-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: .6rem;
  flex: 1;
}
.rf-blog-card__meta {
  font-size: .78rem;
  color: var(--text-muted);
}

/* ── INLINE CALLOUT BOX ──────────────────────────────────────── */
.rf-callout {
  background: var(--accent-soft);
  border: 1px solid var(--accent-mid);
  border-left: 4px solid var(--accent);
  border-radius: var(--r);
  padding: 1.25rem 1.5rem;
  font-size: .925rem;
  color: var(--text-body);
}
.rf-callout strong { color: var(--accent); }

/* ── ICON FEATURE LIST ───────────────────────────────────────── */
.rf-features-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.rf-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.rf-feature-item__icon {
  width: 42px;
  height: 42px;
  border-radius: var(--r);
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.rf-feature-item__icon svg { width: 20px; height: 20px; color: var(--accent); }
.rf-feature-item h4 { margin-bottom: .25rem; }
.rf-feature-item p { font-size: .875rem; }

/* ── LEGAL PAGES ─────────────────────────────────────────────── */
.rf-legal-content {
  max-width: 760px;
  margin: 0 auto;
}
.rf-legal-content h2 {
  font-size: 1.35rem;
  margin-top: 2.5rem;
  margin-bottom: .75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.rf-legal-content h2:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.rf-legal-content h3 { font-size: 1.05rem; margin-top: 1.5rem; margin-bottom: .5rem; }
.rf-legal-content p  { margin-bottom: 1rem; font-size: .95rem; }
.rf-legal-content ul, .rf-legal-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  list-style: disc;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.rf-legal-content ol { list-style: decimal; }
.rf-legal-content li { font-size: .95rem; color: var(--text-body); }
.rf-legal-content a { color: var(--accent); text-decoration: underline; }
.rf-legal-content strong { color: var(--text); }
.rf-placeholder {
  background: #fffbeb;
  border: 1px dashed #d97706;
  border-radius: 4px;
  padding: .15rem .4rem;
  font-size: .85em;
  color: #92400e;
  font-weight: 600;
}
.rf-review-note {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-left: 4px solid #ef4444;
  border-radius: var(--r);
  padding: .875rem 1rem;
  font-size: .85rem;
  color: #991b1b;
  margin-bottom: 1.5rem;
}

/* ── STICKY MOBILE CTA ───────────────────────────────────────── */
.rf-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: .875rem 1.25rem;
  box-shadow: 0 -4px 20px rgba(0,0,0,.08);
}
.rf-sticky-cta a {
  display: block;
  width: 100%;
  text-align: center;
}

/* ── BADGE / TAGS ────────────────────────────────────────────── */
.rf-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .25rem .65rem;
  border-radius: var(--r-full);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.rf-badge--blue   { background: var(--accent-soft); color: var(--accent); }
.rf-badge--green  { background: #ecfdf5; color: var(--success); }
.rf-badge--orange { background: #fff7ed; color: var(--warning); }

/* ── MOBILE NAV OVERLAY ──────────────────────────────────────── */
.rf-mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;        /* above sticky header (z-index: 100) so X button is always reachable */
  background: var(--bg);
  padding: 1.5rem;
  overflow-y: auto;
  flex-direction: column;
}
.rf-mobile-nav.open { display: flex; }
.rf-mobile-nav__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.rf-mobile-nav__close {
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
  color: var(--text);
}
.rf-mobile-nav__links {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  flex: 1;
}
.rf-mobile-nav__links a {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  padding: .875rem 1rem;
  border-radius: var(--r);
  text-decoration: none;
  display: block;
  transition: background .15s, color .15s;
}
.rf-mobile-nav__links a:hover { background: var(--bg-soft); color: var(--accent); }
.rf-mobile-nav__cta {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}
.rf-mobile-nav__cta .btn { text-align: center; justify-content: center; width: 100%; }

/* ── UTILITY ─────────────────────────────────────────────────── */
.text-center  { text-align: center; }
.text-accent  { color: var(--accent); }
.mt-1  { margin-top: .5rem; }
.mt-2  { margin-top: 1rem; }
.mt-3  { margin-top: 1.5rem; }
.mt-4  { margin-top: 2rem; }
.mb-1  { margin-bottom: .5rem; }
.mb-2  { margin-bottom: 1rem; }
.mb-3  { margin-bottom: 1.5rem; }
.mb-4  { margin-bottom: 2rem; }
.gap-sm { gap: .75rem; }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .rf-hero__inner { grid-template-columns: 1fr; gap: 3rem; }
  .rf-hero__visual { display: none; }
  .rf-services-grid { grid-template-columns: 1fr 1fr; }
  .rf-steps { grid-template-columns: 1fr 1fr; }
  .rf-testimonials-grid { grid-template-columns: 1fr 1fr; }
  .rf-pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .rf-results-grid { grid-template-columns: 1fr 1fr; }
  .rf-blog-grid { grid-template-columns: 1fr 1fr; }
  .rf-two-col { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .rf-two-col--reverse > *:first-child { order: 0; }
  .rf-two-col--reverse > *:last-child  { order: 0; }
  .rf-footer__grid { grid-template-columns: 1fr 1fr; }
  .rf-features-list { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  :root { --header-h: 60px; }
  .rf-nav, .rf-header__cta { display: none; }
  .rf-nav-toggle { display: flex; }
  .rf-section { padding: 3.5rem 0; }
  .rf-section-sm { padding: 2.5rem 0; }
  .rf-hero { padding: 3rem 0 3.5rem; }
  .rf-hero__actions { flex-direction: column; }
  .rf-hero__actions .btn { justify-content: center; }
  .rf-services-grid { grid-template-columns: 1fr; }
  .rf-steps { grid-template-columns: 1fr; }
  .rf-testimonials-grid { grid-template-columns: 1fr; }
  .rf-results-grid { grid-template-columns: 1fr; }
  .rf-blog-grid { grid-template-columns: 1fr; }
  .rf-form-row { grid-template-columns: 1fr; }
  .rf-footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .rf-footer__bottom { flex-direction: column; align-items: flex-start; }
  .rf-sticky-cta { display: block; }
  .rf-cta-band__actions { flex-direction: column; align-items: center; }
  .rf-page-header { padding: 2.5rem 0; }
}
@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.65rem; }
  .rf-pricing-grid { max-width: 100%; }
  .rf-trust-bar__inner { gap: 1rem 1.5rem; }
}

/* ── BLOG ARTICLE LAYOUT ─────────────────────────────────────── */
.rf-article {
  max-width: 740px;
  margin: 0 auto;
}

/* Article header */
.rf-article header {
  margin-bottom: 2rem;
}
.rf-article .eyebrow {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .75rem;
}
.rf-article h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.rf-article .article__dek {
  font-size: 1.125rem;
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

/* Jump navigation */
.jump-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding: 1rem 1.25rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--r);
  margin-bottom: 1.5rem;
}
.jump-nav a {
  font-size: .8rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}
.jump-nav a:hover { text-decoration: underline; }

/* Post note box */
.rf-post-note {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: .875rem 1.125rem;
  margin-bottom: 2rem;
  font-size: .875rem;
}
.rf-post-note p { margin: 0; color: var(--text-body); }
.rf-post-note a { color: var(--accent); font-weight: 600; }

/* Hero figure */
.article-hero {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  margin: 0 0 2.5rem;
  background: var(--bg-mid);
}
.article-hero img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.article-hero figcaption {
  font-size: .78rem;
  color: var(--text-muted);
  padding: .5rem .75rem;
  text-align: center;
}

/* Article body typography */
.rf-article section {
  margin-bottom: 2.5rem;
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
}
.rf-article h2 {
  font-size: clamp(1.3rem, 3vw, 1.65rem);
  font-weight: 700;
  margin: 2rem 0 .875rem;
  padding-top: .5rem;
  border-top: 2px solid var(--border);
  color: var(--text);
}
.rf-article h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 1.5rem 0 .6rem;
  color: var(--text);
}
.rf-article p {
  margin-bottom: 1.1rem;
  color: var(--text-body);
  line-height: 1.75;
}
.rf-article ul,
.rf-article ol {
  padding-left: 1.4rem;
  margin-bottom: 1.25rem;
}
.rf-article li {
  margin-bottom: .5rem;
  color: var(--text-body);
  line-height: 1.65;
}
.rf-article strong { color: var(--text); }
.rf-article a { color: var(--accent); font-weight: 500; }
.rf-article a:hover { text-decoration: underline; }

/* Article table */
.rf-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: .9rem;
}
.rf-article th {
  background: var(--bg-soft);
  padding: .65rem .875rem;
  text-align: left;
  font-weight: 700;
  border-bottom: 2px solid var(--border);
}
.rf-article td {
  padding: .6rem .875rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.rf-article tr:last-child td { border-bottom: none; }

/* FAQ section inside article */
.rf-article .faq .rf-faq {
  margin-top: 1rem;
}

/* In-article post CTA */
.rf-post-cta {
  background: var(--accent);
  border-radius: var(--r-lg);
  padding: 2rem 2rem 2rem;
  color: #fff;
  text-align: center;
  margin: 3rem 0 2rem;
}
.rf-post-cta h2 {
  color: #fff;
  border-top: none;
  padding-top: 0;
  margin-top: 0;
  font-size: 1.4rem;
}
.rf-post-cta p { color: rgba(255,255,255,.9); margin-bottom: 1.5rem; }
.rf-post-cta__btns {
  display: flex;
  flex-wrap: wrap;
  gap: .875rem;
  justify-content: center;
}
.rf-post-cta .btn-primary {
  background: #fff;
  color: var(--accent);
  border-color: #fff;
}
.rf-post-cta .btn-primary:hover {
  background: var(--accent-soft);
  color: var(--accent-dark);
}
.rf-post-cta .btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.55);
}
.rf-post-cta .btn-secondary:hover {
  border-color: #fff;
  background: rgba(255,255,255,.1);
}

/* Back to top */
.rf-back-top {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  margin-top: 1.5rem;
}
.rf-back-top:hover { color: var(--accent); }

/* Mobile article tweaks */
@media (max-width: 768px) {
  .rf-article h2 { font-size: 1.3rem; margin-top: 1.75rem; }
  .rf-article h3 { font-size: 1rem; }
  .rf-article .article__dek { font-size: 1rem; }
  .article-hero { border-radius: var(--r); }
  .rf-post-cta { padding: 1.5rem 1.25rem; }
  .rf-post-cta h2 { font-size: 1.2rem; }
  .rf-post-cta__btns { flex-direction: column; }
  .rf-post-cta__btns .btn { width: 100%; justify-content: center; }
  .jump-nav { gap: .4rem; }
  /* Make tables horizontally scrollable on mobile */
  .rf-article table { display: block; overflow-x: auto; }
}

/* ── ACCESSIBILITY ───────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}
.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;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
