/*
  Célpakk — Épülő ajánlati polc
  A válaszsín ugyanabban a kereskedőpultban alakul át ajánlati polccá.
  Konkrét termék csak a biztonsági ellenőrzés után, stabil eredménynél jelenik meg.
*/

:root {
  --canvas: #f4ebdb;
  --paper: #fffcf6;
  --paper-warm: #fff8e9;
  --cocoa: #2e1c15;
  --cocoa-soft: #725e52;
  --line-soft: rgba(46, 28, 21, 0.18);
  --amber: #ffd23f;
  --coral: #f2622e;
  --coral-pale: #ffd4c4;
  --green: #1cb375;
  --green-pale: #c7eedf;
  --sky: #3c9be0;
  --sky-pale: #cfe8fa;
  --display: "Titan One", "Gabarito", system-ui, sans-serif;
  --body: "Rubik", system-ui, -apple-system, sans-serif;
  --shell: 1360px;
  --content: 1180px;
  --gutter: clamp(16px, 3.2vw, 46px);
  --line: 2.5px solid var(--cocoa);
  --shadow: 6px 7px 0 rgba(46, 28, 21, 0.96);
  --shadow-small: 3px 4px 0 rgba(46, 28, 21, 0.96);
  --ease-stage: cubic-bezier(0.32, 0.72, 0.24, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  min-width: 320px;
  background: var(--canvas);
  color: var(--cocoa);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 18%, rgba(255, 210, 63, 0.2) 0 80px, transparent 81px),
    var(--canvas);
  color: var(--cocoa);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
input,
summary { font: inherit; }

button,
a[href],
summary { -webkit-tap-highlight-color: transparent; }

button { color: inherit; }
img, svg { display: block; }
img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }

:where(a, button, summary, input):focus-visible {
  outline: 4px solid var(--sky);
  outline-offset: 4px;
}

[data-state-heading]:focus,
[data-edit-heading]:focus,
[data-restart-heading]:focus,
[data-handoff-heading]:focus,
#alternative-title:focus,
#third-title:focus {
  outline: none;
  border-radius: 3px;
  box-shadow: 0 4px 0 -2px var(--sky);
}
.cp-goal [data-state-heading]:focus { box-shadow: 0 6px 0 -1px var(--sky); }

.cp-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;
}

/* Lifecycle */
.cp-app { min-height: 64vh; }
.cp-startup, .cp-no-script, .cp-stage { width: min(calc(100% - var(--gutter) * 2), var(--shell)); margin-inline: auto; }
.cp-startup, .cp-no-script {
  margin-top: clamp(28px, 5vw, 70px);
  margin-bottom: 70px;
  padding: clamp(28px, 5vw, 62px);
  border: var(--line);
  border-radius: 38px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.cp-startup h1, .cp-no-script h2 {
  max-width: 19ch;
  margin-bottom: 16px;
  font-family: var(--display);
  font-size: clamp(34px, 5vw, 68px);
  font-weight: 400;
  line-height: 0.98;
}
.cp-startup a, .cp-no-script a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  margin-top: 12px;
  padding: 10px 20px;
  border: var(--line);
  border-radius: 999px;
  background: var(--amber);
  box-shadow: var(--shadow-small);
  font-weight: 800;
  text-decoration: none;
}
.cp-stage { position: relative; padding: clamp(22px, 3.4vw, 46px) 0 clamp(64px, 8vw, 112px); }
.cp-view { position: relative; isolation: isolate; }
.cp-stage > [data-cp-view="current"] { position: relative; z-index: 2; }
.cp-stage.is-entering > [data-cp-view="current"],
.cp-stage.is-changing > [data-cp-view="current"] { animation: cp-view-enter 360ms var(--ease-stage) both; }
.cp-outgoing {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  animation: cp-view-exit 300ms var(--ease-stage) both;
}
.cp-outgoing-view, .cp-outgoing-view * { animation: none !important; transition: none !important; }
.cp-state-heading, [data-edit-heading], [data-restart-heading], [data-handoff-heading], #third-title { scroll-margin-top: 20px; }
.cp-state-heading {
  max-width: 18ch;
  margin-bottom: 14px;
  font-family: var(--display);
  font-size: clamp(38px, 5.2vw, 72px);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.025em;
}
.cp-status-label {
  margin-bottom: 9px;
  color: #9d3111;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.105em;
  text-transform: uppercase;
}
.cp-lede {
  max-width: 57ch;
  margin-bottom: 0;
  color: var(--cocoa-soft);
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 550;
  line-height: 1.43;
}
.cp-fine-print { color: var(--cocoa-soft); font-size: 13px; }

