/* ==========================================================================
   Bennu Data — referral page
   Uses the tokens and base components from site.css; adds the referral
   directory, the referral dialog and its receipt. No external dependencies.
   ========================================================================== */

/* ---------- demo bar ---------- */

.rf-demo-bar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 9px 18px;
  background: var(--dark);
  color: rgba(241, 234, 219, 0.68);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  line-height: 1.5;
  text-align: center;
}

.rf-demo-dot {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-soft);
  box-shadow: 0 0 0 3px rgba(196, 168, 115, 0.16);
}

/* ---------- header ---------- */

.rf-header {
  border-bottom: 1px solid var(--line);
}

.rf-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.4;
  transition: color 0.18s var(--ease);
}

.rf-back:hover {
  color: var(--forest);
}

.rf-back-arrow {
  color: var(--gold-dark);
  font-size: 13px;
  line-height: 1;
}

/* ---------- hero ---------- */

.rf-hero {
  padding-block: clamp(38px, 4.8vw, 66px) clamp(44px, 5vw, 74px);
  border-bottom: 1px solid var(--line);
}

.rf-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.rf-hero h1 {
  font-size: clamp(38px, 4.9vw, 64px);
  line-height: 1.16;
  max-width: 12em;
}

.rf-hero h1 .line {
  display: block;
}

.rf-hero h1.rf-hero-title {
  font-size: clamp(36px, 4.6vw, 60px);
}

.rf-lede {
  margin-top: 24px;
  max-width: 33em;
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--ink-2);
}

.rf-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
  margin-top: 30px;
}

.rf-hero-note {
  margin-top: 26px;
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.rf-text-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.5;
  text-align: left;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.rf-text-btn:hover {
  color: var(--forest);
  border-color: var(--forest);
}

.rf-text-btn span[aria-hidden] {
  color: var(--gold-dark);
}

/* ---------- flow panel ---------- */

.rf-flow {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 2.8vw, 34px);
  border: 1px solid var(--dark);
  background: var(--forest-deep);
  color: var(--paper-on-dark);
  box-shadow: var(--shadow-card);
}

.rf-flow::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 100% 0, rgba(196, 168, 115, 0.16), transparent 58%),
    radial-gradient(circle at 0 100%, rgba(39, 82, 63, 0.6), transparent 55%);
  pointer-events: none;
}

.rf-flow > * {
  position: relative;
}

.rf-flow-kicker {
  color: var(--gold-soft);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.rf-flow-title {
  margin-top: 12px;
  color: var(--paper-on-dark);
  font-family: var(--serif);
  font-size: clamp(22px, 2.2vw, 27px);
  font-weight: 600;
  line-height: 1.28;
}

.rf-flow-list {
  display: grid;
  margin-top: 22px;
}

.rf-flow-list li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  padding: 15px 0;
  border-top: 1px solid rgba(241, 234, 219, 0.14);
}

.rf-flow-list li:first-child {
  padding-top: 0;
  border-top: 0;
}

.rf-flow-list li:last-child {
  padding-bottom: 0;
}

.rf-flow-no {
  color: var(--gold-soft);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  padding-top: 2px;
}

.rf-flow-list strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.rf-flow-list p {
  margin-top: 5px;
  color: rgba(241, 234, 219, 0.66);
  font-size: 12px;
  line-height: 1.7;
}

/* ---------- standards ---------- */

.rf-standards {
  padding-block: clamp(44px, 5.4vw, 68px);
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.rf-standards-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 24px 60px;
  align-items: end;
}

.rf-standards-head .eyebrow {
  grid-column: 1 / -1;
}

.rf-standards-head h2 {
  font-family: var(--serif);
  font-size: clamp(27px, 3vw, 39px);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.01em;
  max-width: 15em;
}

.rf-standards-head > p:last-child {
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.8;
  max-width: 32em;
  padding-bottom: 4px;
}

.rf-standards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(30px, 4vw, 44px);
  border-top: 1px solid var(--line-strong);
}

.rf-standards-grid li {
  padding: 22px 30px 6px 0;
}

.rf-standards-grid li + li {
  padding-left: 30px;
  border-left: 1px solid var(--line);
}

.rf-standard-no {
  color: var(--gold-dark);
  font-size: 10.5px;
  letter-spacing: 0.08em;
}

.rf-standards-grid h3 {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
}

.rf-standards-grid p {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.8;
}

/* ---------- catalog ---------- */

.rf-catalog {
  padding-block: clamp(52px, 6vw, 84px);
}

.rf-catalog-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.72fr);
  gap: 24px 60px;
  align-items: end;
  margin-bottom: clamp(28px, 3.4vw, 40px);
}

