/* ==========================================================================
   Public site. Builds on ui.css; every colour comes from the token set.
   ========================================================================== */

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }

/* ---------------------------------------------------------------- header - */
.topbar {
  position: sticky; top: 0; z-index: 60;
  background: hsl(var(--background) / .8);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid hsl(var(--border));
}
.topbar .wrap { display: flex; align-items: center; gap: 0.75rem; height: 3.75rem; }

.brand { display: flex; align-items: center; gap: 0.625rem; font-weight: 600; font-size: 1rem; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 1.75rem; height: 1.75rem; border-radius: 0.5rem; display: block; flex: none; }

.nav { display: flex; align-items: center; gap: 0.125rem; margin-inline-start: 1rem; }
.nav a {
  padding: 0.4375rem 0.75rem; border-radius: calc(var(--radius) - 2px);
  font-size: 0.875rem; color: hsl(var(--muted-foreground)); font-weight: 450;
}
.nav a:hover { color: hsl(var(--foreground)); background: hsl(var(--accent)); text-decoration: none; }
.nav a.on { color: hsl(var(--foreground)); font-weight: 550; }
.spacer { flex: 1; }

.icon-btn {
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem; flex: none;
  border: 1px solid transparent; border-radius: calc(var(--radius) - 2px);
  background: none; color: hsl(var(--muted-foreground)); cursor: pointer;
}
.icon-btn:hover { background: hsl(var(--accent)); color: hsl(var(--foreground)); }

.lang { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 0.375rem; height: 2.25rem; padding: 0 0.625rem;
  background: none; border: 1px solid hsl(var(--border)); border-radius: calc(var(--radius) - 2px);
  color: hsl(var(--foreground)); font: inherit; font-size: 0.8125rem; cursor: pointer;
}
.lang-btn:hover { background: hsl(var(--accent)); }
.lang-menu {
  position: absolute; inset-inline-end: 0; top: calc(100% + 0.5rem); min-width: 11rem;
  background: hsl(var(--popover)); color: hsl(var(--popover-foreground));
  border: 1px solid hsl(var(--border)); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 0.25rem; display: none; z-index: 70;
}
.lang-menu.open { display: block; }
.lang-menu a {
  display: flex; align-items: center; gap: 0.625rem;
  padding: 0.5rem 0.625rem; border-radius: calc(var(--radius) - 4px); font-size: 0.875rem;
}
.lang-menu a:hover { background: hsl(var(--accent)); text-decoration: none; }
.lang-menu a.on { font-weight: 550; }
.lang-menu a.on::after { content: "✓"; margin-inline-start: auto; color: hsl(var(--primary)); }

.burger {
  display: none; place-items: center; width: 2.25rem; height: 2.25rem; flex: none;
  background: none; border: 1px solid hsl(var(--border)); border-radius: calc(var(--radius) - 2px);
  color: hsl(var(--foreground)); cursor: pointer;
}
.burger:hover { background: hsl(var(--accent)); }
.burger .close { display: none; }
body.sheet-open .burger .open { display: none; }
body.sheet-open .burger .close { display: block; }

/* ------------------------------------------------------------------ hero - */
.hero { padding: 6rem 0 4.5rem; border-bottom: 1px solid hsl(var(--border)); position: relative; overflow: hidden; }

.hero h1 { font-size: clamp(2.25rem, 6vw, 4rem); letter-spacing: -0.04em; max-width: 18ch; line-height: 1.1; }
.hero h1 small {
  display: block; margin-top: 1.5rem; max-width: 46ch;
  font-size: clamp(1.0625rem, 2vw, 1.25rem); font-weight: 400; letter-spacing: -0.01em;
  color: hsl(var(--muted-foreground)); line-height: 1.6;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem; margin-bottom: 1.75rem;
  padding: 0.3125rem 0.75rem; border-radius: 999px;
  border: 1px solid hsl(var(--border)); background: hsl(var(--card));
  font-size: 0.8125rem; color: hsl(var(--muted-foreground)); box-shadow: var(--shadow-sm);
}
.hero-badge b { color: hsl(var(--foreground)); font-weight: 550; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.5rem; }

/* --------------------------------------------------------------- sections- */
section { padding: 5.5rem 0; border-bottom: 1px solid hsl(var(--border)); }
section:last-of-type { border-bottom: 0; }
h2 { letter-spacing: -0.025em; }
.rule { display: none; }

.about-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 2.5rem; align-items: start; }
.stack { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin-top: 1.5rem; }
.stack-item {
  display: flex; gap: 0.75rem; align-items: flex-start; padding: 1rem;
  background: hsl(var(--card)); border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
}
.stack-item .icon { color: hsl(var(--primary)); margin-top: 0.1875rem; }
.stack-item b { display: block; font-size: 0.875rem; font-weight: 550; }
.stack-item span { font-size: 0.8125rem; color: hsl(var(--muted-foreground)); line-height: 1.6; }
.panel { padding: 1.5rem; }
.panel ul { margin: 0.75rem 0 0; padding-inline-start: 1.125rem; color: hsl(var(--muted-foreground)); font-size: 0.875rem; }
.panel li { margin-bottom: 0.5rem; }
.panel li::marker { color: hsl(var(--primary)); }

/* ------------------------------------------------------------- downloads - */
.dl { background: hsl(var(--muted) / .3); }
.dl-head { margin-bottom: 1.75rem; }
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: stretch; }

.card { padding: 1.75rem; display: flex; flex-direction: column; gap: 0.875rem; position: relative; }
.card.ready { border-color: hsl(var(--primary) / .4); }
.card.wait { background: hsl(var(--card) / .6); }
.card.wait .os > svg { opacity: .55; filter: grayscale(1); }
.dark .card.wait .os > svg { filter: grayscale(1) invert(1) brightness(1.4); opacity: .5; }

/* the "coming soon" tag sits at the start of the card, not across it */
.card > .soon { align-self: flex-start; }

.os { display: flex; align-items: center; gap: 0.75rem; }
.os > svg { width: 2rem; height: 2rem; flex: none; }
.os-name { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; }
.os-ver { font-family: var(--font-mono); font-size: 0.75rem; color: hsl(var(--muted-foreground)); }
.meta { font-size: 0.8125rem; color: hsl(var(--muted-foreground)); margin: 0; }
.count { display: inline-flex; align-items: center; gap: 0.375rem; font-size: 0.75rem; color: hsl(var(--muted-foreground)); }
.push { margin-top: auto; }
.card .btn { width: 100%; }
.hint { display: flex; gap: 0.5rem; align-items: flex-start; margin: 1.25rem 0 0;
        font-size: 0.8125rem; color: hsl(var(--muted-foreground)); }
.hint .icon { margin-top: 0.125rem; }

/* version dropdown -------------------------------------------------------- */
.vpick { position: relative; margin-top: 0.5rem; }
.vpick-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; width: 100%;
  height: 2.25rem; padding: 0 0.75rem; text-align: start;
  background: hsl(var(--background)); color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border)); border-radius: calc(var(--radius) - 2px);
  font: inherit; font-size: 0.8125rem; cursor: pointer;
}
.vpick-btn:hover { background: hsl(var(--accent)); }
.vpick-btn .lbl { display: flex; align-items: center; gap: 0.5rem; min-width: 0; color: hsl(var(--muted-foreground)); }
.vpick-btn .lbl b { color: hsl(var(--foreground)); font-weight: 550; }
.vpick-btn .chev { transition: transform .15s; }
.vpick.open .chev { transform: rotate(180deg); }
.vpick-menu {
  position: absolute; inset-inline: 0; top: calc(100% + 0.375rem); z-index: 20;
  background: hsl(var(--popover)); border: 1px solid hsl(var(--border));
  border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 0.25rem;
  display: none; max-height: 17rem; overflow: auto;
}
.vpick.open .vpick-menu { display: block; }
.vpick-menu button {
  display: flex; align-items: center; justify-content: space-between; gap: 0.625rem; width: 100%;
  padding: 0.5rem 0.625rem; border: 0; border-radius: calc(var(--radius) - 4px);
  background: none; color: hsl(var(--popover-foreground)); font: inherit; font-size: 0.8125rem;
  cursor: pointer; text-align: start;
}
.vpick-menu button:hover { background: hsl(var(--accent)); }
.vpick-menu button.on { background: hsl(var(--primary-soft)); color: hsl(var(--primary)); font-weight: 550; }
.vnote { padding: 0.5rem 0.625rem; margin-top: 0.25rem; border-top: 1px solid hsl(var(--border));
         font-size: 0.75rem; color: hsl(var(--muted-foreground)); line-height: 1.6; }

