/* Pricing page: case study pricing (20% off). Loaded after styles.css. Tokens only. */

/* ---------- Shared chip ---------- */
.save-chip {
  display: inline-block; padding: 3px 9px; border-radius: 999px; vertical-align: middle;
  background: var(--electric); color: var(--on-accent);
  font-size: 12px; font-weight: 600; line-height: 1.4; letter-spacing: 0; white-space: nowrap;
}

/* ---------- Standard / case study switch (shown by js/pricing.js) ---------- */
.price-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-bottom: 36px; }
.price-switch[hidden] { display: none; }
.price-switch__group {
  display: inline-flex; max-width: 100%; padding: 4px; border-radius: 999px;
  border: 1px solid var(--line-light); background: var(--paper-2);
}
.price-switch__btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 18px;
  border: 0; border-radius: 999px; background: none; color: var(--muted-on-light);
  font: inherit; font-size: 15px; font-weight: 500; line-height: 1.2; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.price-switch__btn:hover { color: var(--indigo); }
.price-switch__btn[aria-pressed="true"] { background: var(--indigo); color: var(--paper); }
.price-switch__btn:focus-visible { border-radius: 999px; }
.price-switch__how {
  font-size: 15px; font-weight: 500; color: var(--accent-text);
  text-underline-offset: 4px; text-decoration-thickness: 1px;
}
@media (max-width: 420px) {
  .price-switch__group { display: flex; width: 100%; }
  .price-switch__btn { flex: 1 1 auto; justify-content: center; padding-inline: 10px; font-size: 14px; }
}

/* ---------- Prices inside a tier ---------- */
.tier__prices { position: relative; display: flex; flex-direction: column; margin-top: 28px; }
.tier__prices .tier__price { margin-top: 0; }

/* Default (and no-JS) view: standard price large, case study price as a line beneath it. */
.tier__cs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 16px;
  font-size: 15px; line-height: 1.4; color: var(--muted-on-light);
}
.tier__cs strong { font-weight: 600; color: var(--indigo); }
.tier--accent .tier__cs { color: rgba(255, 255, 255, .8); }
.tier--accent .tier__cs strong { color: #fff; }

/* Case study view: standard price struck through above, discounted price large. */
.tiers.is-cs .tier__price {
  font-size: 18px; font-weight: 400; line-height: 1.3; letter-spacing: 0;
  color: var(--muted-on-light); text-decoration: line-through; text-decoration-thickness: 1px;
}
.tiers.is-cs .tier__price span { display: none; }
.tiers.is-cs .tier--accent .tier__price { color: rgba(255, 255, 255, .8); }
.tiers.is-cs .tier__cs { gap: 10px 12px; margin-top: 8px; }
.tier__cs-unit, .tiers.is-cs .tier__cs-label {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.tiers.is-cs .tier__cs strong {
  display: block; font-size: clamp(36px, 3.4vw, 48px); font-weight: 300; line-height: 1; letter-spacing: -.035em;
}
.tiers.is-cs .tier__cs strong::first-letter { text-transform: uppercase; }
.tiers.is-cs .tier__cs-unit {
  position: static; width: auto; height: auto; overflow: visible; clip-path: none; white-space: normal;
  flex: 0 0 100%; font-size: 14px;
}
.tiers.is-cs .tier__cs-unit::after { content: ", as a case study partner"; }
.tiers.is-cs .tier__cs .save-chip { position: absolute; top: 0; right: 0; }

@media (prefers-reduced-motion: no-preference) {
  .tiers.is-swapping .tier__prices { animation: price-in .35s var(--ease); }
}
@keyframes price-in { from { opacity: 0; transform: translateY(6px); } }

/* ---------- How case study pricing works ---------- */
.cs__head { display: grid; gap: 24px; }
.cs__head h2 { max-width: 12em; }
.cs__lede { max-width: 30em; font-size: 18px; color: var(--muted-on-light); }
.cs__points { display: grid; gap: 16px; margin-top: 56px; counter-reset: cs; list-style: none; padding: 0; }
.cs__points li {
  counter-increment: cs; padding: 32px; border: 1px solid var(--line-light); border-radius: 24px; background: var(--paper);
}
.cs__points li::before {
  content: counter(cs, decimal-leading-zero); display: block; margin-bottom: 20px;
  font-size: 14px; font-weight: 600; color: var(--accent-text);
}
.cs__points h3 { font-size: 22px; line-height: 1.2; letter-spacing: -.015em; }
.cs__points p { margin-top: 12px; color: var(--muted-on-light); }
.cs__small { max-width: 60em; margin-top: 32px; font-size: 14px; line-height: 1.6; color: var(--muted-on-light); }
.cs__small a { color: var(--accent-text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
@media (min-width: 700px) { .cs__points { grid-template-columns: 1fr 1fr; gap: var(--gutter); } }
@media (min-width: 900px) {
  .cs__head { grid-template-columns: 1.4fr 1fr; gap: var(--gutter); align-items: end; }
  .cs__lede { justify-self: end; }
}
@media (min-width: 1200px) { .cs__points { grid-template-columns: repeat(4, 1fr); } }
