@import url("/assets/css/rp-base.css"); /* UI-VOCAB-01 §1.2: the ONE shared base sheet (tokens + scrollbars) — rules live there, never here */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand:       #0284c7;
  --brand-dark:  #0369a1;
  --starter:     #0284c7;
  --growth:      #7c3aed;
  --pro:         #0f766e;
  --enterprise:  #374151;
  --text:        #111827;
  --muted:       #6b7280;
  --bg:          #f9fafb;
  --card:        #ffffff;
  --border:      #e5e7eb;
  --radius:      10px;
  --shadow:      0 1px 4px rgba(0,0,0,.07);
}

body { font-family: system-ui, -apple-system, sans-serif; background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.6; }

/* ── Top bar ── */
.topbar { background: #fff; border-bottom: 1px solid var(--border); padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: 75px; }
.topbar-logo { display: flex; align-items: center; text-decoration: none; }
.topbar-logo span { color: var(--text); }
.topbar-link { font-size: 13px; color: var(--muted); text-decoration: none; }
.topbar-link:hover { color: var(--brand); }

/* ── DESIGN POLISH PASS (2026-07-21) ─────────────────────────────────────────
   Rhythm scale: 96 / 64 / 40 / 24 — 96 = page head, 64 = every section boundary,
   40 = intra-band blocks, 24 = component padding. Mobile steps down one notch
   (64→40, 40→24). One accent system: --brand is THE action color; tier identity
   lives only in the card eyebrow; green is the switch campaign's ACCENT, not a
   second brand. Signature moment (D7): the Most Popular card elevation — all
   other emphasis de-escalates around it. */

.band { max-width: 1160px; margin: 0 auto 64px; padding: 0 24px; }

/* ── Pricing hero ── */
.pricing-hero { text-align: center; padding: 96px 24px 64px; }
.pricing-hero h1 { font-size: 38px; font-weight: 800; letter-spacing: -.5px; margin-bottom: 14px; }
.pricing-hero p  { font-size: 17px; color: var(--muted); max-width: 560px; margin: 0 auto; }
/* ── Eyebrow (D4 chip diet / D6): the hero badge is a quiet uppercase eyebrow,
      not a third chip level — chips live ONLY in the trust row + inside cards. ── */
.badge-pill {
  display: inline-flex; align-items: center; gap: 7px;
  color: #166534;
  font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 20px;
}
.badge-pill::before { content: '✓'; font-size: 13px; }

.value-props {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
  margin-top: 24px;
}
.value-props span {
  display: inline-flex; align-items: center; gap: 7px;
  background: #f0fdf4; color: #166534;
  border: 1.5px solid #4ade80;
  border-radius: 99px;
  padding: 7px 18px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.05em;
  box-shadow: 0 2px 6px rgba(22,163,74,.1);
}
.value-props span::before { content: '✓'; font-weight: 900; font-size: 12px; }

/* ── Tier grid (D2: the grid's bottom gap IS the 64 boundary to the corp band —
      the old padding-bottom + band margins double-stacked into the dead zone) ── */
/* auto-fit: three purchasable tiers center the row (the old fixed 4-col grid left a
   dead quarter); a 4th card would still land cleanly. */
.tier-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); align-items: stretch; gap: 20px; max-width: 1100px; margin: 0 auto 64px; padding: 0 24px; }

.tier-card { background: var(--card); border: 2px solid var(--border); border-radius: 14px; padding: 28px 24px 24px; display: flex; flex-direction: column; position: relative; transition: box-shadow .2s; }
.tier-card:hover { box-shadow: 0 3px 12px rgba(0,0,0,.07); }
/* D7 — THE signature: the Most Popular card is the page's single focal point. */
.tier-card.popular { border-color: var(--growth); transform: scale(1.03); transform-origin: center bottom; box-shadow: 0 12px 32px rgba(17,24,39,.13); z-index: 1; }
.tier-card.popular:hover { box-shadow: 0 14px 36px rgba(17,24,39,.16); }

.tier-popular-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--growth); color: #fff; border-radius: 99px; padding: 3px 14px; font-size: 11px; font-weight: 800; white-space: nowrap; text-transform: uppercase; letter-spacing: .04em; }

.tier-label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.tier-label.starter    { color: var(--starter); }
.tier-label.growth     { color: var(--growth); }
.tier-label.pro        { color: var(--pro); }
.tier-label.enterprise { color: var(--enterprise); }

