/* ========== Brand Colors (from style guide) ========== */
:root {
  --brand-primary: #00B2E3;   /* Azure */
  --brand-secondary: #E31D93; /* Fuscia */
  --brand-accent: #CCA1DD;    /* Lilac */
  --brand-dark: #172852;      /* Midnite */
  --brand-font: 'Como Light', 'Helvetica Neue', Arial, sans-serif;
}

/* Global typography */
body {
  font-family: var(--brand-font);
  color: var(--brand-dark);
  background-color: #fff;
  line-height: 1.6;
}

/* superscript on main header */ 
sup.tm {
  font-size: 0.25em;
  position: relative;
  top: -2.5em;
  line-height: 1;
}

/* Buttons */
.btn-primary {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
  font-weight: 600;
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--brand-secondary);
  border-color: var(--brand-secondary);
}

/* Header Border: fade from white → secondary → accent → primary */
.header-border {
  border-bottom: none;
  position: relative;
}
.header-border::after {
  content: "";
  display: block;
  height: 30px; /* increased height for non-mobile */
  background: linear-gradient(
    to right,
    #ffffff -2%,                     /* start with white */
    var(--brand-secondary) 10%,     /* fade into fuchsia */
    var(--brand-accent) 50%,        /* smooth into lilac */
    var(--brand-primary) 100%       /* end in azure */
  );
  background-repeat: no-repeat;
  background-size: 100% 30px;   /* height of gradient */
  background-position: bottom;  /* stick to bottom */
  padding-bottom: 30px;         /* push content above gradient */
}

@media (max-width: 576px) {
  .header-border::after {
    height: 15px; /* smaller for mobile */
    background: linear-gradient(
      to right,
      #ffffff -2%,
      var(--brand-secondary) 10%,
      var(--brand-accent) 50%,
      var(--brand-primary) 100%
    );
  }

  .page-title {
    text-align: center;
    flex-basis: 100%;
    font-size: 1rem;
    margin-top: 0.5rem;
  }
}


/* Hero section */
.hero {
  /* background: var(--brand-accent, #f5f7fb); */
  color: var(--brand-dark);
  padding: 4rem 1rem;
}
.hero-eyebrow {
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand-primary);
}
.offer-statement {
  max-width: 50rem;
  margin-left: auto;
  margin-right: auto;
  color: var(--brand-dark);
}

/* Footer */
footer {
  /* background-color: var(--brand-dark); */
  color: #fff;
}
footer a.footer-link {
  color: var(--brand-primary);
  text-decoration: none;
}
footer a.footer-link:hover,
footer a.footer-link:focus {
  color: var(--brand-secondary);
  text-decoration: underline;
}
footer .small {
  color: #ccc;
}
.footer-brand img {
  max-height: 50px;
  width: auto;
  margin-top: 1rem;
}
.footer-legal {
  text-align: left;           /* readable on mobile/desktop */
}
@media (min-width: 992px) {
  .footer-legal { text-align: left; }
}

.footer-legal-text p {
  max-width: 48rem;           /* comfortable line length */
}

.footer-pill {
  display: inline-block;
  padding: 0 .35rem;
  margin-left: .25rem;
  font-weight: 600;
  border-radius: .2rem;
  background-color: rgba(23, 40, 82, .08); /* subtle tag look */
  color: var(--brand-dark);
}


/* Form control emphasis */
.form-control.is-invalid,
.form-select.is-invalid,
.form-check-input.is-invalid {
  border-color: #E31D93; /* Fuscia */
  box-shadow: 0 0 0 .2rem rgba(227,29,147,.15);
}

/* Two-card layout: stack by default, two columns on lg+ */
.card-pair {
  display: grid;
  grid-template-columns: 1fr;         /* stack on mobile */
  justify-content: center;
  gap: 1.5rem;
}

.card-frame {
  width: min(420px, 100%);            /* fits two within typical container */
}

.copay-card-img {
  display: block;
  width: 100%;
  height: auto;
}

/* Fallback front panel box */
.copay-card-front {
  background:#fff;
  border:1px solid rgba(0,0,0,.1);
  width: 100%;
  min-height: 200px;
  box-sizing: border-box;
}

/* Two columns from lg and up */
@media (min-width: 992px) {
  .card-pair {
    grid-template-columns: auto auto; /* side-by-side */
  }
}

@media print {
  /* make the page wider and remove container caps so two cards fit */
  @page { size: auto; margin: 12mm; }
  .container { max-width: 100% !important; }

  .btn { display: none !important; }

  .card-pair {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;  /* two columns */
    gap: 16px !important;
    page-break-inside: avoid;
  }

  .card-frame {
    width: auto !important;        /* let grid control width */
    max-width: none !important;
    break-inside: avoid;
  }

  .copay-card-front { width: 100% !important; }
}



/* Accessibility */
.skip-link {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: static;
  width: auto;
  height: auto;
  padding: .5rem 1rem;
  background: #fff;
  border: 2px solid var(--brand-primary);
}
