/* Deadset Safety Solutions: marketing site.
   Tokens from the brand system (DESIGN.md in the app repo). One typeface: Montserrat, self-hosted. */

@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/montserrat-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --carbon: #0B0F14;
  --carbon-2: #111821;      /* lifted Carbon surface, derived */
  --orange: #FF6A00;
  --steel: #6B7280;
  --steel-300: #9CA3AF;     /* Steel for text on Carbon (AA) */
  --steel-600: #4B5563;     /* Steel for text on Fog/white (AA) */
  --steel-700: #374151;
  --fog: #F3F4F6;
  --rule-dark: #232C37;
  --rule-light: #D1D5DB;
  --orange-hover: #FF8226;
  --white: #FFFFFF;
  --radius: 4px;
  --gutter: 1.25rem;
  --max: 70rem;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
:root { color-scheme: dark; accent-color: var(--orange); scrollbar-color: var(--steel-700) var(--carbon); }
::selection { background: var(--orange); color: var(--carbon); }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--carbon);
  color: var(--fog);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
}

img, svg { max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
p { margin: 0 0 1rem; }
h1, h2, h3 { font-weight: 800; line-height: 1.1; letter-spacing: -0.01em; margin: 0 0 1rem; }
h1, h2, h3 { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
h1 { font-size: clamp(2.25rem, 7.5vw, 4.25rem); }
h2 { font-size: clamp(1.75rem, 4.6vw, 2.75rem); }
h3 { font-size: 1.125rem; font-weight: 700; letter-spacing: 0; line-height: 1.3; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: var(--gutter); top: -4rem;
  background: var(--orange); color: var(--carbon);
  padding: .75rem 1rem; font-weight: 700; z-index: 10; border-radius: var(--radius);
}
.skip:focus { top: .75rem; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* Header: the Field register's Carbon bar */
.site-header { border-bottom: 1px solid var(--rule-dark); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; flex-wrap: wrap; padding-block: .5rem; }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { height: 3rem; width: auto; display: block; }
.nav { display: flex; gap: .25rem 1.25rem; flex-wrap: wrap; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; color: var(--steel-300);
}
.nav a:hover { color: var(--white); }
.nav a[aria-current="page"] { color: var(--white); }

/* Buttons: Orange is free on the marketing site (no warning state here) */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .75rem 1.5rem;
  font: inherit; font-weight: 700; font-size: .9375rem; letter-spacing: .02em;
  text-decoration: none; border-radius: var(--radius); border: 2px solid transparent;
}
.btn-primary { background: var(--orange); color: var(--carbon); }
.btn-primary:hover { background: var(--orange-hover); }
.btn-ghost { border-color: var(--steel); color: var(--fog); }
.btn-ghost:hover { border-color: var(--fog); }
.btn-row { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 2rem; }

/* Hero */
.hero { padding-block: clamp(3rem, 9vw, 7rem) clamp(3rem, 8vw, 6rem); }
.hero h1 { max-width: 14ch; }
.hero h1 em { font-style: normal; color: var(--orange); }
.lede { font-size: clamp(1.0625rem, 2.4vw, 1.3125rem); color: var(--steel-300); max-width: 38rem; font-weight: 500; }
.hero-meta {
  display: grid; gap: 1.25rem; margin-top: 3.5rem; padding-top: 2rem;
  border-top: 1px solid var(--rule-dark); grid-template-columns: 1fr;
}
.hero-meta dt { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--steel-300); margin-bottom: .25rem; }
.hero-meta dd { margin: 0; font-weight: 600; }

/* Sections */
section { padding: 3.5rem 1.25rem; }
section > .wrap { padding-inline: 0; }
.section-intro { max-width: 40rem; color: var(--steel-300); font-weight: 500; }

/* Pillars (dark) */
.pillars { background: var(--carbon-2); border-block: 1px solid var(--rule-dark); }
.pillars ol { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; gap: 2rem; }
.pillars li { border-top: 2px solid var(--orange); padding-top: 1rem; }
.pillars p { color: var(--steel-300); margin: 0; }

/* Features: the Console register, white surfaces and Carbon text */
.features { background: var(--fog); color: var(--carbon); }
.features .section-intro { color: var(--steel-600); }

/* Feature rows: hairline rules, not cards */
.rows { margin-top: 2.5rem; border-top: 1px solid var(--rule-light); }
.row { padding: 1.5rem 0; border-bottom: 1px solid var(--rule-light); display: grid; gap: .5rem; }
.row h3 { margin: 0; }
.row p { margin: 0; color: var(--steel-600); }

/* How it works */
.steps { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.steps li { counter-increment: step; padding: 1.5rem 0 1.5rem 3.75rem; border-top: 1px solid var(--rule-dark); position: relative; }
.steps li:last-child { border-bottom: 1px solid var(--rule-dark); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 1.5rem;
  font-weight: 800; font-size: 1.5rem; color: var(--orange); line-height: 1.1;
}
.steps h3 { margin-bottom: .25rem; }
.steps p { margin: 0; color: var(--steel-300); }

/* Documents register: restraint, hairline rules */
.docs { background: var(--carbon-2); border-block: 1px solid var(--rule-dark); }
.rules { margin: 2rem 0 0; padding: 0; list-style: none; max-width: 44rem; }
.rules li { padding: 1rem 0; border-top: 1px solid var(--rule-dark); color: var(--steel-300); }
.rules li strong { color: var(--fog); font-weight: 700; }
.rules li:last-child { border-bottom: 1px solid var(--rule-dark); }

/* CTA band */
.cta { text-align: left; }
.cta h2 { max-width: 18ch; }
.cta .note { margin-top: 1.5rem; font-size: .9375rem; color: var(--steel-300); max-width: 38rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule-dark); padding-block: 2.5rem; font-size: .9375rem; color: var(--steel-300); }
.site-footer .wrap { display: grid; gap: 1.5rem; }
.site-footer a { color: var(--fog); }
.site-footer img { height: 2.5rem; width: auto; display: block; margin-bottom: .75rem; }
.footer-links { display: flex; gap: .25rem 1.5rem; flex-wrap: wrap; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
.small { font-size: .8125rem; }

/* Legal stubs */
.draft-banner {
  background: var(--orange); color: var(--carbon); font-weight: 700;
  padding: .75rem var(--gutter); text-align: center; font-size: .9375rem;
}
.prose { max-width: 44rem; padding-block: clamp(2.5rem, 7vw, 4.5rem); }
.prose h1 { font-size: clamp(2rem, 6vw, 3rem); }
.prose h2 { font-size: 1.375rem; margin-top: 2.5rem; }
.prose p, .prose li { color: var(--steel-300); }
.prose ul { padding-left: 1.25rem; }
.prose strong { color: var(--fog); }

/* Wider screens */
@media (min-width: 40rem) {
  :root { --gutter: 2rem; }
  section { padding: 5rem 2rem; }
  .hero-meta { grid-template-columns: repeat(3, 1fr); }
  .pillars ol { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
  .row { grid-template-columns: 1fr 2fr; gap: 2rem; }
  .site-footer .wrap { grid-template-columns: 1.4fr 1fr; align-items: start; }
}
@media (min-width: 64rem) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
  .steps li { border-top: 2px solid var(--orange); border-bottom: 0 !important; padding: 1.25rem 0 0; }
  .steps li::before { position: static; display: block; margin-bottom: .5rem; }
}
