:root {
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --page: 72rem;
  --inset: clamp(0.5rem, 2vw, 2rem);
  --section: clamp(6rem, 13vw, 10rem);
  --panel-radius: calc(var(--radius) * 5.6);
  --pill: calc(var(--radius) * 99);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --panel: color-mix(in oklab, var(--muted) 72%, var(--background));
  --tile: var(--card);
  --ring: 0 0 0 1px var(--border);
  --lift: 0 1px 2px color-mix(in oklab, var(--color-black) 6%, transparent), 0 10px 30px -12px color-mix(in oklab, var(--color-black) 22%, transparent);
  --float: 0 2px 4px color-mix(in oklab, var(--color-black) 4%, transparent), 0 30px 80px -30px color-mix(in oklab, var(--color-black) 35%, transparent);
  --tracking-display: calc(var(--tracking-tight) * 1.8);
}

.dark:not(html) {
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --color-card: var(--card);
  --color-card-foreground: var(--card-foreground);
  --color-popover: var(--popover);
  --color-popover-foreground: var(--popover-foreground);
  --color-primary: var(--primary);
  --color-primary-foreground: var(--primary-foreground);
  --color-secondary: var(--secondary);
  --color-secondary-foreground: var(--secondary-foreground);
  --color-muted: var(--muted);
  --color-muted-foreground: var(--muted-foreground);
  --color-accent: var(--accent);
  --color-accent-foreground: var(--accent-foreground);
  --color-destructive: var(--destructive);
  --color-border: var(--border);
  --color-input: var(--input);
  --color-ring: var(--ring);
}

html {
  scroll-padding-top: 1.5rem;
}

body {
  font-family: var(--font-sans);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

svg {
  display: block;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 70;
  translate: 0 -200%;
}

.skip:focus-visible {
  translate: none;
}

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

.panel {
  margin: var(--inset);
  border-radius: var(--panel-radius);
  background: var(--panel);
}

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

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.actions .btn {
  border-radius: var(--pill);
  padding-inline: 1.5rem;
}

.pulse {
  position: relative;
  width: 0.5rem;
  height: 0.5rem;
  flex: none;
  border-radius: var(--pill);
  background: var(--chart-2);
}

.pulse::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: inherit;
  animation: pulse 2.4s var(--ease) infinite;
}

@keyframes pulse {
  from {
    opacity: 0.6;
    scale: 1;
  }

  to {
    opacity: 0;
    scale: 2.8;
  }
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--foreground);
  font-size: 1.25rem;
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--tracking-tight);
}

.wordmark svg {
  width: 1.15em;
  height: 1.15em;
}

.wordmark-sm {
  font-size: 1rem;
}

.nav {
  position: relative;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 4.5rem;
  padding-inline: clamp(1rem, 3vw, 2rem);
}

.nav-links {
  display: flex;
  gap: 0.25rem;
}

.nav-end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
}

.nav-end > .btn:not([data-variant]) {
  margin-inline-start: 0.25rem;
  border-radius: var(--pill);
  padding-inline: 1rem;
}

.theme-toggle .when-dark,
.dark .theme-toggle .when-light {
  display: none;
}

.dark .theme-toggle .when-dark {
  display: block;
}

.nav-menu {
  display: none;
}

.nav-menu [role='menu'] {
  min-width: 12rem;
}

@media (max-width: 880px) {
  .nav {
    grid-template-columns: 1fr auto;
  }

  .nav-links,
  .nav-signin {
    display: none;
  }

  .nav-menu {
    display: block;
  }
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: clamp(3rem, 7vw, 5rem) var(--gutter) clamp(2.5rem, 5vw, 3.5rem);
  text-align: center;
}

.hero-title {
  max-width: 11ch;
  font-size: clamp(3.4rem, 9vw, 6.75rem);
  font-weight: var(--font-weight-semibold);
  line-height: 0.98;
  letter-spacing: var(--tracking-display);
  text-wrap: balance;
}

.hero-sub {
  max-width: 32ch;
  color: var(--muted-foreground);
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  line-height: 1.4;
  text-wrap: balance;
}

.hero .actions {
  margin-top: 0.5rem;
}

.product {
  width: min(100% - 2 * var(--gutter), 66rem);
  margin: 0 auto;
  padding-bottom: clamp(2rem, 5vw, 4rem);
  perspective: 1600px;
}

