/* Page checker only. Shared tokens and components come from /styles.css;
   this file adds what only this page draws: the extra form fields, the
   summary band, the keyword switch, the outline, the cloud, the term
   explainers (popover + anchor positioning) and the card reveal. */

.pc-head { padding-bottom: 8px; }
.pc-form { margin-top: 24px; }
.pc-extra { display: grid; gap: 12px; margin-top: 14px; max-width: 720px; }
@media (min-width: 720px) { .pc-extra { grid-template-columns: 1fr 1fr; align-items: start; } }
.pc-field label { margin-bottom: 6px; }
.pc-inline { display: inline; margin: 0 0 0 4px; }
.pc-compare { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.pc-compare summary { cursor: pointer; min-height: 48px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 8px 14px; font-weight: 700; font-size: .95rem; }
.pc-compare[open] summary { border-bottom: 1px solid var(--line); }
.pc-compare .pc-field { padding: 12px 14px 14px; }
@media (min-width: 720px) { .pc-compare { margin-top: 28px; } }
.running .audit-row { border-color: var(--accent); }

/* This header carries one more link than the shared one. At phone width
   the labels wrapped onto two lines and still pushed Sign in 8px off screen. */
@media (max-width: 520px) { .site-nav a.pc-hide-md { display: none; } }
@media (max-width: 440px) {
  .site-header .header-row { gap: 6px; }
  .site-header .brand { gap: 7px; font-size: 1.05rem; }
  .site-header .mark { width: 26px; height: 26px; }
  .site-nav { gap: 0; }
  .site-nav a, .site-nav .nav-btn { padding-inline: 7px; font-size: .9rem; white-space: nowrap; }
}
@media (max-width: 360px) { .site-header .brand span { display: none; } }
/* Signed in, the wider Account button still pushed past 375px. Someone
   with an account has seen the prices; Account is the link they need. */
@media (max-width: 440px) { .site-nav:has([data-auth="in"]:not([hidden])) a[href="/pricing/"] { display: none; } }

/* ── summary ── */
.pc-skel { display: grid; gap: 14px; padding-block: 24px; }
.pc-sum { padding-block: 28px 8px; scroll-margin-top: 80px; }
.pc-sum-top { display: grid; gap: 20px; align-items: center; }
@media (min-width: 640px) { .pc-sum-top { grid-template-columns: auto 1fr; gap: 28px; } }
.pc-sum-ring { display: grid; justify-items: center; gap: 6px; }
.pc-sum-ring .cap { font: 700 .92rem/1.2 var(--font-head); }
.pc-url { font-size: clamp(1.4rem, 4.2vw, 2.2rem); letter-spacing: -.02em; overflow-wrap: anywhere; margin-bottom: 8px; }
.pc-url:focus { outline: none; }
.pc-sum .r-date { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pc-copied { display: block; min-height: 1.4em; margin-top: 6px; color: var(--good); font-size: .9rem; overflow-wrap: anywhere; }

.pc-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 20px 0 0; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: clip; }
@media (min-width: 720px) { .pc-tiles { grid-template-columns: repeat(6, 1fr); } }
.pc-tiles > div { background: var(--surface); padding: 14px 16px; min-width: 0; }
.pc-tiles dt { font-size: .85rem; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.pc-tiles dd { margin: 4px 0 0; font: 800 clamp(1.25rem, 3vw, 1.6rem)/1.15 var(--font-head); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.pc-fix { margin-top: 20px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--warn); border-radius: var(--r-lg); padding: 16px 18px; }
.pc-fix h3 { font-size: 1.05rem; margin-bottom: 12px; }

.pc-nav { margin-top: 24px; }
.pc-checklist li + li { padding-top: 10px; border-top: 1px solid var(--line); }
.pc-pts { font: 700 .78rem/1 var(--font-body); color: var(--ink-3); margin-left: 6px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pc-gap { margin-top: 16px; }
.pc-gap-b { margin-bottom: 16px; }
.pc-plain { margin: 0; padding-left: 18px; }
.pc-plain li + li { margin-top: 4px; }
.pc-break { overflow-wrap: anywhere; word-break: break-word; }
.pc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
td.pc-chips { display: table-cell; }
td.pc-chips .chip { margin: 0 4px 4px 0; }

/* ── title and meta ── */
.pc-snip { font-size: 1.02rem; margin-bottom: 10px; overflow-wrap: anywhere; }
.pc-meter { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: clip; margin-bottom: 6px; }
.pc-meter i { display: block; height: 100%; border-radius: 4px; background: var(--good); }
.pc-meter.warn i { background: var(--warn); }
.pc-meter.bad i { background: var(--bad); }
.card .small.muted { margin-bottom: 18px; }
.pc-kv th { width: 34%; font-weight: 700; color: var(--ink-2); font-size: .88rem; }
.pc-kv td { overflow-wrap: anywhere; }

/* ── outline ── */
.pc-outline { list-style: none; margin: 0; padding: 12px 16px; }
.pc-outline li { padding: 6px 0 6px calc(var(--lvl) * clamp(10px, 3vw, 22px)); border-left: 0; overflow-wrap: anywhere; display: flex; gap: 10px; align-items: baseline; }
.pc-outline li + li { border-top: 1px solid var(--line); }
.pc-lvl { flex: none; font: 700 .72rem/1.6 var(--font-body); padding: 0 7px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
.pc-lvl.l1 { background: var(--accent); color: var(--accent-ink); }
.pc-lvl.l2 { background: var(--accent-soft); color: var(--accent); }

/* ── keywords ── */
.pc-seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin: 0 0 14px; border: 1px solid var(--line); border-radius: calc(var(--r) + 4px); background: var(--surface); }
.pc-seg-opt { margin: 0; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: var(--r); cursor: pointer; font-weight: 500; font-size: .95rem; }
.pc-seg-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pc-seg-opt:has(input:checked) { background: var(--ink); color: var(--bg); }
.pc-seg-opt:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.pc-kwt th[scope="row"] { font-weight: 600; min-width: 9ch; }
.pc-kwt .pc-c { text-align: center; padding-inline: 6px; width: 3.2em; }
.pc-kwt abbr { text-decoration: none; cursor: help; }
.pc-yes { color: var(--good); font-weight: 800; }
.pc-no { color: var(--ink-3); }
.pc-legend { margin-top: 10px; }

/* ── cloud ── */
.pc-cloud-card { padding: clamp(18px, 4vw, 36px); }
.pc-cloud-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: .2em .8em; line-height: 1.25; text-align: center; }
.pc-cloud-list li { font-family: var(--font-head); font-weight: 700; letter-spacing: -.015em; overflow-wrap: anywhere; max-width: 100%; }
.pc-cloud-list .t1 { color: var(--accent); font-weight: 800; }
.pc-cloud-list .t2 { color: var(--ink); }
.pc-cloud-list .t3 { color: var(--ink-2); font-weight: 500; }
.pc-cloud-list .lift { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .18em; text-decoration-color: color-mix(in oklab, var(--accent) 55%, transparent); }

.pc-term { color: var(--accent); }

/* ── long tables ── */
.pc-more > summary { cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; font-weight: 700; color: var(--accent); margin-bottom: 10px; }
.pc-more .tbl-wrap { max-height: 70vh; overflow: auto; }

/* ── compare ── */
.pc-vs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 16px 0; }
.pc-vs-col { display: grid; justify-items: center; gap: 8px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 10px; min-width: 0; }
.pc-vs-col .pc-url { font-size: .92rem; margin: 0; }
.pc-cmp td.pc-win { color: var(--good); font-weight: 800; }
.pc-cmp td.pc-win::after { content: " \2713"; }

/* ── explainer popovers, placed by anchor positioning ── */
.pc-tip { width: 24px; height: 24px; min-width: 24px; padding: 0; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2); font: 700 .8rem/1 var(--font-body); cursor: pointer; display: inline-grid; place-items: center; vertical-align: middle; position: relative; }
.pc-tip::before { content: ""; position: absolute; inset: -10px; } /* 44px tap area around a small mark */
.pc-tip:hover { color: var(--accent); border-color: var(--accent); }
.pc-pop { margin: 0; max-width: min(320px, calc(100vw - 32px)); padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); font: 400 .9rem/1.5 var(--font-body); letter-spacing: 0; text-align: left; }
@supports (position-area: top) {
  .pc-pop { inset: auto; position-area: bottom; margin-top: 8px; position-try-fallbacks: flip-block, flip-inline; }
}
h2 .pc-tip { margin-left: 4px; }

/* ── cards rise into view as you scroll (Chrome, Safari 26) ── */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .pc-card { animation: pc-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
    @keyframes pc-rise { from { opacity: .001; translate: 0 24px; } }
  }
}
@media print { .pc-card { animation: none !important; } .pc-form, .pc-nav, .pc-tip, [data-share] { display: none !important; } }

/* ── about ── */
.pc-reads { display: grid; gap: 14px; }
@media (min-width: 720px) { .pc-reads { grid-template-columns: 1fr 1fr; } }
.pc-reads > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.pc-reads h3 { font-size: 1.1rem; }
.pc-reads p { margin: 0; color: var(--ink-2); }
