:root {
  --site-max: 1100px;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  min-height: 100vh;
  overflow-x: clip;
  max-width: 100vw;
}

.site-container {
  width: 100%;
  max-width: var(--site-max);
  margin-inline: auto;
  padding-inline: 1rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-cta {
  margin-top: calc(1.75rem + 6lh);
}

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

.deck {
  background: var(--color-base-200);
  border: 1px solid var(--color-base-300);
  border-radius: var(--radius-box, 1rem);
  padding: 1rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  line-height: 1.55;
  overflow: hidden;
}

.deck-line {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
}

.deck-prompt {
  color: var(--color-primary);
  font-weight: 700;
}

.deck-ok {
  color: var(--color-success);
  font-weight: 700;
}

.deck-cursor::after {
  content: "▋";
  animation: deck-blink 1.1s steps(2, start) infinite;
}

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

.tablet {
  aspect-ratio: 3 / 4;
  width: 100%;
  max-width: 260px;
  margin-inline: auto;
  border-radius: 0.75rem;
  border: 6px solid var(--color-neutral);
  background: var(--color-base-100);
  padding: 1rem 0.9rem;
  box-shadow: 0 18px 40px -20px rgb(0 0 0 / 0.5);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.tablet .skel {
  height: 0.5rem;
  border-radius: 999px;
  background: color-mix(in oklab, var(--color-base-content) 22%, transparent);
  opacity: 0.28;
  transition: opacity 0.45s ease, background 0.45s ease;
}

.hero-anim[data-step="3"] .tablet .skel,
.hero-anim[data-step="4"] .tablet .skel {
  opacity: 1;
}

.hero-anim[data-step="4"] .tablet .skel {
  background: color-mix(in oklab, var(--color-primary) 45%, transparent);
}

.tablet .skel.title {
  height: 0.75rem;
  width: 70%;
  background: color-mix(in oklab, var(--color-base-content) 40%, transparent);
}

.hero-anim[data-step="2"] .tablet .skel.title,
.hero-anim[data-step="3"] .tablet .skel.title,
.hero-anim[data-step="4"] .tablet .skel.title {
  opacity: 1;
  background: color-mix(in oklab, var(--color-base-content) 45%, transparent);
}

.hero-anim .tablet-annot {
  opacity: 0;
  transition: opacity 0.45s ease;
}

.hero-anim[data-step="4"] .tablet-annot {
  opacity: 1;
}

.tablet .skel.short { width: 45%; }
.tablet .skel.mid { width: 85%; }

.tablet-annot {
  margin-top: auto;
  align-self: flex-end;
  color: var(--color-error);
  font-size: 1.4rem;
}

.agent-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.5rem;
  justify-content: center;
}

.agent-strip .agent {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  color: color-mix(in oklab, var(--color-base-content) 85%, transparent);
}

.agent-strip svg {
  height: 16px;
  width: auto;
  fill: currentColor;
}

.agent-slot {
  position: relative;
  display: inline-grid;
  justify-items: center;
}

.agent-slot .agent {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

.agent-slot .agent.is-shown {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .agent-slot .agent {
    transition: none;
    transform: none;
  }
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--color-primary);
  color: var(--color-primary-content);
  font-weight: 700;
}

.feature-row {
  display: grid;
  grid-template-columns: 1.2rem 1fr;
  gap: 0.75rem;
  align-items: start;
}

.feature-row .mark {
  color: var(--color-success);
  font-weight: 700;
}

.feature-row .arrow {
  color: color-mix(in oklab, var(--color-base-content) 50%, transparent);
}

.otp-group {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.otp-cell {
  width: 2.75rem;
  height: 3.25rem;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: lowercase;
}

.otp-sep {
  width: 0.75rem;
  height: 2px;
  background: color-mix(in oklab, var(--color-base-content) 35%, transparent);
}

@media (max-width: 420px) {
  .otp-cell {
    width: 2.05rem;
    height: 2.75rem;
    padding-inline: 0;
    font-size: 1.15rem;
  }
  .otp-group .flex.gap-1\\.5 {
    gap: 0.3rem;
  }
  .otp-group {
    gap: 0.35rem;
  }
  .otp-sep {
    width: 0.5rem;
  }
}

@media (max-width: 340px) {
  .otp-cell {
    width: 1.7rem;
    height: 2.4rem;
    font-size: 1rem;
  }
  .otp-group .flex.gap-1\\.5 {
    gap: 0.2rem;
  }
  .otp-group {
    gap: 0.25rem;
  }
  .otp-sep {
    width: 0.35rem;
  }
}

.usage-bar {
  height: 0.75rem;
  border-radius: 999px;
  background: var(--color-base-300);
  overflow: hidden;
}

.usage-bar > span {
  display: block;
  height: 100%;
  background: var(--color-primary);
}

.hero-anim {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
}

.mock-window {
  flex: 1 1 320px;
  max-width: 420px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  font-weight: 700;
  color: color-mix(in oklab, var(--color-base-content) 60%, transparent);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--color-primary);
  color: var(--color-primary-content);
  border-radius: 0 0 0.5rem 0;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .deck-cursor::after {
    animation: none;
  }
  .tablet .skel,
  .hero-anim .tablet-annot {
    transition: none;
  }
}

.section {
  padding-block: 4rem;
}

.section-alt {
  background: var(--color-base-200);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
}

.stack-tight > * + * {
  margin-top: 0.75rem;
}

.pricing-highlight {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