.app {
  --tilt: 0;
  display: grid;
  grid-template-columns: 13rem 21rem 1fr;
  height: 37.5rem;
  overflow: hidden;
  border: 0.75rem solid var(--tile);
  border-radius: calc(var(--radius) * 4);
  background: var(--background);
  box-shadow: var(--float), 0 0 0 1px var(--border);
  font-size: var(--text-sm);
  line-height: 1.35;
  text-align: start;
  transform-origin: 50% 0;
  transform: rotateX(calc(var(--tilt) * 14deg)) scale(calc(1 - var(--tilt) * 0.05));
  will-change: transform;
}

.app svg {
  width: 1rem;
  height: 1rem;
  flex: none;
}

.app-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.25rem 0.75rem;
  border-right: 1px solid var(--border);
  background: var(--sidebar);
  color: var(--sidebar-foreground);
}

.app-sidebar .wordmark {
  padding: 0 0.5rem 1rem;
}

.app-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 2.25rem;
  margin-bottom: 0.75rem;
  padding: 0 0.4rem 0 0.75rem;
  border: 1px solid var(--input);
  border-radius: var(--radius-md);
  background: var(--background);
  color: var(--muted-foreground);
}

.app-search .kbd {
  margin-left: auto;
}

.app-nav li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: 2.25rem;
  padding: 0 0.75rem;
  border-radius: var(--radius-md);
  color: var(--muted-foreground);
  font-weight: var(--font-weight-medium);
}

.app-nav li span {
  margin-left: auto;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-normal);
  font-variant-numeric: tabular-nums;
}

.app-nav li.is-active {
  background: var(--sidebar-accent);
  color: var(--sidebar-accent-foreground);
}

.app-label {
  margin: 1.25rem 0.75rem 0.25rem;
  color: var(--muted-foreground);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
}

.app-sources li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: 2rem;
  padding: 0 0.75rem;
  color: var(--muted-foreground);
}

.app-sources svg {
  width: 0.875rem;
  height: 0.875rem;
  color: var(--brand);
}

.app-sync {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: auto 0.75rem 0;
  color: var(--muted-foreground);
  font-size: var(--text-xs);
}

.app-list {
  overflow: hidden;
  border-right: 1px solid var(--border);
}

.app-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.25rem 0.75rem;
}

.app-list-head h2 {
  font-size: 1.125rem;
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--tracking-tight);
}

.app-rows {
  display: grid;
  gap: 2px;
  padding: 0 0.5rem;
}

.app-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  height: 4rem;
  padding: 0 0.75rem;
  border-radius: var(--radius-lg);
  text-align: start;
  cursor: pointer;
  transition: background-color 0.2s var(--ease);
}

.app-row:hover {
  background: color-mix(in oklab, var(--accent) 60%, transparent);
}

.app-row[aria-pressed='true'] {
  background: var(--accent);
}

.app-row:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: -2px;
}

.app-row-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.app-row strong {
  overflow: hidden;
  font-weight: var(--font-weight-medium);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.app-row small {
  color: var(--muted-foreground);
  font-size: var(--text-xs);
}

.app-row em {
  margin-left: auto;
  font-style: normal;
  font-weight: var(--font-weight-medium);
  font-variant-numeric: tabular-nums;
}

.app .avatar {
  border-radius: var(--radius-md);
}

.app .avatar > span {
  background: var(--brand);
  color: var(--ink, var(--color-white));
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
}

.app .avatar[data-size='lg'] {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-xl);
}

.app .avatar[data-size='lg'] > span {
  font-size: var(--text-sm);
}

.app-detail {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  min-width: 0;
  padding: 1.5rem 1.5rem 1.25rem;
  transition: opacity 0.25s var(--ease), translate 0.25s var(--ease);
}

.app-detail.is-swapping {
  opacity: 0;
  translate: 0 0.35rem;
}

.app-detail-head {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.app-detail-head h2 {
  font-size: 1.375rem;
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--tracking-tight);
}

.app-detail-head p {
  color: var(--muted-foreground);
}

.app-total {
  margin-left: auto;
  white-space: nowrap;
  color: var(--foreground) !important;
  font-size: 1.75rem;
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--tracking-tight);
  font-variant-numeric: tabular-nums;
}

.app-fields {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
}

.app-fields .table {
  font-size: var(--text-sm);
}

.app-fields thead {
  display: none;
}

.app-fields th,
.app-fields td {
  height: auto;
  padding: 0.5rem 1rem;
  vertical-align: middle;
}

.app-fields th {
  width: 7rem;
  color: var(--muted-foreground);
  font-weight: var(--font-weight-normal);
  text-align: start;
}

.app-fields td:nth-child(2) {
  display: grid;
}

.app-fields td small {
  color: var(--muted-foreground);
  font-size: var(--text-xs);
}

.app-fields td:last-child {
  width: 1%;
  text-align: end;
}

