/**
 * Rawdah Booking — premium marketing design system
 * Ink + parchment + stone gold · 8px grid · Sora / Cairo
 */

:root {
  --rb-ink: #0b1220;
  --rb-ink-soft: #3a4556;
  --rb-paper: #f7f5f1;
  --rb-surface: #ffffff;
  --rb-mist: #efece6;
  --rb-gold: #c4a574;
  --rb-gold-deep: #9a7a4f;
  --rb-line: rgba(11, 18, 32, 0.1);
  --rb-muted: rgba(11, 18, 32, 0.62);
  --rb-success: #1f6b4a;
  --rb-danger: #a33b2a;
  --rb-radius: 8px;
  --rb-radius-lg: 12px;
  --rb-shadow: 0 1px 2px rgba(11, 18, 32, 0.06), 0 8px 24px rgba(11, 18, 32, 0.06);
  --rb-max: 70rem;
  --rb-font: "Sora", "Segoe UI", sans-serif;
  --rb-font-ar: "Cairo", "Segoe UI", Tahoma, sans-serif;
  --rb-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --rb-focus: 0 0 0 3px rgba(196, 165, 116, 0.35);
  --nusuk-gold: var(--rb-gold);
  --nusuk-gold-hover: var(--rb-gold-deep);
}

html[dir="rtl"] {
  --rb-font: var(--rb-font-ar);
}

html[dir="rtl"] body {
  font-family: var(--rb-font-ar);
}

html[dir="rtl"] .rb-hero__title {
  max-width: 18ch;
}

html[dir="rtl"] .rb-faq__btn svg {
  transform: scaleX(-1);
}

html[dir="rtl"] .rb-faq__btn[aria-expanded="true"] svg {
  transform: scaleX(-1) rotate(180deg);
}

html[dir="rtl"] .rb-lang__menu {
  inset-inline-end: 0;
  inset-inline-start: auto;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--rb-font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--rb-ink);
  background: var(--rb-paper);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--rb-gold-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--rb-ink);
}

:focus-visible {
  outline: none;
  box-shadow: var(--rb-focus);
}

.rb-skip {
  position: absolute;
  inset-inline-start: 1rem;
  top: -100px;
  z-index: 200;
  padding: 0.75rem 1rem;
  background: var(--rb-ink);
  color: #fff;
  border-radius: var(--rb-radius);
  text-decoration: none;
}

.rb-skip:focus {
  top: 1rem;
}

.rb-shell {
  width: min(100% - 2rem, var(--rb-max));
  margin-inline: auto;
}

/* ——— Buttons ——— */
.rb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  border-radius: var(--rb-radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.rb-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
}

.rb-btn--primary {
  background: var(--rb-gold);
  color: #fff !important;
  border-color: var(--rb-gold);
}

.rb-btn--primary:hover:not(:disabled) {
  background: var(--rb-gold-deep);
  border-color: var(--rb-gold-deep);
  color: #fff !important;
  transform: translateY(-1px);
}

.rb-btn--secondary {
  background: transparent;
  color: var(--rb-ink) !important;
  border-color: var(--rb-line);
}

.rb-btn--secondary:hover:not(:disabled) {
  border-color: var(--rb-ink-soft);
  color: var(--rb-ink) !important;
}

.rb-btn--ghost {
  background: transparent;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.35);
}

.rb-btn--ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  color: #fff !important;
}

.rb-btn--block {
  width: 100%;
}

.rb-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (max-width: 575px) {
  .rb-btn-row {
    flex-direction: column;
  }
  .rb-btn-row .rb-btn {
    width: 100%;
  }
}

/* ——— Nav ——— */
.rb-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(247, 245, 241, 0.88);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.rb-nav.is-scrolled {
  border-bottom-color: var(--rb-line);
  background: rgba(247, 245, 241, 0.94);
}

