:root {
  /* Slimpod "modern" design system — see STYLE_GUIDE.md (performance-social/slimpod) */
  --red: #ff0000;
  --red-ink: #d21c0e;
  --teal: #2f97a8;
  --teal-dark: #23747f;
  --teal-tint: #eaf5f7;
  --teal-tint-2: #d9edf0;
  --gold-star: #00b67a;

  --ink: #16181a;
  --body: #4b4f58;
  --body-soft: #6b6f78;
  --bg: #fbfcfc;
  --surface: #ffffff;
  --surface-alt: #f1f4f5;
  --line: #e4e8e9;

  --font-display: 'Asap Condensed', 'Asap', sans-serif;
  --font-heading: 'Asap', sans-serif;
  --font-body: 'Raleway', sans-serif;
  --font-label: 'Poppins', sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px -12px rgba(22, 24, 26, 0.18);
  --shadow-sm: 0 4px 14px -6px rgba(22, 24, 26, 0.14);

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

body {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  padding-bottom: calc(24px + var(--safe-bottom));
}

h1, h2, h3, h4 {
  margin: 0 0 12px;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  text-wrap: balance;
  line-height: 1.14;
}
h1 { font-size: clamp(28px, 6vw, 40px); }
h2 { font-size: clamp(22px, 5vw, 28px); }
p { margin: 0 0 12px; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--red);
  padding-top: var(--safe-top);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08), 0 4px 14px -6px rgba(22, 24, 26, 0.2);
}
.site-header__inner {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 20px;
}
.site-header img { height: 34px; width: auto; }
.header-flag-pill {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.18);
  font-size: 13px;
  line-height: 1;
  overflow: hidden;
}

/* ---------- kicker ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin: 0 0 12px;
}
.kicker::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: var(--teal);
}
.kicker--red { color: var(--red-ink); }
.kicker--red::before { background: var(--red); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-label);
  font-weight: 500;
  font-size: 16px;
  color: #fff;
  background: var(--teal);
  border-radius: 100px;
  padding: 15px 28px;
  border: 0;
  cursor: pointer;
  transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease;
  box-shadow: var(--shadow-sm);
  touch-action: manipulation;
}
.btn svg { transition: transform .15s ease; flex-shrink: 0; }
.btn--red { background: var(--red); }
.btn--outline { background: transparent; color: var(--ink); border: 1.5px solid var(--line); box-shadow: none; }
.btn--block { width: 100%; }
/* :hover is scoped to devices that can actually hover — on touch devices,
   tapping an element can leave it "stuck" in :hover (and the touch/mouse-
   event replay quirk that causes the ghost-tap bug can apply a synthetic
   hover to whatever's newly rendered in that same screen position), so an
   unscoped :hover here would keep making freshly-rendered buttons/options
   look selected/highlighted with no tap involved at all. */
@media (hover: hover) {
  .btn:hover { background: var(--teal-dark); transform: translateY(-1px); }
  .btn:hover svg { transform: translateX(3px); }
  .btn--red:hover { background: var(--red-ink); }
  .btn--outline:hover { background: var(--surface-alt); transform: none; }
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ---------- layout ---------- */
#quiz-root {
  max-width: 480px;
  margin: 0 auto;
  padding: 24px 20px 40px;
}

