:root {
  --primary: #0a5db8;
  --bg: #eef3fb;
  --panel: #ffffff;
  --text: #25324d;
  --muted: #6b7a90;
  --radius: 18px;
  --shadow: 0 24px 50px rgba(0,0,0,.08);
}

* {
  box-sizing: border-box;
}

body.page {
  margin: 0;
  font-family: "Source Sans 3", sans-serif;
  background: radial-gradient(circle at top, #f5f8fc, #e6eef8);
  color: var(--text);
  /* Keep the layout within the viewport height on desktop. */
  min-height: 100vh;
  overflow: hidden;
}

.shell {
  max-width: 1200px;
  margin: auto;
  /* Reduce vertical padding to avoid scroll bars. */
  padding: 22px 18px 24px;
}

.hero-card {
  background: var(--panel);
  border-radius: 28px;
  /* Compact card spacing without changing the visual hierarchy. */
  padding: 20px 22px 22px;
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
}

.brand-title {
  margin: 0;
  font-family: "Fraunces", serif;
  color: var(--primary);
}

.brand-subtitle {
  margin: 0;
  color: var(--muted);
}

.hero-copy {
  /* Tighter spacing to keep all content visible. */
  margin: 12px 0;
}

.hero-title {
  margin: 0;
  font-family: "Fraunces", serif;
}

.hero-lead {
  color: var(--muted);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  /* Smaller gaps so the grid fits on one screen. */
  gap: 14px;
}

.panel {
  background: #f6f8fb;
  border-radius: var(--radius);
  /* Slightly tighter panels to keep content above the fold. */
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.panel-title {
  margin: 0;
}

.panel-footnote {
  font-size: 13px;
  color: var(--muted);
}

.qr-box {
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  display: flex;
  justify-content: center;
}

.qr-code {
  /* Reserve space so the QR code is visible once rendered. */
  width: 100%;
  max-width: 190px;
  min-height: 150px;
}

.qr-code canvas,
.qr-code img {
  width: 100%;
  height: auto;
  display: block;
}

.mascot-panel {
  align-items: center;
  text-align: center;
}

.mascot-frame {
  width: 100%;
  /* Smaller frame height to avoid vertical scrolling. */
  height: 440px;
  background: linear-gradient(180deg, #eef3fb, #f9fbff);
  border-radius: 18px;
  border: 1px solid #dbe4f3;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;
}

.mascot-viewer {
  width: 100%;
  height: 100%;
  display: block;
}


.cta-button {
  margin-top: 10px;
  padding: 16px;
  text-align: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #0a5db8, #1372d3);
  color: white;
  text-decoration: none;
  font-weight: 600;
}

.benefits-list {
  margin: 0;
  padding-left: 18px;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .mascot-frame {
    height: 350px;
  }
}

@media (max-height: 820px) {
  /* Extra compact mode for shorter displays. */
  .shell {
    padding: 20px 18px 24px;
  }

  .hero-card {
    padding: 20px 22px 22px;
  }

  .mascot-frame {
    height: 420px;
  }
}

model-viewer::part(progress-bar),
model-viewer::part(default-progress-bar) {
  display: none;
}
