/* Pricing page. Builds on styles.css tokens; everything is scoped to main.pricing. */
.pricing .p-hero { padding-bottom: 72px; }
.pricing .p-hero h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 650; letter-spacing: -0.03em; }
.pricing .p-center { display: flex; justify-content: center; margin: -16px 0 36px; }
.pricing .billing { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); }
.pricing .billing button { border: 0; background: transparent; color: var(--ink-2); font: 500 14px var(--font); padding: 9px 16px; border-radius: 999px; cursor: pointer; min-height: 40px; }
.pricing .billing button[aria-pressed="true"] { background: var(--brand); color: #fff; }
.pricing .billing .save { font-size: 12px; opacity: .85; margin-left: 4px; }

.pricing .plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; max-width: 860px; margin: 0 auto; }
.pricing .plan { border: 1px solid var(--line); border-radius: 18px; padding: 28px; background: var(--white); display: flex; flex-direction: column; gap: 18px; min-width: 0; box-shadow: var(--shadow); }
.pricing .plan.pro { border: 2px solid var(--brand); }
.pricing .plan h2 { font-size: 21px; font-weight: 650; }
.pricing .plan-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pricing .tag { font-size: 12px; font-weight: 600; background: var(--brand-soft); color: var(--brand); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.pricing .price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.pricing .price .amt { font-size: 48px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.pricing .price .per { color: var(--muted); font-size: 15px; }
.pricing .billed { color: var(--muted); font-size: 14px; margin-top: 6px; }
.pricing .who { color: var(--ink-2); font-size: 15px; }
.pricing .cos { padding: 12px 14px; border-radius: 10px; background: var(--brand-tint); font-size: 15px; }
.pricing .cos strong { color: var(--brand); }
.pricing .feat { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.pricing .feat li { display: flex; gap: 10px; align-items: flex-start; }
.pricing .feat svg { flex: none; margin-top: 3px; color: var(--good); }
.pricing .feat em { font-style: normal; color: var(--muted); }
.pricing .plan .btn { margin-top: auto; min-height: 48px; font-weight: 600; width: 100%; }
.pricing .beta-note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 22px; }

.pricing .calc { max-width: 860px; margin: 0 auto; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 28px; display: grid; gap: 24px; }
.pricing .calc label { font-weight: 600; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.pricing .calc output { font-size: 28px; font-weight: 700; color: var(--brand); }
.pricing .calc input[type=range] { width: 100%; accent-color: var(--brand); }
.pricing .ticks { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 4px; }
.pricing .bars { display: grid; gap: 14px; }
.pricing .bar-row { display: grid; grid-template-columns: minmax(130px, 210px) minmax(0, 1fr) auto; gap: 14px; align-items: center; font-size: 15px; }
.pricing .bar-row small { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
.pricing .track { height: 14px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.pricing .fill { height: 100%; border-radius: 999px; background: #A9B2BE; transition: width .3s ease; }
.pricing .bar-row.us { font-weight: 650; color: var(--brand); }
.pricing .bar-row.us .fill { background: var(--brand); }
.pricing .val { min-width: 84px; text-align: right; }
.pricing .saving { border-radius: 12px; background: var(--good-soft); color: var(--good); padding: 16px 18px; font-size: 17px; }
.pricing .saving strong { font-size: 21px; }
.pricing .p-fine { font-size: 13px; color: var(--muted); }

.pricing .cmp-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.pricing .cmp { border-collapse: collapse; width: 100%; min-width: 720px; font-size: 14px; }
.pricing .cmp th, .pricing .cmp td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.pricing .cmp thead th { font-size: 13px; color: var(--muted); font-weight: 600; background: var(--surface); }
.pricing .cmp tbody th { font-weight: 500; color: var(--ink-2); width: 22%; }
.pricing .cmp td.us { background: var(--brand-tint); font-weight: 500; }
.pricing .cmp thead th.us { background: var(--brand-soft); color: var(--brand); }
.pricing .cmp tr:last-child th, .pricing .cmp tr:last-child td { border-bottom: 0; }

.pricing .duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.pricing .panel { border: 1px solid var(--line); border-radius: 16px; padding: 26px; background: var(--white); display: grid; gap: 14px; align-content: start; min-width: 0; }
.pricing .panel h3 { font-size: 20px; font-weight: 650; }
.pricing .panel p { color: var(--ink-2); }
.pricing .fee { display: grid; grid-template-columns: 1fr auto auto; gap: 8px 18px; font-size: 15px; align-items: baseline; }
.pricing .fee .h { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.pricing .fee .us { color: var(--brand); font-weight: 650; }
.site-nav a[aria-current="page"] { color: var(--brand); font-weight: 600; }

@media (max-width: 560px) {
  .pricing .bar-row { grid-template-columns: minmax(0, 1fr) auto; }
  .pricing .track { grid-column: 1 / -1; order: 3; }
  .pricing .plan, .pricing .calc { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) { .pricing .fill { transition: none; } }

/* Single plan + setup card */
.pricing .plans.one { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); max-width: 980px; align-items: start; }
.pricing .feat.cols { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); column-gap: 24px; }
.pricing .plan.setup { background: var(--surface); box-shadow: none; }
.pricing .plan.setup .price .amt { font-size: 40px; }
@media (max-width: 820px) { .pricing .plans.one { grid-template-columns: minmax(0, 1fr); } }