/* ----------------------------------------------- ratings and newsletter -- */
.after-download { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1rem; margin-top: 1.75rem; align-items: start; }
.rating-panel, .subscribe-panel {
  background: hsl(var(--card)); border: 1px solid hsl(var(--border));
  border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm);
}
.rating-panel h3, .subscribe-panel h3 { margin-bottom: 1rem; }
.rating-top { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.rating-figure { text-align: center; }
.rating-avg { display: block; font-size: 2.5rem; font-weight: 600; line-height: 1; letter-spacing: -0.04em; }
.rating-count { display: block; font-size: 0.75rem; color: hsl(var(--muted-foreground)); margin-top: 0.5rem; }
.rating-bars { flex: 1; min-width: 10rem; display: grid; gap: 0.25rem; }
.rating-bar { display: flex; align-items: center; gap: 0.5rem; font-size: 0.6875rem;
              color: hsl(var(--muted-foreground)); font-family: var(--font-mono); }
.rating-bar .track { flex: 1; height: 0.375rem; background: hsl(var(--muted)); border-radius: 999px; overflow: hidden; }
.rating-bar .track i { display: block; height: 100%; background: hsl(38 92% 50%); border-radius: 999px; }
.reviews { display: grid; gap: 0.875rem; margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid hsl(var(--border)); }
.review blockquote { margin: 0.375rem 0 0; font-size: 0.875rem; color: hsl(var(--muted-foreground)); line-height: 1.7; }
.rating-note, .subscribe-note { margin: 1rem 0 0; font-size: 0.75rem; color: hsl(var(--muted-foreground)); }

.subscribe-panel p { color: hsl(var(--muted-foreground)); font-size: 0.875rem; }
.subscribe-form { display: flex; gap: 0.5rem; }
.subscribe-form input { flex: 1; min-width: 0; }
.subscribe-form .btn { flex: none; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------------------------------------------------------- update links - */
.update-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: 0.875rem; margin-top: 1.25rem; }
.update-box { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: var(--radius); padding: 1.25rem; }
.update-os { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.update-os > svg { width: 1.75rem; height: 1.75rem; flex: none; }
.update-os-name { font-weight: 600; font-size: 0.9375rem; }
.update-k { font-size: 0.75rem; color: hsl(var(--muted-foreground)); }
.update-v { font-size: 1.25rem; font-weight: 600; }
.update-meta { display: flex; align-items: baseline; gap: 0.5rem; margin-bottom: 1rem;
               padding-bottom: 0.875rem; border-bottom: 1px solid hsl(var(--border)); }
.update-note { margin-top: 1rem; font-size: 0.8125rem; color: hsl(var(--muted-foreground)); }

/* ------------------------------------------------------------------ tools- */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 1rem; margin-top: 1.25rem; }
.tool { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: var(--radius);
        padding: 1.25rem; display: flex; flex-direction: column; gap: 0.875rem; box-shadow: var(--shadow-sm); }
.tool-head { display: flex; gap: 0.75rem; align-items: center; }
.tool-icon { width: 2.5rem; height: 2.5rem; border-radius: 0.625rem; object-fit: contain; flex: none;
             background: hsl(var(--muted)); border: 1px solid hsl(var(--border)); }
.tool-initials { display: grid; place-items: center; font-weight: 600; font-size: 0.875rem;
                 color: hsl(var(--primary)); background: hsl(var(--primary-soft)); border-color: hsl(var(--primary) / .25); }
.tool h3 { font-size: 0.9375rem; }
.tool-meta { font-family: var(--font-mono); font-size: 0.6875rem; color: hsl(var(--muted-foreground)); margin-top: 0.125rem; }
.tool-summary { margin: 0; font-size: 0.875rem; color: hsl(var(--muted-foreground)); line-height: 1.65; flex: 1; }
.tool-foot { display: flex; align-items: center; gap: 0.75rem; }
.tool-foot .btn { width: auto; }
.tool-link { font-size: 0.8125rem; color: hsl(var(--muted-foreground)); }
.tool-license { font-size: 0.75rem; color: hsl(var(--muted-foreground));
                padding-top: 0.75rem; border-top: 1px solid hsl(var(--border)); }

/* -------------------------------------------------------- news and cols -- */
.news { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: var(--radius);
        padding: 1.5rem; border-inline-start: 2px solid hsl(var(--primary)); }
.news .date { font-family: var(--font-mono); font-size: 0.75rem; color: hsl(var(--muted-foreground)); }
.news pre { font: inherit; white-space: pre-wrap; margin: 0.75rem 0 0;
            color: hsl(var(--muted-foreground)); font-size: 0.875rem; }
.cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; margin-top: 2.5rem; }
.cols p { color: hsl(var(--muted-foreground)); font-size: 0.875rem; }

/* ------------------------------------------------------------------ team - */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.member { background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: var(--radius);
          padding: 1.5rem; text-align: center; }
.member img, .member .no-photo { width: 5rem; height: 5rem; border-radius: 999px; object-fit: cover;
                                 margin: 0 auto 1rem; display: block; }
.member .no-photo { display: grid; place-items: center; background: hsl(var(--primary-soft));
                    color: hsl(var(--primary)); font-size: 1.5rem; font-weight: 600; }
.member h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.member .role { font-size: 0.8125rem; color: hsl(var(--primary)); font-weight: 500; margin: 0 0 0.75rem; }
.member .bio { font-size: 0.8125rem; color: hsl(var(--muted-foreground)); line-height: 1.7; margin: 0; }
.member .links { display: flex; gap: 1rem; justify-content: center; margin-top: 0.875rem; font-size: 0.8125rem; }

/* --------------------------------------------------------------- contact - */
.contact-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 2.5rem; align-items: start; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.ffield { margin-bottom: 1.125rem; }
.ffield label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.4375rem; }
.ffield label span { color: hsl(var(--primary)); }
.ffield small { display: block; font-size: 0.75rem; color: hsl(var(--muted-foreground));
                margin-top: 0.4375rem; line-height: 1.55; }
.ffield textarea { min-height: 10rem; }

/* ----------------------------------------------------------------- prose - */
.prose { max-width: 44rem; font-size: 1rem; line-height: 1.75; }
.prose h2 { font-size: 1.375rem; margin: 2.5rem 0 0.75rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.0625rem; margin: 2rem 0 0.5rem; }
.prose p { margin: 0 0 1.125rem; color: hsl(var(--foreground) / .85); }
.prose ul, .prose ol { margin: 0 0 1.25rem; padding-inline-start: 1.375rem; color: hsl(var(--foreground) / .85); }
.prose li { margin-bottom: 0.5rem; }
.prose li::marker { color: hsl(var(--primary)); }
.prose a { color: hsl(var(--primary)); text-decoration: underline; text-underline-offset: 3px; }
.prose code { font-size: 0.875rem; background: hsl(var(--muted)); border: 1px solid hsl(var(--border));
              border-radius: 0.375rem; padding: 0.125rem 0.375rem; direction: ltr; display: inline-block; }
.prose pre { background: hsl(var(--muted)); border: 1px solid hsl(var(--border)); border-radius: var(--radius);
             padding: 1rem; overflow: auto; direction: ltr; text-align: start; }
.prose pre code { background: none; border: 0; padding: 0; }
.prose blockquote { border-inline-start: 3px solid hsl(var(--primary)); background: hsl(var(--muted) / .6);
                    margin: 0 0 1.25rem; padding: 0.875rem 1.25rem; border-radius: calc(var(--radius) - 2px);
                    color: hsl(var(--muted-foreground)); }
.prose table { margin-bottom: 1.25rem; }
.prose-foot { max-width: 44rem; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid hsl(var(--border));
              font-size: 0.8125rem; color: hsl(var(--muted-foreground)); }

