.home-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 10px 20px 20px;
  gap: 6px;
}

#capturable-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 20px 20px;
  background: transparent;
}

/* Solid background needed for screenshot capture */
.capturing #capturable-content {
  background: var(--page-background);
}

#capturable-wheel {
  width: 100%;
  max-width: 750px;
}

.right-column {
  display: contents;
}

#auth-root {
  order: -1;
  width: 75%;
  max-width: 325px;
}

#spin-wheel-root {
  order: 1;
  width: 100%;
  max-width: 370px;
  margin-top: 8px;
}

/* ==========================================================================
   SEO About Section
   ========================================================================== */

.seo-about {
  max-width: 780px;
  margin: 28px auto 0;
  padding: 0 20px;
  text-align: center;
  order: 2;
}

.seo-about-heading {
  font: 600 18px/1.4 var(--font-display);
  color: var(--color-dark);
  margin: 0 0 16px;
}

.seo-about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.seo-about-card {
  text-align: left;
  padding: 16px 20px;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius);
  background: var(--gradient-surface-alt);
}

.seo-about-card h3 {
  font: 600 14px var(--font-display);
  color: var(--color-dark);
  margin: 0 0 6px;
}

.seo-about-card p {
  font: 13px/1.6 var(--font-display);
  color: var(--color-muted);
  margin: 0;
}

.seo-about-usecases {
  font: 13px/1.6 var(--font-display);
  color: var(--color-muted);
  margin: 16px 0 0;
}

@media (min-width: 540px) {
  .seo-about-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================================================
   Desktop Grid Layout
   ========================================================================== */

@media (min-width: 900px) {
  .home-container {
    display: grid;
    grid-template-columns: auto auto;
    grid-template-rows: auto auto auto auto auto;
    column-gap: 50px;
    row-gap: 0;
    justify-content: center;
    align-content: center;
  }

  #capturable-content {
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
    align-self: start;
  }

  .right-column {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 80px;
    width: 370px;
  }

  #auth-root {
    order: 0;
    width: 100%;
    flex-shrink: 0;
  }

  #spin-wheel-root {
    order: 0;
    width: 100%;
    flex-shrink: 0;
    margin-top: 0;
    padding-bottom: 20px;
  }

  .seo-about {
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: 780px;
    justify-self: center;
  }

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

  .disclosures:first-of-type {
    grid-row: 3;
  }

  .disclosures:last-of-type {
    grid-row: 4;
  }

  .copyright {
    grid-column: 1 / -1;
    grid-row: 5;
  }
}

/* NYP-specific: grid ordering for disclosures and copyright */
.home-container .disclosures {
  order: 3;
}

.home-container .copyright {
  order: 4;
}
