/* Theme */
:root {
  --plum: #4b1d4a;
  --plum-600: #3a1539;
  --plum-050: #f8f4f8;
  --purple-accent: #6B3A7D;
  --dark-bg: #2D0836;
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --bg: #ffffff;
  --border: #e6e6e6;
  --logo-color: var(--purple-accent);
  --page-gap: 24px;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(0,0,0,0.08);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: var(--page-gap);
  font-family: 'Helvetica Neue', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, Apple Color Emoji, Segoe UI Emoji;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  letter-spacing: 0.2px;
}

/* Layout */
.container { max-width: 1120px; padding: 0 24px; margin: 0 auto; }
.narrow { max-width: 760px; }
.center { text-align: center; }

/* Header */
.site-header { position: sticky; top: 0; background: #fff; border-bottom: 1px solid var(--border); z-index: 10; width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); margin-top: calc(-1 * var(--page-gap)); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand .logo { width: 22px; height: 22px; border-radius: 50%; background: var(--logo-color); display: inline-block; }
.brand-text { font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-weight: 500; font-size: 20px; color: var(--plum); letter-spacing: 0.2px; }
.menu-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 10px; background: #fff; padding: 0; cursor: pointer; }
.menu-toggle .bar { width: 20px; height: 2px; background: #333; margin: 2.5px 0; display: block; transition: transform .2s ease; }
.main-nav a { color: #333; text-decoration: none; margin-left: 20px; font-weight: 500; }
.main-nav a:hover { color: var(--plum); }
.main-nav a[aria-current="page"] { color: var(--plum); }
.main-nav .signin { color: #fff; background: var(--plum); padding: 10px 14px; border-radius: 8px; margin-left: 28px; }
.main-nav .signin:hover { background: var(--plum-600); }

/* Dropdown */
.nav-dropdown { position: relative; display: inline-block; }
.nav-dropdown > .nav-dropdown-toggle { cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.nav-dropdown > .nav-dropdown-toggle::after { content: ''; display: inline-block; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; margin-top: 1px; transition: transform .2s; }
.nav-dropdown:hover > .nav-dropdown-toggle::after,
.nav-dropdown.open > .nav-dropdown-toggle::after { transform: rotate(180deg); }
.nav-dropdown-menu { display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(0,0,0,0.12); padding: 12px 0; min-width: 220px; z-index: 20; }
.nav-dropdown-menu::before { content: ''; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.nav-dropdown:hover > .nav-dropdown-menu { display: block; }
.nav-dropdown-menu .dropdown-group { padding: 4px 0; }
.nav-dropdown-menu .dropdown-group + .dropdown-group { border-top: 1px solid var(--border); }
.nav-dropdown-menu .dropdown-label { display: block; padding: 6px 20px 2px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); }
.nav-dropdown-menu a { display: block; padding: 6px 20px; margin-left: 0; font-size: 14px; font-weight: 500; color: #333; white-space: nowrap; }
.nav-dropdown-menu a:hover { background: var(--plum-050); color: var(--plum); }

/* Hero */
.hero { padding: 64px 0 32px; }
.hero h1 { font-size: clamp(28px, 5vw, 48px); line-height: 1.15; margin: 0 0 12px; }
.lede { font-size: 18px; color: var(--muted); margin: 8px 0 24px; }
.cta-group { display: flex; gap: 12px; flex-wrap: wrap; }

/* Full-bleed banner */
.full-bleed { width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.hero-banner {
  position: relative;
  min-height: 360px;
  background-color: #2D0836;
  background-image: linear-gradient(180deg, rgba(45,8,54,0.9), rgba(75,29,74,0.85)), var(--hero-image);
  background-size: cover;
  background-position: center;
  color: #fff;
  margin-top: 0;
}
.hero-banner .hero-content { padding: 96px 24px; text-align: center; }
.hero-banner .hero-content > * { margin-left: auto; margin-right: auto; }
.hero-banner h1 { color: #fff; font-size: clamp(32px, 6vw, 60px); line-height: 1.08; margin: 0 0 12px; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-weight: 300; letter-spacing: 0.2px; }
.hero-banner h1 sup { font-size: 0.6em; position: relative; top: -0.6em; letter-spacing: 0; margin-left: 2px; }
.hero-banner .lede { color: #f2eaf2; max-width: 680px; }
.hero-banner .cta-group { justify-content: center; }
.hero-banner .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.5); }
.hero-banner .btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

/* Buttons */
.btn { display: inline-block; padding: 12px 18px; border-radius: 10px; text-decoration: none; font-weight: 600; letter-spacing: 0.2px; transition: background .15s, border-color .15s; }
.btn-primary { background: var(--plum); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--plum-600); }
.btn-ghost { color: var(--plum); border: 1px solid var(--plum); }
.btn-ghost:hover { background: var(--plum-050); }
.btn-lg { padding: 16px 28px; font-size: 18px; }

/* Sections */
.section { padding: 48px 0; }
.section-alt { background: var(--plum-050); width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); padding: 48px 0; }
.section-alt > .container { max-width: 1120px; padding: 0 24px; margin: 0 auto; }
.section-dark { background: var(--dark-bg); color: #fff; width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); padding: 48px 0; }
.section-dark > .container { max-width: 1120px; padding: 0 24px; margin: 0 auto; }
.section-dark h2 { color: #fff; }
.section-dark .lede { color: #d4bdd4; }
.section-dark .subtle { color: #b89ab8; }
.section-plum { background: var(--plum); color: #fff; width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); padding: 48px 0; }
.section-plum > .container { max-width: 1120px; padding: 0 24px; margin: 0 auto; }
.section-plum h2 { color: #fff; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 24px 0 8px; }
.feature { background: #fff; padding: 20px; border-radius: var(--radius); box-shadow: var(--shadow); }
.band { padding: 48px 0 72px; }
.band-content { background: var(--plum); color: #fff; padding: 32px; border-radius: var(--radius); }

.page { padding: 40px 0 64px; }
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: start; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.card { background: #fff; padding: 20px; border-radius: var(--radius); box-shadow: var(--shadow); }
.card h3 { margin-top: 0; }
.card-accent { background: var(--plum-050); box-shadow: none; }
.card-accent h3 { color: var(--plum); }
.card-icon { width: 48px; height: 48px; margin-bottom: 12px; }
.feature-icon { width: 48px; height: 48px; margin-bottom: 12px; }
.cta-center { text-align: center; margin-top: 28px; }
.list { padding-left: 20px; margin: 8px 0; }
.list li { margin: 6px 0; }
.subtle { color: var(--muted); font-size: 14px; }
.link { color: #fff; text-underline-offset: 3px; }

/* Section headings */
.section h2, .section-alt h2, .section-dark h2, .section-plum h2, .page h2 {
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.2;
  margin-top: 0;
}
.section-heading { text-align: center; margin-bottom: 32px; }
.section-heading h2 { margin-bottom: 8px; }
.section-heading p { color: var(--muted); font-size: 18px; max-width: 640px; margin: 0 auto; }

/* Stats row */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat { padding: 16px; }
.stat-number { font-size: clamp(28px, 4vw, 42px); font-weight: 700; color: var(--purple-accent); line-height: 1.1; }
.stat-label { font-size: 14px; color: var(--muted); margin-top: 4px; }
.section-dark .stat-number { color: #fff; }
.section-dark .stat-label { color: #d4bdd4; }
.section-plum .stat-number { color: #fff; }
.section-plum .stat-label { color: #e0cce0; }

/* Stats callout (inline) */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin: 24px 0; }
.stat-card { background: var(--plum-050); padding: 20px; border-radius: var(--radius); text-align: center; }
.stat-card .stat-number { color: var(--plum); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 20px; }
.step::before { counter-increment: step; content: counter(step); display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--plum); color: #fff; font-weight: 700; font-size: 18px; margin-bottom: 12px; }
.step h3 { margin-top: 0; font-size: 18px; }
.step p { font-size: 15px; color: var(--muted); }

/* Audience cards */
.audience-card { background: #fff; padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; text-decoration: none; color: var(--text); display: block; }
.audience-card:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,0,0,0.12); }
.audience-card h3 { color: var(--plum); margin-top: 0; }
.audience-card p { color: var(--muted); margin-bottom: 8px; }
.audience-card .card-link { color: var(--plum); font-weight: 600; font-size: 14px; }

/* Pricing card (single, centered) */
.pricing-card { max-width: 480px; margin: 0 auto; background: #fff; padding: 32px; border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; border: 2px solid var(--plum); }
.pricing-card h3 { margin-top: 0; font-size: 22px; }
.price { font-size: clamp(36px, 5vw, 52px); font-weight: 700; color: var(--plum); line-height: 1; margin: 8px 0; }
.price-period { font-size: 18px; font-weight: 400; color: var(--muted); }
.pricing-card .list { text-align: left; margin: 20px 0; }
.pricing-card .list li { padding: 4px 0; }

/* Trust badges */
.trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; margin-top: 24px; }
.trust-badge { font-size: 14px; font-weight: 600; opacity: 0.85; }
.section-dark .trust-badge { color: #d4bdd4; }

/* FAQ cards */
.faq-list { display: flex; flex-direction: column; gap: 16px; }
.faq-card { background: #fff; padding: 20px; border-radius: var(--radius); box-shadow: var(--shadow); }
.faq-card h3 { margin-top: 0; font-size: 17px; color: var(--plum); }
.faq-card p { margin-bottom: 0; color: var(--muted); }
.faq-section { margin-bottom: 32px; }
.faq-section h2 { font-size: 22px; margin-bottom: 16px; border-bottom: 2px solid var(--plum-050); padding-bottom: 8px; }

/* Provider revenue table */
.revenue-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 20px 0; }
.revenue-card { background: var(--plum-050); padding: 20px; border-radius: var(--radius); text-align: center; }
.revenue-card h4 { margin: 0 0 4px; color: var(--plum); }
.revenue-card .price { font-size: 24px; margin: 4px 0; }
.revenue-card p { font-size: 13px; color: var(--muted); margin: 0; }

/* Dark band link */
.link-light { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.link-light:hover { color: var(--plum-050); }

/* Content sections */
.content-section { margin-bottom: 40px; }
.content-section h2 { margin-bottom: 16px; }
.content-section p { margin-bottom: 12px; }

/* Forms */
.form { max-width: 720px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field input, .field textarea, .field select { width: 100%; padding: 12px 12px; border-radius: 10px; border: 1px solid #ddd; font: inherit; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--plum-050); border-color: var(--plum); }
.field select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath fill='%236b6b6b' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center; padding-right: 36px; }
.hp { display: none; }

/* Footer */
.site-footer { border-top: 1px solid #eee; margin-top: 48px; padding: 32px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 48px; }
.brand-small { font-weight: 700; color: var(--plum); }
.footer-nav a { color: #333; text-decoration: none; margin-left: 16px; }
.footer-nav a:hover { color: var(--plum); }
.footer-links { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 20px; padding-top: 20px; border-top: 1px solid #eee; }
.footer-col { min-width: 140px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--plum); margin: 0 0 8px; }
.footer-col a { display: block; color: var(--muted); text-decoration: none; font-size: 14px; padding: 2px 0; }
.footer-col a:hover { color: var(--plum); }

/* Responsive */
@media (max-width: 900px) {
  :root { --page-gap: 12px; }
  .features, .grid-2, .grid-3, .grid-4, .grid-5, .split, .steps, .stats-row, .revenue-grid { grid-template-columns: 1fr; }
  .nav { height: auto; padding: 12px 0; gap: 10px; display: grid; grid-template-columns: 1fr auto; align-items: center; }
  .menu-toggle { display: inline-flex; }
  .main-nav { width: 100%; display: none; flex-direction: column; gap: 10px; padding-top: 6px; margin-top: 10px; }
  .main-nav.open { display: flex; }
  #site-menu { grid-column: 1 / -1; }
  .main-nav a { margin-left: 0; padding: 8px 2px; }
  .main-nav .signin { margin-left: 0; width: fit-content; }
  .nav-dropdown-menu { display: none; position: static; transform: none; box-shadow: none; border: none; border-radius: 0; padding: 0 0 0 12px; min-width: 0; }
  .nav-dropdown.open > .nav-dropdown-menu { display: block; }
  .nav-dropdown:hover > .nav-dropdown-menu { display: none; }
  .nav-dropdown.open:hover > .nav-dropdown-menu { display: block; }
  .nav-dropdown-menu a { padding: 4px 0; font-size: 14px; }
  .nav-dropdown-menu .dropdown-label { padding: 6px 0 2px; }
  .hero-banner .hero-content { padding: 60px 16px; }
  .footer-inner { flex-direction: column; height: auto; padding: 24px 0; text-align: center; }
  .footer-nav { margin-left: 0; }
  .footer-nav a { margin-left: 0; margin-right: 16px; }
  .trust-row { gap: 12px; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

/* BAA registry page */
.processor-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 24px 0; border-radius: var(--radius); box-shadow: var(--shadow); }
.processor-table { width: 100%; border-collapse: collapse; font-size: 15px; background: #fff; }
.processor-table th { text-align: left; padding: 14px 18px; background: var(--plum-050); color: var(--plum); font-weight: 600; border-bottom: 2px solid var(--plum); white-space: nowrap; }
.processor-table td { padding: 14px 18px; border-bottom: 1px solid var(--border); vertical-align: top; line-height: 1.5; }
.processor-table tr:last-child td { border-bottom: none; }
.processor-table tbody tr:nth-child(even) { background: #fafafa; }
.status-badge { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 13px; font-weight: 600; }
.status-on-file { background: #e6f4ea; color: #1a6634; }
.notice-card { background: #fffbeb; border-left: 4px solid #d97706; padding: 20px 24px; border-radius: var(--radius); margin: 32px 0; }
.notice-card h3 { margin-top: 0; color: #92400e; font-size: 17px; }
.notice-card ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); }
.download-cta { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; background: var(--plum); color: #fff; border-radius: var(--radius); font-weight: 600; text-decoration: none; transition: background .2s; }
.download-cta:hover { background: var(--plum-600); color: #fff; }
.baa-section { margin: 40px 0; }
.baa-section h2 { font-size: 22px; color: var(--plum); border-bottom: 2px solid var(--plum-050); padding-bottom: 10px; margin-bottom: 18px; }
.baa-intro { max-width: 760px; color: var(--muted); margin-bottom: 32px; }
