/* Connecto — shared tokens and the landing page.
   Palette sampled from the logo (same values as the app's theme). */
:root {
  --bg: #0b1520;
  --bg-2: #0f1b29;
  --panel: #152434;
  --raised: #1d3244;
  --teal-deep: #183545;
  --teal: #2d6674;
  --border: #244455;
  --hair: #172a3a;
  --cyan: #73f8fc;
  --cyan-dim: #4cc9d1;
  --coral: #e54b4b;
  --coral-soft: #ed827f;
  --amber: #f5b85a;
  --green: #5fd3a6;
  --text: #e9eff3;
  --text-row: #c9d6df;
  --muted: #9db1bf;
  --faint: #6d8494;
  --term: #0a121b;
  --on-cyan: #0c1722;
  --radius: 16px;
  --display: "Space Grotesk", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
code, kbd, pre { font-family: var(--mono); }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.12; margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
::selection { background: rgba(115, 248, 252, 0.28); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.mark { border-radius: 23%; }

/* ---------- top bar ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(11, 21, 32, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s;
}
.top.scrolled { border-bottom-color: var(--hair); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.top nav { display: flex; gap: 24px; margin-left: auto; align-items: center; }
.top nav a { color: var(--muted); font-size: 15px; font-weight: 500; }
.top nav a:hover { color: var(--text); text-decoration: none; }
.top nav a.btn { color: var(--on-cyan); }
.gh-link { display: inline-flex; align-items: center; gap: 6px; }
.gh-link .gh { flex: none; }
@media (max-width: 760px) {
  .top nav a:not(.btn):not(.keep) { display: none; }
  .top nav .gh-link span { display: none; }
  .top .wrap { gap: 12px; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px;
  font: 600 15px var(--body); cursor: pointer; border: 1px solid transparent;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--cyan); color: var(--on-cyan); box-shadow: 0 0 0 0 rgba(115, 248, 252, 0.5); }
.btn-primary:hover { box-shadow: 0 6px 30px -6px rgba(115, 248, 252, 0.6); }
.btn-ghost { background: rgba(29, 50, 68, 0.6); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--teal); background: var(--raised); }
.btn-coral { background: var(--coral); color: #fff; }
.btn-coral:hover { box-shadow: 0 6px 30px -6px rgba(229, 75, 75, 0.7); }
.btn-sm { padding: 8px 15px; font-size: 14px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 116px 0 54px; isolation: isolate; }
#net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(45, 102, 116, 0.35), transparent 70%),
    linear-gradient(to bottom, transparent 70%, var(--bg));
}
.hero .wrap { text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font: 500 13px var(--mono); color: var(--cyan);
  padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px;
  background: rgba(21, 36, 52, 0.7);
}
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; transform: scale(0.8); } }
.hero h1 { font-size: clamp(42px, 7.2vw, 84px); font-weight: 700; margin: 26px auto 22px; max-width: 14ch; }
.hero h1 em { font-style: normal; color: var(--cyan); text-shadow: 0 0 40px rgba(115, 248, 252, 0.35); }
.lede { color: var(--muted); font-size: clamp(17px, 2vw, 20px); max-width: 62ch; margin: 0 auto; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.hero-note { margin-top: 16px; font-size: 13.5px; color: var(--faint); }
/* ---------- the download counter ----------
   A mission-control odometer in the hero, and the same number as a faint giant
   behind it. Both read downloads/stats.json (see site.js); neither takes a click. */
.hero { overflow: hidden; }
.odo-ghost {
  position: absolute; left: 0; right: 0; top: 74px; z-index: -1; pointer-events: none;
  text-align: center; white-space: nowrap; overflow: hidden;
  font: 700 clamp(110px, 25vw, 380px)/1 var(--mono); letter-spacing: -0.04em;
  color: transparent; -webkit-text-stroke: 1px rgba(115, 248, 252, 0.10);
  text-shadow: 0 0 80px rgba(115, 248, 252, 0.10);
  opacity: 0; transition: opacity 1.4s ease;
}
.odo-ghost.in { opacity: 1; }
.odo {
  position: relative; display: inline-flex; flex-direction: column; align-items: center; gap: 12px;
  margin-top: 34px; padding: 18px clamp(16px, 4vw, 30px) 16px; max-width: 100%;
  border: 1px solid var(--border); border-radius: 22px;
  background: linear-gradient(180deg, rgba(29, 50, 68, 0.78), rgba(15, 27, 41, 0.86));
  box-shadow: 0 0 0 1px rgba(115, 248, 252, 0.05) inset, 0 24px 70px -28px rgba(115, 248, 252, 0.45);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  pointer-events: none;
}
.odo::after { /* a slow glow that breathes */
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 46px -6px rgba(115, 248, 252, 0.35); opacity: 0.35;
  animation: odo-breathe 4.5s ease-in-out infinite;
}
@keyframes odo-breathe { 50% { opacity: 0.85; } }
.odo-head { display: flex; align-items: center; gap: 12px; font: 600 11.5px var(--mono); letter-spacing: 0.16em; text-transform: uppercase; }
.odo-live { display: inline-flex; align-items: center; gap: 7px; color: var(--green); }
.odo-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 1.8s ease-in-out infinite; }
.odo-label { color: var(--muted); }
.odo-digits {
  display: flex; align-items: center; justify-content: center; gap: clamp(3px, 0.9vw, 7px);
  font: 700 clamp(34px, 9.5vw, 86px)/1 var(--mono); font-variant-numeric: tabular-nums;
}
.odo-cell {
  position: relative; display: inline-block; width: 0.72em; height: 1.12em; overflow: hidden;
  border-radius: 0.14em; border: 1px solid rgba(115, 248, 252, 0.16);
  background: linear-gradient(180deg, #0c1824 0%, #12222f 48%, #0a141d 52%, #0e1b27 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 8px 24px -14px rgba(0, 0, 0, 0.9);
}
.odo-cell::after { /* the hinge line of a split-flap */
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0, 0, 0, 0.55);
}
.odo-strip {
  display: flex; flex-direction: column; transform: translateY(calc(var(--n, 0) * -1.12em));
  transition: transform 1.6s cubic-bezier(0.18, 0.9, 0.22, 1); transition-delay: var(--delay, 0s);
}
.odo-strip span, .odo-cell .odo-dash {
  display: block; height: 1.12em; line-height: 1.12em; text-align: center;
  color: var(--cyan); text-shadow: 0 0 18px rgba(115, 248, 252, 0.55), 0 0 2px rgba(115, 248, 252, 0.9);
}
.odo-cell .odo-dash { color: var(--faint); text-shadow: none; }
.odo-sep { width: clamp(2px, 0.6vw, 6px); }
.odo.bump .odo-cell { animation: odo-bump 1.2s ease; }
@keyframes odo-bump { 30% { border-color: rgba(115, 248, 252, 0.7); box-shadow: 0 0 26px -2px rgba(115, 248, 252, 0.55); } }
.odo-foot { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; font-size: 14px; color: var(--muted); }
.odo-foot b { color: var(--text); font-weight: 600; }
.odo-week { font: 600 12px var(--mono); color: var(--green); padding: 2px 9px; border: 1px solid rgba(95, 211, 166, 0.4); border-radius: 999px; background: rgba(95, 211, 166, 0.08); }
.odo-week[hidden] { display: none; }

/* the same count as a pill floating at the bottom of the window, once the big
   odometer has scrolled away */
.dl-float {
  position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 45;
  display: inline-flex; align-items: center; gap: 9px; max-width: calc(100vw - 32px); white-space: nowrap;
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border);
  background: rgba(15, 27, 41, 0.72); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 14px 40px -12px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(115, 248, 252, 0.06) inset, 0 0 28px -10px rgba(115, 248, 252, 0.35);
  color: var(--muted); font-size: 14px;
  opacity: 0; transform: translate(-50%, 12px); transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}
