:root {
  color-scheme: light;
  --navy-950: #021d31;
  --navy-900: #032a44;
  --navy-800: #043e61;
  --navy-700: #07567f;
  --cyan-600: #008fbd;
  --cyan-500: #00b5e2;
  --cyan-300: #63d8f2;
  --ink: #0e2237;
  --ink-soft: #334e66;
  --muted: #62788c;
  --line: #d9e5ed;
  --line-strong: #bfd4e2;
  --surface: #ffffff;
  --surface-soft: #f5f9fb;
  --page: #edf3f7;
  --success: #16845a;
  --success-soft: #eaf8f2;
  --warning: #9b6506;
  --warning-soft: #fff7e4;
  --danger: #ac3b32;
  --danger-soft: #fff0ee;
  --shadow-sm: 0 2px 8px rgba(12, 42, 63, 0.06);
  --shadow-md: 0 16px 44px rgba(6, 37, 59, 0.1);
  --shadow-lg: 0 28px 70px rgba(2, 29, 49, 0.17);
  --focus: 0 0 0 4px rgba(0, 181, 226, 0.22);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 12% 38%, rgba(0, 181, 226, 0.07), transparent 24rem),
    var(--page);
  color: var(--ink);
  font-family: inherit;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--navy-700);
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 11px 16px;
  border-radius: 9px;
  background: #fff;
  color: var(--navy-900);
  font-weight: 800;
  transform: translateY(-150%);
  transition: transform 0.16s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 20;
  min-height: 72px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(2, 29, 49, 0.94);
  color: #fff;
}

.header-inner {
  width: min(1180px, 100%);
  min-height: 72px;
  margin: 0 auto;
  padding: 10px clamp(16px, 4vw, 36px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 11px;
  color: #fff;
  text-decoration: none;
}

/* The study app's own logo, so every account surface carries one mark. */
.brand-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: block;
}

.brand-copy {
  line-height: 1.12;
}

.brand-copy strong {
  display: block;
  color: #fff;
  font-size: 17px;
  font-weight: 850;
  letter-spacing: 0.5px;
}

.brand-copy small {
  display: block;
  margin-top: 3px;
  color: #8fc1dd;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.55px;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.secure-label {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border: 1px solid rgba(148, 208, 229, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: #bcdbea;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.2px;
}

.secure-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #53d6a2;
  box-shadow: 0 0 0 4px rgba(83, 214, 162, 0.1);
}

.account-chip {
  max-width: 270px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 12px 5px 6px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.account-avatar {
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan-500), #0a6ea6);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.account-copy {
  min-width: 0;
  line-height: 1.2;
}

.account-copy small,
.account-copy strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-copy small {
  color: #8fb6cc;
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
}

.account-copy strong {
  max-width: 190px;
  margin-top: 1px;
  color: #fff;
  font-size: 11.5px;
  font-weight: 750;
}

.text-button {
  min-width: 64px;
  min-height: 44px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #bcdbea;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.text-button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.text-button:focus-visible,
.brand:focus-visible {
  outline: 3px solid var(--cyan-300);
  outline-offset: 3px;
}

.billing-hero {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  color: #fff;
  background:
    radial-gradient(750px 350px at 13% -8%, rgba(0, 181, 226, 0.25), transparent 62%),
    radial-gradient(620px 340px at 90% 18%, rgba(58, 113, 178, 0.24), transparent 60%),
    linear-gradient(156deg, #073a58 0%, var(--navy-900) 46%, var(--navy-950) 100%);
}

.billing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(132, 211, 239, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(132, 211, 239, 0.3) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 68%);
  mask-image: linear-gradient(90deg, #000, transparent 68%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  min-height: 320px;
  margin: 0 auto;
  padding: 52px clamp(16px, 4vw, 36px) 82px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.65fr);
  align-items: center;
  gap: clamp(38px, 8vw, 100px);
}

.eyebrow,
.section-kicker,
.state-kicker {
  margin: 0;
  color: var(--cyan-600);
  font-size: 10.5px;
  font-weight: 850;
  letter-spacing: 1.45px;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #93dced;
}

.pulse-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan-300);
  box-shadow: 0 0 0 5px rgba(99, 216, 242, 0.1);
}

