  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
 
  :root {
    --navy:          #003EAB;
    --navy-deep:     #002680;
    --slate:         #1e293b;
    --muted:         #64748b;
    --border:        #e2e8f0;
    --white:         #ffffff;
    --indigo:        #4338ca;
    --indigo-bg:     #f0f0ff;
    --indigo-border: #a5b4fc;
  }
 
  html { font-size: 16px; scroll-behavior: smooth; }
 
  body {
    font-family: 'Roboto', sans-serif;
    background: #ffffff;
    color: var(--slate);
    line-height: 1.6;
    min-height: 100vh;
  }
 
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
      radial-gradient(ellipse 80% 50% at 20% -10%, rgba(0,62,171,0.06) 0%, transparent 60%),
      radial-gradient(ellipse 60% 40% at 80% 110%, rgba(67,56,202,0.04) 0%, transparent 55%);
    pointer-events: none;
    z-index: 0;
  }
 
  .page {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 100px;
  }
 
  /* ─── Page header ─── */
  .pricing-header {
    text-align: center;
    padding: 80px 0 64px;
  }
 
  .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 6px 18px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Barlow', sans-serif;
    color: var(--navy);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 28px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  }
 
  .eyebrow-dot {
    width: 7px;
    height: 7px;
    background: var(--navy);
    border-radius: 50%;
  }
 
  .pricing-header h1 {
    font-family: 'Barlow', sans-serif;
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.1;
    color: var(--slate);
    margin-bottom: 18px;
    letter-spacing: -0.01em;
  }
 
  .pricing-header h1 em {
    font-style: italic;
    color: var(--navy);
  }
 
  .pricing-header p {
    font-size: 18px;
    color: var(--muted);
    max-width: 680px;
    margin: 0 auto;
    font-weight: 400;
  }
 
  /* ─── Grid ─── */
  .pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: stretch;
  }
 
  @media (max-width: 1100px) {
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  }
 
  @media (max-width: 620px) {
    .pricing-grid { grid-template-columns: 1fr; }
  }
 
  /* ─── Card base ─── */
  .card {
    background: #f8fafc;
    border: 1.5px solid var(--border);
    border-radius: 20px;
    padding: 32px 28px 28px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: box-shadow 0.25s ease;
    animation: card-in 0.5s ease both;
  }

  .card:hover {
    box-shadow: 0 4px 12px rgba(0,62,171,0.04);
  }
 
  .card:nth-child(1) { animation-delay: 0.05s; }
  .card:nth-child(2) { animation-delay: 0.12s; }
  .card:nth-child(3) { animation-delay: 0.19s; }
  .card:nth-child(4) { animation-delay: 0.26s; }
 
  @keyframes card-in {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
  }
 
  .card--featured {
    border-color: var(--navy);
    border-width: 2px;
    box-shadow: 0 4px 16px rgba(0,62,171,0.08);
  }
 
  .card--featured:hover { box-shadow: 0 6px 16px rgba(0,62,171,0.10); }
 
  .card--api {
    background: var(--indigo-bg);
    border-color: var(--indigo-border);
    border-width: 1.5px;
    border-style: dashed;
  }

  .card--api:hover { box-shadow: 0 4px 12px rgba(67,56,202,0.05); }
 
  /* ─── Badge ─── */
  .badge-wrap {
    position: absolute;
    top: -14px; left: 50%;
    transform: translateX(-50%);
  }
 
  .badge-wrap .badge {
    display: inline-block;
    background: var(--navy);
    color: var(--white);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 16px;
    border-radius: 100px;
    white-space: nowrap;
    position: unset;
  }
 
  /* ─── Builder pill ─── */
  .builder-pill {
    display: inline-block;
    background: #ddd6fe;
    color: #4c1d95;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 6px;
    margin-bottom: 10px;
    align-self: flex-start;
    flex-shrink: 0;
  }
 
  /* ─── Card header — fixed height so divider aligns across all cards ─── */
  .card-header {
    height: 118px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    background-color: unset;
    flex-shrink: 0;
  }
 
  .card--api .card-header { height: 82px; }
 
  .card--featured .card-header { border-color: var(--navy); }
  .card--api      .card-header { border-color: var(--indigo-border); }
 
  /* ─── Plan label ─── */
  .plan-label {
    font-size: 12px;
    font-weight: 700;
    font-family: 'Barlow', sans-serif;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 6px;
  }
 
  .card--featured .plan-label { color: var(--navy); }
  .card--api      .plan-label { color: #5b21b6; }
 
  /* ─── Price ─── */
  .price-row {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 6px;
  }
 
  .price-amount {
    font-family: 'Barlow', sans-serif;
    font-size: 44px;
    font-weight: 800;
    color: var(--navy);
    line-height: 1;
    letter-spacing: -0.02em;
  }
 
  .price-amount--contact { font-size: 26px; font-weight: 700; }

  .card--api .price-amount { color: var(--indigo); }

  .price-period {
    font-size: 14px;
    color: var(--muted);
    font-weight: 400;
    font-family: 'Roboto', sans-serif;
  }
 
  /* ─── Transaction volume — primary differentiator, lives in header ─── */
  .volume {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.4;
    margin: 0;
  }
 
  /* ─── Tier inheritance note — quiet aside, same treatment as "Also included" ─── */
  .tier-inherit {
    font-size: 12px;
    font-weight: 400;
    font-style: italic;
    color: var(--muted);
    margin-bottom: 14px;
  }

  /* ─── Feature list — flex:1 so it fills available space and pushes CTA down ───
     Bled 16px past the card's right padding (left edge stays aligned with the
     header) to reclaim text width and reduce two-line wraps. ─── */
  .features {
    list-style: none;
    flex: 1;
    margin: 0 -16px 0 0;
    padding-left: 0;
  }
 
  .features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--slate);
    padding: 6px 0;
    line-height: 1.45;
  }
 
  .features li + li { border-top: 1px solid #f1f5f9; }
  .card--api .features li + li { border-color: #e0d9f7; }

  /* ─── Feature group tag — outlined status-tag style ─── */
  .features li.feature-label {
    display: inline-block;
    border: 1px solid #c7d5ef;
    background: transparent;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--navy);
    padding: 3px 10px;
    border-radius: 100px;
    margin: 16px 0 8px;
  }

  .features li.feature-label:first-child { margin-top: 4px; }

  /* ─── General/cross-cutting note — deliberately lighter than a module tag ─── */
  .features li.feature-label--general {
    display: block;
    border: none;
    background: none;
    text-transform: none;
    letter-spacing: normal;
    border-radius: 0;
    font-size: 12px;
    padding: 14px 0 4px;
    margin: 0;
    font-weight: 400;
    font-style: italic;
    color: var(--muted);
  }

  /* ─── Check icon ─── */
  .check-icon {
    flex-shrink: 0;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: #e8eef8;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
  }
 
  .check-icon svg {
    width: 10px; height: 10px;
    stroke: var(--navy);
    stroke-width: 2.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .card--api .check-icon { background: #ddd6fe; }
  .card--api .check-icon svg { stroke: #5b21b6; }

  /* ─── CTA — margin-top:auto pins all buttons to the same row ─── */
  .btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 13px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Barlow', sans-serif;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    flex-shrink: 0;
    margin-top: 14px;
  }
 
  .btn--outline {
    background: transparent;
    color: var(--navy);
    border: 1.5px solid var(--navy);
  }
 
  .btn--outline:hover { background: var(--navy); color: var(--white); }
 
  .btn--primary {
    background: var(--navy);
    color: var(--white) !important;
    box-shadow: 0 4px 14px rgba(0,62,171,0.30);
  }
 
  .btn--primary:hover {
    background: var(--navy-deep);
    box-shadow: 0 4px 12px rgba(0,62,171,0.22);
    transform: translateY(-1px);
  }
 
  .btn--api {
    background: linear-gradient(135deg, var(--indigo) 0%, #6d28d9 100%);
    color: var(--white) !important;
    box-shadow: 0 4px 14px rgba(67,56,202,0.28);
  }

  .btn--api:hover {
    box-shadow: 0 6px 20px rgba(67,56,202,0.38);
    transform: translateY(-1px);
  }
 
  /* ─── Tagline — sits below CTA, fixed height so card bottoms align ─── */
  .plan-tagline {
    height: 32px;
    display: flex;
    align-items: flex-start;
    margin-top: 14px;
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.55;
    font-style: italic;
    flex-shrink: 0;
  }

  .card--api .plan-tagline { color: #7c3aed; opacity: 0.75; }

  /* ─── Footnote ─── */
  .footnote {
    text-align: center;
    font-size: 12px;
    color: var(--muted);
    margin-top: 20px;
    margin-bottom: 48px;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    opacity: 0.75;
  }
 
  /* ─── Bottom CTA ─── */
  .bottom-cta {
    margin-top: 64px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
    border-radius: 24px;
    padding: 56px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
  }
 
  .bottom-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse 60% 80% at 90% 50%, rgba(255,255,255,0.06) 0%, transparent 60%),
      radial-gradient(ellipse 40% 60% at 10% 20%, rgba(255,255,255,0.04) 0%, transparent 50%);
    pointer-events: none;
  }
 
  .bottom-cta h2 {
    font-family: 'Barlow', sans-serif;
    font-size: clamp(26px, 3.5vw, 40px);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
    position: relative;
  }
 
  .bottom-cta p {
    color: rgba(255,255,255,0.72);
    font-size: 16px;
    max-width: 460px;
    margin: 0 auto 28px;
    position: relative;
    font-family: 'Roboto', sans-serif;
  }
 
  .cta-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
  }
 
  .btn-cta-primary {
    display: inline-block;
    background: var(--white);
    color: var(--navy);
    padding: 13px 28px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Barlow', sans-serif;
    text-decoration: none;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: all 0.2s;
  }
 
  .btn-cta-primary:hover { background: #e8eef8; transform: translateY(-1px); }
 
  .btn-cta-ghost {
    display: inline-block;
    background: rgba(255,255,255,0.12);
    color: var(--white);
    padding: 13px 28px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Barlow', sans-serif;
    text-decoration: none;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,0.25);
    transition: all 0.2s;
  }
 
  .btn-cta-ghost:hover { background: rgba(255,255,255,0.20); transform: translateY(-1px); }
 
  @media (max-width: 768px) {
    .pricing-header { padding: 56px 0 48px; }
    .bottom-cta { padding: 40px 24px; }
    .plan-tagline { height: auto; }
  }
