/* Tin Hat — repo.lueshub.com shared styles (landing + install guides).
 * Palette follows the app's OLED theme (surface #000/#0a0a0a, accent #1e6a76/#3cbad0) with a foil-silver brand accent.
 * No third-party requests: fonts are self-hosted (SIL OFL, licences next to the files). */

@font-face {
  font-family: "Mona Sans";
  src: url(fonts/mona-sans-wdth.woff2) format("woff2-variations"), url(fonts/mona-sans-wdth.woff2) format("woff2");
  font-weight: 200 900; font-stretch: 75% 125%; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url(fonts/jetbrains-mono.woff2) format("woff2-variations"), url(fonts/jetbrains-mono.woff2) format("woff2");
  font-weight: 100 800; font-style: normal; font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #020304; --bg-2: #06080a; --panel: #0a0d10; --panel-2: #0f1418; --panel-3: #151b20;
  --line: rgba(255, 255, 255, .075); --line-2: rgba(255, 255, 255, .13); --line-3: rgba(255, 255, 255, .22);
  --tx: #e8eef1; --tx-2: #a7b3ba; --tx-3: #6b7880;
  --teal: #3cbad0; --teal-hi: #6fdcec; --teal-2: #1e6a76; --teal-glow: rgba(60, 186, 208, .32);
  --gold: #e8b923; --pink: #e87cc0; --blue: #4da3ff; --green: #3ad07a; --red: #ff5d6c; --violet: #a98bff;
  --accent: var(--teal);
  --r-l: 22px; --r: 16px; --r-s: 11px; --r-xs: 8px;
  --maxw: 1200px; --gutter: clamp(18px, 4vw, 40px);
  --font: "Mona Sans", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --foil: linear-gradient(100deg, #ffffff 0%, #c9d3db 22%, #ffffff 38%, #8e9ba7 55%, #eef2f5 72%, #b3bec8 100%);
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--tx);
  font-family: var(--font); font-size: 17px; line-height: 1.6; font-stretch: 100%;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* faint film grain over everything — static, painted once */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
main, header, footer { position: relative; z-index: 1; }
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-hi); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; line-height: 1.08; font-weight: 800; letter-spacing: -.02em; font-stretch: 112%; }
::selection { background: rgba(60, 186, 208, .35); color: #fff; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
code, kbd, pre, .mono { font-family: var(--mono); }
code { font-size: .88em; padding: .12em .42em; border-radius: 6px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); color: #d7e3e8; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center;
  background: linear-gradient(to bottom, rgba(2, 3, 4, .82), rgba(2, 3, 4, .55));
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(2, 3, 4, .78); }
.nav .container { display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--tx); font-weight: 800; font-stretch: 118%; font-size: 19px; letter-spacing: -.01em; }
.brand:hover { color: #fff; }
.brand img { width: 34px; height: 34px; filter: drop-shadow(0 2px 10px rgba(60, 186, 208, .35)); }
.brand small { font: 600 10.5px/1 var(--mono); letter-spacing: .14em; color: var(--tx-3); text-transform: uppercase; margin-left: 2px; margin-top: 3px; }
.nav-links { display: flex; gap: 22px; margin-left: 8px; }
.nav-links a { color: var(--tx-2); font-size: 15px; font-weight: 550; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--tx); }
.nav-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
@media (max-width: 1120px) { .nav-links { display: none; } }
@media (max-width: 560px) { .nav-cta .btn-ghost { display: none; } .brand small { display: none; } }

