/* DevSpace website — one stylesheet for every page. Matches the extension: dusk gradient, frosted glass, violet accent. */

@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #090b16;
  --fg: #eceff6;
  --muted: #a2aabc;
  --faint: #727a8e;
  --accent: #8b6cff;
  --accent-2: #5b8cff;
  --accent-soft: rgb(139 108 255 / 0.16);
  --glass: rgb(26 30 48 / 0.55);
  --glass-strong: rgb(26 30 48 / 0.78);
  --line: rgb(255 255 255 / 0.08);
  --line-strong: rgb(255 255 255 / 0.14);
  --radius: 22px;
  --shadow: 0 1px 1px rgb(0 0 0 / 0.14), 0 18px 50px -18px rgb(0 0 0 / 0.65);
  --max: 1140px;
  --spring: cubic-bezier(0.3, 1.3, 0.5, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* The dusk sky behind every page. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60rem 40rem at 15% -10%, rgb(139 108 255 / 0.32), transparent 60%),
    radial-gradient(50rem 36rem at 95% 5%, rgb(91 140 255 / 0.22), transparent 60%),
    radial-gradient(60rem 40rem at 50% 115%, rgb(236 112 160 / 0.16), transparent 60%),
    linear-gradient(180deg, #0d1022 0%, #12142b 45%, #0b0d1a 100%);
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}
h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 750;
}
h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 700;
}
h3 {
  font-size: 1.125rem;
  font-weight: 650;
}
p {
  margin: 0 0 1em;
}

.container {
  width: min(var(--max), 100% - 2.5rem);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
}
.skip:focus {
  left: 0.5rem;
}

.gradient-text {
  background: linear-gradient(120deg, #fff 10%, #c9b8ff 45%, #8fb2ff 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--glass);
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 550;
  backdrop-filter: blur(14px);
}
.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px #34d399;
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--muted);
  max-width: 40rem;
}

/* ------------------------------------------------------------------ glass */

.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 1px 0 rgb(255 255 255 / 0.05);
  backdrop-filter: blur(22px) saturate(1.6);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
}

/* ---------------------------------------------------------------- buttons */

/*
 * Liquid glass. Every button is a pill of glass: a light blur + saturation of
 * whatever is behind it, a specular rim (::before) and a soft light that follows
 * the pointer (::after). In Chromium (Chrome, Brave, Edge) site.js also adds
 * --lg-refract, an SVG displacement filter that bends the backdrop near the
 * edges like a real lens. Other browsers get the same glass without the bend.
 */
