:root {
  --rs-dark:    #1a1a1a;
  --rs-mid:     #252525;
  --rs-border:  #363636;
  --rs-red:     #c0392b;
  --rs-gold:    #c9a227;
  --rs-text:    #e0e0e0;
  --rs-muted:   #aaa;

  --sb-blue:    #0f2b4e;
  --sb-accent:  #1a6ef5;
  --sb-green:   #0d9e6e;
  --sb-light:   #f4f7fc;
  --sb-text:    #1a1a2e;
  --sb-muted:   #5a6882;
  --sb-border:  #dde3ef;

  /* Pico overrides — feed our design tokens into Pico's component system */
  --pico-font-family-sans-serif: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --pico-line-height: 1.6;
  --pico-border-radius: 0.5rem;
  --pico-background-color: #fff;
  --pico-color: #1a1a2e;
  --pico-primary-background: var(--sb-accent);
  --pico-primary-hover-background: #1558cc;
  --pico-primary-border: var(--sb-accent);
  --pico-primary-hover-border: #1558cc;
  --pico-primary-inverse: #fff;
  --pico-primary-focus: rgba(26, 110, 245, 0.25);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

section { margin-bottom: 0; }

h1, h2, h3, h4 { text-wrap: balance; }

[role="button"], button { transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease; }

/* ═══════════════════════════════════════════
   HERO — split screen
═══════════════════════════════════════════ */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
}

.hero-rs {
  background: var(--rs-dark);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 60px 8vw;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-rs::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 20px,
    rgba(192,57,43,.04) 20px,
    rgba(192,57,43,.04) 40px
  );
}

.hero-sb {
  background: linear-gradient(160deg, #f5f7fa 0%, #edf1f8 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 60px 8vw;
  text-align: center;
}

.character {
  width: 120px; height: 120px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 52px;
  margin-bottom: 28px;
  flex-shrink: 0;
}
.char-rs {
  background: var(--rs-mid);
  border: 2px solid var(--rs-red);
  box-shadow: 0 0 40px rgba(192,57,43,.3);
}
.char-sb {
  background: #e8f0fe;
  border: 2px solid var(--sb-accent);
  box-shadow: 0 0 40px rgba(26,110,245,.2);
}

.hero-tag-rs {
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--rs-red);
  margin-bottom: 12px;
}
.hero-tag-sb {
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--sb-accent);
  margin-bottom: 12px;
}

