/* Privance — conversion enhancements (announcement bar, sticky CTA, lead modal, social proof)
   Layered on top of the inline styles in index.html; reuses the same design tokens. */

/* ---- Announcement / urgency bar ---- */
.announce {
  background: linear-gradient(90deg, #A9871A, #C9A227);
  color: #1a1405;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .02em;
  text-align: center;
  padding: 9px 44px 9px 16px;
  position: relative;
  z-index: 60;
}

.announce a {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.announce strong { font-weight: 600 }

.announce .announce-close {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  color: #1a1405;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  opacity: .7;
}

.announce .announce-close:hover { opacity: 1 }

/* ---- Sticky bottom CTA (mobile-first, helps capture scrollers) ---- */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 18px;
  background: rgba(14, 23, 38, .92);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line-dark);
  transform: translateY(120%);
  transition: transform .3s ease;
}

.sticky-cta.show { transform: none }

.sticky-cta .sc-text {
  color: var(--text-inv);
  font-size: 14.5px;
  font-weight: 500;
}

.sticky-cta .sc-text span { color: var(--muted-inv); display: block; font-size: 12.5px; font-family: var(--mono) }

.sticky-cta .sc-actions { display: flex; gap: 10px; flex: none }

@media (max-width: 719px) {
  /* on phones the chat button owns the corner; rely on nav + in-page CTAs */
  .sticky-cta { display: none !important }
}
@media (min-width: 720px) {
  /* desktop: dock bottom-LEFT so it never collides with the chat button (bottom-right) */
  .sticky-cta { left: 24px; right: auto; bottom: 24px; border-radius: 14px; border: 1px solid var(--line-dark); max-width: 440px; box-shadow: 0 24px 50px -24px rgba(0,0,0,.6) }
}

/* ---- Social proof section ---- */
.proof-section { background: var(--paper-2) }

.logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 38px;
  margin-bottom: 56px;
  opacity: .85;
}

.logos span {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--muted);
}

.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px }

.quote {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.quote p {
  font-size: 15.5px;
  color: var(--text);
  line-height: 1.55;
  margin: 0;
}

.quote .who { display: flex; align-items: center; gap: 12px; margin-top: auto }

.quote .who .av {
  width: 40px; height: 40px; border-radius: 10px; flex: none;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 600; color: #fff; background: var(--ink);
}

.quote .who b { font-family: var(--display); font-size: 14.5px; color: var(--text); font-weight: 600 }
.quote .who small { display: block; font-family: var(--mono); font-size: 11.5px; color: var(--muted) }

.stars { color: var(--gold); font-size: 14px; letter-spacing: 2px }

@media (max-width: 900px) { .quotes { grid-template-columns: 1fr } }

/* ---- Lead capture modal ---- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(8, 13, 22, .72);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-backdrop.show { display: flex }

.modal {
  background: var(--paper-2);
  border-radius: 18px;
  max-width: 460px;
  width: 100%;
  padding: 34px 32px;
  position: relative;
  box-shadow: 0 40px 90px -40px rgba(0,0,0,.6);
}

.modal h3 { font-size: 23px; margin-bottom: 8px }
.modal p { font-size: 15px; margin-bottom: 22px }

.modal .modal-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: 0; font-size: 24px; line-height: 1; cursor: pointer; color: var(--muted);
}

.modal form { display: flex; flex-direction: column; gap: 12px }

.modal label { font-size: 13px; font-weight: 600; color: var(--text) }

.modal input {
  font-family: var(--body);
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
}

.modal input:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold) }

.modal .btn { width: 100%; justify-content: center; margin-top: 6px }

.modal .form-note { font-size: 12px; color: var(--muted); text-align: center; margin: 4px 0 0 }

.modal .form-success { text-align: center; padding: 10px 0 }
.modal .form-success .badge { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 16px; background: rgba(201,162,39,.12); border: 1px solid rgba(201,162,39,.45) }

/* ---- Weekly rotating promo ---- */
.price-was {
  text-decoration: line-through;
  color: var(--muted-inv);
  font-weight: 400;
  margin-right: 6px;
  font-size: .62em;
  opacity: .8;
}
.price-suffix { font-size: 15px; font-family: var(--mono); color: var(--muted-inv); font-weight: 400 }
.promo-ribbon {
  margin-top: 16px;
  display: inline-block;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #1a1405;
  background: var(--gold);
  padding: 5px 12px;
  border-radius: 20px;
  font-weight: 600;
}

/* ---- Clickable / rotating hero cards ---- */
.tcard.clickable {
  cursor: pointer;
  will-change: transform, opacity;
  transition: transform .55s cubic-bezier(.22,.61,.36,1), box-shadow .45s ease, border-color .3s ease, opacity .45s ease;
}
.tcard.clickable:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px }
.tcard .tcard-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 14px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold); opacity: 0; transform: translateY(4px); transition: opacity .3s ease, transform .3s ease;
}