/* ---------- buttons, chips ---------- */
.btn {
  --b-bg: rgba(255, 255, 255, .06); --b-tx: var(--tx); --b-bd: var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--b-bd);
  background: var(--b-bg); color: var(--b-tx); font: 650 15.5px/1 var(--font); font-stretch: 106%;
  cursor: pointer; text-decoration: none; white-space: nowrap; user-select: none;
  transition: transform .18s var(--ease-out), box-shadow .25s, background .25s, border-color .25s, color .2s;
}
.btn:hover { color: #fff; border-color: var(--line-3); background: rgba(255, 255, 255, .09); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.985); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary {
  --b-tx: #031418; --b-bd: rgba(255, 255, 255, .25);
  background: linear-gradient(180deg, #6fdcec 0%, #3cbad0 48%, #2a9fb4 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .45) inset, 0 -2px 0 rgba(0, 0, 0, .18) inset, 0 8px 28px -6px rgba(60, 186, 208, .55);
}
.btn-primary:hover { color: #021014; background: linear-gradient(180deg, #8ae6f2 0%, #4cc6db 48%, #2fabc0 100%); border-color: rgba(255, 255, 255, .4);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 -2px 0 rgba(0, 0, 0, .15) inset, 0 12px 36px -6px rgba(60, 186, 208, .7); }
.btn-ghost { --b-bg: transparent; }
.btn-lg { height: 54px; padding: 0 24px; font-size: 17px; border-radius: 14px; }
.btn-sm { height: 36px; padding: 0 13px; font-size: 14px; border-radius: 10px; }
.btn .sub { font: 600 11px/1 var(--mono); letter-spacing: .04em; opacity: .7; margin-left: 2px; }

.chip {
  display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .035); color: var(--tx-2);
  font: 600 12.5px/1 var(--mono); letter-spacing: .02em; white-space: nowrap;
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.chip-new { color: #fff; border-color: rgba(60, 186, 208, .45); background: rgba(60, 186, 208, .1); }
.chip-new b { color: var(--teal-hi); font-weight: 700; }

.hud {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px;
  font: 700 12px/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--accent);
}
.hud::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; box-shadow: 0 0 12px currentColor; }
.hud span { color: var(--tx-3); letter-spacing: .12em; }

.foil {
  background: var(--foil); background-size: 220% 100%; background-position: 0% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.foil.shine { animation: foilshine 3.2s var(--ease-out) .2s 1 both; }
@keyframes foilshine { from { background-position: 100% 0; } to { background-position: 0% 0; } }

kbd {
  display: inline-flex; align-items: center; justify-content: center; min-width: 1.9em; height: 1.75em; padding: 0 .45em;
  border-radius: 7px; border: 1px solid rgba(255, 255, 255, .16); border-bottom-width: 3px;
  background: linear-gradient(180deg, #1c2328, #11161a); color: #dfe8ec;
  font: 650 .78em/1 var(--mono); vertical-align: .08em; box-shadow: 0 2px 6px rgba(0, 0, 0, .45);
}

/* ---------- screenshot frames (HUD corners) ---------- */
.frame {
  position: relative; border-radius: var(--r); background: #000; border: 1px solid var(--line-2);
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 0, 0, .6), 0 30px 80px -40px var(--glow, rgba(60, 186, 208, .35));
}
.frame > img, .frame > picture > img, .frame > picture, .frame > video { border-radius: calc(var(--r) - 1px); width: 100%; height: auto; }
.frame::before, .frame::after {
  content: ""; position: absolute; width: 22px; height: 22px; pointer-events: none;
  border: 2px solid var(--accent); opacity: .85; filter: drop-shadow(0 0 6px var(--accent));
}
.frame::before { top: -9px; left: -9px; border-right: 0; border-bottom: 0; border-top-left-radius: 8px; }
.frame::after { bottom: -9px; right: -9px; border-left: 0; border-top: 0; border-bottom-right-radius: 8px; }
.frame.plain::before, .frame.plain::after { display: none; }
.frame .cap {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  font: 600 11.5px/1 var(--mono); letter-spacing: .06em; color: #cfe2e8;
  background: rgba(0, 0, 0, .66); border: 1px solid var(--line-2); padding: 7px 9px; border-radius: 8px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.shot-missing {
  aspect-ratio: 1560 / 960; display: grid; place-items: center; color: var(--tx-3); font: 600 13px var(--mono);
  background: repeating-linear-gradient(135deg, #07090b 0 14px, #0a0d10 14px 28px); border-radius: calc(var(--r) - 1px);
}

/* ---------- section scaffolding ---------- */
.section { padding: clamp(72px, 9vw, 124px) 0; position: relative; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .hud { justify-content: center; }
.h2 { font-size: clamp(32px, 4vw, 54px); }
.h3 { font-size: clamp(22px, 2.2vw, 28px); font-stretch: 108%; letter-spacing: -.015em; }
.lead { font-size: clamp(17.5px, 1.45vw, 20px); color: var(--tx-2); line-height: 1.6; margin-top: 18px; }
.muted { color: var(--tx-2); }
.fine { color: var(--tx-3); font-size: 14.5px; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 48px 0 60px; color: var(--tx-3); font-size: 14px; background: linear-gradient(to bottom, transparent, rgba(60, 186, 208, .03)); }
.footer .container { display: grid; gap: 28px; grid-template-columns: 1.3fr 1fr 1fr 1fr; }
.footer h4 { font: 700 11.5px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--tx-2); margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer a { color: var(--tx-3); }
.footer a:hover { color: var(--tx); }
.footer .f-about { max-width: 34ch; }
.footer .f-about .brand { margin-bottom: 12px; }
.footer code { font-size: 12px; }
.footer .f-legal { grid-column: 1 / -1; margin: 6px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--tx-3); }
@media (max-width: 860px) { .footer .container { grid-template-columns: 1fr 1fr; } .footer .f-about { grid-column: 1 / -1; } }

/* ---------- shared bits used by guides + landing ---------- */
.card {
  position: relative; border-radius: var(--r-l); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012));
  padding: clamp(22px, 2.6vw, 32px);
}
.card:hover { border-color: var(--line-2); }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }

.cmd { position: relative; margin: 10px 0 0; }
.cmd pre {
  margin: 0; padding: 14px 92px 14px 16px; border-radius: 12px; background: #06090b; border: 1px solid var(--line-2);
  font-size: 13.5px; line-height: 1.55; color: #d5f5fb; white-space: pre-wrap; word-break: break-all; overflow-x: auto;
}
.cmd pre::before { content: "$ "; color: var(--teal); }
.copy {
  position: absolute; top: 8px; right: 8px; height: 30px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-2);
  background: #11181c; color: var(--tx-2); font: 650 12.5px/1 var(--font); cursor: pointer; transition: all .2s;
}
.copy:hover { color: #fff; border-color: var(--teal); }
.copy.done { background: var(--teal); color: #021014; border-color: var(--teal); }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.tab {
  height: 38px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03);
  color: var(--tx-2); font: 600 14.5px/1 var(--font); cursor: pointer; transition: all .2s;
}
.tab:hover { color: var(--tx); border-color: var(--line-3); }
.tab[aria-selected="true"] { color: #031418; background: var(--teal); border-color: var(--teal); box-shadow: 0 6px 20px -8px var(--teal-glow); }

.note {
  display: flex; gap: 14px; padding: 16px 18px; border-radius: 14px; border: 1px solid rgba(232, 185, 35, .28);
  background: rgba(232, 185, 35, .06); color: #ecdcae; font-size: 15px;
}
.note.info { border-color: rgba(77, 163, 255, .3); background: rgba(77, 163, 255, .06); color: #cfe3ff; }
.note.ok { border-color: rgba(58, 208, 122, .3); background: rgba(58, 208, 122, .06); color: #c9f2d9; }
.note svg { flex: none; width: 20px; height: 20px; margin-top: 2px; }
.note p:last-child { margin-bottom: 0; }

details.faq { border-top: 1px solid var(--line); padding: 16px 0; }
details.faq:last-of-type { border-bottom: 1px solid var(--line); }
details.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-weight: 650; font-size: 17px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font: 400 22px/1 var(--mono); color: var(--teal); transition: transform .25s; }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq > div { color: var(--tx-2); padding-top: 10px; font-size: 16px; }
details.faq > div p:last-child { margin-bottom: 0; }

/* ---------- shared by the landing page and the tracker: status pills + the pipeline meter ---------- */
.st { font: 700 .74em/1 var(--mono); padding: 4px 7px; border-radius: 6px; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; vertical-align: .12em; }
.st-new { background: rgba(77, 163, 255, .14); color: #8cc4ff; border: 1px solid rgba(77, 163, 255, .35); }
.st-triaged { background: rgba(169, 139, 255, .14); color: #c5b3ff; border: 1px solid rgba(169, 139, 255, .35); }
.st-fixed { background: rgba(232, 185, 35, .12); color: #f3d36e; border: 1px solid rgba(232, 185, 35, .35); }
.st-shipped { background: rgba(58, 208, 122, .12); color: #7fe3a8; border: 1px solid rgba(58, 208, 122, .35); }
.st-declined, .st-duplicate { background: rgba(255, 255, 255, .05); color: var(--tx-3); border: 1px solid var(--line-2); }
.st-in-progress { background: rgba(232, 124, 192, .12); color: #f3a6d6; border: 1px solid rgba(232, 124, 192, .35); }
.st-need-info { background: rgba(255, 93, 108, .12); color: #ff9aa3; border: 1px solid rgba(255, 93, 108, .35); }
/* the pipeline: an ordinal stacked meter (validated palette: shipped #4cc6da, fixed #2a93a6, open #5c6c75, declined #44525a) */
.pipe { position: relative; margin: 30px 0 30px; padding: 20px 22px 18px; border-radius: 18px; border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012)); }
.pipe-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.pipe-head > b { font-size: 52px; line-height: 1; font-weight: 850; font-stretch: 118%; letter-spacing: -.03em; color: var(--tx); }
.pipe-head span { color: var(--tx-2); font-size: 16px; } .pipe-head span b { color: var(--tx); font-weight: 650; }
.pipe-bar { display: flex; gap: 2px; height: 14px; }
.pipe-seg { position: relative; min-width: 6px; height: 100%; border-radius: 0; outline: none; cursor: default; }
.pipe-seg:first-child { border-radius: 4px 0 0 4px; } .pipe-seg:last-child { border-radius: 0 4px 4px 0; }
.pipe-seg::before { content: ""; position: absolute; inset: -12px 0; }             /* a hit area taller than the mark */
.pipe-seg:hover, .pipe-seg:focus-visible { filter: brightness(1.25); }
.pipe-seg:focus-visible { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--tx-2); }
.pipe-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 14px 0 0; padding: 0; font-size: 14px; color: var(--tx-2); }
.pipe-legend li { display: inline-flex; align-items: center; gap: 8px; }
.pipe-legend i { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.pipe-legend b { color: var(--tx); font-weight: 650; }
.pipe-tip { position: absolute; z-index: 3; top: 0; left: 0; transform: translate(-50%, calc(-100% - 10px)); pointer-events: none; white-space: nowrap;
  padding: 8px 11px; border-radius: 10px; background: #11171b; border: 1px solid var(--line-3); box-shadow: 0 12px 30px rgba(0, 0, 0, .6); font-size: 13px; color: var(--tx-2); }
.pipe-tip b { display: block; color: var(--tx); font-size: 15px; margin-bottom: 2px; }
.pipe-tip i { display: inline-block; width: 14px; height: 2px; border-radius: 1px; vertical-align: middle; margin-right: 7px; }

/* ---------- stat tiles (landing "about" + the nerds page) ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; }
.stat { background: var(--bg); padding: 28px 26px 30px; }
.stat b { display: block; font-size: clamp(38px, 4vw, 58px); font-weight: 850; font-stretch: 122%; letter-spacing: -.03em; line-height: 1; margin-bottom: 12px;
  background: var(--foil); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.stat b em { font-style: normal; font-size: .5em; margin-left: 2px; }
.stat span { color: var(--tx-2); font-size: 15.5px; }
@media (max-width: 900px) { .stats { grid-template-columns: 1fr 1fr; } }
.stat.zero b { background: none; -webkit-text-fill-color: var(--green); color: var(--green); }
