/* ==========================================
   AXVIA — CHECKOUT
========================================== */


/* ==========================================
   ROOT
========================================== */

:root {
  --primary: #2454e6;
  --primary-hover: #1742ca;
  --primary-soft: #e7eeff;

  --background: #ffffff;
  --surface: #f7faff;

  --text: #131c2e;
  --text-soft: #53627a;
  --text-muted: #8490a3;

  --border: #e4eaf2;
  --border-strong: #c8d4e4;

  --success: #1f9d61;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --font: "DM Sans", sans-serif;
}



/* ==========================================
   RESET
========================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}


html {
  scroll-behavior: smooth;
}


body {
  margin: 0;
  min-width: 320px;

  background: var(--surface);
  color: var(--text);

  font-family: var(--font);

  -webkit-font-smoothing: antialiased;
}


a {
  color: inherit;
  text-decoration: none;
}


button,
input,
textarea,
select {
  font: inherit;
}


[hidden] {
  display: none !important;
}


::selection {
  background: var(--primary-soft);
  color: var(--primary);
}



/* ==========================================
   HEADER
========================================== */

.checkout-header {
  width: 100%;

  background: #ffffff;
  border-bottom: 1px solid var(--border);
}


.checkout-header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;

  width: 100%;
  max-width: 1200px;

  min-height: 78px;

  margin: 0 auto;
  padding: 0 34px;
}


.checkout-logo {
  display: inline-flex;
  align-items: center;

  color: var(--text);

  font-size: 27px;
  font-weight: 900;
  letter-spacing: -0.075em;
  line-height: 1;
}


.checkout-logo span {
  color: var(--primary);
}


.checkout-secure {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  color: var(--text-soft);

  font-size: 12px;
  font-weight: 700;
}


.checkout-secure-icon {
  display: grid;
  place-items: center;

  width: 22px;
  height: 22px;

  color: var(--primary);
  background: var(--primary-soft);

  border-radius: 50%;

  font-size: 11px;
  font-weight: 900;
}



/* ==========================================
   MAIN
========================================== */

.checkout-main {
  width: 100%;

  padding: 62px 0 70px;
}


.checkout-container {
  display: grid;
  grid-template-columns:
    minmax(0, 0.92fr)
    minmax(440px, 0.78fr);

  align-items: start;

  gap: clamp(45px, 6vw, 90px);

  width: 100%;
  max-width: 1200px;

  margin: 0 auto;
  padding: 0 34px;
}



/* ==========================================
   OFFER
========================================== */

.checkout-offer {
  width: 100%;
  max-width: 590px;

  padding-top: 12px;
}


.checkout-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;

  margin-bottom: 23px;

  color: var(--primary);

  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.45px;
  line-height: 1.5;
}


.checkout-eyebrow-dot {
  width: 7px;
  height: 7px;

  flex-shrink: 0;

  background: var(--primary);

  border-radius: 50%;
}


.checkout-offer h1 {
  max-width: 570px;

  margin: 0;

  color: var(--text);

  font-size: clamp(45px, 5vw, 67px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.064em;

  text-wrap: balance;
}


.checkout-offer h1 span {
  display: block;

  color: var(--primary);
}


.checkout-description {
  max-width: 545px;

  margin: 25px 0 0;

  color: var(--text-soft);

  font-size: 16px;
  font-weight: 500;
  line-height: 1.75;

  text-wrap: pretty;
}



/* ==========================================
   PRICE CARD
========================================== */

.checkout-price-card {
  margin-top: 35px;
  padding: 26px 27px;

  background: #ffffff;

  border: 1px solid var(--border);
  border-radius: var(--radius-md);

  box-shadow:
    0 10px 30px rgba(19, 28, 46, 0.035);
}


.checkout-price-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;

  gap: 12px;
}


.checkout-price-label {
  color: var(--text-muted);

  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1.15px;
}


