/* MetaRef Audit — minimal */
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-weight: 500; font-display: swap; src: url("../fonts/playfair-display-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 500; font-display: swap; src: url("../fonts/playfair-display-latin-500-italic.woff2") format("woff2"); }

:root {
  /* CheckRef family palette (sampled from checkref.org) */
  --bg: #f4f8fd;
  --surface: #ffffff;
  --soft: #eef3f9;
  --ink: #0a1330;
  --text: #3d4f6f;
  --muted: #5d6b86;
  --line: #dde5f0;
  --accent: #1ab8d4;          /* cyan: large text, marks, fills */
  --accent-text: #0e7d99;     /* darker teal: small text and links */
  --accent-soft: #cfeef6;
  --btn-from: #2ac5e3; --btn-to: #1ab8d4; --btn-ink: #0d1229;
  --ok: #15803d;     --ok-soft: #e3f6ea;
  --info: #1d4ed8;   --info-soft: #e6edfd;
  --warn: #a16207;   --warn-soft: #fcf3dc;
  --bad: #b91c1c;    --bad-soft: #fdeaea;
  --none: #64748b;   --none-soft: #edf1f6;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}
html[data-theme="dark"] {
  --bg: #0a1330; --surface: #101b3d; --soft: #0d1838; --ink: #eef3fb; --text: #c3cde0; --muted: #93a0bb; --line: #213058;
  --accent: #3fcfe8; --accent-text: #5fd7ec; --accent-soft: rgba(26, 184, 212, .14);
  --ok: #4ade80; --ok-soft: rgba(74, 222, 128, .12); --info: #7aa7ff; --info-soft: rgba(122, 167, 255, .13);
  --warn: #f2c14e; --warn-soft: rgba(242, 193, 78, .13); --bad: #ff8a80; --bad-soft: rgba(255, 138, 128, .13);
  --none: #9aa6c0; --none-soft: rgba(154, 166, 192, .12);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; font: 16px/1.65 var(--sans); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--accent-text); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { color: var(--ink); margin: 0 0 .5em; line-height: 1.15; text-wrap: balance; }
h1 { font: 500 clamp(2.5rem, 6vw, 4.3rem)/1.06 var(--serif); letter-spacing: -.015em; }
h2 { font: 500 clamp(1.7rem, 3vw, 2.3rem)/1.15 var(--serif); letter-spacing: -.01em; }
h1 em, h2 em { color: var(--accent); font-style: italic; }
h3 { font-size: 1.02rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { width: min(1080px, calc(100% - 40px)); margin-inline: auto; }
.narrow { width: min(720px, calc(100% - 40px)); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 99; background: var(--ink); color: #fff; padding: 10px 16px; }
.skip:focus { left: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; }
.mark { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(150deg, var(--btn-from), var(--btn-to)); color: #fff; display: grid; place-items: center; font: 500 14px var(--serif); flex: none; box-shadow: 0 6px 16px -6px rgba(26, 184, 212, .6); }
.brand { font: 500 1.3rem var(--serif); }
.links { display: flex; gap: 28px; }
.links a { color: var(--muted); text-decoration: none; font-size: .94rem; }
.links a:hover, .links a[aria-current="page"] { color: var(--ink); }
.actions { display: flex; align-items: center; gap: 8px; }
@media (max-width: 760px) { .links { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 42px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; font-size: .94rem; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn:hover { border-color: var(--ink); color: var(--ink); }
.btn-primary { background: linear-gradient(150deg, var(--btn-from), var(--btn-to)); border-color: transparent; color: var(--btn-ink); box-shadow: 0 8px 22px -10px rgba(26, 184, 212, .7); }
.btn-primary:hover { color: var(--btn-ink); border-color: transparent; filter: brightness(1.04); box-shadow: 0 12px 26px -10px rgba(26, 184, 212, .8); }
.btn-accent { background: linear-gradient(150deg, var(--btn-from), var(--btn-to)); border-color: transparent; color: var(--btn-ink); }
.btn-accent:hover { color: var(--btn-ink); border-color: transparent; filter: brightness(1.04); }
.btn-ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--ink); border-color: transparent; background: var(--soft); }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); cursor: pointer; }
.icon-btn svg { width: 17px; height: 17px; }
.btn-sm { height: 36px; padding: 0 14px; font-size: .9rem; }
.link { background: none; border: 0; padding: 0; color: var(--accent-text); cursor: pointer; font-weight: 500; }

/* Landing */
.hero { padding: clamp(64px, 10vw, 120px) 0 clamp(48px, 7vw, 80px); text-align: center; background: radial-gradient(700px 360px at 50% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%); }
.pill { display: inline-flex; align-items: center; gap: 9px; padding: 7px 16px; border-radius: 999px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); color: var(--accent-text); font-size: .88rem; font-weight: 600; margin: 0 0 26px; }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: #5bd29e; box-shadow: 0 0 8px #5bd29e; }
.micro { font-size: .86rem; color: var(--muted); margin-top: 16px; }
.hero .lede { font-size: clamp(1.05rem, 1.7vw, 1.2rem); color: var(--muted); max-width: 34rem; margin: 0 auto 32px; }
.url { display: flex; gap: 6px; max-width: 540px; margin: 0 auto; padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 10px 30px -18px rgba(10, 19, 48, .25); }
.url:focus-within { border-color: var(--accent); }
.url input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 0 12px; font-size: 1rem; }
.url-note { font-size: .86rem; color: var(--muted); margin-top: 14px; }
.url-error { color: var(--bad); font-size: .86rem; margin: 8px 0 0; }
.url-error:empty { display: none; }
@media (max-width: 520px) { .url { flex-direction: column; } .url input { height: 44px; } }
.paths { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin-top: 28px; font-size: .94rem; }
.paths a { text-decoration: none; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.paths a:hover { color: var(--ink); border-color: var(--ink); }

.shot { max-width: 760px; margin: 0 auto; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); box-shadow: 0 40px 80px -50px rgba(10, 19, 48, .35); text-align: left; }
.shot-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: .86rem; color: var(--muted); }
.shot-bar b { color: var(--ink); font-weight: 600; }
.counts { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.counts div { padding: 16px 20px; }
.counts div + div { border-left: 1px solid var(--line); }
.counts b { display: block; font: 500 1.6rem/1.1 var(--serif); color: var(--ink); }
.counts span { font-size: .8rem; color: var(--muted); }
@media (max-width: 560px) { .counts { grid-template-columns: 1fr 1fr; } .counts div:nth-child(3) { border-left: 0; } .counts div:nth-child(n+3) { border-top: 1px solid var(--line); } }
.find { padding: 18px 20px 20px; }
.find-t { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.find-t b { color: var(--ink); }
.ev { list-style: none; margin: 0 0 12px; padding: 0; }
.ev li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px dashed var(--line); font-size: .9rem; }
.ev li span:first-child { color: var(--ink); }
.ev small { color: var(--muted); display: block; font-size: .78rem; }
.fixline { font-size: .88rem; color: var(--muted); margin: 0; }
.fixline b { color: var(--ink); font-weight: 600; }

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 600; padding: 3px 9px; border-radius: 99px; white-space: nowrap; background: var(--none-soft); color: var(--none); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.b-ok { background: var(--ok-soft); color: var(--ok); }
.b-info { background: var(--info-soft); color: var(--info); }
.b-warn { background: var(--warn-soft); color: var(--warn); }
.b-bad { background: var(--bad-soft); color: var(--bad); }
.b-accent { background: var(--accent-soft); color: var(--accent-text); }

.sec { padding: clamp(64px, 10vw, 112px) 0; }
.sec + .sec { border-top: 1px solid var(--line); }
.sec-head { margin-bottom: 40px; max-width: 36rem; }
.sec-head p { color: var(--muted); margin: 0; }
.kicker { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); margin: 0 0 10px; letter-spacing: .02em; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(150deg, var(--btn-from), var(--btn-to)); color: var(--btn-ink); font: 600 .95rem var(--sans); margin-bottom: 14px; }
.steps p { color: var(--muted); margin: 0; font-size: .95rem; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 28px; } }

