/* Self-hosted (fonts/, SIL OFL): no requests to Google Fonts. Variable files, Latin + Latin
   Extended subsets with Google's unicode-ranges, so most pages only fetch the two Latin files. */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("fonts/jetbrains-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("fonts/jetbrains-mono-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --accent: #8f54e4;
  --navy: #004b87;
  --ink: #0d0f1a;
  --ink-2: #151829;
  --fg: #1d2433;
  --muted: #5d6779;
  --line: rgba(20, 35, 60, 0.1);
  --bg: #ffffff;
  --bg-2: #f6f5fb;
  --radius: 20px;
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --glow: color-mix(in srgb, var(--accent) 55%, transparent);
  --accent-text: color-mix(in srgb, var(--accent) 80%, #000);
  --gutter: clamp(16px, 4vw, 48px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

code,
kbd {
  font-family: var(--mono);
  font-size: 0.86em;
}

code {
  padding: 1px 6px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: color-mix(in srgb, var(--accent) 80%, #000);
}

kbd {
  display: inline-block;
  padding: 0 6px;
  border-radius: 6px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  background: #fff;
  color: var(--fg);
  line-height: 1.5;
}

.muted {
  color: var(--muted);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.15s ease, background 0.2s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-small {
  padding: 9px 18px;
  font-size: 14px;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 35%, transparent);
}

.btn-primary:hover {
  box-shadow: 0 0 8px var(--glow), 0 0 16px var(--glow), 0 0 28px var(--glow);
}

.btn-glass {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* ------------------------------------------------------------------ nav */

.nav {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 28px;
  width: min(1120px, calc(100% - 2 * 16px));
  padding: 10px 10px 10px 20px;
  border-radius: 999px;
  background: rgba(13, 15, 26, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 10px 30px rgba(0, 0, 0, 0.25);
  color: #fff;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.logo.small {
  font-size: 15px;
}

.mark {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 128 128'><defs><linearGradient id='g' x1='0' y1='0' x2='19.2' y2='128' gradientUnits='userSpaceOnUse'><stop offset='0' stop-color='%23B020F5'/><stop offset='.55' stop-color='%238706D4'/><stop offset='1' stop-color='%235600A7'/></linearGradient><clipPath id='c'><rect width='128' height='128'/></clipPath></defs><g clip-path='url(%23c)'><path fill='url(%23g)' d='M25.8246 0H102.175C117.895 0 128 11.4085 128 27.3804V77.5779C128 93.5498 116.772 103.817 101.053 103.817H52.7719L20.2105 126.634C15.7193 130.057 11.2281 126.634 12.3509 120.93L16.8421 101.536C5.61404 98.1132 0 88.9864 0 76.437V27.3804C0 11.4085 11.2281 0 25.8246 0Z'/><path fill='%23fff' d='M45 27.4775C45 23.9473 48.5031 21.5939 52.0062 23.9473L89.3727 46.3051C92.8758 48.6586 92.8758 53.3655 89.3727 55.7189L52.0062 78.0767C48.5031 80.4302 45 78.0767 45 73.3698V27.4775Z'/></g></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.nav-links {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 14px;
  font-weight: 600;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: #fff;
}

.label-short {
  display: none;
}

.nav-toggle {
  display: none;
}

@media (max-width: 920px) {
  .nav {
    gap: 8px;
  }
  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 2px;
    padding: 8px;
    border-radius: 20px;
    /* no backdrop-filter: it can't blur through the nav's own, so go nearly opaque */
    background: rgba(13, 15, 26, 0.96);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 16px 40px rgba(0, 0, 0, 0.35);
    font-size: 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.16s ease, transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear 0.2s;
  }
  .nav.open .nav-links {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.16s ease, transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .nav-links a {
    padding: 12px 14px;
    border-radius: 12px;
  }
  .nav-links a:hover,
  .nav-links a:focus-visible {
    background: rgba(255, 255, 255, 0.08);
  }
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
  }
  .nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.15s ease;
  }
  .nav.open .nav-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .nav.open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }
  .nav.open .nav-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
  .label-long {
    display: none;
  }
  .label-short {
    display: inline;
  }
  .nav .btn {
    margin-left: auto;
  }
}

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

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding: 150px var(--gutter) 110px;
  max-width: 1280px;
  margin: 0 auto;
  color: #fff;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: -2;
  background:
    radial-gradient(1000px 520px at 85% 10%, rgba(143, 84, 228, 0.35), transparent 60%),
    radial-gradient(800px 500px at 0% 100%, rgba(0, 75, 135, 0.45), transparent 60%),
    var(--ink);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, #000 30%, transparent);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #b48cff;
  animation: beacon 1.8s ease-out infinite;
}

@keyframes beacon {
  0% {
    box-shadow: 0 0 0 0 rgba(180, 140, 255, 0.7);
  }
  100% {
    box-shadow: 0 0 0 10px rgba(180, 140, 255, 0);
  }
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 800;
}

.grad {
  background: linear-gradient(100deg, #d6c2ff, #a879ff 40%, #6fb7ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede-strong {
  max-width: 520px;
  margin-bottom: 10px;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: #fff;
}

.lede {
  max-width: 560px;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
  margin-top: 40px;
}

.cta-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.cta-note {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.55);
}

.hero-promises {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.hero-promises li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.tick {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(143, 84, 228, 0.25);
  box-shadow: inset 0 0 0 1px rgba(180, 140, 255, 0.5);
}

.tick::after {
  content: "";
  width: 8px;
  height: 4px;
  margin-top: -2px;
  border-left: 2px solid #d6c2ff;
  border-bottom: 2px solid #d6c2ff;
  transform: rotate(-45deg);
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 120px;
  }
}

/* Before the demo starts, the hero is copy only, centered and a little larger. Starting the tour
   adds .demo-on: the copy settles into the left column and the demo app appears on the right
   (site.js animates the change). */
.hero:not(.demo-on) {
  grid-template-columns: minmax(0, 1fr);
  min-height: 640px;
}

.hero:not(.demo-on) .hero-copy {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.hero:not(.demo-on) h1 {
  font-size: clamp(44px, 7vw, 84px);
}

.hero:not(.demo-on) .lede-strong,
.hero:not(.demo-on) .lede {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.hero:not(.demo-on) .hero-ctas,
.hero:not(.demo-on) .hero-promises {
  justify-content: center;
}

.hero:not(.demo-on) .app {
  display: none;
}

/* the play button glows until the demo has been started */
.hero:not(.demo-on) #hero-tour {
  animation: cta-glow 2.4s ease-in-out infinite;
}

@keyframes cta-glow {
  0%,
  100% {
    box-shadow: 0 0 8px var(--glow), 0 0 16px var(--glow), 0 0 0 0 color-mix(in srgb, var(--accent) 50%, transparent);
  }
  50% {
    box-shadow: 0 0 14px var(--glow), 0 0 32px var(--glow), 0 0 0 8px color-mix(in srgb, var(--accent) 0%, transparent);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero:not(.demo-on) #hero-tour {
    animation: none;
    box-shadow: 0 0 10px var(--glow), 0 0 24px var(--glow);
  }
}

/* ------------------------------------------------------------------ demo app */

.app {
  align-self: start;
  margin-top: 8px;
  border-radius: 18px;
  background: #fff;
  color: var(--fg);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 120px rgba(143, 84, 228, 0.25);
  overflow: visible;
  transform: perspective(1600px) rotateY(-6deg) rotateX(2deg);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.app:hover,
html.anm-touring .app {
  transform: none;
}

@media (max-width: 960px) {
  .app {
    margin-top: 36px;
    transform: none;
  }
}

.app-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.app-chrome > span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e5e2ee;
}

.app-url {
  margin-left: 12px;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--bg-2);
  font-size: 12px;
  color: var(--muted);
}

.app-body {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  min-height: 410px;
}

.app-side {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 10px;
  border-right: 1px solid var(--line);
  background: #fbfaff;
  border-bottom-left-radius: 18px;
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px 14px;
  font-weight: 800;
}

.app-logo {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: linear-gradient(135deg, #2f7cf6, #8f54e4);
}

.app-nav {
  padding: 7px 10px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}

.app-nav.on {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
}

.app-main {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  min-width: 0;
}

.app-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--bg-2);
  color: var(--muted);
}

.app-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 13px;
  outline: none;
  color: var(--fg);
}

