/* ====================================================================
   Rideshare landing page — page-specific styles.
   Reuses tokens from styles.css (--bg, --primary, --accent, etc.)
   ==================================================================== */

/* ───── WhatsApp brand colour (override only on .btn-wa) ───── */
.btn-wa {
  background: #25D366;
  color: #ffffff;
  border: 0;
}
.btn-wa:hover { background: #1ea855; color: #ffffff; }
.btn-wa svg { flex-shrink: 0; }

/* ───── Trust strip pills (gold outline on dark) ───── */
.rs-trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.rs-trust-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid color-mix(in oklab, var(--accent) 60%, transparent);
  border-radius: 999px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
@media (max-width: 480px) {
  .rs-trust-pill { font-size: 10px; padding: 6px 10px; letter-spacing: 0.12em; }
}

/* ───── Section background helpers (mirror existing alternation) ───── */
.rs-dark { background: var(--primary); color: #fff; }
.rs-light { background: var(--bg-2); color: var(--ink); }
.rs-white { background: var(--bg); color: var(--ink); }
.rs-section { padding: clamp(64px, 9vw, 110px) 0; }
.rs-section-tight { padding: clamp(48px, 6vw, 80px) 0; }

/* ───── Long-form two-column layout ─────
   Heading sits in left column, prose flows in right column.
   Each h2 + its following blocks form one row. */
.lp-longform { display: flex; flex-direction: column; gap: clamp(48px, 6vw, 80px); }
.lp-longform-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(0, 2.2fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.lp-longform-head .rs-h2 { margin: 0; position: sticky; top: 96px; }
.lp-longform-body > *:first-child { margin-top: 0; }
.lp-longform-body > *:last-child { margin-bottom: 0; }
@media (max-width: 900px) {
  .lp-longform-row { grid-template-columns: 1fr; gap: 16px; }
  .lp-longform-head .rs-h2 { position: static; }
}

/* ───── Hero ───── */
.rs-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(120px, 16vw, 180px) 0 clamp(80px, 10vw, 120px);
}
.rs-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 85% 20%, color-mix(in oklab, var(--accent) 18%, transparent) 0%, transparent 55%),
    radial-gradient(ellipse at 15% 80%, color-mix(in oklab, var(--accent) 8%, transparent) 0%, transparent 60%);
  pointer-events: none;
}
.rs-hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  position: relative;
}
@media (max-width: 900px) {
  .rs-hero-grid { grid-template-columns: 1fr; }
  .rs-hero-aside { display: none; } /* Desktop-only callout per brief */
}
.rs-eyebrow-pill {
  display: inline-flex;
  padding: 7px 14px;
  border: 1px solid color-mix(in oklab, var(--accent) 70%, transparent);
  border-radius: 999px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.rs-hero-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 6.4vw, 84px);
  line-height: 1.02;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: #fff;
  margin: 0 0 24px;
  text-wrap: balance;
}
.rs-hero-title em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}
.rs-hero-sub {
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.65;
  color: rgba(255,255,255,0.82);
  max-width: 56ch;
  margin: 0 0 32px;
}
.rs-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
@media (max-width: 600px) {
  .rs-hero-actions { flex-direction: column; align-items: stretch; }
  .rs-hero-actions .btn { width: 100%; justify-content: center; }
}

/* Hero aside: $55 BAS callout */
.rs-hero-aside {
  background: color-mix(in oklab, var(--primary-2) 80%, #000 20%);
  border: 1px solid color-mix(in oklab, var(--accent) 35%, transparent);
  border-radius: 16px;
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
}
.rs-hero-aside::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -30%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: color-mix(in oklab, var(--accent) 22%, transparent);
  filter: blur(60px);
}
.rs-aside-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  position: relative;
}
.rs-aside-from {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  margin-bottom: 4px;
  position: relative;
}
.rs-aside-price {
  font-family: var(--font-display);
  font-size: 88px;
  line-height: 1;
  color: #fff;
  margin-bottom: 20px;
  position: relative;
  letter-spacing: -0.02em;
}
.rs-aside-sub {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255,255,255,0.78);
  position: relative;
  margin: 0;
}

