/* Subworks website. Brand kit v1 (locked 25 Nov 2026). No scripts; strict CSP (see vercel.json). */

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/plus-jakarta-sans-latin.woff2") format("woff2");
}

:root {
  --navy: #0e1a2b;
  --orange: #ff7a1a;        /* logo and fills; never text on white */
  --orange-text: #c2520a;   /* orange words and links on white */
  --tile: #2a3b55;
  --mist: #9aa8bc;
  --ground: #f4f6f9;
  --white: #ffffff;
  --body: #33404f;
  --quiet: #5b6878;
  --rule: #dde2ea;
  --pass: #1a6834;
  --flag: #b3261e;
  --warn: #c76a12;
  --measure: 68ch;
  --page: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem; line-height: 1.6; color: var(--body); background: var(--white);
}
a { color: var(--orange-text); text-underline-offset: 0.18em; }
a:hover { color: var(--navy); }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { color: var(--navy); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; text-wrap: balance; }
h1 { font-size: clamp(2rem, 5vw, 2.75rem); margin: 0 0 0.5em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.1rem); margin: 0 0 0.5em; }
h3 { font-size: 1.125rem; margin: 0 0 0.35em; }
p, li { text-wrap: pretty; }

.wrap { max-width: var(--page); margin: 0 auto; padding: 0 1.25rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--white); padding: 0.5rem 1rem; z-index: 30; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.eyebrow { display: block; margin: 0 0 0.6rem; font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange-text); }
.lede { max-width: 56ch; margin: 0 0 2rem; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; min-height: 48px;
  padding: 0 1.5rem; border-radius: 8px; font-weight: 700; text-decoration: none;
  background: var(--orange); color: var(--navy);
}
.button:hover { background: #ff9447; color: var(--navy); }

/* ---------- Header (stays put, frosted) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.82); -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { height: 2rem; width: auto; display: block; }
.site-nav { display: flex; gap: 0.25rem; margin-right: -0.75rem; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.75rem; color: var(--navy); font-weight: 600; text-decoration: none; border-radius: 6px; }
.site-nav a:hover { background: var(--ground); }
.site-nav a[aria-current="page"] { color: var(--orange-text); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; background: var(--navy); color: var(--white); padding: 4.5rem 0 4rem; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none; right: -6rem; bottom: -5rem; width: 34rem; height: 22rem;
  background:
    linear-gradient(#fff, #fff) 0 0 / 100% 22% no-repeat,
    linear-gradient(var(--mist), var(--mist)) 0 50% / 100% 22% no-repeat,
    linear-gradient(var(--orange), var(--orange)) 0 100% / 100% 22% no-repeat;
  opacity: 0.045; transform: rotate(-8deg); border-radius: 1rem;
}
.hero h1 { color: var(--white); letter-spacing: -0.03em; font-size: clamp(2rem, 5.4vw, 3.25rem); }
.hero h1 .accent { color: var(--orange); }
.hero p { color: #d5dce6; font-size: 1.1875rem; max-width: 36ch; margin: 0 0 2rem; }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
.hero-visual { position: relative; justify-self: center; }
.hero-visual::before {
  content: ""; position: absolute; inset: 10% -10%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 122, 26, 0.35), transparent); filter: blur(30px);
}
@media (min-width: 64rem) {
  .hero-grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 2rem; }
  .hero h1 { font-size: clamp(2.25rem, 3.4vw, 3.1rem); }
}

/* ---------- Proof line ---------- */
.proof { background: var(--tile); color: #e6ebf2; }
.proof p { margin: 0; padding: 1.1rem 0; font-weight: 600; text-align: center; }

/* ---------- How it works ---------- */
.steps-band { padding: 4.5rem 0 3.5rem; }
.steps { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.steps p { margin: 0; }
.step-n { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--navy); color: var(--orange); font-weight: 800; margin-bottom: 1rem; }

/* Cards that lift on hover */
.steps li, .hs-grid li { background: var(--ground); border: 1px solid var(--rule); border-radius: 14px; padding: 1.5rem; transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease; }
.steps li:hover, .hs-grid li:hover { transform: translateY(-3px); box-shadow: 0 0.75rem 1.75rem rgba(14, 26, 43, 0.1); border-color: rgba(255, 122, 26, 0.6); }
@media (prefers-reduced-motion: reduce) {
  .steps li, .hs-grid li { transition: none; }
  .steps li:hover, .hs-grid li:hover { transform: none; }
}

/* ---------- Showcase rows ---------- */
.showcase { background: var(--ground); padding: 4.5rem 0 1.5rem; overflow: hidden; }
.hs { padding: 4.5rem 0 1.5rem; overflow: hidden; }
.show-row { display: grid; gap: 2.5rem; align-items: center; padding: 3rem 0; border-top: 1px solid var(--rule); }
.showcase .show-row:first-of-type { border-top: 0; }
.show-copy h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.show-copy > p { margin: 0 0 1rem; max-width: 44ch; }
.captures { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.captures li { display: flex; gap: 0.6rem; align-items: baseline; margin: 0; }
.captures li::before { content: ""; flex: none; width: 0.55rem; height: 0.55rem; border-radius: 2px; background: var(--orange); transform: translateY(-0.1rem); }
.show-visual { position: relative; display: grid; justify-items: center; }
.show-visual::before { content: ""; position: absolute; inset: 15% 10%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 122, 26, 0.22), transparent); filter: blur(24px); }
.show-visual .stage { position: relative; z-index: 1; }
@media (min-width: 52rem) {
  .show-row { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .show-row.flip .show-copy { order: 2; }
}

/* ---------- Health and safety grid ---------- */
.hs-grid { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(14.5rem, 1fr)); }
.hs-grid li { padding: 1.25rem; background: var(--white); }
.hs-grid .icon { width: 1.75rem; height: 1.75rem; color: var(--orange-text); margin-bottom: 0.75rem; }
.hs-grid h3 { font-size: 1.0625rem; }
.hs-grid p { margin: 0; font-size: 0.96875rem; color: var(--quiet); }

/* ---------- Call to action ---------- */
.cta { background: var(--navy); color: #d5dce6; padding: 4.5rem 0; text-align: center; }
.cta .eyebrow { color: var(--orange); }
.cta h2 { color: #fff; margin: 0 auto 0.6rem; }
.cta p { max-width: 44ch; margin: 0 auto 1.75rem; }
.cta .cta-alt { margin: 1rem auto 0; font-size: 0.9375rem; color: var(--mist); }
.cta .cta-alt a { color: #fff; }

/* ---------- Text pages ---------- */
.page { padding: 3rem 0 4rem; }
.page .wrap > * { max-width: var(--measure); }
.page h2 { font-size: 1.5rem; margin-top: 2em; }
.page .updated { color: var(--quiet); font-size: 0.9375rem; margin-top: -0.25rem; }
.page ul { padding-left: 1.25rem; }
.page li { margin-bottom: 0.4rem; }
.page li::marker { color: var(--orange-text); }
.table-scroll { overflow-x: auto; max-width: var(--measure); }
table { border-collapse: collapse; width: 100%; font-size: 0.96875rem; }
th, td { text-align: left; vertical-align: top; padding: 0.6rem 0.75rem 0.6rem 0; border-bottom: 1px solid var(--rule); }
th { color: var(--navy); font-weight: 700; }
.callout { background: var(--ground); border-left: 4px solid var(--orange); border-radius: 0 8px 8px 0; padding: 1rem 1.25rem; margin: 1.5rem 0; }
.callout h2 { margin: 0 0 0.5rem; font-size: 1.125rem; }
.callout p { margin: 0.25rem 0; }
.draft-gap { background: #fff1c2; color: #5c3b00; padding: 0 0.3em; border-radius: 3px; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--mist); padding: 2.5rem 0; font-size: 0.9375rem; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: center; }
.site-footer img { height: 1.75rem; width: auto; display: block; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-left: -0.6rem; }
.site-footer a { color: var(--white); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.6rem; }
.site-footer a:hover { color: var(--orange); }
.site-footer .legal { width: 100%; margin: 0; }

@media (max-width: 30rem) {
  .hero { padding: 3rem 0 2.75rem; }
  .brand img { height: 1.75rem; }
  .site-nav { margin-right: -0.5rem; }
  .site-nav a { padding: 0 0.5rem; }
}

/* =========================================================
   App illustrations. They show the app's layout and its real
   screen, section and status names, with soft placeholder
   lines for content. Not real screens; no real data.
   ========================================================= */
.stage { position: relative; margin: 0 auto; }
.stage-hero { width: 640px; height: 470px; }
.stage-hero .dev-browser { position: absolute; left: 0; top: 0; width: 540px; }
.stage-hero .dev-front { position: absolute; right: 0; bottom: 0; width: 210px; transform: rotate(3deg); }
.stage-hero .dev-front .screen { height: 420px; }
.stage-phone { width: 250px; }
.stage-tablet { width: 440px; }
.stage-browser { width: 520px; }
@media (min-width: 64rem) { .stage-hero { zoom: 0.82; } }
@media (min-width: 64rem) and (max-width: 75rem) { .stage-hero { zoom: 0.7; } }
@media (min-width: 52rem) and (max-width: 64rem) { .stage-browser { zoom: 0.8; } .stage-tablet { zoom: 0.9; } }
@media (max-width: 64rem) { .stage-hero { zoom: 0.8; } }
@media (max-width: 40rem) { .stage-hero { zoom: 0.54; } .stage-tablet { zoom: 0.76; } .stage-browser { zoom: 0.66; } .stage-phone { zoom: 0.92; } }
@media (max-width: 23rem) { .stage-hero { zoom: 0.48; } .stage-tablet { zoom: 0.68; } .stage-browser { zoom: 0.6; } }

/* Device frames */
.device { position: relative; font-size: 12px; line-height: 1.35; color: var(--navy); text-align: left; }
.device em { font-style: normal; }
.dev-phone { width: 250px; border-radius: 34px; background: #1b2a40; padding: 9px; box-shadow: 0 1.75rem 3.5rem rgba(14, 26, 43, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.dev-phone .screen { border-radius: 26px; overflow: hidden; background: #eef1f5; height: 500px; display: flex; flex-direction: column; }
.dev-tablet { width: 440px; border-radius: 26px; background: #1b2a40; padding: 12px; box-shadow: 0 1.75rem 3.5rem rgba(14, 26, 43, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.dev-tablet .screen { border-radius: 14px; overflow: hidden; background: #eef1f5; height: 320px; display: flex; flex-direction: column; }
.dev-browser { width: 100%; border-radius: 12px; background: #fff; overflow: hidden; box-shadow: 0 1.75rem 3.5rem rgba(14, 26, 43, 0.22), 0 0 0 1px rgba(14, 26, 43, 0.08); }
.dev-browser .chrome { height: 28px; background: #e9edf3; display: flex; align-items: center; gap: 6px; padding: 0 12px; }
.dev-browser .chrome i { width: 9px; height: 9px; border-radius: 50%; background: #c7cfdb; }
.dev-browser .chrome b { margin-left: 14px; height: 13px; flex: 0 1 200px; border-radius: 7px; background: #fff; }
.dev-browser .screen { display: grid; grid-template-columns: 118px 1fr; height: 330px; background: #eef1f5; }

/* App chrome */
.app-top { background: var(--navy); color: #fff; padding: 26px 14px 11px; display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13.5px; }
.dev-tablet .app-top { padding-top: 11px; }
.mini-mark { width: 18px; height: 18px; border-radius: 5px; background: var(--tile); display: grid; align-content: center; gap: 2px; padding: 0 3.5px; flex: none; }
.mini-mark i { display: block; height: 2.5px; border-radius: 1px; background: #fff; }
.mini-mark i:nth-child(2) { background: var(--mist); }
.mini-mark i:nth-child(3) { background: var(--orange); }
.app-body { padding: 10px; display: grid; gap: 8px; align-content: start; overflow: hidden; flex: 1; }
.app-btn { margin: auto 10px 12px; background: var(--orange); color: var(--navy); font-weight: 800; text-align: center; border-radius: 9px; padding: 10px; font-size: 12.5px; }
.app-body .app-btn { margin: 2px 0 0; }
.app-btn.ghost { background: #fff; box-shadow: inset 0 0 0 1.5px #c4ccd8; }
.tabbar { display: flex; justify-content: space-around; background: #fff; border-top: 1px solid #e1e6ed; padding: 9px 2px 14px; font-size: 10px; color: var(--quiet); }
.tabbar span { padding: 3px 5px; border-radius: 999px; white-space: nowrap; }
.tabbar .on { background: #dbeeff; color: var(--navy); font-weight: 700; }
.stepper { display: flex; gap: 4px; padding: 9px 10px 0; font-size: 10px; }
.stepper span { flex: 1; text-align: center; padding: 5px 0; border-radius: 6px; background: #dfe5ec; color: var(--quiet); white-space: nowrap; }
.stepper .done { background: #d8eadf; color: var(--pass); font-weight: 700; }
.stepper .on { background: var(--navy); color: #fff; font-weight: 700; }
.side { background: var(--navy); color: var(--mist); padding: 12px 9px; display: grid; gap: 3px; align-content: start; font-size: 11px; }
.side .mini-mark { margin-bottom: 10px; }
.side span { padding: 5px 7px; border-radius: 6px; white-space: nowrap; }
.side span.on { background: rgba(255, 255, 255, 0.1); color: #fff; font-weight: 700; }
.main { padding: 13px; display: grid; gap: 9px; align-content: start; overflow: hidden; }
.tablet-body { flex: 1; display: grid; grid-template-columns: 132px 1fr; min-height: 0; }
.tablet-steps { background: #fff; border-right: 1px solid #e1e6ed; padding: 10px 8px; display: grid; gap: 3px; align-content: start; font-size: 11px; color: var(--quiet); }
.tablet-steps span { padding: 6px 8px; border-radius: 6px; }
.tablet-steps .done { color: var(--pass); font-weight: 700; }
.tablet-steps .on { background: var(--navy); color: #fff; font-weight: 700; }

/* Illustration pieces */
.ill-title { font-size: 15px; font-weight: 800; }
.ill-card { background: #fff; border-radius: 10px; padding: 10px 11px; box-shadow: 0 1px 2px rgba(14, 26, 43, 0.07); display: grid; gap: 7px; }
.ill-label { font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--quiet); }
.ill-row { display: flex; align-items: center; gap: 8px; min-height: 18px; }
.ill-row .sk { flex: none; }
.ill-row .chip { margin-left: auto; }
.ill-row.total { border-top: 1px solid #edf0f4; padding-top: 6px; font-weight: 800; }
.ill-row .num { margin-left: auto; font-weight: 700; }
.sk { display: block; height: 7px; border-radius: 4px; background: #d6dce5; }
.sk.dk { background: #9aa6b6; height: 8px; }
.sk.lt { background: #e6eaf0; }
.w15 { width: 15%; } .w20 { width: 20%; } .w25 { width: 25%; } .w30 { width: 30%; } .w35 { width: 35%; } .w40 { width: 40%; } .w45 { width: 45%; } .w50 { width: 50%; }
.w55 { width: 55%; } .w60 { width: 60%; } .w65 { width: 65%; } .w70 { width: 70%; } .w75 { width: 75%; } .w80 { width: 80%; } .w85 { width: 85%; } .w90 { width: 90%; }
.st { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.st svg { width: 11px; height: 11px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.st.pass { background: var(--pass); }
.st.flag { background: var(--flag); }
.st.flag svg, .st.warn svg { stroke-width: 2.5; }
.st.warn { background: var(--warn); }
.st.open { box-shadow: inset 0 0 0 2px #c4ccd8; }
.chip { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 10px; font-weight: 700; background: #e6ebf2; color: #33404f; white-space: nowrap; }
.chip.done { background: #ffe7d6; color: #8a3a06; }
.chip.flagged { background: #fbe1df; color: #8c1d17; }
.chip.ok { background: #d8eadf; color: #14522a; }
.chip.warn { background: #fdebd3; color: #7a4105; }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.thumbs span { height: 44px; border-radius: 7px; background: linear-gradient(135deg, #e3e8ef, #cfd7e2); display: grid; place-items: center; }
.thumbs svg { width: 18px; height: 18px; fill: none; stroke: #5f6f86; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sig { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; border-bottom: 1.5px solid #d6dce5; padding-bottom: 3px; }
.sig svg { width: 100px; height: 28px; fill: none; stroke: var(--navy); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ill-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ill-stat { background: #fff; border-radius: 9px; padding: 8px 10px; box-shadow: 0 1px 2px rgba(14, 26, 43, 0.07); display: grid; gap: 3px; }
.ill-stat span { font-size: 10px; color: var(--quiet); font-weight: 700; }
.ill-stat strong { font-size: 18px; font-weight: 800; line-height: 1; }
.ill-stat .bar { height: 4px; border-radius: 2px; background: var(--orange); }
.ill-table { background: #fff; border-radius: 10px; box-shadow: 0 1px 2px rgba(14, 26, 43, 0.07); overflow: hidden; }
.ill-table div { display: grid; grid-template-columns: 1.1fr 1.2fr 0.7fr; gap: 10px; padding: 9px 11px; border-top: 1px solid #edf0f4; align-items: center; }
.ill-table div.th { border-top: 0; font-size: 10px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--quiet); }
.ill-table .chip { justify-self: start; }
.pills { display: flex; gap: 4px; }
.pills i { width: 22px; height: 9px; border-radius: 999px; background: #c9d6ea; }
.pills i:nth-child(2) { background: #f3cfb3; }
.pills i:nth-child(3) { background: #cfe3d6; }
.rec { justify-items: center; text-align: center; padding: 16px 12px 12px; }
.rec-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--flag); display: grid; place-items: center; box-shadow: 0 0 0 6px rgba(179, 38, 30, 0.14); }
.rec-icon svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wave { display: flex; align-items: center; gap: 3px; height: 34px; }
.wave i { width: 4px; border-radius: 2px; background: var(--navy); opacity: 0.7; height: 45%; }
.wave i:nth-child(3n) { height: 85%; } .wave i:nth-child(4n) { height: 60%; } .wave i:nth-child(5n) { height: 100%; } .wave i:nth-child(7n) { height: 25%; }
.stage-hero .main { padding-right: 118px; }
.cta .addr { color: #fff; font-weight: 700; user-select: all; }
