/* ============================================================
   NEWLAND — CPA funnel, light marketplace design system
   One shared stylesheet for flixbus / ysl / sephora (byte-identical).
   Brand accent comes from --brand-* vars injected per landing.
   ============================================================ */

/* ---------- 1. TOKENS ---------- */
:root {
  /* brand (per-landing override in index.html) */
  --brand-bg: #101326;
  --brand-fg: #ffffff;
  --brand-ring: #101326;

  /* surfaces */
  --bg-canvas: #f6f7f9;      /* page canvas */
  --bg-panel: #ffffff;       /* panels/cards */
  --bg-zonal: #f6f7f9;       /* product zones, inactive fills */
  --bg-zonal-2: #eef0f3;     /* pressed/hover fill */

  /* hairlines */
  --line: #e5e7eb;
  --line-strong: #c9cdd4;

  /* text */
  --text: #17181c;
  --text-2: #5c5f68;
  --text-3: #9296a0;
  --fg-btn-quiet: #31343d;

  /* semantic */
  --danger: #d92d20;
  --ok: #15803d;

  /* geometry */
  --radius: 12px;
  --radius-panel: 16px;
  --wrap: 480px;

  /* elevation: single flat soft shadow */
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 6px 20px rgba(16, 24, 40, .06);
}

/* ---------- 2. BASE ---------- */
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }

html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg-canvas);
  color: var(--text);
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
button { font-family: inherit; }
input, select { font-family: inherit; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }

::selection { background: var(--brand-bg); color: var(--brand-fg); }

/* utility remnants the funnel relies on */
.d-flex { display: flex; }
.hide { display: none !important; }

/* ---------- 3. TOP BAR ---------- */
.main-wrapper { min-height: 100%; }
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid var(--line);
  padding: 8px 16px;
}
.header .logo { max-width: var(--wrap); margin: 0 auto; }
/* Logos differ wildly in aspect (flixbus 3.4:1, sephora 1.8:1, ysl 1.79:1);
   a fixed 34px height renders narrow logos tiny. A taller slot keeps
   narrow wordmarks readable while wide ones stay height-capped. */
.header .logo img {
  height: clamp(40px, 12vw, 56px);
  width: auto;
  max-width: min(70vw, 340px);
  object-fit: contain;
}

/* ---------- 4. LAYOUT COLUMN ---------- */
.main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 16px 16px 40px;
}
.main > section,
.main-wrapper > .main > section { width: 100%; }

/* every funnel screen sits directly on the canvas — no wrapper cards */
#start-content,
.section-questions,
.boxes-game,
.section-additional-prize,
.cart { width: 100%; }

/* ---------- 5. HERO / START ---------- */
/* Offer page, not a survey card: product tile + pitch + CTA on canvas */
#start-content { display: block; }
#start-content .modal-body { padding: 0; }
#start-content .modal-content {
  display: flex; flex-direction: column; gap: 18px;
}

/* product tile */
#start-content .gift {
  background: var(--bg-zonal);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  overflow: hidden;
  aspect-ratio: 1 / 0.82;
  display: flex; align-items: center; justify-content: center;
}
#start-content .gift img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* pitch */
#start-content .text { display: flex; flex-direction: column; gap: 10px; }
#start-content .text h2 {
  font-size: 27px; line-height: 1.14; font-weight: 700;
  letter-spacing: -0.02em; color: var(--text);
}
#start-content .text p { font-size: 15px; line-height: 1.5; color: var(--text-2); }
#start-content .text p + p { color: var(--text-3); font-size: 13px; }

/* ---------- 6. QUIZ ---------- */
.section-questions .wrapper {
  display: flex; flex-direction: column; gap: 20px;
  padding-top: 8px;
  width: 100%;
}
.section-questions .wrapper .questions { display: block; }
.section-questions .wrapper .questions .question { display: flex; flex-direction: column; gap: 18px; }
.question-description { display: flex; flex-direction: column; gap: 6px; }
.question-description span { color: var(--text-3); font-size: 13px; }

/* stepper: slim segmented progress */
.stepper { display: grid; gap: 6px; }
.section-questions .stepper { margin: 0 2px; }
.step {
  height: 4px; border-radius: 2px;
  background: var(--line);
  transition: background-color .25s ease;
}
.step.active { background: var(--brand-bg); }

