/* Ping My Lab · css/support.css · the support pages in the premium layer ("Link up").
   Pages: terms, privacy, refund, delivery (the policy set), contact and 404. Loads right after css/premium.css.
   Tokens only, no literal colours (docs/design/premium.md, rule 1). Kit classes come from premium.css; the classes here
   are page compositions: doc- (policy pages), ct- (contact), nf- (404).

   THE DETAIL. A policy is a numbered rulebase: each section carries its rule number, the contents list lights the
   one you are reading, and the four policies sit together as one set. Contact opens on the message WhatsApp will
   have ready for you. The 404 is a ping that gets no reply. */

/* ================================================================ policy pages (terms, privacy, refund, delivery) */
.doc-wrap { max-width: calc(1000px + 2 * var(--gutter)); }

/* ---------- head: the policy set, the title, its date ---------- */
.doc-head { position: relative; isolation: isolate; overflow: clip; padding: clamp(30px, 5.5vw, 76px) 0 clamp(30px, 4.5vw, 52px); border-bottom: 1px solid transparent; border-image: linear-gradient(90deg, transparent, var(--pr-seam) 14%, var(--pr-seam-hi) 50%, var(--pr-seam) 86%, transparent) 1; }
.doc-head::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(var(--pr-grid) 1px, transparent 1px), linear-gradient(90deg, var(--pr-grid) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 70% 90% at 22% 0%, var(--pr-solid) 12%, transparent 72%); mask-image: radial-gradient(ellipse 70% 90% at 22% 0%, var(--pr-solid) 12%, transparent 72%); }
.doc-head::after { content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none; background: radial-gradient(48% 70% at 14% 0%, var(--pr-glow-teal), transparent 70%), radial-gradient(36% 60% at 100% 100%, var(--pr-glow-blue), transparent 70%); }

/* The four policies as one set: the page you are on is lit. */
.doc-set { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 clamp(24px, 3.4vw, 40px); }
.doc-set a { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 16px; border: 1px solid var(--pr-hair-2); border-radius: 999px; background: var(--pr-btn-glass); box-shadow: var(--pr-hl); color: var(--ink-2); font-size: .875rem; font-weight: 500; line-height: 1.2; text-decoration: none; transition: color .2s ease, border-color .2s ease, background-color .2s ease; }
.doc-set a::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--pr-hair-3); }
.doc-set a:hover { color: var(--ink); border-color: var(--pr-hair-teal); background: var(--pr-btn-glass-hover); }
.doc-set a[aria-current="page"] { color: var(--ink); border-color: var(--pr-hair-teal); background: var(--pr-wash-teal); }
.doc-set a[aria-current="page"]::before { background: var(--pr-teal); box-shadow: 0 0 0 3px var(--pr-wash-teal), 0 0 10px var(--pr-glow-teal-2); }

.doc-title { max-width: 10.368em; font-size: var(--fs-article); line-height: 1.02; letter-spacing: -.045em; }
.doc-meta { display: flex; align-items: flex-start; gap: 12px; max-width: 86ch; margin: clamp(16px, 2vw, 22px) 0 0; font-size: .9375rem; line-height: 1.6; color: var(--ink-3); }
.doc-meta::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: calc(.8em - 3.5px); border-radius: 50%; background: var(--pr-teal); box-shadow: 0 0 0 3px var(--pr-wash-teal), 0 0 10px var(--pr-glow-teal-2); }

/* ---------- the reading grid: article, and the contents list (sticky on the right from 1100 px) ---------- */
.doc-grid { padding-top: clamp(28px, 4.5vw, 56px); padding-bottom: clamp(64px, 9vw, 120px); }
.doc-main { min-width: 0; }
/* Phones and tablets: the summary first, then the contents, then the text. */
@media (max-width: 1099px) {
  .doc-main { display: contents; }
  .doc-summary { order: 1; }
  .doc-toc { order: 2; }
  .doc-body { order: 3; }
}
@media (min-width: 1100px) {
  .doc-grid { grid-template-columns: minmax(0, 1fr) 248px; column-gap: clamp(48px, 5vw, 80px); }
  .doc-main { grid-column: 1; grid-row: 1; }
  .doc-summary { margin-bottom: clamp(40px, 4vw, 52px); }
}

