/*
 * t900.si: the Project T900 palette from tailwind.config.js, black, silver
 * and red, dark unless the visitor's system asks for light. Red fills the main
 * button and marks what is active and the links; silver the other buttons,
 * focus and quiet panels. (The app keeps red off its buttons, beside its
 * warnings; the site has no warnings, so its main button can be red.) The fonts
 * are ones the system already has, as in the app: nothing is fetched from
 * anywhere else.
 *
 * The home page's reticle is the logo, drawn large in the page itself. It
 * turns, sweeps and locks on only when the visitor's system does not ask for
 * less motion; with reduced motion on, nothing on any page moves.
 */
:root {
  color-scheme: dark;
  --canvas: #0a0b0d;
  --surface: #121418;
  --raised: #1b1e23;
  --tint: #12161b;
  --line: #2a2e34;
  --line-strong: #6b747e;
  --text: #e9ecef;
  --text-soft: #a8b0b9;
  --red: #e0262e;
  --red-hot: #ff3b2b;
  --red-text: #ff6166;
  --steel: #c3cad1;
  --steel-dim: #7c858e;
  --primary: #c8161f;
  --primary-hover: #e0262e;
  --on-primary: #ffffff;
  --shadow: 0 24px 60px -24px rgb(0 0 0 / 0.8);
  --halo: rgb(224 38 46 / 0.34);
  --halo-soft: rgb(224 38 46 / 0.12);
  --chip: rgb(18 20 24 / 0.82);
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --canvas: #f3f4f6;
    --surface: #ffffff;
    --raised: #ffffff;
    --tint: #eef1f5;
    --line: #d6dade;
    --line-strong: #757e88;
    --text: #0e1013;
    --text-soft: #4d555e;
    --red: #c8161f;
    --red-hot: #d0141c;
    --red-text: #8e0f15;
    --steel: #56626f;
    --steel-dim: #8d96a0;
    --primary: #c8161f;
    --primary-hover: #a91219;
    --shadow: 0 24px 60px -28px rgb(14 16 19 / 0.35);
    --halo: rgb(200 22 31 / 0.2);
    --halo-soft: rgb(200 22 31 / 0.07);
    --chip: rgb(255 255 255 / 0.88);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--canvas); color: var(--text); font: 1rem/1.65 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--red-text); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--steel); outline-offset: 3px; border-radius: 4px; }
h2, .prose h1, .brand-name { font-family: var(--display); font-weight: 500; }
h1, h2, h3 { text-wrap: balance; }
.wrap { width: 100%; max-width: 74rem; margin-inline: auto; padding-inline: 1.25rem; }
.mono { font-family: var(--mono); }

/* Notice bar */
.notice {
  border-bottom: 1px solid var(--line);
  font-size: 0.8rem;
  text-align: center;
  color: var(--text-soft);
  padding: 0.45rem 1rem;
}
.notice { margin: 0; }
.notice a { color: var(--text); text-decoration-color: var(--red); white-space: nowrap; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; padding-block: 0.9rem; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--text); text-decoration: none; }
.brand-mark { flex: none; width: 2.25rem; height: 2.25rem; }
.brand-name { font-size: 1.35rem; letter-spacing: 0.01em; }
.site-header nav { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.site-header ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin: 0; padding: 0; list-style: none; }
.site-header nav a { color: var(--text-soft); font-weight: 500; text-decoration: none; }
.site-header nav a:hover,
.site-header nav a[aria-current="page"] { color: var(--text); text-decoration: underline; text-decoration-color: var(--red); }
.site-header .pill {
  padding: 0.4rem 0.95rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--raised), var(--surface));
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.site-header .pill:hover { border-color: var(--steel); text-decoration: none; }

