/* Coming-soon page on the app's background from Theme::dark(). */

* {
  margin: 0;
  box-sizing: border-box;
}

/* Content takes the middle row; the credit sits at the bottom of the screen. */
body {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 24px 16px;
  background: var(--background);
  color: #f4f4f6;
  font-family: "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 0;
  text-align: center;
}

h1 {
  line-height: 0;
}

/* logo.svg is drawn on a 52px grid so its flat edges land on whole pixels; other heights blur them. */
h1 img {
  height: 52px;
  width: auto;
}

.tagline {
  max-width: 30ch;
  margin-top: 24px;
  font-size: 20px;
  line-height: 1.4;
  color: #c8c8d0;
  text-wrap: balance;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

/* Both buttons share one line height so they stay the same height side by side. */
.actions .button {
  line-height: 18px;
}

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.credit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 14px;
  color: #8a8a96;
}

.legal-links {
  display: flex;
  gap: 16px;
  font-size: 13px;
  line-height: 18px;
}

.legal-links a {
  color: #8a8a96;
  text-decoration: none;
  transition: color 0.1s linear;
}

.legal-links a:hover {
  color: #f4f4f6;
}

.legal-links a:focus-visible {
  outline: none;
  border-radius: 4px;
  box-shadow: 0 0 0 var(--focus-ring-width) var(--focus-ring);
}

.credit a {
  display: flex;
}

.credit a:focus-visible {
  outline: none;
  border-radius: 4px;
  box-shadow: 0 0 0 var(--focus-ring-width) var(--focus-ring);
}

/* Wordmark cap height roughly matches the caption's, so the two read as one line. */
.credit img {
  height: 22px;
  width: auto;
}

/* Teaser dialog: the video fills the width up to 960px, with Close above its right edge. */
.demo {
  width: min(960px, 100vw - 32px);
  max-width: none;
  /* The reset at the top clears the margin browsers center dialogs with. */
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.demo::backdrop {
  background: rgba(10, 10, 12, 0.85);
}

/* Opening fades the backdrop in and settles the video up from slightly smaller.
   Closing stays instant; browsers without @starting-style just open without it. */
.demo[open] {
  transition:
    opacity 0.2s ease-out,
    transform 0.2s ease-out;
}

.demo[open]::backdrop {
  transition: opacity 0.2s ease-out;
}

@starting-style {
  .demo[open] {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }

  .demo[open]::backdrop {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  @starting-style {
    .demo[open] {
      transform: none;
    }
  }
}

.demo__panel {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  outline: none;
}

.demo__close {
  line-height: 18px;
}

.demo__video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  background: #000;
}

.demo__video:focus-visible {
  outline: none;
  box-shadow: 0 0 0 var(--focus-ring-width) var(--focus-ring);
}
