/* Schildmark public site. Palette and type: docs/BRAND.md. */

@font-face { font-family: 'Fira Sans'; font-weight: 400; font-display: swap; src: url(fonts/fira-sans-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: 'Fira Sans'; font-weight: 400; font-display: swap; src: url(fonts/fira-sans-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-024F, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fira Sans'; font-weight: 600; font-display: swap; src: url(fonts/fira-sans-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: 'Fira Sans'; font-weight: 600; font-display: swap; src: url(fonts/fira-sans-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-024F, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fira Sans'; font-weight: 800; font-display: swap; src: url(fonts/fira-sans-latin-800-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215; }
@font-face { font-family: 'Fira Sans'; font-weight: 800; font-display: swap; src: url(fonts/fira-sans-latin-ext-800-normal.woff2) format('woff2'); unicode-range: U+0100-024F, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fira Mono'; font-weight: 400; font-display: swap; src: url(fonts/fira-mono-latin-400-normal.woff2) format('woff2'); }

:root {
  --paper: #F4F5F2;
  --white: #FFFFFF;
  --ink: #182022;
  --muted: #586567;
  --line: #D8DCD5;
  --anthracite: #111618;
  --anthracite-2: #1E272B;
  --anthracite-line: #2F3B3F;
  --on-dark: #E3E8E6;
  --on-dark-muted: #8E9A99;
  --signal: #F5B225;
  --signal-ink: #915F00;
  --red: #F05A4F;
  --live: #4CB8A9;
  --sans: 'Fira Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Fira Mono', ui-monospace, Menlo, monospace;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
a { color: inherit; }
img, svg { display: block; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
:focus-visible { outline: 2px solid var(--signal-ink); outline-offset: 3px; border-radius: 2px; }
.dark :focus-visible { outline-color: var(--signal); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--white); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* header */
.top { position: sticky; top: 0; z-index: 5; background: rgb(244 245 242 / 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 20px; letter-spacing: -0.01em; text-decoration: none; }
.brand img { width: 26px; height: 26px; }
.top nav { display: flex; gap: 24px; margin-left: auto; font-size: 15px; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover { color: var(--ink); }
.lang { font-size: 14px; color: var(--muted); text-decoration: none; border: 1px solid var(--line); border-radius: 3px; padding: 3px 8px; }
.lang:hover { color: var(--ink); border-color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 20px; border-radius: 3px; font: 600 16px/1 var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap; }
.btn-signal { background: var(--signal); color: var(--anthracite); }
.btn-signal:hover { background: #FFC23D; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.top .btn { height: 38px; padding: 0 16px; font-size: 15px; }

/* hero */
.hero { padding: clamp(56px, 9vw, 112px) 0 clamp(40px, 6vw, 64px); }
.hero h1 { font-weight: 800; font-size: clamp(42px, 7.2vw, 92px); line-height: 0.98; letter-spacing: -0.035em; max-width: 13ch; }
.hero .lede { margin-top: 28px; font-size: clamp(18px, 2vw, 21px); line-height: 1.55; color: var(--muted); max-width: 40em; }
.hero .lede strong { color: var(--ink); font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* the march: the one moving thing on the page */
.march { background: var(--anthracite); color: var(--on-dark); }
.march figure { position: relative; }
.march svg { width: 100%; height: auto; }
.march figcaption { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: baseline; padding: 18px 0 28px; border-top: 1px solid var(--anthracite-line); color: var(--on-dark-muted); font-size: 15px; }
.march figcaption b { color: var(--on-dark); font-weight: 600; }
.march .src { font-family: var(--mono); font-size: 13px; }

.m-label { font: 400 13px var(--mono); fill: var(--on-dark-muted); }
.m-zone { font: 600 14px var(--sans); fill: var(--on-dark-muted); }
.m-tag rect { fill: var(--anthracite-2); stroke: var(--red); }
.m-tag text { font: 400 13px var(--mono); fill: var(--on-dark); }
.m-tag .t-head { font: 600 13px var(--sans); fill: var(--red); }
.flow { fill: var(--on-dark-muted); }
.flow.in { fill: var(--live); }
.hostile { fill: var(--red); }

@media (prefers-reduced-motion: no-preference) {
  .flow { animation: cross var(--d, 7s) linear var(--delay, 0s) infinite; opacity: 0; }
  .hostile { animation: approach 2.8s cubic-bezier(.3,.7,.4,1) 0.6s both; }
  .halt { animation: halt 1.6s ease-out 3.2s 2 both; transform-origin: 744px 130px; transform-box: view-box; }
  .m-tag { animation: appear 0.5s ease-out 3.4s both; }
}
@keyframes cross { 0% { transform: translateX(0); opacity: 0; } 6% { opacity: 1; } 94% { opacity: 1; } 100% { transform: translateX(1180px); opacity: 0; } }
@keyframes approach { from { transform: translateX(-640px); } to { transform: translateX(0); } }
@keyframes halt { from { opacity: 0.9; transform: scale(1); } to { opacity: 0; transform: scale(3.2); } }
@keyframes appear { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .halt { display: none; } .flow { opacity: 0.8; } }

/* sections */
section.band { padding: clamp(64px, 9vw, 120px) 0; }
section.band + section.band { border-top: 1px solid var(--line); }
.band h2 { font-weight: 800; font-size: clamp(30px, 4vw, 48px); line-height: 1.05; letter-spacing: -0.025em; max-width: 18ch; }
.band .intro { margin-top: 18px; color: var(--muted); max-width: 38em; font-size: 18px; }

/* capabilities: ruled rows, not cards */
.caps { margin-top: 48px; border-top: 2px solid var(--ink); }
.cap { display: grid; grid-template-columns: 180px minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.cap dt { font-weight: 800; font-size: 26px; letter-spacing: -0.02em; line-height: 1.1; }
.cap .what { font-size: 18px; line-height: 1.5; }
.cap .with { font-size: 15px; color: var(--muted); }
.cap .with code { font-family: var(--mono); font-size: 14px; color: var(--ink); }

/* one agent */
.agent { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.term { background: var(--anthracite); color: var(--on-dark); border-radius: 6px; padding: 22px 24px; font: 400 14px/1.7 var(--mono); overflow-x: auto; }
.term .c { color: var(--on-dark-muted); }
.term .k { color: var(--signal); }
.agent ul { margin: 22px 0 0; padding: 0; list-style: none; }
.agent li { padding: 10px 0; border-top: 1px solid var(--line); color: var(--muted); }
.agent li b { color: var(--ink); font-weight: 600; }

/* compliance */
.frameworks { display: flex; flex-wrap: wrap; gap: 0; margin-top: 40px; border: 1px solid var(--ink); border-radius: 3px; width: fit-content; max-width: 100%; }
.frameworks span { padding: 12px 20px; font-weight: 600; font-size: 17px; border-right: 1px solid var(--ink); }
.frameworks span:last-child { border-right: 0; }
.proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 40px; }
.proof h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.proof p { color: var(--muted); font-size: 16px; }
.note { margin-top: 32px; font-size: 15px; color: var(--muted); max-width: 46em; }

/* deployment */
.deploy { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 48px; border-top: 2px solid var(--ink); }
.deploy > div { padding: 28px 32px 8px 0; }
.deploy > div + div { padding-left: 32px; border-left: 1px solid var(--line); }
.deploy h3 { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 10px; }
.deploy p { color: var(--muted); }
.deploy p + p { margin-top: 12px; }

/* pricing + contact: the dark close */
.close { background: var(--anthracite); color: var(--on-dark); padding: clamp(64px, 9vw, 120px) 0; }
.close .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); }
.close h2 { font-weight: 800; font-size: clamp(30px, 4vw, 48px); line-height: 1.05; letter-spacing: -0.025em; }
.close .intro { margin-top: 18px; color: var(--on-dark-muted); font-size: 18px; max-width: 30em; }
.close .trial { margin-top: 28px; padding-left: 16px; border-left: 3px solid var(--signal); }
.close .trial b { display: block; font-size: 18px; }
.close .trial span { color: var(--on-dark-muted); }
form { display: grid; gap: 16px; }
label { display: grid; gap: 6px; font-size: 14px; color: var(--on-dark-muted); }
input, select, textarea { font: 400 16px var(--sans); color: var(--on-dark); background: var(--anthracite-2); border: 1px solid var(--anthracite-line); border-radius: 3px; padding: 11px 12px; width: 100%; }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--signal); outline-offset: 0; border-color: transparent; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
form .btn { justify-self: start; margin-top: 4px; }
.formnote { font-size: 14px; color: var(--on-dark-muted); }
.formnote a { color: var(--signal); }

footer { background: var(--anthracite); color: var(--on-dark-muted); border-top: 1px solid var(--anthracite-line); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; padding-top: 28px; padding-bottom: 36px; }
footer .brand { color: var(--on-dark); font-size: 17px; margin-right: auto; }
footer .brand img { width: 22px; height: 22px; }
footer a { color: var(--on-dark-muted); }
footer a:hover { color: var(--on-dark); }

/* legal pages */
.legal { padding: 64px 0 96px; max-width: 44em; }
.legal h1 { font-weight: 800; font-size: 40px; letter-spacing: -0.02em; margin-bottom: 24px; }
.legal h2 { font-size: 20px; margin: 32px 0 8px; }
.legal p { color: var(--muted); }
.legal p + p { margin-top: 10px; }

@media (max-width: 900px) {
  .top nav { display: none; }
  .top .lang { margin-left: auto; }
  .cap { grid-template-columns: 1fr; gap: 8px; }
  .agent, .close .wrap, .deploy, .proof { grid-template-columns: 1fr; }
  .deploy > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .march figcaption { grid-template-columns: 1fr; gap: 6px; }
  .frameworks span { border-right: 0; border-bottom: 1px solid var(--ink); flex: 1 1 50%; }
}
@media (max-width: 520px) {
  .row2 { grid-template-columns: 1fr; }
  .top .btn { display: none; }
}

/* phones: crop the march to the border and the block, at a readable size */
@media (max-width: 700px) {
  .march figure { overflow: hidden; margin: 0 calc(-1 * var(--gutter)); }
  .march svg { width: auto; height: 220px; margin-left: -530px; max-width: none; }
  .march figcaption { padding-left: var(--gutter); padding-right: var(--gutter); }
}

/* march dots: speed and start of each (no inline styles, CSP style-src self) */
.f1 { --d: 9s; --delay: 0s; }
.f2 { --d: 9s; --delay: 4.4s; }
.f3 { --d: 7.5s; --delay: 1.2s; }
.f4 { --d: 7.5s; --delay: 5s; }
.f5 { --d: 8.2s; --delay: 2.1s; }
.f6 { --d: 8.2s; --delay: 6.3s; }
.f7 { --d: 10s; --delay: 0.6s; }
.f8 { --d: 10s; --delay: 5.6s; }

/* contact form: the hidden field bots fill in; the sent confirmation */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.formnote.sent { color: var(--on-dark); border-left: 3px solid var(--live); padding-left: 12px; }
button.btn:disabled { opacity: 0.6; cursor: progress; }
