/* Cirrys marketing site. Plain CSS, no build. Colour means something: amber and red are only ever problems. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("/fonts/archivo-latin.woff2") format("woff2");
}

:root {
  --sky: #eaf0f5;        /* page */
  --cirrus: #fafcfd;     /* surfaces */
  --ink: #0e1a36;        /* text, the board */
  --ink-2: #4a5670;      /* secondary text */
  --ink-3: #6b7489;      /* quiet text */
  --rule: #cfd8e3;
  --board: #0e1a36;
  --board-2: #1b2a4d;
  --cell: #26385f;       /* a healthy site */
  --action: #2560e6;     /* buttons and links only: the logo blue, a shade deeper so text on it and links on the page pass contrast */
  --action-ink: #ffffff;
  --amber: #e39a2f;
  --red: #d0453b;
  --green: #2f8f5b;
  --focus: #3f7dff;
  --measure: 66ch;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--sky);
  color: var(--ink);
  font: 400 1.0625rem/1.6 "Archivo", system-ui, sans-serif;
  font-stretch: 100%;
}
img, svg { max-width: 100%; }
a { color: var(--action); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1120px, 100% - 2rem); margin-inline: auto; }

/* ---- header and footer ---- */
.top { padding: 1.25rem 0; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; }
.brand img { display: block; height: 34px; width: auto; }
.top nav { display: flex; align-items: center; gap: 1.25rem; font-size: 0.95rem; }
.top nav a { color: var(--ink-2); text-decoration: none; }
.top nav a:hover { color: var(--ink); text-decoration: underline; }
.top nav .button { color: var(--action-ink); }
@media (max-width: 640px) { .top nav .hide-sm { display: none; } }

.foot { margin-top: 4rem; padding: 2.5rem 0 3rem; border-top: 1px solid var(--rule); color: var(--ink-3); font-size: 0.9rem; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.foot a { color: var(--ink-2); }

/* ---- type ---- */
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.025em; }
h1 { font-weight: 700; font-size: clamp(1.6rem, 2.4vw, 2rem); line-height: 1.15; letter-spacing: -0.025em; }
h2 { font-weight: 700; font-size: clamp(1.45rem, 2.3vw, 1.9rem); max-width: 22ch; }
h3 { font-weight: 680; font-size: 1.3rem; letter-spacing: -0.015em; }
p { margin: 0; max-width: var(--measure); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-2); line-height: 1.5; }

