@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Nunito:wght@400;600;700&display=swap');

/* Install page styling — scoped to #install-root to resist festival CSS overrides */

:root {
  --font-scale: 1;
  --bg-color: rgba(16, 18, 30, 1);
  --text-color: rgba(255, 255, 255, 1);
  --text-secondary: rgba(255, 255, 255, 0.6);
  --card-bg: rgba(255, 255, 255, 0.08);
  --button-bg: rgba(255, 255, 255, 1);
  --button-text: #231F20;
  --badge-release: #4caf50;
  --badge-beta: #ff9800;
  --badge-betatest: #f44336;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: 'Nunito', 'Roboto', system-ui, -apple-system, sans-serif;
  font-size: calc(15px * var(--font-scale));
  line-height: 1.33;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 24px 16px;
}

#install-root {
  width: 100%;
  max-width: 480px;
  color: var(--text-color);
}

#install-root .install-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  color: var(--text-color);
}

#install-root .app-icon {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  margin-bottom: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

#install-root .install-card h1 {
  font-family: 'Montserrat', 'Roboto', system-ui, sans-serif;
  font-size: calc(28px * var(--font-scale));
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 8px;
  color: var(--text-color);
}

#install-root .variant-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: calc(12px * var(--font-scale));
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
}

#install-root .variant-badge--beta { background: linear-gradient(219deg, rgb(104, 239, 248) 0%, rgb(0, 127, 255) 99.824%); color: #231F20; }
#install-root .variant-badge--enterprise { background: linear-gradient(219deg, rgb(104, 239, 248) 0%, rgb(0, 127, 255) 99.824%); color: #231F20; }
#install-root .variant-badge--store { background: linear-gradient(219deg, rgb(104, 239, 248) 0%, rgb(0, 127, 255) 99.824%); color: #231F20; }
#install-root .variant-badge--beta-test { background: linear-gradient(219deg, rgb(104, 239, 248) 0%, rgb(0, 127, 255) 99.824%); color: #231F20; }

#install-root .build-info {
  margin-bottom: 24px;
}

#install-root .build-info-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: calc(14px * var(--font-scale));
  color: var(--text-color);
}

#install-root .build-info-label {
  color: var(--text-secondary);
}

#install-root .build-info-value {
  font-weight: 600;
  color: var(--text-color);
}

/* Download button — uses .button.button-primary to align with festival CSS */
#install-root .button.button-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 52px;
  border: none;
  border-radius: 100px;
  background: linear-gradient(to right, #FFA400, #FECA40);
  color: var(--button-text);
  font-family: 'Montserrat', 'Roboto', system-ui, sans-serif;
  font-size: calc(16px * var(--font-scale));
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  margin-bottom: 24px;
  transition: opacity 0.2s;
}

#install-root .button.button-primary:hover {
  opacity: 0.9;
}

#install-root .missing-code {
  width: 100%;
  padding: 14px 0;
  margin-bottom: 24px;
  font-family: 'Montserrat', 'Roboto', system-ui, sans-serif;
  font-size: calc(16px * var(--font-scale));
  font-weight: 700;
  text-transform: uppercase;
  color: var(--badge-betatest);
  text-align: center;
}

#install-root .install-instructions {
  margin-top: 50px;
  text-align: left;
  font-size: calc(13px * var(--font-scale));
  color: var(--text-secondary);
  line-height: 1.5;
}

#install-root .install-instructions h2 {
  font-family: 'Montserrat', 'Roboto', system-ui, sans-serif;
  font-size: calc(16px * var(--font-scale));
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-color);
  margin-bottom: 8px;
}

#install-root .install-instructions ol {
  padding-left: 20px;
}

#install-root .install-instructions li {
  margin-bottom: 6px;
  color: var(--text-secondary);
}

#install-root .qr-section {
  display: none;
  text-align: center;
  margin-top: 50px;
  margin-bottom: 24px;
  padding-top: 8px;
}

#install-root .qr-section h2 {
  font-family: 'Montserrat', 'Roboto', system-ui, sans-serif;
  font-size: calc(16px * var(--font-scale));
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-color);
  margin-bottom: 12px;
}

#install-root .qr-section canvas {
  border-radius: 8px;
}

#install-root .qr-section p {
  margin-top: 8px;
  font-size: calc(13px * var(--font-scale));
  color: var(--text-secondary);
}

@media (min-width: 768px) {
  #install-root .qr-section {
    display: block;
  }
}

#install-root .install-footer {
  margin-top: 50px;
  font-size: calc(12px * var(--font-scale));
  color: var(--text-secondary);
  text-align: center;
}

#install-root .install-footer img {
  display: block;
  width: 160px;
  height: auto;
  margin: 8px auto 0;
  opacity: 0.6;
}
