/* ==========================================================================
   AnestICU — Website institucional
   style.css
   Sistema de design: tokens de cor/tipografia + componentes + responsivo
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Cores — extraídas do logotipo do app */
  --color-blue: #0071e3;
  --color-blue-dark: #0058b0;
  --color-green: #12b76a;
  --color-red: #ff3b30;
  --color-red-dark: #d92c22;

  --color-bg: #ffffff;
  --color-bg-alt: #f5f5f7;
  --color-bg-alt-2: #eef1f4;
  --color-border: #d2d2d7;

  --color-text: #1d1d1f;
  --color-text-secondary: #6e6e73;
  --color-text-on-dark: #f5f5f7;

  /* Tipografia */
  --font-display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Menlo, monospace;

  /* Espaçamento */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 7rem;

  /* Raios e sombras */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.12);

  /* Transições */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 0.2s;
  --dur-med: 0.5s;
  --dur-slow: 0.9s;

  --header-h: 64px;
  --max-w: 1180px;
}

/* ---------- 2. Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* Foco visível para acessibilidade */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute;
  left: -9999px;
  top: auto;
  z-index: 1000;
  background: var(--color-blue);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
}

.visually-hidden:focus {
  left: var(--space-md);
  top: var(--space-xs);
}

.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.section {
  padding-block: var(--space-2xl);
}

.section-alt {
  background: var(--color-bg-alt);
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-blue);
  margin-bottom: var(--space-sm);
}

.section-head {
  max-width: 640px;
  margin-bottom: var(--space-xl);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  color: var(--color-text-secondary);
}

.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
}

/* ---------- 3. Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

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

.btn-primary {
  background: var(--color-blue);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 113, 227, 0.28);
}

.btn-primary:hover {
  background: var(--color-blue-dark);
  box-shadow: 0 12px 30px rgba(0, 113, 227, 0.36);
}

.btn-secondary {
  background: var(--color-bg-alt-2);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  background: #e4e7ea;
}

.btn-secondary[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
}

.btn-ghost {
  color: var(--color-blue);
  font-weight: 600;
}

.btn-lg {
  padding: 1.05rem 2rem;
  font-size: 1.05rem;
}

/* ---------- 4. Header ---------- */
.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  height: var(--header-h);
  z-index: 100;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(210, 210, 215, 0.6);
  transition: box-shadow var(--dur-fast) var(--ease);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.nav {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.nav-brand img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-text);
  position: relative;
  padding-block: 4px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--color-blue);
  transition: right var(--dur-fast) var(--ease);
  border-radius: 2px;
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  right: 0;
}

.nav-secondary-links {
  display: flex;
  gap: var(--space-md);
}