.checkout-trial-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 28px;

  padding: 5px 10px;

  color: var(--primary);
  background: var(--primary-soft);

  border-radius: var(--radius-pill);

  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.5px;
}


.checkout-price {
  display: flex;
  align-items: baseline;
  gap: 9px;

  margin-top: 22px;
}


.checkout-price-amount {
  color: var(--text);

  font-size: 58px;
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 1;
}


.checkout-price-today {
  color: var(--text-soft);

  font-size: 14px;
  font-weight: 700;
}


.checkout-price-after {
  margin: 10px 0 0;

  color: var(--text-soft);

  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
}


.checkout-price-after strong {
  color: var(--text);
  font-weight: 800;
}



/* ==========================================
   INCLUDED
========================================== */

.checkout-included {
  margin-top: 34px;
}


.checkout-included-title {
  margin: 0 0 17px;

  color: var(--text);

  font-size: 13px;
  font-weight: 900;
}


.checkout-included ul {
  display: flex;
  flex-direction: column;

  gap: 18px;

  margin: 0;
  padding: 0;

  list-style: none;
}


.checkout-included li {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}


.checkout-check {
  display: grid;
  place-items: center;

  flex-shrink: 0;

  width: 24px;
  height: 24px;

  margin-top: 1px;

  color: var(--primary);
  background: var(--primary-soft);

  border-radius: 50%;

  font-size: 11px;
  font-weight: 900;
}


.checkout-included li div {
  min-width: 0;
}


.checkout-included strong {
  display: block;

  color: var(--text);

  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}


.checkout-included li p {
  margin: 4px 0 0;

  color: var(--text-soft);

  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
}



/* ==========================================
   ASSURANCE
========================================== */

.checkout-assurance {
  display: flex;
  flex-wrap: wrap;

  gap: 10px 20px;

  margin-top: 32px;
  padding-top: 24px;

  border-top: 1px solid var(--border);
}


.checkout-assurance div {
  display: inline-flex;
  align-items: center;
  gap: 7px;

  color: var(--text-soft);

  font-size: 11px;
  font-weight: 700;
}


.checkout-assurance div span {
  color: var(--primary);
  font-weight: 900;
}



/* ==========================================
   PAYMENT
========================================== */

.checkout-payment {
  width: 100%;
}


.checkout-payment-card {
  width: 100%;

  padding: 30px;

  background: #ffffff;

  border: 1px solid var(--border);
  border-radius: var(--radius-lg);

  box-shadow:
    0 22px 65px rgba(19, 28, 46, 0.09);
}



/* ==========================================
   PAYMENT HEADING
========================================== */

.checkout-payment-heading {
  padding-bottom: 24px;

  border-bottom: 1px solid var(--border);
}


.checkout-payment-step {
  display: block;

  margin-bottom: 11px;

  color: var(--primary);

  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1.2px;
}


.checkout-payment-heading h2 {
  margin: 0;

  color: var(--text);

  font-size: 28px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.045em;
}


.checkout-payment-heading p {
  margin: 9px 0 0;

  color: var(--text-soft);

  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
}



/* ==========================================
   LOADING
========================================== */

.checkout-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  min-height: 320px;

  padding: 45px 20px;

  text-align: center;
}


.checkout-loading p {
  margin: 16px 0 0;

  color: var(--text-soft);

  font-size: 13px;
  font-weight: 600;
}


.checkout-spinner {
  width: 31px;
  height: 31px;

  border: 3px solid var(--primary-soft);
  border-top-color: var(--primary);

  border-radius: 50%;

  animation:
    checkout-spin 0.8s linear infinite;
}


@keyframes checkout-spin {
  to {
    transform: rotate(360deg);
  }
}



/* ==========================================
   STRIPE CONTAINER
========================================== */

.stripe-checkout-container {
  width: 100%;

  min-height: 420px;

  margin-top: 22px;

  overflow: hidden;

  border-radius: 14px;
}



