/* snagtwin.com — the site's one stylesheet, on the Snagtwin brand guidelines 1.1 (docs/brand/README.md holds every value).
   Georgia for titles and headings, Verdana for everything else; Deep Teal leads, Amber only on dark grounds (1.8:1 on light),
   Teal and Slate as text only on light grounds; the status colours mean a status and nothing else; screenshots framed by a
   1 px Slate 40 line on a light page, never a shadow, a tilt or a device mock-up. */

:root {
  --deep-teal: #0e3a46;
  --amber: #ffb020;
  --teal: #17788f;
  --slate: #5c6673;
  --ink: #171d1f;
  --amber-100: #8a5600;
  --slate-100: #3a424c;
  --mist: #eef2f3;
  --white: #ffffff;
  --teal-40: #a2c9d2;
  --teal-20: #d1e4e9;
  --slate-40: #bec2c7;
  --slate-20: #dee0e3;
  --deep-teal-20: #cfd8da;
  --st-complete: #00874c;
  --st-progress: #2677cc;
  --st-notstarted: #6e7680;
  --st-failed: #c94d44;
  --st-na: #786ba8;
  --st-complete-fill: #00aa6b;
  --st-progress-fill: #4896ee;
  --st-notstarted-fill: #8b949e;
  --st-failed-fill: #e8453d;
  --dark-ground: linear-gradient(90deg, #0e3a46 0%, #0d2f39 55%, #171d1f 100%);
  --mark-strip: linear-gradient(90deg, #5c6673 0 34%, #17788f 34% 67%, #ffb020 67% 100%);
  --serif: Georgia, Gelasio, "Noto Serif", "DejaVu Serif", "Times New Roman", serif;
  --sans: Verdana, "DejaVu Sans", "Noto Sans", Geneva, Tahoma, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 52px);
  --band: clamp(56px, 8vw, 112px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--teal); text-underline-offset: .18em; }
a:hover { color: var(--deep-teal); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.dark :focus-visible, .site-head :focus-visible { outline-color: var(--amber); }
h1, h2, h3 { font-family: var(--serif); font-weight: normal; color: var(--deep-teal); margin: 0; }
h1 { font-size: clamp(36px, 4.6vw, 62px); line-height: 1.1; letter-spacing: -0.5px; }
h2 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.12; letter-spacing: -0.3px; }
h3 { font-size: clamp(21px, 1.8vw, 24px); line-height: 1.2; }
h2 em, h1 em { font-style: italic; color: var(--teal); }
p { margin: 0; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.para { margin-top: 20px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--amber); color: var(--ink); padding: 8px 14px; font-weight: bold; text-decoration: none; }
.skip:focus { top: 12px; }

/* dark grounds: Deep Teal into Ink; White, Mist, Teal 40, Slate 40 and Amber are the only text colours there */
.dark { background: var(--dark-ground); color: var(--white); }
.dark h1, .dark h2, .dark h3 { color: var(--white); }
.dark h1 em, .dark h2 em { color: var(--amber); }
.dark a { color: var(--white); }
.dark a:hover { color: var(--amber); }
.mist { background: var(--mist); }
.strip { height: 4px; background: var(--mark-strip); }

/* the brand line: Georgia, BIM in italic — Amber on dark, Teal on light; standing alone it ends with a full stop */
.brandline { font-family: var(--serif); color: var(--deep-teal); }
.brandline em { font-style: italic; color: var(--teal); }
.dark .brandline { color: var(--white); }
.dark .brandline em { color: var(--amber); }

/* short labels over a column: capitals spaced 1 pt, the only capitals the brand allows */
.label { font-size: 12px; letter-spacing: 1.3px; text-transform: uppercase; color: var(--slate); margin-bottom: 14px; }
.dark .label { color: var(--teal-40); }

/* ---------- the header: nav at the left, the lock-up at the top right (the guideline's position A) ---------- */
.site-head { position: sticky; top: 0; z-index: 20; background: var(--dark-ground); color: var(--white); }
.site-head .wrap { display: flex; align-items: center; gap: 24px; min-height: 78px; }
.lockup { display: block; flex: none; margin-left: auto; padding: 18px 0; }
.lockup img { width: 176px; height: auto; }
.nav { display: flex; gap: clamp(14px, 2vw, 30px); }
.nav a { color: var(--white); text-decoration: none; font-size: 14px; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--white); border-bottom-color: var(--amber); }
.menu-btn { display: none; }