.quiz-screen { text-align: center; animation: fadeIn .25s ease; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.quiz-question {
  font-size: clamp(22px, 5.5vw, 27px);
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0 0 20px;
}

.hint, .subhead {
  font-family: var(--font-label);
  font-size: 13.5px;
  color: var(--body-soft);
  margin-top: -8px;
  margin-bottom: 16px;
}

/* ---------- progress bar ---------- */
.quiz-progress { max-width: 480px; margin: 0 auto; padding: 14px 20px 0; }
.quiz-progress__row { display: flex; align-items: center; gap: 10px; }
.quiz-back {
  flex-shrink: 0;
  width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%;
  background: transparent; color: var(--body-soft);
  padding: 0; cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
@media (hover: hover) {
  .quiz-back:hover { background: var(--surface-alt); color: var(--ink); }
}
.quiz-progress__bar { flex: 1; height: 6px; border-radius: 100px; background: var(--line); overflow: hidden; }
.quiz-progress__fill { height: 100%; background: var(--teal); border-radius: 100px; transition: width .3s ease; }
.quiz-progress__label { margin: 8px 0 0; text-align: center; font-family: var(--font-label); font-size: 12.5px; color: var(--body-soft); }

/* ---------- options ---------- */
.quiz-options { display: grid; gap: 12px; text-align: left; margin: 0 0 20px; }
.quiz-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-family: var(--font-body);
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, transform .1s ease;
  touch-action: manipulation;
}
@media (hover: hover) {
  .quiz-option:hover { border-color: var(--teal); background: var(--teal-tint); }
}
.quiz-option:active { transform: scale(0.99); }
.quiz-option.is-selected {
  border-color: var(--teal);
  background: var(--teal-tint);
  color: var(--teal-dark);
  font-weight: 600;
}
.quiz-option .emoji { font-size: 1.25rem; flex-shrink: 0; }

.check-indicator {
  width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 12px; color: #fff;
}
.quiz-option.is-selected .check-indicator { background: var(--teal); border-color: var(--teal); }
.quiz-option:disabled { cursor: default; }
.quiz-option:disabled:not(.is-selected) { opacity: 0.5; }

/* ---------- text input ---------- */
.text-input {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  margin: 0 0 16px;
  color: var(--ink);
}
.text-input:focus { outline: none; border-color: var(--teal); }

.error-text { color: var(--red-ink); font-size: 13.5px; margin: -10px 0 12px; }

/* ---------- fullscreen (no-scroll) steps ----------
   Fills the viewport with no scroll: header stays, the progress bar (not
   relevant pre-quiz) is hidden, and #quiz-root becomes a flex column,
   instead of the normal padded, scrolling article layout every other
   screen uses. Opted into per-step via config's `fillScreen: true`. */
body.is-fullscreen {
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
}
body.is-fullscreen .site-header { flex-shrink: 0; }
body.is-fullscreen .quiz-progress { display: none; }
body.is-fullscreen #quiz-root {
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: none;
  overflow: hidden;
  display: flex;
  padding: 0;
}

/* ---------- landing (pre-quiz splash) screen ----------
   The image takes the remaining space above a fixed-height text/CTA
   block. */
.landing-screen {
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
}
.landing-image { flex: 1 1 auto; min-height: 0; overflow: hidden; }
.landing-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.landing-content {
  flex-shrink: 0;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 24px 24px calc(20px + var(--safe-bottom));
  text-align: center;
}
.landing-content h1 { font-size: clamp(30px, 8vw, 44px); margin: 0 0 16px; }
/* Hand-drawn underline stroke under specific headline words — see
   markWord() in js/splash.js. The svg stretches to the word's own width
   (preserveAspectRatio="none"), so it tracks however wide the word renders
   at any viewport without needing a fixed size here. */
.word-mark { position: relative; display: inline-block; }
.word-mark__underline {
  position: absolute;
  left: 0;
  bottom: -0.12em;
  width: 100%;
  height: 0.3em;
  color: var(--red-ink);
}
/* Only rendered when an ?exp= variant sets one (see js/splash.js) — same
   pill look as .pricing-box__pill elsewhere in the app, for consistency. */
.landing-content__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--teal-tint);
  color: var(--teal-dark);
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 100px;
  margin: 0 0 14px;
}
.landing-disclaimer {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--body-soft);
  margin: 20px 0 0;
  line-height: 1.5;
}

/* Desktop: split layout (text left, full-bleed photo right), same shape as
   the Noom-style splash reference the client sent — mobile stays the
   stacked image-over-text layout above this breakpoint. */