.rb-nav__inner {
  width: min(100% - 2rem, var(--rb-max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.rb-wordmark {
  display: inline-flex;
  align-items: center;
  text-decoration: none !important;
  line-height: 1.1;
}

.rb-wordmark-text {
  font-weight: 700;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  letter-spacing: -0.03em;
  color: var(--rb-ink);
  white-space: nowrap;
}

.rb-wordmark:hover .rb-wordmark-text {
  color: var(--rb-gold-deep);
}

.rb-nav__links {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

.rb-nav__links a {
  color: var(--rb-ink-soft);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.rb-nav__links a:hover {
  color: var(--rb-ink);
}

.rb-nav__tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rb-nav__cta {
  display: none;
}

.rb-lang {
  position: relative;
}

.rb-lang__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.5rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--rb-line);
  background: var(--rb-surface);
  color: var(--rb-ink);
  border-radius: var(--rb-radius);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.rb-lang__menu {
  display: none;
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 0.35rem);
  min-width: 11rem;
  max-height: 16rem;
  overflow: auto;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  background: var(--rb-surface);
  border: 1px solid var(--rb-line);
  border-radius: var(--rb-radius-lg);
  box-shadow: var(--rb-shadow);
  z-index: 120;
}

.rb-lang__menu.is-open {
  display: block;
}

.rb-lang__menu a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
  color: var(--rb-ink);
  text-decoration: none;
  font-size: 0.9rem;
}

.rb-lang__menu a:hover,
.rb-lang__menu a.is-active {
  background: var(--rb-mist);
}

.rb-nav__menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--rb-line);
  background: var(--rb-surface);
  color: var(--rb-ink);
  border-radius: var(--rb-radius);
  cursor: pointer;
  padding: 0;
}

.rb-nav__menu-btn svg {
  width: 1.15rem;
  height: 1.15rem;
}

.rb-nav__drawer {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 0 1.25rem;
  width: min(100% - 2rem, var(--rb-max));
  margin-inline: auto;
  border-top: 1px solid var(--rb-line);
}

.rb-nav__drawer.is-open {
  display: flex;
}

.rb-nav__drawer a {
  color: var(--rb-ink);
  text-decoration: none;
  font-weight: 500;
  padding: 0.75rem 0;
  min-height: 2.75rem;
  display: flex;
  align-items: center;
}

.rb-nav__drawer .rb-btn {
  margin-top: 0.5rem;
}

@media (min-width: 992px) {
  .rb-nav__links {
    display: flex;
  }
  .rb-nav__cta {
    display: inline-flex;
  }
  .rb-nav__menu-btn {
    display: none;
  }
  .rb-nav__drawer {
    display: none !important;
  }
}

/* ——— Hero ——— */
.rb-hero {
  position: relative;
  min-height: min(52svh, 28rem);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
}

.rb-hero__media {
  position: absolute;
  inset: 0;
  background-color: #0b1220;
  overflow: hidden;
}

.rb-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
}

.rb-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 18, 32, 0.22) 0%, rgba(11, 18, 32, 0.42) 40%, rgba(11, 18, 32, 0.9) 100%);
  pointer-events: none;
}

.rb-hero__media--fallback {
  background-image:
    radial-gradient(900px 500px at 20% 15%, rgba(196, 165, 116, 0.28), transparent 55%),
    linear-gradient(165deg, #152033 0%, #0b1220 55%, #070b14 100%);
}

.rb-hero__content {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--rb-max));
  margin: 0 auto;
  padding: 3.25rem 0 2.25rem;
}

.rb-hero__eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  animation: rb-rise 0.7s var(--rb-ease) both;
}

.rb-hero__brand {
  margin: 0 0 0.5rem;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.92);
  animation: rb-rise 0.7s var(--rb-ease) 0.05s both;
}

