/* ==========================================================
   Subscriptions page: Free and the two Premium plans (monthly, yearly) as separate cards, Premium's features in the gold of the
   app's paywall (in the cards and in the table), the billing questions, and the store badges at the end.
   Everything uses the tokens from site.css.
   ========================================================== */
/* a little wider than the other pages, so three cards fit with each price, "USD" and its period on one line */
.page.subs{max-width:1080px}
.subs .page-head{margin-bottom:40px;text-align:center}
.subs .page-head .sub{margin-left:auto;margin-right:auto}
.subs .col{max-width:720px;margin:0 auto}
.subs .col h2{margin:60px 0 18px;text-align:center}

/* ---------- plan cards ---------- */
.plans{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;align-items:stretch;padding-top:12px}
/* each card spans five rows of the grid (name, line, price, fine print, features), so the parts line up across a row */
.plan{
  position:relative;display:grid;grid-row:span 5;grid-template-rows:subgrid;row-gap:0;align-content:start;
  padding:24px 20px 20px;background:var(--surface-2);border:1px solid var(--line);border-radius:18px;
}
.plan h2{margin:0;font-size:19px;line-height:1.25;letter-spacing:-.015em}
.plan .line{margin:4px 0 0;min-height:2.8em;font-size:13.5px;line-height:1.4;color:var(--muted)}
.plan .price{display:flex;align-items:baseline;flex-wrap:wrap;gap:0 7px;margin:14px 0 0}
.plan .amt{font-size:34px;line-height:1.05;font-weight:600;letter-spacing:-.035em;color:var(--ink);font-variant-numeric:tabular-nums}
.plan .per{font-size:14px;color:var(--muted)}
/* the currency, right beside the amount: prices are in US dollars */
.plan .cur{margin-left:-3px;font-size:12.5px;font-weight:600;letter-spacing:.04em;color:var(--muted)}
.plan .fine{margin:5px 0 0;font-size:13.5px;color:var(--muted)}
.plan .feats{list-style:none;margin:18px 0 0;padding:14px 0 0;border-top:1px solid var(--line)}
.plan .feats li{display:flex;align-items:flex-start;gap:9px;margin:0;padding:5px 0;font-size:14.5px;line-height:1.4;color:var(--ink-2)}
.plan .feats .ic{width:17px;height:17px;margin-top:2px;color:var(--muted)}
.plan .feats .off{color:var(--muted)}

/* Premium: the paywall's gold for what it unlocks; the yearly plan is the highlighted one */
.plan.pro .feats li{font-weight:500;color:var(--gold-ink)}
.plan.pro .feats .ic{color:var(--gold-ink);stroke-width:2}
.plan.best{background:var(--gold-tint);border:1.5px solid var(--gold)}
.plan.best .feats{border-top-color:var(--gold-line)}
.flag{
  position:absolute;top:-12px;right:16px;display:inline-flex;align-items:center;height:24px;padding:0 10px;
  border-radius:999px;background:var(--gold-flag);color:#14171A;
  font-size:11px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;white-space:nowrap;
}
.flag.soft{background:var(--surface-2);border:1px solid var(--gold);color:var(--gold-ink)}
.subs .note{margin:24px 0 0}

/* three across from 860 px; below that one per row, centred and no wider than a phone card */
@media (max-width:859px){
  .plans{grid-template-columns:minmax(0,440px);justify-content:center;gap:24px}
  .plan .line{min-height:0}
}

/* ---------- comparison table, laid out like the paywall: Premium in a gold column ---------- */
.compare{width:100%;border-collapse:separate;border-spacing:0;font-size:14.5px;line-height:1.45}
.compare th,.compare td{padding:13px 12px;text-align:left;vertical-align:top;border-bottom:1px solid var(--line)}
.compare th:first-child{padding-left:0}
.compare thead th{font-size:15px;font-weight:600;color:var(--ink)}
.compare tbody th{font-weight:600;color:var(--ink)}
.compare tbody th small{display:block;margin-top:2px;font-size:13px;font-weight:400;line-height:1.4;color:var(--muted)}
.compare td{color:var(--ink-2)}
.compare td.no{color:var(--muted)}
.compare .pro{
  padding-left:14px;padding-right:14px;
  background:var(--gold-tint);color:var(--gold-ink);font-weight:600;
  border-left:1px solid var(--gold-line);border-right:1px solid var(--gold-line);border-bottom-color:var(--gold-line);
}
.compare thead .pro{border-top:1px solid var(--gold-line);border-radius:14px 14px 0 0}
.compare tbody tr:last-child th,.compare tbody tr:last-child td{border-bottom:0}
.compare tbody tr:last-child .pro{border-bottom:1px solid var(--gold-line);border-radius:0 0 14px 14px}
@media (max-width:480px){
  .compare{font-size:13.5px}
  .compare th,.compare td{padding:11px 8px}
  .compare .pro{padding-left:10px;padding-right:10px}
  .compare tbody th small{font-size:12.5px}
}
/* the smallest phones (320 px): tighter cells so the table fits the screen */
@media (max-width:359px){
  .compare{font-size:12.5px}
  .compare th,.compare td{padding:10px 5px}
  .compare .pro{padding-left:7px;padding-right:7px}
  .compare tbody th small{font-size:11.5px}
  .compare td{-webkit-hyphens:auto;hyphens:auto}
}

/* ---------- the end of the page: the two store badges ---------- */
.get{max-width:720px;margin:64px auto 0;padding-top:40px;border-top:1px solid var(--line)}