.hero-name-rs {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero-name-rs span { color: var(--rs-gold); }

.hero-name-sb {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900;
  color: var(--sb-blue);
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero-name-sb span { color: var(--sb-accent); }

.hero-quote-rs {
  color: #ccc;
  font-size: 1.05rem;
  max-width: 340px;
  line-height: 1.7;
  text-align: center;
}
.hero-quote-rs strong { color: #fff; }

.hero-quote-sb {
  color: var(--sb-muted);
  font-size: 1.05rem;
  max-width: 340px;
  line-height: 1.7;
  text-align: center;
}
.hero-quote-sb strong { color: var(--sb-text); }

.divider-line {
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, transparent, #c0392b 30%, #1a6ef5 70%, transparent);
  z-index: 10;
}
@media (max-width: 768px) { .divider-line { display: none; } }

.hero-cta-rs {
  margin-top: 32px;
  display: inline-block;
  background: transparent;
  color: #e05a4a;
  border: 1.5px dashed #e05a4a;
  padding: 12px 28px;
  border-radius: var(--pico-border-radius);
  font-weight: 700; font-size: 14px;
  text-decoration: none;
  opacity: .75;
  cursor: not-allowed;
}

/* Pico primary vars handle background, border-color, color, hover, border-radius */
[role="button"].hero-cta-sb {
  margin-top: 32px;
  padding: 12px 28px;
  font-weight: 700; font-size: 14px;
}

/* ═══════════════════════════════════════════
   DEBATE SECTIONS — alternating
═══════════════════════════════════════════ */
.debate {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 768px) { .debate { grid-template-columns: 1fr; } }

.debate-rs {
  background: var(--rs-dark);
  padding: 48px 6vw;
  display: flex;
  align-items: flex-start;
}
.debate-sb {
  background: #f5f7fa;
  padding: 48px 6vw;
  display: flex;
  align-items: flex-start;
}

/* article gives us background (--pico-card-background-color), border-radius, box-shadow */
.speech-bubble-rs {
  --pico-card-background-color: #2e2e2e;
  --pico-card-box-shadow: none;
  border: 1px solid #444;
  padding: 28px 24px;
  margin: 0;
  flex: 1;
}

.speech-bubble-sb {
  --pico-card-background-color: #f5f7fa;
  --pico-card-box-shadow: none;
  border: 1px solid var(--sb-border);
  padding: 28px 24px;
  margin: 0;
  flex: 1;
}

.speaker-label-rs {
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--rs-red);
  margin-bottom: 16px; display: flex; align-items: center; gap: 8px;
}
.speaker-label-sb {
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--sb-accent);
  margin-bottom: 16px; display: flex; align-items: center; gap: 8px;
}

.debate-claim-rs {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 16px;
}
.debate-claim-rs em { color: var(--rs-gold); font-style: normal; }

.debate-claim-sb {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 800;
  color: var(--sb-blue);
  line-height: 1.25;
  margin-bottom: 16px;
}
.debate-claim-sb em { color: var(--sb-accent); font-style: normal; }

.debate-body-rs {
  color: var(--rs-muted);
  font-size: 1rem;
  line-height: 1.7;
}
.debate-body-rs strong { color: var(--rs-text); }

.debate-body-sb {
  color: var(--sb-muted);
  font-size: 1rem;
  line-height: 1.7;
}
.debate-body-sb strong { color: var(--sb-text); }

.stat-badge-rs {
  display: inline-block;
  background: rgba(192,57,43,.15);
  border: 1px solid rgba(192,57,43,.35);
  color: var(--rs-red);
  font-size: 12px; font-weight: 700;
  padding: 4px 12px; border-radius: 20px;
  margin-top: 16px;
}
.stat-badge-sb {
  display: inline-block;
  background: rgba(26,110,245,.1);
  border: 1px solid rgba(26,110,245,.25);
  color: var(--sb-accent);
  font-size: 12px; font-weight: 700;
  padding: 4px 12px; border-radius: 20px;
  margin-top: 16px;
}

/* ═══════════════════════════════════════════
   TIMELINE — acquisitions
═══════════════════════════════════════════ */
.timeline-section {
  background: var(--rs-dark);
  padding: 80px 6vw;
  position: relative;
  overflow: hidden;
}
.timeline-section::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 60px,
    rgba(192,57,43,.03) 60px,
    rgba(192,57,43,.03) 61px
  );
}
.timeline-header {
  text-align: center;
  margin-bottom: 64px;
}
.timeline-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--rs-red);
  margin-bottom: 12px;
}
.timeline-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900; color: #fff;
  line-height: 1.2;
  text-wrap: balance;
}
.timeline-title span { color: var(--rs-gold); }
.timeline-sub {
  color: #ccc;
  margin-top: 12px;
  font-size: 1rem;
  max-width: 560px; margin-left: auto; margin-right: auto;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--rs-red), var(--rs-gold));
}
@media (max-width: 640px) {
  .timeline::before { left: 20px; transform: none; }
}

.tl-item {
  display: flex;
  justify-content: flex-end;
  padding-right: calc(50% + 36px);
  margin-bottom: 48px;
  position: relative;
}
.tl-item:nth-child(even) {
  justify-content: flex-start;
  padding-right: 0;
  padding-left: calc(50% + 36px);
}
@media (max-width: 640px) {
  .tl-item, .tl-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 52px;
  }
}

.tl-dot {
  position: absolute;
  left: 50%; top: 18px;
  transform: translateX(-50%);
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--rs-red);
  border: 2px solid var(--rs-dark);
  box-shadow: 0 0 12px rgba(192,57,43,.6);
  z-index: 2;
}
@media (max-width: 640px) {
  .tl-dot { left: 14px; transform: none; }
}


