/* ==========================================================================
   RefundDesk design system
   Ported from the RefundDesk.dc.html Claude Design export. Tokens, app shell,
   and components match the design's IBM Plex + slate/blue visual language.
   ========================================================================== */

:root {
  --rd-ink: #0f172a;        /* headings, sidebar, dark sections */
  --rd-body: #334155;       /* body text */
  --rd-muted: #64748b;      /* secondary text */
  --rd-faint: #94a3b8;      /* tertiary / meta text */
  --rd-blue: #2563eb;       /* primary */
  --rd-blue-strong: #1d4ed8;
  --rd-blue-100: #dbeafe;
  --rd-blue-50: #eff6ff;
  --rd-bg: #f8fafc;         /* page background */
  --rd-surface: #ffffff;    /* cards */
  --rd-border: #e2e8f0;     /* card borders */
  --rd-border-strong: #cbd5e1; /* inputs */
  --rd-divider: #f1f5f9;    /* subtle row dividers */
  --rd-radius: 12px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 14px;
  color: var(--rd-ink);
  background: var(--rd-bg);
  -webkit-font-smoothing: antialiased;
}
.mono { font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace; }
a { color: var(--rd-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { letter-spacing: -0.01em; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--rd-border-strong); border-radius: 6px; border: 3px solid var(--rd-bg); }

@keyframes rd-fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes rd-toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---- App shell -------------------------------------------------------- */
.rd-shell { display: flex; min-height: 100vh; }
.rd-sidebar {
  width: 240px; flex-shrink: 0; background: var(--rd-ink);
  display: flex; flex-direction: column; padding: 20px 16px;
  position: sticky; top: 0; height: 100vh;
}
.rd-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 8px 24px; background: none; border: none; cursor: pointer; text-decoration: none;
}
.rd-logo {
  width: 30px; height: 30px; border-radius: 8px; background: var(--rd-blue);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 15px; flex-shrink: 0;
}
.rd-brand__name { color: var(--rd-bg); font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }

