/* fortefile — Liquid Glass, sibling of the LiteShot site. Glass is for controls and cards; files stay crisp. */

:root {
  --font: "Segoe UI Variable Display", "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: "Cascadia Mono", "SF Mono", ui-monospace, Consolas, monospace;

  --bg: #f3f7fd;
  --bg-2: #e9eefb;
  --text: #1d1d1f;
  --text-2: #50545e;
  --text-3: #80848d;
  --accent: #0a84ff;
  --accent-2: #4aa8ff;
  --accent-text: #0866d6;
  --accent-ink: #ffffff;
  --btn-top: #1f86f5;
  --btn-bottom: #0062d1;
  --blob-1: #6cc2ff;
  --blob-2: #8f86ff;
  --blob-3: #3fe0c8;
  --danger: #d93a3a;
  --ok: #18a957;

  --glass: rgba(255, 255, 255, 0.55);
  --glass-strong: rgba(255, 255, 255, 0.72);
  --glass-solid: rgba(248, 250, 255, 0.96);
  --glass-border: rgba(255, 255, 255, 0.65);
  --rim-top: rgba(255, 255, 255, 0.95);
  --rim-bottom: rgba(255, 255, 255, 0.15);
  --hairline: rgba(0, 0, 0, 0.07);
  --shadow: rgba(20, 50, 110, 0.18);
  --key: rgba(255, 255, 255, 0.8);
  --key-side: rgba(0, 0, 0, 0.12);

  --radius: 28px;
  --radius-sm: 18px;
  --max: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #070b14;
    --bg-2: #0c1428;
    --text: #f5f5f7;
    --text-2: #bfc5d2;
    --text-3: #8a91a1;
    --accent: #0a84ff;
    --accent-2: #5eb0ff;
    --accent-text: #6cb6ff;
    --accent-ink: #ffffff;
    --blob-1: #0a5fd6;
    --blob-2: #4b3bd6;
    --blob-3: #0b8f8a;
    --danger: #ff6b6b;
    --ok: #3ad07a;

    --glass: rgba(28, 36, 56, 0.45);
    --glass-strong: rgba(34, 44, 68, 0.66);
    --glass-solid: rgba(18, 24, 38, 0.97);
    --glass-border: rgba(255, 255, 255, 0.12);
    --rim-top: rgba(255, 255, 255, 0.38);
    --rim-bottom: rgba(255, 255, 255, 0.04);
    --hairline: rgba(255, 255, 255, 0.08);
    --shadow: rgba(0, 0, 0, 0.5);
    --key: rgba(255, 255, 255, 0.12);
    --key-side: rgba(0, 0, 0, 0.5);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: linear-gradient(180deg, var(--bg), var(--bg-2) 60%, var(--bg));
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
[hidden] { display: none !important; }
.wrap { width: min(var(--max), 100% - var(--gutter) * 2); margin-inline: auto; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.sprite { position: absolute; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ───────── backdrop: slow, soft light ───────── */

.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; filter: blur(90px); opacity: 0.55; }
.blob:nth-child(1) { background: var(--blob-1); top: -18vmax; left: -12vmax; animation: drift 26s ease-in-out infinite; }
.blob:nth-child(2) { background: var(--blob-2); top: 18vh; right: -16vmax; animation: drift 32s ease-in-out -8s infinite reverse; }
.blob:nth-child(3) { background: var(--blob-3); bottom: -22vmax; left: 20vw; animation: drift 38s ease-in-out -14s infinite; opacity: 0.4; }
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(6vw, 4vh) scale(1.08); }
  66% { transform: translate(-4vw, 6vh) scale(0.94); }
}

/* ───────── glass ───────── */

.glass {
  position: relative;
  background: var(--glass);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04), 0 18px 50px -18px var(--shadow);
}
.glass::before {
  /* specular rim: bright along the top edge, fading down */
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, var(--rim-top), var(--rim-bottom) 45%, var(--rim-bottom) 80%, var(--rim-top));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.8;
}

/* ───────── buttons: metal edges that catch the light ─────────
   After React Bits' Specular Button (reactbits.dev): a thin edge line with a light on it that glides to the part of
   the edge facing the pointer and brightens as the pointer comes close. assets/fx.js sets --a (where, in degrees
   clockwise from the top) and --i (how bright); without it the light rests on the top left at idle strength.
   Primary buttons are graphite, secondary ones clear glass. */

