/* vybe landing page.
 *
 * The palette, the chrome type treatment and the overlay panel are lifted from the Chrome Web
 * Store listing renderer (packages/extension/scripts/generate-store-listing.mjs), which is itself
 * a transcription of src/ui/ at its real 320px width. If the overlay's layout changes, both have
 * to follow it.
 *
 * The page commits to the dark look on purpose: the mark is polished chrome, and silver on white
 * disappears. There is no light theme.
 */

:root {
  --ink: #f5f5f7;
  --muted: #9aa3ad;
  --muted-2: #c7ced7;
  --dim: #6a7481;
  --bg: #050507;
  --line: rgba(255, 255, 255, 0.14);
  --line-soft: rgba(255, 255, 255, 0.08);
  --glass: rgba(255, 255, 255, 0.05);
  --green: #28e07a;
  --shell: 1160px;
  --pad: 24px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  /* The glows are wider than a phone on purpose. `clip` contains them without making a scroll
     container out of the root, which `hidden` would — and that would strand the sticky nav. */
  overflow-x: clip;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI Variable Display", "Segoe UI", -apple-system, BlinkMacSystemFont, system-ui,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid #8fb6ff;
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: #fff;
  color: #000;
  font-weight: 600;
}
.skip:focus {
  left: 16px;
}

/* ------------------------------------------------------------------ backdrop */
/* Light thrown across a dark room, in the mark's own iridescent hues. */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1100px 780px at 8% -12%, rgba(122, 92, 255, 0.2), transparent 62%),
    radial-gradient(900px 700px at 96% 4%, rgba(0, 200, 255, 0.13), transparent 60%),
    radial-gradient(1000px 800px at 82% 62%, rgba(255, 63, 174, 0.11), transparent 62%),
    radial-gradient(760px 620px at 22% 92%, rgba(40, 224, 122, 0.07), transparent 60%),
    var(--bg);
}

/* A faint rule grid keeps the empty half of the canvas from looking unfinished. */
.grid {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(1200px 900px at 50% 20%, #000, transparent 80%);
  mask-image: radial-gradient(1200px 900px at 50% 20%, #000, transparent 80%);
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}
.glow.soft {
  opacity: 0.35;
}
.glow-violet {
  width: 560px;
  height: 560px;
  top: 4%;
  right: 4%;
  background: radial-gradient(circle, rgba(122, 92, 255, 0.5), transparent 70%);
}
.glow-cyan {
  width: 460px;
  height: 460px;
  top: 18%;
  right: 8%;
  background: radial-gradient(circle, rgba(0, 200, 255, 0.36), transparent 70%);
}
.glow-green {
  width: 460px;
  height: 460px;
  top: 20%;
  left: 6%;
  background: radial-gradient(circle, rgba(40, 224, 122, 0.26), transparent 70%);
}
.glow-pink {
  width: 460px;
  height: 460px;
  top: 16%;
  right: 6%;
  background: radial-gradient(circle, rgba(255, 63, 174, 0.3), transparent 70%);
}

/* ------------------------------------------------------------------ type */
/* The mark's trick applied to type: paired stops so each band flips hard into the next, which is
   what reads as polished metal. The dark bands sit well above the mark's own — on a black canvas
   a true shadow band just punches a hole in the letterform. */
.chrome {
  background: linear-gradient(
    168deg,
    #ffffff 0%, #f2f6fa 6%, #ccd5de 12%, #9fabb7 17%, #6f7883 21%,
    #ffffff 24%, #ffffff 38%, #cdd6e0 46%, #98a3af 52%, #727c88 56%,
    #f8fbfd 59%, #ffffff 70%, #b6c0cb 78%, #7d8792 84%,
    #fbfdff 87%, #dde4ec 94%, #a9b4c0 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h1 {
  font-size: clamp(2.35rem, 5.4vw, 4rem);
  line-height: 1.03;
  letter-spacing: -0.03em;
  font-weight: 700;
}

h2 {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.028em;
  font-weight: 700;
}

h3 {
  font-size: 1.16rem;
  letter-spacing: -0.01em;
  font-weight: 650;
}

.lede {
  font-size: clamp(1.02rem, 1.35vw, 1.22rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 30em;
}
.lede.center {
  margin-inline: auto;
  text-align: center;
}

.mono {
  font-family: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.92em;
  color: var(--muted-2);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  padding: 1px 6px;
  white-space: nowrap;
}

.muted {
  color: var(--muted);
}
.small {
  font-size: 0.86rem;
}

/* ------------------------------------------------------------------ chips */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: var(--glass);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.eyebrow.plain {
  padding: 7px 15px;
  letter-spacing: 0.08em;
}
.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(40, 224, 122, 0.9);
  flex: 0 0 7px;
}

.free {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid rgba(40, 224, 122, 0.4);
  background: rgba(40, 224, 122, 0.1);
  color: #8df0ba;
  font-size: 0.9rem;
  font-weight: 600;
}
.free b {
  font-size: 0.96rem;
  color: #c8ffe2;
}

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 12px;
  font-weight: 650;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease,
    box-shadow 0.15s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}
.btn-sm {
  padding: 9px 16px;
  font-size: 0.9rem;
}
.btn-lg {
  padding: 14px 24px;
  font-size: 1rem;
}
.btn-primary {
  background: #fff;
  color: #08080a;
  box-shadow: 0 10px 30px -12px rgba(255, 255, 255, 0.5);
}
.btn-primary:hover {
  background: #e9edf2;
  box-shadow: 0 16px 38px -14px rgba(255, 255, 255, 0.6);
}
.btn-ghost {
  background: var(--glass);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--ink);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
}
.ico {
  flex: none;
}

/* ------------------------------------------------------------------ layout */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.shell.narrow {
  max-width: 820px;
}

.section {
  position: relative;
  padding: clamp(64px, 8vw, 104px) 0;
}

.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 64px);
}
.section-head .eyebrow {
  align-self: center;
}

