/* Page-scoped styles for the static trust pages: about, privacy, terms, corrections, love, 404.
   Reads tokens from styles.css only. Everything here is scoped under .pg-* classes so it can't leak into the landing page. */

/* ---------- Inline founder placeholders (?placeholders=1) ---------- */
.show-placeholders span[data-placeholder] { display: inline; padding: 1px 6px; margin-inline: 2px; border-radius: 6px; border-width: 1px; font-size: .75rem; line-height: 1.8; }
.show-placeholders td span[data-placeholder] { display: inline-block; margin-top: 4px; }

/* ---------- Page hero ---------- */
.pg-hero { position: relative; isolation: isolate; padding-block: 48px 32px; border-bottom: 1px solid var(--line); }
@media (min-width: 860px) { .pg-hero { padding-block: 80px 48px; } }
.pg-hero .atmos::before { mask-image: radial-gradient(ellipse 70% 90% at 30% 0%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 90% at 30% 0%, #000 30%, transparent 75%); }
.pg-hero .aurora { top: -360px; left: 30%; opacity: .8; }
.pg-hero-inner { display: grid; gap: 16px; max-width: 760px; }
.pg-hero h1 { font-size: var(--fs-h1); }
.pg-lede { font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); color: var(--muted); max-width: 58ch; line-height: 1.55; }
.pg-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 4px; color: var(--muted); font-size: .875rem; }
@media (max-width: 559px) { .pg-meta .sep { display: none; } .pg-meta { flex-direction: column; align-items: flex-start; gap: 6px; } }
.pg-meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); }
.pg-meta .icon { width: 16px; height: 16px; color: var(--signal); }
.pg-meta > span { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Document layout: sticky TOC + 65ch article ---------- */
.pg-doc { display: grid; gap: 32px; padding-block: 40px 72px; }
@media (min-width: 1024px) { .pg-doc { grid-template-columns: 232px minmax(0, 1fr); gap: 72px; padding-block: 56px 112px; } }
.pg-article { min-width: 0; max-width: 65ch; }
.pg-article > * + * { margin-top: 16px; }
.pg-article h2 { font-size: clamp(1.375rem, 1.25rem + .5vw, 1.625rem); letter-spacing: -.025em; margin-top: 56px; scroll-margin-top: 96px; }
.pg-article h2:first-child { margin-top: 0; }
.pg-article h3 { font-size: 1.0625rem; letter-spacing: -.01em; margin-top: 28px; }
.pg-article p, .pg-article li { color: var(--muted); }
.pg-article p strong, .pg-article li strong { color: var(--text); font-weight: 600; }
.pg-article ul, .pg-article ol { margin-block: 12px 0; padding-left: 22px; display: grid; gap: 8px; }
.pg-article li::marker { color: var(--line-strong); }
.pg-article ol li::marker { color: var(--muted); font: 500 .875rem var(--mono); }
.pg-article code { font: 500 .875em var(--mono); color: var(--text); background: var(--card-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; }
.pg-article a { overflow-wrap: anywhere; }
.pg-article .h-num { font: 500 .8125rem var(--mono); color: var(--muted); margin-right: 10px; letter-spacing: 0; vertical-align: 2px; }

/* TOC: sticky on desktop, a disclosure on mobile */
.pg-toc { display: none; }
@media (min-width: 1024px) {
  .pg-toc { display: block; position: sticky; top: 96px; align-self: start; max-height: calc(100vh - 120px); overflow: auto; scrollbar-width: thin; }
}
.pg-toc .micro { display: block; margin-bottom: 10px; padding-left: 14px; }
.pg-toc ol { list-style: none; margin: 0; padding: 0; display: grid; border-left: 1px solid var(--line); }
.pg-toc a { display: block; padding: 7px 0 7px 14px; margin-left: -1px; border-left: 1px solid transparent; color: var(--muted); text-decoration: none; font-size: .875rem; line-height: 1.4; transition: color var(--dur-2), border-color var(--dur-2); }
.pg-toc a:hover { color: var(--text); }
.pg-toc a[aria-current="true"] { color: var(--text); border-left-color: var(--link); }
.pg-toc-m { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--card); }
@media (min-width: 1024px) { .pg-toc-m { display: none; } }
.pg-toc-m summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 0 16px; cursor: pointer; font-weight: 600; font-size: .9375rem; }
.pg-toc-m summary::-webkit-details-marker { display: none; }
.pg-toc-m summary .icon { color: var(--muted); transition: transform var(--dur-2) var(--ease-out); }
.pg-toc-m[open] summary .icon { transform: rotate(180deg); }
.pg-toc-m ol { list-style: none; margin: 0; padding: 4px 8px 10px; display: grid; border-top: 1px solid var(--line); }
.pg-toc-m a { display: flex; align-items: center; min-height: 44px; padding: 0 8px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: .9375rem; }
.pg-toc-m a:hover { background: var(--card-2); }

