/* The search landing pages (scripts/landing-page.mjs): /pos/<business>/, /pos/<country>/<city>/,
   /compare/..., /guides/..., /facts/ and the index pages. Tokens, devices, buttons, the FAQ,
   the pills and the colophon come from /home/pos.css and /pos/pos-page.css; the demo band from
   /forms/demo-form.css. Calm and static: no motion layer.
   Cached for a year (firebase.json): bump LANDING_CSS in scripts/landing-page.mjs on every change. */

.lp-wrap{width:100%;max-width:calc(1068px + 2 * var(--ph-gut));margin:0 auto;padding:0 var(--ph-gut)}
.lp-h1{font:700 clamp(2.25rem,5vw,3.75rem)/1.04 var(--ph-display);letter-spacing:-.035em;text-wrap:balance}
.lp-h2{font:700 clamp(1.75rem,3.4vw,2.75rem)/1.08 var(--ph-display);letter-spacing:-.03em;text-wrap:balance}
.lp-h3{font:700 clamp(1.375rem,2.2vw,1.75rem)/1.15 var(--ph-display);letter-spacing:-.02em;text-wrap:balance}

/* breadcrumb */
.lp-crumbs ol{display:flex;flex-wrap:wrap;gap:.25rem .5rem;list-style:none;margin:0 0 1.25rem;padding:0;font-size:.9375rem;color:var(--ink-2)}
.lp-crumbs li{display:flex;align-items:center;gap:.5rem}
.lp-crumbs li + li::before{content:"";width:.38em;height:.38em;border:solid var(--ink-3);border-width:1.5px 1.5px 0 0;transform:rotate(45deg)}
.lp-crumbs a{color:var(--ink-2);text-decoration:none;min-height:24px;display:inline-flex;align-items:center}
.lp-crumbs a:hover{color:var(--ink);text-decoration:underline}
.lp-crumbs [aria-current]{color:var(--ink)}

/* 1 · hero: the answer first, a real screen beside it */
.lp-hero{
  background:linear-gradient(180deg,#F8F9F9 0%,#F8F9F9 60%,var(--tint) 100%);
  padding:calc(env(safe-area-inset-top,0px) + clamp(104px,13vh,136px)) 0 clamp(48px,7vw,88px);overflow:hidden;
}
.lp-hero__grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:clamp(32px,5vw,72px);align-items:center}
.lp-hero--text .lp-hero__grid{grid-template-columns:minmax(0,1fr)}
.lp-hero--text .lp-hero__copy{max-width:46rem}
.lp-answer{margin-top:clamp(1rem,1.8vw,1.4rem);max-width:36rem;font-size:clamp(1.0625rem,1.45vw,1.25rem);line-height:1.55;color:var(--ink-2);text-wrap:pretty}
.lp-hero--text .lp-answer{max-width:42rem}
.lp-meta{margin-top:1rem;font-size:.9375rem;color:var(--ink-2)}
.lp-cta{margin-top:clamp(1.5rem,2.4vw,2rem);display:flex;flex-wrap:wrap;align-items:center;gap:.5rem 1.5rem}
.lp-hero__media--phone{justify-self:center;width:min(300px,70%)}

/* sections */
.lp-section{padding:clamp(64px,8vw,112px) 0;background:var(--paper)}
.lp-section--tint{background:var(--tint)}
.lp-section .lp-h2{margin-bottom:clamp(28px,4vw,48px)}