/* ---------------------------------------------------------------- footer - */
footer { background: hsl(var(--muted) / .45); border-top: 1px solid hsl(var(--border)); padding: 2rem 0; }
footer .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center;
               font-size: 0.8125rem; color: hsl(var(--muted-foreground)); }
footer nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
footer a:hover { color: hsl(var(--foreground)); }

/* ------------------------------------------------------- simple + errors - */
.simple { max-width: 32rem; margin: 0 auto; text-align: center; padding: 4rem 1.25rem; }
.simple img { width: 4rem; height: 4rem; border-radius: 0.875rem; margin-bottom: 1.25rem; }
.simple h1 { margin-bottom: 0.75rem; }
.simple p { color: hsl(var(--muted-foreground)); margin-bottom: 1.5rem; }

.err-body { min-height: 100vh; display: grid; place-items: center; padding: 2.5rem 1.25rem; }
.err { text-align: center; max-width: 34rem; }
.err-art { display: flex; align-items: center; justify-content: center; gap: 0.375rem; margin-bottom: 1.75rem; }
.err-num { font-size: clamp(4rem, 14vw, 7rem); font-weight: 600; line-height: 1;
           color: hsl(var(--primary)); letter-spacing: -0.05em; }
.err-paw { width: clamp(4rem, 13vw, 6.5rem); height: clamp(4rem, 13vw, 6.5rem); margin: 0 0.25rem; }
.err-paw .paw-plate { fill: transparent; }
.err-paw .toe, .err-paw .pad { fill: hsl(var(--primary)); }   /* the orange paw, as in the logo */
.err h1 { margin-bottom: 0.625rem; }
.err-lead { color: hsl(var(--muted-foreground)); margin-bottom: 1.75rem; }
.err-actions { display: flex; gap: 0.625rem; justify-content: center; flex-wrap: wrap; }
.err-note { margin-top: 1.75rem; font-size: 0.8125rem; color: hsl(var(--muted-foreground)); }

/* ------------------------------------------------------------ responsive - */
@media (max-width: 60rem) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .dl-grid { grid-template-columns: repeat(2, 1fr); }
  .after-download { grid-template-columns: 1fr; }
}

@media (max-width: 48rem) {
  .burger { display: grid; place-items: center; }
  .nav { display: none; }

  .hero { padding: 3rem 0 2.5rem; }
  section { padding: 2.75rem 0; }
  .dl-grid, .stack, .cols, .frow { grid-template-columns: 1fr; }
  .subscribe-form { flex-direction: column; }
  .subscribe-form .btn { width: 100%; }
  .rating-top { justify-content: center; }
  .urlrow { flex-wrap: wrap; }
  .urlrow code { flex-basis: 100%; padding: 0.25rem 0; }
    footer .wrap { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

/* ---------------------------------------------------------------- sheet - */
.sheet-scrim {
  position: fixed; inset: 0; z-index: 79; background: hsl(240 10% 4% / .5);
  opacity: 0; visibility: hidden; transition: opacity .2s;
}
.sheet {
  position: fixed; top: 0; bottom: 0; inset-inline-end: 0; z-index: 80;
  width: min(20rem, 86vw); display: flex; flex-direction: column;
  background: hsl(var(--background)); border-inline-start: 1px solid hsl(var(--border));
  box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform .24s ease;
  visibility: hidden;
}
html[dir="rtl"] .sheet { transform: translateX(-100%); }

body.sheet-open .sheet { transform: translateX(0); visibility: visible; }
body.sheet-open .sheet-scrim { opacity: 1; visibility: visible; }
body.sheet-open { overflow: hidden; }

.sheet-head { display: flex; align-items: center; justify-content: space-between;
              padding: 0.875rem 1rem; border-bottom: 1px solid hsl(var(--border)); }
.sheet-title { font-size: 0.875rem; font-weight: 550; }
.sheet-nav { display: flex; flex-direction: column; padding: 0.5rem; gap: 0.125rem; flex: 1; overflow-y: auto; }
.sheet-nav a { padding: 0.75rem; border-radius: calc(var(--radius) - 2px); font-size: 0.9375rem; }
.sheet-nav a:hover { background: hsl(var(--accent)); text-decoration: none; }
.sheet-nav a.on { background: hsl(var(--primary-soft)); color: hsl(var(--primary)); font-weight: 550; }
.sheet-foot { padding: 1rem; border-top: 1px solid hsl(var(--border)); }
.sheet-label { display: block; font-size: 0.75rem; color: hsl(var(--muted-foreground)); margin-bottom: 0.5rem; }
.sheet-langs { display: flex; gap: 0.375rem; }
.sheet-langs a {
  flex: 1; text-align: center; padding: 0.5rem; font-size: 0.8125rem;
  border: 1px solid hsl(var(--border)); border-radius: calc(var(--radius) - 2px);
}
.sheet-langs a:hover { background: hsl(var(--accent)); text-decoration: none; }
.sheet-langs a.on { background: hsl(var(--primary-soft)); border-color: hsl(var(--primary) / .4);
                    color: hsl(var(--primary)); font-weight: 550; }

@media (min-width: 48.0625rem) { .sheet, .sheet-scrim { display: none; } }
@media (prefers-reduced-motion: reduce) { .sheet { transition: none; } }

/* ---------------------------------------------------------- changelog --- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; top: 0.75rem; bottom: 0.75rem;
  inset-inline-start: 0.4375rem; width: 1px; background: hsl(var(--border));
}
.release { position: relative; padding-inline-start: 2rem; padding-bottom: 2.5rem; }
.release:last-child { padding-bottom: 0; }
.release-mark {
  position: absolute; inset-inline-start: 0; top: 0.5rem;
  width: 0.9375rem; height: 0.9375rem; border-radius: 999px;
  background: hsl(var(--background)); border: 2px solid hsl(var(--border));
}
.release.highlight .release-mark { border-color: hsl(var(--primary)); background: hsl(var(--primary)); }

.release-head { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.release-version { font-size: 0.875rem; font-weight: 600; color: hsl(var(--primary)); }
.release-date { font-family: var(--font-mono); font-size: 0.75rem; color: hsl(var(--muted-foreground)); }
.release h2 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.release-summary { color: hsl(var(--muted-foreground)); margin: 0 0 1rem; }
.release-notes { max-width: 42rem; font-size: 0.9375rem; }
.release-notes h2 { font-size: 1.0625rem; margin: 1.5rem 0 0.5rem; }
.release-notes p { margin-bottom: 0.875rem; }
.release-notes ul { margin-bottom: 1rem; }

.after-download.single { grid-template-columns: 1fr; max-width: 34rem; }

/* ---------------- ways to support the project ---------------- */
.give-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 1rem; }
.give {
  background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: var(--radius);
  padding: 1.5rem; display: flex; flex-direction: column; gap: 1.125rem; box-shadow: var(--shadow-sm);
}
.give-head { display: flex; gap: 0.875rem; align-items: center; }
.give-icon {
  width: 2.75rem; height: 2.75rem; border-radius: 0.875rem; object-fit: contain; flex: none;
  background: hsl(var(--muted)); border: 1px solid hsl(var(--border));
}
.give-initials {
  display: grid; place-items: center; font-weight: 700; font-size: 1rem;
  color: hsl(var(--primary)); background: hsl(var(--primary-soft)); border-color: hsl(var(--primary) / .25);
}
.give h3 { font-size: 1rem; }
.give-note { margin: 0.25rem 0 0; font-size: 0.8125rem; color: hsl(var(--muted-foreground)); line-height: 1.6; }
.give .btn { width: 100%; margin-top: auto; }
.give .urlrow { margin-top: auto; }

/* ================= navigation with panels =================
   A trigger opens a panel beneath it. On a pointer device hovering is
   enough; a click works everywhere, which is what keyboards and phones
   actually use. */
.nav-item-drop { position: relative; }

.nav-trigger {
  display: inline-flex; align-items: center; gap: 0.3125rem;
  padding: 0.4375rem 0.75rem; border: 0; border-radius: calc(var(--radius) - 2px);
  background: none; color: hsl(var(--muted-foreground));
  font: inherit; font-size: 0.875rem; font-weight: 450; cursor: pointer;
}
.nav-trigger:hover { background: hsl(var(--accent)); color: hsl(var(--foreground)); }
.nav-trigger .chev { transition: transform .15s; }
.nav-item-drop.open .nav-trigger { background: hsl(var(--accent)); color: hsl(var(--foreground)); }
.nav-item-drop.open .chev { transform: rotate(180deg); }

.nav-panel {
  position: absolute; inset-inline-start: 0; top: calc(100% + 0.5rem); z-index: 70;
  min-width: 26rem; padding: 0.5rem;
  background: hsl(var(--popover)); border: 1px solid hsl(var(--border));
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-0.25rem);
  transition: opacity .14s, transform .14s, visibility .14s;
}
.nav-panel.narrow { min-width: 20rem; }
.nav-item-drop.open .nav-panel { opacity: 1; visibility: visible; transform: translateY(0); }