.cp-button, .cp-choice, .cp-primary-link, .cp-product-action {
  min-width: 44px;
  min-height: 48px;
  border: var(--line);
  cursor: pointer;
  font-weight: 800;
}
.cp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: 2px 3px 0 var(--cocoa);
}
.cp-button:hover, .cp-button:focus-visible { background: var(--amber); }
.cp-primary-link, .cp-product-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--amber);
  box-shadow: var(--shadow-small);
  text-align: center;
  text-decoration: none;
}
.cp-primary-link:hover, .cp-product-action:hover {
  background: #ffe16d;
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 var(--cocoa);
}
.cp-choice-field { display: grid; gap: 12px; }
.cp-choice {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 11px 16px 11px 10px;
  border-radius: 20px;
  background: var(--paper);
  box-shadow: var(--shadow-small);
  text-align: left;
}
.cp-choice:hover:not(:disabled) { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--cocoa); background: #fff4bc; }
.cp-choice:disabled { cursor: default; opacity: 0.64; box-shadow: none; }
.cp-choice-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: var(--amber);
  font-family: var(--display);
  font-size: 19px;
  line-height: 1;
}
.cp-choice:nth-child(4n + 2) .cp-choice-mark { background: var(--coral-pale); }
.cp-choice:nth-child(4n + 3) .cp-choice-mark { background: var(--green-pale); }
.cp-choice:nth-child(4n + 4) .cp-choice-mark { background: var(--sky-pale); }
.cp-choice-label { font-size: 16px; line-height: 1.25; }

/* One continuous merchant counter */
.cp-goal, .cp-resume-view, .cp-scope, .cp-dialogue, .cp-result, .cp-no-match { max-width: var(--content); margin-inline: auto; }
.cp-counter {
  position: relative;
  display: grid;
  min-height: 560px;
  overflow: hidden;
  border: var(--line);
  border-radius: 40px;
  background: var(--amber);
  box-shadow: var(--shadow);
}
.cp-counter::before {
  position: absolute;
  z-index: 0;
  top: -72px;
  right: -48px;
  width: 250px;
  height: 250px;
  border: 3px solid var(--cocoa);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  content: "";
  pointer-events: none;
}
.cp-counter > * { position: relative; z-index: 1; }
.cp-counter--goal {
  grid-template-columns: minmax(320px, 0.9fr) minmax(440px, 1.1fr);
  grid-template-rows: 1fr auto;
  column-gap: clamp(28px, 5vw, 78px);
  padding: clamp(34px, 5vw, 72px) clamp(28px, 5vw, 72px) 0;
}
.cp-goal-copy { align-self: center; }
.cp-goal-field { align-self: center; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cp-goal-field .cp-choice { min-height: 114px; grid-template-columns: 1fr; align-content: space-between; padding: 15px; }
.cp-goal-field .cp-choice-mark { width: 44px; height: 44px; }

.cp-counter--scope {
  grid-template-columns: minmax(0, 1fr) 320px;
  grid-template-rows: 1fr auto;
  gap: 28px 54px;
  min-height: 535px;
  padding: clamp(28px, 4.5vw, 58px) clamp(26px, 4.5vw, 58px) 0;
  background: var(--sky-pale);
}
.cp-scope-copy { align-self: center; max-width: 780px; }
.cp-scope-copy .cp-state-heading { font-size: clamp(40px, 3.7vw, 52px); }
.cp-scope-list {
  columns: 2;
  column-gap: 28px;
  margin: 20px 0 16px;
  padding: 0;
  list-style: none;
}
.cp-scope-list li {
  position: relative;
  break-inside: avoid;
  margin-bottom: 8px;
  padding-left: 23px;
  font-weight: 650;
}
.cp-scope-list li::before {
  position: absolute;
  top: 0.43em;
  left: 1px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--cocoa);
  border-radius: 50%;
  background: var(--amber);
  content: "";
}
.cp-scope-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 20px; }
.cp-button--scope-clear, .cp-button--restart-confirm { background: var(--amber); }
.cp-button--scope-exit { background: var(--paper); }

.cp-counter--resume {
  min-height: 500px;
  grid-template-columns: minmax(0, 720px);
  grid-template-rows: auto auto auto 1fr auto;
  align-content: center;
  padding: clamp(34px, 5vw, 68px) clamp(28px, 6vw, 80px) 0;
  background: var(--amber);
}
.cp-resume-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 25px; }
.cp-button--resume { background: var(--cocoa); color: var(--paper); }
.cp-button--forget { background: transparent; box-shadow: none; }

