/* 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 */
  --carbon-3: #18212c;      /* device bezel */
  --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;
  --orange-ink: #C24E00;     /* Orange as text on white and Fog (AA) */
  --on-orange-soft: #2B1A0A;  /* secondary text on the Orange band: warm Carbon, 5.9:1 (AA) */
  --white: #FFFFFF;
  --radius: 4px;
  --gutter: 1.25rem;
  --max: 74rem;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  /* Optional photography: set these to url("/assets/photos/<file>.jpg") once real or generated images are added. */
  --hero-photo: linear-gradient(90deg, rgba(11, 15, 20, .94) 0%, rgba(11, 15, 20, .72) 42%, rgba(11, 15, 20, .25) 100%);
  --cta-photo: linear-gradient(rgba(11, 15, 20, .45), rgba(11, 15, 20, .7));
  --band-photo: linear-gradient(rgba(17, 24, 33, .86), rgba(17, 24, 33, .86));
}

*, *::before, *::after { box-sizing: border-box; }
:root { color-scheme: dark; accent-color: var(--orange); caret-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; scroll-padding-top: 5rem; }
@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;
  font-variant-numeric: tabular-nums;
}

img, svg { max-width: 100%; height: auto; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
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; text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
h1 { font-size: clamp(2.25rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
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: 20; border-radius: var(--radius);
}
.skip:focus { top: .75rem; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* Icons: one stroke, one weight */
.ico { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico-lg { width: 2.75rem; height: 2.75rem; stroke-width: 1.4; color: var(--orange); }

/* Header: Carbon bar, nav in the middle, the one action on the right */
.site-header { background: var(--carbon); border-bottom: 1px solid var(--rule-dark); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; min-height: 4.75rem; flex-wrap: wrap; padding-block: .5rem; }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { height: 3.1rem; width: auto; display: block; }
.nav { display: flex; gap: .25rem 1.5rem; flex-wrap: wrap; margin-inline: auto; }
.nav a {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 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); }
.nav a.nav-hot { background: var(--orange); color: var(--carbon); padding-inline: 1rem; border-radius: var(--radius); font-weight: 800; }
.nav a.nav-hot:hover, .nav a.nav-hot[aria-current="page"] { background: var(--orange-hover); color: var(--carbon); }
.header-cta { padding: .5rem 1.25rem; min-height: 44px; }
/* Tablet and up: logo and button share the top row, the ten links get a full-width row of their own and
   sit left-aligned along it (slightly tighter type so all nine fit one line at the 74rem desktop width), instead of the nav squeezing between them and wrapping into a third row */
@media (min-width: 48rem) {
  .site-header .wrap { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "brand cta" "nav nav"; align-items: center; gap: 0 1.5rem; }
  .site-header .brand { grid-area: brand; }
  .site-header .header-cta { grid-area: cta; justify-self: end; }
  .site-header .nav { grid-area: nav; margin-inline: 0; gap: .25rem .9rem; border-top: 1px solid var(--rule-dark); }
  .site-header .nav a { font-size: .72rem; letter-spacing: .04em; }
  .site-header .nav a.nav-hot { padding-inline: .75rem; }
}

/* Mobile nav: a disclosure toggle collapses the link list below ~48rem */
.nav-toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 44px; height: 44px;
  margin-inline-start: auto;
  padding: 0;
  background: transparent;
  border: 2px solid transparent;
  border-radius: var(--radius);
  color: var(--fog);
  cursor: pointer;
}
.nav-toggle:hover { color: var(--orange); }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 47.99rem) {
  .site-header .wrap { position: relative; }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    gap: 0;
    margin-inline: 0;
    background: var(--carbon-2);
    border-top: 1px solid var(--rule-dark);
    border-bottom: 1px solid var(--rule-dark);
    padding: .5rem var(--gutter) 1rem;
    box-shadow: 0 16px 28px -16px rgba(0, 0, 0, .55);
    z-index: 30;
  }
  .nav.is-open { display: flex; }
  .nav a { width: 100%; }
}

/* Buttons: Orange is free on the marketing site (no warning state here) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  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;
  transition: background-color .15s, border-color .15s, transform .15s;
}
.btn-primary { background: var(--orange); color: var(--carbon); }
.btn-primary:hover { background: var(--orange-hover); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { border-color: var(--steel); color: var(--fog); }
.btn-ghost:hover { border-color: var(--fog); }
.btn-dark { background: var(--carbon); color: var(--white); border-color: var(--carbon); }
.btn-dark .ico { color: var(--orange); }
.btn-dark:hover { background: var(--carbon-3); }
.btn-dark:active { transform: translateY(1px); }
.btn-row { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 2rem; }

/* Hero: the product, not a stock photo */
.hero { position: relative; overflow: hidden; padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 5.5rem); background: var(--hero-photo) center / cover no-repeat, linear-gradient(180deg, var(--carbon) 0%, var(--carbon-2) 100%); }
.hero::after {   /* the orange wedge from the mark, bottom right */
  content: ""; position: absolute; right: 0; bottom: 0; width: min(30vw, 24rem); aspect-ratio: 2 / 1;
  background: var(--orange); clip-path: polygon(100% 0, 100% 100%, 0 100%); pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; gap: 3rem; align-items: center; }