@property --a { syntax: "<angle>"; inherits: true; initial-value: -50deg; }
@property --i { syntax: "<number>"; inherits: true; initial-value: 0.35; }

.btn {
  --edge: rgba(255, 255, 255, 0.16);  /* the line that stays visible under the light */
  --light: 255 255 255;               /* the light's colour, as r g b */
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 48px; padding: 0 1.4em;
  border-radius: 999px; border: 0;
  font: 600 1rem/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease,
    --a 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), --i 0.35s ease;
}
.btn::before {
  /* the edge: a faint line all the way round, and the light where it catches */
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1.2px; pointer-events: none; opacity: 1;
  background:
    conic-gradient(from calc(var(--a) - 39deg),
      rgb(var(--light) / 0) 0deg, rgb(var(--light) / var(--i)) 34deg, rgb(var(--light) / var(--i)) 44deg,
      rgb(var(--light) / 0) 78deg, rgb(var(--light) / 0) 360deg),
    linear-gradient(var(--edge), var(--edge));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.btn::after {
  /* soft light around the lit part of the edge, inside the button and just outside it */
  content: ""; position: absolute; inset: -10px; z-index: -2; border-radius: inherit; pointer-events: none;
  background: radial-gradient(30% 75% at calc(50% + sin(var(--a)) * 46%) calc(50% - cos(var(--a)) * 42%),
    rgb(var(--light) / calc(var(--i) * 0.3)), rgb(var(--light) / 0) 70%);
}
.btn:active { transform: scale(0.97); }
.btn:focus-visible, a:focus-visible, summary:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }

.btn-primary {
  --edge: rgba(255, 255, 255, 0.14);
  color: #f6f7f9;
  background: linear-gradient(180deg, #31353d, #16181d);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 2px rgba(10, 14, 22, 0.25), 0 10px 26px -12px rgba(10, 14, 22, 0.6);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 1px 2px rgba(10, 14, 22, 0.25), 0 16px 32px -12px rgba(10, 14, 22, 0.65);
}
.btn-primary:active { transform: scale(0.97); }

.btn-glass {
  --edge: rgba(24, 32, 46, 0.16);
  --light: 10 112 240;  /* on the light theme the light is fortefile blue: white wouldn't show */
  color: var(--text);
  background: rgba(255, 255, 255, 0.4);
}
.btn-glass.glass {
  background: rgba(255, 255, 255, 0.45);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  backdrop-filter: blur(16px) saturate(120%);
  box-shadow: 0 8px 22px -14px var(--shadow);
}
.btn-glass:hover, .btn-glass.glass:hover { background: rgba(255, 255, 255, 0.66); }

@media (prefers-color-scheme: dark) {
  .btn-primary {
    --edge: rgba(255, 255, 255, 0.2);
    background: linear-gradient(180deg, #2f343d, #191c22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 26px -12px rgba(0, 0, 0, 0.8);
  }
  .btn-glass { --edge: rgba(255, 255, 255, 0.14); --light: 255 255 255; background: rgba(255, 255, 255, 0.04); }
  .btn-glass.glass { background: rgba(255, 255, 255, 0.05); }
  .btn-glass:hover, .btn-glass.glass:hover { background: rgba(255, 255, 255, 0.1); }
}

/* sparks where a button is clicked (fx.js), after React Bits' Click Spark */
.spark { position: fixed; left: 0; top: 0; width: 0; height: 0; z-index: 50; pointer-events: none; }
.spark i {
  position: absolute; left: -1px; bottom: 0; width: 2px; height: 9px; border-radius: 1px;
  background: var(--accent); transform-origin: 50% 100%;
  animation: spark 0.42s cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}
@keyframes spark {
  from { transform: rotate(var(--r)) translateY(-5px) scaleY(1); opacity: 1; }
  to { transform: rotate(var(--r)) translateY(-20px) scaleY(0.15); opacity: 0; }
}

/* ───────── brand ───────── */

.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 1.05rem; text-decoration: none; letter-spacing: -0.01em; }
.brand .logo { width: 30px; height: 30px; flex: none; }

/* ───────── nav ───────── */

.nav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 10;
  width: min(var(--max), 100% - 24px);
  display: flex; align-items: center; gap: 8px;
  padding: 7px 7px 7px 14px; border-radius: 999px;
}
.nav .brand { margin-right: auto; }
.nav-links { display: flex; gap: 2px; }
.nav-links a { padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--text-2); font-size: 0.95rem; transition: background 0.2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--hairline); color: var(--text); }
.nav .btn { min-height: 40px; padding: 0 1.1em; font-size: 0.95rem; }
@media (max-width: 820px) { .nav-links { display: none; } }

