:root {
      --brand-dark: #15456F;
      --brand-accent: #C5A04D;
      --brand-accent-light: #E7D3A6;
      --brand-on-accent: #15456F;
    }
    body {
      padding-top: 0 !important;
    }

    .bai-label {
      font-family: 'Inter', system-ui, sans-serif;
      font-size: 15px;
      font-weight: 700;
      letter-spacing: 0.18em;
      text-transform: uppercase;
    }

    .bai-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: var(--brand-accent);
      color: var(--brand-on-accent);
      border: 0;
      border-radius: 8px;
      font-family: 'Inter', system-ui, sans-serif;
      font-weight: 700;
      font-size: 17px;
      line-height: 1.2;
      padding: 15px 28px;
      min-height: 48px;
      cursor: pointer;
      text-align: center;
      text-decoration: none;
      transition: background-color 200ms ease, transform 200ms ease;
    }
    .bai-btn:hover {
      background: var(--brand-accent-light);
    }
    .bai-btn:focus-visible {
      outline: 2px solid var(--brand-accent);
      outline-offset: 2px;
    }

    .bai-btn-outline {
      background: transparent;
      color: #fff;
      border: 2px solid var(--brand-accent);
      border-radius: 8px;
      font-family: 'Inter', system-ui, sans-serif;
      font-weight: 700;
      font-size: 17px;
      line-height: 1.2;
      padding: 14px 28px;
      min-height: 48px;
      cursor: pointer;
      text-align: center;
      text-decoration: none;
      transition: background-color 200ms ease, color 200ms ease;
    }
    .bai-btn-outline:hover {
      background: rgba(197, 160, 77, 0.18);
      color: #fff;
    }
    .bai-btn-outline:focus-visible {
      outline: 2px solid var(--brand-accent);
      outline-offset: 2px;
    }

    .bai-btn-outline-dark {
      background: transparent;
      color: var(--brand-dark);
      border: 2px solid var(--brand-accent);
      border-radius: 8px;
      font-family: 'Inter', system-ui, sans-serif;
      font-weight: 700;
      font-size: 17px;
      line-height: 1.2;
      padding: 14px 30px;
      min-height: 48px;
      cursor: pointer;
      text-align: center;
      text-decoration: none;
      transition: background-color 200ms ease, color 200ms ease;
    }
    .bai-btn-outline-dark:hover {
      background: rgba(21, 69, 111, 0.06);
      color: var(--brand-dark);
    }
    .bai-btn-outline-dark:focus-visible {
      outline: 2px solid var(--brand-accent);
      outline-offset: 2px;
    }

    /* Badge helper (from the A.I. Certified Agent badge code) */
    .badged { position: relative; display: inline-block; }
    .badged-mark {
      position: absolute;
      top: -12px;
      right: -12px;
      width: 36%;
      height: auto;
      border: 0;
      border-radius: 0;
      background: none;
      box-shadow: none;
      object-fit: contain;
      transition: transform .2s ease;
    }
    .badged:hover .badged-mark { transform: translateY(-4px) scale(1.04); }
    .badged-mark.low { top: auto; right: 4px; bottom: -12px; width: 96px; }

    /* How It Works steps joined by a thin line */
    .bai-steps {
      list-style: none;
      margin: 0;
      padding: 0;
      display: grid;
      grid-template-columns: 1fr;
      gap: 0;
      position: relative;
    }
    @media (min-width: 768px) {
      .bai-steps {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
      }
    }
    .bai-step {
      position: relative;
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 12px 0;
    }
    @media (min-width: 768px) {
      .bai-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0;
      }
      .bai-step:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 22px;
        left: calc(50% + 28px);
        right: calc(-50% + 28px);
        height: 1px;
        background: rgba(255, 255, 255, 0.3);
      }
    }
    .bai-step-num {
      flex: none;
      width: 44px;
      height: 44px;
      border-radius: 9999px;
      border: 2px solid var(--brand-accent);
      background: rgba(255, 255, 255, 0.06);
      color: #fff;
      font-family: 'Inter', system-ui, sans-serif;
      font-weight: 700;
      font-size: 17px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }
    .bai-step-text {
      color: #fff;
      font-family: 'Inter', system-ui, sans-serif;
      font-size: 16px;
      font-weight: 600;
      line-height: 1.3;
    }

    /* Guide cover */
    .bai-cover-wrap {
      background: none;
      border: 0;
      padding: 0;
      cursor: pointer;
      width: 100%;
      max-width: 380px;
      outline: none;
    }
    .bai-cover-wrap:focus-visible .bai-cover-dark {
      outline: 2px solid var(--brand-accent);
      outline-offset: 4px;
    }
    .bai-cover {
      position: relative;
      background: #fff;
      border-radius: 10px;
      box-shadow: 0 24px 48px rgba(21, 69, 111, 0.22);
      transform: rotate(-2deg);
      transition: transform 250ms ease, box-shadow 250ms ease;
    }
    .bai-cover-wrap:hover .bai-cover {
      transform: rotate(-2deg) translateY(-4px);
      box-shadow: 0 30px 56px rgba(21, 69, 111, 0.28);
    }
    .bai-cover-image {
      aspect-ratio: 3 / 2;
      overflow: hidden;
      border-radius: 10px 10px 0 0;
    }
    .bai-cover-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }
    .bai-cover-body {
      padding: 24px 24px 28px;
    }
    .bai-cover-title {
      font-family: 'Playfair Display', Georgia, serif;
      font-size: 22px;
      font-weight: 700;
      color: #15456F;
      line-height: 1.15;
      letter-spacing: -0.01em;
    }
    .bai-cover-sub {
      font-family: 'Inter', system-ui, sans-serif;
      font-size: 14px;
      color: #3A3A3D;
      line-height: 1.45;
      margin-top: 8px;
    }
    .bai-ribbon {
      position: absolute;
      top: 18px;
      left: -34px;
      transform: rotate(-45deg);
      background: var(--brand-accent);
      color: var(--brand-on-accent);
      font-family: 'Inter', system-ui, sans-serif;
      font-size: 13px;
      font-weight: 700;
      letter-spacing: 0.12em;
      padding: 7px 42px;
      text-transform: uppercase;
    }

    /* Guide cover (matches guide page 1: dark tile) */
    .bai-cover-dark {
      position: relative;
      background: var(--brand-dark);
      color: #ffffff;
      border-radius: 10px;
      box-shadow: 0 24px 48px rgba(21, 69, 111, 0.22);
      transform: rotate(-2deg);
      transition: transform 250ms ease, box-shadow 250ms ease;
    }
    .bai-cover-wrap:hover .bai-cover-dark {
      transform: rotate(-2deg) translateY(-4px);
      box-shadow: 0 30px 56px rgba(21, 69, 111, 0.28);
    }
    .bai-cover-dark-bg {
      position: absolute;
      inset: 0;
      border-radius: 10px;
      overflow: hidden;
    }
    .bai-cover-dark-bg img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }
    .bai-cover-label {
      font-family: 'Inter', system-ui, sans-serif;
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--brand-accent);
    }
    .bai-cover-head {
      font-family: 'Playfair Display', Georgia, serif;
      font-size: 28px;
      font-weight: 700;
      line-height: 1.15;
      letter-spacing: -0.01em;
      color: #ffffff;
      margin-top: 12px;
    }
    .bai-cover-gold { color: var(--brand-accent); }
    .bai-cover-callout {
      font-family: 'Inter', system-ui, sans-serif;
      font-size: 14px;
      line-height: 1.55;
      color: rgba(255, 255, 255, 0.95);
      border-left: 3px solid var(--brand-accent);
      padding-left: 12px;
      margin-top: 14px;
    }
    .bai-cover-line {
      font-family: 'Inter', system-ui, sans-serif;
      font-size: 14px;
      font-weight: 700;
      color: var(--brand-accent-light);
      margin-top: 12px;
    }
    .bai-cover-name {
      font-family: 'Inter', system-ui, sans-serif;
      font-weight: 800;
      font-size: 16px;
      color: #ffffff;
    }
    .bai-cover-role {
      font-family: 'Inter', system-ui, sans-serif;
      font-size: 13px;
      font-weight: 600;
      color: var(--brand-accent-light);
    }
    .bai-cover-contacts {
      display: flex;
      flex-wrap: wrap;
      gap: 10px 16px;
      margin-top: 16px;
      padding-top: 14px;
      border-top: 1px solid rgba(255, 255, 255, 0.25);
    }
    .bai-cover-contact {
      font-family: 'Inter', system-ui, sans-serif;
      font-size: 13px;
      font-weight: 600;
      color: rgba(255, 255, 255, 0.92);
    }.lead-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, .65); }
    .lead-modal[hidden] { display: none; }
    .lead-box { position: relative; width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; padding: 32px; border-radius: 16px; background: #fff; color: #1a1a1a; text-align: left; }
    .lead-box h2 { margin: 0 32px 8px 0; font-size: 26px; line-height: 1.2; color: inherit; }
    .lead-intro { margin: 0 0 20px; font-size: 15px; line-height: 1.5; }
    .lead-close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; background: none; font-size: 28px; line-height: 1; color: #1a1a1a; cursor: pointer; }
    .lead-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
    .lead-field { margin-bottom: 14px; min-width: 0; }
    .lead-field label { display: block; margin-bottom: 5px; font-size: 14px; font-weight: 600; }
    .lead-field input, .lead-field select { box-sizing: border-box; width: 100%; padding: 12px; border: 1px solid #c9c9c9; border-radius: 8px; background: #fff; color: #1a1a1a; font: inherit; font-size: 16px; }
    .lead-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.5; cursor: pointer; }
    .lead-consent input { flex: none; width: 20px; height: 20px; margin-top: 2px; }
    .lead-privacy { margin: 8px 0 14px 30px; font-size: 13px; }
    .lead-privacy a { color: inherit; text-decoration: underline; }
    .lead-submit { display: block; width: 100%; padding: 15px; border: 0; border-radius: 8px; background: var(--brand-accent); color: var(--brand-on-accent); font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; }
    .lead-submit[disabled] { opacity: .6; cursor: wait; }
    .lead-error { margin: 5px 0 0; font-size: 13px; font-weight: 600; color: #b42318; }
    .lead-error[hidden] { display: none; }
    @media (max-width: 560px) {
      .lead-modal { padding: 0; }
      .lead-box { max-width: none; max-height: none; height: 100%; border-radius: 0; padding: 24px 16px; }
      .lead-row { grid-template-columns: 1fr; gap: 0; }
    }