/* ==========================================
   ERROR
========================================== */

.checkout-error {
  margin-top: 22px;
  padding: 17px 18px;

  background: #fff5f5;

  border: 1px solid #ffd4d4;
  border-radius: 12px;
}


.checkout-error strong {
  display: block;

  color: #9c2525;

  font-size: 13px;
  font-weight: 800;
}


.checkout-error p {
  margin: 5px 0 0;

  color: #a34a4a;

  font-size: 12px;
  font-weight: 500;
  line-height: 1.55;
}



/* ==========================================
   SECURITY
========================================== */

.checkout-security-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;

  margin-top: 22px;
  padding-top: 18px;

  border-top: 1px solid var(--border);
}


.checkout-security-icon {
  display: grid;
  place-items: center;

  flex-shrink: 0;

  width: 20px;
  height: 20px;

  color: var(--success);
  background: #eaf8f1;

  border-radius: 50%;

  font-size: 10px;
  font-weight: 900;
}


.checkout-security-note p {
  margin: 0;

  color: var(--text-muted);

  font-size: 10px;
  font-weight: 500;
  line-height: 1.6;
}



/* ==========================================
   TRIAL NOTE
========================================== */

.checkout-trial-note {
  margin-top: 18px;
  padding: 0 9px;
}


.checkout-trial-note strong {
  display: block;

  color: var(--text);

  font-size: 11px;
  font-weight: 800;
}


.checkout-trial-note p {
  margin: 5px 0 0;

  color: var(--text-muted);

  font-size: 10px;
  font-weight: 500;
  line-height: 1.65;
}



/* ==========================================
   FOOTER
========================================== */

.checkout-footer {
  width: 100%;

  background: #ffffff;

  border-top: 1px solid var(--border);
}


.checkout-footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  width: 100%;
  max-width: 1200px;

  min-height: 70px;

  margin: 0 auto;
  padding: 0 34px;

  color: var(--text-muted);

  font-size: 10px;
  font-weight: 600;
}


.checkout-footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
}


.checkout-footer-links a {
  transition:
    color 0.2s ease;
}


.checkout-footer-links a:hover {
  color: var(--primary);
}



/* ==========================================
   TABLET
========================================== */

@media (max-width: 950px) {

  .checkout-main {
    padding:
      48px 0 60px;
  }


  .checkout-container {
    grid-template-columns:
      minmax(0, 1fr);

    gap: 45px;

    max-width: 720px;
  }


  .checkout-offer {
    max-width: 640px;

    padding-top: 0;
  }


  .checkout-offer h1 {
    max-width: 620px;
  }


  .checkout-description {
    max-width: 610px;
  }


  .checkout-payment-card {
    max-width: 620px;

    margin: 0 auto;
  }


  .checkout-trial-note {
    max-width: 620px;

    margin:
      18px auto 0;
  }

}



/* ==========================================
   MOBILE
========================================== */

