:root {
  --color-bg: #fff;
  --color-text: #161519;
  --color-text-soft: rgba(22, 21, 25, 0.7);
  --color-text-muted: rgba(22, 21, 25, 0.5);
  --color-border: rgba(22, 21, 25, 0.12);
  --color-accent: #161519;

  --text-xs: 0.875rem;
  --text-sm: 1rem;
  --text-md: 1.125rem;
  --text-lg: 2.75rem;

  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 3rem;
  --space-xl: 6rem;

  --radius-md: 14px;
  --container: 50rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font: 700 var(--text-sm)/1.4 "Neue Haas Grotesk Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 160ms ease, color 160ms ease, background-color 160ms ease;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  color: var(--color-text-soft);
  text-wrap: pretty;
}

.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;
}

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

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  background: var(--color-text);
  color: var(--color-bg);
  transform: translateY(-160%);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.page {
  padding: 2rem 0 0;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin: 0 auto;
}

.site-header {
  padding: 1.25rem 0 0;
}

.site-header__inner,
.site-nav {
  display: flex;
  align-items: center;
}

.site-header__inner {
  justify-content: space-between;
  gap: var(--space-md);
}

.site-header__brand,
.site-nav a,
.section-label {
  font-size: var(--text-xs);
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
}

.site-header__icon {
  width: 48px;
  height: auto;
  image-rendering: -webkit-optimize-contrast;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  height: 1.35rem;
  padding: 0 0.5rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text-muted);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-nav {
  gap: 1rem;
}

.site-nav a {
  color: var(--color-text-muted);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.button:hover,
.button:focus-visible,
.changelog-row__link:hover,
.changelog-row__link:focus-visible {
  opacity: 0.75;
}

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

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

.grid,
.feature-row,
.changelog-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: var(--space-md);
}

.docs-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--space-md);
  row-gap: var(--space-md);
}

.intro__copy {
  grid-column: 1 / -1;
  display: grid;
  gap: 0.75rem;
}

.intro__copy .section-label {
  margin-bottom: -0.25rem;
}

.intro h1 {
  font-size: clamp(3.5rem, 7vw, 4rem);
  line-height: 1.04;
}

.intro p {
  font-size: var(--text-md);
}

.intro .intro__eyebrow {
  color: var(--color-text-muted);
  font-size: 0.75rem;
}

.intro__eyebrow--download {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
}

.intro__eyebrow--download a {
  color: var(--color-text);
}

.intro__eyebrow--download a:hover,
.intro__eyebrow--download a:focus-visible {
  opacity: 0.75;
}

.docs-intro {
  display: grid;
  gap: 0.75rem;
}

.docs-intro h1 {
  font-size: clamp(2.5rem, 5vw, var(--text-lg));
  line-height: 1.02;
}

.docs-intro p {
  font-size: var(--text-md);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: fit-content;
  min-height: 3rem;
  margin-top: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--color-accent);
  color: #fff;
  border-radius: 8px;
}

.button__icon {
  width: 1.05rem;
  height: 1.05rem;
  flex: none;
}

.hero-media__frame {
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #d7dce6;
}

.hero-media__frame img {
  width: 100%;
  height: auto;
}

.feature-row,
.changelog-row {
  align-items: start;
  padding: 1rem 0;
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--space-md);
  row-gap: 2.25rem;
}

.icon-card {
  display: grid;
  gap: 0.625rem;
  align-content: start;
}

.icon-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
}

.icon-card__icon svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-card h2 {
  font-size: var(--text-sm);
  line-height: 1.25;
}

.icon-card p {
  font-size: 0.95rem;
}

.download-panel {
  display: grid;
  gap: 0.75rem;
}

.download-panel h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  line-height: 1.04;
}

.download-panel p {
  font-size: var(--text-md);
}

.waitlist-form {
  display: block;
  margin-top: 0.5rem;
}

.waitlist-form--hero {
  max-width: 33rem;
}

