/* =========================================================
   RealRates – Homepage Styles
   Supports:
   1. Full public homepage tiles
   2. Temporary pre-launch coming soon homepage
   ========================================================= */

/* =========================================================
   FULL HOMEPAGE / TILE LAYOUT
   ========================================================= */

/* ---------------------------
   Hero
---------------------------- */

.home-hero {
  max-width: 1265px;
  margin: 24px auto 10px;
  padding: 0 12px;
  text-align: center;
}

.home-hero h1 {
  margin: 0 0 8px;
  line-height: 1.1;
}

.home-hero p {
  margin: 0 auto;
  max-width: 820px;
}

/* ---------------------------
   Explainer Tiles
---------------------------- */

.tile-section {
  max-width: 1265px;
  min-height: 32vh;
  margin: 18px auto 16px;
  padding: 0 12px;
  display: flex;
  align-items: stretch;
}

.tile-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-content: start;
}

.tile {
  min-height: 150px;
  padding: 16px 16px 14px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.10);
  border-radius: 12px;
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.03);

  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.tile h3 {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.2;
}

.tile ul {
  margin: 0;
  padding-left: 18px;
}

.tile li {
  margin: 8px 0;
  line-height: 1.35;
}

.tile .quote {
  quotes: "“" "”";
}

/* ---------------------------
   Product Tiles
---------------------------- */

.product-section {
  max-width: 1265px;
  margin: 12px auto 48px;
  padding: 0 12px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.product-tile {
  padding: 18px 16px;
  background: #fafafa;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.product-tile h3 {
  margin: 0 0 12px;
  font-size: 17px;
}

.product-tile ul {
  margin: 0;
  padding-left: 18px;
}

.product-tile li {
  margin: 8px 0;
}

.product-tile a {
  color: var(--text-primary);
  text-decoration: underline;
  font-weight: 500;
}

.product-tile a:hover {
  text-decoration-thickness: 2px;
}

.product-tile.muted {
  opacity: 0.6;
  pointer-events: none;
}

/* =========================================================
   TEMPORARY COMING SOON HOMEPAGE
   ========================================================= */

.page-coming-soon {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(90, 45, 12, 0.08), transparent 34%),
    radial-gradient(circle at bottom right, rgba(90, 45, 12, 0.06), transparent 32%),
    var(--bg-page);
}

.coming-soon-page {
  min-height: 100vh;
  padding: 32px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.coming-soon-card {
  width: min(100%, 620px);
  padding: 44px 34px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(90, 45, 12, 0.12);
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(90, 45, 12, 0.10);
  text-align: center;
}

.coming-soon-logo {
  display: block;
  width: 132px;
  height: auto;
  margin: 0 auto 22px;
}

.coming-soon-text {
  max-width: 500px;
  margin: 0 auto;
}

.coming-soon-brand {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}

.coming-soon-card h1 {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: clamp(42px, 8vw, 72px);
  line-height: 0.95;
  color: var(--text-primary);
}

.coming-soon-subtitle {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-primary);
  opacity: 0.82;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 980px) {
  .tile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tile-section {
    min-height: auto;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .tile-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .coming-soon-page {
    padding: 24px 16px;
  }

  .coming-soon-card {
    padding: 34px 22px;
    border-radius: 22px;
  }

  .coming-soon-logo {
    width: 110px;
    margin-bottom: 18px;
  }

  .coming-soon-brand {
    font-size: 18px;
  }

  .coming-soon-subtitle {
    font-size: 15px;
  }
}