/* Summary box ("The short version") */
.pg-summary { padding: 22px 22px 24px; border-radius: var(--r-card); border: 1px solid var(--line); background: linear-gradient(to bottom, var(--tint-primary), transparent 70%), var(--card); box-shadow: var(--highlight); }
.pg-summary h2 { margin-top: 0; font-size: 1.125rem; display: flex; align-items: center; gap: 10px; }
.pg-summary h2 .icon { color: var(--link); }
.pg-summary ul { list-style: none; padding: 0; margin-top: 14px; gap: 10px; }
.pg-summary li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; color: var(--text); font-size: .9688rem; }
.pg-summary li .icon { width: 18px; height: 18px; color: var(--success); margin-top: 3px; }
.pg-article > .pg-summary:first-child { margin-top: 0; }
.pg-toc-m + .pg-summary { margin-top: 20px; }

/* Data tables: real tables on wide screens, stacked rows on phones */
.pg-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .9375rem; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; background: var(--card); margin-top: 20px; }
.pg-table th, .pg-table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.pg-table tr:last-child td { border-bottom: 0; }
.pg-table thead th { font: 600 .6875rem/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--surface); }
.pg-table td { color: var(--muted); }
.pg-table td:first-child { color: var(--text); font-weight: 550; width: 30%; }
@media (max-width: 639px) {
  .pg-table, .pg-table tbody, .pg-table tr, .pg-table td { display: block; width: 100%; }
  .pg-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .pg-table tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .pg-table tr:last-child { border-bottom: 0; }
  .pg-table td { padding: 0; border: 0; }
  .pg-table td + td { margin-top: 8px; }
  .pg-table td:first-child { font-size: 1rem; }
  .pg-table td + td::before { content: attr(data-label); display: block; font: 600 .6875rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); opacity: .8; margin-bottom: 2px; }
}

/* Callouts inside articles */
.pg-note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-sm); border: 1px dashed var(--line-strong); color: var(--muted); font-size: .9375rem; }
.pg-note .icon { color: var(--signal); margin-top: 2px; }
.pg-note.ok { border-style: solid; border-color: color-mix(in srgb, var(--success) 35%, var(--line)); background: var(--tint-success); color: var(--text); }
.pg-note.ok .icon { color: var(--success); }

/* Contact card */
.pg-contact { display: grid; gap: 0; margin-top: 20px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--card); overflow: hidden; }
.pg-contact > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.pg-contact > div:last-child { border-bottom: 0; }
.pg-contact dt { color: var(--muted); }
.pg-contact dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }

/* ---------- End CTA band ---------- */
.pg-cta { padding-block: 64px; }
@media (min-width: 860px) { .pg-cta { padding-block: 88px; } }
.pg-cta .final-cta h2 { font-size: var(--fs-h2); max-width: 22ch; }
.pg-cta .final-cta p { color: var(--muted); max-width: 48ch; }

/* ---------- About ---------- */
.pg-steps { list-style: none; padding: 0 !important; margin-top: 20px !important; display: grid; gap: 0 !important; counter-reset: st; border-top: 1px solid var(--line); }
.pg-steps > li { position: relative; display: grid; gap: 6px; padding: 18px 0 18px 48px; border-bottom: 1px solid var(--line); counter-increment: st; }
.pg-steps > li::before { content: counter(st, decimal-leading-zero); position: absolute; left: 0; top: 19px; font: 600 .8125rem/1 var(--mono); color: var(--link); padding: 6px 0; width: 32px; text-align: center; border-radius: 8px; background: var(--tint-primary); }
.pg-steps h3 { margin: 0; font-size: 1.0625rem; color: var(--text); }
.pg-steps p { margin: 0; }
.pg-steps .eng-tag { display: inline-flex; margin-right: 6px; font: 600 .6875rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--signal); background: var(--tint-signal); padding: 4px 6px; border-radius: 6px; vertical-align: 2px; }
.pg-nots { list-style: none; padding: 0 !important; margin-top: 20px !important; display: grid; gap: 10px !important; }
@media (min-width: 640px) { .pg-nots { grid-template-columns: 1fr 1fr; } }
.pg-nots li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 4px 12px; align-content: start; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); font-size: .9375rem; }
.pg-nots li .ic { grid-row: span 2; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--tint-danger); color: var(--danger); }
.pg-nots li .ic .icon { width: 18px; height: 18px; }
.pg-nots li b { color: var(--text); font-weight: 600; }
.pg-founder { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 16px; align-items: start; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--card); margin-top: 20px; }
.pg-founder img { width: 72px; height: 72px; border-radius: 16px; object-fit: cover; background: var(--card-2); }
.pg-founder b { display: block; color: var(--text); font-weight: 600; }
.pg-founder .role { font-size: .875rem; color: var(--muted); }
.pg-founder p { margin-top: 10px; }

