/* pricing.css — /pricing/ page only. All values from tokens.css.
 * Loaded via the head_extra block in base.html; unused by other pages.
 * Reuses base.css components: .section, .card, .btn, .band-grad, .cta.
 */

/* ---- tier grid ---- */
.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s5);
  margin-top: var(--s7);
}
.tier {
  position: relative;            /* anchor for the featured pill */
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s6);
}
.tier--featured {
  border: 2px solid var(--accent);
  padding: calc(var(--s6) - 1px);
}
/* Recommended pill: lifted out of flow and pinned straddling the top border,
 * so every card's name / price / rows start on the same line regardless of
 * the pill. (It was in-flow before, which pushed the featured card down.) */
.tier__badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-mono);
  font-size: var(--fs-cap);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
}
.tier__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-h3);
  color: var(--ink-deep);
  letter-spacing: -0.01em;
}
.tier__tagline {
  color: var(--muted);
  margin-top: var(--s2);
  min-height: 2.8em;
  text-wrap: balance;
}
.tier__price-row {
  display: flex;
  align-items: baseline;
  gap: var(--s2);
  margin-top: var(--s5);
}
.tier__price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h1);
  color: var(--ink-deep);
  letter-spacing: -0.02em;
  line-height: 1;
}
.tier__price-note {
  font-family: var(--font-mono);
  font-size: var(--fs-cap);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.tier__terms {
  margin-top: var(--s3);
  font-size: var(--fs-body);
  color: var(--muted);
}
.tier__features {
  list-style: none;
  margin: var(--s5) 0 var(--s6);
  padding: var(--s5) 0 0;
  border-top: 1px solid var(--line);
}
.tier__features li {
  position: relative;
  padding-left: var(--s5);
  margin-bottom: var(--s3);
  line-height: var(--lh-body);
  color: var(--ink);
}
.tier__features li:last-child { margin-bottom: 0; }
.tier__features li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 7px; height: 7px;
  background: var(--brand);
  border-radius: 50%;
}
.tier__cta {
  margin-top: auto;
  width: 100%;
  text-align: center;
}

/* ---- how payment works ---- */
.how {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s5);
  margin-top: var(--s7);
  counter-reset: how;
}
.how__step {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s6);
}
.how__step::before {
  counter-increment: how;
  content: counter(how);
  display: inline-grid;
  place-items: center;
  width: 2rem; height: 2rem;
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 50%;
  margin-bottom: var(--s4);
}
.how__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-h3);
  color: var(--ink-deep);
  letter-spacing: -0.01em;
  margin-bottom: var(--s2);
}
.how__step p { color: var(--muted); }

/* ---- care plan (the recurring item, deliberately set apart) ---- */
.care {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--s7);
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s7);
  margin-top: var(--s7);
}
.care__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-h3);
  color: var(--ink-deep);
  letter-spacing: -0.01em;
}
.care__tagline { color: var(--muted); margin-top: var(--s3); }
.care__price-row {
  display: flex; align-items: baseline; gap: var(--s2);
  margin-top: var(--s5);
}
.care__price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h2);
  color: var(--ink-deep);
  letter-spacing: -0.02em;
  line-height: 1;
}
.care__price-note {
  font-family: var(--font-mono);
  font-size: var(--fs-cap);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.care__terms { margin-top: var(--s3); font-size: var(--fs-body); color: var(--muted); }
.care__cta { margin-top: var(--s5); }
.care__features { list-style: none; margin: 0; padding: 0; }
.care__features li {
  position: relative;
  padding-left: var(--s5);
  margin-bottom: var(--s3);
  line-height: var(--lh-body);
  color: var(--ink);
}
.care__features li:last-child { margin-bottom: 0; }
.care__features li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 7px; height: 7px;
  background: var(--brand);
  border-radius: 50%;
}

/* ---- FAQ (native <details>, no JS) ---- */
.faq { max-width: var(--measure); margin-top: var(--s7); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: var(--s5) 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-body-l);
  color: var(--ink-deep);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
}
.faq__item summary:hover { color: var(--accent); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  flex: none;
  width: 0.6rem; height: 0.6rem;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform .15s ease;
}
.faq__item[open] summary::after { transform: rotate(-135deg); }
.faq__item p {
  color: var(--muted);
  font-size: var(--fs-body-l);
  padding-bottom: var(--s5);
  max-width: 92%;
}

/* ---- responsive ---- */
@media (max-width: 860px) {
  .tiers { grid-template-columns: 1fr; max-width: 32rem; margin-inline: auto; }
  .tier__tagline { min-height: 0; }
  .care { grid-template-columns: 1fr; gap: var(--s5); padding: var(--s6); }
}
@media (max-width: 680px) {
  .how { grid-template-columns: 1fr; }
}
