/* Inner pages (pricing, compare, docs, privacy, terms, sign-in, 404). Loaded after site.css on those pages only. */

.page-head .eyebrow { margin-bottom: 16px; }
.page-head .display { max-width: 820px; margin-inline: auto; }
.page-cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.block { padding-block: 56px; }
@media (min-width: 640px) { .block { padding-block: 72px; } }
.block-head { max-width: 672px; margin: 0 auto 32px; text-align: center; }
.block-head .lede { margin-top: 12px; font-size: 16px; line-height: 28px; }
.notes { max-width: 760px; margin: 20px auto 0; font-size: 13px; line-height: 21px; color: var(--muted); }
.notes p + p { margin-top: 8px; }
.notes a { color: var(--fg-2); text-underline-offset: 3px; text-decoration-color: var(--border-2); }

/* Pricing plans */
.plans { display: grid; gap: 12px; max-width: 908px; margin: 0 auto; }
@media (min-width: 760px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { background: var(--surface); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); padding: 32px 28px; display: flex; flex-direction: column; }
.plan .checks { grid-template-columns: 1fr; }
.plan .btn { margin-top: auto; }
.plan .checks { margin-bottom: 28px; }
.plans-trial, .plans-over { max-width: 908px; margin: 0 auto 16px; text-align: center; color: var(--muted); font-size: 15px; text-wrap: balance; }
.plans-over { margin: 20px auto 0; color: var(--fg); }
.amount small { font-size: 15px; color: var(--muted); font-weight: 400; }

/* Price and comparison tables share the card look */
.table-card { max-width: 908px; margin: 0 auto; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.ptable { width: 100%; border-collapse: collapse; font-size: 14px; }
.ptable th, .ptable td { padding: 13px 16px; border-bottom: 1px solid var(--border); text-align: right; white-space: nowrap; }
.ptable tr:last-child td { border-bottom: 0; }
.ptable th:first-child, .ptable td:first-child { text-align: left; }
.ptable thead th { font-weight: 500; color: var(--muted); font-size: 13px; }
.ptable .us { color: var(--money); font-weight: 600; }
.ptable td.us { background: color-mix(in srgb, var(--money-soft) 60%, transparent); color: var(--money-ink); }
.ptable .na { color: var(--muted); }
.ptable sup { color: var(--muted); font-size: 11px; margin-left: 2px; }

.facts { display: grid; gap: 12px; max-width: 908px; margin: 0 auto; }
@media (min-width: 760px) { .facts { grid-template-columns: repeat(3, 1fr); } }
.fact { background: var(--soft); border-radius: var(--radius-lg); padding: 24px; }
.fact p { margin-top: 6px; color: var(--muted); font-size: 15px; line-height: 24px; }
.fact code { background: var(--surface); padding: 1px 5px; border-radius: 5px; }

/* Compare: page scrolls the sticky header on wide screens; phones scroll the table sideways inside .scroll-x. */
.cmp-wrap { max-width: 1088px; margin: 0 auto; }
.compare { overflow: visible; }
.compare thead th { top: 56px; z-index: 2; }
.compare thead th:first-child { border-top-left-radius: var(--radius-lg); }
.compare thead th:last-child { border-top-right-radius: var(--radius-lg); }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare td small { display: block; font-size: 12px; color: var(--muted); font-weight: 400; white-space: normal; }
.compare .part { color: var(--block); font-weight: 500; }
.compare th.us { color: var(--money); }
.compare tbody th { font-weight: 500; }
@media (max-width: 899px) {
  .cmp-wrap .scroll-x { box-shadow: var(--shadow); }
  .cmp-wrap .compare { box-shadow: none; min-width: 860px; }
  .compare thead th { top: 0; }
  .compare th:first-child, .compare td:first-child { position: sticky; left: 0; z-index: 1; background: var(--surface); min-width: 150px; max-width: 150px; box-shadow: 1px 0 0 var(--border); }
  .compare thead th:first-child, .compare tr.group td:first-child { background: var(--bg); z-index: 3; }
}
@media (min-width: 900px) { .cmp-wrap .scroll-x { overflow: visible; } }
.legend { display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: center; margin-top: 16px; font-size: 13px; color: var(--muted); }

/* Docs: sticky table of contents on desktop */
.docs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding-bottom: 96px; }
@media (min-width: 960px) { .docs { grid-template-columns: 200px minmax(0, 1fr); gap: 64px; } }
.toc { font-size: 14px; }
.toc p { margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc a { display: flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 8px; color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--fg); background: var(--soft); }
.toc a[aria-current="true"] { color: var(--fg); background: var(--soft); font-weight: 500; }
@media (min-width: 960px) { .toc { position: sticky; top: 88px; align-self: start; } }
@media (max-width: 959px) {
  .toc { background: var(--soft); border-radius: var(--radius-lg); padding: 16px; }
  .toc ol { grid-template-columns: 1fr 1fr; }
  .toc a { min-height: 40px; }
}
.docs .prose { margin: 0; max-width: 720px; }
.docs .prose > h2:first-child { margin-top: 0; }
.prose h2 { display: flex; align-items: baseline; gap: 10px; }
.anchor { font: 400 20px/1 var(--sans); color: var(--faint); text-decoration: none; opacity: 0; transition: opacity 0.15s; }
.prose h2:hover .anchor, .anchor:focus-visible { opacity: 1; }
@media (hover: none) { .anchor { opacity: 1; } }
.prose .copy-wrap pre { padding-right: 84px; white-space: pre; overflow-x: auto; }
.prose .copy-btn { background: rgb(255 255 255 / 10%); color: var(--primary-fg); border: 1px solid rgb(255 255 255 / 16%); box-shadow: none; }
.prose .copy-btn:hover { background: rgb(255 255 255 / 18%); }
:root[data-theme="dark"] .prose .copy-btn { background: rgb(0 0 0 / 6%); border-color: rgb(0 0 0 / 14%); }
:root[data-theme="dark"] .prose .copy-btn:hover { background: rgb(0 0 0 / 12%); }
.prose .table-x { overflow-x: auto; margin: 0 0 16px; }
.prose .table-x table { margin: 0; min-width: 480px; }
.prose td code { white-space: nowrap; }
.prose li code, .prose p code { overflow-wrap: anywhere; }
.callout { background: var(--soft); border-radius: 12px; padding: 14px 16px; font-size: 15px; line-height: 24px; margin: 0 0 16px; }
.updated { margin-top: 12px; font-size: 13px; color: var(--muted); }