/* Contents: each policy section is a numbered rule; the one in view gets the lit edge (aria-current from motion.js). */
.doc-toc { padding: 14px 12px; background: linear-gradient(180deg, var(--pr-panel-hi), var(--pr-panel)); }
.doc-toc .pr-toc-t { padding: 0 8px; }
.doc-toc a { display: flex; align-items: baseline; gap: 10px; min-height: 44px; padding: 12px 10px 12px 8px; font-size: .875rem; line-height: 1.4; }
.doc-n { flex: none; min-width: 2ch; font-family: var(--f-mono); font-size: .75rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink-3); transition: color .2s ease; }
.doc-toc a:hover .doc-n, .doc-toc a[aria-current="location"] .doc-n { color: var(--teal); }
@media (max-width: 1099px) {
  .doc-toc ol { grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); column-gap: 6px; }
  .doc-toc a { border-left: 0; border-radius: 10px; font-size: .8125rem; line-height: 1.45; }
  .doc-toc a[aria-current="location"] { background: none; }
}
@media (max-width: 560px) {
  .doc-set { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc-set a { justify-content: center; padding: 0 12px; }
}

/* ---------- "In short": the summary panel, a console panel with a lit seam ---------- */
.doc-summary { position: relative; padding: clamp(20px, 2.8vw, 28px) clamp(20px, 3vw, 32px) clamp(14px, 2vw, 20px); border: 1px solid var(--pr-hair-teal); border-radius: var(--pr-r-l); background: radial-gradient(90% 120% at 0% 0%, var(--pr-wash-teal-2), transparent 58%), linear-gradient(180deg, var(--pr-panel-hi), var(--pr-panel)); box-shadow: var(--pr-lift), 0 0 90px -50px var(--pr-glow-teal-2); }
.doc-summary::before { content: ""; position: absolute; left: 10%; right: 10%; top: -1px; height: 1px; pointer-events: none; background: linear-gradient(90deg, transparent, var(--pr-seam-hi), transparent); }
.doc-summary h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-family: var(--f-mono); font-size: .875rem; font-weight: 600; line-height: 1.4; letter-spacing: .07em; font-variant-caps: all-small-caps; color: var(--teal-2); }
.doc-summary h2::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--pr-teal); box-shadow: 0 0 0 3px var(--pr-wash-teal), 0 0 12px var(--pr-glow-teal-2); }
.doc-summary ul { list-style: none; margin: 0; padding: 0; }
.doc-summary li { position: relative; padding: 12px 0 12px 22px; color: var(--ink-2); line-height: 1.6; }
.doc-summary li + li { border-top: 1px solid var(--pr-hair); }
.doc-summary li::before { content: ""; position: absolute; left: 3px; top: calc(12px + .8em - 3px); width: 6px; height: 6px; border-radius: 50%; background: var(--pr-teal); box-shadow: 0 0 8px var(--pr-glow-teal-2); }
.doc-summary strong { color: var(--ink); }

