* {
  box-sizing: border-box;
}

:root {
  --bg: #020806;
  --card: #0b1612;
  --card-strong: #0f211a;
  --border: rgba(105, 255, 210, 0.22);
  --border-strong: rgba(105, 255, 210, 0.48);
  --text: #f4fff9;
  --muted: #b9cec6;
  --muted-strong: #d6e6df;
  --green: #69ffd2;
  --green-dark: #19c995;
  --shadow: rgba(0, 0, 0, 0.48);
}

html {
  min-height: 100%;
  background:
    radial-gradient(circle at 12% 0%, rgba(105, 255, 210, 0.14), transparent 34rem),
    radial-gradient(circle at 92% 18%, rgba(25, 201, 149, 0.1), transparent 34rem),
    var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(2, 8, 6, 0.97), rgba(4, 16, 12, 0.99)),
    var(--bg);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

.checkout-shell {
  width: 100%;
  min-height: 100vh;
  padding: 32px 24px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.checkout-card {
  width: min(100%, 1120px);
  padding: clamp(34px, 5vw, 56px);
  border: 1px solid var(--border);
  border-radius: 30px;
  background:
    radial-gradient(circle at 85% 0%, rgba(105, 255, 210, 0.08), transparent 28rem),
    linear-gradient(145deg, rgba(15, 33, 26, 0.94), rgba(6, 14, 11, 0.98)),
    var(--card);
  box-shadow:
    0 30px 90px var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.back-link {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--text);
  font-size: 24px;
  font-weight: 950;
  line-height: 1;
  text-decoration: none;
  letter-spacing: -0.04em;
}

.back-link:hover {
  color: var(--green);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--green);
  font-size: 14px;
  font-weight: 950;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 920px;
  color: var(--text);
  font-size: clamp(44px, 6vw, 78px);
  font-weight: 950;
  line-height: 0.96;
  letter-spacing: -0.07em;
}

.lede {
  max-width: 920px;
  margin: 26px 0 34px;
  color: var(--muted);
  font-size: clamp(20px, 2vw, 25px);
  line-height: 1.45;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 30px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

#planPrice {
  color: var(--text);
  font-size: clamp(48px, 6vw, 68px);
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.065em;
}

#planBilling {
  color: var(--muted);
  font-size: 17px;
  font-weight: 900;
}

.next-box {
  margin-top: 30px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(2, 8, 6, 0.42);
}

.next-box h2 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 25px;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.next-box ol {
  margin: 0;
  padding-left: 22px;
  color: var(--muted-strong);
  font-size: 17px;
  line-height: 1.65;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 15px 24px;
  border-radius: 16px;
  font-size: 17px;
  font-weight: 950;
  line-height: 1.1;
  text-decoration: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  border: 1px solid rgba(105, 255, 210, 0.78);
  color: #00140f;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  box-shadow: 0 18px 44px rgba(25, 201, 149, 0.18);
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
}

.button.secondary:hover {
  border-color: var(--border-strong);
  color: var(--green);
  background: rgba(105, 255, 210, 0.08);
}

.setup-note {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

a:focus {
  outline: none;
}

a:focus-visible {
  outline: 2px solid rgba(105, 255, 210, 0.9);
  outline-offset: 6px;
  border-radius: 12px;
}

@media (max-width: 760px) {
  .checkout-shell {
    padding: 22px 14px;
  }

  .checkout-card {
    border-radius: 24px;
  }

  .back-link {
    margin-bottom: 28px;
    font-size: 22px;
  }

  .price-row {
    display: block;
  }

  #planBilling {
    display: block;
    margin-top: 8px;
  }

  .button {
    width: 100%;
  }
}

/* === MARGINPILOT STRIPE PAYMENT LINKS START === */

