:root {
  --navy: #071a35;
  --navy-2: #102d53;
  --gold: #d4ac63;
  --gold-light: #f6d99a;
  --red: #a51f25;
  --text: #152033;
}

* { box-sizing: border-box; }

html { background: var(--navy); }

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background:
    radial-gradient(circle at 50% 5%, rgba(38, 78, 126, .6), transparent 30rem),
    var(--navy);
}

button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.landing {
  width: min(100%, 650px);
  min-height: 100vh;
  margin: 0 auto;
  padding-bottom: 112px;
  background: #061a36;
  box-shadow: 0 0 60px rgba(0, 0, 0, .3);
}

.poster {
  display: block;
  width: 100%;
  height: auto;
}

.sticky-cta {
  position: fixed;
  z-index: 20;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 12px max(18px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  background: linear-gradient(to top, rgba(5, 19, 39, 1) 45%, rgba(5, 19, 39, .92) 75%, transparent);
}

.cta-button {
  display: block;
  width: min(100%, 590px);
  min-height: 62px;
  margin: 0 auto;
  border: 1px solid #f9dfa3;
  border-radius: 15px;
  color: #2a1906;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .12em;
  background: linear-gradient(135deg, #f6dda6, #c59543 50%, #f3d48f);
  box-shadow: 0 8px 30px rgba(212, 172, 99, .32), inset 0 1px rgba(255, 255, 255, .7);
  cursor: pointer;
}

.cta-button:active { transform: translateY(1px); }

.modal-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(2, 11, 25, .74);
  backdrop-filter: blur(7px);
}

.modal-backdrop[hidden], .modal[hidden] { display: none; }

.modal {
  position: relative;
  width: min(100%, 470px);
  max-height: calc(100vh - 44px);
  overflow-y: auto;
  padding: 29px 24px 24px;
  border: 1px solid rgba(220, 184, 113, .52);
  border-radius: 20px;
  background: #fffdf8;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .38);
  animation: modal-in .22s ease-out;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
}

.modal h2 {
  margin: 4px 28px 20px 0;
  color: #101827;
  font-size: clamp(21px, 5vw, 26px);
  line-height: 1.42;
}

.modal-eyebrow {
  margin: 0 0 4px;
  color: #9b6b25;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .16em;
}

.close-button {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  color: #647083;
  font-size: 29px;
  line-height: 1;
  background: transparent;
  cursor: pointer;
}

.answer-list { display: grid; gap: 12px; }

.answer-button, .submit-button, .secondary-button {
  width: 100%;
  min-height: 52px;
  border-radius: 11px;
  font-weight: 700;
  cursor: pointer;
}

.answer-button {
  border: 1px solid #d9c6a4;
  color: #2a2117;
  font-size: 18px;
  text-align: left;
  padding: 0 20px;
  background: #fffaf0;
}

.answer-button:hover, .answer-button:focus-visible {
  border-color: #b98532;
  background: #fff3d8;
}

.message-modal { text-align: center; }
.message-modal h2 { margin: 8px 0 10px; }
.message-modal p { margin: 0 0 22px; color: #4a5568; line-height: 1.8; }

.status-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 5px auto 12px;
  border-radius: 50%;
  color: white;
  font-size: 30px;
  font-weight: 800;
  background: #1d8b5b;
}

.status-icon--muted { background: #a51f25; }

.lead-copy {
  margin: -5px 0 22px;
  color: #4a5568;
  font-size: 15px;
  line-height: 1.8;
}

label { display: block; margin-bottom: 8px; font-weight: 700; }

.phone-input {
  width: 100%;
  height: 52px;
  padding: 0 15px;
  border: 1px solid #ccd2dc;
  border-radius: 10px;
  outline: none;
  font-size: 17px;
  background: white;
}

.phone-input:focus { border-color: #b98532; box-shadow: 0 0 0 3px rgba(185, 133, 50, .15); }
.phone-input[aria-invalid="true"] { border-color: #b4232a; }

.form-error { min-height: 21px; margin: 6px 0 7px; color: #b4232a; font-size: 14px; }

.submit-button {
  border: 1px solid #f0cf88;
  color: #241707;
  font-size: 18px;
  background: linear-gradient(135deg, #f1d18d, #c4913c);
}

.submit-button:disabled { cursor: wait; opacity: .65; }

.secondary-button {
  border: 0;
  color: white;
  font-size: 17px;
  background: var(--navy-2);
}

.privacy-note { margin: 12px 0 0; color: #8690a0; font-size: 12px; text-align: center; }

@media (max-width: 420px) {
  .modal-backdrop { padding: 16px; }
  .modal { padding: 25px 19px 20px; border-radius: 17px; }
  .cta-button { min-height: 58px; font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .modal { animation: none; }
}
