/* Pricing page. Built on the tokens in landing.css, so light and dark follow the landing page. */

.nav-links a.on { color: var(--text); background: var(--surface-2); }

/* Hero */
.p-hero { padding: 64px 0 40px; position: relative; overflow: hidden; }
.p-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(var(--dot) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 20%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 20%, #000 30%, transparent 75%);
}
.p-hero .section-head { margin-bottom: 0; }
.p-hero h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 800; letter-spacing: -0.035em; }
.p-hero .section-head p { font-size: 19px; }
.p-hero .bill { margin-top: 8px; }

/* Plans */
.p-plans { padding: 24px 0 0; }

.p-empty { max-width: 520px; margin: 0 auto; text-align: center; padding: 48px 28px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.p-empty h2 { font-size: 26px; font-weight: 800; }
.p-empty p { color: var(--muted); margin-bottom: 8px; }

/* Comparison table */
#compare { padding-bottom: 0; }
.cmp-scroll { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow); }
.cmp-scroll:focus-visible { outline-offset: 3px; }
.cmp { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 760px; font-size: 14px; }
.cmp th, .cmp td { padding: 14px 16px; text-align: center; border-bottom: 1px solid var(--border); vertical-align: middle; background: var(--surface); }
.cmp thead th { padding: 22px 16px 18px; vertical-align: bottom; font-weight: 600; border-bottom: 1px solid var(--border); }
.cmp tbody th[scope="row"], .cmp thead th:first-child, .cmp tfoot th { position: sticky; left: 0; z-index: 2; text-align: left; font-weight: 500; color: var(--text); min-width: 200px; box-shadow: 1px 0 0 var(--border); }
.cmp-name { display: block; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--primary-ink); }
.cmp-price { display: block; margin-top: 6px; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: var(--text); }
.cmp-price small { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 2px; }
.cmp .cmp-group th { text-align: left; background: var(--surface-2); color: var(--subtle); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 10px 16px; position: sticky; left: 0; }
.cmp td { color: var(--text); font-weight: 500; }
.cmp .pop { background: color-mix(in srgb, var(--primary) 7%, var(--surface)); }
.cmp thead th.pop { box-shadow: inset 0 3px 0 var(--primary); }
.cmp .yes { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--success-soft); color: var(--success); }
.cmp .yes svg.i { width: 14px; height: 14px; stroke-width: 2.6; }
.cmp .no { color: var(--subtle); opacity: .7; }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 1px solid var(--border); }
.cmp tfoot th, .cmp tfoot td { border-bottom: 0; padding: 18px 12px; }
.cmp tfoot .btn { min-height: 44px; padding: 0 16px; width: 100%; max-width: 140px; }

/* Responsive */
@media (max-width: 960px) {
  .p-hero { padding-top: 40px; }
}
@media (max-width: 640px) {
  .p-hero .section-head p { font-size: 17px; }
  .cmp tbody th[scope="row"], .cmp thead th:first-child, .cmp tfoot th { min-width: 150px; }
  .cmp th, .cmp td { padding: 12px; }
}