/* ───────── hero ───────── */

.hero { padding: clamp(120px, 18vh, 170px) 0 40px; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 8px; border-radius: 999px;
  font-size: 0.9rem; color: var(--text-2);
}
.eyebrow b { color: var(--accent-ink); background: var(--btn-bottom); padding: 2px 9px; border-radius: 999px; font-size: 0.78rem; letter-spacing: 0.02em; }
h1 {
  font-size: clamp(2.6rem, 8.2vw, 6rem); line-height: 0.98; letter-spacing: -0.045em; font-weight: 750;
  margin: 22px 0 18px;
}
h1 .shine {
  background: linear-gradient(100deg, var(--accent) 10%, #6a5cff 55%, #19c3b0 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { font-size: clamp(1.1rem, 2.2vw, 1.35rem); color: var(--text-2); max-width: 44ch; margin: 0 auto 30px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.meta { margin-top: 16px; color: var(--text-3); font-size: 0.9rem; }

/* link anatomy: what the server sees vs. what stays in the link */
.anatomy { margin: 60px auto 0; max-width: 900px; padding: clamp(18px, 3vw, 28px); text-align: left; }
.anatomy-link {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 999px;
  font: 500 clamp(0.78rem, 1.9vw, 1.02rem)/1.3 var(--mono); background: var(--glass-strong); overflow: hidden;
}
.anatomy-link .icon { color: var(--ok); }
.anatomy-link code { font: inherit; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.anatomy-link .host { color: var(--text-3); }
.anatomy-link .id { color: var(--text); }
.anatomy-link .key { color: var(--accent-text); font-weight: 650; }
.anatomy-parts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.part { display: flex; gap: 12px; align-items: flex-start; padding: 4px 6px; }
.part p { margin: 0; }
.part b { display: block; }
.part span { color: var(--text-2); font-size: 0.95rem; }
.part .tag { flex: none; width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(180deg, var(--c1), var(--c2)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45); }
.part .tag .icon { width: 19px; height: 19px; }
.anatomy-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; margin-top: 14px; padding: 14px 6px 0; border-top: 1px solid var(--hairline); color: var(--text-2); }
.countdown strong { font: 650 1.5rem/1 var(--font); letter-spacing: -0.02em; color: var(--text); font-variant-numeric: tabular-nums; margin-left: 6px; }
@media (max-width: 640px) { .anatomy-parts { grid-template-columns: 1fr; } }

/* ───────── sections ───────── */

section { padding: clamp(70px, 11vw, 130px) 0 0; }
.kicker { color: var(--accent-text); font-weight: 650; font-size: 0.95rem; letter-spacing: 0.02em; margin: 0 0 10px; }
h2 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.04; letter-spacing: -0.035em; font-weight: 720; margin: 0 0 16px; }
.section-lede { color: var(--text-2); font-size: clamp(1.05rem, 1.8vw, 1.2rem); max-width: 52ch; margin: 0 0 40px; }
.section-lede.tight { margin: 0; }
.center { text-align: center; }
.center .section-lede { margin-inline: auto; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 40px; }
.stat { padding: 22px; text-align: center; }
.stat strong { display: block; font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -0.03em; line-height: 1.1; }
.stat span { color: var(--text-2); font-size: 0.95rem; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.card { padding: clamp(22px, 3vw, 32px); overflow: hidden; display: flex; flex-direction: column; }
.card h3 { font-size: 1.4rem; letter-spacing: -0.02em; margin: 14px 0 8px; line-height: 1.2; }
.card p { color: var(--text-2); margin: 0; }
.card p + p { margin-top: 10px; }
.step-num { color: var(--text-3); font: 650 0.85rem/1 var(--font); letter-spacing: 0.06em; text-transform: uppercase; margin-left: auto; }
.card-head { display: flex; align-items: center; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

.badge {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  color: #fff; background: linear-gradient(180deg, var(--c1), var(--c2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 8px 18px -8px var(--c2);
}
.badge .icon { width: 24px; height: 24px; }
.blue { --c1: #5cb6ff; --c2: #0a72e8; }
.violet { --c1: #a594ff; --c2: #6a4cf0; }
.teal { --c1: #4fe0cf; --c2: #0e9f95; }
.green { --c1: #5be08a; --c2: #18a957; }
.slate { --c1: #9aa3b5; --c2: #5d6577; }
.orange { --c1: #ffad5c; --c2: #f26b1d; }

/* can / can't see */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.split ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 14px; }
.split li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); }
.split li b { color: var(--text); display: block; }
.split li .icon { margin-top: 3px; }
.split .no li .icon { color: var(--ok); }
.split .yes li .icon { color: var(--text-3); }
.note { margin-top: 16px; padding: 18px 22px; border-radius: var(--radius-sm); color: var(--text-2); }
.note b { color: var(--text); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* made for LiteShot */
.keycap {
  display: inline-grid; place-items: center; min-width: 52px; height: 40px; padding: 0 12px;
  border-radius: 12px; font: 600 0.88rem/1 var(--font); color: var(--text);
  background: var(--key); border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 var(--rim-top), 0 4px 0 var(--key-side), 0 10px 20px -8px var(--shadow);
}
.liteshot { display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 44px); align-items: center; padding: clamp(26px, 5vw, 56px); }
.liteshot > img { width: clamp(88px, 12vw, 132px); filter: drop-shadow(0 18px 30px var(--shadow)); }
.liteshot h2 { margin-bottom: 8px; }
.liteshot .cta { justify-content: flex-start; margin-top: 22px; }
.combo { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--text-2); flex-wrap: wrap; }
@media (max-width: 640px) { .liteshot { grid-template-columns: 1fr; text-align: center; } .liteshot > img { margin: 0 auto; } .liteshot .cta, .combo { justify-content: center; } }

/* faq */
.faq { display: grid; gap: 10px; max-width: 820px; margin-inline: auto; }
.faq details { border-radius: var(--radius-sm); padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; font-size: 1.05rem; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--text-3); font-size: 1.4rem; line-height: 1; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--text-2); }

.mail { font-family: var(--mono); font-size: 0.95em; color: var(--accent-text); overflow-wrap: anywhere; }

/* ───────── silver badges: brushed metal, specular rim, engraved graphite icons ─────────
   The icon is a static SVG (assets/badges.svg) that a Lottie animation replaces while it plays; both are
   drawn on the same 96-unit canvas and sit in the same box, so the swap doesn't move a pixel. */

.metal {
  --size: 56px;
  --m-hi: #ffffff; --m-1: #e4e7ec; --m-2: #c5cad3; --m-3: #a3abb7;
  --m-plate-1: #f4f6f8; --m-plate-2: #cfd4dc; --m-plate-3: #e6e9ee; --m-plate-4: #c2c8d1;
  --m-edge: rgba(96, 104, 118, 0.6);
  --m-drop: rgba(16, 22, 34, 0.5);
  --engrave: #313743;
  position: relative; isolation: isolate; flex: none; display: block;
  width: var(--size); height: var(--size); border-radius: calc(var(--size) * 0.3);
  color: var(--engrave);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0) 36%, rgba(255, 255, 255, 0) 60%, rgba(22, 28, 40, 0.3)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.2) 0 1px, rgba(255, 255, 255, 0) 1px 3px, rgba(22, 28, 40, 0.05) 3px 4px),
    conic-gradient(from 215deg, var(--m-1), var(--m-hi) 11%, var(--m-2) 24%, var(--m-hi) 37%, var(--m-3) 51%, var(--m-1) 64%, var(--m-hi) 76%, var(--m-2) 88%, var(--m-1));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(22, 28, 40, 0.38),
    inset 0 0 0 1px var(--m-edge),
    0 1px 1px rgba(16, 22, 34, 0.16),
    0 12px 24px -12px var(--m-drop);
}
.metal::before {
  /* the recessed plate the icon is engraved into: fine horizontal grain, shaded from above */
  content: ""; position: absolute; z-index: -1;
  inset: calc(var(--size) * 0.085); border-radius: calc(var(--size) * 0.22);
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0 1px, rgba(255, 255, 255, 0) 1px 2px, rgba(22, 28, 40, 0.03) 2px 3px),
    linear-gradient(115deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.55) 44%, rgba(255, 255, 255, 0) 58%),
    linear-gradient(170deg, var(--m-plate-1), var(--m-plate-2) 46%, var(--m-plate-3) 70%, var(--m-plate-4));
  box-shadow: inset 0 1px 2px rgba(22, 28, 40, 0.38), inset 0 -1px 0 rgba(255, 255, 255, 0.85), 0 1px 0 rgba(255, 255, 255, 0.55);
}
.metal::after {
  /* specular glint across the top */
  content: ""; position: absolute; inset: 1px; z-index: 1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(70% 42% at 32% 6%, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0) 70%);
}
.metal > .icon, .metal > .badge-anim {
  position: absolute; left: 15%; top: 15%; width: 70%; height: 70%;
  /* engraved: a thin light edge under each graphite line */
  filter: drop-shadow(0 0.75px 0 rgba(255, 255, 255, 0.9));
}
.metal > .badge-anim svg { display: block; }
.metal.is-live > .icon { visibility: hidden; }
.metal.lg { --size: 64px; }
.metal.xl { --size: 96px; }