.rb-hero__title {
  max-width: 18ch;
  margin: 0 0 0.75rem;
  font-size: clamp(1.65rem, 3.6vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: #fff;
  animation: rb-rise 0.7s var(--rb-ease) 0.1s both;
}

.rb-hero__lead {
  max-width: 34rem;
  margin: 0 0 1.25rem;
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
  animation: rb-rise 0.7s var(--rb-ease) 0.18s both;
}

.rb-hero__actions {
  animation: rb-rise 0.7s var(--rb-ease) 0.26s both;
}

@media (max-width: 575px) {
  .rb-hero {
    min-height: min(58svh, 26rem);
  }

  .rb-hero__content {
    padding: 2.75rem 0 1.75rem;
  }
}

@keyframes rb-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .rb-hero__eyebrow,
  .rb-hero__brand,
  .rb-hero__title,
  .rb-hero__lead,
  .rb-hero__actions,
  .rb-reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ——— Sections ——— */
.rb-section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.rb-section--tint {
  background: var(--rb-mist);
}

.rb-section--ink {
  background: var(--rb-ink);
  color: rgba(255, 255, 255, 0.85);
}

.rb-section--ink .rb-section__head h2,
.rb-section--ink h2 {
  color: #fff;
}

.rb-section--ink .rb-section__head p,
.rb-section--ink p {
  color: rgba(255, 255, 255, 0.68);
}

.rb-section__head {
  max-width: 38rem;
  margin-bottom: 2.5rem;
}

.rb-section__head h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--rb-ink);
}

.rb-section__head p {
  margin: 0;
  color: var(--rb-muted);
  font-size: 1.05rem;
}

.rb-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s var(--rb-ease), transform 0.65s var(--rb-ease);
}

.rb-reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Problem / solution */
.rb-split {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 860px) {
  .rb-split {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

.rb-panel {
  background: var(--rb-surface);
  border: 1px solid var(--rb-line);
  border-radius: var(--rb-radius-lg);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  box-shadow: var(--rb-shadow);
}

.rb-panel h3 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.rb-panel p,
.rb-panel li {
  color: var(--rb-muted);
  margin: 0;
}

.rb-panel ul {
  margin: 0;
  padding-inline-start: 1.15rem;
  display: grid;
  gap: 0.5rem;
}

/* Feature cards */
.rb-features {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .rb-features {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1100px) {
  .rb-features {
    grid-template-columns: repeat(4, 1fr);
  }
}

.rb-feature {
  background: var(--rb-surface);
  border: 1px solid var(--rb-line);
  border-radius: var(--rb-radius-lg);
  padding: 1.5rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.rb-feature:hover {
  border-color: rgba(196, 165, 116, 0.45);
  transform: translateY(-2px);
}

.rb-feature__icon {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
  color: var(--rb-gold-deep);
}

.rb-feature__icon svg {
  width: 100%;
  height: 100%;
}

.rb-feature h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.rb-feature p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--rb-muted);
}

/* Steps */
.rb-steps {
  display: grid;
  gap: 1.25rem;
  counter-reset: rbstep;
}

@media (min-width: 900px) {
  .rb-steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
  .rb-steps--5 {
    grid-template-columns: repeat(5, 1fr);
  }
}

.rb-step {
  position: relative;
  padding: 1.25rem 0 0;
}

.rb-step::before {
  counter-increment: rbstep;
  content: counter(rbstep);
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: rgba(196, 165, 116, 0.15);
  color: var(--rb-gold-deep);
  font-size: 0.85rem;
  font-weight: 700;
}

.rb-step h3 {
  margin: 0 0 0.4rem;
  font-size: 1.02rem;
  font-weight: 600;
}

.rb-step p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--rb-muted);
}

.rb-section--tint .rb-step p {
  color: var(--rb-ink-soft);
}

/* Requirements */
.rb-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
  background: var(--rb-surface);
  border: 1px solid var(--rb-line);
  border-radius: var(--rb-radius-lg);
  overflow: hidden;
}

.rb-list li {
  display: grid;
  gap: 0.25rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--rb-line);
}

.rb-list li:last-child {
  border-bottom: 0;
}

@media (min-width: 720px) {
  .rb-list li {
    grid-template-columns: 12rem 1fr;
    gap: 1.5rem;
    align-items: baseline;
  }
}

.rb-list strong {
  font-weight: 600;
}

.rb-list span {
  color: var(--rb-muted);
  font-size: 0.95rem;
}

.rb-note {
  margin-top: 1.5rem;
  color: var(--rb-muted);
  font-size: 0.95rem;
}

.rb-note a {
  font-weight: 600;
}

/* Trust */
.rb-trust {
  display: grid;
  gap: 1rem;
}

@media (min-width: 800px) {
  .rb-trust {
    grid-template-columns: repeat(3, 1fr);
  }
}

