@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  --ra-blue:        #1A56FF;
  --ra-blue-mid:    #0E3BCC;
  --ra-blue-dark:   #0824A0;
  --ra-blue-soft:   #E8EEFF;
  --ra-orange:      #FF6B35;
  --ra-orange-mid:  #E5552A;
  --ra-ink:         #0A0F1E;
  --ra-ink2:        #3B4566;
  --ra-ink3:        #7A85A3;
  --ra-sky:         #EEF1F8;
  --ra-mist:        #F7F9FD;
  --ra-white:       #FFFFFF;
  --ra-border:      #D4D8E8;
  --ra-border-soft: #E8EBF3;

  --font-brand: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 2px rgba(10, 15, 30, 0.04), 0 2px 6px rgba(10, 15, 30, 0.04);
  --shadow-md: 0 4px 12px rgba(10, 15, 30, 0.06), 0 12px 32px rgba(10, 15, 30, 0.06);
  --shadow-lg: 0 12px 32px rgba(10, 15, 30, 0.10), 0 32px 64px rgba(10, 15, 30, 0.08);

  --container: 1200px;
}

/* ── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--font-brand);
  background: var(--ra-white);
  color: var(--ra-ink);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: 'cv11', 'ss01';
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--ra-blue); text-decoration: none; }
a:hover { color: var(--ra-blue-mid); }
button { font-family: inherit; }

/* ── Layout ─────────────────────────────────────────────────────────────── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-tight { padding: 48px 0; }
@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .section-sm { padding: 48px 0; }
}

/* ── Typography ─────────────────────────────────────────────────────────── */
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ra-blue);
  margin-bottom: 16px;
}
.eyebrow-orange { color: var(--ra-orange); }

.h-display {
  font-size: clamp(40px, 5.5vw, 68px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ra-ink);
}
.h-display .accent { color: var(--ra-blue); }
.h-display .accent-orange { color: var(--ra-orange); }

.h-section {
  font-size: clamp(30px, 3.5vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ra-ink);
}

.h-card {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ra-ink);
  margin-bottom: 8px;
}

.lede {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55;
  color: var(--ra-ink2);
  max-width: 640px;
}

.muted { color: var(--ra-ink2); }
.dim   { color: var(--ra-ink3); }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-brand);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.08s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-sm { padding: 9px 16px; font-size: 14px; }

.btn-primary { background: var(--ra-blue); color: var(--ra-white); }
.btn-primary:hover { background: var(--ra-blue-mid); color: var(--ra-white); }
.btn-primary:active { transform: translateY(1px); }

.btn-orange { background: var(--ra-orange); color: var(--ra-white); }
.btn-orange:hover { background: var(--ra-orange-mid); color: var(--ra-white); }

.btn-ghost { background: transparent; color: var(--ra-ink); border: 1px solid var(--ra-border); }
.btn-ghost:hover { background: var(--ra-sky); color: var(--ra-ink); }

.btn-ghost-light { background: rgba(255,255,255,0.10); color: var(--ra-white); border: 1px solid rgba(255,255,255,0.25); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.18); color: var(--ra-white); }

.btn-arrow::after { content: '→'; transition: transform 0.15s ease; }
.btn-arrow:hover::after { transform: translateX(3px); }

