/* skaldanalytics.com: one stylesheet, system fonts only, nothing fetched from elsewhere.
   Colours are the Skald dashboard's own tokens (trafficintel/webapp/app.css): ink on a
   cool paper, one blue accent (the "people" hue), the five group hues for data only. */

:root {
  color-scheme: light;
  --page: #edf0f3;
  --surface: #fbfcfd;
  --sunk: #e4e9ee;
  --ink: #17212b;
  --ink-2: #4f5d6b;
  --rule: #d8dfe6;
  --rule-2: #c3ccd5;
  --accent: #1c5fae;         /* text-safe blue (AA on page and surface) */
  --accent-fill: #2a78d6;    /* the dashboard's people blue, for fills */
  --accent-soft: rgba(42, 120, 214, .1);
  --accent-btn: #1c5fae;
  --warn: #9a6400;
  --good: #1b7f52;
  --bad: #c0352f;
  --g-people: #2a78d6;
  --g-ai: #eb6834;
  --g-search: #1baf7a;
  --g-bots: #eda100;
  --g-ours: #e87ba4;
  --term: #111a22;
  --term-bar: #18222c;
  --term-ink: #e4eaf0;
  --term-dim: #93a1ae;
  --glass: rgba(237, 240, 243, .72);
  --tile-shadow: 0 1px 0 rgba(23, 33, 43, .04), 0 12px 32px -18px rgba(23, 33, 43, .22);
  --tile-shadow-hi: 0 1px 0 rgba(23, 33, 43, .05), 0 22px 48px -20px rgba(23, 33, 43, .32);
  --win-shadow:
    0 0 0 1px rgba(23, 33, 43, .06),
    0 2px 4px rgba(23, 33, 43, .04),
    0 12px 24px -8px rgba(23, 33, 43, .10),
    0 40px 80px -24px rgba(23, 33, 43, .22),
    0 80px 140px -40px rgba(42, 120, 214, .28);
  --mesh-1: rgba(42, 120, 214, .22);
  --mesh-2: rgba(235, 104, 52, .13);
  --mesh-3: rgba(27, 175, 122, .13);
  --grid-line: rgba(23, 33, 43, .05);
  --r: 18px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --round: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --page: #0d1319;
    --surface: #141c24;
    --sunk: #1b252f;
    --ink: #e4eaf0;
    --ink-2: #a9b5c1;
    --rule: #26313c;
    --rule-2: #3a4652;
    --accent: #79b4f5;
    --accent-fill: #3987e5;
    --accent-soft: rgba(90, 160, 240, .14);
    --accent-btn: #2a6fc4;
    --warn: #d9a440;
    --good: #48b883;
    --bad: #ef6b63;
    --g-people: #3987e5;
    --g-ai: #d95926;
    --g-search: #199e70;
    --g-bots: #c98500;
    --g-ours: #d55181;
    --term: #080c10;
    --term-bar: #10171e;
    --glass: rgba(13, 19, 25, .7);
    --tile-shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 14px 34px -18px rgba(0, 0, 0, .8);
    --tile-shadow-hi: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 24px 50px -20px rgba(0, 0, 0, .9);
    --win-shadow:
      0 0 0 1px rgba(255, 255, 255, .06),
      0 2px 4px rgba(0, 0, 0, .3),
      0 16px 32px -10px rgba(0, 0, 0, .6),
      0 50px 100px -30px rgba(0, 0, 0, .8),
      0 80px 160px -40px rgba(57, 135, 229, .35);
    --mesh-1: rgba(57, 135, 229, .28);
    --mesh-2: rgba(217, 89, 38, .14);
    --mesh-3: rgba(25, 158, 112, .14);
    --grid-line: rgba(228, 234, 240, .045);
  }
}

