/* ============================================================
   Rawscals Meal Plan Quiz — mobile-first
   Design system: Claude Design variant 2c "Paw Trail"
   (Rawscals Quiz Options.dc.html — deep maroon #6B1020 on warm
   cream #FFF6EC, Figtree, pill CTA, paw-trail progress, sage
   encouragement card, stepper inputs.)
   ============================================================ */

:root {
  --burgundy: #6B1020;          /* 2c primary maroon */
  --burgundy-deep: #4A0C17;     /* 2c heading maroon */
  --burgundy-ink: #4A0C17;
  --burgundy-tint: #FBEDE2;
  --brand: #710D1F;             /* sampled from the real logo */
  --cream: #FFF6EC;             /* 2c page cream */
  --cream-2: #F7EDE4;
  --blush: #F4E3D6;             /* 2c surface blush */
  --blush-deep: #EBD8CA;
  --track: #F0DFD0;
  --pale-num: #D3B8A8;
  --sage-bg: #F1F4EC;
  --sage-badge: #C7D2BE;
  --sage-ink: #3F5136;
  --sage-body: #5A6A50;
  --ink: #2A1F1C;
  --muted: #806258;
  --muted-2: #A08276;
  --line: #EBD8CA;
  --white: #FFFFFF;
  --gold: #C99B4A;
  --green-ok: #2F7A57;
  --radius: 20px;
  --radius-lg: 24px;
  --shadow-soft: 0 10px 30px -12px rgba(74, 12, 23, 0.18);
  --shadow-card: 0 4px 18px -6px rgba(74, 12, 23, 0.10);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --font-body: 'Figtree', system-ui, sans-serif;
  --font-hand: 'Caveat', cursive;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body { height: 100%; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.45;
  overscroll-behavior-y: none;
}

/* ---------- App frame ---------- */

.app {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  background: var(--cream);
  overflow: hidden;
}

/* ---------- Promo bar ---------- */

.promo-bar {
  background: var(--burgundy);
  color: #F7E1D3;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 11px 12px;
  flex-shrink: 0;
  z-index: 5;
}
.promo-bar strong { color: #fff; font-weight: 700; }
.promo-bar svg { flex-shrink: 0; }

/* ---------- Header ---------- */

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px 0;
  flex-shrink: 0;
  z-index: 5;
  color: var(--burgundy);
}

.icon-btn {
  border: none;
  background: transparent;
  color: var(--burgundy);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 12px;
  transition: background 160ms, opacity 220ms, transform 160ms;
  font-family: var(--font-body);
}
.back-btn { width: 40px; height: 40px; margin-left: -8px; }
.icon-btn:active { transform: scale(0.9); background: var(--blush); }
.back-btn.hidden { opacity: 0; pointer-events: none; }

.help-btn { width: 40px; height: 40px; margin-right: -8px; color: var(--burgundy); }

.logo { display: flex; align-items: center; justify-content: center; user-select: none; }
.logo-img { height: 60px; width: auto; display: block; }  /* 52px + 15% */

/* ---------- Paw Trail (2c progress) ---------- */

.trail { padding: 14px 22px 0; flex-shrink: 0; z-index: 5; transition: opacity 240ms; }
.trail.hidden { opacity: 0; pointer-events: none; }

/* stage chips (her design selection): done ✓ blush · current filled maroon · upcoming dashed */
.stage-chips { display: flex; gap: 8px; margin-bottom: 16px; }
.s-chip {
  flex: 1;
  border-radius: 16px;
  padding: 9px 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.s-chip .sc-kick {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  min-height: 15px;
}
.s-chip .sc-name { font-size: 13px; font-weight: 800; line-height: 1.18; letter-spacing: -0.01em; }
.s-chip.done { background: var(--blush); color: var(--muted); }
.s-chip.done .sc-kick { color: var(--burgundy); }
.s-chip.done .sc-kick svg { width: 13px; height: 13px; }
.s-chip.current { background: var(--burgundy); color: #fff; box-shadow: var(--shadow-card); }
.s-chip.current .sc-kick { color: #F2C9A8; }
.s-chip.todo { border: 1.5px dashed var(--blush-deep); color: var(--muted-2); padding: 7.5px 10.5px 8.5px; }
.s-chip.todo .sc-kick { color: var(--muted-2); }

.trail-bar-row { display: flex; align-items: center; gap: 12px; }
.trail-bar-row .trail-track { flex: 1; }
.trail-count { font-size: 12px; font-weight: 700; color: var(--muted-2); white-space: nowrap; margin-left: 6px; }

.trail-track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: var(--track);
}
.trail-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5%;
  border-radius: 999px;
  background: var(--burgundy);
  transition: width 620ms var(--ease-out);
}
/* the reward at the end of the bar (2d idea): section 1 walks toward
   dog health, section 2 toward the meat */
.trail-goal {
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--track);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  user-select: none;
}
.trail-paw {
  position: absolute;
  top: 50%;
  left: 5%;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--cream);
  border: 2px solid var(--burgundy);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--burgundy);
  transition: left 620ms var(--ease-out);
  animation: dcpulse 2.2s ease-in-out infinite, dcring 2.2s ease-in-out infinite;
}
@keyframes dcpulse { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -50%) scale(1.06); } }
@keyframes dcring {
  0% { box-shadow: 0 0 0 0 rgba(107, 16, 32, 0.35); }
  70% { box-shadow: 0 0 0 12px rgba(107, 16, 32, 0); }
  100% { box-shadow: 0 0 0 0 rgba(107, 16, 32, 0); }
}

