/* ===== Creative Strategy Page — page styles ===== */
/* Shared pi-* base styles live in /styles.css. Everything here is either
   page-scoped (cs-*) or an override of a pi-* base that leaves a fill
   transparent so each platform page can pick its own colour. Neo-brutalist
   tokens only: flat tints, dark 2.5px borders, hard offset shadows. */

/* --- pi-* overrides --- */
.pi-hero::before { background: none; }
.pi-hero-title { font-size: clamp(34px, 4.4vw, 56px); }
.pi-hero-title em {
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  background-clip: unset;
  color: var(--dark);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 6px;
  text-underline-offset: 6px;
}
.cs-hero-note {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text4);
  margin: -14px 0 28px;
}
.pi-feature-bullets li::before {
  background: rgba(34,197,94,.12);
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='10' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 6L9 17l-5-5' stroke='%2315803d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.pi-feature-badge.pink {
  background: #FCE7F3;
  color: var(--dark);
  border: var(--border-w) solid var(--dark);
}
.pi-stat-num {
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  background-clip: unset;
  color: var(--dark);
}
.pi-drew-visual { background: #D1FAE5; }
.pi-drew-mockup-dot { background: var(--green); }
.pi-drew-mockup-a { background: var(--bg); border: var(--border-w) solid var(--dark); }
/* shared.js only toggles .open; the cap has to clear the longest answer on a
   320px viewport with text zoom, so keep it well above the base 300px. */
.pi-faq-item.open .pi-faq-a { max-height: 900px; }

/* --- Feature visuals (flat tints, one per block) --- */
.cs-vis {
  padding: 24px;
  gap: 14px;
  justify-content: center;
}
.cs-vis--leaderboard { background: #D1FAE5; }
.cs-vis--diagnosis { background: #DBEAFE; }
.cs-vis--tags { background: #EDE9FE; }
.cs-vis--concepts { background: #FEF3C7; }
.cs-vis--rivals { background: #FCE7F3; }
.cs-vis .pi-vis-card { overflow-x: auto; }
.cs-vis .pi-vis-card-header small {
  margin-left: 12px;
  text-align: right;
  max-width: 62%;
}

/* --- Tables --- */
.cs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.cs-table th,
.cs-table td {
  padding: 9px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(26,26,26,.12);
  white-space: nowrap;
  vertical-align: middle;
}
.cs-table th {
  background: var(--bg);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  color: var(--text4);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.cs-table td { font-family: var(--mono); color: var(--text2); }
.cs-table td:first-child {
  font-family: var(--font);
  font-weight: 600;
  color: var(--text);
}
.cs-table tbody tr:last-child td { border-bottom: none; }

.cs-thumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid var(--dark);
  margin-right: 8px;
  vertical-align: middle;
}
.cs-thumb--video { background: var(--purple); }
.cs-thumb--static { background: var(--blue); }
.cs-winner {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--yellow);
  border: 1.5px solid var(--dark);
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .04em;
  vertical-align: middle;
}

/* --- Status chips (the five frozen states) and action verbs --- */
.cs-chip {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1.5px solid var(--dark);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--dark);
  white-space: nowrap;
}
.cs-chip--scaling { background: #D1FAE5; }
.cs-chip--healthy { background: #DBEAFE; }
.cs-chip--fatiguing { background: #FEF3C7; }
.cs-chip--dead { background: #FEE2E2; }
.cs-chip--testing { background: var(--bg); }
.cs-chip--new { background: var(--yellow); }
.cs-chip--long { background: #D1FAE5; }

.cs-verb {
  display: inline-block;
  min-width: 58px;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1.5px solid var(--dark);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .06em;
  text-align: center;
  color: var(--dark);
  white-space: nowrap;
  box-shadow: 2px 2px 0 var(--dark);
}
.cs-verb--scale { background: #BBF7D0; }
.cs-verb--iterate { background: var(--yellow); }
.cs-verb--kill { background: #FCA5A5; }
.cs-verb--wait { background: var(--white); }
.cs-verb--hold { background: var(--bg); box-shadow: none; color: var(--text4); }

.cs-evidence {
  padding: 10px 14px;
  border-top: var(--border-w) solid var(--dark);
  background: #FEF3C7;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text2);
  line-height: 1.5;
  white-space: normal;
}

/* --- Weekly diagnosis: action list + testing velocity --- */
.cs-actions { display: flex; flex-direction: column; }
.cs-action {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(26,26,26,.12);
}
.cs-action:last-child { border-bottom: none; }
.cs-action-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cs-action-body strong { font-size: 13px; color: var(--text); }
.cs-action-body span {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text3);
  line-height: 1.4;
}
.cs-action-risk {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}
.cs-action-risk small {
  font-size: 10px;
  font-weight: 400;
  color: var(--text4);
}

.cs-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  font-size: 12px;
}
.cs-bar-label {
  width: 84px;
  flex-shrink: 0;
  font-weight: 600;
  color: var(--text2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cs-bar-label--wide {
  width: 210px;
  white-space: normal;
  line-height: 1.25;
}
.cs-bar {
  flex: 1;
  height: 10px;
  border: 1.5px solid var(--dark);
  border-radius: 999px;
  background: var(--white);
  overflow: hidden;
}
.cs-bar-fill {
  height: 100%;
  background: var(--green);
  border-radius: 999px;
}
.cs-bar-fill--you { background: var(--yellow); }
.cs-bar-fill--muted { background: #9A9AA5; }
.cs-bar-fill--amber { background: #F59E0B; }
.cs-bar-fill--red { background: var(--red); }
.cs-bar-row em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text2);
  white-space: nowrap;
  min-width: 62px;
  text-align: right;
}
.cs-velocity-rows { padding: 6px 0; }
.cs-velocity-verdict {
  margin: 0;
  padding: 10px 14px 12px;
  border-top: 1px solid rgba(26,26,26,.12);
  font-size: 12px;
  line-height: 1.5;
  color: var(--text2);
}

/* --- Tags rollup + AI read-out --- */
.cs-share {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 120px;
}
.cs-share .cs-bar { height: 8px; }
.cs-share span { font-family: var(--mono); font-size: 11px; }
.cs-ai-read {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1.5px solid var(--dark);
  background: #EDE9FE;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--dark);
}
.cs-readout-list {
  margin: 0;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 6px 12px;
  font-size: 12px;
}
.cs-readout-list dt {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text4);
  padding-top: 2px;
}
.cs-readout-list dt em {
  font-style: normal;
  text-transform: none;
  letter-spacing: 0;
}
.cs-readout-list dd {
  margin: 0;
  color: var(--text2);
  line-height: 1.45;
}

/* --- Concepts --- */
.cs-concepts-callout {
  padding: 14px;
  border-bottom: 1px solid rgba(26,26,26,.12);
  font-size: 14px;
  color: var(--text2);
}
.cs-concepts-callout strong {
  font-family: var(--mono);
  font-size: 22px;
  color: var(--dark);
}
.cs-concept-rows { padding: 6px 0; }
.cs-concepts-foot {
  padding: 10px 14px;
  border-top: var(--border-w) solid var(--dark);
  background: var(--bg);
  font-size: 11px;
  line-height: 1.5;
  color: var(--text3);
}

/* --- Rivals --- */
.cs-rival-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(26,26,26,.12);
}
.cs-rival {
  padding: 4px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--dark);
  background: var(--white);
  font-size: 12px;
  font-weight: 600;
}
.cs-rival--active {
  background: var(--yellow);
  box-shadow: 2px 2px 0 var(--dark);
}
.cs-rival--add {
  border-style: dashed;
  color: var(--text4);
  font-weight: 500;
}
.cs-rival-activity {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(26,26,26,.12);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text3);
}
.cs-rival-activity strong { color: var(--dark); }
.cs-rival-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px 14px;
}
.cs-rival-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  border: var(--border-w) solid var(--dark);
  border-radius: 10px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.cs-rival-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.cs-rival-format {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text4);
  white-space: nowrap;
}
.cs-rival-copy {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
}
.cs-rival-meta {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text4);
}
.cs-rival-foot {
  padding: 10px 14px;
  border-top: var(--border-w) solid var(--dark);
  background: var(--bg);
  font-size: 11px;
  line-height: 1.5;
  color: var(--text3);
}

/* --- The grading contract --- */
.cs-method {
  padding: 80px 0 40px;
  background: var(--bg);
}
.cs-states {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.cs-state {
  background: var(--white);
  border: var(--border-w) solid var(--dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 20px 18px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.cs-state:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.cs-state-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}
.cs-state h3 {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.01em;
  margin: 0 0 8px;
}
.cs-state p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text3);
}
.cs-rules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.cs-rule {
  background: var(--white);
  border: var(--border-w) solid var(--dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm), inset 8px 0 0 var(--yellow);
  padding: 24px 24px 24px 32px;
}
.cs-rule h3 {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.01em;
  margin: 0 0 8px;
}
.cs-rule p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text3);
}

/* --- From verdict to action --- */
.cs-loop {
  padding: 40px 0;
  background: var(--bg);
}
.cs-loop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.cs-loop-card {
  position: relative;
  background: var(--white);
  border: var(--border-w) solid var(--dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 28px 24px 24px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.cs-loop-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.cs-loop-index {
  display: inline-block;
  margin-bottom: 14px;
  padding: 3px 9px;
  border: 1.5px solid var(--dark);
  border-radius: 6px;
  background: var(--yellow);
  font-family: var(--mono);
  font-size: 12px;
}
.cs-loop-card h3 {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.01em;
  margin: 0 0 8px;
}
.cs-loop-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text3);
}

/* --- Further reading (under the FAQ) --- */
.cs-reading {
  max-width: 740px;
  margin: 28px auto 0;
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}
.cs-reading-label {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text4);
}
.cs-reading-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.cs-reading-list a {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 3px;
  text-underline-offset: 3px;
}
.cs-reading-list a:hover {
  background: var(--yellow);
  text-decoration: none;
}

/* --- Responsive --- */
@media (max-width: 1200px) {
  .cs-states { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
  .cs-vis { padding: 20px; }
}
@media (max-width: 768px) {
  .cs-states { grid-template-columns: 1fr 1fr; }
  .cs-rules,
  .cs-loop-grid,
  .cs-rival-cards { grid-template-columns: 1fr; }
  .cs-table { font-size: 11px; }
  .cs-table th,
  .cs-table td { padding: 8px; }
  .cs-bar-label--wide { width: 120px; }
  .cs-readout-list { grid-template-columns: 1fr; gap: 2px 0; }
  .cs-readout-list dd { margin-bottom: 8px; }
  .cs-method { padding: 56px 0 24px; }
}
@media (max-width: 480px) {
  .cs-states { grid-template-columns: 1fr; }
  .cs-vis { padding: 14px; }
  /* Verb and spend-at-risk share the first line; name + evidence take a full
     second line instead of squeezing into a narrow middle column. */
  .cs-action { flex-wrap: wrap; }
  .cs-action-body { flex-basis: 100%; order: 2; }
  .cs-action-risk { margin-left: auto; align-items: baseline; flex-direction: row; gap: 6px; }
  /* Narrow phones: let creative names wrap and drop the last numeric
     column so the leaderboard fits without a horizontal scroll. */
  .cs-table td:first-child { white-space: normal; min-width: 120px; }
  .cs-table th:last-child,
  .cs-table td:last-child { display: none; }
  .cs-share { min-width: 90px; }
}
