:root {
  --magenta: #DA1884;
  --magenta-dark: #b01268;
  --ink: #1a1a1a;
  --paper: #ffffff;
  --muted: #6b6b6b;
}

* { box-sizing: border-box; }

/* The HTML `hidden` attribute must win over element `display` rules below
   (e.g. .btn sets display:inline-flex, which would otherwise override it). */
[hidden] { display: none !important; }

html, body {
  margin: 0;
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

.screen {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  padding: max(2rem, env(safe-area-inset-top)) 1.5rem max(2rem, env(safe-area-inset-bottom));
  gap: 2rem;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: auto;
}

.logo, .avatar {
  width: 108px;
  height: 108px;
  border-radius: 26px;
  box-shadow: 0 12px 30px rgba(218, 24, 132, 0.28);
}

.logo {
  background: var(--magenta);
  color: #fff;
  font-weight: 700;
  font-size: 2.75rem;
  letter-spacing: -0.03em;
  display: grid;
  place-items: center;
}

.avatar {
  object-fit: cover;
  display: block;
}

.wordmark {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0.25rem 0 0;
}

.tagline {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 22rem;
  margin: 0;
  line-height: 1.5;
}

.tagline[data-placeholder] { opacity: 0.5; font-style: italic; }

.actions {
  width: 100%;
  max-width: 24rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 1.5rem;
  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.06s ease, background 0.15s ease;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--magenta);
  color: #fff;
}
.btn-primary:hover { background: var(--magenta-dark); }

.btn-ghost {
  background: transparent;
  color: var(--magenta);
  border: 1.5px solid var(--magenta);
}

.install-hint {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
  padding: 0 0.5rem;
}

.install-hint strong { color: var(--ink); font-weight: 600; }

.ios-share {
  display: inline-block;
  width: 1.05em;
  height: 1.05em;
  vertical-align: -0.2em;
  background: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23DA1884' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12M8 7l4-4 4 4M5 12v7a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-7'/%3E%3C/svg%3E");
}

.offline-note {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

@media (prefers-color-scheme: dark) {
  :root { --ink: #f2f2f2; --paper: #0f0f0f; --muted: #9a9a9a; }
}
