/* plumesql.com. The page is built the way jetbrains.com builds its home:
   a black page, a #19191c top bar and footer, one 1232px column, a hero
   artwork with the title over it, a tab switcher driving a snapping
   carousel of screenshots, sections that open with a colored eyebrow and
   a 72px headline, #19191c panels holding bordered tool tiles, a pinned
   "values" walk (sticky screenshot, a rail with a sliding thumb, text
   that lights up as it scrolls into place), a fading marquee and a wide
   footer. Flat color only: no gradients, no glow. */

:root {
  --bg: #000;
  --surface: #19191c;
  --surface-2: #303033;
  --white: #fff;
  --t80: rgba(255, 255, 255, 0.8);
  --t70: rgba(255, 255, 255, 0.7);
  --t60: rgba(255, 255, 255, 0.6);
  --t50: rgba(255, 255, 255, 0.5);
  --t40: rgba(255, 255, 255, 0.4);
  --t20: rgba(255, 255, 255, 0.2);
  --t10: rgba(255, 255, 255, 0.1);
  --t5: rgba(255, 255, 255, 0.05);

  --dev: #7aa2f7;            /* the app's own accent: the developers' section */
  --dba: #0cc2c8;            /* teal: the DBA section */
  --dba-tint: rgba(12, 194, 200, 0.12);
  --team: #f31199;           /* magenta: the teams section */
  --team-tint: rgba(243, 17, 153, 0.16);
  --ext: #f5a524;            /* amber: extensions */
  --ext-tint: rgba(245, 165, 36, 0.14);

  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", Menlo, Consolas, monospace;
  --container: 1276px;
  --gutter: 22px;
  --radius: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  font-family: var(--sans); font-size: 16px; line-height: 24px; letter-spacing: 0.024px;
  color: var(--white); background: var(--bg); -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
:focus-visible { outline: 1px solid var(--white); outline-offset: 2px; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); color: #000; padding: 8px 12px; border-radius: 6px; z-index: 50; }
.skip:focus { left: 8px; }

/* Type scale, JetBrains' rs-* sizes */
.t-hero { font-size: 72px; line-height: 72px; font-weight: 600; letter-spacing: -0.36px; text-wrap: balance; }
.t-h2 { font-size: 35px; line-height: 42px; font-weight: 600; text-wrap: balance; }
.t-h3 { font-size: 20px; line-height: 28px; font-weight: 600; }
.t-lead { font-size: 20px; line-height: 28px; font-weight: 400; }
.t-2 { font-size: 16px; line-height: 24px; letter-spacing: 0.024px; }
.t-3 { font-size: 13px; line-height: 20px; letter-spacing: 0.06px; }
.hard { color: var(--t70); }
.mono { font-family: var(--mono); }
@media (max-width: 1000px) { .t-hero { font-size: 52px; line-height: 54px; } .t-h2 { font-size: 28px; line-height: 34px; } }
@media (max-width: 640px) { .t-hero { font-size: 38px; line-height: 40px; } .t-h2 { font-size: 24px; line-height: 30px; } .t-lead { font-size: 18px; line-height: 26px; } }

/* Buttons: pills */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 24px; border-radius: 20px; font-size: 16px; line-height: 16px; font-weight: 500;
  transition: color .1s, background-color .1s, border-color .1s; white-space: nowrap;
}
.btn.light { background: var(--white); color: #000; }
.btn.light:hover { background: #e6e6e6; }
.btn.rock { background: var(--surface); color: var(--white); }
.btn.rock:hover { background: var(--surface-2); }
.btn.outline { background: transparent; color: var(--white); border: 1px solid var(--white); height: 52px; padding: 0 32px; border-radius: 26px; }
.btn.outline:hover { background: var(--t10); }
.btn.accent { background: var(--dev); color: #000; }
.btn.accent:hover { background: #91b3fa; }
.link { color: var(--white); border-bottom: 1px solid var(--t40); padding-bottom: 1px; }
.link:hover { border-bottom-color: var(--white); }
.link.arrow::after { content: " \2192"; }

/* Top bar: transparent over the hero, and once the page scrolls it settles
   into the fixed #19191c bar (the color fades in, the bar slides down a
   touch so the change reads as a motion, not a flicker). */
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 30; background: transparent; transition: background-color .3s ease, box-shadow .3s ease; }
.topbar.solid, .topbar.open { background: var(--surface); box-shadow: 0 1px 0 var(--t10); }
.topbar .row { height: 72px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; letter-spacing: -0.2px; }
.brand img { width: 32px; height: 32px; }
.topnav { display: flex; gap: 4px; margin-left: 12px; }
.topnav a, .topbar .signin { padding: 8px 12px; font-size: 18px; color: var(--white); border-radius: 6px; }
.topnav a:hover, .topbar .signin:hover { background: var(--t10); }
.topbar .right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.topbar .menu { display: contents; }
.menu-btn { display: none; margin-left: auto; width: 40px; height: 40px; border-radius: 6px; align-items: center; justify-content: center; }
@media (max-width: 1000px) {
  .topnav a, .topbar .signin { font-size: 16px; }
}
@media (max-width: 860px) {
  .topbar .menu { display: none; }
  .menu-btn { display: inline-flex; }
  .topbar.open .menu { display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 72px; padding: 8px var(--gutter) 16px; background: var(--surface); border-top: 1px solid var(--t10); }
  .topbar.open .topnav { flex-direction: column; margin-left: 0; }
  .topbar.open .right { flex-direction: column; align-items: stretch; margin-left: 0; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--t10); }
  .topbar.open .right .btn { width: 100%; }
}

/* Hero: a full-width artwork with the title over it. The artwork is the
   background clip in assets/video when it exists (the script fills it in
   once the file answers), else the app's own screenshot on a slow pan. */
.hero { padding-top: 0; }
.artwork {
  position: relative; width: 100%; min-height: 100vh; min-height: 100svh; overflow: hidden;
  background: var(--surface); display: flex; align-items: center; justify-content: center;
}
.artwork .media {
  position: absolute; inset: 0; background: url("../img/shots/hero.webp") center 0 / cover no-repeat;
  transform-origin: 50% 30%; animation: pan 48s ease-in-out infinite alternate; filter: blur(3px);
}
.artwork .media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
.artwork.has-video .media { animation: none; background: var(--surface); filter: none; }
.artwork.has-video .media video { display: block; }
.artwork::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.74); }
.artwork.has-video::before { background: rgba(0, 0, 0, 0.35); }
.artwork .content { position: relative; text-align: center; padding: 120px 22px 96px; width: 100%; max-width: var(--container); }
.artwork h1 { font-size: 44px; line-height: 50px; font-weight: 400; letter-spacing: -0.2px; text-wrap: balance; max-width: 24ch; margin: 0 auto; }
.artwork h1 b { font-weight: 700; }
.artwork .actions { display: flex; justify-content: center; align-items: center; gap: 24px; margin-top: 32px; flex-wrap: wrap; }
.artwork .facts { display: flex; justify-content: center; gap: 12px 40px; flex-wrap: wrap; margin-top: 56px; color: var(--t70); font-size: 16px; }
.artwork .facts b { color: var(--white); font-weight: 600; }
@keyframes pan { from { transform: scale(1.04) translate3d(0, 0, 0); } to { transform: scale(1.12) translate3d(-1.5%, -2%, 0); } }
@media (max-width: 1000px) { .artwork h1 { font-size: 34px; line-height: 40px; } .artwork .content { padding: 64px 22px 64px; } }
@media (max-width: 640px) { .artwork h1 { font-size: 28px; line-height: 34px; } .artwork .facts { display: none; } }