.app-fields tbody tr:hover {
  background: color-mix(in oklab, var(--muted) 60%, transparent);
}

.confidence {
  gap: 0.35rem;
  border-radius: var(--pill);
}

.confidence::before {
  content: '';
  width: 0.375rem;
  height: 0.375rem;
  border-radius: var(--pill);
  background: currentColor;
  opacity: 0.8;
}

.app-lines {
  display: grid;
  gap: 0.25rem;
  padding: 0 1rem;
  color: var(--muted-foreground);
}

.app-lines div {
  display: flex;
  justify-content: space-between;
  font-variant-numeric: tabular-nums;
}

.app-original {
  margin-top: auto;
  border-radius: var(--radius-xl);
}

.app-original h3 {
  font-weight: var(--font-weight-medium);
}

.app-thumb {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 1.75rem;
  height: 2.25rem;
  padding: 0.35rem 0.3rem;
  border-radius: var(--radius-sm);
  background: var(--background);
  box-shadow: var(--ring), var(--lift);
  rotate: -4deg;
}

.app-thumb i {
  height: 2px;
  border-radius: var(--pill);
  background: var(--border);
}

.app-thumb i:nth-child(2n) {
  width: 70%;
}

@media (max-width: 1080px) {
  .app {
    grid-template-columns: 19rem 1fr;
  }

  .app-sidebar {
    display: none;
  }
}

@media (max-width: 720px) {
  .app {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    height: auto;
    border-width: 0.5rem;
    border-radius: calc(var(--radius) * 2.4);
  }

  .app-list {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .app-list-head {
    padding: 1rem 1rem 0.5rem;
  }

  .app-rows {
    display: flex;
    gap: 0.5rem;
    padding: 0 1rem 1rem;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .app-row {
    flex-direction: column;
    justify-content: center;
    gap: 0.4rem;
    width: auto;
    min-width: 6.5rem;
    height: auto;
    padding: 0.75rem;
    border: 1px solid var(--border);
    text-align: center;
  }

  .app-row-text small {
    display: none;
  }

  .app-row strong {
    max-width: 6rem;
    font-size: var(--text-xs);
  }

  .app-row em {
    margin: 0;
    color: var(--muted-foreground);
    font-size: var(--text-xs);
  }

  .app-detail {
    padding: 1.25rem 1rem 1rem;
  }

  .app-detail-head {
    flex-wrap: wrap;
  }

  .app-total {
    width: 100%;
    margin-left: 0;
    font-size: 2rem;
  }

  .app-fields table,
  .app-fields tbody {
    display: block;
  }

  .app-fields tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 0.5rem;
    grid-template-areas: 'label badge' 'value badge';
    align-items: center;
    padding: 0.6rem 0.75rem;
  }

  .app-fields th,
  .app-fields td {
    width: auto;
    padding: 0;
  }

  .app-fields th {
    grid-area: label;
    font-size: var(--text-xs);
  }

  .app-fields td:nth-child(2) {
    grid-area: value;
  }

  .app-fields td:last-child {
    grid-area: badge;
    width: auto;
  }
}

.section {
  padding-top: var(--section);
}

.fits-title,
.feature-text h2,
.section-head h2 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: var(--font-weight-semibold);
  line-height: 1.05;
  letter-spacing: var(--tracking-display);
  text-wrap: balance;
}

.marquees {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  margin-block: clamp(2.5rem, 6vw, 4rem);
}

