/* RiskOS — foundation: type, tokens, chrome, buttons, footer.
   The palette is the residual-risk matrix itself: one severity family
   (green → amber → orange → red) in four strengths, plus a warm accent
   taken from the hot end of that run. */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: optional;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122,
    U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD, U+21A9, U+21E5, U+21E7, U+2303,
    U+2318, U+2325, U+232B, U+2326, U+238B, U+23CE, U+2423, U+2264-2265, U+25B2,
    U+25BC, U+2713;
}
@font-face {
  font-family: "Inter Fallback Mac";
  src: local("Helvetica Neue");
  size-adjust: 105.99%;
  ascent-override: 91.40%;
  descent-override: 22.76%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial"), local("Liberation Sans"), local("Helvetica");
  size-adjust: 107.34%;
  ascent-override: 90.25%;
  descent-override: 22.47%;
  line-gap-override: 0%;
}

:root {
  color-scheme: light;

  --font-sans: "Inter", "Inter Fallback Mac", "Inter Fallback", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;
  --font: var(--font-sans);
  --mono: var(--font-mono);

  --bg: #ffffff;
  --bg-alt: #f4f4f6;
  --surface: #ffffff;
  --raised: #ffffff;
  --sunken: #f2f2f4;
  --ink: #1d1d1f;
  --ink-2: #4a4a4f;
  --ink-3: #5f5f65;
  --ink-4: #6e6e73;
  --hairline: #c8c8d0;
  --hairline-soft: #e2e2e8;
  --border-strong: #86868b;

  /* Accent — the hot end of the matrix, held dark enough to carry white text. */
  --accent: #c93b22;
  --accent-2: #e8a219;
  --accent-ink: #b3341d;
  --accent-soft: rgba(201, 59, 34, 0.1);
  --accent-line: rgba(201, 59, 34, 0.28);
  --on-accent: #ffffff;

  /* The matrix sweep. Display type, the mark, glows and washes. */
  --grad: linear-gradient(96deg, #12994a 0%, #6fae15 20%, #e0a000 46%,
      #ef7a00 71%, #d9291b 100%);
  --grad-warm: linear-gradient(93deg, var(--accent), var(--accent-2));

  /* Severity — ink strengths (text on light) and vivid (shapes, meters). */
  --sev-low: #157f3c;
  --sev-medium: #8a6100;
  --sev-high: #9b4a00;
  --sev-critical: #b3241a;
  --sev-low-vivid: #2fb85c;
  --sev-medium-vivid: #e8b101;
  --sev-high-vivid: #f28100;
  --sev-critical-vivid: #e03528;
  --sev-low-fill: #cdeed8;
  --sev-medium-fill: #fbe7ae;
  --sev-high-fill: #fcd4a4;
  --sev-critical-fill: #fac8c3;

  --green: #157f3c;
  --green-soft: rgba(29, 138, 67, 0.12);
  --amber: #8a6100;
  --amber-soft: rgba(232, 177, 1, 0.16);
  --red: #b3241a;
  --red-soft: rgba(208, 2, 27, 0.1);
  --blue: #1b6ef3;
  --blue-soft: rgba(27, 110, 243, 0.1);

  --fill-1: rgba(0, 0, 0, 0.03);
  --fill-2: rgba(0, 0, 0, 0.055);
  --fill-3: rgba(0, 0, 0, 0.085);
  --fill-hi: rgba(255, 255, 255, 0.9);
  --chrome-glass: rgba(252, 252, 253, 0.82);

  --sh-low: 0 1px 2px rgba(0, 0, 0, 0.06);
  --sh-med: 0 8px 26px rgba(0, 0, 0, 0.09);
  --sh-hi: 0 22px 60px -18px rgba(0, 0, 0, 0.22);
  --ring: 0 0 0 1px rgba(0, 0, 0, 0.07);

  --r-4: 4px;
  --r-6: 6px;
  --r-8: 8px;
  --r-10: 10px;
  --r-12: 12px;
  --r-14: 14px;
  --r-18: 18px;
  --r-24: 24px;
  --r-28: 28px;
  --radius-card: var(--r-24);
  --radius-media: var(--r-18);

  --measure: 44rem;
  --nav-h: 60px;

  --snappy: cubic-bezier(0.32, 0.72, 0, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-reveal: cubic-bezier(0.28, 0.11, 0.32, 1);
}

:root[data-theme="dark"] {
  color-scheme: dark;

  --bg: #0b0c10;
  --bg-alt: #131419;
  --surface: #16171d;
  --raised: #1b1c23;
  --sunken: #0e0f13;
  --ink: #f5f5f7;
  --ink-2: #c3c3cb;
  --ink-3: #a0a0aa;
  --ink-4: #8a8a95;
  --hairline: rgba(255, 255, 255, 0.17);
  --hairline-soft: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.34);

  --accent: #ff7a55;
  --accent-2: #ffc247;
  --accent-ink: #ff9a7a;
  --accent-soft: rgba(255, 122, 85, 0.16);
  --accent-line: rgba(255, 122, 85, 0.4);
  --on-accent: #180a06;

  --grad: linear-gradient(96deg, #2fd166 0%, #9ede22 20%, #ffd028 46%,
      #ffa030 71%, #ff5d4d 100%);
  --grad-warm: linear-gradient(93deg, var(--accent), var(--accent-2));

  --sev-low: #4fd97e;
  --sev-medium: #ffd242;
  --sev-high: #ffa63d;
  --sev-critical: #ff6f62;
  --sev-low-vivid: #35d264;
  --sev-medium-vivid: #ffcf2b;
  --sev-high-vivid: #ff9c1f;
  --sev-critical-vivid: #ff5a4c;
  --sev-low-fill: rgba(53, 210, 100, 0.2);
  --sev-medium-fill: rgba(255, 207, 43, 0.2);
  --sev-high-fill: rgba(255, 156, 31, 0.2);
  --sev-critical-fill: rgba(255, 90, 76, 0.2);

  --green: #45d67a;
  --green-soft: rgba(69, 214, 122, 0.16);
  --amber: #ffb340;
  --amber-soft: rgba(255, 179, 64, 0.16);
  --red: #ff6b63;
  --red-soft: rgba(255, 107, 99, 0.16);
  --blue: #6ea4ff;
  --blue-soft: rgba(110, 164, 255, 0.16);

  --fill-1: rgba(255, 255, 255, 0.04);
  --fill-2: rgba(255, 255, 255, 0.07);
  --fill-3: rgba(255, 255, 255, 0.11);
  --fill-hi: rgba(255, 255, 255, 0.09);
  --chrome-glass: rgba(16, 17, 22, 0.78);

  --sh-low: 0 1px 2px rgba(0, 0, 0, 0.5);
  --sh-med: 0 8px 26px rgba(0, 0, 0, 0.5);
  --sh-hi: 0 22px 60px -18px rgba(0, 0, 0, 0.75);
  --ring: 0 0 0 1px rgba(255, 255, 255, 0.07);
}

/* ---------------------------------------------------------------- reset -- */

*,
*::before,
*::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-optical-sizing: auto;
  font-size: 17px;
  line-height: 1.5;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
img, svg, video, canvas { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, h5, h6 { font-weight: 650; letter-spacing: -0.02em; }
strong, b { font-weight: 640; }
table, .tabular, time, .num { font-variant-numeric: tabular-nums; }
code, kbd, samp, pre { font-family: var(--font-mono); }
::selection { background: var(--accent-soft); }

:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 2px;
  border-radius: var(--r-4);
}
:focus:not(:focus-visible) { outline: none; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--r-10);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  transition: top 0.18s var(--smooth);
}
.skip-link:focus { top: 12px; text-decoration: none; }

.container,
.wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 22px;
}
.center { text-align: center; }
.lede { font-size: 19px; line-height: 1.6; color: var(--ink-2); }
.eyebrow {
  font-size: 13px;
  font-weight: 620;
  letter-spacing: 0.01em;
  color: var(--accent-ink);
}
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ------------------------------------------------------------------ nav -- */

