/* Pricing page v3 */
.pv3 { background: var(--canvas, #f4f6f9); color: var(--ink, #142033); }
.pv3 h2, .pv3 h3, .pv3 h4 { color: var(--ink, #142033); }

/* Hero with the three access rules */
.pv3-hero { color: #fff; background: #0c1a33; background-image: linear-gradient(90deg, rgb(255 255 255 / 4%) 1px, transparent 1px), linear-gradient(rgb(255 255 255 / 4%) 1px, transparent 1px); background-size: 48px 48px; }
.pv3-hero-inner { padding-block: 48px 56px; }
.pv3-rules, .pv3-lead { max-width: 900px; }
.pv3-hero .breadcrumbs { margin-bottom: 18px; }
.pv3-hero .breadcrumbs a, .pv3-hero .breadcrumbs span { color: #c8d6ea; }
.pv3-hero .eyebrow { color: #cbea6b; }
.pv3-hero h1 { margin: 0; color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.06; letter-spacing: -.035em; max-width: 820px; }
.pv3-lead { margin: 18px 0 14px; color: #d5e0ef; font-size: clamp(1rem, 1.4vw, 1.15rem); }
.pv3-rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pv3-rule { display: grid; grid-template-columns: 11.5rem 1fr auto; align-items: center; gap: 16px; min-height: 64px; padding: 14px 18px; border-radius: 14px; background: #fff; color: var(--ink, #142033); text-decoration: none; border: 2px solid transparent; transition: border-color .15s ease, transform .15s ease; }
.pv3-rule:hover { border-color: #71a4ff; transform: translateY(-1px); }
.pv3-rule:focus-visible { outline: 3px solid #cbea6b; outline-offset: 3px; }
.pv3-rule-count { justify-self: start; padding: 6px 12px; border-radius: 999px; font-weight: 850; font-size: .95rem; white-space: nowrap; }
.pv3-rule-free .pv3-rule-count { background: #e3f6ec; color: #0b6b47; }
.pv3-rule-daily .pv3-rule-count { background: #e6efff; color: #0d4fb8; }
.pv3-rule-ai .pv3-rule-count { background: #efe9ff; color: #5a36c4; }
.pv3-rule-text { display: grid; gap: 2px; min-width: 0; }
.pv3-rule-text strong { font-size: 1.05rem; line-height: 1.3; }
.pv3-rule-text small { color: var(--muted, #3d5068); font-size: .9rem; line-height: 1.4; }
.pv3-rule-go { font-size: 1.3rem; color: var(--blue, #1768e5); font-weight: 800; }

/* Sections */
.pv3-section { padding-block: 64px; }
.pv3-band { background: #fff; border-block: 1px solid var(--line, #dce5f1); }
.pv3-head { max-width: 760px; margin-bottom: 28px; }
.pv3-head h2 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.12; letter-spacing: -.03em; }
.pv3-head p:not(.eyebrow) { margin: 12px 0 0; color: var(--muted, #3d5068); font-size: 1.05rem; }

/* Billing toggle (CSS only) */
.pv3-toggle { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 22px; background: #fff; border: 1px solid var(--line, #dce5f1); border-radius: 12px; }
.pv3-toggle label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 9px; font-weight: 800; color: var(--muted, #3d5068); cursor: pointer; }
.pv3-toggle label span { padding: 3px 8px; border-radius: 999px; background: #e3f6ec; color: #0b6b47; font-size: .78rem; font-weight: 800; white-space: nowrap; }
#pv3-monthly:checked ~ .pv3-toggle label[for="pv3-monthly"],
#pv3-yearly:checked ~ .pv3-toggle label[for="pv3-yearly"] { background: var(--ink, #142033); color: #fff; }
#pv3-monthly:focus-visible ~ .pv3-toggle label[for="pv3-monthly"],
#pv3-yearly:focus-visible ~ .pv3-toggle label[for="pv3-yearly"] { outline: 3px solid #71a4ff; outline-offset: 2px; }
#pv3-monthly:checked ~ .pv3-plans .pv3-y,
#pv3-yearly:checked ~ .pv3-plans .pv3-m { display: none; }

/* Plan cards */
.pv3-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.pv3-plan { display: flex; flex-direction: column; padding: 26px 24px 24px; background: #fff; border: 1px solid var(--line, #dce5f1); border-radius: 18px; }
.pv3-plan-featured { border: 2px solid var(--blue, #1768e5); box-shadow: 0 16px 40px rgb(23 104 229 / 14%); }
.pv3-plan-kicker { margin: 0 0 6px; font-size: .78rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; color: var(--muted, #3d5068); }
.pv3-plan-featured .pv3-plan-kicker { color: var(--blue-2, #1258c7); }
.pv3-plan h3 { margin: 0; font-size: 1.45rem; }
.pv3-price { display: flex; align-items: baseline; gap: 8px; margin: 14px 0 4px; }
.pv3-price strong { font-size: 2.5rem; line-height: 1; letter-spacing: -.03em; }
.pv3-price span { color: var(--muted, #3d5068); font-weight: 700; }
.pv3-plan-sum { margin: 0 0 16px; min-height: 2.9em; color: var(--muted, #3d5068); font-size: .95rem; }
.pv3-list { list-style: none; margin: 0 0 22px; padding: 16px 0 0; border-top: 1px solid var(--line, #dce5f1); display: grid; gap: 10px; flex: 1; align-content: start; }
.pv3-list li { position: relative; padding-left: 26px; line-height: 1.4; }
.pv3-list li::before { content: ""; position: absolute; left: 2px; top: .3em; width: 12px; height: 7px; border-left: 2.5px solid var(--green, #17a673); border-bottom: 2.5px solid var(--green, #17a673); transform: rotate(-45deg); }
.pv3-cta { width: 100%; }
.pv3-plan-note { margin: 18px 0 0; color: var(--muted, #3d5068); font-size: .92rem; }

/* Hero price summary */
.pv3-hero-price { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 18px 0 0; color: #d5e0ef; font-size: 1.02rem; }
.pv3-hero-price strong { color: #fff; }
.pv3-hero-price a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 10px; background: #cbea6b; color: #0c1a33; font-weight: 850; text-decoration: none; }
.pv3-hero-price a:hover { background: #d9f28a; }
.pv3-hero-price a:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* Tables */
.pv3-short { display: none; }
.pv3-compare .pv3-row-wide a { color: var(--blue-2, #1258c7); font-weight: 800; }
.pv3-table-wrap { border: 1px solid var(--line, #dce5f1); border-radius: 16px; background: #fff; overflow: hidden; }
.pv3 table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.pv3 th, .pv3 td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line, #dce5f1); }
.pv3 tbody tr:last-child th, .pv3 tbody tr:last-child td { border-bottom: 0; }
.pv3 thead th { background: var(--soft, #f6f9fe); font-size: .85rem; font-weight: 850; letter-spacing: .03em; }
.pv3 tbody th { font-weight: 800; }
.pv3-compare th:first-child { width: 26%; }
.pv3-compare .pv3-col-featured { background: #f2f7ff; }
.pv3-compare thead .pv3-col-featured { color: var(--blue-2, #1258c7); }
.pv3-examples a { color: var(--blue-2, #1258c7); font-weight: 800; }
.pv3-examples td b { white-space: nowrap; }
.pv3-fineprint { margin: 14px 0 0; color: var(--muted, #3d5068); font-size: .93rem; }
.pv3-fineprint a { color: var(--blue-2, #1258c7); font-weight: 800; }

/* Packs */
.pv3-subhead { margin: 40px 0 4px; font-size: 1.35rem; }
.pv3-subtext { margin: 0 0 16px; color: var(--muted, #3d5068); }
.pv3-packs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pv3-pack { display: flex; flex-direction: column; gap: 4px; padding: 20px; background: #fff; border: 1px solid var(--line, #dce5f1); border-radius: 16px; }
.pv3-pack-best { border: 2px solid var(--blue, #1768e5); }
.pv3-pack h4 { margin: 0; font-size: 1rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pv3-pack h4 span { padding: 2px 8px; border-radius: 999px; background: #e6efff; color: #0d4fb8; font-size: .75rem; font-weight: 800; }
.pv3-pack p { margin: 0; color: var(--muted, #3d5068); }
.pv3-pack .pv3-pack-price { margin-top: 6px; color: var(--ink, #142033); font-size: 1.9rem; font-weight: 850; letter-spacing: -.02em; }
.pv3-pack .button { margin-top: 14px; }

/* FAQ */
.pv3-faq-shell { max-width: 860px; }
.pv3-faq { display: grid; gap: 10px; }
.pv3-faq details { background: var(--soft, #f6f9fe); border: 1px solid var(--line, #dce5f1); border-radius: 12px; }
.pv3-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; padding: 12px 18px; font-weight: 800; cursor: pointer; list-style: none; }
.pv3-faq summary::-webkit-details-marker { display: none; }
.pv3-faq summary::after { content: "+"; flex: none; font-size: 1.3rem; line-height: 1; color: var(--blue, #1768e5); }
.pv3-faq details[open] summary::after { content: "\2212"; }
.pv3-faq summary:focus-visible { outline: 3px solid #71a4ff; outline-offset: 2px; border-radius: 12px; }
.pv3-faq details p { margin: 0; padding: 0 18px 16px; color: var(--muted, #3d5068); line-height: 1.55; }

/* Final CTA */
.pv3-final { text-align: center; }
.pv3-final h2 { margin: 0; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.pv3-final p { margin: 10px auto 20px; max-width: 620px; color: var(--muted, #3d5068); }
.pv3-final-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

@media (max-width: 980px) {
  .pv3-plans { grid-template-columns: 1fr; max-width: 560px; }
  .pv3-plan-sum { min-height: 0; }
  .pv3-packs { grid-template-columns: 1fr; max-width: 560px; }
}

@media (max-width: 720px) {
  .pv3-section { padding-block: 44px; }
  .pv3-hero-inner { padding-block: 32px 40px; }
  .pv3-rule { grid-template-columns: 1fr auto; gap: 8px 12px; padding: 14px; }
  .pv3-rule-count { grid-column: 1 / -1; }
  .pv3-rule-go { grid-column: 2; grid-row: 2; }
  .pv3-toggle { display: flex; }
  .pv3-toggle label { flex: 1; justify-content: center; padding: 8px 10px; }
  .pv3-hero-price { margin-top: 14px; }
  .pv3-lead { margin-top: 20px; }
  .pv3-rule { min-height: 0; padding: 12px 14px; }
  .pv3-rule-text small { font-size: .86rem; }
  .pv3-hero-price .pv3-dot { display: none; }
  .pv3-hero-price > span { flex-basis: 100%; }
  .pv3-hero-price a { margin-top: 6px; }
  .pv3-plan { padding: 22px 18px 20px; }
  .pv3-list { gap: 8px; margin-bottom: 18px; }
  .pv3-price { margin-top: 10px; }
  .pv3-price strong { font-size: 2.2rem; }
  /* Credit packs as compact rows */
  .pv3-packs { gap: 10px; }
  .pv3-pack { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 12px; row-gap: 0; padding: 14px 16px; }
  .pv3-pack h4 { grid-column: 1; }
  .pv3-pack .pv3-pack-price { grid-column: 1; margin-top: 2px; font-size: 1.5rem; }
  .pv3-pack p { grid-column: 1; font-size: .92rem; }
  .pv3-pack .button { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; }
  /* Pro first on phones */
  .pv3-plan-featured { order: -1; }
  .pv3-table-wrap { border: 0; background: transparent; overflow: visible; }
  .pv3 table, .pv3 thead, .pv3 tbody, .pv3 tr, .pv3 th, .pv3 td { display: block; width: auto; }
  /* Compare: compact three-column grid with a sticky plan header */
  .pv3-full { display: none; }
  .pv3-short { display: inline; }
  .pv3-compare { border: 1px solid var(--line, #dce5f1); border-radius: 12px; background: #fff; font-size: .9rem; }
  .pv3-compare tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pv3-compare thead { position: sticky; top: 64px; z-index: 5; border-radius: 12px 12px 0 0; }
  .pv3-compare thead tr { border-radius: 12px 12px 0 0; overflow: hidden; }
  .pv3-compare thead th { padding: 10px 8px; text-align: center; font-size: .9rem; letter-spacing: 0; border-bottom: 1px solid var(--line, #dce5f1); background: var(--soft, #f6f9fe); }
  .pv3-compare thead th:first-child { display: none; }
  .pv3-compare thead .pv3-col-featured { background: #e6efff; }
  .pv3-compare th:first-child { width: auto; }
  .pv3-compare tbody th { grid-column: 1 / -1; padding: 10px 12px 2px; border-bottom: 0; font-size: .8rem; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; color: var(--muted, #3d5068); }
  .pv3-compare td { padding: 4px 8px 10px; text-align: center; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
  .pv3-compare td.pv3-col-featured { background: #f2f7ff; }
  .pv3-compare tbody th[scope="row"] { background: transparent; }
  .pv3-compare tbody tr:last-child th, .pv3-compare tbody tr:last-child td { border-bottom: 0; }
  .pv3-compare .pv3-row-wide td { grid-column: 1 / -1; text-align: left; font-weight: 500; padding: 4px 12px 12px; }
  .pv3-compare .pv3-row-wide a { color: var(--blue-2, #1258c7); font-weight: 800; }
  /* Credit examples: three examples, compact cards */
  .pv3-examples thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .pv3-examples .pv3-ex-more { display: none; }
  .pv3-examples tbody tr { display: grid; grid-template-columns: auto 1fr; margin-bottom: 10px; background: #fff; border: 1px solid var(--line, #dce5f1); border-radius: 12px; overflow: hidden; }
  .pv3-examples tbody th { grid-column: 1 / -1; padding: 12px 14px 4px; border: 0; }
  .pv3-examples td { border: 0; padding: 0 14px; }
  .pv3-examples .pv3-ex-credits { grid-row: 2; padding-right: 0; }
  .pv3-examples .pv3-ex-cost { grid-row: 2; padding-left: 6px; font-weight: 700; color: var(--muted, #3d5068); }
  .pv3-examples .pv3-ex-cost::before { content: "\00b7\00a0 "; }
  .pv3-examples .pv3-ex-get { grid-column: 1 / -1; grid-row: 3; padding: 4px 14px 12px; color: var(--muted, #3d5068); }
}

@media (max-width: 360px) {
  .pv3-compare { font-size: .84rem; }
  .pv3-compare td { padding-inline: 5px; }
  .pv3-toggle label { flex-wrap: wrap; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .pv3-rule { transition: none; }
  .pv3-rule:hover { transform: none; }
}
