/* Responsive layout for the CicloLeve quiz. */
:root {
  --page-pad: clamp(16px, 4vw, 28px);
  --pad-left: max(var(--page-pad), env(safe-area-inset-left, 0px));
  --pad-right: max(var(--page-pad), env(safe-area-inset-right, 0px));
}
html { scrollbar-gutter: auto; scroll-padding-block: 20px 110px; }
body { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.shell {
  width: 100%; max-width: 640px;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
}
#app { flex: 1; min-width: 0; }
#header {
  width: 100%; max-width: 640px; margin-inline: auto;
  padding: max(14px, env(safe-area-inset-top, 0px)) var(--pad-right) 0 var(--pad-left);
}
.screen {
  min-width: 0;
  padding: clamp(22px, 4vw, 32px) var(--pad-right) 26px var(--pad-left);
}
.screen.question { min-height: 0; }
h1, h2, h3, p, .label, .hint, .caption, figcaption, .cta, .subtle, .faq summary {
  overflow-wrap: anywhere;
}
h1, .offer h1 { font-size: clamp(25px, 5.3vw, 32px); line-height: 1.2; }
h2, .offer-section h2, .closing h2 { font-size: clamp(23px, 4.8vw, 29px); line-height: 1.22; }
.hero { padding-top: 18px; padding-bottom: 20px; }
.hero h1 { font-size: clamp(22px, 4.8vw, 29px); line-height: 1.13; }
.hero .lead { margin: 13px auto 18px; max-width: 48ch; font-size: 15px; }
.hero-photo { max-width: 460px; margin-inline: auto; }
.hero-photo img {
  width: 100%; height: auto; aspect-ratio: 1.02;
  object-fit: cover; object-position: 50% 25%;
}
.photo-label, .photo-tag { max-width: calc(100% - 24px); overflow-wrap: anywhere; }
.screen p.intro { max-width: 48ch; font-size: clamp(15px, 2.5vw, 16px); }
.hero .cta { font-size: 14px; }
.cta { min-width: 0; min-height: 56px; padding: 16px 14px; gap: 9px; white-space: normal; }
.cta .arrow, .cta > span[aria-hidden] { flex: 0 0 auto; }
.progress-row { gap: 12px; align-items: baseline; font-size: 11px; }
.progress-row > span { min-width: 0; overflow-wrap: anywhere; }
.progress-row > strong { flex-shrink: 0; }
.back { left: max(10px, env(safe-area-inset-left, 0px)); top: max(15px, env(safe-area-inset-top, 0px)); }
.options { grid-template-columns: minmax(0, 1fr); }
.cards-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.option { min-width: 0; padding: 17px 14px; gap: 12px; }
.option .label { min-width: 0; font-size: 16px; }
.cards-options .label { font-size: 15px; }
.option .emoji, .option .mark { flex-shrink: 0; }
.cards-options .option { padding: 22px 12px 18px; }
.checklist div > :last-child, .summary-row > div, .steps article > div, .kit-title > div {
  min-width: 0;
}
.summary-row > span, .checklist .check { flex-shrink: 0; }
.name-form input { min-width: 0; max-width: 100%; }
.story-copy { font-size: clamp(16px, 2.7vw, 18px); }
.scene-focus { height: auto; aspect-ratio: 1.8; }
.scene-labels { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.scene-labels > * { min-width: 0; overflow-wrap: anywhere; }
.media-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.media-pair figure { min-width: 0; }
.mechanism-photo img { width: 100%; height: auto; aspect-ratio: 882 / 438; }
.product-video { width: 100%; margin: 22px 0 0; }
.video-portrait {
  /* Keep the vertical player inside the screen width and comfortable screen height. */
  width: min(100%, 458px, max(200px, 40.5vh));
  aspect-ratio: 458 / 815;
}
@supports (height: 100svh) {
  .video-portrait { width: min(100%, 458px, max(200px, 40.5svh)); }
}
.video-portrait iframe { width: 100%; height: 100%; max-width: 100%; }
.offer { padding-top: 0; }
.offer-banner, .closing {
  margin-left: calc(0px - var(--pad-left));
  margin-right: calc(0px - var(--pad-right));
  padding-left: var(--pad-left); padding-right: var(--pad-right);
}
.offer-banner { font-size: 12px; overflow-wrap: anywhere; }
.offer-hero { height: auto; aspect-ratio: 1; object-fit: contain; object-position: center; }
.kits-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; margin: 24px 0; }
.kits-grid .offer-card { min-width: 0; width: 100%; max-width: 520px; margin: 0 auto; }
.offer-content { padding: 18px clamp(14px, 3vw, 22px) 22px; }
.kit-title { min-width: 0; }
.kit-title h3 { font-size: clamp(17px, 3vw, 20px); }
.kit-img { height: auto; aspect-ratio: 1.2; max-height: 240px; }
.price { font-size: clamp(40px, 8vw, 48px); }
.offer-card { scroll-margin-top: 18px; }
.offer-card .cta { gap: 7px; padding-inline: 12px; }
.sticky {
  width: 100%; max-width: 640px; margin-inline: auto;
  padding: 10px var(--pad-right) calc(10px + env(safe-area-inset-bottom, 0px)) var(--pad-left);
  gap: 12px;
}
.sticky div { min-width: 0; max-width: 40%; overflow-wrap: anywhere; }
.sticky strong { white-space: nowrap; }
.sticky .cta { flex: 1; width: auto; min-width: 0; gap: 6px; }
.footer {
  padding: 16px var(--pad-right) max(24px, env(safe-area-inset-bottom, 0px)) var(--pad-left);
}
.footer-links a { min-height: 44px; font-size: 11px; }
.trust-row { font-size: 11px; gap: 8px 14px; }
dialog {
  width: calc(100% - 24px); max-width: 470px;
  max-height: calc(100vh - 24px); max-height: calc(100svh - 24px);
  padding: 32px clamp(18px, 4vw, 25px) 24px;
}
@media (max-width: 359px) {
  .cards-options { grid-template-columns: minmax(0, 1fr); }
  .cards-options .option { min-height: 88px; flex-direction: row; text-align: left; padding: 16px 12px; gap: 10px; }
  .cards-options .option .mark { position: static; }
  .option { padding-inline: 12px; gap: 10px; }
  .option .emoji { width: 30px; font-size: 25px; }
  .cards-options .label { font-size: 15px; }
  .media-pair { grid-template-columns: minmax(0, 1fr); }
  .media-pair figure { width: 100%; max-width: 280px; margin-inline: auto; }
  .story-card, .compact-list { padding: 18px 14px; }
  .steps article { padding-inline: 12px; gap: 10px; }
  .sticky { gap: 8px; }
  .sticky .cta { padding-inline: 8px; font-size: 11px; }
}
@media (min-width: 640px) {
  .shell { box-shadow: 0 0 50px #382c3108; }
  .screen.question { padding-top: 36px; padding-bottom: 36px; }
  .option { min-height: 78px; }
  .hero .cta, .hero-bottom, .hero > .caption, .trust-row { max-width: 460px; margin-left: auto; margin-right: auto; }
}
@media (min-width: 960px) {
  html { scrollbar-gutter: stable; }
  .shell.is-offer { max-width: 1120px; }
  .offer > h1, .offer > .intro, .offer > .offer-hero, .offer > .caption,
  .offer > .story-card, .offer > .cta, .offer > .legal-note,
  .offer > .offer-section:not(#kits) { max-width: 640px; margin-left: auto; margin-right: auto; }
  .offer > .offer-hero { width: 100%; }
  .kits-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
  .kits-grid .offer-card { display: flex; flex-direction: column; }
  .kits-grid .ribbon { min-height: 50px; display: flex; align-items: center; justify-content: center; }
  .kits-grid .offer-content { flex: 1; display: flex; flex-direction: column; align-items: stretch; padding-inline: 16px; }
  .kits-grid .kit-title { min-height: 68px; }
  .kits-grid .price { font-size: 43px; }
  .kits-grid .cta { margin-top: auto; }
  .closing h2, .closing .cta { max-width: 640px; margin-left: auto; margin-right: auto; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .screen, .screen.question { padding-top: 20px; padding-bottom: 20px; }
  .big-icon { font-size: 36px; margin-bottom: 12px; }
  .video-portrait { width: min(100%, 220px); }
}

/* Show the face, hands and hot-water bottle together. */
.scene-focus.rest {
  width: 100%;
  max-width: 320px;
  height: auto;
  aspect-ratio: 2 / 3;
  margin-inline: auto;
  background-size: 300% auto;
  background-position: 100% 15%;
}

.purchase-guarantee { background: #edf7ef; border: 1px solid #b9d8c1; border-radius: 18px; padding: 28px 20px; }
.purchase-guarantee .intro { margin-bottom: 0; }

/* Separate the testimonial player from its next-step button. */
.story .product-video + .cta { margin-top: 28px; margin-bottom: 12px; }

