/* PODI patient-education concepts — shared styles
   Palette matches the podi-concept site preview. */
:root {
  --ink: #1B2A33;
  --paper: #FAF8F4;
  --accent: #C94A22;
  --teal: #15706B;
  --muted: #5B6B75;
  --card: #FFFFFF;
  --line: #E4DED4;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: 'Archivo', system-ui, -apple-system, sans-serif;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--teal); }

.concept-bar {
  background: var(--ink);
  color: #EDE7DC;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  padding: 7px 14px;
  text-align: center;
}
.concept-bar strong { color: #F2B8A2; font-weight: 600; }

header.site {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 20px 10px;
  flex-wrap: wrap;
}
header.site .brand {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
header.site .brand span { color: var(--accent); }
header.site a.back {
  font-size: 13.5px;
  text-decoration: none;
  color: var(--muted);
}
header.site a.back:hover { color: var(--teal); }
h1.page {
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 700;
  margin: 2px 20px 4px;
  letter-spacing: -0.01em;
}
p.lede {
  margin: 0 20px 14px;
  max-width: 640px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.5;
}

/* ===== demo layout: canvas + control card ===== */
.stage-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 16px;
  padding: 0 20px 24px;
  align-items: start;
}
.stage {
  position: relative;
  background: radial-gradient(130% 95% at 50% 18%, #FFFFFF 0%, #F5F0E7 48%, #E6DDCC 100%);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  height: min(70vh, 640px);
  min-height: 380px;
}
.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 -50px 90px rgba(27,42,51,0.10), inset 0 0 140px rgba(27,42,51,0.06);
  border-radius: 14px;
}
.stage canvas { width: 100%; height: 100%; display: block; touch-action: none; }
.stage .hint {
  position: absolute;
  left: 12px;
  bottom: 10px;
  font-size: 12px;
  color: var(--muted);
  background: rgba(255,255,255,0.75);
  padding: 3px 9px;
  border-radius: 999px;
  pointer-events: none;
}
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 16px 18px;
}
.panel h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 14px 0 6px;
  font-weight: 600;
}
.panel h2:first-child { margin-top: 0; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg button {
  font: inherit;
  font-size: 13.5px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.seg button.on {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}
input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
  margin: 4px 0 0;
}
.slider-row { font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; }
.btn-primary {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  width: 100%;
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  border: none;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}
.btn-primary:active { filter: brightness(0.92); }
.readout {
  border-left: 3px solid var(--teal);
  background: #F3F7F6;
  border-radius: 0 10px 10px 0;
  padding: 10px 12px;
  font-size: 13.5px;
  line-height: 1.5;
  margin-top: 8px;
  min-height: 58px;
}
.readout.warn { border-left-color: var(--accent); background: #FBF1EC; }
.readout b { display: block; margin-bottom: 2px; }
.chip {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.chip.good { background: #DDEBE9; color: var(--teal); }
.chip.bad  { background: #F6DDD2; color: var(--accent); }
.legend { font-size: 12.5px; color: var(--muted); margin-top: 8px; line-height: 1.7; }
.legend .dot {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  margin-right: 6px; vertical-align: -1px;
}
.toggle-row { display: flex; align-items: center; gap: 8px; font-size: 13.5px; margin: 4px 0; }
.toggle-row input { accent-color: var(--teal); width: 16px; height: 16px; }
.plybtns { display: flex; align-items: center; gap: 10px; }
.plybtns button {
  font: inherit; font-size: 18px; width: 38px; height: 38px;
  border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer;
}
.plybtns button:active { background: #F2EEE6; }
.plybtns .count { font-size: 15px; font-weight: 600; min-width: 64px; text-align: center; }

footer.note {
  padding: 0 20px 30px;
  font-size: 12.5px;
  color: var(--muted);
  max-width: 720px;
  line-height: 1.6;
}

/* ===== index cards ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  padding: 8px 20px 10px;
  max-width: 1040px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 18px;
  text-decoration: none;
  color: var(--ink);
  display: block;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(27,42,51,0.08); }
.card .icon { margin-bottom: 10px; }
.card h3 { margin: 0 0 6px; font-size: 17px; }
.card p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.card .go { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--accent); }

@media (max-width: 860px) {
  .stage-wrap { grid-template-columns: 1fr; }
  .stage { height: 52vh; min-height: 320px; }
}