@media (max-width: 600px) {

  .checkout-header-container {
    min-height: 68px;

    padding:
      0 21px;
  }


  .checkout-logo {
    font-size: 24px;
  }


  .checkout-secure {
    gap: 6px;

    font-size: 10px;
  }


  .checkout-secure-icon {
    width: 19px;
    height: 19px;

    font-size: 9px;
  }


  .checkout-main {
    padding:
      40px 0 48px;
  }


  .checkout-container {
    gap: 34px;

    padding:
      0 20px;
  }


  /* Offer */

  .checkout-eyebrow {
    margin-bottom: 19px;

    font-size: 9px;
    letter-spacing: 1.1px;
  }


  .checkout-offer h1 {
    font-size:
      clamp(
        38px,
        11vw,
        49px
      );

    line-height: 1.08;
  }


  .checkout-description {
    margin-top: 20px;

    font-size: 14px;
    line-height: 1.7;
  }


  /* Price */

  .checkout-price-card {
    margin-top: 28px;

    padding:
      22px 20px;
  }


  .checkout-price {
    margin-top: 19px;
  }


  .checkout-price-amount {
    font-size: 50px;
  }


  .checkout-price-today {
    font-size: 12px;
  }


  .checkout-price-after {
    font-size: 12px;
  }


  /* Included */

  .checkout-included {
    margin-top: 28px;
  }


  .checkout-included ul {
    gap: 16px;
  }


  .checkout-included strong {
    font-size: 12px;
  }


  .checkout-included li p {
    font-size: 11px;
  }


  .checkout-check {
    width: 22px;
    height: 22px;
  }


  /* Assurance */

  .checkout-assurance {
    gap: 9px 15px;

    margin-top: 28px;
  }


  .checkout-assurance div {
    font-size: 10px;
  }


  /* Payment */

  .checkout-payment-card {
    padding:
      24px 19px;

    border-radius: 18px;
  }


  .checkout-payment-heading {
    padding-bottom: 20px;
  }


  .checkout-payment-heading h2 {
    font-size: 25px;
  }


  .checkout-payment-heading p {
    font-size: 12px;
  }


  .stripe-checkout-container {
    min-height: 400px;

    margin-top: 18px;
  }


  .checkout-loading {
    min-height: 280px;
  }


  .checkout-security-note {
    margin-top: 18px;
  }


  /* Footer */

  .checkout-footer-container {
    flex-direction: column;
    justify-content: center;

    min-height: 85px;

    padding:
      18px 20px;
  }

}



/* ==========================================
   SMALL MOBILE
========================================== */

@media (max-width: 380px) {

  .checkout-container {
    padding:
      0 17px;
  }


  .checkout-offer h1 {
    font-size: 36px;
  }


  .checkout-description {
    font-size: 13px;
  }


  .checkout-price-card {
    padding:
      20px 17px;
  }


  .checkout-payment-card {
    padding:
      21px 16px;
  }


  .checkout-payment-heading h2 {
    font-size: 23px;
  }

}



/* ==========================================
   REDUCED MOTION
========================================== */

@media (
  prefers-reduced-motion:
  reduce
) {

  *,
  *::before,
  *::after {
    animation-duration:
      0.01ms !important;

    animation-iteration-count:
      1 !important;

    transition-duration:
      0.01ms !important;
  }

}


/* ========================================
   AXVIA CHECKOUT — SUBMIT BUTTON
======================================== */

#checkout-submit {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  min-height: 56px;

  margin-top: 26px;
  padding: 16px 24px;

  background: #2454e6;
  color: #ffffff;

  border: 1px solid #2454e6;
  border-radius: 12px;

  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;

  text-align: center;
  letter-spacing: -0.2px;

  cursor: pointer;

  box-shadow: 0 6px 18px rgba(36, 84, 230, 0.16);

  transition:
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}


/* ========================================
   HOVER
======================================== */

#checkout-submit:hover:not(:disabled) {
  background: #1945c8;

  box-shadow:
    0 8px 24px rgba(36, 84, 230, 0.23);

  transform: translateY(-1px);
}


/* ========================================
   ACTIVE
======================================== */

#checkout-submit:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: none;
}


/* ========================================
   FOCUS
======================================== */

#checkout-submit:focus-visible {
  outline: 3px solid rgba(36, 84, 230, 0.3);
  outline-offset: 3px;
}


/* ========================================
   LOADING / DISABLED
======================================== */

#checkout-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}


/* ========================================
   BILLING SUMMARY
======================================== */

#checkout-amount-note {
  margin: 14px 0 0;

  color: #69758d;

  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.7;

  text-align: center;
}


/* ========================================
   FORM SPACING
======================================== */

.axvia-checkout-form {
  width: 100%;
}

.axvia-checkout-form .checkout-field-section + .checkout-field-section {
  margin-top: 24px;
}

#payment-message:not([hidden]) {
  margin-top: 16px;
}
