/* MetricPull product page: everything below the hero. The hero's materials carry through: a matte neutral ground,
   Newsreader headings, Manrope text, Azeret Mono for file names and code, graphite and teal. Real app screens sit in plain
   frames; exported files are typeset as text so they stay readable. Colors come from the tokens in hero.css, so the dark
   theme follows. */
html { scroll-padding-top: 1rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
code { font-family: var(--mono); font-size: .86em; }
.fine { font-size: .875rem; line-height: 1.5; color: var(--ink-3); }
.fine a { color: var(--teal-ink); }
h2, h3, h4 { color: var(--heading); }
h4 { margin: 0; font-size: 1.0625rem; font-weight: 500; }
.nw { white-space: nowrap; }
.qm h2, .more h2, .faq h2, .privacy h2 { font-family: var(--serif); font-weight: 420; font-size: clamp(1.95rem, 3.1vw, 2.6rem); letter-spacing: -.022em; line-height: 1.06; }

/* ---------- Shared pieces ---------- */
.shot { display: grid; gap: .6rem; align-content: start; margin: 0; }
.shot img { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--lav-line); background: var(--lav);
  box-shadow: 0 1px 2px rgb(var(--shade) / 6%), 0 22px 44px -30px rgb(var(--shade) / 34%); }
.shot figcaption { font-size: .8125rem; line-height: 1.45; color: var(--ink-2); }

/* A CSV, typeset verbatim */
.csv__table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: .8125rem; font-variant-numeric: tabular-nums; color: var(--ink); }
.csv__table th { padding: .55rem .95rem; text-align: right; font-weight: 500; color: var(--teal-ink); border-bottom: 1px solid var(--line); white-space: nowrap; }
.csv__table td { padding: .42rem .95rem; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--line-2); }
.csv__table th:first-child, .csv__table td:first-child { text-align: left; }
.csv__table tbody tr:last-child td { border-bottom: 0; }
.csv__notes { list-style: none; margin: 0; padding: .8rem .95rem .9rem; display: grid; gap: .45rem; border-top: 1px solid var(--line);
  font-size: .8125rem; line-height: 1.45; color: var(--ink-2); }
.csv__notes li { display: grid; grid-template-columns: 1.2rem minmax(0, 1fr); gap: .45rem; align-items: baseline; }
.csv__plain::before { content: ''; justify-self: center; width: 4px; height: 4px; border-radius: 50%; background: var(--ink-3); transform: translateY(-.2em); }

/* ---------- Quick Metrics: the explanation beside one capped column of the chart and its comparisons (stacked below 1000 px) ---------- */
.qm { padding-block: clamp(3.5rem, 7vw, 6rem); background: var(--tint); border-block: 1px solid var(--line); }
.qm__grid { display: grid; gap: clamp(2rem, 4vw, 3rem); }
.qm__text { display: grid; row-gap: .9rem; align-content: start; }
.qm__lede { font-size: clamp(1.05rem, 1.3vw, 1.175rem); color: var(--ink); max-width: 30rem; }
.qm__text > p:nth-of-type(2) { color: var(--ink-2); text-wrap: pretty; max-width: 34rem; }
.qm__text > .fine { max-width: 34rem; }
.qm__art { display: grid; gap: clamp(1rem, 2vw, 1.5rem); align-content: start; width: 100%; max-width: 34rem; }
@media (min-width: 1000px) {
  .qm__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); column-gap: clamp(3rem, 6vw, 5rem); align-items: center; }
  .qm__art { max-width: none; }
}
/* The comparison and averages are one wide iPad capture under the phone chart; its smallest text is read in the image preview
   below. Each capture is shown in the page's own appearance, chosen as the wordmark's is (hero.css). */
.shot__look--dark { display: none; }
@media screen and (prefers-color-scheme: dark) { .mp-theme:not([data-mp-page="light"]) .shot__look--light { display: none; } .mp-theme:not([data-mp-page="light"]) .shot__look--dark { display: block; } }
@media screen { .mp-theme[data-mp-page="dark"] .shot__look--light { display: none; } .mp-theme[data-mp-page="dark"] .shot__look--dark { display: block; } }
/* With scripting, the comparison also opens in the image preview (js/boot.js), so its smallest text can be read at the
   capture's own size on any screen; the magnifier beside its caption shows that it can, without covering the capture. */
