/* ==========================================================================
   Klar Co-Moderator (/co-moderator): product page of the Chrome extension.
   Builds on tokens.css + site.css + chrome.css + trust.css (page frame, .page__lead, .block). Values come from
   tokens.css only. The side panel in the hero is a drawing of the extension (stage colours, like the studio window
   on the home page) – an example, not a screenshot.
   ========================================================================== */

/* ---------- Hero: text left, side panel right ---------- */
.cm-hero {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 2rem + 4vw, 96px); align-items: center;
}
.cm-hero .eyebrow { display: block; }
.cm-hero h1 {
  margin-top: var(--s-4); font-size: var(--fs-display); line-height: var(--lh-display); letter-spacing: var(--track-display);
  font-weight: var(--w-medium); text-wrap: balance;
}
.cm-hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--accent) 62% 92%, transparent 92%); }
.cm-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-4); margin-top: var(--s-6); }
.cm-ctas .k-pill { height: 48px; padding: 0 22px; }
.cm-fine { margin-top: var(--s-5); max-width: 46ch; font-size: var(--fs-small); color: var(--ink-3); }

.cm-panel {
  position: relative; margin: 0; display: grid; gap: var(--s-3); padding: var(--s-4);
  border-radius: var(--r-l); background: var(--stage); color: var(--stage-ink); box-shadow: var(--shadow-float);
  max-width: 420px; justify-self: end; width: 100%;
}
.cm-panel::before {
  /* the browser edge the panel sits against */
  content: ""; position: absolute; inset: 14px auto 14px -10px; width: 4px; border-radius: var(--r-pill); background: var(--rule-2);
}
.cm-panel__bar { display: flex; align-items: center; gap: var(--s-3); font-size: var(--fs-micro); color: var(--stage-ink-2); }
.cm-live {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: var(--r-pill);
  background: var(--stage-chip); color: var(--stage-ink); font-weight: var(--w-semibold); letter-spacing: var(--track-label); text-transform: uppercase; font-size: var(--fs-label);
}
.cm-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.cm-panel__time { font-variant-numeric: tabular-nums; }
.cm-panel__wave { display: inline-flex; align-items: center; gap: 3px; margin-left: auto; height: 16px; }
.cm-panel__wave i { width: 3px; height: 40%; border-radius: 2px; background: var(--stage-ink-2); }
.cm-panel__wave i:nth-child(2) { height: 90%; }
.cm-panel__wave i:nth-child(3) { height: 60%; }
.cm-panel__wave i:nth-child(4) { height: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .cm-panel__wave i { animation: cm-wave 1.1s var(--ease-smooth) infinite alternate; }
  .cm-panel__wave i:nth-child(2n) { animation-delay: -.4s; }
  .cm-panel__wave i:nth-child(3n) { animation-delay: -.7s; }
}
@keyframes cm-wave { to { height: 25%; } }
.cm-panel__said {
  padding: var(--s-3) var(--s-4); border-radius: var(--r-m); background: var(--stage-2); color: var(--stage-ink-2); font-size: var(--fs-small); line-height: 1.45;
}
.cm-panel__said span {
  display: block; margin-bottom: 4px; font-size: var(--fs-label); font-weight: var(--w-semibold); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--stage-ink-2);
}
.cm-card {
  --edge: var(--tile-sky);
  padding: var(--s-3) var(--s-4) var(--s-4); border-radius: var(--r-m); background: var(--stage-2);
  box-shadow: inset 3px 0 0 var(--edge);
}
.cm-card--false { --edge: var(--tile-coral); }
.cm-card--topic { --edge: var(--tile-apricot); }
.cm-card__tag { font-size: var(--fs-label); font-weight: var(--w-semibold); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--edge); }
.cm-card__title { margin-top: 6px; font-size: var(--fs-body); line-height: 1.35; font-weight: var(--w-medium); color: var(--stage-ink); text-wrap: pretty; }
.cm-card__src { margin-top: var(--s-2); font-size: var(--fs-micro); color: var(--stage-ink-2); }
.cm-card__src::before { content: "↗ "; }

/* ---------- Three helpers ---------- */
.cm-feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--col-gap); }
.cm-feat { padding: var(--s-6); border-radius: var(--r-m); background: var(--paper); }
.cm-feat__tile {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--tile); color: var(--on-tile);
}
.cm-feat__tile svg { width: 28px; height: 28px; }
.cm-feat h3 { margin-top: var(--s-5); font-size: var(--fs-h4); line-height: 1.25; letter-spacing: var(--track-h3); font-weight: var(--w-semibold); }
.cm-feat p { margin-top: var(--s-3); color: var(--ink-2); font-size: var(--fs-small); line-height: 1.5; }
kbd {
  display: inline-block; min-width: 1.6em; padding: 1px 6px; border-radius: var(--r-xs); border: var(--hair) solid var(--rule-2);
  background: var(--canvas); font: var(--w-medium) .85em/1.4 var(--font-kbd, var(--font-sans)); text-align: center; color: var(--ink);
}

