/* ==============================================================
   Rightlander brand.css
   Production-site brand devices re-applied on the 2026 redesign:
   - .marker-underline  (yellow hand-drawn highlighter under text)
   - .awards-laurels    (laurel-wreath credibility band)
   - .wave-divider      (blue wave SVG section break)
   - .trusted-wall      (white logo row on Rightlander blue)
   - .focus-card        (yellow accent card, "Focused on..." device)
   - .constellation-bg  (dot-and-line network motif background)
   - .compare-table     (Why Rightlander Different? comparison table)
   Brand tokens: Rightlander blue #0e6dff, accent yellow #ffd500
   ============================================================== */

/* ---------- Hero accent fix: solid colour when marker-underline is present, so the yellow stroke shows through the transparent text ---------- */
.hero-title .accent:has(.marker-underline) {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: var(--rl-blue);
}
[data-theme='dark'] .hero-title .accent:has(.marker-underline) {
  color: #4e92ff;
}
/* Marker underline inside a solid-colour accent span */
.hero-title .marker-underline,
.inner-title .marker-underline,
h2 .marker-underline,
h3 .marker-underline { color: inherit; }

/* Inner-title payoff colour when marker-underline used directly inside h1 */
.inner-title .marker-underline { color: var(--rl-blue); }
[data-theme='dark'] .inner-title .marker-underline { color: #4e92ff; }

/* ---------- Brand tokens (supplementary) ---------- */
:root {
  --rl-yellow: #ffd500;
  --rl-yellow-soft: #fff3a8;
  --rl-blue: #0e6dff;
  --rl-blue-dark: #083f99;
}

/* =============================================================
   1. MARKER UNDERLINE  — signature yellow highlighter stroke
   Usage: <span class="marker-underline">payoff phrase</span>
   Draws an SVG-like stroke beneath the text using a pseudo-element
   so it stays aligned and scales with font-size.
   ============================================================= */
.marker-underline {
  position: relative;
  display: inline;
  /* Use box-decoration-break so the underline renders on each line when wrapped */
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 14' preserveAspectRatio='none'><path d='M2 10 C 60 2, 120 4, 180 6 S 280 10, 298 4' fill='none' stroke='%23ffd500' stroke-width='6' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-size: 100% 0.28em;
  background-position: 0 92%;
  padding-bottom: 0.08em;
}


/* =============================================================
   2. AWARDS LAURELS BAND
   Usage: <div class="awards-laurels">
             <div class="laurel"><span class="laurel-year">2023</span>
                                 <span class="laurel-body">Named Best Tech...</span></div>
             ...
          </div>
   Shows 3 laurel-wreath cards under the hero CTA.
   Uses pure CSS laurels (two mirrored SVG leaves either side of text).
   ============================================================= */
.awards-laurels {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(18px, 3vw, 40px);
  margin-top: 28px;
  align-items: flex-start;
}
/* Solo variant: one evergreen "Award-winning" laurel, larger */
.awards-laurels--solo { margin-top: 24px; }
.laurel--pill { grid-template-columns: 36px auto 36px; gap: 14px; }
.laurel--pill .laurel-inner {
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 10px;
  white-space: nowrap;
}
.laurel--pill .laurel-eyebrow {
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--rl-blue);
  margin-bottom: 0;
}
.laurel--pill .laurel-body {
  font-size: 14px;
  font-weight: 500;
  max-width: none;
  color: var(--color-text);
}
.laurel--pill::before,
.laurel--pill::after { width: 34px; height: 68px; }
@media (max-width: 560px) {
  .laurel--pill .laurel-inner {
    flex-direction: column;
    align-items: center;
    gap: 2px;
    white-space: normal;
  }
  .laurel--pill .laurel-body { max-width: 260px; text-align: center; }
}
[data-theme='dark'] .laurel--pill .laurel-eyebrow { color: #7fb0ff; }
.laurel {
  display: grid;
  grid-template-columns: 28px auto 28px;
  align-items: center;
  gap: 10px;
  color: var(--color-text);
  font-size: 12px;
  line-height: 1.25;
  font-weight: 500;
}
.laurel-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.laurel::before,
.laurel::after {
  content: "";
  display: block;
  width: 28px;
  height: 56px;
  background: center/contain no-repeat;
}
.laurel::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 56' fill='none' stroke='%23111' stroke-width='1.2' stroke-linecap='round'><path d='M24 4 C 10 10, 6 20, 8 30 C 10 40, 16 48, 24 52'/><path d='M22 10 C 16 14, 14 18, 14 22'/><path d='M20 18 C 14 20, 12 24, 12 28'/><path d='M18 26 C 12 28, 10 32, 10 36'/><path d='M18 34 C 12 36, 12 40, 14 44'/></svg>");
}
.laurel::after {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 56' fill='none' stroke='%23111' stroke-width='1.2' stroke-linecap='round'><path d='M4 4 C 18 10, 22 20, 20 30 C 18 40, 12 48, 4 52'/><path d='M6 10 C 12 14, 14 18, 14 22'/><path d='M8 18 C 14 20, 16 24, 16 28'/><path d='M10 26 C 16 28, 18 32, 18 36'/><path d='M10 34 C 16 36, 16 40, 14 44'/></svg>");
}
.laurel-eyebrow {
  display: block;
  letter-spacing: 0.12em;
  font-size: 10px;
  font-weight: 700;
  color: #111;
  text-transform: uppercase;
}
.laurel-year {
  display: block;
  font-weight: 700;
  color: #111;
  font-size: 11px;
}
.laurel-body {
  display: block;
  color: #333;
  font-weight: 500;
  max-width: 160px;
}
.laurel-inner { text-align: center; }
.laurel .laurel-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: #0c7c45;
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 4px;
  font-family: var(--font-sans, "Inter", sans-serif);
}
[data-theme='dark'] .laurel { color: #e6ecf4; }
[data-theme='dark'] .laurel-year,
[data-theme='dark'] .laurel-eyebrow { color: #fff; }
[data-theme='dark'] .laurel-body { color: #bbc3d0; }
[data-theme='dark'] .laurel::before,
[data-theme='dark'] .laurel::after {
  filter: invert(1);
}

/* =============================================================
   3. WAVE DIVIDER — blue wave SVG transition between bands
   Place right after a light section, before a blue section,
   or as top of a blue section. Two variants: -down (curving down)
   and -up (curving up, for end of blue band going back to light).
   ============================================================= */
.wave-divider {
  display: block;
  width: 100%;
  height: clamp(48px, 8vw, 96px);
  line-height: 0;
}
.wave-divider svg {
  display: block;
  width: 100%;
  height: 100%;
}
.wave-band {
  background: var(--rl-blue);
  color: #fff;
}
.wave-band .eyebrow { color: rgba(255,255,255,0.78); }
.wave-band h1, .wave-band h2, .wave-band h3 { color: #fff; }
.wave-band p, .wave-band li { color: rgba(255,255,255,0.9); }

/* =============================================================
   4. TRUSTED-BY WALL — white monochrome logos on blue band
   ============================================================= */
.trusted-wall {
  background: var(--rl-blue);
  color: #fff;
  padding: clamp(48px, 6vw, 72px) 0;
  text-align: center;
}
.trusted-wall .trusted-title {
  font-size: clamp(14px, 1.4vw, 15px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  margin: 0 0 28px;
}
.trusted-wall .trusted-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
}
.trusted-wall .trusted-logo {
  color: #fff;
  font-weight: 700;
  font-size: clamp(16px, 1.5vw, 20px);
  letter-spacing: 0.02em;
  opacity: 0.95;
  white-space: nowrap;
}

/* =============================================================
   5. FOCUS CARD — yellow accent card ("Focused on Consumer Protection")
   ============================================================= */
.focus-card {
  background: var(--rl-yellow-soft);
  border: 1px solid #f3dc6a;
  border-radius: 14px;
  padding: 24px 28px;
  display: flex;
  gap: 18px;
  align-items: center;
  color: #1a1a1a;
}
.focus-card .focus-eyebrow {
  display: block;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8a6a00;
  font-weight: 700;
}
.focus-card .focus-title {
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 700;
  color: #1a1a1a;
  margin: 2px 0 0;
}
.focus-card .focus-icon {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  background: #ffd500;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
[data-theme='dark'] .focus-card {
  background: rgba(255,213,0,0.12);
  border-color: rgba(255,213,0,0.4);
  color: #fff8d4;
}
[data-theme='dark'] .focus-card .focus-title { color: #fff8d4; }
[data-theme='dark'] .focus-card .focus-eyebrow { color: #ffe066; }

/* =============================================================
   6. CONSTELLATION BG — faint dot-and-line network motif
   Usage: <div class="constellation-bg">...content...</div>
   ============================================================= */
.constellation-bg {
  position: relative;
  isolation: isolate;
}
.constellation-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 400' fill='none' stroke='%230e6dff' stroke-opacity='0.35' stroke-width='1'><line x1='60' y1='80' x2='160' y2='140'/><line x1='160' y1='140' x2='260' y2='90'/><line x1='260' y1='90' x2='380' y2='150'/><line x1='380' y1='150' x2='500' y2='110'/><line x1='160' y1='140' x2='200' y2='240'/><line x1='200' y1='240' x2='320' y2='260'/><line x1='320' y1='260' x2='440' y2='220'/><line x1='440' y1='220' x2='500' y2='330'/><line x1='200' y1='240' x2='120' y2='320'/><line x1='260' y1='90' x2='200' y2='240'/><line x1='380' y1='150' x2='320' y2='260'/><circle cx='60' cy='80' r='4' fill='%230e6dff'/><circle cx='160' cy='140' r='5' fill='%230e6dff'/><circle cx='260' cy='90' r='4' fill='%230e6dff'/><circle cx='380' cy='150' r='5' fill='%230e6dff'/><circle cx='500' cy='110' r='4' fill='%230e6dff'/><circle cx='200' cy='240' r='5' fill='%230e6dff'/><circle cx='320' cy='260' r='4' fill='%230e6dff'/><circle cx='440' cy='220' r='4' fill='%230e6dff'/><circle cx='500' cy='330' r='4' fill='%230e6dff'/><circle cx='120' cy='320' r='4' fill='%230e6dff'/></svg>");
  background-repeat: no-repeat;
  background-position: right -40px top -20px;
  background-size: min(560px, 60%);
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}
.constellation-bg > * { position: relative; z-index: 1; }
[data-theme='dark'] .constellation-bg::before { opacity: 0.28; }

/* =============================================================
   7. COMPARE TABLE — "Why Rightlander Different?"
   ============================================================= */
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 15px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-border, #e5e7eb);
}
.compare-table th,
.compare-table td {
  padding: 14px 16px;
  text-align: center;
  border-bottom: 1px solid var(--color-border, #e5e7eb);
  vertical-align: middle;
}
.compare-table thead th {
  background: var(--color-bg-subtle, #f7f9fc);
  font-weight: 600;
  color: var(--color-text, #111);
  font-size: 13px;
  letter-spacing: 0.02em;
}
.compare-table thead th:first-child { text-align: left; }
.compare-table tbody td:first-child {
  text-align: left;
  font-weight: 500;
  color: var(--color-text, #111);
  background: var(--color-bg-subtle, #f7f9fc);
}
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table .col-rightlander {
  background: rgba(14,109,255,0.06);
  color: var(--rl-blue);
  font-weight: 600;
}
.compare-table .tick {
  display: inline-flex;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #0c9a55;
  color: #fff;
  align-items: center; justify-content: center;
  font-size: 13px;
}
.compare-table .cross {
  display: inline-flex;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #e23b46;
  color: #fff;
  align-items: center; justify-content: center;
  font-size: 13px;
}
[data-theme='dark'] .compare-table {
  background: var(--color-surface);
  border-color: var(--color-border);
}
[data-theme='dark'] .compare-table thead th,
[data-theme='dark'] .compare-table tbody td:first-child {
  background: var(--color-bg-subtle);
}
[data-theme='dark'] .compare-table .col-rightlander {
  background: rgba(78,146,255,0.12);
  color: #7fb0ff;
}

/* Responsive: compact spacing */
@media (max-width: 700px) {
  .compare-table th, .compare-table td { padding: 10px 8px; font-size: 13px; }
}

/* =============================================================
   9. IN-BODY CONVERSION BLOCK (.rl-convert)
   Placed inside prose content, ~1/3 down the article body.
   Topic-anchored so the anchor text reinforces the query intent.
   ============================================================= */
.rl-convert {
  margin: 32px 0;
  padding: 22px 26px;
  background: linear-gradient(135deg, rgba(14,109,255,0.06), rgba(255,213,0,0.08));
  border: 1px solid rgba(14,109,255,0.18);
  border-left: 4px solid var(--rl-blue);
  border-radius: 10px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
}
.rl-convert__body { font-size: 15.5px; line-height: 1.55; color: var(--color-text); }
.rl-convert__body strong { color: var(--rl-blue); font-weight: 600; }
.rl-convert__body a { color: var(--rl-blue); font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.rl-convert__body a:hover { background: var(--rl-yellow-soft); }
.rl-convert__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: var(--rl-blue);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s, box-shadow 0.15s;
}
.rl-convert__cta:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(14,109,255,0.35); color: #fff; }
[data-theme='dark'] .rl-convert {
  background: linear-gradient(135deg, rgba(78,146,255,0.08), rgba(255,213,0,0.05));
  border-color: rgba(78,146,255,0.25);
  border-left-color: #4e92ff;
}
[data-theme='dark'] .rl-convert__body strong,
[data-theme='dark'] .rl-convert__body a { color: #7fb0ff; }
@media (max-width: 640px) {
  .rl-convert { grid-template-columns: 1fr; padding: 18px 20px; }
  .rl-convert__cta { justify-self: start; }
}

/* =============================================================
   10. PILLAR HERO CONVERSION BANNER (.rl-pillar-cta)
   Sits at top of highest-traffic pillar articles — clean, minimal,
   routes qualified traffic straight to product pages.
   ============================================================= */
.rl-pillar-cta {
  margin: 18px 0 28px;
  padding: 18px 22px;
  background: #fff;
  border: 1.5px solid var(--rl-blue);
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(14,109,255,0.08);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.rl-pillar-cta__text { font-size: 15px; line-height: 1.5; max-width: 640px; color: var(--color-text); }
.rl-pillar-cta__text strong { color: var(--rl-blue); }
.rl-pillar-cta__text a { color: var(--rl-blue); font-weight: 600; }
.rl-pillar-cta__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.rl-pillar-cta__actions .btn-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 14px;
  text-decoration: none; white-space: nowrap;
}
.rl-pillar-cta__actions .btn-pill--primary { background: var(--rl-blue); color: #fff; }
.rl-pillar-cta__actions .btn-pill--primary:hover { background: var(--rl-blue-dark); color: #fff; }
.rl-pillar-cta__actions .btn-pill--ghost { background: transparent; color: var(--rl-blue); border: 1.5px solid var(--rl-blue); }
.rl-pillar-cta__actions .btn-pill--ghost:hover { background: var(--rl-yellow-soft); }
[data-theme='dark'] .rl-pillar-cta { background: #0f1a2e; border-color: #4e92ff; }
[data-theme='dark'] .rl-pillar-cta__text strong,
[data-theme='dark'] .rl-pillar-cta__text a { color: #7fb0ff; }
[data-theme='dark'] .rl-pillar-cta__actions .btn-pill--primary { background: #4e92ff; }
[data-theme='dark'] .rl-pillar-cta__actions .btn-pill--ghost { color: #7fb0ff; border-color: #4e92ff; }

/* =============================================================
   11. WHY THIS MATTERS SIDEBAR (product pages)
   Short card linking commercial pages to news pillars, passing
   authority from top-ranking news back to product pages.
   ============================================================= */
.rl-why-matters {
  background: var(--color-card, #f7f9fc);
  border: 1px solid rgba(14,109,255,0.12);
  border-radius: 12px;
  padding: 22px 24px;
  margin: 28px 0;
}
.rl-why-matters h3 {
  font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--rl-blue); margin: 0 0 10px; font-weight: 600;
}
.rl-why-matters p { font-size: 15px; line-height: 1.55; margin: 0 0 14px; color: var(--color-text); }
.rl-why-matters ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.rl-why-matters li a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; background: #fff; border-radius: 8px;
  border: 1px solid rgba(14,109,255,0.1);
  color: var(--color-text); text-decoration: none;
  font-size: 14.5px; font-weight: 500;
  transition: border-color 0.15s, transform 0.15s;
}
.rl-why-matters li a::before {
  content: "→"; color: var(--rl-blue); font-weight: 700;
}
.rl-why-matters li a:hover {
  border-color: var(--rl-blue);
  transform: translateX(2px);
  color: var(--rl-blue);
}
[data-theme='dark'] .rl-why-matters { background: #0f1a2e; border-color: rgba(78,146,255,0.18); }
[data-theme='dark'] .rl-why-matters li a { background: #142238; border-color: rgba(78,146,255,0.14); color: #e6ecf4; }
[data-theme='dark'] .rl-why-matters li a:hover { color: #7fb0ff; border-color: #4e92ff; }

/* =============================================================
   12. EVENT LOGO TREATMENTS
   Hero badge for event pages and square logo for events hub cards.
   ============================================================= */
.rl-event-hero {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.rl-event-hero__logo {
  flex: 0 0 auto;
  width: 140px;
  height: 140px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--color-divider, #e6ecf4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.rl-event-hero__logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}
.rl-event-hero__copy { flex: 1 1 420px; min-width: 0; }
@media (max-width: 640px) {
  .rl-event-hero__logo { width: 96px; height: 96px; padding: 10px; }
  .rl-event-hero { gap: 18px; }
}
[data-theme='dark'] .rl-event-hero__logo {
  background: #fff;
  border-color: rgba(78,146,255,0.2);
}

/* Events hub card logo treatment (replaces og-cover.png generic image) */
.news-card-media--event-logo {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 24px;
}
.news-card-media--event-logo img {
  width: auto;
  max-width: 70%;
  max-height: 140px;
  object-fit: contain;
}

/* =============================================================
   13. CONTACT FUNNEL POLISH
   Scroll-margin so #funnel deep-links land below sticky nav;
   what-happens-next strip; trust logo row on the contact form.
   ============================================================= */
#funnel { scroll-margin-top: 100px; }
.rl-contact-next {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}
.rl-contact-next__step {
  background: #fff;
  border: 1px solid var(--color-divider, #e6ecf4);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.rl-contact-next__num {
  flex: 0 0 28px;
  height: 28px;
  width: 28px;
  border-radius: 50%;
  background: var(--rl-blue);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rl-contact-next__copy { flex: 1 1 auto; }
.rl-contact-next__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 2px;
}
.rl-contact-next__body {
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--color-text-muted, #5a6a85);
  margin: 0;
}
@media (max-width: 720px) {
  .rl-contact-next { grid-template-columns: 1fr; }
}
.rl-contact-trust {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--color-divider, #e6ecf4);
}
.rl-contact-trust__label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted, #5a6a85);
  font-weight: 600;
  margin: 0 0 12px;
}
.rl-contact-trust__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 28px;
  opacity: 0.85;
}
.rl-contact-trust__logos img {
  max-height: 26px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.75;
  transition: filter 0.15s, opacity 0.15s;
}
.rl-contact-trust__logos img:hover {
  filter: grayscale(0%);
  opacity: 1;
}
[data-theme='dark'] .rl-contact-next__step {
  background: #142238;
  border-color: rgba(78,146,255,0.14);
}

/* ============================================================
   14) COMPARE PAGES  (/compare/rightlander-vs-{x}.html + hub)
   ============================================================ */

/* At-a-glance card pair */
.rl-vs-cards{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:28px;
  margin-top:28px;
}
@media (max-width:780px){ .rl-vs-cards{ grid-template-columns:1fr; gap:20px; } }
.rl-vs-card{
  background:var(--color-surface, #fff);
  border:1px solid var(--color-divider, #e2e8f0);
  border-radius:14px;
  padding:28px;
}
.rl-vs-card--us{
  border-color:rgba(78,146,255,0.5);
  background:linear-gradient(180deg, rgba(78,146,255,0.06), transparent 60%), var(--color-surface, #fff);
}
.rl-vs-card__head{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-bottom:16px;
}
.rl-vs-card__tag{
  display:inline-flex;
  align-self:flex-start;
  padding:4px 10px;
  background:rgba(78,146,255,0.12);
  color:#1e63d6;
  font-size:11px;
  font-weight:700;
  letter-spacing:0.08em;
  text-transform:uppercase;
  border-radius:999px;
}
.rl-vs-card--them .rl-vs-card__tag{
  background:rgba(100,116,139,0.12);
  color:#475569;
}
.rl-vs-card__head h3{
  margin:4px 0 0;
  font-size:20px;
  line-height:1.3;
}
.rl-vs-card__list{
  margin:0;
  padding-left:18px;
  display:flex;
  flex-direction:column;
  gap:8px;
  color:var(--color-text, #1f2937);
}
.rl-vs-card__list li{ line-height:1.5; }
.rl-vs-card__lede{
  margin:0 0 18px;
  color:var(--color-text-muted, #475569);
  line-height:1.55;
}
.rl-vs-meta{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
  margin:0;
  padding-top:14px;
  border-top:1px solid var(--color-divider, #e2e8f0);
}
.rl-vs-meta > div{ display:flex; gap:10px; align-items:baseline; }
.rl-vs-meta dt{
  font-size:11px;
  font-weight:700;
  letter-spacing:0.06em;
  text-transform:uppercase;
  color:var(--color-text-muted, #5a6a85);
  min-width:130px;
}
.rl-vs-meta dd{ margin:0; color:var(--color-text, #1f2937); font-weight:500; }

/* Comparison table */
.rl-vs-table-wrap{
  margin-top:24px;
  overflow-x:auto;
  border:1px solid var(--color-divider, #e2e8f0);
  border-radius:12px;
  background:var(--color-surface, #fff);
}
.rl-vs-table{
  width:100%;
  border-collapse:collapse;
  min-width:640px;
}
.rl-vs-table thead th{
  text-align:left;
  padding:14px 18px;
  font-size:12px;
  font-weight:700;
  letter-spacing:0.06em;
  text-transform:uppercase;
  color:var(--color-text-muted, #5a6a85);
  background:var(--color-surface-alt, #f7f9fc);
  border-bottom:1px solid var(--color-divider, #e2e8f0);
}
.rl-vs-table thead th.rl-vs-rl{ color:#1e63d6; }
.rl-vs-table tbody th{
  text-align:left;
  padding:14px 18px;
  font-weight:600;
  color:var(--color-text, #1f2937);
  border-bottom:1px solid var(--color-divider, #e2e8f0);
  vertical-align:top;
  width:30%;
}
.rl-vs-table tbody td{
  padding:14px 18px;
  border-bottom:1px solid var(--color-divider, #e2e8f0);
  vertical-align:top;
  color:var(--color-text, #1f2937);
  line-height:1.5;
}
.rl-vs-table tbody td.rl-vs-rl{
  background:rgba(78,146,255,0.04);
  font-weight:500;
}
.rl-vs-table tbody tr:last-child th,
.rl-vs-table tbody tr:last-child td{ border-bottom:none; }

/* When-to-choose cards */
.rl-when-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px;
  margin-top:24px;
}
@media (max-width:780px){ .rl-when-grid{ grid-template-columns:1fr; } }
.rl-when-card{
  background:var(--color-surface, #fff);
  border:1px solid var(--color-divider, #e2e8f0);
  border-radius:14px;
  padding:26px;
}
.rl-when-card--us{ border-left:4px solid #4e92ff; }
.rl-when-card--them{ border-left:4px solid #94a3b8; }
.rl-when-card h3{
  margin:0 0 14px;
  font-size:18px;
}
.rl-when-card ul{
  margin:0;
  padding-left:18px;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.rl-when-card li{ line-height:1.55; color:var(--color-text, #1f2937); }

/* Migration / switching strip */
.rl-switch-lede{
  max-width:780px;
  margin:0 0 28px;
  font-size:17px;
  line-height:1.55;
  color:var(--color-text-muted, #475569);
}
.rl-switch-steps{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:20px;
}
@media (max-width:780px){ .rl-switch-steps{ grid-template-columns:1fr; } }
.rl-switch-step{
  background:var(--color-surface, #fff);
  border:1px solid var(--color-divider, #e2e8f0);
  border-radius:12px;
  padding:22px;
  position:relative;
}
.rl-switch-num{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:32px;
  height:32px;
  border-radius:50%;
  background:#4e92ff;
  color:#fff;
  font-weight:700;
  font-size:14px;
  margin-bottom:12px;
}
.rl-switch-step h4{ margin:0 0 8px; font-size:16px; }
.rl-switch-step p{ margin:0; color:var(--color-text-muted, #475569); font-size:14.5px; line-height:1.55; }

/* Compare hub grid */
.rl-compare-hub{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:20px;
  margin-top:28px;
}
@media (max-width:980px){ .rl-compare-hub{ grid-template-columns:repeat(2, 1fr); } }
@media (max-width:600px){ .rl-compare-hub{ grid-template-columns:1fr; } }
.rl-compare-hub__card{
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:22px;
  background:var(--color-surface, #fff);
  border:1px solid var(--color-divider, #e2e8f0);
  border-radius:12px;
  text-decoration:none;
  color:inherit;
  transition:border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.rl-compare-hub__card:hover{
  border-color:#4e92ff;
  transform:translateY(-2px);
  box-shadow:0 6px 20px rgba(15,23,42,0.06);
}
.rl-compare-hub__tag{
  font-size:11px;
  font-weight:700;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:var(--color-text-muted, #5a6a85);
}
.rl-compare-hub__title{
  margin:0;
  font-size:18px;
  line-height:1.3;
  color:var(--color-text, #0f172a);
}
.rl-compare-hub__desc{
  margin:0;
  color:var(--color-text-muted, #475569);
  font-size:14.5px;
  line-height:1.55;
}
.rl-compare-hub__cta{
  margin-top:auto;
  padding-top:8px;
  font-size:13.5px;
  font-weight:600;
  color:#1e63d6;
}

/* Dark mode tweaks */
[data-theme='dark'] .rl-vs-card,
[data-theme='dark'] .rl-when-card,
[data-theme='dark'] .rl-switch-step,
[data-theme='dark'] .rl-compare-hub__card,
[data-theme='dark'] .rl-vs-table-wrap{
  background:#142238;
  border-color:rgba(78,146,255,0.16);
}
[data-theme='dark'] .rl-vs-card--us{
  background:linear-gradient(180deg, rgba(78,146,255,0.10), transparent 60%), #142238;
  border-color:rgba(78,146,255,0.45);
}
[data-theme='dark'] .rl-vs-table thead th{
  background:#0f1a2c;
  border-bottom-color:rgba(78,146,255,0.16);
}
[data-theme='dark'] .rl-vs-table thead th.rl-vs-rl{ color:#7eb1ff; }
[data-theme='dark'] .rl-vs-table tbody th,
[data-theme='dark'] .rl-vs-table tbody td{
  border-bottom-color:rgba(78,146,255,0.10);
}
[data-theme='dark'] .rl-vs-table tbody td.rl-vs-rl{
  background:rgba(78,146,255,0.08);
}
[data-theme='dark'] .rl-vs-card__tag{
  background:rgba(78,146,255,0.18);
  color:#7eb1ff;
}
[data-theme='dark'] .rl-vs-card--them .rl-vs-card__tag{
  background:rgba(148,163,184,0.18);
  color:#cbd5e1;
}
[data-theme='dark'] .rl-compare-hub__title{ color:#e2e8f0; }
[data-theme='dark'] .rl-compare-hub__cta{ color:#7eb1ff; }
