/* Snagger marketing site.
   Direction: site signage and a marked-up snag sheet. Heavy condensed headlines, plaster-grey ground, safety-yellow marks.
   One memorable thing (the live brand demo in the hero); everything else is deliberately quiet. */
:root {
  --plaster: #eceeea;
  --paper: #f7f8f5;
  --ink: #0d2724;
  --ink-soft: #3c524f;
  --teal: #0f766e;
  --signal: #ffc800;
  --white: #ffffff;
  --rule: #cdd3cd;
  --radius: 10px;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--plaster); color: var(--ink); font-family: var(--font); font-stretch: 100%; font-size: 1.0625rem; line-height: 1.6; }
a { color: inherit; }
img, svg { max-width: 100%; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }

/* ---------- type ---------- */
.hero__title, .h2, .cta__title { font-family: var(--font); font-stretch: 70%; font-weight: 800; line-height: .95; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
.hero__title { font-size: clamp(3.4rem, 9.6vw, 6.8rem); max-width: 13ch; }
.h2 { font-size: clamp(2.3rem, 5.2vw, 3.8rem); max-width: 16ch; }
.h3 { font-family: var(--font); font-stretch: 85%; font-weight: 700; font-size: 1.4rem; line-height: 1.15; margin: 0 0 6px; }
.lede, .prose p { max-width: 60ch; margin: 0 0 1em; color: var(--ink-soft); }
.lede { font-size: 1.15rem; margin-top: 18px; }
.prose p:last-child { margin-bottom: 0; }
.h2 + .prose { margin-top: 24px; }
.prose b { color: var(--ink); font-weight: 700; }

/* ---------- buttons and links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 8px; font: 700 1.05rem/1 var(--font); font-stretch: 90%; text-decoration: none; border: 2px solid var(--ink); transition: transform 140ms ease, box-shadow 140ms ease; }
.btn--signal { background: var(--signal); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.btn--signal:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 var(--ink); }
.btn--signal:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: .98rem; box-shadow: 3px 3px 0 var(--ink); }
.textlink { font-weight: 600; text-underline-offset: 5px; text-decoration-thickness: 2px; display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: var(--plaster); background: color-mix(in srgb, var(--plaster) 92%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font-stretch: 80%; font-weight: 800; font-size: 1.6rem; letter-spacing: -.01em; }
.logo__mark { width: 34px; height: 34px; }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { text-decoration: none; font-weight: 500; padding: 10px 0; }
.nav__links a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }

/* ---------- hero ---------- */
.hero { padding: clamp(28px, 4.5vw, 56px) 0 clamp(56px, 8vw, 104px); }
.hero__lede { font-size: clamp(1.1rem, 1.9vw, 1.25rem); max-width: 54ch; margin: 22px 0 0; color: var(--ink-soft); }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin: 26px 0 clamp(36px, 5vw, 64px); }

/* ---------- the demo stage ---------- */
.stage__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 16px; }
.stage__label { font-weight: 700; font-stretch: 85%; font-size: 1.05rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 600 .98rem/1 var(--font); min-height: 44px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; transition: background 140ms ease; }
.chip:hover { background: var(--paper); }
.chip[aria-checked="true"] { background: var(--ink); color: var(--white); }
.switch { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px; background: none; border: 0; font: 600 .98rem var(--font); color: var(--ink); cursor: pointer; }
.switch__track { width: 44px; height: 26px; border-radius: 999px; background: var(--rule); border: 2px solid var(--ink); position: relative; transition: background 140ms ease; }
.switch__dot { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); transition: transform 140ms ease; }
.switch[aria-checked="true"] .switch__track { background: var(--ink); }
.switch[aria-checked="true"] .switch__dot { transform: translateX(18px); background: var(--signal); }

