:root {
  color-scheme: light;
  --ink: #20233f;
  --muted: #686b80;
  --blue: #5b61d6;
  --blue-dark: #474dbb;
  --soft: #f0f1fc;
  --line: #dfe1f1;
  --white: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(91,97,214,.14), transparent 30rem),
    #f6f7fc;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.hidden { display: none !important; }
.billing-shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 24px 0 48px; }
.billing-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand span:last-child { display: grid; }
.brand small { color: var(--muted); }
.brand-mark {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px;
  color: white; background: linear-gradient(145deg, #7479e2, var(--blue-dark)); font-weight: 800;
}
.login-link, .secondary-link { color: var(--blue-dark); font-weight: 700; text-underline-offset: 3px; }
.hero { max-width: 720px; margin: 72px auto 34px; text-align: center; }
.eyebrow { margin: 0 0 8px; color: var(--blue); font-weight: 800; letter-spacing: .09em; text-transform: uppercase; font-size: 13px; }
h1 { margin: 0 0 16px; font-size: clamp(34px, 5vw, 58px); line-height: 1.06; letter-spacing: -.035em; }
.hero > p:not(.eyebrow) { color: var(--muted); font-size: 18px; line-height: 1.65; }
.hero .group-license { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.hero .group-license a { color: var(--blue-dark); font-weight: 800; text-underline-offset: 3px; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.plan {
  display: flex; flex-direction: column; min-height: 300px; padding: 26px;
  border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.9);
  box-shadow: 0 18px 50px rgba(32,35,63,.07);
}
.plan.selected { border: 2px solid var(--blue); padding: 25px; box-shadow: 0 20px 55px rgba(91,97,214,.18); }
.plan h2 { margin: 6px 0 8px; font-size: 26px; }
.plan p { color: var(--muted); line-height: 1.55; }
.price { margin-top: auto; padding: 24px 0 18px; font-size: 30px; font-weight: 850; }
.price .regular-price { display: block; margin-bottom: 3px; color: var(--muted); font-size: 17px; font-weight: 650; text-decoration-thickness: 2px; }
.price .campaign-price { display: block; color: var(--blue-dark); font-size: 28px; line-height: 1.15; }
.price .campaign-period { display: block; margin-top: 5px; color: var(--ink); font-size: 15px; font-weight: 800; }
.price small { display: block; margin-top: 10px; color: var(--muted); font-size: 13px; font-weight: 600; line-height: 1.45; }
.plan button, #checkoutButton {
  border: 0; border-radius: 12px; padding: 14px 18px; cursor: pointer;
  color: white; background: var(--blue); font-weight: 800;
}
.plan button:hover, #checkoutButton:hover { background: var(--blue-dark); }
.plan button:disabled, #checkoutButton:disabled { cursor: not-allowed; opacity: .5; }
.loading { grid-column: 1 / -1; padding: 50px; text-align: center; color: var(--muted); }
.signup-card, .result-card {
  width: min(680px, 100%); margin: 30px auto 0; padding: 30px;
  border: 1px solid var(--line); border-radius: 22px; background: var(--white);
  box-shadow: 0 18px 50px rgba(32,35,63,.08);
}
.signup-card h2 { margin: 0 0 8px; font-size: 30px; }
.signup-card > div > p { color: var(--muted); }
.selected-campaign-summary { margin: 12px 0 0; padding: 12px 14px; border-radius: 10px; color: var(--blue-dark) !important; background: var(--soft); font-weight: 800; }
form { display: grid; gap: 16px; margin-top: 24px; }
label { display: grid; gap: 7px; font-weight: 750; }
label small { color: var(--muted); font-weight: 500; }
.customer-type { min-width: 0; margin: 0; padding: 0; border: 0; }
.customer-type legend { margin-bottom: 8px; font-weight: 750; }
.customer-type-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.customer-type-option { display: flex; align-items: flex-start; gap: 10px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.customer-type-option:has(input:checked) { border-color: var(--blue); background: var(--soft); box-shadow: 0 0 0 2px rgba(91,97,214,.1); }
.customer-type-option input { width: auto; margin: 3px 0 0; accent-color: var(--blue); }
.customer-type-option span { display: grid; gap: 2px; }
.customer-type-option small { color: var(--muted); font-weight: 500; line-height: 1.35; }
.company-fields { display: grid; gap: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fafaff; }
.company-tax-note { color: var(--muted); font-size: 14px; line-height: 1.5; }
input { width: 100%; padding: 13px 14px; border: 1px solid #b9cbc4; border-radius: 11px; color: var(--ink); background: white; }
input:focus { outline: 3px solid rgba(91,97,214,.16); border-color: var(--blue); }
.billing-note { padding: 13px 15px; border-radius: 11px; color: #454a94; background: var(--soft); line-height: 1.5; }
.form-error { min-height: 20px; color: #b42318; font-weight: 650; }
.result-card { margin-top: 90px; text-align: center; }
.result-card h1 { font-size: clamp(30px, 5vw, 46px); }
.result-card > p:not(.eyebrow) { color: var(--muted); line-height: 1.6; }
.result-icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 22px; border-radius: 50%; color: white; background: var(--blue); font-size: 30px; font-weight: 900; }
.progress-track { width: 100%; height: 8px; margin: 26px 0; overflow: hidden; border-radius: 99px; background: #e4ece8; }
.progress-track span { display: block; width: 35%; height: 100%; border-radius: inherit; background: var(--blue); animation: progress 1.4s infinite ease-in-out; }
@keyframes progress { from { transform: translateX(-110%); } to { transform: translateX(310%); } }
.credentials { display: grid; gap: 10px; padding: 24px; border-radius: 16px; background: var(--soft); }
.credentials > span, .credentials small { color: var(--muted); }
.credentials strong { font-size: 26px; }
.primary-link { display: block; margin: 6px auto; padding: 13px 20px; border-radius: 11px; color: white; background: var(--blue); text-decoration: none; font-weight: 800; }
.secondary { padding: 11px 16px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: white; cursor: pointer; }
.secondary-link { display: block; margin-top: 20px; }
footer { display: flex; justify-content: center; gap: 24px; margin-top: 45px; color: var(--muted); font-size: 13px; }
@media (max-width: 760px) {
  .billing-shell { width: min(100% - 20px, 1120px); padding-top: 12px; }
  .hero { margin-top: 48px; }
  .plans { grid-template-columns: 1fr; }
  .plan { min-height: 230px; }
  .customer-type-options { grid-template-columns: 1fr; }
  footer { flex-direction: column; align-items: center; gap: 5px; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .progress-track span { animation: none; width: 100%; } }
