:root {
  color-scheme: light;
  --ink: #101018;
  --muted: #6f7180;
  --soft: #f4f4f8;
  --line: #dedee8;
  --paper: #ffffff;
  --violet: #474fe5;
  --violet-dark: #2e36c7;
  --violet-soft: #eef0ff;
  --green: #2f7b43;
  --green-soft: #ecf6ee;
  --aqua: #2aafa2;
  --black: #09090d;
  --shadow: 0 24px 70px rgba(30, 31, 66, 0.14);
  --content: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  text-rendering: optimizeLegibility;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(71, 79, 229, 0.32);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 14px;
  background: white;
  color: var(--ink);
  border-radius: 8px;
}

.skip-link:focus {
  top: 12px;
}

.demo-console {
  position: relative;
  z-index: 12;
  background: var(--black);
  color: white;
}

.demo-console__inner {
  width: min(var(--content), calc(100% - 40px));
  min-height: 54px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 22px;
}

.demo-console__label,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7ef0a3;
  box-shadow: 0 0 0 5px rgba(126, 240, 163, 0.1);
}

.scenario-switch {
  display: flex;
  gap: 3px;
  padding: 3px;
  border-radius: 10px;
  background: #24242c;
}

.scenario-switch button {
  border: 0;
  border-radius: 7px;
  padding: 7px 12px;
  background: transparent;
  color: #a9a9b3;
  cursor: pointer;
  font-size: 12px;
}

.scenario-switch button[aria-pressed="true"] {
  background: white;
  color: var(--ink);
}

.demo-console__state {
  overflow: hidden;
  color: #c7c7d0;
  font-size: 12px;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.text-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--violet);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.text-button--light {
  color: white;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(16, 16, 24, 0.1);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  width: min(var(--content), calc(100% - 40px));
  min-height: 68px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
}