/* Every card highlighted in its own metal — not just gold */
.tcard-bronze { border-color: rgba(168, 112, 60, .55); box-shadow: 0 28px 60px -30px rgba(168, 112, 60, .45) }
.tcard-plat   { border-color: rgba(154, 167, 180, .5);  box-shadow: 0 28px 60px -30px rgba(154, 167, 180, .45) }
.tcard .metal { box-shadow: 0 0 16px -2px currentColor }
.tcard-bronze .metal { color: var(--bronze) }
.tcard-plat .metal   { color: var(--platinum) }
.tcard-gold .metal   { color: var(--gold) }

/* The card currently in front gets the spotlight + reveals its Apply link */
.tcard.is-front { border-color: rgba(201, 162, 39, .7) !important; box-shadow: 0 46px 90px -30px rgba(201, 162, 39, .5) !important }
.tcard.is-front .tcard-link { opacity: 1; transform: none }
.tcard.clickable:hover { filter: brightness(1.06) }

/* ---- Day / night toggle ---- */
.theme-toggle {
  background: none;
  border: 1px solid var(--line-dark);
  border-radius: 9px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--text-inv);
  flex: none;
  transition: border-color .15s ease, transform .15s ease;
}
.theme-toggle:hover { border-color: rgba(255, 255, 255, .5); transform: translateY(-1px) }
.theme-toggle .ic-sun { display: none }
.theme-toggle .ic-moon { display: block }
html[data-theme="dark"] .theme-toggle .ic-sun { display: block }
html[data-theme="dark"] .theme-toggle .ic-moon { display: none }

/* ---- Night mode: override the light design tokens ---- */
html[data-theme="dark"] {
  --paper: #0B1220;
  --paper-2: #131D31;
  --text: #EEF1F6;
  --muted: #9AA7B8;
  --line: rgba(255, 255, 255, .12);
  --ink: #070D17;
  --ink-2: #111B2E;
  --ink-3: #18233A;
}
html[data-theme="dark"] body { background: var(--paper) }
html[data-theme="dark"] .step .who { background: rgba(255, 255, 255, .08); color: var(--text-inv) }
html[data-theme="dark"] .modal input { background: #0B1220; color: var(--text); border-color: var(--line) }
html[data-theme="dark"] .feature:hover { box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .6) }
html[data-theme="dark"] thead th { border-bottom-color: var(--gold) }

/* ---- Apply form ---- */
.apply-wrap { max-width: 640px }
.apply-form { display: flex; flex-direction: column; gap: 16px; margin-top: 8px }
.apply-form .field { display: flex; flex-direction: column; gap: 7px }
.apply-form label { font-size: 13.5px; font-weight: 600; color: var(--text) }
.apply-form input, .apply-form select, .apply-form textarea {
  font-family: var(--body);
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper-2);
  color: var(--text);
  width: 100%;
}
.apply-form textarea { min-height: 110px; resize: vertical }
.apply-form input:focus, .apply-form select:focus, .apply-form textarea:focus {
  outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold);
}
.apply-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px }
@media (max-width: 560px) { .apply-form .row { grid-template-columns: 1fr } }
.apply-form .btn { margin-top: 6px; justify-content: center }
.apply-form .form-note { font-size: 12.5px; color: var(--muted); margin-top: 2px }
.apply-success { text-align: center; padding: 30px 0 }
.apply-success .badge { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px; background: rgba(201,162,39,.12); border: 1px solid rgba(201,162,39,.45) }
.plan-chips { display: flex; gap: 10px; flex-wrap: wrap }
.plan-chip { flex: 1; min-width: 120px; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; cursor: pointer; transition: border-color .15s, background .15s }
.plan-chip:hover { border-color: var(--gold-deep) }
.plan-chip.sel { border-color: var(--gold); background: rgba(201,162,39,.06) }
.plan-chip b { font-family: var(--display); font-size: 15px; display: block }
.plan-chip small { font-family: var(--mono); font-size: 12px; color: var(--muted) }

/* ---- Smaller "Apply now" in the header on mobile ---- */
@media (max-width: 600px) {
  header .nav-cta .btn-gold { padding: 9px 13px; font-size: 13px; border-radius: 9px }
  header .nav-cta { gap: 9px }
}
@media (max-width: 380px) {
  header .nav-cta .btn-gold { padding: 8px 11px; font-size: 12.5px }
}
