
/* ============================================== PRICING COMPONENTS ========== */
/* Pricing is a COMPARE surface: the job is to let someone judge value quickly.
   Its geometry must therefore differ from the homepage's Decide/Learn rhythm —
   here the page is dominated by one conversion figure and one dense table, with
   prose deliberately pushed to the edges. */

/* ---- the conversion figure: the single most important number on the site ---- */
/* Full-bleed band, two oversized tabular figures, a directional rule between them.
   Not a card: a card would make it one object among many, and this is THE object. */
.convert {
  position: relative; overflow: hidden;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--carbon);
  padding: 56px 0;
}
.convert::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(52% 120% at 50% 50%, rgba(232,160,85,.11) 0%, transparent 70%);
  pointer-events: none;
}
.convert-in {
  position: relative; z-index: 1;
  max-width: 760px; margin: 0 auto; padding: 0 var(--sp-24);
  display: grid; grid-template-columns: 1fr auto 1fr;
  gap: 32px; align-items: center;
}
@media (max-width: 640px) {
  .convert-in { grid-template-columns: 1fr; gap: 20px; text-align: center; }
  .convert .arrow { transform: rotate(90deg); }
}
.convert .side { text-align: center; }
.convert .lbl {
  display: block; font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--fog); margin-bottom: 10px;
}
.convert .val {
  display: block; font-family: var(--mono);
  font-size: clamp(38px, 6vw, 62px); font-weight: 500;
  letter-spacing: -0.038em; line-height: 1;
  font-variant-numeric: tabular-nums; color: var(--paper);
}
.convert .side.right .val { color: var(--accent); }
.convert .arrow {
  font-size: 26px; color: var(--accent); line-height: 1;
  transition: transform var(--t-ui) var(--ease-out);
}
.convert:hover .arrow { transform: translateX(5px); }
.convert .note {
  position: relative; z-index: 1;
  max-width: 760px; margin: 24px auto 0; padding: 0 var(--sp-24);
  text-align: center; color: var(--fog); font-size: 13.5px;
}

/* ---- plan cards: a real comparison, so cards are correct here ---- */
.plans { display: grid; gap: var(--sp-16); grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); justify-items: center; }
.plan {
  display: flex; flex-direction: column;
  width: 100%;   /* fill the grid track, capped by max-width:460px from marketing.css —
                     without this, `justify-items: center` on .plans shrinks a lone card
                     to its max-content width (~337px) instead of its intended 460px. */
  background: var(--carbon); border-radius: var(--r-card);
  padding: var(--sp-24);
  box-shadow: var(--inset-hairline);
  transition: box-shadow var(--t-ui) var(--ease-ui), transform var(--t-ui) var(--ease-out);
}
.plan:hover { transform: translateY(-2px); box-shadow: var(--inset-hairline), 0 10px 30px -12px rgba(0,0,0,.6); }
/* the entry plan is the one we want chosen, so it gets the accent edge — not a
   fill, because the closing CTA already owns the only filled accent surface */
.plan.feature { box-shadow: inset 0 0 0 1px var(--accent-line); }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.plan-name { font-size: 15px; font-weight: 510; letter-spacing: -0.011em; color: var(--paper); }
.plan-price {
  font-family: var(--mono); font-size: 40px; font-weight: 500;
  letter-spacing: -0.034em; line-height: 1; color: var(--paper);
  font-variant-numeric: tabular-nums; margin-bottom: 8px;
}
.plan-price .cur { font-size: 22px; vertical-align: super; color: var(--fog); margin-right: 1px; }
.plan-price .per { font-family: var(--sans); font-size: 13px; font-weight: 400; color: var(--fog); letter-spacing: 0; margin-left: 4px; }
.plan-get { color: var(--fog); font-size: 14px; margin: 0 0 18px; }
.plan-get b { color: var(--accent); font-weight: 510; }
.plan hr { border: 0; border-top: 1px solid var(--line); margin: 0 0 16px; }
.plan ul { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 9px; }
.plan li { color: var(--fog); font-size: 13.5px; padding-left: 18px; position: relative; line-height: 1.5; }
.plan li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 7px; height: 7px; border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 55%, transparent);
}
.plan li b { color: var(--mist); font-weight: 510; }
.plan .btn { margin-top: auto; width: 100%; justify-content: center; }

/* ---- rate table: the densest thing on the site, so it gets less chrome ---- */
.rtable-wrap { border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; background: var(--carbon); }
.rtable-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.rtable { width: 100%; border-collapse: collapse; }
table.rtable th, table.rtable td { padding: 13px 18px; border-bottom: 1px solid var(--line); }
table.rtable th {
  font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: .085em; text-transform: uppercase; color: var(--fog);
  background: var(--void); text-align: right; white-space: nowrap;
  position: sticky; top: 0; z-index: 1;
}
table.rtable th:first-child { text-align: left; }
table.rtable th.hl { color: var(--accent); }
table.rtable td { font-size: 13.5px; color: var(--mist); }
table.rtable tbody tr:last-child td { border-bottom: 0; }
table.rtable tbody tr { transition: background var(--t-fast) var(--ease-ui); }
table.rtable tbody tr:hover td { background: rgba(255,255,255,.022); }
table.rtable td.num {
  text-align: right; font-family: var(--mono); font-size: 13px;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
/* the cached-input column is the reason to buy, so it is the only tinted cell */
table.rtable td.hl { color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, transparent); }
table.rtable .mname { display: block; color: var(--paper); font-weight: 510; font-size: 14px; }
table.rtable .mprov { display: block; font-family: var(--mono); font-size: 11.5px; color: var(--ash); margin-top: 3px; }
.rtable-foot {
  padding: 14px 18px; border-top: 1px solid var(--line);
  background: var(--void); color: var(--fog); font-size: 12.5px; line-height: 1.6;
}