.app-search kbd {
  font-size: 11px;
}

.app-menu-wrap {
  position: relative;
}

.app-theme {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--bg-2);
  color: var(--muted);
  cursor: pointer;
}

.app-theme:hover {
  color: var(--fg);
}

.app-theme .icon-sun,
html[data-theme="dark"] .app-theme .icon-moon {
  display: none;
}

html[data-theme="dark"] .app-theme .icon-sun {
  display: block;
}

/* the demo app's dark mode (the toggle sets data-theme on <html>, as real sites do); the rest of
   the marketing page ignores it. Most colors come from these variables, so overriding them here
   reaches every part of the app. */
html[data-theme="dark"] .app {
  --fg: #e8ebf3;
  --muted: #9aa3b5;
  --line: rgba(255, 255, 255, 0.1);
  --bg-2: #1f2333;
  background: #141722;
}

html[data-theme="dark"] .app-chrome > span {
  background: #2c3144;
}

html[data-theme="dark"] .app-side {
  background: #181b28;
}

html[data-theme="dark"] .app-menu,
html[data-theme="dark"] .app-search kbd {
  background: #1b1f2d;
}

html[data-theme="dark"] .app-export:not(.done) {
  color: #141722;
}

.app-avatar {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #f0563a, #e2408f);
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.app-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  min-width: 190px;
  padding: 6px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line), 0 16px 40px rgba(0, 0, 0, 0.18);
  animation: menu-in 0.18s ease;
}