@media (min-width: 860px) {
  .landing-screen { flex-direction: row-reverse; }
  .landing-image { flex: 1 1 55%; min-width: 0; }
  .landing-content {
    flex: 1 1 45%;
    max-width: 560px;
    width: auto;
    margin: 0;
    padding: 0 64px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

/* ---------- hero proof / press / trustpilot ---------- */
.trustpilot-strip { display: inline-block; margin: 0 0 16px; }
.trustpilot-strip img { height: 15px; width: auto; margin: 0 auto; }

.proof-points { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; text-align: left; }
.proof-points li {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 12px 14px;
  font-family: var(--font-label); font-weight: 600; font-size: 14.5px; color: var(--ink);
}
.proof-points li svg { flex-shrink: 0; color: var(--teal-dark); }

.press-logos {
  overflow: hidden;
  margin: 8px 0 20px;
  opacity: 0.9;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.press-logos__track {
  display: flex;
  align-items: center;
  gap: 32px;
  width: max-content;
  animation: press-scroll 15s linear infinite;
}
.press-logos img { height: 36px; width: auto; flex-shrink: 0; }
@keyframes press-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .press-logos__track { animation: none; }
}

.hero-cta-note {
  font-family: var(--font-label);
  font-size: 12.5px;
  color: var(--body-soft);
  margin: 10px 0 0;
}

/* ---------- hero (welcome) screen — compact, fills viewport ---------- */
.hero-screen h1 { font-size: clamp(32px, 8.5vw, 46px); }
body.is-fullscreen .hero-screen {
  flex: 1;
  min-height: 0;
  min-width: 0;
  width: 100%;
  max-width: 480px;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 16px 20px calc(14px + var(--safe-bottom));
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
body.is-fullscreen .hero-screen h1 { margin: 0 0 8px; }
body.is-fullscreen .hero-screen .subhead { margin: 0 0 14px; }
body.is-fullscreen .hero-screen .trustpilot-strip { margin: 0 0 10px; }
body.is-fullscreen .hero-screen .proof-points { margin: 0 0 14px; gap: 6px; }
body.is-fullscreen .hero-screen .proof-points li { padding: 9px 12px; }
body.is-fullscreen .hero-screen .press-logos { margin: 6px 0 14px; }

/* ---------- interjection stat card ---------- */
.stat-card {
  background: var(--teal-tint);
  border-radius: var(--radius);
  padding: 30px 20px;
  margin: 8px 0 20px;
}
.stat-card .stat-number {
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 700;
  color: var(--teal-dark);
  line-height: 1;
}
.stat-card .stat-label { font-family: var(--font-label); font-weight: 600; margin-top: 8px; color: var(--ink); }
.stat-card .stat-attribution { color: var(--body-soft); font-size: 13px; margin-top: 4px; }
.stars { color: var(--gold-star); font-size: 1.1rem; letter-spacing: 2px; margin-top: 12px; }
.rating-label { font-family: var(--font-label); font-weight: 600; margin-left: 6px; color: var(--ink); }

/* ---------- audio sample player ---------- */
.media-heading {
  font-family: var(--font-heading);
  font-size: clamp(19px, 5vw, 22px);
  font-weight: 700;
  margin: 4px 0 14px;
}
.audio-player {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin: 0 0 16px;
  text-align: left;
}
.audio-player__play {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 0;
  background: var(--teal);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color .15s ease;
}
@media (hover: hover) {
  .audio-player__play:hover { background: var(--teal-dark); }
}
.audio-player__icon--play { margin-left: 2px; }
.audio-player__body { flex: 1; min-width: 0; }
.audio-player__track {
  height: 5px;
  border-radius: 100px;
  background: var(--line);
  overflow: hidden;
  margin-bottom: 8px;
}
.audio-player__fill { height: 100%; width: 0%; background: var(--teal); border-radius: 100px; }
.audio-player__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-label);
}
.audio-player__label { font-size: 13.5px; font-weight: 500; color: var(--ink); }
.audio-player__time { font-size: 12.5px; color: var(--body-soft); flex-shrink: 0; }
.audio-player--unavailable {
  justify-content: center;
  background: var(--surface-alt);
  border-style: dashed;
}
.audio-player__unavailable-label {
  font-family: var(--font-label);
  font-size: 13.5px;
  color: var(--body-soft);
}
.stat-media { margin: 0 0 16px; }
.stat-media img {
  width: 100%;
  display: block;
  border-radius: var(--radius-sm);
}
.stat-media__caption {
  font-family: var(--font-label);
  font-size: 12.5px;
  color: var(--body-soft);
  text-align: center;
  margin: 8px 0 0;
}
.science-sentence {
  font-family: var(--font-body);
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.5;
  margin: 0 0 20px;
}

/* ---------- testimonial / transformation card ---------- */
.testimonial-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin: 8px 0 20px;
  text-align: left;
}
.testimonial-media { background: var(--teal-tint); }
.testimonial-media img { width: 100%; height: auto; }
.testimonial-body { padding: 18px; }
.testimonial-body .name { font-family: var(--font-heading); font-weight: 600; color: var(--ink); }
.testimonial-body .result { color: var(--red-ink); font-family: var(--font-label); font-weight: 600; font-size: 13.5px; margin-bottom: 8px; }
.testimonial-body .quote { font-style: italic; color: var(--body); margin: 0; }

