/* AquaNote — landing page
   Paleta baseada exatamente nas cores do app (lib/theme/app_colors.dart)
   pra manter a mesma identidade visual entre app e site. */

:root {
  --bg1: #03101e;
  --bg2: #0b2b47;
  --glass: #11304e;
  --glass-border: rgba(255, 255, 255, 0.14);
  --text-primary: #ffffff;
  --text-secondary: #afc4d6;
  --text-muted: #7c93a8;
  --accent: #4fc3f7;

  --c-especies: #4fc3f7;
  --c-plantas: #66bb6a;
  --c-testes: #26c6da;
  --c-manutencoes: #7e57c2;
  --c-fotos: #ffa726;
  --c-calculadoras: #ec407a;
  --c-lembretes: #ff7043;
  --c-equipamentos: #26a69a;
  --c-comunidade: #42a5f5;

  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --container-width: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg1);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 32px;
}

.accent {
  color: var(--accent);
}

.section-title {
  text-align: center;
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 48px;
  letter-spacing: -0.2px;
}

/* ------------------------------------------------------------------ */
/* Header                                                              */
/* ------------------------------------------------------------------ */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 24px 0;
}

.header-inner {
  display: flex;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.logo-text {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

/* ------------------------------------------------------------------ */
/* Hero                                                                 */
/* ------------------------------------------------------------------ */

.hero {
  position: relative;
  overflow: hidden;
  padding: 140px 0 130px;
  background:
    /* escurece mais a esquerda (onde fica o texto) e menos a direita
       (onde a foto já tem o aquário/plantas em detalhe) */
    linear-gradient(100deg, rgba(3, 16, 30, 0.88) 0%, rgba(3, 16, 30, 0.62) 34%, rgba(3, 16, 30, 0.28) 58%, rgba(3, 16, 30, 0.12) 100%),
    linear-gradient(180deg, rgba(3, 16, 30, 0.25) 0%, rgba(3, 16, 30, 0.1) 30%, rgba(3, 16, 30, 0.55) 100%),
    url("../images/fundo.png");
  background-size: cover;
  background-position: center;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 195, 247, 0.35), transparent 70%);
  filter: blur(2px);
  z-index: 0;
}

.hero::before {
  width: 26px;
  height: 26px;
  top: 22%;
  left: 8%;
  animation: bubble-float 7s ease-in-out infinite;
}

.hero::after {
  width: 14px;
  height: 14px;
  top: 38%;
  left: 14%;
  animation: bubble-float 5s ease-in-out infinite 1.2s;
}

@keyframes bubble-float {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50% { transform: translateY(-22px); opacity: 1; }
}

/* Curva na base da hero, transicionando pro branco da seção de
   features -- pedido do Renato (28/07/2026), igual à referência. */
.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  line-height: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-wave svg {
  display: block;
  width: 100%;
  height: 90px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 64px;
}

.hero-copy {
  flex: 1 1 480px;
  max-width: 560px;
}

.hero-copy h1 {
  font-size: 96px;
  line-height: 1.12;
  font-weight: 800;
  margin: 0 0 18px;
  letter-spacing: -0.6px;
}

.hero-tagline {
  font-size: 19px;
  color: var(--text-secondary);
  margin: 0 0 40px;
  font-weight: 500;
}

/* Bloco QR (desktop) + link do Instagram embaixo. A centralização do
   link em relação à largura visível do QR + selo é feita em JS (ver
   js/main.js, alignInstagramFollow) via margin-left calculado -- o
   parágrafo "Escaneie com seu celular..." é mais largo que o selo e
   isso bagunçava qualquer centralização feita só com CSS. */
.hero-install-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.hero-install {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* QR code real do Google Play (29/08/2026) -- substituiu o
   .qr-placeholder tracejado ("adicionar depois") assim que o app foi
   publicado e o Renato gerou o QR de verdade. Fundo branco + padding
   porque o PNG do QR não tem margem própria e, sem isso, o quiet zone
   (a margem em volta do desenho) fica pequena demais sobre o fundo
   escuro do site -- alguns leitores de QR falham em ler sem essa
   margem mínima. */
.qr-code {
  flex: none;
  width: 108px;
  height: 108px;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: #fff;
  box-sizing: border-box;
  display: block;
}

/* Link "Siga o AquaNote" no Instagram, embaixo do bloco QR + selo */
.instagram-follow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.instagram-follow:hover {
  border-color: rgba(221, 42, 123, 0.55);
  background: rgba(255, 255, 255, 0.06);
}

.instagram-follow svg {
  flex: none;
}

.instagram-follow-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  text-align: left;
}

