:root {
  --ink: #050505;
  --secondary: #65676b;
  --muted: #8a8d91;
  --blue: #1877f2;
  --progress: #0068ff;
  --track: #d9d9d9;
  --soft: #f7f8fa;
  --success-bg: #e0f7e7;
  --error-bg: #fbf1f1;
  --success: #31a24c;
  --error: #ff0010;
  --scale: 1;
  --ease-out: cubic-bezier(0, 0, 0.58, 1);
  --shell-w: 403px;
  --shell-h: 842px;
  color-scheme: light;
  font-family: "SF Pro Text", "SF Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: transparent; }
button, p, h1, h2 { margin: 0; }
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
}
button:not(:disabled) { cursor: pointer; }
img { display: block; max-width: none; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.stage {
  height: 100%;
  display: grid;
  place-items: center;
  background: transparent;
}
.fit {
  width: calc(var(--shell-w) * var(--scale));
  height: calc(var(--shell-h) * var(--scale));
}
.phone {
  width: var(--shell-w);
  height: var(--shell-h);
  box-sizing: border-box;
  padding: 14px 14px 16px;
  border-radius: 48px;
  background:
    linear-gradient(165deg, #6a6a6e 0%, #2a2a2e 18%, #121214 55%, #050506 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.28),
    inset 0 0 0 7px #050506;
  position: relative;
  /* zoom avoids transform:scale compositing that softens SVG text/icons
     when descendant ripple rings animate transform/opacity. */
  zoom: var(--scale);
}

/* Webflow / ?embed=1: Enforcement-style transform scale into .fit.
   CSS zoom does not reliably shrink layout inside overflow:hidden iframes,
   which clipped the right bezel and bottom edge at 360×780. */
html.embedded .phone {
  zoom: 1;
  transform: scale(var(--scale));
  transform-origin: top left;
}
html.embedded,
html.embedded body,
html.embedded .stage,
html.embedded .fit {
  background: transparent !important;
  background-color: transparent !important;
  overflow: hidden;
}
.hardware {
  position: absolute;
  width: 3px;
  background: linear-gradient(#4a4a4e, #1a1a1c);
  border-radius: 2px;
}
.silent { left: -2px; top: 108px; height: 26px; }
.volume-up { left: -2px; top: 154px; height: 52px; }
.volume-down { left: -2px; top: 216px; height: 52px; }
.power { right: -2px; left: auto; top: 176px; height: 78px; }
.device {
  width: 375px;
  height: 812px;
  background: #fff;
  border-radius: 34px;
  /* clip (not hidden): hide bleed without creating a scroll container that steals wheel/trackpad */
  overflow: clip;
  position: relative;
}

/* Fixed status chrome — outside animated .screens (Enforcement pattern) */
.status {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 54px;
  z-index: 24;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 18px 6px;
  pointer-events: none;
}
.status .time {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.3px;
  line-height: 22px;
  color: #000;
}
.status .levels {
  width: 85px;
  height: 13px;
  margin-bottom: 4px;
  display: block;
}

/* Single Dynamic Island — device coords so it scales with --scale/zoom */
.island {
  position: absolute;
  top: 11px;
  left: 0;
  right: 0;
  width: 108px;
  height: 30px;
  margin-inline: auto;
  border-radius: 15px;
  background: #000;
  z-index: 25;
  pointer-events: none;
}

.screens { position: absolute; inset: 0; overflow: clip; }
.screen {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 1;
  visibility: hidden;
  pointer-events: none;
  z-index: 0;
}
.screen.is-active {
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}
/* Hide baked-in SVG status bars so they cannot slide under the island */
.screen:not(.screen-complete)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 375px;
  height: 54px;
  background: #fff;
  z-index: 2;
  pointer-events: none;
}
.screen .art {
  position: absolute;
  inset: 0;
  width: 375px;
  height: 812px;
  object-fit: fill;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}
.screen .art-oversize {
  width: 383px;
  height: 817px;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  object-fit: none;
}

.screen.is-enter-slide,
.screen.is-leave-slide,
.screen.is-enter-move,
.screen.is-enter-back,
.screen.is-leave-back { visibility: visible; }
.screen.is-enter-slide {
  z-index: 2;
  transform: translateX(100%);
}
.screen.is-leave-slide { z-index: 1; }
.screen.is-enter-slide.is-run,
.screen.is-leave-slide.is-run {
  transition: transform 160ms var(--ease-out);
}
.screen.is-enter-slide.is-run { transform: none; }
.screen.is-leave-slide.is-run { transform: translateX(-100%); }
.screen.is-enter-back {
  z-index: 2;
  transform: translateX(-100%);
}
.screen.is-leave-back { z-index: 1; }
.screen.is-enter-back.is-run,
.screen.is-leave-back.is-run {
  transition: transform 160ms var(--ease-out);
}
.screen.is-enter-back.is-run { transform: none; }
.screen.is-leave-back.is-run { transform: translateX(100%); }
/* Figma Move in · Direction Down: enters from above, moves downward into place */
.screen.is-enter-move {
  z-index: 2;
  transform: translateY(-100%);
}
.screen.is-enter-move.is-run {
  transform: none;
  transition: transform 200ms var(--ease-out);
}
.screen.is-enter-fade,
.screen.is-leave-fade { visibility: visible; }
.screen.is-enter-fade {
  z-index: 2;
  opacity: 0;
}
.screen.is-leave-fade { z-index: 1; }
.screen.is-enter-fade.is-run,
.screen.is-leave-fade.is-run {
  transition: opacity 200ms var(--ease-out);
}
.screen.is-enter-fade.is-run { opacity: 1; }
.screen.is-leave-fade.is-run { opacity: 0; }

.screen-complete {
  display: flex;
  flex-direction: column;
  background: #f4f0e8;
  color: #1a1a1a;
}
.complete-status {
  height: 54px;
  flex: none;
}
.complete {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 28px 48px;
  gap: 12px;
  min-height: 0;
}
.complete-kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b645b;
}
.complete h1 {
  font-size: 28px;
  line-height: 34px;
  font-weight: 700;
  letter-spacing: 0;
}
.complete p {
  font-size: 16px;
  line-height: 22px;
  font-weight: 400;
  color: #3d3a36;
}
.complete-actions {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  width: 100%;
}
.complete-btn {
  flex: 1;
  height: 48px;
  border-radius: 8px;
  font-size: 17px;
  font-weight: 600;
  line-height: 22px;
  letter-spacing: -0.68px;
  text-align: center;
}
.complete-btn-secondary {
  background: #e4e6eb;
  color: #1a1a1a;
}
.complete-btn-primary {
  background: #1a1a1a;
  color: #fff;
}
.complete-btn:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
.complete-home {
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 134px;
  height: 5px;
  margin-left: -67px;
  background: #000;
  border-radius: 2.5px;
  pointer-events: none;
}

.hotspot {
  position: absolute;
  z-index: 3;
  background: transparent;
}
.hotspot-icon {
  width: 44px;
  height: 44px;
}
.hotspot-close {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hotspot-close img {
  width: 30px;
  height: 30px;
  display: block;
  pointer-events: none;
}
.hotspot-row {
  left: 0;
  width: 375px;
}
.hotspot-btn { border-radius: 8px; }
/* Sibling of the CTA (not a child): only the 160×160 ring layer animates,
   so the full-row hotspot does not promote a compositing layer over SVG text. */
.ripple-overlay-container {
  position: absolute;
  top: calc(var(--ripple-top) + (var(--ripple-h) / 2));
  left: calc(var(--ripple-left) + (var(--ripple-w) / 2));
  width: 160px;
  height: 160px;
  margin: -80px 0 0 -80px;
  pointer-events: none;
  z-index: 2;
  overflow: visible;
}
.ripple-circle {
  position: absolute;
  left: 0;
  top: 0;
  width: 160px;
  height: 160px;
  border: 2px solid rgba(24, 119, 242, 0.55);
  border-radius: 50%;
  background: transparent;
  opacity: 0;
  transform: scale(0);
}
.ripple-overlay-container.is-on .ripple-circle {
  animation: uniformRipple 4s linear infinite;
}
.ripple-overlay-container.is-on .ripple-circle:nth-child(1) { animation-delay: 0s; }
.ripple-overlay-container.is-on .ripple-circle:nth-child(2) { animation-delay: 1s; }
.ripple-overlay-container.is-on .ripple-circle:nth-child(3) { animation-delay: 2s; }
.ripple-overlay-container.is-on .ripple-circle:nth-child(4) { animation-delay: 3s; }
@keyframes uniformRipple {
  0% { transform: scale(0); opacity: 0; }
  5% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: scale(1); opacity: 0; }
}
.hotspot:focus-visible,
.quiz-submit:focus-visible,
.feedback-submit:focus-visible,
.sheet-btn:focus-visible,
.complete-btn:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.quiz-choice:focus-visible,
.choice:focus-visible {
  outline: none;
}
.quiz-choice:focus-visible .quiz-radio,
.choice:focus-visible .choice-radio {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* Knowledge-check overlays */
.quiz-panel {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.quiz-choice {
  position: absolute;
  left: 0;
  width: 375px;
  pointer-events: auto;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.quiz-radio {
  position: absolute;
  top: 50%;
  right: 13px;
  width: 24px;
  height: 24px;
  margin-top: -12px;
  border-radius: 50%;
  background: #fff;
  box-sizing: border-box;
  border: 0;
  box-shadow: none;
}
.quiz-radio::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #b5b6b8;
  box-sizing: border-box;
  background: #fff;
}
.quiz-radio::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--blue);
  opacity: 0;
  transform: none;
}
.quiz-choice[aria-checked="true"] .quiz-radio::before {
  border-color: var(--blue);
}
.quiz-choice[aria-checked="true"] .quiz-radio::after {
  opacity: 1;
}
.quiz-submit {
  position: absolute;
  left: 12px;
  top: 714px;
  width: 351px;
  height: 44px;
  border-radius: 8px;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.68px;
  line-height: 22px;
  background: transparent;
  color: transparent;
}
.quiz-submit:not(:disabled) {
  background: var(--blue);
  color: #fff;
}

/* Status screen nav title — centered to full 375px width (not between icons) */
.status-nav {
  position: absolute;
  left: 0;
  top: 54px;
  width: 375px;
  height: 44px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  user-select: none;
}
.status-nav::before {
  /* Hide mis-centered SVG title ink (incl. baseline fringe) without covering side icons */
  content: "";
  position: absolute;
  left: 52px;
  right: 52px;
  top: 8px;
  height: 30px;
  background: #fff;
}
.status-nav-title {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #050505;
  font-size: 17px;
  font-weight: 700;
  line-height: 22px;
  letter-spacing: -0.2px;
  text-align: center;
}

/* Restored: Give feedback CTA — flex-center label over baked SVG button */
.restored-feedback-cta {
  position: absolute;
  left: 24px;
  top: 723px;
  width: 327px;
  height: 44px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border-radius: 8px;
  background: #cecece;
  color: #000;
  font-size: 17px;
  font-weight: 600;
  /* Match font-size so flex centers ink, not a taller line-box */
  line-height: 17px;
  letter-spacing: -0.08px;
  text-align: center;
  pointer-events: none;
  user-select: none;
}

/* Details — three regions (HTML content, no SVG body clip):
   A) Fixed nav (status offset + bar + 8px clearance)
   B) ONE overflow-y:auto column with full card → need-to-know
   C) Fixed dock (top divider + deadline + CTA + pulse) */
.screen-details {
  overflow: clip;
  display: flex;
  flex-direction: column;
}
.screen-details .details-nav {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 106px; /* 54 status + 44 bar + 8 clearance */
  z-index: 4;
  box-sizing: border-box;
  padding-top: 54px;
  background: #fff;
  flex: none;
}
.screen-details .details-nav-bar {
  position: relative;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
}
.screen-details .details-nav-bar h1 {
  /* True screen-center title — independent of asymmetric Back/Profile widths */
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  line-height: 30px;
  color: var(--ink);
  pointer-events: none;
}
.screen-details .details-nav-back {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
}
.screen-details .details-nav-back img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}
/* Equal-width trailing slot so chrome balance stays tidy; glyph remains 24×24 */
.screen-details .details-nav-profile {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  padding: 10px;
  flex: none;
  object-fit: contain;
  object-position: center;
}
.screen-details .details-scroll {
  position: absolute;
  left: 0;
  right: 0;
  top: 106px;
  bottom: 118px;
  z-index: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  background: #fff;
  /* Space so last rows clear the dock edge while scrolling */
  padding-bottom: 24px;
}
.screen-details .details-meta {
  margin: 0;
  padding: 0 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 22px;
}
.screen-details .details-lead {
  margin: 0;
  padding: 0 12px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
  line-height: 24px;
}
.screen-details {
  /* Visible heading → following content (text/card/row) */
  --details-heading-gap: 16px;
  /* Section separation above headings (was 16 / know 23; +8 each) */
  --details-heading-top: 24px;
  --details-heading-top-know: 31px;
}
.screen-details .details-section-label {
  margin: 0;
  /* Default: text → card top = 16px (~1px glyph leftover below 22px line) */
  padding: var(--details-heading-top) 12px calc(var(--details-heading-gap) - 1px);
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  line-height: 22px;
  letter-spacing: -0.08px;
}
/* Paragraph text box sits ~1px higher than a card edge — match visible 16px */
.screen-details .details-section-label:has(+ .details-copy) {
  padding-bottom: calc(var(--details-heading-gap) - 2px);
}
/* Know top = prior 23px card separation + 8px; bottom keeps 16px to first row */
.screen-details .details-section-label-know {
  padding-top: var(--details-heading-top-know);
  padding-bottom: calc(var(--details-heading-gap) - 5.5px);
}
.screen-details .details-copy {
  margin: 0;
  padding: 0 12px;
  color: var(--secondary);
  font-size: 15px;
  line-height: 20px;
  letter-spacing: -0.15px;
}
/* Balance this row: match upper gap to lower gap (row content → Why this happened text).
   Measured lower = 26px; raise margin so paragraph → row content also = 26px. */