/* Hero */
.hero {
  position: relative;
  overflow: clip;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(48rem 30rem at 78% 40%, var(--halo-soft), transparent 70%),
    var(--canvas);
}
.hero-inner { display: grid; align-items: center; gap: 2.5rem; padding-block: 4rem 3rem; }
@media (min-width: 60rem) {
  .hero-inner { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); padding-block: 5rem 3.5rem; }
}
.hero h1 { margin: 0 0 1.5rem; font-weight: 400; }
.stack {
  display: block;
  font-family: var(--sans);
  font-size: clamp(3.1rem, 1.6rem + 6vw, 6rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}
.stack span { display: block; }
.stack em { display: block; font-style: normal; color: var(--red); }
.h1-sub {
  display: block;
  margin-top: 1.4rem;
  max-width: 30rem;
  font-family: var(--display);
  font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.75rem);
  line-height: 1.25;
}
.lead { max-width: 34rem; margin: 0 0 1rem; color: var(--text-soft); font-size: 1.08rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 2rem 0 1.25rem; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 2.85rem; padding: 0.6rem 1.35rem;
  border: 1px solid transparent; border-radius: 999px;
  font-weight: 600; text-decoration: none;
}
.button-primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 0 0 0 var(--halo), 0 10px 30px -12px var(--red); }
.button-primary:hover { background: var(--primary-hover); }
.button-secondary { border-color: var(--line-strong); color: var(--text); }
.button-secondary:hover { border-color: var(--steel); }
.fineprint { max-width: 34rem; margin: 0 0 0.35rem; color: var(--text-soft); font-size: 0.875rem; }

/* The reticle: the logo, come to life */
.lock {
  position: relative;
  width: min(100%, 34rem);
  margin-inline: auto;
}
.lock-art { position: relative; aspect-ratio: 1; }
.lock-halo {
  position: absolute; inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--halo) 0%, transparent 62%);
  filter: blur(6px);
}
.lock-sweep {
  position: absolute; inset: 11%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 290deg, var(--halo) 352deg, transparent 360deg);
  opacity: 0.85;
}
.lock-platform {
  position: absolute; left: 6%; right: 6%; bottom: -2%; height: 22%;
  border-radius: 50%;
  border: 1px solid var(--halo);
  box-shadow: 0 0 2.5rem -0.5rem var(--red), inset 0 0 2rem -0.5rem var(--red);
  opacity: 0.55;
}
.lock-platform::after {
  content: ""; position: absolute; inset: 16% 12%;
  border-radius: 50%;
  border: 1px dashed var(--steel-dim);
  opacity: 0.6;
}
.lock-art > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.r-outer { fill: none; stroke: var(--steel-dim); stroke-width: 1; stroke-dasharray: 3 9; }
.r-ticks { fill: none; stroke: var(--steel); stroke-width: 7; stroke-dasharray: 1.2 14.5; opacity: 0.55; }
.r-mid { fill: none; stroke: var(--steel-dim); stroke-width: 1.5; stroke-dasharray: 120 37; }
.r-cross { stroke: var(--steel); stroke-width: 2; stroke-linecap: round; }
.r-quad { fill: var(--red); }
.r-core { fill: var(--red-hot); }
.r-core-glow { fill: var(--red-hot); opacity: 0.35; }
.r-bracket { fill: var(--steel); }
.r-bracket.low { fill: var(--steel-dim); }
.r-blip { fill: var(--steel); }
.r-blip.hit { fill: var(--red-hot); }
.r-mark { fill: none; stroke: var(--red-hot); stroke-width: 2; }
.spin, .spin-back, .sweep-spin, .pulse, .float, .blink { transform-box: fill-box; transform-origin: center; }

/* Chips around the reticle */
.chips { display: grid; gap: 0.75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 1.5rem 0 0; padding: 0; list-style: none; }
.chip {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--chip);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}
.chip svg { flex: none; width: 1.6rem; height: 1.6rem; }
.chip .ic-line { fill: none; stroke: var(--red-hot); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chip b { display: block; font-family: var(--mono); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-soft); }
.chip span { display: block; font-size: 0.85rem; line-height: 1.3; }
@media (min-width: 60rem) {
  .chips { position: absolute; inset: 0; display: block; margin: 0; pointer-events: none; }
  .chip { position: absolute; max-width: 13.5rem; }
  .chip:nth-child(1) { top: 9%; left: -4%; }
  .chip:nth-child(2) { top: 20%; right: -6%; }
  .chip:nth-child(3) { bottom: 26%; left: -8%; }
  .chip:nth-child(4) { bottom: 12%; right: -2%; }
}

