/* Freemium: paywall sheet (js/ui/paywall.js), the free-version meter in the
   basket dock, "Premium" tags on locked features, and the settings card. */

.paywall { gap: var(--s3); }
.pw-saving {
  margin: 0; padding: 10px 14px; border-radius: var(--r-sm);
  background: #E7F8EE; color: #14532D; font-weight: 700; font-size: 14px; line-height: 1.5;
}
.pw-features { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14.5px; font-weight: 600; }
.pw-features li { display: flex; align-items: center; gap: 8px; }
.pw-features .ck {
  width: 22px; height: 22px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--purple); color: #fff; font-size: 13px; font-weight: 800;
}
.pw-features .soon { font-size: 11px; }

.pw-plans { display: grid; gap: 10px; }
.pw-plan {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 14px; border-radius: var(--r); border: 2px solid var(--line); background: var(--surface);
  text-align: start; font: inherit; color: inherit; cursor: pointer;
}
.pw-plan[aria-checked="true"] { border-color: var(--purple); background: #F6F1FF; }
.pw-plan.featured { padding-top: 22px; }
.pw-plan.featured[aria-checked="true"] { box-shadow: 0 8px 24px rgba(101, 37, 245, .18); }
.pw-badge {
  position: absolute; top: -11px; inset-inline-start: 14px; padding: 3px 10px; border-radius: var(--r-pill);
  background: var(--purple); color: #fff; font-size: 12px; font-weight: 800; white-space: nowrap;
}
.pw-radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--ink-3); flex: none; }
.pw-plan[aria-checked="true"] .pw-radio { border: 7px solid var(--purple); }
.pw-name { display: grid; gap: 2px; min-width: 0; }
.pw-name b { font-size: 16px; }
.pw-name span { font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.pw-plan.featured .pw-name span { color: var(--purple-600); font-weight: 800; }
.pw-price { display: grid; justify-items: end; gap: 1px; text-align: end; }
.pw-price b { font-size: 19px; font-weight: 800; }
.pw-price s { font-size: 12.5px; color: var(--ink-3); }
.pw-price span { font-size: 12px; color: var(--ink-2); }
.pw-price .pw-pm { color: var(--ink); font-weight: 700; }
.pw-fine { margin: 0; font-size: 12.5px; color: var(--ink-2); line-height: 1.5; }
.pw-links { margin: 0; text-align: center; font-size: 13px; color: var(--ink-2); }
.pw-links a { color: var(--purple-600); font-weight: 700; }
.pw-demo { margin: 0; text-align: center; font-size: 12px; color: var(--ink-3); }

.pro-tag {
  display: inline-block; padding: 1px 7px; border-radius: var(--r-pill); background: #FFF1BF; color: #5C4200;
  font-size: 11px; font-weight: 800; vertical-align: middle;
}

.premium-card {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r);
  background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line);
}
.premium-card svg { width: 26px; height: 26px; flex: none; color: var(--purple); }
.premium-card.on { background: #F6F1FF; box-shadow: inset 0 0 0 2px var(--purple); }
.premium-card .t { display: grid; gap: 2px; flex: 1; min-width: 0; }
.premium-card .t span { font-size: 13px; color: var(--ink-2); }

/* Free version of the compare screen: placeholder offers under a lock */
.locked { position: relative; display: grid; }
.ghosts { display: grid; gap: 10px; filter: blur(5px); opacity: .75; pointer-events: none; user-select: none; }
.ghost-offer {
  display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: var(--r);
  background: var(--surface); box-shadow: 0 2px 10px rgba(23, 21, 47, .06);
}
.g-badge { width: 46px; height: 46px; border-radius: 14px; background: #D9C5FF; flex: none; }
.g-lines { display: grid; gap: 8px; flex: 1; }
.g-lines span { height: 11px; border-radius: 6px; background: #E4E0F0; }
.g-price { font-size: 20px; font-weight: 800; color: var(--ink-2); }
.locked > * { grid-area: 1 / 1; }  /* lock card sits over the ghosts; the taller one sets the height */
.lock-card {
  position: relative; z-index: 1;  /* .ghosts has a filter, which would otherwise paint over this card */
  align-self: center; margin: 0 8px;
  display: grid; justify-items: center; gap: 8px; padding: 18px; text-align: center;
  background: rgba(255, 255, 255, .96); border-radius: var(--r-lg);
  box-shadow: 0 12px 32px rgba(23, 21, 47, .16), inset 0 0 0 2px var(--purple);
}
.lock-card h2 { margin: 0; font-size: 18px; font-weight: 800; }
.lock-card p { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.lock-card .lock-cheapest { color: var(--ink); font-weight: 700; }
.lock-card .lock-cheapest b { font-size: 18px; color: var(--purple-600); }
.lock-ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #F6F1FF; color: var(--purple); }
.lock-ico svg { width: 24px; height: 24px; }
.lock-card .btn svg { width: 18px; height: 18px; }
