/* ============================================================
   Payment Options page
   ============================================================
   Slim hero, accepted payments row, financing cards (Cherry +
   PatientFi), Beauty Bank cross-link, bottom consultation CTA.
   Reuses tokens from site.css.
   ============================================================ */

/* ---------- Slim hero (Ivory — LOCKED direction) ---------- */
.pay-hero {
  background: var(--c-ivory);
  color: var(--c-ink);
  padding-top: 96px;
  padding-bottom: 64px;
}
@media (max-width: 767px) {
  .pay-hero { padding-top: 64px; padding-bottom: 48px; }
}
.pay-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
  position: relative;
}
.pay-hero-rule {
  position: absolute;
  left: -8px;
  top: 8px;
  width: 1px;
  height: 96px;
  background: var(--c-sea);
  opacity: 0.5;
}
@media (max-width: 767px) {
  .pay-hero-rule { left: 0; height: 64px; }
}
.pay-hero-wrap {
  padding-left: 32px;
  position: relative;
}
@media (max-width: 767px) {
  .pay-hero-wrap { padding-left: 16px; }
}
.pay-hero .eyebrow { margin-bottom: 20px; color: var(--c-sea-text); }
.pay-hero .eyebrow::before { background: var(--c-sea); }
.pay-hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -0.005em;
  color: var(--c-ink);
  margin: 0 0 20px;
  max-width: 18ch;
}
@media (max-width: 767px) {
  .pay-hero h1 { font-size: 38px; line-height: 1.1; }
}
.pay-hero-sub {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.6;
  color: var(--c-slate);
  margin: 0;
  max-width: 62ch;
}
@media (max-width: 767px) {
  .pay-hero-sub { font-size: 16px; }
}

/* ---------- Accepted payments band ---------- */
.pay-accepted {
  background: var(--c-ivory);
  padding: 96px 24px;
}
@media (max-width: 767px) {
  .pay-accepted { padding: 72px 24px; }
}
.pay-accepted-inner {
  max-width: 720px;
  margin: 0 auto;
}
.pay-accepted-head {
  text-align: center;
  margin-bottom: 48px;
}
.pay-accepted-head .eyebrow { justify-content: center; margin-bottom: 16px; }
.pay-accepted-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.2;
  color: var(--c-deep);
  margin: 0 0 12px;
  letter-spacing: -0.005em;
}
@media (max-width: 767px) {
  .pay-accepted-head h2 { font-size: 26px; }
}
.pay-accepted-head p {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-slate);
  margin: 0;
}

.pay-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (max-width: 639px) {
  .pay-methods { grid-template-columns: 1fr; }
}

.pay-method {
  background: var(--c-ivory);
  border: 1px solid var(--c-stone);
  border-radius: 10px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pay-method h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.3;
  color: var(--c-deep);
  margin: 0;
  letter-spacing: 0;
}
.pay-method p {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--c-slate);
  margin: 0;
}

/* Credit-card logo row — real network logos */
.pay-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pay-card {
  height: 38px;
  padding: 4px 8px;
  background: var(--c-ivory);
  border: 1px solid var(--c-stone);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.pay-card img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
/* Amex & Mastercard have dark backgrounds in their official marks —
   give them a touch more breathing room and let the dark fill the
   tile rather than sitting on grey. */
.pay-card-amex, .pay-card-mc {
  background: transparent;
  border: none;
  padding: 0;
}

/* Cash & Check tender tiles — same row treatment as credit cards
   but a bit larger since the illustrations are wider than logos. */
.pay-tender {
  height: 64px;
  padding: 0;
  background: transparent;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.pay-tender img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Tap-to-pay row — sits below the credit-card logos in the same card */
.pay-tap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 8px 14px 8px 10px;
  background: var(--c-pearl);
  border: 1px solid var(--c-stone);
  border-radius: 999px;
  align-self: flex-start;
}
.pay-tap-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}
.pay-tap-label {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--c-deep);
}

