@font-face {
  font-family: "Inter Variable";
  src: url("assets/fonts/inter-latin-opsz.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter Fallback";
  src: local("Arial"), local("Helvetica"), local("Liberation Sans");
  size-adjust: 107.4%;
  ascent-override: 90.2%;
  descent-override: 22.46%;
  line-gap-override: 0%;
}

:root {
  --bg: #f7f7f5;
  --bg-alt: #efefeb;
  --surface: #ffffff;
  --surface-2: #fafaf8;
  --surface-bar: #fcfcfb;
  --ink: #111111;
  --ink-2: #2e2e2a;
  --muted: #6b6b65;
  --line: rgba(17, 17, 17, 0.1);
  --line-strong: rgba(17, 17, 17, 0.16);
  --line-soft: rgba(17, 17, 17, 0.06);
  --fill-soft: rgba(17, 17, 17, 0.04);
  --fill: rgba(17, 17, 17, 0.07);
  --accent: #1d4a38;
  --accent-hover: #163a2c;
  --accent-soft: rgba(29, 74, 56, 0.08);
  --accent-line: rgba(29, 74, 56, 0.26);
  --on-ink: #ffffff;
  --on-ink-soft: rgba(255, 255, 255, 0.14);
  --on-accent: #ffffff;
  --ink-hover: #2b2b28;
  --line-hover: rgba(17, 17, 17, 0.3);
  --selection: rgba(29, 74, 56, 0.16);
  --header-bg: rgba(247, 247, 245, 0.82);
  --backdrop: rgba(17, 17, 17, 0.32);
  --pattern-filter: none;
  --thumb: #ffffff;
  --glow-1: rgba(47, 160, 110, 0.28);
  --glow-2: rgba(150, 210, 120, 0.3);
  --glow-3: rgba(40, 140, 150, 0.16);
  --grain: 0.07;
  --accent-text: linear-gradient(90deg, #1d4a38, #2f8a62 25%, #1d4a38 50%, #2f8a62 75%, #1d4a38);

  --font: "Inter Variable", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-h1: clamp(2.375rem, 1.6rem + 3.1vw, 3.75rem);
  --fs-h2: clamp(1.875rem, 1.45rem + 1.7vw, 2.75rem);
  --fs-lead: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);

  --radius-xs: 5px;
  --radius-sm: 7px;
  --radius: 10px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(17, 17, 17, 0.04);
  --shadow-md: 0 1px 2px rgba(17, 17, 17, 0.04), 0 8px 20px -10px rgba(17, 17, 17, 0.12);
  --shadow-lg: 0 1px 2px rgba(17, 17, 17, 0.04), 0 2px 6px rgba(17, 17, 17, 0.03), 0 28px 56px -28px rgba(17, 17, 17, 0.2);
  --shadow-tab: 0 1px 2px rgba(17, 17, 17, 0.08), 0 0 0 1px rgba(17, 17, 17, 0.06);
  --shadow-panel: -28px 0 48px -36px rgba(17, 17, 17, 0.3);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 64px;
  --section-y: clamp(64px, 6.6vw, 96px);

  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #111110;
  --bg-alt: #161615;
  --surface: #1b1b1a;
  --surface-2: #1f1f1d;
  --surface-bar: #1d1d1c;
  --ink: #ededea;
  --ink-2: #d2d2cd;
  --muted: #9b9b94;
  --line: rgba(237, 237, 234, 0.1);
  --line-strong: rgba(237, 237, 234, 0.16);
  --line-soft: rgba(237, 237, 234, 0.06);
  --fill-soft: rgba(237, 237, 234, 0.04);
  --fill: rgba(237, 237, 234, 0.07);
  --accent: #6fbf98;
  --accent-hover: #8acfad;
  --accent-soft: rgba(111, 191, 152, 0.1);
  --accent-line: rgba(111, 191, 152, 0.32);
  --on-ink: #111110;
  --on-ink-soft: rgba(17, 17, 16, 0.1);
  --on-accent: #0c1d15;
  --ink-hover: #ffffff;
  --line-hover: rgba(237, 237, 234, 0.3);
  --selection: rgba(111, 191, 152, 0.28);
  --header-bg: rgba(17, 17, 16, 0.82);
  --backdrop: rgba(0, 0, 0, 0.6);
  --pattern-filter: invert(1);
  --thumb: #3a3a37;
  --glow-1: rgba(60, 180, 125, 0.24);
  --glow-2: rgba(120, 200, 110, 0.12);
  --glow-3: rgba(40, 150, 160, 0.14);
  --grain: 0.09;
  --accent-text: linear-gradient(90deg, #6fbf98, #c2ebd2 25%, #6fbf98 50%, #c2ebd2 75%, #6fbf98);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 20px -10px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 1px 2px rgba(0, 0, 0, 0.3), 0 2px 6px rgba(0, 0, 0, 0.2), 0 28px 56px -28px rgba(0, 0, 0, 0.7);
  --shadow-tab: 0 1px 2px rgba(0, 0, 0, 0.3), 0 0 0 1px var(--line);
  --shadow-panel: -28px 0 48px -36px rgba(0, 0, 0, 0.8);

  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

img,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

ul,
ol {
  padding: 0;
}

table {
  border-collapse: collapse;
}

h1,
h2,
h3,
h4,
p {
  overflow-wrap: break-word;
}

body {
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: -0.011em;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1,
h2,
h3,
h4 {
  font-weight: 600;
  line-height: 1.15;
}

a {
  color: inherit;
}

strong {
  font-weight: 600;
}

mark {
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 3px;
  padding: 0 2px;
  box-shadow: inset 0 -1px 0 var(--accent-line);
}

::selection {
  background: var(--selection);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nowrap {
  white-space: nowrap;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--on-ink);
  font-size: 14px;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease-out);
}

.skip-link:focus-visible {
  transform: none;
}

.link {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}

.link:hover {
  text-decoration-color: currentColor;
}

.btn {
  --btn-h: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--btn-h);
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 520;
  letter-spacing: -0.005em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.12s;
}

.btn:active {
  transform: translateY(1px);
}

.btn .icon {
  width: 16px;
  height: 16px;
}

.btn--primary {
  background: var(--ink);
  color: var(--on-ink);
  box-shadow: inset 0 1px 0 var(--on-ink-soft), 0 1px 2px rgba(17, 17, 17, 0.18);
}

.btn--primary:hover {
  background: var(--ink-hover);
}

.btn--secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.btn--secondary:hover {
  border-color: var(--line-hover);
}

.btn--accent {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 1px 2px var(--accent-line);
}

.btn--accent:hover {
  background: var(--accent-hover);
}

.btn--lg {
  --btn-h: 46px;
  padding: 0 20px;
  font-size: 15px;
  border-radius: 9px;
}

.btn--sm {
  --btn-h: 34px;
  padding: 0 12px;
  font-size: 13.5px;
  border-radius: 7px;
}

.btn--xs {
  --btn-h: 28px;
  padding: 0 10px;
  font-size: 12.5px;
  border-radius: 6px;
}

.btn--block {
  width: 100%;
}

.btn[aria-disabled="true"] {
  cursor: default;
  opacity: 0.72;
}

.btn[aria-disabled="true"]:active {
  transform: none;
}

.btn__icon-down,
.btn__icon-right {
  transition: transform 0.3s var(--ease-out);
}

.btn:hover .btn__icon-down {
  transform: translateY(2px);
}

.btn:hover .btn__icon-right {
  transform: translateX(3px);
}

.btn--shine {
  position: relative;
}

.btn__shine {
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.btn__shine-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200%;
  aspect-ratio: 1;
  background: conic-gradient(from 0deg, transparent 0%, #fff 10%, #000 15%, transparent 20%);
  translate: -50% -50%;
  animation: shine 3s linear infinite;
}

.text-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  transition: background-color 0.2s, color 0.2s;
}

.text-btn:hover {
  background: var(--fill-soft);
  color: var(--ink);
}

.text-btn .icon {
  width: 15px;
  height: 15px;
  transition: transform 0.5s var(--ease-out);
}

.text-btn:hover .icon {
  transform: rotate(-120deg);
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: var(--muted);
  transition: background-color 0.2s, color 0.2s;
}

.icon-btn:hover {
  background: var(--fill-soft);
  color: var(--ink);
}

.icon-btn .icon {
  width: 18px;
  height: 18px;
}

.kbd {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-right: -4px;
  border-radius: 5px;
  background: var(--on-ink-soft);
}

.btn .kbd .icon {
  width: 12px;
  height: 12px;
  stroke-width: 2;
}

.badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  font-size: 11.5px;
  font-weight: 550;
  letter-spacing: 0.005em;
  color: var(--ink-2);
  white-space: nowrap;
}

.badge--accent {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: var(--accent-line);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  font-size: 12px;
  letter-spacing: 0;
  color: var(--ink-2);
  white-space: nowrap;
}

.chip .icon {
  width: 13px;
  height: 13px;
  color: var(--muted);
}

.chip--muted {
  color: var(--muted);
  background: transparent;
}

.chip--ref {
  font-variant-numeric: tabular-nums;
  font-weight: 550;
  letter-spacing: 0.02em;
  color: var(--accent);
  background: var(--accent-soft);
  border-color: var(--accent-line);
}

.tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
}