/* ---------- Where it works ---------- */
.cm-where { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.cm-where li {
  display: inline-flex; align-items: center; height: 48px; padding: 0 22px; border-radius: var(--r-pill);
  background: var(--paper); font-weight: var(--w-medium);
}
.cm-where li:last-child { background: transparent; border: var(--hair) dashed var(--field); color: var(--ink-2); }

/* ---------- Steps ---------- */
.cm-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--col-gap); counter-reset: cm-step; }
.cm-steps li { counter-increment: cm-step; padding: var(--s-6); border-radius: var(--r-m); border: var(--hair) solid var(--rule-2); }
.cm-steps li::before {
  content: counter(cm-step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--ink); color: var(--canvas); font-weight: var(--w-semibold);
}
.cm-steps h3 { margin-top: var(--s-4); font-size: var(--fs-h4); line-height: 1.25; font-weight: var(--w-semibold); }
.cm-steps p { margin-top: var(--s-2); color: var(--ink-2); font-size: var(--fs-small); }

/* ---------- Privacy ---------- */
.cm-privacy { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--col-gap); }
.cm-fact { padding: var(--s-6); border-radius: var(--r-m); background: var(--paper); }
.cm-fact h3 { font-size: var(--fs-h4); line-height: 1.25; font-weight: var(--w-semibold); }
.cm-fact p { margin-top: var(--s-3); color: var(--ink-2); font-size: var(--fs-small); line-height: 1.5; }
.cm-fact--eu { background: var(--tile-sage); color: var(--on-tile); }
.cm-fact--eu p { color: var(--on-tile); }

/* ---------- Pricing ---------- */
.cm-plans { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr) minmax(0, .9fr); gap: var(--col-gap); align-items: stretch; }
.cm-plan { container-type: inline-size; min-width: 0; display: flex; flex-direction: column; gap: var(--s-4); padding: var(--s-6); border-radius: var(--r-l); background: var(--paper); }
.cm-plan--main { background: var(--stage); color: var(--stage-ink); box-shadow: var(--shadow-float); }
.cm-plan__for { color: var(--accent); }
.cm-plan__name { font-size: var(--fs-h3); line-height: 1.1; letter-spacing: var(--track-h3); font-weight: var(--w-medium); }
.cm-plan__price { display: grid; gap: 4px; }
.cm-plan__price b { font-size: var(--fs-price, var(--fs-h2)); line-height: 1; font-weight: var(--w-medium); letter-spacing: var(--track-h2); }
.cm-plan__price > span { font-size: var(--fs-small); color: var(--ink-3); }
/* A word instead of a number ("Inklusive"): price-sized text would run out of the card, so it scales with the card. */
.cm-plan__price--word b { font-size: min(var(--fs-h2), 20cqi); padding-block: .2em; }
.cm-plan--main .cm-plan__price > span { color: var(--stage-ink-2); }
.cm-plan__list { display: grid; gap: var(--s-2); font-size: var(--fs-small); }
.cm-plan__list li { display: flex; gap: var(--s-2); }
.cm-plan__list li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: .5em; border-radius: 50%; background: var(--accent); }
.cm-plan__btn, .cm-plan__cta { margin-top: auto; align-self: flex-start; }
.cm-plan--main .k-pill { border-color: var(--stage-rule); color: var(--stage-ink); }
.cm-plan__soon { cursor: default; }
.cm-plan--main .k-cta .k-cta__badge { background: var(--accent); color: var(--on-accent); }
.cm-plan--main .k-cta .k-cta__label { background: var(--accent); color: var(--on-accent); }
.cm-plan__fine { font-size: var(--fs-micro); color: var(--stage-ink-2); }
.cm-plan__fine a { color: var(--stage-ink); }

/* ---------- FAQ ---------- */
.cm-faq { max-width: 52rem; border-top: var(--hair) solid var(--rule-2); }
.cm-faq details { border-bottom: var(--hair) solid var(--rule-2); }
.cm-faq summary {
  display: flex; justify-content: space-between; gap: var(--s-4); padding: var(--s-5) 0; cursor: pointer; list-style: none;
  font-size: var(--fs-h4); font-weight: var(--w-medium); line-height: 1.3;
}
.cm-faq summary::-webkit-details-marker { display: none; }
.cm-faq summary::after { content: "+"; flex: none; font-weight: var(--w-regular); transition: transform var(--dur-s) var(--ease-out); }
.cm-faq details[open] summary::after { transform: rotate(45deg); }
.cm-faq summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: var(--r-xs); }
.cm-faq p { padding: 0 0 var(--s-5); max-width: var(--measure); color: var(--ink-2); }
.cm-faq a { color: var(--ink); }

/* ---------- Narrow screens ---------- */
@media (max-width: 1080px) {
  .cm-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cm-plan--main { grid-column: 1 / -1; order: -1; }
}
@media (max-width: 900px) {
  .cm-hero { grid-template-columns: 1fr; }
  .cm-panel { justify-self: start; }
  .cm-feats, .cm-steps { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .cm-privacy, .cm-plans { grid-template-columns: 1fr; }
  .cm-panel::before { display: none; }
}
@media print {
  .cm-panel, .cm-ctas { display: none; }
}
