/* ==========================================================================
   Blue Collar Workflows — custom-workflows-first redesign
   Loaded after styles.css. New components use the rb- prefix so the
   existing Platform / Foreman / Subscription layouts keep working.
   ========================================================================== */

:root {
  --rb-ink: #0a1424;
  --rb-navy: #081b36;
  --rb-navy-2: #0d2547;
  --rb-blue: #005bd8;
  --rb-blue-bright: #2b7fff;
  --rb-steel: #5d6773;
  --rb-steel-light: #a9b3bf;
  --rb-paper: #f3f5f8;
  --rb-card: #ffffff;
  --rb-line: #d9dfe7;
  --rb-line-dark: rgba(255, 255, 255, 0.12);
  --rb-radius: 6px;
  --rb-display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --rb-body: "Barlow", Arial, Helvetica, sans-serif;
  --rb-max: 1180px;
  --rb-grid: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
             linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
}

body {
  font-family: var(--rb-body);
  font-size: 1.0625rem;
  color: var(--rb-ink);
  background: var(--rb-paper);
}

h1, h2, h3,
.rb-display {
  font-family: var(--rb-display);
  letter-spacing: 0.005em;
}

.rb-wrap {
  width: min(100% - clamp(36px, 8vw, 112px), var(--rb-max));
  margin-inline: auto;
}

.rb-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--rb-blue);
  font-family: var(--rb-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rb-eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  background: currentColor;
}

.rb-dark .rb-eyebrow,
.rb-hero .rb-eyebrow { color: var(--rb-blue-bright); }

/* ---------- Buttons ---------- */
.rb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 24px;
  border: 2px solid transparent;
  border-radius: var(--rb-radius);
  font-family: var(--rb-display);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.rb-btn:hover { transform: translateY(-1px); }

.rb-btn-primary { color: #fff; background: var(--rb-blue); }
.rb-btn-primary:hover { background: #0a4fb6; }

.rb-btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.rb-btn-ghost:hover { border-color: #fff; }

.rb-btn-outline { color: var(--rb-navy); border-color: var(--rb-navy); }
.rb-btn-outline:hover { color: #fff; background: var(--rb-navy); }

.rb-btn-arrow::after { content: "→"; font-family: var(--rb-body); }

.rb-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header ---------- */
.rb-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--rb-line);
  backdrop-filter: blur(12px);
}

.rb-header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 72px;
}

.rb-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--rb-navy);
  text-decoration: none;
  flex-shrink: 0;
}

.rb-brand img { width: 46px; height: 46px; object-fit: contain; }

.rb-brand span {
  display: grid;
  font-family: var(--rb-display);
  font-weight: 800;
  line-height: 0.9;
  text-transform: uppercase;
}

.rb-brand strong { font-size: 1.2rem; letter-spacing: 0.02em; }
.rb-brand em { color: var(--rb-blue); font-size: 1.32rem; font-style: normal; letter-spacing: 0.02em; }

.rb-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 30px);
  margin-left: auto;
}

.rb-nav a {
  position: relative;
  padding: 6px 0;
  color: var(--rb-navy);
  font-family: var(--rb-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.rb-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--rb-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease;
}

.rb-nav a:hover::after,
.rb-nav a[aria-current="page"]::after { transform: scaleX(1); }

.rb-nav a[aria-current="page"] { color: var(--rb-blue); }

.rb-header-actions { display: flex; align-items: center; gap: 18px; }

.rb-login {
  color: var(--rb-steel);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.rb-login:hover { color: var(--rb-navy); }

.rb-header .rb-btn { min-height: 42px; padding: 8px 18px; font-size: 0.98rem; }

.rb-nav-toggle,
.rb-nav-toggle-label { display: none; }

/* ---------- Hero ---------- */
.rb-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--rb-navy);
}

.rb-hero-photo {
  position: absolute;
  inset: 0;
  background: url("assets/workflow-consultant-branded-hat-gear-shirt.png") 72% center / cover no-repeat;
}

.rb-hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 27, 54, 0.98) 0%, rgba(8, 27, 54, 0.92) 36%, rgba(8, 27, 54, 0.35) 66%, rgba(8, 27, 54, 0.15) 100%),
    linear-gradient(0deg, rgba(8, 27, 54, 0.7) 0%, transparent 35%);
}