.marquee {
  min-width: 0;
  padding-block: 2.5rem 0.25rem;
  margin-block: -2.5rem -0.25rem;
  overflow-x: clip;
  mask-image: linear-gradient(to right, transparent, black var(--fade, 8rem), black calc(100% - var(--fade, 8rem)), transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
}

.marquee.is-moving .marquee-track {
  animation: marquee var(--duration, 50s) linear infinite;
}

.marquee[data-direction='reverse'].is-moving .marquee-track {
  animation-direction: reverse;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee {
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

.tiles {
  display: flex;
  gap: 1rem;
  padding: 0.25rem 1rem 0.75rem 0;
}

.tile {
  display: grid;
  place-items: center;
  flex: none;
  width: 4rem;
  height: 4rem;
  border-radius: calc(var(--radius) * 1.8);
  background: var(--tile);
  box-shadow: var(--ring), var(--lift);
  color: var(--brand);
  transition: translate 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.tile:hover {
  translate: 0 -3px;
}

.tile svg {
  width: 1.85rem;
  height: 1.85rem;
}

.features {
  display: grid;
}

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding-block: clamp(3rem, 8vw, 6rem);
}

.feature-flip .feature-art {
  order: 2;
  justify-self: end;
}

.feature-art {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 32.5rem;
  aspect-ratio: 458 / 388;
  overflow: hidden;
  border-radius: calc(var(--radius) * 3.2);
  background: linear-gradient(to bottom, var(--panel), var(--background));
  box-shadow: var(--ring);
}

.feature-art svg {
  width: 1.25rem;
  height: 1.25rem;
}

.feature-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  max-width: 27.5rem;
  justify-self: center;
}

.feature-text h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
}

.feature-text > p {
  color: var(--muted-foreground);
  font-size: 1.125rem;
  line-height: 1.6;
}

.more {
  height: auto;
  margin-top: 0.5rem;
  padding: 0;
  gap: 0.35rem;
  font-size: var(--text-base);
}

.more svg {
  width: 1rem;
  height: 1rem;
  transition: translate 0.25s var(--ease);
}

.more:hover svg {
  translate: 3px 0;
}

.splay {
  position: absolute;
  inset: auto 0 -6% 0;
  height: 80%;
}

.source-card {
  --x: var(--fan-x);
  --turn: var(--fan-turn);
  --y: var(--fan-y);
  position: absolute;
  bottom: 0;
  left: var(--x);
  width: 44%;
  height: 100%;
  gap: 0.5rem;
  padding: 1.25rem;
  border-radius: calc(var(--radius) * 2.4);
  box-shadow: var(--ring), var(--lift);
  transform-origin: 50% 100%;
  transform: rotate(var(--turn)) translateY(var(--y));
  transition: left 1.1s var(--ease), transform 1.1s var(--ease);
}

.source-card:nth-child(1) {
  --fan-x: 5%;
  --fan-turn: -11deg;
  --fan-y: 9%;
}

.source-card:nth-child(2) {
  --fan-x: 28%;
  --fan-turn: -2deg;
  --fan-y: 1%;
}

.source-card:nth-child(3) {
  --fan-x: 51%;
  --fan-turn: 8deg;
  --fan-y: 5%;
}

.reveal-ready .feature:not(.is-in) .source-card {
  --x: 28%;
  --turn: 0deg;
  --y: 12%;
}

.source-card h3 {
  font-size: var(--text-base);
  font-weight: var(--font-weight-semibold);
}

.source-card p {
  color: var(--muted-foreground);
  font-size: var(--text-xs);
  line-height: 1.5;
}

.source-card .badge {
  margin-top: 0.25rem;
  gap: 0.25rem;
}

.source-card .badge svg {
  width: 0.75rem;
  height: 0.75rem;
}

.source-icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.5rem;
  border-radius: var(--radius-lg);
  background: var(--muted);
  color: var(--brand);
}

.tidy {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem;
}

.receipt {
  position: relative;
  display: grid;
  gap: 3px;
  width: 9.5rem;
  padding: 1rem 0.75rem 1.25rem;
  overflow: hidden;
  background: var(--background);
  box-shadow: var(--ring), var(--lift);
  color: var(--muted-foreground);
  font: var(--font-weight-normal) 0.625rem / 1.4 var(--font-mono);
  rotate: -4deg;
  filter: blur(0.6px);
  mask-image: linear-gradient(to bottom, black 85%, transparent);
}

.receipt p {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.receipt .receipt-head {
  justify-content: center;
  margin-bottom: 0.5rem;
  text-align: center;
}

.receipt-total {
  padding-top: 3px;
  border-top: 1px dashed var(--border);
  color: var(--foreground);
}

.receipt-foot {
  margin-top: 0.5rem;
}

.scan {
  position: absolute;
  inset: 0 0 auto;
  height: 2.5rem;
  background: linear-gradient(to bottom, transparent, color-mix(in oklab, var(--chart-2) 22%, transparent));
  border-bottom: 1px solid var(--chart-2);
  opacity: 0;
  translate: 0 -100%;
}

.is-in .scan {
  animation: scan 1.6s var(--ease) 0.4s both;
}

@keyframes scan {
  0% {
    opacity: 0;
    translate: 0 -100%;
  }

  15% {
    opacity: 1;
  }

  85% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    translate: 0 11rem;
  }
}

.tidy-arrow {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--pill);
  background: var(--background);
  box-shadow: var(--ring), var(--lift);
}

.tidy-arrow svg {
  width: 1rem;
  height: 1rem;
}

.record {
  width: 12.5rem;
  gap: 0.75rem;
  padding-block: 1.25rem;
  border-radius: calc(var(--radius) * 2.4);
  box-shadow: var(--ring), var(--lift);
}

.record > * {
  padding-inline: 1.25rem;
}