@media (hover: hover) and (pointer: fine) {
  .nav-item-drop:hover .nav-panel { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-item-drop:hover .chev { transform: rotate(180deg); }
}

.nav-panel-grid { display: grid; gap: 0.125rem; }

.nav-card {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem;
  border-radius: calc(var(--radius) - 2px);
}
.nav-card:hover { background: hsl(var(--accent)); text-decoration: none; }
.nav-card.off { opacity: .55; cursor: default; }
.nav-card-icon {
  width: 2.25rem; height: 2.25rem; flex: none; display: grid; place-items: center;
  background: hsl(var(--muted)); border: 1px solid hsl(var(--border)); border-radius: 0.625rem;
}
.nav-card-icon svg { width: 1.25rem; height: 1.25rem; }
.nav-card.off .nav-card-icon svg { filter: grayscale(1); }
.nav-card-text { flex: 1; min-width: 0; }
.nav-card-text b { display: block; font-size: 0.875rem; font-weight: 550; }
.nav-card-text span { font-family: var(--font-mono); font-size: 0.75rem; color: hsl(var(--muted-foreground)); }
.nav-card-go { color: hsl(var(--muted-foreground)); flex: none; }
.nav-card:hover .nav-card-go { color: hsl(var(--primary)); }

.nav-panel-foot {
  display: flex; gap: 1.25rem; margin-top: 0.375rem; padding: 0.75rem 0.75rem 0.5rem;
  border-top: 1px solid hsl(var(--border)); font-size: 0.8125rem;
}
.nav-panel-foot a { color: hsl(var(--muted-foreground)); }
.nav-panel-foot a:hover { color: hsl(var(--primary)); }

.nav-list { display: grid; gap: 0.125rem; }
.nav-list a { display: block; padding: 0.625rem 0.75rem; border-radius: calc(var(--radius) - 2px); }
.nav-list a:hover { background: hsl(var(--accent)); text-decoration: none; }
.nav-list b { display: block; font-size: 0.875rem; font-weight: 550; }
.nav-list span { font-size: 0.8125rem; color: hsl(var(--muted-foreground)); line-height: 1.5; }

.nav-cta { flex: none; }

@media (max-width: 62rem) { .nav-cta { display: none; } }

@media (max-width: 48rem) {
  /* inside the sheet the panels are simply always open */
  .nav-item-drop, .nav-panel { position: static; }
  .nav-panel {
    min-width: 0; opacity: 1; visibility: visible; transform: none;
    border: 0; box-shadow: none; background: none; padding: 0;
  }
}

/* the sheet carries the same three platforms, one row each */
.sheet-nav .sheet-label {
  display: block; padding: 1rem 0.75rem 0.375rem;
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: hsl(var(--muted-foreground));
}
.sheet-nav .sheet-label:first-child { padding-top: 0.25rem; }
.sheet-os {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.625rem 0.75rem;
  border-radius: calc(var(--radius) - 2px);
}
.sheet-os:hover { background: hsl(var(--accent)); text-decoration: none; }
.sheet-os.off { opacity: .5; }
.sheet-os.off .nav-card-icon svg { filter: grayscale(1); }

/* ================= the quiet ask for support ================= */
.ask { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 1.25rem; }
.ask[hidden] { display: none; }

.ask-scrim {
  position: absolute; inset: 0; background: hsl(240 10% 4% / .5);
  backdrop-filter: blur(3px); animation: askFade .2s ease;
}

.ask-card {
  position: relative; width: 100%; max-width: 25rem; padding: 2rem 1.75rem 1.5rem;
  background: hsl(var(--popover)); color: hsl(var(--popover-foreground));
  border: 1px solid hsl(var(--border)); border-radius: 1.125rem;
  box-shadow: 0 24px 60px -12px hsl(240 10% 4% / .35);
  text-align: center; animation: askRise .26s cubic-bezier(.16,1,.3,1);
}

@keyframes askFade { from { opacity: 0; } }
@keyframes askRise { from { opacity: 0; transform: translateY(0.75rem) scale(.97); } }

.ask-x {
  position: absolute; inset-inline-end: 0.75rem; top: 0.75rem;
  display: grid; place-items: center; width: 2rem; height: 2rem;
  background: none; border: 0; border-radius: 999px; cursor: pointer;
  color: hsl(var(--muted-foreground));
}
.ask-x:hover { background: hsl(var(--accent)); color: hsl(var(--foreground)); }

.ask-mark {
  display: grid; place-items: center; width: 3.25rem; height: 3.25rem; margin: 0 auto 1.125rem;
  border-radius: 999px; background: hsl(var(--primary-soft));
}
.ask-mark svg { width: 1.625rem; height: 1.625rem; fill: none; stroke: hsl(var(--primary)); stroke-width: 1.5; }

.ask-card h2 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.ask-lead { color: hsl(var(--muted-foreground)); font-size: 0.9375rem; line-height: 1.7; margin-bottom: 1.5rem; }

.ask-methods { display: grid; gap: 0.5rem; margin-bottom: 1.25rem; }
.ask-method {
  display: flex; align-items: center; gap: 0.75rem; width: 100%;
  padding: 0.6875rem 0.875rem; text-align: start; cursor: pointer;
  background: hsl(var(--background)); color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border)); border-radius: calc(var(--radius) - 2px);
  font: inherit; font-size: 0.875rem; font-weight: 500;
  transition: border-color .14s, background-color .14s;
}
.ask-method:hover { border-color: hsl(var(--primary) / .5); background: hsl(var(--accent)); text-decoration: none; }
.ask-method span { flex: 1; min-width: 0; }
.ask-method .icon { color: hsl(var(--muted-foreground)); flex: none; }
.ask-method.copied { border-color: hsl(var(--success) / .5); color: hsl(var(--success)); }

.ask-icon {
  width: 1.875rem; height: 1.875rem; border-radius: 0.5rem; object-fit: contain; flex: none;
  background: hsl(var(--muted)); border: 1px solid hsl(var(--border));
}
.ask-initials {
  display: grid; place-items: center; font-size: 0.75rem; font-weight: 600;
  color: hsl(var(--primary)); background: hsl(var(--primary-soft)); border-color: hsl(var(--primary) / .25);
}

.ask-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-top: 1rem; border-top: 1px solid hsl(var(--border)); font-size: 0.8125rem;
}
.ask-foot a { color: hsl(var(--primary)); }
.ask-foot .linkish {
  background: none; border: 0; padding: 0; font: inherit; font-size: 0.8125rem;
  color: hsl(var(--muted-foreground)); cursor: pointer;
}
.ask-foot .linkish:hover { color: hsl(var(--foreground)); }

@media (max-width: 30rem) {
  .ask { padding: 0; place-items: end center; }
  .ask-card {
    max-width: none; border-radius: 1.125rem 1.125rem 0 0; border-bottom: 0;
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
    animation: askUp .28s cubic-bezier(.16,1,.3,1);
  }
  @keyframes askUp { from { transform: translateY(100%); } }
}

@media (prefers-reduced-motion: reduce) {
  .ask-card, .ask-scrim { animation: none; }
}

/* ================= support prompt ================= */
.gift { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 1.25rem; }
.gift[hidden] { display: none; }

