.pricing { max-width: 1180px; padding-top: clamp(42px, 7vw, 76px); }
.pricing-heading { text-align: center; }
.pricing-heading .kicker { color: var(--green); margin-bottom: 12px; }
.pricing-heading h1 { margin-bottom: 12px; }
.pricing-heading > p:not(.kicker) { color: #c5c5cb; max-width: 60ch; margin: 0 auto 8px; }
.pricing-heading > p:last-child { margin-bottom: 25px; }
.pricing h2 { margin: 0; }
.pricing h2::before { content: none; }
.billing { border: 0; text-align: center; margin: 0 auto; }
.billing legend { font-size: 13px; margin: 0 auto 8px; color: #c5c5cb; }
.billing-switch { display: inline-flex; position: relative; align-items: center; gap: 3px; padding: 4px; border: 1px solid #38383b; border-radius: 999px; background: #151518; }
.billing-switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.billing-switch label { display: flex; align-items: center; gap: 7px; padding: 6px 14px; border-radius: 999px; color: #d1d1d6; cursor: pointer; font-size: 14px; }
.billing-switch input:checked + label { color: #111; background: #f1f2f2; }
.billing-switch input:focus-visible + label { outline: 2px solid var(--green); outline-offset: 3px; }
.billing-switch label span { font-size: 10px; padding: 0 6px; border-radius: 999px; background: #274234; color: #d8f3e3; }
.billing-note { text-align: center; color: #c5c5cb; font-size: 13px; margin: 10px 0 28px; }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.plan { display: grid; grid-template-rows: auto auto auto auto 1fr; align-content: start; gap: 12px; padding: clamp(16px, 2.1vw, 27px); border: 1px solid #343437; border-radius: 20px; background: #111113; }
.plan-featured { border-color: #719681; background: #131b17; }
.plan h2 { font-size: 21px; }
.plan p { margin: 0; }
.plan > p:not(.plan-price) { color: #c5c5cb; font-size: 14px; min-height: 3.4em; }
.plan-name { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; }
.plan-name span { font-size: 11px; border-radius: 999px; padding: 3px 8px; background: #294334; color: #d8f3e3; }
.plan-price { color: var(--white); font-size: clamp(19px, 2vw, 26px); letter-spacing: -.025em; font-weight: 650; }
.plan-action { display: inline-flex; align-items: center; justify-content: center; text-align: center; padding: 8px 13px; min-height: 44px; border: 1px solid #4e5051; border-radius: 999px; color: var(--white); text-decoration: none; font-weight: 650; font-size: 14px; }
.plan-action:hover { background: #242527; }
.plan-action:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.plan-primary { background: #d9f1e2; color: #111a15; border-color: #d9f1e2; }
.plan-primary:hover { background: #bfe9cf; }
.plan ul { list-style: none; margin: 4px 0 0; border-top: 1px solid #373a38; padding-top: 12px; font-size: 14px; }
.plan li { position: relative; padding-left: 20px; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: #a7ceba; }
.pricing-note { max-width: 78ch; margin: 20px auto 34px; text-align: center; font-size: 13px; color: #c5c5cb; }
.enterprise-plan { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid #343437; border-radius: 20px; padding: clamp(16px, 2.4vw, 26px); }
.enterprise-plan p { max-width: 65ch; margin: 8px 0 0; color: #c5c5cb; font-size: 14px; }
.enterprise-actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 1040px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .plans { grid-template-columns: 1fr; }
  .plan > p:not(.plan-price) { min-height: 0; }
}

.plan-pick { display: grid; gap: 9px; }
.seat-row, .seat-stepper { display: flex; align-items: center; gap: 8px; }
.seat-row { justify-content: space-between; font-size: 13px; color: #d5d5d9; }
.seat-stepper button {
  width: 34px; height: 34px; border: 1px solid #4e5051; border-radius: 8px;
  background: #202123; color: var(--white); font: inherit; font-size: 17px; cursor: pointer;
}
.seat-stepper button:hover:enabled { background: #323436; }
.seat-stepper button:disabled { opacity: .45; cursor: default; }
.seat-stepper input {
  width: 4.5ch; min-width: 46px; height: 34px; padding: 3px; border: 1px solid #4e5051;
  border-radius: 6px; background: transparent; color: var(--white); font: inherit;
  text-align: center; font-variant-numeric: tabular-nums; appearance: textfield;
}
.seat-stepper input::-webkit-inner-spin-button, .seat-stepper input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.seat-stepper :is(input,button):focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.tool-access { margin: 0 0 24px; padding: clamp(16px, 2.4vw, 26px); border: 1px solid #343437; border-radius: 20px; background: #111113; }
.tool-access > p { color: #c5c5cb; margin: 0 0 14px; }
.tool-catalog { scroll-margin-top: 100px; }
.tool-catalog summary { cursor: pointer; color: var(--green); font-weight: 650; }
.tool-catalog > p { margin: 6px 0 0; color: #c5c5cb; }
.tool-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 22px; }
.tool-groups h3 { margin-top: 16px; }
.tool-groups ul { margin-bottom: 4px; color: #c5c5cb; font-size: 14px; }
@media (max-width: 600px) { .tool-groups { grid-template-columns: 1fr; } }

.ai-choice { max-width: 850px; margin: 0 auto 28px; padding: 18px; border: 1px solid var(--line, #38383b); border-radius: 16px; }
.ai-choice legend { padding: 0 8px; color: var(--white); font-weight: 650; }
.ai-options { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 24px; }
.ai-options label { display: flex; align-items: center; gap: 8px; cursor: pointer; color: var(--white); font-size: 14px; }
.ai-options input { accent-color: var(--green); }
.ai-choice p { margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; text-align: center; }
.plan-pick > label { color: var(--white); font-size: 13px; }
#team-tier { width: 100%; min-height: 38px; padding: 6px 8px; border: 1px solid #4e5051; border-radius: 8px; background: var(--theme-surface, #202123); color: var(--white); font: inherit; font-size: 13px; }
#team-tier:focus-visible, .ai-options input:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.plan [hidden] { display: none; }

/* Credits scale independently for Plus and Pro. Amounts remain a launch preview. */
.plan-credit-pricing { display:grid; align-content:start; gap:10px; min-width:0; }
.plan-credit-pricing .credit-price-context { color:var(--muted,#b9b9b9); font-size:12px; line-height:1.5; }
.credit-controls { display:grid; gap:5px; min-width:0; padding-top:8px; }
.credit-controls label { color:var(--white,#eee); font-size:13px; font-weight:600; }
.credit-controls output { color:var(--green); font-size:14px; font-weight:650; }
.credit-controls input[type="range"] { width:100%; min-width:0; height:44px; margin:0; cursor:pointer; accent-color:var(--green); }
.credit-controls input:focus-visible { outline:2px solid var(--green); outline-offset:2px; border-radius:4px; }
.credit-range-ends { display:flex; justify-content:space-between; color:var(--muted,#b9b9b9); font-size:11px; }
.plan-credit-pricing :is(.credit-note,.credit-own-note) { color:var(--muted,#b9b9b9); font-size:12px; line-height:1.55; }
.credit-preview-note { max-width:78ch; margin:20px auto 0; text-align:center; color:var(--muted,#b9b9b9); font-size:12px; }
.workspace-access { margin:0 0 24px; padding:clamp(16px,2.4vw,26px); border:1px solid var(--line,#343437); border-radius:20px; background:var(--theme-surface,#111113); }
.workspace-access h2 { font-size:clamp(21px,3vw,28px); }
.workspace-access > p { color:var(--muted,#b9b9b9); font-size:14px; line-height:1.7; }
.credit-policy { display:grid; grid-template-columns:1fr 1fr; gap:20px; margin:20px 0 0; padding-top:18px; border-top:1px solid var(--line,#343437); }
.credit-policy dt { color:var(--white,#eee); font-size:14px; font-weight:650; }
.credit-policy dd { margin:8px 0 0; color:var(--muted,#b9b9b9); font-size:14px; line-height:1.65; }
.ai-choice .model-quality-note { padding-top:12px; border-top:1px solid var(--line,#38383b); }
@media(max-width:600px) { .credit-policy { grid-template-columns:1fr; } }

.plan-credit-pricing .team-price-total { color:var(--white,#eee); font-size:12px; font-weight:650; line-height:1.6; overflow-wrap:anywhere; }

.plan-difference-note { max-width:90ch; margin:24px auto 12px; color:var(--white,#eee); font-size:14px; line-height:1.7; text-align:center; }
.team-tier-benefits { color:var(--green); font-size:13px; line-height:1.6; }
.team-tier-benefits p { margin:0; }
.plan-team { grid-template-rows:auto auto auto auto auto 1fr; }
.plan-price { overflow-wrap:anywhere; }

.credit-manual { display:flex; align-items:center; justify-content:space-between; gap:8px; margin:5px 0; }
.credit-manual > div { display:flex; align-items:center; gap:5px; }
.credit-manual input { width:7ch; max-width:100%; min-height:38px; padding:6px; border:1px solid var(--line,#4e5051); border-radius:6px; background:var(--theme-surface,#202123); color:var(--white,#eee); font:inherit; font-size:14px; font-variant-numeric:tabular-nums; }
.credit-manual input:focus-visible { outline:2px solid var(--green); outline-offset:3px; }
.credit-upgrade { padding:12px; border:1px solid var(--green); border-radius:10px; color:var(--white,#eee); font-size:12px; line-height:1.6; }
.credit-upgrade p { margin:0 0 8px; }
.credit-upgrade button { border:1px solid var(--green); border-radius:7px; min-height:40px; padding:6px 10px; color:var(--bg,#000); background:var(--green); cursor:pointer; font:650 12px system-ui,sans-serif; }
.credit-upgrade button:focus-visible { outline:2px solid var(--green); outline-offset:3px; }
#pro-plan { scroll-margin-top:100px; }

.plan-price-ratio { max-width:90ch; margin:20px auto 12px; color:var(--muted,#b9b9b9); font-size:13px; line-height:1.7; text-align:center; }

.credit-manual input { width:8.5ch; min-width:84px; appearance:textfield; text-align:right; }
.credit-manual input::-webkit-inner-spin-button, .credit-manual input::-webkit-outer-spin-button { appearance:none; margin:0; }

/* ---------- changing plans mid-subscription ---------- */
.plan-changes { margin:0 0 24px; padding:clamp(16px,2.4vw,26px); border:1px solid var(--line,#343437); border-radius:20px; background:var(--theme-surface,#111113); scroll-margin-top:90px; }
.plan-changes h2 { font-size:clamp(21px,3vw,28px); }
.plan-changes > p { color:var(--muted,#b9b9b9); font-size:14px; line-height:1.7; }
.change-policy { grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr)); }
.switch-estimator { margin-top:22px; padding-top:18px; border-top:1px solid var(--line,#343437); }
.switch-estimator h3 { margin:0 0 12px; font-size:16px; color:var(--white,#eee); }
.switch-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr)); gap:14px; }
.switch-grid fieldset { margin:0; padding:12px; border:1px solid var(--line,#343437); border-radius:12px; display:flex; flex-direction:column; gap:8px; min-width:0; }
.switch-grid legend { padding:0 4px; font-size:12px; letter-spacing:.08em; text-transform:uppercase; color:var(--muted,#b9b9b9); }
.switch-grid select { width:100%; min-height:38px; padding:6px 8px; border:1px solid #4e5051; border-radius:8px; background:var(--theme-surface,#202123); color:var(--white); font:inherit; font-size:13px; }
.switch-mult { display:flex; align-items:center; justify-content:space-between; gap:8px; font-size:13px; color:var(--muted,#b9b9b9); }
.switch-mult input { width:8.5ch; min-width:84px; min-height:36px; padding:6px; border:1px solid var(--line,#4e5051); border-radius:6px; background:var(--theme-surface,#202123); color:var(--white,#eee); font:inherit; font-size:14px; text-align:right; font-variant-numeric:tabular-nums; appearance:textfield; }
.switch-mult input::-webkit-inner-spin-button, .switch-mult input::-webkit-outer-spin-button { appearance:none; margin:0; }
.switch-day { display:grid; grid-template-columns:1fr auto; align-items:center; gap:6px 8px; font-size:13px; color:var(--muted,#b9b9b9); }
.switch-day input { grid-column:1 / -1; width:100%; accent-color:var(--green); }
.switch-day output { font-variant-numeric:tabular-nums; color:var(--white,#eee); }
.switch-grid select:focus-visible, .switch-mult input:focus-visible, .switch-day input:focus-visible { outline:2px solid var(--green); outline-offset:3px; }
.switch-result { margin-top:14px; padding:14px 16px; border:1px solid color-mix(in srgb, var(--green) 45%, transparent); border-radius:12px; font-size:14px; line-height:1.6; color:var(--muted,#b9b9b9); }
.switch-result p { margin:0; }
.switch-result .switch-headline { color:var(--white,#eee); font-weight:650; margin-bottom:6px; }
.switch-result dl { margin:6px 0 8px; display:grid; gap:4px; }
.switch-result dl div { display:flex; justify-content:space-between; gap:12px; }
.switch-result dd { margin:0; font-variant-numeric:tabular-nums; text-align:right; color:var(--white,#eee); }
.switch-result .switch-due { padding-top:6px; border-top:1px solid var(--line,#343437); font-weight:650; }
.switch-result .switch-due dd { color:var(--green); }
.switch-result .switch-cap { margin-top:8px; color:var(--green); }
.switch-note { margin:10px 0 0; font-size:12px; color:var(--muted,#b9b9b9); }
.switch-result .switch-purchased { margin-top:8px; padding-top:8px; border-top:1px dashed var(--line,#343437); color:var(--white,#eee); }