.shot--enlarge img { cursor: zoom-in; }
.shot--enlarge img:focus-visible { outline: 2px solid var(--teal-ink); outline-offset: 3px; }
.shot--enlarge figcaption { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.shot__enlarge { position: relative; flex: none; width: 2.25rem; height: 2.25rem; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface); cursor: zoom-in; }
.shot__enlarge::after { content: ''; position: absolute; inset: 0; background: var(--ink); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 20 20M10.5 7.5v6M7.5 10.5h6'/%3E%3C/svg%3E") center / 1.15rem no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 20 20M10.5 7.5v6M7.5 10.5h6'/%3E%3C/svg%3E") center / 1.15rem no-repeat; }

/* ---------- The image preview: the site's article viewer (lightbox), in this page's tokens ---------- */
.viewer { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 1rem; border: 0; background: rgb(9 9 9 / 96%); color: var(--ink); }
.viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 1rem; }
.viewer::backdrop { background: transparent; }
.viewer__toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .5rem 1rem; }
.viewer__toolbar button, .viewer__original { min-height: 44px; border: 1px solid #555; border-radius: 2rem; padding: .4rem 1rem; background: var(--surface); color: var(--ink); font: inherit; font-size: .9375rem; }
.viewer__original { display: inline-flex; align-items: center; text-decoration: none; }
.viewer__toolbar .viewer__close { font-size: 1.5rem; line-height: 1; min-width: 44px; }
.viewer__viewport { min-width: 0; min-height: 0; overflow: auto; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; }
.viewer__image { display: block; width: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.viewer--zoomed .viewer__viewport { display: block; justify-items: start; }   /* centring would push the left of a wide capture out of reach */
.viewer--zoomed .viewer__image { width: var(--image-width); max-width: none; max-height: none; }

/* ---------- Also in MetricPull ---------- */
.more { padding-block: clamp(3.5rem, 7vw, 6rem); }
.more__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); column-gap: clamp(3rem, 7vw, 6rem); align-items: start; }
.more h2 { max-width: 10ch; }
.more__list { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem clamp(1.5rem, 3vw, 2.5rem); }
.more__list > div { padding-top: 1rem; border-top: 1px solid var(--line); }
.more__list dt { font-weight: 500; color: var(--heading); }
.more__list dd { margin: .5rem 0 0; color: var(--ink-2); max-width: 34rem; text-wrap: pretty; }

/* ---------- Privacy: the one dark band ---------- */
.privacy { padding-block: clamp(3.25rem, 6vw, 5rem); background: var(--band); border-block: 1px solid var(--band-rule); color: var(--band-text); }
.privacy__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); grid-template-areas: 'head facts' 'head fine'; column-gap: clamp(3rem, 7vw, 6rem); row-gap: 1.5rem; }
.privacy__head { grid-area: head; display: grid; gap: 1rem; align-content: start; }
.privacy h2 { color: var(--band-head); }
.privacy__head p { color: var(--band-muted); max-width: 26rem; }
.privacy__link { display: inline-flex; align-items: center; gap: .45rem; justify-self: start; min-height: 44px; color: var(--ed-accent); text-decoration: none; font-weight: 500; }
.privacy__link:hover { text-decoration: underline; }
.privacy__link svg { width: .75em; height: .75em; }
.privacy :focus-visible { outline-color: var(--ed-accent); }
.privacy__facts { grid-area: facts; list-style: none; margin: 0; padding: 0; }
.privacy__facts li { position: relative; padding: .85rem 0 .85rem 1.6rem; border-bottom: 1px solid var(--band-rule); color: var(--band-text); }
.privacy__facts li:first-child { border-top: 1px solid var(--band-rule); }
.privacy__facts li::before { content: ''; position: absolute; left: .1rem; top: 1.4rem; width: .55rem; height: .3rem; border-left: 1.5px solid var(--ed-accent); border-bottom: 1.5px solid var(--ed-accent); transform: rotate(-45deg); }
.privacy__fine { grid-area: fine; font-size: .875rem; line-height: 1.5; color: var(--band-fine); max-width: 36rem; }