/* Solo hero: no .stage screenshot, so don't reserve a dead second column */
.hero-grid--solo .hero-copy { max-width: 42rem; margin-inline: auto; text-align: center; }
.hero-grid--solo .hero-copy h1,
.hero-grid--solo .hero-copy .lede { margin-inline: auto; }
.hero-grid--solo .hero-copy .btn-row { justify-content: center; }
.hero h1 { max-width: 20ch; }
.hero h1 em { font-style: normal; color: var(--orange); }
.lede { font-size: clamp(1.0625rem, 2vw, 1.25rem); color: var(--steel-300); max-width: 36rem; font-weight: 500; }
.lede strong { color: var(--fog); font-weight: 700; }
.hero-note { margin: 1.5rem 0 0; font-size: .875rem; color: var(--steel-300); }

/* Device frames around real demo screenshots */
.stage { position: relative; padding-bottom: 3rem; }
.laptop { background: var(--carbon-3); border: 1px solid var(--rule-dark); border-radius: 12px; padding: 10px; box-shadow: 0 30px 50px -24px rgba(0, 0, 0, .7); }
.screen { overflow: hidden; border-radius: 6px; background: var(--white); }
.laptop .screen img { display: block; width: calc(100% + 18px); max-width: none; }      /* crops the demo's scrollbar */
.phone { background: var(--carbon-3); border: 1px solid var(--rule-dark); border-radius: 30px; padding: 8px; width: min(11.5rem, 42%); box-shadow: 0 24px 40px -18px rgba(0, 0, 0, .75); }
.phone .screen { border-radius: 22px; aspect-ratio: 1 / 2; }
.phone .screen img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.stage .phone { position: absolute; right: 4%; bottom: 0; }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .stage .laptop { animation: rise .9s cubic-bezier(.16, 1, .3, 1) both; }
  .stage .phone { animation: rise .9s .15s cubic-bezier(.16, 1, .3, 1) both; }
}

/* SWMS Checker band: full-bleed Orange straight under the hero, the loudest thing on the page */
.checker-band { background: var(--orange); color: var(--carbon); padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.checker-grid { display: grid; gap: 2rem; align-items: center; }
.checker-band h2 { font-size: clamp(2.5rem, 8vw, 5.25rem); font-weight: 900; line-height: .95; letter-spacing: -0.02em; text-transform: uppercase; max-width: 12ch; margin: 0 0 1.25rem; }
.checker-copy p { font-size: clamp(1.0625rem, 2vw, 1.25rem); font-weight: 600; max-width: 32rem; margin: 0; }
.checker-facts { list-style: none; margin: 0 0 1.75rem; padding: 0; display: grid; gap: .6rem; }
.checker-facts li { display: flex; align-items: flex-start; gap: .65rem; font-weight: 700; line-height: 1.35; }
.checker-facts .ico { margin-top: .15em; stroke-width: 2.5; }
.checker-band .btn-dark { min-height: 4rem; padding: .9rem 2.25rem; font-size: 1.125rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.checker-note { margin: 1rem 0 0; font-size: .875rem; font-weight: 600; color: var(--on-orange-soft); max-width: 28rem; }
.checker-note a { color: inherit; font-weight: 800; }
.checker-band :focus-visible { outline-color: var(--carbon); }
@media (max-width: 39.99rem) { .checker-band .btn-dark { width: 100%; } }
@media (min-width: 64rem) { .checker-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 4rem; } }

/* Pillar strip */
.pillars { background: var(--carbon); border-block: 1px solid var(--rule-dark); padding-block: 0; }
.pillars ul { list-style: none; margin: 0; padding: 0; display: grid; }
.pillars li { display: flex; align-items: center; gap: 1.25rem; padding: 1.75rem 0; border-top: 1px solid var(--rule-dark); }
.pillars li:first-child { border-top: 0; }
.pillars h2 { font-size: 1.2rem; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 .15rem; font-weight: 800; }
.pillars p { margin: 0; color: var(--steel-300); font-weight: 500; }

/* Sections */
section { padding: 3.5rem 0; }
.section-intro { max-width: 40rem; color: var(--steel-300); font-weight: 500; }

/* Solutions: the Console register, light surface */
.solutions { background: var(--fog); color: var(--carbon); }
.solutions .section-intro { color: var(--steel-600); }
.panels { display: grid; gap: 1.5rem; margin-top: 2.5rem; }
.panel { background: var(--white); border: 1px solid var(--rule-light); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 12px 24px -16px rgba(11, 15, 20, .25); }
.panel-copy { padding: 1.75rem 1.5rem 1.25rem; flex: 1; }
.panel h3 { font-size: 1.375rem; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; }
.panel-copy > p { color: var(--steel-600); font-weight: 500; }
.checks { list-style: none; margin: 1.25rem 0; padding: 0; display: grid; gap: .6rem; }
.checks li { position: relative; padding-left: 1.9rem; color: var(--steel-700); font-size: .9375rem; line-height: 1.45; }
.checks li::before {   /* drawn tick, same stroke as the icon set */
  content: ""; position: absolute; left: 0; top: .1rem; width: 1.15rem; height: 1.15rem; background: var(--orange);
  mask: url("/assets/brand/tick.svg") center / contain no-repeat; -webkit-mask: url("/assets/brand/tick.svg") center / contain no-repeat;
}
.more { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; font-weight: 700; font-size: .9375rem; color: var(--carbon); text-decoration: none; border-bottom: 2px solid var(--orange); padding-bottom: 2px; }
.more:hover { color: var(--orange-ink); }
.row .more, .rows .more { color: var(--fog); }      /* .more on Carbon (.rows lives on dark sections) */
.row .more:hover, .rows .more:hover { color: var(--orange); }
.panel-shot { position: relative; height: 15rem; overflow: hidden; background: var(--carbon-2); border-top: 1px solid var(--rule-light); }
.panel-shot > img { position: absolute; left: 1.5rem; top: 1.5rem; width: 130%; max-width: none; border-radius: 6px 0 0 0; box-shadow: 0 18px 30px -12px rgba(0, 0, 0, .55); }
.panel-shot--phone { display: flex; justify-content: center; align-items: flex-start; padding-top: 1.5rem; }
.panel-shot--phone .phone { width: 10.5rem; margin-bottom: -4rem; }

/* And the rest of the job */
.also { background: var(--carbon-2); border-block: 1px solid var(--rule-dark); }
.rows { margin-top: 2rem; border-top: 1px solid var(--rule-dark); display: grid; }
.row { padding: 1.5rem 0; border-bottom: 1px solid var(--rule-dark); display: grid; gap: .5rem; }
.row h3 { margin: 0; }
.row p { margin: 0; color: var(--steel-300); }
.row video { width: 100%; max-width: 100%; border-radius: 4px; background: #000; }

/* How it works */
.how { background: var(--carbon); }
.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); position: absolute; left: 0; top: 1.4rem; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border: 2px solid var(--orange); border-radius: 50%; font-weight: 800; color: var(--orange); line-height: 1; }
.steps h3 { margin-bottom: .25rem; }
.steps p { margin: 0; color: var(--steel-300); }

