/* VMARAS public site (Batch 8): landing, request access, verify.
   One accent colour, light and dark from prefers-color-scheme, system fonts. */
:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --surface: #f3f6f8;
  --text: #14202a;
  --muted: #475766;
  --border: #d3dce3;
  --accent: #0a6378;
  --accent-ink: #ffffff;
  --accent-soft: #e2eff2;
  --ok: #1c6b3a;
  --bad: #a3241b;
  --warn: #7a5300;
  --radius: 10px;
  --wrap: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f151a;
    --surface: #18212a;
    --text: #e6ecf1;
    --muted: #a8b5c0;
    --border: #2b3844;
    --accent: #72c9dc;
    --accent-ink: #062530;
    --accent-soft: #15313a;
    --ok: #6fd39a;
    --bad: #ff8f86;
    --warn: #f0c35a;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 2.9rem); }
h2 { font-size: clamp(1.45rem, 1.1rem + 1.2vw, 1.9rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 12px; top: 12px; z-index: 10; background: var(--bg); padding: 8px 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-header { border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.brand { display: inline-flex; align-items: baseline; gap: 8px; color: var(--text); text-decoration: none; }
.brand-name { font-weight: 800; letter-spacing: .12em; font-size: 1.15rem; }
.brand-by { color: var(--muted); font-size: .8rem; }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin: 0; padding: 0; }
.site-nav a { color: var(--text); text-decoration: none; font-size: .95rem; }
.site-nav a:hover { text-decoration: underline; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
@media (max-width: 560px) { .nav-optional { display: none; } }

/* Buttons */
.btn { display: inline-block; padding: 12px 22px; border-radius: 8px; font-weight: 650; font-size: 1rem; text-decoration: none; border: 2px solid var(--accent); line-height: 1.2; cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-secondary { background: transparent; color: var(--accent); }
.btn-secondary:hover { background: var(--accent-soft); }
.site-nav .btn { padding: 8px 14px; font-size: .92rem; color: var(--accent-ink); }

/* Sections */
main { display: block; }
.section { padding: 64px 0; }
.section + .section { border-top: 1px solid var(--border); }
.section-alt { background: var(--surface); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46rem; }
.hero { padding: 72px 0 56px; }
.hero h1 { max-width: 22ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 10px; }
.small { font-size: .9rem; color: var(--muted); }
@media (max-width: 560px) { .section { padding: 44px 0; } .hero { padding: 44px 0 36px; } }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.section-alt .card { background: var(--bg); }
.steps { list-style: none; padding: 0; margin: 28px 0 0; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 800; margin-bottom: 12px; }
.steps p, .card p { margin: 0; color: var(--muted); }

.split { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); margin-top: 24px; }
.ticks { margin: 0; padding-left: 1.2em; }
.ticks li { margin-bottom: .55em; }
.roadmap { border-style: dashed; }
.roadmap h3::after { content: ""; }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); margin-bottom: 10px; }
.tag-muted { background: var(--surface); color: var(--muted); border: 1px solid var(--border); }

.links { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }

/* FAQ */
.faq details { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 10px; background: var(--bg); }
.faq summary { cursor: pointer; font-weight: 650; }
.faq details[open] summary { margin-bottom: 8px; }
.faq details p:last-child { margin-bottom: 0; }

/* Forms */
.form { max-width: 640px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 650; margin-bottom: 6px; }
.field .hint { display: block; font-size: .9rem; color: var(--muted); margin-top: 4px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--bg);
  border: 1.5px solid var(--border); border-radius: 8px; padding: 11px 12px; min-height: 46px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: 3px solid var(--accent-soft); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: var(--bad); }
.error { color: var(--bad); font-size: .92rem; margin-top: 6px; }
.notice { border: 1px solid var(--border); border-left: 4px solid var(--accent); background: var(--surface); padding: 14px 16px; border-radius: 8px; margin-bottom: 20px; }
.notice.bad { border-left-color: var(--bad); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.optional { font-weight: 400; color: var(--muted); }

/* Verify page */
.drop { display: block; border: 2px dashed var(--border); border-radius: var(--radius); padding: 28px 16px; text-align: center; cursor: pointer; background: var(--surface); }
.drop:hover, .drop.over { border-color: var(--accent); }
.drop input { display: block; margin: 12px auto 0; max-width: 100%; }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.inline-form .field { flex: 1 1 260px; margin-bottom: 0; }
.result { margin-top: 20px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.result-head { padding: 12px 16px; font-weight: 800; }
.result-head.pass { background: var(--accent-soft); color: var(--ok); }
.result-head.warn { background: var(--surface); color: var(--warn); }
.result-head.fail { background: var(--surface); color: var(--bad); }
.result-body { padding: 8px 16px 16px; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: .95rem; }
.kv span:last-child { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; text-align: right; overflow-wrap: anywhere; }
.st-pass { color: var(--ok); } .st-fail { color: var(--bad); } .st-na { color: var(--warn); }
.notes { color: var(--warn); font-size: .92rem; margin-top: 10px; }
.receipt { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .82rem; border: 1px solid var(--border); border-radius: 6px; padding: 8px; margin-top: 8px; overflow-wrap: anywhere; }
.receipt.bad { border-color: var(--bad); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0 40px; color: var(--muted); font-size: .92rem; }
.site-footer .wrap { display: grid; gap: 14px; }
.site-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; }
.site-footer a { color: var(--muted); }
.patent { color: var(--text); font-weight: 650; margin: 0; }

/* Demo loader */
.loader { text-align: center; padding: 72px 0; }
.spinner { width: 34px; height: 34px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; margin: 0 auto 18px; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }
.footer-line { margin: 0; }
.form-foot { margin-top: 14px; }
.field.check label { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.field.check input[type="checkbox"] { width: 20px; height: 20px; min-height: 0; margin: 3px 0 0; padding: 0; flex: 0 0 auto; accent-color: var(--accent); }
.site-nav a.btn[aria-current="page"] { text-decoration: none; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