.app-menu[hidden] {
  display: none;
}

.app-menu a {
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  text-decoration: none;
}

.app-menu a:hover {
  background: var(--bg-2);
}

@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}

.app-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.kpi {
  display: flex;
  flex-direction: column;
  padding: 12px;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px var(--line);
}

.kpi span {
  font-size: 11.5px;
  color: var(--muted);
}

.kpi strong {
  font-size: 20px;
  font-weight: 800;
}

.kpi em {
  font-style: normal;
  font-size: 11.5px;
  font-weight: 700;
}

.up {
  color: #12a37f;
}

.down {
  color: #f0563a;
}

.app-chart {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 12px;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px var(--line);
}

.chart-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

.app-export {
  padding: 6px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--fg);
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

/* done: the label stays (invisible) so the button keeps its size; a checkmark sits on top */
.app-export.done {
  position: relative;
  background: #12a37f;
  color: transparent;
}

.app-export.done::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translate(-50%, -70%) rotate(-45deg);
}


.chart-svg {
  width: 100%;
  height: 130px;
  margin-top: 8px;
}

@media (max-width: 560px) {
  .app-body {
    grid-template-columns: 1fr;
  }
  .app-side {
    display: none;
  }
}

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

.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 90px var(--gutter) 0;
}

.section h2 {
  max-width: 720px;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  margin: 10px 0 18px;
}

.kicker {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.step-card,
.feature {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.step-card:hover,
.feature:hover {
  transform: translateY(-3px);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 50%, transparent), 0 20px 40px rgba(0, 75, 135, 0.1);
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 40%, transparent);
}

.step-card h3,
.feature h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.step-card p,
.feature p {
  color: var(--muted);
  font-size: 16px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.playground {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--bg-2);
}

.swatches {
  display: flex;
  gap: 8px;
}

.swatch {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: var(--c);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.swatch:hover {
  transform: scale(1.1);
}

.swatch.on {
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--c);
}

.seg {
  display: flex;
  padding: 3px;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}

.seg button {
  padding: 6px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
}

.seg button.on {
  background: var(--accent);
  color: #fff;
}

.code {
  margin: 0;
  padding: 24px 26px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #e3e6f0;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.7;
  overflow-x: auto;
  box-shadow: 0 30px 60px rgba(13, 15, 26, 0.18);
}

.code code {
  padding: 0;
  background: none;
  color: inherit;
}

.t-k {
  color: #b48cff;
}

.t-c {
  color: #6b7290;
}

.t-s {
  color: #8fe3b8;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.install {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: start;
  margin-top: 36px;
}

.install-list {
  margin: 0;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--muted);
}

.install-list li::marker {
  color: var(--accent);
  font-weight: 800;
}

.code-wrap {
  position: relative;
  border-radius: var(--radius);
}