.waitlist-form__field {
  position: relative;
  width: 100%;
}

.waitlist-form input {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 10.5rem 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-bg);
  color: var(--color-text);
  font: inherit;
}

.waitlist-form input::placeholder {
  color: var(--color-text-muted);
}

.waitlist-form__button {
  position: absolute;
  top: 4px;
  bottom: 4px;
  right: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0 1rem;
  border: 0;
  border-radius: 6px;
  background: var(--color-accent);
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.waitlist-form__button:hover,
.waitlist-form__button:focus-visible {
  opacity: 0.75;
}

.waitlist-form__button--apple .button__icon {
  width: 32px;
  height: 32px;
  flex: none;
}

.feature-row h2,
.section-label,
.changelog-row__date,
.changelog-row__link {
  font-size: var(--text-xs);
}

.feature-row h2 {
  grid-column: 1;
  color: var(--color-text);
  font-size: calc(var(--text-sm) + 0.05rem);
}

.feature-row p {
  grid-column: 2 / 5;
  font-size: calc(var(--text-sm) + 0.05rem);
}

.section-label {
  margin-bottom: var(--space-sm);
  color: var(--color-text-muted);
}

.section-label + .icon-grid {
  margin-top: 0;
}

.section-label + .feature-row {
  padding-top: 0;
}

.section-label + .docs-table,
.section-label + .docs-list,
.section-label + .docs-columns {
  margin-top: 0;
}

.docs-list {
  display: grid;
  gap: var(--space-md);
}

.docs-item {
  display: grid;
  gap: 0.5rem;
}

.docs-item h2 {
  font-size: var(--text-sm);
  line-height: 1.25;
}

.docs-table {
  border-top: 1px solid var(--color-border);
}

.docs-table__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-md);
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
}

.docs-table--steps .docs-table__row {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
}

.docs-table__row [role="cell"]:last-child {
  color: var(--color-text-soft);
}

.docs-table--steps .docs-table__row [role="cell"]:first-child {
  color: var(--color-text-muted);
}

.docs-table--steps .docs-table__row [role="cell"]:last-child {
  display: grid;
  gap: 0.5rem;
}

.docs-table__row--head {
  color: var(--color-text-muted);
}

.changelog-row {
  border-top: 1px solid var(--color-border);
}

.changelog-row__date {
  grid-column: 1;
  color: var(--color-text-muted);
}

.changelog-row__title {
  grid-column: 2 / 4;
  font-size: var(--text-sm);
  line-height: 1.3;
}

.changelog-row__link {
  grid-column: 4;
  justify-self: end;
  color: var(--color-text-muted);
}

.site-footer {
  padding: var(--space-xl) 0 var(--space-lg);
}

.site-footer__badge {
  width: 100%;
  height: auto;
}

@media (max-width: 767px) {
  .page {
    padding-top: 1.5rem;
  }

  .container {
    width: min(100% - 1.5rem, var(--container));
  }

  .grid,
  .icon-grid,
  .feature-row,
  .changelog-row,
  .docs-table__row {
    grid-template-columns: 1fr;
    row-gap: 0.75rem;
  }

  .docs-columns {
    grid-template-columns: 1fr;
  }

  .intro__copy,
  .feature-row h2,
  .feature-row p,
  .changelog-row__date,
  .changelog-row__title,
  .changelog-row__link {
    grid-column: auto;
  }

  .intro h1 {
    max-width: none;
  }

  .feature-row,
  .changelog-row {
    padding: 1rem 0;
  }

  .changelog-row__link {
    justify-self: start;
  }

  .waitlist-form input {
    padding-right: 1rem;
  }

  .waitlist-form__button {
    position: static;
    width: 100%;
    margin-top: 0.75rem;
    min-height: 3rem;
    padding: 0.75rem 1rem;
  }
}

@media (min-width: 768px) {
  .hero-media .container {
    width: min(100% - 8rem, 50rem);
  }
}

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