.rf-catalog-head h2 {
  margin-top: 20px;
  font-family: var(--serif);
  font-size: clamp(29px, 3.3vw, 43px);
  font-weight: 600;
  line-height: 1.26;
  letter-spacing: -0.01em;
  max-width: 16em;
}

.rf-catalog-note {
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.8;
  max-width: 30em;
  padding-bottom: 4px;
}

.rf-cat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.rf-cat {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(22px, 2.2vw, 28px);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.rf-cat:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(28, 42, 34, 0.06);
}

.rf-cat.is-deep-linked {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(196, 168, 115, 0.2);
}

.rf-cat-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.rf-cat-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.rf-cat-no {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.rf-cat-thumb {
  display: block;
  width: 64px;
  flex: none;
}

.rf-cat-thumb img {
  display: block;
  width: 64px;
  height: 52px;
  object-fit: cover;
  border: 1px solid var(--line);
  filter: saturate(0.82);
}

.rf-cat:hover .rf-cat-thumb img {
  filter: saturate(1);
}

.rf-cat-thumb-quote {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 52px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--gold);
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.06em;
}

.rf-cat-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.rf-cat-title strong {
  font-family: var(--serif);
  font-size: clamp(19px, 1.6vw, 22px);
  font-weight: 600;
  line-height: 1.3;
}

.rf-cat-team {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
}

.rf-cat-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 16px;
  padding: 18px 0 4px;
}

.rf-cat-block h3 {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.rf-cat-block p {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.85;
}

.rf-ideal {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.rf-ideal li {
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.75;
  padding-left: 14px;
  position: relative;
}

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

.rf-ideal strong {
  color: var(--ink);
  font-weight: 600;
}

.rf-cat-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 18px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.rf-cat-price {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: flex-start;
  min-width: 0;
}

.rf-price-label {
  color: var(--muted);
  font-size: 9.5px;
  letter-spacing: 0.11em;
}

.rf-price-value {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.rf-price-note {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.rf-cat-btn {
  height: 42px;
  padding: 0 20px;
  font-size: 13.5px;
  white-space: nowrap;
}

/* other category: a full-width band, deliberately unlike the cards */

.rf-other-band {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 24px 48px;
  align-items: center;
  margin-top: 20px;
  padding: clamp(28px, 3.2vw, 42px);
  background: var(--forest-deep);
  color: var(--paper-on-dark);
  overflow: hidden;
}

.rf-other-band::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold) 0%, rgba(196, 168, 115, 0.15) 70%);
}

.rf-other-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(241, 234, 219, 0.62);
  font-size: 10.5px;
  letter-spacing: 0.12em;
}

.rf-other-kicker-rule {
  width: 48px;
  height: 1px;
  background: rgba(241, 234, 219, 0.28);
}

.rf-other-band h3 {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: clamp(24px, 2.4vw, 31px);
  font-weight: 600;
  line-height: 1.3;
  color: var(--paper-on-dark);
}

.rf-other-band-copy p:last-child {
  margin-top: 12px;
  max-width: 46em;
  color: rgba(241, 234, 219, 0.78);
  font-size: 13.5px;
  line-height: 1.9;
}

.rf-other-band-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  text-align: right;
}

.rf-other-band-note {
  max-width: 26em;
  color: rgba(241, 234, 219, 0.6);
  font-size: 12px;
  line-height: 1.8;
}

.rf-other-btn {
  height: 44px;
  padding: 0 22px;
  background: var(--paper-on-dark);
  color: var(--forest-deep);
  border-color: var(--paper-on-dark);
  font-size: 13.5px;
  white-space: nowrap;
}

.rf-other-btn:hover {
  background: #fff;
  border-color: #fff;
  color: var(--forest-deep);
}

@media (max-width: 920px) {
  .rf-other-band {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .rf-other-band-actions {
    align-items: flex-start;
    text-align: left;
  }
}

/* ---------- rules ---------- */

.rf-rules {
  margin-top: 34px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}

.rf-rules summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 2px;
  cursor: pointer;
  list-style: none;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink);
}

.rf-rules[open] summary {
  padding-bottom: 8px;
}

.rf-rules summary::-webkit-details-marker {
  display: none;
}

.rf-rules-sign {
  position: relative;
  width: 16px;
  height: 16px;
  flex: none;
}

.rf-rules-sign::before,
.rf-rules-sign::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 16px;
  height: 1px;
  background: var(--ink-2);
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.rf-rules-sign::after {
  transform: rotate(90deg);
}

.rf-rules[open] .rf-rules-sign::after {
  transform: rotate(0deg);
  opacity: 0;
}

.rf-rules ul {
  display: grid;
  gap: 12px;
  padding: 10px 0 30px;
  max-width: 72em;
}

.rf-rules li {
  position: relative;
  padding-left: 18px;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.85;
}