.btn {
  --btn-fill: rgb(255 255 255 / 0.07);
  --btn-glow: rgb(0 0 0 / 0.5);
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  height: 3rem;
  padding: 0 1.4rem;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 0.975rem;
  font-weight: 600;
  color: var(--fg);
  cursor: pointer;
  text-decoration: none !important;
  background: var(--btn-fill);
  -webkit-backdrop-filter: blur(3px) saturate(1.8) brightness(1.1);
  backdrop-filter: var(--lg-refract,) blur(3px) saturate(1.8) brightness(1.1);
  box-shadow:
    inset 0 0 0 0.5px rgb(255 255 255 / 0.22),
    inset 0 1px 1px rgb(255 255 255 / 0.28),
    inset 0 -10px 18px -12px rgb(255 255 255 / 0.22),
    0 10px 28px -12px var(--btn-glow);
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 500ms var(--spring),
    background 200ms,
    box-shadow 250ms;
}
/* Specular rim: bright where light hits (top-left), a softer echo bottom-right. */
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgb(255 255 255 / 0.75),
    rgb(255 255 255 / 0.12) 30%,
    rgb(255 255 255 / 0) 52%,
    rgb(255 255 255 / 0.1) 75%,
    rgb(255 255 255 / 0.45)
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
/* Light that follows the pointer (site.js sets --mx / --my). */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(7rem circle at var(--mx, 50%) var(--my, 30%), rgb(255 255 255 / 0.3), transparent 65%);
  opacity: 0;
  transition: opacity 350ms;
  pointer-events: none;
}
.btn:hover::after {
  opacity: 1;
}
.btn:hover {
  transform: translateY(-1px);
}
/* Pressing squishes the glass; the spring makes it wobble back. */
.btn:active {
  transform: scale(1.04, 0.94);
  transition-duration: 120ms;
}
.btn:active::after {
  opacity: 1;
}
.btn svg {
  width: 1.15rem;
  height: 1.15rem;
}
.btn-primary {
  --btn-fill: linear-gradient(160deg, rgb(165 141 255 / 0.62), rgb(139 108 255 / 0.48) 55%, rgb(108 79 230 / 0.66));
  --btn-glow: rgb(139 108 255 / 0.85);
  color: #fff;
  text-shadow: 0 1px 2px rgb(40 20 110 / 0.35);
}
.btn-primary:hover {
  --btn-fill: linear-gradient(160deg, rgb(175 153 255 / 0.72), rgb(149 120 255 / 0.58) 55%, rgb(118 89 240 / 0.74));
}
.btn-ghost:hover {
  --btn-fill: rgb(255 255 255 / 0.12);
}
/* No backdrop blur available, or the user asked for less transparency: go solid. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .btn-ghost {
    --btn-fill: var(--glass-strong);
  }
  .btn-primary {
    --btn-fill: linear-gradient(160deg, #a58dff, var(--accent) 55%, #6c4fe6);
  }
}
@media (prefers-reduced-transparency: reduce) {
  .btn {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .btn-ghost {
    --btn-fill: var(--glass-strong);
  }
  .btn-primary {
    --btn-fill: linear-gradient(160deg, #a58dff, var(--accent) 55%, #6c4fe6);
  }
}
.btn-sm {
  height: 2.4rem;
  padding: 0 1rem;
  font-size: 0.875rem;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* ----------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0.85rem 0;
  transition: background-color 300ms, border-color 300ms;
  border-bottom: 1px solid transparent;
}
.site-header[data-scrolled] {
  background: rgb(12 14 30 / 0.72);
  border-bottom-color: var(--line);
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--fg);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}
.brand:hover {
  text-decoration: none;
}
.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}
.brand small {
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--faint);
}
.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}
.nav a {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.925rem;
  font-weight: 500;
}
.nav a:hover,
.nav a[aria-current='page'] {
  color: var(--fg);
  background: rgb(255 255 255 / 0.06);
  text-decoration: none;
}
.nav .btn {
  margin-left: 0.5rem;
}
/* Nav link colours must not leak onto the install button. */
.nav a.btn-primary,
.nav a.btn-primary:hover {
  padding: 0 1rem;
  color: #fff;
  background: var(--btn-fill);
}
.menu-toggle {
  display: none;
  margin-left: auto;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--glass);
  color: var(--fg);
  cursor: pointer;
}
.menu-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
}

@media (max-width: 820px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .nav {
    position: absolute;
    top: calc(100% + 0.25rem);
    left: 1rem;
    right: 1rem;
    flex-direction: column;
    align-items: stretch;
    padding: 0.6rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgb(16 18 36 / 0.96);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav[data-open] {
    display: flex;
  }
  .nav a {
    padding: 0.7rem 0.9rem;
  }
  .nav .btn {
    margin: 0.3rem 0 0;
  }
}

/* ------------------------------------------------------------------- hero */

.hero {
  padding: clamp(3rem, 8vw, 6rem) 0 3rem;
  text-align: center;
}
.hero .lead {
  margin-inline: auto;
}
.hero .btn-row {
  justify-content: center;
  margin-top: 2rem;
}
.hero-note {
  margin-top: 1rem;
  color: var(--faint);
  font-size: 0.875rem;
}
.hero-note span + span::before {
  content: '·';
  margin: 0 0.5rem;
}

/* A browser window around the screenshot, with the monkeys sitting on it. */
.showcase {
  position: relative;
  margin: 3.5rem auto 0;
  max-width: 1040px;
}
.showcase::before {
  content: '';
  position: absolute;
  inset: 10% 8% -6%;
  z-index: -1;
  background: radial-gradient(closest-side, rgb(139 108 255 / 0.45), transparent);
  filter: blur(40px);
}
.window {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: #11132a;
  box-shadow: 0 40px 120px -30px rgb(0 0 0 / 0.8), 0 0 0 1px rgb(255 255 255 / 0.04);
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  height: 2.4rem;
  padding: 0 0.9rem;
  background: rgb(255 255 255 / 0.04);
  border-bottom: 1px solid var(--line);
}
.window-bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff5f57;
}
.window-bar i:nth-child(2) {
  background: #febc2e;
}
.window-bar i:nth-child(3) {
  background: #28c840;
}
.window-bar .url {
  flex: 1;
  max-width: 22rem;
  margin: 0 auto;
  padding: 0.2rem 0.8rem;
  border-radius: 8px;
  background: rgb(255 255 255 / 0.06);
  color: var(--faint);
  font-size: 0.75rem;
  text-align: center;
}
.perched {
  position: absolute;
  width: clamp(34px, 4.5vw, 54px);
  z-index: 2;
}
.perched.left {
  top: 0;
  left: 12%;
  transform: translateY(-96%);
}
.perched.right {
  top: 0;
  right: 16%;
  transform: translateY(-96%) scaleX(-1);
}