.gift-scrim {
  position: absolute; inset: 0; background: hsl(240 10% 4% / .5); backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .22s ease;
}
.gift-card {
  position: relative; width: 100%; max-width: 27rem; padding: 2rem 1.75rem 1.5rem;
  background: hsl(var(--card)); border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) + 0.25rem); box-shadow: var(--shadow-lg);
  text-align: center;
  opacity: 0; transform: translateY(0.75rem) scale(.98);
  transition: opacity .22s ease, transform .22s ease;
}
.gift.in .gift-scrim { opacity: 1; }
.gift.in .gift-card { opacity: 1; transform: none; }
body.gift-open { overflow: hidden; }

.gift-x {
  position: absolute; top: 0.75rem; inset-inline-end: 0.75rem;
  display: grid; place-items: center; width: 2rem; height: 2rem;
  border: 0; border-radius: 999px; background: none; color: hsl(var(--muted-foreground)); cursor: pointer;
}
.gift-x:hover { background: hsl(var(--accent)); color: hsl(var(--foreground)); }

.gift-mark {
  width: 3.5rem; height: 3.5rem; margin: 0 auto 1.125rem; border-radius: 999px;
  display: grid; place-items: center; background: hsl(var(--primary-soft));
}
.gift-mark svg { width: 1.625rem; height: 1.625rem; fill: hsl(var(--primary)); stroke: none; }

.gift-card h2 { font-size: 1.375rem; margin-bottom: 0.625rem; }
.gift-card > p { color: hsl(var(--muted-foreground)); font-size: 0.9375rem; line-height: 1.65; margin: 0 0 1.25rem; }

.gift-ways { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-bottom: 1.5rem; }
.gift-way {
  display: inline-flex; align-items: center; gap: 0.4375rem;
  padding: 0.3125rem 0.75rem 0.3125rem 0.3125rem; border-radius: 999px;
  background: color-mix(in srgb, var(--card, hsl(var(--muted))) 12%, hsl(var(--card)));
  border: 1px solid color-mix(in srgb, var(--card, hsl(var(--border))) 35%, transparent);
  font-size: 0.8125rem; font-weight: 500;
}
html[dir="rtl"] .gift-way { padding: 0.3125rem 0.3125rem 0.3125rem 0.75rem; }
.gift-way img, .gift-initials { width: 1.5rem; height: 1.5rem; border-radius: 999px; object-fit: contain; flex: none; }
.gift-initials {
  display: grid; place-items: center; font-size: 0.625rem; font-weight: 700;
  background: var(--card, hsl(var(--primary))); color: var(--ink, #fff);
}

.gift-actions { display: grid; gap: 0.5rem; }
.gift-actions .btn { width: 100%; }
.gift-note { margin: 1rem 0 0; font-size: 0.75rem; color: hsl(var(--muted-foreground)); }

@media (prefers-reduced-motion: reduce) {
  .gift-scrim, .gift-card { transition: none; }
}

/* ================= footer with columns ================= */
footer.foot { background: hsl(var(--muted) / .35); border-top: 1px solid hsl(var(--border)); padding: 4rem 0 2rem; }
footer.foot .wrap { display: block; }
.foot-top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2.5rem; }
.foot-brand p { margin: 1rem 0 0; max-width: 22rem; font-size: 0.875rem; color: hsl(var(--muted-foreground)); line-height: 1.65; }
.foot-col { display: flex; flex-direction: column; gap: 0.625rem; font-size: 0.875rem; }
.foot-col b { font-size: 0.8125rem; font-weight: 600; margin-bottom: 0.25rem; color: hsl(var(--foreground)); }
.foot-col a { color: hsl(var(--muted-foreground)); display: inline-flex; align-items: center; gap: 0.4375rem; }
.foot-col a:hover { color: hsl(var(--foreground)); text-decoration: none; }
.foot-col .mono { font-size: 0.6875rem; }
.foot-muted { color: hsl(var(--muted-foreground) / .7); }

.foot-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid hsl(var(--border));
  font-size: 0.8125rem; color: hsl(var(--muted-foreground));
}
.foot-langs { display: flex; gap: 0.25rem; }
.foot-langs a { padding: 0.25rem 0.625rem; border-radius: 999px; color: hsl(var(--muted-foreground)); }
.foot-langs a:hover { color: hsl(var(--foreground)); text-decoration: none; }
.foot-langs a.on { background: hsl(var(--background)); border: 1px solid hsl(var(--border)); color: hsl(var(--foreground)); }

@media (max-width: 60rem) {
  .foot-top { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 30rem) {
  .foot-top { grid-template-columns: 1fr; gap: 2rem; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
}

/* ================= sections: an eyebrow over each heading ================= */
.eyebrow {
  display: inline-block; margin-bottom: 0.75rem;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: hsl(var(--primary));
}
section h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); letter-spacing: -0.03em; }

/* cards lift slightly under the pointer, and only there */
@media (hover: hover) {
  .card.ready, .stack-item, .give, .update-box, .member { transition: border-color .15s, transform .15s; }
  .card.ready:hover, .give:hover, .update-box:hover { transform: translateY(-2px); border-color: hsl(var(--primary) / .5); }
  .stack-item:hover, .member:hover { border-color: hsl(var(--primary) / .35); }
}
.foot-brand .brand { color: hsl(var(--foreground)); }

/* ================= hero details ================= */
.hero-facts {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 2.25rem;
  padding-top: 1.75rem; border-top: 1px solid hsl(var(--border));
}
.hero-fact { display: flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: hsl(var(--muted-foreground)); }
.hero-fact .icon { color: hsl(var(--primary)); }
.hero-fact b { color: hsl(var(--foreground)); font-weight: 550; }

.hero-stack { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }
.hero-chip {
  display: inline-flex; align-items: center; gap: 0.4375rem; padding: 0.3125rem 0.75rem;
  border: 1px solid hsl(var(--border)); border-radius: 999px; background: hsl(var(--card));
  font-size: 0.8125rem;
}
.hero-chip .vnum { color: hsl(var(--muted-foreground)); font-size: 0.75rem; }
.hero-chip::before { content: ""; width: 0.4375rem; height: 0.4375rem; border-radius: 999px; background: hsl(var(--success)); }

/* ================= frameworks, sliding ================= */
.fw-band { padding: 5rem 0 4.5rem; overflow: hidden; }
.fw-intro { text-align: center; margin-bottom: 2.5rem; }
.fw-intro .lead { max-width: 36rem; margin: 0.75rem auto 0; }

.fw-rows { display: grid; gap: 0.875rem; }
.fw-row {
  position: relative; overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.fw-track {
  display: flex; gap: 0.875rem; width: max-content;
  animation: fw-slide var(--dur, 40s) linear infinite;
}
.fw-row.rev .fw-track { animation-direction: reverse; }
.fw-row:hover .fw-track { animation-play-state: paused; }

@keyframes fw-slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* right to left pages slide the other way, so the motion still feels natural */
html[dir="rtl"] .fw-track { animation-name: fw-slide-rtl; }
@keyframes fw-slide-rtl { from { transform: translateX(0); } to { transform: translateX(50%); } }

.fw {
  display: inline-flex; align-items: center; gap: 0.75rem; flex: none;
  padding: 0.75rem 1.25rem 0.75rem 0.75rem; border-radius: 999px;
  background: hsl(var(--card)); border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground)); font-weight: 550; font-size: 0.9375rem;
  transition: border-color .15s, transform .15s;
}
html[dir="rtl"] .fw { padding: 0.75rem 0.75rem 0.75rem 1.25rem; }
a.fw:hover { text-decoration: none; border-color: hsl(var(--primary) / .5); transform: translateY(-1px); }
.fw img { height: 1.875rem; width: auto; max-width: 6rem; object-fit: contain; }
.fw-mark {
  width: 2rem; height: 2rem; border-radius: 999px; flex: none; display: grid; place-items: center;
  background: var(--fw); color: #fff; font-size: 0.6875rem; font-weight: 700;
}
.fw-name { white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  .fw-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .fw-track > [aria-hidden="true"] { display: none; }
  .fw-row { -webkit-mask-image: none; mask-image: none; }
}

/* ================= the half-shown picture ================= */
.showcase-band { padding: 5.5rem 0 0; overflow: hidden; border-bottom: 0; }
.showcase-intro { text-align: center; max-width: 40rem; margin: 0 auto 3rem; }
.showcase-intro .lead { margin-top: 0.75rem; }