/* ---------- Corrections ---------- */
.pg-split { display: grid; gap: 32px; padding-block: 40px 72px; align-items: start; }
@media (min-width: 960px) { .pg-split { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 72px; padding-block: 56px 112px; } }
.pg-split-copy { display: grid; gap: 20px; }
.pg-split-copy h2 { font-size: 1.25rem; letter-spacing: -.02em; }
.pg-split-copy p { color: var(--muted); }
.pg-flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.pg-flow li { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; padding-bottom: 22px; }
.pg-flow li:not(:last-child)::after { content: ""; position: absolute; left: 17.5px; top: 40px; bottom: 4px; width: 1px; background: var(--line-strong); }
.pg-flow .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--card-2); border: 1px solid var(--line-strong); color: var(--link); }
.pg-flow .ic .icon { width: 18px; height: 18px; }
.pg-flow b { display: block; color: var(--text); font-weight: 600; padding-top: 6px; }
.pg-flow span { color: var(--muted); font-size: .9375rem; }
.pg-form-card { padding: 20px; display: grid; gap: 18px; scroll-margin-top: 96px; }
@media (min-width: 640px) { .pg-form-card { padding: 32px; } }
.pg-form { display: grid; gap: 18px; }
.pg-form .field-hint, .pg-form .field-error { margin-top: 2px; }
.pg-form .field-error:empty { display: none; }
.pg-form .field-error .icon { width: 16px; height: 16px; }
.pg-form .counter { white-space: nowrap; flex: none; font: 500 .75rem var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.pg-form .row-hint { display: flex; justify-content: space-between; gap: 12px; }
.pg-form textarea.input { min-height: 140px; }
.pg-form fieldset[disabled] { opacity: .7; }
.pg-form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 18px; min-width: 0; }
.pg-form-foot { display: grid; gap: 12px; }
.pg-form-foot .btn { width: 100%; }
@media (min-width: 640px) { .pg-form-foot { grid-template-columns: auto 1fr; align-items: center; } .pg-form-foot .btn { width: auto; } }
.pg-form-foot .small { color: var(--muted); }
.pg-form .form-error { animation: pgIn var(--dur-3) var(--ease-out); }
.pg-form .form-error p + p { margin-top: 4px; }
.pg-done { display: grid; justify-items: start; gap: 14px; animation: pgIn var(--dur-3) var(--ease-out); }
.pg-done .ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--tint-success); color: var(--success); border: 1px solid color-mix(in srgb, var(--success) 35%, transparent); }
.pg-done .ic .icon { width: 26px; height: 26px; }
.pg-done h2 { font-size: 1.5rem; }
.pg-done h2[tabindex="-1"]:focus { outline: none; } /* tabindex="-1" heading, programmatic focus only */
.pg-done p { color: var(--muted); max-width: 46ch; }
.pg-done .row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
@keyframes pgIn { from { opacity: 0; transform: translateY(6px); } }

