/* =========================================================
   Revomart root homepage — master brand entrance
   Isolated from authenticated-area / Marketplace shared CSS.
   ========================================================= */

:root {
  --rh-navy: #0e1a2b;
  --rh-navy-mid: #162538;
  --rh-charcoal: #1b2430;
  --rh-graphite: #2a3544;
  --rh-fog: #f4f6f8;
  --rh-paper: #fbfcfd;
  --rh-ink: #121820;
  --rh-muted: #5c6b7a;
  --rh-line: rgba(255, 255, 255, 0.14);
  --rh-line-dark: #e4e9ef;
  --rh-gold: #b8944f;
  --rh-gold-soft: #c9a86a;
  --rh-max: 1440px;
  --rh-header: 84px;
  --rh-sans: "IBM Plex Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --rh-serif: "IBM Plex Serif", "Songti SC", "Noto Serif SC", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

body.root-home {
  margin: 0;
  color: var(--rh-ink);
  background: var(--rh-paper);
  font-family: var(--rh-sans);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.rh-wrap {
  width: min(100% - 48px, var(--rh-max));
  margin-inline: auto;
}

.rh-accent {
  color: var(--rh-gold-soft);
}

/* ---------- Header (proportioned to mature public pages) ---------- */
.rh-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--rh-header);
  background: rgba(14, 26, 43, 0.94);
  border-bottom: 1px solid var(--rh-line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.rh-header-inner {
  height: 100%;
  width: min(100% - 48px, var(--rh-max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.rh-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  color: #fff;
}

.rh-brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 0;
  display: block;
  background: none;
  border: 0;
  padding: 0;
  object-fit: contain;
  flex-shrink: 0;
}

.rh-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}

.rh-brand-text strong {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rh-brand-text span {
  margin-top: 3px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.62);
  letter-spacing: 0.08em;
}

.rh-drawer {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.rh-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.rh-nav a {
  color: rgba(255, 255, 255, 0.76);
  font-size: 17px;
  font-weight: 500;
  line-height: 1;
  transition: color 0.2s ease;
}

.rh-nav a:hover,
.rh-nav a:focus-visible {
  color: #fff;
}

.rh-nav a[aria-current="page"] {
  color: #fff;
}

.rh-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.rh-btn:focus-visible {
  outline: 2px solid var(--rh-gold);
  outline-offset: 2px;
}

.rh-btn-ghost {
  color: rgba(255, 255, 255, 0.9);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.22);
}

.rh-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
}

.rh-btn-solid {
  color: var(--rh-navy);
  background: #fff;
}

.rh-btn-solid:hover {
  background: #f2f4f7;
}

.rh-user-email {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
  color: rgba(255, 255, 255, 0.58);
}

.rh-account-btn {
  flex: 0 0 auto;
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  padding: 0 17px;
  border-radius: 10px;
  background: #e8edf3;
  color: #142033;
  font-size: 16px;
  font-weight: 600;
  border: 1px solid #d5dce6;
  box-shadow: none;
}

.rh-account-btn:hover,
.rh-account-btn:focus-visible {
  background: #dce3eb;
  color: #142033;
  border-color: #c9d2de;
}

.rh-btn-gold {
  color: #fff;
  background: linear-gradient(180deg, #c4a36a, #a8843f);
  border-color: transparent;
}

.rh-btn-gold:hover {
  filter: brightness(1.05);
}

.rh-btn-muted {
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  cursor: not-allowed;
}

.rh-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.rh-nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 5px auto;
  background: #fff;
}

/* ---------- Hero (compressed, content-up) ---------- */
.rh-hero {
  position: relative;
  /* Intentionally NOT 100vh — institutional first screen, not poster */
  min-height: 0;
  display: flex;
  align-items: stretch;
  color: #fff;
  background: var(--rh-navy);
  overflow: hidden;
}

.rh-hero-media {
  position: absolute;
  inset: 0;
}

.rh-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
  transform: scale(1.03);
}

.rh-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 14, 24, 0.9) 0%, rgba(8, 14, 24, 0.68) 42%, rgba(8, 14, 24, 0.42) 100%),
    linear-gradient(180deg, rgba(8, 14, 24, 0.35) 0%, rgba(8, 14, 24, 0.45) 40%, rgba(8, 14, 24, 0.88) 100%);
}