/* ---------- Stage (screen container) ---------- */

.stage {
  flex: 1;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.screen {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;   /* the breed silhouette bleeds off the right edge on purpose */
  -webkit-overflow-scrolling: touch;
  padding: 22px 22px 30px;
  display: flex;
  flex-direction: column;
  isolation: isolate;   /* lets the breed silhouette sit at z -1, behind content but above the cream */
}
.screen::-webkit-scrollbar { display: none; }
.screen > * { flex-shrink: 0; }   /* children must never squash — the screen scrolls instead */

/* screen transitions — Lyka-style push: pure slide, NO fade (ref: mobile recording
   ~18.0s, the incoming screen arrives as a complete opaque unit) */
.screen { background: var(--cream); }
.screen.enter-right { animation: slideInRight 420ms cubic-bezier(0.32, 0.72, 0, 1) both; z-index: 2; }
.screen.enter-left  { animation: slideInLeft  420ms cubic-bezier(0.32, 0.72, 0, 1) both; z-index: 2; }
.screen.exit-left   { animation: slideOutLeft  420ms cubic-bezier(0.32, 0.72, 0, 1) both; z-index: 1; }
.screen.exit-right  { animation: slideOutRight 420ms cubic-bezier(0.32, 0.72, 0, 1) both; z-index: 1; }
@keyframes slideInRight { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes slideInLeft  { from { transform: translateX(-100%); } to { transform: translateX(0); } }
@keyframes slideOutLeft  { from { transform: translateX(0); } to { transform: translateX(-34%); } }
@keyframes slideOutRight { from { transform: translateX(0); } to { transform: translateX(34%); } }

.st { animation: fadeUp 480ms var(--ease-out) both; }
/* sliding screens arrive whole — no per-element fade during a push */
.screen.enter-right .st, .screen.enter-left .st { animation: none; }
@keyframes fadeUp { from { transform: translateY(14px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ---------- Question typography (2c: left-aligned, heavy, tight) ---------- */

.q-title {
  font-size: 34px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--burgundy-deep);
  text-align: left;
  margin: 12px 0 0;
  text-wrap: pretty;
}
.q-sub {
  text-align: left;
  color: var(--muted);
  font-size: 14.5px;
  margin: 10px 0 6px;
  font-weight: 500;
}
.q-spacer { height: 12px; }

/* ---------- Inputs ---------- */

.field {
  width: 100%;
  padding: 17px 18px;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 180ms, box-shadow 180ms;
  margin-top: 14px;
}
.field::placeholder { color: #C9AE9E; font-weight: 500; }
.field:focus { border-color: var(--burgundy); box-shadow: 0 0 0 4px rgba(107, 16, 32, 0.08); }

.field-row { position: relative; margin-top: 14px; }
.field-row .field { margin-top: 0; }
.field-suffix {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-2);
  font-weight: 700;
  font-size: 14px;
  pointer-events: none;
}

.hint-line {
  text-align: left;
  font-size: 13.5px;
  color: var(--green-ok);
  font-weight: 600;
  margin-top: 10px;
  min-height: 18px;
}

/* ---------- Stepper cards (2c) ---------- */

.step-card {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  transition: border-color 220ms;
}
.step-card.active { border-color: var(--burgundy); }
.sc-left { display: flex; align-items: baseline; gap: 9px; min-width: 0; }
.sc-num {
  width: 96px;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--pale-num);
  transition: color 220ms;
  -moz-appearance: textfield;
}
.sc-num::-webkit-outer-spin-button, .sc-num::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.step-card.active .sc-num { color: var(--burgundy); }
.sc-unit { font-size: 14px; font-weight: 700; color: var(--muted-2); }
.sc-btns { display: flex; gap: 9px; flex-shrink: 0; }
.sc-btn {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: none;
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 130ms, background 200ms, color 200ms;
}
.sc-btn:active { transform: scale(0.9); }
.sc-btn.minus { background: var(--blush); color: var(--burgundy); }
.sc-btn.plus  { background: var(--blush); color: var(--burgundy); }
.step-card.active .sc-btn.plus { background: var(--burgundy); color: var(--cream); }
.step-card:not(.active) .sc-btn.minus { background: var(--cream-2); color: #C9AE9E; }

/* ---------- Info / reassurance cards ---------- */

.info-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--blush);
  border: none;
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
  text-align: left;
}
.info-card .ic-badge {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--white);
  color: var(--burgundy);
  display: flex;
  align-items: center;
  justify-content: center;
}
.info-card.center { flex-direction: row; text-align: left; gap: 14px; }
.info-card .ic-title { font-weight: 800; color: var(--burgundy-deep); font-size: 13.5px; }

.why-card { background: var(--sage-bg); color: var(--sage-body); }
.why-card .ic-title { color: var(--sage-ink); }
.why-card .ic-badge { background: var(--sage-badge); color: var(--sage-ink); }

/* the 2c "paws to go" card */
.paws-card {
  display: flex;
  gap: 14px;
  align-items: center;
  background: var(--sage-bg);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-top: 22px;
}
.paws-card .pc-badge {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--sage-badge);
  color: var(--sage-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.paws-card .pc-badge svg { width: 19px; height: 19px; }
.trail-paw svg { width: 16px; height: 16px; }
.paws-card .pc-title { font-size: 13.5px; font-weight: 800; color: var(--sage-ink); }
.paws-card .pc-body { font-size: 13.5px; line-height: 1.45; color: var(--sage-body); margin-top: 3px; }

/* ---------- Breed silhouette watermark (age & weight screens) ---------- */

.breed-sil {
  margin: 14px 2px -12px auto;   /* in flow after the cards: nothing can ever cover or clip the dog */
  align-self: flex-end;
  width: 168px;
  color: var(--burgundy);
  opacity: 0.07;
  pointer-events: none;
}
.breed-sil svg { width: 100%; height: auto; display: block; transform: scaleX(-1); }  /* face right */

/* ---------- Honesty panel (allergy conflict) ---------- */

.honesty-panel {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  background: var(--burgundy-tint);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-top: 16px;
  animation: proofIn 480ms var(--ease-out) both;
}
.honesty-panel .hp-badge {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--white);
  color: var(--burgundy);
  display: flex;
  align-items: center;
  justify-content: center;
}
.honesty-panel .hp-title { font-size: 14px; font-weight: 800; color: var(--burgundy-deep); }
.honesty-panel .hp-body { font-size: 13.5px; color: var(--muted); line-height: 1.55; margin-top: 3px; font-weight: 500; }

/* ---------- Choice cards ---------- */

.opt-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-top: 12px;
  cursor: pointer;
  font-family: var(--font-body);
  position: relative;
  transition: border-color 200ms, background 200ms, transform 160ms, box-shadow 200ms;
}
.opt-card:active { transform: scale(0.985); }
.opt-card .oc-art {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--blush);
  color: var(--burgundy);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 200ms;
}
.opt-card .oc-title { font-size: 16.5px; font-weight: 800; color: var(--ink); letter-spacing: -0.01em; }
.opt-card .oc-sub { font-size: 13.5px; color: var(--muted); margin-top: 2px; font-weight: 500; }
.opt-card .oc-meta { font-size: 12.5px; color: var(--muted-2); margin-top: 3px; font-weight: 700; }
.opt-card .oc-check {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--burgundy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.4);
  transition: all 260ms var(--ease-out);
}
.opt-card.selected {
  border-color: var(--burgundy);
  background: var(--burgundy-tint);
  box-shadow: var(--shadow-card);
}
.opt-card.selected .oc-art { background: #F0D9C8; }
.opt-card.selected .oc-check { opacity: 1; transform: scale(1); }

/* simple stacked options */
.opt-plain {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 15px 18px;
  margin-top: 12px;
  font-family: var(--font-body);
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 200ms, background 200ms, transform 140ms;
}
.opt-plain:active { transform: scale(0.98); }
.opt-plain.selected {
  border-color: var(--burgundy);
  background: var(--burgundy-tint);
  color: var(--burgundy);
  font-weight: 800;
}
.opt-plain.ghost { background: transparent; border-style: dashed; color: var(--muted); }
.opt-plain.ghost.selected { border-style: solid; }

/* ---------- Chips ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-start; margin-top: 16px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  transition: all 200ms var(--ease-out);
}
.chip:active { transform: scale(0.94); }
.chip .chip-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--cream-2);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all 200ms;
}
.chip .chip-dot svg { width: 11px; height: 11px; opacity: 0; transform: scale(0.4); transition: all 200ms var(--ease-out); }
.chip.selected { border-color: var(--burgundy); background: var(--burgundy-tint); color: var(--burgundy-deep); }
.chip.selected .chip-dot { background: var(--burgundy); border-color: var(--burgundy); }
.chip.selected .chip-dot svg { opacity: 1; transform: scale(1); }

/* ---------- Callout ---------- */

.callout {
  position: relative;
  background: var(--sage-bg);
  border: none;
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 16px 0 0;
  font-size: 13.5px;
  color: var(--sage-body);
  text-align: left;
  line-height: 1.5;
}
.callout strong { color: var(--sage-ink); }
.callout::before { display: none; }

/* ---------- Segmented toggle (2c) ---------- */

.seg {
  display: flex;
  background: var(--blush);
  border: none;
  border-radius: 999px;
  padding: 5px;
  margin: 18px 0 0;
  width: 100%;
}
.seg button {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: var(--muted-2);
  padding: 11px 0;
  border-radius: 999px;
  cursor: pointer;
  transition: all 220ms var(--ease-out);
}
.seg button.on {
  background: var(--white);
  color: var(--burgundy);
  font-weight: 800;
  box-shadow: 0 4px 10px -6px rgba(74, 12, 23, 0.5);
}

/* ---------- Breed type-ahead ---------- */

.breed-wrap { position: relative; margin-top: 2px; }
.breed-list {
  margin-top: 8px;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  max-height: 240px;
  overflow-y: auto;
  box-shadow: var(--shadow-soft);
  display: none;
}
.breed-list.open { display: block; animation: fadeUp 240ms var(--ease-out) both; }
.breed-item {
  padding: 13px 18px;
  font-size: 15.5px;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 1px solid var(--cream-2);
  transition: background 140ms;
}
.breed-item:last-child { border-bottom: none; }
.breed-item:active, .breed-item:hover { background: var(--burgundy-tint); }
.breed-item em { font-style: normal; color: var(--burgundy); font-weight: 800; }

/* ---------- Promise / social-proof panel ---------- */

.proof-panel {
  background: var(--burgundy-deep);
  color: #F7E1D3;
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-top: 18px;
  overflow: hidden;
  animation: proofIn 520ms var(--ease-out) both;
  box-shadow: var(--shadow-soft);
}
@keyframes proofIn { from { transform: translateY(18px) scale(0.97); opacity: 0; } to { transform: none; opacity: 1; } }
.proof-panel .pp-head { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; color: #fff; line-height: 1.2; }
.proof-panel .pp-body { font-size: 14px; margin-top: 8px; line-height: 1.55; opacity: 0.92; font-weight: 500; }
.proof-panel .pp-tag {
  display: inline-block;
  margin-top: 12px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* ---------- ZIP check ---------- */

.zip-check-btn {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 15px;
  border: none;
  border-radius: 999px;
  background: var(--burgundy-deep);
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: opacity 200ms, transform 140ms;
}
.zip-check-btn:active { transform: scale(0.98); }
.zip-check-btn:disabled { opacity: 0.4; cursor: default; }
.zip-check-btn .spin {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2.5px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: initSpin 700ms linear infinite;
  vertical-align: -3px;
  margin-right: 8px;
}
.zip-ok {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--sage-bg);
  border: none;
  color: var(--sage-ink);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  animation: fadeUp 400ms var(--ease-out) both;
}
.zip-ok .zo-badge {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--green-ok); color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  animation: dotPop 500ms var(--ease-out);
}
@keyframes dotPop { 0% { transform: scale(1); } 45% { transform: scale(1.28); } 100% { transform: scale(1); } }

/* ---------- Footer CTA (2c pill) ---------- */

.footer {
  flex-shrink: 0;
  padding: 14px 22px calc(18px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--cream) 74%, rgba(255, 246, 236, 0));
  z-index: 5;
}