.showcase {
  position: relative; display: block; width: 100%; max-width: 60rem; margin: 0 auto;
  height: 22rem; padding: 0; overflow: hidden; cursor: zoom-in;
  background: none; border: 0; font: inherit; color: inherit; text-align: start;
  transition: height .6s cubic-bezier(.2,.8,.2,1);
}
.showcase::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 6rem; pointer-events: none;
  background: linear-gradient(to bottom, transparent, hsl(var(--background)));
  transition: opacity .4s;
}
.showcase-inner {
  display: block; transform: translateY(2rem) scale(.96); transform-origin: top center;
  border-radius: calc(var(--radius) + 0.375rem) calc(var(--radius) + 0.375rem) 0 0;
  border: 1px solid hsl(var(--border)); border-bottom: 0; overflow: hidden;
  background: hsl(var(--card));
  box-shadow: 0 -10px 60px -20px hsl(var(--primary) / .35);
  transition: transform .6s cubic-bezier(.2,.8,.2,1), box-shadow .6s;
}
.showcase-inner img { display: block; width: 100%; height: auto; }

.showcase-hint {
  position: absolute; left: 50%; bottom: 1.25rem; z-index: 2; transform: translateX(-50%);
  padding: 0.375rem 0.875rem; border-radius: 999px; font-size: 0.75rem; font-weight: 500;
  background: hsl(var(--foreground)); color: hsl(var(--background));
  transition: opacity .3s;
}

/* pointing at it on a desktop, or tapping it anywhere, opens it */
@media (hover: hover) and (pointer: fine) {
  .showcase:hover .showcase-inner { transform: translateY(0) scale(1); }
}
.showcase.open { height: 36rem; cursor: zoom-out; }
.showcase.open .showcase-inner { transform: translateY(0) scale(1); box-shadow: 0 -10px 80px -20px hsl(var(--primary) / .5); }
.showcase.open::after, .showcase.open .showcase-hint { opacity: 0; }
.showcase:focus-visible { outline: none; }
.showcase:focus-visible .showcase-inner { outline: 2px solid hsl(var(--ring)); outline-offset: 4px; }

/* the drawn control panel, used until a screenshot is uploaded */
.panel-art { display: block; font-family: var(--font-sans); }
.pa-bar {
  display: flex; align-items: center; gap: 1rem; padding: 0.875rem 1.25rem;
  background: hsl(var(--muted)); border-bottom: 1px solid hsl(var(--border));
}
.pa-dots { display: flex; gap: 0.4375rem; }
.pa-dots i { width: 0.75rem; height: 0.75rem; border-radius: 999px; background: hsl(var(--border)); }
.pa-dots i:first-child { background: #ff5f57; } .pa-dots i:nth-child(2) { background: #febc2e; } .pa-dots i:last-child { background: #28c840; }
.pa-title { font-size: 0.8125rem; font-weight: 600; color: hsl(var(--muted-foreground)); }
.pa-body { display: grid; gap: 0.5rem; padding: 1.5rem; direction: ltr; }
.pa-row {
  display: grid; grid-template-columns: auto 1fr 7rem 5rem 5rem; align-items: center; gap: 1rem;
  padding: 0.875rem 1rem; border: 1px solid hsl(var(--border)); border-radius: calc(var(--radius) - 2px);
  background: hsl(var(--background));
}
.pa-state { width: 0.625rem; height: 0.625rem; border-radius: 999px; background: hsl(var(--muted-foreground) / .4); }
.pa-state.on { background: hsl(var(--success)); box-shadow: 0 0 0 4px hsl(var(--success) / .15); }
.pa-name { font-weight: 600; font-size: 0.9375rem; }
.pa-port { font-family: var(--font-mono); font-size: 0.8125rem; color: hsl(var(--muted-foreground)); }
.pa-btn {
  text-align: center; padding: 0.375rem 0; border-radius: calc(var(--radius) - 4px); font-size: 0.8125rem; font-weight: 500;
  background: hsl(var(--primary)); color: hsl(var(--primary-foreground));
}
.pa-btn.stop { background: hsl(var(--muted)); color: hsl(var(--foreground)); border: 1px solid hsl(var(--border)); }
.pa-btn.ghost { background: none; color: hsl(var(--muted-foreground)); border: 1px solid hsl(var(--border)); }
.pa-log {
  display: grid; gap: 0.25rem; margin-top: 0.5rem; padding: 1rem;
  border-radius: calc(var(--radius) - 2px); background: hsl(240 10% 6%); color: hsl(142 60% 70%);
  font-family: var(--font-mono); font-size: 0.75rem; line-height: 1.7;
}
.pa-cursor { animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

@media (max-width: 48rem) {
  .showcase { height: 15rem; }
  .showcase.open { height: 26rem; }
  .pa-row { grid-template-columns: auto 1fr 4.5rem; }
  .pa-row .pa-btn.ghost, .pa-row .pa-port { display: none; }
  .fw { padding: 0.5rem 1rem 0.5rem 0.5rem; font-size: 0.875rem; }
  .fw-band { padding: 3.5rem 0 3rem; }
}

@media (prefers-reduced-motion: reduce) {
  .showcase, .showcase-inner { transition: none; }
  .pa-cursor { animation: none; }
}

/* ================= the mobile sheet carries no language list ================= */
.sheet-foot { display: none !important; }

/* ================= support page ================= */
.give-hero { padding: 5.5rem 0 4.5rem; position: relative; overflow: hidden; }
.give-hero::before {
  content: ""; position: absolute; inset: -30% -10% auto auto; width: 38rem; height: 38rem; z-index: -1;
  background: radial-gradient(closest-side, hsl(var(--primary) / .14), transparent);
}
html[dir="rtl"] .give-hero::before { inset: -30% auto auto -10%; }

.give-hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3.5rem; align-items: center; }
.give-hero h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); letter-spacing: -0.04em; line-height: 1.08; }
.give-lead { font-size: 1.125rem; color: hsl(var(--muted-foreground)); line-height: 1.7; margin: 1.25rem 0 1.75rem; max-width: 34rem; }

