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

:root {
  color-scheme: light;
  --bg: #ffffff;
  --fg: #141414;
  --muted: #4d4d4d;
  --line: #e4e4e4;
  --line-strong: #c6c6c6;
  --btn: #141414;
  --btn-text: #ffffff;
  --btn-hover: #2c2c2c;
  --screen: #f3f3f3;
  --screen-fg: #3a3a3a;
  --screen-line: rgba(0, 0, 0, 0.18);
  --pill: #f3f3f3;
  --tint-switch: #e7eaee;
  --tint-queue: #f4f3f0;
  --tint-work: #e9eef0;
  --tint-voice: #f6f4f1;
  --measure: 1200px;
  --nav-h: 64px;
  --section: 80px;
  --pad: 20px;
  --aloft-cloud: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 48'%3E%3Cg fill='%236d849c' fill-opacity='.72'%3E%3Cellipse cx='38' cy='28' rx='22' ry='14'/%3E%3Cellipse cx='60' cy='22' rx='26' ry='16'/%3E%3Cellipse cx='82' cy='28' rx='20' ry='13'/%3E%3C/g%3E%3Cg fill='%23fff'%3E%3Cellipse cx='38' cy='29' rx='13' ry='7'/%3E%3Cellipse cx='60' cy='24' rx='16' ry='8'/%3E%3Cellipse cx='82' cy='29' rx='11' ry='6'/%3E%3C/g%3E%3C/svg%3E");
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #000000;
  --fg: #f3f3f3;
  --muted: #c2c2c2;
  --line: #2a2a2a;
  --line-strong: #3f3f3f;
  --btn: #f3f3f3;
  --btn-text: #111111;
  --btn-hover: #ffffff;
  --screen: #141414;
  --screen-fg: #d4d4d4;
  --screen-line: rgba(255, 255, 255, 0.2);
  --pill: #1a1a1a;
  --tint-switch: #1b1e22;
  --tint-queue: #1a1917;
  --tint-work: #171a1c;
  --tint-voice: #1c1b18;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --bg: #000000;
    --fg: #f3f3f3;
    --muted: #c2c2c2;
    --line: #2a2a2a;
    --line-strong: #3f3f3f;
    --btn: #f3f3f3;
    --btn-text: #111111;
    --btn-hover: #ffffff;
    --screen: #141414;
    --screen-fg: #d4d4d4;
    --screen-line: rgba(255, 255, 255, 0.2);
    --pill: #1a1a1a;
    --tint-switch: #1b1e22;
    --tint-queue: #1a1917;
    --tint-work: #171a1c;
    --tint-voice: #1c1b18;
  }
}

html {
  background: var(--bg);
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  padding-top: var(--nav-h);
  background: var(--bg);
  color: var(--fg);
  font-family: 'Segoe UI', Inter, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
video {
  max-width: 100%;
}

button,
a {
  font: inherit;
  color: inherit;
}

::selection {
  background: #d6d6d6;
  color: #141414;
}

:root[data-theme='dark'] ::selection {
  background: #3a3a3a;
  color: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) ::selection {
    background: #3a3a3a;
    color: #ffffff;
  }
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 30;
  background: var(--btn);
  color: var(--btn-text);
  padding: 8px 12px;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: min(var(--measure), calc(100% - 48px));
  margin-inline: auto;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  height: var(--nav-h);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 28px;
  width: min(var(--measure), calc(100% - 48px));
  height: 100%;
  margin-inline: auto;
}

.brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-self: start;
  flex: none;
  isolation: isolate;
  text-decoration: none;
}

.brand::before {
  content: '';
  position: absolute;
  z-index: 0;
  left: 1px;
  top: 11px;
  width: 14px;
  height: 7px;
  background: var(--aloft-cloud) center / contain no-repeat;
  opacity: 0;
  pointer-events: none;
}

.logo {
  position: relative;
  z-index: 1;
  display: block;
  height: 22px;
  width: auto;
}