.tier-price { margin-bottom: 6px; }
.tier-price .amount { font-size: 42px; font-weight: 800; line-height: 1; }
.tier-price .period { font-size: 14px; color: var(--muted); }
.tier-price .custom  { font-size: 26px; font-weight: 700; }
.tier-price .no-fees {
  display: flex; align-items: center; gap: 5px;
  width: fit-content;
  font-size: 11px; font-weight: 800; color: #166534;
  background: #f0fdf4; border: 1.5px solid #4ade80;
  border-radius: 99px; padding: 4px 12px;
  margin-top: 8px; letter-spacing: 0.04em;
  box-shadow: 0 1px 4px rgba(22,163,74,.1);
}
.tier-price .no-fees::before { content: '✓'; font-size: 10px; }

.tier-sites { font-size: 13px; color: var(--muted); margin-bottom: 20px; }

/* D3: bullets top-aligned on one line rhythm; the button anchors to the card
   bottom (margin-top:auto), so all four CTAs sit on one baseline. */
.tier-features { list-style: none; margin-bottom: 24px; }
.tier-features li { font-size: 13px; padding: 6px 0; line-height: 1.5; display: flex; align-items: flex-start; gap: 8px; }
.tier-features li::before { content: '✓'; color: #16a34a; font-weight: 700; flex-shrink: 0; }

/* D1 — ONE action color. Tier identity stays in the eyebrow; the popular card's
   CTA is the filled weight, every other CTA the outlined weight of the SAME hue. */
.tier-btn { display: block; text-align: center; margin-top: auto; padding: 11px 20px; border-radius: 8px; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; background: #fff; color: var(--brand); border: 2px solid var(--brand); transition: background .15s, color .15s; }
.tier-btn:hover { background: #f0f9ff; }
.tier-btn.growth-btn { background: var(--brand); color: #fff; }
.tier-btn.growth-btn:hover { background: var(--brand-dark); }

/* ── Register form ── */
.register-wrap { max-width: 580px; margin: 0 auto; padding: 48px 24px 64px; }
.register-wrap h1 { font-size: 26px; font-weight: 800; margin-bottom: 6px; }
.register-wrap .sub { color: var(--muted); font-size: 14px; margin-bottom: 28px; }

.tier-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 8px 14px; margin-bottom: 24px; font-size: 14px; }
.tier-badge strong { font-weight: 700; }
.tier-badge a { color: var(--muted); font-size: 12px; text-decoration: none; }
.tier-badge a:hover { color: var(--brand); }

.form-section { margin-bottom: 28px; }
.form-section-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.form-group { margin-bottom: 14px; }
.form-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.form-label .req { color: #e53935; }
.form-control { width: 100%; padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 14px; background: #fff; transition: border-color .15s; }
.form-control:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(2,132,199,.1); }
.form-hint { font-size: 12px; color: var(--muted); margin-top: 4px; display: block; }

.slug-preview { font-size: 12px; color: var(--muted); margin-top: 4px; }
.slug-preview strong { color: var(--text); }

.submit-btn { width: 100%; padding: 13px; background: var(--brand); color: #fff; border: none; border-radius: var(--radius); font-size: 15px; font-weight: 700; cursor: pointer; margin-top: 8px; }
.submit-btn:hover { background: var(--brand-dark); }

.legal-note { font-size: 12px; color: var(--muted); margin-top: 12px; text-align: center; }
.legal-note a { color: var(--brand); }

.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; font-size: 14px; }
.alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }

/* ── Complete page ── */
.complete-wrap { max-width: 560px; margin: 80px auto; padding: 0 24px; text-align: center; }
.complete-icon { font-size: 56px; margin-bottom: 16px; }
.complete-wrap h1 { font-size: 28px; font-weight: 800; margin-bottom: 10px; }
.complete-wrap p { color: var(--muted); margin-bottom: 8px; }
.complete-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 24px; margin: 28px 0; text-align: left; }
.complete-card h3 { font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.complete-card dl { display: grid; grid-template-columns: 130px 1fr; gap: 6px 12px; font-size: 13px; }
.complete-card dt { color: var(--muted); }
.complete-card dd { font-weight: 600; word-break: break-all; }
.next-steps { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 12px; padding: 20px; text-align: left; margin-bottom: 24px; }
.next-steps h3 { font-size: 13px; font-weight: 700; color: #1e40af; margin-bottom: 10px; }
.next-steps ol { padding-left: 18px; font-size: 13px; color: #1e3a8a; }
.next-steps li { margin-bottom: 6px; }

/* ── Switch band (D1: signup's citizen — light surface, green as ACCENT only;
      D4: the three chips collapse to one quiet fact line) ── */
.swb { background: #fff; border: 1px solid var(--border); border-left: 4px solid #059669; border-radius: 16px; padding: 34px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; box-shadow: var(--shadow); }
.swb-title { font-size: 24px; font-weight: 800; letter-spacing: -.01em; margin: 0 0 6px; color: var(--text); }
.swb-sub { font-size: 14.5px; color: var(--muted); margin-bottom: 12px; }
.swb-facts { font-size: 12.5px; font-weight: 600; color: #047857; letter-spacing: .01em; }
.swb-cta { background: var(--brand); color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; border-radius: 9px; padding: 13px 24px; white-space: nowrap; transition: background .15s; }
.swb-cta:hover { background: var(--brand-dark); }

/* ── Footer band (D5: the orphan talk-to-us line folds in; /switch register) ── */
.footer { text-align: center; padding: 40px 24px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--border); background: #fff; }
.footer a { color: var(--muted); }
.footer-brand { display: inline-block; margin-bottom: 16px; }
.footer-brand img { height: 30px; width: auto; display: block; }
.footer-cta { font-size: 14px; margin-bottom: 16px; }
.footer-cta a { color: var(--brand); font-weight: 600; }
.footer-legal { font-size: 12px; }

/* ── D8 quality floor ── */
a:focus-visible, button:focus-visible, .tier-btn:focus-visible, .swb-cta:focus-visible {
  outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 8px;
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .tier-card.popular { transform: none; }
}

@media (max-width: 900px) {
  .tier-grid { grid-template-columns: repeat(2, 1fr); }
  .tier-card.popular { transform: none; }   /* the elevation is a desktop signature */
}
@media (max-width: 640px) {
  /* rhythm steps down one notch on mobile */
  .pricing-hero { padding: 64px 16px 40px; }
  .band, .tier-grid { margin-bottom: 40px; }
  .swb { padding: 24px; }
}
@media (max-width: 600px) {
  .tier-grid { grid-template-columns: 1fr; }
  .pricing-hero h1 { font-size: 28px; }
}

/* ══ Signup add-on selection section (Phase 2) — mirrors the approved mockup ══ */
.sa-section { }
.sa-optional { font-weight: 600; font-size: 11px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--border); border-radius: 99px; padding: 2px 9px; margin-left: 8px; vertical-align: middle; }
.sa-lede { color: var(--muted); font-size: 13.5px; margin: -4px 0 16px; max-width: 60ch; }
.sa-empty { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; border-radius: var(--radius);
  padding: 16px 18px; font-weight: 600; font-size: 14px; }
.sa-grouplab { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); margin: 14px 0 9px; display: flex; align-items: center; }
.sa-grouplab .sa-ct { margin-left: auto; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--muted); font-size: 12px; }
.sa-cards { display: flex; flex-direction: column; gap: 10px; }
.sa-addon { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: start;
  border: 1.5px solid var(--border); border-radius: var(--radius); padding: 13px 15px; background: var(--card);
  cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.sa-addon:hover { border-color: var(--brand); box-shadow: 0 4px 14px rgba(2,132,199,.10); }
.sa-addon.on { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(2,132,199,.15); }
.sa-addon input { position: absolute; opacity: 0; width: 0; height: 0; }
.sa-tick { width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--border); margin-top: 1px; position: relative; transition: all .12s; }
.sa-addon:hover .sa-tick { border-color: var(--brand); }
.sa-addon.on .sa-tick { border-color: var(--brand); background: var(--brand); }
.sa-addon.on .sa-tick::after { content: ""; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.sa-body { display: block; min-width: 0; }
.sa-nm { font-weight: 700; font-size: 14.5px; line-height: 1.3; display: block; }
.sa-bl { color: var(--muted); font-size: 13px; margin-top: 2px; display: block; }
.sa-price { text-align: right; font-weight: 800; font-size: 14.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sa-price small { display: block; font-weight: 600; color: var(--muted); font-size: 11px; margin-top: 1px; }
.sa-metered { margin-top: 9px; border-top: 1px dashed #fde68a; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
/* .sa-mtag: zero call sites — retired UI-06 §1.4 */
.sa-mnote { color: var(--muted); font-size: 11.5px; }
.sa-included { display: flex; flex-wrap: wrap; gap: 7px; background: #f0fdf4; border: 1px solid #bbf7d0;
  border-radius: var(--radius); padding: 12px 14px; }
.sa-chip { display: inline-flex; align-items: center; gap: 6px; color: #166534; border: 1px solid #bbf7d0;
  border-radius: 99px; padding: 4px 11px; font-size: 12.5px; font-weight: 600; }