.screen-details .details-copy + .details-row {
  margin-top: 16px;
}
.screen-details .details-card {
  margin: 0 12px;
  padding: 12px;
  border: 1.5px solid #f6f6f7;
  border-radius: 12px;
  background: #fff;
  box-sizing: border-box;
}
.screen-details .details-card > p {
  margin: 0;
  color: var(--secondary);
  font-size: 15px;
  line-height: 20px;
  letter-spacing: -0.15px;
}
.screen-details .details-card-policy {
  margin-top: 12px !important;
}
.screen-details .details-quote {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f4f5f7;
}
.screen-details .details-person {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.screen-details .details-person img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 35%;
  flex-shrink: 0;
}
.screen-details .details-person-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.screen-details .details-person strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: -0.4px;
}
.screen-details .details-person span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
  line-height: 16px;
}
.screen-details .details-row {
  width: 100%;
  min-height: 31px;
  margin: 0;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  color: var(--ink);
  background: #fff;
}
.screen-details .details-row-in-card {
  margin-top: 12px;
  padding: 6px 0 0;
  /* No internal divider above See rule — outer card border only */
  border-top: 0;
}
.screen-details .details-row .icon {
  width: 22px;
  height: 22px;
  flex: none;
  object-fit: contain;
}
.screen-details .details-row span {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  line-height: 22px;
  letter-spacing: -0.4px;
}
.screen-details .details-row .chevron {
  width: 28px;
  height: 28px;
  flex: none;
}
/* Frame 540: row-to-row 16px under What you need to know */
.screen-details .details-info-rows {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #fff;
}
.screen-details .details-info-rows .details-row {
  padding-top: 0;
  padding-bottom: 0;
  height: 31px;
  min-height: 31px;
}
.screen-details .details-dock {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 118px;
  z-index: 4;
  box-sizing: border-box;
  padding: 12px 12px 34px;
  background: #fff;
  /* Sole footer divider — directly above the review-deadline text */
  border-top: 1px solid #e4e6eb;
}
.screen-details .details-deadline {
  margin: 0;
  text-align: center;
  color: var(--secondary);
  font-size: 13px;
  line-height: 18px;
  letter-spacing: -0.13px;
}
.screen-details .details-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 351px;
  height: 44px;
  margin: 10px auto 0;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.68px;
  line-height: 22px;
  position: relative;
  z-index: 5;
}
.screen-details .details-cta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Feedback step — HTML title + helper; mask baked SVG (heading was ~19px inset).
   Reference: kc2 “Check your understanding” — head ink ~126–147, body ~163, gap 16px. */