.nav-secondary-links a {
  font-size: 0.82rem;
  color: var(--color-text-secondary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* ---------- 5. Hero ---------- */
.hero {
  position: relative;
  padding-block-start: calc(var(--header-h) + var(--space-xl));
  padding-block-end: var(--space-2xl);
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-xl);
  align-items: center;
}

.hero-copy .eyebrow {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-copy h1 {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  margin-bottom: var(--space-sm);
}

.hero-copy .lede-title {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  color: var(--color-text);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.hero-copy p.lede {
  margin-bottom: var(--space-lg);
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.hero-meta {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.hero-meta div {
  display: flex;
  flex-direction: column;
}

.hero-meta strong {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--color-text);
}

.hero-meta span {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
}

/* Traçado de ECG — elemento assinatura do site */
.hero-ecg {
  position: absolute;
  inset-inline-start: 0;
  inset-block-end: 6%;
  width: 55%;
  height: 90px;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.hero-ecg path {
  fill: none;
  stroke: var(--color-blue);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: draw-ecg 3.2s var(--ease) 0.3s forwards, pulse-ecg 2.6s ease-in-out 3.6s infinite;
}

@keyframes draw-ecg {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes pulse-ecg {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 0.6;
  }
}

/* Mockup do telefone (placeholder para screenshot real) */
.phone-mock {
  position: relative;
  width: min(300px, 78vw);
  margin-inline: auto;
  aspect-ratio: 9 / 19.5;
  border-radius: 46px;
  background: #0b0c0e;
  padding: 12px;
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}

.phone-mock::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  translate: -50% 0;
  width: 34%;
  height: 22px;
  background: #0b0c0e;
  border-radius: 20px;
  z-index: 2;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  background: linear-gradient(160deg, #eaf2ff 0%, #f5f5f7 55%, #eafcf1 100%);
  position: relative;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-screen .mock-ui {
  padding: 40px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
}

.mock-ui .mock-topbar {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--color-text-secondary);
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.mock-card {
  background: #fff;
  border-radius: 14px;
  padding: 12px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mock-card .mock-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-text);
}

.mock-card .mock-line {
  height: 6px;
  border-radius: 3px;
  background: var(--color-bg-alt-2);
}

.mock-card .mock-line.short {
  width: 55%;
}

.mock-badge {
  display: inline-flex;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 8px;
}

.mock-badge.blue {
  background: rgba(0, 113, 227, 0.12);
  color: var(--color-blue);
}

.mock-badge.green {
  background: rgba(18, 183, 106, 0.14);
  color: var(--color-green);
}

.mock-badge.red {
  background: rgba(255, 59, 48, 0.12);
  color: var(--color-red-dark);
}

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

.floating-chip {
  position: absolute;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: 0.65rem 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: float 5s ease-in-out infinite;
}

.floating-chip.chip-1 {
  top: 8%;
  right: -6%;
  animation-delay: 0.2s;
}

.floating-chip.chip-2 {
  bottom: 14%;
  left: -10%;
  animation-delay: 1.2s;
}

.floating-chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot.green {
  background: var(--color-green);
}
.dot.blue {
  background: var(--color-blue);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ---------- 6. Marquee de destaque ---------- */
.trust-bar {
  border-block: 1px solid var(--color-border);
  padding-block: var(--space-md);
}

.trust-bar ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-lg);
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  font-weight: 500;
}

.trust-bar li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.trust-bar svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ---------- 7. Recursos (features) ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
}

.feature-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm);
}

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

.feature-icon.blue {
  background: var(--color-blue);
}
.feature-icon.green {
  background: var(--color-green);
}
.feature-icon.red {
  background: var(--color-red);
}

.feature-card h3 {
  margin-bottom: 0.35rem;
}

.feature-card p {
  font-size: 0.9rem;
}

/* ---------- 8. Capturas / carrossel ---------- */
.carousel {
  position: relative;
}

.carousel-track-wrap {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.carousel-track {
  display: flex;
  transition: transform var(--dur-med) var(--ease);
}

.carousel-slide {
  flex: 0 0 100%;
  display: flex;
  justify-content: center;
  padding: var(--space-lg) var(--space-md);
  background: var(--color-bg-alt);
}

.carousel-slide .phone-mock {
  width: min(240px, 60vw);
}

.carousel-caption {
  text-align: center;
  margin-top: var(--space-sm);
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.carousel-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}

.carousel-btn:hover {
  background: var(--color-bg-alt-2);
  transform: scale(1.05);
}

.carousel-btn svg {
  width: 18px;
  height: 18px;
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border);
  transition: background var(--dur-fast) var(--ease), width var(--dur-fast) var(--ease);
}

.carousel-dots button[aria-current="true"] {
  background: var(--color-blue);
  width: 22px;
  border-radius: 4px;
}

/* Múltiplos telefones lado a lado em telas largas */
@media (min-width: 900px) {
  .carousel-track-wrap {
    display: none;
  }
  .screens-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
  }
  .screens-row .phone-mock {
    width: 100%;
  }
  .screens-row-item p {
    text-align: center;
    margin-top: var(--space-xs);
    font-size: 0.85rem;
  }
}

@media (max-width: 899px) {
  .screens-row {
    display: none;
  }
}

/* ---------- 9. Sobre ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-xl);
  align-items: center;
}

.about-visual {
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.stat-row {
  display: flex;
  justify-content: space-between;
  padding-block: var(--space-sm);
  border-bottom: 1px solid var(--color-border);
}

.stat-row:last-child {
  border-bottom: none;
}

.stat-row strong {
  font-family: var(--font-mono);
  font-size: 1.6rem;
}

.stat-row span {
  font-size: 0.82rem;
  color: var(--color-text-secondary);
  max-width: 16ch;
  text-align: right;
}

.about-copy h2 {
  margin-bottom: var(--space-sm);
}

.about-copy p + p {
  margin-top: var(--space-sm);
}

/* ---------- 10. Aviso importante (callout) ---------- */
.notice {
  border: 1px solid rgba(255, 59, 48, 0.25);
  background: linear-gradient(180deg, rgba(255, 59, 48, 0.06), rgba(255, 59, 48, 0.02));
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.notice-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-red);
  display: flex;
  align-items: center;
  justify-content: center;
}

.notice-icon svg {
  width: 22px;
  height: 22px;
  stroke: #fff;
}

.notice h3 {
  margin-bottom: 0.4rem;
}

.notice p {
  color: var(--color-text);
  font-size: 0.95rem;
}

.notice p + p {
  margin-top: 0.5rem;
}

