/* Plan comparison tables (site/scripts/plan-tables.ts builds them): plans across the top, tools down the side.
   On a phone each row's label sits on its own line above the plan values, and the plan names stay at the top. */
.pt-wrap { margin: 0 auto; max-width: 1120px; text-align: left; }
.pt { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--sheet); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); font-size: 1.05rem; color: var(--ink); }
/* Sticky plan headings need no scrolling box around them; clip hides overflow the same way without being one. */
.tool-hero:has(.pt-wrap) { overflow: clip; }
.pt .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pt th, .pt td { padding: 14px 18px; border-top: 1px solid var(--line); vertical-align: middle; }
.pt td { text-align: center; }
.pt tbody th { font-weight: 500; width: 34%; }
.pt tbody th small { display: block; color: var(--ink-soft); font-size: .92rem; font-weight: 400; margin-top: 2px; }
.pt td.num { font-weight: 750; font-size: 1.12rem; font-variant-numeric: tabular-nums; }
.pt td.txt { font-size: .98rem; }
.pt td.y { color: var(--pass); }
.pt td.n { color: var(--ink-faint); }
.pt td svg { vertical-align: middle; }

/* Plan headings: name, who it's for, price, button. They stay in view as you scroll the table (under the tools bar). */
.pt thead th, .pt thead td { border-top: 0; position: sticky; top: 129px; z-index: 2; background: var(--sheet); box-shadow: 0 1px 0 var(--line); }
.pt thead > tr > :first-child { border-top-left-radius: 20px; }
.pt thead > tr > :last-child { border-top-right-radius: 20px; }
.pt-corner { text-align: left !important; vertical-align: bottom !important; font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.pt-plan { text-align: center; vertical-align: bottom !important; padding-top: 20px !important; padding-bottom: 18px !important; }
.pt-tag { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--post); color: #fff; font-size: .8rem; font-weight: 700; border-radius: 999px; padding: 3px 11px; }
.pt-name { display: block; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.01em; }
.pt-who { display: block; margin: 6px auto 0; max-width: 17rem; color: var(--ink-soft); font-size: .95rem; font-weight: 400; line-height: 1.4; min-height: 5.6em; }
.pt-price { display: flex; justify-content: center; align-items: baseline; gap: 6px; margin: 6px 0 0; }
.pt-price b { font-size: 1.6rem; line-height: 1; letter-spacing: -0.02em; font-weight: 800; }
.pt-price span { color: var(--ink-soft); font-weight: 500; font-size: 1rem; }
.pt-yearly { display: block; margin: 6px 0 0; color: var(--pass); font-weight: 600; font-size: .9rem; }
.pt-yearly[hidden] { display: none; }
.pt a.pt-btn, .pc a.pt-btn { display: block; margin: 16px auto 0; max-width: 15rem; padding: 12px 16px; font-size: 1rem; font-weight: 700; text-align: center; text-decoration: none; border: 1px solid; border-radius: 999px; background: var(--ink); color: var(--sheet); border-color: var(--ink); }
.pt a.pt-btn:hover, .pc a.pt-btn:hover { background: color-mix(in srgb, var(--ink) 85%, var(--sheet)); }
.pt a.pt-btn.pop, .pc a.pt-btn.pop { background: var(--post); border-color: var(--post); color: #fff; }
.pt a.pt-btn.pop:hover, .pc a.pt-btn.pop:hover { background: var(--post-deep); border-color: var(--post-deep); }

/* Plan cards above the table: pick a plan here, compare every detail below. */
.pc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; max-width: 1120px; margin: 0 auto; text-align: left; align-items: stretch; }
.pc { position: relative; display: flex; flex-direction: column; background: var(--sheet); border: 1px solid var(--line); border-radius: 20px; padding: 30px 28px 28px; box-shadow: var(--shadow); }
.pc.pop { border: 2px solid var(--post); box-shadow: var(--shadow-lg, var(--shadow)); }
.pc-tag { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); white-space: nowrap; background: var(--post); color: #fff; font-size: .85rem; font-weight: 700; border-radius: 999px; padding: 5px 14px; }
.pc h3 { margin: 0; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.01em; }
.pc-who { margin: 6px 0 0; color: var(--ink-soft); font-size: 1rem; line-height: 1.45; min-height: 4.35em; }
.pc-price { margin: 18px 0 0; display: flex; align-items: baseline; gap: 8px; }
.pc-price b { font-size: 3rem; line-height: 1; letter-spacing: -0.03em; font-weight: 800; }
.pc-price span { color: var(--ink-soft); font-size: 1.05rem; }
.pc-yearly { margin: 6px 0 0; color: var(--pass); font-weight: 600; font-size: .95rem; }
.pc-yearly[hidden] { display: none; }
.pc ul { list-style: none; margin: 22px 0 26px; padding: 0; display: grid; gap: 11px; }
.pc li { display: flex; gap: 10px; align-items: flex-start; font-size: 1.05rem; color: var(--ink); }
.pc li svg { flex: none; color: var(--pass); margin-top: 1px; }
.pc a.pt-btn { margin: auto 0 0; max-width: none; }
.pc .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* The tools on each card, as their badges. */
.pc-tools { display: flex; flex-wrap: wrap; gap: 5px; margin: 20px 0 0; }
.pc-tools .pt-ic { width: 25px; height: 25px; border-radius: 8px; margin: 0; }
.pc ul { margin-bottom: 18px; }
.pc a.pc-more { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin: 0 0 22px; font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.pc a.pc-more:hover { color: var(--post); }
.pt-title { max-width: 1120px; margin: 56px auto 16px; text-align: left; font-size: 1.6rem; font-weight: 800; letter-spacing: -0.01em; }
@media (max-width: 900px) {
  .pc-grid { grid-template-columns: 1fr; max-width: 34rem; gap: 26px; }
  .pc-who { min-height: 0; }
  .pt-title { margin-top: 44px; }
}

/* A tool's name and badge above its rows. */
.pt-group th { background: var(--bg-2); padding-top: 12px; padding-bottom: 12px; font-weight: 750; font-size: 1.08rem; text-align: left; }
.pt-group a { color: var(--ink); text-decoration: none; }
.pt-group a:hover { text-decoration: underline; }
.pt-ic { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; margin-right: 12px; vertical-align: middle; }

.pt tfoot td { padding-top: 18px; padding-bottom: 22px; }
.pt tfoot a.pt-btn { margin-top: 0; }
.pt tfoot > tr > :first-child { border-bottom-left-radius: 20px; }
.pt tfoot > tr > :last-child { border-bottom-right-radius: 20px; }
.pt tbody:last-of-type > tr:last-child > :first-child { border-bottom-left-radius: 20px; }
.pt tbody:last-of-type > tr:last-child > :last-child { border-bottom-right-radius: 20px; }

/* Tool pages: a lighter version, four plans, without buttons. */
.pt-tool { font-size: 1.02rem; }
.pt-tool .pt-plan { padding-top: 18px !important; padding-bottom: 16px !important; }
.pt-tool .pt-name { font-size: 1.15rem; }
.pt-tool .pt-price { margin-top: 6px; }
.pt-tool .pt-price b { font-size: 1.5rem; }
.pt-tool .pt-price span { font-size: .9rem; }
.pt-after { max-width: 46rem; margin: 16px auto 0; text-align: center; color: var(--ink-soft); font-size: .98rem; }

@media (max-width: 900px) {
  .pt thead th, .pt thead td { top: 113px; }
}
/* Pages with the company header (76px) rather than the two-bar tools header. */
body:not(:has(.tools-top)) .pt thead th, body:not(:has(.tools-top)) .pt thead td { top: 76px; }
body:not(:has(.tools-top)) .pt { --pt-top: 76px; }
/* Phones: the label on its own line, then one cell per plan beneath it. */
@media (max-width: 760px) {
  .pt { font-size: 1rem; border-radius: 16px; }
  .pt, .pt thead, .pt tbody, .pt tfoot { display: block; }
  .pt tr { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
  .pt-4 { --cols: 4; }
  .pt th, .pt td { padding: 10px 6px; }
  .pt tbody th { width: auto; }
  .pt tbody th[scope="row"] { grid-column: 1 / -1; padding: 12px 14px 2px; font-weight: 600; }
  .pt tbody th[scope="row"] small { font-size: .88rem; }
  .pt tbody td { border-top: 0; padding-top: 4px; padding-bottom: 12px; }
  .pt tbody tr:not(.pt-group) { border-top: 1px solid var(--line); }
  .pt-group th { grid-column: 1 / -1; padding: 10px 14px; }
  .pt-ic { width: 26px; height: 26px; margin-right: 10px; }
  .pt td.num { font-size: 1.05rem; }
  .pt td.txt { font-size: .88rem; }
  .pt-corner { display: none; }
  .pt thead { position: sticky; top: var(--pt-top, 113px); z-index: 2; background: var(--sheet); border-radius: 16px 16px 0 0; box-shadow: 0 1px 0 var(--line), 0 6px 12px -8px rgba(0,0,0,.18); }
  .pt thead th, .pt thead td { position: static; box-shadow: none; }
  .pt thead > tr > :first-child, .pt thead > tr > :last-child { border-radius: 0; }
  .pt-plan { padding: 12px 4px 10px !important; }
  .pt-tag, .pt-who, .pt thead .pt-btn, .pt-yearly { display: none !important; }
  .pt-name { font-size: 1rem; line-height: 1.2; min-height: 2.4em; display: flex; align-items: center; justify-content: center; }
  .pt-price { flex-direction: column; align-items: center; gap: 0; margin-top: 4px; }
  .pt-price b { font-size: 1.35rem; }
  .pt-price span { font-size: .78rem; }
  .pt-tool .pt-price b { font-size: 1.1rem; }
  .pt-4 th, .pt-4 td { padding-left: 3px; padding-right: 3px; }
  .pt-4 .pt-name { font-size: .86rem; }
  .pt-4 .pt-price b { font-size: 1rem; }
  .pt-4 td.num { font-size: .98rem; }
  .pt-4 td.txt { font-size: .82rem; }
  .pt tfoot tr { grid-template-columns: 1fr; gap: 10px; padding: 16px 14px 18px; border-top: 1px solid var(--line); }
  .pt tfoot td { padding: 0; border: 0; background: none; }
  .pt tfoot td.pt-corner { display: none; }
  .pt tfoot a.pt-btn { max-width: none; }
}