.rb-trust__item {
  padding: 0.25rem 0;
}

.rb-trust__item h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.rb-trust__item p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--rb-muted);
}

/* FAQ */
.rb-faq {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rb-line);
}

.rb-faq__item {
  border-bottom: 1px solid var(--rb-line);
}

.rb-faq__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
  padding: 1.1rem 0;
  border: 0;
  background: transparent;
  color: var(--rb-ink);
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 600;
  text-align: start;
  cursor: pointer;
}

.rb-faq__btn svg {
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
  transition: transform 0.2s ease;
  color: var(--rb-gold-deep);
}

.rb-faq__btn[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.rb-faq__panel {
  display: none;
  padding: 0 0 1.15rem;
  color: var(--rb-muted);
}

.rb-faq__panel.is-open {
  display: block;
}

.rb-faq__panel p {
  margin: 0;
  max-width: 42rem;
}

/* Contact */
.rb-contact {
  display: grid;
  gap: 2rem;
}

@media (min-width: 960px) {
  .rb-contact {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3rem;
    align-items: start;
  }
}

.rb-contact__intro h1,
.rb-contact__intro h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  letter-spacing: -0.03em;
}

.rb-contact__intro p {
  color: var(--rb-muted);
  margin: 0 0 0.85rem;
}

.rb-contact__channels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1.25rem;
  font-size: 0.95rem;
}

.rb-contact__panel {
  background: var(--rb-surface);
  border: 1px solid var(--rb-line);
  border-radius: var(--rb-radius-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--rb-shadow);
}

.rb-contact__panel h2,
.rb-contact__panel h3 {
  margin: 0 0 1.25rem;
  font-size: 1.15rem;
}

.rb-field {
  margin-bottom: 1rem;
}

.rb-field label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--rb-ink-soft);
}

.rb-field .req {
  color: var(--rb-danger);
}

.rb-input,
.rb-select,
.rb-textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--rb-line);
  border-radius: var(--rb-radius);
  background: var(--rb-paper);
  color: var(--rb-ink);
  font-family: inherit;
  font-size: 1rem;
}

.rb-textarea {
  min-height: 7rem;
  resize: vertical;
}

.rb-input:focus,
.rb-select:focus,
.rb-textarea:focus {
  outline: none;
  border-color: var(--rb-gold);
  box-shadow: var(--rb-focus);
}

.rb-check {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin-bottom: 1rem;
  font-size: 0.92rem;
  color: var(--rb-ink-soft);
}

.rb-check input {
  margin-top: 0.3rem;
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--rb-gold-deep);
}

.rb-alert {
  display: none;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--rb-radius);
  border-inline-start: 3px solid;
  font-size: 0.95rem;
}

.rb-alert.is-visible {
  display: block;
}

.rb-alert--success {
  background: rgba(31, 107, 74, 0.08);
  border-color: var(--rb-success);
  color: var(--rb-success);
}

.rb-alert--danger {
  background: rgba(163, 59, 42, 0.08);
  border-color: var(--rb-danger);
  color: var(--rb-danger);
}

.form-anti-spam {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.rb-form-success {
  display: none;
  text-align: center;
  padding: 1.5rem 0.5rem;
}

.rb-form-success.is-visible {
  display: block;
}

.rb-form-success h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.rb-form-success p {
  margin: 0 0 1.25rem;
  color: var(--rb-muted);
}

/* CTA band */
.rb-cta-band {
  text-align: center;
}

.rb-cta-band h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  letter-spacing: -0.03em;
  color: #fff;
}

.rb-cta-band p {
  margin: 0 auto 1.5rem;
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.7);
}

.rb-cta-band .rb-btn-row {
  justify-content: center;
}

/* Page hero (inner) */
.rb-page-hero {
  padding: 4rem 0 2.5rem;
  border-bottom: 1px solid var(--rb-line);
  background:
    linear-gradient(135deg, rgba(196, 165, 116, 0.12), transparent 50%),
    var(--rb-paper);
}

.rb-page-hero h1 {
  margin: 0 0 0.75rem;
  max-width: 18ch;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: var(--rb-ink);
}