.tag--accent {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: var(--accent-line);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  line-height: 1.3;
  color: var(--muted);
  white-space: nowrap;
}

.status .icon {
  width: 14px;
  height: 14px;
  stroke-width: 2;
}

.status--done .icon {
  color: var(--accent);
}

.status--info::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-2);
}

.status--pending {
  color: var(--ink);
  font-weight: 500;
}

.status--pending::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px dashed var(--ink);
}

.status:focus {
  outline: none;
}

.skel {
  display: block;
  height: 7px;
  width: 92%;
  border-radius: 4px;
  background: var(--fill);
}

.skel--short {
  width: 58%;
}

.skel--title {
  width: 40%;
  height: 9px;
  background: var(--line);
}

.ring {
  position: relative;
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
}

.window {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.window__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 48px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-bar);
}

.window__title {
  font-size: 13.5px;
  font-weight: 600;
}

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s, border-color 0.3s;
}

.header.is-scrolled {
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 620;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.brand__mark {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.nav__list {
  display: flex;
  gap: 2px;
  list-style: none;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}

.nav__link:hover {
  color: var(--ink);
  background: var(--fill-soft);
}

.nav__link.is-current {
  color: var(--ink);
}

.menu-toggle {
  display: none;
}

@media (max-width: 899px) {
  .menu-toggle {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-left: auto;
    margin-right: -8px;
    border-radius: 8px;
  }

  .menu-toggle__bars,
  .menu-toggle__bars::before {
    display: block;
    width: 18px;
    height: 1.5px;
    border-radius: 1px;
    background: var(--ink);
    transition: transform 0.3s var(--ease-out);
  }

  .menu-toggle__bars {
    position: relative;
    transform: translateY(-3px);
  }

  .menu-toggle__bars::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle__bars {
    transform: rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle__bars::before {
    transform: translateY(-6px) rotate(-90deg);
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;

    height: calc(100vh - var(--header-h) + 1px);
    height: calc(100dvh - var(--header-h) + 1px);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px var(--gutter) 32px;
    background: var(--bg);
    border-top: 1px solid var(--line);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.25s, transform 0.3s var(--ease-out), visibility 0s 0.3s;
  }

  .header.is-menu-open {
    background: var(--bg);
    border-bottom-color: var(--line);
  }

  .header.is-menu-open .nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.25s, transform 0.3s var(--ease-out), visibility 0s;
  }

  .nav__list {
    flex-direction: column;
    gap: 0;
  }

  .nav__link {
    width: 100%;
    height: auto;
    padding: 16px 0;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
    font-size: 19px;
    letter-spacing: -0.015em;
    color: var(--ink);
  }

  .nav__link:hover {
    background: none;
  }

  .nav__cta {
    --btn-h: 48px;
    margin-top: 28px;
    font-size: 15px;
  }

  html.has-menu-open {
    overflow: hidden;
  }
}

.hero {
  position: relative;
  isolation: isolate;
  padding-top: calc(var(--header-h) + clamp(48px, 6.5vw, 88px));
  padding-bottom: clamp(36px, 4vw, 52px);
}

.hero__glow {
  position: absolute;
  z-index: -1;
  inset: 0 0 -160px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
  pointer-events: none;
}

.hero__blob {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}

.hero__blob--1 {
  top: -18%;
  right: -6%;
  width: min(760px, 110vw);
  aspect-ratio: 1;
  background: radial-gradient(
    closest-side,
    var(--glow-1),
    color-mix(in srgb, var(--glow-1) 72%, transparent) 30%,
    color-mix(in srgb, var(--glow-1) 38%, transparent) 58%,
    color-mix(in srgb, var(--glow-1) 12%, transparent) 82%,
    transparent
  );
  animation: drift-a 22s var(--ease-in-out) infinite alternate;
}

.hero__blob--2 {
  top: 18%;
  right: 22%;
  width: min(560px, 90vw);
  aspect-ratio: 1;
  background: radial-gradient(
    closest-side,
    var(--glow-2),
    color-mix(in srgb, var(--glow-2) 72%, transparent) 30%,
    color-mix(in srgb, var(--glow-2) 38%, transparent) 58%,
    color-mix(in srgb, var(--glow-2) 12%, transparent) 82%,
    transparent
  );
  animation: drift-b 26s var(--ease-in-out) infinite alternate;
}

.hero__blob--3 {
  top: 4%;
  left: -12%;
  width: min(620px, 100vw);
  aspect-ratio: 1;
  background: radial-gradient(
    closest-side,
    var(--glow-3),
    color-mix(in srgb, var(--glow-3) 72%, transparent) 30%,
    color-mix(in srgb, var(--glow-3) 38%, transparent) 58%,
    color-mix(in srgb, var(--glow-3) 12%, transparent) 82%,
    transparent
  );
  animation: drift-c 30s var(--ease-in-out) infinite alternate;
}

.hero__glow::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")
    0 0 / 180px 180px;
  opacity: var(--grain);
}

.hero__title {
  font-size: var(--fs-h1);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.034em;
  text-wrap: balance;
}

.hero__accent {
  color: var(--accent);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero__accent {
    background: var(--accent-text) 0 0 / 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: accent-flow 8s linear infinite;
  }
}

.hero__lead {
  max-width: 35em;
  margin-top: 24px;
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hero__note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-size: 13.5px;
  color: var(--muted);
}

.hero__note .icon {
  width: 15px;
  height: 15px;
  stroke-width: 2;
  color: var(--accent);
}

@media (max-width: 559px) {
  .hero__actions .btn {
    flex: 1 1 100%;
  }
}

.stage {
  position: relative;
  overflow: hidden;
  padding-top: 8px;
  padding-bottom: var(--section-y);
  isolation: isolate;
}

.stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    url("assets/cadastre.svg") center top / 1600px 900px no-repeat,
    url("assets/cadastre.svg") center top / 1600px 900px no-repeat;
  filter: var(--pattern-filter);
  -webkit-mask-image:
    linear-gradient(to bottom, transparent, #000 10%, #000 78%, transparent),
    linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to bottom, transparent, #000 10%, #000 78%, transparent),
    linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
  mask-composite: intersect;
  pointer-events: none;
}

.app {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.app__bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  height: 52px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-bar);
}