@media (max-width: 899px) {
  .site-head .wrap { min-height: 66px; gap: 12px; }
  .lockup { padding: 15px 0; }
  .lockup img { width: 150px; }
  .menu-btn {
    display: inline-flex; align-items: center; gap: 10px; background: none; border: 1px solid var(--teal-40); color: var(--white);
    font: inherit; font-size: 14px; padding: 8px 12px; cursor: pointer; min-height: 44px;
  }
  .menu-btn svg { width: 18px; height: 18px; fill: currentColor; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0;
    background: var(--deep-teal); border-top: 1px solid rgba(255, 255, 255, .12); padding: 8px var(--gutter) 18px;
  }
  .nav.open { display: flex; }
  .nav a { font-size: 16px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .nav a:hover { border-bottom-color: rgba(255, 255, 255, .12); color: var(--amber); }
}

/* ---------- buttons: square, as Carbon draws them; Amber only on a dark ground ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px;
  font-family: var(--sans); font-size: 15px; font-weight: bold; line-height: 1.2; text-decoration: none; border: 1px solid transparent;
}
.btn-amber { background: var(--amber); color: var(--ink); }
.dark .btn-amber, .dark .btn-amber:hover { color: var(--ink); }
.btn-amber:hover { background: #ffc04d; }
.btn-ghost { border-color: var(--white); color: var(--white); background: transparent; }
.dark .btn-ghost:hover { background: rgba(255, 255, 255, .1); color: var(--white); }
.btn-teal { background: var(--deep-teal); color: var(--white); }
.btn-teal:hover { background: #3e616b; color: var(--white); }

/* ---------- the cover ---------- */
.cover { position: relative; padding: clamp(40px, 6vw, 84px) 0 0; overflow: hidden; }
.cover h1 { max-width: 17em; font-size: clamp(36px, 5vw, 66px); }
.cover-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; margin-top: 28px; }
.cover .lead { font-size: 16px; line-height: 1.7; color: var(--mist); max-width: 40em; }
.cover .cta { display: flex; flex-wrap: wrap; gap: 14px; flex: none; }
.cover .cover-shot { margin: clamp(36px, 5vw, 60px) 0 0; }
.cover-shot img { border: 1px solid rgba(190, 194, 199, .35); }
.cover-shot figcaption { font-size: 12px; color: var(--teal-40); margin-top: 10px; }
.cover-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding-top: clamp(40px, 6vw, 72px); padding-bottom: 28px; }
.cover-foot .brandline { font-size: clamp(22px, 2.4vw, 32px); }
.cover-foot .platforms { font-size: 13px; color: var(--teal-40); text-align: right; }
@media (max-width: 899px) {
  .cover-row { flex-direction: column; align-items: flex-start; }
  .cover-foot { flex-direction: column; align-items: flex-start; gap: 8px; }
  .cover-foot .platforms { text-align: left; }
}

/* ---------- bands and their headings ---------- */
.band { padding: var(--band) 0; }
.band-head { max-width: 900px; margin-bottom: clamp(36px, 5vw, 64px); }
.band-head p { margin-top: 20px; font-size: 16px; max-width: 46em; color: var(--slate-100); }
.dark .band-head p { color: var(--mist); }

/* three pillars */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
.pillar { border-top: 3px solid var(--deep-teal); padding-top: 22px; }
.pillar .ic { width: 32px; height: 32px; fill: var(--deep-teal); margin-bottom: 16px; }
.pillar h3 { margin-bottom: 12px; }
.pillar p { color: var(--slate-100); }
@media (max-width: 899px) { .pillars { grid-template-columns: 1fr; } }

/* how it works */
.how { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 30px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 4px 18px; }
.steps li::before {
  content: counter(step); grid-row: span 2; width: 44px; height: 44px; display: grid; place-items: center;
  font-family: var(--serif); font-size: 22px; color: var(--white); background: var(--deep-teal);
}
.steps h3 { font-size: 21px; padding-top: 8px; }
.steps p { color: var(--slate-100); }
@media (max-width: 899px) { .how { grid-template-columns: 1fr; } }

/* screenshots: the app's own screens, a 1 px Slate 40 line on a light page */
.shot { margin: 0; }
.shot img { border: 1px solid var(--slate-40); background: var(--white); }
.shot figcaption { font-size: 13px; color: var(--slate); margin-top: 10px; }
.dark .shot img { border-color: rgba(190, 194, 199, .35); }
.dark .shot figcaption { color: var(--teal-40); }