/* question screen */
.questions { display: block; }
.question { display: flex; flex-direction: column; gap: 18px; }
.question-description h3 {
  font-size: 22px; line-height: 1.2; font-weight: 700;
  letter-spacing: -0.01em; color: var(--text);
  text-wrap: balance;
}

/* answers: full-width selectable rows */
.answers { display: flex; flex-direction: column; gap: 10px; }
.age-wrapper { width: 100%; }
.answers-button {
  display: flex; align-items: center; gap: 12px;
  width: 100%; min-height: 54px;
  padding: 12px 14px;
  background: var(--bg-panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--text); font-size: 17px; font-weight: 600; line-height: 1.25;
  cursor: pointer; text-align: left;
  transition: background-color .15s ease, border-color .15s ease, transform .08s ease;
  position: relative;
  overflow: hidden;
}
/* state mark: brand dot */
.answers-button::before {
  content: ''; flex: 0 0 auto;
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--line-strong);
  transition: border-color .15s ease, background-color .15s ease;
}
.answers-button::after {
  content: '\203A'; /* single right angle quote */
  margin-left: auto; flex: 0 0 auto;
  color: var(--text-3); font-size: 20px; font-weight: 700; line-height: 1;
}
.answers-button:hover,
.answers-button:active {
  background: var(--bg-zonal);
  border-color: var(--brand-ring);
  transform: scale(.99);
}
.answers-button:hover::before { border-color: var(--brand-ring); }

/* ---------- 7. BOX GAME (original mechanics, light skin) ---------- */
/* Game layout must keep the ORIGINAL tile geometry (tiles ~164x160 on
   desktop): the composite (lid z5 / frame z3 / prize z2 / slot z1) only
   reads as a CLOSED box when tiles are wide. The 480px funnel column
   would squeeze the 4-col grid into narrow tall tiles and detach the
   lid from the frame -> break out to viewport width like the original. */
.boxes-game {
  display: none;
  width: min(95vw, 50rem);
  margin-left: 50%;
  transform: translateX(-50%);
  padding: 30px 15px;
}
/* must beat .main-wrapper > .main > section { width:100% } (0,2,1) */
.main-wrapper > .main > section.boxes-game { width: min(95vw, 50rem); margin-left: 50%; }
.boxes-game .boxes {
  padding: 40px 20px 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-auto-rows: 10rem;
  gap: 35px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow);
}
.boxes-game .boxes .box { position: relative; cursor: pointer; }
.boxes-game .boxes .box:hover {
  animation: temblor 0.82s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}
.boxes-game .boxes .box.open { pointer-events: none; }
.boxes-game .boxes .box.open .box-2 { transform: translate(-50%, -90%); }
.boxes-game .boxes .box img {
  width: 95%; position: absolute;
  top: 50%; right: 50%; bottom: 50%; left: 50%;
  transform: translate(-50%, -50%);
  transition: all 1s linear;
}
.boxes-game .boxes .box .box-2 { z-index: 5; top: 10%; left: 50%; }
.boxes-game .boxes .box .box-3 { z-index: 1; top: 16%; width: 85%; }
.boxes-game .boxes .box .box-4 { z-index: 3; }
.boxes-game .boxes .box .prise { z-index: 2; width: 65%; animation: showPrise 2s linear 0.5s forwards; }
@keyframes temblor {
  10% { transform: translate3d(-1px, 0, 0); }
  20% { transform: translate3d(2px, 0, 0); }
  30% { transform: translate3d(-4px, 0, 0); }
  40% { transform: translate3d(4px, 0, 0); }
  50% { transform: translate3d(-4px, 0, 0); }
  60% { transform: translate3d(4px, 0, 0); }
  70% { transform: translate3d(-4px, 0, 0); }
  80% { transform: translate3d(2px, 0, 0); }
  90% { transform: translate3d(-1px, 0, 0); }
}
/* original mechanics verbatim: the card physically RISES out of the box
   (translate -130%/-120%) above the z3 frame — an opacity-only fade
   leaves it hidden behind the frame */
@keyframes showPrise {
  75% { transform: translate(-50%, -130%); }
  to { transform: translate(-50%, -120%); }
}
@media (max-width: 768px) {
  .boxes-game .boxes { padding-top: 4rem; grid-template-columns: 1fr 1fr 1fr; grid-auto-rows: 23vw; gap: 35px; }
  .boxes-game .boxes .box { flex: 0 0 32%; }
  .boxes-game .boxes .box img { width: 100%; }
  .boxes-game .boxes .box:nth-child(10),
  .boxes-game .boxes .box:nth-child(11),
  .boxes-game .boxes .box:nth-child(12) { display: none; }
  .boxes-game .boxes .box.open .box-2 { transform: translate(-50%, -95%); }
  .boxes-game .boxes .box .box-3 { z-index: 1; top: 16%; width: 85%; }
}