.instagram-follow-text strong {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.instagram-follow-text small {
  font-size: 13px;
  color: var(--text-muted);
}

/* Versão mobile fica escondida no desktop (o de dentro do qr-block
   já cobre esse caso ali); no mobile ela some junto com .hero-install
   e essa reaparece ao lado do botão "Instalar agora". */
.instagram-follow--mobile {
  display: none;
}

.hero-install-text p {
  margin: 0 0 10px;
  color: var(--text-secondary);
  font-size: 14px;
  max-width: 220px;
}

/* Selo "Google Play" — versão neutra/genérica; trocar pelo selo
   oficial (baixado em play.google.com/intl/pt-BR/badges) assim que o
   app for publicado e o link estiver pronto. */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  padding: 8px 16px;
}

.store-badge svg {
  flex: none;
}

.store-badge .store-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.store-badge .store-badge-text small {
  font-size: 10px;
  color: #cfd8dc;
}

.store-badge .store-badge-text strong {
  font-size: 15px;
  font-weight: 700;
}

/* Botão "Instalar agora" (mobile) */
.btn-install {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: var(--accent);
  color: #04263c;
  font-size: 16px;
  font-weight: 800;
  padding: 16px 20px;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(79, 195, 247, 0.3);
}

.store-caption {
  display: none;
  text-align: center;
  color: var(--text-secondary);
  font-size: 13px;
  margin: 10px 0 0;
}

/* Mockup de celular (só CSS — a screenshot de verdade entra na tela) */
.hero-phone {
  flex: none;
}

.phone-frame {
  position: relative;
  width: 260px;
  height: 540px;
  border-radius: 44px;
  padding: 10px;
  background: linear-gradient(160deg, #24435f, #081522);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.phone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 16px;
  background: #000;
  border-radius: 10px;
  z-index: 4;
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: var(--glass);
}

.phone-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 45%);
  z-index: 3;
  pointer-events: none;
}

.phone-screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
}

/* Carrossel de telas do celular na hero -- várias screenshots
   empilhadas, alternando com fade via JS (ver js/main.js,
   cyclePhoneScreens). Pedido do Renato (08/08/2026). */
.phone-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.1s ease;
}

.phone-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.screenshot-placeholder {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background:
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.03),
      rgba(255, 255, 255, 0.03) 10px,
      transparent 10px,
      transparent 20px
    ),
    var(--glass);
  border: 1px dashed var(--glass-border);
}

.screenshot-placeholder.small {
  font-size: 11px;
  padding: 8px;
}

/* ------------------------------------------------------------------ */
/* Features                                                             */
/* ------------------------------------------------------------------ */

.features {
  background: #f4f8fb;
  color: #0b2236;
  padding: 96px 0;
}

.features .section-title {
  color: #0b2236;
}

.feature-grid {
  display: grid;
  gap: 24px;
  margin: 0 auto 24px;
}

.feature-grid--5 {
  grid-template-columns: repeat(5, 1fr);
}

.feature-grid--4 {
  grid-template-columns: repeat(4, 1fr);
  max-width: 900px;
}

.feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--icon-color) 16%, white);
  margin-bottom: 6px;
}

.feature-icon svg {
  width: 30px;
  height: 30px;
  stroke: var(--icon-color);
  color: var(--icon-color);
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}

.feature-card p {
  font-size: 13px;
  color: #4a6072;
  margin: 0 0 14px;
  line-height: 1.4;
}

.feature-shot {
  width: 100%;
  /* Os prints reais que o Renato tirou do app são ~854x1840,
     884x1780, 927x1697 etc -- proporção bem próxima de 1:2 (0.46 a
     0.55). Os testes anteriores (9:16 e 4:3) não batiam com essa
     proporção real e cortavam demais / "espremiam" a imagem. Usando
     a mesma proporção do print de verdade, o object-fit: cover quase
     não precisa cortar nada -- ele aparece quase inteiro. */
  aspect-ratio: 1 / 2;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  background: var(--glass);
  border: 1px solid rgba(11, 34, 54, 0.08);
}