/* Base */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font: 17px/1.6 var(--sans); font-kerning: normal; overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
main { overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; line-height: 1.1; }
h2 {
  font-family: var(--round); font-weight: 750; letter-spacing: -.03em;
  font-size: clamp(30px, 4.6vw, 48px); margin-bottom: 18px; text-wrap: balance;
}
h3 { font-size: 19px; font-weight: 680; letter-spacing: -.015em; margin-bottom: 10px; line-height: 1.25; }
p { margin: 0 0 14px; }
code { font-family: var(--mono); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.wrap-wide { max-width: 1320px; }
.narrow { max-width: 820px; }

.skip {
  position: absolute; left: 16px; top: -80px; z-index: 100;
  background: var(--ink); color: var(--page); padding: 10px 16px; border-radius: 10px; font-weight: 600;
}
.skip:focus { top: 12px; }

/* Header: sticky, translucent */
.top {
  position: sticky; top: 0; z-index: 50;
  background: var(--glass);
  -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background-color .3s;
}
.top.is-scrolled { border-bottom-color: var(--rule); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .top { background: var(--page); } }
.top-in { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none;
  font-family: var(--round); font-weight: 750; font-size: 21px; letter-spacing: -.02em; margin-right: auto;
}
.mark { flex: none; }
.m-tile { fill: var(--ink); }
.m-ink { fill: var(--page); }
.m-cut { stroke: var(--ink); }
.nav { display: flex; gap: 2px; }
.nav a {
  color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 550;
  padding: 8px 12px; border-radius: 999px; transition: color .2s, background-color .2s;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--sunk); }
.top-cta { display: flex; align-items: center; gap: 8px; }
.star, .demo-btn, .trial-btn {
  display: inline-flex; align-items: center; gap: 7px; text-decoration: none; white-space: nowrap;
  font-size: 14.5px; font-weight: 650; padding: 8px 14px; border-radius: 999px; min-height: 38px;
  transition: transform .2s var(--ease), box-shadow .2s, border-color .2s;
}
.star { color: var(--ink); background: var(--surface); border: 1px solid var(--rule); }
.star svg { color: #e0a22e; }
.star:hover { border-color: var(--rule-2); }
.demo-btn { color: var(--page); background: var(--ink); border: 1px solid var(--ink); }
.trial-btn { color: #fff; background: var(--accent-btn); border: 1px solid var(--accent-btn); }
.star:hover, .demo-btn:hover, .trial-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -10px rgba(23, 33, 43, .6); }
.login {
  color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 600; white-space: nowrap;
  padding: 8px 10px; border-radius: 999px; transition: color .2s, background-color .2s;
}
.login:hover { color: var(--ink); background: var(--sunk); }
.cta-note { color: var(--ink-2); font-size: 15px; margin: 18px 0 0; }

/* Menu: a plain <details>, so it works without JavaScript */
.menu { position: relative; display: none; }
.menu summary {
  list-style: none; cursor: pointer; display: grid; place-items: center; width: 42px; height: 40px;
  border-radius: 12px; border: 1px solid var(--rule); background: var(--surface); color: var(--ink);
}
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { border-color: var(--rule-2); }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 10px); width: min(300px, calc(100vw - 32px));
  background: var(--surface); border: 1px solid var(--rule); border-radius: 18px; padding: 10px;
  box-shadow: var(--tile-shadow-hi); display: grid; gap: 8px;
}
.menu-panel nav { display: grid; margin-bottom: 4px; }
.menu-panel nav a { color: var(--ink); text-decoration: none; font-weight: 600; padding: 11px 12px; border-radius: 10px; }
.menu-panel nav a:hover, .menu-panel nav a[aria-current="page"] { background: var(--sunk); }
@media (max-width: 999px) { .nav, .star, .login { display: none; } .menu { display: block; } }
@media (max-width: 559px) { .trial-btn { display: none; } .top-in { gap: 8px; } }

/* Mesh backdrop */
.mesh {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(42% 46% at 18% 18%, var(--mesh-1), transparent 70%),
    radial-gradient(36% 40% at 84% 10%, var(--mesh-2), transparent 70%),
    radial-gradient(40% 44% at 62% 52%, var(--mesh-3), transparent 72%);
  filter: saturate(1.1);
}
.mesh::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 80%);
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 80%);
}

@media (max-width: 719px) {
  .mesh {
    background:
      radial-gradient(90% 40% at 10% 12%, var(--mesh-1), transparent 70%),
      radial-gradient(80% 36% at 95% 6%, var(--mesh-2), transparent 70%),
      radial-gradient(90% 40% at 60% 55%, var(--mesh-3), transparent 72%);
  }
}

/* Hero */
.hero { position: relative; isolation: isolate; padding: 56px 0 40px; }
@media (min-width: 720px) { .hero { padding: 96px 0 56px; } }
.hero-copy { max-width: 940px; text-align: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 24px;
  padding: 6px 14px 6px 10px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink-2);
  background: var(--glass); border: 1px solid var(--rule);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 4px color-mix(in srgb, var(--good) 20%, transparent); }
