/* ===== IBEXMONT Referral Partner - landing page =====
   Brand: IBEXMONT Advisory. Primary blue #0666e6, Poppins (matches ibexmont.com). */

:root {
  --blue: #0666e6;         /* primary brand blue */
  --blue-deep: #0b52c0;    /* hover / pressed */
  --navy: #0a2e6e;         /* deep sections */
  --navy-950: #071d45;     /* darkest */
  --ink: #18191c;          /* headings */
  --text: #313131;         /* body */
  --muted: #667085;
  --line: #e7ebf2;
  --bg: #f5f8fd;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 12px 34px rgba(6, 102, 230, 0.12);
  --shadow-sm: 0 4px 16px rgba(10, 46, 110, 0.08);
  --maxw: 1160px;
  --hero-bg: url('./assets/hero-bg.webp');
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: hidden; }
body {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

h1, h2, h3 { line-height: 1.18; color: var(--ink); font-weight: 700; }
.section-title { font-size: clamp(28.75px, 3.9vw, 42.5px); font-weight: 800; text-align: center; color: var(--ink); letter-spacing: -0.5px; }
.section-sub { text-align: center; color: var(--muted); max-width: 620px; margin: 12px auto 0; font-size: 16px; }

/* ===== Logo ===== */
.brand { display: inline-flex; align-items: center; }
.brand .brand-logo { height: 30px; width: auto; display: block; }
.site-footer .brand .brand-logo { height: 46px; }

/* ===== Buttons / pills ===== */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; border-radius: 999px; padding: 12px 24px; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; white-space: nowrap; }
.pill-sm { padding: 9px 18px; font-size: 14px; }
.pill-blue { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(6,102,230,.32); }
.pill-blue:hover { background: var(--blue-deep); transform: translateY(-1px); }

/* ===== Store badges (real PNGs) ===== */
.store-badge { display: inline-flex; transition: transform .15s ease, box-shadow .15s ease; border-radius: 10px; }
.store-badge img { height: 52px; width: auto; border-radius: 10px; }
.store-badge:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0,0,0,.18); }
.hero-ctas .store-badge, .hero-ctas .store-badge img,
.final-cta-row .store-badge, .final-cta-row .store-badge img { border-radius: 0; }
.store-badge-soon { position: relative; }
.store-badge-soon img { filter: grayscale(.15); opacity: .92; }
.store-badge-soon::after { content: attr(data-soon); position: absolute; top: -9px; right: -6px; background: var(--blue); color: #fff; font-size: 9px; font-weight: 700; letter-spacing: .4px; padding: 2px 7px; border-radius: 999px; box-shadow: var(--shadow-sm); }
/* "How it works" step 1 download links (Android / iOS) - reuse the store-badge
   click handler (open the RP-code modal when a code is present) but render as
   clean text pills, not floating image badges. */
.how-dl-links { display: flex; gap: 10px; margin-top: 12px; }
.how-dl-link { font-size: 14px; font-weight: 700; color: var(--blue); border: 1px solid var(--blue); border-radius: 8px; padding: 7px 16px; text-decoration: none; }
.how-dl-link:hover { background: var(--blue); color: #fff; transform: none; box-shadow: none; }

/* ===== Header (transparent overlay -> solid on scroll, ibexmont.com style) ===== */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(255,255,255,.05); backdrop-filter: saturate(1.1) blur(14px); -webkit-backdrop-filter: saturate(1.1) blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: background .25s ease, box-shadow .25s ease, border-color .25s ease; }
.site-header.is-solid { background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px);
  border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(10,46,110,.06); }
.header-inner { display: flex; align-items: center; gap: 18px; height: 66px; }

/* Logo swap: white over the hero, dark once the header goes solid */
.brand .logo-on-light { display: none; }
.site-header.is-solid .brand .logo-on-dark { display: none; }
.site-header.is-solid .brand .logo-on-light { display: block; }

