/* Pricing page. Uses the shared tokens, hero and section rhythm; only the
   plan grid, calculator and comparison table need page-specific rules. */

.pricing-disclosure{margin:1rem 0 0;font-size:var(--small);color:var(--muted)}
.pricing-hero .cluster{margin-top:1.7rem}

/* Anchors sit under the sticky header. */
#pricing-calculator,#compare-plans{scroll-margin-top:calc(var(--header) + .75rem)}

/* ---- Plan cards ---- */

.plan-grid{display:grid;gap:1.25rem;align-items:stretch}
@media(min-width:1024px){.plan-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:1.35rem}}

.plan-card{display:flex;flex-direction:column;background:var(--color-surface);border:1px solid var(--line);border-radius:var(--r-md);padding:1.75rem 1.7rem}
.plan-card--recommended{border-color:var(--brand);box-shadow:inset 0 3px 0 var(--brand)}

.plan-card__head{padding-bottom:1.3rem;border-bottom:1px solid var(--line)}
.plan-card--recommended .plan-card__head{margin:-1.75rem -1.7rem 0;padding:1.75rem 1.7rem 1.3rem;background:var(--brand-soft);border-radius:calc(var(--r-md) - 1px) calc(var(--r-md) - 1px) 0 0}
/* Keep the plan name and price on the same baseline when the badge is absent. */
@media(min-width:1024px){
  .plan-card:not(.plan-card--recommended) .plan-card__head::before{content:"";display:block;height:1.5rem;margin-bottom:.7rem}
}