.feedback-copy-mask {
  position: absolute;
  left: 0;
  top: 110px;
  width: 375px;
  height: 340px;
  background: #fff;
  z-index: 2;
  pointer-events: none;
}
.feedback-title {
  position: absolute;
  left: 12px;
  /* Live 375×812 screenshot: glyph ink matches kc2 heading at y=126. */
  top: 120px;
  width: 351px;
  margin: 0;
  z-index: 3;
  color: var(--ink);
  font-size: 24px;
  font-weight: 700;
  line-height: 30px;
  letter-spacing: 0;
  pointer-events: none;
}
.feedback-copy {
  position: absolute;
  left: 12px;
  /* Live shot: body ink was y=164 vs kc2 y=163 — nudge 1px up. */
  top: 157px;
  width: 351px;
  margin: 0;
  z-index: 3;
  color: var(--secondary);
  font-size: 15px;
  font-weight: 400;
  line-height: 22px;
  letter-spacing: -0.15px;
  pointer-events: none;
}
/* Panel stays at 230 so Submit (top:484 → screen 714) stays aligned with SVG CTA */
.feedback-panel {
  position: absolute;
  left: 0;
  top: 230px;
  width: 375px;
  bottom: 0;
  z-index: 3;
  pointer-events: none;
}
.choices {
  position: absolute;
  left: 0;
  top: 0;
  width: 375px;
  height: 180px;
}
.choice {
  position: absolute;
  left: 0;
  width: 375px;
  height: 34px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  pointer-events: auto;
  background: transparent;
  border: 0;
  box-shadow: none;
  color: var(--ink);
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  letter-spacing: -0.4px;
}
.choice-label {
  flex: 1 1 auto;
  min-width: 0;
}
.choice-radio {
  position: relative;
  top: auto;
  right: auto;
  flex: none;
  width: 24px;
  height: 24px;
  margin-top: 0;
  border-radius: 50%;
  background: #fff;
  box-sizing: border-box;
  border: 0;
  box-shadow: none;
}
.choice-radio::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #b5b6b8;
  box-sizing: border-box;
  background: #fff;
}
.choice-radio::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--blue);
  opacity: 0;
  transform: none;
}
.choice[aria-checked="true"] .choice-radio::before {
  border-color: var(--blue);
}
.choice[aria-checked="true"] .choice-radio::after {
  opacity: 1;
}
.else-slot {
  position: absolute;
  left: 12px;
  /* Last option top 120 + height 34 = 154; sit directly below */
  top: 154px;
  width: 351px;
  pointer-events: auto;
  min-height: 0;
}
.else-field {
  background: #fff;
  padding: 4px 0 8px;
}
.else-field[hidden] { display: none; }
.else-field label {
  display: block;
  margin-bottom: 6px;
  color: var(--secondary);
  font-size: 13px;
  line-height: 16px;
}
.else-field textarea {
  display: block;
  width: 100%;
  height: 72px;
  resize: none;
  border: 1px solid #ced0d4;
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  font-size: 15px;
  line-height: 20px;
  color: var(--ink);
  background: #fff;
}
.else-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue);
}
.else-count {
  margin: 4px 2px 0;
  text-align: right;
  color: var(--muted);
  font-size: 12px;
  line-height: 16px;
}
.feedback-submit {
  position: absolute;
  left: 12px;
  top: 484px;
  width: 351px;
  height: 44px;
  border-radius: 8px;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.68px;
  line-height: 22px;
  background: transparent;
  color: transparent;
}
.feedback-submit:not(:disabled) {
  background: var(--blue);
  color: #fff;
}

