/* Pricing — plan cards, the free/Pro table, and the FAQ.
   Leans on tokens.css and base.css; nothing here re-declares a colour. */

/* Article shell, the same numbers about.css uses, so this page's column starts
   and ends exactly where About's does. base.css doesn't style `main` at all —
   each article page brings its own — and leaving this out is what made the first
   version render flush to all four edges.
   TODO: duplicated with about.css; worth lifting into base.css as a shared
   `.article` if a third article page appears. */
main { max-width: 720px; margin: 0 auto; padding: clamp(3rem, 8vw, 5.5rem) 1.5rem 5rem; }
main h1 { font-size: clamp(2.4rem, 7vw, 3.8rem); line-height: 1.05; }
main h2 { font-size: clamp(1.4rem, 3.5vw, 1.9rem); letter-spacing: -0.015em; margin: 2.8rem 0 .8rem; }
main p { color: color-mix(in srgb, var(--text) 82%, var(--text-2)); font-size: 1.08rem; margin: 0 0 1rem; }
main p strong { color: var(--text); font-weight: 600; }

.lead { font-size: clamp(1.15rem, 2.4vw, 1.45rem); color: var(--text-2); margin-top: 1.3rem; max-width: 54ch; }

/* The hero: house and globe. Collapses to nothing without WebGL rather than
   leaving a hole — the page reads fine without it. */
.pricing-stage { width: 100%; max-width: 46rem; aspect-ratio: 2.1 / 1; margin: 1.6rem auto .4rem; }
.pricing-stage canvas { display: block; width: 100%; height: 100%; cursor: pointer; }
.pricing-stage.no3d { display: none; }
.rule { height: 1px; background: var(--border); border: 0; margin: 3rem 0; }
.ctas { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 2rem; }

/* The honest headline: what costs nothing, stated before any price. */
.free-first {
  margin: 1.8rem 0 0; padding: 1.15rem 1.3rem;
  background: color-mix(in srgb, var(--good) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--good) 32%, transparent);
  border-radius: var(--radius);
}
.free-first h2 { margin: 0 0 .4rem; font-size: 1.15rem; }
.free-first p { margin: 0; color: var(--text-2); font-size: .98rem; }

/* Plan cards — two headline plans, then the rest in a quieter row. */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; margin: 1.6rem 0 0; }
.plan {
  position: relative; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--card-shadow);
  transition: transform .22s ease, box-shadow .22s ease;
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--clay-shadow); }
.plan.featured { border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.plan-badge {
  position: absolute; top: -.7rem; left: 1.2rem;
  background: var(--accent); color: var(--on-accent);
  font: 700 .68rem var(--round); letter-spacing: .06em; text-transform: uppercase;
  padding: .3rem .6rem; border-radius: 999px;
}
.plan.best .plan-badge { background: var(--warm-deep); }
.plan-name { font: 600 .82rem var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--accent-deep); margin: 0 0 .5rem; }
.plan-price { display: flex; align-items: baseline; gap: .45rem; flex-wrap: wrap; }
.plan-price b { font: 800 2.1rem/1 var(--round); letter-spacing: -.02em; color: var(--text); }
.plan-price s { color: var(--text-2); opacity: .7; font-size: .95rem; }
.plan-unit { color: var(--text-2); font-size: .9rem; }
.plan-note { color: var(--text-2); font-size: .93rem; margin: .7rem 0 0; }

/* The cheaper ways in — one line each, no card weight. */
.plans-more { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin-top: .9rem; }
.plan-slim {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: .9rem 1rem;
}
.plan-slim h3 { margin: 0 0 .2rem; font-size: .98rem; }
.plan-slim .amt { font: 700 1.25rem var(--round); color: var(--text); }
.plan-slim p { margin: .3rem 0 0; color: var(--text-2); font-size: .86rem; }

/* Free vs Pro. Scrolls inside itself rather than pushing the page wide. */
.tablewrap { overflow-x: auto; margin: 1.4rem 0 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
table.compare { width: 100%; border-collapse: collapse; min-width: 34rem; }
table.compare th, table.compare td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--border); font-size: .94rem; }
table.compare thead th { font: 600 .78rem var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--text-2); }
table.compare tbody tr:last-child th, table.compare tbody tr:last-child td { border-bottom: 0; }
table.compare tbody th { font-weight: 600; color: var(--text); }
table.compare td { color: var(--text-2); }
table.compare .yes { color: var(--good-deep); font-weight: 600; }
table.compare .cap { color: var(--warm-deep); font-weight: 600; }
table.compare col.pro { background: color-mix(in srgb, var(--accent) 7%, transparent); }

.faq { margin-top: 1.2rem; }
.faq details {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: .85rem 1.1rem; margin-bottom: .6rem;
}
.faq summary { cursor: pointer; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::marker { content: ""; }
.faq summary::after { content: "+"; float: right; color: var(--accent-deep); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--text-2); font-size: .94rem; margin: .6rem 0 0; }

@media (max-width: 760px) {
  .plans, .plans-more { grid-template-columns: 1fr; }
}
