/* Help and legal pages (SMESH prototype): the How it works frame (.intro, .sec-head, .qa) plus a readable text column and the contact form */
.info-page{padding-bottom:96px}
.info-page .intro h1{max-width:20ch}
.info-page .sec{padding-top:72px}
.info-page .sec:first-of-type{padding-top:56px}
.prose{max-width:62ch;display:grid;gap:14px;color:var(--soft);font-size:18px;line-height:1.6}
.prose h2{color:var(--text);font-size:22px;font-weight:800;letter-spacing:-.01em;margin-top:18px}
.prose h3{color:var(--text);font-size:18px;font-weight:800;margin-top:8px}
.prose p,.prose ul{margin:0}
.prose ul{padding-inline-start:22px;display:grid;gap:6px}
.prose a{color:var(--text);font-weight:700;text-decoration:underline;text-decoration-color:var(--lime);text-decoration-thickness:1.5px;text-underline-offset:.25em}
.prose blockquote{margin:0;padding:14px 18px;border-inline-start:3px solid var(--line-2);background:var(--surface);border-radius:0 var(--r-m) var(--r-m) 0;color:var(--text)}
.src{display:flex;flex-wrap:wrap;gap:6px 14px;font-weight:700;color:var(--text)}
.info-acts{display:flex;flex-wrap:wrap;gap:12px;margin-top:28px}
.info-acts .btn{min-height:52px;padding:0 26px;font-size:17px}

/* notices: the pre-release line, safety, prototype placeholders */
.callout{display:flex;gap:12px;align-items:flex-start;max-width:62ch;padding:16px 18px;border-radius:var(--r-m);background:var(--surface);border:1px solid var(--line-2);color:var(--text);font-size:16px;line-height:1.5}
.callout .icon{flex:none;width:20px;height:20px;margin-top:2px;color:var(--muted)}
.callout b{font-weight:800}
.placeholder{display:grid;gap:8px;max-width:62ch;padding:24px;border-radius:var(--r-xl);border:1px dashed var(--line-2);color:var(--soft)}
.placeholder b{color:var(--text);font-size:18px}
.placeholder p{margin:0}

/* FAQ groups */
.qa-group + .qa-group{margin-top:56px}
.qa-group h2{font-size:clamp(26px,2.4vw,34px);margin-bottom:16px}
.qa-a a{color:var(--text);font-weight:700;text-decoration:underline;text-decoration-color:var(--lime);text-decoration-thickness:1.5px;text-underline-offset:.25em}

/* contact form (same fields as the rest of the app) */
.ct{max-width:640px;display:grid;gap:20px}
.field{display:grid;gap:8px;min-width:0}
.lab{font-size:16px;font-weight:700}
.inp{width:100%;min-height:52px;padding:0 16px;border-radius:var(--r-s);border:1px solid var(--line-field,rgba(242,245,238,.4));background:var(--surface-2);color:var(--text);font:inherit;font-size:17px;caret-color:var(--lime)}
textarea.inp{min-height:180px;padding:14px 16px;resize:vertical;line-height:1.5}
.inp:focus,.inp:focus-visible{outline:none;border-color:var(--lime);box-shadow:0 0 0 1px var(--lime)}
.inp[aria-invalid="true"]{border-color:var(--err)}
select.inp{appearance:none;background-image:linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%);background-position:calc(100% - 22px) 50%,calc(100% - 16px) 50%;background-size:6px 6px;background-repeat:no-repeat;padding-inline-end:44px}
.hint{color:var(--muted);font-size:16px;font-weight:600}
.hint.bad{color:var(--err)}
.err{display:flex;gap:6px;align-items:flex-start;color:var(--err);font-size:16px;font-weight:700;line-height:1.4;margin:0}
.err[hidden],[hidden]{display:none!important}
.err .icon{width:16px;height:16px;margin-top:3px}
.ct-alert{display:flex;gap:10px;align-items:flex-start;padding:14px 16px;border-radius:var(--r-m);border:1px solid rgba(255,184,168,.45);color:var(--err);font-weight:700}
.ct-alert .icon{width:18px;height:18px;margin-top:2px;flex:none}
.ct-alert:focus{outline:none}
.ct-who{color:var(--muted);font-size:16px;font-weight:600;margin:0}
.ct-who bdi{color:var(--text);font-weight:700}
.ct-fine{color:var(--muted);font-size:15px;line-height:1.5;margin:0;max-width:62ch}
.ct-send{display:flex;justify-content:flex-start}
.ct-send .btn{min-height:52px;padding:0 26px;font-size:16px}
.ct-ok{display:grid;gap:12px;justify-items:start;max-width:640px;padding:28px;border-radius:var(--r-xl);border:1px solid var(--line-2)}
.ct-ok h2{font-size:24px;font-weight:800}
.ct-ok h2:focus{outline:none}
.ct-ok p{margin:0;color:var(--soft)}
.ct-ok .ref{color:var(--text);font-weight:700;font-variant-numeric:tabular-nums}
.spin{width:16px;height:16px;border-radius:50%;border:2px solid currentColor;border-right-color:transparent;animation:info-spin .8s linear infinite;display:inline-block}
@keyframes info-spin{to{transform:rotate(360deg)}}
.proto{margin-top:64px;border-top:1px solid var(--line);padding-top:12px}
.proto summary{list-style:none;display:flex;align-items:center;justify-content:space-between;min-height:44px;cursor:pointer;color:var(--muted);font-weight:700;font-size:15px}
.proto summary::-webkit-details-marker{display:none}
.proto .acts{display:flex;flex-wrap:wrap;gap:8px;padding:8px 0}
.proto .btn{min-height:44px;font-size:15px}