.rb-page-hero p {
  margin: 0;
  max-width: 40rem;
  color: var(--rb-muted);
  font-size: 1.05rem;
}

.rb-page-hero__eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--rb-gold-deep);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.rb-page-main {
  padding: 2.5rem 0 4rem;
}

/* Audience cards */
.rb-audience {
  display: grid;
  gap: 1rem;
}

@media (min-width: 800px) {
  .rb-audience {
    grid-template-columns: 1fr 1fr;
  }
}

.rb-audience__item {
  background: var(--rb-surface);
  border: 1px solid var(--rb-line);
  border-radius: var(--rb-radius-lg);
  padding: 1.5rem;
}

.rb-audience__item h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.rb-audience__item p {
  margin: 0;
  color: var(--rb-muted);
  font-size: 0.95rem;
}

.rb-callout {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--rb-radius-lg);
  border: 1px solid var(--rb-line);
  background: rgba(196, 165, 116, 0.08);
}

.rb-callout h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.rb-callout p {
  margin: 0;
  color: var(--rb-muted);
  font-size: 0.95rem;
}

/* 404 */
.rb-empty {
  padding: clamp(4rem, 12vw, 7rem) 0;
  text-align: center;
}

.rb-empty__code {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--rb-gold-deep);
}

.rb-empty h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.03em;
}

.rb-empty p {
  margin: 0 auto 1.75rem;
  max-width: 28rem;
  color: var(--rb-muted);
}

.rb-empty .rb-btn-row {
  justify-content: center;
}

/* Footer */
.rb-footer {
  background: var(--rb-ink);
  color: rgba(255, 255, 255, 0.7);
  padding: 3.5rem 0 2rem;
  margin-top: 0;
}

.rb-footer a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.rb-footer a:hover {
  color: var(--rb-gold);
}

.rb-footer .rb-wordmark-text {
  color: #fff;
}

.rb-footer__grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 800px) {
  .rb-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2rem;
  }
}

.rb-footer__brand p {
  margin: 0.85rem 0 0;
  font-size: 0.92rem;
  max-width: 22rem;
  color: rgba(255, 255, 255, 0.55);
}

.rb-footer__col h3 {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.rb-footer__col nav {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.rb-footer__col a {
  font-size: 0.92rem;
}

.rb-footer__bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
}

.rb-footer__copy {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}

.rb-footer__disclaimer {
  margin: 0;
  font-size: 0.85rem;
}

.rb-footer__disclaimer a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* Dark theme (OS preference / existing data-theme) */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) body {
    --rb-ink: #e8eef4;
    --rb-ink-soft: #c9d3de;
    --rb-paper: #0e1319;
    --rb-surface: #161d26;
    --rb-mist: #121820;
    --rb-muted: rgba(232, 238, 244, 0.65);
    --rb-line: rgba(232, 238, 244, 0.12);
    background: var(--rb-paper);
    color: var(--rb-ink);
  }

  html:not([data-theme="light"]) .rb-nav {
    background: rgba(14, 19, 25, 0.9);
  }

  html:not([data-theme="light"]) .rb-wordmark-text {
    color: #fff;
  }
}

[data-theme="dark"] body {
  --rb-ink: #e8eef4;
  --rb-ink-soft: #c9d3de;
  --rb-paper: #0e1319;
  --rb-surface: #161d26;
  --rb-mist: #121820;
  --rb-muted: rgba(232, 238, 244, 0.65);
  --rb-line: rgba(232, 238, 244, 0.12);
  background: var(--rb-paper);
  color: var(--rb-ink);
}

[data-theme="dark"] .rb-nav {
  background: rgba(14, 19, 25, 0.9);
}

[data-theme="dark"] .rb-wordmark-text {
  color: #fff;
}

/* ——— Legal / long-form content bridges (no Bootstrap) ——— */
.container {
  width: min(100% - 2rem, var(--rb-max));
  margin-inline: auto;
}

.terms-page,
.prose-page {
  max-width: 48rem;
  margin-inline: auto;
  padding: 2.5rem 1rem 4rem;
}

