/* ============================================================
   SCHIMPF COMBAT FRAMEWORK — landing page stylesheet
   Aesthetic: editorial luxury · mocha mousse palette
   Type: Manrope (primary) + Fraunces (italic display accent)
   ============================================================ */

:root {
  /* mocha mousse palette */
  --ink:       #1A1410;     /* near-black */
  --espresso:  #2A1F18;     /* deep brown for body */
  --mocha:     #8B6F47;     /* brand brown */
  --mocha-d:   #6E5736;
  --caramel:   #D4A574;     /* accent */
  --caramel-l: #E5C19B;
  --cream:     #F5E6D3;     /* soft */
  --paper:     #FAF6F0;     /* page bg */
  --paper-w:   #FDFAF5;
  --white:     #FFFFFF;
  --line:      rgba(42, 31, 24, 0.14);
  --line-soft: rgba(42, 31, 24, 0.08);

  /* type */
  --sans: 'Manrope', system-ui, -apple-system, Segoe UI, Helvetica, Arial, sans-serif;
  --serif: 'Fraunces', 'Times New Roman', Georgia, serif;

  /* spacing */
  --gut: clamp(1.25rem, 2vw, 2rem);
  --pad: clamp(1.5rem, 4vw, 5rem);

  /* radii */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 32px;
}


/* ============================================================
   MODALS
   ============================================================ */
.modal {
  position: fixed; inset: 0;
  z-index: 100;
  display: none;
  align-items: center; justify-content: center;
  padding: 1.5rem;
}
.modal.is-open { display: flex; animation: modalIn .25s ease; }
@keyframes modalIn { from { opacity: 0; } to { opacity: 1; } }
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(26, 20, 16, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.modal__panel {
  position: relative;
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--paper-w);
  border-radius: var(--r-lg);
  padding: 2.4rem 2rem 2rem;
  box-shadow: 0 40px 120px -30px rgba(0,0,0,0.6);
  animation: panelIn .35s cubic-bezier(0.22,1,0.36,1);
}
@keyframes panelIn {
  from { transform: translateY(20px) scale(0.98); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.modal__close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  font-size: 14px;
  color: var(--ink);
  transition: all .2s ease;
}
.modal__close:hover { background: var(--ink); color: var(--cream); }

.modal__panel--legal { max-width: 760px; }

.quiz { display: flex; flex-direction: column; gap: 1.2rem; }
.quiz .kicker { align-self: flex-start; }
.quiz__title {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}
.quiz__sub {
  font-size: 14.5px; color: var(--mocha-d);
}
.quiz__options {
  display: flex; flex-direction: column; gap: 0.7rem;
  margin-top: 0.5rem;
}
.quiz__opt {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.1rem 1.2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  text-align: left;
  cursor: pointer;
  transition: all .25s ease;
}
.quiz__opt:hover {
  border-color: var(--ink);
  background: var(--cream);
  transform: translateX(4px);
}
.quiz__opt:hover .quiz__letter { background: var(--ink); color: var(--cream); }
.quiz__opt.is-selected {
  border-color: var(--ink);
  background: var(--cream);
  box-shadow: 0 0 0 2px var(--ink) inset;
}
.quiz__opt.is-selected .quiz__letter { background: var(--ink); color: var(--cream); }
.quiz__opt.is-selected > i { color: var(--ink); }

.quiz__submit {
  margin-top: 1.1rem;
  width: 100%;
  justify-content: center;
}
.quiz__submit:disabled,
.quiz__submit[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(0.4);
  transform: none;
  box-shadow: none;
}
.quiz__letter {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: 18px;
  flex-shrink: 0;
  transition: all .25s ease;
}
.quiz__txt { display: flex; flex-direction: column; gap: 4px; }
.quiz__txt strong { font-size: 15.5px; font-weight: 800; color: var(--ink); }
.quiz__txt em { font-family: var(--serif); font-style: italic; font-weight: 300; color: var(--espresso); font-size: 14.5px; }
.quiz__opt > i { color: var(--mocha); font-size: 14px; }

.quiz--done { text-align: center; align-items: center; padding: 1.5rem 0.5rem; }
.quiz__doneIcon {
  font-size: 56px;
  color: #00B67A;
  margin-bottom: 0.5rem;
  animation: pop .5s cubic-bezier(0.22,1.6,0.36,1);
}
@keyframes pop { from { transform: scale(0.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.quiz__loader {
  display: inline-flex; gap: 8px; margin: 1rem 0 1.5rem;
}
.quiz__loader span {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--mocha);
  animation: bounce 1.2s ease-in-out infinite;
}
.quiz__loader span:nth-child(2) { animation-delay: .15s; }
.quiz__loader span:nth-child(3) { animation-delay: .30s; }
@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-10px); opacity: 1; }
}

.legal { display: flex; flex-direction: column; gap: 0.9rem; }
.legal .kicker { align-self: flex-start; }
.legal h3 {
  font-family: var(--sans);
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  font-weight: 800; letter-spacing: -0.02em;
  color: var(--ink);
}
.legal p { font-size: 14.5px; line-height: 1.65; color: var(--espresso); }
.legal p strong { color: var(--ink); font-weight: 700; }

.quiz__submit {
    margin-top: 1.1rem;
    width: 100%;
    justify-content: center;
}
.btn--cta {
    max-width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
}
.btn--lg {
    padding: 17px 28px;
    font-size: 15px;
}
.btn--primary {
    background: var(--ink);
    color: var(--cream);
    box-shadow: 0 8px 24px -8px rgba(26, 20, 16, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6em;
    padding: 14px 22px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.01em;
    border-radius: 999px;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
    cursor: pointer;
    white-space: nowrap;
}
.btn__icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--white);
    padding: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04);
    flex-shrink: 0;
}
.btn--cta .btn__label {
    flex: 1 1 auto;
    font-weight: 700;
    letter-spacing: 0.01em;
    word-break: keep-all;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ===== TABLET DOWN ===== */
@media (max-width: 720px) {
  /* 辅助防穿透滚动锁定 */
  body.modal-open { overflow: hidden; }

  /* 手机端弹窗尺寸缩减皮肤 */
  .modal { padding: 0.8rem; }
  .modal__panel { padding: 2rem 1.1rem 1.2rem; max-height: 92vh; }
  .quiz__opt { grid-template-columns: 36px 1fr 14px; padding: 0.85rem 0.9rem; gap: 0.7rem; }
  .quiz__letter { width: 36px; height: 36px; font-size: 15px; }
  .quiz__txt strong { font-size: 14px; }
  .quiz__txt em { font-size: 13px; }
  .btn--lg.btn--cta {
        padding: 13px 16px;
        font-size: 13px;
    }
  .btn__icon {
        width: 16px;
        height: 16px;
    }
}



/*.quiz__submit:disabled,*/
/*.quiz__submit[disabled] {*/
/*    background: #555555 !important; */
/*    color: #aaaaaa !important;       */
/*    cursor: not-allowed !important; */
/*    box-shadow: none !important;   */
/*    transform: none !important;     */
/*}*/


/*.quiz__submit:not([disabled]) {*/
/*    background: linear-gradient(135deg, #25D366, #128C7E) !important;*/
/*    color: #ffffff !important;*/
/*    cursor: pointer !important;*/
/*}*/