.logo-dark {
  display: none;
}

:root[data-theme='dark'] .logo-light {
  display: none;
}

:root[data-theme='dark'] .logo-dark {
  display: block;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .logo-light {
    display: none;
  }

  :root:not([data-theme='light']) .logo-dark {
    display: block;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  gap: 22px;
  min-width: 0;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--fg);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links a:hover {
  text-decoration: underline;
}

.btn-nav,
.btn-primary,
.btn-ghost {
  border-radius: 999px;
  text-decoration: none;
}

.btn-nav {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  flex: none;
  height: 40px;
  padding: 0 16px;
  background: var(--btn);
  color: var(--btn-text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.btn-nav:hover,
.btn-primary:hover {
  background: var(--btn-hover);
}

.btn-nav[aria-disabled='true'],
.btn-primary[aria-disabled='true'] {
  cursor: default;
}

.btn-nav[aria-disabled='true']:hover,
.btn-primary[aria-disabled='true']:hover {
  background: var(--btn);
}

.hero {
  padding: 72px 0 0;
  text-align: center;
}

h1,
.h-try,
.section-title {
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.08;
  text-wrap: balance;
}

.hero h1 {
  margin: 0 auto;
  max-width: 16em;
  font-size: clamp(32px, 4vw, 52px);
}

.sub,
.lead,
.pain,
.step p,
.fine,
.prose p,
.compare td {
  color: var(--muted);
}

.sub {
  margin: 20px auto 0;
  max-width: 34rem;
  font-size: 18px;
  letter-spacing: -0.015em;
  line-height: 1.45;
}

.actions {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 12px;
  margin-top: 28px;
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 2px;
  min-width: 196px;
  min-height: 48px;
  padding: 10px 18px;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--btn);
  color: var(--btn-text);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.btn-meta {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  opacity: 0.8;
}

.btn-ghost {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--muted);
  border-color: var(--line-strong);
  font-size: 15px;
  font-weight: 600;
  cursor: not-allowed;
}

.soon {
  font-size: 12px;
  font-weight: 500;
}

.frame {
  display: flex;
  align-items: flex-end;
  background-color: var(--screen);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.frame[data-sky='1'] {
  background-image: url('/assets/sky-1.webp');
}

.hero-frame {
  align-items: center;
  justify-content: center;
  width: calc(100% - 48px);
  margin: 48px auto 0;
  padding: 11% 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}

.screen {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--screen);
  border: 1px solid var(--screen-line);
  border-radius: 4px;
  overflow: hidden;
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.28),
    0 4px 12px rgba(0, 0, 0, 0.14);
}

.hero-frame .screen {
  width: 62%;
}

.pending {
  margin: 0;
  color: var(--screen-fg);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--screen);
}

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

.section-title {
  margin: 0;
  font-size: clamp(28px, 3vw, 40px);
}

.lead {
  margin: 12px 0 0;
  max-width: 36rem;
  font-size: 18px;
}

.steps {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  grid-template-rows: minmax(156px, 1.4fr) minmax(104px, 0.85fr);
  gap: 16px;
  margin-top: 28px;
}

.step {
  margin: 0;
  padding: var(--pad);
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg);
}

.step-lg {
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding: 32px;
}

.mark-hover {
  position: relative;
  display: flex;
  align-self: flex-start;
  width: max-content;
  isolation: isolate;
}

.mark-hover::before {
  content: '';
  position: absolute;
  z-index: 0;
  left: 16%;
  top: 56%;
  width: 34%;
  height: 16%;
  background: var(--aloft-cloud) center / contain no-repeat;
  opacity: 0;
  pointer-events: none;
}

.step-mark {
  position: relative;
  z-index: 1;
  width: 112px;
  height: 112px;
}

.step-mark.logo-dark {
  display: none;
}

.step-copy {
  max-width: 28rem;
}

.step-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
}

