/* Compliance landing pages.
 *
 * Standalone static HTML, same brand palette as legal.css, served straight from
 * public/. They never load the app bundle, so the font stack is the platform's
 * own UI face: no network request, no layout shift, and no dependency on the
 * content-hashed webfont files a static stylesheet cannot reference stably.
 *
 * Almost no JavaScript on these pages. The app's CSP is script-src 'self'
 * with no inline allowance, and a page whose whole job is to be read by a
 * crawler and an owner on a phone has nothing to gain from a bundle. The two
 * same-origin exceptions are deliberate and small: measure.js (the pageview
 * beacon) and inquiry-form.js (the on-page inquiry form, which posts to the
 * same intake endpoint as the homepage so a reader converts here instead of
 * riding a full SPA load to /#contact). Without JavaScript both pages fall
 * back to exactly the old behaviour: the Send an inquiry button to /#contact.
 *
 * Voice law applies to every rendered character here, including CSS generated
 * content: commas, never em dashes. Check ::before and ::after when sweeping.
 */

:root {
  color-scheme: dark;
  --bg: #08090b;
  --bg-raised: #0e1114;
  --bg-sunk: #060709;
  --text: #e9edef;
  --muted: #9aa4ac;
  --line: rgba(205, 220, 230, 0.14);
  --line-strong: rgba(214, 228, 237, 0.28);
  --link: #cfe0ea;
  --accent: #d7e8f2;
  --flag: #e8c48a;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --measure: 40rem;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f7f8f9;
    --bg-raised: #ffffff;
    --bg-sunk: #eef1f3;
    --text: #14181b;
    --muted: #56616a;
    --line: rgba(20, 28, 34, 0.13);
    --line-strong: rgba(20, 28, 34, 0.24);
    --link: #1d4b65;
    --accent: #1d4b65;
    --flag: #7a5411;
  }
}

html[data-polarity-theme="dark"] { --flag: #e8c48a; }
html[data-polarity-theme="light"] { --flag: #7a5411; }

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

main code { overflow-wrap: anywhere; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 2rem 1.25rem 5rem;
}

@media (min-width: 48rem) {
  main { padding: 3.5rem 2rem 7rem; }
}

a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { color: var(--accent); }

.masthead-return {
  display: inline-block;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  margin-bottom: 2.5rem;
}
.masthead-return:hover { color: var(--text); }

.label {
  font-size: 0.75rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(1.9rem, 5.5vw, 2.75rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0 0 1rem;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 600;
  margin: 3.25rem 0 1rem;
  text-wrap: balance;
}

h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
}

p { margin: 0 0 1.15rem; }

.lead {
  font-size: clamp(1.0625rem, 2.4vw, 1.1875rem);
  color: var(--text);
  margin-bottom: 1.75rem;
}

strong { font-weight: 600; }

/* The self-test. The highest-value block on the page: it hands the reader a
 * check they can run on their own equipment in a minute, before we ask them
 * for anything. It should read like an instrument, not an advertisement. */
.selftest {
  background: var(--bg-raised);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 1.5rem 1.35rem;
  margin: 2rem 0 2.5rem;
}

@media (min-width: 48rem) {
  .selftest { padding: 1.85rem 1.75rem; }
}

.selftest .label { color: var(--accent); }
.selftest h2 { margin-top: 0; }

.selftest ol {
  margin: 0 0 1.15rem;
  padding-left: 1.2rem;
}
.selftest li { margin-bottom: 0.6rem; }
.selftest li:last-child { margin-bottom: 0; }

.readout {
  border-top: 1px solid var(--line);
  margin-top: 1.25rem;
  padding-top: 1.15rem;
}
.readout p { margin-bottom: 0.7rem; }
.readout p:last-child { margin-bottom: 0; }

.readout b {
  font-family: var(--mono);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--flag);
}

/* The rule itself, quoted plainly with its citation. This block is the
 * credibility engine: it is a public fact anyone can check, which is exactly
 * why it outperforms anything we could claim about ourselves. */
.rule {
  background: var(--bg-sunk);
  border-left: 3px solid var(--line-strong);
  border-radius: 0;
  padding: 1.15rem 1.25rem;
  margin: 1.5rem 0 1.75rem;
}
.rule p:last-child { margin-bottom: 0; }

.cite {
  display: block;
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
  color: var(--muted);
  margin-top: 0.6rem;
}

.cards {
  display: grid;
  gap: 0.9rem;
  margin: 1.5rem 0 2rem;
}

@media (min-width: 40rem) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.15rem 1.2rem;
}
.card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.6;
}