/* ---------- the text ---------- */
.doc-body { min-width: 0; font-size: 1.0625rem; line-height: 1.75; }
.doc-body > p, .doc-body li { max-width: 60ch; }   /* about 74 letters a line (1ch is the width of a zero) */
.doc-body > p { margin: 0 0 1.05em; }
.doc-body h2 { display: flex; align-items: center; gap: 14px; max-width: 68ch; margin: clamp(40px, 4.6vw, 60px) 0 18px; padding-top: clamp(26px, 3vw, 34px); border-top: 1px solid var(--pr-hair); font-size: clamp(1.4rem, 1.2rem + .8vw, 1.85rem); line-height: 1.2; letter-spacing: -.03em; scroll-margin-top: calc(var(--header-h) + 24px); }
.doc-body > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.doc-body h2 .num { flex: none; display: inline-grid; place-items: center; min-width: 42px; height: 30px; padding: 0 8px; border: 1px solid var(--pr-hair-teal); border-radius: var(--r-s); background: var(--pr-wash-teal); box-shadow: var(--pr-hl); color: var(--teal); font-family: var(--f-mono); font-size: .8125rem; font-weight: 600; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.doc-body h3 { margin: 30px 0 8px; font-size: 1.125rem; line-height: 1.35; letter-spacing: -.015em; scroll-margin-top: calc(var(--header-h) + 24px); }
.doc-body h2 + h3 { margin-top: 6px; }
.doc-body ul.bullets, .doc-body ol.alpha { display: grid; gap: 10px; margin: 0 0 1.15em; padding: 0; }
.doc-body ul.bullets { list-style: none; }
.doc-body ul.bullets > li { position: relative; padding-left: 26px; }
.doc-body ul.bullets > li::before { content: ""; position: absolute; left: 5px; top: calc(.875em - 3px); width: 6px; height: 6px; border-radius: 50%; background: var(--pr-teal); box-shadow: 0 0 8px var(--pr-glow-teal-2); }
.doc-body ol.alpha { list-style: lower-alpha; padding-left: 1.75em; }
.doc-body ol.alpha > li { padding-left: 6px; }
.doc-body ol.alpha > li::marker { font-family: var(--f-mono); font-size: .875em; font-weight: 600; color: var(--teal); }
.doc-body strong { color: var(--ink); }
.doc-body code { font-size: .86em; }
@media (max-width: 560px) {
  .doc-body { font-size: 1rem; line-height: 1.72; }
  .doc-body h2 { gap: 12px; }
  .doc-body h2 .num { min-width: 38px; height: 28px; font-size: .75rem; }
}
@media print {
  .doc-set, .doc-toc { display: none; }
  .doc-grid { display: block; }
}


/* ================================================================ contact */
.ct-wrap { max-width: calc(var(--wrap) + 2 * var(--gutter)); }
.ct-hero { position: relative; isolation: isolate; overflow: clip; padding: clamp(36px, 6vw, 88px) 0 clamp(40px, 6vw, 80px); }
.ct-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(var(--pr-grid) 1px, transparent 1px), linear-gradient(90deg, var(--pr-grid) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 70% 80% at 30% 0%, var(--pr-solid) 10%, transparent 72%); mask-image: radial-gradient(ellipse 70% 80% at 30% 0%, var(--pr-solid) 10%, transparent 72%); }
.ct-hero::after { content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none; background: radial-gradient(42% 60% at 78% 40%, var(--pr-glow-green), transparent 70%), radial-gradient(46% 60% at 10% 0%, var(--pr-glow-teal), transparent 70%); opacity: .55; }
.ct-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 40px); align-items: center; }
@media (min-width: 900px) { .ct-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 470px); column-gap: clamp(48px, 6vw, 96px); } }
.ct-title { font-size: var(--fs-page); line-height: .98; letter-spacing: -.05em; margin-bottom: clamp(16px, 2vw, 24px); }
.ct-intro .lead { max-width: 34ch; margin: 0; }

/* The WhatsApp card: the one live edge of the page. It shows the message the link opens with. */
.ct-wa { padding: clamp(22px, 3vw, 32px); border-color: var(--pr-hair-2); }
.ct-wa > :not(.pr-live-ring) { position: relative; z-index: 1; }
.ct-wa-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.ct-wa-top h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-family: var(--f-mono); font-size: .875rem; font-weight: 600; line-height: 1.4; letter-spacing: .07em; font-variant-caps: all-small-caps; color: var(--green); }
.ct-wa-top h2::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--pr-green); box-shadow: 0 0 0 3px var(--pr-wash-green), 0 0 12px var(--pr-glow-green); }
.ct-wa-note { margin: 0; font-size: .875rem; color: var(--ink-3); }
.ct-num { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--f-head); font-size: clamp(1.5rem, 1.05rem + 2.2vw, 2.35rem); font-weight: 700; line-height: 1.1; letter-spacing: -.035em; color: var(--ink); text-decoration: none; font-variant-numeric: tabular-nums; white-space: nowrap; }
a.ct-num:hover { color: var(--teal); }
.ct-chat { margin: clamp(20px, 2.6vw, 26px) 0 clamp(18px, 2.4vw, 24px); padding: 18px 16px 14px; border: 1px solid var(--pr-hair); border-radius: var(--pr-r); background: linear-gradient(180deg, var(--pr-panel-lo), var(--pr-panel)); box-shadow: inset 0 1px 0 var(--pr-hair); }
.ct-bubble { position: relative; width: fit-content; max-width: 88%; margin: 0 0 0 auto; padding: 11px 16px 12px; border: 1px solid var(--pr-hair-green); border-radius: 18px 18px 6px 18px; background: linear-gradient(180deg, var(--pr-wash-green), var(--pr-wash-green)), var(--pr-panel-hi); color: var(--ink); font-size: 1rem; line-height: 1.45; box-shadow: 0 14px 30px -20px var(--pr-glow-green); }
.ct-chat figcaption { margin-top: 12px; font-size: .8125rem; line-height: 1.5; color: var(--ink-3); text-align: right; }
.ct-wa .btn { width: 100%; }

