/* ─────────────────────────────────────────────────────────────────
   pricing.css — pricing page. Uses tokens from landing.css.
   4 tiers + concepts + compare + addon + faq.
   ───────────────────────────────────────────────────────────────── */

.tm-pricing-hero {
  padding: 180px 0 64px;
  text-align: center;
  background: var(--ground);
}
@media (max-width: 768px) { .tm-pricing-hero { padding-top: 130px; } }
.tm-pricing-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}
.tm-pricing-h1 {
  margin: 0 auto;
  max-width: 20ch;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 4.8vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--ink);
  text-wrap: balance;
}
.tm-pricing-sub {
  margin: 24px auto 0;
  max-width: 60ch;
  font-family: var(--font-body);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  color: var(--ink-soft);
  text-wrap: pretty;
}

/* ── 4-tier grid ─────────────────────────────────────────────── */

.tm-tiers { padding: 32px 0 80px; }

.tm-tiers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  align-items: stretch;
}
@media (max-width: 980px) { .tm-tiers-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (max-width: 560px)  { .tm-tiers-grid { grid-template-columns: 1fr; } }

.tm-tier {
  position: relative;
  background: color-mix(in oklab, var(--ink) 4%, var(--surface));
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.tm-tier.is-highlighted {
  background: var(--surface);
  border-color: var(--brand-ink);
  box-shadow:
    0 0 0 2px var(--brand-ink),
    0 24px 60px -30px rgba(11, 15, 20, 0.35);
}
.tm-tier-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--brand-ink);
  color: #fff;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.005em;
  white-space: nowrap;
}

.tm-tier-head { display: flex; flex-direction: column; gap: 8px; }
.tm-tier-name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--brand-ink);
}
.tm-tier-tagline {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--ink-soft);
  line-height: 1.5;
  min-height: 3em;
}

.tm-tier-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-display);
  color: var(--brand-ink);
  min-height: 52px;
}
.tm-tier-price-amount {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
}
.tm-tier-price-amount.is-custom {
  font-size: 30px;
}
.tm-tier-price-amount::before {
  content: "$";
  font-size: 0.7em;
  vertical-align: 0.35em;
  margin-right: 2px;
  font-weight: 700;
}
.tm-tier-price-amount.is-custom::before { content: ""; margin: 0; }
.tm-tier-price-suffix {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.tm-tier .tm-btn { width: 100%; }
.tm-tier .tm-btn-dark {
  background: var(--brand-ink);
  color: #fff;
}
.tm-tier .tm-btn-primary {
  background: var(--brand-ink);
  color: #fff;
}

.tm-tier-includes {
  margin-top: 6px;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--brand-ink);
}
.tm-tier-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tm-tier-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.tm-tier-features li i {
  flex: 0 0 auto;
  margin-top: 2px;
  font-size: 16px;
  color: var(--brand-ink);
  opacity: 0.55;
}

/* ── Concepts section ─────────────────────────────────────── */

.tm-concepts {
  padding: 80px 0;
  background: color-mix(in oklab, var(--ink) 4%, var(--surface));
}
.tm-concepts-h2 {
  text-align: center;
  margin: 0 auto 48px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.02em;
  color: var(--brand-ink);
}
.tm-concepts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 1080px;
  margin: 0 auto;
}
@media (max-width: 760px) {
  .tm-concepts-grid { grid-template-columns: 1fr; }
}
.tm-concept {
  background: color-mix(in oklab, var(--ink) 3%, var(--surface));
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 24px 26px;
}
.tm-concept.is-full {
  grid-column: 1 / -1;
}
.tm-concept-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.015em;
  color: var(--brand-ink);
}
.tm-concept-body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  text-wrap: pretty;
}

/* ── Compare table (5 cols) ─────────────────────────────── */

.tm-compare-section {
  padding: 100px 0;
}
.tm-compare-section .tm-h2 {
  text-align: center;
  margin: 0 auto 48px;
  max-width: 22ch;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--brand-ink);
}
.tm-compare-wrap {
  overflow-x: auto;
}
.tm-compare-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 16px;
  overflow: hidden;
}
.tm-compare-table thead th {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.015em;
  padding: 18px 16px;
  text-align: center;
  color: var(--brand-ink);
  background: color-mix(in oklab, var(--accent) 3%, var(--surface));
  border-bottom: 1px solid var(--rule);
}
.tm-compare-table thead th:first-child {
  width: 32%;
  text-align: left;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}
.tm-compare-table thead th.is-highlighted {
  color: var(--accent);
}
.tm-compare-table .tm-compare-group {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  padding: 18px 16px 8px;
  background: color-mix(in oklab, var(--ink) 2%, transparent);
  text-align: left !important;
}
.tm-compare-table td {
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 13.5px;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  text-align: center;
}
.tm-compare-table tr:last-child td { border-bottom: 0; }
.tm-compare-table td:first-child {
  color: var(--ink-soft);
  font-weight: 500;
  text-align: left;
}
.tm-compare-mark.tm-compare-cell-yes { color: var(--brand-ink); font-weight: 700; }
.tm-compare-mark.tm-compare-cell-yes.is-h { color: var(--accent); }
.tm-compare-mark.tm-compare-cell-no  { color: var(--muted-2); }
.tm-compare-mark.is-h { color: var(--accent); font-weight: 600; }

/* ── Addon strip ─────────────────────────────────────────── */

.tm-addon {
  background: var(--brand-ink);
  color: #fff;
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}
.tm-addon::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 12% 85%, color-mix(in oklab, var(--brand-blue) 60%, transparent) 0 90px, transparent 92px),
    radial-gradient(circle at 20% 85%, color-mix(in oklab, var(--brand-mint) 60%, transparent) 0 90px, transparent 92px);
  opacity: 0.18;
  mask-image: radial-gradient(circle at 18% 85%, black 0%, transparent 60%);
}
.tm-addon-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.tm-addon-text { flex: 1; min-width: 280px; }
.tm-addon-h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 2.6vw, 32px);
  letter-spacing: -0.02em;
  color: #fff;
}
.tm-addon-sub {
  margin: 12px 0 0;
  font-family: var(--font-body);
  font-size: var(--text-md);
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
  max-width: 56ch;
}
.tm-addon .tm-btn-dark {
  background: #fff;
  color: var(--brand-ink);
}
.tm-addon .tm-btn-dark:hover {
  background: var(--brand-mint);
}

/* ── FAQ ─────────────────────────────────────────────────── */

.tm-faq-section { padding: 100px 0; }
.tm-faq-section .tm-h2 {
  text-align: center;
  margin: 0 auto 56px;
  max-width: 22ch;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--brand-ink);
}
.tm-faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
.tm-faq-item { border-top: 1px solid var(--rule); }
.tm-faq-item:last-child { border-bottom: 1px solid var(--rule); }
.tm-faq-summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 4px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.015em;
  color: var(--brand-ink);
  user-select: none;
}
.tm-faq-summary::-webkit-details-marker { display: none; }
.tm-faq-summary .tm-faq-caret {
  margin-left: auto;
  flex: 0 0 auto;
  width: 28px; height: 28px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--accent) 8%, transparent);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: transform 180ms var(--ease), background 180ms var(--ease);
}
.tm-faq-item[open] .tm-faq-caret {
  transform: rotate(45deg);
  background: var(--accent);
  color: #fff;
}
.tm-faq-answer {
  padding: 0 4px 22px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
  max-width: 64ch;
}
