/* The pricing block on the home page and on /pricing. A contract with a highlighter over it: yellow runs under the plans a line applies to,
   so the sheet reads as a shape before it reads as words. Self-contained: /pricing does not load story.css. */
.pb {
  --ink: #101012; --ink-2: #55555C; --rule: rgba(16, 16, 18, .17); --pen: #1B3FC4; --mark: #FFEFA1; --page: #FBFAF6;
  --voice: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Instrument Sans', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --hand: 'Reenie Beanie', 'Bradley Hand', cursive;
  --top: 58px;
  position: relative; color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.4;
}
.pb *, .pb *::before { box-sizing: border-box; }
.pb p, .pb h3 { margin: 0; }
.pb-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* The sentence you fill in, and what comes back */
.pb-talk { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 84px); align-items: start; }
.pb-say p { font-family: var(--voice); font-weight: 700; font-size: clamp(29px, 3.1vw, 54px); line-height: 1.24; letter-spacing: -.022em; }
.pb-say select { appearance: none; -webkit-appearance: none; max-width: 100%; margin: 0; padding: 0 22px 0 0; border: 0; border-radius: 0; border-bottom: 3px solid var(--pen); background: transparent no-repeat right 2px center / 13px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 8'%3E%3Cpath d='M1 1.5 6.5 6.5 12 1.5' fill='none' stroke='%231B3FC4' stroke-width='2'/%3E%3C/svg%3E"); color: var(--pen); font: inherit; letter-spacing: inherit; cursor: pointer; }
.pb-say select:focus-visible { outline: 2px solid var(--pen); outline-offset: 3px; }
.pb-end { white-space: nowrap; }
.pb-probe { position: absolute; visibility: hidden; white-space: pre; }

.pb-best { font-family: var(--voice); font-weight: 700; font-size: clamp(25px, 2.5vw, 40px); line-height: 1.1; letter-spacing: -.02em; }
.pb-why { color: var(--ink-2); font-size: 17px; margin-top: 8px; text-wrap: pretty; }
.pb-note { color: var(--ink-2); font-size: 14.5px; margin-top: 6px; text-wrap: pretty; }
.pb-note:empty { display: none; }
.pb-go { width: auto; min-width: 230px; margin-top: 16px; }

/* The same search, priced every way */
.pb-ways { margin-top: 20px; border-top: 1px solid var(--rule); }
.pb-way { display: grid; grid-template-columns: 124px minmax(40px, 1fr) minmax(92px, auto); align-items: center; column-gap: 12px; padding: 7px 0 6px; border-bottom: 1px solid var(--rule); font-size: 15px; }
.pb-way i { grid-row: 1 / span 2; grid-column: 2; display: block; height: 14px; background: rgba(16, 16, 18, .16); transform: scaleX(var(--w, 0)); transform-origin: left; }
.pb-way > span:last-of-type { grid-column: 3; grid-row: 1; text-align: right; font-variant-numeric: tabular-nums; }
.pb-way small { grid-column: 1; grid-row: 2; font-family: var(--mono); font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.pb-way.best { font-weight: 600; color: var(--pen); }
.pb-way.best i { background: var(--pen); }
.pb-way.best small { color: var(--pen); }
.pb-way.shut { color: var(--ink-2); }
.pb-way.shut > span:last-of-type { grid-column: 2 / 4; font-size: 13.5px; }
.pb-way.shut small { text-decoration: line-through; }

/* The sheet: every plan, every line */
.pb-tabs { display: none; }
.pb-sheet { width: 100%; margin-top: clamp(40px, 6vh, 70px); border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.pb-sheet th, .pb-sheet td { padding: 0; text-align: left; font-weight: 400; vertical-align: middle; }
.pb-sheet .pb-heads > * { position: sticky; top: var(--top); z-index: 3; background: var(--page); padding: 9px 12px 13px; border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); vertical-align: top; }
.pb-sheet .pb-heads > td:first-child { width: 28%; padding-left: 0; font-family: var(--voice); font-weight: 700; font-size: 21px; line-height: 1.15; letter-spacing: -.012em; }
.pb-name { display: block; font-family: var(--voice); font-weight: 700; font-size: 20px; line-height: 1.15; letter-spacing: -.012em; white-space: nowrap; }
.pb-price { display: block; font-family: var(--serif); font-weight: 300; font-size: clamp(30px, 2.7vw, 42px); line-height: 1.1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.pb-per { display: block; font-size: 13px; line-height: 1.2; color: var(--ink-2); white-space: nowrap; }
.pb-mark { position: absolute; right: 8px; bottom: 11px; font-family: var(--hand); font-size: 23px; line-height: 1; color: var(--pen); transform: rotate(-4deg); }
.pb-ring { position: absolute; left: 10px; bottom: 3px; width: calc(100% - 20px); height: 9px; overflow: visible; pointer-events: none; opacity: 0; }
.pb-ring path { fill: none; stroke: var(--pen); stroke-width: 2.8; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }

.pb-sheet .pb-lines td { padding: 12px 12px 12px; vertical-align: top; font-size: 14.5px; color: var(--ink-2); }
.pb .pb-billed { margin-top: 4px; font-size: 13.5px; }
.pb-cta { display: block; width: 100%; padding: 11px 8px; background: var(--ink); color: #fff; font-family: var(--body); font-weight: 600; font-size: 15px; text-align: center; text-decoration: none; }
.pb-cta:hover { background: var(--pen); }
.pb-cta:focus-visible { outline: 2px solid var(--pen); outline-offset: 3px; }
.pb-go.pb-cta { display: inline-block; width: auto; padding-inline: 28px; }
.pb-sheet .pb-acts td { padding: 0 12px 16px; }
.pb-sheet tfoot .pb-acts td { padding: 16px 12px 0; }

.pb-sheet .pb-g th { padding: 26px 0 8px; border-bottom: 1.5px solid var(--ink); font-family: var(--voice); font-weight: 700; font-size: 21px; letter-spacing: -.012em; }
.pb-sheet tbody tr:not(.pb-g, .pb-lines, .pb-acts) > * { border-bottom: 1px solid var(--rule); }
.pb-sheet tbody th[scope="row"] { padding: 7px 14px 7px 0; font-size: 15.5px; line-height: 1.26; }
.pb-sheet small { display: block; margin-top: 1px; font-size: 13.5px; line-height: 1.28; color: var(--ink-2); }
.pb-sheet td { padding: 0 12px; font-size: 15px; font-variant-numeric: tabular-nums; }
/* A strip of highlighter, unbroken across the plans side by side */
.pb-sheet td.on { background: linear-gradient(var(--mark), var(--mark)) center / 100% 27px no-repeat; }
.pb-all td.on { padding-block: 8px; background-size: 100% 100%; font-size: 14.5px; line-height: 1.34; }

.pb .pb-fine { margin-top: 14px; font-family: var(--mono); font-size: 13px; color: var(--ink-2); }

/* Where your sentence landed: a pen stroke under the plan, and its column washed in the same ink */
.pb-sheet[data-best="0"] [data-c="0"], .pb-sheet[data-best="1"] [data-c="1"], .pb-sheet[data-best="2"] [data-c="2"], .pb-sheet[data-best="3"] [data-c="3"], .pb-sheet[data-best="4"] [data-c="4"] { background-color: rgba(27, 63, 196, .055); }
.pb-sheet[data-best="0"] [data-c="0"] .pb-ring, .pb-sheet[data-best="1"] [data-c="1"] .pb-ring, .pb-sheet[data-best="2"] [data-c="2"] .pb-ring, .pb-sheet[data-best="3"] [data-c="3"] .pb-ring, .pb-sheet[data-best="4"] [data-c="4"] .pb-ring { opacity: 1; }
.pb-sheet[data-best="0"] [data-c="0"] .pb-ring path, .pb-sheet[data-best="1"] [data-c="1"] .pb-ring path, .pb-sheet[data-best="2"] [data-c="2"] .pb-ring path, .pb-sheet[data-best="3"] [data-c="3"] .pb-ring path, .pb-sheet[data-best="4"] [data-c="4"] .pb-ring path { stroke-dashoffset: 0; }

.pb-sheet[data-best="0"] .pb-heads [data-c="0"], .pb-sheet[data-best="1"] .pb-heads [data-c="1"], .pb-sheet[data-best="2"] .pb-heads [data-c="2"], .pb-sheet[data-best="3"] .pb-heads [data-c="3"], .pb-sheet[data-best="4"] .pb-heads [data-c="4"] { background-color: color-mix(in srgb, var(--pen) 5.5%, var(--page)); }

@media (max-width: 1100px) {
  .pb-talk { grid-template-columns: minmax(0, 1fr); }
  .pb-sheet .pb-heads > td:first-child { width: 24%; font-size: 18px; }
  .pb-name { font-size: 17px; }
  .pb-mark { font-size: 20px; right: 4px; }
  .pb-lines p:not(.pb-billed) { display: none; }
}

/* A phone shows one plan at a time, beside the line it answers */
@media (max-width: 760px) {
  .pb-say p { font-size: clamp(21px, 6.5vw, 40px); }
  .pb-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: sticky; top: var(--top); z-index: 4; margin-top: 34px; background: var(--page); border: 1.5px solid var(--ink); }
  .pb-tabs button { min-height: 44px; padding: 4px 2px; border: 0; border-right: 1px solid var(--rule); background: none; color: var(--ink); font: 600 12.5px/1.15 var(--body); cursor: pointer; }
  .pb-tabs button:last-child { border-right: 0; }
  .pb-tabs button[aria-pressed="true"] { background: var(--ink); color: #fff; }
  .pb-sheet, .pb-sheet thead, .pb-sheet tbody, .pb-sheet tfoot { display: block; margin-top: 0; }
  .pb-sheet tr { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: center; }
  .pb-sheet .pb-heads, .pb-sheet .pb-lines, .pb-sheet .pb-acts { grid-template-columns: minmax(0, 1fr); }
  .pb-sheet [data-c] { display: none; }
  .pb-sheet[data-col="0"] [data-c="0"], .pb-sheet[data-col="1"] [data-c="1"], .pb-sheet[data-col="2"] [data-c="2"], .pb-sheet[data-col="3"] [data-c="3"], .pb-sheet[data-col="4"] [data-c="4"] { display: block; background-color: transparent; }
  .pb-sheet tr > :first-child:not([data-c], th) { display: none; }
  .pb-sheet .pb-heads > * { position: relative; top: auto; padding: 14px 0 13px; border-top: 0; }
  .pb-sheet .pb-lines p:not(.pb-billed) { display: block; }
  .pb-sheet .pb-lines td, .pb-sheet .pb-acts td { padding-inline: 0; }
  .pb-sheet .pb-g th, .pb-sheet .pb-all > * { grid-column: 1 / -1; }
  .pb-sheet .pb-all th { padding-bottom: 4px; border-bottom: 0; }
  .pb-sheet tbody th[scope="row"] { padding-right: 10px; }
  .pb-sheet td { padding: 0 10px; }
  .pb-sheet td.on { background-size: 100% 100%; padding-block: 4px; }
  .pb-sheet tbody:not(.pb-intro) td[data-c]:not(.on)::after { content: "–"; color: var(--ink-2); }
  .pb-ring { display: none; }
  .pb-mark { font-size: 25px; right: 0; top: 14px; bottom: auto; }
  .pb-way { grid-template-columns: 112px minmax(30px, 1fr) minmax(84px, auto); }
  .pb-go.pb-cta { display: block; width: 100%; }
}

/* The owner's 2560 by 1440 screen and others like it: the home page grows here too */
@media (min-width: 2000px) {
  .pb { font-size: 18px; }
  .pb-why { font-size: 20px; }
  .pb-note { font-size: 17px; }
  .pb-way { font-size: 18px; grid-template-columns: 170px minmax(40px, 1fr) minmax(110px, auto); padding-block: 9px 8px; }
  .pb-way small { font-size: 14px; }
  .pb-way.shut > span:last-of-type { font-size: 16px; }
  .pb-cta { font-size: 18px; padding-block: 13px; }
  .pb-name, .pb-sheet .pb-heads > td:first-child { font-size: 25px; }
  .pb-price { font-size: 50px; }
  .pb-per { font-size: 16px; }
  .pb-mark { font-size: 30px; }
  .pb-sheet .pb-lines td { font-size: 17px; }
  .pb-billed { font-size: 16px; }
  .pb-sheet .pb-g th { font-size: 26px; padding-top: 34px; }
  .pb-sheet tbody th[scope="row"] { font-size: 18.5px; padding-block: 9px; }
  .pb-sheet small { font-size: 15.5px; }
  .pb-sheet td { font-size: 18px; }
  .pb-sheet td.on { background-size: 100% 33px; }
  .pb-all td.on { background-size: 100% 100%; font-size: 17px; }
  .pb-fine { font-size: 15px; }
}

@media (prefers-reduced-motion: no-preference) {
  .pb-way i { transition: transform .28s cubic-bezier(.2, .7, .2, 1); }
  .pb-ring path { transition: stroke-dashoffset .5s ease-out; }
}