/* What the work will not do. Kept as prominent as the capabilities on purpose:
 * an owner who has been sold to before is reassured by the limits far more
 * than by the promises, and everything here is bound by the product's own
 * never-say list. */
.honest {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.35rem 1.25rem;
  margin: 1.5rem 0 2rem;
}
.honest ul {
  margin: 0;
  padding-left: 1.15rem;
}
.honest li { margin-bottom: 0.55rem; }
.honest li:last-child { margin-bottom: 0; }

.steps {
  margin: 1.25rem 0 2rem;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 2.25rem;
  margin-bottom: 1.05rem;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.08rem;
  width: 1.55rem;
  height: 1.55rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--muted);
}

.cta {
  background: var(--bg-raised);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 1.75rem 1.35rem;
  margin: 3rem 0 0;
  text-align: center;
}
@media (min-width: 48rem) {
  .cta { padding: 2.25rem 2rem; }
}
.cta h2 { margin: 0 0 0.75rem; }
.cta p { color: var(--muted); }

.btn {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.8rem 1.6rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.btn:hover {
  border-color: var(--accent);
  background: rgba(215, 232, 242, 0.06);
  color: var(--text);
}

.alt-contact {
  font-size: 0.9375rem;
  color: var(--muted);
  margin: 1rem 0 0;
}

/* The on-page inquiry form (inquiry-form.js). The [hidden] guard exists
 * because .inquiry sets display: grid, and an author display value silently
 * DEFEATS the hidden attribute's UA default, so without this rule the no-JS
 * fallback state would render the form and the button together. */
[hidden] { display: none !important; }

.inquiry {
  margin-top: 1.25rem;
  display: grid;
  gap: 0.95rem;
  text-align: left;
}

.field label {
  display: block;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--bg-sunk);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0.7rem 0.85rem;
  color: var(--text);
  font: inherit;
  line-height: 1.5;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.field textarea { resize: vertical; min-height: 6.5rem; }

/* The submit control is a <button>, and buttons do not inherit the body font
 * the way the anchor version of .btn did. */
.inquiry .btn { justify-self: center; cursor: pointer; font-family: inherit; }
.inquiry .btn:disabled { opacity: 0.6; cursor: default; }

/* Honeypot: off-screen rather than display:none, so it stays fillable by the
 * automation it exists to catch while never entering the tab order. */
.hp {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  color: var(--flag);
  font-size: 0.9375rem;
  margin: 0;
}

.cta-trust {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 1.15rem 0 0;
}

/* Replaces the form after a successful send; carries the server's own
 * confirmation sentence. */
.sent {
  margin-top: 1.25rem;
  text-align: left;
  background: var(--bg-sunk);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 1.1rem 1.2rem;
}
.sent-title { font-weight: 600; margin-bottom: 0.4rem; }
.sent p:last-child { margin-bottom: 0; }

.pagefoot {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--muted);
}
.pagefoot p { margin-bottom: 0.6rem; }
.pagefoot a { color: var(--muted); }
.pagefoot a:hover { color: var(--text); }

.sibling {
  font-size: 0.9375rem;
  color: var(--muted);
  margin: 2rem 0 0;
  padding: 1rem 1.15rem;
  border: 1px dashed var(--line);
  border-radius: 10px;
}
.sibling p { margin: 0; }

/* Verbatim regulation text. The quote is the most load-bearing element on a
   compliance page, so it is set apart deliberately rather than left to browser
   defaults: a reader must be able to see at a glance where our words stop and
   the regulator's begin. */
.rule blockquote {
  margin: 1rem 0;
  padding: 0.75rem 0 0.75rem 1.1rem;
  border-left: 2px solid currentColor;
  opacity: 0.92;
}

.rule blockquote p {
  margin: 0 0 0.6rem;
}

.rule blockquote p:last-child {
  margin-bottom: 0;
}