/* ---------- trustpilot review card ---------- */
.trustpilot-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 22px 20px;
  margin: 8px 0 20px;
  text-align: left;
}
.trustpilot-card__stars { color: var(--gold-star); font-size: 1.3rem; letter-spacing: 3px; margin: 0 0 14px; }
.trustpilot-card__title { font-family: var(--font-heading); font-weight: 700; color: var(--ink); font-size: 15px; margin: 0 0 6px; }
.trustpilot-card__quote {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.4;
  color: var(--ink);
  margin: 0 0 16px;
}
.trustpilot-card__meta {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-label); font-size: 13px; font-weight: 600; color: var(--body-soft);
}
.trustpilot-card__name { color: var(--ink); }
.trustpilot-card__dot { width: 3px; height: 3px; border-radius: 50%; background: var(--body-soft); flex-shrink: 0; }

/* ---------- science screen ----------
   Plain full-width layout matching the other standalone screens (centred
   h2 title from the base heading rule, left-aligned body content below) —
   not a boxed/tinted card, which is how this looked when it was still one
   component embedded in the old results page. */
.science-block { margin: 0 0 24px; }
.science-block__intro { color: var(--body); font-size: 14.5px; margin: 0 0 20px; text-align: left; }
.science-block__point { margin: 0 0 20px; text-align: left; }
.science-block__point:last-child { margin-bottom: 0; }
.science-block__point-heading {
  font-family: var(--font-label);
  font-size: 14px;
  font-weight: 700;
  color: var(--teal-dark);
  margin: 0 0 6px;
}
.science-block__point-body { margin: 0 0 8px; color: var(--body-soft); font-size: 15px; line-height: 1.5; }
.science-block__point-body:last-child { margin-bottom: 0; }

/* ---------- results: how it works ---------- */
.how-it-works { margin: 0 0 24px; text-align: left; }
.how-it-works__title { font-size: clamp(19px, 4.8vw, 22px); margin: 0 0 14px; }
.how-it-works__steps { list-style: none; margin: 0; padding: 0; }
.how-step { display: flex; gap: 14px; align-items: flex-start; padding: 10px 0; position: relative; }
.how-it-works__steps .how-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 15px; top: 42px; bottom: -6px;
  width: 2px;
  background: var(--line);
}
.how-step__marker {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-label); font-weight: 700; font-size: 14px;
  background: var(--surface-alt); color: var(--body-soft);
  border: 1.5px solid var(--line);
  position: relative; z-index: 1;
}
.how-step--done .how-step__marker { background: var(--teal); color: #fff; border-color: var(--teal); }
.how-step__marker--current { background: var(--red); color: #fff; border-color: var(--red); }
.how-step__body { padding-top: 5px; }
.how-step__label { display: block; font-family: var(--font-body); font-weight: 600; color: var(--ink); font-size: 15px; }
.how-step--done .how-step__label { color: var(--body-soft); }
.how-step__note { display: block; font-family: var(--font-label); font-size: 12.5px; color: var(--body-soft); margin-top: 2px; }
.how-step--bonus {
  margin-top: 8px;
  padding: 12px 14px;
  background: var(--teal-tint);
  border-radius: var(--radius-sm);
}
.how-step--bonus .how-step__marker { background: var(--surface); color: var(--teal-dark); border-color: var(--teal); }

/* ---------- plan page: section structure ---------- */
.quiz-result__title.plan-title { font-size: clamp(30px, 8.5vw, 40px); margin-bottom: 12px; }
.plan-intro { text-align: left; }
.plan-section-title {
  font-family: var(--font-label);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--teal-dark);
  text-transform: uppercase;
  margin: 0 0 12px;
  text-align: left;
}
.plan-section-hint {
  font-size: 14px;
  color: var(--body-soft);
  margin: -8px 0 14px;
  text-align: left;
}
.plan-section {
  margin: 0 0 28px;
  padding: 18px 16px;
  background: var(--surface-alt);
  border-radius: var(--radius);
  text-align: left;
}
.plan-section .results-bullets { margin-bottom: 0; }

/* ---------- plan page: 12-week timeline ---------- */
.plan-weeks {
  margin: 0 0 28px;
  padding: 18px 16px;
  background: var(--surface-alt);
  border-radius: var(--radius);
  text-align: left;
}
.plan-week {
  display: flex; gap: 14px; padding: 12px 0; position: relative;
  border-radius: var(--radius-sm);
  transition: transform .15s ease, box-shadow .15s ease;
  transform-origin: left center;
}
.plan-week.is-pressed {
  transform: scale(1.02);
  box-shadow: 0 0 0 10px var(--surface), 0 4px 14px -6px rgba(22, 24, 26, 0.15);
}
@media (hover: hover) {
  .plan-week:hover {
    transform: scale(1.015);
    box-shadow: 0 0 0 10px var(--surface), 0 4px 14px -6px rgba(22, 24, 26, 0.12);
  }
}
.plan-weeks .plan-week:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 19px; top: 48px; bottom: -4px;
  width: 2px;
  background: var(--line);
}
.plan-week__num {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--teal-tint);
  color: var(--teal-dark);
  border: 1.5px solid var(--teal);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-label); font-weight: 700; font-size: 15px;
  position: relative; z-index: 1;
}
.plan-week__body { padding-top: 4px; }
.plan-week__label {
  font-family: var(--font-label);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--body-soft);
}
.plan-week__title { font-family: var(--font-heading); font-weight: 700; color: var(--ink); font-size: 16px; margin: 2px 0 4px; }
.plan-week__summary { margin: 0; font-size: 14.5px; color: var(--body); }