.rb-hero-inner {
  position: relative;
  padding: clamp(72px, 11vw, 140px) 0 clamp(64px, 8vw, 104px);
}

.rb-hero-copy { max-width: 720px; }

.rb-hero h1 {
  margin: 0 0 22px;
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  font-weight: 800;
  line-height: 0.95;
  text-transform: uppercase;
}

.rb-hero h1 span { color: var(--rb-blue-bright); display: block; }

.rb-hero-lead {
  max-width: 560px;
  margin: 0 0 30px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.08rem, 1.6vw, 1.22rem);
  line-height: 1.6;
}

.rb-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 40px 0 0;
  padding: 18px 0 0;
  list-style: none;
  border-top: 1px solid var(--rb-line-dark);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

.rb-hero-meta li { display: flex; align-items: center; gap: 8px; }
.rb-hero-meta li::before { content: "■"; color: var(--rb-blue-bright); font-size: 0.6rem; }

/* Interior page hero */
.rb-page-hero {
  position: relative;
  color: #fff;
  background-color: var(--rb-navy);
  background-image: var(--rb-grid);
  background-size: 32px 32px;
}

.rb-page-hero .rb-wrap { padding: clamp(64px, 9vw, 112px) 0 clamp(56px, 7vw, 88px); }

.rb-page-hero h1 {
  max-width: 900px;
  margin: 0 0 20px;
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  font-weight: 800;
  line-height: 0.96;
  text-transform: uppercase;
}

.rb-page-hero p.rb-lead {
  max-width: 700px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.2rem;
}

/* ---------- Sections ---------- */
.rb-section { padding: clamp(72px, 9vw, 120px) 0; }
.rb-section-tight { padding: clamp(48px, 6vw, 80px) 0; }
.rb-white { background: #fff; }

.rb-dark {
  color: #fff;
  background-color: var(--rb-navy);
  background-image: var(--rb-grid);
  background-size: 32px 32px;
}

.rb-head { max-width: 980px; margin-bottom: clamp(36px, 5vw, 56px); }
.rb-head p { max-width: 720px; }

.rb-head h2,
.rb-h2 {
  margin: 0 0 16px;
  color: var(--rb-navy);
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  font-weight: 800;
  line-height: 1;
}

.rb-dark .rb-head h2,
.rb-dark .rb-h2 { color: #fff; }

.rb-head p { margin: 0; color: var(--rb-steel); font-size: 1.15rem; }
.rb-dark .rb-head p { color: rgba(255, 255, 255, 0.75); }

/* ---------- Process (work order steps) ---------- */
.rb-process-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}

.rb-steps { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: step; }

.rb-step {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 22px;
  padding: 28px 0;
  border-top: 1px solid var(--rb-line);
  counter-increment: step;
}

.rb-step:last-child { border-bottom: 1px solid var(--rb-line); }

.rb-step::before {
  content: counter(step, decimal-leading-zero);
  color: var(--rb-blue);
  font-family: var(--rb-display);
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 0.85;
}

.rb-step h3 {
  margin: 0 0 8px;
  color: var(--rb-navy);
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
}

.rb-step p { margin: 0; color: var(--rb-steel); }

.rb-step-tag {
  display: inline-block;
  margin-bottom: 8px;
  padding: 2px 8px;
  color: var(--rb-steel);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--rb-line);
  border-radius: 3px;
}

.rb-step-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 16px;
}

.rb-step-detail div {
  padding: 14px 16px;
  background: var(--rb-paper);
  border-left: 3px solid var(--rb-blue);
}

.rb-step-detail strong {
  display: block;
  margin-bottom: 4px;
  color: var(--rb-navy);
  font-family: var(--rb-display);
  font-size: 0.92rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.rb-step-detail span { color: var(--rb-steel); font-size: 0.98rem; }

/* ---------- Estimate ticket (signature element) ---------- */
.rb-ticket {
  position: sticky;
  top: 104px;
  padding: 28px 28px 24px;
  background: #fffdf7;
  border: 1px solid #e3ddcc;
  border-top: 6px solid var(--rb-navy);
  border-radius: 4px;
  box-shadow: 0 24px 50px rgba(8, 27, 54, 0.14);
  transform: rotate(0.6deg);
  font-size: 0.98rem;
}

.rb-ticket::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 10px;
  background: radial-gradient(circle at 6px 0, transparent 5px, #fffdf7 5.5px) 0 0 / 12px 10px repeat-x;
}

.rb-ticket-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--rb-navy);
}

