/* Vigilangue pre-launch site. Plain CSS, no build step, no third-party requests. */

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('/fonts/plus-jakarta-sans-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light dark;

  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --primary: #1d4ed8;
  --primary-hover: #1e40af;
  --on-primary: #ffffff;
  --primary-soft: #eff6ff;
  --primary-soft-text: #1e3a8a;
  --high-bg: #fef2f2;
  --high-text: #991b1b;
  --ok-text: #0f766e; /* brand accent */
  --accent: #0f766e;
  --input-border: #cbd5e1;
  --focus-ring: rgb(29 78 216 / 0.2);
  --accent-soft: #ccfbf1;
  --med-bg: #fef3c7;
  --med-text: #92400e;
  --low-bg: #e2e8f0;
  --low-text: #334155;
  --hero-glow: rgb(29 78 216 / 0.08);
  --grid: rgb(15 23 42 / 0.045);
  --shadow-lg: 0 1px 2px rgb(15 23 42 / 0.06), 0 24px 48px -12px rgb(15 23 42 / 0.18);
  --shadow: 0 1px 2px rgb(15 23 42 / 0.06), 0 8px 24px rgb(15 23 42 / 0.06);

  --font:
    'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --radius: 14px;
  --container: 70rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4rem, 9vw, 7rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --surface: #111a2e;
    --text: #e2e8f0;
    --muted: #a3b1c6;
    --border: #22304a;
    --primary: #93c5fd;
    --primary-hover: #bfdbfe;
    --on-primary: #0b1220;
    --primary-soft: #172554;
    --primary-soft-text: #bfdbfe;
    --high-bg: #3b1219;
    --high-text: #fecaca;
    --ok-text: #5eead4;
    --accent: #5eead4;
    --input-border: #334155;
    --focus-ring: rgb(147 197 253 / 0.25);
    --accent-soft: #134e4a;
    --med-bg: #422c06;
    --med-text: #fcd34d;
    --low-bg: #1e293b;
    --low-text: #cbd5e1;
    --hero-glow: rgb(147 197 253 / 0.1);
    --grid: rgb(226 232 240 / 0.04);
    --shadow-lg: 0 1px 2px rgb(0 0 0 / 0.3), 0 24px 48px -12px rgb(0 0 0 / 0.5);
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.25);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

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

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: var(--primary);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--primary-hover);
}

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mark {
  fill: var(--primary);
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--primary);
  color: var(--on-primary);
  border-radius: 8px;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

/* ---------------------------------------------------------------- header */

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.5rem;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.brand:hover {
  color: var(--text);
}

.brand svg {
  width: 2.25rem;
  height: 2.25rem;
  flex: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    border-color 200ms ease,
    background-color 200ms ease;
}

.lang-switch:hover {
  color: var(--text);
  border-color: var(--primary);
  background: var(--primary-soft);
}

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative;
  padding-block: clamp(3.5rem, 7vw, 6rem) clamp(3.5rem, 7vw, 5.5rem);
  background:
    radial-gradient(60rem 28rem at 85% -10%, var(--hero-glow), transparent 70%),
    linear-gradient(var(--surface), var(--bg));
  overflow: hidden;
}

/* Faint grid, fading out toward the bottom: structure without decoration. */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: clamp(3rem, 6vw, 4.5rem);
  align-items: center;
}

