/* Intalix Studio landing page.
   Sharp corners everywhere (no border-radius), hairline borders, thin controls.
   Colours and fonts follow the app's dark theme (src/styles/globals.css). */

:root {
  --bg: #0b0b0d;
  --surface: #111114;
  --surface-2: #16161a;
  --sunken: #0e0e11;
  --line: #24242a;
  --line-strong: #33333a;
  --text: #ececef;
  --muted: #92929b;
  --subtle: #5f5f68;
  --accent: #ff6a14;
  --accent-hover: #ff8236;
  --accent-text: #ff8a47;
  --accent-ink: #160900;
  --accent-soft: rgb(255 106 20 / 0.1);
  --green: #34d399;
  --blue: #60a5fa;

  --sans: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1160px;
  --gutter: 24px;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
svg {
  display: block;
}
code,
pre {
  font-family: var(--mono);
}
button {
  font: inherit;
}
::selection {
  background: rgb(255 106 20 / 0.3);
}
:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  padding: 8px 12px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 600;
}
.skip:focus {
  top: 12px;
}

.container {
  width: min(var(--container), 100% - var(--gutter) * 2);
  margin-inline: auto;
}
.container--narrow {
  --container: 760px;
}

/* ---------------------------------- type ---------------------------------- */

h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.4rem);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
h2 {
  font-size: clamp(1.7rem, 3.3vw, 2.6rem);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.accent {
  background: linear-gradient(90deg, #ff8a47, #ff6a14 45%, #ffb37a);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s ease-in-out infinite alternate;
}
@keyframes shimmer {
  to {
    background-position: 100% 0;
  }
}
.lead {
  color: var(--muted);
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.65;
  max-width: 58ch;
  text-wrap: pretty;
}
.lead code,
.points code {
  padding: 1px 5px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--green);
  font-size: 0.86em;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}
.dot--blue {
  background: var(--blue);
}
.dot--green {
  background: var(--green);
}
@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 32px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  font: 500 13px/1 var(--sans);
  letter-spacing: -0.005em;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s,
    transform 0.2s var(--ease);
}
.btn svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: square;
  transition: transform 0.25s var(--ease);
}
.btn--lg {
  height: 38px;
  padding: 0 18px;
  font-size: 13.5px;
}
.btn--primary {
  position: relative;
  overflow: hidden;
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}
.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgb(255 255 255 / 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.6s var(--ease);
}
.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}
.btn--primary:hover::after {
  transform: translateX(120%);
}
.btn--primary:hover svg {
  transform: translateY(1.5px);
}
.btn--ghost:hover {
  border-color: var(--subtle);
  background: var(--surface-2);
}
.btn--ghost:hover svg {
  transform: translateX(3px);
}
.btn:active {
  transform: translateY(1px);
}

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

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition:
    background 0.3s,
    border-color 0.3s;
}
.nav.is-stuck {
  border-color: var(--line);
  background: rgb(11 11 13 / 0.78);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 56px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand__mark {
  width: 20px;
  height: 20px;
}
.nav__links {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 13px;
  color: var(--muted);
}
.nav__links a {
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}
.nav__links a::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__links a:hover,
.nav__links a.is-active {
  color: var(--text);
}
.nav__links a:hover::after,
.nav__links a.is-active::after {
  transform: scaleX(1);
}
.nav__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav__toggle {
  display: none;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.nav__toggle svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

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

.hero {
  position: relative;
  padding: 132px 0 96px;
  overflow: hidden;
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 55% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 75% 55% at 50% 0%, #000 20%, transparent 75%);
  opacity: 0.55;
  pointer-events: none;
}
.hero__glow {
  position: absolute;
  top: -260px;
  left: 50%;
  width: 1000px;
  height: 680px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgb(255 106 20 / 0.22), transparent);
  filter: blur(20px);
  animation: drift 14s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes drift {
  to {
    transform: translateX(-44%) translateY(30px);
  }
}
/* Thin vertical light beams falling along the grid. */
.hero__beams i {
  position: absolute;
  top: -200px;
  width: 1px;
  height: 200px;
  background: linear-gradient(transparent, var(--accent), transparent);
  opacity: 0.55;
  animation: beam 7s linear infinite;
  pointer-events: none;
}
.hero__beams i:nth-child(1) {
  left: calc(50% - 392px);
}
.hero__beams i:nth-child(2) {
  left: calc(50% + 224px);
  animation-delay: 2.4s;
  animation-duration: 8.5s;
}
.hero__beams i:nth-child(3) {
  left: calc(50% - 56px);
  animation-delay: 4.8s;
  animation-duration: 9.5s;
}
@keyframes beam {
  to {
    transform: translateY(900px);
  }
}
/* The same streaks running left to right along the grid's horizontal lines. */
.hero__beams b {
  position: absolute;
  left: -260px;
  width: 260px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.5;
  animation: beam-x 9s linear infinite;
  pointer-events: none;
}
.hero__beams b:nth-of-type(1) {
  top: 168px;
  animation-delay: 1.2s;
}
.hero__beams b:nth-of-type(2) {
  top: 336px;
  animation-delay: 4.2s;
  animation-duration: 11s;
}
.hero__beams b:nth-of-type(3) {
  top: 504px;
  animation-delay: 7s;
  animation-duration: 10s;
}
@keyframes beam-x {
  to {
    transform: translateX(calc(100vw + 260px));
  }
}
.hero .container {
  position: relative;
}
.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}
.hero__copy .lead {
  max-width: 60ch;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
}

/* ------------------------------------ film ------------------------------------ */

.film {
  position: relative;
  margin-top: 64px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow:
    0 50px 140px -40px rgb(0 0 0 / 0.95),
    0 0 110px -50px rgb(255 106 20 / 0.45);
}
.film--blue {
  margin-top: 0;
  box-shadow:
    0 50px 140px -40px rgb(0 0 0 / 0.95),
    0 0 110px -50px rgb(96 165 250 / 0.4);
}
.film::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent) 35%, var(--accent) 65%, transparent);
}
.film--blue::before {
  background: linear-gradient(90deg, transparent, var(--blue) 35%, var(--blue) 65%, transparent);
}
.film__head {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 46px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
}
.film__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 9px;
  border: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.film__title {
  min-width: 0;
  overflow: hidden;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.film__replay {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 26px;
  margin-left: auto;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  transition:
    color 0.2s,
    border-color 0.2s;
}
.film__replay svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}
.film__replay:hover {
  color: var(--text);
  border-color: var(--subtle);
}
.film__replay:hover svg {
  animation: spin 0.6s var(--ease);
}

