/* Home first screen (templates/quiz.html): one consistent look with the
   checkout and /ishyura/ pages. Loaded after style.css and the page styles. */

/* ---------- Headline, subtext, promo ---------- */
body .leftAuth .intro-heading,
body .leftAuthFalse .intro-heading {
  width: auto;
  max-width: 22ch;
  margin: 0 auto 10px;
  padding: 0;
  background: none !important;
  border-radius: 0;
  color: var(--ck-ink, #0f1320);
  font-family: var(--ck-font, system-ui, sans-serif);
  font-size: clamp(1.55rem, 6.6vw, 2.2rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.02em;
  text-align: center;
}
body .leftAuth .intro-subtext,
body .leftAuthFalse .intro-subtext {
  margin: 0 auto;
  max-width: 34ch;
  color: var(--ck-muted, #667085);
  font-family: var(--ck-font, system-ui, sans-serif);
  font-size: 1.02rem;
  font-weight: 400;
  line-height: 1.45;
  text-align: center;
}
body .leftAuth .intro-promo,
body .leftAuthFalse .intro-promo {
  display: inline-block;
  max-width: 34ch;
  margin: 14px auto 0;
  padding: 8px 14px;
  border-radius: 14px;
  background: var(--ck-wine-wash, #fbf3f7);
  border: 1px solid var(--ck-wine-line, #ecd3e0);
  color: var(--ck-wine, #702852);
  font-family: var(--ck-font, system-ui, sans-serif);
  font-size: .86rem;
  line-height: 1.35;
}
body .leftAuth .intro-promo b,
body .leftAuthFalse .intro-promo b { font-weight: 700; }

/* ---------- One button style ---------- */
body .leftAuth .start-btn,
body #payment-trigger,
body #payment-trigger2,
body .condition-options .start,
body .condition-options .back {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  width: 100%;
  max-width: 420px;
  min-height: 56px;
  margin: 18px auto 0;
  padding: 12px 20px;
  border: 0;
  border-radius: 14px;
  background: var(--ck-wine, #702852);
  color: #fff;
  font-family: var(--ck-font, system-ui, sans-serif);
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
  text-align: center;
  white-space: normal;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(112, 40, 82, .22);
  transition: background .15s, transform .1s;
}
body .leftAuth .start-btn::after { content: "→"; font-size: 1.15em; }
body .leftAuth .start-btn:hover,
body #payment-trigger:hover,
body #payment-trigger2:hover,
body .condition-options .start:hover {
  background: var(--ck-wine-deep, #4c1838);
  color: #fff;
  border: 0;
}
body .leftAuth .start-btn:active,
body .condition-options .start:active,
body .condition-options .back:active { transform: scale(.98); }

/* Secondary actions: same shape, outlined */
body #payment-trigger,
body .condition-options .back {
  background: #fff;
  color: var(--ck-wine, #702852);
  border: 1.5px solid var(--ck-wine-line, #ecd3e0);
  box-shadow: none;
}
body #payment-trigger:hover,
body .condition-options .back:hover { background: var(--ck-wine-wash, #fbf3f7); color: var(--ck-wine, #702852); }
body .startButtons { display: grid; gap: 10px; max-width: 420px; margin: 0 auto; }
body .startButtons #payment-trigger,
body .startButtons #payment-trigger2 { margin: 0; }
body .startButtons #payment-trigger2 { order: -1; }

/* Instructions screen: primary first, both full width */
body .condition-options {
  display: grid;
  gap: 10px;
  max-width: 420px;
  margin: 18px auto 0;
}
body .condition-options .start { order: -1; margin: 0; }
body .condition-options .back { margin: 0; text-transform: capitalize; }
body .conditions .intro-heading2 {
  width: auto;
  font-family: var(--ck-font, system-ui, sans-serif);
  font-weight: 800;
  color: var(--ck-ink, #0f1320);
}

/* ---------- Phones: use the full width for text and buttons ---------- */
@media (max-width: 767px) {
  body .intro-hero .left {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
  }
}

/* ---------- One input style (same as the checkout number field) ---------- */
body #useCodeInput,
body #numberInput,
body #payment-input-noreg,
body #code-input-fail,
body #code-input-success {
  display: block;
  box-sizing: border-box;
  width: 100% !important;
  max-width: 420px;
  height: auto !important;
  min-height: 56px;
  margin: 18px auto 0 !important;
  padding: 14px 16px !important;
  border: 1.5px solid var(--ck-line, #e6e8ee) !important;
  border-radius: 14px !important;
  background: #fff;
  box-shadow: none !important;
  color: var(--ck-ink, #0f1320);
  font-family: var(--ck-font, system-ui, sans-serif);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .04em;
  text-align: center;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
body #useCodeInput::placeholder,
body #numberInput::placeholder,
body #payment-input-noreg::placeholder,
body #code-input-fail::placeholder,
body #code-input-success::placeholder { color: #a0a7b4; font-weight: 600; letter-spacing: .01em; }
body #useCodeInput:focus,
body #numberInput:focus,
body #payment-input-noreg:focus,
body #code-input-fail:focus,
body #code-input-success:focus {
  border-color: var(--ck-wine, #702852) !important;
  box-shadow: 0 0 0 3px rgba(112, 40, 82, .12) !important;
}
body #numberInput.hidden { display: none !important; }

/* Input followed by its buttons: same 10px rhythm everywhere */
body #useCodeInput + .startButtons { margin-top: 10px; }

/* Buttons that sit next to those inputs: same shape as the home buttons */
body #payment-button,
body #access-code-play,
body #access-code-button-pay,
body #access-code-button-fail {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100% !important;
  max-width: 420px;
  min-height: 56px;
  height: auto !important;
  margin: 10px auto 0 !important;
  padding: 12px 20px !important;
  border: 0 !important;
  border-radius: 14px !important;
  background: var(--ck-wine, #702852) !important;
  color: #fff !important;
  font-family: var(--ck-font, system-ui, sans-serif);
  font-size: 1.08rem !important;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
}
body #payment-button:hover,
body #access-code-play:hover,
body #access-code-button-pay:hover,
body #access-code-button-fail:hover { background: var(--ck-wine-deep, #4c1838) !important; }

/* Second line under a headline ("Ongera ugerageze…"): a subtitle, not a second headline */
body .intro-hero .left .intro-text {
  max-width: 30ch;
  margin: 4px auto 10px;
  color: var(--ck-wine, #702852);
  font-family: var(--ck-font, system-ui, sans-serif);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-transform: none;
}

/* "Gura code" pop-up: same side margins and card look as the rest */
@media (max-width: 767px) {
  body .paymentFlow { padding-left: 16px; padding-right: 16px; box-sizing: border-box; }
}
body .paymentFlow .pricingBeforePay {
  box-sizing: border-box;
  width: 100%;
  max-width: 420px;
  margin: 16px auto 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--ck-wine-wash, #fbf3f7);
  border: 1px solid var(--ck-wine-line, #ecd3e0);
}
body .paymentFlow #payment-label {
  display: block;
  width: 100%;
  max-width: 420px;
  margin: 18px auto 0;
  color: var(--ck-ink, #0f1320);
  font-family: var(--ck-font, system-ui, sans-serif);
  font-weight: 700;
}
body .paymentFlow #payment-label.hidden { display: none; }
body .paymentFlow #payment-button + p {
  max-width: 420px;
  margin: 10px auto 0;
  color: var(--ck-muted, #667085);
  font-size: .85rem;
}