/* ---------- Financing section (Soft Mint) ---------- */
.pay-financing {
  background: var(--c-mint);
  padding: 96px 24px;
}
@media (max-width: 767px) {
  .pay-financing { padding: 72px 24px; }
}
.pay-financing-inner {
  max-width: 1080px;
  margin: 0 auto;
}
.pay-financing-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.pay-financing-head .eyebrow { justify-content: center; margin-bottom: 16px; }
.pay-financing-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 36px;
  line-height: 1.15;
  color: var(--c-deep);
  margin: 0 0 16px;
  letter-spacing: -0.005em;
}
@media (max-width: 767px) {
  .pay-financing-head h2 { font-size: 28px; }
  .pay-financing-head { margin-bottom: 40px; }
}
.pay-financing-head p {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--c-ink);
  margin: 0;
}
@media (max-width: 767px) {
  .pay-financing-head p { font-size: 16px; }
}
.pay-financing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (max-width: 767px) {
  .pay-financing-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ---------- Financing card ---------- */
.pay-fcard {
  background: var(--c-ivory);
  border: 1px solid var(--c-stone);
  border-radius: 12px;
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition:
    transform var(--d-hover) var(--ease-out),
    border-color var(--d-hover) var(--ease-out),
    box-shadow var(--d-hover) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .pay-fcard:hover {
    transform: translateY(-3px);
    border-color: var(--c-sea);
    box-shadow: 0 14px 32px rgba(15, 79, 87, 0.10);
  }
}
@media (prefers-reduced-motion: reduce) {
  .pay-fcard, .pay-fcard:hover { transform: none; transition: none; }
}
@media (max-width: 767px) {
  .pay-fcard { padding: 28px 24px 24px; }
}

.pay-fcard-logo {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 24px;
}
/* When the supplied logo is a white-on-transparent asset (e.g.
   PatientFi), render it inside a Deep Teal pill so it stays
   legible on the Ivory card background. */
.pay-fcard-logo[data-dark] {
  background: var(--c-deep);
  border-radius: 8px;
  padding: 10px 18px;
  width: fit-content;
}
.pay-fcard-logo img {
  max-width: 160px;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.pay-fcard-logo-placeholder {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.005em;
  color: var(--c-deep);
  margin: 0;
}
.pay-fcard h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.3;
  color: var(--c-deep);
  margin: 0 0 12px;
  letter-spacing: 0;
}
.pay-fcard p {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--c-slate);
  margin: 0 0 28px;
  flex: 1;
}
.pay-fcard-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  align-self: flex-start;
  background: var(--c-deep);
  color: var(--c-ivory);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 16px 22px;
  border-radius: 6px;
  text-decoration: none;
  transition:
    transform var(--d-hover) var(--ease-out),
    box-shadow var(--d-hover) var(--ease-out),
    background-color var(--d-hover) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .pay-fcard-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 79, 87, 0.18);
  }
}
.pay-fcard-cta:active {
  transform: scale(0.97);
  transition-duration: var(--d-press);
}
.pay-fcard-cta:focus-visible {
  outline: 3px solid var(--c-deep);
  outline-offset: 3px;
}
.pay-fcard-cta .ext-icon {
  flex-shrink: 0;
  margin-left: 2px;
}

/* Visually hidden — for "(opens in a new tab)" supplements */
.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Membership cross-link band ---------- */
.pay-membership {
  background: var(--c-pearl);
  padding: 72px 24px;
  border-top: 1px solid var(--c-stone);
  border-bottom: 1px solid var(--c-stone);
}
.pay-membership-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.pay-membership-inner .eyebrow { justify-content: center; margin-bottom: 16px; }
.pay-membership-inner h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.2;
  color: var(--c-deep);
  margin: 0 0 12px;
  letter-spacing: -0.005em;
}
@media (max-width: 767px) {
  .pay-membership-inner h2 { font-size: 22px; }
}
.pay-membership-inner p {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--c-ink);
  margin: 0 0 24px;
}

/* ---------- Bottom consultation block ---------- */
.pay-consult {
  background: var(--c-deep);
  color: var(--c-ivory);
  padding: 96px 24px;
}
@media (max-width: 767px) {
  .pay-consult { padding: 72px 24px; }
}
.pay-consult-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.pay-consult .gold-line {
  display: block;
  width: 40px;
  height: 2px;
  background: var(--c-gold);
  margin: 0 auto 24px;
}
.pay-consult h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 36px;
  line-height: 1.15;
  color: var(--c-ivory);
  margin: 0 auto 16px;
  max-width: 22ch;
  letter-spacing: -0.005em;
}
@media (max-width: 767px) {
  .pay-consult h2 { font-size: 28px; }
}
.pay-consult p {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: rgba(246, 246, 247, 0.85);
  margin: 0 auto 32px;
  max-width: 54ch;
}
@media (max-width: 767px) {
  .pay-consult p { font-size: 16px; }
}
.pay-consult-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px 28px;
}
.pay-consult-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--c-ivory);
  text-decoration: none;
  border-bottom: 1px solid rgba(127, 192, 196, 0.55);
  padding-bottom: 2px;
  transition: color 200ms var(--ease-out), border-color 200ms var(--ease-out);
}
.pay-consult-phone:hover {
  color: var(--c-aqua);
  border-bottom-color: var(--c-aqua);
}