/* Built for the real world */
.built { background: var(--band-photo) center / cover no-repeat, var(--carbon-2); border-block: 1px solid var(--rule-dark); }
.built .wrap { display: grid; gap: 2.5rem; }
.built-intro p { color: var(--steel-300); font-weight: 500; max-width: 28rem; margin: 0; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.75rem; }
.facts li { display: flex; gap: 1.1rem; align-items: flex-start; }
.facts h3 { margin: 0 0 .25rem; }
.facts p { margin: 0; color: var(--steel-300); font-size: .9375rem; }

/* CTA band */
.cta { background: var(--cta-photo) center / cover no-repeat, var(--carbon); }
.cta h2 { max-width: 20ch; font-size: clamp(2rem, 5vw, 3.25rem); }
.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); background: var(--carbon); }
.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 0; }
  .pillars ul { grid-template-columns: repeat(3, 1fr); }
  .pillars li { border-top: 0; border-left: 1px solid var(--rule-dark); padding: 2rem 1.75rem; }
  .pillars li:first-child { border-left: 0; padding-left: 0; }
  .rows { grid-template-columns: 1fr 1fr; column-gap: 3rem; }
  .row { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; gap: 2rem 2.5rem; }
  .site-footer .wrap { grid-template-columns: 1.4fr 1fr; align-items: start; }
}
@media (min-width: 64rem) {
  .hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 3.5rem; }
  .hero-grid--solo { grid-template-columns: minmax(0, 1fr); }
  .panels { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
  .rows { grid-template-columns: repeat(3, 1fr); }
  .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; margin-bottom: .75rem; }
  .built .wrap { grid-template-columns: minmax(0, .7fr) minmax(0, 1.5fr); align-items: start; gap: 4rem; }
  .facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 63.99rem) {
  /* stacked layout: a vertical Carbon gradient behind the headline on narrow viewports */
  :root { --hero-photo: linear-gradient(180deg, rgba(11, 15, 20, .9) 0%, rgba(11, 15, 20, .74) 55%, rgba(11, 15, 20, .5) 100%); }
}
@media (max-width: 39.99rem) {
  .stage { padding-bottom: 2rem; }
}
.how-video { margin-top: 2.5rem; max-width: 48rem; }
.how-video video { display: block; width: 100%; max-width: 100%; border-radius: 4px; background: #000; margin-top: 1rem; }
.how-video p { margin-top: 0.75rem; color: var(--steel-300); }
