:root {
  --bg: #f7fbff;
  --bg-2: #ecf4ff;
  --surface: #ffffff;
  --text: #0b1b3d;
  --muted: #62718a;
  --primary: #2d6ae3;
  --accent: #79c2ff;
  --border: #d7e3f5;
  --success: #16a34a;
  --danger: #ef4444;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 20px 40px rgba(45,106,227,0.12);
}

* { box-sizing: border-box; }
img { max-width: 100%; height: auto; display: block; }

html, body {
  height: 100%;
}
body {
  margin: 0;
  background: radial-gradient(1200px 600px at 10% 0%, rgba(121,194,255,0.28) 0%, rgba(121,194,255,0.08) 40%, transparent 70%), var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
.page { display: contents; }

.top {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
}
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 8px 24px rgba(45,106,227,0.25);
  color: #fff;
}
.brand-logo {
  width: clamp(28px, 4.4vw, 40px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(45,106,227,0.25));
}

.content {
  flex: 1 0 auto;
  display: grid;
  place-items: center;
  padding: 24px;
}
.card {
  width: min(720px, 92vw);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(20px, 6vw, 36px);
  text-align: center;
}
.card h1 {
  margin: 0 0 12px;
  font-size: clamp(24px, 4.2vw, 40px);
}
.hero-logo {
  width: clamp(120px, 26vw, 220px);
  height: auto;
  object-fit: contain;
  margin: 4px 0 12px;
  filter: drop-shadow(0 10px 24px rgba(45,106,227,0.18));
}
.card .sub {
  margin: 0 0 18px;
  font-size: clamp(14px, 1.6vw, 16px);
  color: var(--muted);
}

.notify {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin: 10px 0 8px;
}
.notify input {
  height: 46px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #f9fcff;
  color: var(--text);
  padding: 0 12px;
  outline: none;
}
.notify input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45,106,227,0.15);
}
.btn {
  height: 46px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  border: 0;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 8px 24px rgba(45,106,227,0.25);
  cursor: pointer;
}
.btn:active { transform: translateY(1px); }

.msg {
  min-height: 22px;
  font-size: 14px;
  color: var(--muted);
}
.msg.ok { color: var(--success); }
.msg.err { color: var(--danger); }

.status {
  display: inline-flex;
  gap: 10px;
  margin-top: 10px;
}
.pill {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: #f7fbff;
  color: var(--text);
}

.foot {
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  background: linear-gradient(0deg, var(--bg-2), var(--bg));
}
.links {
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
}
.links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
}
.links a:hover { color: var(--text); }
.copy { color: var(--muted); }

@media (max-width: 560px) {
  .top { height: 60px; }
  .notify { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .content { padding: 16px; }
  .foot {
    grid-template-columns: 1fr;
    gap: 8px;
    text-align: center;
  }
  .links { justify-content: center; }
  .copy { justify-self: center; }
}
