/* TAC CREDIT — pricing page. Builds on landing.css (tokens, header, sections, footer):
   two plan columns ruled like a credit memo, a comparison table, a worked usage example. */

/* Intro and the billing switch */
.pr-intro { padding: 64px 0 56px; border-bottom: 1px solid var(--rule); }
.pr-intro-grid { display: grid; grid-template-columns: 1fr auto; gap: 56px; align-items: end; }
.pr-intro h1 { font-size: clamp(32px, 4.2vw, 48px); line-height: 1.1; max-width: 18ch; }

.pr-billing { border: 0; margin: 0; padding: 0; min-width: 0; }
.pr-billing-legend { font: 600 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 12px; padding: 0; }
.pr-toggle {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--rule-strong); border-radius: 4px; background: #fff; padding: 3px;
}
.pr-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.pr-toggle label {
  position: relative; z-index: 1; padding: 10px 18px; text-align: center; cursor: pointer;
  font: 600 14px/1.2 var(--sans); color: var(--ink-2); white-space: nowrap; border-radius: 3px;
  transition: color .2s;
}
.pr-toggle input:checked + label { color: #fff; }
.pr-toggle input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.pr-thumb {
  position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px);
  background: var(--navy); border-radius: 3px; transition: transform .28s var(--ease);
}
.pr-billing[data-billing="monthly"] .pr-thumb { transform: translateX(100%); }
.pr-billing-note { margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.pr-save {
  display: inline-block; font-weight: 600; color: var(--accent-ink);
  border-bottom: 1px solid var(--accent); padding-bottom: 1px;
  transition: opacity .2s, transform .2s var(--ease);
}
.pr-billing[data-billing="monthly"] .pr-save { opacity: .55; }

/* Plans: two ruled columns */
.pr-plans-section { padding-top: 72px; }
.pr-plans {
  margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr;
  border-top: 2px solid var(--navy); border-bottom: 1px solid var(--rule-strong);
}
.pr-plan { padding: 32px 40px 36px 0; display: flex; flex-direction: column; }
.pr-plan + .pr-plan { padding: 32px 0 36px 40px; border-left: 1px solid var(--rule-strong); }
.pr-plan-tag {
  display: inline-block; font: 600 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-ink); margin-bottom: 12px;
}
.pr-plan h3 { font-size: 28px; line-height: 1.15; }
.pr-plan-for { margin-top: 8px; color: var(--ink-2); font-size: 15.5px; max-width: 38ch; }

.pr-price { display: flex; align-items: flex-start; gap: 4px; margin-top: 28px; color: var(--navy-ink); }
.pr-cur { font: 600 24px/1 var(--serif); margin-top: 8px; }
.pr-amount {
  font: 600 64px/1 var(--serif); letter-spacing: -.02em; font-variant-numeric: tabular-nums lining-nums;
  min-width: 4.2ch; display: inline-block;
}
.pr-per { margin: 10px 0 0 10px; font-size: 13px; line-height: 1.35; color: var(--ink-2); }
.pr-terms { margin-top: 14px; font-size: 14.5px; color: var(--ink); font-weight: 600; }
.pr-alt { margin-top: 4px; font-size: 14px; color: var(--ink-2); min-height: 1.6em; }
.pr-terms, .pr-alt { transition: opacity .18s; }
.is-switching .pr-terms, .is-switching .pr-alt { opacity: 0; }

