/* Redesign of the advisor and calculator pages.
   Shared tokens and components (rd-*). Load after the page's own CSS.
   Prefix rd- keeps these rules from touching the rest of the site. */
:root {
  --rd-ink: #1E0C1C;
  --rd-violet: #5B3FB8;
  --rd-violet-dark: #4a3299;
  --rd-tint: #EFEBFF;
  --rd-mint: #96DDCC;
  --rd-teal: #25594D;
  --rd-muted: #475467;
  --rd-line: #E4E0EE;
  --rd-field: #CFC9E0;
  --rd-bg: #FBFAFE;
  --rd-radius: 20px;
}

.rd-page { background: var(--rd-bg); color: var(--rd-ink); }
.rd-wrap { max-width: 1280px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); box-sizing: border-box; }
.rd-page h1, .rd-page h2, .rd-page h3 { letter-spacing: -.02em; }

/* buttons */
.rd-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; font-weight: 600; font-size: 16px; border: 1px solid transparent; cursor: pointer; text-decoration: none !important; transition: background .15s, border-color .15s; }
.rd-btn-primary { background: var(--rd-violet); color: #fff !important; }
.rd-btn-primary:hover { background: var(--rd-violet-dark); }
.rd-btn-ghost { background: #fff; color: var(--rd-ink) !important; border-color: var(--rd-line); }
.rd-btn-ghost:hover { border-color: var(--rd-violet); }
.rd-btn-mint { background: var(--rd-mint); color: var(--rd-ink) !important; }
.rd-btn:focus-visible, .rd-chip:focus-visible, .rd-card:focus-visible { outline: 3px solid var(--rd-violet); outline-offset: 2px; }

/* chips / filters */
.rd-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rd-chip { min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--rd-line); background: #fff; color: #344054; font: 500 15px/1 inherit; cursor: pointer; }
.rd-chip:hover { border-color: var(--rd-violet); }
.rd-chip[aria-pressed="true"] { background: var(--rd-ink); border-color: var(--rd-ink); color: #fff; }
.rd-badge { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--rd-tint); color: var(--rd-violet); font-weight: 600; font-size: 14px; }

/* cards */
.rd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.rd-card { display: flex; flex-direction: column; gap: 12px; padding: 24px; background: #fff; border: 1px solid var(--rd-line); border-radius: var(--rd-radius); color: inherit !important; text-decoration: none !important; transition: transform .15s, box-shadow .15s, border-color .15s; }
.rd-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -14px rgba(91, 63, 184, .35); border-color: var(--rd-violet); }
.rd-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.rd-card-ic { width: 48px; height: 48px; border-radius: 14px; background: var(--rd-tint); display: flex; align-items: center; justify-content: center; flex: none; }
.rd-card-ic svg { width: 24px; height: 24px; stroke: var(--rd-violet); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rd-card-cat { font-size: 13px; font-weight: 600; color: var(--rd-muted); }
.rd-card h3 { font-size: 19px; margin: 0; line-height: 1.25; color: var(--rd-ink); }
.rd-card p { margin: 0; color: var(--rd-muted); font-size: 15px; line-height: 1.5; }
.rd-card-go { margin-top: auto; color: var(--rd-violet); font-weight: 600; font-size: 15px; }

/* search */
.rd-search { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 18px; border: 1px solid var(--rd-field); border-radius: 999px; background: #fff; max-width: 520px; }
.rd-search:focus-within { border-color: var(--rd-violet); box-shadow: 0 0 0 3px var(--rd-tint); }
.rd-search svg { width: 20px; height: 20px; stroke: var(--rd-muted); fill: none; stroke-width: 2; stroke-linecap: round; flex: none; }
.rd-search input { border: 0; outline: 0; flex: 1; font-size: 16px; min-width: 0; background: transparent; color: var(--rd-ink); }

/* dark hero band */
.rd-hero-dark { background: var(--rd-ink); color: #fff; }
.rd-hero-dark h1 { color: #fff; font-size: clamp(36px, 5vw, 56px); line-height: 1.05; margin: 0 0 16px; font-weight: 700; }
.rd-hero-dark p { color: #D0D5DD; font-size: 19px; line-height: 1.55; margin: 0; max-width: 560px; }

.rd-empty { color: var(--rd-muted); font-size: 17px; }
.rd-cta { border-radius: 28px; background: var(--rd-tint); padding: 40px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.rd-cta h2 { font-size: 30px; margin: 0; }
.rd-cta p { margin: 8px 0 0; color: var(--rd-muted); font-size: 17px; max-width: 640px; }