.app__workspace {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 13px;
  font-weight: 560;
}

.app__mark {
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 6px;
  background: var(--accent) url("assets/favicon.svg") center / cover no-repeat;
}

.app__tabs {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 9px;
  background: var(--fill-soft);
  box-shadow: inset 0 0 0 1px var(--line-soft);
}

.app__tab {
  height: 28px;
  padding: 0 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.app__tab:hover {
  color: var(--ink);
}

.app__tab[aria-selected="true"] {
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow-tab);
}

.app__tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
}

.app__tool-icons {
  display: flex;
}

.app__tool-icons .icon {
  width: 24px;
  height: 24px;
  padding: 4.5px;
  margin-left: -5px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink-2);
}

.app__views {
  display: grid;
}

.app__panel {
  position: relative;
  grid-area: 1 / 1;
  min-width: 0;
}

.app__panel[hidden] {
  display: none;
}

@media (min-width: 900px) {
  .app__panel[hidden] {
    display: block;
    visibility: hidden;
  }

  .app__panel--assistant[hidden] {
    display: grid;
  }
}

.app__panel:focus-visible {
  outline-offset: -3px;
}

.app__panel--assistant {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr);
}

.task {
  display: flex;
  flex-direction: column;
  padding: 28px 32px 30px;
}

.composer__label {
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--muted);
}

.composer__box {
  padding: 14px 12px 12px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(17, 17, 17, 0.04), 0 0 0 4px var(--fill-soft);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.composer__input {
  min-height: 1.5em;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
}

.composer__caret {
  display: none;
  width: 1.5px;
  height: 1.15em;
  margin-left: 1px;
  vertical-align: -0.2em;
  background: var(--ink);
}

.composer__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.composer__sources {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 12.5px;
  color: var(--muted);
}

.composer__source-icons {
  display: flex;
  gap: 4px;
}

.composer__source-icons .icon {
  width: 15px;
  height: 15px;
}

.composer__run {
  flex: none;
  min-width: 118px;
}

.state-text {
  display: none;
}

.state-text--done {
  display: inline;
}

.task__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 28px;
  font-size: 12px;
}

.task__label {
  font-weight: 550;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.task__state {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.task__progress {
  height: 2px;
  margin: 10px 0 20px;
  border-radius: 2px;
  background: var(--line-soft);
  overflow: hidden;
}

.task__progress > span {
  display: block;
  height: 100%;
  background: var(--accent);
  transform-origin: left center;
  transition: transform 0.6s var(--ease-out);
}

.steps {
  list-style: none;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 14px;
  padding-bottom: 16px;
}

.step::before {
  content: "";
  position: absolute;
  left: 9.5px;
  top: 25px;
  bottom: 3px;
  width: 1px;
  background: var(--line);
}

.step:last-child {
  padding-bottom: 0;
}

.step:last-child::before {
  display: none;
}

.step__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
}

.step__check {
  width: 12px;
  height: 12px;
  stroke-width: 2.4;
}

.step__spinner {
  display: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  border-top-color: var(--ink);
  animation: spin 0.7s linear infinite;
}

.step__title {
  min-height: 20px;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 20px;
  color: var(--ink);
}

.step__pending {
  display: none;
}

.step__detail {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 24px;
  margin-top: 7px;
}

.step__detail--text {
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}

.task__ready {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  margin-left: 34px;
  padding: 7px 12px 7px 10px;
  border-radius: 8px;
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent-line);
  font-size: 14.5px;
  font-weight: 580;
  color: var(--accent);
}

.task__ready .icon {
  width: 15px;
  height: 15px;
  stroke-width: 2.2;
}

.result {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-left: 1px solid var(--line);
  background: var(--surface-2);
}

.result__label {
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 550;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.result__slot {
  position: relative;
}

.result__empty {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  transition: opacity 0.3s;
}

.result__empty p {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

.result-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.result-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.result-card__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 620;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.result-card__title .icon {
  width: 16px;
  height: 16px;
  color: var(--muted);
}

.result-card__sub {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

.result-card__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
  border-block: 1px solid var(--line);
  list-style: none;
}

.result-card__stats li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 0 14px 14px;
  font-size: 12.5px;
  color: var(--muted);
}

.result-card__stats li:first-child {
  padding-left: 0;
}

.result-card__stats li + li {
  border-left: 1px solid var(--line);
}

.result-card__value {
  font-size: 26px;
  font-weight: 580;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.result-card__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  margin: 14px 0 16px;
  font-size: 13px;
  color: var(--muted);
}

.result-card__meta time {
  color: var(--ink);
  font-weight: 500;
}

.result-note {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.result-note .icon {
  width: 16px;
  height: 16px;
  margin-top: 1px;
  color: var(--ink-2);
}

.result-note strong {
  font-weight: 580;
  color: var(--ink);
}

.synthesis {
  position: absolute;
  z-index: 3;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(480px, 100%);
  background: var(--surface);
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow-panel);
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.3s, transform 0.45s var(--ease-out);
}

.synthesis[hidden] {
  display: none;
}

.synthesis.is-open {
  opacity: 1;
  transform: none;
}

.synthesis__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 20px 16px 24px;
  border-bottom: 1px solid var(--line);
}

.synthesis__kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}

.synthesis__title {
  margin-top: 10px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.synthesis__title:focus {
  outline: none;
}

.synthesis__meta {
  margin-top: 2px;
  font-size: 13px;
  color: var(--muted);
}

.synthesis__body {
  flex: 1;
  padding: 4px 24px 20px;
  overflow-y: auto;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-2);
}

