/* Pricing */
.pricing-hero {
  padding: 100px 0 80px;
  background:
    radial-gradient(ellipse 80% 60% at 15% 20%, color-mix(in oklab, var(--moss) 12%, var(--bg)), var(--bg) 60%);
}
.pricing-h1 {
  font-size: clamp(44px, 5.6vw, 84px);
  line-height: 1.04; margin: 28px 0 0;
  letter-spacing: -0.02em; max-width: 20ch;
}
.pricing-h1 em { font-style: italic; color: var(--moss); }

/* Tier cards */
.tier-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.tier {
  background: var(--bg-elev);
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex; flex-direction: column;
  position: relative;
}
.tier-featured {
  background: var(--ink); color: var(--bg);
  border-color: var(--ink);
}
.tier-featured .mono-label,
.tier-featured .tier-blurb,
.tier-featured .tier-features li,
.tier-featured .tier-more summary,
.tier-featured .tier-more li,
.tier-featured h3,
.tier-featured .tier-price-num,
.tier-featured .tier-price-sfx { color: var(--bg); }
.tier-featured .tier-features li { border-color: color-mix(in oklab, var(--bg) 18%, transparent); }
.tier-featured .tier-more { border-top-color: color-mix(in oklab, var(--bg) 18%, transparent); }
.tier-featured .tier-more[open] { border-bottom-color: color-mix(in oklab, var(--bg) 18%, transparent); }
.tier-featured .btn {
  background: var(--bg); color: var(--ink); border-color: var(--bg);
}
.tier-badge {
  position: absolute; top: -12px; left: 32px;
  background: var(--gold); color: var(--bg-elev);
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 6px 12px; border-radius: var(--radius);
}
.tier header { display: flex; flex-direction: column; gap: 10px; }
.tier h3 {
  font-size: 36px; margin: 4px 0 0; line-height: 1;
}
.tier-price {
  margin: 18px 0 4px;
  display: flex; align-items: baseline; gap: 6px;
}
.tier-price-num {
  font-family: var(--font-display); font-size: 48px; line-height: 1;
  letter-spacing: -0.02em;
}
.tier-price-sfx { font-family: var(--font-display); font-size: 20px; color: var(--muted); }
.tier-price-pre {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted);
  align-self: flex-start; margin-bottom: -2px;
}
.tier-featured .tier-price-pre { color: color-mix(in oklab, var(--bg) 70%, transparent); }
.tier-featured .tier-price-sfx { color: color-mix(in oklab, var(--bg) 70%, transparent); }
.tier-blurb { margin: 0; font-size: 14.5px; color: var(--muted); max-width: 32ch; }
.tier-featured .tier-blurb { color: color-mix(in oklab, var(--bg) 80%, transparent); }
.tier-features {
  list-style: none; padding: 0; margin: 28px 0 0;
  flex-grow: 1;
}
.tier-features li {
  padding: 12px 0;
  border-top: 1px solid var(--hair);
  font-size: 14.5px;
}
.tier-features li:last-child { border-bottom: 1px solid var(--hair); }

.tier-more {
  border-top: 1px solid var(--hair);
  margin-top: 16px; padding-top: 0;
}
.tier-more summary {
  cursor: pointer; padding: 14px 0;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
  display: flex; justify-content: space-between; align-items: center;
  list-style: none;
}
.tier-more summary::-webkit-details-marker { display: none; }
.tier-more summary span { font-size: 16px; transition: transform .2s; }
.tier-more[open] summary span { transform: rotate(45deg); }
.tier-more ul {
  list-style: none; padding: 0 0 16px; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
  font-size: 14px; color: var(--muted);
  line-height: 1.5;
}
.tier-more li { padding-left: 18px; position: relative; }
.tier-more li::before {
  content: ""; position: absolute; left: 0; top: 10px;
  width: 8px; height: 1px; background: var(--moss);
}
.tier-cta { margin-top: 24px; justify-content: center; }

/* Support plans */
.support-band { background: var(--bg-elev); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.plan-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border: 1px solid var(--hair); border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg);
}
.plan {
  padding: 32px;
  border-right: 1px solid var(--hair);
  display: flex; flex-direction: column; gap: 16px;
}
.plan:last-child { border-right: 0; }
.plan-price {
  font-family: var(--font-display);
  font-size: 52px; line-height: 1; letter-spacing: -0.02em;
  color: var(--ink);
}
.plan-price span {
  font-size: 18px; color: var(--muted); margin-left: 4px;
}
.plan ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column;
}
.plan li {
  padding: 12px 0;
  border-top: 1px solid var(--hair);
  font-size: 14.5px;
}
.plan-fineprint {
  text-align: center; margin: 32px 0 0;
}

/* Onboarding example callout */
.example-callout {
  margin-top: 28px;
  padding: 24px 28px;
  background: var(--bg-elev);
  border: 1px solid var(--hair);
  border-left: 3px solid var(--moss);
  border-radius: var(--radius);
  font-size: 16px; line-height: 1.6;
  color: var(--ink-2);
  max-width: 64ch;
}
.example-callout strong { color: var(--ink); font-weight: 500; }
.onboard-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start;
}
.usage-note {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  margin-top: 48px; padding-top: 40px;
  border-top: 1px solid var(--hair);
}
.usage-note h4 {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold); font-weight: 400; margin: 0 0 12px;
}
.usage-note p { margin: 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.65; max-width: 52ch; }

/* Row two */
.row-two {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
}
.lineitems {
  list-style: none; padding: 0; margin: 32px 0 0;
}
.lineitems li {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--hair);
  font-size: 15px;
}
.lineitems li:last-child { border-bottom: 1px solid var(--hair); }
.lineitems li span:last-child {
  font-family: var(--font-mono); font-size: 13px;
  letter-spacing: 0.04em; color: var(--ink);
  white-space: nowrap;
}

/* Self-host */
.selfhost-band { background: var(--bg-elev); }
.selfhost-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: start; }
.selfhost-list {
  list-style: none; padding: 0; margin: 0;
  background: var(--bg);
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
}
.selfhost-list li {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 20px 24px;
  border-top: 1px solid var(--hair);
  gap: 20px;
}
.selfhost-list li:first-child { border-top: 0; }
.selfhost-list strong {
  font-family: var(--font-display); font-weight: 400; font-size: 18px;
}
.selfhost-list span {
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.08em; color: var(--muted);
  text-align: right;
}

@media (max-width: 900px) {
  .tier-grid, .plan-grid, .row-two, .selfhost-inner, .onboard-grid, .usage-note { grid-template-columns: 1fr; }
  .plan { border-right: 0; border-bottom: 1px solid var(--hair); }
  .plan:last-child { border-bottom: 0; }
}
