/* The add-on's pricing page (public/content/addon-pricing.html), in the add-on's
   frame. Colours, radii and buttons come from /lab.css. */
.addon-pricing { max-width: 820px; margin: 0 auto; padding: 32px 16px 64px; }

/* Title, centred */
.ap-hero { text-align: center; margin-bottom: 28px; }
.ap-hero h1 { margin: 0 0 8px; font-size: 32px; font-weight: 700; letter-spacing: -.01em; }
.ap-lead { margin: 0 auto 6px; max-width: 46ch; color: var(--text-muted); font-size: 17px; }
.ap-account { margin: 0; color: var(--text-muted); font-size: var(--fs-sm); }
.ap-note { text-align: center; color: var(--text-muted); }
.ap-note.error { color: var(--danger); }
/* "Opening the payment window": a small spinner before the text. */
.ap-note.busy::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-inline-end: 8px; vertical-align: -2px;
  border: 2px solid currentColor; border-inline-end-color: transparent; border-radius: 50%; animation: ap-spin .8s linear infinite; }
@keyframes ap-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ap-note.busy::before { animation: none; } }
.ap-note.success { color: #137333; font-weight: 600; font-size: 22px; line-height: 1.45; max-width: 36ch; margin: 24px auto; padding: 20px 24px;
  background: #e6f4ea; border-radius: 12px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ap-note.success { color: #81c995; background: #1e3a28; }
}
:root[data-theme="dark"] .ap-note.success { color: #81c995; background: #1e3a28; }

/* Plan cards: name, big price, how it is billed, button, what is included */
/* Each card at most 300px wide, the pair centred (not stretched over the page). */
.ap-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 300px)); justify-content: center; gap: 18px; align-items: stretch; }
.ap-card {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  padding: 24px 20px 20px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--card-shadow);
  text-align: center;
}
.ap-card.featured { border: 2px solid var(--accent); box-shadow: var(--shadow-strong); }
.ap-ribbon {
  position: absolute;
  inset-block-start: -14px;
  left: 50%; transform: translateX(-50%);
  padding: 4px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ap-name { margin: 0 0 10px; font-size: 18px; font-weight: 700; color: var(--accent); }
.ap-price { margin: 0; display: flex; align-items: baseline; justify-content: center; gap: 2px; direction: ltr; }
.ap-cur { font-size: 16px; font-weight: 600; align-self: flex-start; margin-top: 6px; }
.ap-num { font-size: 40px; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.ap-per { margin-inline-start: 4px; color: var(--text-muted); font-size: var(--fs-md); }
.ap-billed { margin: 8px 0 0; color: var(--text-muted); font-size: var(--fs-sm); }
.ap-save-row { margin: 8px 0 0; min-height: 26px; }
.ap-save {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  background: #137333;
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 700;
}
.ap-buy { width: 100%; margin: 14px 0 14px; padding-block: 9px; font-size: var(--fs-sm); font-weight: 700; }
.ap-list { list-style: none; margin: 0; padding: 0; width: 100%; text-align: start; }
.ap-list li { display: flex; gap: 8px; align-items: flex-start; padding: 4px 0; font-size: var(--fs-sm); }
.ap-list li::before {
  content: "";
  flex: none;
  width: 16px; height: 16px; margin-top: 3px;
  background: #1e8e3e;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ap-fine { margin-top: 16px; text-align: center; color: var(--text-muted); font-size: var(--fs-xs); }
.ap-pro { max-width: 520px; margin: 0 auto; padding: 22px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }

/* Questions and answers */
.ap-faq { margin-top: 56px; }
.ap-faq h2 { margin: 0 0 14px; text-align: center; font-size: 26px; font-weight: 700; }
.ap-faq details { border-bottom: 1px solid var(--border); }
.ap-faq details:first-of-type { border-top: 1px solid var(--border); }
.ap-faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 4px;
  font-size: var(--fs-md); font-weight: 600;
  cursor: pointer; list-style: none;
}
.ap-faq summary::-webkit-details-marker { display: none; }
.ap-faq summary::after {
  content: "";
  flex: none;
  width: 9px; height: 9px;
  /* physical sides, so the arrow points down (closed) and up (open) in both directions */
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--ease);
}
.ap-faq details[open] summary::after { transform: rotate(-135deg); }
.ap-faq summary:hover, .ap-faq details[open] summary { color: var(--accent); }
.ap-faq details p { margin: 0 4px 18px; color: var(--text-muted); font-size: var(--fs-sm); line-height: 1.7; }
.ap-faq details a { color: var(--accent); }

@media (max-width: 600px) {
  .addon-pricing { padding-top: 20px; }
  .ap-hero h1 { font-size: 26px; }
  .ap-num { font-size: 36px; }
}