.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rows li { display: grid; grid-template-columns: 220px minmax(0, 1fr) auto; gap: 8px 24px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); }
.rows b { color: var(--ink); font-weight: 600; }
.rows span { color: var(--muted); font-size: .95rem; }
@media (max-width: 700px) { .rows li { grid-template-columns: 1fr auto; } .rows li span { grid-column: 1 / -1; grid-row: 2; } }

.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.trio p { color: var(--muted); font-size: .95rem; margin: 0; }
@media (max-width: 760px) { .trio { grid-template-columns: 1fr; gap: 24px; } }

.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; color: var(--ink); font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-size: 1.2rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-right: 32px; margin: -4px 0 18px; }

.end { text-align: center; }
.end .url { margin-top: 28px; }
.note { max-width: 44rem; margin: 48px auto 0; font-size: .84rem; color: var(--muted); text-align: center; }

.foot { background: var(--surface); border-top: 1px solid var(--line); padding: 28px 0; font-size: .88rem; color: var(--muted); }
.foot .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 28px; }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* Sections alternate like CheckRef */
.sec-alt { background: var(--surface); }
.sec-head.center { margin-inline: auto; text-align: center; }
.shot-bar { background: var(--soft); }
.dots { display: flex; gap: 6px; } .dots i { width: 10px; height: 10px; border-radius: 50%; background: #f87171; } .dots i:nth-child(2) { background: #fbbf24; } .dots i:nth-child(3) { background: #34d399; }

/* Lead / contact form (homepage CTA) */
.lead-page { padding: clamp(48px, 8vw, 88px) 0 clamp(72px, 12vw, 120px); background: radial-gradient(640px 320px at 50% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%); }
.lead-page h1 { font-size: clamp(2rem, 4.5vw, 2.85rem); margin-bottom: .35em; }
.lead-intro { color: var(--muted); font-size: 1.05rem; max-width: 36rem; margin-bottom: 28px; }
.lead-notice { margin: 0 0 28px; padding: 16px 18px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); background: var(--accent-soft); color: var(--ink); font-size: .95rem; }
.lead-notice p { margin: 0; }
.lead-notice p + p { margin-top: 6px; }
.lead-notice-soon { font-size: 1.05rem; color: var(--ink); }
.lead-notice a { font-weight: 600; }
.lead-form { display: grid; gap: 18px; padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 18px 40px -28px rgba(10, 19, 48, .28); }
.field { display: grid; gap: 7px; }
.field label { font-size: .9rem; font-weight: 600; color: var(--ink); }
.field .req { color: var(--accent-text); font-weight: 700; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; background: var(--bg);
  padding: 11px 13px; transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 28%, transparent);
}
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] {
  border-color: var(--bad);
}
.field-row { display: grid; grid-template-columns: minmax(100px, 120px) 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
.lead-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 4px; }
.lead-actions .btn-accent { min-width: 180px; }
.form-error { color: var(--bad); font-size: .9rem; margin: 0; min-height: 0; }
.form-error:empty { display: none; }
.lead-success { padding: 28px; border: 1px solid color-mix(in srgb, var(--ok) 35%, var(--line)); border-radius: 16px; background: var(--ok-soft); margin-bottom: 8px; }
.lead-success h2 { margin-bottom: .4em; font-size: 1.55rem; }
.lead-success .lead-notice-soon { margin: 0 0 8px; }
.lead-success p { color: var(--text); }
.lead-success-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
