/* The generated pages (src/seo-pages.js) other than a package's: the use cases, the comparisons, their hub and the
   pages for agencies. The Bench on labs' grammar: a stage with the title and the page's footage, the short answer
   under the highlighter, then every question as a row, the question on the left and the reading column on the right.
   Colours are the site's tokens (styles.css), light and dark. A package page keeps its own layout (styles.css, .pk-*). */
.sp-hero,.sp-row,.sp-faq{--sp-cols:minmax(0,.6fr) minmax(0,1fr);--sp-gap:clamp(28px,5vw,72px)}

/* the hero. In the source the answer follows the title, so a reader or a crawler meets it first; the grid sets the
   art beside the title, inside the stage, and the answer under both. */
.sp-hero{--sp:clamp(22px,3.4vw,48px);display:grid;grid-template-columns:minmax(0,.94fr) minmax(0,1.06fr);align-items:center;padding:72px var(--pad) 0;text-align:left}
.sp-hero::before{content:"";grid-area:1/1/2/3;align-self:stretch;min-height:clamp(300px,33vw,440px);border-radius:var(--r-xl);background:var(--panel)}
.sp-hero .hf-h1{grid-area:1/1;z-index:1;padding:var(--sp) clamp(12px,2vw,28px) var(--sp) var(--sp);font-size:clamp(2.25rem,4.7vw,4.125rem);line-height:1.04}
.sp-hero.sp-solo .hf-h1{grid-area:1/1/2/3;max-width:18ch}
.sp-art{grid-area:1/2;align-self:stretch;z-index:1;min-width:0;margin:0;padding:0;overflow:hidden;border-radius:0 var(--r-xl) var(--r-xl) 0;list-style:none}

.sp-short{grid-area:2/1/3/3;display:grid;grid-template-columns:var(--sp-cols);column-gap:var(--sp-gap);align-items:start;padding-top:clamp(36px,4.5vw,60px)}
.sp-kicker{margin:.4em 0 0;color:var(--take-text);font:600 .9375rem/1.2 var(--ui)}
.sp-short .seo-answer{max-width:38em;margin:0;color:var(--ink-1);font-size:clamp(1.1875rem,1.75vw,1.4375rem);line-height:1.45;letter-spacing:-.008em;text-wrap:pretty}
.seo-answer mark{margin:0 -.18em;padding:.06em .18em;border-radius:.2em;background:var(--take-tint);color:inherit;-webkit-box-decoration-break:clone;box-decoration-break:clone}

/* the strip: the page's clips, running off the stage's edge as a strip does. Each carries where it came from as a
   chip over the footage; its title is the plate burned into the clip (and the image's alt text). */