/* ───── Section heading helpers ───── */
.rs-h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.6vw, 56px);
  line-height: 1.06;
  font-weight: 400;
  letter-spacing: -0.012em;
  margin: 0 0 24px;
  text-wrap: balance;
}
.rs-h2 em { font-style: italic; color: var(--accent); font-weight: 400; }
.rs-dark .rs-h2 { color: #fff; }
.rs-light .rs-h2, .rs-white .rs-h2 { color: var(--ink); }

.rs-sub {
  font-size: clamp(17px, 1.3vw, 19px);
  line-height: 1.6;
  max-width: 64ch;
  margin: 0 0 48px;
}
.rs-dark .rs-sub { color: rgba(255,255,255,0.78); }
.rs-light .rs-sub, .rs-white .rs-sub { color: var(--ink-2); }

/* ───── Section 2: 3 cards ───── */
.rs-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) {
  .rs-cards { grid-template-columns: 1fr; }
}
.rs-card {
  background: color-mix(in oklab, var(--primary-2) 60%, var(--primary) 40%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}
.rs-card-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.rs-card-from {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  margin-bottom: 2px;
}
.rs-card-price {
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 1;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.rs-card-priceSub {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 22px;
  font-style: italic;
}
.rs-card-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.rs-card-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255,255,255,0.88);
}
.rs-card-list svg {
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 3px;
}
.rs-card .btn {
  width: 100%;
  justify-content: center;
  min-height: 48px;
}

.rs-cards-note {
  margin-top: 32px;
  text-align: center;
  font-size: 14px;
  color: rgba(255,255,255,0.62);
  font-style: italic;
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}

/* ───── Section 3: pricing table ───── */
.rs-price-table {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border-collapse: collapse;
  font-size: 17px;
}
.rs-price-table tr {
  border-bottom: 1px solid var(--line);
}
.rs-price-table tr:last-child { border-bottom: 0; }
.rs-price-table td {
  padding: 18px 8px;
  vertical-align: top;
}
.rs-price-table td:first-child {
  color: var(--ink);
  font-weight: 500;
  font-size: 19px;
  padding-right: 24px;
}
.rs-price-table td:last-child {
  text-align: right;
  color: var(--accent-2);
  font-size: 17px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 600px) {
  .rs-price-table td { padding: 14px 4px; }
  .rs-price-table td:first-child { font-size: 16px; }
  .rs-price-table td:last-child { font-size: 16px; }
}

.rs-callout {
  max-width: 800px;
  margin: 40px auto 0;
  padding: 28px 32px;
  border: 1px solid color-mix(in oklab, var(--accent) 50%, transparent);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: color-mix(in oklab, var(--accent-soft) 50%, var(--bg) 50%);
}
.rs-callout strong {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
}
.rs-callout p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
}

.rs-table-foot {
  max-width: 800px;
  margin: 24px auto 0;
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
  text-align: center;
}