@media (prefers-color-scheme: dark) {
  .metal {
    /* a shade darker so it doesn't glare on the night background, still clearly silver */
    --m-hi: #f1f3f6; --m-1: #cfd4db; --m-2: #aab1bc; --m-3: #858e9b;
    --m-plate-1: #e2e6eb; --m-plate-2: #bac1ca; --m-plate-3: #d3d8de; --m-plate-4: #aab2bd;
    --m-edge: rgba(20, 24, 32, 0.75);
    --m-drop: rgba(0, 0, 0, 0.7);
    --engrave: #2a2f39;
  }
}

/* ───────── security pledge ───────── */

.pledge-panel { padding: clamp(22px, 4vw, 40px); }
.pledge-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 28px; }
.pledge-list li { display: flex; gap: 16px; align-items: flex-start; }
.pledge-list p { margin: 2px 0 0; }
.pledge-list p b { display: block; font-size: 1.05rem; letter-spacing: -0.01em; }
.pledge-list p span { color: var(--text-2); font-size: 0.95rem; }
.pledge-foot { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--hairline); }
.pledge-foot p { margin: 0; color: var(--text-2); max-width: 56ch; }
@media (max-width: 960px) { .pledge-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .pledge-list { grid-template-columns: 1fr; gap: 20px; } }