/* ── Nav ────────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--ra-border-soft);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.nav-brand { display: flex; align-items: center; gap: 8px; }
.nav-brand img { height: 36px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  color: var(--ra-ink2);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.15s ease;
}
.nav-links a:hover, .nav-links a.is-active { color: var(--ra-ink); }
.nav-cta { display: flex; align-items: center; gap: 12px; }

@media (max-width: 880px) {
  .nav-links { display: none; }
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 56px 0 64px;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(26, 86, 255, 0.10), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, rgba(255, 107, 53, 0.06), transparent 55%),
    var(--ra-white);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-copy { max-width: 580px; }
.hero-copy h1 { margin-bottom: 24px; }
.hero-copy .lede { margin-bottom: 32px; }
.hero-cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.hero-trust {
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px;
  font-size: 13px; color: var(--ra-ink3);
}
.hero-trust strong { color: var(--ra-ink); font-weight: 600; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding: 40px 0 48px; }
}

/* ── Hero visual: flippable postcard ────────────────────────────────────── */
.hero-visual {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1600px;
}
.flip-card {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 750 / 970; /* matches the source image */
  cursor: pointer;
  outline: none;
}
.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.9s cubic-bezier(0.45, 0.05, 0.25, 1);
  will-change: transform;
}
/* Intro: flip to back, briefly hold, flip to front. Runs once on page load. */
@keyframes hero-flip-intro {
  0%   { transform: rotateY(0deg); }
  35%  { transform: rotateY(180deg); }
  65%  { transform: rotateY(180deg); }
  100% { transform: rotateY(360deg); }
}
.flip-card.is-intro .flip-card-inner {
  animation: hero-flip-intro 3.2s 0.4s cubic-bezier(0.45, 0.05, 0.25, 1) 1 both;
}
/* Hover / focus / touch flip — only after the intro releases the element. */
.flip-card.is-ready:hover .flip-card-inner,
.flip-card.is-ready:focus .flip-card-inner,
.flip-card.is-ready.is-flipped .flip-card-inner {
  transform: rotateY(180deg);
}
.flip-card-face {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--ra-white);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.flip-card-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.flip-card-back { transform: rotateY(180deg); }

@media (max-width: 480px) {
  .flip-card { max-width: 280px; }
  .hero-visual { min-height: 420px; }
}
@media (prefers-reduced-motion: reduce) {
  .flip-card.is-intro .flip-card-inner { animation: none; }
  .flip-card-inner { transition: none; }
}

/* ── Avatar nav (signed-in marketing-site nav swap) ─────────────────────── */
.nav-avatar-wrap { position: relative; }
.nav-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--ra-blue), var(--ra-blue-dark));
  color: var(--ra-white);
  font-family: var(--font-brand);
  font-size: 14px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
  overflow: hidden;
  transition: transform 0.12s ease, box-shadow 0.15s ease;
  padding: 0;
}
.nav-avatar:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(10,15,30,0.12); }
.nav-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.nav-menu {
  position: absolute;
  right: 0; top: calc(100% + 8px);
  min-width: 220px;
  background: var(--ra-white);
  border: 1px solid var(--ra-border);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 28px rgba(10,15,30,0.10);
  padding: 6px 0;
  z-index: 50;
}
.nav-menu[hidden] { display: none; }
.nav-menu-head {
  padding: 10px 14px 12px;
  border-bottom: 1px solid var(--ra-border-soft);
  margin-bottom: 4px;
}
.nav-menu-name { font-size: 13px; font-weight: 600; color: var(--ra-ink); letter-spacing: -0.005em; }
.nav-menu-email { font-size: 12px; color: var(--ra-ink3); margin-top: 2px; word-break: break-all; }
.nav-menu a {
  display: block;
  padding: 8px 14px;
  font-size: 14px; font-weight: 500;
  color: var(--ra-ink);
  text-decoration: none;
  transition: background 0.12s ease;
}
.nav-menu a:hover { background: var(--ra-mist); color: var(--ra-ink); }
.nav-menu-divider { height: 1px; background: var(--ra-border-soft); margin: 4px 0; }