/* The screen is laid out at 1080 × 640 and scaled to the stage's width (script.js). */
.stage {
  position: relative;
  aspect-ratio: 1080 / 640;
  overflow: hidden;
  background: var(--sunken);
}
.screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 1080px;
  height: 640px;
  transform: scale(var(--s, 1));
  transform-origin: 0 0;
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  line-height: 1.4;
  user-select: none;
}

/* Chapter bar: like a video's progress, one segment per step. */
.chapters {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
}
.chapters li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 14px 12px;
  border-right: 1px solid var(--line);
  color: var(--subtle);
  font-size: 12px;
  transition: color 0.3s;
}
.chapters li:last-child {
  border-right: 0;
}
.chapters i {
  position: relative;
  height: 2px;
  background: var(--line-strong);
  overflow: hidden;
}
.chapters i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}
.film--blue .chapters i::after {
  background: var(--blue);
}
.chapters li.is-on {
  color: var(--text);
}
.chapters li.is-done {
  color: var(--muted);
}
.chapters li.is-on i::after {
  animation: fill var(--dur, 3s) linear forwards;
}
.chapters li.is-done i::after {
  transform: scaleX(1);
}
@keyframes fill {
  to {
    transform: scaleX(1);
  }
}

/* ------------------------------ inside the films ------------------------------ */

.wb {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 30px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  color: var(--muted);
  font-size: 11.5px;
}
.wb__t {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.wb__t svg {
  width: 13px;
  height: 13px;
}
/* Windows 11 caption buttons, each in its own wide cell like the real title bar. */
.wb__c {
  display: flex;
  align-self: stretch;
  margin-right: -12px;
}
.wb__c i {
  display: grid;
  place-items: center;
  width: 34px;
}
.wb__c svg {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1;
}
.ui {
  display: grid;
  height: 610px;
}
.ui--builder,
.ui--sql {
  grid-template-columns: 200px minmax(0, 1fr) 282px;
}
.side {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: var(--surface);
}
.side__h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}
.side__h em {
  color: var(--muted);
  font-style: normal;
  font-weight: 400;
}
.side__sub {
  padding: 12px 12px 6px;
  color: var(--subtle);
  font-size: 10.5px;
}
.side__item {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 28px;
  padding: 5px 12px;
  line-height: 1.3;
  transition: background 0.2s;
}
.side__item.is-sel {
  background: var(--surface-2);
  box-shadow: inset 2px 0 0 var(--accent);
}
.side__item .ti {
  width: 12px;
  height: 10px;
  border: 1px solid var(--muted);
  background: linear-gradient(var(--muted), var(--muted)) 0 3px / 100% 1px no-repeat;
}
.side__item.grab {
  background: var(--accent-soft);
}
.side__item small {
  display: block;
  color: var(--subtle);
  font-size: 10px;
}
.side__item .done {
  margin-left: auto;
  color: var(--subtle);
  opacity: 0;
  transition: opacity 0.3s;
}
.side__item.used .done {
  opacity: 1;
}