.rh-hero-inner {
  position: relative;
  z-index: 1;
  width: min(100% - 48px, var(--rh-max));
  margin: 0 auto;
  padding: 18px 0 22px;
  display: grid;
  gap: 16px;
  align-content: start;
}

.rh-hero-copy {
  max-width: 62rem;
}

.rh-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.rh-kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--rh-gold);
}

.rh-hero h1 {
  margin: 0;
  max-width: none;
  font-family: var(--rh-serif);
  font-size: clamp(32px, 2.1vw + 16px, 50px);
  font-weight: 600;
  line-height: 1.26;
  letter-spacing: 0.005em;
}

.rh-title-line {
  display: inline;
}

/* Desktop: two balanced lines; prevent mid-phrase wrap */
@media (min-width: 960px) {
  .rh-title-line {
    display: block;
    white-space: nowrap;
  }

  .rh-hero h1 {
    max-width: none;
  }
}

.rh-hero-lead {
  margin: 12px 0 0;
  max-width: 48rem;
  font-size: clamp(17px, 0.4vw + 16px, 20px);
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.62;
}

.rh-chain {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 12px;
  align-items: center;
  font-size: clamp(18px, 1.2vw, 22px);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.78);
}

.rh-chain span {
  color: var(--rh-gold-soft);
}

.rh-chain i {
  font-style: normal;
  opacity: 0.45;
}

.rh-paths {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.rh-path {
  padding: 16px 18px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rh-path-num {
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--rh-gold-soft);
  font-weight: 600;
}

.rh-path h2 {
  margin: 0;
  font-size: clamp(24px, 1.5vw + 12px, 28px);
  font-weight: 700;
  line-height: 1.28;
}

.rh-path p {
  margin: 0;
  flex: 1;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.58;
}

.rh-path .rh-btn {
  align-self: flex-start;
  margin-top: 2px;
}

.rh-path-note {
  margin: 0;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.58);
}

.rh-path-label {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rh-gold-soft);
}

.rh-path.is-primary {
  border-color: rgba(212, 175, 106, 0.42);
  background: rgba(255, 255, 255, 0.08);
}

.rh-final-card .rh-path-label {
  color: var(--rh-gold-soft);
  margin-bottom: 4px;
}

/* ---------- Two ways ---------- */
.rh-ways {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.rh-way {
  padding: 22px 20px;
  border: 1px solid var(--rh-line-dark);
  border-radius: 4px;
  background: #fff;
}

.rh-way-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rh-gold);
}

.rh-way h3 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--rh-ink);
}

.rh-way p {
  margin: 0 0 14px;
  color: var(--rh-muted);
  font-size: 16px;
  line-height: 1.58;
}

.rh-way a {
  font-size: 14px;
  font-weight: 650;
  color: var(--rh-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rh-gold);
  padding-bottom: 2px;
}

.rh-way a:hover,
.rh-way a:focus-visible {
  color: var(--rh-gold);
  outline: none;
}

/* ---------- System model ---------- */
.rh-model {
  margin: 8px 0 22px;
  padding: 18px 20px;
  border: 1px solid var(--rh-line-dark);
  border-radius: 4px;
  background: #fff;
}

.rh-model-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 10px;
  margin-bottom: 10px;
}

.rh-model-row.is-center {
  margin-bottom: 12px;
}

.rh-model-node {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 6px 14px;
  border: 1px solid var(--rh-line-dark);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--rh-ink);
  background: var(--rh-fog);
}

.rh-model-node.is-core {
  background: var(--rh-ink);
  color: #fff;
  border-color: var(--rh-ink);
  min-width: 4.5rem;
}

.rh-model-node.is-source {
  background: #fff;
}

.rh-model-node.is-future {
  opacity: 0.72;
  border-style: dashed;
}

.rh-model-arrow {
  color: var(--rh-muted);
  font-size: 16px;
}

.rh-model-note {
  margin: 0;
  text-align: center;
  font-size: 14px;
  color: var(--rh-muted);
  line-height: 1.5;
}

.rh-system.is-future {
  background: #fafbfc;
}

.rh-future-badge {
  margin: 8px 0 0 !important;
  display: inline-block;
  font-size: 12px !important;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rh-gold) !important;
}

