/* Veritas Technology — agency site */
:root {
  --ink: #0f172a; --muted: #475569; --line: #e2e8f0; --bg: #f8fafc; --white: #fff;
  --brand: #0f766e; --brand-dark: #134e4a; --brand-50: #f0fdfa; --brand-100: #ccfbf1;
  --accent: #b45309; --good: #15803d; --warn: #b45309; --bad: #b91c1c;
  --radius: 12px; --shadow: 0 1px 2px rgba(15,23,42,.05), 0 8px 24px rgba(15,23,42,.08);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--bg); }
a { color: var(--brand); text-underline-offset: .15em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: .6em 1em; }
.skip-link:focus { top: 12px; }
.muted { color: var(--muted); }

.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: .6rem; font-weight: 800; color: var(--ink); text-decoration: none; font-size: 1.1rem; }
.logo svg { width: 34px; height: 34px; }
.site-header nav ul { list-style: none; display: flex; gap: 1.25rem; margin: 0; padding: 0; flex-wrap: wrap; }
.site-header nav a { color: var(--ink); text-decoration: none; font-weight: 600; padding: .5em 0; display: inline-block; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--brand); }

.hero { background: linear-gradient(160deg, var(--brand-dark), #0b3b37 60%, #0f172a); color: #e2f5f2; padding: clamp(3rem, 8vw, 5rem) 0; }
.hero h1 { color: var(--white); max-width: 18ch; }
.hero .lede { font-size: 1.2rem; max-width: 40rem; color: #cdeee8; }
.section { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.section-white { background: var(--white); border-block: 1px solid var(--line); }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .35em; }
.card p { color: var(--muted); margin: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .85em 1.35em; border-radius: 8px; border: 2px solid transparent; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; background: var(--brand); color: var(--white); }
.btn:hover { background: var(--brand-dark); color: var(--white); }
.btn:disabled { opacity: .55; cursor: progress; }
.btn-light { background: var(--white); color: var(--brand-dark); }
.btn-light:hover { background: var(--brand-50); color: var(--brand-dark); }

/* URL form */
.check-form { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-start; max-width: 42rem; }
.check-form label { flex-basis: 100%; font-weight: 700; }
.check-form input[type="url"], .check-form input[type="text"] { flex: 1 1 18rem; min-width: 0; font: inherit; padding: .8em .9em; border-radius: 8px; border: 1.5px solid #94a3b8; color: var(--ink); background: var(--white); }
.check-form .ts { flex-basis: 100%; min-height: 65px; }
.form-error { color: #fecaca; font-weight: 700; flex-basis: 100%; margin: 0; }
.section .form-error { color: var(--bad); }

/* Live audit */
.audit { max-width: 46rem; }
.audit-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.audit-site { font-weight: 800; word-break: break-all; }
.bar { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; margin: .75rem 0 1.25rem; }
.bar > span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), #14b8a6); transition: width .5s ease; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 2rem 1fr; gap: .25rem .75rem; padding: .85rem 0; border-top: 1px solid var(--line); animation: rise .35s ease both; }
.steps li .st { width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center; font-size: .9rem; font-weight: 800; background: var(--line); color: var(--muted); }
.steps li.ok .st { background: #dcfce7; color: var(--good); }
.steps li.bad .st { background: #fee2e2; color: var(--bad); }
.steps li.run .st { background: var(--brand-100); color: var(--brand); animation: pulse 1.1s ease-in-out infinite; }
.steps li strong { display: block; }
.steps li .detail { grid-column: 2; color: var(--muted); font-size: .95rem; word-break: break-word; }
.chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .4rem; }
.chips span { font-size: .8rem; background: var(--brand-50); color: var(--brand-dark); border: 1px solid var(--brand-100); padding: .1em .55em; border-radius: 999px; animation: rise .3s ease both; }
.fact { margin-top: .5rem; padding: .75rem 1rem; background: var(--brand-50); border-left: 3px solid var(--brand); border-radius: 0 8px 8px 0; font-size: .95rem; transition: opacity .4s; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 50% { transform: scale(.85); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* Result */
.result { margin-top: 2rem; animation: rise .5s ease both; }
.score-row { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.dial { width: 150px; height: 150px; flex: none; }
.dial circle { fill: none; stroke-width: 12; }
.dial .track { stroke: var(--line); }
.dial .val { stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset 1.2s ease; }
.dial text { font-weight: 800; font-size: 34px; fill: var(--ink); }
.dial .of { font-size: 13px; font-weight: 600; fill: var(--muted); }
.verdict h2 { margin-bottom: .25em; }
.cats { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: .6rem; }
.cats li { display: grid; grid-template-columns: minmax(9rem, 13rem) 1fr 3.5rem; gap: .75rem; align-items: center; font-size: .95rem; }
.cats .mini { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.cats .mini span { display: block; height: 100%; border-radius: 999px; }
.cats b { text-align: right; }
@media (max-width: 520px) { .cats li { grid-template-columns: 1fr 3.5rem; } .cats .mini { grid-column: 1 / -1; grid-row: 2; } }
.issues { padding-left: 1.2rem; }
.issues li { margin-bottom: .5rem; }
.issues .why { color: var(--muted); font-size: .92rem; display: block; }
.cta-box { margin-top: 1.5rem; background: var(--ink); color: #e2e8f0; border-radius: var(--radius); padding: 1.5rem; }
.cta-box h3 { color: var(--white); }

.site-footer { padding: 2rem 0; color: var(--muted); font-size: .9rem; border-top: 1px solid var(--line); background: var(--white); }

/* Focus is moved to the result for screen readers; no visible ring for that programmatic focus. */
.result:focus { outline: none; }