.cta {
  display: block;
  width: 100%;
  padding: 18px;
  border: none;
  border-radius: 999px;
  background: var(--burgundy);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 12px 26px -10px rgba(74, 12, 23, 0.5);
  transition: opacity 240ms, transform 150ms, background 200ms;
}
.cta:active:not(:disabled) { transform: scale(0.975); }
.cta:disabled { opacity: 0.38; cursor: default; box-shadow: none; }
.cta.pulse { animation: ctaPulse 600ms var(--ease-out); }
@keyframes ctaPulse { 0% { transform: scale(1); } 40% { transform: scale(1.025); } 100% { transform: scale(1); } }

/* ---------- Calculating overlay ---------- */

.calc {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: #E7ECDD;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 420ms ease;
}
.calc.show { opacity: 1; pointer-events: auto; }

.calc-title {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--sage-ink);
  text-align: center;
  margin-bottom: 26px;
}
.calc-dots i { animation: dotBlink 1.2s infinite; font-style: normal; }
.calc-dots i:nth-child(2) { animation-delay: 0.2s; }
.calc-dots i:nth-child(3) { animation-delay: 0.4s; }
@keyframes dotBlink { 0%, 60%, 100% { opacity: 0.25; } 30% { opacity: 1; } }

.calc-cloud {
  position: relative;
  width: min(84vw, 360px);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cloudIn 700ms var(--ease-out) both;
}
@keyframes cloudIn { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.calc-cloud::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='%23FFFDF4'%3E%3Ccircle cx='100' cy='38' r='33'/%3E%3Ccircle cx='144' cy='56' r='33'/%3E%3Ccircle cx='162' cy='100' r='33'/%3E%3Ccircle cx='144' cy='144' r='33'/%3E%3Ccircle cx='100' cy='162' r='33'/%3E%3Ccircle cx='56' cy='144' r='33'/%3E%3Ccircle cx='38' cy='100' r='33'/%3E%3Ccircle cx='56' cy='56' r='33'/%3E%3Ccircle cx='100' cy='100' r='64'/%3E%3C/g%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.calc-center {
  position: relative;
  z-index: 2;
  width: 118px;
  height: 118px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  filter: drop-shadow(0 8px 14px rgba(60, 60, 40, 0.18));
  animation: dotPop 600ms var(--ease-out) 500ms both;
}
.calc-center .pack-svg { width: 118px; height: auto; }

.calc-ring { position: absolute; inset: 0; z-index: 2; }
.calc-ing {
  position: absolute;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #FFFDF4;
  box-shadow: 0 5px 14px -4px rgba(70, 60, 30, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 29px;
  animation: ingPop 520ms var(--ease-out) both, ingFloat 3.4s ease-in-out infinite alternate;
}
.calc-ing img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; display: block; }
@keyframes ingPop { from { transform: scale(0); opacity: 0; } 70% { transform: scale(1.14); opacity: 1; } to { transform: scale(1); opacity: 1; } }
@keyframes ingFloat { from { margin-top: 0; } to { margin-top: -8px; } }

.calc-note {
  position: absolute;
  z-index: 3;
  bottom: 5%;
  left: 50%;
  transform: translateX(-38%);
  font-family: var(--font-hand);
  font-size: 25px;
  font-weight: 600;
  color: var(--sage-ink);
  text-align: left;
  line-height: 0.95;
  opacity: 0;
  transition: opacity 400ms ease;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.calc-note.show { opacity: 1; }
.calc-arrow { width: 34px; height: 38px; color: var(--sage-ink); }

/* ---------- Results ---------- */

.screen.bare { padding: 0; }

.hero {
  background:
    radial-gradient(280px 200px at 88% -10%, rgba(255, 255, 255, 0.07), transparent 70%),
    linear-gradient(168deg, #5E1120 0%, var(--burgundy-deep) 100%);
  color: #fff;
  padding: 34px 24px 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 34px 34px;
}
.hero-sparkle { position: absolute; color: rgba(247, 225, 211, 0.85); animation: sparkle 2.6s ease-in-out infinite alternate; }
@keyframes sparkle { from { transform: scale(0.85) rotate(-6deg); opacity: 0.5; } to { transform: scale(1.1) rotate(8deg); opacity: 1; } }

.hero-title {
  font-size: 33px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.hero-pills { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; }
.hero-pill {
  background: rgba(255, 246, 236, 0.14);
  border: 1px solid rgba(255, 246, 236, 0.28);
  color: #F7E9DD;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  animation: fadeUp 460ms var(--ease-out) both;
}
.hero-claims {
  display: flex;
  justify-content: center;
  gap: 26px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 246, 236, 0.2);
}
.hero-claim { display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: #F2DFD2; }
.hero-claim svg { width: 26px; height: 26px; }

.res-body { padding: 26px 22px 30px; }

.sec-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--burgundy-deep);
  text-align: center;
}
.sec-sub { text-align: center; color: var(--muted); font-size: 14.5px; margin-top: 6px; font-weight: 500; }

.plan-card {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 18px;
  box-shadow: var(--shadow-card);
}
.plan-card .pc-banner {
  background: var(--burgundy-tint);
  color: var(--burgundy);
  font-size: 13.5px;
  font-weight: 800;
  text-align: center;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.plan-card .pc-body { padding: 20px; }

.pouches { display: flex; justify-content: center; gap: 7px; margin: 6px 0 14px; flex-wrap: wrap; }
.pouch-svg { width: 44px; height: auto; animation: fadeUp 420ms var(--ease-out) both; }

/* pouches dropping into the starter box (results reveal) */
.box-scene { position: relative; height: 196px; margin: 2px 0 14px; overflow: hidden; }
.box-back {
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 236px;
}
.box-pouches { position: absolute; inset: 0; }
.box-scene .bp {
  position: absolute;
  bottom: 80px;   /* pouches stand tall in the box: only the lower third is hidden by the front wall */
  animation: pouchDrop 680ms cubic-bezier(0.34, 1.35, 0.64, 1) both;
}
.box-scene .bp .pouch-svg { animation: none; filter: drop-shadow(0 3px 5px rgba(74, 12, 23, 0.22)); }
@keyframes pouchDrop {
  from { transform: translateX(-50%) translateY(-160px) rotate(var(--rot, 0deg)); opacity: 0; }
  25% { opacity: 1; }
  to { transform: translateX(-50%) translateY(0) rotate(var(--rot, 0deg)); opacity: 1; }
}
.box-front {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 236px;
}
@media (prefers-reduced-motion: reduce) {
  .box-scene .bp { animation: none; opacity: 1; transform: translateX(-50%) rotate(var(--rot, 0deg)); }
}

.plan-stat { text-align: center; }
.plan-stat .ps-big { font-size: 27px; font-weight: 800; letter-spacing: -0.03em; color: var(--burgundy-deep); }
.plan-stat .ps-sub { color: var(--muted); font-size: 14.5px; margin-top: 3px; font-weight: 500; }

.plan-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}
.plan-price .pp-now { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; color: var(--burgundy); }
.plan-price .pp-per { font-size: 15px; color: var(--muted); font-weight: 600; }
.plan-price .pp-was { font-size: 15.5px; color: var(--pale-num); text-decoration: line-through; font-weight: 600; }

.badge-off {
  display: inline-block;
  background: var(--burgundy);
  color: #fff;
  font-size: 12.5px;
  font-weight: 800;
  border-radius: 10px;
  padding: 5px 10px;
  letter-spacing: 0.04em;
}

.plan-note {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.5;
  font-weight: 500;
}
.plan-note strong { color: var(--burgundy-deep); }

.target-line {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  background: var(--sage-bg);
  border-radius: 14px;
  padding: 11px 14px;
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--sage-ink);
  font-weight: 600;
}

.prod-card {
  display: flex;
  gap: 16px;
  align-items: center;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-top: 14px;
  box-shadow: var(--shadow-card);
}
.prod-card .pr-art { flex-shrink: 0; width: 84px; }
.prod-card .pr-kicker { font-size: 12px; font-weight: 800; color: var(--green-ok); text-transform: uppercase; letter-spacing: 0.08em; }
.prod-card .pr-name { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; color: var(--burgundy-deep); margin-top: 2px; }
.prod-card .pr-desc { font-size: 13.5px; color: var(--muted); margin-top: 5px; line-height: 1.5; font-weight: 500; }

/* FAQ */
.faq { margin-top: 26px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-top: 10px;
  overflow: hidden;
}
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  text-align: left;
  padding: 15px 16px;
  cursor: pointer;
}
.faq-q svg { flex-shrink: 0; width: 16px; height: 16px; color: var(--burgundy); transition: transform 280ms var(--ease-out); }
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 360ms var(--ease-out); }
.faq-a-inner { padding: 0 16px 15px; font-size: 13.5px; color: var(--muted); line-height: 1.6; font-weight: 500; }

