/* Laryaa rebrand foundation — stable global shell and new primary pages. */
:root {
  --bg: #F5F5F7;
  --surface: #FFFFFF;
  --surface-2: #EEF1F6;
  --surface-3: #E7EBF2;
  --ink: #0D0D0F;
  --muted: #686D78;
  --muted-2: #8B919D;
  --line: #D9DDE5;
  --line-strong: #C6CBD5;
  --blue: #2563EB;
  --blue-strong: #1557E8;
  --blue-action: #2563EB;
  --blue-action-hover: #1D4ED8;
  --blue-soft: #E8F0FF;
  --good: #087A55;
  --warn: #9A6512;
  --danger: #B8443E;
  --shadow: 0 28px 80px rgba(23, 31, 48, 0.10);
  --max: 1280px;
  --pad: clamp(20px, 4vw, 56px);
  --radius: 16px;
  --rb-sans: Inter, "Avenir Next", "Helvetica Neue", Arial, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-theme="dark"] {
  --bg: #0D0D0F;
  --surface: #131316;
  --surface-2: #18191E;
  --surface-3: #1E2027;
  --ink: #F5F5F7;
  --muted: #A2A7B1;
  --muted-2: #747A85;
  --line: #2A2D34;
  --line-strong: #3B3F49;
  --blue: #4B7FFF;
  --blue-strong: #6A94FF;
  --blue-action: #2563EB;
  --blue-action-hover: #1D4ED8;
  --blue-soft: rgba(37, 99, 235, 0.13);
  --good: #66D7B2;
  --warn: #E4B566;
  --danger: #FF938B;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
}

body {
  font-family: var(--rb-sans);
  text-rendering: optimizeLegibility;
}

.wrap {
  width: 100%;
}

/* Stable global navigation */
nav.rb-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 66px;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}

.rb-nav .navin {
  height: 66px;
  max-width: var(--max);
  gap: 30px;
}

.rb-nav .brand {
  gap: 9px;
}

.rb-nav .brand-icon,
.rb-footer .brand-icon {
  width: 30px;
  height: 26px;
}

.rb-nav .brand-icon img,
.rb-footer .brand-icon img {
  width: 30px;
}

.rb-nav .brand-word,
.rb-footer .brand-word {
  width: 93px;
  height: 20px;
}

.rb-nav .brand-word img,
.rb-footer .brand-word img {
  width: 93px;
}

.rb-nav .links {
  margin-left: auto;
  gap: clamp(16px, 1.8vw, 28px);
  font-size: 12px;
  font-weight: 560;
}

.rb-nav .links a {
  position: relative;
}

.rb-nav .links a.active::after {
  left: 0;
  right: 0;
  bottom: -22px;
  height: 2px;
}

.rb-nav .navcta {
  border: 1px solid var(--blue-action) !important;
  padding: 10px 15px;
  border-radius: 9px;
  box-shadow: none;
}

.rb-nav .theme-toggle,
.rb-nav .menu-toggle {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: transparent;
}

.rb-nav .mobile-menu {
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding: 14px var(--pad) 24px;
}

.rb-nav .mobile-menu a {
  max-width: var(--max);
  padding: 11px 0;
  font-size: 16px;
  border-bottom: 1px solid var(--line);
}

.rb-nav .mobile-menu .navcta {
  margin-top: 14px;
  padding: 12px 16px;
  border-bottom: 0;
}

/* Stable compact footer */
.rb-footer {
  padding: 58px 0 28px;
  background: #0D0D0F;
  color: #F5F5F7;
  border-top: 1px solid #2A2D34;
}

.rb-footer .rb-footer-lead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 30px;
  border-bottom: 1px solid #2A2D34;
}

.rb-footer .rb-footer-lead p {
  margin: 0;
  color: #A2A7B1;
  font-size: clamp(17px, 1.6vw, 22px);
  letter-spacing: -0.015em;
}

.rb-footer .footer-map {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 58px);
  padding: 42px 0;
}

.rb-footer .footer-group {
  min-width: 0;
}

.rb-footer .footer-group summary {
  color: #F5F5F7;
  font-size: 12px;
  font-weight: 650;
  list-style: none;
  cursor: default;
}

.rb-footer .footer-group summary::-webkit-details-marker {
  display: none;
}