.record h3 {
  font-size: var(--text-base);
  font-weight: var(--font-weight-semibold);
}

.record-total {
  color: var(--foreground) !important;
  font-size: 2rem;
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--tracking-display);
}

.record dl {
  display: grid;
  gap: 0.25rem;
  padding-block: 0.5rem;
  border-block: 1px solid var(--border);
  font-size: var(--text-xs);
}

.record dl div {
  display: flex;
  justify-content: space-between;
}

.record dt {
  color: var(--muted-foreground);
}

.record dd {
  font-weight: var(--font-weight-medium);
}

.record footer {
  flex-wrap: wrap;
  gap: 0.25rem;
}

.record dl div,
.record footer .badge {
  transition: opacity 0.6s var(--ease), translate 0.6s var(--ease);
}

.reveal-ready .feature:not(.is-in) .record dl div,
.reveal-ready .feature:not(.is-in) .record footer .badge {
  opacity: 0;
  translate: 0.5rem 0;
}

.record dl div:nth-child(1) {
  transition-delay: 1.1s;
}

.record dl div:nth-child(2) {
  transition-delay: 1.25s;
}

.record dl div:nth-child(3) {
  transition-delay: 1.4s;
}

.record footer .badge:nth-child(1) {
  transition-delay: 1.6s;
}

.record footer .badge:nth-child(2) {
  transition-delay: 1.75s;
}

.chat {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  padding: 2rem;
  font-size: var(--text-sm);
  line-height: 1.55;
}

.chat > * {
  transition: opacity 0.6s var(--ease), translate 0.6s var(--ease);
}

.reveal-ready .feature:not(.is-in) .chat > * {
  opacity: 0;
  translate: 0 0.75rem;
}

.chat > :nth-child(2) {
  transition-delay: 0.7s;
}

.chat > :nth-child(3) {
  transition-delay: 1.4s;
}

.chat > :nth-child(4) {
  transition-delay: 1.9s;
}

.bubble {
  max-width: 80%;
  padding: 0.75rem 1rem;
  border-radius: calc(var(--radius) * 2);
}

.bubble-me {
  align-self: flex-end;
  border-bottom-right-radius: var(--radius-sm);
  background: var(--primary);
  color: var(--primary-foreground);
}

.bubble-row {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
}

.claude-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: var(--pill);
  background: var(--background);
  box-shadow: var(--ring);
  color: var(--brand);
}

.claude-mark svg {
  width: 1rem;
  height: 1rem;
}

.bubble-claude {
  display: grid;
  gap: 0.5rem;
  border-bottom-left-radius: var(--radius-sm);
  background: var(--card);
  box-shadow: var(--ring), var(--lift);
}

.bubble-claude strong {
  font-weight: var(--font-weight-semibold);
}

.bubble-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.typing {
  display: flex;
  gap: 0.25rem;
  align-self: flex-start;
  margin-left: 2.25rem;
  padding: 0.75rem 1rem;
  border-radius: calc(var(--radius) * 2);
  background: var(--card);
  box-shadow: var(--ring);
}

.typing i {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: var(--pill);
  background: var(--muted-foreground);
  animation: typing 1.2s var(--ease) infinite;
}

.typing i:nth-child(2) {
  animation-delay: 0.15s;
}

.typing i:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes typing {
  0%,
  60%,
  100% {
    opacity: 0.35;
    translate: 0;
  }

  30% {
    opacity: 1;
    translate: 0 -3px;
  }
}

.night {
  background:
    radial-gradient(circle at 50% 45%, color-mix(in oklab, var(--chart-3) 28%, transparent), transparent 60%),
    linear-gradient(to bottom, var(--background), color-mix(in oklab, var(--chart-5) 45%, var(--background)));
  box-shadow: var(--ring);
  color: var(--foreground);
}

.stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 12% 18%, var(--muted-foreground) 50%, transparent 51%),
    radial-gradient(2px 2px at 28% 62%, var(--ring) 50%, transparent 51%),
    radial-gradient(3px 3px at 44% 12%, var(--muted-foreground) 50%, transparent 51%),
    radial-gradient(2px 2px at 58% 38%, var(--ring) 50%, transparent 51%),
    radial-gradient(2px 2px at 72% 22%, var(--muted-foreground) 50%, transparent 51%),
    radial-gradient(3px 3px at 86% 54%, var(--ring) 50%, transparent 51%),
    radial-gradient(2px 2px at 18% 82%, var(--ring) 50%, transparent 51%),
    radial-gradient(2px 2px at 64% 76%, var(--muted-foreground) 50%, transparent 51%),
    radial-gradient(2px 2px at 92% 12%, var(--ring) 50%, transparent 51%),
    radial-gradient(2px 2px at 36% 34%, var(--ring) 50%, transparent 51%),
    radial-gradient(2px 2px at 8% 48%, var(--muted-foreground) 50%, transparent 51%),
    radial-gradient(2px 2px at 80% 86%, var(--ring) 50%, transparent 51%);
  animation: twinkle 6s ease-in-out infinite alternate;
}

