/* styles/pages/pricing.css: pricing.html. Three ways to pay behind one switch: the subscription plans (the index
   page's plan grid, the console's comparison and what a week buys), the pay-as-you-go calculator and ladder, and
   DevPass. The billing questions close the page. */
/* the switch: three engraved tabs on a pill, the picked one inked */
.prtabs { display: inline-flex; gap: 4px; padding: 5px; margin-top: 6px; border-radius: 999px; background: rgba(248,243,234,.7); box-shadow: inset 0 0 0 1px var(--line-2); }
.prtabs button { height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: none; font: 500 15px/1 var(--sans); color: var(--ink-2); cursor: pointer; transition: background-color 180ms ease, color 180ms ease; }
.prtabs button[aria-selected="true"] { background: var(--dark); color: var(--cream); box-shadow: 0 10px 20px -12px rgba(23,17,13,.7); }
@media (hover: hover) and (pointer: fine) { .prtabs button[aria-selected="false"]:hover { color: var(--ink); background: var(--paper-lo); } }
.prpanel { padding-top: clamp(16px, 2vw, 28px); }
.pricing-s--page { padding: 0; }
.pricing-s--page .pricing__title .lede { margin: 0; }
.prfaq { padding-bottom: clamp(96px, 10vw, 140px); }
.prfaq .faq { margin-top: clamp(72px, 8vw, 112px); }
.cmp, .buy { margin-top: clamp(72px, 8vw, 112px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; scroll-margin-top: 96px; }
.cmp__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.cmp__scroll { position: relative; overflow-x: auto; scrollbar-width: thin; border-top: 1px solid var(--ink); }
.cmp__t { width: 100%; min-width: 940px; border-collapse: collapse; font-size: 14.5px; }
.cmp__sec th { position: static !important; padding: 26px 0 8px !important; text-align: left; font: 400 21px/1 var(--serif) !important; color: var(--ink) !important; background: none !important; border-bottom: 1px solid var(--line-2) !important; }
.cmp__t th, .cmp__t td { padding: 13px 12px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.cmp__t thead th { padding: 16px 12px 14px; font: 500 15px/1 var(--sans); color: var(--ink); }
.cmp__t tbody th { position: sticky; left: 0; z-index: 1; padding-left: 0; text-align: left; font-weight: 400; color: var(--ink-2); background: var(--paper); min-width: 220px; }
.cmp__t .is-rec { background: rgba(231,203,167,.22); }
.cmp__t thead .is-rec { box-shadow: inset 0 2px 0 var(--gold); }
.cmp__t svg { width: 16px; height: 16px; color: var(--umber); vertical-align: middle; }
.cmp__no { display: inline-block; width: 10px; height: 1px; background: var(--line-2); vertical-align: middle; }
.cmp__price b { display: block; font: 300 30px/1 var(--serif); letter-spacing: -0.02em; color: var(--ink); }
.cmp__price small { display: block; margin-top: 4px; font-size: 12px; color: var(--ink-3); }
.cmp__note { margin: 0; font-size: 13px; color: var(--ink-3); }
.buy__lede { margin: 0; max-width: 72ch; font-size: 14.5px; color: var(--ink-2); }
.buy__list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.buy__list li { display: grid; grid-template-columns: 30px minmax(0, 220px) minmax(0, 1fr) 92px 110px; gap: 16px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.buy__list a { font: 500 15px/1.2 var(--sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.buy__bar { height: 6px; border-radius: 3px; background: var(--paper-lo); overflow: hidden; }
.buy__bar i { display: block; height: 100%; border-radius: 3px; background: var(--umber); transition: width 300ms var(--out); }
.buy__list b { text-align: right; font-size: 16px; font-weight: 500; }
.buy__list small { text-align: right; font-size: 12.5px; color: var(--ink-3); }
@media (max-width: 760px) {
  .buy__list li { grid-template-columns: 30px minmax(0, 1fr) auto; }
  .buy__bar { grid-column: 2 / -1; grid-row: 2; }
  .buy__list small { grid-column: 2 / -1; text-align: left; }
}

/* pay as you go: the calculator as an open ledger, the input on the left, the receipt on the right */
.payg-p { display: grid; gap: clamp(64px, 7vw, 96px); padding-top: 8px; }
.calc2 { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); border-radius: var(--r-lg); background: var(--linen); box-shadow: inset 0 0 0 1px var(--line), 0 40px 60px -50px rgba(74,48,26,.6); overflow: hidden; }
.calc2__in { display: grid; gap: 18px; align-content: start; padding: clamp(24px, 3vw, 40px); }
.calc2__big { font: 300 clamp(64px, 7vw, 96px)/0.95 var(--serif); letter-spacing: -0.03em; color: var(--ink); }
.calc2__packs { display: flex; flex-wrap: wrap; gap: 6px; }
.calc2__packs button { height: 34px; padding: 0 12px; border: 0; border-radius: 9px; background: var(--porcelain); box-shadow: inset 0 0 0 1px var(--line); font: 500 13.5px/1 var(--mono); color: var(--ink-2); cursor: pointer; }
.calc2__packs button[aria-pressed="true"] { background: var(--dark); color: var(--cream); box-shadow: none; }
.calc2__fine { margin: 0; font-size: 13px; color: var(--ink-3); }
.calc2__out { margin: 0; display: grid; align-content: start; gap: 0; padding: clamp(24px, 3vw, 40px); background: var(--paper-hi); border-left: 1px dashed var(--line-2); }
.calc2__out dl { margin: 0; }
.calc2__out dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.calc2__out dt { color: var(--ink-3); }
.calc2__out dd { margin: 0; text-align: right; color: var(--ink); }
.calc2__total { align-items: baseline; border-bottom: 0 !important; padding-top: 18px !important; }
.calc2__total dt { color: var(--ink) !important; font-weight: 500; }
.calc2__total dd { font: 300 32px/1 var(--serif) !important; letter-spacing: -0.02em; }
.calc2__out .btn { margin-top: 18px; justify-self: start; }
/* the ladder: six steps that rise with the multiplier */
.ladder { display: grid; gap: 22px; }
.ladder__steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; border-bottom: 1px solid var(--ink); }
.ladder__steps li { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; min-height: 0; }
.ladder__x { font: 300 30px/1 var(--serif); letter-spacing: -0.02em; color: var(--ink); }
.ladder__bar { flex: none; display: block; height: var(--h); border-radius: 8px 8px 0 0; background: var(--paper-hi); box-shadow: inset 0 0 0 1px var(--line-2); transition: background-color 200ms var(--out); }
.ladder__steps li.is-here .ladder__bar { background: var(--dark); box-shadow: none; }
.ladder__steps li.is-here .ladder__x { color: var(--umber); }
.ladder__n { font: 500 13px/1 var(--sans); color: var(--ink-2); padding-top: 8px; }
.ladder__min { font-size: 12.5px; color: var(--ink-3); padding-bottom: 12px; }
.rules { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.rules li { display: grid; gap: 8px; align-content: start; padding: 18px 24px 4px; border-left: 1px solid var(--line); }
.rules li:first-child { border-left: 0; padding-left: 0; }
.rules h3 { margin: 0; font: 400 22px/1.15 var(--serif); }
.rules p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }

/* DevPass: the statement, the dark tier card, then models and tools in two ruled columns */
.dp-p { display: grid; gap: clamp(28px, 3vw, 44px); padding-top: 8px; }
.dp-p__state { display: grid; gap: 14px; justify-items: center; text-align: center; }
.dp-p__h { margin: 0; font: 300 clamp(40px, 4.8vw, 68px)/1.02 var(--serif); letter-spacing: -0.03em; text-wrap: balance; }
.dp-p__state .lede { max-width: 60ch; }
.dp-p__card { max-width: 820px; width: 100%; justify-self: center; }
.dp-p__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); padding-top: 12px; }
.dp-p__cols section { display: grid; gap: 14px; align-content: start; }
.dp-p__k { font-size: 26px !important; padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.dp-p__models ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.dp-p__models li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ink); }
.dp-p__models li img { width: 18px; height: 18px; }
.dp-p__tools { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.dp-p__tools li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ink); }
.dp-p__tools .igmark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--porcelain); box-shadow: inset 0 0 0 1px var(--line); }
.dp-p__tools .igmark img { width: 17px; height: 17px; border-radius: 4px; }
.dp-p__cols .tlink { justify-self: start; }