/* ---------- Shared sections ---------- */
.rh-section {
  padding: 40px 0;
}

.rh-section-compact {
  padding: 36px 0;
}

.rh-section-fog {
  background: var(--rh-fog);
}

.rh-eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rh-gold);
}

.rh-section h2,
.rh-band h2 {
  margin: 0;
  max-width: 22ch;
  font-family: var(--rh-serif);
  font-size: clamp(30px, 2vw + 14px, 40px);
  font-weight: 600;
  line-height: 1.22;
}

.rh-section-lead {
  margin: 10px 0 0;
  max-width: 48rem;
  color: var(--rh-muted);
  font-size: 18px;
  line-height: 1.62;
}

.rh-lead-light {
  color: rgba(255, 255, 255, 0.72);
}

.rh-head {
  margin-bottom: 20px;
}

/* ---------- Photographic bands ---------- */
.rh-band {
  position: relative;
  color: #fff;
  overflow: hidden;
  background: var(--rh-navy);
}

.rh-band-media {
  position: absolute;
  inset: 0;
}

.rh-band-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rh-band-towers .rh-band-media img {
  object-position: center 35%;
}

.rh-band-vault .rh-band-media img {
  object-position: center 45%;
}

.rh-band-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 14, 24, 0.88) 0%, rgba(8, 14, 24, 0.72) 55%, rgba(8, 14, 24, 0.55) 100%),
    linear-gradient(180deg, rgba(8, 14, 24, 0.35) 0%, rgba(8, 14, 24, 0.82) 100%);
}

.rh-band-inner {
  position: relative;
  z-index: 1;
  padding: 36px 0;
}

.rh-band .rh-eyebrow {
  color: var(--rh-gold-soft);
}

/* ---------- Trust journey timeline (section 02) ---------- */
.rh-trust-band .rh-band-media::after {
  background:
    linear-gradient(90deg, rgba(8, 14, 24, 0.86) 0%, rgba(8, 14, 24, 0.62) 48%, rgba(8, 14, 24, 0.48) 100%),
    linear-gradient(180deg, rgba(8, 14, 24, 0.42) 0%, rgba(8, 14, 24, 0.78) 100%);
}

.rh-trust-band .rh-band-inner {
  padding: 48px 0 44px;
}

.rh-trust-intro {
  max-width: 46rem;
  margin-bottom: 36px;
}

.rh-trust-band h2 {
  max-width: 16ch;
  font-size: clamp(32px, 2.6vw + 12px, 46px);
  line-height: 1.28;
}

.rh-trust-intro .rh-section-lead {
  margin-top: 14px;
  max-width: 40rem;
  font-size: clamp(17px, 0.45vw + 15px, 19px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
}

.rh-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns:
    minmax(0, 0.9fr)
    minmax(0, 0.95fr)
    minmax(0, 1.15fr)
    minmax(0, 1.2fr)
    minmax(0, 1.05fr);
  gap: 0;
  position: relative;
  align-items: start;
}

/* Continuous horizontal line through nodes */
.rh-timeline::before {
  content: "";
  position: absolute;
  left: 0.55rem;
  right: 0.55rem;
  top: 0.55rem;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(184, 148, 79, 0.25) 0%,
    rgba(201, 168, 106, 0.7) 35%,
    rgba(201, 168, 106, 0.95) 55%,
    rgba(201, 168, 106, 0.55) 100%
  );
  pointer-events: none;
}

.rh-tl-stage {
  position: relative;
  padding: 2rem 1rem 0 0;
  min-width: 0;
}

.rh-tl-stage:last-child {
  padding-right: 0;
}

.rh-tl-node {
  position: absolute;
  top: 0.2rem;
  left: 0.35rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--rh-gold-soft);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 0 3px rgba(14, 26, 43, 0.55);
  z-index: 1;
}

.rh-tl-stage.is-core .rh-tl-node {
  width: 0.85rem;
  height: 0.85rem;
  top: 0.12rem;
  left: 0.28rem;
  background: #d4b06a;
  box-shadow:
    0 0 0 3px rgba(14, 26, 43, 0.55),
    0 0 0 6px rgba(201, 168, 106, 0.18);
}