.sp-strip{display:flex;flex-wrap:nowrap;align-items:center;justify-content:center;gap:clamp(8px,1vw,12px);padding:calc(var(--sp) * .7) 0}
.sp-strip li{flex:none;width:30%}
.sp-strip li:nth-child(5n+2){transform:translateY(7%)}
.sp-strip li:nth-child(5n+3){transform:translateY(-5%)}
.sp-strip li:nth-child(5n+4){transform:translateY(4%)}
.sp-strip li:nth-child(5n+5){transform:translateY(-6%)}
.sp-strip[data-n="1"] li{width:36%}
.sp-strip[data-n="4"],.sp-strip[data-n="5"],.sp-strip[data-n="6"]{justify-content:flex-start;padding-left:4%}
.sp-strip .seo-clip{position:relative;width:auto;margin:0}
.sp-strip .screen{aspect-ratio:9/16;border-radius:12px;background-color:var(--raised);box-shadow:inset 0 0 0 1px var(--line-strong)}
.sp-strip figcaption{position:absolute;right:8px;bottom:10px;left:8px;display:flex;justify-content:flex-end;margin:0;pointer-events:none}
.sp-strip .seo-clip-title{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.sp-strip figcaption .mono{display:block;max-width:100%;margin:0;padding:3px 7px;border-radius:6px;background:rgba(7,6,11,.78);color:#f5f5f7;font-size:.6875rem;line-height:1.4;text-align:right;text-wrap:balance;opacity:1}

/* the hub's line-up: boqo, then every tool it is set beside, each a link to that tool's page */
.sp-lineup{display:flex;align-items:center;justify-content:center;gap:clamp(12px,2vw,28px);padding:var(--sp)}
.sp-us{flex:none;display:grid;place-items:center;width:clamp(104px,13vw,168px);aspect-ratio:1;border-radius:var(--r-xl);background:var(--raised);color:var(--ink-1);box-shadow:inset 0 0 0 1px var(--line-strong)}
.sp-wm{width:60%;height:auto}
.sp-vs{flex:none;color:var(--ink-3);font:700 clamp(1rem,1.6vw,1.375rem)/1 var(--display);letter-spacing:-.01em}
.sp-lineup ul{flex:1;display:grid;gap:8px;max-width:300px;margin:0;padding:0;list-style:none}
.sp-lineup a{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;padding:8px 16px 8px 18px;border-radius:999px;background:var(--raised);color:var(--ink-1);font:600 clamp(.875rem,1.15vw,1rem)/1.2 var(--ui);text-decoration:none;transition:background-color .12s var(--ease)}
.sp-lineup a:hover{background:var(--fill)}
.sp-chev{flex:none;width:8px;height:13px;color:var(--take-text)}

/* the comparison: a board with boqo's column lit, a check or a dash beside a cell that opens with Yes or No, a dot
   beside every other, and each source a small capsule */
.seo-compare .ptitle{margin-bottom:clamp(20px,2.4vw,32px)}
.seo-compare .seo-table-wrap{border:1px solid var(--line-strong);border-radius:var(--r-xl)}
.sp-duel,.sp-board{border-collapse:separate;border-spacing:0;font-size:.9375rem;line-height:1.45}
.sp-duel{min-width:0;table-layout:fixed}
.sp-board{min-width:1040px;table-layout:fixed}
.sp-duel th,.sp-duel td,.sp-board th,.sp-board td{padding:14px 18px;border-bottom:1px solid var(--line);color:var(--ink-1)}
.sp-duel tbody tr:last-child>*,.sp-board tbody tr:last-child>*{border-bottom:0}
.sp-duel thead th,.sp-board thead th{position:static;background:var(--panel);font:700 1.0625rem/1.2 var(--display);letter-spacing:-.01em}
.sp-duel thead th:first-child,.sp-board thead th:first-child{color:var(--ink-3);font:600 .8125rem/1.6 var(--ui);letter-spacing:0}
.sp-board thead a{color:inherit;text-decoration:underline;text-decoration-color:var(--ink-4);text-decoration-thickness:1px;text-underline-offset:4px}
.sp-board thead a:hover{text-decoration-color:var(--take-text);text-decoration-thickness:2px}
.sp-duel tbody th,.sp-board tbody th{color:var(--ink-2);font-weight:500}
.sp-duel th:first-child{width:24%}
.sp-board th:first-child{width:13%}
.sp-duel td,.sp-board td{position:relative;padding-left:42px}
.sp-duel td::before,.sp-board td::before{content:"";position:absolute;left:21px;top:23px;width:5px;height:5px;border-radius:50%;background:var(--ink-4)}
.sp-duel td[data-v="yes"]::before,.sp-board td[data-v="yes"]::before{left:20px;top:17px;width:6px;height:11px;border:solid var(--take-text);border-width:0 2px 2px 0;border-radius:0;background:none;transform:rotate(45deg)}
.sp-duel td[data-v="no"]::before,.sp-board td[data-v="no"]::before{left:17px;top:25px;width:12px;height:2px;border-radius:1px}
.sp-duel :is(th,td):nth-child(2),.sp-board :is(th,td):nth-child(2){background:var(--take-tint)}
.sp-duel thead th:nth-child(2),.sp-board thead th:nth-child(2){background:linear-gradient(var(--take-tint),var(--take-tint)) var(--panel)}
.sp-board tbody th,.sp-board thead th:first-child{position:sticky;left:0;z-index:1;background:var(--canvas);box-shadow:1px 0 0 var(--line)}
.sp-board thead th:first-child{background:var(--panel)}
.seo-compare .seo-src{display:inline-block;margin-left:2px;padding:0 7px;border-radius:999px;background:var(--fill-2);color:var(--ink-2);font-size:.6875rem;font-weight:600;line-height:1.6;text-decoration:none;white-space:nowrap;opacity:1;vertical-align:.1em}
.seo-compare .seo-src:hover{background:var(--take);color:var(--take-ink)}
.seo-compare .fine{margin-top:14px}

/* a question and its answer: one row, the question on the left and the reading column on the right */
.sp-row,.sp-faq{margin:clamp(44px,5.5vw,72px) var(--pad) 0;padding:clamp(28px,3.4vw,44px) 0 0;border-top:1px solid var(--line)}
.sp-row{display:grid;grid-template-columns:var(--sp-cols);column-gap:var(--sp-gap);align-items:start}
.sp-row .ptitle,.sp-faq .headline{position:sticky;top:84px;margin:0;padding:0;font-size:clamp(1.625rem,2.7vw,2.375rem);line-height:1.1;letter-spacing:-.02em}
.sp-text p{max-width:64ch;margin:0 0 16px;color:var(--ink-2);font-size:1.0625rem;line-height:1.65;text-wrap:pretty}
.sp-text p:first-child{color:var(--ink-1)}
.sp-text p:last-child{margin-bottom:0}
.sp-text a,.sp-short a,.sp-card a,.sp-faq .faq details p a{color:inherit;text-decoration:underline;text-decoration-color:var(--take-text);text-decoration-thickness:2px;text-underline-offset:3px}
.sp-text a:hover,.sp-short a:hover,.sp-card a:hover,.sp-faq .faq details p a:hover{background:var(--take-tint)}

/* the two honest blocks of a comparison, as a pair: the other tool's first, boqo's on the board's tint */
.sp-duo{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:clamp(56px,6.5vw,88px) var(--pad) 0;padding:0}
.sp-card{padding:clamp(22px,2.6vw,36px);border-radius:var(--r-xl);background:var(--panel);box-shadow:inset 0 0 0 1px var(--line)}
.sp-ours{background:var(--take-tint)}
.sp-card .ptitle{margin:0 0 18px;padding:0;font-size:clamp(1.375rem,2.1vw,1.75rem);line-height:1.15;letter-spacing:-.018em}
.sp-card .seo-list{display:grid;gap:12px;max-width:none;margin:0;padding:0;list-style:none}
.sp-card li{position:relative;margin:0;padding-left:30px;color:var(--ink-1);line-height:1.5}
.sp-card li::before,.sp-card li::after{content:"";position:absolute;left:4px;top:.75em;width:12px;height:2px;margin-top:-1px;border-radius:1px;background:var(--ink-3)}
.sp-card li::after{transform:rotate(90deg)}
.sp-ours li::before{left:7px;top:.3em;width:6px;height:11px;margin:0;border:solid var(--take-text);border-width:0 2px 2px 0;border-radius:0;background:none;transform:rotate(45deg)}
.sp-ours li::after{content:none}

/* the questions, on the rows' two columns */
.sp-faq .faq{padding:0}
@media (min-width:900px){.sp-faq .faq{grid-template-columns:var(--sp-cols);column-gap:var(--sp-gap);align-items:start}}
.sp-faq .faq details p{max-width:64ch}
/* block, not flex: a question can hold the name as its own element, and flex would space its words apart */
.sp-faq .faq summary{position:relative;display:block;padding:20px 40px 20px 0}
.sp-faq .faq summary::after{position:absolute;right:4px;top:26px;transform:rotate(45deg)}
.sp-faq .faq details[open] summary::after{transform:translateY(5px) rotate(-135deg)}

/* related pages, as labs draws them: capsules */
.seo-related.sp-row .seo-list{display:flex;flex-wrap:wrap;gap:8px;max-width:none;margin:0;padding:0;list-style:none}
.seo-related.sp-row li{margin:0}
.seo-related.sp-row a{display:inline-flex;align-items:center;min-height:40px;padding:8px 16px;border-radius:20px;background:var(--fill-2);color:var(--ink-1);font-size:.9375rem;font-weight:500;line-height:1.25;text-decoration:none}
.seo-related.sp-row a:hover{background:var(--fill)}

@media (max-width:899px){
  /* the stage stacks: title, art, then the answer under it */
  .sp-hero{grid-template-columns:minmax(0,1fr)}
  .sp-hero::before{grid-area:1/1/3/2;min-height:0}
  .sp-hero .hf-h1,.sp-hero.sp-solo .hf-h1{grid-area:1/1;padding:var(--sp) var(--sp) calc(var(--sp) * .5)}
  .sp-hero.sp-solo::before{grid-area:1/1/2/2}
  .sp-hero.sp-solo .hf-h1{padding-bottom:var(--sp)}
  .sp-art{grid-area:2/1;border-radius:0 0 var(--r-xl) var(--r-xl)}
  .sp-short{grid-area:3/1;grid-template-columns:minmax(0,1fr);row-gap:10px}
  .sp-kicker{margin:0}
  .sp-strip{justify-content:flex-start;padding:16px 0 calc(var(--sp) + 8px) var(--sp)}
  .sp-strip li{width:min(42%,190px)}
  .sp-strip[data-n="1"] li{width:min(56%,240px)}
  .sp-strip[data-n="1"],.sp-strip[data-n="2"]{justify-content:center;padding-left:0}
  .sp-lineup{flex-wrap:wrap;padding:8px var(--sp) var(--sp)}
  .sp-lineup ul{flex:1 1 220px;max-width:none}
  .sp-row{grid-template-columns:minmax(0,1fr);row-gap:16px}
  .sp-row .ptitle,.sp-faq .headline{position:static}
  .sp-duo{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:640px){
  /* a two-tool comparison reads as cards: the question across, then boqo and the other tool side by side */
  .sp-duel,.sp-duel thead,.sp-duel tbody{display:block}
  .sp-duel tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .sp-duel thead th:first-child{display:none}
  .sp-duel thead th{padding:12px 14px}
  .sp-duel tbody th:first-child{grid-column:1/-1;width:auto;padding:14px 14px 4px;border-bottom:0;background:none;color:var(--ink-1);font-weight:600}
  .sp-duel td{padding:8px 12px 14px 32px;font-size:.875rem}
  .sp-duel tbody th+td{background:linear-gradient(var(--take-tint),var(--take-tint)) no-repeat 0 0/100% 100%}
  .sp-duel td::before{left:14px;top:16px}
  .sp-duel td[data-v="yes"]::before{left:13px;top:10px}
  .sp-duel td[data-v="no"]::before{left:10px;top:18px}
  .sp-duel tbody tr:last-child>th{border-bottom:0}
  .sp-board{min-width:1120px;font-size:.875rem}
  .sp-board th:first-child{width:112px}
  .sp-board th,.sp-board td{padding:12px 14px}
  .sp-board td{padding-left:34px}
  .sp-board td::before{left:15px;top:20px}
  .sp-board td[data-v="yes"]::before{left:14px;top:14px}
  .sp-board td[data-v="no"]::before{left:11px;top:22px}
}
@media (prefers-reduced-motion:reduce){.sp-strip li{transform:none}}
@media print{.sp-art{display:none}}