/* --------------------------------------------------------------- sections */

section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}
.section-head {
  max-width: 42rem;
  margin: 0 auto 3rem;
  text-align: center;
}
.section-head p {
  color: var(--muted);
  font-size: 1.075rem;
}

.grid {
  display: grid;
  gap: 1.1rem;
}
.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(min(16.5rem, 100%), 1fr));
}
.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(min(22rem, 100%), 1fr));
}

.card {
  padding: 1.5rem;
  transition:
    transform 400ms var(--spring),
    border-color 300ms;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* macOS-style app tile icons for features. */
.tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 1rem;
  border-radius: 13px;
  color: #fff;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.35), 0 10px 22px -10px rgb(0 0 0 / 0.7);
}
.tile svg {
  width: 23px;
  height: 23px;
}
.t-violet { background: linear-gradient(160deg, #a78bfa, #7c3aed); }
.t-indigo { background: linear-gradient(160deg, #818cf8, #4f46e5); }
.t-blue { background: linear-gradient(160deg, #60a5fa, #2563eb); }
.t-cyan { background: linear-gradient(160deg, #22d3ee, #0891b2); }
.t-green { background: linear-gradient(160deg, #4ade80, #16a34a); }
.t-amber { background: linear-gradient(160deg, #fbbf24, #ea7c0c); }
.t-rose { background: linear-gradient(160deg, #fb7185, #e11d48); }
.t-slate { background: linear-gradient(160deg, #94a3b8, #475569); }
.t-pink { background: linear-gradient(160deg, #f472b6, #db2777); }

/* Feature split rows (text + image). */
.split {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}
.split.reverse {
  grid-template-columns: 1.25fr 1fr;
}
.split.reverse > :first-child {
  order: 2;
}
.split img {
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 80px -30px rgb(0 0 0 / 0.8);
}
@media (max-width: 860px) {
  .split,
  .split.reverse {
    grid-template-columns: 1fr;
  }
  .split.reverse > :first-child {
    order: 0;
  }
}

.checks {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}
.checks li {
  position: relative;
  padding-left: 1.9rem;
  color: var(--muted);
}
.checks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.2rem;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b9a6ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 0.75rem no-repeat;
}
.checks b {
  color: var(--fg);
  font-weight: 600;
}

/* Keyboard keys and code. */
kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.6rem;
  height: 1.6rem;
  padding: 0 0.4rem;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: rgb(255 255 255 / 0.06);
  color: var(--fg);
  font: 600 0.75rem/1 'Inter', sans-serif;
}
code {
  padding: 0.12rem 0.4rem;
  border-radius: 6px;
  background: rgb(255 255 255 / 0.07);
  color: #d6ccff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.875em;
}
.terminal {
  padding: 1.25rem 1.4rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.925rem;
  line-height: 1.9;
  color: var(--muted);
  overflow-x: auto;
}
.terminal .p {
  color: var(--accent);
}
.terminal .t {
  color: #fbbf24;
}
.terminal .g {
  color: #34d399;
}
.terminal .c {
  color: var(--faint);
}

/* Gallery. */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr));
  gap: 1.1rem;
}
.gallery figure {
  margin: 0;
}
.gallery img {
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 24px 60px -28px rgb(0 0 0 / 0.8);
  transition: transform 400ms var(--spring);
}
.gallery a:hover img {
  transform: translateY(-4px) scale(1.01);
}
.gallery figcaption {
  margin-top: 0.6rem;
  color: var(--faint);
  font-size: 0.85rem;
  text-align: center;
}

/* Monkeys section. */
.monkeys {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.monkeys img {
  width: 72px;
}
.monkeys img.small {
  width: 60px;
}

/* Privacy band. */
.band {
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
}
.band .grid {
  margin-top: 2rem;
  text-align: left;
}
.stat {
  padding: 1.1rem 1.2rem;
  border-radius: 16px;
  background: rgb(255 255 255 / 0.035);
  border: 1px solid var(--line);
}
.stat b {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}
.stat span {
  color: var(--muted);
  font-size: 0.9rem;
}

/* FAQ. */
.faq {
  max-width: 48rem;
  margin: 0 auto;
  display: grid;
  gap: 0.75rem;
}
.faq details {
  padding: 0;
  overflow: hidden;
}
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.35rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  color: var(--accent);
  font-size: 1.3rem;
  line-height: 1;
  transition: transform 300ms var(--spring);
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  margin: 0;
  padding: 0 1.35rem 1.2rem;
  color: var(--muted);
}

/* Big call to action. */
.cta {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4.5rem) 1.5rem;
  text-align: center;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  inset: -40% 20% auto;
  height: 22rem;
  background: radial-gradient(closest-side, rgb(139 108 255 / 0.35), transparent);
  pointer-events: none;
}
.cta .btn-row {
  justify-content: center;
  margin-top: 1.75rem;
}

/* ------------------------------------------------------------ prose pages */

.page-hero {
  padding: clamp(3rem, 7vw, 5rem) 0 1.5rem;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.2rem);
}
.page-hero .lead {
  margin-inline: auto;
}
.prose {
  max-width: 48rem;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem);
}
.prose h2 {
  font-size: 1.35rem;
  margin-top: 2.2rem;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose p,
.prose li {
  color: var(--muted);
}
.prose strong,
.prose b {
  color: var(--fg);
}
.prose ul {
  padding-left: 1.2rem;
}
.prose li {
  margin-bottom: 0.4rem;
}
.prose .updated {
  color: var(--faint);
  font-size: 0.9rem;
}
.table-wrap {
  overflow-x: auto;
  margin: 1rem 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.925rem;
}
th,
td {
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
th {
  color: var(--fg);
  font-weight: 600;
}
td {
  color: var(--muted);
}
.callout {
  margin: 1.5rem 0;
  padding: 1rem 1.2rem;
  border-radius: 14px;
  border: 1px solid rgb(139 108 255 / 0.3);
  background: var(--accent-soft);
  color: var(--fg);
}
.callout p {
  margin: 0;
  color: var(--fg);
}

/* ---------------------------------------------------- welcome & uninstall */

.steps {
  counter-reset: step;
  display: grid;
  gap: 1rem;
}
.step {
  position: relative;
  padding: 1.35rem 1.4rem 1.35rem 4.4rem;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 1.3rem;
  top: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: linear-gradient(160deg, #a58dff, var(--accent));
  color: #fff;
  font-weight: 700;
  box-shadow: 0 8px 20px -8px rgb(139 108 255 / 0.9);
}
.step h3 {
  margin-bottom: 0.3rem;
}
.step p {
  margin: 0;
  color: var(--muted);
}

.confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 60;
  overflow: hidden;
}
.confetti i {
  position: absolute;
  top: -12px;
  width: 8px;
  height: 14px;
  border-radius: 2px;
  opacity: 0.9;
  animation: fall linear forwards;
}
@keyframes fall {
  to {
    transform: translateY(110vh) rotate(720deg);
    opacity: 0.9;
  }
}

.reasons {
  display: grid;
  gap: 0.6rem;
  margin: 1.25rem 0;
}
.reason {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgb(255 255 255 / 0.03);
  cursor: pointer;
  transition:
    border-color 200ms,
    background-color 200ms;
}
.reason:hover {
  border-color: var(--line-strong);
}
.reason:has(input:checked) {
  border-color: rgb(139 108 255 / 0.6);
  background: var(--accent-soft);
}
.reason input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--accent);
}
textarea {
  width: 100%;
  min-height: 7rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgb(255 255 255 / 0.04);
  color: var(--fg);
  font: inherit;
  resize: vertical;
}
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgb(139 108 255 / 0.18);
}
.form-note {
  color: var(--faint);
  font-size: 0.85rem;
}
.thanks {
  display: none;
  text-align: center;
}
.thanks[data-show] {
  display: block;
}

/* ----------------------------------------------------------------- footer */

.site-footer {
  margin-top: 3rem;
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.9rem;
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
}
.site-footer a {
  color: var(--muted);
}
.site-footer a:hover {
  color: var(--fg);
}

/* "by LORKA": the official horizontal logo (lorka-logo-package, for dark backgrounds).
   Never narrower than 100px, per the brand guide. */
.lorka-link {
  display: inline-flex;
  vertical-align: middle;
  border-radius: 6px;
  transition: opacity 200ms, filter 200ms;
}
.lorka-link:hover {
  text-decoration: none;
  filter: brightness(1.15);
}
.lorka-logo {
  display: block;
  width: auto;
  height: 31px;
  max-width: none;
}
.made-by {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35em;
}
.lorka-logo--heading {
  height: 1.6em;
}

/* ------------------------------------------------------------- utilities */

.center {
  text-align: center;
}
.mt-0 {
  margin-top: 0;
}
.muted {
  color: var(--muted);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Only hidden when JS is running to reveal it again (see site.js), so content never stays invisible. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 700ms ease,
    transform 700ms var(--spring);
}
.js .reveal[data-in] {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Winter: falling snow that settles on cards (assets/js/snow.js). Above the page, under the header (50). */
.snow-layer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 45;
  pointer-events: none;
}