/* ───── Section 4: Why Epic ───── */
.rs-why-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
@media (max-width: 900px) {
  .rs-why-grid { grid-template-columns: 1fr; }
}
.rs-checks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.rs-checks li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255,255,255,0.9);
}
.rs-checks svg {
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 4px;
}
.rs-price-diff {
  background: color-mix(in oklab, var(--primary-2) 80%, #000 20%);
  border: 1px solid color-mix(in oklab, var(--accent) 30%, transparent);
  border-radius: 14px;
  padding: 36px 32px;
}
.rs-price-diff-eye {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.rs-price-diff-h {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.15;
  color: #fff;
  margin: 0 0 18px;
  text-wrap: balance;
}
.rs-price-diff-h strong { color: var(--accent); font-weight: 400; font-style: italic; }
.rs-price-diff p {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255,255,255,0.78);
  margin: 0;
}

/* ───── Section 5: long-form prose ───── */
.rs-prose {
  max-width: 720px;
  margin: 0 auto;
}
.rs-prose h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 26px;
  line-height: 1.25;
  color: var(--accent-2);
  margin: 56px 0 16px;
  letter-spacing: -0.005em;
}
.rs-prose h3:first-of-type { margin-top: 0; }
.rs-prose p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-2);
  margin: 0 0 18px;
}
.rs-prose-cta {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

/* ───── Editorial long-form prose (service detail pages) ───── */
.lp-prose {
  /* Stable measure for comfortable reading at any container width */
  --lp-measure: 68ch;
}
.lp-prose > * { max-width: var(--lp-measure); }
.lp-prose .rs-h2 {
  text-align: left;
  text-wrap: balance;
  margin-top: 56px;
  margin-bottom: 20px;
  max-width: 22ch;
}
.lp-prose > .rs-h2:first-child { margin-top: 0; }
.lp-prose .rs-sub {
  font-size: clamp(17px, 1.15vw, 19px);
  line-height: 1.65;
  color: var(--ink);
  font-weight: 400;
  margin: 0 0 22px;
  text-align: left;
  max-width: 62ch;
}
.lp-prose p {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--ink-2);
  margin: 0 0 18px;
  text-align: left;
  hyphens: auto;
  -webkit-hyphens: auto;
  hanging-punctuation: first last;
}
.lp-prose h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(22px, 1.8vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: var(--ink);
  text-wrap: balance;
  margin: 44px 0 14px;
  max-width: 28ch;
}
.lp-prose ul, .lp-prose ol {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink-2);
  margin: 0 0 22px;
  padding-left: 22px;
  max-width: 62ch;
}
.lp-prose li { margin-bottom: 8px; }
.lp-prose li::marker { color: var(--accent); }
.lp-prose strong { color: var(--ink); font-weight: 600; }
.lp-prose a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.lp-prose a:hover { color: var(--accent); }
.lp-prose .rs-callout { max-width: var(--lp-measure); }
.lp-prose .rs-checks { max-width: var(--lp-measure); }
.lp-prose .rs-price-table { max-width: var(--lp-measure); }
@media (max-width: 720px) {
  .lp-prose { --lp-measure: 100%; }
  .lp-prose .rs-h2 { max-width: none; }
  .lp-prose h3 { max-width: none; }
}

/* Section 5 follows into Section 6 (both light) — collapse the seam */
.rs-light + .rs-light.rs-section { padding-top: clamp(40px, 5vw, 64px); }

/* ───── Section 6: claims tables ───── */
.rs-claims-wrap { max-width: 960px; margin: 0 auto; }
.rs-claims-lead {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 20px;
  margin: 0 0 48px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-2);
  background: transparent;
}
.rs-claims-tableTitle {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
  margin: 48px 0 16px;
}
.rs-claims-tableTitle:first-of-type { margin-top: 0; }
.rs-claims-tableWrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  -webkit-overflow-scrolling: touch;
}
.rs-claims-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--bg);
}
.rs-claims-table thead th {
  background: var(--primary);
  color: #fff;
  text-align: left;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.rs-claims-table tbody td {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.5;
  color: var(--ink-2);
}
.rs-claims-table tbody tr:nth-child(even) td {
  background: color-mix(in oklab, var(--bg-2) 60%, transparent);
}
.rs-claims-table td:first-child { font-weight: 500; color: var(--ink); }
.rs-claims-yes { color: var(--ok); font-weight: 600; }
.rs-claims-no { color: #b7410e; font-weight: 600; }
.rs-claims-hint { font-size: 12px; color: var(--muted); font-style: italic; }
@media (max-width: 600px) {
  .rs-claims-table { font-size: 13px; }
  .rs-claims-tableTitle { font-size: 20px; }
}

/* ───── Section 8: FAQ accordion ───── */
.rs-faq {
  max-width: 800px;
  margin: 0 auto;
}
.rs-faq-item {
  border-bottom: 1px solid var(--line);
}
.rs-faq-item:first-child { border-top: 1px solid var(--line); }
.rs-faq-q {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 8px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  background: transparent;
  border: 0;
  min-height: 56px;
}
.rs-faq-q:hover { color: var(--accent-2); }
.rs-faq-q-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  transition: transform 0.25s ease;
  color: var(--accent-2);
}
.rs-faq-item[data-open="true"] .rs-faq-q-icon { transform: rotate(45deg); }
.rs-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.rs-faq-item[data-open="true"] .rs-faq-a { max-height: 800px; }
.rs-faq-a-inner {
  padding: 0 8px 24px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
}
.rs-faq-a-inner em { font-style: italic; }

/* ───── Section 9: How it works ───── */
.rs-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 900px) {
  .rs-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .rs-steps { grid-template-columns: 1fr; }
}
.rs-step {
  position: relative;
  padding: 28px 24px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  background: color-mix(in oklab, var(--primary-2) 50%, var(--primary) 50%);
}
.rs-step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 14px;
}
.rs-step-h {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: #fff;
  margin: 0 0 10px;
  line-height: 1.2;
}
.rs-step-p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.75);
  margin: 0;
}