.cp-counter--question {
  grid-template-columns: minmax(0, 1fr) 270px;
  grid-template-rows: 1fr auto;
  gap: 30px 50px;
  min-height: 530px;
  padding: clamp(32px, 4.8vw, 62px) clamp(28px, 5vw, 68px) 0;
  background: var(--green-pale);
}
.cp-question { align-self: center; }
.cp-question .cp-state-heading { max-width: 18ch; font-size: clamp(40px, 3.7vw, 52px); }
.cp-question-options { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin-top: 24px; }
.cp-question-options .cp-choice { min-height: 70px; }

.cp-shelf-rail {
  position: relative;
  z-index: 2;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  min-height: 104px;
  margin: 0 calc(clamp(26px, 5vw, 72px) * -1);
  padding: 17px clamp(26px, 5vw, 72px);
  border: 0;
  border-top: var(--line);
  border-radius: 0;
  background: var(--paper);
  box-shadow: none;
}
.cp-counter--scope > .cp-shelf-rail,
.cp-counter--question > .cp-shelf-rail,
.cp-counter--result > .cp-shelf-rail,
.cp-counter--empty > .cp-shelf-rail { margin-inline: calc(clamp(26px, 5vw, 68px) * -1); }
.cp-shelf-label {
  width: 120px;
  margin: 0;
  color: var(--cocoa-soft);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.075em;
  line-height: 1.25;
  text-transform: uppercase;
}
.cp-shelf-tokens, .cp-trail-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.cp-token, .cp-token-ghost {
  min-width: 70px;
  min-height: 44px;
  border: 2px solid var(--cocoa);
  border-radius: 13px;
}
.cp-token {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  background: var(--sky-pale);
  font-weight: 800;
}
button.cp-token { cursor: pointer; box-shadow: 2px 2px 0 var(--cocoa); }
button.cp-token:hover { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--cocoa); }
.cp-token[data-tone="forras"] { background: var(--green-pale); }
.cp-token[data-tone="koffein"] { background: var(--coral-pale); }
.cp-token[data-tone="iz"] { background: var(--sky-pale); }
.cp-token[data-tone="keret"] { background: #fff2b5; }
.cp-token-ghost { border-style: dashed; background: var(--paper-warm); opacity: 0.62; }
.cp-shelf-slots { display: flex; align-items: end; min-width: 100px; justify-content: flex-end; }
.cp-shelf-slot {
  width: 43px;
  height: 58px;
  margin-left: -7px;
  border: 2px dashed var(--cocoa);
  border-radius: 8px 8px 13px 13px;
  background: var(--canvas);
  opacity: 0.46;
}
.cp-shelf-slot:nth-child(2) { height: 67px; }
.cp-shelf-slot:nth-child(3) { height: 51px; }
.cp-shelf-slot.is-ready { height: 65px; border-style: solid; background: var(--amber); opacity: 1; transform: rotate(3deg); }

.cp-journey-tools { display: grid; justify-items: end; margin-bottom: 14px; }
.cp-journey-tools nav { display: flex; flex-wrap: wrap; gap: 9px; justify-content: flex-end; }
.cp-journey-tools .cp-inline-confirm { width: min(100%, 720px); }
.cp-button--back, .cp-button--restart {
  min-height: 44px;
  padding: 8px 15px;
  background: transparent;
  box-shadow: none;
  font-size: 13px;
}
.cp-inline-confirm {
  margin-top: 12px;
  padding: 18px 20px;
  border: var(--line);
  border-radius: 22px;
  background: #fff2b5;
  box-shadow: var(--shadow-small);
}
.cp-inline-confirm h2 { margin-bottom: 6px; font-family: var(--display); font-size: 24px; font-weight: 400; line-height: 1.05; }
.cp-inline-confirm p { margin-bottom: 12px; }
.cp-inline-actions, .cp-recovery-actions { display: flex; flex-wrap: wrap; gap: 11px; align-items: center; margin-top: 14px; }

/* Product climax */
.cp-counter--result {
  grid-template-columns: minmax(300px, 0.74fr) minmax(520px, 1.26fr);
  grid-template-areas:
    "conclusion product"
    "compromise product"
    "evidence product"
    "rail rail";
  grid-template-rows: auto auto 1fr auto;
  gap: 12px clamp(30px, 4vw, 62px);
  min-height: 650px;
  padding: clamp(30px, 4vw, 55px) clamp(26px, 5vw, 68px) 0;
  background: var(--coral-pale);
}
.cp-result-conclusion { grid-area: conclusion; align-self: end; }
.cp-result-conclusion .cp-state-heading { max-width: 17ch; font-size: clamp(40px, 3.1vw, 44px); }
.cp-compromise {
  grid-area: compromise;
  padding: 16px 15px 13px;
  border: 2px solid rgba(46, 28, 21, 0.24);
  border-radius: 15px;
  background: rgba(255, 252, 246, 0.72);
  box-shadow: inset 0 5px 0 var(--coral);
}
.cp-compromise h2, .cp-decisive h2 {
  margin-bottom: 5px;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.cp-compromise p { margin-bottom: 3px; font-size: 14px; font-weight: 620; line-height: 1.34; }
.cp-result-evidence { grid-area: evidence; align-self: end; }
.cp-decisive { padding-top: 13px; border-top: 2px solid rgba(46, 28, 21, 0.36); }
.cp-decisive-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.cp-decisive-list li {
  padding: 6px 10px;
  border: 1.8px solid var(--cocoa);
  border-radius: 999px;
  background: var(--paper);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.2;
}
.cp-recompute-note {
  margin-top: 12px;
  padding: 13px 12px 10px;
  border: 2px solid rgba(46, 28, 21, 0.22);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 4px 0 var(--green);
}
.cp-recompute-note p { margin-bottom: 3px; font-size: 13px; }
.cp-counter--result > .cp-product-stage { grid-area: product; align-self: stretch; }
.cp-counter--result > .cp-shelf-rail { grid-area: rail; }

.cp-product-stage {
  position: relative;
  display: grid;
  min-width: 0;
  overflow: hidden;
  background: var(--paper);
}
.cp-product-stage--primary {
  grid-template-columns: minmax(230px, 0.95fr) minmax(190px, 0.75fr);
  grid-template-areas:
    "kicker kicker"
    "name name"
    "pack shelf"
    "pack reason"
    "facts facts";
  grid-template-rows: auto auto 1fr auto auto;
  gap: 0 20px;
  align-items: center;
  padding: 22px;
  border: var(--line);
  border-radius: 34px;
  box-shadow: var(--shadow-small);
}
.cp-product-stage--primary::before {
  position: absolute;
  inset: 0 0 auto;
  height: 11px;
  border-bottom: 2px solid var(--cocoa);
  background: var(--product-accent, var(--sky));
  content: "";
}
.cp-product-kicker {
  grid-area: kicker;
  margin: 5px 0 4px;
  color: #9d3111;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cp-product-name {
  grid-area: name;
  margin-bottom: 8px;
  font-family: var(--display);
  font-size: clamp(32px, 3.1vw, 46px);
  font-weight: 400;
  line-height: 0.98;
}
.cp-packshot {
  grid-area: pack;
  display: grid;
  height: clamp(250px, 25vw, 330px);
  place-items: end center;
  align-self: end;
  border-radius: 27px;
  background: color-mix(in srgb, var(--product-accent, var(--sky)) 32%, var(--paper));
  overflow: hidden;
}
.cp-packshot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 12px 9px rgba(46, 28, 21, 0.2));
}
.cp-packshot img.is-fallback { object-fit: cover; filter: none; }
.cp-product-shelf { grid-area: shelf; align-self: end; }
.cp-price { margin-bottom: 10px; font-family: var(--display); font-size: clamp(28px, 2.9vw, 40px); line-height: 1; white-space: nowrap; }
.cp-product-action { width: 100%; min-height: 50px; padding-inline: 14px; font-size: 13px; }
.cp-product-reason { grid-area: reason; align-self: start; margin: 10px 0 0; color: var(--cocoa-soft); font-size: 13.5px; font-weight: 620; line-height: 1.35; }
.cp-product-facts { grid-area: facts; display: flex; flex-wrap: wrap; gap: 5px; margin: 10px 0 0; padding: 0; list-style: none; }
.cp-product-facts li { padding: 4px 8px; border: 1.6px solid var(--cocoa); border-radius: 999px; background: var(--paper-warm); font-size: 12px; font-weight: 700; line-height: 1.25; }