/* 2 · how it fits: a tinted panel per screen, the device running off the bottom edge */
.lp-fit{
  display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);align-items:center;gap:clamp(24px,4vw,56px);
  border-radius:clamp(24px,2.6vw,32px);background:var(--feat-bg,#F2F1F5);overflow:hidden;
  padding:clamp(32px,4.4vw,56px) clamp(28px,4.4vw,56px) 0;
}
.lp-fit + .lp-fit{margin-top:clamp(14px,1.6vw,20px)}
.lp-fit__copy{align-self:center;padding-bottom:clamp(32px,4.4vw,56px)}
.lp-fit__copy h3,.lp-note h3,.lp-card h3{font:700 clamp(1.375rem,2.3vw,1.875rem)/1.12 var(--ph-display);letter-spacing:-.025em;text-wrap:balance}
.lp-fit__copy p,.lp-note p,.lp-card p{margin-top:.75rem;font-size:clamp(1.0625rem,1.3vw,1.1875rem);line-height:1.55;color:var(--ink-2);text-wrap:pretty}
.lp-fit__media{align-self:end;margin-bottom:-14%}
.lp-fit--phone .lp-fit__media{justify-self:center;width:min(260px,62%);margin-bottom:-38%}
.lp-fit--flip .lp-fit__copy{order:2}

/* fits without a screen, and the place cards: plain white cards */
.lp-notes,.lp-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:clamp(14px,1.6vw,20px)}
.lp-notes{margin-top:clamp(14px,1.6vw,20px)}
.lp-note,.lp-card{border-radius:clamp(20px,2.2vw,28px);background:#fff;border:1px solid var(--rule);padding:clamp(24px,3vw,36px)}
.lp-section--tint .lp-card{border-color:transparent}
.lp-cards--two{grid-template-columns:repeat(auto-fit,minmax(min(100%,380px),1fr))}

/* place: good to know */
.lp-local{margin-top:clamp(28px,3.6vw,44px);max-width:52rem}
.lp-local h3{font:600 1.1875rem/1.3 var(--ph-text);color:var(--ink)}
.lp-local ul,.lp-facts{list-style:none;margin:.9rem 0 0;padding:0}
.lp-local li,.lp-facts li{position:relative;padding:.7rem 0 .7rem 1.6rem;border-top:1px solid var(--rule);line-height:1.55;color:var(--ink-2)}
.lp-local li:last-child,.lp-facts li:last-child{border-bottom:1px solid var(--rule)}
.lp-local li::before,.lp-facts li::before{content:"";position:absolute;left:.15rem;top:1.25rem;width:.5rem;height:.5rem;border-radius:99px;background:var(--cobalt)}

/* the FAQ band follows a tinted or plain section without a seam */
.lp-faq{background:var(--paper)}

/* compare: the table and its sources */
.lp-table-wrap{overflow-x:auto;border-radius:20px;border:1px solid var(--rule);background:#fff}
.lp-table-wrap:focus-visible{outline:2px solid var(--cobalt);outline-offset:3px}
.lp-table{width:100%;min-width:640px;border-collapse:collapse;font-size:1rem;line-height:1.5}
.lp-table th,.lp-table td{padding:16px 20px;text-align:left;vertical-align:top;border-top:1px solid var(--rule)}
.lp-table thead th{border-top:0;background:var(--tint);font-weight:600;color:var(--ink)}
.lp-table tbody th{font-weight:600;color:var(--ink);width:24%}
.lp-table td{color:var(--ink-2)}
.lp-ref{display:inline-flex;align-items:center;justify-content:center;min-width:24px;min-height:24px;margin-left:.35rem;border-radius:99px;background:var(--tint);color:var(--ink);font-size:.75rem;text-decoration:none;vertical-align:1px}
.lp-sources{padding-top:0}
.lp-sources p{margin:.75rem 0 0;max-width:46rem;color:var(--ink-2)}
.lp-sources ol{margin:1rem 0 0;padding-left:1.25rem;color:var(--ink-2)}
.lp-sources li{padding:.3rem 0}
.lp-sources a{color:var(--ink)}

/* guide: table of contents beside the article */
.lp-art{display:grid;grid-template-columns:minmax(0,15rem) minmax(0,1fr);gap:clamp(32px,6vw,88px);align-items:start}
.lp-toc{position:sticky;top:96px}
.lp-toc__title{font:600 .9375rem/1.3 var(--ph-text);color:var(--ink)}
.lp-toc ol{list-style:none;margin:.75rem 0 0;padding:0;border-left:1px solid var(--rule)}
.lp-toc a{display:block;padding:.45rem 0 .45rem 1rem;color:var(--ink-2);text-decoration:none;font-size:.9375rem;line-height:1.35}
.lp-toc a:hover{color:var(--ink)}
.lp-art__body{max-width:42rem}
.lp-art__sec + .lp-art__sec{margin-top:clamp(40px,5vw,64px)}
.lp-art__sec{scroll-margin-top:96px}
.lp-art__sec p{margin-top:1rem;font-size:1.125rem;line-height:1.65;color:var(--ink-2)}
.lp-art__sec ul{margin:1rem 0 0;padding-left:1.25rem;color:var(--ink-2);font-size:1.0625rem;line-height:1.6}
.lp-art__sec li + li{margin-top:.4rem}
.lp-art__sec a{color:var(--cobalt);text-underline-offset:3px}
.lp-art__fig{margin:1.75rem 0 0;padding:clamp(24px,4vw,40px) clamp(24px,4vw,40px) 0;border-radius:24px;background:#ECE9F9;overflow:hidden}
.lp-art__fig .ph-tablet{margin-bottom:-12%}
.lp-art__fig--phone .ph-phone{width:min(240px,60%);margin:0 auto -30%}

/* product and index cards */
.lp-products,.lp-index{list-style:none;margin:1.25rem 0 0;padding:0;display:grid;gap:12px}
.lp-index{margin:0;max-width:52rem}
.lp-products a,.lp-index a{display:block;padding:20px 22px;border:1px solid var(--rule);border-radius:20px;background:#fff;text-decoration:none;transition:border-color .2s ease}
.lp-products a:hover,.lp-index a:hover{border-color:var(--ink-3)}
.lp-products b,.lp-index b{display:block;font:600 1.125rem/1.3 var(--ph-text);color:var(--ink)}
.lp-products span,.lp-index span{display:block;margin-top:.35rem;color:var(--ink-2);font-size:1rem;line-height:1.5}

/* facts: one block per product */
.lp-factgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,440px),1fr));gap:clamp(40px,5vw,64px) clamp(32px,5vw,72px)}
.lp-factblock h2 a{color:inherit;text-decoration:none}
.lp-factblock h2 a:hover{text-decoration:underline;text-underline-offset:4px}

