/*
 * TutorPlace Nutrition Quiz — editorial wellness redesign
 * Visual-only stylesheet. Original copy, markup, flow and scripts are unchanged.
 */
:root {
  --bg-primary: #f8f5ee;
  --bg-secondary: #f1e9df;
  --accent: #c65f46;
  --accent-hover: #aa4d38;
  --text-primary: #292523;
  --text-secondary: #77716e;
  --success: #62826c;
  --white: #fffdfa;
  --shadow: 0 12px 36px rgba(63, 44, 32, .07);
  --shadow-lg: 0 24px 70px rgba(63, 44, 32, .12);
  --radius: 18px;
  --radius-lg: 26px;
  --line: #e8ded4;
  --sage: #dee6d9;
  --ink: #292523;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  color: var(--ink);
  background:
    radial-gradient(ellipse at 0% 5%, rgba(222, 230, 217, .9), transparent 33%),
    radial-gradient(ellipse at 98% 96%, rgba(246, 221, 205, .66), transparent 33%),
    #f8f5ee;
  font-family: Manrope, Arial, sans-serif;
  letter-spacing: -.012em;
  min-width: 320px;
}
main { color: var(--text-primary); position: relative; isolation: isolate; }
main::before, main::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(117, 115, 93, .12);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}
main::before { width: 450px; height: 450px; top: -205px; left: -205px; }
main::after { width: 290px; height: 290px; bottom: -135px; right: -125px; }
#app .header { background: transparent; }
.quiz-container {
  display: block;
  width: min(100%, 1160px);
  max-width: 1160px;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 104px 24px 48px;
  position: relative;
}
.screen { display: none; width: 100%; }
.screen.active {
  display: flex;
  flex-direction: column;
  flex: none;
  max-width: 720px;
  min-height: 590px;
  margin: 0 auto;
  padding: 55px 62px 60px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 32px;
  box-shadow: var(--shadow-lg), 0 2px 5px rgba(52, 42, 32, .035);
  overflow: hidden;
  position: relative;
}
.screen.active::before {
  content: "";
  height: 5px;
  width: 86px;
  background: var(--accent);
  border-radius: 0 0 8px 8px;
  position: absolute;
  top: 0;
  left: 62px;
}
main h1, main h2, main h3, main h4, main h5, main h6 { color: var(--ink); }
main h1, main h2, main h3, main h4, main .question {
  font-family: Manrope, Arial, sans-serif;
  letter-spacing: -.045em;
}
main h2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.22; }
main h3 { line-height: 1.26; }
main p { line-height: 1.58; }

/* First screen — split editorial layout. Original text and photo untouched. */
#screen-1.active {
  display: grid;
  max-width: 1100px;
  min-height: 665px;
  grid-template-columns: minmax(0, 45%) minmax(0, 55%);
  grid-template-rows: auto auto auto auto auto;
  gap: 0;
  align-content: center;
  align-items: start;
  padding: 40px;
  column-gap: 55px;
}
#screen-1.active::before { left: auto; right: 64px; width: 66px; }
#screen-1 .hero-section { display: contents; }
#screen-1 .hero-image {
  grid-column: 1;
  grid-row: 1 / 6;
  align-self: stretch;
  width: 100%;
  max-width: unset;
  height: 576px;
  min-height: 100%;
  margin: 0;
  border-radius: 24px;
  background: #e3e7d9;
  box-shadow: inset 0 0 0 1px rgba(67, 48, 35, .08);
  position: relative;
}
#screen-1 .hero-image picture { display: block; width: 100%; height: 100%; }
#screen-1 .hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
#screen-1 h1 {
  font-size: clamp(36px, 3.6vw, 51px);
  font-weight: 700;
  line-height: 1.13;
  color: var(--ink);
  text-align: left;
  letter-spacing: -.059em;
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  padding-top: 28px;
  margin-bottom: 16px;
}
#screen-1 h1 .accent { color: var(--accent); }
#screen-1 .subtitle {
  grid-column: 2;
  grid-row: 2;
  text-align: left;
  font-size: 17px;
  line-height: 1.65;
  margin-bottom: 23px;
  max-width: 400px;
}
#screen-1 .social-proof {
  grid-column: 2;
  grid-row: 3;
  display: flex;
  justify-content: flex-start;
  padding: 16px 0 19px;
  margin: 0 0 21px;
  border-bottom: 1px solid var(--line);
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  gap: 14px;
}
#screen-1 .social-text { font-size: 13px; color: #676260; }
#screen-1 .social-text strong { color: var(--ink); }
#screen-1 .question {
  grid-column: 2;
  grid-row: 4;
  text-align: left;
  font-size: 20px;
  font-weight: 750;
  margin-bottom: 13px;
  letter-spacing: -.035em;
}
#screen-1 .options {
  grid-column: 2;
  grid-row: 5;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 0;
}
#screen-1 .option {
  justify-content: center;
  min-height: 62px;
  text-align: center;
}