/* ── Modal (demo-access gate) ───────────────────────────────────────────── */
.modal {
  position: fixed; inset: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  animation: modal-fade 0.18s ease-out;
}
.modal[hidden] { display: none; }
@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }
.modal-overlay {
  position: absolute; inset: 0;
  background: rgba(10, 15, 30, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.modal-card {
  position: relative;
  background: var(--ra-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modal-pop 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes modal-pop { from { transform: translateY(8px) scale(0.97); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-close {
  position: absolute; top: 12px; right: 16px;
  width: 32px; height: 32px;
  border: none;
  background: transparent;
  font-size: 24px; line-height: 1;
  color: var(--ra-ink3);
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease;
}
.modal-close:hover { background: var(--ra-sky); color: var(--ra-ink); }
.modal-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--ra-ink);
  letter-spacing: -0.01em;
  margin: 8px 0 8px;
}
.modal-sub {
  font-size: 14px;
  color: var(--ra-ink2);
  line-height: 1.55;
  margin-bottom: 20px;
}
.modal-card .form-row { margin-bottom: 14px; }
.modal-card .form-row label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ra-ink);
  margin-bottom: 6px;
  letter-spacing: -0.005em;
}
.modal-card .form-row label .req { color: var(--ra-orange); margin-left: 2px; }
.modal-card .form-row label .opt { color: var(--ra-ink3); font-weight: 500; margin-left: 4px; }
.modal-card .form-row input {
  width: 100%;
  padding: 10px 12px;
  font-family: var(--font-brand);
  font-size: 14px;
  color: var(--ra-ink);
  background: var(--ra-white);
  border: 1px solid var(--ra-border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.modal-card .form-row input:focus {
  border-color: var(--ra-blue);
  box-shadow: 0 0 0 3px rgba(26, 86, 255, 0.12);
}
.modal-submit { width: 100%; margin-top: 6px; }
.modal-fineprint {
  font-size: 11px;
  color: var(--ra-ink3);
  text-align: center;
  margin-top: 14px;
  line-height: 1.5;
}
.modal-fineprint a { color: var(--ra-ink2); text-decoration: underline; }
.form-status.is-error {
  display: block;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: #fef2f2; color: #991b1b; border: 1px solid #fca5a5;
  font-size: 13px;
}
@media (max-width: 540px) {
  .modal-card { padding: 28px 20px; }
  .modal-title { font-size: 20px; }
}

/* ── Map card (how-it-works step 1) ─────────────────────────────────────── */
.map-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
  background: var(--ra-sky);
}
.map-satellite {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.map-overlay {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.map-pill {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  background: var(--ra-white);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  box-shadow: 0 6px 20px rgba(10,15,30,0.10);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
}
.map-pill-zip { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; color: var(--ra-blue); line-height: 1; }
.map-pill-meta { font-size: 12px; color: var(--ra-ink2); }

/* ── Qualify thumbnail grid (step 2) ────────────────────────────────────── */
.qualify-thumb {
  aspect-ratio: 1;
  background-size: cover;
  background-position: center;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}
.qualify-thumb-badge {
  position: absolute;
  top: 6px; left: 6px;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.02em;
}
.qualify-thumb-badge.is-bad { background: #FEE2E2; color: #991B1B; }
.qualify-thumb-badge.is-ok  { background: #FEF3C7; color: #92400E; }

/* ── Mailer stack (step 4) ──────────────────────────────────────────────── */
.mailer-stack { position: relative; height: 360px; }
.mailer-stack img {
  position: absolute;
  left: 50%; top: 50%;
  width: 200px;
  aspect-ratio: 4.25 / 5.5;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  background: var(--ra-white);
}
.mailer-stack img:nth-child(1) { transform: translate(-95%, -50%) rotate(-9deg); z-index: 1; }
.mailer-stack img:nth-child(2) { transform: translate(-50%, -50%) rotate(2deg);  z-index: 3; }
.mailer-stack img:nth-child(3) { transform: translate(-5%,  -50%) rotate(11deg); z-index: 2; }

/* ── Hero visual: postcard mock (legacy) ────────────────────────────────── */
.postcard {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  aspect-ratio: 4.25 / 5.5;
  background: var(--ra-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: rotate(-3deg);
}
.postcard-2 {
  position: absolute;
  top: 24px; right: -24px;
  width: 70%;
  max-width: 320px;
  aspect-ratio: 4.25 / 5.5;
  background: var(--ra-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transform: rotate(6deg);
  z-index: -1;
  background-image: linear-gradient(135deg, var(--ra-blue-soft) 0%, var(--ra-sky) 100%);
}
.postcard-image {
  height: 50%;
  background: linear-gradient(135deg, #2d8a3e 0%, #5fb56b 50%, #82c982 100%);
  position: relative;
}
.postcard-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(255,255,255,0.15), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(0,0,0,0.10), transparent 50%);
}
.postcard-body { padding: 18px; }
.postcard-eyebrow { font-size: 9px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ra-blue); margin-bottom: 6px; }
.postcard-headline { font-size: 14px; font-weight: 700; color: var(--ra-ink); line-height: 1.25; margin-bottom: 8px; letter-spacing: -0.01em; }
.postcard-line { height: 6px; border-radius: 3px; background: var(--ra-sky); margin-bottom: 4px; }
.postcard-line.short { width: 65%; }
.postcard-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.postcard-qr { width: 36px; height: 36px; background: var(--ra-ink); border-radius: 4px; }
.postcard-stamp { font-size: 10px; font-weight: 700; color: var(--ra-orange); }

/* ── Logo strip ─────────────────────────────────────────────────────────── */
.logo-strip {
  padding: 32px 0;
  border-top: 1px solid var(--ra-border-soft);
  border-bottom: 1px solid var(--ra-border-soft);
  background: var(--ra-mist);
}
.logo-strip-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 48px;
}
.logo-strip-label {
  font-size: 12px; font-weight: 500; color: var(--ra-ink3);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.logo-pill {
  font-size: 15px; font-weight: 600; color: var(--ra-ink2);
  letter-spacing: -0.01em;
}

/* ── Section header ─────────────────────────────────────────────────────── */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head h2 { margin-bottom: 16px; }
.section-head p { font-size: 18px; color: var(--ra-ink2); line-height: 1.55; }

/* ── How it works ───────────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step {
  position: relative;
  background: var(--ra-white);
  border: 1px solid var(--ra-border-soft);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--ra-border);
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--ra-blue-soft);
  color: var(--ra-blue);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 20px;
}
.step h3 { font-size: 19px; font-weight: 600; color: var(--ra-ink); margin-bottom: 8px; letter-spacing: -0.01em; }
.step p { font-size: 15px; color: var(--ra-ink2); line-height: 1.55; }

@media (max-width: 880px) {
  .steps { grid-template-columns: 1fr; }
}

/* ── Feature grid ───────────────────────────────────────────────────────── */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature {
  padding: 28px;
  background: var(--ra-white);
  border: 1px solid var(--ra-border-soft);
  border-radius: var(--radius-lg);
}
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--ra-blue-soft);
  color: var(--ra-blue);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  font-size: 22px;
}
.feature-icon.is-orange { background: rgba(255, 107, 53, 0.10); color: var(--ra-orange); }
.feature h3 { font-size: 17px; font-weight: 600; color: var(--ra-ink); margin-bottom: 8px; }
.feature p { font-size: 14px; color: var(--ra-ink2); line-height: 1.55; }

@media (max-width: 880px) {
  .features { grid-template-columns: 1fr; }
}

/* ── Split section ──────────────────────────────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split-reverse { grid-template-columns: 1fr 1fr; }
.split h2 { margin-bottom: 16px; }
.split p { font-size: 17px; color: var(--ra-ink2); line-height: 1.6; margin-bottom: 16px; }
.split ul { list-style: none; margin-top: 24px; }
.split ul li {
  padding: 10px 0 10px 32px;
  position: relative;
  font-size: 15px;
  color: var(--ra-ink);
  border-top: 1px solid var(--ra-border-soft);
}
.split ul li:first-child { border-top: none; }
.split ul li::before {
  content: '✓';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--ra-blue-soft);
  color: var(--ra-blue);
  font-size: 12px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
}

/* ── Before/After visual ────────────────────────────────────────────────── */
.ba-stack {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--ra-sky);
  aspect-ratio: 1 / 1;
}
.ba-pane {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end;
  padding: 16px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ra-white);
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* Default fallback if no inline background-image is set */
.ba-before { background-color: #c4a878; background-image: linear-gradient(135deg, #c4a878 0%, #9c8460 50%, #806848 100%); }
.ba-after  {
  background-color: #2d8a3e;
  background-image: linear-gradient(135deg, #2d8a3e 0%, #4cad57 50%, #6dc678 100%);
  clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
}
.ba-pane span {
  background: rgba(10, 15, 30, 0.55);
  padding: 4px 10px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}
.ba-divider {
  position: absolute; left: 50%; top: 0; bottom: 0;
  width: 2px; background: var(--ra-white);
  transform: translateX(-50%);
  pointer-events: none;
}
.ba-divider::after {
  content: '↔';
  position: absolute; top: 50%; left: 50%;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--ra-white);
  color: var(--ra-blue);
  font-size: 16px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--ra-blue);
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 8px rgba(0,0,0,0.20);
}
.ba-caption {
  text-align: center;
  font-size: 13px;
  color: var(--ra-ink3);
  margin-top: 12px;
  letter-spacing: -0.005em;
}

/* ── Stats / ROI ────────────────────────────────────────────────────────── */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  padding: 48px;
  background: var(--ra-ink);
  color: var(--ra-white);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}
.stats::before {
  content: '';
  position: absolute; top: -200px; right: -200px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(26, 86, 255, 0.30), transparent 60%);
}
.stat { position: relative; z-index: 1; }
.stat-num {
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ra-white);
  margin-bottom: 8px;
}
.stat-num .unit { font-size: 0.5em; color: var(--ra-orange); margin-left: 4px; }
.stat-label {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  line-height: 1.4;
}

@media (max-width: 880px) {
  .stats { grid-template-columns: repeat(2, 1fr); padding: 32px; }
}

/* ── Testimonial ────────────────────────────────────────────────────────── */
.testimonial {
  max-width: 880px; margin: 0 auto;
  padding: 56px;
  background: var(--ra-mist);
  border-radius: var(--radius-xl);
  border: 1px solid var(--ra-border-soft);
  text-align: center;
}
.testimonial blockquote {
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--ra-ink);
  margin-bottom: 24px;
}
.testimonial blockquote::before { content: '"'; color: var(--ra-blue); }
.testimonial blockquote::after { content: '"'; color: var(--ra-blue); }
.testimonial-author {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  font-size: 14px;
}
.testimonial-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--ra-blue), var(--ra-orange));
}
.testimonial-name { font-weight: 600; color: var(--ra-ink); }
.testimonial-role { color: var(--ra-ink3); }