.tl-card {
  --pico-card-background-color: #2e2e2e;
  --pico-card-box-shadow: none;
  border: 1px solid #484848;
  padding: 20px 22px;
  max-width: 320px;
  margin: 0;
}
.tl-year {
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  color: var(--rs-gold); text-transform: uppercase;
  margin-bottom: 8px;
}
.tl-card h3 {
  color: #fff; font-size: 1rem; font-weight: 700;
  margin-bottom: 6px;
}
.tl-card p { color: #ccc; font-size: .9rem; line-height: 1.6; }
.tl-card .badge {
  display: inline-block; margin-top: 10px;
  font-size: 11px; font-weight: 700;
  background: rgba(192,57,43,.2); border: 1px solid rgba(192,57,43,.4);
  color: var(--rs-red); padding: 3px 10px; border-radius: 20px;
}

.tl-break {
  text-align: center;
  padding: 40px 20px;
  position: relative;
}
.tl-break-card {
  display: inline-block;
  background: linear-gradient(135deg, var(--sb-blue), #1a3a6e);
  border: 2px solid var(--sb-accent);
  border-radius: 16px;
  padding: 28px 40px;
  max-width: 460px;
  box-shadow: 0 0 40px rgba(26,110,245,.3);
}
.tl-break-card h3 {
  color: #fff; font-size: 1.2rem; font-weight: 800;
  margin-bottom: 10px;
}
.tl-break-card p { color: #b8cbec; font-size: .95rem; }
.tl-break-card .year { color: #7eb8ff; font-weight: 700; font-size: 13px; margin-bottom: 10px; }

/* ═══════════════════════════════════════════
   COMPARISON TABLE
═══════════════════════════════════════════ */
.compare-section {
  padding: 80px 6vw;
  background: var(--sb-light);
  border-top: 1px solid var(--sb-border);
}
.compare-header { text-align: center; margin-bottom: 48px; }
.compare-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--sb-accent);
  margin-bottom: 12px;
}
.compare-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900; color: var(--sb-blue);
}

.compare-table {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 40px rgba(0,0,0,.08);
}
.compare-table table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  table-layout: fixed;
}
.compare-table thead th {
  background: var(--sb-blue);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .5px;
  text-align: center;
  padding: 14px 16px;
  border: none;
}
.compare-table thead th:first-child {
  text-align: left;
  color: #b8cbec;
}
.compare-table tbody td {
  padding: 14px 16px;
  font-size: .9rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--sb-border);
  border-right: 1px solid var(--sb-border);
  word-wrap: break-word;
}
@media (max-width: 640px) {
  .compare-section { padding: 48px 3vw; }
  .compare-table thead th,
  .compare-table tbody td { padding: 8px 8px; font-size: .75rem; }
  .ico-bad, .ico-good, .ico-warn { font-size: 13px; margin-right: 3px; }
}
.compare-table tbody td:last-child { border-right: none; }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody td.feature {
  font-weight: 600;
  color: var(--sb-text);
  background: #fff;
}
.compare-table tbody td.rs-val { background: #fdf0ef; }
.compare-table tbody td.sb-val { background: #f0f7ff; }
.compare-table tbody tr:hover td { filter: brightness(.97); }
.ico-bad  { color: #c0392b; font-size: 16px; margin-right: 6px; }
.ico-good { color: var(--sb-green); font-size: 16px; margin-right: 6px; }
.ico-warn { color: var(--rs-gold); font-size: 16px; margin-right: 6px; }

/* ═══════════════════════════════════════════
   FREEDOM SECTION
═══════════════════════════════════════════ */
.freedom-section {
  background: linear-gradient(135deg, var(--sb-blue) 0%, #1a3a6e 100%);
  padding: 80px 6vw;
  color: #fff;
  text-align: center;
}
.freedom-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: #7eb8ff;
  margin-bottom: 16px;
}
.freedom-section h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900; line-height: 1.15;
  max-width: 720px; margin: 0 auto 24px;
  color: #fff;
}
.freedom-section h2 em { color: #7eb8ff; font-style: normal; }
.freedom-section > h3 {
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 900; line-height: 1.2;
  max-width: 720px; margin: 0 auto 24px;
  color: #fff;
}
.freedom-section > h3 em { color: #7eb8ff; font-style: normal; }
.freedom-sub {
  color: #b8cbec; font-size: 1.05rem;
  max-width: 580px; margin: 0 auto 48px;
}
.freedom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 960px;
  margin: 0 auto 48px;
}
@media(max-width: 640px) { .freedom-grid { grid-template-columns: 1fr; } }
.freedom-card {
  --pico-card-background-color: rgba(255,255,255,.07);
  --pico-card-box-shadow: none;
  border: 1px solid rgba(255,255,255,.12);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}
.freedom-card .icon {
  font-size: 26px;
}
.freedom-card-text { flex: 1; }
.freedom-card h3 { font-size: .95rem; font-weight: 700; margin-bottom: 6px; color: #fff; }
.freedom-card p { color: #b8cbec; font-size: .9rem; line-height: 1.65; margin: 0; }

.freedom-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* White primary button on dark background — override Pico primary vars locally */
[role="button"].btn-white {
  --pico-primary-background: #fff;
  --pico-primary-hover-background: #f0f0f0;
  --pico-primary-border: #fff;
  --pico-primary-hover-border: #f0f0f0;
  --pico-primary-inverse: var(--sb-blue);
  padding: 14px 32px;
  font-weight: 700; font-size: 15px;
}
[role="button"].btn-outline-white {
  background: transparent !important;
  border-color: rgba(255,255,255,.4) !important;
  color: #fff !important;
  padding: 14px 32px;
  font-weight: 600; font-size: 15px;
}
[role="button"].btn-outline-white:hover {
  border-color: rgba(255,255,255,.8) !important;
  background: rgba(255,255,255,.06) !important;
  color: #fff !important;
}

/* ═══════════════════════════════════════════
   GnuCOBOL BADGE
═══════════════════════════════════════════ */
.gnu-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(13,158,110,.15);
  border: 1px solid rgba(13,158,110,.35);
  border-radius: 8px;
  padding: 8px 18px;
  color: #4ddb9c;
  font-size: 13px; font-weight: 600;
  margin-top: 32px;
}

/* ═══════════════════════════════════════════
   NAV
═══════════════════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding: 0 5vw; height: 68px;
  background: rgba(26,26,26,.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rs-border);
  /* PicoCSS provides display:flex, justify-content:space-between, align-items:center */
}
/* PicoCSS provides list-style:none, margin:0, padding:0 on nav ul */
.nav-logo-rs {
  font-weight: 900; font-size: 15px;
  color: var(--rs-red);
  letter-spacing: -.2px;
  text-decoration: none;
}
.nav-logo-rs:hover { color: #e04535; }
.nav-vs {
  font-size: 11px; font-weight: 700; color: #555;
  letter-spacing: 1px; text-transform: uppercase;
}
.nav-logo-sb {
  font-weight: 900; font-size: 15px;
  color: #7eb8ff;
  text-decoration: none;
}
.nav-logo-sb:hover { color: #fff; }
/* Pico primary vars handle color, hover, border-radius */
[role="button"].nav-cta {
  padding: 9px 22px;
  font-weight: 600; font-size: 15px;
}
@media (max-width: 600px) {
  .nav-logo-rs, .nav-logo-sb { font-size: 13px; }
  [role="button"].nav-cta { padding: 7px 14px; font-size: 13px; }
}
@media (max-width: 440px) {
  .nav-vs { display: none; }
  [role="button"].nav-cta { display: none; }
}

body { padding-top: 68px; }

/* ═══════════════════════════════════════════
   PRICE CHART
═══════════════════════════════════════════ */
.price-chart-section {
  background: var(--rs-dark);
  padding: 80px 6vw;
  border-top: 1px solid var(--rs-border);
}
.price-chart-header { text-align: center; margin-bottom: 56px; }
.price-chart-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--rs-red);
  margin-bottom: 12px;
}
.price-chart-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900; color: #fff;
}
.price-chart-header h2 span { color: var(--rs-gold); }
.price-chart-header p { color: var(--rs-muted); margin-top: 12px; font-size: .95rem; }

.bar-chart {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.bar-row {
  display: grid;
  grid-template-columns: 80px 1fr 70px;
  align-items: center;
  gap: 14px;
}
.bar-year { color: var(--rs-muted); font-size: 13px; font-weight: 600; text-align: right; }
.bar-track {
  background: var(--rs-mid);
  border-radius: 6px;
  height: 32px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--rs-red), var(--rs-gold));
  display: flex; align-items: center; padding-left: 12px;
  transition: width 1s ease;
}
.bar-label { color: #fff; font-size: 11px; font-weight: 700; white-space: nowrap; }
.bar-price { color: var(--rs-gold); font-size: 13px; font-weight: 700; text-align: left; }

.chart-note {
  text-align: center; margin-top: 32px;
  color: var(--rs-muted); font-size: .875rem; font-style: italic;
}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
footer {
  background: var(--rs-dark);
  padding: 28px 6vw;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  border-top: 1px solid var(--rs-border);
}
.footer-note { color: var(--rs-muted); font-size: 13px; line-height: 1.65; max-width: 580px; }
.footer-note a { color: var(--sb-accent); text-decoration: none; }
.footer-note a:hover { color: #7eb8ff; }
.footer-links { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.footer-sb { color: #7eb8ff; font-weight: 600; font-size: 13px; }
.footer-sb a { color: inherit; text-decoration: none; }
.footer-sb a:hover { color: #fff; }
.footer-sb--muted { color: #aaa; font-weight: 400; }
.footer-sb--muted a:hover { color: #ccc; }