.copy {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.copy:hover {
  background: rgba(255, 255, 255, 0.18);
}

.footer-contact {
  color: var(--muted);
  text-decoration: none;
}

.footer-contact:hover {
  color: var(--accent-text);
  text-decoration: underline;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  max-width: 1120px;
  margin: 100px auto 0;
  padding: 28px var(--gutter) 48px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

/* ------------------------------------------------------------------ legal pages (privacy/) */

.nav-end {
  margin-left: auto;
}

.legal {
  /* a 760px text column: the gutter is padding, so add it to the width */
  max-width: calc(760px + 2 * var(--gutter));
  margin: 0 auto;
  padding: 140px var(--gutter) 0;
  line-height: 1.7;
}

.legal h1 {
  font-size: clamp(34px, 5vw, 48px);
  margin-bottom: 8px;
}

.legal h2 {
  font-size: 26px;
  font-weight: 750;
  margin: 48px 0 12px;
}

.legal p + p,
.legal p + ul,
.legal ul + p {
  margin-top: 14px;
}

.legal ul {
  margin: 0;
  padding-left: 22px;
}

.legal li + li {
  margin-top: 8px;
}

.legal a {
  color: var(--accent-text);
}

/* /support/: the email button keeps its own colors inside .legal */
.legal .support-action {
  margin: 28px 0;
}

.legal a.btn-primary {
  color: #fff;
}

/* ------------------------------------------------------------------ shared section bits */

.section-lede {
  max-width: 680px;
  margin-bottom: 8px;
  font-size: 17px;
  color: var(--muted);
}

.btn-ghost {
  color: var(--fg);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}

.btn-ghost:hover {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 50%, transparent);
}

/* ------------------------------------------------------------------ create → experience */

/* breaks out of the 1120px text column: these screenshots are the page's centerpiece */
.create-experience {
  width: min(1360px, calc(100vw - 2 * var(--gutter)));
  margin-left: 50%;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  margin-top: 40px;
}

.shot-card {
  position: relative;
  margin: 0;
  padding: 10px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line), 0 30px 60px rgba(13, 15, 26, 0.12), 0 0 80px color-mix(in srgb, var(--accent) 12%, transparent);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (hover: hover) {
  .shot-card:hover {
    transform: scale(1.15);
    box-shadow: 0 0 0 1px var(--line), 0 60px 120px rgba(13, 15, 26, 0.22), 0 0 140px color-mix(in srgb, var(--accent) 28%, transparent);
    z-index: 1;
  }

  .anm-touring .shot-card:hover {
    transform: none;
    box-shadow: none;
    z-index: auto;
  }
}

.shot-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}

.shot-card figcaption {
  padding: 12px 6px 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
}

.shot-tag {
  position: absolute;
  top: -12px;
  left: 22px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shot-tag.tag-live {
  background: var(--accent);
}

.flow-arrow {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 40%, transparent);
}

/* ------------------------------------------------------------------ guidance where it matters */

.context-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding: 44px 48px;
  border-radius: 28px;
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(143, 84, 228, 0.35), transparent 60%),
    radial-gradient(500px 300px at 0% 100%, rgba(0, 75, 135, 0.4), transparent 60%),
    var(--ink);
  color: #fff;
}

.context-band h2 {
  margin-bottom: 0;
}

.context-band .muted {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.72);
}

/* ------------------------------------------------------------------ Pro teaser (Studio → Publish → live) */

.pro-free {
  margin-top: 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.pro-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.pro-card {
  padding: 26px 18px 18px;
  min-height: 210px;
  font-size: 13px;
}

.pro-tour {
  margin-bottom: 10px;
  font-weight: 800;
}

.pro-steps {
  display: grid;
  gap: 6px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.pro-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  background: var(--bg-2);
}

.pro-steps span {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  font-size: 10px;
  font-weight: 800;
}

.pro-steps .is-new {
  color: var(--fg);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent);
}

/* the one action that matters, ringed the way the runtime rings a target */
.pro-publish {
  display: block;
  padding: 9px 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--accent), 0 10px 24px color-mix(in srgb, var(--accent) 40%, transparent);
}

.pro-browser {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 14px;
}

.pro-browser i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
}

.pro-browser span {
  margin-left: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--muted);
  font-size: 11px;
}

.pro-page {
  display: grid;
  justify-items: start;
  gap: 8px;
}

.pro-line {
  height: 9px;
  border-radius: 5px;
  background: var(--bg-2);
}

.pro-line.w70 { width: 70%; }
.pro-line.w45 { width: 45%; }

.pro-target {
  margin-top: 6px;
  padding: 5px 12px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--accent);
}

.pro-callout {
  position: relative;
  display: grid;
  gap: 2px;
  margin-top: 8px;
  padding: 9px 12px;
  border-radius: 12px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  box-shadow: 0 0 0 1px var(--line), 0 10px 24px rgba(13, 15, 26, 0.12);
}

.pro-callout::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 22px;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: #fff;
  transform: rotate(45deg);
}

.pro-callout b {
  color: var(--fg);
}