.center {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-right: 1px solid var(--line);
}
.top {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 10px 0 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.top b {
  margin-right: auto;
  font-size: 12.5px;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 6px;
  color: var(--green);
  font-size: 11px;
  opacity: 0;
  transform: translateY(3px);
  transition:
    opacity 0.4s,
    transform 0.4s var(--ease);
}
.status.on {
  opacity: 1;
  transform: none;
}
.status small {
  color: var(--muted);
}
.b {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 9px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--text);
  font-size: 11px;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.b--p {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}
.b--g {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}
.b.hit {
  border-color: var(--accent);
}
.b--p.hit {
  background: var(--accent-hover);
}
.b .spin {
  display: none;
}
.b.busy .spin {
  display: block;
}
.b.busy .tri {
  display: none;
}
.tri {
  width: 0;
  height: 0;
  border-left: 6px solid currentColor;
  border-block: 4px solid transparent;
}
/* The one round element: a spinner reads as loading only when it is a circle. */
.spin {
  width: 10px;
  height: 10px;
  border: 1.5px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Builder canvas. */
.canvas {
  position: relative;
  flex: 1;
  min-height: 0;
  background-color: var(--sunken);
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 20px 20px;
  overflow: hidden;
}
.canvas__hint {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 4px;
  text-align: center;
  transition: opacity 0.4s;
}
.canvas__hint b {
  font-size: 14px;
}
.canvas__hint span {
  color: var(--muted);
}
.canvas.has .canvas__hint {
  opacity: 0;
}
.tc {
  position: absolute;
  width: 214px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow: 0 14px 34px -14px rgb(0 0 0 / 0.85);
  opacity: 0;
  transform: scale(0.9);
  transition:
    opacity 0.35s,
    transform 0.45s var(--ease);
}
.tc.on {
  opacity: 1;
  transform: none;
}
.tc--a {
  left: 44px;
  top: 34px;
}
.tc--b {
  left: 362px;
  top: 84px;
}
.tc__h {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 10px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  font-weight: 600;
}
.tc__h::before {
  content: "";
  width: 6px;
  height: 12px;
  background: radial-gradient(var(--subtle) 1px, transparent 1.2px) 0 0 / 3px 3px;
}
.tc__r {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 24px;
  padding: 0 10px;
  transition: background 0.2s;
}
.tc__r em {
  margin-left: auto;
  color: var(--subtle);
  font-size: 10px;
  font-style: normal;
}
.tc__r.key {
  color: var(--accent-text);
}
.tc__r.flash {
  background: var(--accent-soft);
}
.box {
  flex: none;
  width: 12px;
  height: 12px;
  border: 1px solid var(--line-strong);
  background: var(--sunken);
  transition:
    background 0.2s,
    border-color 0.2s;
}
.box.on {
  border-color: var(--accent);
  background: var(--accent)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.7 6.1l2.2 2.2 4.4-4.8' fill='none' stroke='%23160900' stroke-width='1.7'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}
.join {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.join path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  transition: stroke-dashoffset 0.9s var(--ease);
}
.join.on path {
  stroke-dashoffset: 0;
}
/* Squares where the line meets each column, once the line has drawn. */
.join rect {
  fill: var(--accent);
  opacity: 0;
  transition: opacity 0.3s 0.6s;
}
.join.on rect {
  opacity: 1;
}
.join__label {
  position: absolute;
  left: 310px;
  top: 114px;
  padding: 2px 7px;
  border: 1px solid var(--accent);
  background: var(--surface);
  font-size: 10px;
  font-weight: 500;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.7);
  transition:
    opacity 0.3s 0.6s,
    transform 0.4s var(--ease) 0.6s;
}
.join.on + .join__label {
  opacity: 1;
  transform: translate(-50%, -50%);
}

/* Results under the canvas or the editor. */
.res {
  display: flex;
  flex-direction: column;
  height: 34px;
  border-top: 1px solid var(--line);
  background: var(--bg);
  overflow: hidden;
  transition: height 0.55s var(--ease);
}
.res.open {
  height: 196px;
}
.res__h {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: none;
  height: 33px;
  padding: 0 10px;
  border-bottom: 1px solid var(--line);
}
.res__h span {
  padding: 8px 8px;
  color: var(--muted);
}
.res__h span.on {
  color: var(--text);
  box-shadow: inset 0 -2px 0 var(--accent);
}
.res__meta {
  margin-left: auto;
  color: var(--subtle) !important;
  font-family: var(--mono);
  font-size: 10.5px;
  opacity: 0;
  transition: opacity 0.3s;
}
.res.open .res__meta {
  opacity: 1;
}
.rr {
  display: grid;
  grid-template-columns: 52px 1.2fr 1fr 1.4fr;
  align-items: center;
  height: 27px;
  padding-right: 14px;
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.35s,
    transform 0.35s var(--ease);
}
.rr span:first-child {
  padding-left: 14px;
  color: var(--subtle);
}
.rr span:nth-child(n + 3) {
  text-align: right;
}
.rr--h {
  height: 28px;
  background: var(--surface);
  color: var(--muted);
  font-weight: 500;
}
.rr.on {
  opacity: 1;
  transform: none;
}

/* Right-hand panel. */
.panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--surface);
}
.tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  flex: none;
  height: 38px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}