.hero h1 {
  font-family: var(--round); font-weight: 800;
  font-size: clamp(46px, 9.5vw, 104px); line-height: .96; letter-spacing: -.045em;
  margin-bottom: 24px; text-wrap: balance;
}
.accent { color: var(--accent); }
.lede {
  font-size: clamp(18px, 2.3vw, 22px); line-height: 1.5; color: var(--ink-2);
  max-width: 680px; margin: 0 auto 32px; text-wrap: balance;
}

.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px;
  padding: 12px 22px; border-radius: 14px; font-weight: 650; font-size: 16px; text-decoration: none;
  color: var(--ink); background: var(--surface); border: 1px solid var(--rule);
  box-shadow: 0 1px 2px rgba(23, 33, 43, .06);
  transition: transform .2s var(--ease), box-shadow .2s, border-color .2s, background-color .2s;
}
.btn:hover { transform: translateY(-2px); border-color: var(--rule-2); box-shadow: 0 10px 24px -14px rgba(23, 33, 43, .5); }
.btn-main { background: var(--ink); color: var(--page); border-color: var(--ink); }
.btn-main:hover { border-color: var(--ink); }
.btn-main svg { transition: transform .2s var(--ease); }
.btn-main:hover svg { transform: translateX(3px); }
.btn-ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); border-color: transparent; box-shadow: none; }
@media (max-width: 479px) { .hero .cta .btn { flex: 1 1 100%; } }

