/* CaptureOS portal.
   Look: paper background with a faint grid, very heavy headlines, small spaced capitals in a typewriter face
   for labels, square corners and hard offset shadows. Capture India's navy is the ink and its orange the accent. */
@font-face { font-family: 'Bricolage Grotesque'; src: url('bricolage-grotesque-latin-wght-normal.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'Atkinson Hyperlegible Next'; src: url('atkinson-hyperlegible-next-latin-wght-normal.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
:root {
  --ink: #0b1c3f; --navy: #0a2351; --orange: #f37021; --orange-ink: #b04a05; --paper: #f7f4ee; --paper-2: #f0ece3; --card: #fbfaf6;
  --line: #d9d3c6; --rule: rgba(11, 28, 63, 0.07); --muted: #5b6377;
  --display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --body: 'Atkinson Hyperlegible Next', 'Segoe UI', system-ui, sans-serif;
  --mono: ui-monospace, 'Cascadia Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  --hard: 5px 5px 0 var(--ink);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; font: 1rem/1.6 var(--body); color: var(--ink); background: var(--paper); }
a { color: var(--ink); text-underline-offset: 3px; }
h1, h2 { font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; margin: 0; color: var(--ink); }
h1 { font-size: clamp(1.9rem, 4.6vw, 2.9rem); margin-bottom: 1.4rem; }
h2 { font-size: 1.35rem; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 0.9rem; }
p { margin: 0 0 0.9rem; }
small, .dim { color: var(--muted); }
.center { text-align: center; }

/* small spaced capitals: labels, the menu, buttons, table headings */
.label, .top nav a, .btn, th, .badge, .ref, .who, .facts dt, label small, .foot { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.72rem; }
.label { margin: 0 0 0.7rem; color: var(--muted); }
.label span { color: var(--muted); margin-right: 0.6rem; }
.label.accent, .label:has(span) { color: var(--orange-ink); }

/* ---- top bar */
.top { position: sticky; top: 0; z-index: 10; display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.6rem; padding: 0.7rem clamp(1rem, 4vw, 2.5rem); background: rgba(247, 244, 238, 0.94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; margin-right: auto; }
.brand svg { display: block; }
.wordmark { font-family: var(--display); font-weight: 800; font-size: 1.2rem; letter-spacing: -0.01em; color: var(--ink); }
.wordmark b { color: var(--orange); font-weight: 800; }
.top nav { display: flex; flex-wrap: wrap; gap: 0.2rem 1.4rem; }
.top nav a { text-decoration: none; padding: 0.4rem 0; color: var(--muted); border-bottom: 2px solid transparent; }
.top nav a:hover { color: var(--ink); }
.top nav a[aria-current] { color: var(--ink); border-color: var(--orange); }
.who { display: flex; align-items: center; gap: 0.7rem; color: var(--muted); text-transform: none; letter-spacing: 0; font-family: var(--body); font-size: 0.9rem; }
.who form { margin: 0; }

main { max-width: 68rem; margin: 0 auto; padding: clamp(1.75rem, 4vw, 3rem) clamp(1rem, 4vw, 2.5rem) 3.5rem; }
.wrap { max-width: 68rem; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2.5rem); }
.foot { display: flex; flex-wrap: wrap; gap: 0.8rem 1.5rem; justify-content: center; padding: 1.6rem clamp(1rem, 4vw, 2.5rem); border-top: 1px solid var(--line); color: var(--muted); }
.foot a { color: var(--muted); }

/* ---- buttons: square, with a hard shadow that closes when pressed */
.btn { display: inline-flex; align-items: center; justify-content: center; font-weight: 700; padding: 0.85rem 1.25rem; border: 2px solid var(--ink); background: var(--orange); color: var(--ink); text-decoration: none; cursor: pointer; box-shadow: 4px 4px 0 var(--ink); transition: transform 0.08s, box-shadow 0.08s; }
.btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }
.btn.quiet { background: var(--card); }
.btn.ghost { background: transparent; box-shadow: none; border-color: var(--line); color: var(--muted); }
.btn.ghost:hover { transform: none; border-color: var(--ink); color: var(--ink); }
.btn.small { padding: 0.5rem 0.8rem; box-shadow: 3px 3px 0 var(--ink); }
.btn.wide { width: 100%; }
button.link { font: inherit; background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; cursor: pointer; }
.row { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin: 1.6rem 0 0; }

/* ---- cards and forms */
.card { display: block; background: var(--card); border: 1.5px solid var(--ink); padding: clamp(1.1rem, 3vw, 1.6rem); margin-bottom: 1.4rem; box-shadow: var(--hard); }
.narrow { max-width: 30rem; margin-left: auto; margin-right: auto; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1.4rem; }
.card.order { display: grid; gap: 0.4rem; margin: 0; text-decoration: none; color: var(--ink); transition: transform 0.08s, box-shadow 0.08s; }
.card.order:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--ink); }
.card.order strong { font-family: var(--display); font-weight: 800; font-size: 1.2rem; line-height: 1.15; }
.ref { color: var(--muted); }
.more { margin-top: 0.4rem; font-weight: 700; text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; }
.back { margin-top: -0.8rem; }