/* ---------- 11. CTA final ---------- */
.final-cta {
  text-align: center;
  background: linear-gradient(160deg, #eaf2ff 0%, #f5f5f7 60%, #eafcf1 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl) var(--space-md);
  margin-inline: var(--space-md);
}

.final-cta h2 {
  margin-bottom: var(--space-xs);
}

.final-cta p {
  margin-bottom: var(--space-lg);
}

.final-cta .hero-actions {
  justify-content: center;
}

/* ---------- 12. Páginas internas (privacidade / termos / contato) ---------- */
.page-header {
  padding-block-start: calc(var(--header-h) + var(--space-xl));
  padding-block-end: var(--space-lg);
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: var(--space-xs);
}

.updated-note {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

.legal-content {
  max-width: 760px;
  padding-block-end: var(--space-2xl);
}

.legal-content h2 {
  font-size: 1.3rem;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-xs);
}

.legal-content p,
.legal-content li {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xs);
  font-size: 0.98rem;
}

.legal-content ul {
  list-style: disc;
  padding-inline-start: 1.3rem;
}

.legal-content ul li {
  margin-bottom: 0.4rem;
}

.legal-nav {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}

.legal-nav a {
  padding-block: var(--space-sm);
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--color-text-secondary);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.legal-nav a[aria-current="page"] {
  color: var(--color-text);
  border-color: var(--color-blue);
}

/* Contato */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  max-width: 800px;
}

.contact-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  transition: box-shadow var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}

.contact-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.contact-card .feature-icon {
  margin-bottom: 0;
}

.contact-card h3 {
  margin-top: var(--space-xs);
}

.contact-card p {
  font-size: 0.9rem;
}

/* ---------- 13. Footer ---------- */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding-block: var(--space-xl) var(--space-lg);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.footer-brand img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}

.footer-tagline {
  font-size: 0.9rem;
  max-width: 32ch;
}

.footer-col h4 {
  font-size: 0.85rem;
  margin-bottom: var(--space-sm);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.footer-col ul li {
  margin-bottom: 0.55rem;
}

.footer-col a {
  font-size: 0.92rem;
  color: var(--color-text);
}

.footer-col a:hover {
  color: var(--color-blue);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
  font-size: 0.82rem;
  color: var(--color-text-secondary);
}

.ecg-divider {
  width: 100%;
  height: 24px;
  opacity: 0.35;
  margin-bottom: var(--space-md);
}

.ecg-divider path {
  fill: none;
  stroke: var(--color-green);
  stroke-width: 1.5;
}

/* ---------- 14. Botão voltar ao topo ---------- */
.back-to-top {
  position: fixed;
  inset-block-end: 24px;
  inset-inline-end: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-text);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), visibility var(--dur-fast);
  z-index: 90;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top svg {
  width: 18px;
  height: 18px;
  stroke: #fff;
}

/* ---------- 15. Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 16. Responsivo ---------- */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .nav-links,
  .nav-secondary-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-drawer {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: all var(--dur-fast) var(--ease);
  }

  .nav-drawer.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-drawer a {
    font-weight: 500;
    padding-block: 0.4rem;
  }

  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-copy .lede,
  .hero-copy p.lede {
    margin-inline: auto;
  }

  .hero-actions,
  .hero-meta {
    justify-content: center;
  }

  .hero-figure {
    order: -1;
  }

  .floating-chip.chip-2 {
    left: 2%;
  }
  .floating-chip.chip-1 {
    right: 2%;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .section {
    padding-block: var(--space-xl);
  }
  .features-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xs);
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .notice {
    flex-direction: column;
  }
  .final-cta {
    margin-inline: 0;
    border-radius: var(--radius-md);
  }
}


/* ===== Hero com screenshot real ===== */

.hero-figure{
    display:flex;
    justify-content:center;
    align-items:center;
}

.hero-app-image{
    width:min(430px, 95%);
    height:auto;
    display:block;

    border-radius:42px;

    box-shadow:
        0 30px 70px rgba(0,0,0,.45),
        0 10px 25px rgba(0,0,0,.25);

    transition:transform .35s ease;
}

.hero-app-image:hover{
    transform:translateY(-6px);
}


/* ================= CAPTURAS ================= */

.screens-gallery{
    display:grid;
    grid-template-columns:repeat(2,minmax(260px,340px));
    justify-content:center;
    gap:42px;
    margin-top:60px;
}

.screen-card{
    transition:.3s;
}

.screen-card img{
    width:100%;
    display:block;
    border-radius:28px;
    box-shadow:0 18px 45px rgba(0,0,0,.22);
}

.screen-card:hover{
    transform:translateY(-6px);
}

.screen-card:hover img{
    transform:scale(1.02);
}

.screen-card figcaption{
    text-align:center;
    margin-top:14px;
    font-weight:600;
    color:#6b7280;
}

@media (max-width:900px){

.screens-gallery{
    grid-template-columns:1fr;
    max-width:340px;
    margin:auto;
}

}


.appstore-link{
  display:inline-block;
  transition:transform .2s ease;
}

.appstore-link:hover{
  transform:translateY(-2px);
}

.appstore-badge{
  width:180px;
  height:auto;
  display:block;
}