/* ---- two-column mechanics blocks, hairline-divided rather than carded ---- */
.mech { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0; }
@media (max-width: 821px) { .mech { grid-template-columns: minmax(0,1fr); } }
.mech .col { padding: 0 32px; border-left: 1px solid var(--line); }
.mech .col:first-child { border-left: 0; padding-left: 0; }
@media (max-width: 821px) {
  .mech .col { border-left: 0; padding: 0 0 28px; border-bottom: 1px solid var(--line); }
  .mech .col:last-child { border-bottom: 0; padding-bottom: 0; }
}
.mech h3 { font-size: 17px; font-weight: 510; color: var(--paper); margin: 0 0 14px; }

/* a numbered mechanic list: number + text, hairline rows */
.mlist { display: grid; gap: 0; }
.mlist .m {
  display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line);
}
.mlist .m:last-child { border-bottom: 0; }
.mlist .n {
  flex: none; font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: .1em; color: var(--accent); padding-top: 3px;
}
.mlist .t { color: var(--fog); font-size: 14px; line-height: 1.6; }
.mlist .t b { color: var(--mist); font-weight: 510; }
.mlist .t code { font-size: 12px; }

/* checklist for "included with every plan" */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.checks li { color: var(--fog); font-size: 14px; padding-left: 24px; position: relative; line-height: 1.55; }
.checks li::before {
  content: ""; position: absolute; left: 3px; top: 5px;
  width: 11px; height: 6px; border-left: 1.5px solid var(--ok); border-bottom: 1.5px solid var(--ok);
  transform: rotate(-45deg);
}

/* ---- docs: anchored sub-navigation rail ---- */
.doc-shell {
  display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px;
  max-width: var(--max); margin: 0 auto; padding: 0 var(--sp-24);
  align-items: start;
}
@media (max-width: 1000px) { .doc-shell { grid-template-columns: minmax(0,1fr); gap: 32px; } }
.doc-nav { position: sticky; top: 88px; }
@media (max-width: 1000px) {
  .doc-nav {
    position: static; display: flex; flex-wrap: wrap; gap: 6px;
    padding-bottom: 18px; border-bottom: 1px solid var(--line);
  }
}
.doc-nav .dn-label {
  font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--fog);
  margin-bottom: 12px; display: block;
}
@media (max-width: 1000px) { .doc-nav .dn-label { width: 100%; margin-bottom: 6px; } }
.doc-nav a {
  display: block; padding: 6px 10px; margin-left: -10px; border-radius: var(--r-btn);
  color: var(--fog); font-size: 13.5px; text-decoration: none;
  transition: color var(--t-fast) var(--ease-ui), background var(--t-fast) var(--ease-ui);
}
@media (max-width: 1000px) { .doc-nav a { margin-left: 0; border: 1px solid var(--line); } }
.doc-nav a:hover { color: var(--mist); background: var(--graphite); text-decoration: none; }
.doc-nav a.active { color: var(--accent); background: var(--accent-wash); font-weight: 510; }

.doc-body { min-width: 0; }
.doc-body section { padding: 0 0 64px; scroll-margin-top: 88px; }
.doc-body h2 {
  font-size: clamp(22px, 2.6vw, 30px); font-weight: 510; letter-spacing: -0.022em;
  color: var(--paper); margin: 0 0 14px; text-transform: none; display: block;
}
.doc-body h2::before { display: none; }
.doc-body h3 { font-size: 17px; font-weight: 510; color: var(--mist); margin: 32px 0 10px; }
.doc-body p { color: var(--fog); font-size: 15px; line-height: 1.72; margin: 0 0 16px; max-width: 68ch; }
.doc-body p a { color: var(--accent); }
.doc-body ul { color: var(--fog); font-size: 15px; line-height: 1.72; padding-left: 20px; max-width: 68ch; }
.doc-body li { margin-bottom: 7px; }
.doc-body code {
  font-family: var(--mono); font-size: 12.5px;
  background: rgba(255,255,255,.05); border: 1px solid var(--line);
  border-radius: var(--r-sm); color: var(--mist); padding: 1px 5px;
}

/* step header: number + title + one-line description */
.dstep { display: flex; align-items: baseline; gap: 14px; margin: 0 0 12px; }
.dstep .n {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: .1em; color: var(--accent);
}
.dstep h3 { margin: 0; }

/* endpoint / param table inside docs */
.dtable { width: 100%; border-collapse: collapse; margin: 0 0 20px; }
.dtable th, .dtable td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.dtable th {
  font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: .085em; text-transform: uppercase; color: var(--fog); white-space: nowrap;
}
.dtable td { color: var(--fog); }
.dtable td:first-child { color: var(--mist); font-family: var(--mono); font-size: 12.5px; white-space: nowrap; }

/* callout for gotchas */
.callout {
  display: flex; gap: 12px; padding: 14px 16px; margin: 0 0 20px;
  border-radius: var(--r-btn); background: var(--carbon);
  box-shadow: var(--inset-hairline);
  border-left: 2px solid var(--accent);
}
.callout.warn { border-left-color: var(--warn); }
.callout .t { color: var(--fog); font-size: 14px; line-height: 1.65; }
.callout .t b { color: var(--mist); font-weight: 510; }