.plan-card__badge{display:inline-flex;align-items:center;height:1.5rem;margin:0 0 .7rem;padding:0 .6rem;border-radius:999px;background:var(--brand);color:white;font-size:.68rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.plan-card__name{margin:0;font-size:1.15rem;letter-spacing:-.02em}
.plan-card__lede{margin:.5rem 0 1.15rem;color:var(--muted);font-size:.9rem;line-height:1.5;max-width:none}
.plan-card__price{margin:0;font-size:clamp(2.5rem,4vw,3.2rem);line-height:1;letter-spacing:-.04em;font-weight:700}
.plan-card__unit{margin:.45rem 0 0;font-size:.9rem;color:var(--muted);max-width:none}
.plan-card__note{margin:.2rem 0 0;font-size:.82rem;color:var(--muted);max-width:none}
.plan-card__min{margin:.9rem 0 0;font-size:.84rem;color:var(--ink);font-weight:600;max-width:none}

.plan-card__capacity{margin:1.3rem 0 0;padding:0;list-style:none}
.plan-card__capacity li{margin:0 0 .7rem;font-size:.86rem;font-weight:600;color:var(--ink);line-height:1.4}
.plan-card__capacity li:last-child{margin-bottom:0}
.plan-card__capacity li span{display:block;font-weight:400;font-size:.82rem;color:var(--muted)}

.plan-card__plus{margin:1.35rem 0 .5rem;font-size:.82rem;font-weight:700;color:var(--ink);max-width:none}
.plan-card__features{margin:1.3rem 0 0;padding-left:1.05rem;color:var(--muted);font-size:.88rem;line-height:1.45}
.plan-card__plus + .plan-card__features{margin-top:0}
.plan-card__features li{margin:.4rem 0}
.plan-card__features li span{display:block;margin-top:.2rem;font-size:.79rem;line-height:1.45;color:var(--muted-2)}

.plan-card__cta{margin-top:auto;padding-top:1.5rem}
.plan-card__cta .btn{width:100%}

/* ---- Included in every plan ---- */

.trust-strip{display:grid;gap:0}
.trust-strip__item{padding:1.1rem 0;border-top:1px solid var(--line)}
.trust-strip__item strong{display:block;font-size:.95rem;margin-bottom:.3rem}
.trust-strip__item span{color:var(--muted);font-size:.88rem;line-height:1.45}
@media(min-width:760px){
  .trust-strip{grid-template-columns:1fr 1fr;column-gap:3rem}
  .trust-strip__item:nth-child(odd){padding-right:1.5rem}
  .trust-strip__item:nth-child(even){padding-left:1.5rem;border-left:1px solid var(--line)}
}
@media(min-width:1100px){
  .trust-strip{grid-template-columns:repeat(4,1fr);column-gap:0}
  .trust-strip__item:nth-child(odd),
  .trust-strip__item:nth-child(even){border-top:0;border-left:1px solid var(--line);padding:.15rem 1.4rem}
  .trust-strip__item:first-child{border-left:0;padding-left:0}
  .trust-strip__item:last-child{padding-right:0}
}

/* ---- Calculator ---- */

.calc-layout{display:grid;gap:2rem}
@media(min-width:900px){.calc-layout{grid-template-columns:minmax(0,17rem) minmax(0,1fr);gap:3rem;align-items:start}}
.calc-controls{display:grid;gap:1.5rem;align-content:start}
.calc-label{display:block;font-size:.86rem;font-weight:650;margin-bottom:.5rem}
.calc-note{margin:.6rem 0 0;font-size:.8rem;color:var(--muted);line-height:1.45;max-width:none}

.calc-seg{display:inline-flex;border:1px solid var(--line);border-radius:var(--r-md);overflow:hidden;background:var(--color-surface)}
.calc-seg button{min-height:44px;min-width:6.5rem;padding:0 1rem;border:0;background:transparent;color:var(--ink);font:inherit;font-weight:650;font-size:.9rem;cursor:pointer;transition:background var(--motion) var(--ease),color var(--motion) var(--ease)}
.calc-seg button + button{border-left:1px solid var(--line)}
.calc-seg button:hover{background:var(--bg-soft)}
.calc-seg button[aria-pressed="true"]{background:var(--brand);color:white}

.calc-input{width:100%;max-width:11rem;min-height:48px;padding:.6rem .85rem;border:1px solid var(--line);border-radius:var(--r-md);font:inherit;font-size:1rem;background:var(--color-surface);color:var(--ink)}
.calc-input:focus-visible{border-color:var(--brand)}
.calc-hint{margin:.6rem 0 0;font-size:.84rem;color:var(--muted);line-height:1.45;max-width:none}
.calc-hint:empty{display:none}

.calc-results{display:grid;gap:1rem}
@media(min-width:560px){.calc-results{grid-template-columns:repeat(2,minmax(0,1fr))}}
.calc-tile{background:var(--color-surface);border:1px solid var(--line);border-radius:var(--r-md);padding:1.15rem 1.2rem}
.calc-tile strong{display:block;font-size:clamp(1.4rem,2.4vw,1.75rem);letter-spacing:-.03em;line-height:1.15;margin:.3rem 0 .25rem}
.calc-tile span{display:block;font-size:.8rem;color:var(--muted);line-height:1.35}
.calc-seatline{margin:1.1rem 0 0;font-size:.88rem;color:var(--muted);max-width:none}

.calc-cta{display:flex;flex-wrap:wrap;align-items:center;gap:1rem;margin-top:1.5rem;padding-top:1.5rem;border-top:1px solid var(--line)}
.calc-cta__text{margin:0;font-size:.92rem;color:var(--muted);max-width:32ch}

/* ---- Comparison ---- */

.comparison-hint{display:none;margin:0 0 .8rem;font-size:.84rem;color:var(--muted)}
@media(max-width:900px){.comparison-hint{display:block}}
/* position:relative gives the sticky cells a containing block; without it the
   wide table leaks into the page's horizontal scroll width on small screens. */
.comparison-scroll{position:relative;overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid var(--line);border-radius:var(--r-md);background:var(--color-surface)}
.comparison-scroll:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.comparison-foot{margin:1rem 0 0;font-size:.84rem;color:var(--muted);max-width:none}

.plan-table{width:100%;min-width:46rem;table-layout:fixed;border-collapse:separate;border-spacing:0;font-size:.88rem}

/* Header carries the plan name over its headline price so the matrix can be
   read without scrolling back to the cards. */
.plan-table thead th{padding:1rem 1.1rem;background:var(--bg-soft);border-bottom:1px solid var(--line-strong);text-align:center;vertical-align:bottom}
.plan-table thead th:first-child{text-align:left;font-size:.72rem;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);font-weight:700}
.plan-col{display:block;font-size:.98rem;font-weight:700;letter-spacing:-.01em;color:var(--ink)}
.plan-col__price{display:block;margin-top:.15rem;font-size:.78rem;font-weight:500;color:var(--muted)}