@keyframes planReveal {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.plan-reveal { animation: planReveal .3s ease; }

/* ---------- plan page: daily actions (deliberately looks like a pinned note,
   softer and warmer than the rest of the page, since it's the one section
   telling people exactly what to do each day) ---------- */
.daily-actions {
  margin: 0 0 28px;
  padding: 20px 18px 18px;
  background: #fff8e1;
  border: 1px solid #f0dda0;
  border-radius: 14px 16px 15px 13px;
  box-shadow: 0 6px 16px -8px rgba(120, 96, 20, 0.25);
  transform: rotate(-0.4deg);
  text-align: left;
}
.daily-actions .plan-section-title { color: #8a6d1f; }
.daily-actions .plan-section-hint { color: #7a6326; }
.daily-actions__list {
  list-style: none; margin: 0 0 14px; padding: 0;
  display: grid; gap: 12px;
}
.daily-actions__item { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: #46390f; }
.daily-actions__check {
  flex-shrink: 0; margin-top: 1px;
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fffdf5;
  border: 1.5px solid #d8b64a;
  border-radius: 40% 60% 55% 45% / 45% 40% 60% 55%;
  color: #c98a1c;
}
.daily-actions__note { font-size: 13px; color: #7a6326; font-style: italic; margin: 0; }
.daily-actions__item-content { flex: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.daily-actions__sample-link {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; padding: 0;
  font-family: var(--font-label); font-size: 13px; font-weight: 700;
  color: #97710f; text-decoration: underline; text-underline-offset: 2px;
  cursor: pointer; touch-action: manipulation;
}
.daily-actions__sample-link svg { flex-shrink: 0; }

/* ---------- modal overlay ---------- */
.overlay-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 22, 24, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 200;
  animation: fadeIn .2s ease;
}
.overlay-panel {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 30px 22px 22px;
  max-width: 420px;
  width: 100%;
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  text-align: left;
  box-shadow: var(--shadow);
}
.overlay-panel__close {
  position: absolute;
  top: 12px; right: 12px;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 0;
  background: var(--surface-alt);
  color: var(--body-soft);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  touch-action: manipulation;
}
.overlay-panel__text {
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--body);
  margin: 0 0 16px;
}
.overlay-panel .audio-player { margin: 0 0 16px; }
.overlay-panel .audio-player:last-child, .overlay-panel__text:last-child { margin-bottom: 0; }
body.overlay-open { overflow: hidden; }

.plan-reveal-onscroll { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.plan-reveal-onscroll.is-in-view { opacity: 1; transform: translateY(0); }

.typewriter-cursor::after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 0.9em;
  margin-left: 2px;
  vertical-align: text-bottom;
  background: var(--teal);
  animation: blink .8s step-start infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- loading / analysis screen ---------- */
.loading-screen { padding-top: 48px; }
.loading-spinner {
  width: 44px; height: 44px;
  margin: 0 auto 28px;
  border-radius: 50%;
  border: 3px solid var(--line);
  border-top-color: var(--teal);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-message {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  min-height: 24px;
  opacity: 0;
  transition: opacity .15s ease;
}
.loading-message.is-visible { opacity: 1; }
.loading-status {
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 600;
  color: var(--body-soft);
  margin: 0 0 20px;
}
.loading-chip {
  margin: 24px auto 0;
  max-width: 320px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--body-soft);
  min-height: 20px;
  opacity: 0;
  transition: opacity .15s ease;
}
.loading-chip.is-visible { opacity: 1; }

.loading-carousel { max-width: 320px; margin: 28px auto 0; min-height: 66px; display: flex; align-items: center; justify-content: center; }
.loading-carousel__text {
  width: 100%;
  margin: 0;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 15.5px;
  color: var(--ink);
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  opacity: 0;
  transition: opacity .15s ease;
}
.loading-carousel__text.is-visible { opacity: 1; }
.loading-dots { display: flex; justify-content: center; gap: 6px; margin-top: 16px; }
.loading-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--line); transition: background-color .2s ease; }
.loading-dot.is-active { background: var(--teal); }

/* ---------- info body ---------- */
.info-body { white-space: pre-line; text-align: left; }

.info-quote-card {
  background: var(--teal-tint);
  border-radius: var(--radius);
  padding: 20px;
  margin: 0 0 20px;
  text-align: left;
}
.info-quote {
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(18px, 4.6vw, 21px);
  line-height: 1.35;
  color: var(--ink);
  text-align: left;
}
.info-quote::before { content: '\201C'; }
.info-quote::after { content: '\201D'; }
.info-quote__source {
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 600;
  color: var(--body-soft);
  margin: 0;
  text-align: left;
}

/* ---------- results ---------- */
.quiz-result__preheading {
  font-family: var(--font-label);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: var(--body-soft);
  text-align: left;
  margin: 0 0 8px;
}
.quiz-result__title {
  font-size: clamp(27px, 7.2vw, 34px);
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0 0 16px;
  text-align: left;
}
.quiz-result__help {
  background: var(--teal-tint);
  border-radius: var(--radius);
  padding: 20px;
  text-align: left;
  margin: 0 0 20px;
}
.quiz-result__help p:last-child { margin-bottom: 0; }
.results-bullets { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; text-align: left; }
.results-bullets li {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 14px 16px; font-size: 15px;
}
.results-bullets li svg { flex-shrink: 0; margin-top: 4px; color: var(--teal-dark); }

.disclaimer {
  font-size: 12px;
  color: var(--body-soft);
  margin: 16px 0 0;
  line-height: 1.5;
  text-align: left;
}

/* ---------- form ---------- */
.quiz-form { text-align: left; display: grid; gap: 16px; margin: 20px 0; }
.quiz-form__field { display: grid; gap: 6px; }
.quiz-form__field label {
  font-family: var(--font-label); font-size: 13px; font-weight: 600; color: var(--body-soft);
}
.quiz-form__field input {
  font-family: var(--font-body);
  font-size: 16px;
  padding: 12px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
}
.quiz-form__field input:focus { outline: none; border-color: var(--teal); }
.quiz-form__phone { display: flex; }
.quiz-form__phone-prefix {
  display: flex; align-items: center;
  padding: 12px 12px;
  font-family: var(--font-body); font-size: 16px; color: var(--body-soft);
  background: var(--surface-alt);
  border: 1.5px solid var(--line); border-right: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  white-space: nowrap;
}
.quiz-form__phone input { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; flex: 1; min-width: 0; }
.quiz-form__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 13.5px;
  color: var(--body-soft);
  line-height: 1.45;
  cursor: pointer;
}
.quiz-form__checkbox input { flex-shrink: 0; margin-top: 3px; width: 16px; height: 16px; accent-color: var(--teal); }

/* ---------- plan: pricing box ---------- */
.pricing-box {
  background: var(--surface);
  border: 1.5px solid var(--teal);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px 20px;
  margin: 8px 0 20px;
  text-align: left;
}
.pricing-box__title {
  font-family: var(--font-label);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin: 0 0 8px;
}
.pricing-box__headline {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.4;
  color: var(--ink);
  margin: 0 0 8px;
}
.pricing-box__subline {
  font-family: var(--font-label);
  font-size: 14px;
  font-weight: 600;
  color: var(--body-soft);
  margin: 0 0 20px;
}
.pricing-box__pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 14px auto 0;
  width: fit-content;
  background: var(--teal-tint);
  color: var(--teal-dark);
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 100px;
}
.pricing-box__pill svg { flex-shrink: 0; }
.pricing-box__disclaimer {
  font-family: var(--font-body);
  font-size: 12px;
  font-style: italic;
  color: var(--body-soft);
  text-align: center;
  margin: 14px 0 0;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #f2f4f5;
    --body: #c7ccd1;
    --body-soft: #9aa2a9;
    --bg: #101314;
    --surface: #1a1e20;
    --surface-alt: #202527;
    --line: #2c3234;
    --teal-tint: #17282b;
  }
}