/* ------------------------------------------------------------------ nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(5, 5, 7, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.nav.stuck {
  border-bottom-color: var(--line-soft);
  background: rgba(5, 5, 7, 0.88);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}
.brand-word {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.93rem;
  color: var(--muted);
}
.nav-links a:hover {
  color: var(--ink);
}

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative;
  padding: clamp(48px, 6vw, 84px) 0 clamp(48px, 6vw, 76px);
  overflow: hidden;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.lockup {
  display: flex;
  align-items: center;
  gap: 16px;
}
.lockup-mark {
  width: clamp(56px, 7vw, 82px);
  height: auto;
}
.lockup-word {
  font-size: clamp(3rem, 6.4vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cta-row.center {
  justify-content: center;
}
.cta-note {
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 34em;
}
.cta-note a {
  color: var(--muted-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}

.hero-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

/* A slow drift keeps the panel from reading as a flat screenshot. */
.float {
  animation: float 9s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ------------------------------------------------------- the overlay panel */
.panel {
  width: 320px;
  max-width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(24, 24, 26, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  box-shadow:
    0 40px 80px -20px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 1px 0 rgba(255, 255, 255, 0.14) inset;
  font-size: 14px;
  color: var(--ink);
  flex: none;
}
.panel.mini {
  width: 256px;
}
.panel .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
}
.panel .bar .left,
.panel .bar .right {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #a1a1a6;
}
.panel .bar .name {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.panel .body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.panel .body.tight {
  gap: 12px;
}
.panel .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.code {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ink);
  border: 0;
  cursor: pointer;
  transition: background 0.15s ease;
}
.code:hover {
  background: rgba(255, 255, 255, 0.16);
}
.panel .label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #a1a1a6;
}
.avatars {
  display: flex;
  align-items: center;
}
.avatars .av + .av {
  margin-left: -6px;
}
.av {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #0b0b0d;
  border: 1.5px solid rgba(24, 24, 26, 0.9);
  flex: none;
}
.art {
  width: 112px;
  height: 112px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(140deg, #7a5cff, #00c8ff 42%, #28e07a 72%, #ffd400);
  position: relative;
  overflow: hidden;
  flex: none;
}
.art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(90px 70px at 22% 18%, rgba(255, 255, 255, 0.55), transparent 60%),
    linear-gradient(200deg, rgba(255, 255, 255, 0.22), transparent 45%, rgba(0, 0, 0, 0.4));
}
.art.sm {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}
.now {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.now .title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}
.now .artist {
  font-size: 12px;
  color: #a1a1a6;
  margin-top: 2px;
}
.scrub {
  width: 100%;
  padding: 4px 4px 0;
}
.track {
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.2);
  position: relative;
}
.track .fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 2px;
  background: #fff;
}
.track .knob {
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}
.times {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #a1a1a6;
  margin-top: 6px;
}
.controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding-top: 4px;
  color: #a1a1a6;
}
.play {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  flex: none;
}
.play.sm {
  width: 24px;
  height: 24px;
}
.vol {
  border-top: 1px solid var(--line);
  padding-top: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #a1a1a6;
}
.vol .track {
  flex: 1;
}
.vol .pct {
  font-size: 10px;
  width: 30px;
  text-align: right;
}
.panel-h {
  font-size: 16px;
  font-weight: 600;
}
.panel-sub {
  font-size: 12px;
  color: #a1a1a6;
  margin-top: 2px;
}
.field {
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 8px 12px;
  font-size: 14px;
  color: #8b8b90;
}
.cta {
  border-radius: 12px;
  background: #fff;
  color: #000;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  padding: 9px;
}
.or {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #a1a1a6;
}
.or i {
  flex: 1;
  height: 1px;
  background: var(--line);
}
.joinrow {
  display: flex;
  gap: 8px;
}
.codein {
  flex: 1;
  min-width: 0;
  border-radius: 12px;
  border: 2px solid var(--line);
  padding: 9px 12px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.3em;
}
.join {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
}
.mini-body {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
}
.mini-meta {
  flex: 1;
  min-width: 0;
}
.mini-title {
  font-size: 12px;
  font-weight: 600;
}
.mini-artist {
  font-size: 10px;
  color: #a1a1a6;
}

