/* Marketing page. A media-query rem is the initial 16px, so 64rem is 1024px. */

:root {
  color-scheme: dark;
  --bg: #0a0908;
  --ink: #f4f0e6;
  --muted: #cfc6b8;
  --line: rgba(244, 240, 230, 0.14);
  --gold: #e4b15a;
  --gold-ink: #1c1408;
  --gold-hot: #f2c56d;
  --shadow: 0 28px 50px -24px rgba(0, 0, 0, 0.75);
}

html { font-size: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Geist, ui-sans-serif, system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  scrollbar-color: #3d362c var(--bg);
}

::selection {
  background: var(--gold);
  color: var(--gold-ink);
}

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

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  padding: 0.4rem 0.7rem;
  background: var(--ink);
  color: var(--bg);
  border-radius: 0.4rem;
  transform: translateY(-150%);
}

.skip:focus { transform: none; }

.bar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.bar-inner,
.wrap {
  width: min(72rem, calc(100% - 2.5rem));
  margin-inline: auto;
}

.bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 4rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand img {
  width: 1.75rem;
  height: 1.75rem;
  flex: none;
}

.brand span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  flex: none;
}

.nav-open { display: none; }

.nav-open,
.quiet a {
  color: var(--muted);
  text-decoration: none;
}

.nav-open:hover,
.quiet a:hover { color: var(--ink); }

.go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1.05rem;
  border-radius: 0.55rem;
  background: var(--gold);
  color: var(--gold-ink);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.go:hover { background: var(--gold-hot); }

.hero {
  padding: 4.5rem 0 0;
  text-align: center;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.75rem, 6vw, 5.25rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.98;
  text-wrap: balance;
}

.hero .deck {
  max-width: 36rem;
  margin: 1.25rem auto 0;
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1.45;
  text-wrap: balance;
}

.hero .go {
  margin-top: 2rem;
  min-height: 3rem;
  padding-inline: 1.35rem;
  font-size: 1.0625rem;
}

.film {
  margin: 3.25rem auto 0;
}

.film video,
.proof img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 0.9rem;
  background: #000;
  box-shadow: 0 0 0 1px var(--line), var(--shadow);
}

/* .film video sets display and width, so these need the extra class. */
.film .film-phone {
  display: block;
  width: min(100%, 26rem);
  margin-inline: auto;
}
.film .film-desk { display: none; }

.hero p { margin: 0; }

.caption,
.quiet {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.caption {
  max-width: 38rem;
  margin: 1rem auto 0;
}

.proof,
.close {
  width: min(48rem, calc(100% - 2.5rem));
  margin: 7rem auto 0;
}

.proof h2,
.close h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-wrap: balance;
}

.proof p,
.close > p {
  margin: 1rem 0 0;
  color: var(--muted);
  max-width: 40rem;
}

.proof img { margin-top: 1.75rem; }
.proof .sum-phone { display: block; }
.proof .sum-desk { display: none; }

.close {
  margin-bottom: 6rem;
  text-align: center;
}

.close > p { margin-inline: auto; }

.close .go { margin-top: 1.75rem; }

.quiet { margin-top: 1.35rem; }

.quiet + .quiet { margin-top: 0.35rem; }

.quiet a {
  text-decoration: underline;
  text-decoration-color: rgba(244, 240, 230, 0.35);
  text-underline-offset: 0.22em;
}

@media (min-width: 40rem) {
  .nav-open { display: inline; }
  .bar-inner,
  .wrap { width: min(72rem, calc(100% - 4rem)); }
  .hero { padding-top: 5.5rem; }
}

@media (min-width: 64rem) {
  .hero { padding-top: 1.25rem; }
  .hero h1 { font-size: 3.5rem; }
  .hero .deck { margin-top: 0.75rem; font-size: 1.125rem; }
  .hero .go { margin-top: 1rem; }
  .film { margin-top: 1.25rem; }
  .film .film-phone { display: none; }
  .film .film-desk { display: block; width: 100%; }
  .proof .sum-phone { display: none; }
  .proof .sum-desk { display: block; }
  .proof,
  .close { margin-top: 8.5rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .film-desk,
  .film-phone {
    animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
}

@keyframes rise {
  from { transform: translateY(1.25rem); }
}