.terms-page h2,
.prose-page h2 {
  margin: 2rem 0 1rem;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.terms-list {
  margin: 0;
  padding-inline-start: 1.15rem;
}

.terms-list li {
  margin-bottom: 0.85rem;
  color: var(--rb-muted);
}

.text-muted,
.small {
  color: var(--rb-muted);
  font-size: 0.9rem;
}

.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 0.75rem !important; }
.mb-4 { margin-bottom: 1rem !important; }
.mb-5 { margin-bottom: 1.5rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.py-1 { padding-block: 0.25rem; }
.py-5 { padding-block: 2rem; }
.pb-4 { padding-bottom: 1rem; }
.ps-3 { padding-inline-start: 0.75rem; }
.text-center { text-align: center; }
.fw-semibold { font-weight: 600; }
.d-block { display: block; }
.d-flex { display: flex; }
.gap-3 { gap: 0.75rem; }
.flex-shrink-0 { flex-shrink: 0; }
.list-unstyled { list-style: none; padding: 0; margin: 0; }
.border-0 { border: 0 !important; }
.border-bottom { border-bottom: 1px solid var(--rb-line); }
.rounded-3 { border-radius: var(--rb-radius-lg); }
.mx-auto { margin-inline: auto; }
.position-relative { position: relative; }

.alert {
  padding: 1rem 1.15rem;
  border-radius: var(--rb-radius-lg);
  border: 1px solid var(--rb-line);
  background: var(--rb-surface);
  margin-bottom: 1rem;
}

.alert-warning {
  background: rgba(196, 165, 116, 0.12);
  border-color: rgba(196, 165, 116, 0.35);
}

.alert-secondary {
  background: var(--rb-mist);
}

.card {
  background: var(--rb-surface);
  border: 1px solid var(--rb-line);
  border-radius: var(--rb-radius-lg);
  box-shadow: var(--rb-shadow);
}

.card-body {
  padding: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--rb-radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
}

.btn-primary,
.btn-lg {
  background: var(--rb-gold);
  color: #fff !important;
  border-color: var(--rb-gold);
}

.btn-primary:hover {
  background: var(--rb-gold-deep);
  color: #fff !important;
}

.btn-outline-primary {
  background: transparent;
  color: var(--rb-ink) !important;
  border-color: var(--rb-line);
}

.hero-tagline {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--rb-gold-deep);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero-heading {
  margin: 0 0 0.75rem;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.hero-subtext,
.subtitle {
  margin: 0;
  max-width: 40rem;
  color: var(--rb-muted);
}

.justify-content-center { justify-content: center; }
.h4 { font-size: 1.25rem; }
.h5 { font-size: 1.1rem; }

[class*="bi-"] {
  display: none;
}

.row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .row.g-4,
  .row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .row {
    grid-template-columns: repeat(3, 1fr);
  }
}

.col,
.col-md-6,
.col-lg-3,
.col-lg-4,
.col-lg-5,
.col-lg-8 {
  min-width: 0;
}

.step-card,
.step-circle + h3 {
  margin-top: 0;
}

.step-card {
  background: var(--rb-surface);
  border: 1px solid var(--rb-line);
  border-radius: var(--rb-radius-lg);
  padding: 1.25rem;
  height: 100%;
}

.step-circle {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.85rem;
  border-radius: 999px;
  background: rgba(196, 165, 116, 0.15);
  color: var(--rb-gold-deep);
  font-size: 0.85rem;
  font-weight: 700;
}

.bg-light {
  background: var(--rb-mist) !important;
}

.border-light,
.border {
  border: 1px solid var(--rb-line) !important;
}

.alert-info {
  background: rgba(196, 165, 116, 0.1);
}

.px-4 { padding-inline: 1rem; }
.p-4 { padding: 1rem; }

@media (min-width: 992px) {
  .p-lg-5 { padding: 1.75rem; }
}

.section-title-border h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.03em;
}

.hero-section,
.hero-section-inner {
  padding: 4rem 0 2.5rem;
  border-bottom: 1px solid var(--rb-line);
  background:
    linear-gradient(135deg, rgba(196, 165, 116, 0.12), transparent 50%),
    var(--rb-paper);
}