/* Bottom sheet */
.sheet-root {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.sheet-root[hidden] { display: none; }
.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition: opacity 200ms var(--ease-out);
}
.sheet-root.is-open .sheet-backdrop { opacity: 1; }
.sheet {
  position: relative;
  z-index: 1;
  width: 375px;
  max-height: 92%;
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 0 0 28px;
  transform: translateY(100%);
  transition: transform 200ms var(--ease-out);
  overflow: auto;
  overscroll-behavior: contain;
}
.sheet-root.is-open .sheet { transform: none; }
.sheet-handle {
  width: 79px;
  height: 5px;
  border-radius: 2.5px;
  background: #000;
  margin: 10px auto 18px;
}
.sheet-header {
  padding: 0 16px;
}
.sheet-heading {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 30px;
  color: var(--ink);
}
.sheet-body {
  padding: 10px 16px 18px;
  color: var(--secondary);
  font-size: 16px;
  line-height: 22px;
  letter-spacing: -0.16px;
}
.sheet-answers {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 12px 20px;
}
.sheet-answer {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 83px;
  padding: 14px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  background: #fff;
  box-sizing: border-box;
}
.sheet-answer.is-selected-correct {
  background: var(--success-bg);
}
.sheet-answer.is-selected-incorrect {
  background: var(--error-bg);
}
.sheet-answer-icon {
  width: 24px;
  height: 24px;
  display: block;
  flex: none;
  border: 0;
  background: transparent;
  padding: 0;
  align-self: center;
}
.sheet-answer-icon img {
  width: 24px;
  height: 24px;
  display: block;
}
.sheet-answer-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.sheet-answer-text {
  font-size: 16px;
  line-height: 22px;
  letter-spacing: -0.4px;
  color: var(--ink);
}
.sheet-answer-meta {
  font-size: 13px;
  line-height: 16px;
  color: var(--secondary);
  font-weight: 400;
}
.sheet-actions {
  display: flex;
  gap: 12px;
  padding: 0 12px;
}
.sheet-btn {
  flex: 1;
  height: 49px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.68px;
  line-height: 22px;
}
.sheet-btn-secondary {
  background: #e4e6eb;
  color: var(--ink);
}
.sheet-btn-primary {
  background: var(--progress);
  color: #fff;
}
.sheet-btn-primary.is-solo {
  flex: 1 1 100%;
}