/* ---------- Plan / checkout ---------- */

.sum-card {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-top: 16px;
  box-shadow: var(--shadow-card);
}
.sum-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 14px;
  border-bottom: 1.5px dashed var(--line);
}
.sum-head .sh-name { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; color: var(--burgundy-deep); }
.sum-head .sh-sub { font-size: 13px; color: var(--muted-2); font-weight: 600; }

.sum-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0 0;
}
.sum-row .sr-label { font-size: 15px; font-weight: 700; color: var(--ink); }
.sum-row .sr-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; line-height: 1.45; font-weight: 500; }
.sum-row .sr-val { font-size: 15px; font-weight: 800; color: var(--ink); white-space: nowrap; }
.sum-row .sr-val.free { color: var(--green-ok); }
.sum-row .sr-was { font-size: 12.5px; color: var(--pale-num); text-decoration: line-through; display: block; text-align: right; font-weight: 600; }

.disc-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--sage-bg);
  border: 1px solid var(--sage-badge);
  color: var(--sage-ink);
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  padding: 7px 12px;
  cursor: default;
}
.disc-chip button {
  border: none;
  background: transparent;
  color: var(--sage-ink);
  font-size: 15px;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
}
.disc-restore {
  background: none;
  border: none;
  font-family: var(--font-body);
  color: var(--burgundy);
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.sum-total {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1.5px dashed var(--line);
  font-size: 17.5px;
  font-weight: 800;
  color: var(--burgundy-deep);
}

.after-box {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  line-height: 1.55;
  font-weight: 500;
}

.thrive-card {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-top: 16px;
  box-shadow: var(--shadow-card);
}
.thrive-card .tc-title { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; color: var(--burgundy-deep); margin-bottom: 12px; }
.tick-row { display: flex; align-items: flex-start; gap: 11px; margin-top: 10px; font-size: 14.5px; color: var(--muted); font-weight: 500; }
.tick-row strong { color: var(--ink); }
.tick-row .tk {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--green-ok);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.tick-row .tk svg { width: 12px; height: 12px; }
.tick-row.plain .tk { background: transparent; color: var(--green-ok); }

.flex-feed { margin-top: 22px; text-align: center; }
.flex-feed .ff-title { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; color: var(--burgundy-deep); }
.flex-list { margin-top: 10px; display: inline-flex; flex-direction: column; gap: 8px; text-align: left; }

.trust-line {
  text-align: center;
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-weight: 500;
}
.trust-line a { color: var(--burgundy); font-weight: 700; }

/* how plan works expander */
.how-works { margin-top: 4px; border-top: 1.5px solid var(--cream-2); }
.how-works .faq-q { justify-content: center; color: var(--burgundy); font-weight: 800; }
.how-step { display: flex; gap: 12px; margin-top: 12px; font-size: 13.5px; color: var(--muted); line-height: 1.5; text-align: left; font-weight: 500; }
.how-step .hs-n {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--blush);
  color: var(--burgundy);
  font-size: 12.5px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.how-step strong { color: var(--ink); }

/* ---------- Gate ---------- */

.gate-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
  text-align: left;
  font-weight: 500;
}
.gate-check {
  appearance: none;
  flex-shrink: 0;
  width: 21px;
  height: 21px;
  border-radius: 7px;
  border: 1.5px solid var(--line);
  background: var(--white);
  cursor: pointer;
  position: relative;
  margin-top: 1px;
  transition: all 180ms;
}
.gate-check:checked { background: var(--burgundy); border-color: var(--burgundy); }
.gate-check:checked::after {
  content: '';
  position: absolute;
  inset: 4px 5px 7px;
  border-left: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: rotate(-45deg);
}
.gate-note a { color: var(--burgundy); font-weight: 700; }