.cp-product-stage--primary.cp-product-stage--fallback {
  grid-template-columns: 170px minmax(0, 1fr);
  grid-template-areas:
    "kicker kicker"
    "name name"
    "pack shelf"
    "pack reason"
    "facts facts";
  grid-template-rows: auto auto auto auto auto;
  align-content: center;
  gap: 8px 24px;
  padding: 28px;
}
.cp-product-stage--fallback::before { background: #cfc4b5; }
.cp-product-stage--fallback .cp-packshot {
  width: 170px;
  height: 170px;
  place-items: center;
  align-self: center;
  border: 2px dashed rgba(46, 28, 21, 0.32);
  border-radius: 22px;
  background: #f3ede3;
}
.cp-product-stage--fallback .cp-packshot img.is-fallback {
  width: 86%;
  height: 86%;
  object-fit: contain;
  object-position: center;
}
.cp-product-stage--fallback .cp-product-name { font-size: clamp(36px, 3.3vw, 48px); }
.cp-product-stage--fallback .cp-product-reason { margin-top: 2px; font-size: 15px; }
.cp-product-stage--fallback .cp-product-shelf { align-self: center; }
.cp-product-stage--fallback .cp-product-facts { margin-top: 6px; }

/* Quiet supporting layers */
.cp-alternative, .cp-third, .cp-edit-panel, .cp-recovery { margin-top: 24px; }
.cp-alternative {
  display: grid;
  grid-template-columns: minmax(230px, 0.65fr) minmax(430px, 1.35fr);
  gap: 24px 38px;
  align-items: center;
  padding: 26px 0;
  border-top: 2px solid var(--line-soft);
  border-bottom: 2px solid var(--line-soft);
}
.cp-alternative > .cp-status-label,
.cp-alternative > h2,
.cp-alternative > .cp-alternative-reasoning { grid-column: 1; }
.cp-alternative > h2 { margin-bottom: 5px; font-family: var(--display); font-size: 28px; font-weight: 400; line-height: 1.05; }
.cp-alternative-reasoning p { margin-bottom: 8px; font-weight: 620; }
.cp-alternative .cp-product-stage { grid-column: 2; grid-row: 1 / span 4; }
.cp-product-stage--secondary {
  grid-template-columns: 150px minmax(0, 1fr);
  grid-template-areas:
    "pack kicker"
    "pack name"
    "pack shelf"
    "reason reason"
    "facts facts";
  gap: 0 18px;
  align-items: center;
  padding: 16px;
  border-radius: 26px;
  background: var(--paper);
}
.cp-product-stage--secondary .cp-packshot { height: 184px; border-radius: 22px; }
.cp-product-stage--secondary .cp-product-name { font-size: 28px; }
.cp-product-stage--secondary .cp-product-action { width: auto; }
.cp-compare-control { display: flex; justify-content: center; margin-top: 19px; }
.cp-third { display: block; margin-top: 16px; padding: 14px 0 10px; border-top: 2px solid var(--line-soft); }
.cp-third > h2 { margin-bottom: 12px; font-family: var(--display); font-size: 28px; font-weight: 400; }
.cp-third .cp-product-stage { width: min(100%, 720px); margin-inline: auto; }

.cp-explanation, .cp-editing-disclosure {
  margin-top: 16px;
  border-bottom: 2px solid rgba(46, 28, 21, 0.25);
}
.cp-explanation summary, .cp-editing-disclosure summary {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 2px;
  cursor: pointer;
  font-family: var(--display);
  font-size: 19px;
  list-style: none;
}
.cp-explanation summary::-webkit-details-marker,
.cp-editing-disclosure summary::-webkit-details-marker { display: none; }
.cp-explanation summary::after, .cp-editing-disclosure summary::after {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 2px solid var(--cocoa);
  border-radius: 50%;
  background: var(--paper);
  content: "+";
  font-family: var(--body);
  font-weight: 900;
}
.cp-explanation[open] summary::after, .cp-editing-disclosure[open] summary::after { content: "−"; }
.cp-explanation-body, .cp-editing-body { padding: 3px 2px 18px; }
.cp-explanation-body h3 { margin: 14px 0 7px; font-size: 15px; }
.cp-explanation-body ul { padding-left: 20px; }
.cp-editing-list { display: flex; flex-wrap: wrap; gap: 8px; }
.cp-editing-list .cp-button { min-height: 44px; padding: 8px 13px; box-shadow: none; background: var(--paper); font-size: 13px; }

.cp-edit-panel, .cp-recovery {
  padding: clamp(20px, 3vw, 30px);
  border: var(--line);
  border-radius: 26px;
  background: #fff2b5;
  box-shadow: var(--shadow-small);
}
.cp-edit-panel h2, .cp-recovery h2 { margin-bottom: 6px; font-family: var(--display); font-size: clamp(25px, 3.5vw, 38px); font-weight: 400; line-height: 1.05; }
.cp-edit-options { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin: 18px 0 14px; }
.cp-edit-options .cp-choice[aria-current="true"] {
  border-width: 3px;
  background: var(--green-pale);
  box-shadow: inset 0 0 0 3px rgba(28, 179, 117, 0.16);
  color: var(--cocoa);
  opacity: 1;
}
.cp-edit-options .cp-choice[aria-current="true"] .cp-choice-mark { background: var(--green); color: var(--paper); }
.cp-recovery-actions .cp-button { background: var(--paper); }

.cp-handoff {
  margin-top: 24px;
  padding: 22px 0 0;
  border-top: 2px solid var(--line-soft);
}
.cp-handoff h2 { margin-bottom: 7px; font-family: var(--display); font-size: clamp(23px, 3vw, 32px); font-weight: 400; line-height: 1.05; }
.cp-handoff--confirm { padding: 22px; border: var(--line); border-radius: 24px; background: var(--green-pale); box-shadow: var(--shadow-small); }

/* Empty shelf */
.cp-counter--empty {
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  grid-template-rows: 1fr auto;
  gap: 30px 55px;
  min-height: 520px;
  padding: clamp(32px, 5vw, 64px) clamp(28px, 5vw, 68px) 0;
  background: var(--paper-warm);
}
.cp-empty-copy { align-self: center; }
.cp-empty-copy .cp-state-heading { max-width: 14ch; font-size: clamp(40px, 3.7vw, 52px); }
.cp-empty-stage {
  display: grid;
  grid-template-columns: 1fr repeat(3, 70px);
  gap: 10px;
  align-items: end;
  align-self: center;
  min-height: 235px;
  padding: 26px;
  border-bottom: 8px solid var(--cocoa);
  background: linear-gradient(to bottom, transparent 0 72%, rgba(46,28,21,.06) 72%);
}
.cp-empty-label { align-self: center; color: var(--cocoa-soft); font-family: var(--display); font-size: 22px; }
.cp-empty-slot { height: 150px; border: 2px dashed var(--cocoa); border-radius: 12px 12px 20px 20px; background: rgba(255,255,255,.35); opacity: .46; }
.cp-empty-slot:nth-of-type(3) { height: 180px; }
.cp-empty-slot:nth-of-type(4) { height: 130px; }

/* Terminal states */
.cp-terminal {
  max-width: 850px;
  padding: clamp(30px, 5vw, 64px);
  border: var(--line);
  border-radius: 38px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.cp-terminal::before { display: block; width: 72px; height: 13px; margin-bottom: 27px; border-radius: 999px; background: var(--coral); content: ""; }
.cp-terminal .cp-primary-link { margin-top: 12px; }

.cp-change-summary {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 1050px) {
  .cp-counter--result { grid-template-columns: minmax(280px, .7fr) minmax(470px, 1.3fr); gap: 12px 28px; }
  .cp-product-stage--primary { grid-template-columns: 205px minmax(180px, 1fr); }
}

@media (max-width: 820px) {

  .cp-counter--goal, .cp-counter--scope, .cp-counter--question, .cp-counter--result, .cp-counter--empty {
    grid-template-columns: 1fr;
  }
  .cp-counter--goal { grid-template-rows: auto auto auto; }
  .cp-goal-field { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .cp-counter--scope, .cp-counter--question { grid-template-rows: 1fr auto; }
  .cp-counter--result {
    grid-template-areas:
      "conclusion"
      "compromise"
      "product"
      "evidence"
      "rail";
    grid-template-rows: auto auto auto auto auto;
  }
  .cp-counter--empty { grid-template-rows: auto auto auto; }
  .cp-scope-list { columns: 1; }
  .cp-empty-stage { min-height: 190px; }
  .cp-alternative { grid-template-columns: 1fr; }
  .cp-alternative > .cp-status-label, .cp-alternative > h2, .cp-alternative > .cp-alternative-reasoning,
  .cp-alternative .cp-product-stage { grid-column: 1; grid-row: auto; }
}

@media (max-width: 560px) {
  :root { --gutter: 16px; --shadow: 3px 4px 0 var(--cocoa); }
  body { font-size: 14.5px; background: var(--canvas); }
  .cp-stage { padding-top: 12px; padding-bottom: 58px; }
  .cp-state-heading { max-width: 16ch; margin-bottom: 10px; font-size: clamp(32px, 9.5vw, 40px); line-height: .97; }
  .cp-lede { font-size: 15px; line-height: 1.38; }
  .cp-status-label { margin-bottom: 6px; font-size: 12px; }
  .cp-result-conclusion .cp-status-label { font-size: 14px; }

  .cp-counter { min-height: 0; border-radius: 27px; box-shadow: 3px 4px 0 var(--cocoa); }
  .cp-counter::before { top: -80px; right: -90px; width: 210px; height: 210px; }
  .cp-counter--goal {
    gap: 14px;
    padding: 22px 16px 0;
  }
  .cp-goal-copy .cp-lede { max-width: 33ch; }
  .cp-goal-field { grid-template-columns: 1fr 1fr; gap: 8px; }
  .cp-goal-field .cp-choice {
    min-height: 68px;
    grid-template-columns: 34px 1fr;
    gap: 8px;
    align-content: center;
    padding: 8px;
    border-radius: 16px;
  }
  .cp-goal-field .cp-choice-mark { width: 32px; height: 32px; font-size: 15px; }
  .cp-goal-field .cp-choice-label { font-size: 13px; }

  .cp-counter--resume { padding: 24px 17px 0; }
  .cp-resume-actions { align-items: stretch; flex-direction: column; margin-top: 17px; }
  .cp-resume-actions .cp-button { width: 100%; }

  .cp-counter--scope { gap: 10px; padding: 20px 16px 0; }
  .cp-scope-copy .cp-state-heading { font-size: 31px; }
  .cp-scope-list { display: grid; gap: 3px; margin: 12px 0 9px; }
  .cp-scope-list li { margin: 0; padding-left: 20px; font-size: 12px; line-height: 1.32; }
  .cp-scope-list li::before { top: .28em; width: 9px; height: 9px; }
  .cp-fine-print { margin-bottom: 0; font-size: 11px; line-height: 1.3; }
  .cp-scope-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
  .cp-scope-actions .cp-button { min-height: 48px; padding: 7px 9px; font-size: 12px; line-height: 1.15; }

  .cp-counter--question { gap: 14px; padding: 22px 16px 0; }
  .cp-question .cp-state-heading { max-width: 17ch; font-size: 32px; }
  .cp-question-options, .cp-edit-options { grid-template-columns: 1fr; margin-top: 16px; gap: 8px; }
  .cp-question-options .cp-choice { min-height: 58px; }
  .cp-choice { grid-template-columns: 40px 1fr; gap: 9px; padding: 8px 11px 8px 8px; border-radius: 16px; }
  .cp-choice-mark { width: 36px; height: 36px; font-size: 16px; }
  .cp-choice-label { font-size: 14px; }

  .cp-shelf-rail,
  .cp-counter--scope > .cp-shelf-rail,
  .cp-counter--question > .cp-shelf-rail,
  .cp-counter--result > .cp-shelf-rail,
  .cp-counter--empty > .cp-shelf-rail {
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 7px 8px;
    min-height: 0;
    margin-inline: -16px;
    padding: 10px 16px 12px;
  }
  .cp-shelf-label { grid-column: 1; width: auto; font-size: 11px; }
  .cp-shelf-tokens {
    grid-column: 1;
    display: flex;
    min-width: 0;
    min-height: 93px;
    align-content: center;
    align-items: center;
    gap: 5px 7px;
    flex-wrap: wrap;
    overflow: visible;
  }
  .cp-token, .cp-token-ghost { min-width: 50px; min-height: 44px; flex: 0 0 auto; border-radius: 11px; }
  .cp-token { max-width: 100%; padding: 6px 8px; font-size: 11px; white-space: nowrap; }
  .cp-shelf-rail--no-match .cp-shelf-tokens { min-height: 44px; gap: 5px; }
  .cp-shelf-rail--no-match .cp-token { padding-inline: 6px; font-size: 10.5px; }
  .cp-shelf-slots { grid-column: 2; grid-row: 1 / span 2; width: 44px; min-width: 44px; justify-content: center; }
  .cp-shelf-slot { width: 25px; height: 40px; margin-left: -12px; }
  .cp-shelf-slot:nth-child(2) { height: 48px; }
  .cp-shelf-slot:nth-child(3) { height: 35px; }
  .cp-shelf-slot.is-ready { height: 48px; }

  .cp-journey-tools { justify-content: stretch; justify-items: stretch; margin-bottom: 8px; }
  .cp-journey-tools nav { width: 100%; justify-content: space-between; }
  .cp-button--back, .cp-button--restart { flex: 1 1 auto; min-height: 44px; padding-inline: 10px; }
  .cp-inline-confirm { padding: 15px; }
  .cp-inline-actions { align-items: stretch; flex-direction: column; }
  .cp-inline-actions > * { width: 100%; }

  .cp-counter--result { gap: 7px; padding: 18px 14px 0; }
  .cp-result-conclusion .cp-state-heading { max-width: 18ch; margin-bottom: 5px; font-size: 27px; }
  .cp-compromise { padding: 11px 10px 8px; box-shadow: inset 0 4px 0 var(--coral); }
  .cp-compromise h2 { margin-bottom: 2px; font-size: 13px; }
  .cp-compromise p { margin-bottom: 1px; font-size: 14px; line-height: 1.3; }
  .cp-counter--result > .cp-product-stage { margin-top: 2px; }
  .cp-product-stage--primary {
    grid-template-columns: 130px minmax(0, 1fr);
    grid-template-areas:
      "kicker kicker"
      "name name"
      "pack shelf"
      "reason reason"
      "facts facts";
    grid-template-rows: auto auto 158px auto auto;
    gap: 0 11px;
    padding: 12px;
    border-radius: 23px;
  }
  .cp-product-kicker { margin: 5px 0 2px; font-size: 12px; }
  .cp-product-name { margin-bottom: 4px; font-size: 27px; }
  .cp-packshot { height: 158px; border-radius: 18px; }
  .cp-product-shelf { display: flex; align-items: stretch; flex-direction: column; justify-content: center; gap: 8px; }
  .cp-price { margin-bottom: 0; font-size: 23px; }
  .cp-product-action { min-height: 48px; padding-inline: 9px; font-size: 12px; line-height: 1.15; }
  .cp-product-reason { margin-top: 7px; font-size: 14px; line-height: 1.35; }
  .cp-product-facts { margin-top: 6px; }
  .cp-product-facts li { padding: 4px 7px; font-size: 13px; }
  .cp-product-stage--primary.cp-product-stage--fallback {
    grid-template-columns: 94px minmax(0, 1fr);
    grid-template-areas:
      "kicker kicker"
      "name name"
      "pack shelf"
      "reason reason"
      "facts facts";
    grid-template-rows: auto auto 100px auto auto;
    gap: 3px 10px;
    padding: 14px;
  }
  .cp-product-stage--fallback .cp-packshot { width: 94px; height: 94px; border-radius: 16px; }
  .cp-product-stage--fallback .cp-product-name { font-size: 29px; }
  .cp-product-stage--fallback .cp-product-reason { margin-top: 7px; font-size: 14px; }
  .cp-product-stage--fallback .cp-product-action { font-size: 11.5px; }
  .cp-result-evidence { margin-top: 2px; }
  .cp-decisive { padding-top: 8px; }
  .cp-decisive h2 { font-size: 12px; }
  .cp-decisive-list li { padding: 5px 8px; font-size: 14px; }

  .cp-alternative, .cp-third, .cp-edit-panel, .cp-recovery, .cp-handoff { margin-top: 17px; }
  .cp-alternative { gap: 8px; padding: 18px 0; }
  .cp-third { margin-top: 12px; padding: 10px 0 6px; }
  .cp-alternative > h2 { font-size: 24px; }
  .cp-alternative-reasoning p { font-size: 13px; }
  .cp-product-stage--secondary {
    grid-template-columns: 112px minmax(0,1fr);
    grid-template-areas:
      "pack kicker"
      "pack name"
      "pack shelf"
      "reason reason"
      "facts facts";
    gap: 0 11px;
    padding: 11px;
  }
  .cp-product-stage--secondary .cp-packshot { height: 145px; }
  .cp-product-stage--secondary .cp-product-name { font-size: 23px; }
  .cp-product-stage--secondary .cp-product-action { width: 100%; }
  .cp-explanation, .cp-editing-disclosure { margin-top: 8px; }
  .cp-explanation summary, .cp-editing-disclosure summary { min-height: 48px; font-size: 17px; }
  .cp-editing-list { display: grid; grid-template-columns: 1fr; }
  .cp-editing-list .cp-button { width: 100%; }
  .cp-edit-panel, .cp-recovery { padding: 16px; }
  .cp-handoff { padding-top: 16px; }

  .cp-counter--empty { gap: 12px; padding: 22px 16px 0; }
  .cp-empty-copy .cp-state-heading { max-width: 15ch; font-size: 32px; }
  .cp-empty-stage { grid-template-columns: 1fr repeat(3, 38px); gap: 5px; min-height: 132px; padding: 14px; border-bottom-width: 6px; }
  .cp-empty-label { font-size: 17px; }
  .cp-empty-slot { height: 78px; }
  .cp-empty-slot:nth-of-type(3) { height: 96px; }
  .cp-empty-slot:nth-of-type(4) { height: 68px; }

  .cp-terminal { padding: 28px 20px; border-radius: 28px; }
  .cp-terminal .cp-state-heading { max-width: 100%; font-size: 34px; text-wrap: wrap; }
}

@keyframes cp-view-enter {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes cp-view-exit {
  from { opacity: .68; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(-12px) scale(.992); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-delay: 0ms !important;
    transition-duration: .001ms !important;
    transition-delay: 0ms !important;
  }
}

@media (forced-colors: active) {
   .cp-scope-list li::before, .cp-product-stage--primary::before { forced-color-adjust: none; }
  .cp-choice, .cp-button, .cp-counter, .cp-product-stage, .cp-edit-panel, .cp-recovery { box-shadow: none; }
}