@media (max-width:900px){
  .lp-hero__grid{grid-template-columns:minmax(0,1fr)}
  .lp-hero__media{width:min(560px,100%);justify-self:center}
  .lp-hero__media--phone{width:min(260px,64%)}
  .lp-art{grid-template-columns:minmax(0,1fr)}
  .lp-toc{position:static;padding:18px 20px;border-radius:20px;background:var(--tint)}
  .lp-toc ol{border-left:0}
  .lp-toc a{padding-left:0}
}
@media (max-width:760px){
  .lp-hero{padding-bottom:40px}
  .lp-section{padding:56px 0}
  .lp-fit{grid-template-columns:minmax(0,1fr);gap:0;padding:28px 24px 0}
  .lp-fit--flip .lp-fit__copy{order:0}
  .lp-fit__copy{padding-bottom:24px}
  .lp-fit__media{margin-bottom:-18%}
  .lp-fit--phone .lp-fit__media{width:min(220px,64%);margin-bottom:-44%}
  .lp-table th,.lp-table td{padding:14px 16px}
}
/* the compare table on a phone: one block per row, each cell labelled with its product */
@media (max-width:640px){
  .lp-table{min-width:0}
  .lp-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .lp-table tr{display:block;border-top:1px solid var(--rule)}
  .lp-table tbody tr:first-child{border-top:0}
  .lp-table th,.lp-table td{display:block;width:auto;border-top:0}
  .lp-table tbody th{width:auto;padding:16px 16px 4px}
  .lp-table td{padding:6px 16px}
  .lp-table td:last-child{padding-bottom:16px}
  .lp-table td::before{content:attr(data-label);display:block;font-size:.8125rem;font-weight:600;color:var(--ink-3)}
}
