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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f8f6ef;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  color: #333;
}

/* ── Header ── */
header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.logo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #08436e;
  color: #fff;
  border-radius: 999px;
  padding: 0.45rem 1.2rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.logo-badge svg { flex-shrink: 0; }

h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: #08436e;
  line-height: 1.2;
}

h1 span { color: #67bfed; }

.subtitle {
  margin-top: 0.6rem;
  color: #666;
  font-size: 1rem;
  font-weight: 300;
}

/* ── Card ── */
.card {
  background: #fff;
  border-radius: 2rem;
  box-shadow: 0 8px 40px rgba(8, 67, 110, 0.10);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ── Steps ── */
.steps { display: flex; flex-direction: column; gap: 0.75rem; }

.step {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e8f5fd;
  color: #08436e;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-text {
  font-size: 0.9rem;
  color: #444;
  line-height: 1.5;
  padding-top: 4px;
}

.step-text strong { color: #08436e; }

/* ── Divider ── */
.divider {
  border: none;
  border-top: 1px solid #ece9e0;
}

/* ── Flash section ── */
.flash-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.flash-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #999;
}

/* Style the web component button */
esp-web-install-button::part(button) {
  background: linear-gradient(135deg, #67bfed 0%, #08436e 100%);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.85rem 2.2rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(103, 191, 237, 0.4);
  transition: transform 0.15s, box-shadow 0.15s;
}

esp-web-install-button::part(button):hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(103, 191, 237, 0.5);
}

/* ── Compatibility note ── */
.compat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: #999;
  justify-content: center;
}

.compat svg { flex-shrink: 0; }

/* ── Footer ── */
footer {
  margin-top: 2.5rem;
  font-size: 0.78rem;
  color: #aaa;
  text-align: center;
}

footer a { color: #67bfed; text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ── Browser warning ── */
[hidden] { display: none !important; }

.browser-warning {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: #fff3cd;
  border: 2px solid #f0a500;
  border-radius: 1.2rem;
  padding: 1.2rem 1.5rem;
  width: 100%;
  max-width: 480px;
  margin-bottom: 1.5rem;
  color: #7a4f00;
  font-size: 0.9rem;
  line-height: 1.5;
}

.browser-warning svg {
  flex-shrink: 0;
  color: #f0a500;
  margin-top: 2px;
}

.browser-warning strong { color: #5a3800; }