/* Sign-in */
.auth .display { font-size: clamp(34px, 3vw + 14px, 44px); text-align: center; }
.auth > .lede { text-align: center; margin-top: 12px; font-size: 16px; line-height: 26px; }
.notice { margin-top: 24px; padding: 12px 14px; border-radius: 12px; background: var(--block-soft); color: var(--fg-2); font-size: 14px; text-align: center; }
.notice.good { background: var(--money-soft); }
.notice a { font-weight: 500; }
.auth-card .btn { width: 100%; }
.input[aria-invalid="true"] { border-color: var(--down); }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.sent { text-align: center; display: grid; gap: 12px; }
.sent:focus { outline: none; }
.sent .icon { width: 44px; height: 44px; margin: 0 auto 4px; border-radius: 12px; display: grid; place-items: center; background: var(--money-soft); color: var(--money); }
.sent h2 { font: 500 24px/1.2 var(--serif); letter-spacing: -0.015em; }
.sent p { color: var(--muted); font-size: 15px; line-height: 24px; overflow-wrap: anywhere; }
.sent p b { color: var(--fg); font-weight: 500; }
.sent .row { display: grid; gap: 8px; margin-top: 8px; }
.auth-foot { margin-top: 20px; text-align: center; font-size: 13px; color: var(--muted); }

/* 404 */
.lost { min-height: calc(100svh - 56px - 280px); display: grid; place-content: center; text-align: center; padding: 96px var(--gutter); }
.lost .lede { margin-top: 16px; }
.legal { padding-bottom: 96px; }

/* /compare/<tool>/ pages */
.page-claim { margin-top: 20px; }
.page-claim .pill { height: 28px; padding: 0 12px; font-size: 13px; }
.cmp-narrow { max-width: 760px; }
.cmp-narrow .compare { min-width: 0; } /* three columns fit a phone, no sideways scroll */
.cmp-narrow .compare th, .cmp-narrow .compare td { white-space: normal; }
.ahead, .other { max-width: 672px; margin: 0 auto; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.ahead li { padding: 6px 12px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); font-size: 14px; }
.other a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 10px; background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border); color: var(--fg); text-decoration: none; font-size: 14px; font-weight: 500; }
@media (hover: hover) { .other a:hover { box-shadow: inset 0 0 0 1px var(--border-2); } }
.eyebrow a { color: inherit; text-decoration: none; }

/* Help center */
.toc a[aria-current="page"] { color: var(--fg); background: var(--soft); font-weight: 500; }
.toc ol + .eyebrow { margin-top: 20px; }
.help-cards { display: grid; gap: 12px; max-width: 1088px; margin: 0 auto; padding: 0; list-style: none; }
@media (min-width: 760px) { .help-cards { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); } }
.help-cards a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 20px 22px; border-radius: var(--radius-lg); background: var(--surface);
  box-shadow: var(--shadow); color: var(--fg); text-decoration: none; transition: box-shadow 0.15s; }
.help-cards b { font-weight: 600; }
.help-cards span { font-size: 14px; line-height: 22px; color: var(--muted); }
@media (hover: hover) { .help-cards a:hover { box-shadow: var(--shadow-lg); } }
/* The article comes first in the page (phones read it first); wide screens put the article list in the left column. */
@media (min-width: 960px) { .help-doc .toc { grid-column: 1; grid-row: 1; } .help-doc .prose { grid-column: 2; grid-row: 1; } }