/* features: picture and words, side by side, alternating */
.features { display: grid; gap: clamp(56px, 7vw, 96px); }
.feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.features .feature:nth-child(even) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.features .feature:nth-child(even) .shot { order: 2; }
.feature h3 { margin-bottom: 14px; }
.feature p { color: var(--slate-100); }
.dash { list-style: none; margin: 16px 0 0; padding: 0; color: var(--slate-100); }
.dash li { padding-left: 1.5em; text-indent: -1.5em; margin-top: 6px; }
.dash li::before { content: "\2014\00a0 "; color: var(--slate); }
.dark .dash, .dark .feature p { color: var(--mist); }
.dark .dash li::before { color: var(--teal-40); }
@media (max-width: 899px) {
  .feature, .features .feature:nth-child(even) { grid-template-columns: 1fr; }
  .features .feature:nth-child(even) .shot { order: 0; }
}

/* the smaller tools, as an icon grid */
.tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: clamp(56px, 7vw, 96px); border-top: 1px solid var(--slate-20); border-left: 1px solid var(--slate-20); }
.tool { padding: 24px 22px; border-right: 1px solid var(--slate-20); border-bottom: 1px solid var(--slate-20); }
.tool svg { width: 26px; height: 26px; fill: var(--deep-teal); }
.tool b { display: block; margin: 12px 0 6px; font-size: 15px; color: var(--ink); }
.tool span { font-size: 13.5px; color: var(--slate-100); display: block; line-height: 1.6; }
@media (max-width: 999px) { .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 559px) { .tools { grid-template-columns: 1fr; } }

/* phones: upright, at their own proportions, side by side */
.phones { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); }
.phones .shot img { width: 100%; }
@media (max-width: 899px) { .phones { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); margin-top: clamp(40px, 5vw, 64px); }
.field-points h3 { font-size: 21px; margin-bottom: 10px; }
.field-points p { color: var(--mist); }
@media (max-width: 899px) { .field-points { grid-template-columns: 1fr; } }

/* reports: the status key — never colour alone, each status with its icon and its word */
.statuses { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; }
.st { display: inline-flex; align-items: center; gap: 8px; font-weight: bold; font-size: 14px; }
.st svg { width: 18px; height: 18px; flex: none; }
.st-complete { color: var(--st-complete); }
.st-progress { color: var(--st-progress); }
.st-notstarted { color: var(--st-notstarted); }
.st-failed { color: var(--st-failed); }
.st-na { color: var(--st-na); }
.bar { display: flex; gap: 2px; height: 26px; margin-top: 18px; max-width: 520px; }
.bar span { display: block; }
.bar .c { flex: 46; background: var(--st-complete-fill); }
.bar .p { flex: 21; background: var(--st-progress-fill); }
.bar .n { flex: 18; background: var(--st-notstarted-fill); }
.bar .f { flex: 6; background: var(--st-failed-fill); }
.bar .x { flex: 9; background: var(--st-na); }
.bar-note { font-size: 12px; color: var(--slate); margin-top: 6px; }

