*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #F5F8FC;
  --surface: #FFFFFF;
  --text: #0F172A;
  --muted: #64748B;
  --border: #DCE4EF;
  --accent: #0A6DEB;
  --accent-dark: #0759C5;
  --accent-soft: #EAF3FF;
  --dark: #0E1728;
  --success: #137A4B;
  --danger: #B42318;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow: 0 20px 60px rgba(15, 23, 42, .09);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.checkout-container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.checkout-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  text-transform: uppercase;
}

.brand-copy strong {
  font-size: 15px;
  letter-spacing: .02em;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
}

.secure-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.secure-label svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.checkout-main {
  padding: clamp(44px, 6vw, 78px) 0 80px;
}

.checkout-intro {
  max-width: 760px;
  margin-bottom: 38px;
}

.back-link {
  display: inline-block;
  margin-bottom: 26px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

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

.eyebrow,
.mini-label {
  color: var(--accent);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.checkout-intro h1 {
  margin: 12px 0 16px;
  max-width: 720px;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.03;
  letter-spacing: -.045em;
}

.checkout-intro > p {
  margin: 0;
  max-width: 720px;
  color: #475569;
  font-size: clamp(16px, 1.6vw, 18px);
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

.summary-column {
  display: grid;
  gap: 20px;
}

.summary-card,
.next-card,
.payment-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.summary-card,
.next-card {
  padding: clamp(24px, 3vw, 34px);
}

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

.summary-heading h2 {
  margin: 8px 0 0;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  line-height: 1.1;
}

.price-block {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  white-space: nowrap;
}

.price-block strong {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: .9;
  letter-spacing: -.06em;
}

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

.summary-rule {
  height: 1px;
  margin: 26px 0;
  background: var(--border);
}

.included-list {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.included-list li {
  position: relative;
  padding-left: 28px;
  color: #334155;
  font-size: 14px;
}

.included-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 900;
}

.guarantee-box {
  margin-top: 28px;
  padding: 20px;
  border-radius: 14px;
  border: 1px solid #CFE2FF;
  background: var(--accent-soft);
}

.guarantee-badge {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
}

.guarantee-box p {
  margin: 0;
  color: #334155;
  font-size: 13px;
}

.next-card .mini-label {
  display: block;
  margin-bottom: 24px;
}

.next-steps {
  display: grid;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.next-steps li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  align-items: start;
}

.next-steps li > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.next-steps strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.next-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.payment-card {
  padding: clamp(24px, 3vw, 34px);
}

.payment-card h2 {
  margin: 10px 0 8px;
  font-size: clamp(2rem, 3.7vw, 3rem);
  line-height: 1;
  letter-spacing: -.055em;
}

.payment-lead {
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 14px;
}

.agreement-box {
  margin-bottom: 20px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #FBFCFE;
}

.agreement-label {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 11px;
  align-items: start;
  cursor: pointer;
  color: #334155;
  font-size: 12px;
}

.agreement-label input {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: var(--accent);
}

.agreement-error {
  min-height: 0;
  margin: 8px 0 0 31px;
  color: var(--danger);
  font-size: 11px;
  font-weight: 700;
}

.paypal-shell {
  min-height: 94px;
  transition: opacity .18s ease;
}

.paypal-shell.is-disabled {
  opacity: .45;
  pointer-events: none;
  filter: grayscale(.12);
}

.checkout-status {
  min-height: 22px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

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

.checkout-status.is-error {
  color: var(--danger);
}

.payment-notes {
  display: grid;
  gap: 11px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.payment-notes > div {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 9px;
  align-items: start;
  color: var(--muted);
  font-size: 12px;
}

.payment-notes svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.checkout-fineprint {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #F8FAFC;
}

.checkout-fineprint p {
  margin: 0;
  color: #718096;
  font-size: 10px;
  line-height: 1.6;
}

.checkout-footer {
  padding: 24px 0;
  border-top: 1px solid var(--border);
  background: #fff;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
}

@media (min-width: 900px) {
  .checkout-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, .72fr);
    gap: 34px;
  }

  .payment-card {
    position: sticky;
    top: 26px;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (max-width: 560px) {
  .checkout-container {
    width: min(100% - 28px, 1120px);
  }

  .checkout-header {
    min-height: 66px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

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

  .secure-label span {
    display: none;
  }

  .checkout-main {
    padding-top: 30px;
  }

  .checkout-intro {
    margin-bottom: 26px;
  }

  .back-link {
    margin-bottom: 20px;
  }

  .summary-heading {
    flex-direction: column;
  }

  .payment-card {
    order: -1;
  }
}