/* ---------- 8. OVERLAY MODALS ---------- */
/* centering via absolute (jQuery fadeIn ends with inline display:block) */
.modal-wrapper {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0;
  display: none;
  background: rgba(12, 14, 26, .45);
  z-index: 999;
  overflow-y: auto;
}
.modal-wrapper .modal-body {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 32px);
  max-width: 430px;
}
.modal-wrapper .modal-body .modal-content {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  text-align: center;
  padding: 28px 22px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow);
}
.modal-wrapper .modal-body .modal-content .gift img { width: 100%; max-width: 200px; }
.modal-wrapper .modal-body .modal-content > p { color: var(--text-2); font-size: 14px; line-height: 1.5; }
.circle-loader { display: inline-block; width: 96px; height: 96px; }
.circle-loader img { width: 100%; }

/* win/tryagain/congrats headings */
.modal-content h6 {
  font-size: 21px; line-height: 1.2; font-weight: 700;
  letter-spacing: -0.01em; color: var(--text); text-transform: none;
}

/* ---------- 9. CTA SYSTEM ---------- */
/* one system: brand fill for primary CTAs, quiet outline for secondary */
.modal-button,
.to-cart,
.stage_button {
  display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 54px;
  padding: 14px 18px;
  background: var(--brand-bg);
  color: var(--brand-fg);
  border: 1px solid var(--brand-bg);
  border-radius: var(--radius);
  font-size: 17px; font-weight: 700; line-height: 1.1;
  text-align: center; cursor: pointer;
  text-transform: uppercase; letter-spacing: .02em;
  transition: filter .15s ease, transform .08s ease;
}
.modal-button:hover,
.to-cart:hover,
.stage_button:hover { filter: brightness(.94); }
.modal-button:active,
.to-cart:active,
.stage_button:active { transform: scale(.985); }
.modal-button.main-btn,
.to-cart.main-btn,
.stage_button.main-btn { width: 100%; }

/* hidden native submit relay */
#sendForm { display: none !important; }

/* ---------- 10. ADDITIONAL PRIZE PITCH ---------- */
.section-additional-prize { display: block; }
.section-additional-prize .wrapper {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  padding-top: 8px; text-align: center;
}
.section-additional-prize .wrapper .description { width: 100%; }
.section-additional-prize .wrapper .description .photo {
  background: var(--bg-zonal);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  overflow: hidden;
  aspect-ratio: 1 / 0.82;
}
.section-additional-prize .wrapper .description .photo img { width: 100%; height: 100%; object-fit: cover; }
.section-additional-prize .wrapper .title,
.section-additional-prize .wrapper .joy {
  font-size: 21px; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; color: var(--text);
}
.section-additional-prize .wrapper > p,
.section-additional-prize .wrapper .text {
  color: var(--text-2); font-size: 14px; line-height: 1.5;
}
.section-additional-prize h3 { font-size: 20px; line-height: 1.25; font-weight: 700; color: var(--text); }
.section-additional-prize .wrapper .to-cart { max-width: 100%; }

/* ---------- 11. ORDER FLOW SHELL ---------- */
.cart { display: none; }
.cart .container { display: flex; flex-direction: column; gap: 20px; }