.mp-stripe-pay-button {
  min-height: 5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  margin-bottom: 1rem;
  padding: 1.1rem 2rem;
  border: 1px solid rgba(106, 255, 194, 0.82);
  border-radius: 1.1rem;
  color: #03120d;
  background: linear-gradient(135deg, #7cffcf, #37d69d);
  box-shadow: 0 20px 60px rgba(55, 214, 157, 0.18);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  font-weight: 950;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.mp-stripe-pay-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 24px 70px rgba(55, 214, 157, 0.26);
}

.mp-stripe-live-note {
  max-width: 980px;
  color: rgba(225, 241, 234, 0.78) !important;
}

@media (max-width: 760px) {
  .mp-stripe-pay-button {
    width: 100%;
    margin-right: 0;
  }
}

/* === MARGINPILOT STRIPE PAYMENT LINKS END === */

/* === Phase 6.5D checkout trust footer start === */
.mp-checkout-trust-footer {
  width: min(920px, calc(100% - 40px));
  margin: 24px auto 34px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: rgba(226, 232, 240, 0.74);
  padding: 22px 16px 0;
}

.mp-checkout-trust-footer__inner {
  display: grid;
  gap: 9px;
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.55;
}

.mp-checkout-trust-footer__brand,
.mp-checkout-trust-footer__tagline {
  margin: 0;
}

.mp-checkout-trust-footer__brand {
  font-weight: 700;
  color: rgba(248, 250, 252, 0.9);
}

.mp-checkout-trust-footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.mp-checkout-trust-footer__links a {
  color: rgba(125, 211, 252, 0.95);
  text-decoration: none;
  font-weight: 650;
}

.mp-checkout-trust-footer__links a:hover,
.mp-checkout-trust-footer__links a:focus-visible {
  color: #ffffff;
  text-decoration: underline;
}

.mp-checkout-trust-footer__links span {
  color: rgba(148, 163, 184, 0.55);
}

@media (max-width: 640px) {
  .mp-checkout-trust-footer {
    width: min(100% - 28px, 920px);
    margin: 20px auto 28px;
    padding-top: 20px;
  }

  .mp-checkout-trust-footer__inner {
    font-size: 0.8rem;
  }
}
/* === Phase 6.5D checkout trust footer end === */

/* === Phase 6.5D checkout single-screen polish start === */
@media (min-width: 760px) {
  html,
  body {
    min-height: 100vh !important;
  }

  body {
    overflow-y: auto !important;
  }

  .checkout-shell {
    width: 100% !important;
    min-height: auto !important;
    padding: 8px 20px 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important;
  }

  .checkout-card {
    width: min(900px, calc(100vw - 56px)) !important;
    max-width: 900px !important;
    padding: 18px 38px 18px !important;
    border-radius: 24px !important;
  }

  .back-link {
    display: inline-flex !important;
    margin: 0 0 16px !important;
    font-size: 0.92rem !important;
    line-height: 1.1 !important;
  }

  .eyebrow {
    margin: 0 0 10px !important;
    font-size: 0.7rem !important;
    line-height: 1.1 !important;
    letter-spacing: 0.3em !important;
  }

  #planTitle {
    max-width: none !important;
    margin: 0 0 12px !important;
    font-size: clamp(2.2rem, 4.2vw, 3.6rem) !important;
    line-height: 0.95 !important;
    letter-spacing: -0.055em !important;
  }

  .lede,
  #planDescription {
    max-width: 760px !important;
    margin: 0 0 14px !important;
    font-size: clamp(0.95rem, 1.25vw, 1.08rem) !important;
    line-height: 1.28 !important;
  }

  .price-row {
    margin: 12px 0 !important;
    padding: 16px 0 !important;
  }

  #planPrice {
    font-size: clamp(2.4rem, 4.2vw, 3.45rem) !important;
    line-height: 0.9 !important;
    letter-spacing: -0.06em !important;
  }

  #planBilling {
    font-size: 0.9rem !important;
    line-height: 1.1 !important;
  }

  .checkout-card h2,
  .checkout-card h3 {
    margin: 0 0 8px !important;
    font-size: 1.08rem !important;
    line-height: 1.15 !important;
  }

  .checkout-card ol,
  .checkout-card ul,
  #planSteps {
    margin: 6px 0 0 !important;
    padding-left: 1.15rem !important;
  }

  .checkout-card li,
  #planSteps li {
    margin: 2px 0 !important;
    font-size: 0.82rem !important;
    line-height: 1.25 !important;
  }

  .checkout-card [class*="next"],
  .checkout-card [class*="step"] {
    margin-top: 12px !important;
    margin-bottom: 12px !important;
    padding: 12px 16px !important;
    border-radius: 16px !important;
  }

  .button-row {
    margin: 12px 0 8px !important;
    gap: 12px !important;
  }

  .button,
  .mp-stripe-pay-button,
  #primaryAction {
    min-height: 42px !important;
    padding: 10px 18px !important;
    border-radius: 12px !important;
    font-size: 0.88rem !important;
    line-height: 1.1 !important;
  }

  .setup-note,
  .mp-stripe-live-note {
    margin-top: 8px !important;
    margin-bottom: 0 !important;
    font-size: 0.76rem !important;
    line-height: 1.35 !important;
  }

  .mp-checkout-trust-footer {
    width: min(860px, calc(100vw - 80px)) !important;
    margin: 8px auto 8px !important;
    padding-top: 8px !important;
  }

  .mp-checkout-trust-footer__inner {
    gap: 4px !important;
    font-size: 0.68rem !important;
    line-height: 1.25 !important;
  }

  .mp-checkout-trust-footer__links {
    gap: 6px !important;
  }
}

@media (min-width: 760px) and (max-height: 820px) {
  .checkout-shell {
    padding-top: 4px !important;
  }

  .checkout-card {
    padding-top: 14px !important;
    padding-bottom: 14px !important;
  }

  .back-link {
    margin-bottom: 12px !important;
  }

  .eyebrow {
    margin-bottom: 8px !important;
    font-size: 0.66rem !important;
  }

  #planTitle {
    font-size: clamp(2rem, 3.8vw, 3.2rem) !important;
    margin-bottom: 9px !important;
  }

  .lede,
  #planDescription {
    font-size: 0.92rem !important;
    line-height: 1.24 !important;
    margin-bottom: 10px !important;
  }

  .price-row {
    margin: 9px 0 !important;
    padding: 12px 0 !important;
  }

  #planPrice {
    font-size: clamp(2.1rem, 3.8vw, 3rem) !important;
  }

  .checkout-card [class*="next"],
  .checkout-card [class*="step"] {
    margin-top: 8px !important;
    margin-bottom: 8px !important;
    padding: 10px 14px !important;
  }

  .checkout-card li,
  #planSteps li {
    font-size: 0.78rem !important;
    line-height: 1.2 !important;
  }

  .button,
  .mp-stripe-pay-button,
  #primaryAction {
    min-height: 38px !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }

  .mp-checkout-trust-footer {
    margin-top: 5px !important;
    margin-bottom: 5px !important;
    padding-top: 6px !important;
  }

  .mp-checkout-trust-footer__inner {
    font-size: 0.64rem !important;
  }
}
/* === Phase 6.5D checkout single-screen polish end === */