/* ── Pricing ────────────────────────────────────────────────────────────── */
.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  align-items: stretch;
}
.plan {
  display: flex; flex-direction: column;
  background: var(--ra-white);
  border: 1px solid var(--ra-border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.plan.featured {
  background: var(--ra-ink);
  border-color: var(--ra-ink);
  color: var(--ra-white);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.plan.featured .plan-name,
.plan.featured .plan-price,
.plan.featured ul li { color: var(--ra-white); }
.plan.featured .plan-tagline { color: rgba(255,255,255,0.7); }
.plan.featured ul li::before { background: rgba(26,86,255,0.25); color: var(--ra-white); }

.plan-tag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--ra-orange); color: var(--ra-white);
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px;
}
.plan-name { font-size: 14px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ra-blue); margin-bottom: 16px; }
.plan-price { font-size: 48px; font-weight: 700; letter-spacing: -0.03em; color: var(--ra-ink); line-height: 1; }
.plan-price .currency { font-size: 24px; vertical-align: top; margin-right: 2px; }
.plan-price .period { font-size: 16px; font-weight: 500; color: var(--ra-ink3); margin-left: 4px; }
.plan-tagline { font-size: 14px; color: var(--ra-ink2); margin: 12px 0 28px; line-height: 1.5; }
.plan ul { list-style: none; margin-bottom: 32px; flex: 1; }
.plan ul li {
  padding: 10px 0 10px 28px;
  position: relative;
  font-size: 14px;
  color: var(--ra-ink);
  border-top: 1px solid var(--ra-border-soft);
  line-height: 1.45;
}
.plan ul li:first-child { border-top: none; }
.plan.featured ul li { border-top-color: rgba(255,255,255,0.10); }
.plan ul li::before {
  content: '✓';
  position: absolute; left: 0; top: 12px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--ra-blue-soft);
  color: var(--ra-blue);
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.plan .btn { width: 100%; }