/* reports: the words beside a report cover drawn on the guideline's report template (its page 35) */
.reports { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
@media (max-width: 899px) { .reports { grid-template-columns: 1fr; } }
.paper-fig { margin: 0; }
.paper-fig figcaption { font-size: 13px; color: var(--slate); margin-top: 10px; }
.paper { background: var(--white); box-shadow: 0 0 0 1px var(--slate-20); aspect-ratio: 210 / 297; max-width: 440px; position: relative; overflow: hidden; }
.paper-in { position: absolute; inset: 0; padding: 7% 7.5%; display: flex; flex-direction: column; font-size: clamp(8px, 1.9vw, 10px); line-height: 1.4; color: var(--ink); }
.pp-logos { display: flex; justify-content: space-between; padding-bottom: 4%; border-bottom: 1.5px solid var(--deep-teal); }
.pp-logos span { border: 1px dashed #9da3ab; color: var(--slate-100); font-size: .85em; width: 30%; aspect-ratio: 12 / 5; display: grid; place-items: center; text-align: center; }
.pp-kind { margin-top: 7%; font-size: .8em; letter-spacing: 1px; color: var(--slate); }
.pp-title { font-family: var(--serif); font-size: 2.6em; line-height: 1.12; color: var(--deep-teal); margin-top: 1.5%; }
.pp-meta { color: var(--slate-100); margin-top: 1.5%; }
.pp-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3%; margin-top: 6%; }
.pp-tile { border: 1px solid var(--slate-20); border-top: 3px solid var(--deep-teal); padding: 6% 7%; }
.pp-tile b { display: block; font-size: 1.8em; line-height: 1.2; }
.pp-tile span { font-size: .75em; color: var(--slate-100); }
.pp-tile.pp-ok { border-top-color: var(--st-complete-fill); }
.pp-tile.pp-ok b { color: var(--st-complete); }
.pp-tile.pp-bad { border-top-color: var(--st-failed-fill); }
.pp-tile.pp-bad b { color: var(--st-failed); }
.pp-h { font-weight: bold; margin-top: 7%; }
.pp-chart { display: flex; align-items: flex-end; gap: 4%; height: 22%; border-bottom: 1px solid #9da3ab; margin-top: 2%; padding: 0 4%; }
.pp-col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.pp-col i { font-style: normal; font-size: .8em; color: var(--ink); }
.pp-col span { width: 100%; border-radius: 2px 2px 0 0; }
.pp-col .c1 { height: 70%; background: #0089a6; }
.pp-col .c2 { height: 45%; background: #d48e00; }
.pp-col .c3 { height: 30%; background: #bf4a7f; }
.pp-col .c4 { height: 58%; background: #676ed1; }
.pp-axis { display: flex; gap: 4%; padding: .4em 4% 0; font-size: .75em; color: var(--slate-100); }
.pp-axis span { flex: 1; text-align: center; }
.pp-tb { width: 100%; border-collapse: collapse; margin-top: 2%; font-size: .85em; }
.pp-tb th { background: var(--deep-teal); color: var(--white); text-align: left; padding: .5em .6em; }
.pp-tb td { padding: .5em .6em; border-bottom: 1px solid var(--slate-20); }
.pp-tb tr:nth-child(even) td { background: var(--mist); }
.pp-tb .num { text-align: right; }
.pp-tb .st-failed, .pp-tb .st-progress { font-weight: bold; }
.pp-foot { margin-top: auto; display: flex; justify-content: space-between; font-size: .7em; color: var(--slate-100); }

/* a table, as the guideline's tables: a Deep Teal head, Mist bands */
.tb { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 8px; }
.tb th { background: var(--deep-teal); color: var(--white); text-align: left; padding: 10px 12px; font-weight: bold; }
.tb td { padding: 10px 12px; border-bottom: 1px solid var(--slate-20); vertical-align: top; }
.tb tr:nth-child(even) td { background: var(--mist); }
.tb td:first-child { font-weight: bold; white-space: nowrap; }
@media (max-width: 559px) { .tb td:first-child { white-space: normal; } }

/* contact */
.contact { padding: var(--band) 0 0; }
.contact h2 { max-width: 15em; font-size: clamp(32px, 4vw, 52px); }
.contact .cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 64px); align-items: end; }
.contact-facts { font-size: 14px; color: var(--mist); }
.contact-facts dt { color: var(--teal-40); font-size: 12px; letter-spacing: 1.3px; text-transform: uppercase; margin-top: 18px; }
.contact-facts dt:first-child { margin-top: 0; }
.contact-facts dd { margin: 4px 0 0; }
@media (max-width: 899px) { .contact-grid { grid-template-columns: 1fr; } }

/* the foot: the brand line at the bottom left, the lock-up at the bottom right (position B) */
.site-foot { padding-top: clamp(56px, 7vw, 96px); }
.foot-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: 26px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.foot-row .brandline { font-size: clamp(20px, 2vw, 26px); }
.foot-row .lockup { margin-left: 0; padding: 0; }
.foot-row .lockup img { width: 176px; }
.foot-small { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding: 18px 0 26px; font-size: 12px; color: var(--teal-40); }
.foot-small p { max-width: 62em; }
.dark .foot-small a { color: var(--teal-40); }
.dark .foot-small a:hover { color: var(--white); }
@media (max-width: 599px) { .foot-row { flex-direction: column-reverse; align-items: flex-start; } }

/* the page not found */
.lost { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 24px; padding-top: var(--band); padding-bottom: var(--band); }