@media (max-width: 900px) {
  .calc2 { grid-template-columns: minmax(0, 1fr); }
  .calc2__out { border-left: 0; border-top: 1px dashed var(--line-2); }
  .ladder__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); height: auto; row-gap: 22px; border-bottom: 0; }
  .ladder__steps li { border-bottom: 1px solid var(--ink); }
  .rules, .dp-p__cols { grid-template-columns: minmax(0, 1fr); }
  .rules li, .rules li:first-child { padding: 16px 0; border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .prtabs { display: flex; width: 100%; }
  .prtabs button { flex: 1; padding: 0 8px; font-size: 14px; }
  .dp-p__models ul, .dp-p__tools { grid-template-columns: minmax(0, 1fr); }
}

/* phones: the feature names hold a narrow sticky column with a soft edge, so two or three plans fit beside them */
@media (max-width: 640px) {
  .cmp__t { min-width: 820px; font-size: 13.5px; }
  .cmp__t tbody th { min-width: 0; width: 128px; max-width: 128px; padding-right: 10px; line-height: 1.3; box-shadow: 10px 0 12px -10px rgba(74,48,26,.35); }
  .cmp__t th, .cmp__t td { padding: 11px 8px; }
  .cmp__price b { font-size: 24px; }
  .cmp__sec th { font-size: 19px !important; }
}