@media (min-width: 62rem) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.eyebrow {
  margin-bottom: 1.25rem;
  color: var(--primary);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.hero h1 {
  max-width: 34rem;
  font-size: clamp(2.25rem, 4.6vw, 3.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.lead {
  margin-top: 1.5rem;
  max-width: 34rem;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 2.25rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.12);
  transition:
    background-color 200ms ease,
    transform 200ms ease;
}

.button:hover {
  background: var(--primary-hover);
  color: var(--on-primary);
}

.button:active {
  transform: translateY(1px);
}

.button svg {
  width: 1.15rem;
  height: 1.15rem;
}

.button-small {
  min-height: 40px;
  padding: 0.45rem 1rem;
  font-size: 0.9375rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.link-arrow svg {
  width: 1.1rem;
  height: 1.1rem;
  transition: transform 200ms ease;
}

.link-arrow:hover {
  color: var(--primary);
}

.link-arrow:hover svg {
  transform: translateX(3px);
}

.launch {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.launch::before {
  content: '';
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

/* Report preview: what a scan result looks like. */

.report {
  margin: 0;
}

.report-window {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.report-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  font-size: 0.8125rem;
}

.report-site {
  font-weight: 700;
}

.report-meta {
  color: var(--muted);
}

.report-score {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.gauge {
  position: relative;
  width: 5.5rem;
  height: 5.5rem;
}

.gauge svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.gauge-track {
  stroke: var(--border);
}

.gauge-value {
  stroke: var(--primary);
}

.gauge-number {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  line-height: 1;
}

.gauge-number strong {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.gauge-number span {
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.score-label {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: var(--med-bg);
  color: var(--med-text);
  font-size: 0.8125rem;
  font-weight: 700;
}

.score-sub {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.report-issues {
  margin: 0;
  padding: 0.5rem 0;
  list-style: none;
}

.report-issues li {
  display: grid;
  grid-template-columns: 5.25rem 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.35;
}

.report-issues li + li {
  border-top: 1px solid var(--border);
}

.sev {
  justify-self: start;
  padding: 0.15rem 0.55rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
}

.sev-high {
  background: var(--high-bg);
  color: var(--high-text);
}

.sev-med {
  background: var(--med-bg);
  color: var(--med-text);
}

.sev-low {
  background: var(--low-bg);
  color: var(--low-text);
}

.count {
  color: var(--muted);
  font-size: 0.8125rem;
  white-space: nowrap;
}

.report-fix {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.6rem;
  padding: 0.9rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
  font-size: 0.875rem;
}

.fix-label {
  color: var(--muted);
}

.was {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: var(--high-text);
}

.now {
  color: var(--ok-text);
  font-weight: 700;
}

.report figcaption {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.8125rem;
  text-align: center;
}

@media (max-width: 30rem) {
  .report-issues li {
    grid-template-columns: 1fr auto;
  }

  .report-issues .issue {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .header-actions .button-small {
    display: none;
  }
}

/* What gets checked. */

.checks {
  padding-block: 2rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.checks .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2.5rem;
}

.checks-title {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
}

.checks ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checks li {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

.checks svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary);
}

/* ---------------------------------------------------------------- sections */

.section {
  padding-block: var(--section);
  border-top: 1px solid var(--border);
}

.section-head {
  max-width: 40rem;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
}

.section-head p {
  margin-top: 1rem;
  color: var(--muted);
}

.steps {
  display: grid;
  gap: 1.25rem;
  margin: 3rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

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

@media (min-width: 64rem) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.steps li {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  counter-increment: step;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 1rem;
  color: var(--primary);
  font-family: var(--mono);
  font-size: 0.875rem;
  font-weight: 600;
}

.steps h3 {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.steps p {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.context {
  display: grid;
  gap: 2rem;
}

@media (min-width: 60rem) {
  .context {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
  }
}

.context .points {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.context .points li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
}

.context .points svg {
  width: 1.4rem;
  height: 1.4rem;
  margin-top: 0.15rem;
  color: var(--primary);
}

.cta {
  padding: clamp(2rem, 5vw, 3.5rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow);
  text-align: center;
}

.cta h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 800;
}

.cta p {
  max-width: 34rem;
  margin: 1rem auto 0;
  color: var(--muted);
}

.cta .actions {
  justify-content: center;
}

/* Early-access form. */

.access-form {
  display: grid;
  gap: 1.1rem 1.25rem;
  max-width: 40rem;
  margin: 2rem auto 0;
  text-align: left;
}

@media (min-width: 40rem) {
  .access-form {
    grid-template-columns: 1fr 1fr;
  }
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field-full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.9375rem;
  font-weight: 600;
}

.optional {
  color: var(--muted);
  font-weight: 400;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--input-border);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  transition:
    border-color 200ms ease,
    box-shadow 200ms ease;
}

.field textarea {
  resize: vertical;
}

.field input::placeholder {
  color: var(--muted);
  opacity: 0.8;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.form-actions {
  display: flex;
  justify-content: center;
  margin-top: 0.25rem;
}

.form-actions .button {
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.cta .form-note {
  margin: 0;
  max-width: none;
  font-size: 0.8125rem;
  text-align: center;
}

/* Honeypot: off-screen for people, still in the form for bots. */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.result {
  min-height: 70vh;
  display: grid;
  align-items: center;
}

.result h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 800;
}

/* ---------------------------------------------------------------- footer */

.site-footer {
  padding-block: 3rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.875rem;
}

.site-footer .container {
  display: grid;
  gap: 1.25rem;
}

.site-footer .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
}

.site-footer a {
  color: var(--text);
}

.disclaimer {
  max-width: 52rem;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