@media (max-width: 880px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

/* ── FAQ ────────────────────────────────────────────────────────────────── */
.faq { max-width: 800px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--ra-border-soft);
  padding: 20px 0;
}
.faq-item summary {
  font-size: 17px;
  font-weight: 600;
  color: var(--ra-ink);
  cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 24px; font-weight: 300;
  color: var(--ra-ink3);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  margin-top: 12px;
  font-size: 15px;
  color: var(--ra-ink2);
  line-height: 1.6;
}

/* ── CTA banner ─────────────────────────────────────────────────────────── */
.cta-banner {
  background:
    radial-gradient(800px 400px at 80% 50%, rgba(255, 107, 53, 0.20), transparent 60%),
    linear-gradient(135deg, var(--ra-blue-dark), var(--ra-blue));
  border-radius: var(--radius-xl);
  padding: 72px;
  text-align: center;
  color: var(--ra-white);
  position: relative;
  overflow: hidden;
}
.cta-banner h2 {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ra-white);
  margin-bottom: 16px;
  line-height: 1.15;
}
.cta-banner p {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
  max-width: 520px;
  margin-left: auto; margin-right: auto;
}
.cta-banner .btn-row { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

@media (max-width: 768px) {
  .cta-banner { padding: 48px 24px; }
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.footer {
  background: var(--ra-ink);
  color: rgba(255,255,255,0.65);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.footer-brand img { height: 40px; width: auto; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 14px; line-height: 1.55; max-width: 280px; }
.footer-col h4 {
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ra-white);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  color: rgba(255,255,255,0.65);
  font-size: 14px;
  transition: color 0.15s ease;
}
.footer-col ul li a:hover { color: var(--ra-white); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px;
  font-size: 13px;
}
.footer-bottom > span {
  display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap;
}
.footer-heart {
  width: 14px; height: 14px;
  display: inline-block;
  vertical-align: -2px;
  color: var(--ra-orange);
  margin: 0 2px;
}
.footer-bottom .social { display: flex; gap: 10px; align-items: center; }
.footer-bottom .social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 8px;
  color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.05);
  transition: color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.footer-bottom .social a:hover {
  color: var(--ra-white);
  background: rgba(255,255,255,0.14);
  transform: translateY(-2px);
}
.social-icon { width: 18px; height: 18px; display: block; }

@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}