.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(99, 216, 242, 0.45);
  border-radius: 50%;
  animation: pulse-ring 2.1s ease-out infinite;
}

.hero-copy h1 {
  max-width: 690px;
  margin: 16px 0 14px;
  color: #fff;
  font-size: clamp(34px, 4.4vw, 53px);
  line-height: 1.04;
  letter-spacing: -1.45px;
}

.hero-lede {
  max-width: 700px;
  margin: 0;
  color: #c6deeb;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.64;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 24px;
  color: #dff3fa;
  font-size: 12px;
  font-weight: 700;
}

.hero-points > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-points i {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(99, 216, 242, 0.38);
  border-radius: 50%;
  background: rgba(0, 181, 226, 0.1);
  color: #82e0f4;
  font-size: 10px;
  font-style: normal;
}

.learning-signal {
  position: relative;
  min-height: 190px;
  padding: 24px 22px 20px;
  overflow: hidden;
  border: 1px solid rgba(132, 211, 239, 0.18);
  border-radius: 19px;
  background: rgba(0, 17, 30, 0.24);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
}

.signal-caption,
.signal-modules {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.signal-caption {
  color: #80aabd;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.signal-line {
  position: relative;
  height: 74px;
  margin: 7px -22px 5px;
  overflow: hidden;
}

.signal-line::before {
  content: "";
  position: absolute;
  top: 37px;
  right: 0;
  left: 0;
  height: 1px;
  background: rgba(99, 216, 242, 0.22);
}

.signal-line::after {
  content: "";
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: -18px;
  width: 24px;
  background: linear-gradient(90deg, transparent, rgba(99, 216, 242, 0.16), transparent);
  filter: blur(2px);
  animation: signal-scan 4.2s linear infinite;
}

.signal-line i {
  position: absolute;
  z-index: 1;
  display: block;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, #009dc8, #6de1f7);
  box-shadow: 0 0 8px rgba(0, 181, 226, 0.66);
  transform-origin: left center;
}

.signal-line .line-a {
  top: 36px;
  left: 0;
  width: 24%;
}

.signal-line .line-b {
  top: 36px;
  left: 24%;
  width: 25px;
  transform: rotate(-47deg);
}

.signal-line .line-c {
  top: 18px;
  left: calc(24% + 17px);
  width: 49px;
  transform: rotate(67deg);
}

.signal-line .line-d {
  top: 63px;
  left: calc(24% + 37px);
  width: 58px;
  transform: rotate(-69deg);
}

.signal-line .line-e {
  top: 9px;
  left: calc(24% + 58px);
  width: 43px;
  transform: rotate(66deg);
}

.signal-line .line-f {
  top: 48px;
  left: calc(24% + 75px);
  width: 19px;
  transform: rotate(-39deg);
}

.signal-line .line-g {
  top: 36px;
  left: calc(24% + 89px);
  right: 0;
}

.signal-modules {
  color: #8aaebe;
  font-size: 9.5px;
  font-weight: 700;
}

.signal-modules span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.signal-modules b {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(99, 216, 242, 0.22);
  border-radius: 7px;
  background: rgba(0, 181, 226, 0.07);
  color: #8ae2f5;
  font-size: 8.5px;
}

@keyframes pulse-ring {
  0% {
    opacity: 0.8;
    transform: scale(0.65);
  }
  70%,
  100% {
    opacity: 0;
    transform: scale(1.15);
  }
}

@keyframes signal-scan {
  to {
    transform: translateX(430px);
  }
}

.page-shell {
  position: relative;
  z-index: 3;
  width: min(1180px, 100%);
  min-height: 420px;
  margin: -48px auto 0;
  padding: 0 clamp(16px, 4vw, 36px) 70px;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(310px, 0.78fr);
  align-items: start;
  gap: 20px;
}

.setup-notice {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  padding: 17px 19px;
  border: 1px solid #b9dce9;
  border-radius: 17px;
  background:
    radial-gradient(circle at 10% 10%, rgba(0, 181, 226, 0.1), transparent 30%),
    linear-gradient(135deg, #f3fbfe, #edf7fa);
  box-shadow: 0 12px 30px rgba(3, 29, 47, 0.08);
}

.setup-notice[hidden] {
  display: none;
}

.setup-notice-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #b8dce8;
  border-radius: 13px;
  background: #fff;
  font-size: 18px;
  box-shadow: 0 6px 16px rgba(4, 61, 86, 0.08);
}

.setup-notice h2,
.setup-notice p {
  margin: 0;
}

.setup-notice h2 {
  margin-top: 2px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.25;
}

.setup-notice p:not(.state-kicker) {
  margin-top: 4px;
  color: #4d6c7d;
  font-size: 12px;
  line-height: 1.5;
}

.setup-status {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  padding: 6px 10px;
  border: 1px solid #c8dce5;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #456779;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.48px;
  text-transform: uppercase;
  white-space: nowrap;
}

.checkout-card,
.summary-card,
.loading-card,
.state-card,
.active-card {
  border: 1px solid rgba(205, 221, 231, 0.95);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.checkout-card {
  min-width: 0;
  padding: clamp(24px, 4vw, 38px);
}

.summary-card {
  position: sticky;
  top: 20px;
  padding: 27px;
}

.loading-card,
.state-card,
.active-card {
  width: min(760px, 100%);
  margin: 0 auto;
}

.loading-card {
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 34px;
}

.loading-card h2,
.loading-card p {
  margin: 0;
}

.loading-card h2 {
  font-size: 19px;
}

.loading-card p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13.5px;
}

.spinner {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border: 3px solid #d8e8f0;
  border-top-color: var(--cyan-600);
  border-radius: 50%;
  animation: spin 0.82s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 19px;
}

.section-heading--method {
  margin-bottom: 17px;
}

.section-heading h2,
.summary-header h2 {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -0.2px;
}

.step-number {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border: 1px solid #c9e7f1;
  border-radius: 11px;
  background: linear-gradient(145deg, #edfbff, #dff4fa);
  color: var(--navy-700);
  font-size: 12px;
  font-weight: 900;
}

.choice-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.plan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

.plan-card {
  position: relative;
  min-width: 0;
  min-height: 187px;
  display: flex;
  flex-direction: column;
  padding: 21px 20px 18px;
  overflow: hidden;
  border: 1.5px solid var(--line);
  border-radius: 17px;
  background: #fbfdfe;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease, background 0.16s ease;
}

.plan-card:hover {
  border-color: #9fc9db;
  background: #fff;
  transform: translateY(-1px);
}

.plan-card.is-selected,
.plan-card:has(input:checked) {
  border-color: var(--cyan-600);
  background:
    radial-gradient(circle at 100% 0, rgba(0, 181, 226, 0.11), transparent 46%),
    linear-gradient(145deg, #f8fdff, #eefaff);
  box-shadow: inset 0 0 0 1px var(--cyan-600), 0 9px 22px rgba(0, 112, 154, 0.1);
}

.plan-card:has(input:focus-visible),
.method-card:has(input:focus-visible) {
  outline: 3px solid rgba(0, 181, 226, 0.33);
  outline-offset: 3px;
}

.plan-card input,
.method-card input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.choice-indicator {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 21px;
  height: 21px;
  border: 2px solid #9eb2c1;
  border-radius: 50%;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.plan-card.is-selected .choice-indicator,
.plan-card:has(input:checked) .choice-indicator,
.method-card.is-selected .choice-indicator,
.method-card:has(input:checked) .choice-indicator {
  border: 6px solid var(--cyan-600);
  box-shadow: 0 0 0 3px rgba(0, 181, 226, 0.11);
}

.plan-card-top {
  min-height: 26px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 28px;
}

.plan-name {
  color: var(--ink);
  font-size: 15px;
  font-weight: 850;
}

.best-value,
.flexible-label {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.best-value {
  background: #dff8f1;
  color: #087352;
}

.flexible-label {
  background: #edf2f6;
  color: #617486;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 21px;
  color: var(--ink);
}

.plan-price strong {
  font-size: 35px;
  line-height: 1;
  letter-spacing: -1.4px;
}

.plan-price small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.plan-equivalent {
  margin-top: 7px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 720;
}

.plan-saving {
  margin-top: auto;
  padding-top: 16px;
  color: var(--success);
  font-size: 11.5px;
  font-weight: 800;
}

.plan-saving--muted {
  color: var(--muted);
  font-weight: 650;
}

.section-rule {
  height: 1px;
  margin: 30px 0;
  background: var(--line);
}

.method-grid {
  display: grid;
  gap: 11px;
}

.method-card {
  position: relative;
  min-height: 112px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 17px 118px 17px 18px;
  border: 1.5px solid var(--line);
  border-radius: 15px;
  background: #fbfdfe;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.method-card:hover:not(.is-pending):not(.is-checking) {
  border-color: #a7ccd9;
  background: #fff;
}

.method-card.is-selected,
.method-card:has(input:checked) {
  border-color: var(--cyan-600);
  background: linear-gradient(110deg, #f8fdff, #eefaff);
  box-shadow: inset 0 0 0 1px var(--cyan-600);
}

.method-card .choice-indicator {
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
}

.method-logo {
  width: 52px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #d6e2e9;
  border-radius: 10px;
  background: #fff;
}

.method-logo--card {
  position: relative;
  display: block;
  background:
    linear-gradient(#193f59 0 0) 8px 11px / 17px 3px no-repeat,
    linear-gradient(#d5e3ea 0 0) 8px 26px / 28px 2px no-repeat,
    #fff;
}

.method-logo--card i {
  position: absolute;
  top: 10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  opacity: 0.88;
}

.method-logo--card i:first-child {
  right: 14px;
  background: #ef7b32;
}

.method-logo--card i:last-child {
  right: 5px;
  background: #e6bd2e;
  mix-blend-mode: multiply;
}

.method-logo--crypto {
  border-color: #d7d6f0;
  background: linear-gradient(145deg, #f7f7ff, #ededfb);
  color: #5143a5;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: -0.5px;
}

.method-copy,
.method-heading,
.provider-name,
.method-detail {
  min-width: 0;
  display: block;
}

.method-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.method-heading strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 820;
}

.method-badge {
  min-height: 20px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #e4f7f1;
  color: #087051;
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: 0.55px;
  text-transform: uppercase;
}

.method-badge--neutral {
  background: #efeffa;
  color: #56518d;
}

.provider-name {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 11.5px;
  font-weight: 680;
}

.method-detail {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.35;
}

.availability-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  min-height: 23px;
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: #ecf7fb;
  color: #38718b;
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: 0.55px;
  text-transform: uppercase;
}

.method-card.is-ready .availability-badge {
  background: var(--success-soft);
  color: var(--success);
}

.method-card.is-pending {
  border-style: dashed;
  background: #f7f9fa;
  cursor: not-allowed;
}

.method-card.is-pending .availability-badge {
  background: var(--warning-soft);
  color: var(--warning);
}

.method-card.is-pending .choice-indicator {
  border-color: #c4ced5;
  background: #eef2f4;
  box-shadow: none;
}

.method-card.is-pending.is-selected,
.method-card.is-pending:has(input:checked) {
  border-color: #d5c18d;
  box-shadow: none;
}

.method-card.is-checking {
  color: #728492;
  cursor: wait;
}

.renewal-callout {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 18px;
  padding: 14px 15px;
  border: 1px solid #d9eaf1;
  border-radius: 13px;
  background: #f4fafc;
}

.renewal-icon {
  width: 29px;
  height: 29px;
  flex: 0 0 29px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #e1f4fa;
  color: var(--cyan-600);
  font-size: 15px;
  font-weight: 900;
}

.renewal-callout strong {
  display: block;
  color: var(--ink);
  font-size: 12.5px;
}

.renewal-callout p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.renewal-callout.is-crypto {
  border-color: #e4e1f2;
  background: #f8f7fc;
}

.renewal-callout.is-crypto .renewal-icon {
  background: #eceaf8;
  color: #5d50a5;
}

.checkout-button,
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.checkout-button {
  width: 100%;
  margin-top: 19px;
  padding: 13px 18px;
  border: 0;
  background: linear-gradient(135deg, var(--cyan-600), #075c8b);
  box-shadow: 0 10px 24px rgba(4, 105, 147, 0.22);
  color: #fff;
  font-size: 14px;
}

.checkout-button:not(:disabled):hover,
.button--primary:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
}

.checkout-button:disabled {
  border: 1px solid #cfdbe2;
  background: #dce5ea;
  box-shadow: none;
  color: #708391;
  cursor: not-allowed;
}

.checkout-button.is-loading .button-arrow {
  width: 17px;
  height: 17px;
  border: 2px solid rgba(255, 255, 255, 0.38);
  border-top-color: #fff;
  border-radius: 50%;
  color: transparent;
  animation: spin 0.78s linear infinite;
}

.button-arrow {
  font-size: 18px;
  line-height: 1;
}

.checkout-footnote {
  margin: 10px 8px 0;
  color: #718493;
  font-size: 10.5px;
  line-height: 1.5;
  text-align: center;
}

.form-alert {
  margin: -5px 0 18px;
  padding: 11px 13px;
  border: 1px solid #efbdb7;
  border-radius: 10px;
  background: var(--danger-soft);
  color: #94332b;
  font-size: 12px;
  font-weight: 680;
  line-height: 1.45;
}

.summary-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
}

.summary-lock {
  min-height: 25px;
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border: 1px solid #d5e7ee;
  border-radius: 999px;
  background: #f3fafc;
  color: #477086;
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: 0.65px;
  text-transform: uppercase;
}

.summary-lock::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: #2cb785;
  box-shadow: 0 0 0 3px rgba(44, 183, 133, 0.11);
}

.summary-plan {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
  padding: 17px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.summary-plan div {
  min-width: 0;
}

.summary-plan div strong,
.summary-plan div span {
  display: block;
}

.summary-plan div strong {
  color: var(--ink);
  font-size: 13.5px;
}

.summary-plan div span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10.5px;
}

.summary-plan > strong {
  flex: none;
  color: var(--ink);
  font-size: 15px;
}

.summary-list {
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.summary-list div {
  min-height: 29px;
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  align-items: baseline;
  gap: 12px;
}

.summary-list dt,
.summary-list dd {
  margin: 0;
  font-size: 10.5px;
}

.summary-list dt {
  color: var(--muted);
}

.summary-list dd {
  overflow-wrap: anywhere;
  color: var(--ink-soft);
  font-weight: 730;
  text-align: right;
}

.summary-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0 5px;
}

.summary-total span,
.summary-total small {
  display: block;
}

.summary-total span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 820;
}

.summary-total small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9.5px;
}

.summary-total > strong {
  color: var(--navy-800);
  font-size: 26px;
  letter-spacing: -0.7px;
}

.included-list {
  display: grid;
  gap: 9px;
  margin: 22px 0 0;
  padding: 17px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.included-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 10.5px;
  line-height: 1.4;
}

.included-list li span {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--success-soft);
  color: var(--success);
  font-size: 9px;
  font-weight: 900;
}

.trust-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
  padding: 13px;
  border-radius: 12px;
  background: #f5f8fa;
}

.trust-shield {
  width: 27px;
  height: 30px;
  flex: 0 0 27px;
  display: grid;
  place-items: center;
  border-radius: 8px 8px 12px 12px;
  background: var(--navy-800);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.trust-note p {
  margin: 0;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.45;
}

.trust-note strong {
  color: var(--ink-soft);
  font-size: 10.5px;
}

.state-card {
  min-height: 265px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: start;
  gap: 20px;
  padding: clamp(30px, 5vw, 48px);
}

.state-card--error {
  border-top: 4px solid #d56458;
}

.state-symbol {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #e8f7fb;
  color: var(--cyan-600);
  font-size: 24px;
  font-weight: 900;
}

.state-card--checking .state-symbol {
  animation: spin 1.2s linear infinite;
}

.state-card--pending .state-symbol {
  background: var(--warning-soft);
  color: var(--warning);
}

.state-card--confirmed {
  border-top: 4px solid #32ad7e;
}

.state-card--confirmed .state-symbol {
  background: var(--success-soft);
  color: var(--success);
}

.state-card--canceled .state-symbol,
.state-card--error .state-symbol {
  background: var(--danger-soft);
  color: var(--danger);
}

.state-card h2 {
  margin: 5px 0 8px;
  color: var(--ink);
  font-size: clamp(22px, 3.5vw, 28px);
  letter-spacing: -0.4px;
}

.state-card > div > p:not(.state-kicker):not(.order-reference):not(.support-note) {
  max-width: 570px;
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.order-reference {
  display: inline-flex;
  margin: 16px 0 0;
  padding: 6px 10px;
  border-radius: 8px;
  background: #f2f6f8;
  color: var(--muted);
  font-size: 10px;
}

.order-reference strong {
  margin-left: 5px;
  color: var(--ink-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.state-actions,
.active-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.button {
  min-width: 132px;
  padding: 11px 18px;
  border: 1px solid transparent;
  font-size: 12.5px;
}

.button--primary {
  border-color: #08749e;
  background: linear-gradient(135deg, var(--cyan-600), #075c8b);
  box-shadow: 0 8px 20px rgba(4, 105, 147, 0.18);
  color: #fff;
}

.button--secondary {
  border-color: var(--line-strong);
  background: #f6fafc;
  color: var(--navy-700);
}

.button--secondary:hover {
  border-color: #8ab6ca;
  background: #edf6fa;
}

.button:disabled {
  opacity: 0.7;
  cursor: wait;
}

.checkout-button:focus-visible,
.button:focus-visible,
.text-button:focus-visible,
.site-footer a:focus-visible,
.support-note a:focus-visible {
  outline: 3px solid rgba(0, 181, 226, 0.45);
  outline-offset: 3px;
}

.support-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.support-note a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--navy-700);
  font-weight: 750;
}

.billing-support {
  margin-top: 20px;
  display: grid;
  grid-template-columns: minmax(220px, 0.78fr) minmax(300px, 1.22fr);
  gap: clamp(22px, 4vw, 46px);
  padding: clamp(24px, 4vw, 36px);
  scroll-margin-top: 20px;
  border: 1px solid rgba(205, 221, 231, 0.95);
  border-radius: 20px;
  background: linear-gradient(120deg, #f8fbfd, #fff);
  box-shadow: var(--shadow-sm);
}

.billing-support-copy h2 {
  margin: 5px 0 9px;
  color: var(--ink);
  font-size: clamp(20px, 3vw, 25px);
  letter-spacing: -0.4px;
}

.billing-support-copy > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.billing-support-form {
  display: grid;
  gap: 7px;
}

.billing-support-form label {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 10.5px;
  font-weight: 800;
}

.billing-support-form select,
.billing-support-form textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
}

.billing-support-form select {
  min-height: 43px;
  padding: 9px 36px 9px 12px;
}

.billing-support-form textarea {
  min-height: 102px;
  padding: 11px 12px;
  resize: vertical;
  line-height: 1.5;
}

.billing-support-form select:focus-visible,
.billing-support-form textarea:focus-visible {
  outline: none;
  border-color: var(--cyan-600);
  box-shadow: var(--focus);
}

.billing-support-actions {
  min-height: 45px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 5px;
}

.billing-support-actions p {
  flex: 1 1 180px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.billing-support-actions p.is-success {
  color: var(--success);
  font-weight: 750;
}

.billing-support-actions p.is-error {
  color: var(--danger);
}

.active-card {
  padding: clamp(28px, 5vw, 47px);
  border-top: 4px solid #32ad7e;
}

.active-heading {
  display: flex;
  align-items: center;
  gap: 17px;
}

.active-heading h2 {
  margin: 5px 0 5px;
  font-size: clamp(25px, 4vw, 32px);
  letter-spacing: -0.6px;
}

.active-heading p:not(.state-kicker) {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.success-ring {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  display: grid;
  place-items: center;
  border: 1px solid #b7e6d4;
  border-radius: 50%;
  background: var(--success-soft);
  color: var(--success);
  font-size: 23px;
  font-weight: 900;
  box-shadow: 0 0 0 7px rgba(22, 132, 90, 0.06);
}

.current-plan {
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfdfe;
}

.current-plan-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: #f5f9fb;
}

.current-plan-title span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.current-plan-title strong {
  color: var(--ink);
  font-size: 14px;
}

.current-plan dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.current-plan dl div {
  min-width: 0;
  padding: 16px 18px;
  border-right: 1px solid var(--line);
}

.current-plan dl div:last-child {
  border-right: 0;
}

.current-plan dt,
.current-plan dd {
  margin: 0;
}

.current-plan dt {
  color: var(--muted);
  font-size: 10px;
}

.current-plan dd {
  margin-top: 5px;
  overflow-wrap: anywhere;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 760;
}

.status-pill {
  display: inline-flex;
  min-height: 23px;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.55px;
  text-transform: uppercase;
}

.status-pill--active {
  background: var(--success-soft);
  color: var(--success);
}

.site-footer {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 36px) 35px;
  color: #687d8d;
  font-size: 10.5px;
}

.site-footer > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding-top: 23px;
  border-top: 1px solid #d6e1e8;
}

.site-footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: #41677e;
  font-weight: 720;
  text-underline-offset: 2px;
}

.site-footer p {
  margin: 0;
  line-height: 1.55;
}

@media (max-width: 920px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-bottom: 88px;
  }

  .learning-signal {
    display: none;
  }

  .billing-hero,
  .hero-inner {
    min-height: 300px;
  }

  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .summary-card {
    position: static;
  }
}

@media (max-width: 700px) {
  .site-header,
  .header-inner {
    min-height: 66px;
  }

  .header-inner {
    gap: 10px;
  }

  .secure-label,
  .account-copy small {
    display: none;
  }

  .account-chip {
    max-width: 190px;
    padding-right: 9px;
  }

  .account-copy strong {
    max-width: 125px;
  }

  .text-button {
    min-width: 54px;
    padding: 0 7px;
  }

  .hero-inner {
    padding-top: 40px;
  }

  .hero-copy h1 {
    letter-spacing: -0.8px;
  }

  .hero-points {
    display: grid;
    gap: 9px;
  }

  .setup-notice {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .setup-status {
    grid-column: 2;
    justify-self: start;
  }

  .page-shell {
    margin-top: -38px;
    padding-bottom: 45px;
  }

  .billing-support {
    grid-template-columns: 1fr;
  }

  .plan-grid {
    grid-template-columns: 1fr;
  }

  .plan-card {
    min-height: 176px;
  }

  .method-card {
    grid-template-columns: 47px minmax(0, 1fr);
    padding: 17px 48px 17px 14px;
  }

  .method-logo {
    width: 46px;
  }

  .availability-badge {
    position: static;
    width: max-content;
    grid-column: 2;
    margin-top: 8px;
  }

  .method-card .choice-indicator {
    right: 14px;
  }

  .current-plan dl {
    grid-template-columns: 1fr;
  }

  .current-plan dl div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .current-plan dl div:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 500px) {
  .brand-copy small {
    display: none;
  }

  .brand-copy strong {
    font-size: 15px;
  }

  .header-actions {
    gap: 4px;
  }

  .account-chip {
    max-width: 68px;
    border: 0;
    background: transparent;
    padding: 0;
  }

  .account-copy {
    display: none;
  }

  .account-avatar {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .billing-hero,
  .hero-inner {
    min-height: 326px;
  }

  .hero-inner {
    padding-top: 36px;
    padding-bottom: 80px;
  }

  .checkout-card,
  .summary-card {
    border-radius: 17px;
  }

  .checkout-card {
    padding: 22px 17px;
  }

  .summary-card {
    padding: 22px 18px;
  }

  .section-heading h2,
  .summary-header h2 {
    font-size: 19px;
  }

  .plan-card {
    padding-right: 17px;
    padding-left: 17px;
  }

  .method-card {
    min-height: 122px;
    align-items: start;
  }

  .method-logo {
    margin-top: 3px;
  }

  .method-heading {
    padding-right: 2px;
  }

  .state-card {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 28px 22px;
  }

  .state-symbol {
    width: 48px;
    height: 48px;
    border-radius: 15px;
    font-size: 20px;
  }

  .active-heading {
    align-items: flex-start;
  }

  .success-ring {
    width: 49px;
    height: 49px;
    flex-basis: 49px;
    font-size: 19px;
  }

  .active-card {
    padding: 27px 21px;
  }

  .active-actions,
  .state-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .current-plan-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .pulse-dot::after,
  .signal-line::after {
    display: none;
  }
}

@media (forced-colors: active) {
  .plan-card.is-selected,
  .plan-card:has(input:checked),
  .method-card.is-selected,
  .method-card:has(input:checked) {
    outline: 3px solid Highlight;
  }

  .choice-indicator,
  .plan-card.is-selected .choice-indicator,
  .plan-card:has(input:checked) .choice-indicator,
  .method-card.is-selected .choice-indicator,
  .method-card:has(input:checked) .choice-indicator {
    forced-color-adjust: none;
  }
}