.pr-usage { margin: 26px 0 0; border-top: 1px solid var(--rule); }
.pr-usage > div { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.pr-usage dt { font-size: 14.5px; color: var(--ink); }
.pr-usage dd { margin: 0; font: 600 18px/1 var(--serif); color: var(--navy-ink); }
.pr-usage dd.pr-none { color: var(--ink-2); font-weight: 400; }
.pr-usage-note { margin-top: 8px; font-size: 13px; color: var(--ink-2); }

.pr-list { list-style: none; margin: 24px 0 28px; padding: 0; }
.pr-list li { position: relative; padding: 0 0 12px 22px; font-size: 15px; color: var(--ink); line-height: 1.55; }
.pr-list li::before {
  content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 1.5px; background: var(--accent);
  transform-origin: left; transition: transform .3s var(--ease);
}
.pr-plan:hover .pr-list li::before { transform: scaleX(1.4); }
.pr-cta { margin-top: auto; align-self: flex-start; }

.pr-indicative { margin-top: 18px; font-size: 14px; color: var(--ink-2); }
.pr-indicative strong { color: var(--navy-ink); }

/* Compare */
.pr-compare-section { background: var(--paper-2); }
.pr-table-wrap { min-width: 0; }
.pr-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.pr-table .pr-col { width: 150px; }
.pr-table thead th {
  font: 600 15px/1.25 var(--serif); color: var(--navy-ink); text-align: center; vertical-align: bottom;
  padding: 0 8px 12px; border-bottom: 2px solid var(--navy);
}
.pr-table tbody th { text-align: left; font-weight: 500; color: var(--ink); padding: 11px 16px 11px 0; }
.pr-table td { text-align: center; padding: 11px 8px; }
.pr-table tbody tr { border-bottom: 1px solid var(--rule); transition: background .15s; }
.pr-table tbody tr:not(.pr-group):hover { background: rgba(255,255,255,.6); }
.pr-table .pr-group th {
  padding: 26px 0 8px; font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink);
}
.pr-table .pr-group { border-bottom: 1px solid var(--rule-strong); }
.pr-num { font: 600 17px/1 var(--serif); color: var(--navy-ink); }
.pr-mark { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; }
.pr-yes svg { width: 16px; height: 16px; fill: none; stroke: var(--navy); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pr-no { color: var(--ink-2); }

/* Usage: a worked example, set like a small statement */
.pr-example { margin: 36px 0 0; background: #fff; border: 1px solid var(--rule); border-radius: 4px; padding: 20px 24px; }
.pr-example figcaption { font: 600 12px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 12px; }
.pr-example table { width: 100%; border-collapse: collapse; font-size: 15px; }
.pr-example th { text-align: left; font-weight: 400; color: var(--ink-2); padding: 7px 16px 7px 0; }
.pr-example td { text-align: right; white-space: nowrap; color: var(--ink); padding: 7px 0; }
.pr-example tbody tr { border-bottom: 1px dotted var(--rule-strong); }
.pr-example tfoot th, .pr-example tfoot td { font-weight: 600; color: var(--navy-ink); padding-top: 12px; }
.pr-example tfoot tr { border-top: 1px solid var(--navy); }
.pr-example tfoot td { border-bottom: 3px double var(--navy); }

/* Questions: accordion with a mark that turns from + to − */
.pr-faq { border-top: 1px solid var(--rule-strong); }
.pr-faq-item { border-bottom: 1px solid var(--rule); }
.pr-faq-item h3 { margin: 0; font: inherit; }
.pr-faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  background: none; border: 0; padding: 18px 0; cursor: pointer; text-align: left;
  font: 600 17px/1.35 var(--serif); color: var(--navy-ink);
}
.pr-faq-q:hover { color: var(--navy); }
.pr-faq-mark { position: relative; flex: none; width: 14px; height: 14px; }
.pr-faq-mark::before, .pr-faq-mark::after {
  content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; background: var(--accent-ink);
  transition: transform .25s var(--ease);
}
.pr-faq-mark::after { transform: rotate(90deg); }
.pr-faq-q[aria-expanded="true"] .pr-faq-mark::after { transform: rotate(0deg); }
.pr-faq-a { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .3s var(--ease); }
.pr-faq-a > div { overflow: hidden; }
.pr-faq-a p { padding: 0 40px 20px 0; color: var(--ink-2); font-size: 15.5px; max-width: 68ch; }
.js .pr-faq-a { grid-template-rows: 0fr; }
.js .pr-faq-a.is-open { grid-template-rows: 1fr; }

/* Close */
.pr-close-note { margin-top: 10px; color: var(--ink-2); font-size: 14px; }

/* Small screens */
/* Quote mode (prices hidden): steps on the left, the form in a card on the right */
.qt-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
.qt-copy h1 { max-width: 14ch; }
.qt-steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 22px; }
.qt-steps li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; }
.qt-steps strong { display: block; font: 600 15px/1.3 var(--sans); color: var(--navy-ink); }
.qt-steps p { margin-top: 4px; color: var(--ink-2); font-size: 15px; }
.qt-step-num {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  border: 1.5px solid var(--accent); color: var(--accent-ink); font: 700 14px/1 var(--sans);
}
.qt-card {
  background: #fff; border: 1px solid var(--rule); border-top: 3px solid var(--accent); border-radius: 6px;
  padding: 32px; box-shadow: 0 18px 40px rgba(23,42,82,.08);
}

@media (max-width: 960px) {
  .qt-grid { grid-template-columns: 1fr; gap: 36px; }
  .pr-intro-grid { grid-template-columns: 1fr; gap: 32px; align-items: start; }
  .pr-billing { max-width: 380px; }
}
@media (max-width: 760px) {
  .pr-plans { grid-template-columns: 1fr; }
  .pr-plan, .pr-plan + .pr-plan { padding: 28px 0 32px; border-left: 0; }
  .pr-plan + .pr-plan { border-top: 1px solid var(--rule-strong); }
  .pr-amount { font-size: 54px; }
}
@media (max-width: 640px) {
  .qt-card { padding: 22px 18px; }
  .pr-intro { padding: 40px 0 40px; }
  .pr-table { font-size: 14px; }
  .pr-table .pr-col { width: 76px; }
  .pr-table thead th { font-size: 13px; padding: 0 4px 10px; }
  .pr-table td { padding: 10px 4px; }
  .pr-faq-a p { padding-right: 0; }
  .pr-example { padding: 16px; }
  .pr-example th { padding-right: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .pr-thumb, .pr-faq-a, .pr-faq-mark::before, .pr-faq-mark::after, .pr-terms, .pr-alt { transition: none !important; }
}