.tabs span {
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line);
  font-size: 11.5px;
  transition:
    color 0.2s,
    box-shadow 0.2s;
}
.tabs span:last-child {
  border-right: 0;
}
.tabs span.on {
  color: var(--text);
  box-shadow: inset 0 -2px 0 var(--accent);
}
.pane {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
}
.pane.on {
  display: flex;
}
.pane__empty {
  color: var(--subtle);
  line-height: 1.55;
}
.pc,
.pf,
.var {
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.35s,
    transform 0.4s var(--ease);
}
.pc.on,
.pf.on,
.var.on {
  opacity: 1;
  transform: none;
}
.pc[hidden],
.pf[hidden],
.var[hidden] {
  display: none;
}
.pc {
  position: relative;
}
.pc b {
  font-weight: 500;
}
.pc .menu {
  left: 8px;
  top: 60px;
}
.ind {
  margin-left: 20px;
}
.muted {
  color: var(--subtle);
}
.code-inline {
  padding: 0 4px;
  border: 1px solid var(--line-strong);
  color: var(--green);
  font-family: var(--mono);
  font-size: 11px;
}
.row2 {
  display: flex;
  gap: 6px;
}
.sel,
.inp {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  height: 26px;
  padding: 0 8px;
  border: 1px solid var(--line-strong);
  background: var(--sunken);
  white-space: nowrap;
  overflow: hidden;
  transition: border-color 0.2s;
}
.sel::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 9px;
  width: 5px;
  height: 5px;
  border-right: 1px solid var(--muted);
  border-bottom: 1px solid var(--muted);
  transform: rotate(45deg);
}
.sel--sm {
  flex: 0 0 102px;
}
.sel.hit,
.inp.hit {
  border-color: var(--accent);
}
.inp .val {
  color: var(--accent-text);
}
.inp .val.muted {
  color: var(--subtle);
}
.caret {
  display: inline-block;
  width: 1px;
  height: 14px;
  margin-left: 1px;
  background: var(--text);
  vertical-align: -3px;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
.menu {
  position: absolute;
  z-index: 5;
  width: 140px;
  padding: 4px 0;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow: 0 14px 30px -10px rgb(0 0 0 / 0.8);
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.25s var(--ease);
}
.menu.on {
  opacity: 1;
  transform: none;
}
.menu span {
  display: block;
  padding: 5px 10px;
}
.menu span.hl {
  background: var(--accent-soft);
  color: var(--text);
}
.note {
  padding: 7px 8px;
  border: 1px solid var(--line);
  color: var(--muted);
  opacity: 0;
  transition: opacity 0.4s;
}
.note.on {
  opacity: 1;
}
.note b {
  color: var(--text);
  font-weight: 500;
}
.add {
  padding: 6px 8px;
  border: 1px dashed var(--line-strong);
  color: var(--muted);
  text-align: center;
  transition: border-color 0.2s;
}
.add.hit {
  border-color: var(--accent);
  color: var(--text);
}

/* SQL editor. */
.editor {
  position: relative;
  display: grid;
  grid-template-columns: 38px 1fr;
  flex: 1;
  min-height: 0;
  background: var(--sunken);
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 22px;
}
.gutter {
  padding-top: 10px;
  border-right: 1px solid var(--line);
  color: var(--subtle);
  text-align: right;
  padding-right: 8px;
}
.code {
  margin: 0;
  padding: 10px 14px;
  white-space: pre;
  color: #d4d4dc;
  font: inherit;
}
.code .k {
  color: var(--accent-text);
}
.code .f {
  color: #7dd3fc;
}
.code .v {
  color: var(--green);
  background: rgb(52 211 153 / 0.08);
}
.code .s {
  color: #c4b5fd;
}
.code .c {
  color: var(--subtle);
}
.ac {
  position: absolute;
  z-index: 6;
  width: 250px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow: 0 16px 34px -12px rgb(0 0 0 / 0.85);
  font-family: var(--sans);
  font-size: 11.5px;
  opacity: 0;
  transform: translateY(-4px);
  transition:
    opacity 0.15s,
    transform 0.2s var(--ease);
}
.ac.on {
  opacity: 1;
  transform: none;
}
.ac span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 9px;
}
.ac span i {
  width: 14px;
  height: 14px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  color: #7dd3fc;
  font-size: 9px;
  font-style: normal;
}
.ac span em {
  margin-left: auto;
  color: var(--subtle);
  font-style: normal;
  font-size: 10.5px;
}
.ac span.hl {
  background: var(--accent-soft);
}
.ac span b {
  color: var(--accent-text);
  font-weight: 600;
}
.vh {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  flex: none;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}
.vh em {
  color: var(--subtle);
  font-style: normal;
  font-weight: 400;
}
.var__h {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
}
.var__h small {
  margin-left: auto;
  padding: 1px 6px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 10px;
}
.lbl {
  color: var(--subtle);
  font-size: 10.5px;
}
.var {
  position: relative;
}
.range {
  display: flex;
  align-items: center;
  gap: 4px;
}
.range .dash {
  color: var(--subtle);
}
.date {
  gap: 7px;
}
.cal-ico {
  flex: none;
  width: 11px;
  height: 11px;
  border: 1px solid var(--muted);
  background: linear-gradient(var(--muted), var(--muted)) 0 2px / 100% 1px no-repeat;
}

