/* Three genuine offers, with Individual — Pay once given emphasis. */
.pricing-section { padding-block: 88px 70px; }
.pricing-heading { margin-bottom: 42px; }
.pricing-heading h2 { max-width: 900px; margin-inline: auto; }
.pricing-heading > p { max-width: 760px; }
.pricing-trial { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 18px; margin-top: 24px; font-size: .9375rem; color: var(--secondary); }
.pricing-trial a { display: inline-flex; align-items: center; min-height: 44px; gap: 8px; font-weight: 700; color: var(--text); text-decoration: underline; text-underline-offset: 5px; }
.plan-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: stretch; gap: 20px; }
.plan-card { min-width: 0; padding: 28px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 26px; background: var(--glass-strong); box-shadow: 0 12px 36px rgba(20,35,70,.035); }
.plan-featured { border: 2px solid #0062d6; padding: 27px; background: linear-gradient(155deg, rgba(225,237,255,.94), rgba(251,253,255,.96)); box-shadow: 0 18px 46px rgba(0,98,214,.11); }
.plan-label { min-height: 34px; display: flex; align-items: center; margin-bottom: 18px; color: var(--secondary); font-size: .875rem; line-height: 1.4; font-weight: 650; }
.plan-badge { display: inline-flex; padding: 7px 11px; border-radius: 8px; color: #fff; background: #0062d6; font-size: .8125rem; font-weight: 700; }
.plan-card h3 { margin: 0 0 18px; font-size: 1.5rem; line-height: 1.2; letter-spacing: -.025em; }
.plan-billing { display: block; margin-top: 8px; font-size: 1rem; line-height: 1.4; letter-spacing: 0; color: var(--secondary); font-weight: 600; }
.plan-price { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 8px; margin: 0 0 23px; line-height: 1; }
.plan-price strong { font-size: clamp(2.6rem,3.8vw,3.35rem); letter-spacing: -.055em; font-weight: 750; }
.plan-price > span { font-size: 1rem; color: var(--secondary); line-height: 1.5; }
.plan-tagline { margin: 0 0 5px; font-size: 1.0625rem; line-height: 1.5; font-weight: 700; }
.plan-description { margin: 0; min-height: 48px; font-size: .9375rem; line-height: 1.55; color: var(--secondary); }
.plan-features { list-style: none; margin: 24px 0 28px; padding: 24px 0 0; border-top: 1px solid var(--line); display: grid; align-content: start; gap: 14px; }
.plan-features li { position: relative; padding-left: 24px; font-size: .9375rem; line-height: 1.55; color: var(--secondary); }
.plan-features li::before { content: '✓'; position: absolute; top: 0; left: 0; color: #0062d6; font-weight: 750; }
.plan-features strong { color: var(--text); font-weight: 650; }
.plan-footer { margin-top: auto; }
.plan-value { min-height: 48px; margin: 0 0 18px; font-size: .9375rem; color: var(--text); line-height: 1.55; font-weight: 600; }
.plan-footer .button { display: flex; justify-content: center; align-items: center; width: 100%; gap: 9px; border-radius: 12px; padding-inline: 10px; font-size: .9375rem; line-height: 1.4; min-height: 50px; }
.plan-footer .button.secondary { background: var(--glass-subtle); border: 1px solid var(--line); box-shadow: none; }
.plan-terms { min-height: 66px; margin: 14px 0 0; font-size: .875rem; line-height: 1.55; color: var(--secondary); }
.pricing-included { display: flex; align-items: center; flex-direction: column; text-align: center; gap: 9px; margin: 34px auto 22px; color: var(--secondary); font-size: .9375rem; line-height: 1.6; }
.pricing-included strong { color: var(--text); font-weight: 650; font-size: 1rem; }
.pricing-footnote { max-width: 780px; margin: 8px auto; text-align: center; font-size: .875rem; color: var(--secondary); line-height: 1.65; }
.pricing-footnote a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.pricing-preview-note { margin: 24px 0 0; text-align: center; color: var(--muted); font-size: .8125rem; line-height: 1.6; }
.plan-dialog { position: fixed; inset: 0; margin: auto; width: min(490px,calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; border: 1px solid var(--line); border-radius: 24px; padding: 38px 30px 30px; background: var(--bg); color: var(--text); box-shadow: 0 24px 100px rgba(0,0,0,.25); }
.plan-dialog::backdrop { background: rgba(6,15,30,.48); backdrop-filter: blur(6px); }
.plan-dialog h2 { margin: 12px 0 0; font-size: 2rem; line-height: 1.2; letter-spacing: -.035em; }
.plan-dialog p { font-size: 1rem; line-height: 1.6; color: var(--secondary); margin: 18px 0; }
.plan-dialog .dialog-price { font-size: 1.5rem; font-weight: 700; color: var(--text); margin: 12px 0; }
.plan-dialog .dialog-preview-note { font-size: .875rem; border-top: 1px solid var(--line); padding-top: 18px; }
.plan-dialog .dialog-close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 1.8rem; cursor: pointer; }
.plan-dialog form { margin: 0; }
.plan-dialog form:last-child .button { width: 100%; justify-content: center; }
body:has(.plan-dialog[open]) { overflow: hidden; }
:root[data-theme="dark"] .plan-featured { border-color: #78adff; background: linear-gradient(155deg,rgba(30,57,98,.98),rgba(18,30,51,.97)); box-shadow: 0 18px 50px rgba(0,70,190,.15); }
:root[data-theme="dark"] .plan-features li::before { color: #9ac4ff; }
:root[data-theme="dark"] .plan-featured .plan-label { color: #c0d4f2; }
@media (max-width: 1020px) and (min-width: 901px) {
  .plan-card { padding: 22px 18px; }
  .plan-featured { padding: 21px 17px; }
  .plan-footer .button { font-size: .875rem; }
}
@media (max-width: 900px) {
  .plan-grid { grid-template-columns: 1fr; max-width: 600px; margin-inline: auto; gap: 20px; }
  /* In a single-column purchase flow, lead with the default recommendation. */
  .plan-grid .plan-featured { order: -1; }
  .plan-card, .plan-featured { padding: 28px; }
  .plan-featured { padding: 27px; }
  .plan-description, .plan-value, .plan-terms { min-height: 0; }
  .plan-price strong { font-size: 3rem; }
  .plan-label { margin-bottom: 12px; }
  .plan-features { margin-block: 22px; }
}
@media (max-width: 680px) {
  .pricing-section { padding-block: 56px; }
  .pricing-heading { margin-bottom: 28px; }
  .pricing-heading h2 { font-size: 2.25rem; }
  .pricing-trial { margin-top: 16px; gap: 0; flex-direction: column; }
  .plan-card { padding: 24px; }
  .plan-featured { padding: 23px; }
  .plan-price { margin-bottom: 20px; }
  .plan-features li { font-size: .9375rem; }
  .pricing-included { margin-top: 26px; }
  .plan-dialog { padding-inline: 24px; }
}

/* v0.163 — restrained desktop pricing side reveal -----------------------
   Keep the featured middle option completely fixed. Only the two outer
   choices settle inward from the sides, which preserves the card geometry
   and avoids a vertical jump when the section enters from either direction. */
@media (min-width: 901px) and (prefers-reduced-motion: no-preference) {
  .pricing-section.pricing-motion-ready .plan-card:nth-child(1),
  .pricing-section.pricing-motion-ready .plan-card:nth-child(3) {
    opacity: .78;
    transition:
      opacity 520ms cubic-bezier(.2,.72,.24,1),
      transform 520ms cubic-bezier(.2,.72,.24,1);
    will-change: opacity, transform;
  }

  .pricing-section.pricing-motion-ready .plan-card:nth-child(1) {
    transform: translate3d(-32px,0,0);
  }

  .pricing-section.pricing-motion-ready .plan-card:nth-child(3) {
    transform: translate3d(32px,0,0);
  }

  .pricing-section.pricing-motion-ready.pricing-motion-visible .plan-card:nth-child(1),
  .pricing-section.pricing-motion-ready.pricing-motion-visible .plan-card:nth-child(3) {
    opacity: 1;
    transform: translate3d(0,0,0);
  }

  .pricing-section.pricing-motion-resetting .plan-card:nth-child(1),
  .pricing-section.pricing-motion-resetting .plan-card:nth-child(3) {
    transition: none !important;
  }

  .pricing-section .plan-card:nth-child(2) {
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
  }
}

@media (max-width: 900px), (prefers-reduced-motion: reduce) {
  .pricing-section .plan-card {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    will-change: auto !important;
  }
}