.rh-tl-stage.is-vault .rh-tl-node {
  width: 1.05rem;
  height: 1.05rem;
  top: 0.02rem;
  left: 0.18rem;
  background: transparent;
  border: 2px solid var(--rh-gold-soft);
  box-shadow:
    0 0 0 3px rgba(14, 26, 43, 0.5),
    0 0 18px rgba(201, 168, 106, 0.35);
}

.rh-tl-stage.is-vault .rh-tl-node::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--rh-gold-soft);
}

.rh-tl-num {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--rh-gold-soft);
}

.rh-tl-title {
  margin: 0 0 10px;
  font-size: clamp(20px, 1.1vw + 14px, 25px);
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
}

.rh-tl-stage.is-core .rh-tl-title {
  font-size: clamp(21px, 1.2vw + 14px, 26px);
  color: #fff;
}

.rh-tl-stage.is-vault .rh-tl-title {
  color: var(--rh-gold-soft);
  font-size: clamp(21px, 1.2vw + 14px, 26px);
}

.rh-tl-desc {
  margin: 0;
  max-width: 18rem;
  font-size: clamp(15px, 0.35vw + 14px, 17px);
  line-height: 1.65;
  color: rgba(220, 226, 234, 0.72);
}

.rh-tl-stage.is-core .rh-tl-desc {
  color: rgba(235, 239, 245, 0.82);
}

/* ---------- Systems ---------- */
.rh-systems {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.rh-system {
  padding: 20px 18px;
  border: 1px solid var(--rh-line-dark);
  border-radius: 4px;
  background: #fff;
}

.rh-system .rh-btn {
  margin-top: 14px;
}

.rh-system-label {
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rh-gold);
  font-weight: 600;
}

.rh-system h3 {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
}

.rh-system-tag {
  margin: 0 0 10px;
  font-size: 17px;
  color: var(--rh-ink);
  font-weight: 600;
}

.rh-system p {
  margin: 0 0 10px;
  color: var(--rh-muted);
  font-size: 17px;
  line-height: 1.58;
}

.rh-system ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rh-system li {
  font-size: 16px;
  color: var(--rh-muted);
  padding-left: 14px;
  position: relative;
  line-height: 1.5;
}

.rh-system li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 1px;
  background: var(--rh-gold);
}

.rh-institution {
  margin: 20px 0 0;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  background: var(--rh-charcoal);
  max-height: 220px;
}

.rh-institution img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center 40%;
  opacity: 0.88;
}

.rh-institution figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 18px;
  background: linear-gradient(transparent, rgba(8, 14, 24, 0.88));
  color: rgba(255, 255, 255, 0.88);
  font-size: 16px;
}

/* ---------- Journey + audience ---------- */
.rh-split {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.9fr);
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
}

.rh-split-note {
  margin: 0;
  padding: 14px 16px;
  border-left: 2px solid var(--rh-gold);
  color: var(--rh-ink);
  font-size: 18px;
  line-height: 1.55;
  background: rgba(255, 255, 255, 0.65);
}

.rh-journey {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.rh-step {
  padding: 12px 10px;
  border-top: 2px solid var(--rh-gold);
  background: #fff;
  border-right: 1px solid var(--rh-line-dark);
  min-height: 78px;
}

.rh-step:last-child {
  border-right: 0;
}

.rh-step strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rh-gold);
}

.rh-step span {
  font-size: 16px;
  font-weight: 600;
  color: var(--rh-ink);
  line-height: 1.35;
}

.rh-audience {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.rh-person {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  min-height: 190px;
  background: var(--rh-charcoal);
  color: #fff;
}

.rh-person img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 190px;
  opacity: 0.72;
}

.rh-person-copy {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px 16px;
  background: linear-gradient(transparent, rgba(8, 14, 24, 0.9));
}

.rh-person h3 {
  margin: 0 0 4px;
  font-size: 22px;
  line-height: 1.25;
}

.rh-person p {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
}

/* ---------- Final CTA ---------- */
.rh-final .rh-band-inner {
  text-align: center;
}

.rh-final h2 {
  max-width: none;
  margin-inline: auto;
}

.rh-final .rh-section-lead {
  margin-inline: auto;
}

.rh-final-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 400px));
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
  text-align: left;
}