.rb-footer .footer-links {
  margin-top: 14px;
}

.rb-footer .footer-links a {
  display: block;
  padding: 5px 0;
  color: #A2A7B1;
  text-decoration: none;
  font-size: 12px;
}

.rb-footer .footer-links a:hover,
.rb-footer .footer-links a:focus-visible {
  color: #fff;
}

.rb-footer .footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 20px;
  border-top: 1px solid #2A2D34;
  color: #747A85;
  font-size: 11px;
}

.rb-footer .footer-bottom a {
  color: #A2A7B1;
}

/* New primary page foundation */
.rb-page {
  background: var(--bg);
  color: var(--ink);
}

.rb-page main {
  overflow: clip;
}

.rb-page section {
  padding: clamp(72px, 8vw, 116px) 0;
  border-bottom: 1px solid var(--line);
}

.rb-page .rb-section-compact {
  padding: clamp(54px, 6vw, 82px) 0;
}

.rb-page h1,
.rb-page h2,
.rb-page h3 {
  font-family: var(--rb-sans);
  text-wrap: balance;
}

.rb-page h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(52px, 7vw, 96px);
  font-weight: 540;
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.rb-page h2 {
  max-width: 16ch;
  margin: 0 0 20px;
  font-size: clamp(36px, 4.6vw, 64px);
  font-weight: 540;
  line-height: 1.02;
  letter-spacing: -0.048em;
}

.rb-page h3 {
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.14;
  letter-spacing: -0.028em;
}

.rb-eyebrow {
  margin: 0 0 22px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rb-lead {
  max-width: 58ch;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.58;
}

.rb-small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.rb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.rb-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.rb-button:hover {
  transform: translateY(-1px);
  border-color: var(--blue);
}

.rb-button.primary {
  border-color: var(--blue-action);
  background: var(--blue-action);
  color: #fff;
}

.rb-button.primary:hover {
  background: var(--blue-action-hover);
}

.rb-button.on-dark {
  border-color: #fff;
  background: #fff;
  color: #0D0D0F;
}

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

.rb-text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.rb-section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(38px, 7vw, 100px);
  align-items: start;
  margin-bottom: clamp(38px, 5vw, 68px);
}

.rb-section-head .rb-lead {
  margin-top: 0;
}

/* Homepage */
.rb-hero {
  min-height: min(820px, calc(100svh - 66px));
  display: grid;
  align-items: center;
  padding: clamp(60px, 7vw, 98px) 0 !important;
  background: var(--bg);
}

.rb-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(470px, 1.1fr);
  gap: clamp(46px, 7vw, 106px);
  align-items: center;
}

.rb-hero h1 .accent {
  color: var(--blue);
}

.rb-hero-proof {
  position: relative;
  min-width: 0;
}

.rb-work-window {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.rb-window-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.rb-window-head span:first-child {
  color: var(--ink);
  font-weight: 650;
}

.rb-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.rb-live::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--good);
  content: "";
}

.rb-request {
  padding: 24px 22px;
  border-bottom: 1px solid var(--line);
}

.rb-request span,
.rb-proof-label,
.rb-status,
.rb-card-label {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rb-request p {
  margin: 0;
  font-size: 17px;
  line-height: 1.45;
}

.rb-work-list {
  margin: 0;
  padding: 6px 22px;
  list-style: none;
}

.rb-work-list li {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.rb-work-list li:last-child {
  border-bottom: 0;
}

.rb-work-list i {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font-style: normal;
  font-size: 11px;
}

.rb-work-list b {
  font-weight: 620;
}

.rb-work-list small {
  color: var(--muted);
  font-size: 11px;
}

.rb-result {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 19px 22px;
  background: var(--surface-2);
  border-top: 1px solid var(--line);
}

.rb-result strong {
  display: block;
  font-size: 16px;
}

.rb-result p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.rb-result .rb-status {
  margin: 0;
  padding: 7px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--good) 12%, transparent);
  color: var(--good);
}

.rb-proof-note {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 11px;
}

/* Product and solution systems */
.rb-grid-2,
.rb-grid-3,
.rb-grid-4 {
  display: grid;
  gap: 14px;
}