/* ── Pricing hero (page-specific) ───────────────────────────────────────── */
.page-hero {
  padding: 56px 0 24px;
  text-align: center;
  background:
    radial-gradient(800px 400px at 50% -10%, rgba(26, 86, 255, 0.10), transparent 60%);
}
.page-hero h1 { margin-bottom: 16px; }
.page-hero p { font-size: 18px; color: var(--ra-ink2); max-width: 600px; margin: 0 auto; }
@media (max-width: 768px) { .page-hero { padding: 40px 0 16px; } }
/* When .page-hero is the only thing before a .section, halve the top padding
   of that section so it doesn't double the gap. */
.page-hero + .section,
.page-hero + .section-tight,
.page-hero + .section-sm { padding-top: 48px; }
@media (max-width: 768px) {
  .page-hero + .section,
  .page-hero + .section-tight,
  .page-hero + .section-sm { padding-top: 32px; }
}

/* ── Toggle (billing period) ────────────────────────────────────────────── */
.toggle-row {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin: 32px 0 8px;
  font-size: 14px;
}
.toggle {
  position: relative;
  width: 52px; height: 28px;
  background: var(--ra-border);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.toggle::after {
  content: '';
  position: absolute; top: 3px; left: 3px;
  width: 22px; height: 22px;
  background: var(--ra-white);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: transform 0.15s ease;
}
.toggle.is-on { background: var(--ra-blue); }
.toggle.is-on::after { transform: translateX(24px); }
.toggle-save {
  font-size: 12px; font-weight: 600;
  color: var(--ra-orange);
  background: rgba(255, 107, 53, 0.10);
  padding: 4px 10px; border-radius: 999px;
}

/* ── Comparison table ───────────────────────────────────────────────────── */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--ra-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--ra-border);
}
.compare-table th, .compare-table td {
  padding: 16px 20px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid var(--ra-border-soft);
}
.compare-table th {
  font-weight: 600;
  color: var(--ra-ink);
  background: var(--ra-mist);
}
.compare-table td.center { text-align: center; }
.compare-table tr:last-child td { border-bottom: none; }
.compare-yes { color: var(--ra-blue); font-weight: 700; }
.compare-no  { color: var(--ra-ink3); }

/* ── About page ─────────────────────────────────────────────────────────── */
.prose { max-width: 720px; margin: 0 auto; font-size: 17px; line-height: 1.7; color: var(--ra-ink2); }
.prose h2 { font-size: 28px; font-weight: 700; color: var(--ra-ink); margin: 48px 0 16px; letter-spacing: -0.02em; }
.prose p { margin-bottom: 20px; }

/* ── Utility ────────────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }
