@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Syne:wght@600;700;800&display=swap');

.blog-article--rebrand {
  --rb-ink: #14181f;
  --rb-muted: #5a6575;
  --rb-line: #e2e6ec;
  --rb-paper: #f7f8fa;
  --rb-bl: #e85d04;
  --rb-bl-soft: #fff4eb;
  --rb-bl-deep: #c44a00;
  --rb-ck: #0d9488;
  --rb-ck-soft: #e6f7f5;
  --rb-ck-deep: #0f766e;
  --rb-accent: #1e293b;

  color: var(--rb-ink);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.75;
}

.blog-article--rebrand * {
  box-sizing: border-box;
}

.rb-body {
  margin: 0 auto;
  padding: 0.5rem 0 3rem;
}

.blog-article--rebrand p {
  margin: 0 0 1.1rem;
  color: var(--rb-ink);
}

.blog-article--rebrand strong {
  font-weight: 650;
}

/* ---------- Intro ---------- */

.rb-intro {
  margin-bottom: 2.5rem;
}

.rb-intro__lead {
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin-bottom: 1.35rem;
  color: var(--rb-ink);
}

.rb-intro__hook {
  margin-top: 1.5rem;
  padding: 1rem 0 1rem 1.15rem;
  border-left: 3px solid var(--rb-accent);
  font-size: 1.08rem;
  font-weight: 500;
  color: var(--rb-accent);
}

/* ---------- Timeline matchup ---------- */

.rb-timeline {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: stretch;
  margin: 0 0 3.25rem;
  padding: 1.25rem;
  background:
    radial-gradient(ellipse 80% 60% at 0% 50%, rgba(232, 93, 4, 0.08), transparent 55%),
    radial-gradient(ellipse 80% 60% at 100% 50%, rgba(13, 148, 136, 0.1), transparent 55%),
    var(--rb-paper);
  border: 1px solid var(--rb-line);
  border-radius: 4px;
}

.rb-timeline__card {
  padding: 1.15rem 1.25rem;
  background: #fff;
  border: 1px solid var(--rb-line);
  border-radius: 4px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.rb-timeline__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(20, 24, 31, 0.07);
}

.rb-timeline__card--bl {
  border-top: 3px solid var(--rb-bl);
}

.rb-timeline__card--ck {
  border-top: 3px solid var(--rb-ck);
}

.rb-timeline__year {
  display: inline-block;
  font-family: 'Syne', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.55rem;
}

.rb-timeline__card--bl .rb-timeline__year { color: var(--rb-bl-deep); }
.rb-timeline__card--ck .rb-timeline__year { color: var(--rb-ck-deep); }

.rb-timeline__card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 0 0.45rem;
  letter-spacing: -0.02em;
}

.rb-timeline__card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--rb-muted);
}

.rb-timeline__vs {
  align-self: center;
  font-family: 'Syne', sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--rb-line);
  border-radius: 50%;
  background: #fff;
}

/* ---------- Rounds ---------- */

.rb-round {
  margin: 0 0 3.5rem;
  padding-top: 0.25rem;
}

.rb-round__meta {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  margin-bottom: 1.35rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--rb-line);
}

.rb-round__num {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #cbd5e1;
  line-height: 1;
  flex-shrink: 0;
}

.rb-round__title {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--rb-ink);
}

.rb-round__lead {
  font-size: 1.05rem;
  color: var(--rb-muted);
  margin-bottom: 1.35rem !important;
}

/* ---------- Split boards ---------- */

.rb-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0 0 1.5rem;
  border: 1px solid var(--rb-line);
  border-radius: 4px;
  overflow: hidden;
}

.rb-side {
  padding: 1.35rem 1.4rem 1.5rem;
  position: relative;
}

.rb-side--bl {
  background: linear-gradient(180deg, var(--rb-bl-soft) 0%, #fff 55%);
  border-right: 1px solid var(--rb-line);
}

.rb-side--ck {
  background: linear-gradient(180deg, var(--rb-ck-soft) 0%, #fff 55%);
}

.rb-side__brand {
  display: inline-block;
  font-family: 'Syne', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}

.rb-side--bl .rb-side__brand { color: var(--rb-bl-deep); }
.rb-side--ck .rb-side__brand { color: var(--rb-ck-deep); }

.rb-side h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.rb-side p:last-child {
  margin-bottom: 0;
}

.rb-verdict-line {
  margin: 0 !important;
  padding: 1rem 1.2rem;
  background: var(--rb-paper);
  border-left: 3px solid var(--rb-accent);
  font-size: 1.02rem;
}

/* ---------- Brand voices ---------- */

.rb-voices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0 0;
}

.rb-voice {
  margin: 0;
  padding: 1.35rem 1.4rem;
  border-radius: 4px;
  position: relative;
}

.rb-voice--bl {
  background: var(--rb-bl);
  color: #fff;
}

.rb-voice--ck {
  background: var(--rb-ck);
  color: #fff;
}

.rb-voice__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 0.65rem;
}

.rb-voice p {
  margin: 0 !important;
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: inherit;
}

/* ---------- Story grid ---------- */