/* ---------- Links ---------- */

.link-line { text-align: left; margin-top: 20px; font-size: 14.5px; }
.link-line button {
  background: none;
  border: none;
  font-family: var(--font-body);
  color: var(--burgundy);
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
.link-line button svg { vertical-align: -2px; margin-left: 3px; }

/* ---------- Modal ---------- */

.modal-wrap { position: fixed; inset: 0; z-index: 80; display: none; align-items: center; justify-content: center; padding: 24px; }
.modal-wrap.show { display: flex; }
.modal-veil { position: absolute; inset: 0; background: rgba(42, 31, 28, 0.5); backdrop-filter: blur(3px); animation: veilIn 260ms ease both; }
@keyframes veilIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  position: relative;
  background: var(--cream);
  border-radius: 28px;
  padding: 28px 24px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: 0 30px 80px -20px rgba(40, 10, 16, 0.5);
  animation: modalIn 420ms var(--ease-out) both;
}
@keyframes modalIn { from { transform: translateY(30px) scale(0.94); opacity: 0; } to { transform: none; opacity: 1; } }
.modal .m-emoji { font-size: 44px; }
.modal .m-title { font-size: 23px; font-weight: 800; letter-spacing: -0.02em; color: var(--burgundy-deep); margin-top: 10px; }
.modal .m-body { font-size: 14.5px; color: var(--muted); margin-top: 8px; line-height: 1.55; font-weight: 500; }
.modal .m-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.modal .m-primary {
  border: none;
  background: var(--burgundy);
  color: #fff;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 800;
  border-radius: 999px;
  padding: 15px;
  cursor: pointer;
}
.modal .m-secondary {
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px;
}

/* ---------- Confetti ---------- */

.confetti-layer { position: fixed; inset: 0; pointer-events: none; z-index: 70; overflow: hidden; }
.confetti-bit {
  position: absolute;
  top: -18px;
  width: 9px;
  height: 14px;
  border-radius: 2.5px;
  animation: confFall linear both;
}
@keyframes confFall {
  from { transform: translateY(-20px) rotate(0deg); opacity: 1; }
  80% { opacity: 1; }
  to { transform: translateY(105vh) rotate(680deg); opacity: 0; }
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 96px;
  transform: translateX(-50%) translateY(20px);
  background: var(--burgundy-deep);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  padding: 11px 20px;
  z-index: 75;
  opacity: 0;
  transition: all 380ms var(--ease-out);
  box-shadow: var(--shadow-soft);
  white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-delay: 0s !important;
    transition-duration: 0.001s !important;
  }
}

@media (min-width: 480px) {
  .q-title { font-size: 38px; }
}