.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 1.4rem;
  border: 0; border-radius: 10px; background: var(--action); color: var(--action-ink);
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
.button:hover { background: #1c4fc4; color: var(--action-ink); }
.top .button { min-height: 40px; padding: 0 1rem; font-size: 0.95rem; }

/* ---- hero: the board ---- */
/* Home: one navy band from the top bar down through the board, like looking at a live operations wall.
   The board isn't a card; it's the field, with a quiet intro at its top-left. */
.home .top { background: var(--board); padding: 1.1rem 0; }
.home .top nav a { color: #c9d3ea; }
.home .top nav a:hover { color: #fff; }
.home .top nav .button { color: var(--action-ink); }
.hero { padding: 1.25rem 0 4rem; }
.hero .wrap { display: grid; gap: 2.25rem; }
.hero .copy { display: grid; gap: 0.4rem; max-width: 40rem; }
.hero .lead { font-size: 1.1rem; }
.home .hero { background: var(--board); color: #e6ebf6; }
.home .hero h1 { color: #fff; }
.home .hero .lead { color: #a9b5d1; }
.home .board { padding: 0; border-radius: 0; background: transparent; }
.home .board .meta { color: #a9b5d1; }
.home .parts { padding-top: 4rem; }

.board {
  position: relative; margin: 0; padding: 1.25rem; border-radius: 18px; background: var(--board); color: #dfe5f2;
}
.board .meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1rem; margin-bottom: 1rem; font-size: 0.92rem; }
.board .meta b { color: #fff; font-weight: 700; }
.board .meta .bad { color: var(--amber); }
.cells { display: grid; grid-template-columns: repeat(auto-fill, minmax(10px, 1fr)); gap: 4px; }
@media (min-width: 900px) { .board { padding: 1.5rem 1.75rem 1.75rem; } .cells { grid-template-columns: repeat(auto-fill, minmax(17px, 1fr)); gap: 6px; } .cells span { border-radius: 3px; } }
.cells span { position: relative; aspect-ratio: 1; border-radius: 2px; background: var(--cell); transition: background-color 0.45s ease; }
.cells .warn { background: var(--amber); color: var(--amber); }
.cells .down { background: var(--red); color: var(--red); }
.cells .ok { background: var(--green); }
/* A ripple off a site that just went wrong, so the eye finds it. */
.cells .ping::after { content: ""; position: absolute; inset: -5px; border: 2px solid currentColor; border-radius: 4px; animation: ping 1.1s ease-out 2; opacity: 0; }
@keyframes ping { from { transform: scale(0.5); opacity: 1; } to { transform: scale(2.4); opacity: 0; } }
.board .meta .meta-end { display: inline-flex; align-items: center; gap: 1rem; }
.board .meta .good { color: #7fcfa0; }
.board .meta .bad.warn { color: var(--amber); }
.board .meta .bad.down { color: #f08a80; }
.pause { min-height: 32px; padding: 0 0.7rem; border: 1px solid #3a4b73; border-radius: 8px; background: transparent; color: #dfe5f2; font: inherit; font-size: 0.85rem; cursor: pointer; }
.pause:hover { border-color: #6f81ad; }
.board figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* The note that pins itself to the cell that just went amber. */
.note {
  position: absolute; z-index: 2; width: min(300px, calc(100% - 2.5rem)); padding: 0.9rem 1rem; border-radius: 12px;
  background: var(--cirrus); color: var(--ink); box-shadow: 0 18px 40px -12px rgba(8, 15, 35, 0.55); font-size: 0.92rem; line-height: 1.45;
  opacity: 0; transform: translateY(6px); transition: opacity 0.45s ease, transform 0.45s ease;
}
.note.on { opacity: 1; transform: none; }
.note b { display: block; font-weight: 700; margin-bottom: 0.15rem; }
.note #note-sub { display: block; transition: color 0.3s ease; }
.note.fixed #note-sub { color: var(--green); font-weight: 600; }
.note .steps { margin: 0.5rem 0 0; padding: 0; list-style: none; color: var(--ink-2); }
.note .steps li { opacity: 0.45; transition: opacity 0.3s ease; }
.note .steps li.done { opacity: 1; }
.note .steps li::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 0.5rem; border-radius: 50%; border: 1.5px solid var(--ink-3); vertical-align: 0.1em; box-sizing: border-box; transition: background-color 0.3s ease, border-color 0.3s ease; }
.note .steps li.done::before { background: var(--green); border-color: var(--green); }
@media (prefers-reduced-motion: reduce) {
  .note, .cells span { transition: none; }
  .cells .ping::after { animation: none; }
}

/* ---- the three parts ---- */
.parts { padding: 1rem 0 2rem; }
.parts > .wrap > h2 { margin-bottom: 2.5rem; }
.part { display: grid; gap: 1.5rem; padding: 2.25rem 0; border-top: 1px solid var(--rule); }
.part .text { display: grid; gap: 0.75rem; align-content: start; }
.part ul { margin: 0.25rem 0 0; padding-left: 1.1rem; color: var(--ink-2); }
.part li { margin: 0.2rem 0; }
@media (min-width: 860px) { .part { grid-template-columns: 1fr 1fr; gap: 3rem; } }

/* Fragments: small, real-looking pieces of the product. */
.frag { align-self: start; border-radius: 14px; background: var(--cirrus); border: 1px solid var(--rule); padding: 1.1rem 1.2rem; font-size: 0.95rem; }
.frag.dark { background: var(--board); border-color: var(--board); color: #dfe5f2; }
.frag .row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-top: 1px solid var(--rule); }
.frag.dark .row { border-color: var(--board-2); }
.frag .row:first-child { border-top: 0; padding-top: 0; }
.frag .row:last-child { padding-bottom: 0; }
.frag .what { min-width: 0; }
.frag .what b { display: block; font-weight: 650; }
.frag .what span { color: var(--ink-3); font-size: 0.88rem; }
.frag.dark .what span { color: #9aa6c2; }
.frag .state { flex: none; font-size: 0.85rem; font-weight: 650; }
.dot { display: inline-block; width: 8px; height: 8px; margin-right: 0.4rem; border-radius: 50%; vertical-align: 0.08em; background: var(--cell); }
.dot.warn { background: var(--amber); }
.dot.down { background: var(--red); }
.dot.ok { background: var(--green); }
.frag .bubble { margin-top: 0.75rem; padding: 0.75rem 0.9rem; border-radius: 10px; background: var(--sky); }
.frag .bubble small { display: block; color: var(--ink-3); margin-bottom: 0.2rem; }
.frag .thumbs { display: flex; gap: 0.4rem; margin-top: 0.5rem; }
.frag .thumbs i { width: 52px; height: 40px; border-radius: 6px; background: linear-gradient(135deg, #c9d4e2, #9fb1c8); }

/* ---- how a problem moves (a real sequence, so it's numbered) ---- */
.flow { padding: 3rem 0 1rem; }
.flow ol { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.5rem; counter-reset: step; }
.flow li { counter-increment: step; display: grid; grid-template-columns: 2.4rem 1fr; gap: 0.25rem 0.9rem; }
.flow li::before {
  content: counter(step); grid-row: span 2; display: grid; place-items: center; width: 2.4rem; height: 2.4rem;
  border-radius: 50%; border: 2px solid var(--ink); font-weight: 750;
}
.flow li p { color: var(--ink-2); font-size: 0.98rem; }
@media (min-width: 900px) {
  .flow ol { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
  .flow li { grid-template-columns: 1fr; }
  .flow li::before { grid-row: auto; margin-bottom: 0.5rem; }
}

/* ---- request access ---- */
.ask { margin-top: 4rem; padding: 3rem 0; background: var(--cirrus); border-block: 1px solid var(--rule); }
.ask .wrap { display: grid; gap: 2rem; }
@media (min-width: 900px) { .ask .wrap { grid-template-columns: 0.8fr 1.2fr; gap: 4rem; } }
.ask .text { display: grid; gap: 1rem; align-content: start; }
form.request { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { form.request { grid-template-columns: 1fr 1fr; } form.request .full { grid-column: 1 / -1; } }
label { display: grid; gap: 0.35rem; font-weight: 600; font-size: 0.95rem; }
label .opt { font-weight: 400; color: var(--ink-3); }
input, select, textarea {
  width: 100%; min-height: 48px; padding: 0.6rem 0.8rem; border: 1px solid #a9b5c6; border-radius: 10px;
  background: #fff; color: var(--ink); font: inherit; font-size: 1rem;
}
textarea { min-height: 96px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { padding: 0.75rem 0.9rem; border-radius: 10px; background: #fbe9e7; color: #8a2a22; font-weight: 600; }
.small { color: var(--ink-3); font-size: 0.88rem; }

/* ---- long-form pages (privacy, terms, security) ---- */
.doc { padding: 2rem 0 1rem; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(2rem, 4.5vw, 3rem); max-width: none; margin-bottom: 0.75rem; }
.doc h2 { font-size: 1.35rem; max-width: none; margin: 2.25rem 0 0.6rem; letter-spacing: -0.01em; }
.doc p, .doc ul { color: var(--ink-2); }
.doc p + p { margin-top: 0.8rem; }
.doc ul { padding-left: 1.2rem; max-width: var(--measure); }
.doc li { margin: 0.3rem 0; }
.doc .updated { color: var(--ink-3); }

/* The home page ends with the request band; the footer sits right under it. */
main:has(> .ask:last-child) + .foot { margin-top: 0; border-top: 0; }