.pro-inline {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
}

.pro-inline a {
  color: var(--accent-text);
  font-weight: 700;
}

.pro-pill {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent-text);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 560px) {
  .pro-flow { grid-template-columns: minmax(0, 1fr); justify-items: stretch; }
  .pro-flow .flow-arrow { justify-self: center; transform: rotate(90deg); }
}

/* ------------------------------------------------------------------ how it works (with images) */

.step-shot.focus-left {
  object-position: left top;
}

.step-shot.focus-right {
  object-position: right bottom;
}

.step-shot {
  display: block;
  width: 100%;
  height: 190px;
  margin-bottom: 20px;
  border-radius: 14px;
  object-fit: cover;
  object-position: top center;
  background: var(--bg-2);
  box-shadow: 0 0 0 1px var(--line);
}

/* ------------------------------------------------------------------ use cases */

.uses,
.promises {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.use-card,
.promise {
  padding: 28px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.use-card:hover,
.promise:hover {
  transform: translateY(-3px);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 50%, transparent), 0 20px 40px rgba(0, 75, 135, 0.1);
}

.use-who {
  margin-bottom: 10px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.use-card h3,
.promise h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

.use-card p,
.promise p {
  color: var(--muted);
  font-size: 16px;
}

.use-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.use-tags li {
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--bg-2);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fg);
}

/* ------------------------------------------------------------------ ownership */

.promise-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
}

.compare {
  margin-top: 28px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line);
}

.compare-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  font-size: 15px;
}

.compare-row span {
  padding: 13px 22px;
  border-top: 1px solid var(--line);
}

.compare-row span:first-child {
  color: var(--muted);
}

.compare-row span:last-child {
  font-weight: 600;
  background: color-mix(in srgb, var(--accent) 5%, transparent);
}

.compare-head span {
  border-top: 0;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.compare-head span:last-child {
  color: var(--accent-text);
}

.compare-details .compare {
  margin: 0 20px 20px;
  background: #fff;
}

/* ------------------------------------------------------------------ customization preview */

.preview-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 48px 24px;
  border-radius: 28px;
  background: var(--bg-2);
}

.preview-target {
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--fg);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 0 0 6px #fff, 0 0 0 8px var(--accent), 0 0 24px var(--glow);
}

.preview-pop {
  --pop-bg: #fff;
  --pop-fg: #333f48;
  --pop-muted: #6b7785;
  --pop-line: rgba(20, 35, 60, 0.09);
  position: relative;
  width: min(320px, 100%);
  padding: 18px 20px 16px;
  border-radius: 20px;
  background: var(--pop-bg);
  color: var(--pop-fg);
  font-size: 14px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.12), 0 0 25px rgba(0, 75, 135, 0.22), 0 0 50px rgba(0, 75, 135, 0.15);
  transition: background 0.3s ease, color 0.3s ease;
}

.preview-pop[data-mode="dark"] {
  --pop-bg: #161a26;
  --pop-fg: #e8ebf3;
  --pop-muted: #9aa3b5;
  --pop-line: rgba(255, 255, 255, 0.09);
}

.preview-arrow {
  position: absolute;
  top: -7px;
  left: calc(50% - 8px);
  width: 16px;
  height: 16px;
  border-radius: 3px;
  background: var(--pop-bg);
  transform: rotate(45deg);
  transition: background 0.3s ease;
}

/* mirrors the runtime popover: title, muted count, close */
.preview-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}

.preview-title {
  flex: 1;
  font-size: 16px;
  font-weight: 700;
}

.preview-count,
.preview-close {
  color: var(--pop-muted);
}

.preview-count {
  font-size: 12px;
}

.preview-close {
  font-size: 18px;
  line-height: 1;
}

.preview-body {
  opacity: 0.88;
}

.preview-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
}

.preview-skip {
  margin-right: auto;
  font-size: 12px;
  font-weight: 500;
  color: var(--pop-muted);
}

.preview-back,
.preview-next {
  padding: 8px 15px;
  border-radius: 999px;
}

.preview-next {
  background: var(--accent);
  color: #fff;
}

/* ------------------------------------------------------------------ technical details */

.tech {
  margin-top: 24px;
  border-radius: var(--radius);
  background: var(--bg-2);
}

.tech summary {
  padding: 18px 24px;
  font-weight: 700;
  cursor: pointer;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 32px;
  margin: 0;
  padding: 4px 24px 26px;
}