.pledge-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: clamp(36px, 6vw, 56px); }
.pledge-card h3 { margin-top: 18px; }
.pledge-card .check { margin-top: auto; padding-top: 16px; font-size: 0.92rem; color: var(--text-3); }
.pledge-card .check b { color: var(--text-2); }
@media (max-width: 960px) { .pledge-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .pledge-grid { grid-template-columns: 1fr; } }

/* links to the policies */
.policies-wrap { margin-top: 48px; }
.policies-wrap h3 { margin: 0; font-size: 1.2rem; letter-spacing: -0.01em; }
.policies { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.policy { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: var(--radius-sm); text-decoration: none; transition: transform 0.2s ease, background 0.2s ease; }
.policy b { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.policy b::after { content: "→"; color: var(--text-3); transition: transform 0.2s ease; }
.policy span { color: var(--text-2); font-size: 0.92rem; }
.policy:hover { background: var(--glass-strong); transform: translateY(-2px); }
.policy:hover b::after { transform: translateX(3px); color: var(--accent-text); }
@media (max-width: 1060px) { .policies { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 440px) { .policies { grid-template-columns: 1fr; } }

/* ───────── documents: terms, privacy, policies, security details ───────── */

.doc-hero { padding: clamp(118px, 16vh, 150px) 0 0; }
.doc-hero h1 { font-size: clamp(2.3rem, 6.4vw, 4rem); line-height: 1.02; letter-spacing: -0.04em; margin: 4px 0 16px; }
.doc-hero .lede { margin: 0; max-width: 62ch; font-size: clamp(1.05rem, 2vw, 1.25rem); }
.doc-hero.center { text-align: center; }
.doc-hero.center .lede { margin-inline: auto; }
.doc-hero .metal { margin: 0 auto 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.doc-hero.center .chips { justify-content: center; }
.chip { display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 999px; font-size: 0.88rem; color: var(--text-2); }

.doc { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; align-items: start; margin-top: clamp(32px, 5vw, 48px); }
.doc.solo { grid-template-columns: minmax(0, 1fr); max-width: 900px; }
.toc { position: sticky; top: 96px; padding: 18px 14px 18px 18px; border-radius: var(--radius-sm); max-height: calc(100vh - 120px); overflow: hidden auto; }
/* The rim normally sits 1px outside the box, over its border; in this scroll box that pixel would count as overflow. */
.toc::before { inset: 0; }
.toc-title { margin: 0 0 10px; font-size: 0.8rem; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: 8px; padding: 5px 8px; margin-inline: -8px; border-radius: 10px; color: var(--text-2); text-decoration: none; font-size: 0.92rem; line-height: 1.35; }
.toc.numbered a::before { content: counter(toc); color: var(--text-3); min-width: 1.4em; font-variant-numeric: tabular-nums; }
.toc a:hover { background: var(--hairline); color: var(--text); }
@media (max-width: 900px) {
  .doc { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; max-height: none; }
  .toc ol { columns: 2; column-gap: 20px; }
  .toc li { break-inside: avoid; }
}
@media (max-width: 520px) { .toc ol { columns: 1; } }

.prose { padding: clamp(22px, 4.5vw, 48px); border-radius: var(--radius); min-width: 0; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.3rem, 2.6vw, 1.65rem); line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; margin: 44px 0 12px; }
.prose.numbered { counter-reset: sec; }
.prose.numbered h2::before { counter-increment: sec; content: counter(sec) ". "; color: var(--text-3); font-variant-numeric: tabular-nums; }
.prose h3 { font-size: 1.08rem; letter-spacing: -0.01em; margin: 26px 0 6px; }
.prose p, .prose li { color: var(--text-2); }
.prose p { margin: 0 0 12px; }
.prose ul, .prose ol { margin: 8px 0 14px; padding-left: 1.3em; }
.prose li + li { margin-top: 7px; }
.prose li::marker { color: var(--text-3); }
.prose b, .prose strong { color: var(--text); font-weight: 650; }
.prose a { color: var(--accent-text); text-underline-offset: 2px; overflow-wrap: anywhere; }
.prose code { font: 0.9em var(--mono); padding: 1px 6px; border-radius: 6px; background: var(--hairline); color: var(--text); overflow-wrap: anywhere; }
.prose .callout { margin: 0 0 30px; padding: 20px 22px; border-radius: var(--radius-sm); background: var(--glass-strong); border: 1px solid var(--glass-border); }
.prose .callout > :last-child { margin-bottom: 0; }
.prose .callout h2 { margin: 0 0 10px; font-size: 1.1rem; }
.prose .callout h2::before { content: none; }
.prose .agent { margin: 14px 0 18px; padding: 18px 20px; border-radius: var(--radius-sm); border: 1px solid var(--glass-border); background: var(--glass-strong); font-style: normal; line-height: 1.7; color: var(--text-2); }
.prose .agent b { display: block; }
.prose .updated { margin: 40px 0 0; padding-top: 18px; border-top: 1px solid var(--hairline); font-size: 0.9rem; color: var(--text-3); }

/* tables turn into labelled stacks on phones, so the page never scrolls sideways */
.table { width: 100%; border-collapse: collapse; margin: 14px 0 20px; font-size: 0.95rem; border-radius: var(--radius-sm); overflow: hidden; background: var(--glass-strong); box-shadow: inset 0 0 0 1px var(--glass-border); }
.table caption { text-align: left; padding: 0 0 8px; color: var(--text-3); font-size: 0.88rem; }
.table th, .table td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--hairline); }
.table th { font-weight: 650; color: var(--text); font-size: 0.88rem; }
.table thead th { background: var(--hairline); }
.table td { color: var(--text-2); }
.table tbody tr:last-child > * { border-bottom: 0; }
.table tbody th { font-size: 0.95rem; }
@media (max-width: 640px) {
  .table, .table tbody, .table tr, .table th, .table td { display: block; }
  .table thead { display: none; }
  .table tr { padding: 12px 16px; border-bottom: 1px solid var(--hairline); }
  .table tbody tr:last-child { border-bottom: 0; }
  .table th, .table td { padding: 4px 0; border: 0; }
  .table td[data-label]::before { content: attr(data-label); display: block; font-size: 0.78rem; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-3); margin-top: 6px; }
}