.synthesis__body h4 {
  margin: 16px 0 6px;
  font-size: 11.5px;
  font-weight: 580;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.synthesis__body .chip {
  height: 22px;
  margin-right: 2px;
  font-size: 11.5px;
}

.synthesis__dates,
.synthesis__points {
  display: grid;
  gap: 6px;
  list-style: none;
}

.synthesis__dates li {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 8px;
}

.synthesis__dates time {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.synthesis__points li {
  position: relative;
  padding-left: 18px;
}

.synthesis__points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1.5px solid var(--ink-2);
}

.synthesis__foot {
  padding: 12px 24px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 12.5px;
  color: var(--muted);
}

.app__panel--list {
  padding: 28px 32px;
}

.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  margin-bottom: 16px;
}

.panel-head__title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.panel-head__meta {
  font-size: 13px;
  color: var(--muted);
}

.feed {
  list-style: none;
  border-top: 1px solid var(--line);
}

.feed__item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
}

.feed__item[hidden] {
  display: none;
}

.feed__item[data-demo-activity] {
  animation: fade-in 0.5s var(--ease-out);
}

.feed__time {
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.table-wrap {
  overflow-x: auto;
}

.doc-table {
  width: 100%;
  font-size: 13.5px;
}

.doc-table th {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 500;
  text-align: left;
  color: var(--muted);
}

.doc-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  white-space: nowrap;
}

.doc-table th:first-child,
.doc-table td:first-child {
  padding-left: 0;
}

.doc-table th:last-child,
.doc-table td:last-child {
  padding-right: 0;
  text-align: right;
}

.doc-table td:first-child {
  color: var(--ink);
  white-space: normal;
}

.doc-name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.doc-name .icon {
  width: 16px;
  height: 16px;
  color: var(--muted);
}

.stage__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 16px;
}

.stage__note {
  font-size: 13px;
  color: var(--muted);
}

.stage__foot .text-btn {
  margin-right: -10px;
}

.js .composer__caret {
  display: inline-block;
  animation: blink 1.05s steps(1) 4;
}

.js .app[data-state="running"] .composer__caret,
.js .app[data-state="done"] .composer__caret {
  visibility: hidden;
}

.js .app[data-state="idle"] .task__progress > span {
  transform: scaleX(0);
}

.js .app[data-typing="pending"] .composer__typed {
  display: none;
}

.js .app[data-typing="active"] .composer__caret {
  animation: none;
}

.js .app[data-state="running"] .composer__box {
  box-shadow: 0 1px 2px rgba(17, 17, 17, 0.04), 0 0 0 4px var(--accent-soft);
  border-color: var(--accent-line);
}

.js .app[data-state="idle"] .state-text--done,
.js .app[data-state="running"] .state-text--done {
  display: none;
}

.js .app[data-state="idle"] .state-text--idle,
.js .app[data-state="running"] .state-text--running {
  display: inline;
}

.js .step[data-status="idle"] .step__icon {
  background: transparent;
  border: 1px dashed var(--line-strong);
}

.js .step[data-status="idle"] .step__check,
.js .step[data-status="pending"] .step__check,
.js .step[data-status="idle"] .step__done,
.js .step[data-status="pending"] .step__done {
  display: none;
}

.js .step[data-status="idle"] .step__title::after {
  content: "";
  display: inline-block;
  width: var(--skel-w, 50%);
  height: 8px;
  border-radius: 4px;
  background: var(--fill);
  vertical-align: middle;
}

.js .step:nth-child(2) {
  --skel-w: 64%;
}

.js .step:nth-child(3) {
  --skel-w: 42%;
}

.js .step:nth-child(4) {
  --skel-w: 56%;
}

.js .step[data-status="idle"] .step__detail,
.js .step[data-status="pending"] .step__detail {
  visibility: hidden;
}

.js .step[data-status="pending"] .step__icon {
  background: transparent;
}

.js .step[data-status="pending"] .step__spinner {
  display: block;
}

.js .step[data-status="pending"] .step__pending {
  display: inline;
  color: var(--ink-2);
}

.js .step[data-status="done"] .step__icon {
  animation: pop 0.45s var(--ease-out);
}

.js .step[data-status="done"] .step__title,
.js .step[data-status="done"] .step__detail {
  animation: fade-up 0.45s var(--ease-out) both;
}

.js .step[data-status="done"] .step__detail {
  animation-delay: 0.08s;
}

.js .app:not([data-state="done"]) .task__ready {
  visibility: hidden;
  opacity: 0;
  transform: translateY(4px);
}

.js .app[data-state="done"] .task__ready {
  transition: opacity 0.4s, transform 0.5s var(--ease-out);
}

.js .result__empty {
  display: flex;
}

.js .app[data-state="done"] .result__empty {
  opacity: 0;
  visibility: hidden;
}

.js .app:not([data-state="done"]) .result-card {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.985);
}

.js .app[data-state="done"] .result-card {
  transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out);
}

.js .app:not([data-state="done"]) .result-note {
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
}

.js .app[data-state="done"] .result-note {
  transition: opacity 0.5s var(--ease-out) 0.35s, transform 0.6s var(--ease-out) 0.35s;
}

@media (max-width: 1023px) {
  .app__tools {
    font-size: 0;
    gap: 0;
  }

  .task {
    padding: 24px;
  }

  .result {
    padding: 24px;
  }
}

@media (max-width: 899px) {
  .app__panel--assistant {
    grid-template-columns: minmax(0, 1fr);
  }

  .result {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .synthesis {
    position: relative;
    inset: auto;
    width: auto;
    border-left: 0;
    border-top: 1px solid var(--line);
    box-shadow: none;
    transform: translateY(-6px);
  }

  .synthesis__body {
    overflow: visible;
  }
}

@media (max-width: 599px) {
  .stage::before {
    display: none;
  }

  .app__bar {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 0 12px;
  }

  .app__workspace-name,
  .app__tools {
    display: none;
  }

  .app__tabs {
    justify-self: end;
  }

  .app__tab {
    padding: 0 11px;
  }

  .task,
  .result {
    padding: 20px 18px 22px;
  }

  .composer__input {
    min-height: 3em;
  }

  .task__ready {
    margin-left: 0;
  }

  .synthesis__head {
    padding: 18px 14px 14px 18px;
  }

  .synthesis__body {
    padding: 4px 18px 18px;
  }

  .synthesis__foot {
    padding: 12px 18px;
  }

  .app__panel--list {
    padding: 20px 18px;
  }

  .feed__item {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px 12px;
  }

  .feed__time {
    grid-column: 1 / -1;
    font-size: 12px;
  }

  .doc-table__folder {
    display: none;
  }
}

@media (max-width: 479px) {
  .composer__sources-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }
}

.section {
  padding-block: var(--section-y);
}

.h2 {
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--muted);
}

.h2 + .lead {
  margin-top: 20px;
}

.section-head {
  max-width: 760px;
}

.section-head--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: 24px 64px;
  max-width: none;
}

.section-head--split .lead {
  max-width: 34em;
  justify-self: end;
}