/* Immersive mobile — direct phone viewing only (not desktop / Webflow iframe).
   Class is set in <head> (UA/touch) and kept in sync by fit().
   html.embedded forces the framed shell (Webflow / ?framed=1). */
html.immersive,
html.immersive body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: manipulation;
  background: #fff;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
/*
  Immersive shell — one viewport frame, three layout regions per screen.
  A) .imm-head / .details-nav — fixed; never scrolls away
  B) .imm-scroll / .details-scroll — only vertical scroller
  C) .imm-foot / .details-dock — fixed primary actions (when designed)

  No top safe-area padding (design already reserves the 54px status band).
  Bottom safe-area only — clears Android/iOS system navigation.
  No translateY chrome pinning, sticky pseudo docks, or artboard scaling.
*/
html.immersive .stage {
  width: 100%;
  width: 100vw;
  height: 100%;
  height: 100dvh;
  min-height: 100%;
  min-height: 100dvh;
  min-height: 100svh;
  display: block;
  background: #fff;
  overflow: hidden;
  padding: 0;
  margin: 0;
  padding-top: 0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  box-sizing: border-box;
}
html.immersive .fit {
  width: 100%;
  width: 100vw;
  height: 100%;
  display: block;
  margin: 0;
  padding: 0;
  overflow: hidden;
}
html.immersive .phone {
  width: 100vw;
  height: 100%;
  max-width: 100%;
  padding: 0 !important;
  margin: 0 auto;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  background-image: none !important;
  box-shadow: none !important;
  zoom: 1;
  position: relative;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: manipulation;
}
html.immersive .hardware,
html.immersive .status,
html.immersive .island {
  display: none !important;
  visibility: hidden !important;
}
html.immersive .device {
  position: relative;
  left: 0;
  top: 0;
  width: 375px;
  height: calc(var(--design-vh, 812) * 1px);
  border-radius: 0 !important;
  overflow: hidden;
  background: #fff;
  /* Width-fill only — horizontal scale; height comes from --design-vh. */
  zoom: var(--scale);
  transform: none;
}
html.immersive .screens {
  overflow: hidden;
}
/* Hide baked iPhone chrome — real device owns status + home indicator.
   Framed / embedded mode keeps the SVG + shell indicators intact. */
