.pricing-page {
  --paper: color-mix(in srgb, var(--green-25) 38%, white);
  --panel: var(--green-25);
  --rule: color-mix(in srgb, var(--green) 14%, white);
  background: var(--paper);
  color: var(--muted);
  font-size: 1rem;
}
.pricing-page .container, .site-header .container { max-width: 1264px; padding-inline: 32px; }
.price-intro { padding-block: 96px 64px; text-align: center; }
.price-intro h1, .pricing-page .section-head h2, .contact-panel h2 {
  font: 650 clamp(2.5rem, 5vw, 3.75rem)/1.05 var(--font);
  letter-spacing: -.035em;
  text-wrap: balance;
}
.price-intro h1 { font-size: clamp(3rem, 6vw, 5rem); line-height: 1; max-width: 768px; margin: 0 auto; }
.price-intro h1 span { display: block; }
.price-intro p, .pricing-page .section-head p { max-width: 672px; margin: 20px auto 0; font-size: 1.125rem; text-wrap: pretty; }
.tiers { padding-bottom: 88px; }
.price-controls { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-bottom: 20px; }
.price-controls label { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; color: var(--ink); cursor: pointer; font-size: .8125rem; }
.price-controls input {
  appearance: none; position: relative; margin: 0; width: 36px; height: 20px; border: 1px solid var(--subtle);
  border-radius: 16px; background: var(--subtle); cursor: pointer;
}
.price-controls input::before { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: white; transition: transform .15s; }
.price-controls input:checked { background: var(--green); border-color: var(--green); }
.price-controls input:checked::before { transform: translateX(16px); }
.saving { border-radius: 20px; background: var(--green-50); color: var(--green); padding: 3px 9px; font-size: .75rem; }
.tiers-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.tier-card { display: flex; flex-direction: column; border: 1px solid transparent; border-radius: 12px; background: var(--panel); padding: 24px; font-size: .8125rem; }
.tier-card.featured { background: white; border-color: var(--rule); box-shadow: var(--shadow); }
.tier-card h2 { font: 650 .875rem/1.5 var(--font); letter-spacing: normal; }
.tier-amount { min-height: 68px; margin-top: 16px; display: flex; flex-direction: column; justify-content: end; }
.tier-amount s, .tier-amount small { color: var(--subtle); font-size: .875rem; }
.tier-amount span { color: var(--ink); font: 650 clamp(1.7rem, 2.85vw, 2.5rem)/1.05 var(--font); letter-spacing: -.035em; }
.tier-card [data-plan-period] { margin-top: 4px; min-height: 40px; }
.audience { margin: 8px 0 16px; min-height: 2.6em; }
.tier-card ul { border-top: 1px solid var(--rule); padding: 16px 0 0; margin: 0 0 24px; list-style: none; flex: 1; }
.tier-card li { display: flex; gap: 9px; margin-bottom: 8px; }
.tier-card li::before { content: ''; flex: 0 0 6px; height: 11px; margin: 2px 3px 0; transform: rotate(42deg); border: solid var(--green-600); border-width: 0 1.6px 1.6px 0; }
.pricing-page .btn { min-height: 48px; font-size: .8125rem; text-align: center; white-space: normal; }
.terms-note { max-width: 680px; margin: 24px auto 0; font-size: .8125rem; text-align: center; }
.terms-note + .terms-note { margin-top: 8px; }
.pricing-page .section { padding: 64px 0 88px; border-top: 1px solid var(--rule); }
.pricing-page .section-head { margin: 0 auto 40px; max-width: 920px; text-align: center; }
.estimate { display: grid; grid-template-columns: 1.15fr 1fr; max-width: 1024px; margin: auto; background: white; border: 1px solid var(--rule); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.estimate-fields, .estimate-result { padding: 32px; }
.estimate-fields > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.estimate-fields > div:first-child { padding-top: 0; }
.estimate-fields label, .estimate-result h3 { font-size: .9375rem; color: var(--ink); font-weight: 600; }
.estimate-fields input, .estimate-fields select { width: 9rem; max-width: 50%; padding: 8px; min-height: 44px; background: var(--panel); border: 1px solid var(--rule); border-radius: 8px; font: inherit; color: var(--ink); }
.quantity-stepper { display: inline-flex; align-items: center; border: 1px solid var(--rule); border-radius: 8px; }
.quantity-stepper button { border: 0; background: transparent; color: var(--green); font-size: 1.1rem; width: 32px; height: 44px; cursor: pointer; }
.quantity-stepper input { appearance: textfield; width: 5rem; padding-inline: 2px; text-align: center; border: 0; background: transparent; font-variant-numeric: tabular-nums; }
.quantity-stepper input::-webkit-inner-spin-button { appearance: none; }
.estimate-fields p, .estimate-result, .pricing-page .content-grid p { font-size: .875rem; }
.estimate-fields p { margin-top: 16px; }
.estimate-result { background: var(--panel); }
#quote-price { color: var(--ink); font: 650 clamp(2.25rem, 4vw, 3.25rem)/1.1 var(--font); margin-top: 20px; letter-spacing: -.035em; }
#quote-lines { list-style: none; padding: 16px 0 0; border-top: 1px solid var(--rule); font-size: .875rem; }
#quote-lines li + li { margin-top: 6px; }
#quote-error:empty { display: none; }
.pricing-page .content-grid { gap: 16px; }
.pricing-page .content-grid article { background: var(--panel); border: 0; border-radius: 12px; padding: 24px; }
.pricing-page .content-grid h3 { font-size: 1rem; }
.compare-scroll { overflow-x: auto; }
.plan-matrix { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: .875rem; }
.plan-matrix th, .plan-matrix td { text-align: center; padding: 14px 16px; border-bottom: 1px solid var(--rule); }
.plan-matrix th:first-child { text-align: left; width: 30%; color: var(--ink); }
.plan-matrix tbody th { font-weight: 500; }
.plan-matrix thead th { color: var(--ink); }
.plan-matrix thead a { display: flex; width: fit-content; margin: 12px auto 0; }
.plan-matrix :is(td,th):nth-child(4) { background: var(--panel); }
.compare-picker { display: none; }
.pricing-page .faq { max-width: 768px; margin: auto; }
.pricing-page .faq details { padding: 12px 0; border-color: var(--rule); }
.pricing-page .faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--ink); }
.pricing-page .faq summary::-webkit-details-marker { display: none; }
.pricing-page .faq summary::after { content: '+'; font-size: 1.4rem; font-weight: 400; color: var(--green); }
.pricing-page .faq details[open] summary::after { transform: rotate(45deg); }
.contact-panel { padding-block: 16px 88px; }
.contact-panel > div { padding: clamp(32px,6vw,80px); border-radius: 28px; background: var(--green-50); }
.contact-panel p { margin: 16px 0 24px; }
@media (min-width: 901px) {
  .header-inner { height: 80px; }
  .desktop-nav { margin: 0 auto; }
  .header-actions { margin-left: 0; }
}
@media (max-width: 1023px) {
  .tiers-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .tier-amount span { font-size: 2.5rem; }
}
@media (max-width: 767px) {
  .pricing-page .container, .site-header .container { padding-inline: 20px; }
  .price-intro { padding-block: 60px 32px; }
  .price-intro p { font-size: 1rem; }
  .tiers-grid, .estimate { grid-template-columns: 1fr; }
  .tiers, .contact-panel { padding-bottom: 56px; }
  .tier-card { padding: 20px; }
  .tier-card [data-plan-period], .audience { min-height: 0; }
  .tier-amount { min-height: 56px; }
  .pricing-page .section { padding: 48px 0 56px; }
  .estimate-fields, .estimate-result { padding: 24px; }
  .plan-matrix { min-width: 740px; }
  .compare-picker:not([hidden]) { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); padding: 4px; border-radius: 10px; background: var(--green-50); margin-bottom: 16px; }
  .compare-picker button { min-width: 0; border: 0; background: transparent; border-radius: 7px; color: var(--green); min-height: 44px; font: 600 .75rem var(--font); padding: 3px; }
  .compare-picker button[aria-pressed="true"] { color: white; background: var(--green); }
  .compare-scroll[data-column] table { min-width: 0; }
  .compare-scroll[data-column] th:first-child { width: 52%; }
  .compare-scroll[data-column] tr > :not(:first-child) { display: none; }
  .compare-scroll[data-column="2"] tr > :nth-child(2),
  .compare-scroll[data-column="3"] tr > :nth-child(3),
  .compare-scroll[data-column="4"] tr > :nth-child(4),
  .compare-scroll[data-column="5"] tr > :nth-child(5) { display: table-cell; }
}