/* the mock of the real app: every colour and font comes from tokens that demo.js sets per client */
.app { --ground: #f5f6f8; --panel: #fff; --panel-2: #eceef2; --ink: #17212b; --muted: #5b6673; --line: #d9dde3; --accent: #0f766e; --accent-ink: #fff; --accent-soft: #d9efec; --highlight: #c2410c;
  --ok: #1d7a46; --ok-soft: #dcefe3; --warn: #8a5a00; --warn-soft: #f8ebc8; --bad: #b3261e; --bad-soft: #f8e1de;
  --f-display: var(--font); --f-body: var(--font); --f-mono: ui-monospace, monospace;
  border-radius: 14px; overflow: hidden; border: 2px solid var(--ink-fixed, #0d2724); box-shadow: 10px 10px 0 #0d2724; background: var(--ground); color: var(--ink); font-family: var(--f-body); font-stretch: 100%; font-size: 15px; line-height: 1.5; }
.app__chrome { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: var(--panel-2); border-bottom: 1px solid var(--line); }
.app__chrome i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); display: block; }
.app__url { margin-left: 10px; flex: 1; max-width: 380px; background: var(--panel); color: var(--muted); border-radius: 999px; padding: 3px 14px; font: 13px var(--f-mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app__body { padding: clamp(16px, 3vw, 28px); display: grid; gap: 18px; background: var(--ground); }
.app__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 2px solid var(--highlight); }
.app__brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.app__logo { position: relative; width: 52px; height: 52px; flex: none; display: block; }
.app__logo svg { width: 100%; height: 100%; display: block; }
.app__eyebrow { font: 12px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.app__name { font: 600 clamp(1.4rem, 3vw, 2rem)/1.1 var(--f-display); }
.app__btn { flex: none; background: var(--accent); color: var(--accent-ink); font-weight: 600; padding: 9px 16px; border-radius: 9px; font-size: .95rem; }
.app__tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.tile b { display: block; font: 600 1.6rem/1.1 var(--f-display); font-variant-numeric: tabular-nums; }
.tile span { color: var(--muted); font-size: .88rem; }
.tile--hot { background: var(--bad-soft); border-color: var(--bad-soft); }
.tile--hot b { color: var(--bad); }
.app__list { display: grid; gap: 10px; }
.snag { position: relative; display: grid; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.snag--high { border-left: 4px solid var(--bad); }
.snag--done { background: var(--panel-2); }
.snag--done .snag__title b { color: var(--muted); }
.snag__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 6px 12px; }
.snag__title { display: flex; gap: 10px; align-items: baseline; min-width: 0; flex: 1 1 240px; }
.snag__ref { font: 12.5px var(--f-mono); color: var(--muted); flex: none; }
.snag__title b { font-weight: 600; }
.snag__pills { display: flex; gap: 6px; flex-wrap: wrap; align-items: flex-start; }
.pill { font-size: .78rem; font-weight: 600; padding: 1px 10px; border-radius: 999px; background: var(--panel-2); color: var(--muted); white-space: nowrap; }
.pill--high { background: var(--bad-soft); color: var(--bad); }
.pill--medium { background: var(--warn-soft); color: var(--warn); }
.pill--open { background: var(--accent-soft); color: var(--accent); }
.pill--progress { background: var(--warn-soft); color: var(--warn); }
.pill--waiting { background: var(--panel-2); color: var(--ink); }
.pill--resolved { background: var(--ok-soft); color: var(--ok); }
.snag__meta { position: relative; display: flex; flex-wrap: wrap; gap: 2px 16px; color: var(--muted); font-size: .88rem; }
.snag__meta b { color: var(--ink); font-weight: 500; }
.snag__notes { margin: 0; font-size: .92rem; }
.snag__notes:empty { display: none; }
.snag--photo { padding-right: 118px; }
.snag__photo { position: absolute; right: 14px; top: 50%; translate: 0 -50%; width: 84px; height: 84px; border-radius: 10px; border: 1px solid var(--line); overflow: visible; }
.snag__photo svg { width: 100%; height: 100%; border-radius: 10px; display: block; }

/* numbered marks, like pen marks on a snag sheet; they drop in once, in order */
.pin { position: absolute; z-index: 2; width: 30px; height: 30px; border-radius: 50%; background: var(--signal); color: #0d2724; font: 800 .95rem/1 "Archivo", sans-serif; display: grid; place-items: center; box-shadow: 0 0 0 3px #fff, 0 3px 10px rgba(0, 0, 0, .35); }
.pin--1 { left: -14px; top: -14px; animation-delay: 250ms; }
.pin--2 { position: relative; display: inline-grid; vertical-align: middle; margin-left: 8px; width: 26px; height: 26px; font-size: .85rem; animation-delay: 600ms; }
.pin--3 { right: -12px; bottom: -12px; animation-delay: 950ms; }
.js .pin { opacity: 0; transform: scale(0); }
.js .stage--seen .pin { animation-name: drop; animation-duration: 520ms; animation-timing-function: cubic-bezier(.3, 1.5, .5, 1); animation-fill-mode: both; }
.js .stage .pin.pin--set { animation: none; opacity: 1; transform: none; }
@keyframes drop { from { transform: scale(0) rotate(-40deg); opacity: 0; } to { transform: scale(1) rotate(0); opacity: 1; } }

.legend { list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 28px; }
.legend li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.legend__n { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--signal); border: 2px solid var(--ink); display: grid; place-items: center; font-weight: 800; font-size: .9rem; line-height: 1; }

.stage__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 36px; padding-top: 28px; border-top: 2px solid var(--ink); }
.stage__cta p { margin: 0; font-weight: 700; font-stretch: 85%; font-size: clamp(1.3rem, 2.6vw, 1.7rem); line-height: 1.2; }

/* ---------- bands ---------- */
.band { padding: clamp(64px, 9vw, 112px) 0; }
.band--plain { background: var(--plaster); }
.band--paper { background: var(--paper); border-block: 1px solid var(--rule); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px clamp(32px, 7vw, 96px); align-items: start; }

.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px clamp(32px, 6vw, 80px); }
.step { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; }
.step p { margin: 0; color: var(--ink-soft); max-width: 44ch; }
.step__n { width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: var(--signal); display: grid; place-items: center; font: 800 1.35rem/1 var(--font); font-stretch: 85%; }

