/* Pricing page: the billing switch, plan cards, AI usage and the comparison table. */
.promises { margin-top: 18px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-size: .9rem; }
.promises span::before { content: "✓"; color: var(--tile-2); margin-right: 8px; font-weight: 600; }

.toggle {
  margin: 30px auto 0; display: inline-flex; padding: 4px; gap: 4px;
  border: 1px solid rgba(169,200,236,.25); border-radius: 999px; background: rgba(11,35,67,.7);
}
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle label { cursor: pointer; padding: 8px 18px; border-radius: 999px; font-size: .9rem; font-weight: 500; color: var(--muted); }
.toggle label .save { color: var(--tile-2); font-size: .8rem; margin-left: 6px; }
.toggle input:checked + label { background: var(--blue); color: #fff; }
.toggle input:checked + label .save { color: #dbe9f8; }
.toggle input:focus-visible + label { outline: 2px solid var(--tile-3); outline-offset: 2px; }

.plans { margin-top: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 26px 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.plan.featured { border-color: rgba(122,168,220,.6); box-shadow: 0 0 0 1px rgba(122,168,220,.25), 0 20px 50px -20px rgba(63,134,208,.45); }
.badge {
  position: absolute; top: -12px; left: 24px; padding: 3px 12px; border-radius: 999px;
  background: var(--tile-1); color: #fff; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.plan h2 { font-size: 1.3rem; }
.plan .for { color: var(--muted); font-size: .9rem; margin-top: 4px; min-height: 2.9em; }
.price { margin-top: 18px; display: flex; align-items: baseline; gap: 6px; }
.price .amount { font-family: "Montserrat", sans-serif; font-size: 2.6rem; font-weight: 600; color: #fff; line-height: 1; }
.price .unit { color: var(--muted); font-size: .9rem; }
.billed { color: var(--muted); font-size: .82rem; margin-top: 6px; min-height: 1.3em; }
.plan .btn { display: block; margin-top: 20px; }
.includes { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .9rem; }
.includes .lead { color: #fff; font-weight: 600; margin-bottom: 10px; }

.usage { margin-top: 28px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; }
.panel { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.panel h3 { font-size: 1rem; margin-bottom: 12px; }
.panel table, .compare table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.panel th, .panel td, .compare th, .compare td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.panel th, .compare th { color: var(--muted); font-weight: 500; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
td.num, th.num { text-align: right; white-space: nowrap; padding-left: 16px; }
.panel tr:last-child td { border-bottom: 0; }
.allow { display: grid; gap: 14px; align-content: start; }
.allow .row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.allow .name { color: #fff; font-weight: 600; }
.allow .val { text-align: right; }
.allow .val small { display: block; color: var(--muted); font-size: .8rem; }
.allow .note { color: var(--muted); font-size: .85rem; }
.meter .bar { height: 8px; border-radius: 999px; background: rgba(169,200,236,.15); overflow: hidden; }
.meter .bar i { display: block; height: 100%; width: 62%; background: linear-gradient(90deg, var(--tile-1), var(--tile-2)); }
.meter p { font-size: .82rem; color: var(--muted); margin-top: 6px; }
.meter p strong { color: #fff; font-weight: 600; }

.compare { margin-top: 28px; overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.compare table { min-width: 620px; }
.compare th, .compare td { padding: 12px 18px; }
.compare td.c, .compare th.c { text-align: center; width: 14%; }
.compare tr.group td { color: var(--tile-3); font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; padding-top: 20px; }
.yes { color: var(--tile-2); font-weight: 600; }
.no { color: rgba(159,176,198,.45); }
.footnote { text-align: center; color: var(--muted); font-size: .85rem; margin-top: 12px; }

@media (max-width: 900px) {
  .plans { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; gap: 24px; }
  .plan .for { min-height: 0; }
  .usage { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .toggle label { padding: 8px 12px; } }

.section > h2 { text-align: center; }
.sub { text-align: center; color: var(--muted); max-width: 40rem; margin: 10px auto 0; }
.closing h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); }
/* Keeps the plans' lists level where a card has no trial button */
.btn-space { display: block; margin-top: 20px; height: 45px; }
@media (max-width: 900px) { .btn-space { display: none; } }