.rd-nav { display: flex; flex-direction: column; gap: 2px; }
.rd-nav-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  border: none; cursor: pointer; padding: 0; background: transparent; text-decoration: none;
}
.rd-nav-item__bar { width: 3px; height: 34px; border-radius: 2px; background: transparent; flex-shrink: 0; }
.rd-nav-item__label {
  flex: 1; text-align: left; padding: 9px 12px; border-radius: 8px;
  font-size: 14px; font-weight: 500; color: var(--rd-faint); background: transparent;
}
.rd-nav-item:hover .rd-nav-item__label { color: #cbd5e1; background: rgba(255,255,255,0.04); }
.rd-nav-item.is-active .rd-nav-item__bar { background: var(--rd-blue); }
.rd-nav-item.is-active .rd-nav-item__label { font-weight: 600; color: var(--rd-bg); background: rgba(37,99,235,0.16); }

.rd-usercard {
  margin-top: auto; display: flex; align-items: center; gap: 10px;
  padding: 11px 12px; background: rgba(255,255,255,0.05); border-radius: 10px;
}
.rd-avatar {
  width: 34px; height: 34px; border-radius: 50%; background: #1e293b; color: #cbd5e1;
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; flex-shrink: 0;
}
.rd-usercard__name { color: var(--rd-bg); font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-usercard__role { color: var(--rd-muted); font-size: 11px; }
.rd-exit { background: none; border: none; color: var(--rd-muted); cursor: pointer; font-size: 11px; font-weight: 600; padding: 4px 6px; }
.rd-exit:hover { color: #cbd5e1; }

.rd-main-col { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.rd-header {
  height: 62px; flex-shrink: 0; background: var(--rd-surface); border-bottom: 1px solid var(--rd-border);
  display: flex; align-items: center; justify-content: space-between; padding: 0 32px; position: sticky; top: 0; z-index: 20;
}
.rd-header__title { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.rd-header__sub { font-size: 12px; color: var(--rd-faint); }
.rd-alerts {
  display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px;
  border-radius: 9px; border: 1px solid var(--rd-border); background: #fff; cursor: pointer;
  font-size: 13px; font-weight: 500; color: var(--rd-body); text-decoration: none;
}
.rd-alerts:hover { background: var(--rd-bg); text-decoration: none; }
.rd-alerts__badge {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #dc2626;
  color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.rd-main { flex: 1; padding: 28px 32px; width: 100%; max-width: 1120px; margin: 0 auto; }

/* ---- Cards ------------------------------------------------------------ */
.rd-card { background: var(--rd-surface); border: 1px solid var(--rd-border); border-radius: var(--rd-radius); padding: 18px 20px; }
.rd-card--lg { border-radius: 14px; padding: 24px 26px; }
.rd-card--pad { padding: 24px 26px; }

/* ---- Metric cards ----------------------------------------------------- */
.rd-metrics { display: grid; gap: 16px; margin-bottom: 26px; }
.rd-metrics--3 { grid-template-columns: repeat(3, 1fr); }
.rd-metrics--4 { grid-template-columns: repeat(4, 1fr); }
.rd-metric__label { font-size: 11px; color: var(--rd-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.rd-metric__value { font-size: 27px; font-weight: 700; margin-top: 8px; letter-spacing: -0.02em; }
.rd-metric__sub { font-size: 12px; color: var(--rd-faint); margin-top: 3px; }

/* ---- Buttons ---------------------------------------------------------- */
.rd-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 38px; padding: 0 16px; border-radius: 9px; border: 1px solid transparent;
  font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.rd-btn:hover { text-decoration: none; }
.rd-btn--primary { background: var(--rd-blue); color: #fff; }
.rd-btn--primary:hover { background: var(--rd-blue-strong); color: #fff; }
.rd-btn--secondary { background: #fff; color: var(--rd-body); border-color: var(--rd-border-strong); }
.rd-btn--secondary:hover { background: var(--rd-bg); color: var(--rd-body); }
.rd-btn--ghost { background: transparent; color: var(--rd-muted); border-color: transparent; }
.rd-btn--ghost:hover { color: var(--rd-ink); }
.rd-btn--success { background: #16a34a; color: #fff; }
.rd-btn--success:hover { background: #15803d; color: #fff; }
.rd-btn--danger { background: #dc2626; color: #fff; }
.rd-btn--lg { height: 46px; padding: 0 24px; font-size: 14px; border-radius: 10px; }
.rd-btn--block { width: 100%; }
.rd-btn:disabled, .rd-btn.is-disabled { background: var(--rd-border-strong); color: #fff; cursor: not-allowed; border-color: transparent; }
.rd-link-btn { background: none; border: none; color: var(--rd-muted); font-size: 13px; cursor: pointer; padding: 0; font-family: inherit; }
.rd-link-btn:hover { color: var(--rd-ink); }

/* ---- Forms ------------------------------------------------------------ */
.rd-label { font-size: 12px; font-weight: 600; color: var(--rd-body); }
.rd-label--step { text-transform: uppercase; letter-spacing: 0.04em; }
.rd-input, .rd-textarea, .rd-select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--rd-border-strong);
  border-radius: 10px; font-family: inherit; font-size: 14px; color: var(--rd-ink);
  background: #fff; outline: none;
}
.rd-input:focus, .rd-textarea:focus, .rd-select:focus { border-color: var(--rd-blue); }
.rd-textarea { min-height: 84px; resize: vertical; }
.rd-input-money { display: flex; align-items: center; border: 1px solid var(--rd-border-strong); border-radius: 10px; padding: 0 14px; background: #fff; }
.rd-input-money:focus-within { border-color: var(--rd-blue); }
.rd-input-money > span { color: var(--rd-faint); font-weight: 600; }
.rd-input-money > input { flex: 1; border: none; outline: none; padding: 11px 8px; font-family: inherit; font-size: 14px; color: var(--rd-ink); background: transparent; }
.rd-field { margin-bottom: 18px; }
.rd-help { font-size: 12px; color: var(--rd-faint); margin-top: 6px; }
.rd-error { font-size: 12px; color: #b91c1c; margin-top: 4px; }
.rd-dashed { border: 1px dashed var(--rd-border-strong); border-radius: 10px; padding: 11px 14px; color: var(--rd-faint); font-size: 13px; background: var(--rd-bg); }

/* ---- Status pills ----------------------------------------------------- */
.rd-pill { display: inline-block; padding: 3px 11px; border-radius: 7px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--rd-divider); color: #475569; }
.rd-pill--submitted { background: #f1f5f9; color: #475569; }
.rd-pill--under_review { background: #fef3c7; color: #b45309; }
.rd-pill--approved { background: #dcfce7; color: #15803d; }
.rd-pill--partially_approved { background: #ccfbf1; color: #0f766e; }
.rd-pill--rejected { background: #fee2e2; color: #b91c1c; }
.rd-pill--processed { background: #dbeafe; color: #1d4ed8; }
.rd-flag { font-size: 10px; font-weight: 700; color: #b45309; background: #fef3c7; padding: 2px 7px; border-radius: 6px; letter-spacing: 0.03em; }
.rd-elig { display: inline-block; padding: 3px 10px; border-radius: 7px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.rd-elig--ok { background: #dcfce7; color: #15803d; }
.rd-elig--no { background: #f1f5f9; color: #94a3b8; }
.rd-refchip { font-family: 'IBM Plex Mono', monospace; font-weight: 600; background: var(--rd-blue-100); color: var(--rd-blue-strong); padding: 3px 9px; border-radius: 6px; }

/* ---- Generic list rows ------------------------------------------------ */
.rd-row {
  background: var(--rd-surface); border: 1px solid var(--rd-border); border-radius: var(--rd-radius);
  padding: 14px 18px; display: flex; align-items: center; gap: 16px; margin-bottom: 10px;
  width: 100%; text-align: left; cursor: pointer; text-decoration: none; color: inherit; font-family: inherit;
}
.rd-row:hover { border-color: var(--rd-border-strong); text-decoration: none; }
.rd-row--flagged { background: #fffbeb; }
.rd-row__main { flex: 1; min-width: 0; }
.rd-row__title { font-weight: 600; font-size: 14px; }
.rd-row__meta { font-size: 12px; color: var(--rd-faint); font-family: 'IBM Plex Mono', monospace; margin-top: 3px; }
.rd-row__amount { font-weight: 600; font-size: 14px; text-align: right; }

.rd-section-head { display: flex; justify-content: space-between; align-items: center; margin: 26px 0 12px; }
.rd-section-head:first-child { margin-top: 0; }
.rd-section-head h2 { font-size: 15px; font-weight: 600; margin: 0; }
.rd-eyebrow { font-size: 11px; color: var(--rd-faint); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }

/* ---- Tables (grid) ---------------------------------------------------- */
.rd-table { background: var(--rd-surface); border: 1px solid var(--rd-border); border-radius: 14px; overflow: hidden; }
.rd-table__head, .rd-table__row { display: grid; gap: 12px; align-items: center; }
.rd-table__head {
  padding: 11px 18px; background: var(--rd-bg); border-bottom: 1px solid var(--rd-border);
  font-size: 11px; font-weight: 600; color: var(--rd-muted); text-transform: uppercase; letter-spacing: 0.04em;
}
.rd-table__row { padding: 13px 18px; border: none; border-bottom: 1px solid var(--rd-divider); background: #fff; width: 100%; cursor: pointer; text-align: left; font-family: inherit; color: inherit; text-decoration: none; }
.rd-table__row:last-child { border-bottom: none; }
.rd-table__row:hover { background: #fcfdff; }
.rd-table__row--static { cursor: default; }
.rd-table__row--flagged { background: #fffbeb; }
.rd-cell-r { text-align: right; }
.rd-truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-empty { padding: 38px; text-align: center; color: var(--rd-faint); font-size: 13px; }

/* ---- Filter chips ----------------------------------------------------- */
.rd-chips { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.rd-chip {
  height: 34px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--rd-border);
  background: #fff; color: var(--rd-body); font-size: 13px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
}
.rd-chip:hover { background: var(--rd-bg); text-decoration: none; }
.rd-chip.is-active { background: var(--rd-ink); color: #fff; border-color: var(--rd-ink); }
.rd-chip__count { opacity: .6; }

/* ---- Segmented control ------------------------------------------------ */
.rd-segment { display: flex; gap: 4px; background: var(--rd-divider); border-radius: 10px; padding: 4px; }
.rd-segment label { flex: 1; }
.rd-segment input { position: absolute; opacity: 0; pointer-events: none; }
.rd-segment__opt {
  display: block; text-align: center; padding: 8px 12px; border-radius: 7px;
  font-size: 13px; font-weight: 600; color: var(--rd-muted); cursor: pointer; user-select: none;
}
.rd-segment input:checked + .rd-segment__opt { background: #fff; color: var(--rd-ink); box-shadow: 0 1px 2px rgba(15,23,42,0.12); }

/* ---- Order picker (radio cards) -------------------------------------- */
.rd-order-opt {
  position: relative; display: flex; align-items: center; gap: 14px; width: 100%;
  cursor: pointer; padding: 13px 16px; border-radius: 11px; background: #fff;
  border: 1px solid var(--rd-border); margin-bottom: 8px;
}
.rd-order-opt input { position: absolute; opacity: 0; pointer-events: none; }
.rd-order-opt__main { flex: 1; min-width: 0; }
.rd-order-opt__radio { width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0; border: 2px solid var(--rd-border-strong); background: #fff; }
.rd-order-opt input:checked ~ .rd-order-opt__radio { border: 5px solid var(--rd-blue); }
.rd-order-opt:has(input:checked) { border: 2px solid var(--rd-blue); }

/* ---- Eligibility check ------------------------------------------------ */
.rd-elig-box { background: var(--rd-bg); border: 1px solid var(--rd-border); border-radius: 12px; padding: 16px 18px; }
.rd-elig-box__title { font-size: 12px; font-weight: 700; color: var(--rd-body); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 12px; }
.rd-check { display: flex; align-items: center; gap: 11px; }
.rd-check + .rd-check { margin-top: 10px; }
.rd-check__icon { width: 19px; height: 19px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.rd-check__icon--ok { background: #dcfce7; color: #15803d; }
.rd-check__icon--no { background: #fee2e2; color: #b91c1c; }
.rd-check__label { flex: 1; font-size: 13px; font-weight: 500; }
.rd-check__hint { font-size: 12px; color: var(--rd-faint); }
.rd-note-blue { margin-top: 14px; padding: 10px 12px; background: var(--rd-blue-100); border-radius: 8px; font-size: 12px; color: var(--rd-blue-strong); font-weight: 500; }
.rd-note-amber { padding: 11px 14px; background: #fef3c7; border-radius: 9px; font-size: 12px; color: #92400e; font-weight: 500; }

/* ---- Review layout ---------------------------------------------------- */
.rd-review-grid { display: grid; grid-template-columns: 1fr 360px; gap: 20px; align-items: start; }
.rd-panel { position: sticky; top: 90px; }
@media (max-width: 920px) { .rd-review-grid { grid-template-columns: 1fr; } .rd-panel { position: static; } }

/* ---- Timeline --------------------------------------------------------- */
.rd-timeline-item { display: flex; gap: 14px; }
.rd-timeline-rail { display: flex; flex-direction: column; align-items: center; }
.rd-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; margin-top: 5px; background: var(--rd-faint); }
.rd-dot--reject { background: #dc2626; }
.rd-dot--process { background: #2563eb; }
.rd-dot--approve { background: #16a34a; }
.rd-dot--flag { background: #d97706; }
.rd-timeline-line { width: 2px; flex: 1; background: var(--rd-border); min-height: 18px; }
.rd-timeline-body { padding-bottom: 18px; flex: 1; }
.rd-timeline-body__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.rd-timeline-action { font-weight: 600; font-size: 13px; }
.rd-timeline-ts { font-size: 11px; color: var(--rd-faint); font-family: 'IBM Plex Mono', monospace; white-space: nowrap; }
.rd-timeline-detail { font-size: 12px; color: var(--rd-muted); margin-top: 2px; }

/* ---- Detail facts grid ------------------------------------------------ */
.rd-facts { display: grid; gap: 14px; margin-top: 20px; }
.rd-facts--2 { grid-template-columns: repeat(2, 1fr); }
.rd-facts--3 { grid-template-columns: repeat(3, 1fr); }
.rd-fact { background: var(--rd-bg); border-radius: 10px; padding: 13px 15px; }
.rd-fact__label { font-size: 11px; color: var(--rd-faint); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.rd-fact__value { font-size: 18px; font-weight: 700; margin-top: 4px; }
.rd-decision-note { margin-top: 16px; padding: 12px 14px; background: var(--rd-bg); border-left: 3px solid var(--rd-border-strong); border-radius: 0 8px 8px 0; }

/* ---- Admin status breakdown bars ------------------------------------- */
.rd-bar-row { display: flex; align-items: center; gap: 12px; margin-bottom: 13px; }
.rd-bar-row__label { width: 140px; font-size: 13px; color: var(--rd-body); }
.rd-bar-track { flex: 1; height: 8px; background: var(--rd-divider); border-radius: 5px; overflow: hidden; }
.rd-bar-fill { display: block; height: 100%; border-radius: 5px; background: var(--rd-blue); }
.rd-bar-row__count { width: 28px; text-align: right; font-weight: 600; font-size: 13px; }

/* ---- Toast (messages) ------------------------------------------------- */
.rd-toasts { position: fixed; bottom: 24px; right: 24px; z-index: 60; display: flex; flex-direction: column; gap: 10px; }
.rd-toast {
  max-width: 330px; padding: 13px 18px; border-radius: 11px; color: #fff; font-size: 13px; font-weight: 500;
  box-shadow: 0 10px 30px rgba(15,23,42,0.25); animation: rd-toastIn .25s ease both; background: var(--rd-ink);
}
.rd-toast--error, .rd-toast--danger, .rd-toast--warning { background: #dc2626; }

/* ---- Auth (login / register) split layout ----------------------------- */
.rd-auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.rd-auth__aside { background: var(--rd-ink); color: var(--rd-bg); padding: 44px 56px; display: flex; flex-direction: column; }
.rd-auth__aside h2 { font-size: 36px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.08; margin: 0 0 16px; }
.rd-auth__aside p { font-size: 16px; color: var(--rd-faint); line-height: 1.55; margin: 0 0 30px; max-width: 380px; }
.rd-auth__mid { margin: auto 0; }
.rd-auth__copyright { font-size: 12px; color: var(--rd-muted); }
.rd-auth__form { display: flex; align-items: center; justify-content: center; padding: 48px 32px; background: var(--rd-bg); }
.rd-auth__inner { width: 100%; max-width: 382px; }
.rd-auth__inner h1 { font-size: 24px; font-weight: 700; margin: 0 0 6px; letter-spacing: -0.01em; }
.rd-tick { display: flex; align-items: center; gap: 11px; margin-bottom: 13px; }
.rd-tick__mark { width: 20px; height: 20px; border-radius: 50%; background: rgba(37,99,235,0.2); color: #60a5fa; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.rd-tick span:last-child { font-size: 14px; color: #cbd5e1; }
.rd-or { display: flex; align-items: center; gap: 12px; margin: 22px 0 16px; }
.rd-or span:first-child, .rd-or span:last-child { flex: 1; height: 1px; background: var(--rd-border); }
.rd-or__text { font-size: 11px; color: var(--rd-faint); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; flex: none !important; height: auto !important; background: none !important; }
.rd-demo { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: #fff; border: 1px solid var(--rd-border); border-radius: 10px; padding: 11px 14px; cursor: pointer; margin-bottom: 8px; text-decoration: none; color: inherit; }
.rd-demo:hover { border-color: var(--rd-border-strong); text-decoration: none; }
.rd-demo__label { font-weight: 600; font-size: 13px; }
.rd-demo__sub { font-size: 11px; color: var(--rd-faint); font-family: 'IBM Plex Mono', monospace; margin-top: 1px; }

/* ---- Public landing --------------------------------------------------- */
.rd-public { min-height: 100vh; display: flex; flex-direction: column; }
.rd-pubhead { display: flex; align-items: center; justify-content: space-between; padding: 18px 40px; background: var(--rd-ink); }
.rd-pubhead .rd-brand__name { font-size: 17px; }
.rd-hero { background: var(--rd-ink); color: var(--rd-bg); padding: 60px 40px 84px; }
.rd-wrap { max-width: 1120px; margin: 0 auto; }
.rd-hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.rd-hero h1 { font-size: 52px; line-height: 1.04; font-weight: 700; letter-spacing: -0.03em; margin: 0 0 18px; }
.rd-hero p { font-size: 17px; line-height: 1.55; color: var(--rd-faint); margin: 0 0 30px; max-width: 480px; }
.rd-tag { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: #60a5fa; background: rgba(37,99,235,0.16); padding: 5px 12px; border-radius: 20px; margin-bottom: 22px; }
.rd-hero__card { background: #fff; border-radius: 16px; padding: 22px 24px; box-shadow: 0 24px 60px rgba(0,0,0,0.35); color: var(--rd-ink); }
.rd-section { padding: 64px 40px; }
.rd-section--alt { background: var(--rd-bg); }
.rd-section--white { background: #fff; border-top: 1px solid var(--rd-border); border-bottom: 1px solid var(--rd-border); }
.rd-section--dark { background: var(--rd-ink); text-align: center; }
.rd-kicker { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; color: var(--rd-blue); margin: 0 0 10px; text-align: center; }
.rd-section__title { text-align: center; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 44px; }
.rd-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.rd-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.rd-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.rd-feature { background: var(--rd-surface); border: 1px solid var(--rd-border); border-radius: 14px; padding: 26px 24px; }
.rd-feature h3 { font-size: 16px; font-weight: 700; margin: 16px 0 8px; }
.rd-feature p { font-size: 14px; color: var(--rd-muted); line-height: 1.55; margin: 0; }
.rd-step-num { width: 38px; height: 38px; border-radius: 10px; background: var(--rd-blue-50); color: var(--rd-blue); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 14px; font-family: 'IBM Plex Mono', monospace; }
.rd-roletag { align-self: flex-start; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--rd-blue-strong); background: var(--rd-blue-50); padding: 4px 11px; border-radius: 20px; }
.rd-point { display: flex; align-items: center; gap: 10px; }
.rd-point__tick { width: 18px; height: 18px; border-radius: 50%; background: #dcfce7; color: #15803d; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.rd-stat__value { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; color: var(--rd-ink); }
.rd-stat__label { font-size: 13px; color: var(--rd-muted); margin-top: 4px; }
.rd-footer { background: var(--rd-ink); color: var(--rd-muted); padding: 26px 40px; margin-top: auto; display: flex; align-items: center; justify-content: space-between; font-size: 13px; flex-wrap: wrap; gap: 12px; }

/* ---- Utilities -------------------------------------------------------- */
.rd-stack-sm > * + * { margin-top: 8px; }
.rd-mb-0 { margin-bottom: 0; }
.rd-mt-3 { margin-top: 18px; }
.rd-back { display: inline-block; margin-bottom: 16px; }
.rd-flex { display: flex; align-items: center; gap: 10px; }
.rd-spread { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.rd-muted { color: var(--rd-muted); }
.rd-faint { color: var(--rd-faint); }
.rd-narrow { max-width: 760px; }

@media (max-width: 920px) {
  .rd-auth, .rd-hero__grid, .rd-grid-3, .rd-grid-4, .rd-grid-2,
  .rd-metrics--3, .rd-metrics--4, .rd-facts--3, .rd-facts--2 { grid-template-columns: 1fr; }
  .rd-sidebar { display: none; }
}
