/* Prodwarden site. Tokens mirror the panel (frontend/src/index.css): warm stone neutrals,
   one deep petrol accent, gate colours only for gate meaning. */

@font-face {
  font-family: "Geist";
  src: url("fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #fafaf9;
  --fg: #1c1917;
  --card: #ffffff;
  --muted: #f2f1ef;
  --muted-fg: #625b55;
  --border: #e6e3e0;
  --primary: #0f5e66;
  --primary-fg: #ffffff;
  --primary-soft: #e3eeee;
  --approved: #166534;
  --approved-bg: #e9f4ec;
  --review: #9a5300;
  --review-bg: #fbf1e1;
  --blocked: #b42318;
  --blocked-bg: #fbebe9;
  --radius: 0.5rem;
  --max: 72rem;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131110;
    --fg: #f3f1ef;
    --card: #1b1816;
    --muted: #24201e;
    --muted-fg: #a9a29c;
    --border: #2c2825;
    --primary: #6cbdbf;
    --primary-fg: #0a2426;
    --primary-soft: #16292a;
    --approved: #6ccb8f;
    --approved-bg: #16271c;
    --review: #e9b25e;
    --review-bg: #2b2113;
    --blocked: #f2877c;
    --blocked-bg: #2e1916;
  }
}

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

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

a:hover {
  text-decoration-thickness: 2px;
}

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

code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.05em 0.3em;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 650;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: 620;
}

h3 {
  font-size: 1.075rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  background: var(--card);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 48rem) {
  .wrap {
    padding: 0 2rem;
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 3.75rem;
}

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

.brand img {
  width: 28px;
  height: 28px;
}

.nav {
  display: none;
  gap: 1.5rem;
  margin-left: auto;
}

.nav a {
  color: var(--muted-fg);
  text-decoration: none;
  font-size: 0.925rem;
}

.nav a:hover {
  color: var(--fg);
}

.header-cta {
  margin-left: auto;
}

@media (min-width: 52rem) {
  .nav {
    display: flex;
  }
  .nav + .header-cta {
    margin-left: 0.5rem;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 560;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
}

.btn-sm {
  min-height: 2.25rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.9rem;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-fg);
}

.btn-primary:hover {
  background: color-mix(in srgb, var(--primary) 88%, var(--fg));
}

.btn-ghost {
  background: var(--card);
  color: var(--fg);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: var(--muted);
}

/* Sections */
section {
  padding: 4rem 0;
  scroll-margin-top: 3.75rem;
}

@media (min-width: 48rem) {
  section {
    padding: 5.5rem 0;
  }
}

.section-alt {
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.eyebrow {
  display: inline-block;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.lead {
  font-size: 1.125rem;
  color: var(--muted-fg);
  max-width: 42rem;
}

.section-head {
  max-width: 44rem;
  margin-bottom: 2.5rem;
}

/* Hero */
.hero {
  padding-top: 4rem;
}

@media (min-width: 48rem) {
  .hero {
    padding-top: 6rem;
  }
}

.hero h1 {
  max-width: 15ch;
}

.hero .lead {
  font-size: 1.2rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.pipeline {
  list-style: none;
  margin: 3.5rem 0 0;
  padding: 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.5);
}

.pipeline li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius);
  background: var(--muted);
  font-size: 0.925rem;
  font-weight: 550;
}

.pipeline li small {
  display: block;
  font-weight: 400;
  color: var(--muted-fg);
  font-size: 0.8rem;
}

.pipeline .dot {
  flex: none;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--muted-fg);
}

.pipeline .gate {
  background: var(--primary-soft);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 40%, transparent);
}

.pipeline .gate .dot {
  background: var(--primary);
}

.pipeline .prod .dot {
  background: var(--approved);
}