.rb-ticket-top strong {
  color: var(--rb-navy);
  font-family: var(--rb-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rb-ticket-top span {
  color: var(--rb-steel);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.82rem;
}

.rb-ticket-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed #d7d0bd;
}

.rb-ticket-row b {
  color: var(--rb-steel);
  font-family: var(--rb-display);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rb-ticket ul { margin: 0; padding: 0; list-style: none; }
.rb-ticket li { position: relative; padding-left: 22px; margin-bottom: 4px; }
.rb-ticket li::before { content: "✓"; position: absolute; left: 0; color: var(--rb-blue); font-weight: 800; }

.rb-ticket-sign {
  display: flex;
  align-items: end;
  gap: 12px;
  margin-top: 22px;
}

.rb-ticket-sign b {
  color: var(--rb-steel);
  font-family: var(--rb-display);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rb-ticket-sign span { flex: 1; height: 1px; margin-bottom: 5px; background: var(--rb-navy); }

.rb-ticket-note {
  margin: 18px 0 0;
  color: var(--rb-steel);
  font-size: 0.85rem;
  font-style: italic;
}

.rb-stamp {
  position: absolute;
  top: 70px;
  right: 18px;
  padding: 4px 10px;
  color: var(--rb-blue);
  font-family: var(--rb-display);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 2px solid var(--rb-blue);
  border-radius: 4px;
  opacity: 0.75;
  transform: rotate(-8deg);
}

/* ---------- Callout ---------- */
.rb-callout {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 32px;
  padding: 20px 24px;
  color: var(--rb-navy);
  background: #e8f0fd;
  border-left: 4px solid var(--rb-blue);
  font-weight: 600;
}

/* ---------- What we build grid ---------- */
.rb-build-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--rb-line-dark);
  border: 1px solid var(--rb-line-dark);
}

.rb-build-grid article {
  padding: 32px 28px;
  background: var(--rb-navy);
}

.rb-build-grid i {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  color: var(--rb-blue-bright);
  font-style: normal;
  font-size: 1.3rem;
  border: 1px solid rgba(43, 127, 255, 0.5);
  border-radius: 4px;
}

.rb-build-grid h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.05;
}

.rb-build-grid p { margin: 0; color: rgba(255, 255, 255, 0.72); }

.rb-build-foot {
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.1rem;
}

.rb-build-foot strong { color: #fff; }

/* ---------- Who it's for ---------- */
.rb-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
}

.rb-split p { color: var(--rb-steel); font-size: 1.12rem; }

.rb-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rb-chips li {
  padding: 10px 16px;
  color: var(--rb-navy);
  background: #fff;
  border: 1px solid var(--rb-line);
  border-radius: 4px;
  font-family: var(--rb-display);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- Principles ---------- */
.rb-principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.rb-principles article { padding-top: 22px; border-top: 3px solid var(--rb-navy); }

.rb-principles h3 {
  margin: 0 0 8px;
  color: var(--rb-navy);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
}

.rb-principles p { margin: 0; color: var(--rb-steel); }

/* ---------- Two sides of BCW ---------- */
.rb-sides {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 24px;
}

.rb-side {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 4vw, 44px);
  background: #fff;
  border: 1px solid var(--rb-line);
  border-radius: var(--rb-radius);
}

.rb-side-primary {
  color: #fff;
  background-color: var(--rb-navy);
  background-image: var(--rb-grid);
  background-size: 28px 28px;
  border-color: var(--rb-navy);
}