.rb-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rb-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rb-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.rb-card {
  min-width: 0;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

a.rb-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

a.rb-card:hover,
a.rb-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--blue);
  box-shadow: 0 18px 50px color-mix(in srgb, var(--blue) 10%, transparent);
}

.rb-card h3 {
  margin: 30px 0 12px;
}

.rb-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.58;
}

.rb-card .rb-text-link,
.rb-card > b:last-child {
  margin-top: auto;
  padding-top: 28px;
  color: var(--blue);
  font-size: 13px;
}

.rb-card.featured {
  background: #131316;
  color: #fff;
  border-color: #2A2D34;
}

.rb-card.featured p,
.rb-card.featured .rb-card-label {
  color: #A2A7B1;
}

.rb-product-band {
  background: var(--surface);
}

.rb-architecture {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.rb-architecture article {
  min-height: 260px;
  padding: 28px;
  border-right: 1px solid var(--line);
}

.rb-architecture article:last-child {
  border-right: 0;
}

.rb-architecture span {
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.rb-architecture h3 {
  margin: 56px 0 14px;
}

.rb-architecture p {
  color: var(--muted);
  font-size: 14px;
}

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

.rb-step {
  display: grid;
  grid-template-columns: 70px minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 28px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.rb-step > span {
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
}

.rb-step h3,
.rb-step p {
  margin: 0;
}

.rb-step p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.rb-evidence {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(44px, 8vw, 120px);
  align-items: start;
}

.rb-evidence-list {
  border-top: 2px solid var(--ink);
}

.rb-evidence-row {
  display: grid;
  grid-template-columns: minmax(130px, 0.55fr) 1.45fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.rb-evidence-row b {
  font-size: 14px;
}

.rb-evidence-row span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.rb-dark {
  background: #0D0D0F;
  color: #F5F5F7;
  border-color: #2A2D34 !important;
}

.rb-dark .rb-eyebrow,
.rb-dark .rb-text-link {
  color: #6A94FF;
}

.rb-dark .rb-lead,
.rb-dark .rb-small {
  color: #A2A7B1;
}

.rb-dark .rb-card {
  border-color: #3B3F49;
  background: #131316;
}

.rb-dark .rb-card p,
.rb-dark .rb-card-label {
  color: #A2A7B1;
}

/* Page heroes and split content */
.rb-page-hero {
  padding: clamp(74px, 9vw, 128px) 0 !important;
}

.rb-page-hero h1 {
  max-width: 14ch;
}

.rb-page-hero-grid,
.rb-split {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(44px, 8vw, 120px);
  align-items: start;
}

.rb-page-hero-grid {
  align-items: end;
}

.rb-page-hero-grid .rb-lead {
  margin: 0;
}

.rb-definition {
  padding: 24px 0;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.rb-definition strong {
  display: block;
  margin-bottom: 10px;
  font-size: clamp(22px, 2.5vw, 34px);
  letter-spacing: -0.025em;
}

.rb-definition p {
  margin: 0;
  color: var(--muted);
}

.rb-status-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.rb-status-line.preview::before,
.rb-status-line.available::before,
.rb-status-line.validation::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  content: "";
}

.rb-status-line.preview::before { background: var(--warn); }
.rb-status-line.available::before { background: var(--good); }
.rb-status-line.validation::before { background: var(--blue); }

/* Developer experience */
.rb-dev-nav {
  position: sticky;
  top: 66px;
  z-index: 80;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  backdrop-filter: blur(16px);
}

.rb-dev-nav .wrap {
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 24px;
  overflow-x: auto;
  scrollbar-width: none;
}

.rb-dev-nav .wrap::-webkit-scrollbar {
  display: none;
}

.rb-dev-nav b {
  margin-right: auto;
  white-space: nowrap;
  font-size: 13px;
}

.rb-dev-nav a {
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  font-size: 12px;
}

.rb-dev-nav a:hover,
.rb-dev-nav a.active {
  color: var(--ink);
}

.rb-code {
  overflow: auto;
  margin: 0;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid #3B3F49;
  border-radius: 16px;
  background: #0D0D0F;
  color: #F5F5F7;
  box-shadow: var(--shadow);
}

.rb-code code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  line-height: 1.7;
}

.rb-code .code-muted { color: #8B919D; }
.rb-code .code-blue { color: #6A94FF; }
.rb-code .code-green { color: #66D7B2; }

.rb-preview-note {
  padding: clamp(26px, 4vw, 42px);
  border-left: 3px solid var(--warn);
  background: color-mix(in srgb, var(--warn) 8%, var(--surface));
}

.rb-preview-note h3 {
  margin-top: 0;
}

.rb-preview-note ul {
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.rb-preview-note li {
  padding: 5px 0;
}

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

.rb-doc-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.rb-doc-row h3,
.rb-doc-row p {
  margin: 0;
}

.rb-doc-row h3 {
  font-size: 20px;
}

.rb-doc-row p {
  color: var(--muted);
  font-size: 14px;
}

/* Pricing */
.rb-pricing-hero {
  padding: clamp(52px, 6vw, 84px) 0 !important;
  border-bottom: 0 !important;
}

.rb-pricing-hero h1 {
  max-width: 11ch;
  font-size: clamp(48px, 5.6vw, 78px);
}

.rb-pricing-switch-wrap {
  position: sticky;
  top: 66px;
  z-index: 70;
  padding: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 95%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.rb-pricing-switch-wrap .wrap {
  padding-top: 12px;
  padding-bottom: 12px;
}

.rb-pricing-tabs {
  width: min(100%, 520px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-2);
}

.rb-pricing-tabs button {
  min-height: 42px;
  padding: 9px 14px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.rb-pricing-tabs button[aria-selected="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(23, 31, 48, 0.10);
}

.rb-pricing-panel[hidden] {
  display: none;
}

.rb-price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.rb-price-card {
  display: flex;
  min-height: 430px;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.rb-price-card.featured {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft);
}

.rb-price {
  margin: 26px 0 6px;
  font-size: clamp(44px, 5vw, 66px);
  font-weight: 560;
  line-height: 1;
  letter-spacing: -0.055em;
}

.rb-price small {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0;
}

.rb-inr {
  color: var(--muted);
  font-size: 12px;
}

.rb-price-card ul {
  margin: 24px 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.rb-price-card li {
  padding: 6px 0;
  color: var(--muted);
  font-size: 13px;
}

.rb-price-card .rb-button {
  margin-top: auto;
}

.rb-wave-option {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.65fr);
  gap: clamp(30px, 6vw, 82px);
  align-items: center;
  margin-top: 28px;
  padding: clamp(28px, 4vw, 46px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.rb-wave-option h3,
.rb-wave-option p {
  margin-top: 0;
}

.rb-wave-option p:not(.rb-eyebrow) {
  margin-bottom: 0;
  color: var(--muted);
}

.rb-wave-price {
  display: grid;
  gap: 6px;
  padding-left: clamp(24px, 4vw, 52px);
  border-left: 1px solid var(--line);
}

.rb-wave-price strong {
  font-size: clamp(36px, 4vw, 54px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.rb-wave-price strong small,
.rb-wave-price span {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0;
}

.rb-wave-price .rb-button {
  width: max-content;
  margin-top: 14px;
}

.rb-enterprise-pricing {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(48px, 9vw, 140px);
  align-items: start;
}

.rb-enterprise-routes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: clamp(48px, 7vw, 88px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.rb-enterprise-routes a {
  display: flex;
  min-height: 110px;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
}

.rb-enterprise-routes a:hover,
.rb-enterprise-routes a:focus-visible {
  border-color: var(--blue);
}

.rb-enterprise-routes span {
  color: var(--muted);
  font-size: 12px;
}

.rb-enterprise-routes b {
  color: var(--blue);
  font-size: 13px;
}

/* Forms and utility */
.rb-page .real-form,
.rb-page .form-stack {
  max-width: 760px;
}

.rb-page input,
.rb-page select,
.rb-page textarea {
  min-height: 46px;
  border-radius: 9px;
}

.rb-final {
  text-align: center;
  background: var(--surface);
}

.rb-final h2,
.rb-final .rb-lead {
  margin-left: auto;
  margin-right: auto;
}

.rb-final .rb-actions {
  justify-content: center;
}

.rb-note {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 13px;
}

/* Accessibility */
.rb-page a:focus-visible,
.rb-page button:focus-visible,
.rb-nav a:focus-visible,
.rb-nav button:focus-visible,
.rb-footer a:focus-visible,
.rb-footer summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

@media (max-width: 1100px) {
  .rb-nav .links { gap: 14px; font-size: 11px; }
  .rb-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rb-hero-grid { grid-template-columns: minmax(0, 0.85fr) minmax(400px, 1.15fr); }
}

@media (max-width: 900px) {
  .rb-nav .links { display: none; }
  .rb-nav .menu-toggle { display: grid; }
  .rb-nav .navtools { margin-left: auto; }
  .rb-footer .footer-map { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rb-hero-grid,
  .rb-page-hero-grid,
  .rb-section-head,
  .rb-split,
  .rb-evidence { grid-template-columns: 1fr; }
  .rb-hero { min-height: auto; }
  .rb-hero h1 { max-width: 11ch; }
  .rb-hero-proof { max-width: 700px; }
  .rb-architecture { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rb-architecture article:nth-child(2) { border-right: 0; }
  .rb-architecture article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .rb-grid-3,
  .rb-price-grid { grid-template-columns: 1fr; }
  .rb-price-card { min-height: auto; }
  .rb-wave-option,
  .rb-enterprise-pricing { grid-template-columns: 1fr; }
  .rb-wave-price { padding: 26px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .rb-enterprise-routes { grid-template-columns: 1fr; }
  .rb-enterprise-routes a { min-height: 96px; }
  .rb-dev-nav b { margin-right: 0; }
}

@media (max-width: 640px) {
  :root { --pad: 20px; }
  .rb-nav,
  .rb-nav .navin { min-height: 62px; height: 62px; }
  .rb-nav .brand-icon { width: 27px; height: 23px; }
  .rb-nav .brand-icon img { width: 27px; }
  .rb-nav .brand-word { width: 82px; }
  .rb-nav .brand-word img { width: 82px; }
  .rb-nav .theme-toggle,
  .rb-nav .menu-toggle { width: 34px; height: 34px; }
  .rb-pricing-switch-wrap { top: 62px; }
  .rb-pricing-switch-wrap .wrap { padding-left: 14px; padding-right: 14px; }
  .rb-pricing-tabs { width: 100%; }
  .rb-pricing-tabs button { min-height: 40px; padding: 8px 6px; font-size: 12px; }
  .rb-dev-nav { top: 62px; }
  .rb-dev-nav .wrap { gap: 20px; }
  .rb-dev-nav b { display: none; }
  .rb-page section { padding: 64px 0; }
  .rb-page h1 { font-size: clamp(44px, 13vw, 58px); line-height: 1; }
  .rb-page h2 { font-size: clamp(34px, 10vw, 46px); }
  .rb-lead { font-size: 18px; }
  .rb-grid-2,
  .rb-grid-4,
  .rb-architecture { grid-template-columns: 1fr; }
  .rb-architecture article { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .rb-architecture article:last-child { border-bottom: 0; }
  .rb-architecture h3 { margin-top: 32px; }
  .rb-step { grid-template-columns: 42px 1fr; gap: 12px; }
  .rb-step p { grid-column: 2; }
  .rb-result { grid-template-columns: 1fr; }
  .rb-proof-note { display: block; }
  .rb-proof-note span { display: block; margin-top: 5px; }
  .rb-work-list li { grid-template-columns: 22px 1fr; }
  .rb-work-list small { grid-column: 2; }
  .rb-evidence-row { grid-template-columns: 1fr; gap: 6px; }
  .rb-doc-row { grid-template-columns: 1fr; gap: 8px; }
  .rb-footer .rb-footer-lead,
  .rb-footer .footer-bottom { align-items: flex-start; flex-direction: column; }
  .rb-footer .footer-map { display: block; padding: 28px 0; }
  .rb-footer .footer-group { border-bottom: 1px solid #2A2D34; }
  .rb-footer .footer-group summary { position: relative; padding: 15px 0; cursor: pointer; }
  .rb-footer .footer-group summary::after { position: absolute; right: 0; content: "+"; color: #747A85; }
  .rb-footer .footer-group[open] summary::after { content: "−"; }
  .rb-footer .footer-links { margin: 0; padding: 0 0 14px; }
  .rb-actions .rb-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .rb-page *,
  .rb-nav *,
  .rb-footer * {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}