/* The app's date picker: month header, Sunday-first grid, Today / Clear. */
.cal {
  position: absolute;
  left: 8px;
  right: 8px;
  z-index: 6;
  padding: 7px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow: 0 18px 38px -12px rgb(0 0 0 / 0.9);
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition:
    opacity 0.18s,
    transform 0.25s var(--ease);
}
.cal.on {
  opacity: 1;
  transform: none;
}
.cal__h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  font-size: 12px;
}
.cal__nav {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: var(--muted);
  font-style: normal;
  font-size: 14px;
}
.cal__w,
.cal__g {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.cal__w span {
  display: grid;
  place-items: center;
  height: 22px;
  color: var(--subtle);
  font-size: 10px;
}
.cal__g .d {
  display: grid;
  place-items: center;
  height: 26px;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  transition:
    background 0.15s,
    color 0.15s;
}
.cal__g .d.out {
  color: var(--subtle);
  opacity: 0.6;
}
.cal__g .d.in {
  background: var(--accent-soft);
}
.cal__g .d.sel {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}
.cal__g .d.hit:not(.sel) {
  background: var(--surface-2);
}
.cal__f {
  display: flex;
  margin-top: 5px;
  padding-top: 5px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}
.cal__f span {
  flex: 1;
  padding: 3px 0;
  text-align: center;
}
.chk {
  display: flex;
  align-items: center;
  gap: 7px;
}

/* Generate Report dialog. */
.dlg-wrap {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  background: rgb(0 0 0 / 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.dlg-wrap.on {
  opacity: 1;
}
.dlg {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 700px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow: 0 40px 90px -30px rgb(0 0 0 / 0.95);
  transform: translateY(14px) scale(0.97);
  transition: transform 0.45s var(--ease);
}
.dlg-wrap.on .dlg {
  transform: none;
}
.dlg__h {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.dlg__h b {
  display: block;
  font-size: 13.5px;
}
.dlg__h small {
  color: var(--muted);
  font-size: 11px;
}
.dlg__b {
  display: grid;
  grid-template-columns: 300px 1fr;
}
.dlg__form {
  display: grid;
  gap: 7px;
  padding: 12px 16px;
  border-right: 1px solid var(--line);
}
.dlg__form .lbl {
  margin-top: 4px;
  color: var(--text);
  font-size: 11.5px;
  font-weight: 500;
}
.tpls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}
.tpl {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 6px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 11px;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.tpl small {
  display: block;
  color: var(--subtle);
  font-size: 9.5px;
}
.tpl.on {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.thumb {
  flex: none;
  width: 20px;
  height: 26px;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(var(--c, #1e3a5f), var(--c, #1e3a5f)) 0 0 / 100% 6px no-repeat,
    repeating-linear-gradient(#ffffff 0 3px, #e5e7eb 3px 4px) 0 8px / 100% 16px no-repeat,
    #fff;
}
.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line-strong);
}
.seg span {
  padding: 5px 0;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
  transition:
    color 0.2s,
    box-shadow 0.2s;
}
.seg span:first-child {
  border-right: 1px solid var(--line-strong);
}
.seg span.on {
  color: var(--text);
  box-shadow: inset 0 -2px 0 var(--accent);
}
.fmts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}
.fmt {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  border: 1px solid var(--accent);
  background: var(--accent-soft);
  font-size: 11.5px;
}
.dlg__prev {
  display: grid;
  place-items: center;
  padding: 14px;
  background: var(--sunken);
}
.dlg__f {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  padding: 9px 12px;
  border-top: 1px solid var(--line);
}
.dlg__busy,
.dlg__done {
  position: absolute;
  inset: 52px 0 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  background: var(--surface);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.dlg.busy .dlg__busy,
.dlg.done .dlg__done {
  opacity: 1;
}
.dlg__busy .spin {
  width: 18px;
  height: 18px;
  color: var(--accent);
}
.dlg__busy small,
.dlg__done small {
  color: var(--muted);
  font-size: 11px;
}
.bar {
  width: 240px;
  height: 2px;
  margin-top: 6px;
  background: var(--line-strong);
}
.bar i {
  display: block;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}
.dlg.busy .bar i {
  animation: fill 1.5s var(--ease) forwards;
}
.dlg__done {
  justify-items: stretch;
  width: auto;
  padding: 0 60px;
}
.ok {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}
.ok i {
  width: 16px;
  height: 16px;
  background: var(--green)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2l2.6 2.6L12 5.4' fill='none' stroke='%23052e1f' stroke-width='2'/%3E%3C/svg%3E")
    center / 16px no-repeat;
}
.file {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.35s,
    transform 0.4s var(--ease);
}
.dlg.done .file {
  opacity: 1;
  transform: none;
}
.dlg.done .file + .file {
  transition-delay: 0.15s;
}
.file > b {
  padding: 2px 5px;
  background: #dc2626;
  color: #fff;
  font-family: var(--mono);
  font-size: 9.5px;
}
.file > b.x {
  background: #15803d;
}
.file em {
  color: var(--subtle);
  font-size: 10.5px;
  font-style: normal;
}
.file .b {
  margin-left: auto;
}
.saved {
  justify-self: center;
  margin-top: 4px;
}

/* A miniature report page (dialog preview). */
.mini {
  width: 210px;
  background: #fff;
  color: #1f2937;
  font-size: 7.5px;
  box-shadow: 0 16px 34px -12px rgb(0 0 0 / 0.9);
  transition:
    width 0.5s var(--ease),
    transform 0.5s var(--ease);
}
.dlg.land .mini {
  width: 300px;
}
.mini__band {
  display: flex;
  justify-content: space-between;
  padding: 9px 10px;
  background: var(--band, #1e3a5f);
  color: #fff;
  transition: background 0.4s;
}
.mini__band b {
  font-size: 9.5px;
}
.mini__t {
  margin: 8px 10px 0;
}
.mini__t div {
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr;
  padding: 3px 4px;
  border-bottom: 1px solid #e5e7eb;
}
.mini__t div span:not(:first-child) {
  text-align: right;
}
.mini__t .mh {
  background: var(--band, #1e3a5f);
  color: #fff;
  font-weight: 600;
  transition: background 0.4s;
}
.mini__t .mt {
  border-top: 1px solid #1f2937;
  font-weight: 700;
}
.mini__f {
  display: flex;
  justify-content: space-between;
  margin: 10px 10px 0;
  padding: 4px 0 8px;
  border-top: 1px solid #d1d5db;
  color: #6b7280;
  font-size: 6.5px;
}

/* Cursor, drag ghost, click ripple and toast. */
.cur {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 20;
  width: 0;
  height: 0;
  transform: translate(540px, 700px);
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.45, 0, 0.2, 1);
  pointer-events: none;
}
.cur svg {
  width: 18px;
  height: 22px;
  filter: drop-shadow(0 2px 3px rgb(0 0 0 / 0.6));
  transition: transform 0.12s;
  transform-origin: 2px 2px;
}
.cur.press svg {
  transform: scale(0.85);
}
.ghost {
  position: absolute;
  left: 14px;
  top: 16px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border: 1px solid var(--accent);
  background: var(--surface);
  box-shadow: 0 10px 24px -8px rgb(0 0 0 / 0.8);
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transform: scale(0.8);
  transition:
    opacity 0.2s,
    transform 0.25s var(--ease);
}
.cur.drag .ghost {
  opacity: 1;
  transform: rotate(-2deg);
}
.ripple {
  position: absolute;
  z-index: 19;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border: 1px solid var(--accent);
  animation: ripple 0.55s var(--ease) forwards;
  pointer-events: none;
}
@keyframes ripple {
  from {
    transform: scale(0.3);
    opacity: 1;
  }
  to {
    transform: scale(1.4);
    opacity: 0;
  }
}
.toast {
  position: absolute;
  left: 50%;
  bottom: 20px;
  z-index: 9;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow: 0 16px 30px -12px rgb(0 0 0 / 0.85);
  font-size: 11.5px;
  opacity: 0;
  transform: translate(-50%, 10px);
  transition:
    opacity 0.3s,
    transform 0.4s var(--ease);
}
.toast.on {
  opacity: 1;
  transform: translate(-50%, 0);
}
.toast i {
  width: 6px;
  height: 6px;
  background: var(--green);
}

/* ---------------------------------- ticker ---------------------------------- */

.ticker {
  display: grid;
  gap: 10px;
  padding: 26px 0;
  border-block: 1px solid var(--line);
  background: var(--sunken);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.ticker__row {
  display: flex;
  width: max-content;
}
.ticker__track {
  display: flex;
  flex: none;
  animation: ticker 48s linear infinite;
}
.ticker__row--rev .ticker__track {
  animation-direction: reverse;
  animation-duration: 56s;
}
.ticker:hover .ticker__track {
  animation-play-state: paused;
}
.ticker li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 14px;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}
.ticker li::after {
  content: "";
  width: 5px;
  height: 5px;
  margin-left: 14px;
  background: var(--accent);
  opacity: 0.7;
}
@keyframes ticker {
  to {
    transform: translateX(-100%);
  }
}

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

.section {
  padding: 112px 0;
}
.section--alt {
  border-block: 1px solid var(--line);
  background: var(--sunken);
}
.section__head {
  display: grid;
  gap: 14px;
  max-width: 660px;
  margin-bottom: 52px;
}
.section__head--center {
  justify-items: center;
  margin-inline: auto;
  text-align: center;
}

.points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 28px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.points li {
  display: grid;
  gap: 4px;
  padding: 20px 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}
.points span {
  color: var(--muted);
}

/* Flow: database → query → filters → template → files. */
.flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
  margin-bottom: 88px;
}
.flow__node {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 22px 12px 18px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  text-align: center;
  animation: node 7.5s var(--ease) infinite;
}
.flow__node:nth-child(2) {
  animation-delay: 1.5s;
}
.flow__node:nth-child(3) {
  animation-delay: 3s;
}
.flow__node:nth-child(4) {
  animation-delay: 4.5s;
}
.flow__node:nth-child(5) {
  animation-delay: 6s;
}
@keyframes node {
  0%,
  22%,
  100% {
    border-color: var(--line-strong);
    box-shadow: none;
  }
  6%,
  14% {
    border-color: var(--accent);
    box-shadow: 0 0 40px -12px rgb(255 106 20 / 0.6);
  }
}
.flow__node svg {
  width: 24px;
  height: 24px;
  margin-bottom: 8px;
  fill: none;
  stroke: var(--accent-text);
  stroke-width: 1.4;
  stroke-linecap: square;
}
.flow__node b {
  font-size: 14px;
  font-weight: 600;
}
.flow__node span {
  color: var(--muted);
  font-size: 12.5px;
}
/* Connector with a light travelling along it. */
.flow__node:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  width: 28px;
  height: 1px;
  background:
    linear-gradient(90deg, transparent, var(--accent), transparent) -28px 0 / 28px 1px no-repeat,
    var(--line-strong);
  animation: travel 7.5s linear infinite;
}
.flow__node:nth-child(2)::after {
  animation-delay: 1.5s;
}
.flow__node:nth-child(3)::after {
  animation-delay: 3s;
}
.flow__node:nth-child(4)::after {
  animation-delay: 4.5s;
}
@keyframes travel {
  0%,
  12% {
    background-position:
      -28px 0,
      0 0;
  }
  20%,
  100% {
    background-position:
      28px 0,
      0 0;
  }
}

.docs {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 64px;
}
.docs__copy {
  display: grid;
  gap: 22px;
}
.docs__copy h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.checks {
  display: grid;
  gap: 10px;
  font-size: 14.5px;
}
.checks li {
  display: flex;
  gap: 11px;
}
.checks li::before {
  content: "";
  flex: none;
  width: 9px;
  height: 5px;
  margin-top: 8px;
  border-left: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg);
}
.nums {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
}
.nums p {
  display: grid;
  gap: 2px;
  padding: 14px 16px;
  border-right: 1px solid var(--line);
}
.nums p:last-child {
  border-right: 0;
}
.nums b {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.nums span {
  color: var(--muted);
  font-size: 12px;
}

.docs__art {
  position: relative;
  height: 430px;
}
.sheet {
  position: absolute;
  top: 0;
  right: 0;
  width: 78%;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: #1f2937;
  font-size: 11px;
  box-shadow: 0 30px 70px -25px rgb(0 0 0 / 0.9);
  animation: float 7s ease-in-out infinite;
}
.sheet__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  background: #15803d;
  color: #fff;
  font-size: 11px;
}
.sheet__bar b {
  padding: 1px 4px;
  border: 1px solid rgb(255 255 255 / 0.6);
  font-family: var(--mono);
  font-size: 9px;
}
.sheet__grid {
  display: grid;
  grid-template-columns: 26px 1fr 0.7fr 1.2fr;
}
.sheet__grid span {
  padding: 5px 7px;
  border-right: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  font-variant-numeric: tabular-nums;
}
.sheet__grid .h {
  background: #f3f4f6;
  color: #6b7280;
  text-align: center;
}
.sheet__grid .th {
  background: #ecfdf5;
  font-weight: 600;
}
.sheet__grid .n {
  text-align: right;
}
.sheet__grid .tot {
  font-weight: 700;
}
.sheet__grid .fx {
  outline: 2px solid #15803d;
  outline-offset: -2px;
  color: #15803d;
  font-family: var(--mono);
  font-size: 10px;
}
.page {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 66%;
  background: #fff;
  color: #1f2937;
  font-size: 10.5px;
  box-shadow: 0 34px 80px -24px rgb(0 0 0 / 0.95);
  animation: float 7s ease-in-out infinite -3.5s;
}
@keyframes float {
  50% {
    transform: translateY(-12px);
  }
}
.page__band {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 16px 18px;
  background: #1e3a5f;
  color: #fff;
}
.page__band b {
  font-size: 14px;
}
.page__band span {
  opacity: 0.75;
}
.page__meta {
  margin: 10px 18px 0;
  color: #6b7280;
  font-size: 9.5px;
}
.page__table {
  margin: 10px 18px 0;
}
.tr {
  display: grid;
  grid-template-columns: 1fr 60px 110px;
  padding: 5px 8px;
  border-bottom: 1px solid #e5e7eb;
  font-variant-numeric: tabular-nums;
}
.tr span:not(:first-child) {
  text-align: right;
}
.tr:nth-child(odd):not(.th):not(.tot) {
  background: #f6f8fb;
}
.tr.th {
  background: #1e3a5f;
  color: #fff;
  font-weight: 600;
}
.tr.tot {
  border-top: 1.5px solid #1f2937;
  border-bottom: 0;
  font-weight: 700;
}
.page__foot {
  display: flex;
  justify-content: space-between;
  margin: 14px 18px 0;
  padding: 8px 0 12px;
  border-top: 1px solid #d1d5db;
  color: #6b7280;
  font-size: 9px;
}

/* ---------------------------------- trust ---------------------------------- */

.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.trust__item {
  position: relative;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 26px 22px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  overflow: hidden;
  transition: background 0.3s;
}
.trust__item::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.trust__item:hover {
  background: var(--surface);
}
.trust__item:hover::after {
  transform: scaleX(1);
}
.trust__item h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}
.trust__item h3::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--green);
}
.trust__item p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

/* ----------------------------------- faq ----------------------------------- */

.faq {
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 2px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  flex: none;
  width: 11px;
  height: 11px;
  background:
    linear-gradient(var(--muted), var(--muted)) center / 100% 1px no-repeat,
    linear-gradient(var(--muted), var(--muted)) center / 1px 100% no-repeat;
  transition: transform 0.3s var(--ease);
}
.faq details[open]:not(.is-closing) summary::after {
  background: linear-gradient(var(--accent), var(--accent)) center / 100% 1px no-repeat;
  transform: rotate(180deg);
}
.faq summary:hover {
  color: var(--accent-text);
}
.faq details p {
  max-width: 62ch;
  padding: 0 2px 20px;
  color: var(--muted);
  font-size: 14.5px;
  animation: open 0.45s var(--ease);
  transition:
    opacity 0.25s,
    transform 0.3s var(--ease);
}
/* While an answer slides shut it fades and lifts slightly. */
.faq details.is-closing p {
  opacity: 0;
  transform: translateY(-6px);
}
@keyframes open {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}

/* ----------------------------------- cta ----------------------------------- */

.cta {
  position: relative;
  padding: 112px 0;
  overflow: hidden;
  isolation: isolate;
}
.cta__panel {
  display: grid;
  justify-items: center;
  text-align: center;
}
.cta__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(45% 55% at 50% 42%, rgb(255 106 20 / 0.2), transparent 70%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 48px 48px;
  mask-image: radial-gradient(ellipse 60% 70% at 50% 45%, #000 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 45%, #000 25%, transparent 75%);
}
.cta__copy {
  display: grid;
  justify-items: center;
  gap: 18px;
  max-width: 640px;
}
.cta h2 {
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
}
.cta__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 22px;
  color: var(--subtle);
  font-size: 12.5px;
}
.cta__meta li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.cta__meta li::before {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 1.5px solid var(--green);
  border-bottom: 1.5px solid var(--green);
  transform: rotate(-45deg) translateY(-2px);
}
.cta__note {
  color: var(--accent-text);
  font-size: 13px;
}

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

.footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  padding-block: 28px;
}
.footer .brand {
  color: var(--text);
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-left: auto;
}
.footer__links a:hover {
  color: var(--text);
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  width: 100%;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.footer__copy {
  color: var(--subtle);
}
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}
.footer__legal a {
  color: var(--subtle);
  transition: color 0.2s;
}
.footer__legal a:hover,
.footer__legal a[aria-current="page"] {
  color: var(--text);
}