footer { padding: 90px 0 40px; color: var(--text-3); font-size: 0.9rem; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; padding-top: 24px; border-top: 1px solid var(--hairline); }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot a { text-decoration: none; }
.foot a:hover, .foot a[aria-current="page"] { color: var(--text); }
.foot .abuse { flex-basis: 100%; margin: 0; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ───────── viewer ───────── */

.viewer { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.bar {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px var(--gutter);
}
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px 7px 8px; border-radius: 999px; }
.bar .brand { padding: 6px 16px 6px 8px; }
.e2e { font-size: 0.88rem; color: var(--text-2); padding: 8px 14px 8px 10px; }
.e2e .icon { color: var(--ok); width: 18px; height: 18px; }

.view { flex: 1; display: grid; place-items: center; padding: 8px var(--gutter) 16px; }
.content { margin: 0; max-width: 100%; display: grid; place-items: center; }
.content img, .content video {
  /* the file itself is never glass: solid, crisp, with a soft drop shadow */
  max-width: 100%; max-height: calc(100vh - 240px); max-height: calc(100dvh - 240px); width: auto; height: auto;
  border-radius: 14px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 24px 60px -24px var(--shadow);
  background: var(--glass-solid);
}
.content img { cursor: zoom-in; }
.content.actual { width: 100%; justify-items: start; overflow-x: auto; }
.content.actual img { max-width: none; max-height: none; cursor: zoom-out; }
.content video { background: #000; }

.state { width: min(520px, 100%); padding: clamp(26px, 5vw, 40px); text-align: center; }
.state .badge { margin: 0 auto; width: 56px; height: 56px; border-radius: 18px; }
.state .badge .icon { width: 28px; height: 28px; }
.state h1 { font-size: clamp(1.5rem, 4.6vw, 2rem); line-height: 1.15; letter-spacing: -0.025em; font-weight: 700; margin: 18px 0 10px; }
.state p { color: var(--text-2); margin: 0 auto; max-width: 40ch; }
.state .cta { margin-top: 24px; }
.state .fine { margin-top: 18px; font-size: 0.88rem; color: var(--text-3); }
.state .fine a { color: var(--accent-text); }
.spinner { width: 56px; height: 56px; margin: 0 auto; border-radius: 50%; border: 4px solid var(--hairline); border-top-color: var(--accent); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.progress { margin-top: 14px; font-variant-numeric: tabular-nums; }

.toolbar {
  position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 10;
  display: flex; align-items: center; gap: 4px; padding: 6px; border-radius: 999px; max-width: calc(100% - 24px);
}
.toolbar .btn { min-height: 42px; padding: 0 1.05em; font-size: 0.95rem; }
.expiry { display: inline-flex; align-items: center; gap: 8px; padding: 0 12px 0 10px; color: var(--text-2); font-size: 0.92rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.expiry .icon { width: 18px; height: 18px; }
.expiry.over { color: var(--danger); }
.toolbar .sep { width: 1px; height: 24px; background: var(--hairline); margin: 0 2px; }
@media (max-width: 520px) {
  .e2e > span { display: none; }
  .e2e { padding: 8px; }
}
@media (max-width: 440px) {
  /* icon-only buttons so the expiry text keeps its room */
  .toolbar .btn { width: 42px; padding: 0; }
  .toolbar .btn > span { display: none; }
  .expiry { padding: 0 8px 0 6px; font-size: 0.88rem; }
}
.viewer-foot { padding: 0 var(--gutter) 100px; text-align: center; color: var(--text-3); font-size: 0.85rem; }
.viewer-foot a { color: inherit; }

/* ───────── accessibility fallbacks ───────── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .spinner { border-top-color: var(--hairline); border-color: var(--accent); }
}
@media (prefers-reduced-transparency: reduce) {
  .glass, .anatomy-link { background: var(--glass-solid); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .blob { display: none; }
}
@media (forced-colors: active) {
  .glass { border: 1px solid CanvasText; background: Canvas; }
  .glass::before, .backdrop { display: none; }
  h1 .shine { color: CanvasText; background: none; }
  .btn { border: 1px solid ButtonText; }
  .btn::before, .btn::after { display: none; }
  .btn-primary { background: ButtonText; color: ButtonFace; text-shadow: none; forced-color-adjust: none; }
  .badge, .part .tag { forced-color-adjust: none; background: CanvasText; color: Canvas; }
  .metal { background: Canvas; color: CanvasText; border: 1px solid CanvasText; box-shadow: none; }
  .metal::before, .metal::after { display: none; }
  .metal > .icon { filter: none; }
  .spinner { border-color: CanvasText; border-top-color: Highlight; }
}

/* in-page anchors land below the fixed nav */
[id] { scroll-margin-top: 96px; }