/* The switcher: three tab cards driving a snapping carousel */
.switcher { margin-top: 48px; }
.cards { display: flex; justify-content: center; gap: 8px; }
.card-tab {
  flex: 0 0 234px; width: 234px; padding: 12px 16px; border-radius: 8px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  box-shadow: inset 0 0 0 1px var(--t10); transition: background-color .15s ease-out, box-shadow .15s ease-out;
}
.card-tab .title { font-size: 20px; line-height: 28px; font-weight: 600; color: var(--t60); }
.card-tab .desc { font-size: 13px; line-height: 20px; color: var(--t50); }
.card-tab:hover { background: var(--t10); box-shadow: inset 0 0 0 1px var(--t5); }
.card-tab:hover .title { color: var(--white); }
.card-tab:hover .desc { color: var(--t80); }
.card-tab[aria-selected="true"], .card-tab[aria-selected="true"]:hover { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--t5); }
.card-tab[aria-selected="true"] .title { color: var(--white); }
.card-tab[aria-selected="true"] .desc { color: var(--t80); }
.carousel { --slide-width: min(1232px, 100vw - 64px); --side-gutter: calc((100vw - var(--slide-width)) / 2); width: 100%; max-width: 100vw; margin: 32px auto 0; }
.track { display: flex; gap: 32px; overflow-x: scroll; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 var(--side-gutter); scroll-padding: var(--side-gutter); }
.track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 auto; width: var(--slide-width); scroll-snap-align: center; }
.slide img { border-radius: 8px; width: 100%; }
@media (max-width: 1000px) {
  .cards { flex-wrap: wrap; }
  .card-tab { flex: 1 1 200px; width: auto; }
  .carousel { --side-gutter: 32px; }
  .slide { --slide-width: 125vw; scroll-snap-align: start; }
}
@media (max-width: 640px) {
  .card-tab { text-align: left; align-items: flex-start; flex-basis: 100%; }
  .carousel { --side-gutter: 16px; }
  .slide { --slide-width: 215vw; }
  .track { gap: 16px; }
}