.tech-grid dt {
  margin-bottom: 4px;
  font-weight: 700;
}

.tech-grid dd {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

/* ------------------------------------------------------------------ install */

.install-list li strong {
  color: var(--fg);
}

.install-list li > div {
  margin-top: 12px;
}

.install-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.save-shot {
  display: block;
  width: min(300px, 100%);
  height: auto;
  align-self: center;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(13, 15, 26, 0.14);
}

/* ------------------------------------------------------------------ final CTA */

.final-cta {
  padding: 64px 32px;
  border-radius: 28px;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(143, 84, 228, 0.45), transparent 65%),
    radial-gradient(500px 260px at 0% 100%, rgba(0, 75, 135, 0.45), transparent 60%),
    var(--ink);
}

.final-cta h2 {
  max-width: none;
  margin: 0 0 10px;
}

.final-cta p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 17px;
}

.final-cta .hero-ctas {
  justify-content: center;
}

@media (max-width: 860px) {
  .steps,
  .features,
  .split,
  .install,
  .uses,
  .promises,
  .context-band,
  .tech-grid {
    grid-template-columns: 1fr;
  }

  .create-experience {
    grid-template-columns: 1fr;
  }

  .flow-arrow {
    justify-self: center;
    transform: rotate(90deg);
  }

  .context-band {
    padding: 32px 24px;
  }
}

/* ------------------------------------------------------------------ use-case art (tiny, CSS-only) */

.use-art {
  position: relative;
  height: 128px;
  margin-bottom: 22px;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--bg-2);
  overflow: hidden;
}

.art-frame {
  display: flex;
  flex-direction: column;
  gap: 9px;
  height: 100%;
  padding: 14px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(13, 15, 26, 0.08);
}

.art-line {
  height: 8px;
  border-radius: 99px;
  background: #e6e3f0;
}

.art-line.w40 { width: 40%; }
.art-line.w50 { width: 50%; }
.art-line.w60 { width: 60%; }
.art-line.w70 { width: 70%; }

.art-block {
  flex: 1;
  border-radius: 8px;
  background: linear-gradient(135deg, #efeaff, #e4f0ff);
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--accent);
}

.art-note {
  position: absolute;
  right: 22px;
  bottom: 18px;
  padding: 7px 11px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 40%, transparent);
}

.art-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
}

.art-chip {
  width: 34%;
  height: 22px;
  border-radius: 99px;
  background: #efedf6;
}

.art-btn {
  position: relative;
  padding: 7px 16px;
  border-radius: 99px;
  background: var(--fg);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--accent), 0 0 18px var(--glow);
}

.art-new {
  position: absolute;
  top: -11px;
  right: -14px;
  padding: 2px 7px;
  border-radius: 99px;
  background: #ff5c8a;
  font-size: 10px;
  font-weight: 800;
}

.art-step {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}

.art-step::before {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px #d9d4e8;
}

.art-step.done::before {
  background: var(--accent);
  box-shadow: none;
}

.art-step.now {
  color: var(--fg);
}

.art-step.now::before {
  box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}

/* ------------------------------------------------------------------ customization: preview inside a mini app */

.preview-stage {
  gap: 0;
  padding: 28px;
}

.mini-app {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line), 0 16px 36px rgba(13, 15, 26, 0.08);
}

.mini-bar {
  display: flex;
  gap: 5px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
}

.mini-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e5e2ee;
}

.mini-body {
  display: grid;
  grid-template-columns: 70px 1fr;
}

.mini-side {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 10px;
  border-right: 1px solid var(--line);
  background: #fbfaff;
}

.mini-side span {
  height: 8px;
  border-radius: 99px;
  background: #e6e3f0;
}

.mini-side span.on {
  background: color-mix(in srgb, var(--accent) 35%, #fff);
}

.mini-main {
  padding: 14px 16px 8px;
}

.mini-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mini-title {
  font-size: 13px;
  font-weight: 700;
}

.mini-chart {
  display: block;
  width: 100%;
  height: 70px;
  margin-top: 8px;
}

.preview-stage .preview-target {
  padding: 7px 16px;
  font-size: 12px;
  box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--accent), 0 0 22px var(--glow);
}

.preview-stage .preview-pop {
  margin-top: -36px;
  margin-left: auto;
  margin-right: 4px;
}

.preview-stage .preview-arrow {
  left: auto;
  right: 40px;
}

/* ------------------------------------------------------------------ install: two jobs */

.install-jobs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 36px;
}

