/* valhalla.snapops.cloud — the website.
 *
 * Cut from the app's own default theme (the Well: warm charcoal, bronze accent, one family
 * of system type) so the thing a person downloads looks like the page they found it on.
 * Hand-written, no build step, no web fonts, like the app's interface.
 *
 * The motion is the product's first impression, so it is allowed to be generous — and it is
 * also the first thing to go: every animation here is declared inside
 * `prefers-reduced-motion: no-preference`, and the reveal only hides content once `site.js`
 * has said it is running (`html.js`), so a page without JavaScript is a complete page. */

:root {
  --bg: #13100d;
  --bg-side: #0d0a07;
  --bg-elev: #1d1916;
  --bg-input: #25211d;
  --hair: rgba(242, 236, 227, 0.12);
  --hair-soft: rgba(242, 236, 227, 0.07);
  --ink: #f2ece3;
  --ink-2: #c4bdb2;
  --ink-3: #9d978d;
  --accent: #d9b070;
  --link: #e2bd80;
  --accent-ink: #1a1408;
  --glow: rgba(217, 176, 112, 0.30);
  --glow-2: rgba(95, 201, 216, 0.16);
  --danger: #e07b73;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 8px 24px rgba(0, 0, 0, 0.35);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, system-ui, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Inter, system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --measure: 70ch;
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

/* The light treatment is a parchment ground, not an inverted dark one: the bronze has to be
 * darkened to carry words (#8a5716 is 5.7:1 on the ground), and the shadows soften. The
 * screenshots stay dark — they are the app's default theme, and that is what installs. */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f1e9;
    --bg-side: #efe8dc;
    --bg-elev: #fffcf7;
    --bg-input: #ebe3d6;
    --hair: rgba(40, 30, 18, 0.14);
    --hair-soft: rgba(40, 30, 18, 0.08);
    --ink: #1d1914;
    --ink-2: #463f36;
    --ink-3: #62594e;
    --link: #8a5716;
    --glow: rgba(196, 140, 60, 0.22);
    --glow-2: rgba(40, 140, 160, 0.10);
    --danger: #a23a32;
    --shadow: 0 30px 70px rgba(60, 40, 10, 0.20), 0 6px 18px rgba(60, 40, 10, 0.12);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
html, body { max-width: 100%; overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; height: auto; display: block; }
code, pre, kbd { font-family: var(--mono); font-size: 0.9em; }
code { background: var(--bg-input); padding: 0.12em 0.42em; border-radius: 6px; overflow-wrap: anywhere; }
pre {
  background: var(--bg-side); border: 1px solid var(--hair); border-radius: var(--radius);
  padding: 16px 18px; overflow-x: auto; line-height: 1.6; margin: 18px 0;
}
pre code { background: none; padding: 0; overflow-wrap: normal; }
pre .c { color: var(--ink-3); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 14px; font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
h1 { font-size: clamp(34px, 6vw, 64px); }
h2 { font-size: clamp(26px, 3.6vw, 40px); }
h3 { font-size: 19px; letter-spacing: -0.01em; }
p, ul, ol { margin: 0 0 16px; color: var(--ink-2); }
li { margin-bottom: 6px; }
strong { color: var(--ink); font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--hair); margin: 48px 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.prose { max-width: var(--measure); }
.skip {
  position: absolute; left: 12px; top: -48px; z-index: 50; background: var(--accent); color: var(--accent-ink);
  padding: 8px 14px; border-radius: 999px; font-weight: 600;
}
.skip:focus { top: 12px; text-decoration: none; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--link); margin-bottom: 14px;
}
.sub { font-size: clamp(17px, 1.9vw, 20px); color: var(--ink-2); max-width: 60ch; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.fine { font-size: 13.5px; color: var(--ink-3); }
.fine a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }

/* ---- header ------------------------------------------------------------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid var(--hair-soft);
}
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 17px; letter-spacing: 0.01em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand:hover { text-decoration: none; }
.nav { display: flex; align-items: center; gap: 22px; margin-left: auto; font-size: 14.5px; }
.nav a { color: var(--ink-2); }
.nav a:hover { color: var(--ink); text-decoration: none; }
.nav a[aria-current] { color: var(--ink); }
.nav a.cta {
  color: var(--accent-ink); background: var(--accent); padding: 8px 16px; border-radius: 999px; font-weight: 650;
  white-space: nowrap;
}
@media (max-width: 680px) { .nav { gap: 16px; } .nav a:not(.cta) { display: none; } .nav a.keep { display: inline; } .nav a.cta { padding: 7px 14px; } }
@media (max-width: 400px) { .nav a.keep { display: none; } }

/* ---- buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; border-radius: 999px;
  font-weight: 650; font-size: 16px; border: 1px solid var(--hair); color: var(--ink);
  background: color-mix(in srgb, var(--bg-elev) 80%, transparent); cursor: pointer; font-family: inherit;
  position: relative; isolation: isolate; text-align: center;
}
.btn:hover { text-decoration: none; border-color: color-mix(in srgb, var(--ink) 30%, transparent); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; box-shadow: 0 10px 30px var(--glow); }
.btn.primary:hover { filter: brightness(1.07); }
.btn.big { padding: 17px 30px; font-size: 17px; }
.btn.small { padding: 9px 16px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---- the first screen -------------------------------------------------------- */
.hero { position: relative; isolation: isolate; padding: 52px 0 0; overflow: clip; }
.hero .aura {
  position: absolute; inset: -20% -10% auto; height: 120%; z-index: -2; pointer-events: none;
  background:
    radial-gradient(40% 45% at 30% 30%, var(--glow), transparent 70%),
    radial-gradient(35% 40% at 75% 25%, var(--glow-2), transparent 70%),
    radial-gradient(50% 50% at 50% 80%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%);
  filter: blur(10px);
}
.hero .grain {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.5;
  background-image: radial-gradient(color-mix(in srgb, var(--ink) 16%, transparent) 1px, transparent 1.2px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(70% 55% at 50% 30%, #000, transparent 80%);
  mask-image: radial-gradient(70% 55% at 50% 30%, #000, transparent 80%);
}
.embers { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.embers i {
  position: absolute; bottom: -10px; width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 10px 2px var(--glow); opacity: 0;
}
.hero-copy { text-align: center; max-width: 900px; margin: 0 auto; }
.hero h1 { margin-bottom: 16px; font-size: clamp(34px, 5.2vw, 58px); }
.hero-copy { max-width: 980px; }
.hero h1 .line { display: block; }
.hero h1 .gild {
  background: linear-gradient(100deg, var(--accent) 10%, #f3dcae 45%, var(--accent) 80%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@media (prefers-color-scheme: light) {
  .hero h1 .gild { background-image: linear-gradient(100deg, #8a5716 10%, #b27a2a 45%, #8a5716 80%); }
}
.hero .sub { margin: 0 auto 26px; }
.hero .actions { justify-content: center; }
.hero .assure { margin: 16px auto 0; max-width: 64ch; }
@media (min-width: 700px) { .hero .assure span { white-space: nowrap; } }

/* The real window, framed. The frame is decoration around a real capture — the traffic
 * lights are drawn because a headless capture has no title bar, and without them the
 * picture reads as a web page rather than an app. */
.stage { perspective: 1800px; margin: 36px auto 0; max-width: 1120px; position: relative; padding: 0 0 40px; }
.window {
  --t: 0;
  position: relative; border-radius: 16px; overflow: hidden; background: #0d0a07;
  border: 1px solid rgba(242, 236, 227, 0.14); box-shadow: var(--shadow), 0 0 0 1px rgba(0,0,0,0.4);
  transform-origin: 50% 0%;
  transform: rotateX(calc((1 - var(--t)) * 16deg)) scale(calc(0.93 + var(--t) * 0.07));
}
.window .bar {
  height: 34px; display: flex; align-items: center; gap: 8px; padding: 0 14px;
  background: linear-gradient(#211c17, #1a1612); border-bottom: 1px solid rgba(242,236,227,0.08);
}
.window .bar i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.window .bar i:nth-child(2) { background: #febc2e; }
.window .bar i:nth-child(3) { background: #28c840; }
.window .bar b { flex: 1; text-align: center; font-size: 13px; font-weight: 600; color: #b9b2a7; margin-right: 52px; }
.window img { width: 100%; }
.stage .halo {
  position: absolute; inset: 8% 6% 0; z-index: -1; border-radius: 40px;
  background: radial-gradient(60% 60% at 50% 40%, var(--glow), transparent 70%); filter: blur(40px);
}
/* The members around the window: the faces of the two who are answering in the capture, so
 * the decoration says what the picture says. */
.float {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 8px; border-radius: 999px; font-size: 14px; font-weight: 600; color: #f2ece3;
  background: rgba(29, 25, 22, 0.82); border: 1px solid rgba(242, 236, 227, 0.16);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 14px 40px rgba(0,0,0,0.45);
}
.float img { width: 34px; height: 34px; border-radius: 50%; }
.float small { display: block; font-weight: 500; color: #b9b2a7; font-size: 12px; line-height: 1.2; }
.float.a { left: -28px; top: 26%; }
.float.b { right: -28px; top: 52%; }
@media (max-width: 1240px) { .float.a { left: 10px; } .float.b { right: 10px; } }
@media (max-width: 720px) { .float { display: none; } .stage { margin-top: 36px; } }

/* ---- sections ---------------------------------------------------------------- */
.section { padding: 110px 0 0; position: relative; }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head.center { text-align: center; }
.section-head .sub { margin-left: inherit; }
.section-head.center .sub { margin: 0 auto; }

/* The numbers that are true: counted from what ships, never from downloads. */
.facts {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0;
  border: 1px solid var(--hair-soft); border-radius: var(--radius); background: color-mix(in srgb, var(--bg-elev) 55%, transparent);
  margin-top: 30px;
}
.facts div { padding: 24px 16px; text-align: center; border-left: 1px solid var(--hair-soft); }
.facts div:first-child { border-left: 0; }
.facts b { display: block; font: 700 clamp(30px, 4vw, 44px)/1 var(--display); color: var(--ink); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.facts span { font-size: 14px; color: var(--ink-3); }
@media (max-width: 760px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts div { border-left: 0; border-top: 1px solid var(--hair-soft); }
  .facts div:nth-child(-n+2) { border-top: 0; }
  .facts div:nth-child(2n) { border-left: 1px solid var(--hair-soft); }
  .facts div:last-child { grid-column: 1 / -1; border-left: 0; }
}

/* ---- how a turn is assembled -------------------------------------------------- */
.flow {
  display: grid; grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1.3fr) 64px minmax(0, 1fr);
  align-items: center; gap: 0;
}
.flow .node {
  background: var(--bg-elev); border: 1px solid var(--hair); border-radius: var(--radius); padding: 18px 20px;
  position: relative;
}
.flow .node h3 { font-size: 16px; margin: 0 0 6px; }
.flow .node p { font-size: 14.5px; margin: 0; }
.flow .assembly { display: grid; gap: 10px; padding: 18px; }
.flow .assembly .row {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 10px;
  background: var(--bg-input); font-size: 14.5px; color: var(--ink);
}
.flow .assembly .row em { font-style: normal; color: var(--ink-3); font-size: 13px; margin-left: auto; text-align: right; }
.flow .assembly .row i { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--accent); }
.flow .assembly .row:nth-child(2) i { background: #9b8ce8; }
.flow .assembly .row:nth-child(3) i { background: #5fc9d8; }
.flow .assembly .row:nth-child(4) i { background: #e8789e; }
.flow .assembly .row:nth-child(5) i { background: #7fa6c4; }
.flow .wire { height: 2px; position: relative; background: linear-gradient(90deg, var(--hair), var(--hair)); overflow: visible; }
.flow .wire::after {
  content: ""; position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 12px 3px var(--glow); opacity: 0;
}
.engines { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.engines span {
  font-size: 13px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--hair); color: var(--ink-2); background: var(--bg-input);
}
@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr; }
  .flow .wire { width: 2px; height: 40px; margin: 0 auto; }
  .flow .wire::after { left: -3px; top: 0; }
}

/* ---- the tour: a sticky frame and the steps that drive it ---------------------- */
.tour { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr); gap: 56px; align-items: start; }
.tour .steps-col { padding: 10vh 0 30vh; }
.tour .step {
  min-height: 62vh; display: flex; flex-direction: column; justify-content: center;
  opacity: 0.35; transition: opacity 400ms var(--ease);
}
.tour .step.on { opacity: 1; }
.tour .step .num { font: 600 13px/1 var(--mono); color: var(--link); letter-spacing: 0.08em; margin-bottom: 12px; }
.tour .step h3 { font-size: clamp(22px, 2.4vw, 30px); margin-bottom: 12px; }
.tour .step p { font-size: 17px; }
.tour .step .shot-inline { display: none; }
.tour .frame-col { position: sticky; top: 15vh; height: 70vh; display: flex; align-items: center; }
.tour .frame { position: relative; width: 100%; aspect-ratio: 16 / 10; }
.tour .frame .window { position: absolute; inset: 0; transform: none; }
.tour .frame .window img {
  position: absolute; inset: 34px 0 0; width: 100%; height: calc(100% - 34px); object-fit: cover; object-position: top left;
  opacity: 0; transform: scale(1.04);
  transition: opacity 700ms var(--ease), transform 1100ms var(--ease);
}
.tour .frame .window img.on { opacity: 1; transform: none; }
.tour .frame .halo {
  position: absolute; inset: -6%; z-index: -1; border-radius: 50px; filter: blur(50px);
  background: radial-gradient(55% 55% at 50% 50%, var(--tour-glow, var(--glow)), transparent 70%);
  transition: background 700ms var(--ease);
}
.tour .dots { position: absolute; left: 50%; bottom: -34px; transform: translateX(-50%); display: flex; gap: 8px; }
.tour .dots i { width: 22px; height: 4px; border-radius: 4px; background: var(--hair); transition: background 300ms, width 300ms var(--ease); }
.tour .dots i.on { background: var(--accent); width: 40px; }
/* Narrow screens: no sticky frame — each step carries its own picture, in flow. */
@media (max-width: 920px) {
  .tour { grid-template-columns: 1fr; gap: 0; }
  .tour .frame-col { display: none; }
  .tour .steps-col { padding: 0; }
  .tour .step { min-height: 0; opacity: 1; margin-bottom: 64px; }
  .tour .step .shot-inline { display: block; margin-top: 18px; border-radius: 12px; overflow: hidden; border: 1px solid var(--hair); box-shadow: var(--shadow); }
}

/* ---- the members ------------------------------------------------------------- */
.members { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 1000px) { .members { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .members { grid-template-columns: 1fr; } }
.member {
  --m: var(--accent);
  position: relative; border-radius: 18px; overflow: hidden; background: var(--bg-elev);
  border: 1px solid var(--hair-soft); display: flex; flex-direction: column;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: border-color 300ms, box-shadow 300ms;
}
.member:hover { border-color: color-mix(in srgb, var(--m) 55%, transparent); box-shadow: 0 24px 60px color-mix(in srgb, var(--m) 18%, transparent); }
.member .scene { position: relative; aspect-ratio: 720 / 392; overflow: hidden; background: #0d0a07; }
.member .scene img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease); }
.member:hover .scene img { transform: scale(1.06); }
.member .scene::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, var(--bg-elev)); }
.member .who { display: flex; align-items: center; gap: 14px; padding: 0 22px; margin-top: -34px; position: relative; z-index: 1; }
.member .who img { width: 68px; height: 68px; border-radius: 50%; border: 2px solid var(--m); box-shadow: 0 6px 20px rgba(0,0,0,0.45); background: #0d0a07; }
.member .who h3 { margin: 22px 0 0; font-size: 22px; color: var(--m); }
.member .who .craft { font-size: 13px; color: var(--ink-3); font-weight: 500; }
.member .body { padding: 14px 22px 22px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.member .motto { font-size: 16.5px; color: var(--ink); font-style: italic; margin: 0; }
.member .motto::before { content: "“"; } .member .motto::after { content: "”"; }
.member .ex { margin-top: auto; border-top: 1px solid var(--hair-soft); padding-top: 14px; font-size: 14.5px; display: grid; gap: 8px; }
.member .ex p { margin: 0; }
.member .ex .q { color: var(--ink-3); }
.member .ex .q b { color: var(--ink-2); font-weight: 600; }
.member .ex .a b { color: var(--ink); font-weight: 650; }
/* The members' accents are cut for the dark ground; on parchment they are mixed toward the ink
 * so a name still clears 4.5:1 while keeping its hue. */
@media (prefers-color-scheme: light) { .member .who h3 { color: color-mix(in srgb, var(--m) 45%, #1d1914); } }

/* ---- trust ---------------------------------------------------------------------- */
.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 860px) { .trust { grid-template-columns: 1fr; } }
.card {
  background: var(--bg-elev); border: 1px solid var(--hair-soft); border-radius: var(--radius); padding: 22px 24px;
}
.card h3 { margin: 0 0 8px; font-size: 17px; }
.card p:last-child { margin-bottom: 0; }
.card .ico {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px;
  background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--link);
}
.card .ico svg { width: 22px; height: 22px; }

/* ---- the closing call, over the hall ------------------------------------------- */
.finale {
  position: relative; isolation: isolate; overflow: hidden; border-radius: 26px; margin-top: 110px;
  padding: 110px 28px; text-align: center; border: 1px solid var(--hair);
}
.finale .bg { position: absolute; inset: 0; z-index: -2; }
.finale .bg img { width: 100%; height: 100%; object-fit: cover; }
.finale::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(70% 90% at 50% 50%, rgba(13,10,7,0.55), rgba(13,10,7,0.92));
}
.finale h2 { color: #f2ece3; font-size: clamp(30px, 5vw, 56px); }
.finale p { color: #d6cfc4; }
.finale .actions { justify-content: center; margin-top: 26px; }
.finale .btn:not(.primary) { color: #f2ece3; background: rgba(29,25,22,0.7); border-color: rgba(242,236,227,0.25); }
.finale .notice { max-width: 62ch; margin: 22px auto 0; font-size: 14px; color: #c9c1b5; }
.finale .notice a { color: #f0d39e; text-decoration: underline; text-underline-offset: 3px; }

/* ---- the download page ---------------------------------------------------------- */
.page-head { padding: 64px 0 8px; }
.dl-main { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); margin: 26px 0; }
.dl h3 { margin: 0 0 6px; }
.dl .meta { font-size: 13px; color: var(--ink-3); margin: 10px 0 0; font-family: var(--mono); overflow-wrap: anywhere; }
.dl .btn { margin-top: 14px; }
.dl.mine { border-color: color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: 0 18px 50px var(--glow); }
.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--hair); color: var(--ink-2); margin-left: 8px; vertical-align: middle; white-space: nowrap; }
.pill.gold { color: var(--accent-ink); background: var(--accent); border-color: transparent; }
.steps { counter-reset: step; padding-left: 0; list-style: none; }
.steps li { counter-increment: step; position: relative; padding-left: 44px; margin-bottom: 16px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 1px; width: 28px; height: 28px;
  border-radius: 50%; background: var(--bg-input); color: var(--ink); font-size: 13px; font-weight: 650;
  display: grid; place-items: center; border: 1px solid var(--hair);
}
.callout {
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); background: color-mix(in srgb, var(--accent) 8%, transparent);
  padding: 16px 20px; border-radius: var(--radius); margin: 18px 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout h3 { font-size: 16px; margin: 0 0 6px; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

/* ---- tables ------------------------------------------------------------------------ */
table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 18px 0; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--hair-soft); vertical-align: top; }
th { color: var(--ink); font-weight: 650; }
td { color: var(--ink-2); }
@media (max-width: 640px) {
  table.stack, table.stack tbody, table.stack tr, table.stack td, table.stack th { display: block; }
  table.stack thead { display: none; }
  table.stack tr { padding: 10px 0; border-bottom: 1px solid var(--hair-soft); }
  table.stack td, table.stack th { border: 0; padding: 4px 0; }
}
kbd { background: var(--bg-input); border: 1px solid var(--hair); border-radius: 6px; padding: 0 6px; font-size: 0.85em; }

/* The two editions, side by side. */
.compare th:not(:first-child), .compare td:not(:first-child) { text-align: center; width: 22%; }
.compare td.yes, .compare td.no { font-weight: 600; }
.compare td.yes { color: var(--ink); }
.compare td.no { color: var(--ink-3); }
.compare thead th { font-size: 16px; padding-bottom: 14px; }
.compare tbody th { font-weight: 500; color: var(--ink-2); }
.compare-wrap { border: 1px solid var(--hair-soft); border-radius: var(--radius); padding: 6px 18px; background: var(--bg-elev); overflow-x: auto; }
@media (max-width: 520px) {
  .compare-wrap { padding: 4px 8px; }
  .compare { font-size: 14px; }
  .compare th, .compare td { padding: 9px 6px; }
  .compare th:not(:first-child), .compare td:not(:first-child) { width: 74px; }
  .compare thead th { font-size: 14px; }
}

/* ---- docs ---------------------------------------------------------------------------- */
.docs { display: grid; gap: 48px; grid-template-columns: 210px minmax(0, 1fr) 190px; padding: 48px 0 0; }
.docs main { min-width: 0; }
.docs main h1 { font-size: clamp(32px, 4.6vw, 46px); }
.docs main h2 { font-size: clamp(22px, 2.6vw, 27px); margin-top: 52px; }
.docs main h3 { margin-top: 30px; }
.docnav, .toc { position: sticky; top: 92px; align-self: start; font-size: 14.5px; max-height: calc(100vh - 110px); overflow: auto; }
.docnav a, .toc a { display: block; color: var(--ink-2); padding: 6px 12px; border-radius: 8px; }
.docnav a:hover, .toc a:hover { color: var(--ink); background: var(--bg-input); text-decoration: none; }
.docnav a[aria-current="page"] { color: var(--ink); background: var(--bg-input); font-weight: 600; box-shadow: inset 2px 0 0 var(--accent); }
.docnav .group, .toc .group { color: var(--ink-3); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 8px 12px; }
.toc a { font-size: 13.5px; padding: 4px 12px; border-left: 1px solid var(--hair-soft); border-radius: 0; }
.toc a.on { color: var(--ink); border-left-color: var(--accent); }
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--hair-soft); }
.pager a { display: block; padding: 14px 18px; border: 1px solid var(--hair-soft); border-radius: 12px; min-width: 0; }
.pager a small { display: block; color: var(--ink-3); font-size: 12px; }
.pager a:hover { border-color: var(--hair); text-decoration: none; }
.pager .next { margin-left: auto; text-align: right; }
@media (max-width: 1180px) { .docs { grid-template-columns: 200px minmax(0, 1fr); } .toc { display: none; } }
@media (max-width: 820px) {
  .docs { grid-template-columns: 1fr; gap: 20px; padding-top: 24px; }
  .docnav { position: static; max-height: none; display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; border-bottom: 1px solid var(--hair-soft); }
  .docnav .group { display: none; }
  .docnav a { white-space: nowrap; flex: none; }
}

/* ---- footer ---------------------------------------------------------------------------- */
.foot { border-top: 1px solid var(--hair-soft); margin-top: 110px; padding: 44px 0 52px; font-size: 14px; color: var(--ink-3); }
.foot .cols { display: grid; grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr)); gap: 28px; }
.foot .cols div { display: flex; flex-direction: column; gap: 8px; }
.foot h4 { margin: 0 0 4px; font-size: 12.5px; font-weight: 650; color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.08em; }
.foot a { color: var(--ink-2); }
.foot .brand { margin-bottom: 6px; }
.foot .credit { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--hair-soft); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.foot .credit b { color: var(--ink-2); font-weight: 600; }
@media (max-width: 760px) { .foot .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot .cols div:first-child { grid-column: 1 / -1; } }

/* ==== motion ========================================================================== *
 * Everything below moves, and everything below is skipped under reduced motion. The reveal
 * hides content only when the script is running and motion is allowed — both conditions,
 * so neither a blocked script nor a vestibular setting can leave a page blank. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 900ms var(--ease), transform 900ms var(--ease); transition-delay: var(--d, 0ms); }
  .js .reveal.in { opacity: 1; transform: none; }

  .hero h1 .line { animation: rise 1100ms var(--ease) both; }
  .hero h1 .line:nth-child(2) { animation-delay: 140ms; }
  .hero h1 .gild { animation: rise 1100ms var(--ease) 140ms both, shimmer 7s ease-in-out 1.4s infinite; }
  .hero .sub { animation: rise 1100ms var(--ease) 300ms both; }
  .hero .actions { animation: rise 1100ms var(--ease) 420ms both; }
  .hero .assure { animation: rise 1100ms var(--ease) 520ms both; }
  .stage { animation: lift 1500ms var(--ease) 380ms both; }
  .hero .aura { animation: drift 22s ease-in-out infinite alternate; }
  .float.a { animation: pop 900ms var(--ease) 1300ms both, bob 6s ease-in-out 2.2s infinite; }
  .float.b { animation: pop 900ms var(--ease) 1600ms both, bob 7s ease-in-out 2.5s infinite reverse; }
  .embers i { animation: ember var(--dur, 12s) linear var(--del, 0s) infinite; }
  .flow.in .wire::after { animation: travel 2.4s var(--ease) infinite; }
  .flow.in .wire.late::after { animation-delay: 1.2s; }
  .finale .bg img { animation: kenburns 30s ease-in-out infinite alternate; }
  .btn, .nav a, .member, .docnav a { transition: filter 180ms, border-color 180ms, background 180ms, color 180ms, box-shadow 300ms, transform 200ms; }
  .btn.primary:hover { transform: translateY(-1px); }
  .btn.primary::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
    background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.45) 50%, transparent 70%);
    background-size: 250% 100%; background-position: 130% 0; opacity: 0.0;
  }
  .btn.primary:hover::after { opacity: 1; animation: sweep 900ms var(--ease); }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 920px) {
  .flow.in .wire::after { animation-name: travel-down; }
}

@keyframes rise { from { opacity: 0; transform: translateY(26px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes lift { from { opacity: 0; transform: translateY(70px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(0.92); } to { opacity: 1; transform: none; } }
@keyframes bob { 50% { transform: translateY(-10px); } }
@keyframes shimmer { 0%, 100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }
@keyframes drift { from { transform: translate3d(-3%, -2%, 0) scale(1); } to { transform: translate3d(3%, 3%, 0) scale(1.08); } }
@keyframes ember {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  10% { opacity: 0.9; }
  100% { transform: translate3d(var(--x, 30px), -105vh, 0); opacity: 0; }
}
@keyframes travel { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 8px); opacity: 0; } }
@keyframes travel-down { 0% { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: calc(100% - 8px); opacity: 0; } }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.14) translate3d(-2%, -1%, 0); } }
@keyframes sweep { from { background-position: 130% 0; } to { background-position: -30% 0; } }

/* A belt for the braces: anything a browser still wants to animate, it may not. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .window { transform: none !important; }
  .member { transform: none !important; }
  .embers { display: none; }
}

/* ==== accessibility ==================================================================== *
 * Links inside running text are underlined, so a link is never told apart by colour alone. */
main p a, main li a, main td a, .callout a { text-decoration: underline; text-underline-offset: 3px; }
main .btn, main .pager a, main .docnav a, main .toc a { text-decoration: none; }

/* The accessibility toolbar (IS 5568 / WCAG 2.1 AA aid), adopted from the BuyAway site so the
 * company's sites offer the same eight adjustments in the same place. Self-hosted, no third
 * party: the adjustments are classes on <html>, remembered in localStorage by `site.js`, which
 * applies them before the first paint. Its blue is the one people recognise as "accessibility",
 * not the site's bronze, on purpose. */
html.a11y-text-1 body > :not(.a11y-fab):not(.a11y-panel) { zoom: 1.125; }
html.a11y-text-2 body > :not(.a11y-fab):not(.a11y-panel) { zoom: 1.25; }
html.a11y-text-3 body > :not(.a11y-fab):not(.a11y-panel) { zoom: 1.5; }
html.a11y-contrast, html.a11y-contrast body { background: #000 !important; color: #fff !important; }
html.a11y-contrast *:not(.a11y-panel):not(.a11y-panel *):not(.a11y-fab):not(.a11y-fab *) { background-color: #000 !important; color: #fff !important; border-color: #fff !important; box-shadow: none !important; text-shadow: none !important; background-image: none !important; -webkit-text-fill-color: #fff !important; }
html.a11y-contrast a:not(.a11y-panel a) { color: #ffff00 !important; -webkit-text-fill-color: #ffff00 !important; text-decoration: underline !important; }
html.a11y-contrast img, html.a11y-contrast svg { filter: grayscale(1) contrast(1.2); }
html.a11y-contrast .hero .aura, html.a11y-contrast .hero .grain, html.a11y-contrast .embers, html.a11y-contrast .halo, html.a11y-contrast .finale::after { display: none !important; }
html.a11y-links a { text-decoration: underline !important; text-underline-offset: 3px; }
html.a11y-font, html.a11y-font * { font-family: Arial, Helvetica, sans-serif !important; letter-spacing: 0.02em; word-spacing: 0.08em; }
html.a11y-font code, html.a11y-font pre, html.a11y-font kbd { font-family: var(--mono) !important; }
html.a11y-spacing body { line-height: 1.9 !important; }
html.a11y-spacing p, html.a11y-spacing li { margin-bottom: 1em; }
html.a11y-still *, html.a11y-still *::before, html.a11y-still *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-still .window, html.a11y-still .member { transform: none !important; }
html.a11y-still .embers { display: none !important; }
html.a11y-cursor, html.a11y-cursor * { cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'><path d='M4 2l14 12h-8l-2 7z' fill='%23000' stroke='%23fff' stroke-width='1.5'/></svg>") 4 2, auto !important; }
html.a11y-focus *:focus { outline: 4px solid #ffbf00 !important; outline-offset: 3px !important; }

.a11y-fab { position: fixed; inset-inline-start: 16px; bottom: 16px; z-index: 2147483000; width: 52px; height: 52px; border-radius: 50%; border: 2px solid #fff; background: #1D4ED8; color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,.35); font: inherit; padding: 0; }
.a11y-fab:hover { background: #1e40af; }
.a11y-fab:focus-visible { outline: 4px solid #ffbf00; outline-offset: 3px; }
.a11y-fab svg { width: 30px; height: 30px; fill: currentColor; }
.a11y-panel { position: fixed; inset-inline-start: 16px; bottom: 80px; z-index: 2147483001; width: min(320px, calc(100vw - 32px)); max-height: calc(100vh - 100px); overflow: auto; background: #fff; color: #0F1B2D; border: 1px solid #ccd; border-radius: 16px; box-shadow: 0 18px 48px rgba(0,0,0,.35); padding: 14px; font: 15px/1.4 Arial, Helvetica, sans-serif; }
.a11y-panel[hidden] { display: none; }
.a11y-panel h2 { margin: 0 0 10px; font: 700 17px/1.3 Arial, Helvetica, sans-serif; color: #0F1B2D; letter-spacing: 0; }
.a11y-panel .a11y-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.a11y-panel button { font: inherit; font-size: 14px; padding: 10px 8px; border-radius: 10px; border: 1px solid #99a; background: #f3f5f9; color: #0F1B2D; cursor: pointer; text-align: start; min-height: 44px; }
.a11y-panel button[aria-pressed="true"] { background: #1D4ED8; color: #fff; border-color: #1D4ED8; }
.a11y-panel button:focus-visible { outline: 3px solid #ffbf00; outline-offset: 2px; }
.a11y-panel .a11y-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 12px; align-items: center; }
.a11y-panel .a11y-foot a { color: #1D4ED8; font-size: 14px; text-decoration: underline; }
.a11y-panel .a11y-reset { background: #fff; }
@media (prefers-reduced-motion: no-preference) { .a11y-panel { transition: opacity .15s; } }
@media print { .a11y-fab, .a11y-panel { display: none !important; } }
/* Enlarged text needs room the header does not have on a phone: it wraps rather than pushing
 * the download button off the screen. */
html[class*="a11y-text-"] .top .wrap { flex-wrap: wrap; height: auto; min-height: 64px; padding-top: 10px; padding-bottom: 10px; row-gap: 8px; }