/* ------------------------------- legal pages ------------------------------- */

.legal-page .nav {
  border-color: var(--line);
  background: rgb(11 11 13 / 0.78);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
}
.legal-hero {
  position: relative;
  padding: 136px 0 56px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.legal-hero .hero__grid {
  mask-image: radial-gradient(ellipse 70% 90% at 20% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 20% 0%, #000 20%, transparent 75%);
}
.legal-hero::after {
  content: "";
  position: absolute;
  top: -320px;
  left: -120px;
  width: 760px;
  height: 560px;
  background: radial-gradient(closest-side, rgb(255 106 20 / 0.14), transparent);
  pointer-events: none;
}
.legal-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
}
.legal-hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
}
.legal-hero__date {
  color: var(--subtle);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
}
.crumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--subtle);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.crumbs a {
  transition: color 0.2s;
}
.crumbs a:hover {
  color: var(--text);
}

.legal {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 72px;
  padding-block: 64px 112px;
}
.legal__side {
  position: sticky;
  top: 88px;
  align-self: start;
  display: grid;
  gap: 32px;
}
.legal__side h2 {
  margin-bottom: 10px;
  color: var(--subtle);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.legal__toc,
.legal__pages {
  border-left: 1px solid var(--line);
}
.legal__toc a,
.legal__pages a {
  display: block;
  margin-left: -1px;
  padding: 5px 0 5px 14px;
  border-left: 1px solid transparent;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  transition:
    color 0.2s,
    border-color 0.2s;
}
.legal__toc a:hover,
.legal__pages a:hover {
  color: var(--text);
}
.legal__toc a.is-current,
.legal__pages a.is-current {
  border-left-color: var(--accent);
  color: var(--text);
}

.prose {
  max-width: 740px;
}
.prose section {
  padding-top: 8px;
  scroll-margin-top: 80px;
}
.prose section + section {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.prose h2 {
  margin-bottom: 14px;
  font-size: 20px;
  letter-spacing: -0.015em;
}
.prose p,
.prose li {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
  text-wrap: pretty;
}
.prose p + p,
.prose p + ul,
.prose ul + p {
  margin-top: 14px;
}
.prose ul {
  display: grid;
  gap: 10px;
}
.prose li {
  position: relative;
  padding-left: 22px;
}
.prose li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 6px;
  height: 6px;
  background: var(--accent);
}
.prose strong {
  color: var(--text);
  font-weight: 500;
}
.prose a {
  color: var(--accent-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.prose a:hover {
  color: var(--text);
}
.legal__summary {
  margin-bottom: 48px;
  padding: 22px 26px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow: inset 2px 0 0 var(--accent);
}
.legal__summary h2 {
  margin-bottom: 12px;
  color: var(--subtle);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.legal__summary li {
  color: var(--text);
  font-size: 14.5px;
}
.legal__summary li::before {
  width: 9px;
  height: 5px;
  top: 0.55em;
  background: none;
  border-left: 1.5px solid var(--green);
  border-bottom: 1.5px solid var(--green);
  transform: rotate(-45deg);
}

/* --------------------------------- reveals --------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
  transition-delay: calc(var(--d, 0) * 80ms);
}
.js .reveal--rise {
  transform: translateY(40px) scale(0.98);
  transition-duration: 1.1s;
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* -------------------------------- responsive -------------------------------- */

@media (max-width: 960px) {
  .legal {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .legal__side {
    position: static;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .points,
  .trust {
    grid-template-columns: repeat(2, 1fr);
  }
  .flow {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 20px;
  }
  .flow__node:nth-child(3)::after {
    display: none;
  }
  .docs {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 720px) {
  :root {
    --gutter: 16px;
  }
  .nav__toggle {
    display: inline-flex;
  }
  .nav__links {
    position: absolute;
    inset: 56px 0 auto;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 6px var(--gutter) 12px;
    border-bottom: 1px solid var(--line);
    background: rgb(11 11 13 / 0.97);
    font-size: 15px;
  }
  .nav__links.is-open {
    display: flex;
  }
  .nav__links a {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }
  .nav__links a:last-child {
    border-bottom: 0;
  }
  .nav__links a::after {
    display: none;
  }
  .nav__actions {
    margin-left: auto;
  }
  .hero {
    padding: 104px 0 64px;
  }
  .film {
    margin-top: 44px;
    margin-inline: calc(var(--gutter) * -1);
    border-inline: 0;
  }
  .film__title {
    display: none;
  }
  .chapters li {
    padding: 8px 6px 10px;
    font-size: 10.5px;
  }
  .ticker li {
    font-size: 13px;
  }
  .section {
    padding: 76px 0;
  }
  .section__head {
    margin-bottom: 36px;
  }
  .points,
  .trust {
    grid-template-columns: 1fr;
  }
  .flow {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 56px;
  }
  .flow__node::after {
    display: none;
  }
  .flow__node--end {
    grid-column: span 2;
  }
  .docs__art {
    height: 360px;
  }
  .sheet {
    width: 92%;
    font-size: 9.5px;
  }
  .page {
    width: 82%;
    font-size: 9px;
  }
  .nums b {
    font-size: 16px;
  }
  .nums p {
    padding: 12px 10px;
  }
  .cta {
    padding: 76px 0;
  }
  .footer__links {
    margin-left: 0;
  }
  .legal-hero {
    padding: 112px 0 40px;
  }
  .legal {
    padding-block: 40px 76px;
  }
  .legal__side {
    grid-template-columns: 1fr;
  }
  .legal__summary {
    padding: 18px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
  .cur {
    display: none;
  }
}