@keyframes twinkle {
  to {
    opacity: 0.55;
  }
}

.lock {
  position: relative;
  display: grid;
  place-items: center;
  width: 7.5rem;
  height: 7.5rem;
  border-radius: var(--pill);
  background: var(--foreground);
  color: var(--background);
  box-shadow: 0 0 0 0.75rem color-mix(in oklab, var(--foreground) 8%, transparent), 0 0 5rem color-mix(in oklab, var(--chart-2) 40%, transparent);
}

.lock::before {
  content: '';
  position: absolute;
  inset: -0.75rem;
  border-radius: inherit;
  border: 1px solid color-mix(in oklab, var(--foreground) 25%, transparent);
  animation: halo 4s var(--ease) infinite;
}

@keyframes halo {
  from {
    opacity: 0.8;
    scale: 1;
  }

  to {
    opacity: 0;
    scale: 1.6;
  }
}

.lock svg {
  width: 2.25rem;
  height: 2.25rem;
  stroke-width: 1.75;
}

@media (max-width: 880px) {
  .feature {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .feature-text {
    order: -1;
    justify-self: start;
  }

  .feature-flip .feature-art {
    order: 0;
  }

  .feature-art {
    max-width: none;
  }

  .source-card {
    padding: 1rem;
  }

  .tidy {
    gap: 0.5rem;
    padding: 0.75rem;
  }

  .receipt {
    width: 7.5rem;
    font-size: 0.5rem;
  }

  .record {
    width: 10rem;
  }

  .record > * {
    padding-inline: 1rem;
  }

  .record-total {
    font-size: 1.5rem;
  }

  .tidy-arrow {
    width: 1.75rem;
    height: 1.75rem;
  }

  .chat {
    padding: 1.25rem;
    font-size: var(--text-xs);
  }

  .lock {
    width: 5.5rem;
    height: 5.5rem;
  }
}

.statement {
  text-align: center;
}

.statement-text {
  max-width: 62.5rem;
  margin-inline: auto;
  font-size: clamp(2.6rem, 7.4vw, 6rem);
  font-weight: var(--font-weight-semibold);
  line-height: 1.02;
  letter-spacing: var(--tracking-display);
  text-wrap: balance;
}

.lit-ready .statement-text .word {
  color: color-mix(in oklab, var(--foreground) 22%, transparent);
  transition: color 0.35s linear;
}

.lit-ready .statement-text .word.is-lit {
  color: var(--foreground);
}

.chip {
  display: inline-grid;
  place-items: center;
  width: 0.82em;
  height: 0.82em;
  margin-inline: 0.04em;
  vertical-align: -0.1em;
  border-radius: var(--pill);
  background: var(--tile);
  box-shadow: var(--ring), var(--lift);
  color: var(--brand);
}

.chip svg {
  width: 44%;
  height: 44%;
}

.chip-lock {
  background: linear-gradient(to bottom, var(--background), color-mix(in oklab, var(--chart-5) 45%, var(--background)));
  color: var(--foreground);
}

.statement .actions {
  margin-top: 3rem;
}

.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 44rem;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-head > p {
  max-width: 40ch;
  color: var(--muted-foreground);
  font-size: 1.125rem;
  line-height: 1.55;
  text-wrap: balance;
}

.install-panel {
  padding: clamp(3.5rem, 8vw, 6rem) var(--gutter);
}

.terminal {
  width: min(100%, 46rem);
  margin: 0 auto;
  overflow: hidden;
  border-radius: calc(var(--radius) * 2.4);
  background: var(--background);
  box-shadow: 0 0 0 1px var(--border), var(--float);
  color: var(--foreground);
  font-family: var(--font-mono);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  height: 2.5rem;
  padding: 0 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--card);
  color: var(--muted-foreground);
  font-size: var(--text-xs);
}

.terminal-bar i {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: var(--pill);
  background: var(--muted);
}

.terminal-bar span {
  margin-inline: auto;
  translate: -1.5rem 0;
}

.terminal-command {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1rem 0.5rem 1.5rem;
}

.terminal-command pre {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  font-size: clamp(0.8rem, 1.6vw, 1rem);
  scrollbar-width: none;
}

.prompt {
  color: var(--muted-foreground);
  user-select: none;
}