html.immersive .screen:not(.screen-complete)::before,
html.immersive .screen:not(.screen-complete)::after {
  content: none !important;
  display: none !important;
}
html.immersive .complete-home,
html.immersive .complete-status {
  display: none !important;
}
/* Home indicator is excluded by mid-crop bounds (IMM_HOME_TOP), not a paint-over. */

/*
  SVG screens → CSS Grid regions (built by ensureImmersiveRegions):
  auto nav | flexible scroll | auto footer (stepper+CTA when present)
*/
html.immersive .screen.screen-regions {
  display: grid;
  grid-template-rows: 44px minmax(0, 1fr);
  height: 100%;
  overflow: hidden;
  min-height: 0;
  background: #fff;
}
html.immersive .screen.screen-regions.screen-has-foot {
  grid-template-rows: 44px minmax(0, 1fr) auto;
}
html.immersive .imm-head,
html.immersive .imm-foot {
  position: relative;
  overflow: hidden;
  z-index: 3;
  background: #fff;
  min-height: 0;
}
html.immersive .imm-head {
  height: 44px;
}
html.immersive .imm-foot {
  box-sizing: border-box;
  flex: none;
}
html.immersive .imm-foot .art-crop-foot {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
}
html.immersive .imm-scroll {
  position: relative;
  z-index: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: none;
  -webkit-overflow-scrolling: touch;
  touch-action: manipulation;
  background: #fff;
}
html.immersive .art-crop {
  position: relative;
  width: 375px;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
html.immersive .art-crop .art {
  position: absolute;
  left: 0;
  width: 375px;
  height: 812px;
  max-width: none;
  object-fit: fill;
  pointer-events: none;
  user-select: none;
}
html.immersive .imm-head .hotspot-icon,
html.immersive .imm-head .status-nav {
  z-index: 4;
}
html.immersive .imm-foot .hotspot-btn,
html.immersive .imm-foot .quiz-submit,
html.immersive .imm-foot .feedback-submit,
html.immersive .imm-foot .ripple-overlay-container {
  z-index: 4;
}
/* Status title stays opaque over the cropped SVG nav. */
html.immersive .status-nav {
  background: #fff;
  top: 0;
}
html.immersive .status-nav::before {
  left: 0;
  right: 0;
  top: 0;
  height: 44px;
}

/*
  Details HTML three-region layout.
  Nav no longer reserves simulated status (54px) — only the 44px bar + 8px
  clearance, matching immersive SVG screens. Dock unchanged.
*/
html.immersive .screen-details {
  overflow: hidden;
}
html.immersive .screen-details .details-nav {
  height: 52px; /* 44 bar + 8 clearance */
  padding-top: 0;
}
html.immersive .screen-details .details-scroll {
  top: 52px;
  bottom: auto;
  height: calc(var(--design-vh, 812) * 1px - 52px - 96px);
  min-height: 0;
}
html.immersive .screen-details .details-dock {
  top: calc(var(--design-vh, 812) * 1px - 96px);
  bottom: auto;
  height: 96px;
  /* Drop the 34px home-indicator pad — stage safe-area handles system nav. */
  padding: 12px 12px 12px;
}

/* CSS-only fallback if JS is late/blocked: strip shell on coarse phones unless embedded. */
@media (hover: none) and (pointer: coarse) {
  html:not(.embedded):not(.immersive) .hardware,
  html:not(.embedded):not(.immersive) .status,
  html:not(.embedded):not(.immersive) .island {
    display: none !important;
  }
  html:not(.embedded):not(.immersive) .phone {
    padding: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    background-image: none !important;
    box-shadow: none !important;
  }
  html:not(.embedded):not(.immersive) .device {
    border-radius: 0 !important;
  }
  html:not(.embedded):not(.immersive) .stage {
    background: #fff;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ripple-overlay-container { display: none; }
  .screen.is-enter-slide,
  .screen.is-enter-slide.is-run,
  .screen.is-leave-slide,
  .screen.is-leave-slide.is-run,
  .screen.is-enter-move,
  .screen.is-enter-move.is-run,
  .screen.is-enter-back,
  .screen.is-enter-back.is-run,
  .screen.is-leave-back,
  .screen.is-leave-back.is-run,
  .screen.is-enter-fade,
  .screen.is-enter-fade.is-run,
  .screen.is-leave-fade,
  .screen.is-leave-fade.is-run,
  .sheet,
  .sheet-backdrop {
    transition: none !important;
  }
  .screen.is-enter-slide,
  .screen.is-enter-slide.is-run,
  .screen.is-leave-slide,
  .screen.is-leave-slide.is-run,
  .screen.is-enter-move,
  .screen.is-enter-move.is-run,
  .screen.is-enter-back,
  .screen.is-enter-back.is-run,
  .screen.is-leave-back,
  .screen.is-leave-back.is-run,
  .sheet-root.is-open .sheet,
  .sheet {
    transform: none !important;
  }
  .screen.is-enter-fade,
  .screen.is-enter-fade.is-run,
  .screen.is-leave-fade,
  .screen.is-leave-fade.is-run {
    opacity: 1 !important;
  }
  .sheet-backdrop { opacity: 1; }
}
