:root {
  color-scheme: light;
  --bg: #f7f3f7;
  --bg-strong: #f4eff3;
  --panel: rgba(255, 255, 255, 0.82);
  --panel-strong: rgba(255, 255, 255, 0.9);
  --panel-border: rgba(255, 255, 255, 0.84);
  --surface: rgba(255, 255, 255, 0.72);
  --surface-soft: rgba(255, 255, 255, 0.58);
  --surface-deep: rgba(243, 239, 248, 0.86);
  --text: #14181b;
  --text-secondary: rgba(20, 24, 27, 0.68);
  --text-tertiary: rgba(20, 24, 27, 0.46);
  --line: rgba(20, 24, 27, 0.08);
  --line-strong: rgba(94, 90, 168, 0.22);
  --violet: #5e5aa8;
  --violet-soft: rgba(94, 90, 168, 0.1);
  --success: #10845d;
  --success-bg: rgba(16, 132, 93, 0.08);
  --warning: #8a4c00;
  --warning-bg: rgba(138, 76, 0, 0.08);
  --danger: #a12d4a;
  --danger-bg: rgba(161, 45, 74, 0.08);
  --shadow: 0 22px 64px rgba(56, 37, 94, 0.08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  font-family:
    "Alexandria",
    "Inter",
    "SF Pro Display",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  font-family:
    "Alexandria",
    "Inter",
    "SF Pro Display",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background:
    radial-gradient(circle at 84% 18%, rgb(228, 87, 42), transparent 54%),
    radial-gradient(circle at 12% 86%, rgb(255, 50, 53), transparent 60%),
    radial-gradient(circle at calc(14% + 400px) calc(16% + 350px), rgb(174, 168, 232), transparent 156%),
    linear-gradient(180deg, #f6f0f5 0%, #f4eff3 100%);
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

body.checkout-page--pricing {
  background: #f7f6f4;
}

body.checkout-page--aligned-flow {
  background: #f7f6f4;
}

body.checkout-page--auth-flow {
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 124, 69, 0.14), transparent 28%),
    radial-gradient(circle at 84% 20%, rgba(141, 135, 220, 0.16), transparent 30%),
    linear-gradient(180deg, #faf7f3 0%, #f3f0ee 100%);
}

body.checkout-page--entry-focus .page-shell,
body.checkout-page--auth-flow .page-shell {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 96px 24px 72px;
}

body.checkout-page--auth-flow .step-shell--bare {
  width: min(100%, 436px);
}

body.checkout-page--auth-flow .step-hero--bare {
  gap: 16px;
  margin-bottom: 32px;
  justify-items: center;
  text-align: center;
}

body.checkout-page--success-flow .step-hero--bare,
body.checkout-page--plan-flow .step-hero--bare {
  justify-items: center;
  text-align: center;
}

body.checkout-page--auth-flow .step-form--bare {
  gap: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

body.checkout-page--auth-flow .step-input {
  min-height: 56px;
}

.auth-brand {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.auth-brand__logo {
  width: 50px;
  height: auto;
  display: block;
}

.auth-brand__wordmark {
  margin: 0;
  color: rgba(20, 24, 27, 0.88);
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 500;
}

body.checkout-page--auth-flow .step-title,
body.checkout-page--success-flow .step-title,
body.checkout-page--plan-flow .step-title {
  max-width: none;
  text-align: center;
}

body.checkout-page--auth-flow .step-subtitle,
body.checkout-page--success-flow .step-subtitle,
body.checkout-page--plan-flow .step-subtitle {
  max-width: 30ch;
  text-align: center;
}

.auth-entry-shell {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 56px;
  padding: 6px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  background: rgba(255, 255, 255, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 18px 36px rgba(60, 49, 92, 0.08),
    0 8px 20px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(12px);
}

.auth-entry-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 44px;
  padding: 0 12px 0 16px;
  border: 0;
  background: transparent;
  color: rgba(20, 24, 27, 0.88);
  font-size: 16px;
  line-height: 1.15;
  font-weight: 400;
  font-family: inherit;
  outline: none;
}

.auth-entry-input::placeholder {
  color: rgba(20, 24, 27, 0.44);
}

.auth-entry-submit {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition:
    opacity 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease,
    color 180ms ease;
}

.auth-entry-submit svg {
  width: 16px;
  height: 16px;
}

.auth-entry-submit:disabled {
  cursor: default;
  opacity: 0.35;
}

.auth-entry-submit.is-active,
.auth-entry-submit:not(:disabled) {
  background: rgba(20, 24, 27, 0.82);
  border-color: rgba(20, 24, 27, 0.82);
  color: #ffffff;
  opacity: 1;
}

.auth-entry-submit:not(:disabled):hover {
  transform: translateY(-1px);
}

body.checkout-page--auth-flow .otp-field {
  position: relative;
  width: min(100%, 360px);
  margin: 0 auto;
}

body.checkout-page--auth-flow .otp-visual {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

body.checkout-page--auth-flow .otp-slot {
  aspect-ratio: 1 / 1;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  background: rgba(255, 255, 255, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 16px 30px rgba(60, 49, 92, 0.06);
  color: rgba(20, 24, 27, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease,
    opacity 180ms ease;
}

body.checkout-page--auth-flow .otp-slot.is-placeholder {
  color: transparent;
  font-weight: 400;
}

body.checkout-page--auth-flow .otp-slot.is-filled {
  color: rgba(20, 24, 27, 0.88);
}

body.checkout-page--auth-flow .otp-slot.is-active {
  border-color: rgba(255, 255, 255, 0.88);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 0 0 4px rgba(255, 255, 255, 0.34),
    0 18px 34px rgba(60, 49, 92, 0.08);
  transform: translateY(-1px);
}

body.checkout-page--auth-flow .otp-field.is-complete .otp-slot {
  border-color: rgba(255, 255, 255, 0.78);
}

body.checkout-page--auth-flow .otp-input-native {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  color: transparent;
  caret-color: transparent;
  opacity: 0.01;
}

body.checkout-page--auth-flow .otp-input-native:focus {
  outline: none;
}

body.checkout-page--auth-flow .step-form--bare .action-button {
  min-height: 56px;
  margin-top: 24px;
}

body.checkout-page--auth-flow .step-form--bare .error-copy {
  margin-top: 14px;
  width: 100%;
  text-align: center;
}

body.checkout-page--auth-flow .step-form--bare .step-secondary {
  margin-top: 40px;
  text-align: center;
}

body.checkout-page--auth-flow .step-title {
  max-width: 12.5ch;
}

body.checkout-page--plan-flow .step-shell--plans {
  width: min(100%, 520px);
}

body.checkout-page--plan-flow .step-hero--bare {
  gap: 16px;
  margin-bottom: 48px;
}

body.checkout-page--plan-flow .step-title {
  max-width: 10ch;
}

body.checkout-page--plan-flow .step-subtitle {
  max-width: 24ch;
}

body.checkout-page--plan-flow .plan-stage--bare {
  display: grid;
  gap: 0;
}

body.checkout-page--plan-flow .plan-stage-list {
  gap: 18px;
}

body.checkout-page--plan-flow .plan-stage-list--split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

body.checkout-page--plan-flow .plan-button {
  position: relative;
  padding: 22px 20px 20px;
  border-radius: 24px;
  border-color: rgba(20, 24, 27, 0.07);
  background: rgba(255, 255, 255, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.58),
    0 16px 30px rgba(18, 20, 27, 0.05);
  transform: scale(1);
}

body.checkout-page--plan-flow .plan-button--annual {
  border-color: rgba(68, 141, 104, 0.16);
  background:
    linear-gradient(180deg, rgba(235, 247, 240, 0.7) 0%, rgba(255, 255, 255, 0.5) 100%);
}

body.checkout-page--plan-flow .plan-button--monthly {
  border-color: rgba(76, 113, 198, 0.14);
  background:
    linear-gradient(180deg, rgba(239, 244, 255, 0.62) 0%, rgba(255, 255, 255, 0.5) 100%);
}

body.checkout-page--plan-flow .plan-button.is-active {
  border-color: rgba(94, 90, 168, 0.72);
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.74),
    0 0 0 4px rgba(94, 90, 168, 0.11),
    0 24px 36px rgba(42, 31, 86, 0.12);
  transform: scale(1.02);
}

body.checkout-page--plan-flow .plan-stage-list.has-selection .plan-button:not(.is-active) {
  opacity: 0.62;
  transform: scale(0.985);
}

body.checkout-page--plan-flow .plan-button--square {
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 236px;
}

body.checkout-page--plan-flow .plan-button--square .plan-topline {
  align-items: flex-start;
  margin-bottom: 18px;
}

body.checkout-page--plan-flow .plan-button--square .plan-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  margin-top: 0;
}

body.checkout-page--plan-flow .plan-button--square .plan-price {
  margin: 0 0 14px;
  font-size: clamp(1.72rem, 2.7vw, 2.2rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
  font-weight: 700;
}

body.checkout-page--plan-flow .plan-detail {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.35;
  font-weight: 500;
  margin-bottom: 10px;
}

body.checkout-page--plan-flow .plan-meta {
  color: var(--text-tertiary);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.35;
  margin-top: auto;
}

body.checkout-page--plan-flow .plan-button.is-active::after {
  content: "✓";
  position: absolute;
  bottom: 16px;
  right: 16px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(94, 90, 168, 0.12);
  color: var(--violet);
  display: grid;
  place-items: center;
  font-size: 0.88rem;
  font-weight: 700;
}

body.checkout-page--plan-flow .plan-stage-actions {
  margin-top: 28px;
}

body.checkout-page--plan-flow .plan-stage-actions .action-button {
  min-height: 56px;
}

body.checkout-page--plan-flow .plan-stage-actions .tiny-note {
  margin-top: 14px;
  width: 100%;
  text-align: center;
}

body.checkout-page--plan-flow .plan-stage-footer {
  margin-top: 24px;
  text-align: center;
}

body.checkout-page--success-flow .step-shell--success {
  width: min(100%, 436px);
}

body.checkout-page--success-flow .step-hero--bare {
  gap: 16px;
  margin-bottom: 32px;
}

body.checkout-page--success-flow .step-title {
  max-width: 9ch;
}

body.checkout-page--success-flow .step-subtitle {
  max-width: 24ch;
}

body.checkout-page--success-flow .success-stage--bare {
  display: grid;
  gap: 0;
}

body.checkout-page--success-flow .success-stage-note {
  margin: 0 0 18px;
  text-align: center;
}

body.checkout-page--success-flow .success-stage-actions {
  gap: 12px;
}

body.checkout-page--success-flow .success-stage-actions .action-button,
body.checkout-page--success-flow .success-stage-actions .secondary-button {
  min-height: 56px;
}

body.checkout-page--success-flow .success-stage-actions .secondary-button {
  background: rgba(255, 255, 255, 0.42);
}

body.checkout-page--success-flow .error-copy {
  margin: 0 0 16px;
  text-align: center;
}

a {
  color: inherit;
}

.page-shell {
  width: min(1240px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 36px 0 56px;
}

.checkout-page--pricing .page-shell {
  width: min(1040px, calc(100vw - 32px));
  padding: 46px 0 64px;
}

.checkout-page--aligned-flow .page-shell {
  width: min(920px, calc(100vw - 32px));
  padding: 46px 0 64px;
}

.hero-shell,
.status-grid {
  display: grid;
  gap: 28px;
  align-items: start;
}

.hero-shell {
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 33vw);
  min-height: calc(100vh - 108px);
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.hero-copy,
.checkout-card,
.status-card,
.app-card,
.qr-card {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.6);
  box-shadow:
    0 14px 34px rgba(58, 39, 88, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(20px);
}

.hero-copy {
  display: grid;
  gap: 14px;
  justify-items: start;
  padding: 8px 4px 8px 2px;
  text-align: left;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.checkout-card,
.status-card,
.app-card,
.qr-card {
  padding: 30px 28px 24px;
}

.checkout-card {
  width: min(100%, 420px);
  justify-self: end;
}

.checkout-card,
.status-card,
.app-card,
.qr-card {
  position: relative;
}

.checkout-card::before,
.status-card::before,
.app-card::before,
.qr-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.08) 100%);
  pointer-events: none;
}

.thank-you-shell {
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.9fr);
}

.thank-you-copy {
  gap: 16px;
}

.thank-you-copy .card-title {
  max-width: 10ch;
  color: #ffffff;
}

.thank-you-copy .card-subtitle,
.thank-you-copy .tiny-note {
  max-width: 30ch;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 300;
}

.thank-you-eyebrow {
  color: var(--violet);
}

.thank-you-card {
  width: min(100%, 520px);
  justify-self: end;
}

.thank-you-status-row {
  justify-content: flex-start;
  margin-bottom: 4px;
}

.thank-you-detail-grid {
  gap: 14px;
}

.thank-you-email-card {
  width: min(100%, 360px);
}

.detail-value--body {
  font-weight: 400;
  line-height: 1.45;
}

.thank-you-actions {
  gap: 14px;
}

.thank-you-qr-card {
  padding: 18px;
  gap: 14px;
  justify-items: start;
}

.thank-you-qr-card .helper-copy {
  color: var(--text-secondary);
  font-weight: 300;
}

.checkout-page--aligned-flow::before,
.checkout-page--aligned-flow::after {
  display: none;
}

.checkout-flow-hero {
  margin-bottom: 24px;
}

.checkout-flow-pill {
  min-height: 38px;
  padding: 0 18px;
}

.checkout-flow-pill.is-success {
  color: var(--success);
}

.checkout-flow-pill.is-danger {
  color: var(--danger);
}

.checkout-flow-title {
  max-width: 10.5ch;
}

.checkout-flow-subtitle {
  max-width: 34ch;
}

.step-shell {
  width: min(100%, 520px);
  margin: 0 auto;
}

.step-shell--entry {
  width: min(100%, 440px);
}

.step-shell--bare {
  width: min(100%, 436px);
}

.flow-progress--powerups {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 0;
  margin: 0 auto 30px;
  text-align: center;
}

.flow-progress-step-number {
  margin: 0 0 2px;
  color: rgba(20, 24, 27, 0.48);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
}

.flow-progress-step-name {
  margin: 0 0 10px;
  color: rgba(20, 24, 27, 0.78);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
}

.flow-progress-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 120px);
  margin: 0 auto;
}

.flow-progress-dot {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(20, 24, 27, 0.12);
  border: 0;
}

.flow-progress-dot-fill {
  width: 0;
  height: 0;
  border-radius: 999px;
  background: #c4e0c3;
  transition: width 180ms ease, height 180ms ease;
}

.flow-progress-dot.is-active,
.flow-progress-dot.is-complete {
  background: rgba(20, 24, 27, 0.12);
}

.flow-progress-dot.is-active .flow-progress-dot-fill,
.flow-progress-dot.is-complete .flow-progress-dot-fill {
  width: 10px;
  height: 10px;
}

.flow-progress-segment {
  position: relative;
  flex: 1 1 auto;
  height: 4px;
  min-width: 16px;
  margin: 0;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(20, 24, 27, 0.12);
}

.flow-progress-segment::after {
  content: "";
  position: absolute;
  inset: 1px auto 1px 1px;
  width: 0;
  border-radius: inherit;
  background: #c4e0c3;
  transition: width 220ms ease;
}

.flow-progress-segment.is-active::after,
.flow-progress-segment.is-complete::after {
  width: calc(100% - 2px);
}

.step-progress-block {
  --step-progress: 25%;
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.step-progress-block--minimal {
  gap: 8px;
  margin-bottom: 22px;
}

.step-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.step-progress-meta--minimal {
  justify-content: flex-start;
}

.step-badge {
  min-height: 34px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 500;
}

.step-duration {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
}

.step-progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid rgba(20, 24, 27, 0.08);
  background: rgba(255, 255, 255, 0.84);
}

.step-progress-fill {
  width: var(--step-progress);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff7a2f 0%, #ff4d47 48%, #8f88dc 100%);
  transition: width 180ms ease;
}

.step-label {
  margin: 0;
}

.step-hero {
  gap: 12px;
  margin-bottom: 20px;
}

.step-hero--entry {
  gap: 8px;
  margin-bottom: 16px;
  justify-items: start;
  text-align: left;
}

.step-hero--bare {
  gap: 8px;
  margin-bottom: 22px;
  justify-items: start;
  text-align: left;
}

.step-title {
  max-width: 11ch;
}

.step-subtitle {
  max-width: 33ch;
}

.step-hero--entry .step-title {
  max-width: 8ch;
  font-size: clamp(2.2rem, 7vw, 3rem);
  line-height: 0.98;
}

.step-hero--entry .step-subtitle {
  max-width: 28ch;
  font-size: 15px;
}

.step-hero--bare .step-title {
  max-width: 12.5ch;
  font-size: clamp(2.35rem, 6vw, 3.25rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.step-hero--bare .step-subtitle {
  max-width: 36ch;
  font-size: 15px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.step-card {
  max-width: none;
  padding: 28px 30px 30px;
}

.step-card--entry {
  padding: 22px 22px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 28px rgba(60, 49, 92, 0.08);
}

.step-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.step-inline-action {
  flex: 0 0 auto;
  white-space: nowrap;
}

.entry-form {
  gap: 10px;
}

.step-form {
  display: grid;
  gap: 10px;
  width: 100%;
}

.step-form--bare {
  gap: 0;
}

.entry-input {
  min-height: 54px;
  border-radius: 16px;
}

.step-input {
  min-height: 56px;
  border-radius: 16px;
  border-color: rgba(20, 24, 27, 0.08);
  background: rgba(255, 255, 255, 0.68);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 8px 24px rgba(60, 49, 92, 0.04);
}

.step-form--bare .action-button {
  margin-top: 24px;
}

.step-input:focus {
  border-color: rgba(94, 90, 168, 0.38);
  box-shadow: 0 0 0 4px rgba(94, 90, 168, 0.08);
}

.entry-secondary {
  text-align: left;
  font-size: 14px;
  line-height: 1.45;
}

.step-secondary {
  margin-top: 40px;
  text-align: center;
  font-size: 14px;
  line-height: 1.45;
}

.flow-card-intro--left {
  justify-items: start;
  text-align: left;
  margin-bottom: 18px;
}

.form-field-note {
  margin-top: -2px;
}

.flow-inline-note {
  text-align: center;
}

.flow-inline-link {
  display: inline;
  width: auto;
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--violet);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.flow-inline-link:hover {
  transform: none;
  color: #4c4892;
}

.flow-inline-link:focus-visible {
  outline: 2px solid rgba(94, 90, 168, 0.34);
  outline-offset: 2px;
  border-radius: 6px;
}

.step-plan-list {
  gap: 12px;
}

.step-plan-list .plan-button {
  padding: 18px 18px 16px;
  border-radius: 22px;
}

.step-plan-list .plan-button.is-active {
  border-color: rgba(94, 90, 168, 0.66);
  box-shadow: 0 0 0 4px rgba(94, 90, 168, 0.08);
}

.step-trust-list {
  margin: 18px 0 0;
}

.step-actions {
  margin-top: 20px;
}

.step-status-note {
  max-width: 40ch;
}

.flow-card-shell {
  display: flex;
  justify-content: center;
}

.flow-card-shell--success {
  margin-top: 8px;
}

.flow-card-panel {
  width: 100%;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 20px 40px rgba(60, 49, 92, 0.11);
}

.flow-card-panel--compact {
  max-width: 420px;
  padding: 26px 28px;
  text-align: center;
}

.flow-card-panel--wide {
  max-width: 400px;
  padding: 28px 30px 30px;
}

.flow-card-kicker {
  margin: 0 0 10px;
  color: rgba(20, 24, 27, 0.58);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.flow-card-copy {
  margin: 0;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 300;
}

.flow-card-intro {
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
  margin-bottom: 24px;
}

.flow-card-note {
  max-width: 44ch;
}

.flow-progress {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.flow-progress span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(94, 90, 168, 0.28);
  animation: flow-pulse 1.15s ease-in-out infinite;
}

.flow-progress span:nth-child(2) {
  animation-delay: 0.16s;
}

.flow-progress span:nth-child(3) {
  animation-delay: 0.32s;
}

.checkout-page--aligned-flow .thank-you-actions {
  gap: 14px;
  margin-top: 60px;
}

.checkout-page--aligned-flow .thank-you-qr-card {
  width: min(100%, 260px);
  margin: 40px auto 0;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(20, 24, 27, 0.08);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: none;
}

.flow-page-note {
  max-width: 36ch;
  margin: 20px auto 0;
  text-align: center;
}

.checkout-page::before,
.checkout-page::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: -1;
  filter: blur(18px);
}

.checkout-page--pricing::before,
.checkout-page--pricing::after {
  display: none;
}

.pricing-hero {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 14px;
  margin-bottom: 30px;
}

.pricing-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(20, 24, 27, 0.08);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font-size: 15px;
  font-weight: 400;
}

.pricing-title {
  margin: 0;
  max-width: 11.2ch;
  color: var(--text);
  font-size: clamp(2.55rem, 4.7vw, 3.85rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
  font-weight: 500;
}

.pricing-subtitle {
  margin: 0;
  max-width: 36ch;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 300;
}

.pricing-layout {
  display: grid;
  grid-template-columns: 292px 344px;
  justify-content: center;
  align-items: stretch;
  gap: 20px;
}

.pricing-benefits-card,
.pricing-selector-card {
  border-radius: 22px;
  box-shadow: 0 20px 40px rgba(60, 49, 92, 0.11);
}

.pricing-benefits-card {
  padding: 28px 30px;
  background:
    radial-gradient(circle at 12% 8%, rgba(174, 168, 232, 0.96), transparent 44%),
    radial-gradient(circle at 92% 8%, rgba(255, 50, 53, 0.96), transparent 28%),
    radial-gradient(circle at 18% 94%, rgba(228, 87, 42, 0.96), transparent 34%),
    linear-gradient(135deg, #a9a2e7 0%, #ff5b31 48%, #9f9ae4 100%);
  color: #fff;
}

.pricing-benefits-intro {
  margin: 0 0 20px;
  max-width: 14ch;
  font-size: 16px;
  line-height: 1.42;
  font-weight: 400;
}

.pricing-benefits-list,
.pricing-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pricing-benefits-list {
  display: grid;
  gap: 18px;
}

.pricing-benefits-list li,
.pricing-feature-list li {
  position: relative;
  padding-left: 34px;
  line-height: 1.45;
}

.pricing-benefits-list li {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.52;
}

.pricing-benefits-list li::before,
.pricing-feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.pricing-benefits-list li::before {
  background: rgba(255, 255, 255, 0.92);
  color: var(--violet);
}

.pricing-selector-card {
  padding: 28px 36px 28px;
  background: rgba(255, 255, 255, 0.96);
}

.billing-toggle {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  justify-content: start;
  gap: 12px;
  margin-bottom: 28px;
}

.billing-toggle-track {
  position: relative;
  display: inline-flex;
  width: 48px;
  height: 28px;
  padding: 0;
  border: 0;
  appearance: none;
  border-radius: 999px;
  background: #e8e5ea;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.8);
  cursor: pointer;
}

.billing-toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--violet);
  box-shadow: 0 6px 14px rgba(94, 90, 168, 0.18);
  transition: transform 180ms ease;
}

.billing-toggle-knob.is-monthly {
  transform: translateX(20px);
}

.billing-option {
  position: relative;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  background: transparent;
  color: rgba(20, 24, 27, 0.62);
  min-height: 28px;
  padding: 0;
  font-size: 15px;
  line-height: 1;
  font-weight: 400;
  font-family: inherit;
  cursor: pointer;
  transition: color 160ms ease;
}

.billing-option:first-of-type {
  justify-content: flex-end;
}

.billing-option.is-active {
  color: rgba(20, 24, 27, 0.82);
}

.billing-option:focus-visible,
.billing-toggle-track:focus-visible {
  outline: 2px solid rgba(94, 90, 168, 0.34);
  outline-offset: 2px;
}

.pricing-figure {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 14px;
  color: #35363a;
}

.pricing-major {
  font-size: clamp(3.4rem, 5.2vw, 4.2rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
  font-weight: 600;
}

.pricing-suffix {
  font-size: 22px;
  line-height: 1;
  color: rgba(53, 54, 58, 0.76);
  font-weight: 400;
}

.pricing-copy {
  margin: 0 0 20px;
  color: rgba(20, 24, 27, 0.56);
  font-size: 15px;
  line-height: 1.18;
  font-weight: 300;
}

.pricing-feature-list {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
}

.pricing-feature-list li {
  color: rgba(20, 24, 27, 0.64);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.45;
}

.pricing-feature-list li::before {
  background: #2d2f33;
  color: #ffffff;
}

.pricing-cta-wrap {
  display: grid;
  gap: 12px;
}

.pricing-cta {
  min-height: 52px;
  border-radius: 18px;
  box-shadow: 0 14px 26px rgba(94, 90, 168, 0.22);
  font-weight: 400;
}

.checkout-page::before {
  width: 114vw;
  height: 114vw;
  left: -8vw;
  bottom: -10vw;
  background: radial-gradient(circle, rgb(255, 50, 53) 0%, rgba(255, 50, 53, 0) 70%);
}

.checkout-page::after {
  width: 102vw;
  height: 102vw;
  right: -6vw;
  top: 6vh;
  background: radial-gradient(circle, rgb(228, 87, 42) 0%, rgba(228, 87, 42, 0) 72%);
}

.checkout-section,
.stack,
.detail-grid,
.cta-stack {
  position: relative;
  display: grid;
  gap: 18px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(94, 90, 168, 0.14);
  background: rgba(255, 255, 255, 0.56);
  color: var(--violet);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.paywall-header-copy {
  display: grid;
  gap: 8px;
}

.card-title {
  margin: 0;
  color: var(--text);
  font-size: clamp(2.7rem, 5.6vw, 4.45rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
  font-weight: 600;
}

.card-subtitle,
.muted,
.helper-copy,
.tiny-note {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.45;
  font-weight: 400;
}

.hero-copy .card-title {
  max-width: 10ch;
  color: #ffffff;
}

.hero-copy .card-subtitle {
  max-width: 28ch;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 300;
}

.checkout-intro {
  display: grid;
  gap: 6px;
}

.checkout-heading {
  margin: 0;
  color: var(--text);
  font-size: 24px;
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 600;
}

.checkout-signal {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-tertiary);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.checkout-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--violet);
  box-shadow: 0 0 0 8px rgba(94, 90, 168, 0.08);
}

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

.plan-button,
.action-button,
.secondary-button,
.link-button {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease;
}

.plan-button {
  width: 100%;
  padding: 18px 18px 16px;
  border-radius: 20px;
  border: 1.2px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
  text-align: left;
  cursor: pointer;
}

.plan-button:hover,
.action-button:hover,
.secondary-button:hover,
.link-button:hover {
  transform: translateY(-1px);
}

.plan-button.is-active {
  border-color: var(--violet);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 0 0 4px rgba(94, 90, 168, 0.08);
}

.plan-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.plan-name {
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
}

.plan-badge {
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(16, 132, 93, 0.12);
  background: rgba(206, 236, 218, 0.72);
  color: #167555;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.plan-price {
  margin: 0 0 4px;
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.plan-detail {
  color: rgba(20, 24, 27, 0.62);
  font-size: 0.9rem;
  font-weight: 400;
}

.checkout-intro .card-subtitle {
  font-weight: 300;
}

.email-group {
  display: grid;
  gap: 8px;
}

.email-label {
  display: block;
  color: rgba(20, 24, 27, 0.72);
  font-size: 15px;
  line-height: 1.35;
  font-weight: 500;
}

.text-input {
  width: 100%;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
  outline: none;
  font-family: inherit;
  padding: 14px 14px 13px;
  border: 1px solid rgba(20, 24, 27, 0.06);
}

.email-input {
  min-height: 56px;
  padding: 0 16px;
}

.text-input::placeholder {
  color: rgba(20, 24, 27, 0.34);
}

.action-button,
.secondary-button,
.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  width: 100%;
  padding: 0 18px;
  border-radius: 20px;
  border: 1px solid transparent;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}

.action-button {
  background: var(--violet);
  color: #fff;
  box-shadow: 0 14px 28px rgba(94, 90, 168, 0.24);
}

.action-button:disabled {
  background: rgba(94, 90, 168, 0.38);
  color: rgba(255, 255, 255, 0.82);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.secondary-button {
  background: var(--surface-soft);
  border-color: var(--line);
  color: var(--text);
}

.link-button {
  background: transparent;
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.compact-security {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
}
.compact-security span,
.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
  color: rgba(20, 24, 27, 0.62);
  font-size: 0.8rem;
  font-weight: 500;
}

.compact-security--hero {
  margin-top: 4px;
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  position: relative;
}

.status-badge {
  min-height: 36px;
}

.status-badge.is-success {
  border-color: rgba(16, 132, 93, 0.16);
  background: var(--success-bg);
  color: var(--success);
}

.status-badge.is-warning {
  border-color: rgba(138, 76, 0, 0.16);
  background: var(--warning-bg);
  color: var(--warning);
}

.status-badge.is-danger {
  border-color: rgba(161, 45, 74, 0.16);
  background: var(--danger-bg);
  color: var(--danger);
}

.status-badge.is-neutral {
  background: var(--surface-soft);
}

.status-grid {
  grid-template-columns: 1.2fr 0.8fr;
}

.detail-item {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface);
}

.detail-label {
  color: var(--text-tertiary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-value {
  color: var(--text);
  font-weight: 600;
}

.qr-card {
  display: grid;
  justify-items: center;
  gap: 18px;
}

.qr-image {
  width: 220px;
  height: 220px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: #fff;
  object-fit: cover;
}

.desktop-only {
  display: block;
}

.hidden {
  display: none !important;
}

.error-copy {
  color: var(--danger);
  font-weight: 500;
}

.success-copy {
  color: var(--success);
  font-weight: 500;
}

.loading-dots::after {
  content: "";
  animation: dots 1.2s steps(4, end) infinite;
}

@keyframes dots {
  0% {
    content: "";
  }
  25% {
    content: ".";
  }
  50% {
    content: "..";
  }
  75% {
    content: "...";
  }
  100% {
    content: "";
  }
}

@keyframes flow-pulse {
  0%,
  100% {
    transform: scale(0.88);
    opacity: 0.5;
  }
  50% {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 960px) {
  .checkout-page--pricing .page-shell {
    width: min(calc(100vw - 24px), 100%);
    padding-top: 24px;
  }

  .checkout-page--aligned-flow .page-shell {
    width: min(calc(100vw - 24px), 100%);
    padding-top: 24px;
  }

  body.checkout-page--entry-focus .page-shell,
  body.checkout-page--auth-flow .page-shell {
    padding: 72px 24px 52px;
    align-items: flex-start;
  }

  .step-shell {
    width: min(100%, 100%);
  }

  .step-shell--entry {
    width: min(100%, 440px);
  }

  .step-shell--bare {
    width: min(100%, 420px);
  }

  .step-card {
    padding: 24px 20px 22px;
  }

  .step-card--entry {
    padding: 20px 18px 18px;
  }

  .step-hero--bare {
    margin-bottom: 16px;
  }

  .step-form--bare .action-button {
    margin-top: 24px;
  }

  body.checkout-page--auth-flow .otp-field {
    width: min(100%, 344px);
  }

  body.checkout-page--auth-flow .otp-visual {
    gap: 8px;
  }

  body.checkout-page--auth-flow .otp-slot {
    min-height: 48px;
    font-size: 1.15rem;
  }

  .step-card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .pricing-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .pricing-selector-card {
    order: -1;
  }

  .billing-toggle {
    justify-content: flex-start;
    transform: scale(0.98);
    transform-origin: left center;
  }

  .pricing-benefits-card,
  .pricing-selector-card {
    width: 100%;
  }

  .pricing-title {
    max-width: 10ch;
  }

  .page-shell {
    width: min(calc(100vw - 24px), 100%);
    padding-top: 24px;
  }

  .hero-shell,
  .status-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-shell {
    padding: 24px;
    border-radius: 30px;
  }

  .thank-you-shell {
    grid-template-columns: 1fr;
  }

  .thank-you-card {
    width: 100%;
    justify-self: stretch;
  }

  .hero-copy {
    gap: 16px;
    padding: 4px 0 0;
  }

  .checkout-card,
  .status-card,
  .app-card,
  .qr-card {
    padding: 24px 20px 20px;
    border-radius: 28px;
  }

  .hero-copy .card-title {
    max-width: 11ch;
    font-size: clamp(2.2rem, 11vw, 3.3rem);
  }

  .thank-you-copy .card-title,
  .thank-you-copy .card-subtitle,
  .thank-you-copy .tiny-note {
    max-width: none;
  }

  .flow-card-panel--wide {
    padding: 24px 20px 22px;
  }
}

body.checkout-page--plan-flow .page-shell {
  width: min(100%, 100%);
  max-width: none;
}

body.checkout-page--plan-flow .step-shell--plans {
  width: min(100%, 780px);
}

body.checkout-page--plan-flow .step-hero--paywall {
  align-items: center;
  text-align: center;
  gap: 18px;
  margin-bottom: 38px;
}

body.checkout-page--plan-flow .step-title {
  max-width: 9ch;
}

body.checkout-page--plan-flow .step-subtitle {
  max-width: 24ch;
  font-size: 14px;
  font-weight: 300;
}

.paywall-mark {
  display: grid;
  place-items: center;
  margin-bottom: 2px;
}

.paywall-mark__badge {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(245, 240, 246, 0.88) 100%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow:
    0 18px 40px rgba(39, 31, 72, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow: hidden;
}

.paywall-mark__image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

body.checkout-page--plan-flow .plan-stage--bare {
  gap: 20px;
}

body.checkout-page--plan-flow .plan-stage-list {
  gap: 12px;
}

body.checkout-page--plan-flow .plan-stage-list--split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

body.checkout-page--plan-flow .plan-button {
  position: relative;
  padding: 18px 18px 18px;
  border-radius: 26px;
  border: 1.2px solid rgba(20, 24, 27, 0.08);
  background: rgba(255, 255, 255, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 14px 26px rgba(39, 31, 72, 0.05);
  overflow: hidden;
}

body.checkout-page--plan-flow .plan-button::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, transparent 38%);
  pointer-events: none;
}

body.checkout-page--plan-flow .plan-button--paywall {
  min-height: 132px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

body.checkout-page--plan-flow .plan-card-copy {
  display: grid;
  gap: 10px;
}

body.checkout-page--plan-flow .plan-topline {
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

body.checkout-page--plan-flow .plan-name {
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: none;
}

body.checkout-page--plan-flow .plan-price-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

body.checkout-page--plan-flow .plan-price {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.85rem, 4vw, 2.15rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.06em;
}

body.checkout-page--plan-flow .plan-price span {
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

body.checkout-page--plan-flow .plan-badge {
  position: static;
  min-height: 0;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(91, 168, 122, 0.16);
  background: rgba(205, 236, 217, 0.52);
  color: #1b7759;
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  flex: 0 0 auto;
}

body.checkout-page--plan-flow .plan-select-indicator {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(20, 24, 27, 0.08);
  background: rgba(255, 255, 255, 0.5);
  color: transparent;
  font-size: 0.82rem;
  font-weight: 700;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    opacity 180ms ease;
  opacity: 0.78;
}

body.checkout-page--plan-flow .plan-button.is-active {
  border-color: rgba(16, 132, 93, 0.88);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 0 0 4px rgba(16, 132, 93, 0.1),
    0 22px 36px rgba(32, 26, 63, 0.1);
  transform: scale(1.012);
}

body.checkout-page--plan-flow .plan-button.is-active .plan-select-indicator {
  border-color: rgba(16, 132, 93, 0.22);
  background: rgba(16, 132, 93, 0.14);
  color: var(--success);
  opacity: 1;
}

body.checkout-page--plan-flow .plan-button::after,
body.checkout-page--plan-flow .plan-button.is-active::after {
  content: none;
}

body.checkout-page--plan-flow .plan-stage-list.has-selection .plan-button:not(.is-active) {
  opacity: 0.62;
  transform: scale(0.992);
}

.paywall-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.paywall-feature-heading {
  grid-column: 1 / -1;
  margin: 4px 0 12px;
  color: rgba(20, 24, 27, 0.82);
  font-size: 0.98rem;
  font-weight: 600;
  text-align: center;
}

.paywall-feature-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 14px 12px;
  border-radius: 20px;
  border: 1px solid rgba(20, 24, 27, 0.07);
  background: rgba(255, 255, 255, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.48),
    0 14px 30px rgba(39, 31, 72, 0.04);
}

.paywall-feature-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 700;
}

.paywall-feature-copy {
  display: grid;
  gap: 3px;
}

.paywall-feature-copy strong {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.22;
}

.paywall-feature-copy span {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 300;
  line-height: 1.4;
}

body.checkout-page--plan-flow .plan-stage-actions {
  margin-top: 30px;
  margin-bottom: 40px;
  display: flex;
  justify-content: center;
}

body.checkout-page--plan-flow .paywall-renewal-note {
  margin: -4px 0 2px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 400;
}

body.checkout-page--plan-flow .plan-stage-actions .action-button {
  min-height: 58px;
  width: min(100%, 350px);
}

body.checkout-page--plan-flow .plan-stage-footer {
  margin-top: 8px;
}

@media (max-width: 640px) {
  .checkout-page--pricing .page-shell {
    width: min(calc(100vw - 20px), 100%);
    padding-top: 18px;
  }

  .checkout-page--aligned-flow .page-shell {
    width: min(calc(100vw - 20px), 100%);
    padding-top: 18px;
  }

  body.checkout-page--entry-focus .page-shell,
  body.checkout-page--auth-flow .page-shell {
    padding: 64px 20px 40px;
  }

  .step-progress-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .step-progress-meta--minimal {
    flex-direction: row;
    align-items: center;
  }

  .step-duration {
    font-size: 13px;
  }

  .pricing-hero {
    gap: 14px;
    margin-bottom: 26px;
  }

  .pricing-pill {
    min-height: 34px;
    padding: 0 16px;
    font-size: 14px;
  }

  .pricing-subtitle {
    font-size: 16px;
  }

  .pricing-benefits-card,
  .pricing-selector-card {
    padding: 22px 20px;
    border-radius: 20px;
  }

  .pricing-major {
    font-size: 3.5rem;
  }

  .pricing-copy {
    max-width: none;
  }

  .billing-option {
    font-size: 14px;
  }

  .page-shell {
    width: min(calc(100vw - 20px), 100%);
    padding-top: 18px;
  }

  .hero-shell {
    padding: 18px;
    border-radius: 26px;
  }

  .checkout-card,
  .status-card,
  .app-card,
  .qr-card {
    padding: 22px 18px 18px;
    border-radius: 24px;
  }

  .hero-copy .card-title {
    max-width: none;
  }

  .desktop-only {
    display: none;
  }

  .checkout-flow-hero {
    margin-bottom: 20px;
  }

  .flow-card-panel--compact,
  .flow-card-panel--wide {
    padding: 22px 18px 20px;
    border-radius: 20px;
  }

  .step-card {
    padding: 22px 18px 20px;
  }

  .step-card--entry {
    padding: 18px 16px 16px;
  }

  .step-hero--bare .step-title {
    max-width: 100%;
    font-size: clamp(2.15rem, 11vw, 2.7rem);
  }

  .step-hero--bare .step-subtitle {
    max-width: 100%;
  }

  body.checkout-page--plan-flow .step-shell--plans {
    width: min(100%, 520px);
  }

  body.checkout-page--plan-flow .step-title,
  body.checkout-page--plan-flow .step-subtitle {
    max-width: 100%;
  }

  body.checkout-page--plan-flow .step-hero--paywall {
    margin-bottom: 30px;
  }

  .paywall-mark__badge {
    width: 64px;
    height: 64px;
    border-radius: 22px;
  }

  body.checkout-page--success-flow .step-title,
  body.checkout-page--success-flow .step-subtitle {
    max-width: 100%;
  }

  body.checkout-page--plan-flow .plan-stage-list--split {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  body.checkout-page--plan-flow .plan-button {
    padding: 22px 18px 18px;
    border-radius: 24px;
  }

  body.checkout-page--plan-flow .plan-button--paywall {
    min-height: 124px;
  }

  body.checkout-page--plan-flow .plan-price {
    font-size: 2.05rem;
  }

  .paywall-feature-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .paywall-feature-card {
    padding: 12px 13px 11px;
    border-radius: 18px;
  }

  body.checkout-page--plan-flow .plan-stage-actions {
    position: sticky;
    bottom: calc(env(safe-area-inset-bottom) + 12px);
    z-index: 4;
    padding-top: 8px;
    margin-top: 24px;
    margin-bottom: 28px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(243, 240, 238, 0.72) 18%, rgba(243, 240, 238, 0.92) 100%);
    backdrop-filter: blur(10px);
  }

  body.checkout-page--plan-flow .plan-stage-actions .action-button {
    width: 100%;
  }

  .flow-progress--powerups {
    margin-bottom: 26px;
  }

  .flow-progress-dots {
    width: min(100%, 120px);
  }

  .checkout-page--aligned-flow .thank-you-actions {
    margin-top: 44px;
  }

  .flow-page-note {
    margin-top: 18px;
  }
}
