:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  color: #102a43;
  background: #f5f8fc;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent;}

body { margin: 0; line-height: 1.5; }

a { color: inherit; }

.site-header,
main { max-width: 1180px; margin: 0 auto; padding-inline: 24px; }

.site-header { padding-block: 24px; }

.brand { display: inline-flex; min-height: 44px; align-items: center; color: #0b5cab; font-size: 1.25rem; font-weight: 800; text-decoration: none; }

.hero,
.plans,
.comparison { padding-block: 72px; }

.hero { max-width: 760px; }

h1,
h2,
h3,
p { margin-top: 0; }

h1 { font-size: clamp(2.4rem, 6vw, 4.8rem); line-height: 1.05; letter-spacing: -0.045em; }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.15; }
h3 { font-size: 1.35rem; }

.eyebrow { color: #0b5cab; font-size: .82rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.hero-copy { color: #486581; font-size: 1.125rem; max-width: 650px; }

.button {
  display: inline-block;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 8px;
  background: #0b5cab;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.billing-control { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 28px 0 16px; }
#billing-toggle {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  width: auto;
  min-height: 58px;
  padding: 7px 11px;
  border: 0;
  border-radius: 999px;
  background: #e4e7eb;
  color: #52606d;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

#billing-toggle::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 7px auto 7px 11px;
  width: var(--active-width, 106px);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 6px 16px rgb(16 42 67 / 12%);
  transition: transform 180ms ease;
}

#billing-toggle.is-annual::before { transform: translateX(var(--active-x, 0px)); }
.period-option { z-index: 1; padding-inline: 12px; text-align: center; transition: color 180ms ease; }
.period-option-monthly { color: #102a43; }
#billing-toggle.is-annual .period-option-monthly { color: #52606d; }
#billing-toggle.is-annual .period-option-annual { color: #102a43; }
.savings-badge { display: inline-flex; width: fit-content; padding: 5px 10px; border: 1px solid #f97066; border-radius: 999px; color: #b42318; font-size: .78rem; font-weight: 800; letter-spacing: .03em; line-height: 1.2; text-transform: uppercase; }
.savings-badge[hidden] { display: none !important; }
.plan-info { display: flex; height: 84px; flex-direction: column; justify-content: center; }
.plan-info [data-savings-badge] { display: table; min-height: 26px; max-width: 100%; margin: 0 0 10px; font-size: .7rem; white-space: normal; }
.plan-info [data-savings-badge][hidden] { display: table; }
.period-option { flex: 0 0 auto; white-space: nowrap; }
.period-option-annual { display: inline-flex; align-items: center; justify-content: center; gap: 9px; }
.selector-savings-badge { display: inline-flex; padding: 4px 8px; border: 1px solid #f97066; border-radius: 999px; color: #b42318; font-size: .62rem; letter-spacing: .02em; line-height: 1; text-transform: uppercase; white-space: nowrap; }
.currency-control { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; font-weight: 700; }
.currency-control select {
  min-height: 44px;
  max-width: 100%;
  border: 1px solid #9fb3c8;
  border-radius: 6px;
  padding: 0 44px 0 14px;
  appearance: none;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23102a43' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 14px center;
  background-repeat: no-repeat;
  background-size: 16px;
  color: inherit;
  font: inherit;
}

.plan-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
.plan-card { position: relative; min-width: 0; padding: 24px; border: 2px solid #d9e2ec; border-radius: 14px; background: #fff; box-shadow: 0 8px 20px rgb(16 42 67 / 6%); }
.plan-card-featured { border: 2px solid #0b5cab; }
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; background: #d8eafc; color: #0b3d70; font-size: .78rem; font-weight: 700; }
.plan-card-featured .badge { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); margin: 0; white-space: nowrap; }
.plan-card .button { margin-top: 16px; }
.plan-price { color: #102a43; font-size: 1.75rem; }
.plan-price strong { font-size: 2rem; }
.billing-detail { position: relative; height: 48px; margin: 0; color: #486581; }
.billing-detail span { position: absolute; inset: 0; display: flex; align-items: flex-start; }

.comparison { border-top: 1px solid #d9e2ec; }
.table-scroll { max-width: 100%; overflow-x: auto; border: 1px solid #d9e2ec; border-radius: 12px; background: #fff; }
table { width: 100%; min-width: 780px; border-collapse: collapse; }
caption { padding: 16px; color: #486581; font-weight: 700; text-align: left; }
th,
td { padding: 14px 16px; border-top: 1px solid #d9e2ec; text-align: left; white-space: nowrap; }
thead th { background: #eaf2fb; color: #0b3d70; }
tbody th { font-weight: 700; }

.faq { padding-block: 72px; }
.faq-list { max-width: 760px; }
.faq-list details { border-bottom: 1px solid #d9e2ec; }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; min-height: 64px; cursor: pointer; font-weight: 700; list-style: none; }
.faq-list summary::after { content: "+"; color: #0b5cab; font-size: 1.5rem; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { max-width: 680px; padding-bottom: 20px; color: #486581; }

.site-footer { padding: 48px 24px 24px; background: #102a43; color: #eaf2fb; }
.footer-content, .footer-legal { width: min(100%, 1132px); margin-inline: auto; }
.footer-content { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.site-footer .brand { color: #fff; }
.site-footer p { max-width: 410px; margin-top: 12px; color: #bcccdc; }
.site-footer h2 { margin-bottom: 12px; font-size: 1rem; }
.payment-methods { display: flex; flex-wrap: wrap; gap: 8px; max-width: 520px; margin: 0; padding: 0; list-style: none; }
.payment-methods li { padding: 6px 10px; border: 1px solid #627d98; border-radius: 6px; color: #eaf2fb; font-size: .9rem; font-weight: 700; }
.footer-legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid #486581; color: #9fb3c8; font-size: .875rem; }

:focus-visible { outline: 3px solid #f6ad55; outline-offset: 3px; }

@media (max-width: 900px) { .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 901px) {
  .hero { max-width: 100%; text-align: center; }
  .hero h1 { max-width: 980px; margin-inline: auto; }
  .hero-copy { margin-inline: auto; }
}
@media (max-width: 520px) { .site-header, main { padding-inline: 16px; } .hero, .plans, .comparison, .faq { padding-block: 48px; } .plan-grid { grid-template-columns: 1fr; } }