@media (min-width: 52rem) {
  .pipeline {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* Steps */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

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

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

.steps li {
  counter-increment: step;
  position: relative;
  padding: 1.25rem 1.25rem 1.25rem 3.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1.25rem;
  top: 1.2rem;
  width: 1.75rem;
  height: 1.75rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-fg);
  font-weight: 650;
  font-size: 0.85rem;
}

.steps p,
.card p {
  margin: 0;
  color: var(--muted-fg);
  font-size: 0.95rem;
}

.verdicts {
  list-style: none;
  padding: 0;
  margin-bottom: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 550;
}

.pill::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: currentColor;
}

.pill-pass {
  color: var(--approved);
  background: var(--approved-bg);
}

.pill-review {
  color: var(--review);
  background: var(--review-bg);
}

.pill-fail {
  color: var(--blocked);
  background: var(--blocked-bg);
}

/* Cards */
.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

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

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

.card {
  padding: 1.4rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.section-alt .card {
  background: var(--bg);
}

.card .icon {
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  margin-bottom: 0.9rem;
  border-radius: var(--radius);
  background: var(--primary-soft);
  color: var(--primary);
}

.card .icon svg {
  width: 1.2rem;
  height: 1.2rem;
}

/* Security */
.split {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 60rem) {
  .split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 4rem;
  }
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.25rem;
}

.checklist li {
  position: relative;
  padding: 0.8rem 0 0.8rem 2rem;
  border-bottom: 1px solid var(--border);
}

.checklist li:last-child {
  border-bottom: 0;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 1.05rem;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--primary-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%230f5e66' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 0.8rem no-repeat;
}

@media (prefers-color-scheme: dark) {
  .checklist li::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%236cbdbf' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  }
}

.checklist strong {
  display: block;
  font-weight: 600;
}

.checklist span {
  color: var(--muted-fg);
  font-size: 0.95rem;
}

.note {
  margin-top: 1.5rem;
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--primary);
  background: var(--primary-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.95rem;
}

/* Audiences */
.audience {
  display: grid;
  gap: 1rem;
}

@media (min-width: 56rem) {
  .audience {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.audience .card {
  padding: 1.75rem;
}

.audience ul {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted-fg);
}

.audience li {
  margin-bottom: 0.4rem;
}

.audience li strong {
  color: var(--fg);
  font-weight: 600;
}

pre {
  margin: 1rem 0 0;
  padding: 0.9rem 1rem;
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.55;
  overflow-x: auto;
  white-space: pre;
}

pre code {
  background: none;
  border: 0;
  padding: 0;
  font-size: inherit;
}

/* FAQ */
.faq {
  max-width: 48rem;
}

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 2rem 1.1rem 0;
  position: relative;
  font-weight: 580;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  top: 0.95rem;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--muted-fg);
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details p {
  color: var(--muted-fg);
  padding-bottom: 0.25rem;
}

/* CTA band */
.cta-band {
  text-align: center;
}

.cta-band .lead {
  margin: 0 auto;
}

.cta-band .cta-row {
  justify-content: center;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  font-size: 0.9rem;
  color: var(--muted-fg);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

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

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

/* Legal pages */
.legal {
  padding: 3rem 0 4rem;
}

.legal .wrap {
  max-width: 46rem;
}

.legal h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
}

.legal h2 {
  font-size: 1.35rem;
  margin-top: 2.25rem;
}

.legal .updated {
  color: var(--muted-fg);
  font-size: 0.95rem;
}

.legal ul {
  padding-left: 1.25rem;
}

.legal li {
  margin-bottom: 0.35rem;
}

.table-wrap {
  overflow-x: auto;
  margin: 1rem 0;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.925rem;
}

.legal th,
.legal td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.75rem 0.6rem 0;
  border-bottom: 1px solid var(--border);
}

.legal th {
  font-weight: 600;
}

.notfound {
  padding: 6rem 0;
  text-align: center;
}

.notfound .cta-row {
  justify-content: center;
}

.notfound .lead,
.site-footer p {
  margin: 0 auto;
}

.site-footer p {
  margin: 0;
}