.rb-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 0.5rem;
}

.rb-story {
  padding: 1.4rem 1.35rem 1.5rem;
  border: 1px solid var(--rb-line);
  border-radius: 4px;
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: border-color 0.3s ease;
}

.rb-story:hover {
  border-color: #cbd5e1;
}

.rb-story--bl { box-shadow: inset 4px 0 0 var(--rb-bl); }
.rb-story--ck { box-shadow: inset 4px 0 0 var(--rb-ck); }

.rb-story h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.7rem;
}

.rb-story p {
  flex: 1;
  margin-bottom: 1.1rem;
  color: var(--rb-muted);
}

.rb-story__tag {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  border-radius: 2px;
}

.rb-story--bl .rb-story__tag {
  background: var(--rb-bl-soft);
  color: var(--rb-bl-deep);
}

.rb-story--ck .rb-story__tag {
  background: var(--rb-ck-soft);
  color: var(--rb-ck-deep);
}

/* ---------- Customer tests ---------- */

.rb-tests {
  display: grid;
  gap: 1rem;
}

.rb-test {
  padding: 1.4rem 1.45rem;
  border: 1px solid var(--rb-line);
  border-radius: 4px;
  background: #fff;
}

.rb-test__brand {
  display: inline-block;
  font-family: 'Syne', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid currentColor;
}

.rb-test__brand--bl { color: var(--rb-bl-deep); }
.rb-test__brand--ck { color: var(--rb-ck-deep); }

.rb-test__q {
  font-family: 'Syne', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.015em;
  color: var(--rb-ink) !important;
  margin: 1rem 0 0.5rem !important;
  padding: 0.85rem 1rem;
  background: var(--rb-paper);
  border-radius: 3px;
}

.rb-test p:last-child {
  margin-bottom: 0;
}

/* ---------- Future readiness ---------- */

.rb-future {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0 1.25rem;
}

.rb-future__item {
  padding: 1.5rem 1.35rem;
  border-radius: 4px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.rb-future__item::after {
  content: '';
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15);
  right: -30px;
  bottom: -40px;
  pointer-events: none;
}

.rb-future__item--bl {
  background: linear-gradient(145deg, var(--rb-bl) 0%, var(--rb-bl-deep) 100%);
}

.rb-future__item--ck {
  background: linear-gradient(145deg, var(--rb-ck) 0%, var(--rb-ck-deep) 100%);
}

.rb-future__item h3 {
  font-family: 'Syne', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 0.65rem;
  opacity: 0.9;
}

.rb-future__item p {
  margin: 0 !important;
  font-family: 'Syne', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: inherit;
  position: relative;
  z-index: 1;
}

.rb-future__note {
  font-style: italic;
  color: var(--rb-muted) !important;
}

/* ---------- Closing ---------- */

.rb-closing {
  margin: 3.5rem 0 2.5rem;
  padding: 2rem 1.5rem 2.25rem;
  background:
    linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  color: #e2e8f0;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.rb-closing::before {
  content: '';
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  top: -80px;
  right: -60px;
  pointer-events: none;
}

.rb-closing::after {
  content: '';
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.05);
  bottom: -40px;
  left: 10%;
  pointer-events: none;
}

.rb-closing__eyebrow {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 0.85rem;
  position: relative;
  z-index: 1;
}

.rb-closing h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 1.25rem;
  color: #fff;
  position: relative;
  z-index: 1;
}

.rb-closing p {
  color: #cbd5e1;
  position: relative;
  z-index: 1;
}

.rb-closing__list {
  list-style: none;
  margin: 1.25rem 0 1.5rem;
  padding: 0;
  position: relative;
  z-index: 1;
}

.rb-closing__list li {
  padding: 0.7rem 0 0.7rem 1rem;
  border-left: 2px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 0.5rem;
  color: #e2e8f0;
}

.rb-closing__list li strong {
  color: #fff;
}

.rb-question {
  margin: 1.75rem 0 1.5rem;
  padding: 1.35rem 1.4rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  position: relative;
  z-index: 1;
}

.rb-question p {
  margin: 0 !important;
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: #fff !important;
}

.rb-closing__end {
  margin-bottom: 0 !important;
  font-size: 1.02rem;
  line-height: 1.65;
  color: #94a3b8 !important;
}

/* ---------- CTA tweak within article ---------- */

.blog-article--rebrand .blog-article-cta {
  margin-top: 2rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 767px) {
  .rb-timeline {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 1rem;
  }

  .rb-timeline__vs {
    justify-self: center;
    margin: 0.15rem 0;
  }

  .rb-split,
  .rb-voices,
  .rb-story-grid,
  .rb-future {
    grid-template-columns: 1fr;
  }

  .rb-side--bl {
    border-right: none;
    border-bottom: 1px solid var(--rb-line);
  }

  .rb-round__meta {
    flex-direction: column;
    gap: 0.35rem;
    align-items: flex-start;
  }

  .rb-closing {
    padding: 1.6rem 1.15rem 1.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rb-timeline__card,
  .rb-story {
    transition: none;
  }

  .rb-timeline__card:hover {
    transform: none;
  }
}