.rf-rules li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.82em;
  width: 8px;
  height: 1px;
  background: var(--gold);
}

/* ---------- dialog ---------- */

body.rf-dialog-open {
  overflow: hidden;
}

.rf-dialog {
  display: flex;
  flex-direction: column;
  width: min(760px, calc(100vw - 32px));
  max-height: min(860px, calc(100vh - 40px));
  max-height: min(860px, calc(100dvh - 40px));
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 40px 90px -40px rgba(20, 35, 28, 0.6);
  overflow: hidden;
}

.rf-dialog:not([open]) {
  display: none;
}

.rf-dialog[open] {
  animation: rf-dialog-in 0.24s var(--ease);
}

@keyframes rf-dialog-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.rf-dialog::backdrop {
  background: rgba(20, 35, 28, 0.5);
}

.rf-dialog-head {
  display: flex;
  flex: none;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 28px 18px;
  border-bottom: 1px solid var(--line);
}

.rf-dialog-head h2 {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.25;
}

.rf-dialog-sub {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.rf-close {
  display: grid;
  flex: none;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink-2);
  font-size: 22px;
  line-height: 1;
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.rf-close:hover {
  background: var(--surface-2);
  border-color: var(--line-strong);
}

.rf-form {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0;
  min-height: 0;
}

.rf-form[hidden],
.rf-receipt[hidden] {
  display: none;
}

.rf-form-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px 28px 20px;
}

.rf-form-section {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.rf-form-section:last-of-type {
  border-bottom: 0;
  padding-bottom: 6px;
}

.rf-step {
  margin-bottom: 14px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
}

.rf-form-section .rf-row + .rf-row,
.rf-form-section .rf-row + .rf-field {
  margin-top: 14px;
}

.rf-size-field {
  min-width: 0;
  margin: 16px 0;
  padding: 0;
  border: 0;
}

.rf-size-field legend { padding: 0; }
.rf-size-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 7px;
}

.rf-size-options label { position: relative; }
.rf-size-options input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.rf-size-options span {
  display: grid;
  place-items: center;
  min-height: 42px;
  padding: 4px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--surface);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.rf-size-options input:checked + span {
  border-color: var(--forest);
  background: var(--forest-soft);
  color: var(--forest);
  box-shadow: inset 0 0 0 1px var(--forest);
}

.rf-size-options input:focus-visible + span {
  outline: 2px solid var(--gold-dark);
  outline-offset: 2px;
}

.rf-size-field[aria-invalid="true"] .rf-size-options span {
  border-color: #975635;
}

@media (max-width: 480px) {
  .rf-size-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.rf-field {
  display: grid;
  gap: 7px;
}

.rf-field + .rf-field {
  margin-top: 14px;
}

.rf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.rf-row .rf-field {
  min-width: 0;
  margin-top: 0;
}

.rf-field label,
.rf-size-field legend {
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.5;
}

.rf-field label .req,
.rf-size-field .req,
.rf-consent .req {
  margin-left: 2px;
  color: var(--gold-dark);
}

.rf-field input,
.rf-field select,
.rf-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
}

.rf-field textarea {
  min-height: 90px;
  resize: vertical;
}

.rf-field input:focus,
.rf-field select:focus,
.rf-field textarea:focus {
  outline: 2px solid var(--gold-dark);
  outline-offset: 1px;
}

.rf-field input[aria-invalid="true"],
.rf-field select[aria-invalid="true"],
.rf-field textarea[aria-invalid="true"] {
  border-color: #975635;
}

.rf-hint {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.rf-err {
  color: #8c4a2b;
  font-size: 11.5px;
  line-height: 1.6;
}

.rf-direct {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--surface-2);
}

.rf-direct[hidden] {
  display: none;
}

.rf-consent {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 18px 0 4px;
}

.rf-consent input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  accent-color: var(--forest);
}

.rf-consent label {
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.75;
}

.rf-consent label a {
  margin-left: 4px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--gold-dark);
  white-space: nowrap;
}

.rf-consent .rf-err {
  grid-column: 2;
}

.rf-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.rf-form-note {
  padding: 12px 0 4px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.7;
}

.rf-form-footer {
  display: flex;
  flex: none;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 14px 28px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.rf-quota-rule {
  flex: 1 1 16rem;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.5;
}

.rf-status:empty,
#rf-receipt-quota-row[hidden] {
  display: none;
}

.rf-status {
  flex: 1 1 220px;
  min-height: 1.2em;
  margin: 0;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.6;
}

.rf-status.is-error {
  color: #8c4a2b;
}

.rf-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
}

.rf-form-actions .btn {
  height: 44px;
  font-size: 14px;
}

/* ---------- receipt ---------- */

.rf-receipt {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}

