/* Competitor prices next to ours. */
.price-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.price-table th, .price-table td { padding: 7px 6px; text-align: right; border-bottom: 1px solid var(--sheet-line); white-space: nowrap; }
.price-table th:first-child { padding-left: 9px; text-align: left; font-weight: 500; }
.price-table thead th { padding-top: 0; color: var(--quiet); font-size: 12px; font-weight: 500; }
.price-table td:last-child { color: var(--quiet); }
.price-table .is-attack { background: #29231c; }
.price-table .is-attack th { box-shadow: inset 2px 0 var(--sheet-gold); }
.price-table .is-attack td:nth-child(2) { color: var(--sheet-gold); font-weight: 600; }
.price-table del { margin-right: 4px; color: var(--quiet); font-weight: 400; text-decoration-thickness: 1px; }
.attack-note { margin: 9px 0 0; color: var(--sheet-gold); font-size: 13px; line-height: 1.3; }
.price-result .sheet-advice { margin-top: 11px; }

/* Process: the tangled map, then the clean one. */
.process-mess, .process-clean { min-width: 0; }
.process-mess { display: none; }
.map-tangle { display: block; width: 100%; max-width: min(100%, 430px); height: auto; max-height: calc(100cqh - 108px); margin: 0 auto; overflow: visible; }
.map-links path { fill: none; stroke: #8f806c; stroke-width: 1.2; marker-end: url(#map-head); }
.map-links .map-loop { stroke-dasharray: 3 3; }
#map-head path { fill: #8f806c; }
.map-node rect { fill: #211f1c; stroke: #6f6253; }
.map-node text { fill: var(--ink); font: 500 11.5px var(--sans); }
.map-node.is-cut rect { fill: none; stroke: #8a7c69; stroke-dasharray: 3 3; }
.map-node.is-cut text { fill: #9a9184; text-decoration: line-through; }
.map-node.is-odd rect { stroke: var(--command-gold); }
.map-badge circle { fill: #151412; stroke: var(--command-gold); }
.map-badge text { fill: var(--command-gold); font: 650 10.5px var(--sans); }
.map-badge-cut circle { stroke: #8a7c69; }
.map-badge-cut text { fill: #b0a89b; }
.map-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; margin: 10px 0 0; padding: 0; list-style: none; color: var(--quiet); font-size: 12px; line-height: 1.3; }
.map-legend li { display: flex; align-items: center; gap: 5px; }
.map-key { display: grid; place-items: center; width: 15px; height: 15px; border: 1px solid var(--command-gold); border-radius: 50%; color: var(--command-gold); font: 650 10px/1 var(--sans); font-style: normal; }
.map-key-cut { border: 1px dashed #8a7c69; color: #b0a89b; }
.process-mess .sheet-advice { margin-top: 10px; }
.clean-flow { margin: 0; padding: 0; list-style: none; }
.clean-flow li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 11px;
  border: 1px solid #7c6b55;
  border-radius: 5px;
  font-size: 15px;
  line-height: 1.25;
}
.clean-flow li + li { margin-top: 13px; }
.clean-flow li + li::before { content: ""; position: absolute; left: 20px; top: -14px; height: 13px; border-left: 1px solid var(--sheet-gold); }
.clean-flow .reel-icon { color: var(--sheet-gold); }
.clean-flow li:last-child { border-color: #d8bf98; background: #d8bf98; color: #281f15; }
.clean-flow li:last-child .reel-icon { color: #281f15; }
.clean-reminder { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; color: var(--quiet); font-size: 13px; line-height: 1.3; }
.clean-reminder .reel-icon { color: var(--sheet-gold); }

/* What the card shows at each moment of the show. */
.card[data-log] .demo-reply { display: none; }
.card[data-log][data-view="demo"][data-working="true"] .result-sheet,
.card[data-view="choose"] .result-sheet { display: none; }
.card[data-log][data-view="demo"][data-working="true"] .work-log.is-active-log { display: grid; }
.card[data-has-choice] [data-branch-result] { display: none; }
.card[data-has-choice]:not([data-reel="design-system"])[data-view="result"] [data-branch-result].is-branch-active,
.card[data-has-choice]:not([data-reel="design-system"])[data-turn^="branch-"].is-playing[data-working="false"] [data-branch-result].is-branch-active {
  display: grid;
}
.card[data-has-choice]:not([data-reel="design-system"])[data-view="result"] .art {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}
.card[data-view="demo"][data-turn="first"] .process-mess,
.card[data-view="demo"][data-turn="second"].typing .process-mess { display: block; }
.card[data-view="demo"][data-turn="first"] .process-clean,
.card[data-view="demo"][data-turn="second"].typing .process-clean { display: none; }
.card.typing[data-turn^="branch-"] .art,
.card.typing[data-turn="second"] .art {
  opacity: 0;
  visibility: hidden;
}
.card[data-log][data-view="steps"] .art { display: block; overflow: auto; }
.card[data-log][data-view="steps"] .result-sheet { display: none; }
.card[data-log][data-view="steps"] .work-log.is-active-log { display: grid; height: auto; align-content: start; }
.card[data-log][data-view="steps"] .work-log li { opacity: 1; transform: none; }
.card[data-log][data-view="steps"] .work-log { gap: 7px; padding-block: 6px 0; }
.card[data-log][data-view="steps"] .work-log li { grid-template-columns: 26px minmax(0, 1fr); gap: 9px; }
.card[data-log][data-view="steps"] .log-icon { width: 26px; height: 26px; }
.card[data-log][data-view="steps"] .log-icon .reel-icon { width: 15px; height: 15px; }
.card[data-log][data-view="steps"] .log-text strong { font-size: 13px; }
.card[data-log][data-view="steps"] .log-text span { font-size: 12px; }

/* Interactive decision prompt inside the card. */
.demo-choice {
  display: none;
  align-content: center;
  gap: 10px;
  width: 100%;
  max-width: 470px;
  height: 100%;
  margin: 0 auto;
  padding: 14px clamp(14px, 5.5cqw, 24px) 16px;
}
.card[data-view="choose"] .demo-choice { display: grid; }
.choice-finding {
  margin: 0;
  padding: 8px 11px;
  border: 1px solid #6b5841;
  border-radius: 6px;
  background: #252019;
  color: var(--command-gold);
  font: 520 13px/1.35 var(--sans);
}
.choice-preview {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 10px;
  border: 1px solid #4c4236;
  border-radius: 6px;
  background: #211e1a;
  color: var(--sand);
  font: 500 13px/1.3 var(--sans);
}
.choice-preview img {
  display: block;
  width: 78px;
  height: auto;
  border-radius: 3px;
  border: 1px solid #5a4d3d;
  flex: none;
}
.choice-eyebrow {
  margin: 2px 0 -4px;
  color: var(--command-gold);
  font: 640 11px/1.2 var(--sans);
  letter-spacing: .09em;
  text-transform: uppercase;
}
.choice-question {
  margin: 0;
  color: var(--ink);
  font: 400 clamp(21px, 6.4cqw, 27px)/1.12 var(--serif);
  text-wrap: balance;
}
.choice-grid {
  display: grid;
  gap: 8px;
  margin-top: 2px;
}
.choice-btn {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #75634d;
  border-radius: 8px;
  background: #23201b;
  color: var(--ink);
  text-align: left;
  transition: border-color .18s ease, background-color .18s ease, transform .14s ease;
}
.choice-btn:hover {
  border-color: var(--command-gold);
  background: #2d271f;
}
.choice-btn:active { transform: scale(.99); }
.choice-btn-copy { display: grid; gap: 2px; min-width: 0; }
.choice-btn strong { font: 620 14.5px/1.25 var(--sans); color: var(--ink); }
.choice-btn-copy span { font: 400 12.5px/1.3 var(--sans); color: var(--quiet); }
.choice-arrow {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid #6b5b47;
  color: var(--command-gold);
  font-size: 14px;
  flex: none;
}
.choice-btn:hover .choice-arrow {
  background: var(--command-gold);
  border-color: var(--command-gold);
  color: #181510;
}

/* Compact branch switcher shown below the finished result so users can test the other path in one tap. */
.branch-switch {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px clamp(12px, 4.5cqw, 18px) 10px;
  border-top: 1px solid #353029;
  background: #151412;
}
.card[data-view="result"] .branch-switch { display: flex; flex-wrap: wrap; }
.branch-switch-label {
  color: var(--quiet);
  font: 500 11.5px/1.2 var(--sans);
  white-space: nowrap;
}
.branch-switch-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-left: auto;
}
.branch-pill {
  padding: 5px 10px;
  border: 1px solid #4d453b;
  border-radius: 999px;
  background: #1d1b18;
  color: var(--quiet);
  font: 550 12px/1.15 var(--sans);
  transition: border-color .18s ease, color .18s ease, background-color .18s ease;
}
.branch-pill:hover { border-color: #8c785f; color: var(--ink); }
.branch-pill[aria-pressed="true"] {
  border-color: var(--command-gold);
  background: #2e261c;
  color: var(--command-gold);
}

/* Cover auto-open hairline (1.5s beat so user reads the tile title before playback starts). */
.cover { cursor: pointer; }
.cover-sub {
  margin: -8px 0 0;
  color: var(--quiet);
  font: 450 14px/1.35 var(--sans);
}
.cover-meter {
  position: relative;
  width: 100%;
  height: 2px;
  margin-top: 4px;
  border-radius: 999px;
  background: #363028;
  overflow: hidden;
}
.cover-meter span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #b8986c, #edc48b);
  transform-origin: left;
  transform: scaleX(0);
}
.card.is-cover-counting .cover-meter span {
  animation: cover-fill 1.5s linear forwards;
}
@keyframes cover-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) {
  .card.is-cover-counting .cover-meter span { animation: none; transform: scaleX(1); }
}

/* Skill tree final tile (/solo and /business) with real product skill tree image. */
.card[data-static="tree"] {
  display: block;
}
.card[data-static="tree"] .art {
  height: 100%;
  overflow-y: auto;
}
.skill-tree-card {
  display: grid;
  align-content: center;
  gap: 10px;
  min-height: 100%;
  padding: 15px clamp(12px, 4.5cqw, 18px) 14px;
}
.st-with-real {
  grid-template-rows: auto minmax(0, 1fr) auto;
  align-content: stretch;
  height: 100%;
  gap: 8px;
}
.st-real-frame {
  margin: 0;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 6px;
  border: 1px solid #493f32;
  border-radius: 8px;
  background: #060605;
  overflow: hidden;
}
.st-real-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.st-soon-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border: 1px dashed #6b5d4b;
  border-radius: 8px;
  background: #151412;
}
.st-soon-strip-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.st-soon-strip strong {
  color: var(--ink);
  font: 620 12.5px/1.2 var(--sans);
}
.st-soon-strip span {
  color: var(--quiet);
  font: 450 11.5px/1.25 var(--sans);
}
.st-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.st-eyebrow {
  color: var(--sand);
  font: 620 11.5px/1.2 var(--sans);
  letter-spacing: .07em;
  text-transform: uppercase;
}
.st-badge {
  display: inline-flex;
  align-items: center;
  flex: none;
  white-space: nowrap;
  padding: 3px 9px;
  border-radius: 999px;
  font: 620 11px/1.2 var(--sans);
}
.st-badge-soon {
  border: 1px dashed #8a775f;
  background: #221e19;
  color: var(--sand);
}
.st-badge-ready {
  border: 1px solid #d3ba99;
  background: #dac3a4;
  color: #181510;
}
.st-title {
  margin: 0;
  color: var(--ink);
  font: 400 clamp(22px, 6.4cqw, 28px)/1.08 var(--serif);
  text-wrap: balance;
}
.st-meter {
  display: grid;
  gap: 5px;
  padding: 9px 11px;
  border: 1px solid #403930;
  border-radius: 7px;
  background: #151412;
}
.st-meter-head {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--quiet);
}
.st-meter-head strong { color: var(--command-gold); font-weight: 600; }
.st-bar {
  height: 6px;
  border-radius: 999px;
  background: #2b2722;
  overflow: hidden;
}
.st-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #b9996b, #edc48b);
}
.st-branches {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}
.st-branch {
  padding: 8px 7px;
  border: 1px solid #3f382f;
  border-radius: 7px;
  background: #151412;
}
.st-branch strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font: 620 11.5px/1.2 var(--sans);
}
.st-branch ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
}
.st-branch li {
  position: relative;
  padding-left: 11px;
  color: #847e75;
  font: 450 11px/1.25 var(--sans);
}
.st-branch li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .38em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1px solid #60574c;
}
.st-branch li.is-on { color: var(--sand); }
.st-branch li.is-on::before {
  border-color: var(--command-gold);
  background: var(--command-gold);
}
.st-tiers {
  display: grid;
  gap: 9px;
}
.st-tier {
  display: grid;
  gap: 7px;
  padding: 10px 12px;
  border: 1px solid #484036;
  border-radius: 8px;
  background: #151412;
}
.st-tier-ready {
  border-color: #9e8360;
  background: linear-gradient(180deg, #241f18 0%, #191714 100%);
}
.st-tier-soon {
  border-style: dashed;
  border-color: #6b5d4b;
}
.st-tier-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.st-tier-head strong {
  color: var(--ink);
  font: 620 14px/1.2 var(--sans);
}
.st-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.st-chips span {
  padding: 3px 8px;
  border: 1px solid #4a4136;
  border-radius: 999px;
  background: #1d1b18;
  color: var(--quiet);
  font: 500 11.5px/1.2 var(--sans);
}
.st-tier-ready .st-chips span {
  border-color: #7c674d;
  color: var(--command-gold);
  background: #272119;
}
.st-tier p,
.st-foot {
  margin: 0;
  color: var(--quiet);
  font: 400 12.5px/1.35 var(--sans);
}

@media (prefers-reduced-motion: no-preference) {
  .card:not([data-reel="design-system"]).is-playing .art { animation: none; }
  .card[data-log].is-playing[data-working="false"] .result-sheet,
  .card[data-view="choose"] .demo-choice { animation: sheet-in .5s cubic-bezier(.16, 1, .3, 1) both; }
  @keyframes sheet-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}