@media (max-width: 899px) {
  .section-head--split {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-head--split .lead {
    justify-self: start;
  }
}

.idea {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 48px 24px;
  align-items: center;
}

.idea__text {
  grid-column: 1 / span 5;
}

.idea__title {
  font-size: clamp(2rem, 1.35rem + 2.6vw, 3.25rem);
  line-height: 1.04;
  letter-spacing: -0.034em;
}

.idea__muted {
  color: var(--muted);
}

.idea__text .lead {
  max-width: 30em;
  margin-top: 24px;
}

.flow {
  position: relative;
  grid-column: 7 / -1;
  display: grid;
  gap: 12px;
  list-style: none;
}

.flow::before {
  content: "";
  position: absolute;
  left: 38px;
  top: 36px;
  bottom: 36px;
  width: 1px;
  background: var(--line-strong);
}

.flow__card {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 20px;
  padding: 22px 24px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.25s, box-shadow 0.3s, translate 0.3s var(--ease-out);
}

.flow__card:hover {
  translate: 0 -2px;
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.flow__num {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 12px;
  font-weight: 560;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  transition: background-color 0.25s, border-color 0.25s, color 0.25s;
}

.flow__card:hover .flow__num {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--on-ink);
}

.flow__title {
  font-size: 16px;
  font-weight: 600;
  line-height: 28px;
  letter-spacing: -0.012em;
}

.flow__text {
  margin-top: 2px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

.flow__request {
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  font-size: 15px;
  color: var(--ink);
}

.flow__caret {
  width: 1.5px;
  height: 1.1em;
  margin-left: 3px;
  background: var(--ink);
  opacity: 0;
}

.flow__card:hover .flow__caret {
  animation: blink 1.05s steps(1) 4 both;
}

.flow__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
  list-style: none;
}

.flow__tags li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  font-size: 12.5px;
  color: var(--muted);
  transition: color 0.25s, border-color 0.25s;
}

.flow__tags .icon {
  width: 13px;
  height: 13px;
}

.flow__card:hover .flow__tags li {
  color: var(--ink);
  border-color: var(--line-strong);
}

.flow__card:hover .flow__tags li:nth-child(2) {
  transition-delay: 0.08s;
}

.flow__card:hover .flow__tags li:nth-child(3) {
  transition-delay: 0.16s;
}

.flow__decision {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.fake-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-2);
}

.fake-btn .icon {
  width: 13px;
  height: 13px;
  stroke-width: 2.2;
}

.fake-btn--accent {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
  transition: box-shadow 0.3s;
}

.flow__card:hover .fake-btn--accent {
  box-shadow: 0 0 0 4px var(--accent-soft);
}

@media (max-width: 1023px) {
  .idea {
    grid-template-columns: minmax(0, 1fr);
  }

  .idea__text,
  .flow {
    grid-column: 1 / -1;
  }

  .idea__text {
    max-width: 640px;
  }
}

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  margin-top: 56px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.25s, box-shadow 0.3s;
}

.card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.card__head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card__icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--ink);
}

.card__icon .icon {
  width: 15px;
  height: 15px;
}

.card__label {
  font-size: 12px;
  font-weight: 620;
  letter-spacing: 0.09em;
  line-height: 1.3;
  text-transform: uppercase;
}

.card__text {
  max-width: 34ch;
  margin-top: 16px;
  font-size: 16.5px;
  line-height: 1.45;
  letter-spacing: -0.014em;
  color: var(--ink-2);
}

.bento__item--main {
  grid-column: 1 / span 7;
  grid-row: span 2;
}

.bento__item--main .card__text {
  max-width: 36ch;
  margin-bottom: 28px;
  font-size: clamp(1.1875rem, 1rem + 0.6vw, 1.375rem);
  line-height: 1.38;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.bento__item--search,
.bento__item--mail {
  grid-column: 8 / -1;
}

.bento__item:nth-child(n + 4) {
  grid-column: span 4;
}

.search-ui,
.inbox,
.rename,
.merge,
.todo {
  margin-top: auto;
  padding-top: 24px;
}

.folder {
  margin-top: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  overflow: hidden;
}

.folder__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  font-size: 13px;
}

.folder__title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 580;
}

.folder__title .icon {
  width: 16px;
  height: 16px;
  color: var(--muted);
}

.folder__count {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.folder__list {
  padding: 6px;
  list-style: none;
}

.folder__row {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13.5px;
}

.folder__row .icon {
  width: 16px;
  height: 16px;
  color: var(--muted);
}

.folder__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.folder__src {
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  font-size: 11.5px;
  color: var(--muted);
}

.folder__foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  font-size: 13px;
  font-weight: 580;
  color: var(--accent);
}

.folder__foot .icon {
  width: 15px;
  height: 15px;
  stroke-width: 2.2;
}

.js [data-folder-demo] .folder__row {
  opacity: 0;
  transform: translateY(-6px);
}

.js [data-folder-demo].is-playing .folder__row {
  opacity: 1;
  transform: none;
  transition: opacity 0.4s, transform 0.55s var(--ease-out);
  transition-delay: calc(300ms + var(--i, 0) * 260ms);
  animation: arrive 1.4s ease-out both;
  animation-delay: calc(300ms + var(--i, 0) * 260ms);
}

.js [data-folder-demo] .folder__foot {
  opacity: 0;
  transition: opacity 0.4s;
}

.js [data-folder-demo].is-done .folder__foot {
  opacity: 1;
}

.search-ui__field {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  font-size: 13.5px;
  box-shadow: 0 0 0 3px var(--fill-soft);
}

.search-ui__field .icon {
  width: 15px;
  height: 15px;
  color: var(--muted);
}