.dl-float[hidden] { display: none; }
.dl-float.in { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.dl-float.in.away { opacity: 0; transform: translate(-50%, 12px); pointer-events: none; }
.dl-float:hover { text-decoration: none; border-color: rgba(115, 248, 252, 0.45); color: var(--text); }
.dl-float i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 1.8s ease-in-out infinite; flex: none; }
.dl-float b { font: 700 15px var(--mono); color: var(--text); font-variant-numeric: tabular-nums; }
.dl-float-week { font: 600 11.5px var(--mono); color: var(--green); padding: 1px 8px; border: 1px solid rgba(95, 211, 166, 0.4); border-radius: 999px; }
.dl-float-week[hidden] { display: none; }
/* room for the pill, so it never covers the footer */
footer { padding-bottom: calc(56px + 64px + env(safe-area-inset-bottom, 0px)); }

/* ---------- app mock ---------- */
.mock {
  margin: 64px auto 0; max-width: 1040px; text-align: left;
  border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
  background: var(--bg-2);
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(115, 248, 252, 0.04), 0 0 90px -30px rgba(115, 248, 252, 0.25);
  transform: perspective(1600px) rotateX(var(--tilt, 6deg));
  transform-origin: 50% 0;
  transition: transform 0.2s linear;
}
.mock-bar { display: flex; align-items: center; gap: 8px; padding: 11px 14px; background: #0c1723; border-bottom: 1px solid var(--hair); }
.mock-bar span { width: 11px; height: 11px; border-radius: 50%; background: #24394a; }
.mock-bar b { margin: 0 auto; font: 500 12.5px var(--body); color: var(--faint); transform: translateX(-28px); }
.mock-body { display: grid; grid-template-columns: 232px 1fr; min-height: 400px; }
.side { background: #0c1723; border-right: 1px solid var(--hair); padding: 14px 10px; font-size: 13.5px; }
.side h6 { font: 600 10.5px var(--body); letter-spacing: 0.12em; color: var(--faint); margin: 6px 8px 8px; }
.row { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 7px; color: var(--text-row); white-space: nowrap; overflow: hidden; }
.row.on { background: #1a2d3e; color: var(--text); }
.row.child { margin-left: 20px; position: relative; }
.row.child::before { content: ""; position: absolute; left: -9px; top: -6px; bottom: 50%; width: 9px; border-left: 1px solid #22394a; border-bottom: 1px solid #22394a; border-bottom-left-radius: 5px; }
.row small { margin-left: auto; color: var(--faint); font-size: 11px; }
.proj { font-weight: 600; color: var(--text); margin-top: 4px; }
.proj .mono { width: 20px; height: 20px; border-radius: 6px; background: var(--teal-deep); color: var(--cyan); font: 700 11px var(--display); display: grid; place-items: center; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot.working { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); animation: pulse 1.4s ease-in-out infinite; }
.dot.idle { background: #a9b5bf; }
.dot.needs { background: var(--amber); }
.dot.done { background: var(--green); }
.dot.off { border: 1.5px solid var(--faint); }
.dot.fail { background: var(--coral); }
.pane { background: var(--term); display: flex; flex-direction: column; min-width: 0; }
.pane-head { display: flex; align-items: center; gap: 9px; padding: 9px 14px; border-bottom: 1px solid var(--hair); font-size: 13px; color: var(--muted); background: var(--bg-2); }
.pane-head b { color: var(--text); font-weight: 600; }
.pane-head .tag { margin-left: auto; font: 500 11px var(--mono); color: var(--cyan); border: 1px solid var(--border); border-radius: 999px; padding: 2px 9px; }
.term { flex: 1; margin: 0; padding: 16px 18px; font: 13px/1.65 var(--mono); color: var(--text-row); white-space: pre-wrap; word-break: break-word; min-height: 340px; }
.term .c { color: var(--cyan); } .term .r { color: var(--coral-soft); } .term .m { color: var(--faint); } .term .g { color: var(--green); } .term .a { color: var(--amber); }
.caret { display: inline-block; width: 8px; height: 1.05em; background: var(--cyan); vertical-align: text-bottom; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (max-width: 760px) { .mock-body { grid-template-columns: 1fr; } .side { display: none; } .mock { transform: none; } }

/* ---------- sections ---------- */
section { padding: 72px 0; position: relative; }
.kicker { font: 500 13px var(--mono); color: var(--cyan); letter-spacing: 0.08em; text-transform: uppercase; }
.sec-head { max-width: 720px; margin-bottom: 36px; }
.sec-head h2 { font-size: clamp(30px, 4.4vw, 48px); margin: 14px 0 16px; }
.sec-head p { color: var(--muted); font-size: 18px; }
.sec-head.center { text-align: center; margin-inline: auto; }

/* CLI strip */
.clis { padding: 24px 0 8px; }
.clis .wrap { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; }
.clis .label { width: 100%; text-align: center; color: var(--faint); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 6px; }
.chip { display: inline-flex; align-items: center; gap: 9px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--panel); font: 500 14.5px var(--body); color: var(--text); }
.chip .dot { width: 7px; height: 7px; }
.chip.next { border-style: dashed; color: var(--muted); background: transparent; }
.chip em { font: 500 11px var(--mono); font-style: normal; color: var(--coral-soft); border: 1px solid rgba(237, 130, 127, 0.4); padding: 1px 7px; border-radius: 999px; }

/* bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.card {
  position: relative; grid-column: span 2; padding: 28px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(21, 36, 52, 0.9), rgba(15, 27, 41, 0.9));
  border: 1px solid var(--hair); overflow: hidden;
  transition: border-color 0.25s, transform 0.25s;
}
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(115, 248, 252, 0.11), transparent 60%);
}
.card:hover { border-color: var(--border); transform: translateY(-2px); }
.card:hover::before { opacity: 1; }
.card.w3 { grid-column: span 3; } .card.w4 { grid-column: span 4; }
.card h3 { font-size: 21px; margin: 16px 0 9px; }
.card p { color: var(--muted); font-size: 15.5px; }
.card .more { display: inline-block; margin-top: 16px; font-size: 14.5px; font-weight: 600; }
.ico { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--teal-deep); border: 1px solid var(--border); color: var(--cyan); }
.ico.red { color: var(--coral-soft); background: #3a222c; border-color: rgba(237, 130, 127, 0.3); }
.ico svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.snip { margin-top: 18px; padding: 14px 16px; background: var(--term); border: 1px solid var(--hair); border-radius: 10px; font: 12.5px/1.7 var(--mono); color: var(--text-row); overflow-x: auto; white-space: pre; }
.snip .c { color: var(--cyan); } .snip .m { color: var(--faint); } .snip .r { color: var(--coral-soft); } .snip .g { color: var(--green); }
@media (max-width: 960px) { .card, .card.w3, .card.w4 { grid-column: span 3; } }
@media (max-width: 640px) { .card, .card.w3, .card.w4 { grid-column: span 6; } }

/* split feature rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split + .split { margin-top: 110px; }
.split.flip > :first-child { order: 2; }
.split h2 { font-size: clamp(28px, 3.6vw, 40px); margin: 14px 0 16px; }
.split p { color: var(--muted); }
.split ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.split li { position: relative; padding-left: 20px; color: var(--text-row); font-size: 16px; }
/* A block with an absolutely placed bullet: as a flex row, the bold and code parts inside an item
   became separate columns and pushed the page wider than a phone. */
.split li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 2px; background: var(--cyan); transform: rotate(45deg); }
.split .more { display: inline-block; margin-top: 24px; font-weight: 600; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } .split.flip > :first-child { order: 0; } }

.vis { border: 1px solid var(--hair); border-radius: var(--radius); background: var(--bg-2); padding: 26px; position: relative; overflow: hidden; }
.vis::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(70% 60% at 80% 0%, rgba(45, 102, 116, 0.22), transparent 70%); }

/* automation flow */
.flow { display: grid; gap: 12px; position: relative; z-index: 1; }
.step { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: var(--panel); border: 1px solid var(--hair); opacity: 0.45; transition: opacity 0.4s, border-color 0.4s, box-shadow 0.4s; }
.step.lit { opacity: 1; border-color: var(--teal); box-shadow: 0 0 30px -12px var(--cyan); }
.step .n { font: 600 12px var(--mono); color: var(--on-cyan); background: var(--cyan); width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; flex: none; margin-top: 2px; }
.step b { display: block; font-size: 15px; }
.step span { color: var(--muted); font-size: 14px; }
.step code { color: var(--cyan); font-size: 12.5px; }
.keys { display: inline-flex; gap: 6px; margin-top: 6px; }
kbd { font-size: 12px; padding: 2px 8px; border-radius: 6px; background: var(--raised); border: 1px solid var(--border); border-bottom-width: 2px; color: var(--text); }

/* package tree */
.tree { font: 13px/1.85 var(--mono); color: var(--text-row); position: relative; z-index: 1; white-space: pre; overflow-x: auto; }
.tree .c { color: var(--cyan); } .tree .m { color: var(--faint); } .tree .r { color: var(--coral-soft); }

/* modes */
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; position: relative; z-index: 1; }
.mode { padding: 20px; border-radius: 12px; background: var(--panel); border: 1px solid var(--hair); }
.mode.sel { border-color: var(--cyan); box-shadow: 0 0 34px -14px var(--cyan); }
.mode h4 { font-size: 17px; display: flex; align-items: center; gap: 8px; }
.mode h4 small { font: 500 10.5px var(--mono); color: var(--cyan); border: 1px solid var(--border); padding: 1px 7px; border-radius: 999px; letter-spacing: 0; }
.mode p { font-size: 14px; margin-top: 8px; }
.mode code { display: block; margin-top: 12px; font-size: 11.5px; color: var(--faint); word-break: break-all; }
@media (max-width: 520px) { .modes { grid-template-columns: 1fr; } }

/* pairing */
.pair { text-align: center; position: relative; z-index: 1; padding: 14px 0; }
.pair .code { font: 700 clamp(40px, 7vw, 64px) var(--mono); letter-spacing: 0.08em; color: var(--cyan); text-shadow: 0 0 40px rgba(115, 248, 252, 0.4); }
.pair .ttl { color: var(--muted); font-size: 14px; margin-top: 4px; }
.pair .bar { height: 3px; border-radius: 3px; background: var(--raised); margin: 18px auto 0; max-width: 260px; overflow: hidden; }
.pair .bar i { display: block; height: 100%; width: 100%; background: var(--cyan); transform-origin: left; animation: drain 12s linear infinite; }
@keyframes drain { to { transform: scaleX(0); } }
.pair .macs { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 26px; color: var(--muted); font-size: 13px; }
.pair .mac { padding: 10px 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel); color: var(--text); }
.pair .wire { flex: 0 1 120px; height: 1px; background: repeating-linear-gradient(90deg, var(--cyan) 0 6px, transparent 6px 12px); background-size: 12px 1px; animation: wire 0.6s linear infinite; }
@keyframes wire { to { background-position: 12px 0; } }

/* roadmap */
.road { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.cli { padding: 22px 18px; border-radius: var(--radius); border: 1px solid var(--hair); background: var(--bg-2); text-align: center; }
.cli.live { border-color: var(--teal); background: linear-gradient(180deg, var(--teal-deep), var(--bg-2)); }
.cli.soon { border-style: dashed; border-color: var(--border); }
.cli b { display: block; font: 600 17px var(--display); margin-bottom: 8px; }
.cli span { font: 500 11.5px var(--mono); padding: 2px 9px; border-radius: 999px; }
.cli.live span { color: var(--on-cyan); background: var(--cyan); }
.cli.soon span { color: var(--coral-soft); border: 1px solid rgba(237, 130, 127, 0.4); }
.cli p { color: var(--muted); font-size: 13.5px; margin-top: 12px; }
@media (max-width: 900px) { .road { grid-template-columns: repeat(2, 1fr); } }

/* download */
.dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.dl-card { padding: 26px; border-radius: var(--radius); border: 1px solid var(--hair); background: var(--bg-2); display: flex; flex-direction: column; gap: 6px; }
.dl-card h3 { font-size: 20px; }
/* side by side, the cards share one height and the titles reserve two lines, so the buttons line up; stacked cards keep their own height */
@media (min-width: 521px) {
  .dl-card h3 { line-height: 1.25; min-height: 2.5em; }
}
.dl-card p { color: var(--muted); font-size: 14.5px; }
.dl-card .meta { font: 12px var(--mono); color: var(--faint); word-break: break-all; }
.dl-card .btn { margin-top: 4px; align-self: flex-start; }
.dl-card .btn[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }
.req { margin-top: 22px; color: var(--faint); font-size: 14px; text-align: center; }

/* donate */
.donate { text-align: center; }
.donate-box {
  max-width: 760px; margin: 0 auto; padding: 48px 32px; border-radius: 24px;
  border: 1px solid var(--border);
  background: radial-gradient(90% 140% at 50% 0%, rgba(45, 102, 116, 0.28), transparent 70%), var(--bg-2);
  box-shadow: 0 0 0 1px rgba(115, 248, 252, 0.04) inset;
}
.donate-box .kicker { display: inline-block; margin-bottom: 8px; }
.donate-note a { color: var(--cyan-dim); }
.donate-box img { width: 68px; margin: 0 auto 18px; animation: float 5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-7px); } }
.donate-box h2 { font-size: clamp(28px, 4vw, 40px); }
.donate-box p { color: var(--muted); max-width: 52ch; margin: 14px auto 0; }
.amounts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.amount {
  min-width: 104px; padding: 16px 22px; border-radius: 14px; cursor: pointer;
  font: 600 22px var(--display); color: var(--text); text-align: center;
  background: rgba(21, 36, 52, 0.6); border: 1px solid var(--border);
  transition: transform 0.15s, border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.amount:hover { text-decoration: none; transform: translateY(-2px); border-color: rgba(115, 248, 252, 0.55); background: var(--teal-deep); box-shadow: 0 10px 34px -14px rgba(115, 248, 252, 0.55); }
.amount small { display: block; font: 500 10.5px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.donate-note { font-size: 13px !important; color: var(--faint) !important; margin-top: 22px !important; }

/* footer */
footer { border-top: 1px solid var(--hair); padding: 40px 0 56px; color: var(--faint); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 22px; margin-left: auto; }
footer a { color: var(--muted); }

/* reveal on scroll */
.rv { opacity: 0; transform: translateY(22px); transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
  .step { opacity: 1; }
  .mock { transform: none; }
  .odo-strip { transition: none; }
  .odo-ghost { transition: none; }
}

/* grid and flex children may shrink below their content, so nothing pushes the page wider than a phone */
.card, .split > *, .vis, .pane, .dl-card, .cli { min-width: 0; }
.eyebrow { max-width: 100%; text-align: left; }
@media (max-width: 520px) {
  section { padding: 52px 0; }
  .hero { padding-top: 88px; }
  .card { padding: 22px; }
  .donate-box { padding: 36px 18px; }
  .amount { min-width: 0; flex: 1 1 40%; }
}

/* download: the download cards first, the donate block right under them, as one block */
.get .donate-box.compact { margin-top: 18px; }
.get { padding: 22px 0 48px; scroll-margin-top: 0; }
.get .anchor { display: block; height: 0; }
.donate-box.compact { padding: 16px 24px 12px; text-align: center; }
.donate-box.compact h2 { font-size: clamp(22px, 3.2vw, 30px); }
.donate-box.compact p { margin-top: 10px; }
.donate-box.compact .amounts { margin-top: 12px; gap: 10px; }
.donate-box.compact .amount { min-width: 92px; padding: 9px 18px; }
.donate-box.compact .donate-note { margin-top: 10px !important; }
.get-head { margin: 14px auto 12px; }
.get-head h2 { font-size: clamp(24px, 3vw, 30px); margin: 6px 0 6px; }
.get-head p { font-size: 15px; }
@media (max-width: 520px) {
  .get { padding: 16px 0 36px; }
  .get .donate-box.compact { margin-top: 12px; }
  .donate-box.compact { padding: 16px 12px 14px; }
  .donate-box.compact h2 { font-size: 19px; }
  .donate-box.compact p { font-size: 13.5px; margin-top: 6px; }
  .donate-box.compact .donate-note { display: none; }
  .donate-box.compact .amounts { gap: 8px; }
  .donate-box.compact .amount { min-width: 0; flex: 1 1 20%; padding: 10px 4px; }
  .donate-box.compact .amount small { font-size: 10.5px; }
  .get-head { margin-top: 18px; }
}

.dl-card .btn { margin-top: 4px; }
.dl-card .meta { margin-top: 10px; }
.unsigned { margin-top: 18px; padding: 14px 18px; border: 1px solid var(--hair); border-left: 3px solid var(--coral-soft); border-radius: 10px; background: var(--bg-2); color: var(--muted); font-size: 14.5px; text-align: left; }
.unsigned b { color: var(--text); }
.unsigned a { color: var(--cyan); }

/* the info button and its panel on each download card */
.dl-line { color: var(--muted); font-size: 14.5px; }
.dl-line .nowrap { white-space: nowrap; }
.info-btn { flex: none; width: 26px; height: 26px; margin-left: 8px; padding: 0; border-radius: 50%; border: 1px solid var(--border); background: transparent; color: var(--cyan); display: inline-grid; place-items: center; vertical-align: middle; cursor: pointer; }
.info-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.info-btn:hover, .info-btn[aria-expanded="true"] { border-color: rgba(115, 248, 252, 0.5); background: rgba(115, 248, 252, 0.08); }
.info-btn:focus-visible, .copy-btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.dl-info { position: fixed; z-index: 70; width: 340px; max-height: calc(100vh - 24px); overflow: auto; padding: 14px 16px; border-radius: 12px; background: var(--panel); border: 1px solid var(--border); box-shadow: 0 18px 48px rgba(0, 0, 0, 0.5); display: grid; gap: 10px; font-size: 13.5px; color: var(--muted); }
.dl-info:focus { outline: none; }
/* the arrow points at the info button: below the panel, or above it when flipped */
.dl-info::before { content: ""; position: absolute; top: -7px; left: var(--ax, 50%); width: 12px; height: 12px; margin-left: -6px; background: var(--panel); border-left: 1px solid var(--border); border-top: 1px solid var(--border); transform: rotate(45deg); }
.dl-info.above::before { top: auto; bottom: -7px; border-left: none; border-top: none; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
/* on a phone the panel is a bottom sheet across the screen */
.dl-info.sheet { left: 8px !important; right: 8px; top: auto !important; bottom: 8px; width: auto !important; max-height: 70vh; border-radius: 16px; }
.dl-info.sheet::before { display: none; }
.dl-info[hidden] { display: none; }
#odo[hidden], #odo-ghost[hidden] { display: none !important; }
.dl-info p { margin: 0; }
.dl-info code { font: 12px var(--mono); color: var(--text-row); word-break: break-all; }
.dl-info b { color: var(--text); }
.dl-info a { color: var(--cyan); }
.dl-sha { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.copy-btn { font: 500 12px var(--mono); color: var(--cyan); background: transparent; border: 1px solid var(--border); border-radius: 999px; padding: 2px 10px; cursor: pointer; }
.copy-status { font: 500 12px var(--mono); color: var(--green); }
.linux-note { margin-top: 16px; text-align: center; color: var(--faint); font-size: 13.5px; }