.give-promises { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.give-promises li { display: flex; align-items: center; gap: 0.75rem; font-size: 0.9375rem; }
.give-promises .icon {
  width: 2rem; height: 2rem; padding: 0.4375rem; flex: none; border-radius: 999px;
  background: hsl(var(--primary-soft)); color: hsl(var(--primary));
}

/* the featured method */
.give-feature {
  position: relative; padding: 2rem; border-radius: calc(var(--radius) + 0.5rem);
  background: hsl(var(--card)); border: 1px solid hsl(var(--border));
  box-shadow: 0 30px 60px -30px hsl(var(--primary) / .45);
  isolation: isolate; overflow: hidden;
}
.give-feature::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1px;
  background: linear-gradient(140deg, hsl(var(--primary) / .6), transparent 45%, hsl(var(--primary) / .25));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.give-feature-glow {
  position: absolute; inset: auto -20% -60% auto; width: 18rem; height: 18rem; z-index: -1;
  background: radial-gradient(closest-side, hsl(var(--primary) / .18), transparent);
}
.give-feature-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.give-feature-head h2 { font-size: 1.5rem; }
.give-feature-tag {
  display: inline-block; margin-bottom: 0.25rem; font-size: 0.75rem; font-weight: 600;
  color: hsl(var(--primary));
}
.give-feature .give-note { margin-bottom: 1.5rem; }
.give-feature .btn.lg { width: 100%; }

.give-icon.lg { width: 3.5rem; height: 3.5rem; border-radius: 1rem; }
.give-icon.lg.give-initials { font-size: 1.25rem; }

.give-copy {
  display: flex; align-items: center; gap: 0.5rem; padding: 0.375rem;
  padding-inline-start: 0.875rem;
  background: hsl(var(--muted) / .7); border: 1px dashed hsl(var(--border)); border-radius: var(--radius);
}
.give-copy code { flex: 1; min-width: 0; font-size: 0.8125rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.give-copy .btn { flex: none; }

/* sections */
.give-methods, .give-where, .give-faq { padding: 4.5rem 0; }
.give-where { background: hsl(var(--muted) / .35); border-block: 1px solid hsl(var(--border)); }
.give-section-head { max-width: 38rem; margin-bottom: 2.25rem; }
.give-section-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.give-section-head .lead { margin-top: 0.5rem; }

.give-kind { font-size: 0.75rem; color: hsl(var(--muted-foreground)); }

.give-where-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.give-where-item { padding: 1.5rem; background: hsl(var(--card)); border: 1px solid hsl(var(--border)); border-radius: var(--radius); }
.give-where-icon {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; margin-bottom: 1rem;
  border-radius: 0.875rem; background: hsl(var(--primary-soft)); color: hsl(var(--primary));
}
.give-where-icon .icon { width: 1.375rem; height: 1.375rem; }
.give-where-item h3 { font-size: 1rem; margin-bottom: 0.375rem; }
.give-where-item p { margin: 0; font-size: 0.875rem; color: hsl(var(--muted-foreground)); line-height: 1.7; }

.give-other { padding: 4.5rem 0 0; }
.give-other-card {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 2.5rem; align-items: center;
  padding: 2.5rem; border-radius: calc(var(--radius) + 0.5rem);
  background: hsl(var(--foreground)); color: hsl(var(--background));
}
.give-other-card .lead { color: hsl(var(--background) / .7); margin-top: 0.5rem; }
.give-other-list { display: grid; gap: 0.625rem; }
.give-other-list a {
  display: flex; align-items: flex-start; gap: 0.875rem; padding: 1rem;
  border-radius: var(--radius); background: hsl(var(--background) / .06);
  border: 1px solid hsl(var(--background) / .12); color: inherit;
}
.give-other-list a:hover { background: hsl(var(--background) / .1); text-decoration: none; }
.give-other-list .icon { width: 1.25rem; height: 1.25rem; margin-top: 0.125rem; color: hsl(var(--primary)); flex: none; }
.give-other-list b { display: block; font-size: 0.9375rem; margin-bottom: 0.125rem; }
.give-other-list span { font-size: 0.8125rem; color: hsl(var(--background) / .7); }
.give-other-list span b { color: hsl(var(--background)); }

.faq { display: grid; gap: 0.625rem; max-width: 46rem; }
.faq-item { border: 1px solid hsl(var(--border)); border-radius: var(--radius); background: hsl(var(--card)); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.125rem 1.25rem; cursor: pointer; list-style: none; font-weight: 550;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { transition: transform .2s; color: hsl(var(--muted-foreground)); flex: none; }
.faq-item[open] summary .icon { transform: rotate(45deg); color: hsl(var(--primary)); }
.faq-item p { margin: 0; padding: 0 1.25rem 1.25rem; color: hsl(var(--muted-foreground)); line-height: 1.75; }
.give-foot-note { margin-top: 2rem; font-size: 0.8125rem; color: hsl(var(--muted-foreground)); }

@media (max-width: 60rem) {
  .give-hero-grid, .give-other-card { grid-template-columns: 1fr; gap: 2rem; }
  .give-where-grid { grid-template-columns: 1fr; }
  .give-other-card { padding: 1.75rem; }
}

/* the copy button sits beside the number, never over it */
.give .give-copy .btn, .give-feature .give-copy .btn { width: auto; margin-top: 0; flex: none; }
.give .give-copy, .give-feature .give-copy { margin-top: auto; }
.give .give-go { margin-top: auto; }

/* uploaded logos are wide as often as square; show them whole, on white */
img.give-icon { padding: 0.375rem; background: #ffffff; object-fit: contain; }
img.give-icon.lg { padding: 0.5rem; }

/* ================= payment cards =================
   Each way to give is a card in the proportions of a bank card. The logo
   covers it edge to edge. An account turns over to show its number; a link
   is simply a link. */
.give-hero-single { max-width: 46rem; }

.pay-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
}

.pay-card {
  position: relative; display: block; aspect-ratio: 1.586;
  perspective: 1200px; text-decoration: none; color: inherit;
}
.pay-card:hover { text-decoration: none; }

.pay-flip {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d; transition: transform .55s cubic-bezier(.2, .7, .2, 1);
}
.pay-card.turned .pay-flip { transform: rotateY(180deg); }
html[dir="rtl"] .pay-card.turned .pay-flip { transform: rotateY(-180deg); }

.pay-face {
  position: absolute; inset: 0; display: block; overflow: hidden;
  border-radius: 1rem; border: 1px solid hsl(var(--border));
  background: hsl(var(--card)); backface-visibility: hidden; -webkit-backface-visibility: hidden;
  box-shadow: 0 1px 2px hsl(240 6% 10% / .04), 0 8px 24px -12px hsl(240 6% 10% / .18);
  transition: transform .2s ease, box-shadow .2s ease;
}
.pay-card.is-link .pay-face { position: relative; width: 100%; height: 100%; }

/* the front is a button or the link itself; either way the whole card is the target */
button.pay-face { padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: start; width: 100%; }
.pay-card.is-link, button.pay-front { cursor: pointer; }

@media (hover: hover) {
  .pay-card:not(.turned):hover .pay-front,
  .pay-card.is-link:hover .pay-face {
    transform: translateY(-3px);
    box-shadow: 0 2px 4px hsl(240 6% 10% / .05), 0 18px 36px -14px hsl(var(--primary) / .35);
  }
}
.pay-card :focus-visible, .pay-card.is-link:focus-visible .pay-face {
  outline: 2px solid hsl(var(--ring)); outline-offset: 3px;
}

/* before a logo exists: the name, in the colour chosen for this method */
.pay-plain {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between;
  padding: 1.25rem 1.375rem; color: var(--ink, #fff);
  background:
    radial-gradient(130% 100% at 100% 0%, hsl(0 0% 100% / .22), transparent 55%),
    var(--card, hsl(var(--primary)));
}
.pay-badge {
  display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 0.875rem;
  background: #ffffff; color: var(--card); font-weight: 700; font-size: 1.0625rem;
  box-shadow: 0 1px 2px hsl(240 6% 10% / .18);
  overflow: hidden; flex: none;
}
.pay-badge img { width: 100%; height: 100%; object-fit: contain; padding: 0.375rem; display: block; }

/* on the outline style the card is white, so the mark takes the colour */
.pay-plain[data-style="outline"] .pay-badge { background: var(--card); color: #fff; }
.pay-plain[data-style="outline"] .pay-badge img { background: #fff; }
.pay-name { font-size: 1.375rem; font-weight: 600; letter-spacing: -0.02em; color: var(--ink, #fff); }



/* the small label that says what a tap will do */
.pay-hint {
  position: absolute; inset-inline-end: 0.75rem; bottom: 0.75rem; z-index: 1;
  display: inline-flex; align-items: center; gap: 0.3125rem;
  padding: 0.3125rem 0.625rem; border-radius: 999px;
  background: hsl(240 10% 4% / .72); color: #ffffff; backdrop-filter: blur(6px);
  font-size: 0.6875rem; font-weight: 500;
  opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s;
}
.pay-card:hover .pay-hint, .pay-card :focus-visible .pay-hint { opacity: 1; transform: none; }
@media (hover: none) { .pay-hint { opacity: 1; transform: none; } }

/* the back */
.pay-back {
  transform: rotateY(180deg);
  display: flex; flex-direction: column; justify-content: center; gap: 0.5rem;
  padding: 1.125rem 1.25rem;
  background:
    radial-gradient(120% 90% at 0% 100%, color-mix(in srgb, var(--card, hsl(var(--primary))) 18%, transparent), transparent 60%),
    hsl(var(--card));
}
.pay-back-label { font-size: 0.75rem; font-weight: 600; color: hsl(var(--muted-foreground)); }
.pay-number {
  font-family: var(--font-mono); font-size: clamp(1rem, 2.4vw, 1.25rem); font-weight: 600;
  letter-spacing: 0.02em; word-break: break-all; line-height: 1.35;
  direction: ltr; text-align: start; unicode-bidi: isolate;
}
.pay-note { font-size: 0.75rem; color: hsl(var(--muted-foreground)); line-height: 1.5; }
.pay-actions { display: flex; gap: 0.375rem; margin-top: 0.25rem; }
.pay-actions .btn { height: 2rem; }

@media (prefers-reduced-motion: reduce) {
  .pay-flip { transition: none; }
  .pay-card.turned .pay-flip, html[dir="rtl"] .pay-card.turned .pay-flip { transform: none; }
  .pay-back { transform: none; opacity: 0; pointer-events: none; }
  .pay-card.turned .pay-back { opacity: 1; pointer-events: auto; }
  .pay-card.turned .pay-front { opacity: 0; }
}

/* ================= pieces that had no styles of their own =================
   Each of these was written into a page but never given a rule, so it fell
   back to plain block layout. */

/* the band at the foot of the home page that sends people to the downloads */
.cta-band { padding: 0 0 5.5rem; }
.cta {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; align-items: center;
  padding: 2.75rem; border-radius: calc(var(--radius) + 0.5rem);
  background: linear-gradient(135deg, hsl(var(--primary-soft)), hsl(var(--muted) / .6));
  border: 1px solid hsl(var(--primary) / .25);
}
.cta h2 { margin-bottom: 0.5rem; }
.cta .lead { margin: 0; }
.cta-actions { display: flex; flex-direction: column; gap: 0.625rem; }
.cta-actions .btn { width: 100%; }

@media (max-width: 52rem) {
  .cta { grid-template-columns: 1fr; gap: 1.5rem; padding: 1.75rem; }
}

/* the download page has its own, shorter opening */
.hero-compact { padding: 4rem 0 2.5rem; }
.hero-compact h1 { font-size: clamp(2rem, 4.5vw, 3rem); max-width: 22ch; }
.dl-page { padding-top: 0; }

/* a release note, beside its date marker */
.release-body { flex: 1; min-width: 0; }

/* the contact form: fields stacked, with room between them */
.cform { display: grid; gap: 1rem; }
.cform .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.cform label { display: block; font-size: 0.8125rem; font-weight: 500; margin-bottom: 0.375rem; }
.cform .help { margin-top: 0.375rem; font-size: 0.75rem; color: hsl(var(--muted-foreground)); }
.cform textarea { min-height: 9rem; }
@media (max-width: 40rem) { .cform .row2 { grid-template-columns: 1fr; } }

/* the one on the support page: same idea, narrower */
.give-hero-text { min-width: 0; }

/* ================= page progress =================
   Two pixels along the top: it grows while the page is on its way and
   disappears once it has arrived. Nothing is covered, so the page paints
   as soon as it can. */
.pbar {
  position: fixed; inset-block-start: 0; inset-inline: 0; height: 2px; z-index: 300;
  pointer-events: none; opacity: 0; transition: opacity .25s ease .1s;
}
.pbar.on { opacity: 1; transition-delay: 0s; }
.pbar span {
  display: block; width: 0; height: 100%; border-radius: 0 2px 2px 0;
  background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--primary) / .55));
  box-shadow: 0 0 10px hsl(var(--primary) / .55);
  transition: width .25s ease;
}
html[dir="rtl"] .pbar span { border-radius: 2px 0 0 2px; margin-inline-start: auto; }

@media (prefers-reduced-motion: reduce) {
  .pbar span { transition: none; }
}

/* ================= when the pages are guarded =================
   Form fields, code and anything a copy button hands over stay selectable;
   without that exception the account numbers and update addresses could not
   be copied, which is the whole point of showing them. */
body.guarded {
  -webkit-user-select: none; -moz-user-select: none; user-select: none;
  -webkit-touch-callout: none;
  touch-action: pan-x pan-y;                 /* scrolling yes, pinching no */
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
}
body.guarded input, body.guarded textarea, body.guarded select,
body.guarded [contenteditable], body.guarded [data-copy],
body.guarded code, body.guarded pre, body.guarded .pay-number {
  -webkit-user-select: text; -moz-user-select: text; user-select: text;
  -webkit-touch-callout: default;
}
body.guarded img { -webkit-user-drag: none; user-drag: none; pointer-events: none; }
body.guarded a img, body.guarded button img, body.guarded label img { pointer-events: auto; }

/* ---- the ways a support card can be painted ---- */
.pay-plain[data-style="solid"] {
  background:
    radial-gradient(130% 100% at 100% 0%, hsl(0 0% 100% / .18), transparent 55%),
    var(--card);
}
.pay-plain[data-style="blend"] {
  background: linear-gradient(135deg, var(--card), var(--card-to, var(--card)));
}
.pay-plain[data-style="sheen"] {
  background:
    linear-gradient(105deg, transparent 38%, hsl(0 0% 100% / .22) 46%, transparent 54%),
    linear-gradient(160deg, var(--card), var(--card-to, var(--card)));
}
.pay-plain[data-style="corner"] {
  background:
    radial-gradient(90% 120% at 0% 100%, var(--card-to, var(--card)), transparent 62%),
    radial-gradient(90% 120% at 100% 0%, hsl(0 0% 100% / .2), transparent 55%),
    var(--card);
}
.pay-plain[data-style="outline"] {
  background: hsl(var(--card));
  color: var(--card);
  border: 2px solid var(--card);
  border-radius: 1rem;
}
.pay-plain[data-style="outline"] .pay-name { color: var(--card); }


/* the two places a team member can be found */
.socials { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.social {
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem; flex: none;
  border-radius: 999px; border: 1px solid hsl(var(--border)); background: hsl(var(--card));
  color: hsl(var(--muted-foreground)); transition: color .12s, border-color .12s, transform .12s;
}
.social:hover {
  color: hsl(var(--primary)); border-color: hsl(var(--primary) / .5);
  transform: translateY(-2px); text-decoration: none;
}
.social svg {
  width: 1.125rem; height: 1.125rem; fill: none; stroke: currentColor;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}

/* ================= the page behind everything =================
   Four layers, all fixed so none of them travel with the content:
   two soft colour fields, a grid that fades as it falls, a thin horizon
   under the header, and a grain over the lot. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    /* the warm field, top right */
    radial-gradient(38rem 26rem at 88% -4%, hsl(var(--primary) / .20), transparent 62%),
    /* a cooler one, low left, to keep the page from leaning orange */
    radial-gradient(34rem 24rem at 2% 30%, hsl(212 92% 56% / .13), transparent 64%),
    /* a third, faint, to fill the middle distance */
    radial-gradient(30rem 20rem at 60% 8%, hsl(280 70% 60% / .07), transparent 60%),
    hsl(var(--background));
}

/* the grid gives the page its structure; it is strongest where the headline
   sits and gone by the time the reading starts */
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(hsl(var(--foreground) / .055) 1px, transparent 1px),
    linear-gradient(90deg, hsl(var(--foreground) / .055) 1px, transparent 1px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
  background-size: 4.5rem 4.5rem, 4.5rem 4.5rem, 160px 160px;
  -webkit-mask-image: linear-gradient(#000 0, #000 14rem, transparent 34rem);
          mask-image: linear-gradient(#000 0, #000 14rem, transparent 34rem);
}

/* the line where the header ends and the page begins */
.topbar { box-shadow: 0 1px 0 hsl(var(--foreground) / .06); }

.dark body::before, html.dark body::before {
  background:
    radial-gradient(38rem 26rem at 88% -4%, hsl(var(--primary) / .18), transparent 62%),
    radial-gradient(34rem 24rem at 2% 30%, hsl(212 92% 56% / .12), transparent 64%),
    radial-gradient(30rem 20rem at 60% 8%, hsl(280 70% 60% / .07), transparent 60%),
    hsl(var(--background));
}
.dark body::after, html.dark body::after {
  background-image:
    linear-gradient(hsl(var(--foreground) / .07) 1px, transparent 1px),
    linear-gradient(90deg, hsl(var(--foreground) / .07) 1px, transparent 1px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.28'/%3E%3C/svg%3E");
}

@media (max-width: 48rem) {
  body::after { background-size: 3rem 3rem, 3rem 3rem, 160px 160px; }
}

/* the bands that need their own field sit on the page colour */
.dl, .give-where, footer.foot, .fw-band { background-color: hsl(var(--muted) / .35); }
.hero, section, .cta-band { position: relative; }