.nav {
  position: fixed;
  inset: 12px 12px auto;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 8px;
  height: var(--nav-h);
  padding: 0 8px 0 14px;
  margin-inline: auto;
  max-width: 1180px;
  border-radius: var(--r-18);
  background: var(--chrome-glass);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: var(--ring), var(--sh-low);
  transition: top 0.3s var(--smooth), box-shadow 0.3s var(--smooth);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav { background: var(--bg); }
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 640;
  font-size: 16px;
  color: var(--ink);
  letter-spacing: -0.015em;
  white-space: nowrap;
}
.nav-brand:hover { text-decoration: none; }
.nav-mark {
  display: inline-flex;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  overflow: hidden;
}
.nav-links { display: flex; gap: 2px; margin-left: 14px; flex: 1; min-width: 0; }
.nav-links a {
  padding: 7px 11px;
  border-radius: var(--r-8);
  font-size: 14.5px;
  color: var(--ink-2);
  white-space: nowrap;
  transition: color 0.18s, background 0.18s;
}
.nav-links a:hover { color: var(--ink); background: var(--fill-1); text-decoration: none; }
.nav-links a[aria-current] { color: var(--ink); font-weight: 600; }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--r-10);
  color: var(--ink-2);
  transition: color 0.18s, background 0.18s;
}
.theme-toggle:hover { color: var(--ink); background: var(--fill-1); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .ico-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .ico-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .ico-moon { display: block; }

/* On a narrow screen the bar keeps the one link that earns its width. The
   rest of the site is a tap away in the footer. */
@media (max-width: 880px) {
  .nav-links { margin-left: 6px; }
  .nav-links a { padding: 7px 9px; font-size: 14px; }
  .nav-links a[href="/#features"],
  .nav-links a[href="/support/"] { display: none; }
}
@media (max-width: 360px) { .nav-links { display: none; } }

/* -------------------------------------------------------------- buttons -- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 980px;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1;
  transition: transform 0.2s var(--snappy), background 0.2s, opacity 0.2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-ink); }
.btn-quiet { background: var(--fill-2); color: var(--ink); }
.btn-quiet:hover { background: var(--fill-3); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  border-radius: 980px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--accent-ink); text-decoration: none; }

.link-chevron { font-size: 15.5px; font-weight: 500; color: var(--accent-ink); }
.link-chevron::after { content: " \203A"; }

/* ------------------------------------------------------------- cta card -- */

.cta-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  margin: 2.6em 0 0;
  padding: 24px 26px;
  border-radius: var(--r-18);
  background: var(--fill-1);
  border: 1px solid var(--hairline-soft);
  box-shadow: inset 0 1px 0 var(--fill-hi);
}
.cta-card-mark { width: 52px; height: 52px; border-radius: 12px; overflow: hidden; }
.cta-card-title { font-size: 19px; font-weight: 640; letter-spacing: -0.018em; }
.cta-card-text { margin-top: 6px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.cta-card-action { grid-column: 1 / -1; margin-top: 4px; }
.cta-card-meta { margin-top: 10px; font-size: 13px; color: var(--ink-4); }
@media (min-width: 720px) {
  .cta-card { grid-template-columns: auto 1fr auto; }
  .cta-card-action { grid-column: auto; margin-top: 0; }
}

/* --------------------------------------------------------------- footer -- */

.site-footer {
  margin-top: 80px;
  padding: 44px 0 56px;
  border-top: 1px solid var(--hairline-soft);
  background: var(--bg-alt);
  font-size: 13.5px;
  color: var(--ink-3);
}
.footer-in { display: grid; gap: 20px; }
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 620;
  color: var(--ink);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a { color: var(--ink-3); }
.footer-links a:hover { color: var(--ink); }
.footer-copy { color: var(--ink-4); line-height: 1.6; }
.footer-copy .mono { font-family: var(--font-mono); font-size: 0.95em; }

/* ------------------------------------------------------- app store badge -- */

.appstore-badge {
  --asb-bg: #000;
  --asb-fg: #fff;
  display: inline-block;
  width: 178px;
  max-width: 100%;
  line-height: 0;
  border-radius: 9px;
  transition: transform 0.18s var(--ease-reveal), opacity 0.18s;
}
.appstore-badge svg { display: block; width: 100%; height: auto; }
.appstore-badge .asb-bg { fill: var(--asb-bg); }
.appstore-badge .asb-fg { fill: var(--asb-fg); }
.appstore-badge .asb-1 {
  font: 500 9.2px/1 -apple-system, "SF Pro Text", "Helvetica Neue", Helvetica,
    Arial, sans-serif;
  letter-spacing: 0.01em;
}
.appstore-badge .asb-2 {
  font: 500 18px/1 -apple-system, "SF Pro Display", "Helvetica Neue", Helvetica,
    Arial, sans-serif;
  letter-spacing: -0.02em;
}
.appstore-badge:hover { transform: translateY(-1px); opacity: 0.92; }
.appstore-badge:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
:root[data-theme="dark"] .appstore-badge { --asb-bg: #fff; --asb-fg: #000; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .appstore-badge { --asb-bg: #fff; --asb-fg: #000; }
}

/* ------------------------------------------------------- reduced motion -- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .btn:hover { transform: none; }
  .appstore-badge { transition: none; }
  .appstore-badge:hover { transform: none; }
}