.feature-shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  z-index: 2;
  cursor: zoom-in;
}

/* Print real de app sempre vai ficar com texto pequeno num card de
   grade (é normal/esperado) -- por isso todo screenshot é clicável e
   abre ampliado, legível de verdade (ver .lightbox no fim do arquivo
   e js/main.js). Ícone de lupa só aparece no hover pra não poluir. */
.feature-shot::after {
  content: "🔍";
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  z-index: 4;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.feature-shot:hover::after {
  opacity: 1;
}

/* ------------------------------------------------------------------ */
/* Evolução                                                             */
/* ------------------------------------------------------------------ */

.evolution {
  background: #f4f8fb;
  color: #0b2236;
  padding: 0 0 96px;
}

.evolution .section-title {
  color: #0b2236;
}

.evolution-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 960px;
  margin: 0 auto;
}

.evolution-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.evolution-item .icon-chip {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(79, 195, 247, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.evolution-item .icon-chip svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.evolution-item h4 {
  font-size: 14px;
  font-weight: 700;
  margin: 0;
}

.evolution-item p {
  font-size: 12px;
  color: #4a6072;
  margin: 0;
  line-height: 1.4;
}

/* ------------------------------------------------------------------ */
/* Confiança (só aparece no mobile — ver media query no fim do arquivo) */
/* ------------------------------------------------------------------ */

.trust {
  display: none;
  background: var(--bg1);
  padding: 40px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  text-align: center;
  max-width: 320px;
  margin: 0 auto;
}

.trust-item .icon-chip {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(79, 195, 247, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
}

.trust-item .icon-chip svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.trust-item h4 {
  font-size: 13px;
  margin: 0 0 4px;
}

.trust-item p {
  font-size: 11px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.3;
}

/* ------------------------------------------------------------------ */
/* CTA final                                                            */
/* ------------------------------------------------------------------ */

.cta {
  position: relative;
  overflow: hidden;
  padding: 96px 0;
  text-align: center;
  background:
    linear-gradient(rgba(3, 16, 30, 0.82), rgba(3, 16, 30, 0.82)),
    url("../images/fundo.png");
  background-size: cover;
  background-position: center 30%;
}

.cta h2 {
  font-size: 34px;
  font-weight: 800;
  margin: 0 0 36px;
  line-height: 1.25;
}

.cta .hero-install-wrap {
  margin: 0 auto;
  width: fit-content;
}

.cta .hero-install {
  justify-content: center;
}

.cta .btn-install {
  max-width: 340px;
  margin: 0 auto;
}

.cta .store-caption {
  max-width: 340px;
  margin: 10px auto 0;
}

/* ------------------------------------------------------------------ */
/* Footer                                                               */
/* ------------------------------------------------------------------ */

.site-footer {
  background: var(--bg1);
  padding: 32px 0;
  text-align: center;
}

.footer-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin: 0 auto 10px;
}

.site-footer p {
  color: var(--text-muted);
  font-size: 13px;
  margin: 0;
}

.footer-links {
  margin: 0 0 12px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 13px;
}

.footer-links a:hover {
  color: var(--accent);
}

/* ------------------------------------------------------------------ */
/* Página legal (Política de Privacidade, Termos de Uso) — texto       */
/* corrido, sem os componentes visuais da landing page. Reaproveita    */
/* .site-header/.site-footer/.container/.accent já existentes.         */
/* ------------------------------------------------------------------ */

.legal-page {
  padding: 140px 0 80px;
  min-height: 60vh;
}

.legal-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 32px;
}

.legal-back {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--accent);
  font-size: 14px;
}

.legal-container h1 {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: -0.2px;
}

.legal-updated {
  color: var(--text-muted);
  font-size: 13px;
  margin: 0 0 32px;
}

.legal-intro p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

.legal-section {
  margin: 36px 0;
  padding-top: 8px;
  border-top: 1px solid var(--glass-border);
}