/* Step indicator and question typography */
.progress-text {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  margin-bottom: 10px;
}
.progress-bar {
  height: 6px;
  border-radius: 12px;
  background: #f0e8df;
  margin: 4px 0 42px;
}
.progress-fill {
  background: linear-gradient(90deg, #cf745d, #bb543e);
  border-radius: 12px;
  box-shadow: none;
}
.question {
  color: var(--ink);
  font-size: clamp(25px, 2.6vw, 32px);
  line-height: 1.25;
  font-weight: 800;
  margin-bottom: 27px;
  text-align: left;
}
.options, .checkbox-options { gap: 12px; margin-bottom: 24px; }
.option, .checkbox-option, .option-card {
  background: #fbf8f3;
  border: 1.5px solid #ebe2da;
  border-radius: 17px;
  box-shadow: none;
  color: var(--ink);
  transition: background .22s ease, border .22s ease, box-shadow .22s ease, transform .22s ease;
}
.option { min-height: 64px; padding: 18px 22px; }
.option-simple { justify-content: flex-start; text-align: left; padding: 18px 22px; }
.option-text { color: var(--ink); font-size: 15px; font-weight: 700; line-height: 1.45; }
.option:hover, .checkbox-option:hover, .option-card:hover {
  background: #fff8f4;
  border-color: #d99480;
  box-shadow: 0 7px 24px rgba(149, 86, 66, .08);
  transform: translateY(-1px);
}
.option.selected, .checkbox-option.selected, .option-card.selected {
  background: #fcf0eb;
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.option:focus-visible, .checkbox-option:focus-visible, .option-card:focus-visible,
.btn:focus-visible, .faq-q:focus-visible { outline: 3px solid rgba(198, 95, 70, .33); outline-offset: 3px; }
.options-grid, .checkbox-options-grid { gap: 14px; }
.option-card { padding: 18px 12px; }
.option-thumb { background: #f2e9df; border-radius: 14px; }
.checkbox-option { min-height: 61px; padding: 15px 18px; }
.checkbox-box { border-color: #c9bbb0; }
.checkbox-option.selected .checkbox-box { background: var(--accent); border-color: var(--accent); }
.btn {
  min-height: 62px;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 18px;
  color: #fff;
  box-shadow: 0 9px 22px rgba(179, 76, 52, .18);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.01em;
  padding: 17px 24px;
}
.btn:hover { background: var(--accent-hover); box-shadow: 0 13px 30px rgba(179, 76, 52, .2); transform: translateY(-1px); }
.btn:disabled { background: #c7bdb6; border-color: #c7bdb6; box-shadow: none; }

/* Content / interlude cards */
.interlude { padding: 18px 0 10px; }
.interlude h2 { font-family: Manrope, Arial, sans-serif; font-weight: 800; font-size: 30px; line-height: 1.2; letter-spacing: -.04em; margin: 18px 0; }
.interlude p { color: var(--text-secondary); font-size: 16px; line-height: 1.7; }
.interlude-image { background: var(--bg-secondary); border-radius: 22px; overflow: hidden; }
.interlude .btn { margin-top: 28px; }
.info-card, .bmi-result, .result-chart, .profile-card, .review-card, .loader-step,
.faq-item, .tracker-card, .ba-card {
  border: 1px solid var(--line);
  background: #fbf8f3;
  box-shadow: none;
}
.info-card { border-radius: 22px; padding: 23px; }
.info-card h3 { color: var(--accent); font-family: Manrope, Arial, sans-serif; }
.info-icon { background: #f2e2d8; color: var(--accent); }
.input-group { margin-bottom: 28px; }
.input-field {
  min-height: 64px;
  border: 1.5px solid #d9c9bd;
  border-radius: 15px;
  background: #fbf8f3;
  font-size: 20px;
  color: var(--ink);
  padding: 17px 18px;
}
.input-field:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(198,95,70,.1); }
.input-hint { color: var(--text-secondary); }
.bmi-scale, .chart-visual { border-radius: 10px; }
.bmi-result { padding: 22px; border-radius: 22px; }

/* Result and program preview */
.result-section { padding: 8px 0 18px; }
.result-header h2, .ba-headline h2 { font-family: Manrope, Arial, sans-serif; font-size: clamp(25px, 3vw, 34px); font-weight: 800; letter-spacing: -.045em; }
.result-chart, .profile-card { border-radius: 24px; padding: 24px; }
.ba-card { margin-left: 0; margin-right: 0; border-radius: 22px; }
.profile-card h3, .tracker-header h3, .faq-title,
.program-features h3, .sp-title, .multi-loader-title {
  font-family: Manrope, Arial, sans-serif;
  font-weight: 800;
  letter-spacing: -.035em;
}
.profile-item { border-color: var(--line); }
.program-features {
  background: #31483a;
  border: 1px solid #31483a;
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(37, 66, 45, .13);
}
.program-features h3, .program-features p { color: #fffaf3; }
.tracker-section { background: #f1eee7; border: 1px solid var(--line); border-radius: 23px; }
.tracker-card { border-radius: 17px; }
.tracker-card-img { background: #e1e5da; }
.tracker-foot { color: var(--accent); }
.faq-item { border-radius: 16px; }
.faq-q { color: var(--ink); }
.faq-arrow { color: var(--accent); }
.review-card { border-radius: 20px; }
.review-verified, .review-result-dot { background: var(--success); }
.review-result, .sp-title-accent, .sp-stat-num { color: var(--accent); }
.sp-eyebrow { color: var(--accent); background: #f7e9df; border-color: #f1d9cd; }
.sp-eyebrow-dot { background: var(--accent); }
.sp-bottom { background: #f4ede6; border: 1px solid var(--line); }
.review-match { color: #52715a; background: #e8eee6; }
.loader-step { border-radius: 14px; }
.loader-step-bar { background: #eae0d7; }
.loader-step-bar-fill { background: var(--accent); }
.loader-step-check, .loader-step-percent { color: var(--accent); }

/* Make remaining legacy green backgrounds follow the new palette. */
main .btn-main { background: var(--accent); color: #fff; }
main .btn-main:hover { background: var(--accent-hover); }
main .btn-main p { color: #fff; }
.timer.timer-tp span.timer-tp__hours,
.timer.timer-tp span.timer-tp__minutes,
.timer.timer-tp span.timer-tp__seconds { color: var(--accent); border-color: var(--line); background: #fff9f3; }
.timer.timer-tp .timer-tp__wrapper span { color: var(--accent); }

@media (max-width: 860px) {
  .quiz-container { width: 100%; padding: 90px 20px 40px; }
  #screen-1.active { gap: 0 30px; padding: 28px; min-height: 580px; }
  #screen-1 .hero-image { height: 520px; }
  #screen-1 h1 { font-size: clamp(29px, 4.2vw, 42px); }
  #screen-1 .subtitle { font-size: 15px; }
  #screen-1 .social-proof { gap: 6px; }
}
@media (max-width: 640px) {
  body { background: #f8f5ee; }
  main::before, main::after { display: none; }
  .quiz-container { padding: 78px 12px 25px; min-height: 100dvh; }
  .screen.active {
    width: 100%;
    max-width: none;
    min-height: calc(100dvh - 103px);
    border-radius: 24px;
    padding: 33px 21px 45px;
    border-color: #eee6dd;
    box-shadow: 0 6px 30px rgba(64, 51, 42, .055);
  }
  .screen.active::before { left: 22px; width: 55px; height: 4px; }
  #screen-1.active {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: calc(100dvh - 103px);
    padding: 14px 17px 34px;
  }
  #screen-1.active::before { display: none; }
  #screen-1 .hero-section { display: flex; flex-direction: column; width: 100%; padding: 0; text-align: center; }
  #screen-1 .hero-image { width: 100%; max-width: unset; height: 228px; min-height: 0; border-radius: 16px; margin: 0 0 25px; }
  #screen-1 h1 { width: 100%; text-align: left; padding: 0 4px; font-size: clamp(28px, 7.7vw, 37px); line-height: 1.12; margin-bottom: 13px; }
  #screen-1 .subtitle { text-align: left; padding: 0 4px; font-size: 14px; line-height: 1.62; margin-bottom: 15px; }
  #screen-1 .social-proof { width: 100%; display: flex; align-items: center; justify-content: flex-start; margin: 0 0 23px; padding: 14px 4px; text-align: left; }
  #screen-1 .social-text { font-size: 12px; }
  #screen-1 .question { text-align: left; font-size: 19px; margin: 0 4px 13px; }
  #screen-1 .options { display: grid; width: 100%; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin: 0; }
  #screen-1 .option { min-height: 59px; padding: 12px 6px; }
  .question { font-size: clamp(23px, 6vw, 28px); margin-bottom: 26px; }
  .progress-bar { margin: 0 0 35px; }
  .option, .checkbox-option { min-height: 61px; padding: 16px 16px; }
  .option-text { font-size: 14px; }
  .option-card { padding: 12px 8px; }
  .options-grid { gap: 10px; }
  .interlude { padding-top: 10px; }
  .interlude h2 { font-size: 26px; }
  .result-section { padding: 0; }
  .result-chart, .profile-card { padding: 18px; }
  .ba-card { padding: 20px 14px; }
  .sp-title { font-size: 25px; }
  .tracker-section { padding: 18px 12px; }
  .tracker-card { padding: 13px; }
  .faq-q { font-size: 14px; }
}
@media (max-width: 360px) {
  .quiz-container { padding-inline: 8px; }
  .screen.active { padding-inline: 17px; }
  #screen-1.active { padding-inline: 13px; }
  #screen-1 .hero-image { height: 195px; }
  #screen-1 h1 { font-size: 27px; }
  #screen-1 .social-proof { gap: 8px; }
  #screen-1 .social-text { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .option, .option-card, .checkbox-option, .btn { transition: none; }
}

/* Unified site chrome and graceful styling for image files absent from the input. */
body { overflow-x: clip; }
#app .footer { background: #29392f; color: #f9f4ed; }
#app .footer .footer__contact-topic,
#app .footer .footer__link,
#app .footer .accordion-tp__title,
#app .footer .accordion-tp__summary,
#app .footer .footer__accordion-item { color: #f9f4ed; }
#app .footer .footer__contact-description { color: #b8c8b9; }
#app .footer .footer__container { max-width: 1200px; }
#app .footer .footer__accordion-item { border-color: rgba(245, 248, 240, .16); }
#app .header .burger-bun-top,
#app .header .burger-bun-bot,
#app .header .burger-filling { background: var(--accent); }
#app .header .header__button--violet { background: var(--accent); }
.program-preview-img, .interlude-image, .tracker-card-img {
  background:
    radial-gradient(circle at 25% 18%, rgba(211, 224, 207, .6), transparent 40%),
    radial-gradient(circle at 90% 90%, rgba(235, 196, 173, .55), transparent 45%),
    #f2ece4;
}
img.asset-unavailable { visibility: hidden !important; }
main { overflow-x: clip; }
main::after { bottom: 0; }

/* Download CTA uses an anchor rather than the payment modal. */
.app-download-link { display: flex; align-items: center; justify-content: center; text-align: center; text-decoration: none; line-height: 1.35; white-space: normal; }
.app-download-link:hover, .app-download-link:focus-visible { color: #fff; text-decoration: none; }
/* No dangling payment-price label above the direct APK download button. */
#screen-33 .cta-section .price-block { display: none; }
