/* Ser+ deep link fallback — baseado no design da app (frontend-native) */

:root {
  --primary-50: #e6f5ea;
  --primary-100: #b2e1bd;
  --primary-400: #37b154;
  --primary-500: #059e29;
  --primary-600: #059025;
  --primary-700: #04701d;
  --primary-800: #035717;
  --primary-900: #024211;

  --neutral-0: #ffffff;
  --neutral-50: #ecedec;
  --neutral-100: #c3c7c5;
  --neutral-300: #7c8681;
  --neutral-500: #3c4b43;
  --neutral-700: #2b3530;
  --neutral-800: #212925;
  --neutral-900: #19201c;

  --secondary-500: #503ee4;
  --score-500: #fdb02e;

  --bg: var(--neutral-0);
  --surface: var(--neutral-0);
  --text: var(--neutral-900);
  --text-muted: var(--neutral-500);
  --border: var(--neutral-50);
  --shadow: 0 12px 40px rgba(25, 32, 28, 0.1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d110f;
    --surface: var(--neutral-800);
    --text: #ffffff;
    --text-muted: var(--neutral-100);
    --border: var(--neutral-700);
    --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Geist", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Faixa de marca no topo */
.aurora {
  position: fixed;
  inset: 0 0 auto 0;
  height: 42vh;
  background: radial-gradient(
      120% 90% at 50% -20%,
      var(--primary-400) 0%,
      var(--primary-600) 45%,
      transparent 75%
    );
  opacity: 0.16;
  pointer-events: none;
  z-index: 0;
}

.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 40px 32px 32px;
  text-align: center;
}

.logo {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(150deg, var(--primary-500), var(--primary-700));
  box-shadow: 0 8px 24px rgba(5, 158, 41, 0.35);
}

.logo svg {
  width: 34px;
  height: auto;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-600);
  background: var(--primary-50);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

@media (prefers-color-scheme: dark) {
  .eyebrow {
    color: var(--primary-100);
    background: rgba(5, 158, 41, 0.16);
  }
}

h1 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.subtitle {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 28px;
  text-wrap: balance;
}

/* Estado "a abrir a app" */
.opening {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--primary-100);
  border-top-color: var(--primary-500);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation: none;
  }
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 13px;
  margin: 4px 0 20px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.stores {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.store-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 12px 20px;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  background: var(--neutral-900);
  color: #ffffff;
  transition: transform 0.15s ease, opacity 0.15s ease;
  cursor: pointer;
}

@media (prefers-color-scheme: dark) {
  .store-btn {
    background: #ffffff;
    color: var(--neutral-900);
  }
}

.store-btn:hover {
  opacity: 0.9;
}

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

.store-btn svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.store-btn .store-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}

.store-btn .store-label small {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.7;
}

.footer {
  margin-top: 26px;
  font-size: 13px;
  color: var(--text-muted);
}

.footer a {
  color: var(--primary-600);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}

@media (prefers-color-scheme: dark) {
  .footer a {
    color: var(--primary-100);
  }
}

.footer a:hover {
  text-decoration: underline;
}

@media (max-width: 380px) {
  .card {
    padding: 32px 22px 26px;
  }
  h1 {
    font-size: 21px;
  }
}

/* Botão de cancelar subscrição (unsubscribe.html) — reaproveita o .store-btn */
.unsubscribe-btn {
  margin: 24px auto 0;
  border: 0;
  cursor: pointer;
  font: inherit;
}