.legal-section h2 {
  font-size: 19px;
  font-weight: 700;
  margin: 24px 0 10px;
  color: var(--text-primary);
}

.legal-section h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 20px 0 8px;
  color: var(--accent);
}

.legal-section p {
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.7;
  margin: 0 0 10px;
}

.legal-section ul {
  margin: 0 0 12px;
  padding-left: 20px;
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.7;
}

.legal-section li {
  margin-bottom: 4px;
}

.legal-closing {
  margin-top: 40px;
  padding: 20px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
}

.legal-closing h2 {
  font-size: 17px;
  margin: 0 0 8px;
}

.legal-closing p {
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.7;
  margin: 0;
}

/* ------------------------------------------------------------------ */
/* Lightbox — clicar em qualquer screenshot abre ele ampliado           */
/* (ver js/main.js). Print de app fica pequeno demais pra ler dentro   */
/* do card da grade -- isso é esperado, o lightbox resolve pra quem    */
/* quiser ver o detalhe de verdade.                                    */
/* ------------------------------------------------------------------ */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(3, 16, 30, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ------------------------------------------------------------------ */
/* Responsivo — layout mobile (ver referência "VERSÃO MOBILE")          */
/* ------------------------------------------------------------------ */

@media (max-width: 860px) {
  .container {
    padding: 0 20px;
  }

  .section-title {
    font-size: 24px;
    margin-bottom: 32px;
  }

  .site-header {
    padding: 18px 0;
  }

  .logo-icon {
    width: 32px;
    height: 32px;
  }

  .logo-text {
    font-size: 18px;
  }

  .hero {
    padding: 96px 0 76px;
    text-align: center;
  }

  .hero-wave svg {
    height: 50px;
  }

  .hero-inner {
    flex-direction: column;
    gap: 36px;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-copy h1 {
    font-size: 56px;
  }

  .hero-tagline {
    font-size: 15px;
    margin-bottom: 28px;
  }

  /* No mobile some o bloco QR e entra o botão cheio + legenda,
     igual à referência. */
  .hero-install {
    display: none;
  }

  /* Bug 15/08/2026: faltava esconder o link "Siga o AquaNote" de
     desktop (o que fica dentro de .hero-install-wrap, ao lado do QR)
     -- só .hero-install estava sendo escondido acima, então esse link
     sobrava sozinho, desalinhado à esquerda (herda align-items:
     flex-start de .hero-install-wrap, não o text-align:center do
     resto do mobile), duplicado com o link .instagram-follow--mobile
     que aparece logo abaixo do botão "Instalar agora". Como o link
     mobile tem AS DUAS classes (instagram-follow E
     instagram-follow--mobile), esta regra teria que escondê-lo também
     -- mas a regra .instagram-follow--mobile (mais abaixo neste mesmo
     bloco) tem a mesma especificidade e vem depois no arquivo, então
     ela vence de volta e o link mobile continua aparecendo
     normalmente. */
  .instagram-follow {
    display: none;
  }

  .btn-install {
    display: flex;
  }

  .store-caption {
    display: block;
  }

  .instagram-follow--mobile {
    display: inline-flex;
    margin: 14px auto 0;
  }

  .phone-frame {
    width: 220px;
    height: 460px;
  }

  .features {
    padding: 56px 0;
  }

  .feature-grid--5,
  .feature-grid--4 {
    grid-template-columns: 1fr;
    max-width: 100%;
    gap: 0;
  }

  .feature-card {
    flex-direction: row;
    text-align: left;
    align-items: center;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(11, 34, 54, 0.08);
  }

  .feature-icon {
    flex: none;
    width: 48px;
    height: 48px;
    margin-bottom: 0;
  }

  .feature-icon svg {
    width: 22px;
    height: 22px;
  }

  .feature-card > div.feature-text {
    flex: 1 1 auto;
  }

  .feature-card h3 {
    font-size: 14px;
  }

  .feature-card p {
    font-size: 12px;
    margin-bottom: 0;
  }

  .feature-shot {
    flex: none;
    width: 64px;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-sm);
  }

  .evolution {
    padding-bottom: 56px;
  }

  .evolution-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .trust {
    display: block;
  }

  .cta {
    padding: 56px 0;
  }

  .cta h2 {
    font-size: 26px;
  }
}