/* Keep the two catalogue amounts in the same slot while billing changes. */
.tier-amount { position: relative; overflow: hidden; }
.price-layer { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: end; transition: opacity .3s, transform .3s; }
.price-layer[aria-hidden="true"] { opacity: 0; pointer-events: none; }
.annual-price[aria-hidden="true"] { transform: translateY(12px); }
.monthly-price[aria-hidden="true"] { transform: translateY(-12px); }
.featured .tier-amount span { color: var(--green); }
.price-controls input { transition: background-color .2s, border-color .2s; }
.price-controls input::before { transition-duration: .2s; }
.quantity-stepper button:hover { background: var(--green-50); border-radius: 8px; }
.pricing-page .faq summary::after { transition: transform .2s; }
body { overflow-x: clip; }
@media (min-width: 768px) {
  .compare-scroll { overflow: visible; }
  .plan-matrix thead th { position: sticky; top: 68px; z-index: 2; background: var(--paper); box-shadow: inset 0 -1px var(--rule); }
  .plan-matrix thead th:nth-child(4) { background: var(--panel); }
}
@media (min-width: 901px) { .plan-matrix thead th { top: 80px; } }
@media (max-width: 767px) {
  .compare-picker { position: sticky; top: 68px; z-index: 2; }
  .compare-picker button { transition: background-color .2s, color .2s; }
  .compare-scroll[data-column], .slide-window { touch-action: pan-y pinch-zoom; }
}