.spec { margin: 0; display: grid; border-top: 2px solid var(--ink); }
.spec div { display: grid; grid-template-columns: 11rem 1fr; gap: 6px 24px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.spec dt { font-weight: 700; font-stretch: 90%; }
.spec dd { margin: 0; color: var(--ink-soft); }

.tablewrap { overflow-x: auto; margin-top: 36px; }
.roles { width: 100%; min-width: 560px; border-collapse: collapse; background: var(--white); border: 2px solid var(--ink); }
.roles th, .roles td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--rule); }
.roles thead th { background: var(--ink); color: var(--white); font-weight: 600; border-bottom: 0; }
.roles tbody th { font-weight: 500; }
.roles td { font-weight: 700; width: 120px; }
.roles .yes { color: #0b5d3a; }
.roles .no { color: #6a5d57; font-weight: 500; }
.roles tbody tr:last-child > * { border-bottom: 0; }

.faq { display: grid; border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; padding: 18px 40px 18px 0; font-weight: 700; font-stretch: 92%; font-size: 1.15rem; list-style: none; position: relative; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; translate: 0 -50%; font-size: 1.6rem; font-weight: 500; transition: rotate 160ms ease; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { margin: 0 0 20px; color: var(--ink-soft); max-width: 56ch; }

/* ---------- closing call to action ---------- */
.cta { background: var(--ink); color: var(--white); padding: clamp(72px, 10vw, 128px) 0; }
.cta__title { font-size: clamp(2.8rem, 8vw, 6rem); max-width: 12ch; }
.cta__text { max-width: 54ch; margin: 24px 0 34px; color: #c3d2cf; font-size: 1.15rem; }
.cta__alt { margin: 22px 0 0; color: #c3d2cf; }
.cta__alt a, .foot a { color: var(--white); text-underline-offset: 4px; display: inline-block; padding-block: 12px; }
.cta :focus-visible, .foot :focus-visible { outline-color: var(--signal); }
.cta .btn { border-color: var(--signal); box-shadow: 4px 4px 0 var(--teal); }
.cta .btn:hover { box-shadow: 6px 6px 0 var(--teal); }

.foot { background: var(--ink); color: #aebfbb; border-top: 1px solid #1d3a36; padding: 22px 0; font-size: .95rem; }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }

.notfound { padding-block: clamp(64px, 14vw, 160px); }
.notfound .h2 { max-width: 14ch; }
.notfound__back { margin-top: 28px; }

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__in { justify-content: space-between; }
  .split, .steps { grid-template-columns: 1fr; }
  .legend { grid-template-columns: 1fr; }
  .spec div { grid-template-columns: 1fr; gap: 2px; }
  .switch { margin-left: 0; }
}
@media (max-width: 600px) {
  .wrap { width: min(1160px, 100% - 32px); }
  .app { box-shadow: 6px 6px 0 #0d2724; }
  .app__head { align-items: flex-start; flex-wrap: wrap; }
  .app__btn { display: none; }
  .app__tiles { grid-template-columns: 1fr 1fr; }
  .app__tiles .tile:last-child { grid-column: 1 / -1; }
  .snag--photo { padding-right: 14px; }
  .snag__photo { position: relative; right: auto; top: auto; translate: none; margin-top: 4px; width: 72px; height: 72px; }
  .pin--1 { left: -8px; top: -10px; }
  .hero__cta .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .js .pin { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (forced-colors: active) {
  .pin, .legend__n, .step__n { border: 2px solid CanvasText; forced-color-adjust: none; background: Canvas; color: CanvasText; }
  .chip[aria-checked="true"] { border-width: 4px; }
  .switch__track { forced-color-adjust: none; background: Canvas; }
  .switch[aria-checked="true"] .switch__dot { background: Highlight; }
  .btn--signal { border-width: 3px; }
}

/* Demo request dialog */
.demo { border: 3px solid var(--ink); border-radius: 12px; padding: 0; width: min(480px, calc(100% - 32px)); max-height: calc(100dvh - 32px); background: var(--paper); color: var(--ink); box-shadow: 8px 8px 0 var(--ink); }
.demo::backdrop { background: rgb(13 39 36 / .55); }
.demo__form, .demo__done { padding: 28px 24px 24px; position: relative; }
.demo__title { font: 800 1.7rem/1.1 var(--font); margin: 0 36px 8px 0; }
.demo__intro { margin: 0 0 20px; color: var(--ink-soft); max-width: 40ch; }
.demo__close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; background: none; font-size: 1.9rem; line-height: 1; color: var(--ink); cursor: pointer; border-radius: 8px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; margin-bottom: 5px; }
.field__opt { font-weight: 400; color: var(--ink-soft); }
.field input, .field textarea { width: 100%; min-height: 44px; padding: 10px 12px; font: inherit; color: var(--ink); background: var(--white); border: 2px solid var(--ink-soft); border-radius: 8px; }
.field textarea { resize: vertical; }
.field input[aria-invalid="true"] { border-color: #b3261e; }
.field__err { margin: 4px 0 0; color: #b3261e; font-weight: 600; min-height: 0; }
.field__err:empty { display: none; }
.demo__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.demo__status { margin: 0 0 12px; font-weight: 600; }
.demo__status:empty { display: none; }
.demo__status.is-error { color: #b3261e; }
.demo__actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.demo__cancel { background: none; border: 0; font: inherit; cursor: pointer; min-height: 44px; padding: 0 4px; }
.demo [data-submit][disabled] { opacity: .65; cursor: progress; }
html:has(.demo[open]) { overflow: hidden; }
.field input:focus-visible, .field textarea:focus-visible { outline-offset: 1px; border-color: var(--teal); }
.demo__done:focus { outline: none; }
@media (max-height: 640px) { .demo__form, .demo__done { padding-top: 20px; } .demo__intro { margin-bottom: 14px; } .field { margin-bottom: 10px; } }