/* Step strip */
.strip { position: relative; margin: 3rem 0 3.5rem; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.strip ol { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.strip li { position: relative; padding: 1.1rem 1rem 1.3rem; color: var(--text-soft); font-size: 0.95rem; }
.strip li + li { border-left: 1px solid var(--line); }
.strip .num { margin-right: 0.5rem; color: var(--red-text); font-family: var(--mono); font-size: 0.8rem; }
.strip li::after {
  content: ""; position: absolute; left: 1rem; right: 1rem; bottom: 0.7rem; height: 2px;
  border-radius: 2px; background: var(--line);
}
.strip .bar {
  position: absolute; left: 1rem; bottom: 0.7rem; z-index: 1; height: 2px; width: 0;
  border-radius: 2px; background: var(--red); box-shadow: 0 0 0.6rem var(--red);
}
@media (max-width: 44rem) {
  .strip { margin: 2rem 0 2.5rem; }
  .strip ol { grid-template-columns: 1fr; }
  .strip li { padding: 0.7rem 1rem 1rem; }
  .strip li::after, .strip .bar { bottom: 0.5rem; }
  .strip li + li { border-left: 0; border-top: 1px solid var(--line); }
}

/* Works on */
.works { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 2rem; padding-block: 1.75rem; border-bottom: 1px solid var(--line); color: var(--text-soft); }
.works .label { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; }
.works ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; margin: 0; padding: 0; list-style: none; color: var(--text); font-weight: 600; letter-spacing: 0.01em; }
.works li::before { content: "◇"; margin-right: 0.45rem; color: var(--red); font-weight: 400; }

/* Sections */
.section { padding-block: 5rem; border-bottom: 1px solid var(--line); }
.section-tint { background: var(--tint); }
.kicker { margin: 0 0 0.9rem; color: var(--red-text); font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; }
.section h2 { margin: 0 0 2.25rem; font-size: clamp(1.9rem, 1.3rem + 2vw, 2.9rem); line-height: 1.1; }
.section h3 { margin: 0 0 0.5rem; font-size: 1.1rem; font-weight: 650; }
.section p { margin: 0 0 1rem; }
.cards { display: grid; gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 52rem) { .cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 40rem) and (max-width: 63.99rem) { .cards.six { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .cards.six { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card {
  position: relative;
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--surface), var(--canvas));
  transition: border-color 0.2s;
}
.card:hover { border-color: var(--line-strong); }
.card p { margin: 0; color: var(--text-soft); }
.card .big { display: block; margin-bottom: 1.4rem; color: var(--red-text); font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.16em; }
.card .glyph { display: block; width: 2.4rem; height: 2.4rem; margin-bottom: 1.1rem; padding: 0.45rem; border: 1px solid var(--line); border-radius: 10px; background: var(--raised); }
.card .glyph path, .card .glyph circle, .card .glyph line { fill: none; stroke: var(--red-hot); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.review { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 60rem) { .review { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); } }
.review figure { margin: 0; position: relative; }
.review figure::before {
  content: ""; position: absolute; inset: -6% -4%; z-index: -1;
  background: radial-gradient(closest-side, var(--halo-soft), transparent);
}
.review img { border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.review figcaption { margin-top: 0.75rem; color: var(--text-soft); font-size: 0.875rem; }
.ticks { display: grid; gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.ticks li { position: relative; padding-left: 2rem; }
.ticks li::before {
  content: ""; position: absolute; top: 0.4em; left: 0.2rem; width: 0.9rem; height: 0.5rem;
  border-bottom: 2px solid var(--red); border-left: 2px solid var(--red); transform: rotate(-45deg);
}

.privacy-inner { display: grid; gap: 2rem; }
@media (min-width: 56rem) { .privacy-inner { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: start; } }

.measure { max-width: 46rem; }
.note { color: var(--text-soft); }

.site-footer { padding-block: 2.5rem; color: var(--text-soft); font-size: 0.9rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.site-footer p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin: 0; padding: 0; list-style: none; }
.site-footer a { color: var(--text-soft); }
.site-footer a:hover { color: var(--text); }

code {
  padding: 0.05em 0.35em;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--raised);
  font-family: var(--mono);
  font-size: 0.875em;
  overflow-wrap: anywhere;
}


/* A reading column: centred on its own page, left-aligned within a section. */
.wrap.narrow {
  max-width: 46rem;
}

/* Skip link: out of sight until it has the focus. */
.skip {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 10;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 600;
}

.skip:not(:focus) {
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}


.download-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Downloads */
.version {
  margin: -1rem 0 1.75rem;
  color: var(--text-soft);
}

.downloads {
  display: grid;
  gap: 2rem;
}

@media (min-width: 56rem) {
  .downloads {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.download-group h3 {
  margin-bottom: 1rem;
}

.download-list {
  display: grid;
  gap: 0.75rem;
}

.download {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}

.download:hover {
  border-color: var(--red);
}

.download-for {
  font-weight: 600;
}

.download-file {
  color: var(--text-soft);
  font-family: var(--mono);
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}

.install {
  margin-top: 2.5rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--tint);
}

.install ul {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

.install p {
  margin: 0;
}

.note {
  color: var(--text-soft);
}

/* The privacy policy, the license and the not-found page */
.document {
  padding-block: 3.5rem 4.5rem;
  border-bottom: 1px solid var(--line);
}

.prose h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem);
  line-height: 1.15;
}

.prose h1 + p {
  color: var(--text-soft);
  font-size: 0.95rem;
}

.prose h2 {
  margin: 2.75rem 0 1rem;
  font-size: 1.6rem;
  line-height: 1.2;
}

.prose h3 {
  margin: 2rem 0 0.75rem;
  font-size: 1.2rem;
}

.prose p,
.prose ul,
.prose ol {
  margin: 0 0 1rem;
}

.prose ul,
.prose ol {
  padding-left: 1.35rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose li::marker {
  color: var(--red);
}

.table-scroll {
  margin: 0 0 1.5rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.prose table {
  width: 100%;
  min-width: 32rem;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.prose th,
.prose td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: var(--raised);
  font-weight: 650;
}

.prose tr:last-child td {
  border-bottom: 0;
}

.prose td:first-child {
  white-space: nowrap;
}

/* Motion, only when the system does not ask for less. */
@media (prefers-reduced-motion: no-preference) {
  .spin { animation: spin 48s linear infinite; }
  .spin-back { animation: spin 72s linear infinite reverse; }
  .lock-sweep { animation: spin 7s linear infinite; }
  .pulse { animation: pulse 3.2s ease-in-out infinite; }
  .blink { animation: blink 7s ease-in-out infinite; }
  .blink.b2 { animation-delay: -2.3s; }
  .blink.b3 { animation-delay: -4.6s; }
  .lock-on { animation: lock 7s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
  .lock-platform { animation: breathe 5s ease-in-out infinite; }
  .strip .bar { animation: step 15s linear infinite; }
  .strip li:nth-child(2) .bar { animation-delay: 3s; }
  .strip li:nth-child(3) .bar { animation-delay: 6s; }
  .strip li:nth-child(4) .bar { animation-delay: 9s; }
  .strip li:nth-child(5) .bar { animation-delay: 12s; }
  @media (min-width: 60rem) {
    .chip { animation: float 6s ease-in-out infinite alternate; }
    .chip:nth-child(2) { animation-delay: -1.5s; }
    .chip:nth-child(3) { animation-delay: -3s; }
    .chip:nth-child(4) { animation-delay: -4.5s; }
  }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 0.35; } 50% { transform: scale(1.9); opacity: 0; } }
@keyframes blink { 0%, 70%, 100% { opacity: 0.35; } 78%, 92% { opacity: 1; } }
@keyframes lock { 0%, 60% { transform: scale(1.8); opacity: 0; } 72% { transform: scale(1); opacity: 1; } 92% { transform: scale(1); opacity: 1; } 100% { transform: scale(1); opacity: 0; } }
@keyframes breathe { 0%, 100% { opacity: 0.4; } 50% { opacity: 0.7; } }
@keyframes float { from { transform: translateY(-5px); } to { transform: translateY(5px); } }
@keyframes step { 0% { width: 0; opacity: 1; } 18% { width: calc(100% - 2rem); opacity: 1; } 20% { width: calc(100% - 2rem); opacity: 0; } 100% { width: 0; opacity: 0; } }

@media (max-width: 40rem) {
  /* The hero and the notice bar already offer Download; the pill would take a row of its own. */
  .site-header .pill { display: none; }
  .hero-inner { padding-block: 3rem 2.5rem; }
  .section { padding-block: 3.5rem; }
}