/* Annotations sit under the panel rather than over it — a chip laid across the artwork hides
   exactly the thing it is pointing at. */
.notes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  max-width: 460px;
}
.note {
  font-size: 0.82rem;
  color: var(--muted-2);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  white-space: nowrap;
}
.note b {
  color: #fff;
  font-weight: 600;
}

/* ------------------------------------------------------------------ steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  list-style: none;
  counter-reset: none;
}
.step {
  position: relative;
  padding: 26px 24px 28px;
  border-radius: 20px;
  border: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.step:hover {
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}
.step-n {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: #d7dee6;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  margin-bottom: 4px;
}
.step p {
  color: var(--muted);
  font-size: 0.97rem;
}

/* ------------------------------------------------------------------ splits */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
  position: relative;
  z-index: 1;
}
.split-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}
.split-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.split.reverse .split-copy {
  order: 2;
}
.split.reverse .split-stage {
  order: 1;
}

.points {
  display: flex;
  flex-direction: column;
  gap: 13px;
  list-style: none;
}
.point {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 1rem;
  color: #cbd2da;
}
.tick {
  width: 21px;
  height: 21px;
  border-radius: 50%;
  flex: 0 0 21px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8ecf1' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5 10 17.5 19 7'/%3E%3C/svg%3E");
  background-size: 13px 13px;
  background-repeat: no-repeat;
  background-position: center;
}

.arrow {
  color: var(--dim);
}
.stage-caption {
  font-size: 0.9rem;
  color: #8f98a3;
  text-align: center;
  max-width: 30em;
}
.stage-caption.arrow-up {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--dim);
}

.code-plate {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  font: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.code-plate:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.09);
}
.code-plate-text {
  font-size: clamp(1.6rem, 3.6vw, 2.35rem);
  font-weight: 700;
  letter-spacing: 0.22em;
}

/* --------------------------------------------------------------- timelines */
.timelines {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 440px;
}
.member-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--glass);
}
.member-body {
  flex: 1;
  min-width: 0;
}
.member-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  margin-bottom: 8px;
}
.member-name {
  font-weight: 600;
}
/* One stroke through all three playheads is the whole argument. */
.playhead {
  position: absolute;
  left: calc(18px + 26px + 14px + (100% - 18px - 26px - 14px - 18px) * 0.42);
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.3));
  opacity: 0.6;
}