/* /migrate/<tool>/ steps */
.steps { max-width: 720px; margin: 0 auto; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 12px; }
.steps li { counter-increment: step; position: relative; padding: 22px 24px 22px 72px; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.steps li::before { content: counter(step); position: absolute; left: 24px; top: 22px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--money-soft); color: var(--money); font-weight: 600; font-variant-numeric: tabular-nums; }
.steps p { margin-top: 6px; color: var(--fg-2); line-height: 26px; }

/* /changelog/ */
.changes { max-width: 720px; margin: 0 auto; padding: 0; list-style: none; }
.changes li { display: grid; gap: 6px; padding: 24px 0; border-top: 1px solid var(--border); }
@media (min-width: 760px) { .changes li { grid-template-columns: 160px 1fr; column-gap: 32px; } .changes li > :not(time) { grid-column: 2; } .changes time { grid-row: 1 / span 2; } }
.changes time { font: 500 13px/24px var(--mono); color: var(--muted); }
.changes h2 a { color: var(--fg); text-decoration: none; }
@media (hover: hover) { .changes h2 a:hover { text-decoration: underline; text-underline-offset: 3px; } }
.changes p { color: var(--fg-2); line-height: 26px; }

/* Sign-in: the two-factor step's hint under the code field */
.auth .hint { margin-top: 6px; font-size: 13px; color: var(--muted); }

/* /open cost table on a phone: the long Rate cells wrap instead of widening the page */
@media (max-width: 640px) { .ptable.wrap th, .ptable.wrap td { white-space: normal; } }

/* Pricing: plan facts and the plan builder. */
.plan-facts { display: grid; gap: 0; margin: 18px 0 20px; border-top: 1px solid var(--border); }
.plan-facts div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.plan-facts dt { color: var(--muted); }
.plan-facts dd { margin: 0; font-weight: 500; text-align: right; }
.plan-paid { box-shadow: var(--shadow-lg), inset 0 0 0 1.5px var(--fg); }
.bld { display: grid; gap: 24px; align-items: start; max-width: 1040px; margin: 0 auto; }
@media (min-width: 900px) { .bld { grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; } .bld-r { position: sticky; top: 80px; } }
.bld-bill { display: inline-flex; gap: 2px; padding: 3px; margin: 0 0 28px; border: 0; border-radius: 10px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--border); }
.bld-bill label { position: relative; cursor: pointer; }
.bld-bill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.bld-bill span { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 8px; font: 500 14px/1 var(--sans); color: var(--muted); }
.bld-bill input:checked + span { background: var(--surface); color: var(--fg); box-shadow: var(--shadow); }
.bld-bill input:focus-visible + span { outline: 2px solid var(--fg); outline-offset: 2px; }
.bld-ev-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.bld-ev-h label { font-weight: 500; }
.bld-ev-h output { font: 600 28px/1.1 var(--sans); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.bld-ev .range { margin-top: 14px; }
.bld-ticks span { left: calc(var(--i) / 10 * 100%); }
.bld-ev .fine { margin-top: 12px; }
@media (max-width: 640px) { .bld-ticks span:nth-child(even) { display: none; } }
.bld-inc { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bld-inc li { padding: 12px 14px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); }
.bld-inc b { display: block; font-size: 13px; font-weight: 500; color: var(--muted); }
.bld-inc span { display: block; margin-top: 2px; font-weight: 600; color: var(--money-ink, var(--fg)); }
.bld-sub { margin: 32px 0 12px; }
.bld-add { display: flex; gap: 12px; align-items: flex-start; padding: 14px; margin-top: 10px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); cursor: pointer; }
.bld-add:has(input:checked) { box-shadow: inset 0 0 0 1.5px var(--fg); }
.bld-add input { margin: 3px 0 0; width: 18px; height: 18px; accent-color: var(--fg); flex: none; }
.bld-add > span { flex: 1; min-width: 0; }
.bld-add b { display: block; font-size: 15px; }
.bld-add > span > span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.bld-add em { font-style: normal; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bld-talk p { color: var(--fg-2); font-size: 14px; margin-bottom: 12px; max-width: 60ch; }
.bld-card { padding: 24px; border-radius: var(--radius-xl); background: var(--surface); box-shadow: var(--shadow-lg); }
.bld-lines { width: 100%; margin-top: 14px; border-collapse: collapse; font-size: 14px; }
.bld-lines td { padding: 8px 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.bld-lines td:last-child { text-align: right; white-space: nowrap; padding-left: 12px; font-variant-numeric: tabular-nums; }
.bld-lines tr.save td { color: var(--money-ink, var(--fg)); }
.bld-card .amount { margin-top: 16px; }
.bld-card .btn { width: 100%; margin-top: 18px; }
.bld-card .fine { margin-top: 10px; }
.bld-else { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); }
.bld-else ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.bld-else li { display: flex; justify-content: space-between; gap: 12px; }
.bld-else b { font-weight: 500; font-variant-numeric: tabular-nums; }
/* The privacy page field list: left-aligned, wrapping text. */
#fields th, #fields td { text-align: left; white-space: normal; }
.open-prose { margin-top: 16px; }
.open-prose p + p { margin-top: 12px; }
.open-prose pre { margin: 12px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
