/* Inner pages (product, industries, company): blocks shared by more than one page.
   Colours come from look.css through the section tones (site.css). */

/* a hero picture with what the app draws on it: the svg uses the picture's own size and "slice",
   so it is cut exactly as object-fit: cover cuts the picture */
.hero-media .cam-draw { z-index: 1; }
.cam-draw text { font-family: "Archivo", sans-serif; font-weight: 700; font-stretch: 90%; fill: #fff; }
.cam-draw .tag-bg { fill: var(--orange); }
.cam-draw .plate-bg { fill: #F5C400; stroke: #222; stroke-width: 1; }
.cam-draw .plate-text { fill: #111; font-family: "Archivo", sans-serif; font-weight: 800; font-stretch: 80%; }

/* the intro under a page hero */
.intro { display: grid; gap: 22px; }
.intro .big { color: var(--ink); font-weight: 800; font-stretch: 78%; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.6rem); line-height: 1.12; max-width: 24em; }
@media (min-width: 900px) { .intro { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 64px; align-items: end; } }
.jump { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 28px; }
.jump a { padding: 9px 14px; border: 1px solid var(--line); color: var(--ink); font-weight: 650; font-stretch: 90%; font-size: .95rem; text-decoration: none; background: var(--bg); }
.jump a:hover { border-color: var(--orange); }

/* a chapter: big title on the left, content on the right (desktop) */
.chapter { display: grid; gap: 28px; }
.chapter + .chapter { margin-top: clamp(72px, 10vw, 140px); }
.chapter-head { display: grid; gap: 14px; align-content: start; }
.chapter-head .num { color: var(--orange); font-weight: 900; font-stretch: 64%; font-size: 1.4rem; line-height: 1; }
@media (min-width: 1000px) {
  .chapter { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 64px; }
  .chapter-head { position: sticky; top: 100px; }
}

/* picture and phone side by side */
.pair { display: grid; gap: 6px; align-items: stretch; }
@media (min-width: 760px) { .pair { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); } }
.stage { position: relative; display: grid; place-items: center; padding: 32px 16px; background: var(--p-brand); overflow: hidden; }
.stage.is-alt { background: var(--p-alt); }
.stage .phone { width: min(276px, 70vw); }
.cap { margin-top: 12px; font-size: .9rem; color: var(--muted); max-width: 46em; }

/* a column of notifications, as they arrive */
.notifs { display: grid; gap: 10px; max-width: 440px; }

/* ---------- more of the app's own screens ---------- */
.app-h { margin: 22px 2px 4px; font-size: 22px; font-weight: 600; letter-spacing: -.3px; }
.app-sub { margin: 0 2px 12px; font-size: 12px; color: var(--app-muted); }
.app-label { margin: 16px 4px 6px; font-size: 11px; font-weight: 600; color: var(--app-muted); text-transform: none; }
.app-card { border-radius: 14px; background: var(--app-card); overflow: hidden; }
.app-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 12px; border-top: 1px solid var(--app-line); font-size: 12.5px; }
.app-row:first-child { border-top: 0; }
.app-row small { display: block; color: var(--app-muted); font-size: 11px; margin-top: 1px; }
.app-row .val { color: var(--app-muted); font-size: 11.5px; white-space: nowrap; }
.app-row .on { color: var(--app-online); }
.app-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 12px; background: var(--app-card); }
.app-seg span { padding: 9px 0; border-radius: 9px; text-align: center; font-size: 12.5px; font-weight: 600; color: var(--app-muted); }
.app-seg span.is-on { background: var(--app-armed); color: #1b0f0e; }
.app-seg span.is-night { background: #9AA6F5; color: #121732; }
.app-seg.is-2 { grid-template-columns: 1fr 1fr; }
.app-seg span.is-pick { background: var(--app-text); color: #141413; }
.app-mode { margin: 14px 2px 4px; font-size: 26px; font-weight: 600; color: var(--app-armed); }
.app-mode.is-night { color: #9AA6F5; }
.app-panic { margin-top: 14px; padding: 13px; border-radius: 14px; background: #B3261E; color: #fff; text-align: center; font-weight: 700; font-size: 13px; }
.app-switch { width: 34px; height: 20px; border-radius: 10px; background: var(--app-online); position: relative; flex: none; }
.app-switch::after { content: ""; position: absolute; right: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; }
.app-switch.is-off { background: var(--app-line); }
.app-switch.is-off::after { right: auto; left: 2px; }
.app-pic { position: relative; border-radius: 12px; overflow: hidden; }
.app-pic img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.app-pic .b { position: absolute; border: 2px solid var(--orange); }
.app-clip { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 9px 10px; border-radius: 12px; background: var(--app-card); font-size: 11.5px; color: var(--app-muted); }
.app-clip i { width: 0; height: 0; border-left: 9px solid var(--app-text); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.app-clip b { flex: 1; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--app-text) 32%, var(--app-line) 32%); }
.app-say { margin-top: 10px; padding: 14px; border-radius: 14px; background: var(--app-card); font-size: 15px; line-height: 1.3; }
.app-say small { display: block; margin-bottom: 6px; font-size: 11px; color: var(--app-muted); }
.app-local { display: inline-block; margin-left: 6px; color: var(--app-online); font-size: 11px; font-weight: 600; }
.app-bars { display: flex; align-items: flex-end; gap: 4px; height: 70px; padding: 10px 12px 0; }
.app-bars i { flex: 1; background: var(--app-text); opacity: .85; border-radius: 2px 2px 0 0; }
.app-axis { display: flex; justify-content: space-between; padding: 4px 12px 10px; font-size: 10px; color: var(--app-faint); }
.app-big { padding: 10px 12px 12px; font-size: 30px; font-weight: 600; letter-spacing: -.5px; }
.app-big small { display: block; font-size: 11px; font-weight: 400; color: var(--app-muted); letter-spacing: 0; }

/* the plate log (navy card, as in the brochures) */
.plate-log { background: var(--p-deep); color: #F2F1EC; padding: 16px 18px 6px; max-width: 420px; box-shadow: 0 18px 40px -16px rgb(0 0 0 / .45); }
.plate-log h4 { font-weight: 800; font-stretch: 78%; font-size: 1.15rem; margin-bottom: 6px; color: #fff; }
.plate-log li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 0; border-top: 1px solid #26305A; font-size: .9rem; line-height: 1.3; }
.plate-log li b { font-weight: 700; color: #fff; }
.plate-log li span { color: #9AA6D4; }
.plate-log li time { grid-row: span 2; align-self: center; font-family: "Fragment Mono", monospace; font-size: .85rem; color: #9AA6D4; }
.plate-log li.is-out b { color: var(--orange); }

/* report and count cards (light, like a printout) */
.report { background: var(--p-light); color: var(--p-light-text); border: 1px solid var(--p-light-line); padding: 18px 20px; max-width: 520px; }
.report h4 { color: var(--p-light-ink); font-weight: 800; font-stretch: 78%; font-size: 1.15rem; }
.report p.tiny { margin-top: 2px; color: var(--p-light-muted); }
.report table { width: 100%; margin-top: 12px; border-collapse: collapse; font-size: .9rem; }
.report th { text-align: left; font-weight: 600; color: var(--p-light-muted); font-size: .8rem; padding: 6px 8px 6px 0; border-bottom: 1px solid var(--p-light-line); }
.report td { padding: 9px 8px 9px 0; border-bottom: 1px solid var(--p-light-line); color: var(--p-light-ink); }
.report td.num { font-family: "Fragment Mono", monospace; font-size: .85rem; white-space: nowrap; }

/* what the camera needs, and other conditions: always next to the claim */
.needs { border-left: 3px solid var(--orange); padding: 4px 0 4px 18px; display: grid; gap: 6px; max-width: 40em; }
.needs h4 { color: var(--ink); font-weight: 800; font-stretch: 80%; font-size: 1.05rem; }
.needs li { position: relative; padding-left: 16px; }
.needs li::before { content: ""; position: absolute; left: 0; top: .7em; width: 7px; height: 2px; background: var(--orange); }

/* a block for one rule or one alert: picture, its notification, the words */
.alert-block { display: grid; gap: 24px; align-items: start; }
.alert-block + .alert-block { margin-top: clamp(56px, 7vw, 96px); }
.alert-block .shot { position: relative; }
.alert-block .shot .notif { position: absolute; right: 12px; top: 12px; width: min(360px, calc(100% - 24px)); }
.alert-block .words { display: grid; gap: 14px; max-width: 34em; }
.alert-block .words .needs { margin-top: 6px; }
@media (min-width: 900px) {
  .alert-block { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 56px; }
  .alert-block.flip > :first-child { order: 2; }
}
@media (max-width: 559px) { .alert-block .shot .notif { position: static; width: auto; margin-top: 8px; } }
.badge { display: inline-block; padding: 4px 9px 3px; font-weight: 750; font-stretch: 86%; font-size: .82rem; line-height: 1.2; background: var(--p-alt); color: var(--p-paper-ink); }
.badge.is-trial { background: var(--orange); color: var(--orange-ink); }
.t-deep .badge, .t-brand .badge { background: rgb(255 255 255 / .12); color: #fff; }

/* the console's wall of sites */
.wall { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; background: var(--console-bg); padding: 6px; font-family: "Archivo", sans-serif; }
@media (min-width: 700px) { .wall { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.wall li { background: var(--console-panel); padding: 12px 12px 14px; color: #F2F1EC; display: grid; gap: 4px; min-height: 104px; }
.wall b { font-weight: 800; font-stretch: 76%; font-size: 1.15rem; line-height: 1.05; }
.wall .st { display: flex; align-items: center; gap: 7px; font-size: .82rem; color: #A3A199; }
.wall .st::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #6CC796; }
.wall .bad .st::before, .wall li.bad .st::before { background: var(--console-red); }
.wall .warn .st::before, .wall li.warn .st::before { background: #E9B949; }
.wall .note { font-size: .78rem; color: #A3A199; }

/* links to the rest of the product */
.related { display: grid; gap: 0 40px; }
.related a { display: grid; gap: 4px; padding: 18px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--text); }
.related a b { color: var(--ink); font-weight: 850; font-stretch: 72%; font-size: 1.5rem; line-height: 1; }
.related a:hover b { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 5px; }
@media (min-width: 760px) { .related { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .related { grid-template-columns: repeat(3, 1fr); } }

/* the search demo */
.demo { display: grid; gap: 28px; align-items: center; }
.demo-picks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.demo-picks button { padding: 11px 16px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); font-weight: 700; font-stretch: 88%; font-size: 1rem; cursor: pointer; }
.demo-picks button[aria-pressed="true"] { border-color: var(--orange); background: var(--orange); color: var(--orange-ink); }
@media (min-width: 900px) { .demo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; } }

/* three parts of the system (how it works) */
.parts { display: grid; gap: 6px; }
.parts li { position: relative; }
.parts .cam { --ar: 4 / 5; }
.parts .label { position: absolute; left: 0; bottom: 0; right: 0; padding: 18px 18px 16px; background: linear-gradient(180deg, rgb(6 10 28 / 0), rgb(6 10 28 / .85) 45%); color: #fff; }
.parts .label b { display: block; font-weight: 900; font-stretch: 66%; font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.6rem); line-height: .95; }
.parts .label span { display: block; margin-top: 8px; font-size: .95rem; color: #D7DDF4; max-width: 26em; }
@media (min-width: 900px) { .parts { grid-template-columns: repeat(3, 1fr); } }

/* the industries page: what each industry watches for */
.ind-list { display: grid; gap: 0 40px; }
.ind-list > li { padding: 18px 0 20px; border-top: 1px solid var(--line); }
.ind-list h3 a { color: var(--ink); text-decoration: none; }
.ind-list h3 a:hover { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.ind-list ul { margin-top: 8px; }
.ind-list ul li { padding: 2px 0; }
@media (min-width: 760px) { .ind-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .ind-list { grid-template-columns: repeat(3, 1fr); } }

/* ---------- brochures (brochures.html; the cards are written by _tools/brochures.py) ----------
   A small cover beside the text, two cards a row on wide screens (owner, 1 Dec: the covers were too big) */
.brochures { display: grid; gap: 16px; }
.brochure { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 16px; align-items: stretch; padding: 16px;
  background: var(--p-alt); border-top: 4px solid var(--p-brand); scroll-margin-top: 96px; }
.brochure-cover { display: block; align-self: start; aspect-ratio: 210 / 297; overflow: hidden; background: var(--p-light);
  box-shadow: 0 8px 18px -10px rgb(0 0 0 / .45); transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
.brochure-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.brochure-cover:hover, .brochure-cover:focus-visible { transform: translateY(-3px); }
.brochure-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.brochure-text p { color: var(--p-paper-text); }
.brochure-meta { font-size: .85rem; color: var(--p-paper-muted) !important; }
.brochure-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: auto; padding-top: 8px; }
@media (min-width: 640px) { .brochure { grid-template-columns: 128px minmax(0, 1fr); gap: 22px; padding: 20px 22px; } }
@media (min-width: 960px) { .brochures { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