.example-carousel { outline-offset: 4px; }
.example-carousel[data-ready] .slide-window { overflow: hidden; border-radius: 16px; touch-action: pan-y pinch-zoom; }
.example-carousel[data-ready] .slides { display: flex; transition: transform .5s ease-out; }
.example-slide { flex: 0 0 100%; min-width: 0; display: grid; grid-template-columns: 1fr 1fr; background: var(--panel); }
.example-preview { display: grid; place-items: center; padding: clamp(20px,3vw,48px); background: var(--green-50); }
.example-preview img { width: 100%; height: 300px; object-fit: contain; }
.example-copy { align-self: center; padding: clamp(24px,4vw,64px); }
.example-copy h2 { font-size: clamp(1.65rem,3.4vw,2.8rem); }
.example-copy p { margin: 16px 0 24px; }
.example-copy a { display: inline-block; padding: 8px 16px; border: 1px solid var(--rule); border-radius: 24px; background: white; font-weight: 600; text-decoration: none; }
.slide-controls { display: flex; justify-content: end; align-items: center; gap: 8px; margin-top: 20px; }
.slide-status { margin-right: 10px; font-size: .875rem; font-variant-numeric: tabular-nums; }
.slide-controls button:disabled { opacity: .4; cursor: default; }
@media (max-width: 767px) {
  .example-slide { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .example-preview img { height: clamp(150px,48vw,265px); }
  .example-copy { align-self: start; }
}
@media (hover: hover) {
  .slide-controls button:enabled:hover, .example-copy a:hover { background: var(--green-50); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .pricing-page .btn:hover { transform: scale(1.02); }
  .contact-panel > div { transition: transform .35s ease-out, box-shadow .35s; }
  .contact-panel > div:is(:hover,:focus-within) { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
  .contact-panel .btn { overflow: hidden; position: relative; }
  .contact-panel .btn::after { position: absolute; inset: 0 auto 0 -45%; width: 35%; content: ''; transform: skewX(-12deg); background: linear-gradient(90deg,transparent,#ffffff52,transparent); }
  .contact-panel > div:is(:hover,:focus-within) .btn::after { transform: skewX(-12deg) translateX(460%); transition: transform 1s ease-out; }
}
@media (prefers-reduced-motion: reduce) {
  .pricing-page *, .pricing-page *::before, .pricing-page *::after { transition-duration: 0s !important; }
}

.estimate-fields .site-select { width: 9rem; max-width: 50%; }
.estimate:has(.select-trigger[aria-expanded="true"]) { overflow: visible; }