label { display: grid; gap: 0.35rem; font-weight: 650; margin-bottom: 0.95rem; }
label small { font-weight: 400; }
label.check { display: flex; gap: 0.6rem; align-items: center; font-weight: 400; }
input, select, textarea { font: inherit; color: var(--ink); padding: 0.75rem 0.85rem; border: 1.5px solid #b9b2a3; border-radius: 0; background: #fff; width: 100%; }
input[type='checkbox'] { width: 1.2rem; height: 1.2rem; accent-color: var(--ink); }
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid #1272e0; outline-offset: 2px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.2rem 0; }
.filters { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 1.2rem; align-items: center; }
.filters select, .filters input { width: auto; flex: 0 1 15rem; }

.ok, .err, .note, .stopped { padding: 0.75rem 1rem; border: 1.5px solid var(--ink); border-left-width: 6px; background: var(--card); }
.err { border-color: #b3261e; color: #8a1616; font-weight: 650; }
.note { background: var(--paper-2); }
.stopped { border-color: #b3261e; }

.badge { display: inline-block; padding: 0.2rem 0.5rem; border: 1.5px solid var(--ink); background: var(--card); color: var(--ink); white-space: nowrap; font-size: 0.66rem; font-weight: 700; }
.badge.good { background: #cdebd3; }
.badge.now { background: #d9e6ff; }
.badge.warn { background: #ffe2bf; }
.badge.bad { background: #f6cfcb; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1rem 1.5rem; margin: 0; }
.facts dt { color: var(--muted); margin-bottom: 0.15rem; }
.facts dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; }

/* ---- the stages of an order: a real sequence, so they are numbered */
.stages { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; margin: 0 0 1rem; padding: 0; }
.stages li { display: grid; gap: 0.5rem; justify-items: start; padding: 0.8rem 0.6rem 0 0; border-top: 4px solid var(--line); font-size: 0.9rem; color: var(--muted); }
.stages b { display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border: 1.5px solid #b9b2a3; font-family: var(--mono); font-size: 0.8rem; background: #fff; }
.stages .is-done { border-color: var(--ink); color: var(--ink); }
.stages .is-done b { background: var(--ink); border-color: var(--ink); color: #fff; }
.stages .is-now { border-color: var(--orange); color: var(--ink); font-weight: 700; }
.stages .is-now b { background: var(--orange); border-color: var(--ink); color: var(--ink); }

.scroll { overflow-x: auto; background: var(--card); border: 1.5px solid var(--ink); margin-bottom: 1.4rem; box-shadow: var(--hard); }
table { border-collapse: collapse; width: 100%; }
th, td { padding: 0.75rem 0.9rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 400; white-space: nowrap; background: var(--paper-2); border-bottom: 1.5px solid var(--ink); }
tr:last-child td { border-bottom: 0; }

.thread { display: grid; gap: 0.9rem; margin-bottom: 1.4rem; }
.msg { max-width: 44rem; padding: 0.9rem 1.1rem; background: var(--card); border: 1.5px solid var(--ink); }
.msg.team { justify-self: end; background: var(--ink); color: #e9edf5; }
.msg.team small { color: #b9c3d8; }
.msg p { margin: 0; overflow-wrap: anywhere; }
.msg .by { font-weight: 700; margin-bottom: 0.3rem; }

/* ---- the front page */
.hero { padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(3rem, 7vw, 5.5rem); border-bottom: 1px solid var(--line);
  background-image: linear-gradient(var(--rule) 1px, transparent 1px), linear-gradient(90deg, var(--rule) 1px, transparent 1px); background-size: 32px 32px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.hero h1 { font-size: clamp(2.9rem, 8.4vw, 6.1rem); line-height: 0.92; letter-spacing: -0.045em; margin: 0 0 1.5rem; }
.hero h1 em { font-style: normal; color: var(--orange); }
.lead { font-size: 1.12rem; max-width: 36rem; color: #3b4660; }
.signin { background: var(--card); border: 1.5px solid var(--ink); padding: clamp(1.2rem, 3vw, 1.75rem); box-shadow: 7px 7px 0 var(--orange); }
.signin h2 { font-size: 1.55rem; margin-bottom: 1.1rem; }
.signin form { margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.signin .dim { font-size: 0.9rem; margin: 0.8rem 0 0; }
/* Google sign-in: Google's own button artwork, shown as supplied (scaled only, never restyled). */
.gbtn { display: inline-block; line-height: 0; max-width: 100%; }
.gbtn img { display: block; max-width: 100%; height: auto; }
.gbtn:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.band { padding: clamp(3rem, 7vw, 5rem) 0; }
.band.alt { background: var(--paper-2); border-block: 1px solid var(--line); }
.band h2 { font-size: clamp(1.9rem, 4.6vw, 3.1rem); letter-spacing: -0.035em; line-height: 1; max-width: 40rem; margin-bottom: 1rem; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 2.2rem; border: 1.5px solid var(--ink); background: var(--card); box-shadow: var(--hard); }
.trio > div { padding: clamp(1.1rem, 3vw, 1.9rem); border-right: 1px solid var(--line); }
.trio > div:last-child { border-right: 0; }
.trio b { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(2.6rem, 6vw, 4rem); line-height: 1; letter-spacing: -0.04em; margin-bottom: 0.7rem; }
.trio > div:first-child b { color: var(--orange); }
.trio p:last-child { margin: 0; color: #3b4660; font-size: 0.97rem; }
.trio.roles strong { display: block; font-family: var(--display); font-weight: 800; font-size: 1.35rem; line-height: 1.15; margin-bottom: 0.5rem; }
.flow { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin: 2.2rem 0 1.6rem; padding: 0; }
.flow li { display: grid; gap: 0.3rem; align-content: start; padding: 1.1rem 1.2rem 1.2rem; background: var(--card); border: 1.5px solid var(--ink); }
.flow b { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.12em; color: var(--orange-ink); }
.flow strong { font-family: var(--display); font-weight: 800; font-size: 1.2rem; line-height: 1.15; }
.flow span { color: #3b4660; font-size: 0.95rem; }

@media (max-width: 56rem) {
  .hero-grid { grid-template-columns: 1fr; }
  .trio { grid-template-columns: 1fr; }
  .trio > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .trio > div:last-child { border-bottom: 0; }
  .flow { grid-template-columns: 1fr 1fr; }
  .landing .top nav { display: none; }
}
@media (max-width: 44rem) {
  .stages { grid-template-columns: 1fr; }
  .stages li { grid-template-columns: auto 1fr; align-items: center; gap: 0.7rem; padding: 0.55rem 0 0.55rem 0.9rem; border-top: 0; border-left: 4px solid var(--line); }
  .who > span { display: none; }
  .flow { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card.order { transition: none; }
}
