/* ==========================================================================
   Branco Sousa — página de direcionamento
   Tema inspirado no Gerador PIX (Material Design).
   ========================================================================== */

:root {
  --gp-primary: #00a859;
  --gp-primary-dark: #008a49;
  --gp-primary-darker: #006b38;
  --gp-primary-soft: #e4f6ec;
  --gp-bg: #f2f6f4;
  --gp-surface: #ffffff;
  --gp-text: #18241d;
  --gp-text-muted: #5c6b63;
  --gp-border: #dfe7e2;
  --gp-radius: 18px;
  --gp-radius-sm: 12px;
  --gp-shadow: 0 10px 30px rgba(20, 40, 30, 0.08);
  --gp-shadow-hover: 0 18px 44px rgba(20, 40, 30, 0.14);
  --gp-footer: #0d2119;
  --gp-focus: rgba(0, 168, 89, 0.45);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(1200px 400px at 50% -100px, var(--gp-primary-soft), transparent 70%),
    var(--gp-bg);
  color: var(--gp-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
}

main {
  flex: 1 0 auto;
}

.container {
  width: 100%;
  max-width: 640px;
  margin-inline: auto;
  padding-inline: 1rem;
}

:focus-visible {
  outline: 3px solid var(--gp-focus);
  outline-offset: 2px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 1100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--gp-primary);
  color: #fff;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}

/* ---------- cabeçalho ---------- */

.page-hero {
  background: linear-gradient(135deg, var(--gp-primary) 0%, var(--gp-primary-darker) 100%);
  color: #fff;
  padding: 2.4rem 0 2.6rem;
  border-radius: 0 0 28px 28px;
  box-shadow: var(--gp-shadow);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.14) 0 90px, transparent 90px),
    radial-gradient(circle at 10% 90%, rgba(255, 255, 255, 0.1) 0 140px, transparent 140px);
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.hero-logo {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  background: #fff;
  margin-bottom: 1rem;
}

.page-hero h1 {
  font-size: 1.9rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.02em;
}

.page-hero p {
  margin: 0.4rem auto 0;
  max-width: 34ch;
  opacity: 0.92;
}

/* ---------- card ---------- */

.card-material {
  background: var(--gp-surface);
  border: 1px solid var(--gp-border);
  border-radius: var(--gp-radius);
  box-shadow: var(--gp-shadow);
  margin: 1.6rem 0;
}

.card-body {
  padding: 1.6rem 1.4rem;
  text-align: center;
}

.card-body h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
}

.card-body > p {
  color: var(--gp-text-muted);
  margin: 0 0 1.2rem;
}

/* ---------- link/CTA da aplicação ---------- */

.app-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-align: left;
  padding: 1rem 1.2rem;
  border: 1px solid var(--gp-border);
  border-radius: var(--gp-radius-sm);
  background: #fbfdfc;
  color: var(--gp-text);
  text-decoration: none;
  box-shadow: var(--gp-shadow);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.app-link:hover,
.app-link:focus-visible {
  box-shadow: var(--gp-shadow-hover);
  transform: translateY(-2px);
  color: var(--gp-text);
}

.app-link .app-logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  flex-shrink: 0;
  background: #fff;
}

.app-link .app-title {
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
}

.app-link .app-sub {
  color: var(--gp-text-muted);
  font-size: 0.85rem;
  margin-top: 0.15rem;
}

.app-link .app-arrow {
  margin-left: auto;
  color: var(--gp-primary);
  font-size: 1.3rem;
  flex-shrink: 0;
}

/* ---------- anúncios ---------- */

.adsense-top,
.adsense-footer {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.adsense-top::before,
.adsense-footer::before {
  content: "Publicidade";
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gp-text-muted);
  opacity: 0.6;
}

/* ---------- rodapé ---------- */

.app-footer {
  background: var(--gp-footer);
  color: rgba(255, 255, 255, 0.85);
  margin-top: 2rem;
  padding: 1.6rem 0;
  text-align: center;
}

.app-footer .footer-title {
  color: #fff;
  font-weight: 700;
  margin: 0 0 0.4rem;
}

.app-footer .footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.2rem;
}

.app-footer a {
  color: #9fe8c2;
  text-decoration: none;
}

.app-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.app-footer .footer-bottom {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}