.step-actions .btn-primary,
.step-actions .btn-ghost {
  flex: 1 1 200px;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.step h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.step-lg h3 {
  font-size: 32px;
}

.step-sm {
  padding: 16px;
}

.step-sm h3 {
  font-size: 16px;
}

.step p {
  margin: 8px 0 0;
  font-size: 15px;
}

.step-lg p {
  max-width: 28rem;
  font-size: 17px;
}

.step-sm p {
  font-size: 14px;
}

.feature-list {
  display: grid;
  gap: 32px;
  width: calc(100vw - 48px);
  margin-top: 32px;
  margin-left: calc(24px - (100vw - 100%) / 2);
}

.feature-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr);
  align-items: center;
  gap: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: var(--tint, var(--bg));
}

.card-switch {
  --tint: var(--tint-switch);
}

.card-queue {
  --tint: var(--tint-queue);
}

.card-work {
  --tint: var(--tint-work);
}

.card-voice {
  --tint: var(--tint-voice);
}

.feature-card.is-flip {
  grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr);
}

.feature-card.is-flip .copy {
  order: 2;
}

.feature-card.is-flip .frame {
  order: 1;
}

.feature-card .copy {
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-card h3 {
  margin: 0;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.pain {
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.45;
}

.feature-card ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.feature-card li {
  position: relative;
  margin: 0;
  padding: 4px 0 4px 14px;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.feature-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 5px;
  height: 1px;
  background: currentColor;
}

.more {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 16px;
  color: var(--fg);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.more:hover {
  text-decoration: underline;
}

.feature-card .frame {
  align-items: center;
  justify-content: center;
  aspect-ratio: 1.57 / 1;
  min-height: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}

.feature-card .screen {
  flex: none;
  width: 62%;
}

.feature-card.is-bleed .frame {
  align-items: flex-start;
  justify-content: flex-start;
  padding: 5.5% 0 0 4.5%;
}

.feature-card.is-bleed .screen {
  width: 118%;
}

.compare-wrap {
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}

.compare {
  width: 100%;
  border-collapse: collapse;
}

.compare th,
.compare td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-weight: 400;
  width: 50%;
}

.compare tr:last-child th,
.compare tr:last-child td {
  border-bottom: 0;
}

.compare thead th {
  color: var(--fg);
  font-weight: 600;
  letter-spacing: -0.02em;
  background: var(--bg);
}

.compare td + td,
.compare th + th {
  border-left: 1px solid var(--line);
}

.compare td:last-child {
  color: var(--fg);
}

.marquee-block {
  margin-top: 28px;
  display: grid;
  gap: 18px;
}

.marquee-block > * {
  min-width: 0;
}

.marquee-label {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.marquee {
  overflow: hidden;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: aloft-marquee 90s linear infinite;
}

.marquee-codex .marquee-track {
  animation-duration: 75s;
}

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

.marquee ul {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0 8px 0 0;
  list-style: none;
}

.marquee li {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--pill);
  color: var(--fg);
  font-size: 14px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

@keyframes aloft-marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes aloft-cloud-nav {
  0% {
    opacity: 0;
    transform: translate3d(-30%, 0, 0);
  }

  18% {
    opacity: 1;
  }

  80% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate3d(120%, 0, 0);
  }
}

@keyframes aloft-cloud-mark {
  0% {
    opacity: 0;
    transform: translate3d(-80%, 0, 0);
  }

  18% {
    opacity: 1;
  }

  80% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate3d(170%, 0, 0);
  }
}

@media (hover: hover) and (pointer: fine) {
  .brand:hover::before {
    animation: aloft-cloud-nav 1s ease-in-out forwards;
  }

  .mark-hover:hover::before {
    animation: aloft-cloud-mark 1s ease-in-out forwards;
  }
}

.faq-list {
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}

.faq-list details {
  border-top: 1px solid var(--line);
}

.faq-list details:first-child {
  border-top: 0;
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: -0.02em;
  list-style: none;
}

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

.faq-list summary::after {
  content: '';
  flex: none;
  width: 8px;
  height: 8px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.faq-list details[open] summary::after {
  transform: translateY(2px) rotate(-135deg);
}

.faq-list details p {
  margin: 0;
  padding: 0 18px 16px;
  color: var(--muted);
  max-width: 42rem;
}

.try {
  padding: 16px 0 var(--section);
}

.try-frame {
  width: min(var(--measure), calc(100% - 48px));
  margin-inline: auto;
  padding: 48px 24px;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}

.try-card {
  width: min(560px, 100%);
  margin-inline: auto;
  padding: 32px 24px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg);
  text-align: center;
}

.h-try {
  margin: 0;
  font-size: clamp(40px, 5vw, 64px);
}

.try-card .actions {
  margin-top: 20px;
}

.footer {
  padding: 48px 0 20px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px;
}

.footer-label {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer li + li {
  margin-top: 0;
}

.footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--fg);
  font-size: 14px;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer .static {
  color: var(--muted);
  font-size: 14px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 36px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.legal {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.theme {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.theme button {
  border: 0;
  background: transparent;
  color: var(--fg);
  min-height: 44px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.theme button + button {
  border-left: 1px solid var(--line);
}

.theme button[aria-checked='true'] {
  background: var(--btn);
  color: var(--btn-text);
}

.page {
  padding: 64px 0 80px;
}

.prose {
  width: min(720px, 100%);
}

.prose h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 44px);
}

.prose h2 {
  margin: 32px 0 8px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.prose p,
.prose li {
  font-size: 16px;
  line-height: 1.55;
}

.prose ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.prose a {
  color: var(--fg);
}

.prose a.btn-primary {
  color: var(--btn-text);
  text-decoration: none;
}

.related {
  margin: 20px 0 0;
}

code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.92em;
}

.page-cta {
  margin-top: 28px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .brand::before,
  .brand:hover::before,
  .mark-hover::before,
  .mark-hover:hover::before {
    animation: none;
    opacity: 0;
  }

  .marquee-track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
  }

  .marquee ul[aria-hidden='true'] {
    display: none;
  }

  .marquee ul {
    flex-wrap: wrap;
    padding-bottom: 8px;
  }
}

@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  :root {
    --nav-h: 120px;
  }

  .nav-inner {
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    gap: 8px 16px;
    padding: 10px 0;
  }

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

  .nav-links {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-start;
    gap: 16px;
    overflow-x: auto;
  }

  .steps,
  .feature-card,
  .feature-card.is-flip {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-rows: none;
  }

  .step-lg {
    grid-row: auto;
    gap: 20px;
  }

  .step-mark {
    width: 88px;
    height: 88px;
  }

  .feature-card,
  .feature-card.is-flip {
    align-items: stretch;
    gap: 14px;
    padding: 14px;
  }

  .feature-card.is-flip .copy,
  .feature-card.is-flip .frame {
    order: 0;
  }

  .feature-card .frame,
  .feature-card.is-flip .frame {
    border: 1px solid var(--line);
    padding: 0;
  }
}

@media (max-width: 640px) {
  .wrap,
  .nav-inner,
  .hero-frame,
  .try-frame {
    width: min(var(--measure), calc(100% - 32px));
  }

  .hero {
    padding-top: 40px;
  }

  .hero h1 {
    font-size: min(32px, calc((100vw - 48px) / 11));
  }

  .actions {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary,
  .btn-ghost {
    width: min(100%, 320px);
    align-items: center;
  }

  .hero-frame {
    width: calc(100% - 48px);
    padding: 10% 0;
  }

  .try-frame {
    padding: 22px 16px 18px;
  }

  .feature-card {
    padding: 12px;
  }

  .section {
    padding: 64px 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px 16px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .compare th,
  .compare td {
    padding: 12px;
    font-size: 14px;
  }
}