.search-ui__result {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  margin-top: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.search-ui__result strong {
  font-weight: 560;
  color: var(--ink);
}

.search-ui__year {
  height: fit-content;
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  font-size: 11.5px;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.bento__item--mail {
  container-type: inline-size;
}

.inbox {
  list-style: none;
}

.inbox__row {
  display: grid;
  grid-template-columns: minmax(0, 7.5em) minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.inbox__row:last-child {
  padding-bottom: 0;
}

.inbox__from {
  font-weight: 560;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inbox__subject {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
}

@container (max-width: 440px) {
  .inbox__row {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 1px;
  }

  .inbox__from {
    grid-column: 1;
    grid-row: 1;
  }

  .inbox__subject {
    grid-column: 1;
    grid-row: 2;
  }

  .inbox__row .tag {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}

.rename {
  display: grid;
  gap: 6px;
  font-size: 12.5px;
}

.rename__from,
.rename__to {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.rename__from {
  color: var(--muted);
  background: var(--surface-2);
  text-decoration: line-through;
  text-decoration-color: var(--line-hover);
}

.rename__to {
  position: relative;
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.rename__from .icon,
.rename__to .icon,
.rename__path .icon {
  width: 14px;
  height: 14px;
  color: var(--muted);
}

.rename span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rename__path {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 2px 0;
  font-size: 12px;
  color: var(--muted);
}

.merge__sources {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.merge__doc {
  display: grid;
  gap: 7px;
  margin-top: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.merge__title {
  margin-bottom: 2px;
  font-size: 12.5px;
  font-weight: 600;
}

.merge__flag {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
}

.merge__flag::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
}

.todo {
  list-style: none;
}

.todo__item {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.todo__item:last-child {
  padding-bottom: 0;
}

.todo__dot {
  width: 10px;
  height: 10px;
  border: 1.5px solid var(--ink-2);
  border-radius: 50%;
}

.todo__text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.todo__meta {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.todo__item--done {
  color: var(--muted);
}

.todo__item--done .todo__text {
  text-decoration: line-through;
  text-decoration-color: var(--line-hover);
}

.todo__item--done .icon {
  width: 14px;
  height: 14px;
  stroke-width: 2.2;
  color: var(--accent);
}

@media (max-width: 1099px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bento__item--main {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .bento__item--search,
  .bento__item--mail,
  .bento__item:nth-child(n + 4) {
    grid-column: auto;
  }

  .bento__item:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 679px) {
  .bento {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 40px;
  }

  .card {
    padding: 20px;
  }

  .folder__src {
    display: none;
  }
}

.activity {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 48px 24px;
  align-items: center;
}

.activity__text {
  grid-column: 1 / span 5;
}

.activity__text .lead {
  max-width: 30em;
}

.log-window {
  grid-column: 7 / -1;
}

.points {
  margin-top: 36px;
  border-top: 1px solid var(--line);
  list-style: none;
}

.points li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}

.points .icon {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: var(--ink);
}

.points strong {
  font-weight: 580;
  color: var(--ink);
}

.log-window__count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-2);
}

.log-window__count.is-clear {
  color: var(--muted);
}

.log-window__count.is-clear .ring {
  border-color: var(--accent);
  background: var(--accent);
}

.log {
  padding: 4px 20px 12px;
}

.log__day {
  margin: 18px 0 2px;
  font-size: 11.5px;
  font-weight: 580;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.log__list {
  list-style: none;
}

.log__item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
}

.log__list:last-child .log__item:last-child {
  border-bottom: 0;
}

.log__time {
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.log__action {
  font-size: 14.5px;
  line-height: 1.4;
  color: var(--ink);
}

.log__context {
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--muted);
}

.log__status {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.log__status .status[hidden],
.log__status .btn[hidden] {
  display: none;
}

.log__item--pending {
  margin: 8px -12px;
  padding: 14px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-2);
  transition: background-color 0.4s, border-color 0.4s;
}

.log__item--pending.is-validated {
  background: var(--surface);
  border-color: var(--line);
}

.js .log-window .log__item {
  opacity: 0;
  transform: translateY(6px);
}

.js .log-window.is-visible .log__item {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s, transform 0.6s var(--ease-out), background-color 0.4s, border-color 0.4s;
  transition-delay: calc(250ms + var(--i, 0) * 90ms), calc(250ms + var(--i, 0) * 90ms), 0s, 0s;
}

.js .log-window.is-visible .log-window__count:not(.is-clear) .ring::after {
  content: "";
  position: absolute;
  inset: -1.5px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  animation: ring 1.6s var(--ease-out) 1s 3;
  opacity: 0;
}

@media (max-width: 1023px) {
  .activity {
    grid-template-columns: minmax(0, 1fr);
  }

  .activity__text,
  .log-window {
    grid-column: 1 / -1;
  }

  .activity__text {
    max-width: 640px;
  }
}

@media (max-width: 559px) {
  .log {
    padding: 0 16px 8px;
  }

  .window__bar {
    padding: 0 16px;
  }

  .log__item {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 4px 12px;
    align-items: start;
  }

  .log__status {
    grid-column: 2;
    justify-content: flex-start;
  }

  .log__item--pending {
    margin-inline: -8px;
    padding-inline: 8px;
  }

  .log__item--pending .log__status {
    flex-wrap: wrap;
    margin-top: 8px;
  }
}

.compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 56px;
}

.compare__col {
  display: flex;
  flex-direction: column;
  padding: 28px 32px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.compare__col--after {
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.compare__label {
  font-size: 12px;
  font-weight: 620;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.compare__col--after .compare__label {
  color: var(--accent);
}

.compare__steps {
  margin-top: 20px;
  list-style: none;
  counter-reset: step;
}

.compare__steps li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: baseline;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  font-size: 16px;
  color: var(--ink-2);
  counter-increment: step;
}

.compare__steps li::before {
  content: counter(step, decimal-leading-zero);
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.compare__flow {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-top: 24px;
}

.compare__request {
  max-width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  color: var(--ink);
}

.compare__link {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 84px;
  margin-left: 28px;
}

.compare__line {
  position: relative;
  align-self: stretch;
  width: 1px;
  margin: 6px 0 8px;
  background: var(--line-strong);
}

.compare__line::after {
  content: "";
  position: absolute;
  left: -3px;
  bottom: 0;
  width: 7px;
  height: 7px;
  border-right: 1px solid var(--muted);
  border-bottom: 1px solid var(--muted);
  transform: rotate(45deg);
}

.compare__via {
  font-size: 12.5px;
  color: var(--muted);
}

.compare__result {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent-line);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  font-weight: 580;
  color: var(--accent);
}

.compare__result .icon {
  width: 17px;
  height: 17px;
  stroke-width: 2.2;
}

.compare__note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  font-size: 15px;
  color: var(--muted);
}

.compare__note .icon {
  width: 17px;
  height: 17px;
  color: var(--ink-2);
}

@media (max-width: 767px) {
  .compare {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 40px;
  }

  .compare__col {
    padding: 22px 20px 24px;
  }

  .compare__note {
    align-items: flex-start;
  }

  .compare__note .icon {
    margin-top: 3px;
  }
}

.hub {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 64px;
}

.hub__core {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 18px 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  font-size: 14px;
  font-weight: 580;
}

.hub__mark {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: var(--accent) url("assets/favicon.svg") center / cover no-repeat;
}

.hub__core::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 1px;
  height: 33px;
  background: var(--line-strong);
  transform-origin: top;
}

.hub__list {
  --hub-gap: 12px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--hub-gap);
  width: 100%;
  margin-top: 64px;
  list-style: none;
}

.hub__list::before {
  content: "";
  position: absolute;
  top: -32px;
  left: calc((100% - 5 * var(--hub-gap)) / 12);
  right: calc((100% - 5 * var(--hub-gap)) / 12);
  height: 1px;
  background: var(--line-strong);
}

.hub__item {
  position: relative;
  padding: 20px 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.25s, box-shadow 0.3s, translate 0.3s var(--ease-out);
}

.hub__item::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  width: 1px;
  height: 32px;
  background: var(--line-strong);
  transform-origin: bottom;
  transition: background-color 0.25s;
}

.hub__item:hover {
  translate: 0 -2px;
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.hub__item:hover::before {
  background: var(--accent);
}

.hub__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  transition: border-color 0.25s, color 0.25s;
}

.hub__icon .icon {
  width: 18px;
  height: 18px;
}

.hub__item:hover .hub__icon {
  border-color: var(--accent-line);
  color: var(--accent);
}

.hub__name {
  margin-top: 16px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.hub__desc {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

.js .hub .hub__core::after,
.js .hub .hub__item::before {
  transform: scaleY(0);
}

.js .hub .hub__list::before {
  transform: scaleX(0);
}

.js .hub.is-visible .hub__core::after {
  transform: none;
  transition: transform 0.35s var(--ease-in-out) 0.3s;
}

.js .hub.is-visible .hub__list::before {
  transform: none;
  transition: transform 0.6s var(--ease-in-out) 0.6s;
}

.js .hub.is-visible .hub__item::before {
  transform: none;
  transition: transform 0.35s var(--ease-in-out) 1.1s, background-color 0.25s;
}

@media (max-width: 1099px) {
  .hub {
    margin-top: 48px;
  }

  .hub__core {
    display: none;
  }

  .hub__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 0;
  }

  .hub__list::before,
  .hub__item::before {
    display: none;
  }
}

@media (max-width: 559px) {
  .hub {
    margin-top: 40px;
  }

  .hub__list {
    --hub-gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hub__item {
    padding: 16px 14px;
  }
}

.about {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 48px 24px;
  align-items: center;
}

.about__text {
  grid-column: 1 / span 5;
}

.about__text .lead {
  max-width: 30em;
}

.about__body {
  max-width: 34em;
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

.profile {
  grid-column: 7 / -1;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.profile__head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  border-bottom: 1px solid var(--line);
}

.profile__avatar {
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--accent-soft);
  object-fit: cover;
}

.profile__name {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.profile__role {
  margin-top: 2px;
  font-size: 14px;
  color: var(--muted);
}

.profile__points {
  margin: 0;
  padding: 4px 24px;
  border-top: 0;
}

.profile__points li:last-child {
  border-bottom: 0;
}

.profile__contact {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 14px;
}

.profile__contact .icon {
  width: 16px;
  height: 16px;
  color: var(--muted);
}

@media (max-width: 1023px) {
  .about {
    grid-template-columns: minmax(0, 1fr);
  }

  .about__text,
  .profile {
    grid-column: 1 / -1;
  }

  .about__text {
    max-width: 640px;
  }
}

@media (max-width: 559px) {
  .profile__head,
  .profile__points,
  .profile__contact {
    padding-inline: 18px;
  }
}

.timeline {
  --tl-gap: 24px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--tl-gap);
  margin-top: 56px;
  list-style: none;
}

.timeline::before,
.timeline::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 0;
  right: calc((100% - 3 * var(--tl-gap)) / 4 - 6px);
  height: 1px;
  background: var(--line-strong);
}

.timeline::after {
  background: var(--accent);
  transform-origin: left center;
}

.timeline__step {
  position: relative;
  padding-top: 30px;
  padding-right: 16px;
}

.timeline__node {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 11px;
  height: 11px;
  border: 1px solid var(--accent);
  border-radius: 2px;
  background: var(--accent);
  transition: background-color 0.3s, border-color 0.3s;
}

.timeline__num {
  font-size: 12px;
  font-weight: 550;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.timeline__title {
  margin-top: 8px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.timeline__text {
  max-width: 30ch;
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

.js .timeline::after {
  transform: scaleX(0);
}

.js .timeline .timeline__node {
  border-color: var(--line-strong);
  background: var(--bg);
}

.js .timeline.is-visible::after {
  transform: none;
  transition: transform 1.6s var(--ease-in-out) 0.35s;
}

.js .timeline.is-visible .timeline__node {
  border-color: var(--accent);
  background: var(--accent);
}

.js .timeline.is-visible .timeline__step:nth-child(1) .timeline__node {
  transition-delay: 0.35s;
}

.js .timeline.is-visible .timeline__step:nth-child(2) .timeline__node {
  transition-delay: 0.85s;
}

.js .timeline.is-visible .timeline__step:nth-child(3) .timeline__node {
  transition-delay: 1.3s;
}

.js .timeline.is-visible .timeline__step:nth-child(4) .timeline__node {
  transition-delay: 1.8s;
}

@media (max-width: 899px) {
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 24px;
    margin-top: 40px;
  }

  .timeline::before,
  .timeline::after {
    display: none;
  }

  .timeline__step {
    padding-top: 28px;
    border-top: 1px solid var(--line-strong);
  }

  .timeline__node {
    top: -6px;
  }
}

@media (max-width: 599px) {
  .timeline {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .timeline__step {
    padding: 0 0 36px 36px;
    border-top: 0;
  }

  .timeline__step:last-child {
    padding-bottom: 0;
  }

  .timeline__node {
    top: 2px;
  }

  .timeline__step:not(:last-child)::before,
  .timeline__step:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 14px;
    bottom: -2px;
    width: 1px;
    background: var(--line-strong);
  }

  .timeline__step:not(:last-child)::after {
    background: var(--accent);
    transform-origin: center top;
  }

  .js .timeline__step::after {
    transform: scaleY(0);
  }

  .js .timeline.is-visible .timeline__step::after {
    transform: none;
    transition: transform 0.5s var(--ease-in-out);
  }

  .js .timeline.is-visible .timeline__step:nth-child(1)::after {
    transition-delay: 0.4s;
  }

  .js .timeline.is-visible .timeline__step:nth-child(2)::after {
    transition-delay: 0.9s;
  }

  .js .timeline.is-visible .timeline__step:nth-child(3)::after {
    transition-delay: 1.35s;
  }

  .timeline__title {
    margin-top: 4px;
  }
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 56px;
  border-top: 1px solid var(--line);
  list-style: none;
}

.pillar {
  display: flex;
  flex-direction: column;
  padding: 32px 32px 4px;
}

.pillar:first-child {
  padding-left: 0;
}

.pillar:last-child {
  padding-right: 0;
}

.pillar + .pillar {
  border-left: 1px solid var(--line);
}

.pillar__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.pillar__icon .icon {
  width: 18px;
  height: 18px;
}

.pillar__title {
  margin-top: 20px;
  font-size: 12px;
  font-weight: 620;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pillar__text {
  margin-top: 10px;
  margin-bottom: 20px;
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.014em;
  color: var(--ink);
}

.rule {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: auto;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink-2);
}

.rule__label {
  font-size: 11px;
  font-weight: 580;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 899px) {
  .pillars {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 40px;
  }

  .pillar,
  .pillar:first-child,
  .pillar:last-child {
    padding: 28px 0;
  }

  .pillar + .pillar {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .pillar:last-child {
    padding-bottom: 0;
  }

  .rule {
    align-self: flex-start;
  }
}

.faq {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 40px 24px;
}

.faq__intro {
  grid-column: 1 / span 4;
}

.faq__more {
  margin-top: 20px;
  font-size: 15px;
  color: var(--muted);
}

.faq__list {
  grid-column: 6 / -1;
  border-top: 1px solid var(--line);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__q {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.faq__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 22px 0;
  font-size: 17px;
  font-weight: 540;
  letter-spacing: -0.014em;
  line-height: 1.4;
  text-align: left;
  color: var(--ink);
}

.faq__trigger:focus-visible {
  outline-offset: 4px;
  border-radius: 4px;
}

.faq__icon {
  position: relative;
  flex: none;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: background-color 0.25s, border-color 0.25s;
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 1.5px;
  border-radius: 1px;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform 0.35s var(--ease-out), background-color 0.25s;
}

.faq__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq__trigger:hover .faq__icon {
  border-color: var(--line-hover);
}

.faq__trigger[aria-expanded="true"] .faq__icon {
  background: var(--ink);
  border-color: var(--ink);
}

.faq__trigger[aria-expanded="true"] .faq__icon::before,
.faq__trigger[aria-expanded="true"] .faq__icon::after {
  background: var(--on-ink);
}

.faq__trigger[aria-expanded="true"] .faq__icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq__panel {
  display: grid;
  grid-template-rows: 1fr;
}

.faq__inner {
  min-height: 0;
  overflow: hidden;
}

.faq__inner p {
  max-width: 60ch;
  padding: 0 52px 24px 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

.js .faq__panel {
  transition: grid-template-rows 0.45s var(--ease-out), visibility 0s;
}

.js .faq__item:not(.is-open) .faq__panel {
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 0.4s var(--ease-out), visibility 0s 0.4s;
}

.js .faq__inner p {
  transition: opacity 0.4s, transform 0.45s var(--ease-out);
}

.js .faq__item:not(.is-open) .faq__inner p {
  opacity: 0;
  transform: translateY(-4px);
}

@media (max-width: 1023px) {
  .faq {
    grid-template-columns: minmax(0, 1fr);
  }

  .faq__intro,
  .faq__list {
    grid-column: 1 / -1;
  }
}

@media (max-width: 559px) {
  .faq__trigger {
    font-size: 16px;
    padding: 18px 0;
  }

  .faq__inner p {
    padding-right: 0;
    font-size: 15px;
  }
}

.cta {
  position: relative;
  overflow: hidden;
  padding-block: clamp(96px, 12vw, 168px);
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  text-align: center;
  isolation: isolate;
}

.cta::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: url("assets/cadastre.svg") center / 1600px 900px no-repeat;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, transparent 30%, #000 100%);
  mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, transparent 30%, #000 100%);
  opacity: 0.7;
  filter: var(--pattern-filter);
  pointer-events: none;
}

.cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta__title {
  max-width: 24ch;
  font-size: clamp(2rem, 1.3rem + 2.8vw, 3.5rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.cta__text {
  margin-top: 22px;
  font-size: var(--fs-lead);
  color: var(--muted);
}

.cta__inner .btn {
  margin-top: 36px;
}

.cta__sub {
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--muted);
}

.footer {
  padding: 56px 0 32px;
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 40px;
}

.footer__tagline {
  max-width: 34ch;
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
}

.footer__nav a,
.footer__bottom a {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer__nav a:hover,
.footer__bottom a:hover {
  color: var(--ink);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.footer__bottom a {
  font-size: 13px;
}

.footer__meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.theme-switch {
  display: inline-flex;
  border-radius: 999px;
}

.theme-switch[hidden] {
  display: none;
}

.theme-switch:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.theme-switch__track {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  width: 48px;
  height: 26px;
  padding: 0 3px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--fill-soft);
  transition: border-color 0.2s;
}

.theme-switch:hover .theme-switch__track {
  border-color: var(--line-hover);
}

.theme-switch__track .icon {
  position: relative;
  z-index: 1;
  justify-self: center;
  width: 13px;
  height: 13px;
  stroke-width: 1.8;
  color: var(--muted);
  transition: color 0.2s;
}

.theme-switch__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--thumb);
  box-shadow: var(--shadow-tab);
  transition: translate 0.25s var(--ease-out);
}

.theme-switch[aria-checked="false"] .theme-switch__sun,
.theme-switch[aria-checked="true"] .theme-switch__moon {
  color: var(--ink);
}

.theme-switch[aria-checked="true"] .theme-switch__thumb {
  translate: 22px 0;
}

.legal {
  width: min(560px, 100% - 32px);
  max-height: min(84vh, 720px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}

.legal[open] {
  display: flex;
  flex-direction: column;
}

.legal::backdrop {
  background: var(--backdrop);
}

html:not(.js) .legal:target {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: block;
  height: fit-content;
}

.legal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 16px 16px 24px;
  border-bottom: 1px solid var(--line);
}

.legal__title {
  font-size: 17px;
  letter-spacing: -0.015em;
}

.legal__body {
  padding: 4px 24px 24px;
  overflow-y: auto;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-2);
}

.legal__body h3 {
  margin: 20px 0 6px;
  font-size: 11.5px;
  font-weight: 580;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.js .reveal {
  opacity: 0;
}

.js .reveal.is-visible {
  animation: reveal 0.75s var(--ease-out) var(--reveal-delay, 0ms) both;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pop {
  0% {
    transform: scale(0.6);
  }

  60% {
    transform: scale(1.08);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

@keyframes arrive {
  0% {
    background-color: var(--accent-soft);
  }

  100% {
    background-color: transparent;
  }
}

@keyframes accent-flow {
  to {
    background-position: -200% 0;
  }
}

@keyframes drift-a {
  50% {
    transform: translate(-8%, 10%) scale(1.08);
  }
  100% {
    transform: translate(4%, 16%) scale(0.94);
  }
}

@keyframes drift-b {
  50% {
    transform: translate(18%, -12%) scale(0.9);
  }
  100% {
    transform: translate(-14%, 8%) scale(1.12);
  }
}

@keyframes drift-c {
  50% {
    transform: translate(16%, 12%) scale(1.1);
  }
  100% {
    transform: translate(6%, -8%) scale(0.95);
  }
}

@keyframes shine {
  to {
    rotate: 1turn;
  }
}

@keyframes ring {
  0% {
    opacity: 0.5;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(2.4);
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal.is-visible {
    animation: fade-in 0.3s linear both;
  }

  .hero__blob,
  .hero__accent {
    animation: none;
  }

  .js .step[data-status="done"] .step__icon,
  .js .step[data-status="done"] .step__title,
  .js .step[data-status="done"] .step__detail,
  .feed__item[data-demo-activity] {
    animation: none;
  }

  .step__spinner {
    animation-duration: 1.6s;
  }

  .js .composer__caret,
  .flow__card:hover .flow__caret {
    animation: none;
  }

  .flow__card:hover .flow__caret {
    opacity: 1;
  }

  .js [data-folder-demo].is-playing .folder__row {
    transform: none;
    transition: opacity 0.3s;
    animation: none;
  }

  .js .log-window .log__item,
  .js .log-window.is-visible .log__item {
    transform: none;
  }

  .js .log-window.is-visible .log-window__count .ring::after {
    animation: none;
  }

  .js .app:not([data-state="done"]) .result-card,
  .js .app:not([data-state="done"]) .result-note,
  .js .app:not([data-state="done"]) .task__ready,
  .synthesis {
    transform: none;
  }

  .js .hub.is-visible .hub__core::after,
  .js .hub.is-visible .hub__list::before,
  .js .hub.is-visible .hub__item::before,
  .js .timeline.is-visible::after,
  .js .timeline.is-visible .timeline__step::after,
  .js .timeline.is-visible .timeline__node {
    transition-duration: 0s;
    transition-delay: 0s;
  }

  .flow__card:hover,
  .hub__item:hover {
    translate: none;
  }

  .btn__shine {
    display: none;
  }

  .btn,
  .btn:active,
  .btn:hover .btn__icon-down,
  .btn:hover .btn__icon-right,
  .text-btn:hover .icon {
    transform: none;
  }
}

@media print {
  .header,
  .skip-link,
  .stage__foot {
    display: none;
  }

  .js .reveal {
    opacity: 1;
    animation: none;
  }
}