.wordmark {
  justify-self: start;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.wordmark span:last-child {
  margin-left: 6px;
  color: var(--violet);
  font-weight: 500;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-header nav button {
  border: 0;
  padding: 8px 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
}

.site-header nav button[aria-current="page"] {
  color: var(--ink);
  box-shadow: inset 0 -2px var(--violet);
}

.account-chip {
  justify-self: end;
  min-width: 138px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 13px 8px 9px;
  background: white;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
}

.avatar {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: var(--violet-soft);
  color: var(--violet-dark);
  font-size: 10px;
  font-weight: 800;
}

main {
  min-height: 70vh;
}

.page {
  animation: page-in 300ms ease-out both;
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

.page-hero {
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.page-hero__inner {
  width: min(var(--content), calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 66px;
}

.page-hero h1 {
  max-width: 830px;
  margin: 12px 0 18px;
  font-size: clamp(44px, 6.5vw, 86px);
  font-weight: 450;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.page-hero p {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
  font-size: 20px;
}

.newsletter-shell {
  width: min(720px, calc(100% - 32px));
  margin: 46px auto 90px;
  border: 1px solid #d8d8df;
  background: white;
  box-shadow: var(--shadow);
}

.newsletter-preheader {
  padding: 11px 26px;
  background: var(--violet);
  color: white;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.newsletter-masthead {
  padding: 35px 42px 30px;
  background: var(--black);
  color: white;
}

.newsletter-masthead__top,
.newsletter-section__heading,
.offer-module__top,
.premium-card__meta,
.modal__header,
.receipt-row,
.benefit-row,
.account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.newsletter-masthead__date {
  color: #bcbcc7;
  font-size: 12px;
}

.newsletter-title {
  margin: 36px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(45px, 8vw, 67px);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.92;
}

.newsletter-deck {
  max-width: 500px;
  margin: 18px 0 0;
  color: #cfcfd5;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.45;
}

.newsletter-body {
  padding: 34px 42px 44px;
}

.morning-summary {
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 28px;
}

.morning-summary h2 {
  margin: 8px 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 400;
}

.morning-summary p,
.article-copy p {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.65;
}

.market-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin: 18px 0 34px;
}

.market-cell {
  min-width: 0;
  padding: 16px;
  border-right: 1px solid var(--line);
}

.market-cell:last-child {
  border-right: 0;
}

.market-cell span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.market-cell strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
  font-weight: 500;
}

.market-cell em {
  display: block;
  margin-top: 2px;
  color: var(--green);
  font-size: 11px;
  font-style: normal;
}

.offer-module {
  position: relative;
  overflow: hidden;
  margin: 34px 0;
  border-radius: 18px;
  padding: 28px;
  background: var(--violet-soft);
}

.offer-module::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -76px;
  width: 210px;
  height: 210px;
  border: 46px solid rgba(71, 79, 229, 0.09);
  border-radius: 50%;
  pointer-events: none;
}

.offer-module--funded {
  background: var(--green-soft);
}

.offer-module--funded::after {
  border-color: rgba(47, 123, 67, 0.1);
}

.offer-module .eyebrow {
  color: var(--violet);
}

.offer-module--funded .eyebrow {
  color: var(--green);
}

.offer-module h3 {
  position: relative;
  z-index: 1;
  max-width: 470px;
  margin: 18px 0 10px;
  font-size: 29px;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.offer-module p {
  position: relative;
  z-index: 1;
  max-width: 475px;
  margin: 0 0 21px;
  color: #565867;
}

.funding-benefit {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  gap: 2px 16px;
  margin: 23px 0;
  border: 1px solid rgba(47, 123, 67, 0.2);
  border-radius: 14px;
  padding: 17px 18px;
  background: rgba(255, 255, 255, 0.66);
  color: #285f37;
}

.funding-benefit__label {
  grid-column: 1 / -1;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.funding-benefit strong {
  font-size: 38px;
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
}

.funding-benefit > span:last-child {
  padding-bottom: 3px;
  font-size: 12px;
}

.funding-benefit--compact {
  display: flex;
  align-items: center;
  gap: 10px;
  border-color: rgba(71, 79, 229, 0.18);
  color: #353ba7;
}

.funding-benefit--compact .funding-benefit__label {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 6px 9px;
  background: var(--violet);
  color: white;
}

.funding-benefit--compact > span:last-child {
  padding: 0;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 19px;
  background: var(--violet);
  color: white;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 150ms ease, background 150ms ease;
}

.button:hover {
  background: var(--violet-dark);
  transform: translateY(-1px);
}

.button--green {
  background: var(--green);
}

.button--green:hover {
  background: #246636;
}

.button--dark {
  background: var(--ink);
}

.button--dark:hover {
  background: #2b2b35;
}

.button--ghost {
  border-color: var(--line);
  background: white;
  color: var(--ink);
}

.button--ghost:hover {
  background: var(--soft);
}

.button--wide {
  width: 100%;
}

.button[disabled] {
  cursor: default;
  opacity: 0.5;
  transform: none;
}

.newsletter-section {
  margin: 36px 0 0;
}

.newsletter-section__heading {
  border-bottom: 2px solid var(--ink);
  padding-bottom: 9px;
}

.newsletter-section__heading h2 {
  margin: 0;
  font-size: 21px;
}

.newsletter-section__heading span {
  color: var(--muted);
  font-size: 11px;
}

.story {
  border-bottom: 1px solid var(--line);
  padding: 25px 0;
}

.story:last-child {
  border-bottom: 0;
}

.story__kicker {
  color: var(--violet);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.story h3,
.story__headline {
  margin: 7px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  font-weight: 400;
  line-height: 1.25;
}

.story__headline {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.story__headline:hover {
  color: var(--violet);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.story p {
  margin: 0;
  color: #555763;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  line-height: 1.55;
}

.story__cta {
  border: 0;
  margin-top: 14px;
  padding: 0 0 3px;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--violet);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.premium-teaser {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
  background: #fbfbfd;
}

.premium-teaser--locked .premium-teaser__excerpt {
  max-height: 82px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(black 30%, transparent);
  mask-image: linear-gradient(black 30%, transparent);
}

.premium-teaser__gate {
  position: relative;
  z-index: 2;
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  text-align: center;
}

.newsletter-footer {
  padding: 30px 42px;
  background: var(--black);
  color: #bdbdc7;
  font-size: 11px;
  text-align: center;
}

.membership-hero {
  position: relative;
  overflow: hidden;
  background: var(--black);
  color: white;
}

.membership-hero::before,
.membership-hero::after {
  content: "";
  position: absolute;
  width: 390px;
  height: 390px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

.membership-hero::before {
  right: 8%;
  top: -220px;
}

.membership-hero::after {
  right: -150px;
  top: -40px;
}

.membership-hero__inner {
  position: relative;
  z-index: 1;
  width: min(var(--content), calc(100% - 40px));
  margin: 0 auto;
  padding: 76px 0 94px;
}

.membership-hero h1 {
  max-width: 850px;
  margin: 20px 0;
  font-size: clamp(50px, 7vw, 92px);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 0.96;
}

.membership-hero p {
  max-width: 660px;
  color: #c2c2cb;
  font-size: 19px;
}

.eligibility-banner {
  width: min(var(--content), calc(100% - 40px));
  margin: -30px auto 0;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  border: 1px solid #d3ead7;
  border-radius: 16px;
  padding: 18px 20px;
  background: white;
  box-shadow: 0 14px 40px rgba(22, 60, 34, 0.1);
}

.eligibility-icon,
.success-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green-soft);
  color: var(--green);
  font-size: 23px;
}

.eligibility-banner strong,
.eligibility-banner span {
  display: block;
}

.eligibility-banner span {
  color: var(--muted);
  font-size: 13px;
}

.plans-section {
  width: min(var(--content), calc(100% - 40px));
  margin: 0 auto;
  padding: 78px 0 92px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-heading h2 {
  margin: 7px 0 9px;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 450;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.plan-card {
  position: relative;
  min-height: 530px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 30px;
  background: white;
}

.plan-card--featured {
  border-color: transparent;
  background: var(--violet-soft);
}

.plan-card--included {
  border-color: #cce4d1;
  background: var(--green-soft);
}

.plan-card__job {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.plan-card h3 {
  margin: 14px 0 8px;
  font-size: 35px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.plan-price {
  min-height: 63px;
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-bottom: 26px;
}

.plan-price strong {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.plan-price span {
  color: var(--muted);
  font-size: 13px;
}

.plan-card ul {
  flex: 1;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.plan-card li {
  position: relative;
  margin: 0 0 15px;
  padding-left: 24px;
  color: #464754;
  font-size: 14px;
}

.plan-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--violet);
  font-weight: 700;
}

.plan-card--included li::before {
  color: var(--green);
}

.plan-card__note {
  min-height: 36px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.flow-strip {
  border-top: 1px solid var(--line);
  background: var(--soft);
}

.flow-strip__inner {
  width: min(var(--content), calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 70px;
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 25px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--line);
}

.flow-step {
  min-height: 150px;
  padding: 22px;
  background: white;
}

.flow-step span {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--violet-soft);
  color: var(--violet);
  font-size: 11px;
  font-weight: 700;
}

.flow-step h3 {
  margin: 14px 0 5px;
  font-size: 16px;
}

.flow-step p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.premium-page {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: 68px 0 100px;
}

.premium-card__meta {
  margin-bottom: 32px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.premium-page h1 {
  max-width: 780px;
  margin: 12px 0 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 6vw, 68px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.premium-page__lead {
  max-width: 720px;
  margin-bottom: 42px;
  color: #4d4f5a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  line-height: 1.5;
}

.article-copy {
  max-width: 690px;
}

.article-callout {
  margin: 36px 0;
  border-left: 4px solid var(--violet);
  padding: 12px 0 12px 24px;
  font-size: 24px;
  letter-spacing: -0.025em;
}

.gate-page {
  min-height: calc(100vh - 122px);
  display: grid;
  place-items: center;
  padding: 60px 20px;
  background: var(--soft);
}

.gate-card {
  width: min(650px, 100%);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 54px;
  background: white;
  box-shadow: var(--shadow);
  text-align: center;
}

.gate-lock {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  background: var(--violet-soft);
  color: var(--violet);
  font-size: 25px;
}

.gate-card h1 {
  margin: 8px 0 14px;
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.gate-card p {
  max-width: 510px;
  margin: 0 auto 24px;
  color: var(--muted);
}

.success-page {
  min-height: calc(100vh - 122px);
  display: grid;
  grid-template-columns: 1fr 0.9fr;
}

.success-page__message,
.success-page__receipt {
  padding: clamp(42px, 7vw, 100px);
}

.success-page__message {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--green-soft);
}

.success-page__message h1 {
  margin: 25px 0 16px;
  font-size: clamp(48px, 7vw, 82px);
  font-weight: 450;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.success-page__message p {
  max-width: 590px;
  color: #4b5f50;
  font-size: 18px;
}

.success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.success-page__receipt {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.receipt {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px;
}

.receipt h2 {
  margin: 0 0 22px;
  font-size: 22px;
}

.receipt-row {
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
  color: var(--muted);
  font-size: 13px;
}

.receipt-row:last-child {
  border-bottom: 0;
}

.receipt-row strong {
  color: var(--ink);
  text-align: right;
}

.event-trigger {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 15;
  border: 0;
  border-radius: 999px;
  padding: 11px 13px 11px 11px;
  background: var(--black);
  color: white;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  font-size: 12px;
}

.event-trigger__icon,
.event-count {
  display: inline-grid;
  place-items: center;
}

.event-trigger__icon {
  width: 23px;
  height: 23px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--violet);
}

.event-count {
  min-width: 22px;
  height: 22px;
  margin-left: 7px;
  border-radius: 999px;
  background: #2a2a32;
  color: #bfbfc8;
  font-size: 10px;
}

.event-panel {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  width: min(390px, calc(100% - 36px));
  max-height: min(620px, calc(100vh - 36px));
  overflow: auto;
  border: 1px solid #353540;
  border-radius: 20px;
  padding: 24px;
  background: #121218;
  color: white;
  box-shadow: var(--shadow);
  transform: translateY(24px) scale(0.97);
  opacity: 0;
  pointer-events: none;
  transition: 180ms ease;
}

.event-panel[data-open="true"] {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}

.event-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.event-panel h2 {
  margin: 5px 0 0;
  font-size: 22px;
}

.event-panel__intro {
  color: #9e9ea9;
  font-size: 12px;
}

.icon-button {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 1px solid #3c3c47;
  border-radius: 50%;
  background: transparent;
  color: white;
  cursor: pointer;
}

.event-panel ol {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.event-item {
  position: relative;
  padding: 0 0 20px 28px;
}

.event-item::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--aqua);
  box-shadow: 0 0 0 5px rgba(42, 175, 162, 0.1);
}

.event-item::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 19px;
  bottom: 2px;
  border-left: 1px solid #3c3c47;
}

.event-item:last-child::after {
  display: none;
}

.event-item code {
  display: block;
  color: #8fe7df;
  font-size: 11px;
}

.event-item span {
  display: block;
  margin-top: 4px;
  color: #a5a5b0;
  font-size: 11px;
}

.event-empty {
  padding: 26px 0;
  color: #8f8f9a;
  text-align: center;
  font-size: 12px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(7, 7, 12, 0.68);
  backdrop-filter: blur(8px);
}

.modal-backdrop[hidden] {
  display: none;
}

.modal {
  width: min(720px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  border-radius: 24px;
  padding: 30px;
  background: white;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.32);
  animation: modal-in 200ms ease both;
}

@keyframes modal-in {
  from {
    transform: translateY(12px) scale(0.98);
    opacity: 0;
  }
}

.modal__header {
  align-items: flex-start;
  margin-bottom: 24px;
}

.modal__header h2 {
  margin: 5px 0 0;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.modal .icon-button {
  border-color: var(--line);
  color: var(--ink);
}

.sandbox-banner {
  margin-bottom: 20px;
  border: 1px solid #f0d78b;
  border-radius: 10px;
  padding: 10px 13px;
  background: #fff9e8;
  color: #6d571b;
  font-size: 12px;
}

.integration-stack {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.integration-row {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding: 16px;
}

.integration-row:last-child {
  border-bottom: 0;
}

.integration-row__icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--soft);
  color: var(--violet);
  font-weight: 700;
}

.integration-row strong,
.integration-row span {
  display: block;
}

.integration-row span {
  color: var(--muted);
  font-size: 12px;
}

.status-pill {
  border-radius: 999px;
  padding: 5px 8px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: block;
}

.field--full {
  grid-column: 1 / -1;
}

.field span {
  display: block;
  margin-bottom: 6px;
  color: #555764;
  font-size: 12px;
  font-weight: 600;
}

.field input {
  width: 100%;
  border: 1px solid #cfcfd9;
  border-radius: 10px;
  padding: 11px 12px;
  background: white;
}

.field input[readonly] {
  background: var(--soft);
  color: #4b4c57;
}

.checkout-summary {
  border-radius: 16px;
  padding: 22px;
  background: var(--soft);
}

.checkout-summary h3 {
  margin: 0 0 18px;
  font-size: 20px;
}

.checkout-summary__price {
  margin: 18px 0 4px;
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.checkout-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.consent {
  display: flex;
  gap: 9px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 11px;
}

.loading-button {
  position: relative;
}

.loading-button[data-loading="true"] {
  color: transparent;
}

.loading-button[data-loading="true"]::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

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

.account-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.account-row {
  border-bottom: 1px solid var(--line);
  padding: 15px 17px;
  color: var(--muted);
  font-size: 13px;
}

.account-row:last-child {
  border-bottom: 0;
}

.account-row strong {
  color: var(--ink);
  text-align: right;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 60;
  border-radius: 999px;
  padding: 11px 16px;
  background: var(--black);
  color: white;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition: 180ms ease;
}

.toast[data-show="true"] {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 900px) {
  .demo-console__inner {
    grid-template-columns: auto 1fr auto;
    gap: 12px;
  }

  .demo-console__state {
    display: none;
  }

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

  .plan-card {
    min-height: auto;
  }

  .flow-steps {
    grid-template-columns: 1fr 1fr;
  }

  .success-page {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 680px) {
  .demo-console {
    position: static;
  }

  .demo-console__inner {
    width: calc(100% - 24px);
    min-height: 96px;
    grid-template-columns: 1fr auto;
    padding: 10px 0;
  }

  .scenario-switch {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .scenario-switch button {
    flex: 1;
  }

  .site-header__inner {
    width: calc(100% - 28px);
    grid-template-columns: 1fr auto;
  }

  .site-header nav {
    display: none;
  }

  .newsletter-body,
  .newsletter-masthead,
  .newsletter-footer {
    padding-left: 24px;
    padding-right: 24px;
  }

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

  .market-cell {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .market-cell:last-child {
    border-bottom: 0;
  }

  .eligibility-banner {
    grid-template-columns: auto 1fr;
  }

  .eligibility-banner .button {
    grid-column: 1 / -1;
  }

  .flow-steps,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .field--full {
    grid-column: auto;
  }

  .gate-card {
    padding: 36px 24px;
  }

  .modal {
    padding: 23px;
  }

  .modal-actions {
    flex-direction: column-reverse;
  }

  .modal-actions .button {
    width: 100%;
  }

  .event-trigger {
    right: 12px;
    bottom: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