/* product strip on every order screen */
.cart .product-info {
  display: flex; gap: 14px; align-items: stretch;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  overflow: hidden;
}
.cart .product-info .photo {
  flex: 0 0 34%; max-width: 34%;
  background: var(--bg-zonal);
}
.cart .product-info .photo img { width: 100%; height: 100%; object-fit: cover; }
.cart .product-info .description { flex: 1; padding: 14px 16px; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.cart .product-info .description .name h5 { font-size: 15px; line-height: 1.3; font-weight: 600; color: var(--text); }
.cart .product-info .description .name h4 { font-size: 18px; line-height: 1.2; font-weight: 700; color: var(--danger); }

/* stage titles */
.cart .stage-name,
.cart .form > h3,
.cart .delivery > h6,
.cart .summary > h6 {
  font-size: 19px; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; color: var(--text);
}

/* ---------- 12. INPUTS ---------- */
.input { position: relative; width: 100%; }
/* general chip inputs — intl-tel-input widget excluded (it renders its own shell) */
.input input:not(.iti__tel-input) {
  width: 100%; min-height: 52px;
  padding: 14px 16px;
  background: var(--bg-panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 16px; font-weight: 400; line-height: 1.25;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input input:not(.iti__tel-input)::placeholder { color: var(--text-3); }
.input input:not(.iti__tel-input):focus {
  border-color: var(--brand-ring);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-ring) 22%, transparent);
}
.input input.invalid { border-color: var(--danger) !important; }

/* client form stack layout (order + payment steps share .stage-wrapper) */
.cart .form .stage .stage-wrapper,
#payment .stage .stage-wrapper { display: flex; flex-direction: column; gap: 10px; }
.cart .form .stage { display: block; }

/* read-only country field: zonal, locked look */
.input input[readonly] {
  background: var(--bg-zonal);
  color: var(--fg-btn-quiet);
  cursor: default;
}

/* phone + iti */
/* live validation indicator: brand tick when the number is complete,
   red cross while malformed (state set by the inline NL_PHONE code) */
.phone-ok {
  position: absolute; top: 50%; right: 16px;
  transform: translateY(-50%);
  width: 22px; height: 22px; border-radius: 50%;
  display: none; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; line-height: 1;
  pointer-events: none;
}
.phone-ok.phone-ok-active { display: flex; background: var(--ok); color: #fff; }
.phone-ok.phone-ok-active::after { content: '✓'; }
.phone-ok.phone-ok-bad { display: flex; background: var(--danger); color: #fff; }
.phone-ok.phone-ok-bad::after { content: '✕'; }
/* keep typed digits clear of the indicator */
.input input.iti__tel-input { padding-right: 48px; }
/* phone validation messages (engine hooks) */
#valid-msg { color: var(--ok); font-size: 12px; }
#error-msg { color: var(--danger); font-size: 12px; }

/* ---------- 13. ADDRESS AUTOCOMPLETE (js/address.js builds this DOM) ---------- */
.addr-dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  z-index: 30;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.addr-item { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; cursor: pointer; }
.addr-item:hover { background: var(--bg-zonal); }
.addr-item__main { font-size: 14px; color: var(--text); line-height: 1.3; }
.addr-item__sec { font-size: 12px; color: var(--text-3); line-height: 1.3; }

/* ---------- 14. DELIVERY OPTIONS ---------- */
.cart .delivery { display: none; flex-direction: column; gap: 18px; }
.cart .delivery .posts { display: flex; flex-direction: column; gap: 10px; }
.cart .delivery .posts .radio {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.cart .delivery .posts .radio:hover { border-color: var(--line-strong); background: var(--bg-zonal); }

/* custom radio circle */
.cart .delivery .posts .radio .radio-wrapper {
  position: relative; flex: 0 0 auto;
  width: 22px; height: 22px;
}
.cart .delivery .posts .radio .radio-wrapper input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.cart .delivery .posts .radio .radio-wrapper::before {
  content: ''; position: absolute; inset: 0;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  transition: border-color .15s ease;
}
.cart .delivery .posts .radio .radio-wrapper::after {
  content: ''; position: absolute; inset: 5px;
  border-radius: 50%;
  background: var(--brand-bg);
  transform: scale(0);
  transition: transform .15s ease;
}
.cart .delivery .posts .radio:has(input:checked) { border-color: var(--brand-ring); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-ring) 18%, transparent); }
.cart .delivery .posts .radio:has(input:checked) .radio-wrapper::before { border-color: var(--brand-ring); }
.cart .delivery .posts .radio:has(input:checked) .radio-wrapper::after { transform: scale(1); }

/* legacy .checked img inside wrapper — keep invisible, system renders the state */
.cart .delivery .posts .radio .radio-wrapper .checked { display: none; }

/* option content */
.cart .delivery .posts .radio label { display: flex; align-items: center; gap: 12px; flex: 1; cursor: pointer; }
.cart .delivery .posts .radio label > img { width: 44px; height: 44px; object-fit: contain; }
.cart .delivery .posts .radio label .description { display: flex; flex-direction: column; gap: 3px; }
.cart .delivery .posts .radio label .description p { font-size: 14px; line-height: 1.3; color: var(--text-2); }
.cart .delivery .posts .radio label .description p:first-child { font-size: 15px; font-weight: 600; color: var(--text); }

/* ---------- 15. ORDER SUMMARY ---------- */
.cart .summary { display: none; flex-direction: column; gap: 18px; }
.cart .summary .summary__cart { font-size: 19px; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; color: var(--text); }
.cart .summary .order-info {
  display: flex; flex-direction: column; gap: 0;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  overflow: hidden;
}
.cart .summary .order-info .info-block {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 56px; padding: 10px 16px;
  border-bottom: 1px solid var(--line);
}
.cart .summary .order-info .info-block .name { font-size: 14px; color: var(--text-2); }
.cart .summary .order-info .info-block .price {
  font-size: 15px; font-weight: 600; color: var(--text);
  font-variant-numeric: tabular-nums;
}
.cart .summary .order-info hr { display: none; }
.cart .summary .order-info .total-info { background: var(--bg-zonal); }
.cart .summary .order-info .total-info .name { color: var(--text); font-weight: 700; font-size: 15px; }
.cart .summary .order-info .total-info .price { font-size: 22px; font-weight: 700; }
.cart .summary .order-info .final-btn { margin: 14px 16px 16px; width: calc(100% - 32px); }

/* ---------- 16. PAYMENT STEP ---------- */
#payment { display: none; }
.payment__title { text-align: center; }
#payment .payment__title { font-size: 19px; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; color: var(--text); }
#payment .stage-wrapper > * + * { margin-top: 12px; }
#payment .pay-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#payment .pay-row .input { min-width: 0; }
#paymentForm input:disabled { opacity: .65; background: var(--bg-zonal); }
#paymentForm input.invalid { border-color: var(--danger) !important; }
#payButton[disabled] { opacity: .6; pointer-events: none; }
.pay-secure { font-size: 12px; color: var(--text-3); text-align: center; }

/* ---------- 17. PAYMENT MODAL (#modal-pay) ---------- */
.pay-spinner {
  width: 42px; height: 42px; margin: 0 auto 10px;
  border: 4px solid var(--bg-zonal-2);
  border-top-color: var(--brand-bg);
  border-radius: 50%;
  animation: payspin .8s linear infinite;
}
@keyframes payspin { to { transform: rotate(360deg); } }
.pay-icon { font-size: 44px; line-height: 1; }
.pay-promo { display: flex; flex-direction: column; gap: 4px; align-items: center; }
.pay-promo span { font-size: 12px; color: var(--text-3); }
.pay-promo b {
  font-family: var(--bs-font-monospace, ui-monospace);
  font-size: 20px; color: var(--ok); cursor: pointer; user-select: all;
}
.addr-item.active { background: var(--bg-zonal); }
.addr-item + .addr-item { border-top: 1px solid var(--line); }
#modal-1 p, #modal-2 p, #modal-3 p { font-size: 14px; line-height: 1.5; color: var(--text-2); }

/* ---------- 18. INTL-TEL-INPUT SKIN ---------- */
/* the iti widget renders its own DOM around #phone; skin it dark-on-light */
.iti { width: 100%; }
.iti .iti__country-container { z-index: 25; }
.iti .iti__tel-input { background: var(--bg-panel); }
.iti--container { z-index: 120; }
.iti__dropdown-content { border-radius: var(--radius); overflow: hidden; }
.iti__search-input { border-color: var(--line-strong) !important; }
.iti__country-list {
  border: 1px solid var(--line) !important;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-top: 6px;
}
.iti__country-list .iti__country { color: var(--text); font-size: 13px; }
.iti__country-list .iti__highlight { background: var(--bg-zonal) !important; }
.iti--invalid-key { background: var(--bg-zonal-2); }

/* ---------- 19. STATES / MISC ---------- */
/* bootstrap spinner used by processing screens */
.spinner-border { color: var(--brand-bg) !important; }

/* anything JS hides */
.pointer-none { pointer-events: none; }

/* temblor keeps original shake for win prize image */
.temblor { animation: temblor .82s cubic-bezier(.36, .07, .19, .97) both; }

/* ---------- 20. RESPONSIVE ---------- */
@media (max-width: 480px) {
  #start-content .text h2 { font-size: 24px; }
  .question-description h3 { font-size: 20px; }
  .modal-content h6 { font-size: 19px; }
  .cart .product-info .description .name h5 { font-size: 14px; }
  .answers-button { font-size: 16px; min-height: 50px; }
  .modal-button,
  .to-cart,
  .stage_button { font-size: 16px; min-height: 52px; }
}

/* ---------- 21. FALLBACK ANCHORS (contract parity) ---------- */
/* display:none carried from the engine: sections start hidden and are faded in by JS */
.section-questions { display: none; }
#sectionQuestions { display: none; }
.section-questions .wrapper .questions .question { display: none; }
#question-1 { display: block; }
.processing-answers { display: none; }
.boxes-game { display: none; }
.section-additional-prize { display: none; }
#sectionAdditionalPrize { display: none; }
.cart { display: none; }
.cart .delivery { display: none; }
.cart .summary { display: none; }
.cart .summary { flex-direction: column; }
.checkmark { display: none; position: relative; }
[hidden] { display: none !important; }
button:not(:disabled) { cursor: pointer; }

/* bootstrap spinner-border vendored (processing screen fallback if CDN fails) */
.spinner-border {
  display: inline-block;
  width: 2rem; height: 2rem;
  vertical-align: -0.125em;
  border: 0.25em solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spinner-border-Bv .75s linear infinite;
  color: var(--brand-bg);
}
@keyframes spinner-border-Bv {
  to { transform: rotate(360deg) }
}

/* ---------- 22. BUTTON SYSTEM (single source of truth) ---------- */
/* All funnel CTAs share one brand-fill system. .secondary-btn never renders
   as its own surface: on answer rows the row system above already paints it,
   so this block only equalizes remaining stragglers. */
.main-btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 54px;
  padding: 14px 18px;
  background: var(--brand-bg);
  color: var(--brand-fg);
  border: 1px solid var(--brand-bg);
  border-radius: var(--radius);
  font-size: 17px; font-weight: 700; line-height: 1.1;
  text-align: center; cursor: pointer;
  text-transform: uppercase; letter-spacing: .02em;
  transition: filter .15s ease, transform .08s ease;
}
.main-btn:hover { filter: brightness(.94); }
.main-btn:active { transform: scale(.985); }

/* ---------- 23. FOOTER & LEGAL LAYER ---------- */
/* Makes the funnel look like an operated store: payment badges,
   legal links, brand disclaimer. Text comes from translate.json
   (footer.* keys), identical markup across landings. */
.nl-footer {
  margin-top: 48px;
  padding: 24px 16px 32px;
  border-top: 1px solid var(--line);
  background: var(--bg-panel);
  color: var(--text-3);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}
.nl-footer .nl-pay-badges {
  display: flex; justify-content: center; gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.nl-footer .nl-pay-badges span {
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--bg-zonal);
  color: var(--fg-btn-quiet);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.nl-footer .nl-links {
  display: flex; justify-content: center; gap: 6px 18px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.nl-footer .nl-links button {
  background: none; border: none; padding: 0;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.nl-footer .nl-links button:hover { color: var(--text); }
.nl-footer .nl-disclaimer {
  max-width: 560px; margin: 0 auto 8px;
  color: var(--text-3); font-size: 11px;
}
.nl-footer .nl-copy { color: var(--text-3); font-size: 11px; }

/* legal overlay: same centering model as funnel modals (absolute +
   translate), because jQuery fadeIn ends with display:block */
.nl-legal-overlay {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0;
  display: none;
  background: rgba(12, 14, 26, .45);
  z-index: 1000;
  overflow-y: auto;
}
.nl-legal-overlay .nl-legal {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 32px);
  max-width: 480px;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow);
  padding: 24px 20px;
}
.nl-legal-overlay .nl-legal h6 {
  font-size: 18px; line-height: 1.25; font-weight: 700;
  color: var(--text);
  margin: 0 0 14px;
  padding-right: 36px;
}
.nl-legal-overlay .nl-legal .nl-legal-text {
  color: var(--text-2); font-size: 12px; line-height: 1.7;
  white-space: pre-line;
}
.nl-legal-overlay .nl-legal .nl-legal-close {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--bg-panel);
  color: var(--fg-btn-quiet);
  font-size: 16px; font-weight: 700; line-height: 1;
  cursor: pointer;
}
.nl-legal-overlay .nl-legal .nl-legal-close:hover { background: var(--bg-zonal); color: var(--text); }

/* ================= end ================= */