.copy svg {
  width: 0.875rem;
  height: 0.875rem;
}

.terminal-output {
  display: grid;
  gap: 0.2rem;
  padding: 0.25rem 1.5rem 1.5rem;
  color: var(--muted-foreground);
  font-size: var(--text-sm);
  list-style: none;
}

.terminal-output b {
  color: var(--foreground);
  font-weight: var(--font-weight-medium);
}

.terminal-output .gap {
  margin-top: 0.75rem;
}

.terminal-output li {
  transition: opacity 0.2s linear;
  transition-delay: calc(0.5s + var(--i) * 0.55s);
}

.reveal-ready .terminal:not(.is-in) .terminal-output li {
  opacity: 0;
}

.cursor {
  display: flex;
  align-items: center;
  margin-top: 0.5rem;
}

.cursor i {
  width: 0.55rem;
  height: 1.05rem;
  background: var(--foreground);
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.keep {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
  gap: 1rem;
  width: min(100%, var(--page));
  margin: clamp(3rem, 7vw, 5rem) auto 0;
}

.keep .card {
  border-radius: calc(var(--radius) * 2.4);
}

.keep .card header {
  gap: 0.5rem;
}

.keep .card h3 {
  font-size: 1.125rem;
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--tracking-tight);
}

.keep .card p {
  line-height: 1.55;
}

.keep code {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.75rem;
  border-radius: var(--radius-lg);
  background: var(--muted);
}

.card-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.anywhere {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1rem 3rem;
  align-items: start;
  width: min(100%, var(--page));
  margin: clamp(3rem, 7vw, 5rem) auto 0;
}

.anywhere-head {
  display: grid;
  gap: 0.75rem;
}

.anywhere-head h3 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: var(--font-weight-semibold);
  line-height: 1.1;
  letter-spacing: var(--tracking-display);
}

.anywhere-head p {
  color: var(--muted-foreground);
  font-size: 1.125rem;
}

.anywhere-card {
  grid-row: span 2;
  padding: 0.5rem 1rem;
  border-radius: calc(var(--radius) * 2.4);
}

.anywhere-card th[scope='row'] {
  font-weight: var(--font-weight-medium);
  text-align: start;
}

.anywhere-card td:nth-child(2) {
  color: var(--muted-foreground);
}

.anywhere .more {
  align-self: end;
  justify-self: start;
}

@media (max-width: 880px) {
  .anywhere {
    grid-template-columns: 1fr;
  }

  .anywhere-card {
    grid-row: auto;
  }
}

.billing {
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.billing [role='tablist'] {
  border-radius: var(--pill);
}

.billing [role='tab'] {
  min-width: 6rem;
  border-radius: var(--pill);
}

.billing [role='tabpanel'] {
  color: var(--muted-foreground);
}

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
  gap: 1rem;
}

.plan {
  border-radius: calc(var(--radius) * 2.4);
}

.plan header h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--tracking-tight);
}

.plan header p {
  margin-top: 0.25rem;
  line-height: 1.5;
}

.plan section {
  display: grid;
  gap: 0.75rem;
  align-content: start;
  flex: 1;
}

.plan-price {
  color: var(--muted-foreground);
}

.plan-price strong {
  color: var(--foreground);
  font-size: 2.25rem;
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--tracking-display);
}

.plan-note {
  color: var(--muted-foreground);
  font-size: var(--text-xs);
}

.plan-list {
  display: grid;
  gap: 0.5rem;
  color: var(--muted-foreground);
}

.plan-list li {
  display: flex;
  gap: 0.5rem;
}

.plan-list svg {
  width: 1rem;
  height: 1rem;
  margin-top: 0.1rem;
  flex: none;
  color: var(--foreground);
}

.plan footer .btn {
  width: 100%;
  border-radius: var(--pill);
}

.plan-featured {
  box-shadow: 0 0 0 2px var(--primary), var(--float);
}

.faq {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1rem 3rem;
  width: 100%;
  margin-top: clamp(4rem, 9vw, 6rem);
}

.faq h3 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: var(--font-weight-semibold);
  line-height: 1.1;
  letter-spacing: var(--tracking-display);
}

.faq summary {
  font-size: var(--text-base);
}

.faq summary svg {
  width: 1rem;
  height: 1rem;
  margin-top: 0.2rem;
  color: var(--muted-foreground);
}

.faq details section {
  padding-bottom: 1rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

@media (max-width: 880px) {
  .faq {
    grid-template-columns: 1fr;
  }
}

.waitlist-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-block: 0;
  padding: clamp(4rem, 11vw, 7.5rem) var(--gutter);
  text-align: center;
}