/* Email, YouTube, Classes: three panels on hairlines. */
.ct-more { padding: clamp(8px, 2vw, 24px) 0 clamp(72px, 9vw, 120px); }
.ct-cards { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 1px; margin: 0; padding: 0; border: 1px solid var(--pr-hair); border-radius: var(--pr-r-l); background: var(--pr-hair); overflow: hidden; box-shadow: var(--pr-lift); }
.ct-card { display: grid; align-content: start; gap: 6px; min-width: 0; padding: clamp(20px, 2.6vw, 28px); background: linear-gradient(180deg, var(--pr-panel-hi), var(--pr-panel)); }
.ct-ico { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 10px; border: 1px solid var(--pr-hair-teal); border-radius: 12px; background: var(--pr-wash-teal); color: var(--teal); }
.ct-ico svg { width: 20px; height: 20px; }
.ct-card h2 { margin: 0; font-family: var(--f-mono); font-size: .8125rem; font-weight: 600; line-height: 1.4; letter-spacing: .07em; font-variant-caps: all-small-caps; color: var(--ink-3); }
.ct-big { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--f-head); font-size: 1.3rem; font-weight: 700; line-height: 1.25; letter-spacing: -.02em; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
a.ct-big:hover { color: var(--teal); }
.ct-card p { margin: 0; font-size: .9375rem; color: var(--ink-3); }

/* Quick links: where each kind of question goes. */
.ct-routes { margin-top: clamp(48px, 6vw, 72px); }
.ct-routes h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); letter-spacing: -.03em; margin-bottom: 18px; scroll-margin-top: calc(var(--header-h) + 24px); }
.ct-links { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--pr-hair); }
.ct-links li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; align-items: center; min-height: 72px; padding: 14px 0; border-bottom: 1px solid var(--pr-hair); font-size: 1.0625rem; color: var(--ink-2); }
.ct-links .ct-ico { margin: 0; }
.ct-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }


/* ================================================================ 404: a ping that gets no reply */
.nf { position: relative; isolation: isolate; overflow: clip; }
.nf::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(var(--pr-grid) 1px, transparent 1px), linear-gradient(90deg, var(--pr-grid) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 80% 80% at 70% 40%, var(--pr-solid) 8%, transparent 70%); mask-image: radial-gradient(ellipse 80% 80% at 70% 40%, var(--pr-solid) 8%, transparent 70%); }
.nf::after { content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none; background: radial-gradient(40% 50% at 8% 8%, var(--pr-glow-teal), transparent 70%); opacity: .7; }
.nf-hero { padding: clamp(40px, 7vw, 112px) 0 clamp(56px, 8vw, 120px); }
.nf-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 5vw, 48px); align-items: center; }
@media (min-width: 960px) { .nf-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 540px); column-gap: clamp(48px, 6vw, 96px); } }
/* The kit has amber and green kickers; a 404 is a deny: a red LED. */
.nf-kicker { --pr-led: var(--pr-red); --pr-led-wash: var(--pr-wash-red); --pr-led-glow: var(--pr-glow-red); color: var(--err); }
.nf-title { font-size: var(--fs-page); line-height: .98; letter-spacing: -.05em; margin-bottom: clamp(16px, 2vw, 24px); max-width: 7.128em; }
.nf-copy .lead { margin: 0; max-width: 36ch; }
.nf-copy .btn-row { margin-top: clamp(26px, 3vw, 36px); gap: 12px; }

.nf-term { font-size: .9375rem; box-shadow: var(--term-shadow), 0 40px 120px -60px var(--pr-glow-red); }
.nf-term .pr-term-body { padding: 22px 24px 24px; }
.nf-term .pr-line + .pr-line { margin-top: 2px; }
.nf-state { display: inline-flex; align-items: center; gap: 8px; flex: none; font-family: var(--f-mono); font-size: .75rem; font-weight: 600; color: var(--err); }
.nf-state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--pr-red); box-shadow: 0 0 0 3px var(--pr-wash-red), 0 0 10px var(--pr-glow-red); }
.nf-term .pr-bad { font-weight: 600; }
/* Typed characters: step-start, not the kit's steps(1, end). Chrome can end a delayed 1 ms step at progress
   0.9999999, which leaves that character at opacity 0 for good (seen here: the end of a long path never showed). */
html.pr-motion .nf-term.pr-on .pr-ch { animation-timing-function: step-start; }
@media (max-width: 560px) {
  .nf-term { font-size: .8125rem; }
  .nf-term .pr-term-body { padding: 16px 16px 18px; }
  .nf-copy .btn-row .btn { flex: 1 1 100%; }
}