.rh-final-card {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
}

.rh-final-card h3 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.3;
}

.rh-final-card p {
  margin: 0 0 12px;
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}

/* ---------- Footer ---------- */
.rh-footer {
  background: #0a121d;
  color: rgba(255, 255, 255, 0.7);
  padding: 24px 0 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.rh-footer-top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.rh-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  font-size: 16px;
}

.rh-footer-links a:hover {
  color: #fff;
}

.rh-footer-bottom {
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 16px;
  line-height: 1.5;
}

.rh-footer-brand {
  color: #fff;
  font-weight: 700;
  font-size: 18px;
}

/* ---------- Motion ---------- */
.rh-reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.rh-reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .rh-reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  :root {
    --rh-max: 1120px;
  }
}

@media (max-width: 980px) {
  .rh-paths,
  .rh-systems,
  .rh-ways,
  .rh-audience,
  .rh-split,
  .rh-final-actions {
    grid-template-columns: 1fr;
  }

  .rh-journey {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .rh-step:nth-child(4) {
    border-right: 0;
  }

  /* Vertical trust timeline */
  .rh-timeline {
    grid-template-columns: 1fr;
    gap: 0;
    padding-left: 0.2rem;
  }

  .rh-timeline::before {
    left: 0.55rem;
    right: auto;
    top: 0.55rem;
    bottom: 1.2rem;
    width: 1px;
    height: auto;
    background: linear-gradient(
      180deg,
      rgba(184, 148, 79, 0.3) 0%,
      rgba(201, 168, 106, 0.85) 45%,
      rgba(201, 168, 106, 0.55) 100%
    );
  }

  .rh-tl-stage {
    padding: 0 0 28px 2rem;
  }

  .rh-tl-stage:last-child {
    padding-bottom: 0;
  }

  .rh-tl-desc {
    max-width: none;
  }

  .rh-trust-band .rh-band-inner {
    padding: 40px 0 36px;
  }

  .rh-trust-intro {
    margin-bottom: 28px;
  }
}

@media (max-width: 900px) {
  .rh-nav-toggle {
    display: inline-block;
    margin-left: auto;
  }

  .rh-drawer {
    display: none;
    position: absolute;
    top: var(--rh-header);
    left: 0;
    right: 0;
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px 24px 20px;
    background: rgba(14, 26, 43, 0.98);
    border-bottom: 1px solid var(--rh-line);
  }

  .rh-header.is-open .rh-drawer {
    display: flex;
  }

  .rh-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .rh-nav a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .rh-actions {
    margin-top: 4px;
  }

  .rh-hero-inner {
    padding: 20px 0 22px;
  }

  .rh-journey {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rh-step {
    border-right: 0;
    border-bottom: 1px solid var(--rh-line-dark);
    min-height: 84px;
  }
}

@media (max-width: 520px) {
  :root {
    --rh-header: 72px;
  }

  body.root-home {
    font-size: 16px;
  }

  .rh-wrap,
  .rh-header-inner,
  .rh-hero-inner {
    width: min(100% - 28px, var(--rh-max));
  }

  .rh-brand-mark {
    width: 38px;
    height: 38px;
    font-size: 17px;
  }

  .rh-brand-text strong {
    font-size: 17px;
  }

  .rh-nav a,
  .rh-btn {
    font-size: 16px;
  }

  .rh-hero h1 {
    font-size: 32px;
    line-height: 1.28;
  }

  .rh-hero-lead,
  .rh-section-lead,
  .rh-path p,
  .rh-system p,
  .rh-person p,
  .rh-final-card p {
    font-size: 16px;
  }

  .rh-path h2,
  .rh-final-card h3 {
    font-size: 22px;
  }

  .rh-system h3 {
    font-size: 22px;
  }

  .rh-chain {
    font-size: 16px;
  }

  .rh-path,
  .rh-system,
  .rh-final-card {
    padding: 14px;
  }

  .rh-actions .rh-btn {
    flex: 1;
  }

  .rh-person,
  .rh-person img {
    min-height: 168px;
  }

  .rh-section,
  .rh-section-compact,
  .rh-band-inner {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .rh-institution,
  .rh-institution img {
    max-height: 160px;
    height: 160px;
  }
}