.site-nav { display: flex; gap: 24px; margin-left: 14px; }
.site-nav a { color: rgba(255,255,255,.9); font-weight: 500; font-size: 15px; position: relative; transition: color .2s ease; }
.site-nav a:hover, .site-nav a.active { color: #fff; }
.site-header.is-solid .site-nav a { color: #3a4453; }
.site-header.is-solid .site-nav a:hover, .site-header.is-solid .site-nav a.active { color: var(--blue); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
/* Advisor RP code chip in the top-right (shown by script.js in place of the
   "Get the app" pill when a referral code is present). */
.header-rp-code { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  background: none; box-shadow: none; padding: 0; font-size: 14px; color: rgba(255,255,255,.9); }
.header-rp-code[hidden] { display: none; }
.header-rp-code-label { font-weight: 500; }
.header-rp-code strong { font-weight: 700; letter-spacing: .5px; color: #fff; }
.site-header.is-solid .header-rp-code { color: #3a4453; }
.site-header.is-solid .header-rp-code strong { color: var(--blue); }
.lang-switch { display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,.55); font-weight: 700; font-size: 13px; }
.lang-btn { background: none; border: none; cursor: pointer; font: inherit; color: rgba(255,255,255,.72); padding: 2px 4px; border-radius: 4px; }
.lang-btn[aria-pressed="true"] { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.site-header.is-solid .lang-switch { color: #aab3c0; }
.site-header.is-solid .lang-btn { color: #aab3c0; }
.site-header.is-solid .lang-btn[aria-pressed="true"] { color: var(--blue); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: .2s; }
.site-header.is-solid .nav-toggle span { background: var(--ink); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { display: none; flex-direction: column; gap: 4px; padding: 10px 22px 18px; background: #fff; border-bottom: 1px solid var(--line); }
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 11px 4px; font-weight: 500; color: #3a4453; border-bottom: 1px solid var(--line); }
.mobile-menu a.pill { border: none; color: #fff; margin-top: 8px; }

/* ===== Hero (photo background + dark overlay, white text) ===== */
.hero { position: relative; overflow: hidden; isolation: isolate; width: 100vw; min-height: 100svh; display: flex; align-items: center; padding: 84px 0 72px; color: #fff; background-color: #071a40; }
/* Ken Burns: image layer eases from a slight zoom-in to the resting frame (fast start, slows to a stop). */
.hero::before { content: ""; position: absolute; inset: 0; z-index: 0;
  background: var(--hero-bg) center right / cover no-repeat; transform-origin: center;
  animation: hero-kenburns 3s cubic-bezier(.16, 1, .3, 1) both; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(6,20,48,.95) 0%, rgba(7,26,64,.82) 46%, rgba(9,40,90,.5) 100%); }
@keyframes hero-kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .hero::before { animation: none; transform: none; } }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; position: relative; z-index: 2; }
@property --eyebrow-glow-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

.hero-eyebrow { display: inline-block; position: relative; isolation: isolate; font-size: 0.8rem; letter-spacing: 1.5px; font-weight: 400; color: rgba(255,255,255,.85); text-transform: uppercase; border: 1px solid rgba(143,184,255,.35); border-radius: 100px; padding: 5px 14px; }
.hero-eyebrow::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: .75px;
  background: conic-gradient(from var(--eyebrow-glow-angle),
    transparent 0deg, transparent 255deg,
    rgba(190,216,255,.15) 300deg,
    rgba(199,223,255,.95) 342deg,
    rgba(160,198,255,.35) 360deg);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
          mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  filter: drop-shadow(0 0 4px rgba(150,195,255,.8));
  animation: hero-eyebrow-orbit 4.5s linear infinite; pointer-events: none;
}
@keyframes hero-eyebrow-orbit { to { --eyebrow-glow-angle: 360deg; } }
@media (prefers-reduced-motion: reduce) { .hero-eyebrow::before { animation: none; } }
.hero-headline { font-size: clamp(34px, 5.2vw, 56px); font-weight: 600; margin: 12px 0 16px; color: #fff; letter-spacing: -1px; text-shadow: 0 2px 20px rgba(0,0,0,.28); }
.hero-sub { font-size: 18px; color: rgba(255,255,255,.9); max-width: 520px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; align-items: center; }
.hero-note { margin-top: 16px; font-size: 13px; color: rgba(255,255,255,.72); max-width: 480px; }
.hero-badges { list-style: none; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 28px; }
.hero-badges li { position: relative; padding-left: 32px; font-size: 16px; line-height: 1.45; color: rgba(255,255,255,.9); }
.hero-badges li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px;
  background: no-repeat center / contain url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='12' fill='%230666e6'/><path d='M7 12.4 10.5 16 17 8.4' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/></svg>"); }
.hero-badges strong { font-weight: 700; color: #fff; margin-right: 5px; }
.hero-badges span { font-size: 16px; color: rgba(255,255,255,.85); max-width: none; }

/* Hero phone with real screenshot (self-contained mockup, no CSS frame) */
.hero-visual { display: flex; justify-content: center; }
.hero-phone-img { width: 100%; max-width: 290px; height: auto; display: block; filter: drop-shadow(0 26px 60px rgba(7,29,69,.5)); }

/* ===== Sections ===== */
section { padding: 62px 0; }
.download { background: radial-gradient(900px 400px at 15% 0%, rgba(6,102,230,.09), transparent 60%), var(--bg); }

/* How it works */
.how-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.how-steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; box-shadow: var(--shadow-sm); }
.step-num { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(150deg, var(--blue), var(--blue-deep)); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.how-steps h3 { font-size: 16px; margin-bottom: 6px; color: var(--ink); }
.how-steps p { font-size: 14px; color: var(--muted); }

/* Video */
.video-frame { max-width: 820px; margin: 32px auto 0; }
.video-placeholder { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); background: linear-gradient(150deg, var(--navy), var(--blue)); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: #fff; box-shadow: var(--shadow); }
.video-play { width: 66px; height: 66px; border-radius: 50%; background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; }
.video-play svg { width: 30px; height: 30px; }
.video-badge { background: #fff; color: var(--blue); font-weight: 700; font-size: 12px; padding: 4px 13px; border-radius: 999px; letter-spacing: .5px; }
.video-caption { font-size: 13px; opacity: .85; }

/* Video showcase (tabbed: steps | text | phone) */
.showcase { background: #fff; }
.showcase-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr) 300px; gap: 44px; margin-top: 44px; align-items: start; }

.showcase-tabs { display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--line); }
.showcase-tab { position: relative; margin-left: -1px; text-align: left; background: none; border: none; border-left: 2px solid transparent; cursor: pointer; font: inherit; font-weight: 600; font-size: 16px; line-height: 1.35; color: var(--muted); padding: 12px 20px; transition: color .18s ease, border-color .18s ease; }
.showcase-tab:hover { color: var(--ink); }
.showcase-tab.is-active { color: var(--blue); border-left-color: var(--blue); }
.showcase-tab:focus-visible { outline: 3px solid rgba(6,102,230,.5); outline-offset: 2px; border-radius: 6px; }

.showcase-panels { min-height: 340px; }
.showcase-panel[hidden] { display: none; }
.showcase-panel.is-active { animation: showcaseFade .3s ease; }
.showcase-eyebrow { display: inline-block; font-size: 13px; letter-spacing: 2px; font-weight: 700; text-transform: uppercase; color: var(--blue); }
.showcase-panel h3 { font-size: clamp(20px, 2.2vw, 25px); margin: 8px 0 16px; color: var(--ink); letter-spacing: -0.3px; }
.showcase-panel p { font-size: 15px; color: var(--text); margin-bottom: 12px; }
.showcase-panel ol { margin: 0 0 14px; padding-left: 20px; }
.showcase-panel li { font-size: 15px; color: var(--text); margin-bottom: 9px; padding-left: 4px; }
.showcase-panel li::marker { color: var(--blue); font-weight: 700; }
@keyframes showcaseFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.showcase-visual { position: sticky; top: 90px; display: flex; justify-content: center; }
.showcase-phone { position: relative; width: 100%; max-width: 290px; }
.showcase-phone-screen { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 9; background: #071d45; box-shadow: 0 26px 60px rgba(7,29,69,.34); }
.showcase-media { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: #fff; background: linear-gradient(160deg, var(--navy), var(--blue)); }
.showcase-media[hidden] { display: none; }
.showcase-media video, .showcase-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.showcase-play { width: 60px; height: 60px; border-radius: 50%; background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; }
.showcase-play svg { width: 28px; height: 28px; }
.showcase-media-caption { font-size: 13px; font-weight: 500; opacity: .9; letter-spacing: .3px; }

/* Download */
.download-app-icon { width: 92px; height: 92px; border-radius: 22px; margin: 0 auto 16px; box-shadow: var(--shadow); }
.download-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 330px)); gap: 22px; justify-content: center; margin-top: 34px; }
.download-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 22px; text-align: center; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.download-os { font-weight: 700; font-size: 18px; color: var(--ink); }
.download-card p { font-size: 14px; color: var(--muted); }
.qr { width: 132px; height: 132px; border: 1px solid var(--line); border-radius: 12px; padding: 8px; background: #fff; margin-top: 6px; }
.qr-hint { font-size: 12px; color: var(--muted); }

/* FAQ */
.faq { background: #fff; }
.faq-list { max-width: 780px; margin: 32px auto 0; }
.faq-item { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; background: var(--bg); overflow: hidden; }
.faq-item summary { cursor: pointer; font-weight: 600; padding: 16px 18px; list-style: none; color: var(--ink); position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--blue); font-weight: 400; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { padding: 0 18px 16px; color: #47525f; font-size: 15px; }
.faq-item p a { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.faq-item p a:hover { color: var(--blue-deep); }

/* Final CTA */
.final-cta { background: linear-gradient(135deg, var(--navy-950) 0%, var(--blue) 130%); color: #fff; text-align: center; }
.final-cta h2 { color: #fff; font-size: clamp(25px, 3.6vw, 39px); font-weight: 800; letter-spacing: -0.5px; }
.final-cta p { max-width: 560px; margin: 14px auto 0; color: #d5e3fb; }
.final-cta-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 26px; }

/* Footer */
.site-footer { background: var(--navy-950); color: #b9c6de; padding: 42px 0 24px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: flex-start; }
.footer-brand p { font-size: 13px; color: #8ea2c4; margin-top: 12px; max-width: 300px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: #c3d0e6; font-size: 14px; }
.footer-links a:hover { color: #fff; }
.footer-bottom { margin-top: 28px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); color: #7f92b3; }

/* ===== Reveal animations ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s cubic-bezier(.22,.61,.36,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(22px); transition: opacity .5s ease, transform .5s cubic-bezier(.22,.61,.36,1); }
.reveal-stagger.in > * { opacity: 1; transform: none; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: .08s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: .16s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: .24s; }

/* ===== Focus ===== */
.pill:focus-visible, .store-badge:focus-visible, .faq-item summary:focus-visible, .lang-btn:focus-visible, .site-nav a:focus-visible {
  outline: 3px solid rgba(6,102,230,.5); outline-offset: 2px; border-radius: 8px;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero { padding: 108px 0 56px; text-align: center; }
  .hero::before { background-position: center; }
  .hero::after { background: linear-gradient(180deg, rgba(6,20,48,.9) 0%, rgba(7,26,64,.9) 100%); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 30px; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  /* Checkmark list stays a centered block, but the text reads left-aligned so
     the ticks line up in a column and wrapped lines do not centre. */
  .hero-badges { align-items: flex-start; text-align: left; width: fit-content; max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-note { margin-left: auto; margin-right: auto; }
  .hero-phone-img { max-width: 260px; }
  .how-steps { grid-template-columns: repeat(2, 1fr); }
  /* Showcase: stack into one column; tab rail becomes a horizontal bar. */
  .showcase-grid { grid-template-columns: 1fr; gap: 28px; }
  .showcase-tabs { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 4px; border-left: none; border-bottom: 1px solid var(--line); }
  .showcase-tab { margin-left: 0; margin-bottom: -1px; border-left: none; border-bottom: 2px solid transparent; padding: 10px 14px; text-align: center; }
  .showcase-tab.is-active { border-left-color: transparent; border-bottom-color: var(--blue); }
  .showcase-panels { min-height: 0; }
  .showcase-visual { position: static; }
  .showcase-phone { max-width: 260px; }
}
@media (max-width: 820px) {
  /* On mobile the header collapses to the hamburger; the advisor code shows
     in the full-width banner below the header instead of the top-right chip. */
  .site-nav, .header-cta, .header-rp-code { display: none; }
  .nav-toggle { display: flex; }
  .footer-grid { flex-direction: column; align-items: center; text-align: center; }
  .footer-links { justify-content: center; }
  .footer-bottom { text-align: center; }
}
@media (max-width: 560px) {
  section { padding: 46px 0; }
  .container { padding: 0 18px; }
  .how-steps, .download-grid { grid-template-columns: 1fr; }
  .hero { padding: 100px 0 40px; }
  .hero-headline { font-size: clamp(30px, 8.5vw, 40px); margin: 10px 0 14px; }
  .hero-sub { font-size: 16px; }
  .hero-ctas { gap: 10px; }
  .hero-ctas .store-badge img { height: 46px; }
  .hero-badges { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; }
  .hero-badges li { text-align: left; padding-left: 26px; }
  .hero-badges span { max-width: none; }
  .hero-phone-img { max-width: 250px; }
  .section-title { font-size: clamp(26.5px, 7.6vw, 34.5px); }
  .store-badge img { height: 48px; }
  .final-cta-row .store-badge img { height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; transition: none; }
  .pill, .store-badge { transition: none; }
}

/* ==== Unified onboarding: RP-code banner, register hint, badge modal, QR gate ==== */
.rp-code-banner { background: linear-gradient(150deg, var(--navy), var(--navy-950)); color: #fff; }
.rp-code-banner[hidden] { display: none; }
.rp-code-inner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 0; font-size: 14px; }
.rp-code-label { opacity: .85; }
.rp-code-value { font-size: 16px; letter-spacing: .5px; background: rgba(255,255,255,.14); padding: 2px 10px; border-radius: 999px; }
.rp-code-note { opacity: .8; }

.how-rp-hint { margin-top: 8px; font-size: 14px; color: var(--muted); }
.how-rp-hint[hidden] { display: none; }
.how-rp-hint .how-rp-code { color: var(--blue); }
.how-rp-hint-note { display: block; margin-top: 2px; font-size: 9px; font-style: italic; opacity: .8; }
.how-register-link { margin-top: 12px; }

.pill-ghost { background: transparent; color: var(--navy); border: 1px solid var(--line); }
.pill-ghost:hover { background: var(--bg); }

.rp-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.rp-modal[hidden] { display: none; }
.rp-modal-backdrop { position: absolute; inset: 0; background: rgba(7, 29, 69, .55); }
.rp-modal-card { position: relative; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); max-width: 420px; width: 100%; padding: 26px 24px; text-align: center; }
.rp-modal-card h3 { font-size: 20px; margin-bottom: 8px; }
.rp-modal-card p { color: var(--text); font-size: 14.5px; }
.rp-modal-code { font-size: 26px; font-weight: 800; letter-spacing: 1px; color: var(--blue); margin: 14px 0 20px; }
.rp-modal-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