.plan-table tbody th[scope=row],.plan-table tbody td{padding:.72rem 1.1rem;border-bottom:1px solid var(--line);vertical-align:middle}
.plan-table tbody th[scope=row]{width:34%;text-align:left;font-weight:600;color:var(--ink)}
.plan-table tbody td{width:22%;text-align:center;color:var(--muted)}
.plan-table tbody th[scope=row] a{color:inherit;text-decoration:underline;text-decoration-color:var(--line-strong);text-underline-offset:2px}
.plan-table tbody th[scope=row] a:hover{color:var(--brand-dark);text-decoration-color:currentColor}

.plan-table .group-row th{padding:.7rem 1.1rem;background:var(--bg-soft);border-block:1px solid var(--line);text-align:left;font-size:.72rem;letter-spacing:.1em;text-transform:uppercase;color:var(--ink);font-weight:700}
.plan-table tbody:first-of-type .group-row th{border-top:0}
.plan-table tbody:last-child tr:last-child th,.plan-table tbody:last-child tr:last-child td{border-bottom:0}

/* Available vs not, with the state carried in text as well as the mark. */
.plan-table td.yes{color:var(--ink);font-weight:600}
.plan-table td.yes::before{content:"";display:inline-block;vertical-align:middle;width:.38rem;height:.68rem;margin:-.16rem .45rem 0 0;border-right:2px solid var(--brand);border-bottom:2px solid var(--brand);transform:rotate(45deg)}
.plan-table td.no{color:var(--muted-2)}

/* The recommended plan keeps a quiet band down the whole matrix. */
.plan-table tr>:nth-child(3){background:rgb(22 122 85 / .045)}
.plan-table thead th:nth-child(3){background:var(--brand-soft);box-shadow:inset 0 3px 0 var(--brand)}

/* The feature name stays put while the plan columns scroll sideways. */
.plan-table thead th:first-child,.plan-table tbody th[scope=row]{position:sticky;left:0;z-index:2;border-right:1px solid var(--line)}
.plan-table tbody th[scope=row]{background:var(--color-surface)}
.plan-table thead th:first-child{z-index:3}

.plan-table tbody tr:hover th[scope=row],.plan-table tbody tr:hover td{background:var(--bg-soft)}
.plan-table tbody tr:hover>:nth-child(3){background:var(--brand-soft)}
.plan-table .group-row:hover th{background:var(--bg-soft)}

/* ---- FAQ ---- */

.faq-list{display:grid;gap:.6rem;max-width:52rem}
.faq-list details{border:1px solid var(--line);border-radius:var(--r-md);background:var(--color-surface);padding:0 1.15rem}
.faq-list summary{cursor:pointer;min-height:52px;display:flex;align-items:center;gap:1rem;font-weight:600;list-style:none}
.faq-list summary::-webkit-details-marker{display:none}
.faq-list summary::after{content:"";flex:none;margin-left:auto;width:.5rem;height:.5rem;border-right:1.5px solid var(--muted);border-bottom:1.5px solid var(--muted);transform:rotate(45deg) translate(-2px,-2px);transition:transform var(--motion) var(--ease)}
.faq-list details[open] summary::after{transform:rotate(225deg) translate(-2px,-2px)}
.faq-list details p{margin:0 0 1.15rem;color:var(--muted);font-size:.92rem;line-height:1.6}

/* ---- Responsive / motion / print ---- */

@media(max-width:759px){
  .plan-card__cta .btn,
  .pricing-hero .cluster .btn,
  .cta-band .cluster .btn{width:100%}
  .pricing-hero .cluster,.cta-band .cluster{width:100%}
  .calc-seg{display:grid;grid-template-columns:1fr 1fr;width:100%}
  .calc-seg button + button{border-left:1px solid var(--line)}
  .calc-input{max-width:100%}
}

@media(prefers-reduced-motion:reduce){
  .calc-seg button,.faq-list summary::after{transition:none}
}

@media print{
  .comparison-scroll{overflow:visible;border:0}
  .plan-table{min-width:0;font-size:.72rem}
  .plan-table thead th:first-child,.plan-table tbody th[scope=row]{position:static}
  .plan-table tr>:nth-child(3),.plan-table thead th:nth-child(3){background:transparent;box-shadow:none}
  .plan-card{break-inside:avoid}
  .faq-list details{break-inside:avoid}
}