.rb-side-label {
  align-self: flex-start;
  margin-bottom: 18px;
  padding: 4px 10px;
  font-family: var(--rb-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 3px;
  color: var(--rb-steel);
  background: var(--rb-paper);
}

.rb-side-primary .rb-side-label { color: #fff; background: var(--rb-blue); }

.rb-side h3 {
  margin: 0 0 12px;
  color: var(--rb-navy);
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.rb-side-primary h3 { color: #fff; }
.rb-side p { margin: 0 0 18px; color: var(--rb-steel); }
.rb-side-primary p { color: rgba(255, 255, 255, 0.8); }

.rb-side ul { margin: 0 0 28px; padding: 0; list-style: none; }
.rb-side li { position: relative; padding: 6px 0 6px 24px; }
.rb-side li::before { content: "—"; position: absolute; left: 0; color: var(--rb-blue); font-weight: 800; }
.rb-side-primary li::before { color: var(--rb-blue-bright); }
.rb-side .rb-actions { margin-top: auto; }

.rb-price {
  margin: 0 0 20px;
  color: var(--rb-navy);
  font-family: var(--rb-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rb-price strong { font-size: 2.2rem; }

.rb-textlink {
  color: var(--rb-blue);
  font-weight: 700;
  text-decoration: none;
}

.rb-textlink:hover { text-decoration: underline; }

/* ---------- CTA band ---------- */
.rb-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 36px;
  align-items: center;
}

.rb-cta h2 {
  margin: 0 0 12px;
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 0.95;
  text-transform: uppercase;
}

.rb-cta p { max-width: 620px; margin: 0; color: rgba(255, 255, 255, 0.78); font-size: 1.15rem; }

.rb-cta-phone {
  display: block;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
  text-decoration: none;
}

.rb-cta-phone:hover { color: #fff; }

/* ---------- Deliverables & FAQ ---------- */
.rb-deliver {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rb-deliver li {
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--rb-line);
  border-radius: var(--rb-radius);
}

.rb-deliver strong {
  display: block;
  margin-bottom: 6px;
  color: var(--rb-navy);
  font-family: var(--rb-display);
  font-size: 1.35rem;
  text-transform: uppercase;
}

.rb-deliver span { color: var(--rb-steel); }

.rb-faq { max-width: 860px; }

.rb-faq details {
  border-top: 1px solid var(--rb-line);
}

.rb-faq details:last-child { border-bottom: 1px solid var(--rb-line); }

.rb-faq summary {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0;
  color: var(--rb-navy);
  font-family: var(--rb-display);
  font-size: 1.45rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.rb-faq summary::-webkit-details-marker { display: none; }
.rb-faq summary::after { content: "+"; color: var(--rb-blue); font-size: 1.6rem; line-height: 1; }
.rb-faq details[open] summary::after { content: "–"; }
.rb-faq details p { margin: 0 0 22px; max-width: 720px; color: var(--rb-steel); }

/* ---------- About ---------- */
.rb-story {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}

.rb-story img { width: 100%; border-radius: var(--rb-radius); box-shadow: 0 24px 50px rgba(8, 27, 54, 0.18); }
.rb-story-copy p { margin: 0 0 18px; color: #2c3743; font-size: 1.14rem; line-height: 1.75; }
.rb-story-copy .rb-pull {
  margin: 28px 0;
  padding-left: 22px;
  color: var(--rb-navy);
  font-family: var(--rb-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  border-left: 4px solid var(--rb-blue);
}

/* ---------- Contact / consultation helpers ---------- */
.rb-next-steps { margin: 26px 0 0; padding: 0; list-style: none; counter-reset: n; }
.rb-next-steps li {
  position: relative;
  padding: 0 0 16px 46px;
  counter-increment: n;
  color: var(--rb-steel);
}
.rb-next-steps li::before {
  content: counter(n);
  position: absolute;
  left: 0;
  top: -2px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #fff;
  background: var(--rb-navy);
  border-radius: 50%;
  font-family: var(--rb-display);
  font-weight: 700;
}
.rb-next-steps strong { display: block; color: var(--rb-navy); }

/* Legacy CTA button labels on product pages keep old styling; tone down legacy heroes' fonts */
.product-hero h1, .offer-hero h1, .subscription-hero h1, .page-hero h1 { font-family: var(--rb-display); }

/* ---------- Footer ---------- */
.rb-footer {
  color: rgba(255, 255, 255, 0.72);
  background: var(--rb-ink);
  font-size: 0.98rem;
}

.rb-footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 36px;
  padding: 64px 0 44px;
}

.rb-footer .rb-brand { color: #fff; }
.rb-footer .rb-brand em { color: var(--rb-blue-bright); }
.rb-footer-tag {
  margin: 16px 0 0;
  color: #fff;
  font-family: var(--rb-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rb-footer h4 {
  margin: 0 0 14px;
  color: #fff;
  font-family: var(--rb-display);
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rb-footer ul { margin: 0; padding: 0; list-style: none; }
.rb-footer li { margin-bottom: 8px; }
.rb-footer a { color: rgba(255, 255, 255, 0.72); text-decoration: none; }
.rb-footer a:hover { color: #fff; }

.rb-footer-social { display: inline-flex; align-items: center; gap: 8px; }
.rb-footer-social img { width: 22px; height: 22px; }

.rb-footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}

.rb-footer-bottom nav { display: flex; gap: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .rb-header-inner { flex-wrap: wrap; min-height: 66px; }
  .rb-nav-toggle-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    padding: 8px 12px;
    color: var(--rb-navy);
    font-family: var(--rb-display);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid var(--rb-line);
    border-radius: 4px;
    cursor: pointer;
  }
  .rb-nav,
  .rb-header-actions { display: none; width: 100%; }
  .rb-nav-toggle:checked ~ .rb-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin: 0;
    padding: 10px 0;
    border-top: 1px solid var(--rb-line);
  }
  .rb-nav-toggle:checked ~ .rb-header-actions { display: flex; padding: 0 0 18px; }
  .rb-process-layout,
  .rb-split,
  .rb-sides,
  .rb-story,
  .rb-cta { grid-template-columns: 1fr; }
  .rb-ticket { position: relative; top: 0; max-width: 520px; }
  .rb-build-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rb-footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .rb-hero-photo { background-position: 78% center; }
  .rb-hero-photo::after { background: linear-gradient(0deg, rgba(8, 27, 54, 0.97) 30%, rgba(8, 27, 54, 0.75) 100%); }
  .rb-build-grid,
  .rb-principles,
  .rb-deliver,
  .rb-step-detail,
  .rb-footer-top { grid-template-columns: 1fr; }
  .rb-step { grid-template-columns: 1fr; gap: 8px; }
  .rb-actions .rb-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .rb-btn, .rb-nav a::after { transition: none; }
}

/* ---------- Fixes ---------- */
.rb-nav a,
.rb-login,
.rb-header .rb-btn { white-space: nowrap; }
.rb-dark h2,
.rb-dark h3,
.rb-cta h2,
.rb-page-hero h1,
.rb-hero h1 { color: #fff; }
.consultation-form .form-field label { display: block; margin-bottom: 7px; }
.rb-build-feature { grid-column: span 2; background: var(--rb-navy-2) !important; }
.rb-build-tag { display: inline-block; margin: 0 0 14px; padding: 2px 8px; color: #fff; background: var(--rb-blue); font-family: var(--rb-display); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; border-radius: 3px; vertical-align: top; }
.rb-build-tag { display: table; }
.rb-build-feature p { max-width: 560px; }
@media (max-width: 680px) { .rb-build-feature { grid-column: auto; } }

/* ---------- Header & footer type: match the logo wordmark ---------- */
:root { --rb-brand-font: "Saira", "Barlow Condensed", Arial, sans-serif; }
.rb-brand span,
.rb-nav a,
.rb-nav-toggle-label,
.rb-header .rb-btn,
.rb-login,
.rb-footer h4,
.rb-footer-tag { font-family: var(--rb-brand-font); }
.rb-brand span { font-weight: 800; line-height: 0.95; }
.rb-brand strong { font-size: 1.08rem; letter-spacing: 0.01em; }
.rb-brand em { font-size: 1.14rem; font-weight: 800; letter-spacing: 0.01em; }
.rb-nav a { font-size: 0.86rem; font-weight: 700; letter-spacing: 0.04em; }
.rb-header .rb-btn { font-size: 0.86rem; font-weight: 700; letter-spacing: 0.04em; }
.rb-login { font-size: 0.86rem; }
.rb-footer h4 { font-size: 0.86rem; font-weight: 700; letter-spacing: 0.08em; }
.rb-footer-tag { font-size: 1.05rem; font-weight: 800; letter-spacing: 0.02em; }

/* ---------- Lighter header & footer type ---------- */
.rb-brand span { font-weight: 600; letter-spacing: 0.03em; }
.rb-brand strong { font-weight: 600; }
.rb-brand em { font-weight: 600; }
.rb-nav a { font-weight: 400; letter-spacing: 0.06em; }
.rb-nav a[aria-current="page"] { font-weight: 500; }
.rb-header .rb-btn { font-weight: 500; letter-spacing: 0.06em; }
.rb-login { font-weight: 400; }
.rb-footer h4 { font-weight: 500; letter-spacing: 0.1em; }
.rb-footer-tag { font-weight: 400; letter-spacing: 0.06em; }

/* ---------- Example project page ---------- */
.rb-disclaimer {
  display: inline-block;
  max-width: 700px;
  margin: 24px 0 0;
  padding: 12px 16px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.98rem;
  border: 1px dashed rgba(255, 255, 255, 0.35);
  border-radius: 4px;
}

.rb-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.rb-stats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 32px; }
.rb-stats div {
  padding: 24px 22px;
  background: var(--rb-paper);
  border-top: 4px solid var(--rb-blue);
  border-radius: 0 0 var(--rb-radius) var(--rb-radius);
}
.rb-section:not(.rb-white) .rb-stats div { background: #fff; }
.rb-stats strong {
  display: block;
  color: var(--rb-navy);
  font-family: var(--rb-display);
  font-size: clamp(2.2rem, 3.6vw, 3rem);
  font-weight: 800;
  line-height: 1;
}
.rb-stats span { display: block; margin-top: 10px; color: #2c3743; }
.rb-stats small { display: block; margin-top: 10px; color: var(--rb-steel); font-size: 0.82rem; }

.rb-table-wrap { overflow-x: auto; }
.rb-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--rb-line);
  font-size: 1rem;
}
.rb-table caption {
  padding: 0 0 12px;
  color: var(--rb-steel);
  font-family: var(--rb-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-align: left;
  text-transform: uppercase;
}
.rb-table th,
.rb-table td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rb-line); }
.rb-table thead th {
  color: var(--rb-steel);
  background: var(--rb-paper);
  font-family: var(--rb-display);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.rb-table tbody td:first-child { color: var(--rb-navy); font-weight: 600; }
.rb-table tfoot th,
.rb-table tfoot td { color: var(--rb-navy); background: #eef3fb; font-size: 1.08rem; border-bottom: 0; }
.rb-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rb-plus { color: #1d7a3d; font-weight: 600; }
.rb-minus { color: #9b2c2c; }
.rb-math { max-width: 760px; }

.rb-cost-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 24px;
}
.rb-cost-band div {
  padding: 24px;
  color: #fff;
  background: var(--rb-navy);
  border-radius: var(--rb-radius);
}
.rb-cost-band span { display: block; color: rgba(255, 255, 255, 0.72); }
.rb-cost-band strong { display: block; margin: 4px 0; font-family: var(--rb-display); font-size: 2.3rem; font-weight: 800; line-height: 1; }
.rb-cost-band p { grid-column: 1 / -1; margin: 0; color: var(--rb-steel); font-size: 0.92rem; }

.rb-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: flow;
}
.rb-flow li {
  position: relative;
  padding: 22px 20px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--rb-line-dark);
  border-radius: var(--rb-radius);
  counter-increment: flow;
}
.rb-flow li::before {
  content: counter(flow);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 12px;
  color: #fff;
  background: var(--rb-blue);
  border-radius: 50%;
  font-family: var(--rb-display);
  font-weight: 700;
}
.rb-flow b { display: block; color: #fff; font-family: var(--rb-display); font-size: 1.3rem; line-height: 1.1; }
.rb-flow span { display: block; margin-top: 6px; color: rgba(255, 255, 255, 0.7); font-size: 0.96rem; }

.rb-estimate-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.rb-terms { margin: 0; padding: 0; list-style: none; }
.rb-terms li { padding: 12px 0; color: var(--rb-steel); border-top: 1px solid var(--rb-line); }
.rb-terms b { color: var(--rb-navy); }

.rb-estimate {
  position: relative;
  padding: 28px;
  background: #fffdf7;
  border: 1px solid #e3ddcc;
  border-top: 6px solid var(--rb-navy);
  border-radius: 4px;
  box-shadow: 0 24px 50px rgba(8, 27, 54, 0.14);
}
.rb-estimate header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--rb-navy);
}
.rb-estimate header strong { color: var(--rb-navy); font-family: var(--rb-display); font-size: 1.6rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.rb-estimate header span { color: var(--rb-steel); font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.85rem; }
.rb-estimate-for { margin: 14px 0 6px; color: #2c3743; }
.rb-estimate table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.rb-estimate th,
.rb-estimate td { padding: 10px 0; text-align: left; border-bottom: 1px dashed #d7d0bd; }
.rb-estimate th { color: var(--rb-steel); font-family: var(--rb-display); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; }
.rb-estimate .num { padding-left: 14px; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rb-estimate tfoot td { color: var(--rb-navy); border-bottom: 2px solid var(--rb-navy); font-size: 1.1rem; }
.rb-estimate .rb-stamp { top: 64px; }

.rb-bars { display: grid; gap: 14px; margin: 0 0 36px; }
.rb-bar-row { display: grid; grid-template-columns: 70px 1fr 90px; gap: 14px; align-items: center; }
.rb-bar-row span { color: var(--rb-steel); font-family: var(--rb-display); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.rb-bar-row b { color: var(--rb-navy); font-family: var(--rb-display); font-size: 1.3rem; text-align: right; }
.rb-bar { height: 34px; background: #e3e8ef; border-radius: 4px; overflow: hidden; }
.rb-bar i { display: block; height: 100%; background: var(--rb-steel); }
.rb-bar-after .rb-bar i { background: var(--rb-blue); }

.rb-footnote { margin: 16px 0 0; color: var(--rb-steel); font-size: 0.95rem; }
.rb-split-top { align-items: start; }
.rb-price-light { color: #fff; }
.rb-price-light strong { color: #fff; }

.rb-sources h3 { margin: 0 0 12px; color: var(--rb-navy); font-size: 1.4rem; }
.rb-sources ul { margin: 0; padding-left: 20px; color: var(--rb-steel); font-size: 0.95rem; }
.rb-sources li { margin-bottom: 6px; }
.rb-sources a { color: var(--rb-blue); }

/* Example-project promo band */
.rb-promo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: clamp(24px, 4vw, 40px);
  background: #fff;
  border: 1px solid var(--rb-line);
  border-left: 6px solid var(--rb-blue);
  border-radius: var(--rb-radius);
}
.rb-promo h3 { margin: 0 0 6px; color: var(--rb-navy); font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 800; line-height: 1.05; }
.rb-promo p { margin: 0; color: var(--rb-steel); }

@media (max-width: 1120px) {
  .rb-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rb-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rb-estimate-layout,
  .rb-promo { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .rb-stats,
  .rb-stats-3,
  .rb-flow,
  .rb-cost-band { grid-template-columns: 1fr; }
  .rb-bar-row { grid-template-columns: 56px 1fr 72px; }
}
.rb-dark .rb-side-primary { background-color: var(--rb-navy-2); border-color: rgba(43, 127, 255, 0.55); }
.rb-estimate .rb-stamp { top: -16px; right: 18px; background: #fffdf7; opacity: 1; }
@media (max-width: 680px) {
  .rb-table-tasks thead th:nth-child(2),
  .rb-table-tasks tbody td:nth-child(2) { display: none; }
  .rb-table th, .rb-table td { padding: 12px 10px; }
  .rb-table caption { font-size: 0.85rem; }
}


/* ==========================================================================
   Feedback revisions (Nov 2026)
   ========================================================================== */

/* Headlines: break lines evenly instead of leaving one word hanging */
h1, h2, h3 { text-wrap: balance; }

/* Keep anchored sections clear of the sticky header */
[id] { scroll-margin-top: 96px; }

/* ---------- Nav dropdowns ---------- */
.rb-nav-group { position: relative; display: flex; align-items: center; }
.rb-nav-parent::before {
  content: "";
  position: absolute;
  right: -13px;
  top: 50%;
  width: 0;
  height: 0;
  margin-top: -2px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.6;
}
.rb-nav-group .rb-nav-parent { margin-right: 10px; }
.rb-nav-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: -18px;
  z-index: 30;
  min-width: 240px;
  padding-top: 14px;
}
.rb-nav-menu::before {
  content: "";
  position: absolute;
  inset: 14px 0 0;
  background: #fff;
  border: 1px solid var(--rb-line);
  border-top: 3px solid var(--rb-blue);
  border-radius: 0 0 var(--rb-radius) var(--rb-radius);
  box-shadow: 0 18px 40px rgba(8, 27, 54, 0.14);
}
.rb-nav-menu a {
  position: relative;
  display: block;
  padding: 11px 18px;
  white-space: nowrap;
}
.rb-nav-menu a:first-child { margin-top: 6px; }
.rb-nav-menu a:last-child { margin-bottom: 6px; }
.rb-nav-menu a::after { display: none; }
.rb-nav-menu a:hover { color: var(--rb-blue); background: var(--rb-paper); }
.rb-nav-group:hover .rb-nav-menu,
.rb-nav-group:focus-within .rb-nav-menu { display: block; }

@media (max-width: 1120px) {
  .rb-nav-group { display: block; width: 100%; }
  .rb-nav-group .rb-nav-parent { margin-right: 0; }
  .rb-nav-parent::before { display: none; }
  .rb-nav-menu { display: block; position: static; min-width: 0; padding: 0 0 6px 16px; }
  .rb-nav-menu::before { display: none; }
  .rb-nav-menu a { padding: 5px 0; color: var(--rb-steel); font-size: 0.8rem; }
  .rb-nav-menu a:first-child, .rb-nav-menu a:last-child { margin: 0; }
  .rb-nav-menu a:hover { background: none; }
}

/* ---------- "What we build" cards that link to the details ---------- */
.rb-build-grid > a {
  display: block;
  padding: 32px 28px;
  color: inherit;
  background: var(--rb-navy);
  text-decoration: none;
  transition: background 0.15s ease;
}
.rb-build-grid > a:hover { background: var(--rb-navy-2); }
.rb-build-grid > a.rb-build-feature:hover { background: #12305a !important; }
.rb-build-more {
  display: inline-block;
  margin-top: 16px;
  color: var(--rb-blue-bright);
  font-family: var(--rb-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.rb-build-more::after { content: " →"; font-family: var(--rb-body); }

/* ---------- Plain list of business types (not buttons) ---------- */
.rb-typelist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rb-typelist li {
  position: relative;
  padding: 12px 0 12px 24px;
  color: var(--rb-navy);
  border-bottom: 1px solid var(--rb-line);
  font-size: 1.08rem;
  font-weight: 600;
}
.rb-typelist li::before { content: "—"; position: absolute; left: 0; color: var(--rb-blue); font-weight: 800; }
@media (max-width: 680px) { .rb-typelist { grid-template-columns: 1fr; } }

/* ---------- Common first fixes: real links ---------- */
.rb-chips li:has(> a) { padding: 0; border: 0; background: none; }
.rb-chips a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  color: var(--rb-navy);
  background: #fff;
  border: 1px solid var(--rb-line);
  border-radius: 4px;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.rb-chips a::after { content: "→"; color: var(--rb-blue); font-family: var(--rb-body); }
.rb-chips a:hover { color: var(--rb-blue); border-color: var(--rb-blue); }

@media (prefers-reduced-motion: reduce) {
  .rb-build-grid > a, .rb-chips a { transition: none; }
}

.rb-step p + p { margin-top: 10px; }


/* ---------- About: founder photo ---------- */
.rb-founder { margin: 0; }
.rb-founder img { display: block; height: auto; }
.rb-founder figcaption { margin-top: 16px; color: var(--rb-steel); font-size: 1rem; }
.rb-founder figcaption strong {
  display: block;
  color: var(--rb-navy);
  font-family: var(--rb-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
@media (max-width: 1120px) { .rb-founder { max-width: 420px; } }


/* ---------- Split hero: copy left, framed photo right ---------- */
.rb-hero-split {
  background-color: var(--rb-navy);
  background-image: var(--rb-grid);
  background-size: 32px 32px;
}
.rb-hero-split .rb-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
  padding: clamp(56px, 8vw, 104px) 0 clamp(56px, 7vw, 88px);
}
.rb-hero-split .rb-hero-copy { max-width: none; }
.rb-hero-split h1 { font-size: clamp(2.5rem, 4.2vw, 3.8rem); }
.rb-hero-split .rb-hero-meta { margin-top: 32px; }
.rb-hero-figure { margin: 0; }
.rb-hero-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--rb-radius);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}
.rb-hero-figure figcaption {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.95rem;
}
.rb-hero-figure figcaption a { color: #fff; font-weight: 600; }
@media (max-width: 1120px) {
  .rb-hero-split .rb-hero-inner { grid-template-columns: 1fr; }
  .rb-hero-figure { max-width: 760px; }
}
