/* The pricing page. Builds on theme.css. */
[hidden] { display: none !important; }

/* Head */
.pr-head { position: relative; isolation: isolate; overflow: clip; padding-block: clamp(56px, 11vh, 120px) clamp(72px, 13vh, 150px); }
.pr-head__ridge { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 70% 100%; -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent); mask-image: linear-gradient(to bottom, #000 62%, transparent); }
.pr-kicker { display: flex; align-items: center; gap: 16px; margin-bottom: clamp(16px, 2.6vh, 26px); font-size: .8125rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; }
.pr-kicker::after { content: ""; width: clamp(40px, 6vw, 92px); height: 1px; background: var(--red); }
.pricing-head-title { font-size: clamp(2.75rem, 6vw, 5.25rem); line-height: .99; letter-spacing: -.045em; }
.pricing-head-sub { max-width: 40ch; margin-top: clamp(16px, 2.6vh, 26px); color: var(--ink-2); font-size: clamp(1.0625rem, 1.45vw, 1.3125rem); line-height: 1.42; }

/* Configurator shell */
.config { padding-block: 0 clamp(64px, 9vw, 120px); }
.config-grid { display: grid; gap: clamp(32px, 4vw, 56px); }
.config-pane { min-width: 0; }
.config-pane h2 { font-size: clamp(1.875rem, 3vw, 2.875rem); }
.config-section + .config-section { margin-top: clamp(48px, 6vw, 80px); }
.config-section { animation: fadeUp .36s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.cfg-hint, .lede { max-width: 52ch; margin-top: 12px; color: var(--ink-2); }
.combine-note { margin-top: 16px; color: var(--ink-2); font-size: .9375rem; }

/* Service cards */
.chip-group { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 16px); margin-top: clamp(20px, 2.4vw, 32px); }
.cfg-chip { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 14px 16px 18px; border: 1px solid var(--glass-edge); border-radius: 22px; background: linear-gradient(170deg, var(--white), var(--mist-2)); box-shadow: 0 14px 38px rgba(11, 11, 13, .06); text-align: left; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s ease, border-color .2s ease; }
.cfg-chip:hover { transform: translateY(-2px); box-shadow: 0 20px 48px rgba(11, 11, 13, .1); }
.cfg-chip:focus-visible { outline-offset: 3px; }
.cfg-chip-icon { display: block; width: min(100%, 148px); margin: 0 auto 8px; }
.cfg-chip-icon .svc-icon { width: 40px; height: 40px; fill: none; stroke: var(--ink); stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.cfg-chip-text { display: block; min-width: 0; }
.cfg-chip-title { display: block; font-size: 1.1875rem; font-weight: 400; letter-spacing: -.02em; line-height: 1.2; }
.cfg-chip-sub { display: block; margin-top: 6px; color: var(--ink-2); font-size: .875rem; line-height: 1.35; }
.cfg-chip-check { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--ink-3); border-radius: 50%; background: var(--white); transition: background-color .15s ease, border-color .15s ease; }
.cfg-chip-check::after { content: ""; width: 6px; height: 11px; margin-top: -2px; border: solid var(--white); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); opacity: 0; }
.cfg-chip[aria-pressed="true"] { border-color: rgba(227, 19, 27, .55); box-shadow: 0 0 0 1px rgba(227, 19, 27, .25), 0 12px 40px rgba(227, 19, 27, .2); }
.cfg-chip[aria-pressed="true"] .cfg-chip-check { border-color: var(--red); background: var(--red); }
.cfg-chip[aria-pressed="true"] .cfg-chip-check::after { opacity: 1; }