.waitlist-panel > h2 {
  font-size: clamp(2.6rem, 7.4vw, 6rem);
  font-weight: var(--font-weight-semibold);
  line-height: 1;
  letter-spacing: var(--tracking-display);
}

.waitlist-sub {
  color: var(--muted-foreground);
  font-size: clamp(1.125rem, 2vw, 1.375rem);
}

.waitlist-form {
  width: min(100%, 37.5rem);
  margin-top: 2rem;
}

.pill {
  height: 5rem;
  margin: 0;
  padding: 0 0.75rem 0 1.5rem;
  border-radius: var(--pill);
  background: var(--background);
  box-shadow: var(--float);
}

.input-group.pill > input {
  padding-inline: 0.5rem;
  font-size: 1.125rem;
}

.input-group.pill > .btn {
  height: 3.5rem;
  margin: 0;
  padding-inline: 1.75rem;
  border-radius: var(--pill);
  font-size: var(--text-base);
}

.form-error {
  margin-top: 0.75rem;
  color: var(--destructive);
  font-size: var(--text-sm);
}

.waitlist-thanks {
  width: min(100%, 30rem);
  margin-top: 2rem;
  text-align: start;
}

@media (max-width: 520px) {
  .wide-only {
    display: none;
  }

  .source-card p {
    display: none;
  }

  .tidy {
    gap: 0.35rem;
    padding: 0.5rem;
  }

  .receipt {
    width: 6.5rem;
  }

  .record {
    width: 9.25rem;
  }

  .feature-art:has(.chat) {
    aspect-ratio: auto;
  }

  .terminal-command {
    flex-wrap: wrap;
    padding-inline: 1.25rem;
  }

  .terminal-command pre {
    flex-basis: 100%;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }

  .terminal-output {
    padding-inline: 1.25rem;
  }

  .anywhere-card :is(th, td):nth-child(2) {
    display: none;
  }

  .pill {
    height: 4rem;
    padding: 0 0.5rem 0 1rem;
  }

  .input-group.pill > input {
    font-size: var(--text-base);
  }

  .input-group.pill > .btn {
    height: 3rem;
    padding-inline: 1.25rem;
  }
}

.footer {
  width: min(100% - 2 * var(--gutter), var(--page));
  margin: var(--section) auto 0;
  overflow: hidden;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.footer-cols h2 {
  margin-bottom: 0.75rem;
  color: var(--muted-foreground);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
}

.footer-cols li + li {
  margin-top: 0.5rem;
}

.footer-cols a {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  transition: color 0.2s;
}

.footer-cols a:hover {
  color: var(--muted-foreground);
}

.footer-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  color: var(--muted-foreground);
  font-size: var(--text-sm);
}

.footer-mark {
  display: flex;
  align-items: center;
  gap: 0.08em;
  height: 0.9em;
  margin-top: 3rem;
  overflow: hidden;
  color: color-mix(in oklab, var(--foreground) 12%, transparent);
  font-size: clamp(6rem, 22vw, 18rem);
  font-weight: var(--font-weight-semibold);
  line-height: 1;
  letter-spacing: calc(var(--tracking-tight) * 2.4);
  mask-image: linear-gradient(to bottom, black 20%, transparent 95%);
  user-select: none;
}

.footer-mark svg {
  width: 0.62em;
  height: 0.62em;
  flex: none;
}

@media (max-width: 720px) {
  .footer-cols {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-meta {
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  :root {
    --panel-radius: calc(var(--radius) * 3.2);
  }

  .marquee {
    --fade: 2.5rem;
  }

  .tile {
    width: 3.5rem;
    height: 3.5rem;
  }

  .tile svg {
    width: 1.6rem;
    height: 1.6rem;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    filter: blur(8px);
    translate: 0 0.75rem;
  }
}

[data-rise] {
  animation: rise 1.1s var(--ease) 0.45s both;
}

.product[data-rise] {
  animation-delay: 0.65s;
}

.words-ready [data-words] .word {
  display: inline-block;
  animation: rise 0.9s var(--ease) both;
  animation-delay: calc(0.15s + var(--i) * 70ms);
}

.reveal-ready [data-reveal] {
  transition: opacity 1.1s var(--ease), translate 1.1s var(--ease);
}

.reveal-ready [data-reveal]:not(.is-in) {
  opacity: 0;
  translate: 0 1.5rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }

  .app {
    transform: none;
  }

  .marquee {
    mask-image: none;
  }

  .marquee .tiles {
    flex-wrap: wrap;
    justify-content: center;
    padding-right: 0;
  }

  .scan,
  .lock::before,
  .pulse::after {
    display: none;
  }
}
