/* =========================================================
   TaskZap — Página de link da bio
   Mobile-first, sem frameworks externos.
   ========================================================= */

:root {
  --dark: #06341f;
  --dark-2: #0a4a2b;
  --primary: #0e8a45;
  --primary-2: #12a352;
  --mint: #baffdb;
  --mint-soft: #eafff4;
  --white: #ffffff;
  --text-body: #1c2b23;
  --text-muted: #4d5f56;
  --border-soft: #dcefe4;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-full: 999px;

  --shadow-soft: 0 10px 30px rgba(6, 52, 31, 0.12);
  --shadow-btn: 0 12px 24px rgba(14, 138, 69, 0.28);

  --max-width: 560px;

  --transition-fast: 160ms ease;
  --transition-med: 260ms ease;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(180deg, var(--mint-soft) 0%, var(--white) 55%);
  color: var(--text-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

/* Texto só para leitores de tela (indicações de acessibilidade extra,
   como "abre em nova aba"), sem alterar o texto visível na tela. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link (acessibilidade por teclado) */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--dark);
  color: var(--white);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  z-index: 100;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* Foco visível consistente em toda a página */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--dark);
  outline-offset: 3px;
  border-radius: var(--radius-md);
}

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 20px 24px;
}

/* ---------- 1. Cabeçalho ---------- */
.header {
  text-align: center;
  padding: 8px 0 28px;
}

.header__logo {
  width: 84px;
  height: 84px;
  margin: 0 auto 18px;
  border-radius: 50%;
}

.header__title {
  font-size: 1.5rem;
  line-height: 1.3;
  margin: 0 0 8px;
  color: var(--dark);
  font-weight: 800;
}

.header__subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
}

/* ---------- Seções genéricas ---------- */
.section {
  margin-bottom: 36px;
}

.section__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  text-align: center;
  margin: 0 0 18px;
}

.section__title--light {
  color: var(--white);
}

/* ---------- 2. Botão principal (CTA) ---------- */
.section--cta-primary {
  margin-bottom: 32px;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
    background var(--transition-fast);
  width: 100%;
}

.btn--primary {
  background: linear-gradient(135deg, var(--primary-2), var(--dark-2));
  color: var(--white);
  padding: 18px 22px;
  border-radius: var(--radius-full);
  font-size: 1.05rem;
  box-shadow: var(--shadow-btn);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(14, 138, 69, 0.35);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn__icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
  flex-shrink: 0;
}

.btn--secondary {
  background: var(--white);
  color: var(--dark);
  border: 1.5px solid var(--border-soft);
  padding: 15px 18px;
  border-radius: var(--radius-md);
  font-size: 0.98rem;
  box-shadow: var(--shadow-soft);
}

.btn--secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

/* ---------- 3. Cards de serviços ---------- */
.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 18px 14px;
  text-align: left;
  box-shadow: var(--shadow-soft);
}

.card__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--mint-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.card__icon svg {
  width: 20px;
  height: 20px;
  fill: var(--dark-2);
}

.card__title {
  font-size: 0.95rem;
  margin: 0 0 4px;
  color: var(--dark);
  font-weight: 700;
}

.card__text {
  font-size: 0.85rem;
  margin: 0;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ---------- 4. Demonstrações ---------- */
.demo-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ---------- 5. Chamada comercial ---------- */
.section--commercial {
  background: linear-gradient(160deg, var(--dark) 0%, var(--dark-2) 100%);
  border-radius: var(--radius-lg);
  padding: 32px 22px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.commercial__text {
  color: var(--mint);
  margin: 0 0 20px;
  font-size: 0.98rem;
}

.section--commercial .btn--primary {
  background: var(--white);
  color: var(--dark);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.section--commercial .btn--primary:hover {
  background: var(--mint-soft);
}

/* ---------- 6. Rodapé ---------- */
.footer {
  text-align: center;
  padding: 8px 12px 4px;
  color: var(--text-muted);
}

.footer__brand {
  font-weight: 800;
  color: var(--dark);
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.footer__tagline {
  margin: 0 0 4px;
  font-size: 0.85rem;
}

.footer__location {
  margin: 0 0 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer__social {
  margin: 0;
  font-size: 0.82rem;
}

.footer__social a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  padding: 6px 4px;
  display: inline-block;
}

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

/* ---------- Telas maiores ---------- */
@media (min-width: 480px) {
  .header__logo {
    width: 96px;
    height: 96px;
  }

  .header__title {
    font-size: 1.7rem;
  }

  .btn--primary {
    font-size: 1.1rem;
  }
}

@media (min-width: 720px) {
  .page {
    padding-top: 48px;
  }

  .cards {
    gap: 18px;
  }

  .card {
    padding: 22px 18px;
  }
}

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .btn--primary:hover,
  .btn--secondary:hover {
    transform: none;
  }
}