/* ------------------------------------------------------------------ install */
.install {
  border-radius: 26px;
  border: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  padding: clamp(36px, 6vw, 64px) clamp(24px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  gap: 26px;
  align-items: center;
}
.install-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
.fineprint {
  font-size: 0.85rem;
  color: var(--dim);
  max-width: 40em;
}
.manual {
  width: 100%;
  max-width: 620px;
  border-radius: 16px;
  border: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, 0.25);
}
.manual summary,
.faq summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.manual summary::-webkit-details-marker,
.faq summary::-webkit-details-marker {
  display: none;
}
.manual summary::after,
.faq summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--muted);
  line-height: 1;
  transition: transform 0.2s ease;
}
.manual[open] summary::after,
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.manual-body {
  padding: 0 20px 20px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.manual-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 20px;
  font-size: 0.95rem;
}
.manual-steps b {
  color: var(--ink);
}

/* ----------------------------------------------------------------- code card */
.code-card {
  width: 100%;
  max-width: 520px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(10, 10, 12, 0.85);
  box-shadow: 0 30px 70px -24px rgba(0, 0, 0, 0.9);
}
.code-card-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line-soft);
}
.code-card-bar span[class^="dot-"] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-red { background: #ff5f57; }
.dot-amber { background: #febc2e; }
.dot-green { background: #28c840; }
.code-card-name {
  margin-left: 8px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dim);
}
.code-block {
  margin: 0;
  padding: 18px;
  overflow-x: auto;
  font-family: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.75;
  color: #dfe5ec;
  white-space: pre;
}
.c-dim { color: #6a7481; }
.c-flag { color: #7fd7ff; }
.c-str { color: #8df0ba; }

/* ------------------------------------------------------------------ faq */
.faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq details {
  border-radius: 16px;
  border: 1px solid var(--line-soft);
  background: var(--glass);
  transition: border-color 0.2s ease;
}
.faq details[open] {
  border-color: rgba(255, 255, 255, 0.18);
}
.faq p {
  padding: 0 20px 18px;
  color: var(--muted);
  max-width: 62ch;
}
.faq a {
  color: var(--muted-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ------------------------------------------------------------------ closer */
.closer {
  position: relative;
  padding: clamp(72px, 10vw, 120px) 0;
  overflow: hidden;
  border-top: 1px solid var(--line-soft);
}
.closer-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}

/* ------------------------------------------------------------------ footer */
.footer {
  border-top: 1px solid var(--line-soft);
  padding: 40px 0 56px;
  background: rgba(0, 0, 0, 0.4);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  text-align: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  font-size: 0.93rem;
  color: var(--muted);
}
.footer-links a:hover {
  color: var(--ink);
}

/* ------------------------------------------------------------------ toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 12px);
  padding: 11px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: #08080a;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.9);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 60;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ------------------------------------------------------------------ reveal */
/* Only ever hidden once the script has claimed the page — content that depends on an observer
   firing to become visible at all is content that disappears when anything goes wrong. */
.js .reveal:not(.in) {
  opacity: 0;
  transform: translateY(18px);
}
.js .reveal {
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* ------------------------------------------------------------------ responsive */
@media (max-width: 980px) {
  .hero-inner,
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
  .split.reverse .split-copy,
  .split.reverse .split-stage {
    order: initial;
  }
  .split-copy {
    align-items: center;
    text-align: center;
  }
  .split-copy .lede {
    margin-inline: auto;
  }
  .points {
    align-items: flex-start;
  }
  .hero-copy {
    align-items: center;
    text-align: center;
  }
  .hero-copy .lede {
    margin-inline: auto;
  }
  .lockup {
    justify-content: center;
  }
  .cta-row,
  .badges {
    justify-content: center;
  }
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
  .nav-links {
    display: none;
  }
}

@media (max-width: 480px) {
  :root {
    --pad: 18px;
  }
  /* At this size a 460px glow is the entire screen washed violet. */
  .glow {
    width: 320px !important;
    height: 320px !important;
    filter: blur(70px);
    opacity: 0.4;
  }
  .panel {
    width: 100%;
    max-width: 320px;
  }
  .note {
    white-space: normal;
  }
  .code-block {
    font-size: 0.74rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .float {
    animation: none;
  }
  .js .reveal,
  .js .reveal:not(.in) {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn:hover,
  .step:hover {
    transform: none;
  }
}
