:root {
  color-scheme: light;
  --paper: #e4e4e1;
  --ink: #161616;
  --muted: #6a6a67;
  --line: rgba(22, 22, 22, 0.18);
  --accent: #ffb000;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(17, 17, 15, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 17, 15, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 32px 32px;
  font-family: var(--sans);
}

a {
  color: inherit;
  text-decoration: none;
}

.sheet {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: clamp(18px, 1.7vw, 26px);
  height: 100svh;
  overflow: hidden;
  padding: 30px 28px 26px;
}

.masthead {
  display: grid;
  grid-template-columns: minmax(190px, 300px) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.brand {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  width: fit-content;
}

.brand img {
  display: block;
  width: clamp(48px, 4.2vw, 62px);
  height: auto;
}

.brand span {
  font-size: clamp(2rem, 3.2vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.075em;
  line-height: 1;
}

.feature-rail {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 0;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: clamp(0.68rem, 0.8vw, 0.82rem);
  list-style: none;
  text-transform: uppercase;
}

.feature-rail li {
  padding: 0 14px;
  border-left: 1px solid var(--line);
  white-space: nowrap;
}

.feature-rail li:last-child {
  padding-right: 0;
}

.product {
  position: relative;
  width: min(100%, calc((100svh - 270px) / 0.5625));
  aspect-ratio: 16 / 9;
  min-height: 0;
  margin: 0;
  justify-self: center;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(17, 17, 15, 0.16);
}

.product img,
.product video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.closing {
  display: grid;
  grid-template-columns: minmax(340px, 1fr) auto;
  gap: clamp(24px, 4vw, 70px);
  align-items: end;
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 5vw, 6.25rem);
  font-weight: 600;
  letter-spacing: -0.07em;
  line-height: 0.9;
  white-space: nowrap;
}

.actions {
  display: flex;
  align-items: center;
  gap: 19px;
}

.source-link {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.07em;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-transform: uppercase;
  transition: color 140ms ease;
}

.source-link:hover {
  color: var(--ink);
}

.download {
  display: grid;
  grid-template-columns: auto auto;
  gap: 18px;
  align-items: center;
  min-height: 52px;
  padding: 0 21px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  transition:
    color 140ms ease,
    background 140ms ease;
}

.download strong {
  color: var(--accent);
  font-size: 1.25rem;
}

.download:hover {
  background: var(--accent);
  color: var(--ink);
}

.download:hover strong {
  color: var(--ink);
}

.download:focus-visible,
.source-link:focus-visible,
.brand:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

@media (max-width: 900px) {
  .sheet {
    display: block;
    height: auto;
    min-height: 100svh;
    overflow: visible;
    padding: 20px;
  }

  .masthead {
    grid-template-columns: 1fr;
    margin-bottom: 22px;
  }

  .brand {
    max-width: none;
  }

  .feature-rail {
    justify-content: flex-start;
  }

  .feature-rail li:first-child {
    padding-left: 0;
    border-left: 0;
  }

  .product {
    aspect-ratio: auto;
    width: 100%;
  }

  .product img,
  .product video {
    height: auto;
    max-height: none;
  }

  .closing {
    grid-template-columns: 1fr auto;
    margin-top: 28px;
  }

  .statement {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .closing {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  h1 {
    font-size: clamp(3rem, 17vw, 5.2rem);
    white-space: normal;
  }

  .feature-rail {
    gap: 9px 14px;
  }

  .feature-rail li {
    padding: 0;
    border: 0;
  }

  .download {
    width: 100%;
  }

  .actions {
    flex-direction: column-reverse;
    width: 100%;
  }
}

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

/* Empty demo slot until the demo tool stages a real video */
.product.is-pending video {
  visibility: hidden;
}

.product .pending {
  display: none;
}

.product.is-pending .pending {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: repeating-linear-gradient(135deg, transparent 0 16px, var(--line) 16px 17px);
  box-shadow: inset 0 0 0 1px var(--line);
}

.product.is-pending .pending::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--accent);
  transform: rotate(45deg);
}

.note {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* The headline sizes to its column so a longer line never collides with the
   actions or overflows a phone screen. */
.statement {
  container-type: inline-size;
  min-width: 0;
}

h1 {
  font-size: min(clamp(3rem, 5vw, 6.25rem), 6cqi);
}

@media (max-width: 600px) {
  h1 {
    font-size: min(clamp(3rem, 17vw, 5.2rem), 15cqi);
  }
}
