/* Brand: "Proof Seal": Ink #111827, Carbon #374151, Verified Teal #14B8A6,
   Deep Teal #0F766E, Report White #F9FAFB. Text accents use Deep Teal on light
   backgrounds for contrast (bright teal is for marks and graphics only). */
:root {
  --bg: #ffffff;
  --bg-alt: #f9fafb;
  --fg: #111827;
  --muted: #374151;
  --line: #e5e7eb;
  --accent: #0f766e;
  --accent-fg: #ffffff;
  --seal-accent: #14b8a6;
  --dev: #8a4b00;
  --dev-bg: #fff1dc;
  --planned: #374151;
  --planned-bg: #eef0f3;
  --focus: #b45309;
  --serif: Georgia, "Times New Roman", Times, serif;
  --radius: 10px;
  --max: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --bg-alt: #111a2c;
    --fg: #e5e7eb;
    --muted: #a1a9b6;
    --line: #1f2a3d;
    --accent: #2dd4bf;
    --accent-fg: #04201d;
    --seal-accent: #0f766e;
    --dev: #ffc980;
    --dev-bg: #3a2a12;
    --planned: #c9d2dc;
    --planned-bg: #1c2638;
    --focus: #fbbf24;
  }
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1, h2 { font-family: var(--serif); font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -.02em; max-width: 18ch; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.01em; }
h3 { font-size: 1.125rem; }
p { margin: 0 0 1em; }

a { color: var(--accent); text-underline-offset: .15em; }
a:hover { text-decoration-thickness: 2px; }

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

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.nowrap { white-space: nowrap; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: var(--accent-fg);
  padding: .5rem 1rem; z-index: 10;
}
.skip:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-size: 1.2rem; color: var(--fg); text-decoration: none; }
.brand span { font-family: var(--serif); font-size: 1.35rem; letter-spacing: -.005em; }
.logo { width: 34px; height: 34px; }
.seal { fill: var(--fg); }
.seal-ring { fill: none; stroke: var(--seal-accent); stroke-width: 2; }
.seal-t { fill: var(--bg); }
.seal-check { fill: none; stroke: var(--seal-accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.nav ul { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav a { color: var(--fg); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--accent); }

/* Sections */
section { padding: 4.5rem 0; }
section.alt { background: var(--bg-alt); }

.hero { padding: 5.5rem 0 4.5rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8125rem; font-weight: 700; color: var(--accent); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 60ch; }
.cta { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.75rem; }

.btn {
  display: inline-block; padding: .75rem 1.25rem; border-radius: var(--radius);
  border: 1px solid var(--line); color: var(--fg); text-decoration: none; font-weight: 600;
}
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.btn.primary:hover { filter: brightness(1.08); }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; list-style: none; margin: 2rem 0 0; padding: 0; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.values .card p, .product p { color: var(--muted); margin: 0; }
.product { position: relative; display: flex; flex-direction: column; gap: .5rem; }
.product.muted { background: var(--bg-alt); }
.badge { align-self: flex-start; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: .2rem .6rem; border-radius: 999px; }
.badge.dev { color: var(--dev); background: var(--dev-bg); }
.badge.planned { color: var(--planned); background: var(--planned-bg); }

.specs { margin: .75rem 0 0; display: grid; gap: .25rem; font-size: .9375rem; }
.specs div { display: flex; gap: .5rem; }
.specs dt { font-weight: 600; }
.specs dd { margin: 0; color: var(--muted); }

/* Steps */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; margin: 2rem 0 0; padding: 0; }
.steps li { counter-increment: step; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.steps li::before {
  content: counter(step); display: inline-grid; place-items: center;
  width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--accent); color: var(--accent-fg); font-weight: 700; margin-bottom: .75rem;
}
.steps p { color: var(--muted); margin: 0; }

/* Two column */
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: start; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }
.two-col p { color: var(--muted); max-width: 60ch; }
.links { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.links a { font-weight: 600; }
.contacts { margin: 0; display: grid; gap: 1rem; }
.contacts dt { font-weight: 600; }
.contacts dd { margin: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 2rem 0; font-size: .9375rem; color: var(--muted); }
.site-footer .fine { font-size: .8125rem; max-width: 80ch; }

/* Simple pages (404, reports) */
.page { padding: 5rem 0; min-height: 50vh; }
.page p { color: var(--muted); max-width: 60ch; }
