/* The FAQ and contact pages (owner, 2026-12-02: mock-up v1,
 * https://claude.ai/artifact/G9TAgs74gabBZ7drvNieem).
 *
 * Loaded only by templates/public/faq.html and contact.html, after site.css,
 * whose tokens and shared parts (.wrap, .sec, .h1/.h2/.h3, .lead, .head,
 * .btn, .tag, .frame, .faq, .page-hero, .band) it builds on. Every rule names
 * one of these pages' own classes (`sp-`) or hooks (`data-sp-`), so it
 * restyles nothing elsewhere. static/js/support.js adds the FAQ's search and
 * marks the group being read; without it the page is complete (the search
 * box is served `hidden`).
 */

.sp-ic { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ── FAQ: search and group chips under the headline ── */
.sp-search { position: relative; width: 100%; max-width: 560px; margin-top: 30px; }
.sp-search input { width: 100%; height: 54px; padding: 0 20px 0 50px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); color: var(--text); font: inherit; font-size: 16px; box-shadow: var(--shadow); outline: none; transition: border-color .2s, box-shadow .2s; }
.sp-search input::placeholder { color: var(--faint); }
.sp-search input:focus { border-color: var(--ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 16%, transparent), var(--shadow); }
.sp-search .sp-ic { position: absolute; left: 19px; top: 50%; margin-top: -9px; color: var(--muted); }
.sp-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.sp-chips a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 14px; font-weight: 500; color: var(--muted); transition: color .18s, border-color .18s; }
.sp-chips a:hover { color: var(--text); border-color: var(--line-2); }
.sp-chips b, .sp-idx b { font-weight: 500; font-size: 12.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
.sp-note { margin-top: 24px; }

/* ── FAQ: the groups beside a quiet index ── */
.sp-qa { display: grid; gap: 40px; }
.sp-idx { display: none; }
@media (min-width: 960px) {
  .sp-qa { grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: 72px; }
  .sp-idx { display: block; position: sticky; top: 112px; align-self: start; }
  .sp-idx ol { display: grid; gap: 2px; border-left: 1px solid var(--line); }
  .sp-idx a { display: flex; justify-content: space-between; gap: 10px; margin-left: -1px; padding: 8px 0 8px 16px; border-left: 2px solid transparent; font-size: 14.5px; color: var(--muted); transition: color .18s, border-color .25s; }
  .sp-idx a:hover { color: var(--text); }
  .sp-idx a.sp-on { color: var(--text); font-weight: 600; border-color: var(--ink); }
}
.sp-group { scroll-margin-top: 110px; }
.sp-groups { display: grid; gap: clamp(40px, 5vw, 64px); }
.sp-group-h { display: flex; align-items: center; gap: 12px; }
.sp-group-h .h3 { font-size: 1.35rem; }
.sp-group .faq { max-width: none; margin: 16px 0 0; }
.sp-group mark { background: var(--blue-pale); color: inherit; border-radius: 3px; padding: 0 1px; }
.sp-empty { margin-top: 8px; padding: 22px; border: 1px dashed var(--line-2); border-radius: 16px; color: var(--muted); text-align: center; }

/* still have questions */
.sp-still { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px 20px; align-items: center; padding: clamp(20px, 3vw, 30px); }
.sp-still h2 { font-family: var(--display); font-weight: 600; font-size: 1.3rem; }
.sp-still p { margin-top: 4px; color: var(--muted); font-size: 15px; }
.sp-still p a { color: var(--text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
@media (max-width: 760px) { .sp-still { grid-template-columns: auto minmax(0, 1fr); } .sp-still .btn { grid-column: 1 / -1; justify-self: start; } }
.sp-tile { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--panel); color: var(--text); flex: none; }
.sp-tile.sp-dark { background: var(--ink); color: var(--on-ink); }
.sp-tile.sp-blue { background: var(--blue-tint); color: var(--blue); }
.sp-tile .sp-ic { width: 17px; height: 17px; }

/* ── contact: words and facts beside the form ── */
.sp-ct { display: grid; gap: clamp(36px, 5vw, 64px); align-items: start; }
@media (min-width: 980px) { .sp-ct { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); } }
.sp-ct-copy { display: flex; flex-direction: column; align-items: flex-start; }
.sp-facts { width: 100%; margin-top: 34px; border-top: 1px solid var(--line); }
.sp-facts li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.sp-facts .sp-tile { grid-row: span 2; }
.sp-facts h2 { font-size: 13px; font-weight: 500; color: var(--muted); }
.sp-facts p, .sp-facts a { font-weight: 600; font-size: 15.5px; overflow-wrap: anywhere; }
.sp-facts a { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; }
.sp-try { width: 100%; margin-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 12px 18px; flex-wrap: wrap; padding: 18px 20px; border-radius: 16px; border: 1px dashed var(--line-2); }
.sp-try b { display: block; font-weight: 600; }
.sp-try span { font-size: 14px; color: var(--muted); }

/* the form */
.sp-form { position: relative; padding: clamp(22px, 3.4vw, 36px); }
.sp-form .h3 { font-size: 1.4rem; }
.sp-req { margin-top: 4px; font-size: 14px; color: var(--muted); }
.sp-alert { margin-top: 20px; padding: 12px 16px; border-radius: 12px; background: var(--red-tint); color: var(--red); font-size: 14.5px; font-weight: 500; }
.sp-fields { display: grid; gap: 18px; margin-top: 24px; }
@media (min-width: 620px) { .sp-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sp-full { grid-column: 1 / -1; } }
.sp-field { display: grid; gap: 6px; min-width: 0; border: 0; padding: 0; margin: 0; }
.sp-field > label, .sp-field > legend { font-size: 14px; font-weight: 500; padding: 0; }
.sp-field > legend { margin-bottom: 6px; }
.sp-field input, .sp-field textarea { width: 100%; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--card); color: var(--text); font: inherit; font-size: 15px; outline: none; transition: border-color .2s, box-shadow .2s; }
.sp-field textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.sp-field input:focus, .sp-field textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 16%, transparent); }
.sp-field.sp-bad input, .sp-field.sp-bad textarea { border-color: var(--red); }
.sp-err { font-size: 13.5px; font-weight: 500; color: var(--red); }
.sp-topics { display: flex; flex-wrap: wrap; gap: 8px; }
.sp-topics label { position: relative; cursor: pointer; }
.sp-topics input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.sp-topics span { display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; font-weight: 500; color: var(--muted); transition: color .18s, background .18s, border-color .18s; }
.sp-topics label:hover span { color: var(--text); }
.sp-topics input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.sp-topics input:focus-visible + span { box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 22%, transparent); }
.sp-captcha { margin-top: 20px; }
.sp-consent { margin-top: 20px; font-size: 14px; color: var(--muted); }
.sp-consent a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.sp-send { margin-top: 22px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.sp-send small { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.sp-send small .sp-ic { width: 15px; height: 15px; }
.sp-trap { position: absolute; left: -9999px; top: 0; width: 1px; height: 1px; overflow: hidden; }
.sp-sent { display: grid; justify-items: center; gap: 12px; padding: clamp(30px, 5vw, 56px) clamp(22px, 3.4vw, 36px); text-align: center; }
.sp-sent .sp-ok { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--green-tint); color: var(--green); }
.sp-sent .sp-ok .sp-ic { width: 26px; height: 26px; stroke-width: 2.4; }
.sp-sent p { color: var(--muted); max-width: 380px; }

/* before you write */
.sp-before { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 28px; }
@media (max-width: 760px) { .sp-before { grid-template-columns: minmax(0, 1fr); } }
.sp-before a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px 14px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); transition: border-color .2s, transform .2s; }
.sp-before a:hover { border-color: var(--line-2); transform: translateY(-2px); }
.sp-before .sp-tile { grid-row: span 2; }
.sp-before b { font-weight: 600; }
.sp-before small { color: var(--muted); font-size: 13.5px; }
.sp-before .sp-go { grid-row: 1 / 3; grid-column: 3; color: var(--muted); }