/* Tier cards */
.tier-list { display: grid; gap: clamp(14px, 1.6vw, 20px); margin-top: clamp(20px, 2.4vw, 32px); }
.tier { position: relative; display: flex; flex-direction: column; border: 1px solid var(--glass-edge); border-radius: 26px; background: linear-gradient(170deg, var(--white), var(--mist-2)); box-shadow: 0 18px 50px rgba(11, 11, 13, .06); transition: transform .3s var(--ease), box-shadow .3s ease, border-color .2s ease; }
.tier:hover { transform: translateY(-2px); box-shadow: 0 24px 58px rgba(11, 11, 13, .1); }
.tier:has(.tier-card[aria-pressed="true"]) { border-color: rgba(227, 19, 27, .55); box-shadow: 0 0 0 1px rgba(227, 19, 27, .25), 0 16px 52px rgba(227, 19, 27, .2); }
.tier-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 14px 18px; width: 100%; padding: clamp(20px, 2vw, 28px) clamp(18px, 2vw, 28px) 8px; border: 0; border-radius: 26px 26px 12px 12px; background: none; text-align: left; cursor: pointer; }
.tier-card-head { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tier-tag { color: var(--ink-2); font-size: .9375rem; }
.tier-name, .tier-price { font-size: clamp(1.75rem, 2.6vw, 2.375rem); font-weight: 300; letter-spacing: -.035em; line-height: 1.05; }
.tier-price { padding-top: 1.4rem; white-space: nowrap; font-variant-numeric: tabular-nums; text-align: right; }
.tier-card[aria-pressed="true"] .tier-name::after { content: ""; display: inline-block; width: 8px; height: 15px; margin-left: 12px; border: solid var(--red); border-width: 0 2px 2px 0; transform: translateY(-3px) rotate(45deg); }
.tier-features { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; margin-top: 6px; color: var(--ink-2); font-size: .9375rem; }
.tier-features li { display: flex; align-items: flex-start; gap: 10px; line-height: 1.4; }
.tier-features li::before { content: ""; flex: none; width: 14px; height: 1px; margin-top: .68em; background: var(--red); }
.tier-features li.tier-rollup { grid-column: 1 / -1; color: var(--ink); font-weight: 500; }
.tier-features li.tier-rollup::before { display: none; }
.tier-more { align-self: flex-end; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin: 0 clamp(14px, 1.6vw, 22px) 8px; padding: 0 6px; border: 0; border-radius: 8px; background: none; font-size: .9375rem; font-weight: 500; cursor: pointer; }
.tier-more:hover { color: var(--red-deep); }
.tier-more-chev { width: 16px; height: 16px; fill: none; stroke: var(--red); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.tier-more[aria-expanded="true"] .tier-more-chev { transform: rotate(180deg); }
.tier-detail { padding: 0 clamp(18px, 2vw, 28px) clamp(18px, 2vw, 26px); animation: fadeUp .26s var(--ease) both; }
.tier-detail p { max-width: 62ch; padding-left: 14px; border-left: 1px solid var(--red); color: var(--ink-2); font-size: .9375rem; }
.build-tier-badge { position: absolute; top: -13px; right: clamp(18px, 2vw, 28px); padding: 3px 12px; border-radius: 999px; background: var(--red-deep); color: var(--white); font-size: .75rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }

/* Maintenance plan */
.drift-select { margin-top: clamp(28px, 3vw, 40px); padding-top: clamp(24px, 2.6vw, 32px); border-top: 1px solid var(--rule); }
.drift-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.drift-head > span:first-child { font-size: clamp(1.375rem, 2vw, 1.75rem); font-weight: 300; letter-spacing: -.03em; line-height: 1.1; }
.drift-req { padding: 2px 10px; border: 1px solid var(--red-deep); border-radius: 999px; color: var(--red-deep); font-size: .75rem; font-weight: 500; letter-spacing: .1em; }
.drift-sub { margin: 8px 0 16px; color: var(--ink-2); font-size: .9375rem; }
.drift-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.drift-opt { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 14px 16px; border: 1px solid var(--rule); border-radius: 18px; background: var(--white); text-align: left; cursor: pointer; transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.drift-opt:hover { border-color: var(--ink); }
.drift-name { font-size: 1.0625rem; font-weight: 500; }
.drift-price { color: var(--red-deep); font-size: .9375rem; font-weight: 500; }
.drift-desc { color: var(--ink-2); font-size: .875rem; line-height: 1.35; }
.drift-opt[aria-checked="true"] { border-color: var(--ink); background: var(--ink); color: var(--white); }
.drift-opt[aria-checked="true"] .drift-price { color: var(--white); }
.drift-opt[aria-checked="true"] .drift-desc { color: var(--night-ink-2); }

/* Custom-quote card */
.tilpasset-card { padding: clamp(22px, 2.6vw, 36px); border: 1px solid var(--glass-edge); border-radius: 26px; background: linear-gradient(170deg, var(--white), var(--mist-2)); box-shadow: 0 18px 50px rgba(11, 11, 13, .06); }
.tilpasset-card p { max-width: 52ch; margin-block: 12px 22px; color: var(--ink-2); }
.tilpasset-cta { white-space: normal; text-align: left; }

/* Summary */
.summary { min-width: 0; padding: clamp(22px, 2.6vw, 36px); border: 1px solid var(--glass-edge); border-radius: 26px; background: rgba(250, 250, 250, .72); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 24px 60px rgba(11, 11, 13, .1); }
.summary-eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; font-size: .75rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.summary-eyebrow::after { content: ""; width: 40px; height: 1px; background: var(--red); }
.summary-title { margin-bottom: 20px; font-size: clamp(1.5rem, 2.2vw, 2rem); }
.summary-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-block: 11px; border-top: 1px solid var(--rule); font-size: .9375rem; }
.summary-label { color: var(--ink-2); }
.summary-value { font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.summary-value.muted { color: var(--ink-2); font-weight: 400; }
.split-pay { padding-block: 14px 16px; border-block: 1px solid var(--rule); }
.split-pay-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; font-size: .9375rem; }
.split-pay-label { color: var(--ink-2); }
.split-pay-value { font-weight: 500; }
.split-pay-value small { font-size: inherit; font-weight: 400; }
.split-pay-ticks { display: flex; justify-content: space-between; padding-inline: 5px; color: var(--ink-3); font-size: .8125rem; font-variant-numeric: tabular-nums; }
.summary-total { margin-top: 18px; }
.summary-total-label { color: var(--ink-2); font-size: .9375rem; }
.summary-total-value { margin-top: 2px; font-size: clamp(2.25rem, 3.6vw, 3.25rem); font-weight: 300; letter-spacing: -.04em; line-height: 1.05; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.summary-total-sub { margin-top: 8px; color: var(--ink-2); font-size: .9375rem; line-height: 1.4; }
.summary-cta { width: 100%; margin-top: 22px; }
.summary-cta[disabled] { cursor: not-allowed; }
.summary-cta[disabled]:hover { border-color: var(--ink); background: var(--ink); }

/* Range sliders */
input[type="range"] { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 30px; margin: 0; background: none; cursor: pointer; --track: var(--rule); }
input[type="range"]::-webkit-slider-runnable-track { height: 2px; border-radius: 2px; background: var(--track); }
input[type="range"]::-moz-range-track { height: 2px; border-radius: 2px; background: var(--track); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; margin-top: -9px; border: 0; border-radius: 50%; background: var(--red); box-shadow: 0 0 14px 2px rgba(227, 19, 27, .45); }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border: 0; border-radius: 50%; background: var(--red); box-shadow: 0 0 14px 2px rgba(227, 19, 27, .45); }
input[type="range"]:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 8px; }

/* ROI calculator: black card on the ridge */
.pr-close { position: relative; isolation: isolate; overflow: clip; padding-block: clamp(24px, 3vw, 40px) clamp(56px, 7vw, 88px); }
.pr-close__ridge { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 70% 100%; }
.calc { padding: clamp(24px, 3.4vw, 48px); border-radius: 26px; background: var(--night); color: var(--night-ink); box-shadow: 0 30px 80px rgba(11, 11, 13, .28); }
.calc-grid { display: grid; gap: clamp(24px, 4vw, 64px); align-items: center; }
.calc-title { margin-bottom: 14px; font-size: clamp(1.5rem, 2.2vw, 1.875rem); }
.calc-say { font-size: clamp(1.1875rem, 1.9vw, 1.5rem); font-weight: 300; letter-spacing: -.012em; line-height: 2.05; }
.step { display: inline-flex; align-items: center; margin-inline: .1em; border: 1px solid var(--night-rule); border-radius: 999px; line-height: 1; vertical-align: middle; }
.step:focus-within { border-color: var(--red); }
.step__btn { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--night-ink-2); cursor: pointer; transition: color .15s ease, background-color .15s ease; }
.step__btn:hover { background: var(--red); color: var(--white); }
.step__btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.step input { width: calc(var(--w) * 1ch + 6px); padding: 0; border: 0; background: none; color: var(--white); font: inherit; font-weight: 400; font-variant-numeric: tabular-nums; text-align: center; -moz-appearance: textfield; appearance: textfield; }
.step input::-webkit-inner-spin-button, .step input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.step input:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 4px; }
.calc-result { padding-top: 20px; border-top: 1px solid var(--red); }
.calc-cap { color: var(--night-ink-2); }
.calc-year { margin-top: 2px; color: var(--red); font-size: clamp(2.5rem, 4.4vw, 3.75rem); font-weight: 300; letter-spacing: -.04em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.calc-days { margin-top: 10px; }
.calc-note { margin-top: 10px; color: var(--night-ink-2); font-size: .875rem; line-height: 1.4; }

/* Request modal */
.pricing-modal { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; padding: 24px; opacity: 0; pointer-events: none; transition: opacity .26s ease; }
.pricing-modal.is-open { opacity: 1; pointer-events: auto; }
.pricing-modal-backdrop { position: absolute; inset: 0; width: 100%; padding: 0; border: 0; background: rgba(11, 11, 13, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); cursor: pointer; }
.pricing-modal-panel { position: relative; width: 100%; max-width: 520px; max-height: calc(100dvh - 48px); overflow-y: auto; overscroll-behavior: contain; padding: clamp(22px, 3vw, 32px); border: 1px solid var(--glass-edge); border-radius: 26px; background: var(--white); box-shadow: 0 40px 100px rgba(11, 11, 13, .35); opacity: 0; transform: translateY(12px); transition: transform .32s var(--ease), opacity .24s ease; }
.pricing-modal.is-open .pricing-modal-panel { opacity: 1; transform: none; }
.pricing-modal-close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--rule); border-radius: 50%; background: none; cursor: pointer; transition: border-color .15s ease; }
.pricing-modal-close:hover { border-color: var(--ink); }
.pricing-modal-close svg { width: 18px; height: 18px; }
.pricing-modal-head { margin-bottom: 18px; padding-right: 48px; }
.pricing-modal-title { font-size: clamp(1.75rem, 3vw, 2.25rem); }
.pricing-modal-sub { margin-top: 8px; color: var(--ink-2); font-size: .9375rem; }
.pricing-modal-summary { margin-bottom: 18px; padding: 14px 16px; border-radius: 16px; background: var(--mist); font-size: .9375rem; line-height: 1.45; }
.pricing-modal-summary dl { display: grid; gap: 2px; }
.pricing-modal-summary dt { color: var(--ink-2); font-size: .875rem; }
.pricing-modal-summary dd { margin-bottom: 8px; font-weight: 500; }
.pms-total { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--rule); font-weight: 500; }
.pms-total span:last-child { font-size: 1.25rem; font-weight: 400; letter-spacing: -.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pms-total--after { margin-top: 2px; padding-top: 0; border-top: 0; font-weight: 400; }
.pms-total--after span:first-child { color: var(--ink-2); }
.pms-total--after span:last-child { font-size: .9375rem; }
.pf-label { display: grid; gap: 6px; margin-bottom: 14px; }
.pf-label-text { font-size: .9375rem; font-weight: 500; }
.pf-input { width: 100%; min-height: 50px; padding: 12px 16px; border: 1px solid var(--rule); border-radius: 14px; background: var(--white); transition: border-color .15s ease; }
.pf-input:hover { border-color: var(--ink-3); }
.pf-input:focus-visible { border-color: var(--red); outline: 1px solid var(--red); outline-offset: 0; }
.pf-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.pf-submit { width: 100%; margin-top: 4px; }
.pf-error { display: none; margin-top: 12px; color: var(--red-deep); font-size: .9375rem; font-weight: 500; line-height: 1.4; }
.pf-error.is-shown { display: block; }
.pf-error a { text-decoration: underline; text-underline-offset: .2em; }
.pf-alt { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--rule); text-align: center; }
.pf-alt-sep { color: var(--ink-2); font-size: .875rem; }
.pf-alt-cta { background: none; white-space: normal; cursor: pointer; }
.pf-alt-sub { color: var(--ink-2); font-size: .875rem; }
.pf-confirm { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 24px 0 8px; text-align: center; }
.pf-confirm-mark { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid var(--red); border-radius: 50%; color: var(--red); }
.pf-confirm-mark svg { width: 26px; height: 26px; }
.pf-confirm-title { margin: 0; font-size: 1.75rem; font-weight: 300; letter-spacing: -.03em; line-height: 1.1; }
.pf-confirm-body { max-width: 36ch; color: var(--ink-2); font-size: .9375rem; }
html:has(body.pricing-modal-open) { overflow-y: hidden; }