/* Sections */
section.block { padding: 96px 0 0; }
section.block.last { padding-bottom: 96px; }
.eyebrow { display: flex; align-items: center; gap: 12px; }
.eyebrow svg { width: 36px; height: 36px; }
.eyebrow.dba { color: var(--dba); }
.eyebrow.team { color: var(--team); }
.eyebrow.ext { color: var(--ext); }
.eyebrow.dev { color: var(--dev); }
.headline { margin-top: 16px; max-width: 16ch; }
.headline.long { max-width: 22ch; }
.intro { margin-top: 24px; max-width: 60ch; color: var(--t70); }
@media (max-width: 640px) { section.block { padding-top: 64px; } section.block.last { padding-bottom: 64px; } }

/* Panels and tool tiles */
.wide { max-width: 1360px; margin: 64px auto 0; padding: 0; position: relative; }
.panel { background: var(--surface); border-radius: 8px; padding: 64px; overflow: hidden; }
.panel.dba { background: var(--dba-tint); }
.panel.team { background: var(--team-tint); }
.panel.ext { background: var(--ext-tint); }
.panel h3 { max-width: 30ch; }
.side-tag {
  position: absolute; left: 0; top: 48px; transform: translateX(-100%) rotate(-90deg); transform-origin: right top;
  padding: 5px 11px; border-radius: 6px 6px 0 0; font-size: 16px; line-height: 24px; background: rgba(122, 162, 247, 0.5);
  margin-left: -1px;
}
.panel.dba + .side-tag, .side-tag.dba { background: rgba(12, 194, 200, 0.5); }
.side-tag.team { background: rgba(243, 17, 153, 0.5); }
.tiles { display: flex; flex-wrap: wrap; gap: 0 32px; margin-top: 16px; }
.tile {
  flex: 0 0 calc(25% - 24px); margin-top: 32px; padding: 24px; border: 1px solid var(--t40); border-radius: 8px;
  display: flex; flex-direction: column; gap: 24px; position: relative; overflow: hidden;
  transition: color .1s, background-color .1s, border-color .1s, box-shadow .1s;
}
.tile.third { flex-basis: calc(33.333% - 21.4px); }
.tile:hover { border-color: var(--white); box-shadow: inset 0 0 0 1px var(--white); }
.panel.dba .tile { border-color: rgba(12, 194, 200, 0.7); }
.panel.dba .tile:hover { border-color: var(--dba); box-shadow: inset 0 0 0 1px var(--dba); }
.tile .icon { width: 48px; height: 48px; border-radius: 10px; display: grid; place-items: center; }
.tile .icon svg { width: 26px; height: 26px; stroke: #000; }
.tile > span:last-child { display: block; }
.tile .name { display: block; font-size: 20px; line-height: 28px; font-weight: 600; }
.tile .sub { display: block; color: var(--t70); font-size: 16px; line-height: 24px; margin-top: 8px; }
.tile .tag { position: absolute; right: 24px; top: 24px; font-size: 13px; line-height: 20px; padding: 2px 8px; border-radius: 4px; color: var(--t70); background: var(--t10); }
.tile.row { flex-direction: row; align-items: center; gap: 24px; }
.tile.row .icon { flex: 0 0 48px; }
.panel .more { display: inline-block; margin-top: 32px; }
.c-blue { background: #3d7bff; } .c-teal { background: #0cc2c8; } .c-amber { background: #f5a524; } .c-green { background: #3ccf6a; }
.c-violet { background: #8a6cff; } .c-pink { background: #f31199; } .c-orange { background: #fc801d; } .c-cyan { background: #21d4fd; } .c-lime { background: #b7e33b; }
@media (max-width: 1276px) { .wide { margin-left: 32px; margin-right: 32px; } }
@media (max-width: 1000px) { .panel { padding: 40px; } .tile, .tile.third { flex-basis: calc(50% - 16px); } .side-tag { display: none; } }
@media (max-width: 640px) { .wide { margin-left: 16px; margin-right: 16px; } .panel { padding: 24px; } .tiles { gap: 0; } .tile, .tile.third { flex-basis: 100%; margin-top: 16px; } }

/* Big number line */
.bignum { margin-top: 96px; }
.bignum .line { font-size: 44px; line-height: 52px; font-weight: 600; letter-spacing: -0.3px; text-wrap: balance; }
.bignum .line b { font-size: 88px; line-height: 88px; font-weight: 600; letter-spacing: -1px; vertical-align: -6px; padding: 0 8px; }
.bignum .line b.dev { color: var(--dev); } .bignum .line b.team { color: var(--team); } .bignum .line b.dba { color: var(--dba); }
.bignum .note { margin-top: 16px; color: var(--t70); }
@media (max-width: 1000px) { .bignum .line { font-size: 32px; line-height: 40px; } .bignum .line b { font-size: 56px; line-height: 56px; } }
@media (max-width: 640px) { .bignum .line { font-size: 24px; line-height: 32px; } .bignum .line b { font-size: 40px; line-height: 40px; vertical-align: -3px; } }

/* Values: the pinned walk */
.values-section { overflow-x: clip; margin-top: 64px; }
.values { display: flex; align-items: flex-start; position: relative; }
.rail { width: 2px; height: 500px; position: sticky; top: 170px; flex: 0 0 2px; }
.rail::before { content: ""; position: absolute; width: 4px; height: 100%; background: var(--t40); }
.rail .thumb { position: absolute; top: 0; width: 4px; height: 20%; background: var(--dev); transition: top .2s; }
.values-text { width: 39%; min-width: 39%; padding: 0 98px 0 48px; }
.value { opacity: 0.2; min-height: 100px; padding-top: 200px; transition: opacity .8s; }
.value:first-child { padding-top: 64px; }
.value:last-child { min-height: 600px; }
.value.active { opacity: 1; }
.value p { margin-top: 16px; }
.values-image { min-width: 750px; flex: 1; position: sticky; top: 170px; }
.values-image .tag {
  display: inline-flex; align-items: center; gap: 12px; padding: 5px 11px 5px 6px; border-radius: 6px 6px 0 0;
  border: 1px solid var(--dev); border-bottom: 0; background: rgba(122, 162, 247, 0.18); margin-left: 24px;
}
.values-image .tag img { width: 28px; height: 28px; }
.values-image .frame { position: relative; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: var(--surface); }
.values-image .frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s; }
.values-image .frame img.on { opacity: 1; }
@media (max-width: 1276px) { .values-text { width: 40%; min-width: 40%; padding: 0 32px; } .value { padding-top: 100px; } }
@media (max-width: 1000px) { .values-image { min-width: 495px; top: 80px; } .rail { height: 338px; top: 80px; } .value:last-child { min-height: 300px; padding-top: 50px; } }
@media (max-width: 640px) {
  .values { display: block; }
  .rail { display: none; }
  .values-text { width: auto; min-width: 0; padding: 0; }
  .value { opacity: 1; padding-top: 32px; min-height: 0; }
  .value:last-child { min-height: 0; }
  .values-image { display: none; }
  .value figure { margin-top: 16px; }
  .value figure img { border-radius: 8px; }
}
@media (min-width: 641px) { .value figure { display: none; } }

/* Marquee */
.marquee-block { margin-top: 96px; }
.marquee { --gap: 96px; display: flex; overflow: hidden; user-select: none; margin-top: 48px;
  mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent); }
.marquee .group { display: flex; flex: 0 0 auto; gap: var(--gap); padding-right: var(--gap); animation: marquee 60s linear infinite; }
.marquee:hover .group { animation-play-state: paused; }
.marquee .item { display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 96px; }
.marquee .item .box { width: 48px; height: 48px; border-radius: 10px; display: grid; place-items: center; font-family: var(--mono); font-weight: 700; font-size: 15px; color: #000; }
.marquee .item .box.pg { background: #336791; color: #fff; }
.marquee .item .box.ver { background: var(--surface-2); color: var(--white); }
.marquee .item span { font-size: 16px; font-weight: 600; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* Two-up figures and quotes */
.two { display: flex; gap: 32px; margin-top: 32px; }
.two > * { flex: 1 1 0; min-width: 0; }
.quote { background: var(--surface); border-radius: 8px; padding: 24px; }
.quote .who { font-weight: 700; font-size: 20px; }
.quote p { margin-top: 16px; color: var(--t80); }
.quote .link { display: inline-block; margin-top: 16px; }
figure.fig img { border-radius: 8px; }
figure.fig figcaption { margin-top: 12px; color: var(--t70); font-size: 16px; }
@media (max-width: 900px) { .two { flex-direction: column; } }

/* Big tiles (2x2), the businesses block */
.bigtiles { display: flex; flex-wrap: wrap; gap: 0 32px; margin-top: 32px; }
.bigtile { flex: 0 0 calc(50% - 16px); max-width: calc(50% - 16px); margin-top: 32px; padding: 24px; border-radius: 8px; background: var(--team-tint); border: 1px solid transparent; min-height: 214px; display: flex; flex-direction: column; gap: 24px; }
.bigtile svg { width: 24px; height: 24px; stroke: var(--white); }
.bigtile h3 { font-size: 35px; line-height: 42px; font-weight: 600; }
.bigtile p { color: var(--t80); }
.bar { display: flex; align-items: center; gap: 24px; margin-top: 32px; padding: 24px; border-radius: 8px; background: var(--team-tint); }
.bar .lock { flex: 0 0 96px; width: 96px; height: 96px; border-radius: 50%; border: 1px solid var(--t20); display: grid; place-items: center; }
.bar .lock svg { width: 40px; height: 40px; stroke: var(--white); }
.bar h3 { font-size: 20px; line-height: 28px; font-weight: 600; }
.bar p { margin-top: 8px; color: var(--t80); }
@media (max-width: 1000px) { .bigtile h3 { font-size: 28px; line-height: 34px; } }
@media (max-width: 800px) { .bigtile { flex-basis: 100%; max-width: 100%; margin-top: 16px; min-height: 0; } .bar { flex-direction: column; align-items: flex-start; } }

/* Code sample */
.sample { display: flex; gap: 48px; margin-top: 32px; align-items: flex-start; }
.sample .text { flex: 0 0 38%; }
.sample .text p { margin-top: 16px; color: var(--t80); }
.sample .text p code { font-family: var(--mono); font-size: 14px; background: var(--t10); padding: 1px 6px; border-radius: 4px; }
pre.code { flex: 1; min-width: 0; font-family: var(--mono); font-size: 13.5px; line-height: 1.6; color: #e3e6ee; background: #000; border-radius: 8px; padding: 24px; overflow-x: auto; }
pre.code .c { color: var(--t50); }
pre.code .a { color: var(--ext); }
pre.code .k { color: #c792ea; }
pre.code .s { color: #9fcf8a; }
@media (max-width: 900px) { .sample { flex-direction: column; } .sample .text { flex-basis: auto; } }

/* Pricing tiles */
.plan { flex: 0 0 calc(33.333% - 21.4px); margin-top: 32px; padding: 24px; border: 1px solid var(--t40); border-radius: 8px; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--dev); box-shadow: inset 0 0 0 1px var(--dev); }
.plan .name { font-size: 20px; line-height: 28px; font-weight: 600; }
.plan .price { margin-top: 16px; font-size: 44px; line-height: 48px; font-weight: 600; letter-spacing: -0.3px; }
.plan.soon .price { color: var(--t50); font-size: 36px; }
.plan .skeleton { margin: 24px 0; display: grid; gap: 14px; filter: blur(3px); opacity: .6; }
.plan .skeleton span { display: block; height: 10px; border-radius: 5px; background: var(--t20); }
.plan .skeleton span:nth-child(3n+1) { width: 82%; } .plan .skeleton span:nth-child(3n+2) { width: 64%; } .plan .skeleton span:nth-child(3n) { width: 74%; }
.plan:not(.featured) li::before { border-color: var(--t50); }
.bigtile code { white-space: nowrap; font-family: var(--mono); font-size: 14px; background: var(--t10); padding: 1px 6px; border-radius: 4px; }
.plan .price small { font-size: 16px; font-weight: 400; color: var(--t70); letter-spacing: 0; margin-left: 6px; }
.plan .who { margin-top: 8px; color: var(--t70); min-height: 48px; }
.plan ul { margin: 24px 0; display: grid; gap: 8px; }
.plan li { padding-left: 22px; position: relative; color: var(--t80); }
.plan li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 9px; height: 5px; border-left: 2px solid var(--dev); border-bottom: 2px solid var(--dev); transform: rotate(-45deg); }
.plan .btn { margin-top: auto; align-self: flex-start; }
.pricing-note { margin-top: 24px; color: var(--t70); }
@media (max-width: 1000px) { .plan { flex-basis: 100%; } }

/* Download list */
.downloads { margin-top: 32px; border: 1px solid var(--t40); border-radius: 8px; overflow: hidden; }
.dl { display: grid; grid-template-columns: 1.2fr 1.6fr auto; gap: 16px; align-items: center; padding: 16px 24px; border-top: 1px solid var(--t20); transition: background-color .1s; }
.dl:first-child { border-top: 0; }
.dl:hover { background: var(--t5); }
.dl .os { font-weight: 600; font-size: 20px; }
.dl .os small { display: block; font-weight: 400; font-size: 16px; color: var(--t70); }
.dl .file { font-family: var(--mono); font-size: 13px; color: var(--t60); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl .go { color: var(--white); }
.dl .go::after { content: " \2192"; }
.dl[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.download .note { margin-top: 24px; color: var(--t70); max-width: 72ch; }
.download .note code { font-family: var(--mono); font-size: 14px; background: var(--t10); padding: 1px 6px; border-radius: 4px; color: var(--white); }
@media (max-width: 640px) { .dl { grid-template-columns: 1fr auto; } .dl .file { display: none; } }

/* Discover more */
.discover { display: flex; gap: 32px; margin-top: 64px; }
.discover .card { flex: 1 1 0; min-width: 0; border: 1px solid var(--t40); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 32px; }
.discover .card svg { width: 24px; height: 24px; stroke: var(--white); }
.discover .card h3 { font-size: 35px; line-height: 42px; font-weight: 600; max-width: 8ch; }
.discover .card .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 1000px) { .discover { flex-wrap: wrap; } .discover .card { flex-basis: calc(50% - 16px); } .discover .card h3 { font-size: 28px; line-height: 34px; } }
@media (max-width: 600px) { .discover .card { flex-basis: 100%; } }

/* Footer */
footer { background: var(--surface); padding: 64px 0 96px; }
footer .cols { display: grid; grid-template-columns: repeat(6, 1fr); gap: 32px; }
footer h4 { font-size: 13px; line-height: 20px; font-weight: 700; margin-bottom: 12px; }
footer li { margin-bottom: 8px; }
footer li a { font-size: 13px; line-height: 20px; color: var(--t70); }
footer li a:hover { color: var(--white); }
footer .legal { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--t20); display: flex; flex-wrap: wrap; gap: 16px 32px; font-size: 13px; color: var(--t70); align-items: center; }
footer .legal .brand { font-size: 16px; }
footer .legal .brand img { width: 24px; height: 24px; }
footer .legal .sp { margin-left: auto; }
@media (max-width: 1000px) { footer .cols { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { footer .cols { grid-template-columns: repeat(2, 1fr); } }

/* Extensions at work: a list of demos on the left, each with the lines
   that summon it and a bar that fills while its clip plays; the clip on
   the right, swapped in when its tab comes up. */
.demos-block { margin-top: 128px; }
.demos { display: flex; gap: 48px; margin-top: 48px; align-items: flex-start; }
.demo-tabs { flex: 0 0 36%; display: flex; flex-direction: column; }
.demo-tab {
  position: relative; text-align: left; padding: 16px 20px 18px; border-radius: var(--radius);
  color: var(--t50); transition: color .3s, background-color .3s;
}
.demo-tab:hover { color: var(--t80); }
.demo-tab[aria-selected="true"] { color: var(--white); background: var(--surface); }
.demo-tab .name { display: block; font-size: 20px; line-height: 28px; font-weight: 600; }
.demo-tab .desc, .demo-tab .code { display: block; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .5s, opacity .5s, margin .5s; }
.demo-tab .desc { color: var(--t70); }
.demo-tab .code { font-family: var(--mono); font-size: 12.5px; line-height: 20px; color: var(--ext); white-space: nowrap; text-overflow: ellipsis; }
.demo-tab[aria-selected="true"] .desc { max-height: 96px; opacity: 1; margin-top: 6px; }
.demo-tab[aria-selected="true"] .code { max-height: 100px; opacity: 1; margin-top: 10px; }
.demo-tab .progress { position: absolute; left: 20px; right: 20px; bottom: 0; height: 2px; background: var(--t10); opacity: 0; }
.demo-tab[aria-selected="true"] .progress { opacity: 1; }
.demo-tab .progress span { display: block; height: 100%; width: 0; background: var(--ext); }
.demo-tab.playing .progress span { animation: fill var(--ms, 20s) linear forwards; }
.demos.paused .demo-tab.playing .progress span { animation-play-state: paused; }
@keyframes fill { to { width: 100%; } }
.demo-stage {
  flex: 1; min-width: 0; position: sticky; top: 120px; aspect-ratio: 720 / 470; border-radius: 12px; overflow: hidden;
  background: var(--surface); box-shadow: 0 0 0 1px var(--t10);
}
.demo-frame { position: absolute; inset: 0; opacity: 0; transform: scale(1.02); transition: opacity .5s, transform .7s; pointer-events: none; }
.demo-frame.on { opacity: 1; transform: none; pointer-events: auto; }
.demo-frame img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .demos { flex-direction: column-reverse; gap: 24px; }
  .demo-tabs { flex-basis: auto; width: 100%; }
  .demo-stage { width: 100%; flex: none; top: 80px; z-index: 2; }
  .demo-tab .code { white-space: normal; }
}

/* The gallery: two rows of extension cards drifting in opposite
   directions, paused under the pointer. */
.gallery-block { margin-top: 128px; }
.gallery-block .count { color: var(--ext); font-variant-numeric: tabular-nums; }
.ext-row { --gap: 24px; display: flex; overflow: hidden; margin-top: 48px;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ext-row + .ext-row { margin-top: var(--gap); }
.ext-row .group { display: flex; flex: 0 0 auto; gap: var(--gap); padding-right: var(--gap); animation: marquee 80s linear infinite; }
.ext-row.reverse .group { animation-direction: reverse; animation-duration: 70s; }
.ext-row:hover .group, .ext-row:focus-within .group { animation-play-state: paused; }
.ext-card { flex: 0 0 340px; display: block; border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: 0 0 0 1px var(--t10); transition: transform .3s, box-shadow .3s; }
.ext-card:hover, .ext-card:focus-visible { transform: translateY(-6px); box-shadow: 0 0 0 1px var(--ext); }
.ext-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.ext-card span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 12px 16px 14px; font-size: 14px; line-height: 20px; color: var(--t70); }
.ext-card b { color: var(--white); font-weight: 600; }
.gallery-block .more { display: inline-block; margin-top: 40px; }
@media (max-width: 640px) { .ext-card { flex-basis: 260px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .value, .values-image .frame img, .rail .thumb, .card-tab, .tile, .btn { transition: none; }
  .marquee .group, .ext-row .group { animation: none; }
  .ext-row { overflow-x: auto; }
  .demo-tab, .demo-tab .desc, .demo-tab .code, .demo-frame, .ext-card { transition: none; }
  .artwork .media { animation: none; }
  .topbar { transition: none; }
  .value { opacity: 1; }
}