/* ───── Section 10: footer CTA + sticky button ───── */
.rs-footer-cta {
  background: var(--primary);
  padding: clamp(64px, 9vw, 110px) 0 clamp(48px, 6vw, 72px);
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
}
.rs-footer-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.rs-footer-h {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 400;
  line-height: 1.06;
  color: #fff;
  margin: 0 auto 24px;
  max-width: 28ch;
  text-wrap: balance;
}
.rs-footer-h em { font-style: italic; color: var(--accent); }
.rs-footer-p {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255,255,255,0.78);
  max-width: 72ch;
  margin: 0 auto 32px;
}
.rs-footer-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.rs-footer-actions .btn { min-height: 48px; }
@media (max-width: 600px) {
  .rs-footer-actions { flex-direction: column; align-items: stretch; }
  .rs-footer-actions .btn { width: 100%; justify-content: center; }
}
.rs-footer-trust {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

/* Sticky WhatsApp button — mobile only */
.rs-sticky-wa {
  display: none;
  position: fixed;
  bottom: 16px;
  right: 16px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  z-index: 1000;
  text-decoration: none;
  transition: transform 0.18s ease;
}
.rs-sticky-wa:hover { transform: scale(1.06); }
.rs-sticky-wa:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.rs-sticky-wa svg { width: 30px; height: 30px; }
@media (max-width: 768px) {
  .rs-sticky-wa { display: inline-flex; }
  body { padding-bottom: 80px; } /* prevent button covering content */
}

/* Minimal nav for the standalone page */
.rs-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px var(--pad-x);
  background: color-mix(in oklab, var(--primary) 92%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.rs-nav-brand {
  font-family: var(--font-display);
  font-size: 22px;
  color: #fff;
  letter-spacing: -0.01em;
}
.rs-nav-brand em { color: var(--accent); font-style: italic; }
.rs-nav-back {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  transition: all 0.18s ease;
}
.rs-nav-back:hover { color: #fff; border-color: rgba(255,255,255,0.4); }
@media (max-width: 600px) {
  .rs-nav-brand { font-size: 18px; }
  .rs-nav-back { font-size: 10px; padding: 7px 11px; }
}

/* ───── Shares: scope list (definition-list style two-col, wraps gracefully) ───── */
.sh-scope-list {
  width: 100%;
  border-top: 1px solid var(--line);
}
.sh-scope-row {
  display: grid;
  grid-template-columns: minmax(160px, 220px) 1fr;
  gap: 24px;
  padding: 18px 8px;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.sh-scope-label {
  color: var(--ink);
  font-weight: 600;
  font-size: 17px;
}
.sh-scope-desc {
  color: var(--ink-muted, #555);
  font-size: 16px;
  line-height: 1.55;
}
@media (max-width: 640px) {
  .sh-scope-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 16px 4px;
  }
  .sh-scope-label { font-size: 16px; }
  .sh-scope-desc { font-size: 15px; }
}