/* ---------- 404 ---------- */
.pg-404 { position: relative; isolation: isolate; padding-block: 56px 80px; min-height: calc(100vh - 64px - 1px); display: grid; align-content: center; }
@media (min-width: 860px) { .pg-404 { padding-block: 96px 120px; } }
.pg-404-inner { display: grid; justify-items: center; text-align: center; gap: 18px; max-width: 620px; margin-inline: auto; }
.pg-404 h1 { font-size: var(--fs-h1); max-width: 16ch; }
.pg-404 .pg-lede { max-width: 46ch; }
.pg-podium { display: grid; grid-template-columns: repeat(3, 64px); gap: 8px; align-items: end; height: 132px; margin-bottom: 8px; }
.pg-podium span { display: grid; place-items: start center; padding-top: 10px; border-radius: 12px 12px 0 0; border: 1px solid var(--line-strong); border-bottom: 0; background: var(--card-2); font: 700 1.5rem/1 var(--font); letter-spacing: -.04em; color: var(--muted); transform-origin: bottom; animation: pgRise 760ms var(--ease-spring) both; }
.pg-podium span:nth-child(1) { height: 84px; animation-delay: 60ms; }
.pg-podium span:nth-child(2) { height: 128px; color: var(--podium); background: linear-gradient(to bottom, color-mix(in srgb, var(--primary) 30%, var(--card-2)), var(--card-2)); border-color: color-mix(in srgb, var(--link) 45%, var(--line-strong)); animation-delay: 180ms; }
.pg-podium span:nth-child(3) { height: 56px; border-style: dashed; border-color: var(--danger); background: transparent; color: var(--danger); animation-delay: 300ms; }
.pg-podium-base { width: 224px; height: 1px; background: var(--line-strong); margin-top: -26px; margin-bottom: 8px; }
@keyframes pgRise { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.pg-mini-cta { width: 100%; display: grid; gap: 14px; padding: 20px; margin-top: 10px; text-align: left; }
@media (min-width: 560px) { .pg-mini-cta { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 20px 20px 20px 24px; } }
.pg-mini-cta b { display: block; font-weight: 600; font-size: 1.0625rem; letter-spacing: -.01em; }
.pg-mini-cta > div > span { display: block; color: var(--muted); font-size: .875rem; margin-top: 2px; }
.pg-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 8px; }
.pg-links a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; border-radius: var(--r-btn); color: var(--muted); text-decoration: none; font-size: .9375rem; font-weight: 500; }
.pg-links a:hover { color: var(--text); background: var(--card-2); }
.pg-links .icon { width: 16px; height: 16px; }

/* ---------- Love ---------- */
.pg-love-empty { position: relative; isolation: isolate; padding-block: 72px 96px; }
@media (min-width: 860px) { .pg-love-empty { padding-block: 120px 140px; } }
.pg-love-empty .pg-404-inner { gap: 20px; }
.pg-love-empty .row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }
.pg-love-empty .trust { padding-block: 8px 0; gap: 8px 20px; }
.pg-wall { columns: 1; column-gap: 16px; padding-block: 40px 96px; }
@media (min-width: 720px) { .pg-wall { columns: 2; } }
@media (min-width: 1080px) { .pg-wall { columns: 3; } }
.pg-review { break-inside: avoid; display: grid; gap: 14px; padding: 22px; margin: 0 0 16px; }
.pg-review blockquote { margin: 0; font-size: 1.0313rem; line-height: 1.6; color: var(--text); overflow-wrap: anywhere; }
.pg-review blockquote::before { content: "\201C"; } .pg-review blockquote::after { content: "\201D"; }
.pg-review footer { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pg-review footer img, .pg-review .av { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; flex: none; background: var(--card-2); border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); font-weight: 600; }
.pg-review .who { min-width: 0; display: grid; gap: 2px; font-size: .875rem; }
.pg-review .who b { font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.pg-review .who span { color: var(--muted); overflow-wrap: anywhere; }
.pg-review .top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pg-stars { display: inline-flex; gap: 2px; color: var(--podium); }
.pg-stars .icon { width: 16px; height: 16px; }
.pg-stars .on .icon, .pg-stars .on { fill: currentColor; }
.pg-stars .off { color: var(--line-strong); }
.pg-review time { font: 500 .75rem var(--mono); color: var(--muted); }
.pg-avg { display: inline-flex; align-items: center; gap: 10px; font-size: .9375rem; color: var(--muted); }
.pg-avg b { color: var(--text); font: 700 1.25rem/1 var(--font); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) { .pg-podium span { animation: none; } }
@media print { .pg-toc, .pg-toc-m, .pg-cta { display: none !important; } .pg-doc { display: block; } }
@media (min-width: 1024px) { .pg-doc-single { grid-template-columns: minmax(0, 1fr); } }
/* Shared footer links: keep short labels ("FAQ", "Terms") at a 44px-wide tap target. */
.site-footer .foot-col a { min-width: 44px; }