.job {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px var(--line);
}

.job h3 {
  font-size: 22px;
}

.job .install-list {
  gap: 10px;
  font-size: 15.5px;
}

.job .btn {
  align-self: flex-start;
}

.job-step {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.job .save-shot {
  width: min(240px, 70%);
}

@media (max-width: 860px) {
  .install-jobs {
    /* minmax(0, …), not 1fr: the snippet's <pre> must scroll, not widen the card past the screen */
    grid-template-columns: minmax(0, 1fr);
  }
}

/* store buttons: the visitor's browser up front, the rest under "Also for" */
.install-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 4px;
}

.install-primary {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  max-width: 100%;
  padding: 12px 22px 12px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 35%, transparent);
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.install-primary:hover {
  box-shadow: 0 0 8px var(--glow), 0 0 16px var(--glow), 0 0 28px var(--glow);
}

.install-primary:active {
  transform: translateY(1px);
}

.install-primary img {
  flex: none;
  padding: 4px;
  border-radius: 50%;
  background: #fff;
}

.install-primary-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.install-primary-text strong {
  font-size: 16px;
}

.install-primary-text small {
  font-size: 12.5px;
  opacity: 0.85;
}

.install-primary-arrow {
  margin-left: 4px;
  font-size: 18px;
}

.install-alt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.install-alt-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--fg);
  font-weight: 600;
  text-decoration: none;
}

.install-alt-link:hover {
  color: var(--accent-text);
}

.install-alt-link[hidden],
.install-alt[hidden] {
  display: none;
}

/* the Publish card is narrower: give the snippet its own row below the Copy button */
.job .code {
  padding-top: 52px;
  font-size: 12.5px;
}

/* ------------------------------------------------------------------ FAQ */

.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 860px;
  margin-top: 32px;
}

.faq details {
  border-radius: 16px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow 0.2s ease;
}

.faq details[open] {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

/* the plus is two drawn bars, not a "+" glyph: font metrics put the glyph off center */
.faq summary::after {
  content: "";
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background:
    linear-gradient(var(--accent-text), var(--accent-text)) center / 12px 2px no-repeat,
    linear-gradient(var(--accent-text), var(--accent-text)) center / 2px 12px no-repeat,
    color-mix(in srgb, var(--accent) 12%, transparent);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  padding: 0 24px 24px;
  font-size: 16px;
  color: var(--muted);
}

/* ------------------------------------------------------------------ load-in + scroll reveals
   The hero arrives once on load (about 0.9 s), then the demo button bounces once (site.js).
   Below the fold, elements reveal once as they scroll in. Every hidden starting state is scoped
   to html.motion, which an inline script in <head> sets before first paint unless the visitor
   prefers reduced motion, so without it the page is simply static. */
:root {
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------------------------------------------------------- hero: lights come up */
.motion .hero::before {
  animation: intro-lights 0.5s var(--ease-out) both;
}

@keyframes intro-lights {
  from {
    filter: brightness(0.25) saturate(0.4);
  }
}

.motion .hero::after {
  animation: intro-fade-down 0.6s var(--ease-out) 0.05s both;
}

@keyframes intro-fade-down {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }
}

.motion .nav {
  animation: intro-drop 0.45s var(--ease-out) both;
}

@keyframes intro-drop {
  from {
    opacity: 0;
    translate: 0 -10px;
  }
}

.motion .eyebrow {
  animation: intro-pop 0.4s var(--ease-out) 0.05s both;
}

@keyframes intro-pop {
  from {
    opacity: 0;
    transform: scale(0.88);
  }
}

/* ---------------------------------------------------------- headline words rise out of a mask */
.mask-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  /* room for descenders (y, g) inside the mask */
  padding: 0 0.06em 0.16em;
  margin: 0 -0.06em -0.16em;
}

.mask-word > span {
  display: inline-block;
  transform-origin: 0 100%;
}

.motion .hero .mask-word > span {
  animation: intro-rise 0.6s var(--ease-out) both;
  animation-delay: calc(0.08s + var(--i) * 50ms);
}

.motion .section h2.is-in .mask-word > span {
  animation: intro-rise 0.55s var(--ease-out) both;
  animation-delay: calc(var(--i) * 28ms);
}

.motion .section h2:not(.is-in) .mask-word > span {
  transform: translateY(115%);
}

@keyframes intro-rise {
  from {
    transform: translateY(115%) rotate(5deg);
  }
}