.rf-receipt-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 22px 28px 28px;
}

.rf-receipt h3 {
  margin-top: 10px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.24;
}

.rf-receipt h3:focus-visible {
  outline: none;
}

.rf-receipt-sub {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.rf-receipt-list {
  margin-top: 22px;
  border-top: 1px solid var(--line-strong);
}

.rf-receipt-list > div {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.rf-receipt-list dt {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-top: 2px;
}

.rf-receipt-list dd {
  margin: 0;
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.rf-receipt-next dd {
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.75;
}

.rf-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid rgba(157, 122, 56, 0.38);
  background: rgba(157, 122, 56, 0.09);
  color: var(--gold-dark);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  line-height: 1.5;
}

.rf-badge.is-confirmed {
  border-color: rgba(39, 82, 63, 0.38);
  background: var(--forest-soft);
  color: var(--forest);
}

.rf-receipt-live {
  min-height: 1.2em;
  margin-top: 14px;
  color: var(--forest);
  font-size: 12px;
  line-height: 1.6;
}

.rf-receipt-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 24px;
}

.rf-receipt-actions .btn {
  height: 44px;
  font-size: 14px;
}

.rf-btn-quiet {
  border-color: var(--line-strong);
  color: var(--ink);
}

.rf-btn-quiet:hover {
  border-color: var(--ink);
  background: rgba(28, 42, 34, 0.04);
}

/* ---------- responsive ---------- */

@media (max-width: 1120px) {
  .rf-cat-grid {
    gap: 16px;
  }
  .rf-cat {
    padding: 22px;
  }
}

@media (max-width: 920px) {
  .rf-hero-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }
  .rf-hero h1 {
    max-width: 15em;
  }
  .rf-flow {
    max-width: 640px;
  }
  .rf-standards-head,
  .rf-catalog-head {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .rf-standards-grid {
    grid-template-columns: 1fr;
  }
  .rf-standards-grid li {
    padding: 20px 0;
  }
  .rf-standards-grid li + li {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .rf-cat-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .rf-demo-bar {
    font-size: 9.5px;
    padding: 8px 14px;
    letter-spacing: 0.03em;
  }
  .rf-hero {
    padding-block: 32px 48px;
  }
  .rf-hero h1 {
    font-size: clamp(32px, 9vw, 42px);
  }
  .rf-lede {
    margin-top: 18px;
    font-size: 14.5px;
  }
  .rf-hero-actions {
    margin-top: 24px;
  }
  .rf-flow {
    padding: 24px 20px;
  }
  .rf-standards,
  .rf-catalog {
    padding-block: 46px;
  }
  .rf-cat {
    padding: 20px;
  }
  .rf-cat-foot {
    flex-direction: column;
    align-items: stretch;
  }
  .rf-cat-btn {
    width: 100%;
  }
  .rf-rules {
    margin-top: 26px;
  }
  .rf-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
  }
  .rf-dialog-head {
    padding: 18px 20px 14px;
  }
  .rf-dialog-head h2 {
    font-size: 23px;
  }
  .rf-form-body {
    padding: 2px 20px 16px;
  }
  .rf-row {
    grid-template-columns: 1fr;
  }
  .rf-row .rf-field + .rf-field {
    margin-top: 0;
  }
  .rf-form-footer {
    padding: 12px 20px;
  }
  .rf-form-actions {
    width: 100%;
    justify-content: space-between;
  }
  .rf-form-actions .btn {
    flex: 1 1 auto;
  }
  .rf-receipt-body {
    padding: 18px 20px 24px;
  }
  .rf-receipt-list > div {
    grid-template-columns: 1fr;
    gap: 3px;
    padding: 10px 0;
  }
}

@media (max-width: 480px) {
  .rf-back {
    font-size: 11px;
  }
  .header-actions {
    gap: 12px;
  }
  .rf-flow-list {
    margin-top: 18px;
  }
  .rf-cat-title strong {
    font-size: 18px;
  }
  .rf-cat-title .rf-cat-team {
    font-size: 9.5px;
  }
  .rf-receipt-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .rf-receipt-actions .btn,
  .rf-receipt-actions .rf-text-btn {
    width: 100%;
    justify-content: center;
  }
  .rf-consent {
    grid-template-columns: auto minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .rf-dialog[open] {
    animation: none;
  }
  .rf-cat,
  .rf-cat-thumb img,
  .rf-rules-sign::before,
  .rf-rules-sign::after,
  .rf-close,
  .rf-choice {
    transition: none;
  }
}

/* ---------- footer wordmark on this standalone page ---------- */
/* site.js (not loaded here) normally animates the reveal; without it the
   img would stay translated 50% down and be clipped by the stage. */

body[data-page="referrals"] .footer-wordmark-img {
  transform: none !important;
}