/* App window */
.stage { margin-top: 56px; perspective: 2400px; }
@media (min-width: 720px) { .stage { margin-top: 72px; } }
.window {
  --tilt: 0;
  margin: 0; padding: 0 8px 8px; border-radius: 20px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  border: 1px solid var(--rule);
  box-shadow: var(--win-shadow);
  transform-origin: 50% 0;
  transform: rotateX(calc(var(--tilt) * 16deg)) scale(calc(1 - var(--tilt) * .05));
  transition: transform .5s var(--ease);
  will-change: transform;
}
.window.is-live { transition: transform .12s linear; }
@media (prefers-reduced-motion: reduce) { .window { transform: none !important; transition: none; } }
.window-bar { display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 6px; }
.lights { display: inline-flex; gap: 7px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: var(--rule-2); }
.lights i:nth-child(1) { background: #ef6b63; }
.lights i:nth-child(2) { background: #e6b34a; }
.lights i:nth-child(3) { background: #48b883; }
.window-title { flex: 1; text-align: center; font-size: 13px; color: var(--ink-2); margin-right: 45px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* The screenshot is the dashboard's own rounded card: clip to its corners exactly. */
.window img { width: 100%; border-radius: 1.6% / 2.45%; }
.stage-note { text-align: center; color: var(--ink-2); font-size: 15px; margin: 28px 0 0; }
@media (max-width: 479px) {
  .window { padding: 0 4px 4px; border-radius: 12px; }
  .window-bar { height: 28px; }
  .lights i { width: 8px; height: 8px; }
  .window-title { font-size: 11px; margin-right: 30px; }
}

/* Proof strip */
.proof { padding: 24px 0 8px; }
.proof-label { text-align: center; font-size: 13px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 14px; }
.chips { list-style: none; padding: 0; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 860px; }
.chips li {
  padding: 7px 14px; border-radius: 999px; font-size: 15px; font-weight: 600;
  background: var(--surface); border: 1px solid var(--rule); color: var(--ink);
}
.chips .chip-mono { font-family: var(--mono); font-size: 14px; font-weight: 500; color: var(--ink-2); background: transparent; border-style: dashed; }
.facts {
  list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 1px;
  grid-template-columns: repeat(2, 1fr); background: var(--rule);
  border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden;
}
@media (min-width: 860px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.facts li { background: var(--surface); padding: 20px 18px; display: flex; flex-direction: column; gap: 2px; }
.facts b { font-family: var(--round); font-size: clamp(19px, 2.2vw, 24px); font-weight: 750; letter-spacing: -.02em; }
.facts span { color: var(--ink-2); font-size: 14.5px; line-height: 1.4; }

/* Sections */
.section { position: relative; padding: 80px 0; }
@media (min-width: 720px) { .section { padding: 120px 0; } }
.section-tint { background: linear-gradient(180deg, transparent, var(--sunk) 18%, var(--sunk) 82%, transparent); }
@media (prefers-color-scheme: dark) { .section-tint { background: linear-gradient(180deg, transparent, #10181f 18%, #10181f 82%, transparent); } }
.head { max-width: 720px; margin-bottom: 44px; }
.kicker {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.sub { color: var(--ink-2); font-size: 18px; margin: 0; }

/* Blind spot */
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 940px) { .split { grid-template-columns: 1.05fr 1fr; gap: 64px; } }
.split-copy p { color: var(--ink-2); font-size: 18px; }
.split-copy strong { color: var(--ink); }
.split-copy .kicker { color: var(--accent); font-size: 13px; }
.groups-card {
  background: var(--surface); border: 1px solid var(--rule); border-radius: 20px;
  padding: 24px; box-shadow: var(--tile-shadow);
}
.stack { display: flex; gap: 4px; height: 14px; margin-bottom: 18px; }
.stack i { flex: 1; border-radius: 999px; }
.groups { list-style: none; padding: 0; margin: 0; }
.groups li { display: grid; grid-template-columns: 12px 1fr; gap: 14px; padding: 13px 0; border-top: 1px solid var(--rule); }
.groups li:first-child { border-top: 0; padding-top: 4px; }
.groups b { display: block; font-weight: 680; }
.groups span:not(.dot) { color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.dot { width: 12px; height: 12px; border-radius: 4px; margin-top: 6px; }
.g-people { background: var(--g-people); }
.g-ai { background: var(--g-ai); }
.g-search { background: var(--g-search); }
.g-bots { background: var(--g-bots); }
.g-ours { background: var(--g-ours); }

/* Bento */
.bento { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .bento { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .tile-ai, .tile-leads { grid-column: span 2; }
}
@media (min-width: 1040px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .tile-ai, .tile-leads { grid-column: span 4; }
  .tile-people, .tile-log { grid-column: span 2; }
}
.tile {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--rule); border-radius: 20px;
  padding: 26px; box-shadow: var(--tile-shadow);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
@media (min-width: 720px) { .tile { padding: 30px; } }
.tile:hover { transform: translateY(-3px); box-shadow: var(--tile-shadow-hi); border-color: var(--rule-2); }
.tile p { color: var(--ink-2); font-size: 16px; }
.tile p:last-child { margin-bottom: 0; }
.tile-ai, .tile-leads { display: grid; gap: 26px; align-content: start; }
@media (min-width: 1040px) { .tile-leads { grid-template-columns: 1.1fr 1fr; align-items: center; } }
.icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; margin-bottom: 20px;
  background: var(--accent-soft); color: var(--accent);
}
.icon svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.viz {
  border-radius: 14px; background: var(--page); border: 1px solid var(--rule);
  font-size: 14px;
}
.viz-table { padding: 6px 0; }
.vt-row {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.2fr) auto; gap: 12px; align-items: center;
  padding: 10px 16px; border-top: 1px solid var(--rule);
}
.vt-row:first-child { border-top: 0; }
.vt-head { color: var(--ink-2); font-size: 12.5px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; padding-top: 8px; padding-bottom: 8px; }
.vt-row span:first-child { display: flex; align-items: center; gap: 8px; font-weight: 600; min-width: 0; }
.why { color: var(--ink-2); }
.ini {
  flex: none; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 5px;
  font-style: normal; font-size: 11px; font-weight: 700; color: #fff; background: var(--ink-2);
}
.ini-o { background: #10a37f; }
.ini-a { background: #c4633f; }
.ini-p { background: #1f7a8c; }
.ok, .no {
  font-size: 12.5px; font-weight: 650; padding: 2px 9px; border-radius: 999px; white-space: nowrap;
  border: 1px solid currentColor;
}
.ok { color: var(--good); }
.no { color: var(--bad); }
.vt-fake span:first-child { color: var(--ink-2); font-weight: 500; }
@media (max-width: 479px) {
  .vt-row { grid-template-columns: minmax(0, 1fr) auto; padding: 10px 12px; }
  .vt-row .why { grid-column: 1 / -1; grid-row: 2; font-size: 13px; margin-top: -6px; }
  .vt-head .why { display: none; }
}

.viz-path { list-style: none; margin: 0; padding: 18px; display: grid; gap: 10px; counter-reset: none; }
.viz-path li {
  position: relative; display: flex; flex-direction: column; padding: 10px 14px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--rule); font-weight: 650; font-family: var(--mono); font-size: 14px;
}
.viz-path small { font-family: var(--sans); font-size: 12px; font-weight: 600; color: var(--ink-2); text-transform: uppercase; letter-spacing: .05em; }
.viz-path li + li::before {
  content: ""; position: absolute; left: 22px; top: -11px; width: 2px; height: 10px; background: var(--rule-2);
}
.viz-path .win { border-color: color-mix(in srgb, var(--good) 45%, var(--rule)); color: var(--good); }

.mini-chips { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.mini-chips li { font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--sunk); color: var(--ink); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.steps li {
  position: relative; background: var(--surface); border: 1px solid var(--rule); border-radius: 20px;
  padding: 28px; box-shadow: var(--tile-shadow);
}
.step-n {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; margin-bottom: 20px;
  font-family: var(--round); font-weight: 800; font-size: 18px; color: var(--page); background: var(--ink);
}
.steps p { color: var(--ink-2); font-size: 16px; margin: 0; }
@media (min-width: 900px) {
  .steps li:not(:last-child)::after {
    content: ""; position: absolute; top: 47px; right: -21px; width: 22px; height: 2px;
    background: var(--rule-2);
  }
}

/* Gallery */
.gallery { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.shot { margin: 0; }
.shot img {
  border-radius: 16px; border: 1px solid var(--rule); background: var(--surface);
  box-shadow: var(--tile-shadow); transition: transform .3s var(--ease), box-shadow .3s;
}
.shot:hover img { transform: translateY(-3px); box-shadow: var(--tile-shadow-hi); }
.shot figcaption { color: var(--ink-2); font-size: 15px; margin-top: 14px; }
.shot b { color: var(--ink); }

/* Install: terminal card */
.term {
  border-radius: 20px; overflow: hidden; background: var(--term); color: var(--term-ink);
  box-shadow: var(--win-shadow); border: 1px solid rgba(255, 255, 255, .06);
}
.term-bar { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; background: var(--term-bar); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.term-title { flex: 1; font-size: 13px; color: var(--term-dim); }
.copy {
  display: inline-flex; align-items: center; gap: 6px; font: 600 13px/1 var(--sans); cursor: pointer;
  color: var(--term-ink); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12);
  padding: 8px 12px; border-radius: 10px; transition: background-color .2s, border-color .2s;
}
.copy:hover { background: rgba(255, 255, 255, .13); }
.copy:focus-visible { outline-color: #79b4f5; }
.copy.is-done { color: #7fd3a8; border-color: rgba(127, 211, 168, .4); }
.term-body {
  margin: 0; padding: 22px 22px 24px; overflow-x: auto; font: 14px/1.7 var(--mono);
  color: var(--term-ink); tab-size: 2;
}
.term-body:focus-visible { outline: 3px solid #79b4f5; outline-offset: -3px; border-radius: 0; }
.term-body .c { color: var(--term-dim); }
.note { color: var(--ink-2); font-size: 15px; margin-top: 24px; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details {
  background: var(--surface); border: 1px solid var(--rule); border-radius: 16px;
  transition: border-color .2s, box-shadow .2s;
}
.faq details:hover { border-color: var(--rule-2); }
.faq details[open] { box-shadow: var(--tile-shadow); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 56px 20px 22px; position: relative;
  font-weight: 650; font-size: 17.5px; border-radius: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2);
  transform: rotate(45deg); transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { color: var(--ink-2); padding: 0 22px; font-size: 16px; }
.faq details p:last-child { padding-bottom: 8px; }

.mesh-soft { opacity: .9; }

/* End band: demo + hosted, on every page */
.section.end { padding-top: 40px; }
.end-band { display: grid; gap: 20px; }
@media (min-width: 900px) { .end-band { grid-template-columns: 1.15fr 1fr; } }
.end-card {
  position: relative; isolation: isolate; overflow: hidden; border-radius: 28px;
  border: 1px solid var(--rule); background: var(--surface); padding: 40px 24px; box-shadow: var(--tile-shadow);
}
@media (min-width: 720px) { .end-card { padding: 56px 48px; } }
.end-card h2 { font-size: clamp(28px, 3.6vw, 40px); }
.end-card p { color: var(--ink-2); font-size: 18px; margin-bottom: 28px; max-width: 520px; }
.end-card .kicker { font-size: 13px; color: var(--accent); margin-bottom: 14px; }
.end-card .cta { justify-content: flex-start; }
.end-hosted { background: linear-gradient(160deg, var(--accent-soft), transparent 60%), var(--surface); }

/* Buttons, extra */
.btn-accent { background: var(--accent-btn); border-color: var(--accent-btn); color: #fff; }
.btn-accent:hover { border-color: var(--accent-btn); }
.btn-block { width: 100%; }
.cta-left { justify-content: flex-start; margin-top: 8px; }

/* Inner page hero and breadcrumbs */
.page-hero { position: relative; isolation: isolate; padding: 48px 0 40px; }
@media (min-width: 720px) { .page-hero { padding: 80px 0 56px; } }
.page-hero h1 {
  font-family: var(--round); font-weight: 800; font-size: clamp(40px, 7vw, 76px);
  line-height: 1; letter-spacing: -.04em; margin-bottom: 20px; max-width: 900px; text-wrap: balance;
}
.page-hero .lede { margin: 0; max-width: 720px; text-align: left; }
.crumbs ol { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--ink-2); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--rule-2); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }
.section-first { padding-top: 24px; }
@media (min-width: 720px) { .section-first { padding-top: 32px; } }
.links-404 { color: var(--ink-2); margin-top: 24px; }

/* Long text */
.prose { font-size: 18px; max-width: 760px; }
.prose p, .prose li { color: var(--ink-2); }
.prose strong, .prose b { color: var(--ink); }
.prose h2 { margin-top: 8px; }
.prose h2:not(:first-child) { margin-top: 48px; }
.prose h3 { font-size: 21px; margin: 32px 0 10px; }
.prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 16px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--accent); }
.prose blockquote {
  margin: 24px 0; padding: 18px 22px; border-left: 3px solid var(--accent-fill); background: var(--surface);
  border-radius: 0 14px 14px 0; font-size: 19px; color: var(--ink);
}
.prose blockquote p { color: var(--ink); margin: 0; }
.prose + .feat-grid, .prose + .table-wrap { margin-top: 28px; }
:not(pre) > code { background: var(--sunk); padding: 1px 6px; border-radius: 6px; font-size: .88em; color: var(--ink); }
.updated { font-size: 15px; margin-top: 32px; }
.section .facts { margin: 0 0 40px; }

/* Feature lists */
.feat-grid { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 28px; }
@media (min-width: 760px) { .feat-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1100px) { .feat-grid { grid-template-columns: repeat(3, 1fr); } }
.feat { background: var(--surface); border: 1px solid var(--rule); border-radius: 20px; padding: 26px; box-shadow: var(--tile-shadow); }
.feat ul { margin: 0; padding-left: 1.1em; }
.feat li { color: var(--ink-2); font-size: 15.5px; margin-bottom: 8px; }
.feat li:last-child { margin-bottom: 0; }
.feat li::marker { color: var(--accent); }
.feat strong { color: var(--ink); }

/* Features: what is new, with screenshots */
.new-grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .new-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .new-card-wide { grid-column: 1 / -1; } }
.new-card { margin: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: 20px; padding: 10px; box-shadow: var(--tile-shadow); }
.new-card img { border-radius: 13px; border: 1px solid var(--rule); }
.new-card figcaption { padding: 14px 10px 6px; color: var(--ink-2); font-size: 15.5px; }
.new-card b { color: var(--ink); }
@media (min-width: 900px) {
  .new-card-wide { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 24px; align-items: center; }
  .new-card-wide figcaption { font-size: 17px; padding: 10px 18px 10px 0; }
}
.new-note { padding: 22px 22px 20px; align-self: start; border-left: 4px solid var(--warn); }
.new-note p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.new-note p + p { margin-top: 12px; }
.new-sub { margin: 56px 0 20px; font-size: 22px; }

/* What's new: one release per row, version beside its notes */
.rel-list { list-style: none; margin: 0; padding: 0; }
.rel { display: grid; gap: 14px; padding: 36px 0; border-top: 1px solid var(--rule); scroll-margin-top: 90px; }
.rel:first-child { border-top: 0; padding-top: 8px; }
@media (min-width: 860px) { .rel { grid-template-columns: 180px minmax(0, 1fr); gap: 40px; } }
.rel-meta p { margin: 0; color: var(--ink-2); font-size: 15px; }
.rel-ver a { font: 800 40px/1 var(--round); letter-spacing: -.03em; color: var(--accent); text-decoration: none; }
.rel-ver a:hover { text-decoration: underline; }
.rel-ver { margin-bottom: 8px !important; }
.rel-also { margin-top: 6px !important; font-size: 14px !important; }
@media (min-width: 860px) { .rel-meta { position: sticky; top: 96px; align-self: start; } }
.rel-body h2 { font-size: clamp(26px, 3.2vw, 34px); margin-top: 0; }
.rel-shot { margin: 24px 0 0; }
.rel-shot img { border-radius: 14px; border: 1px solid var(--rule); box-shadow: var(--tile-shadow); }
.rel-more { margin-top: 24px; padding-top: 28px; border-top: 1px solid var(--rule); }

/* Comparison tables */
.table-wrap {
  overflow-x: auto; margin: 28px 0 0; border: 1px solid var(--rule); border-radius: 18px;
  background: var(--surface); box-shadow: var(--tile-shadow); -webkit-overflow-scrolling: touch;
}
.table-wrap:focus-visible { outline-offset: 2px; }
.matrix { border-collapse: collapse; width: 100%; min-width: 920px; font-size: 14.5px; }
.matrix caption {
  caption-side: top; text-align: left; padding: 18px 20px 12px; font-weight: 700; font-size: 17px; color: var(--ink);
}
.matrix th, .matrix td { padding: 11px 12px; border-top: 1px solid var(--rule); vertical-align: top; }
.matrix thead th {
  font-size: 13px; font-weight: 650; color: var(--ink-2); text-align: center; background: var(--page);
  position: sticky; top: 0; white-space: nowrap;
}
.matrix thead th:first-child { text-align: left; }
.matrix tbody th { text-align: left; font-weight: 600; min-width: 180px; position: sticky; left: 0; background: var(--surface); z-index: 1; }
.matrix tbody th small { display: block; font-weight: 400; color: var(--ink-2); font-size: 13px; margin-top: 2px; }
.matrix td { text-align: center; color: var(--ink-2); }
.matrix td:not(.m) { font-size: 13.5px; text-align: left; min-width: 130px; }
.m { font-weight: 700; font-size: 16px; }
.m-yes { color: var(--good); }
.m-part { color: var(--warn); }
.m-no { color: var(--bad); }
.m-q, .m-na, .m-nc { color: var(--ink-2); font-weight: 500; font-size: 14px; }
.m-plan { color: var(--accent); font-size: 13px; font-weight: 650; }
.m-skald { background: var(--accent-soft); }
thead .m-skald { color: var(--accent); }

/* Module headings between comparison tables */
.table-wrap + h3 { margin-top: 56px; font-size: 22px; }
.table-wrap + h3 + p { color: var(--ink-2); max-width: 720px; }
#compare ~ h3, .wrap > h3 { scroll-margin-top: 90px; }

/* Install steps */
.install-steps { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; counter-reset: st; }
.term { max-width: 100%; min-width: 0; }
.install-steps li { counter-increment: st; position: relative; padding-left: 0; }
.install-steps h3 { display: flex; gap: 12px; align-items: center; font-size: 20px; margin-bottom: 16px; }
.install-steps h3::before {
  content: counter(st); flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px;
  background: var(--ink); color: var(--page); font-family: var(--round); font-size: 15px; font-weight: 800;
}
.install-steps p { color: var(--ink-2); margin-top: 14px; }
.term + .prose, .reveal + .prose { margin-top: 24px; }
.prose + .reveal .term, .prose + div > .term { margin-top: 4px; }

/* Sign-up */
.signup { display: grid; gap: 40px; align-items: start; }
@media (min-width: 940px) { .signup { grid-template-columns: 1fr 1fr; gap: 64px; } }
.signup-copy h2 { font-size: clamp(28px, 3.6vw, 40px); }
.ticks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 34px; color: var(--ink-2); font-size: 17px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: color-mix(in srgb, var(--good) 16%, transparent);
}
.ticks li::after {
  content: ""; position: absolute; left: 7px; top: 8px; width: 8px; height: 5px;
  border-left: 2px solid var(--good); border-bottom: 2px solid var(--good); transform: rotate(-45deg);
}
.ticks b { color: var(--ink); }
.form-card {
  background: var(--surface); border: 1px solid var(--rule); border-radius: 24px; padding: 24px;
  box-shadow: var(--win-shadow); scroll-margin-top: 90px;
}
@media (min-width: 720px) { .form-card { padding: 32px; } }
.signup-form, .contact-form { display: grid; gap: 18px; }
.choice { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.choice legend { font-weight: 700; margin-bottom: 10px; padding: 0; }
.opt {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; cursor: pointer;
  border: 1px solid var(--rule); background: var(--page); transition: border-color .2s, background-color .2s;
}
.opt:hover { border-color: var(--rule-2); }
.opt:has(input:checked) { border-color: var(--accent-fill); background: var(--accent-soft); }
.opt input { margin: 4px 0 0; accent-color: var(--accent-fill); width: 18px; height: 18px; flex: none; }
.opt b { display: block; }
.opt small { display: block; color: var(--ink-2); font-size: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink); background: var(--page); width: 100%;
  border: 1px solid var(--rule-2); border-radius: 12px; padding: 12px 14px; min-height: 48px;
}
.field input::placeholder { color: var(--ink-2); opacity: .75; }
.field textarea { font: inherit; resize: vertical; min-height: 140px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--bad); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.consent input { margin: 3px 0 0; width: 18px; height: 18px; flex: none; accent-color: var(--accent-fill); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error {
  margin: 0; padding: 12px 14px; border-radius: 12px; font-size: 15px; font-weight: 600;
  color: var(--bad); background: color-mix(in srgb, var(--bad) 10%, transparent);
}
.form-fine { margin: 0; color: var(--ink-2); font-size: 14px; text-align: center; }
.signup-form button[disabled], .contact-form button[disabled] { opacity: .7; cursor: progress; }
.form-done { text-align: center; padding: 24px 8px; }
.form-done:focus { outline: none; }
.done-icon {
  display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; margin-bottom: 16px;
  color: var(--good); background: color-mix(in srgb, var(--good) 15%, transparent);
}
.form-done p { color: var(--ink-2); margin: 10px 0 0; }

/* Footer */
.foot { border-top: 1px solid var(--rule); padding: 48px 0 40px; color: var(--ink-2); font-size: 15px; }
.foot-grid { display: grid; gap: 28px; grid-template-columns: repeat(2, 1fr); margin-bottom: 32px; }
.foot-brand { grid-column: 1 / -1; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; } .foot-brand { grid-column: auto; } }
.foot-brand p { margin: 12px 0 0; max-width: 300px; }
.brand-sm { font-size: 18px; margin: 0; }
.foot-h { font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin: 0 0 12px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot a:not(.brand) { color: var(--ink-2); text-decoration: none; }
.foot a:not(.brand):hover { color: var(--accent); text-decoration: underline; }
.legal { margin: 0; font-size: 14px; padding-top: 24px; border-top: 1px solid var(--rule); }

/* Security band (home, features): to /security/ and /check/ */
.sec-band { padding: 8px 0 24px; }
.sec-band-in {
  position: relative; overflow: hidden; border-radius: 22px; padding: 26px 24px;
  background: linear-gradient(120deg, color-mix(in srgb, var(--bad) 9%, var(--surface)), var(--surface) 55%);
  border: 1px solid var(--rule); box-shadow: var(--tile-shadow);
}
@media (min-width: 720px) { .sec-band-in { padding: 32px 40px; } }
.sec-band-in h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 10px; }
.sec-band-in p { color: var(--ink-2); max-width: 720px; }
.sec-band-kicker { display: inline-block; margin: 0 0 10px !important; font-size: 12.5px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--bad) !important; }
.sec-band-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
@media (max-width: 479px) { .sec-band-links .btn { flex: 1 1 100%; } }

/* Scroll reveal: only for elements below the fold at load, only with motion allowed (see script.js) */
.reveal { transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-pending { opacity: 0; transform: translateY(22px); }
.bento .reveal:nth-child(2), .steps .reveal:nth-child(2), .gallery .reveal:nth-child(2) { transition-delay: .08s; }
.bento .reveal:nth-child(3), .steps .reveal:nth-child(3), .gallery .reveal:nth-child(3) { transition-delay: .16s; }
.tile.reveal { transition: opacity .8s var(--ease), transform .8s var(--ease), box-shadow .3s, border-color .3s; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.is-pending { opacity: 1; transform: none; transition: none; }
  .btn, .tile, .shot img, .star { transition: none; }
  .btn:hover, .tile:hover, .shot:hover img, .star:hover { transform: none; }
}