/* the gradient line wipes in left to right, and one sheen of light crosses it */
.motion .hero h1 .grad {
  display: inline-block;
  /* an inline-block's box is only line-height tall, and background-clip: text paints only inside
     it: pad the bottom so y and g descenders get the gradient, and pull the margin back to match */
  padding-bottom: 0.18em;
  margin-bottom: -0.18em;
  background:
    linear-gradient(100deg, transparent 42%, rgba(255, 255, 255, 0.95) 50%, transparent 58%) 100% 0 / 300% 100% no-repeat,
    linear-gradient(100deg, #d6c2ff, #a879ff 40%, #6fb7ff);
  -webkit-background-clip: text;
  background-clip: text;
  animation: intro-wipe 0.55s var(--ease-out) 0.22s both, intro-sheen 0.8s ease-out 0.35s both;
}

@keyframes intro-wipe {
  from {
    clip-path: inset(-10% 100% -25% 0);
  }
  to {
    clip-path: inset(-10% -2% -25% 0);
  }
}

@keyframes intro-sheen {
  from {
    background-position: 100% 0, 0 0;
  }
  to {
    background-position: 0% 0, 0 0;
  }
}

/* ---------------------------------------------------------- copy comes into focus */
.motion .hero .lede-strong {
  animation: intro-up 0.45s var(--ease-out) 0.32s both;
}

.motion .hero .lede {
  animation: intro-up 0.45s var(--ease-out) 0.38s both;
}

.motion .hero .hero-ctas > * {
  animation: intro-up 0.45s var(--ease-out) both;
}

.motion .hero .hero-ctas > :nth-child(1) {
  animation-delay: 0.45s;
}

.motion .hero .hero-ctas > :nth-child(2) {
  animation-delay: 0.5s;
}

@keyframes intro-up {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
}

.motion .hero-promises li {
  animation: intro-up 0.4s var(--ease-out) both;
}

.motion .hero-promises li:nth-child(1) {
  animation-delay: 0.55s;
}

.motion .hero-promises li:nth-child(2) {
  animation-delay: 0.6s;
}

.motion .hero-promises li:nth-child(3) {
  animation-delay: 0.65s;
}

/* each tick pops, then its check mark draws */
.motion .hero-promises .tick {
  animation: intro-tick 0.35s var(--ease-out) both;
}

.motion .hero-promises .tick::after {
  animation: intro-check 0.22s ease-out both;
}

.motion .hero-promises li:nth-child(1) .tick {
  animation-delay: 0.6s;
}

.motion .hero-promises li:nth-child(2) .tick {
  animation-delay: 0.65s;
}

.motion .hero-promises li:nth-child(3) .tick {
  animation-delay: 0.7s;
}

.motion .hero-promises li:nth-child(1) .tick::after {
  animation-delay: 0.75s;
}

.motion .hero-promises li:nth-child(2) .tick::after {
  animation-delay: 0.8s;
}

.motion .hero-promises li:nth-child(3) .tick::after {
  animation-delay: 0.85s;
}

@keyframes intro-tick {
  from {
    transform: scale(0);
  }
}

@keyframes intro-check {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

/* the button's glow waits until the page has finished arriving */
.motion .hero:not(.demo-on) #hero-tour {
  animation-delay: 1.8s;
}

/* ---------------------------------------------------------- below the fold: reveal once, on scroll */
.motion .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s var(--ease-out), transform 0.55s var(--ease-out), clip-path 0.6s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 55ms);
}

/* cards land on the table: a slight tilt that flattens as they arrive */
.motion .reveal.reveal-card {
  transform: perspective(900px) translateY(24px) rotateX(8deg) scale(0.98);
  transform-origin: 50% 100%;
}

.motion .reveal.reveal-arrow {
  transform: translateX(-12px);
}

.motion .reveal.reveal-side {
  transform: translateX(-12px);
  transition-delay: calc(var(--d, 0) * 30ms);
}

/* the dark band opens from its center */
.motion .reveal.reveal-band {
  transform: none;
  clip-path: inset(0 8% round 28px);
}

.motion .reveal.reveal-final {
  transform: scale(0.97);
}

.motion .reveal.is-in {
  opacity: 1;
  transform: none;
  clip-path: inset(0 0 round 28px);
}

.motion .reveal.is-in:not(.reveal-band) {
  clip-path: none;
}

/* h2s reveal through their words, not as a block */
.motion .section h2.reveal {
  opacity: 1;
  transform: none;
}