.confirm-toast { position: fixed; left: 50%; bottom: 24px; z-index: 80; max-width: calc(100vw - 32px); padding: 14px 22px; border-radius: 999px; background: var(--ink); color: var(--white); font-size: .9375rem; opacity: 0; pointer-events: none; transform: translate(-50%, 100%); transition: transform .36s var(--ease), opacity .22s ease; }
.confirm-toast.is-shown { opacity: 1; transform: translate(-50%, 0); }

.menu__sheet a[aria-current] { color: var(--red); }

@media (min-width: 62.0625rem) {
  .config-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; }
  .summary { position: sticky; top: 96px; }
  .calc-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .calc-result { padding: 4px 0 4px clamp(24px, 3vw, 48px); border-top: 0; border-left: 1px solid var(--red); }
}
@media (min-width: 40.0625rem) {
  .tier-features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 22px; }
}
@media (max-width: 40rem) {
  .pr-head { padding-block: 44px 150px; }
  .pr-head__ridge { inset: auto 0 0 0; height: 240px; }
  .chip-group { grid-template-columns: minmax(0, 1fr); }
  .cfg-chip { flex-direction: row; align-items: center; gap: 12px; padding: 10px 46px 10px 10px; }
  .cfg-chip-icon { flex: none; width: 72px; margin: 0; }
  .cfg-chip-check { top: 50%; margin-top: -12px; }
  .drift-opts { grid-template-columns: minmax(0, 1fr); }
  .btn { padding: 0 24px; }
  .pricing-modal { align-items: flex-end; padding: 0; }
  .pricing-modal-panel { max-height: 94dvh; border-radius: 22px 22px 0 0; transform: translateY(40px); }
  .pricing-modal-backdrop { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(11, 11, 13, .7); }
  .step__btn { width: 38px; height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  .config-section, .tier-detail { animation: none; }
  .cfg-chip, .tier, .tier-more-chev, .pricing-modal, .pricing-modal-panel, .confirm-toast { transition: none; }
  .cfg-chip:hover, .tier:hover { transform: none; }
  .pricing-modal-panel { transform: none; }
}