@media (max-width:760px){
  .prose{font-size:17px}
  .info-page .sec{padding-top:48px}
  .info-acts .btn{flex:1 1 auto}
  .ct-send .btn{width:100%}
}
@media (prefers-reduced-motion:reduce){.spin{animation-duration:1.6s}}
.info-page .toc{margin:0 0 48px}
.info-page .sec:first-of-type:has(.toc){padding-top:40px}

/* long pages: a quiet "Back to top" link after each group (GOV.UK); no floating button */
.totop{display:inline-flex;align-items:center;gap:6px;min-height:44px;margin-top:12px;color:var(--muted);font-weight:700;font-size:16px;text-decoration:none;border-radius:999px;padding-inline-end:8px}
.totop .icon{width:18px;height:18px}
@media (hover:hover) and (pointer:fine){.totop:hover{color:var(--text)}}
/* FAQ "On this page" list beside the answers on wide screens (Stripe, MDN); marks the group you're reading, white not lime */
.otp{display:none}
@media (min-width:1200px){
  .faq-lay{display:grid;grid-template-columns:minmax(0,832px) 240px;gap:64px;align-items:start}
  .faq-main .toc{display:none}
  .otp{display:block;position:sticky;top:calc(var(--hdr-h,76px) + 24px)}
  .otp-h{font-size:15px;font-weight:700;color:var(--muted);margin:0 0 10px}
  .otp ul{list-style:none;margin:0;padding:0;border-inline-start:1px solid var(--line-2)}
  .otp a{display:flex;justify-content:space-between;gap:12px;min-height:40px;align-items:center;padding:0 0 0 16px;margin-inline-start:-1px;border-inline-start:2px solid transparent;color:var(--muted);font-weight:700;font-size:16px;text-decoration:none}
  .otp a span{font-weight:600;font-variant-numeric:tabular-nums}
  .otp a[aria-current="true"]{color:var(--text);border-inline-start-color:var(--text)}
}
@media (hover:hover) and (pointer:fine){.otp a:not([aria-current]):hover{color:var(--text)}}

/* legal headings 2026-11-03: the same section heading as the FAQ and How it works */
.prose h2{font-family:"Anton","Noto Kufi Arabic",sans-serif;font-weight:400;text-transform:uppercase;letter-spacing:.005em;line-height:1.05;font-size:clamp(24px,2.2vw,30px);margin-top:28px}

/* round 2 headings: one section-heading size (How it works) on FAQ and legal pages; page buttons 52/16 */
.qa-group h2,.prose h2{font-size:clamp(32px,3vw,44px)}
.info-acts .btn{font-size:16px}
