/* Pricing and cart. Built on styles.css tokens; the offer color is the site's accent. */
.pricing-page {
  --offer: var(--story-accent, #0369a1);
  --offer-on-ink: #7dd3fc;
}
.pricing-page main { width: min(var(--max-w), calc(100% - 2 * var(--gutter))); margin-inline: auto; }

/* Hero */
.price-hero { padding: clamp(1.75rem, 4vw, 3rem) 0 clamp(.75rem, 2vw, 1.25rem); text-align: center; }
.price-hero .eyebrow { justify-content: center; }
.price-hero h1 { margin: .5rem auto .75rem; font-size: clamp(2.25rem, 5vw, 3.5rem); line-height: 1.06; letter-spacing: -.028em; color: var(--ink); }
#price-from { display: inline-block; min-height: 1.06em; }
.price-hero h1 em { font-style: normal; color: var(--offer); }
.price-lede { max-width: 38rem; margin: 0 auto; font-size: clamp(1.05rem, 2vw, 1.25rem); line-height: 1.5; color: #3f3f46; }
.price-team { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .75rem 1rem; margin-top: 1.25rem; }
.price-team p { margin: 0; font-size: .95rem; font-weight: 600; color: #18181b; }
.price-faces { display: flex; }
.price-faces img { width: 44px; height: 44px; margin-left: -10px; border: 2px solid #fff; border-radius: 50%; object-fit: cover; object-position: top; }
.price-faces img:first-child { margin-left: 0; }

/* Plans */
.price-plans { padding: 1.5rem 0 clamp(3rem, 6vw, 4.5rem); }
.price-plans-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.price-plans-head h2 { margin: 0; font-size: clamp(1.4rem, 3vw, 1.9rem); letter-spacing: -.02em; color: #18181b; }
.price-switch { display: inline-flex; gap: 2px; margin: 0; padding: 4px; border: 1px solid var(--border-2); border-radius: var(--r-md); background: #fff; }
.price-switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.price-switch label { display: inline-flex; align-items: center; gap: .35rem; min-height: 2.75rem; padding: .5rem 1rem; border-radius: var(--r-sm); white-space: nowrap; font-size: .92rem; font-weight: 600; color: #52525b; cursor: pointer; }
.price-switch input:checked + label { background: var(--ink); color: #fff; }
.price-switch input:focus-visible + label { outline: 2px solid var(--offer); outline-offset: 2px; }
.price-switch-save { font-weight: 700; color: var(--offer); }
.price-switch input:checked + label .price-switch-save { color: var(--offer-on-ink); }
.price-offer { margin: 0 0 1.25rem; padding: .7rem 1rem; border-left: 3px solid var(--offer); background: #f0f9ff; color: #18181b; font-weight: 600; font-size: .95rem; }
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 1rem; padding-top: 1rem; }
.price-card { position: relative; display: flex; flex-direction: column; gap: .5rem; padding: 1.75rem 1.5rem; border-radius: var(--r-lg); color: var(--ink); }
.price-card h3 { margin: 0; font-size: 1.35rem; letter-spacing: -.01em; color: inherit; }
.price-card .price-tag, .price-card .price-now, .price-card .price-points, .price-card .price-points li { color: inherit; }
.price-tagline { margin: 0 0 .5rem; min-height: 2.6em; color: #52525b; }
.price-card.is-featured { transform: translateY(-.5rem); }
.price-card-flag { position: absolute; top: -.8rem; left: 1.5rem; margin: 0; padding: .2rem .75rem; border-radius: var(--r-md); background: var(--ink); color: #fff; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.price-tag { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .45rem; margin: 0; }
.price-now { font-size: clamp(2rem, 3.4vw, 2.6rem); font-weight: 750; line-height: 1.1; letter-spacing: -.03em; }
.price-card .price-tag.is-discounted .price-now, .price-tag.is-discounted .price-now { color: var(--offer); }
.price-was { width: 100%; font-size: 1.05rem; font-weight: 500; color: #71717a; text-decoration-thickness: 2px; }
.price-per { font-size: 1rem; color: #52525b; }
.price-save { margin: 0; font-size: .9rem; font-weight: 700; color: var(--offer); }
.price-cta { display: block; width: 100%; margin: .75rem 0 .5rem; padding: .85rem 1rem; border: 1px solid var(--ink); background: #fff; color: var(--ink); font-size: 1rem; text-align: center; text-decoration: none; }
.price-cta.primary { background: var(--ink); color: #fff; }
.price-cta:focus-visible { outline: 2px solid var(--offer); outline-offset: 2px; }
.price-notes { display: grid; gap: .15rem; }
.price-notes:empty { display: none; }
.cart-agree a { text-decoration: underline; }
.price-monthly { margin: 0; font-size: .92rem; color: #3f3f46; }
.price-points { display: grid; gap: .55rem; margin: .25rem 0 0; padding: .9rem 0 0; border-top: 1px solid var(--border); list-style: none; font-size: .94rem; }
.price-points li { position: relative; padding-left: 1.4rem; }
.price-points li::before { content: "✓"; position: absolute; left: 0; font-weight: 700; color: var(--ink); }
.price-card .price-point-bonus { color: var(--offer); }
.price-point-bonus { font-weight: 700; color: var(--offer); }

/* Credit packs: a different thing, so a different look, and outside the plan switch. */
.price-packs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr); gap: 2rem; align-items: center; padding: clamp(1.75rem, 4vw, 2.75rem); border-radius: var(--r-lg); }
.price-packs h2 { margin: .5rem 0; font-size: clamp(1.35rem, 2.8vw, 1.8rem); letter-spacing: -.02em; color: #18181b; }
.price-packs-copy p:last-child { margin: 0; color: #3f3f46; }
/* A fixed last column, so the heading row and the price rows line up. */
.price-pack-row { display: grid; grid-template-columns: .6fr 1fr 1fr 1fr 5rem; align-items: center; gap: .75rem; padding: .85rem 0; border-top: 1px solid var(--border-2); }
.price-pack-head { border-top: 0; padding-top: 0; font-size: .8rem; font-weight: 600; color: #52525b; }
.price-pack-row [role="cell"] { white-space: nowrap; }
.price-pack-list { font-weight: 600; color: var(--ink); }
.price-pack-row > :last-child { justify-self: end; }
.price-pack-row .button { min-height: 2.75rem; padding-inline: 1.1rem; font-size: .9rem; }
.price-byo { margin: 1.25rem auto 0; max-width: 46rem; text-align: center; font-size: .98rem; color: #3f3f46; }

/* Included */
.price-auto { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 2rem; align-items: center; margin-top: 1.5rem; padding: clamp(1.75rem, 4vw, 2.75rem); border-radius: var(--r-lg); }
.price-auto h2 { margin: .5rem 0; font-size: clamp(1.35rem, 2.8vw, 1.8rem); letter-spacing: -.02em; color: #18181b; }
.price-auto-copy p:last-child { margin: 0; color: #3f3f46; }
.price-auto-copy .price-auto-link { display: inline-block; margin-top: 1rem; }
.price-auto-points { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.price-auto-points strong { display: block; margin-bottom: .2rem; color: #18181b; }
.price-auto-points span { color: #52525b; font-size: .94rem; }
.price-included { padding: clamp(3rem, 6vw, 4.5rem) 0 0; }
.price-included h2, .price-faq h2 { margin: 0 0 1.5rem; font-size: clamp(1.4rem, 3vw, 1.9rem); letter-spacing: -.02em; color: #18181b; }
.price-included ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; gap: 1rem; margin: 0; padding: 0; list-style: none; }
.price-included li { min-width: 0; padding: 1.25rem; border-radius: var(--r-lg); overflow-wrap: break-word; }
.price-included strong { display: block; margin-bottom: .35rem; color: #18181b; }
.price-included span { color: #52525b; font-size: .94rem; }

/* FAQ */
.price-faq { max-width: 48rem; margin-inline: auto; padding: clamp(3rem, 6vw, 4.5rem) 0 0; }
.price-faq-item { border-top: 1px solid var(--border-2); }
.price-faq-item summary { padding: 1rem 0; font-weight: 600; color: #18181b; cursor: pointer; }
.price-faq-item p { margin: 0 0 1rem; color: #3f3f46; }

/* Final */
.price-final { padding: clamp(3rem, 7vw, 5rem) 0; text-align: center; }
.price-final h2 { margin: 0 0 1.25rem; font-size: clamp(1.7rem, 4vw, 2.6rem); letter-spacing: -.03em; color: #18181b; }
.price-final .button { display: inline-block; padding: .9rem 1.6rem; font-size: 1rem; text-decoration: none; }

/* Cart */
.cart-main { padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(3rem, 6vw, 5rem); }
.cart-steps { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin: 0 0 1.25rem; padding: 0; list-style: none; font-size: .88rem; color: #52525b; }
.cart-steps li.is-current { font-weight: 700; color: #18181b; }
.cart-steps li.is-done::after { content: " ✓"; font-weight: 700; color: #18181b; }
.cart-summary dd { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .4rem; }
.cart-summary dd .price-was { width: auto; font-size: .9rem; }
.cart-line-now { color: var(--offer); }
.cart-main h1 { margin: 0 0 1.5rem; font-size: clamp(1.8rem, 4vw, 2.5rem); letter-spacing: -.03em; color: #18181b; }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); align-items: start; gap: 1.5rem; }
.cart-items { display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.cart-item { display: flex; justify-content: space-between; gap: 1rem; padding: 1.25rem; border-radius: var(--r-lg); }
.cart-item h3 { margin: 0 0 .25rem; font-size: 1.1rem; color: #18181b; }
.cart-item p { margin: 0 0 .35rem; color: #52525b; }
.cart-item .price-tag { flex-direction: column; align-items: flex-end; flex: none; }
.cart-item .price-now { font-size: 1.5rem; color: #18181b; }
.cart-item .price-tag.is-discounted .price-now { color: var(--offer); }
.cart-item .price-was { width: auto; }
.cart-link { min-height: 1.75rem; padding: .25rem 0; border: 0; background: none; color: #52525b; font: inherit; font-size: .88rem; text-decoration: underline; cursor: pointer; }
.cart-qty { display: inline-flex; align-items: center; gap: .6rem; margin-top: .25rem; }
.cart-qty button { width: 2.75rem; height: 2.75rem; border: 1px solid var(--border-2); border-radius: var(--r-md); background: #fff; font-size: 1.05rem; cursor: pointer; }
.cart-upsell { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-top: .75rem; padding: .9rem 1.25rem; border-left: 3px solid var(--offer); background: #f0f9ff; }
.cart-upsell p { margin: 0; color: #18181b; }
.cart-summary { position: sticky; top: 5.5rem; padding: 1.5rem; border-radius: var(--r-lg); }
.cart-summary h2 { margin: 0 0 .75rem; font-size: 1.1rem; color: #18181b; }
.cart-summary dl { display: grid; grid-template-columns: 1fr auto; gap: .4rem .75rem; margin: 0; }
.cart-summary dd { margin: 0; font-weight: 600; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; margin: 1rem 0 .25rem; padding-top: .9rem; border-top: 1px solid var(--border-2); font-weight: 600; color: #18181b; }
.cart-total strong { font-size: 1.7rem; letter-spacing: -.02em; }
.cart-saved { margin: 0 0 .75rem; text-align: right; font-weight: 700; color: var(--offer); }
.cart-agree { display: flex; gap: .6rem; margin: 1rem 0; font-size: .9rem; color: #27272a; }
.cart-agree input { flex: none; width: 1.1rem; height: 1.1rem; margin-top: .15rem; }
.cart-go { width: 100%; padding: .9rem 1rem; font-size: 1rem; }
.cart-fine { margin: .75rem 0 0; font-size: .8rem; color: #52525b; }
.cart-status { min-height: 1.25rem; margin: .5rem 0 0; font-size: .9rem; color: #18181b; }

@media (max-width: 1100px) {
  .price-included ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .price-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .price-card.is-featured { transform: none; order: -1; }
  .price-tagline { min-height: 0; }
  .price-packs, .price-auto { grid-template-columns: 1fr; }
  .price-included ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
}
@media (max-width: 560px) {
  .price-plans-head { flex-direction: column; align-items: stretch; }
  .price-switch { align-self: stretch; }
  .price-switch label { flex: 1; padding-inline: .5rem; text-align: center; font-size: .88rem; }
  .price-pack-row { grid-template-columns: 1fr 1fr 1fr; }
  .price-pack-row > :first-child, .price-pack-row > :last-child { grid-column: 1 / -1; }
  .price-pack-row > :last-child { justify-self: stretch; }
  .price-pack-row > :last-child .button { width: 100%; }
  .price-pack-head { display: none; }
  .price-pack-row [data-label]::before { content: attr(data-label); display: block; min-height: 2.1em; font-size: .72rem; line-height: 1.05; color: #52525b; font-weight: 500; }
  .price-included ul { grid-template-columns: 1fr; }
  .cart-item { flex-direction: column; }
  .cart-item .price-tag { align-items: flex-start; }
}

/* The site's glass panes (styles.css, "Glass layer"): text on a near-opaque pane, a bright top
   edge and a faint cyan underside. The recommended plan catches the light: the same cyan edge
   and glow a pane gets on hover elsewhere on the site. */
.price-card,
.price-included li,
.price-packs,
.price-auto,
.cart-item,
.cart-summary {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.84) 55%, rgba(240, 249, 255, 0.88) 100%);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    0 0 0 1px rgba(39, 39, 42, 0.07),
    inset 0 1px 0 #ffffff,
    inset 0 -1px 0 rgba(125, 211, 252, 0.22),
    0 14px 34px -20px rgba(15, 23, 42, 0.28);
}
.price-card.is-featured {
  box-shadow:
    0 0 0 1px var(--glass-edge),
    inset 0 1px 0 #ffffff,
    0 0 30px -8px var(--glass-glow),
    0 18px 40px -20px rgba(15, 23, 42, 0.3);
}
@media (min-width: 901px) {
  .price-card,
  .price-included li,
  .price-packs,
  .price-auto,
  .cart-item,
  .cart-summary {
    backdrop-filter: blur(14px) saturate(1.3);
    -webkit-backdrop-filter: blur(14px) saturate(1.3);
  }
}
@media (prefers-reduced-transparency: reduce) {
  .price-card,
  .price-included li,
  .price-packs,
  .price-auto,
  .cart-item,
  .cart-summary {
    background: #ffffff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* Auto top-up, on the Billing page. */
.billing-auto { display: grid; gap: 1rem; max-width: 34rem; margin: .75rem 0; }
.billing-auto-limit { display: grid; gap: .6rem; margin: 0; padding: 0; border: 0; }
.billing-auto-limit legend { margin-bottom: .4rem; font-weight: 600; color: #18181b; }
.billing-auto-amount { display: flex; align-items: center; gap: .6rem; margin-left: 1.5rem; }
.billing-auto-amount input { width: 7rem; }
.billing-auto-agree { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: #3f3f46; }
.billing-auto-agree input { margin-top: .2rem; }
.billing-auto button { justify-self: start; }

/* Links inside plan points and FAQ answers (the Terms of Service) read as links, not text. */
.price-points a,
.price-faq-item p a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