/* ---------- Questions ---------- */
.faq { padding-block: clamp(3.5rem, 7vw, 6rem); }
.faq__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); column-gap: clamp(3rem, 7vw, 6rem); align-items: start; }
.faq__head { display: grid; gap: .9rem; }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 44px; padding: 1rem 0; cursor: pointer; list-style: none; font-weight: 500; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: .6rem; height: .6rem; margin-right: .3rem; border-right: 1.5px solid var(--ink-2); border-bottom: 1.5px solid var(--ink-2); transform: rotate(45deg) translateY(-25%); }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-25%); }
.faq details p { padding: 0 2rem 1.2rem 0; color: var(--ink-2); max-width: 40rem; text-wrap: pretty; }

/* ---------- Footer ---------- */
.foot { padding-block: 1.75rem 2.25rem; border-top: 1px solid var(--line); font-size: .8125rem; color: var(--ink-3); }
.foot__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem 2rem; }
.foot__links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.foot a { display: inline-flex; align-items: center; min-height: 24px; color: var(--ink-2); }
.foot a:hover { color: var(--teal-ink); }
/* The page appearance control, at the end of the footer: System, Light, Dark as native radio buttons (arrow keys move and
   choose). Hidden in the markup and shown by the script, so a visit without it has no control that can't work, and the page
   still follows the device. The chosen segment is tinted and checked (state beyond color); 36 px segments; a visible focus
   ring above the neighbors. */
.page-look fieldset { display: flex; align-items: center; margin: 0; padding: 0; border: 0; }
.page-look legend { float: left; margin: 0 .7rem 0 0; padding: 0; color: var(--ink-3); }   /* floated, so it sits beside the group */
.page-look label { position: relative; display: flex; }
.page-look label + label { margin-left: -1px; }   /* one shared border between segments */
.page-look input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.page-look label span { display: inline-flex; align-items: center; min-height: 2.25rem; padding: 0 .7rem; border: 1px solid var(--line-strong); color: var(--ink-2); }
.page-look label:first-of-type span { border-radius: 9px 0 0 9px; }
.page-look label:last-of-type span { border-radius: 0 9px 9px 0; }
.page-look input:hover + span { color: var(--ink); }
.page-look input:checked + span { position: relative; background: var(--wash); color: var(--ink); }
.page-look input:checked + span::before { content: '✓'; content: '✓' / ''; margin-right: .3rem; font-size: .85em; color: var(--teal-ink); }
.page-look input:focus-visible + span { position: relative; z-index: 1; outline: 2px solid var(--teal-ink); outline-offset: 2px; }
@media print { .page-look { display: none; } }

/* ---------- Narrower windows ---------- */
@media (max-width: 999px) {
  .more__grid, .faq__grid { grid-template-columns: minmax(0, 1fr); row-gap: 2rem; }
  .more h2 { max-width: none; }
  .privacy__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'head' 'facts' 'fine'; row-gap: 2rem; }
}
/* Phones: a reading size and section rhythm of their own, and app screens at one size, centred, so they read as
   pictures of the app rather than the app itself */
@media (max-width: 640px) {
  body { font-size: 1rem; line-height: 1.58; }
  .qm, .more, .faq { padding-block: 3.25rem; }
  .privacy { padding-block: 3rem; }
  .qm__art { gap: .9rem; }
  .more__list { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .csv__table { font-size: .7rem; }
  .csv__table th, .csv__table td { padding-inline: .5rem; }
  .csv__table th:first-child, .csv__table td:first-child { padding-left: .8rem; }
  .csv__notes { padding-inline: .8rem; }
  .faq details p { padding-right: 0; }
  .shot { width: 100%; max-width: 19rem; justify-self: center; }
  .shot figcaption, .privacy__facts li, .faq summary { text-wrap: pretty; }
  .qm__art .shot { max-width: none; }
}
