/* Shortlistly page CSS shared by every page (index, terms, privacy, thanks).
   The kit (system.css, ui/, layout/) does the system; this file holds only the brand's own pieces.
   docs/product/site-design.md is the spec. */

/* logo and small brand pieces */
/* Logo: the Newsreader wordmark, outlined; ink follows the text colour, the tittle stays amber (ADR-0021) */
.nav__logo svg.wordmark { height: 30px; width: auto; flex: none; display: block; }
@media (max-width: 639px) { .nav__logo svg.wordmark { height: 26px; } }
.sl-miss { color: #c81e18; font-weight: 600; }
.mail { display: flex; align-items: center; gap: var(--s-3); }
.fn { font-size: 13px; color: var(--muted); }
.fn a { color: inherit; }
.close__word { line-height: 1; padding-top: .04em; }
.close__word svg.wordmark--xl { display: block; height: auto; width: min(100%, 0.9 * clamp(64px, 14.5vw, 216px) * 4.57); }

/* prices: EUR by default; html[data-cur="usd"] (set from the geo cookie, ADR-0016) shows USD */
.px-usd { display: none; }
html[data-cur="usd"] .px-eur { display: none; }
html[data-cur="usd"] .px-usd { display: inline; }
/* the checkout buttons: one per currency, each its own Stripe payment link (ADR-0021) */
a.btn.px-usd { display: none; }
html[data-cur="usd"] a.btn.px-usd { display: inline-flex; }
html[data-cur="usd"] a.btn.px-eur { display: none; }

/* step frames: report pieces drawn as small UI windows */
.st { width: 100%; max-width: 520px; background: #fff; border: 1px solid #e2e5ea; border-radius: 14px; box-shadow: 0 22px 48px -24px rgb(17 20 24 / .3); padding: 22px 24px; font-size: 15px; color: #111418; }
.st h4 { margin: 0 0 4px; font: 600 17px/1.3 var(--font-text); }
.st .cap { margin: 0 0 14px; color: #4a525e; font-size: 14px; }
.st table { width: 100%; border-collapse: collapse; font-size: 14px; }
.st th { text-align: left; font-weight: 500; color: #4a525e; padding: 6px 0; }
.st td { padding: 9px 0; border-top: 1px solid #e2e5ea; font-variant-numeric: tabular-nums; }
.st td:last-child, .st th:last-child { text-align: right; }
.st .tag { font-size: 13px; font-weight: 600; color: #0a3fae; background: #eef4ff; border-radius: 6px; padding: 2px 8px; white-space: nowrap; }
.st--big { padding: 28px 32px; font-size: 16px; } .st--big h4 { font-size: 20px; } .st--big td { padding: 14px 0; }

/* the hero's one effect: the answer sphere behind the report pieces (assets/hero/sphere.js) */
.ly-collage > .hero-fx { position: absolute; z-index: 0; left: 50%; top: 50%; width: min(118%, 760px); aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; }
.ly-collage > .ly-collage__set { z-index: 1; }
.hero-fx > img, .hero-fx > canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-fx > canvas { opacity: 0; transition: opacity .9s var(--ease, ease); }
.hero-fx.is-live > canvas { opacity: 1; }
.hero-fx.is-live > img { opacity: 0; transition: opacity .9s var(--ease, ease) .2s; }
.hero--triptych { overflow-x: clip; }
@media (max-width: 1023px) { .ly-collage > .hero-fx { width: min(100%, 560px); } }
@media (max-width: 639px) { .ly-collage > .hero-fx { opacity: .7; } }

/* inner pages: one readable column with the page's sections listed beside it */
.page-head { padding-block: var(--s-9, 96px) var(--s-7, 48px); }
.page-head h1 { margin: 0 0 var(--s-3); }
.page-head .updated { color: var(--muted); font-size: 15px; margin: 0; }
.doc-grid { padding-bottom: var(--s-10, 128px); }
.doc-toc { position: sticky; top: calc(var(--nav-h, 64px) + var(--s-5)); align-self: start; }
.doc-toc h2 { font: 600 15px/1.3 var(--font-text); margin: 0 0 var(--s-3); color: var(--muted); }
.doc-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line, #e2e5ea); }
.doc-toc li a { display: block; padding: 6px 0 6px var(--s-4); font-size: 15px; color: var(--muted); text-decoration: none; }
.doc-toc li a:hover { color: var(--ink); }
.doc { max-width: 68ch; font-size: 17px; line-height: 1.65; }
.doc h2 { font: 600 22px/1.3 var(--font-text); letter-spacing: -.01em; margin: var(--s-8, 64px) 0 var(--s-3); scroll-margin-top: calc(var(--nav-h, 64px) + var(--s-5)); }
.doc > h2:first-child { margin-top: 0; }
.doc p, .doc ul { margin: 0 0 var(--s-4); }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 6px 0; }
.doc b { font-weight: 600; }
.doc a { color: var(--action); }
.doc .table { overflow-x: auto; margin: var(--s-4) 0 var(--s-5); border: 1px solid var(--line, #e2e5ea); border-radius: var(--r-md, 12px); }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.5; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 14px; border-top: 1px solid var(--line, #e2e5ea); }
.doc th { font-weight: 600; background: var(--surface); border-top: 0; }
@media (max-width: 1023px) { .doc-toc { display: none; } }

/* thanks page: onboarding form and what happens next */
.onb .row-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-4); }
.onb textarea { min-height: 96px; resize: vertical; }
.field .hint { display: block; font-size: 14px; color: var(--muted); font-weight: 400; margin-top: 2px; }
.paid { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: #00804a; margin: 0 0 var(--s-4); }
.next-steps .when { white-space: nowrap; font-weight: 600; color: #111418; padding-right: 16px; }
.next-steps td.when { text-align: left; }
.next-steps td:not(.when) { text-align: left; color: #4a525e; }
@media (max-width: 639px) { .onb .row-2 { grid-template-columns: minmax(0, 1fr); } }
.doc ul { list-style: disc; }
.doc ul li::marker { color: var(--muted); }
.page-head .updated + .t-lead { margin-top: var(--s-5); }
.page-head a:not(.btn) { color: var(--action); }
.page-head .btn-row { margin-top: var(--s-6, 32px); }
@media (max-width: 639px) {
  .doc .table, .table--stack { border: 0; overflow: visible; }
  :is(.doc, .table--stack) :is(table, tbody, tr, td) { display: block; }
  :is(.doc, .table--stack) tr:first-child { display: none; }
  :is(.doc, .table--stack) tr { border: 1px solid var(--line, #e2e5ea); border-radius: var(--r-md, 12px); padding: 6px 14px; margin-bottom: var(--s-3); }
  :is(.doc, .table--stack) td { border: 0; padding: 8px 0; }
  :is(.doc, .table--stack) td + td { border-top: 1px solid var(--line, #e2e5ea); }
  :is(.doc, .table--stack) td::before { content: attr(data-label); display: block; font-size: 13px; font-weight: 600; color: var(--muted); }
}

/* ---------------------------------------------------------------- rhythm (ADR-0018)
   The kit makes every section exactly one or two screens tall. On a tall screen (a phone showing the
   desktop site, a portrait monitor) that left a screen of empty ground under short sections. Here a
   section is as tall as its content plus one fixed band of space; the hero alone keeps a screen,
   capped at 960px. The pinned-chapters stage keeps its two screens while it is live. */
:root { --sec-y: clamp(96px, 8vw, 136px); }
@media (max-width: 639px) { :root { --sec-y: 72px; } }
html main > :is(section, .section):not(.hero, .section--hero):not(.is-live),
html footer.closing {
  height: auto; min-height: 0;
  padding: var(--sec-y) 0 calc(var(--sec-y) + var(--bar, 0px));
}
html main > :is(section, .section):not(.hero, .section--hero):not(.is-live) > .wrap { height: auto; }
html footer.closing { padding-top: calc(var(--sec-y) * .9); padding-bottom: calc(48px + var(--bar, 0px)); }

/* bands: the report and the free check sit on the light surface, so the page reads in clear chapters */
#report.ground-surface, #free-check.ground-surface { background: var(--p-surface); }

/* the hero: one screen on desktop, never more than 960px; under 1024px as tall as its content */
@media (min-width: 1024px) {
  html main > .hero { height: clamp(640px, 100svh, 960px); }
  html main > .hero .ly-collage { min-height: 0; }
}
@media (max-width: 1023px) {
  html main > .hero { height: auto; min-height: 0; padding-bottom: var(--sec-y); }
  html main > .hero > .wrap, .hero > .wrap > .hero-text { height: auto; }
  .hero--triptych .hero__grid > :first-child { order: 0; }
  .hero--triptych .hero__cta { order: 1; margin-top: var(--s-6); }
  .hero--triptych .ly-collage { order: 2; flex: none; aspect-ratio: 4 / 3; min-height: 0; margin: var(--s-7) 0 0; }
  .hero--triptych .hero__lead { max-width: 52ch; }
  /* pieces sized for a wide collage: the two lower ones sit side by side under the answer */
  .ly-collage .ly-piece.pc-answer, .ly-collage .ly-piece.pc-board { width: 64% !important; left: 0 !important; top: 0 !important; }
  .ly-collage__set > .ly-piece:not(.pc-answer):not(.pc-board):nth-child(2) { left: 0 !important; top: auto !important; bottom: 0; width: 46% !important; }
  .ly-collage__set > .ly-piece:not(.pc-answer):not(.pc-board):last-child { left: auto !important; right: 0; top: auto !important; bottom: 4%; width: 46% !important; }
  .ly-collage__set > .ly-piece.pc-rows:first-child { width: 58% !important; left: 0 !important; top: 0 !important; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .hero--triptych .hero__cta { justify-content: flex-start; }
  .hero--triptych .hero__cta .btn { width: auto; }
}
@media (max-width: 639px) {
  .hero--triptych .ly-collage { aspect-ratio: auto; height: auto; }
  .hero--triptych .ly-collage__set.is-on { position: relative; }
  .ly-collage .ly-piece.pc-answer { position: relative; width: 100% !important; }
}

/* the free check's app window: a fixed frame instead of "whatever the screen leaves" */
#report .app.fill { flex: none; height: clamp(560px, 62vh, 660px); }
@media (max-width: 1023px) { #report .app.fill { height: auto; } #report .app > .app__pane--open::after { display: none; } }

/* trademark notice under the copyright line, every page */
.footer__legal .footer__tm { flex-basis: 100%; max-width: 72ch; font-size: 13px; line-height: 1.5; opacity: .75; }

/* Ask an AI blocks (docs/product/ai-visibility-plan.md): the question is shown in full before any click */
.ask-ai { margin-top: var(--s-6, 32px); padding: var(--s-5, 24px); border: 1px solid var(--line, #e2e5ea); border-radius: 16px; background: var(--p-bg, #fff); }
.ask-ai h3 { font-size: 18px; margin: 0 0 6px; }
.ask-ai__q { margin: 10px 0 14px; padding: 12px 14px; border-left: 3px solid var(--p-accent, #0a5cff); background: var(--p-surface, #f4f6f9); border-radius: 0 10px 10px 0; font-size: 15px; line-height: 1.5; }
.ask-ai__btns { flex-wrap: wrap; gap: 8px; }
.ask-ai__btns .btn { min-height: 40px; padding: 8px 14px; font-size: 14px; }
.ask-ai .form { margin: 8px 0 0; }
.doc .ask-ai { margin-top: var(--s-3, 12px); }
