:root {
  --primary: #1E3A8A;
  --primary-light: #0284C7;
  --accent: #E11D48;
  --accent-light: #fecdd3;
  --background: #f0f5ff;
  --card-bg: #ffffff;
  --surface: #ffffff;
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --divider: #E2E8F0;
  --success: #16A34A;
  --warning: #f59e0b;
  --warning-bg: #fef3c7;
  --warning-text: #92400e;
  --off-white: #f1f5f9;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow-soft: 0 8px 20px rgba(30, 58, 138, 0.08);
  --shadow-tight: 0 2px 8px rgba(30, 58, 138, 0.06);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background: var(--background);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(2, 132, 199, 0.12), transparent 55%),
    radial-gradient(circle at 85% 80%, rgba(30, 58, 138, 0.08), transparent 60%);
  pointer-events: none;
  z-index: -1;
}

a {
  color: inherit;
}

.main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
}

.container {
  flex: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 24px;
  width: 100%;
}

.app-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--divider);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-bar-text {
  flex: 1;
}

.app-bar-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
}

.app-bar-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
}

.icon-button {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--primary);
  border: 1px solid transparent;
  background: transparent;
  transition: background 0.2s ease, border 0.2s ease;
}

.icon-button:hover {
  background: var(--off-white);
  border-color: var(--divider);
}

.icon-button svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid rgba(30, 58, 138, 0.12);
  box-shadow: var(--shadow-soft);
}

.card--center {
  text-align: center;
}

.card--compact {
  padding: 24px;
}

.card--hero {
  max-width: 520px;
  width: 100%;
}

.card--narrow {
  max-width: 440px;
  width: 100%;
}

.logo-badge {
  display: inline-flex;
  padding: 12px;
  background: var(--off-white);
  border-radius: 18px;
  border: 1px solid var(--divider);
  margin-bottom: 24px;
}

.logo {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  display: block;
}

.title {
  color: var(--primary);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.tagline {
  color: var(--text-secondary);
  font-size: 15px;
  margin-top: 6px;
}

.subtitle {
  color: var(--text-secondary);
  font-size: 16px;
  margin-top: 8px;
}

.subtitle--strong {
  color: var(--text-primary);
  font-weight: 600;
}

.checkmark-animated {
  width: 96px;
  height: 96px;
  margin: 0 auto 16px;
}

.checkmark-animated svg {
  width: 100%;
  height: 100%;
}

.checkmark-circle {
  fill: none;
  stroke: var(--success);
  stroke-width: 4;
  stroke-dasharray: 210;
  stroke-dashoffset: 210;
  animation: check-circle 0.9s ease forwards;
}

.checkmark-path {
  fill: none;
  stroke: var(--success);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: check-path 0.6s ease forwards 0.5s;
}

@keyframes check-circle {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes check-path {
  to {
    stroke-dashoffset: 0;
  }
}

.description {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
  margin-top: 16px;
}

.store-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 28px 0 24px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.store-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.18);
}

.store-badge--official {
  padding: 0;
  border-radius: 12px;
}

.store-badge-image {
  display: block;
  height: 52px;
  width: auto;
  border-radius: 12px;
}

.links {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.text-link {
  color: var(--primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.text-link:hover {
  text-decoration: underline;
}

.notice {
  background: var(--warning-bg);
  border-left: 4px solid var(--warning);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin-bottom: 20px;
  color: var(--warning-text);
}

.notice-title {
  font-size: 15px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.notice-title svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.notice p {
  font-size: 14px;
}

.notice--compact {
  text-align: left;
  margin-top: 28px;
}

.notice--compact .notice-title {
  font-size: 14px;
}

.notice--compact p {
  font-size: 13px;
}

.content-section {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 16px;
  border: 1px solid rgba(30, 58, 138, 0.12);
  box-shadow: var(--shadow-tight);
}

.content-section h2 {
  color: var(--primary);
  font-size: 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.content-section h2::before {
  content: "";
  width: 4px;
  height: 20px;
  background: var(--primary);
  border-radius: 2px;
}

.content-section p {
  color: var(--text-secondary);
  font-size: 14px;
}

.content-section p + p {
  margin-top: 12px;
}

.content-section strong {
  color: var(--text-primary);
}

.footer {
  text-align: center;
  padding: 24px;
  color: var(--text-muted);
  font-size: 12px;
  border-top: 1px solid var(--divider);
  background: var(--surface);
}

.footer-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.footer-stack .text-link {
  margin-top: 12px;
}

.appear-up {
  animation: slide-up 0.5s ease-out;
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .main {
    padding: 24px 16px;
  }

  .container {
    padding: 16px;
  }

  .card {
    padding: 28px 20px;
  }

  .logo {
    width: 64px;
    height: 64px;
  }

  .title {
    font-size: 22px;
  }

  .store-buttons {
    flex-direction: column;
    align-items: center;
  }

  .store-badge {
    width: auto;
    justify-content: center;
  }

  .store-badge-image {
    height: 48px;
  }
}
