/* Landing page estática: mesmas cores e fonte do app (tema teal do Equilibra). */
:root {
  --primary: #006a6a;
  --primary-dark: #004f4f;
  --primary-soft: #9ff2ef;
  --primary-tint: #e3f6f5;
  --surface: #ffffff;
  --surface-low: #f1f4f3;
  --text: #161d1d;
  --text-muted: #3f4948;
  --border: #d9e2e1;
  --whatsapp-bg: #efeae2;
  --bubble-out: #d9fdd3;
  --radius: 16px;
  --shadow: 0 1px 2px rgb(0 0 0 / 6%), 0 8px 24px rgb(0 0 0 / 6%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font:
    400 1rem/1.6 Inter,
    system-ui,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

a {
  color: var(--primary);
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

.narrow {
  max-width: 760px;
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font:
    600 0.95rem/1 Inter,
    system-ui,
    sans-serif;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 150ms,
    color 150ms,
    border-color 150ms;
}

.btn-lg {
  min-height: 52px;
  padding: 0 1.75rem;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-outline {
  border-color: var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline:hover {
  background: var(--primary-tint);
}

.btn-ghost {
  color: var(--text);
  background: transparent;
}

.btn-ghost:hover {
  background: var(--surface-low);
}

.btn-light {
  background: #fff;
  color: var(--primary);
}

.btn-light:hover {
  background: var(--primary-tint);
}

.btn:focus-visible,
.cycle-option:focus-visible,
summary:focus-visible,
.topnav a:focus-visible,
.brand:focus-visible {
  outline: 3px solid var(--primary-soft);
  outline-offset: 2px;
}

/* Topo: fixo e de vidro. No desktop começa grande e transparente sobre o hero e encolhe até 64px
   conforme o scroll (--shrink vai de 0 a 1, calculado no landing.js). No celular fica sempre com 64px. */
.topbar {
  --shrink: 0;
  --bar-h: calc(88px - 24px * var(--shrink));
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  background: rgb(255 255 255 / calc(0.68 * var(--shrink)));
  backdrop-filter: blur(calc(20px * var(--shrink))) saturate(180%);
  -webkit-backdrop-filter: blur(calc(20px * var(--shrink))) saturate(180%);
  border-bottom: 1px solid rgb(217 226 225 / var(--shrink));
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: var(--bar-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--primary);
  font-weight: 700;
  font-size: calc(1.5rem - 0.25rem * var(--shrink));
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand svg {
  width: calc(40px - 8px * var(--shrink));
  height: calc(40px - 8px * var(--shrink));
}

.topnav {
  display: flex;
  gap: 1.5rem;
  margin-left: auto;
}

.topnav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
}

.topnav a:hover {
  color: var(--primary);
}

.topbar-actions {
  display: flex;
  gap: 0.5rem;
}

/* Hero */
.hero {
  /* O topo é fixo: o hero começa por baixo dele (88px da barra grande). */
  padding: 160px 0 96px;
  /* O brilho e a rotação do celular não podem criar rolagem horizontal. */
  overflow-x: clip;
  background: linear-gradient(180deg, var(--primary-tint) 0%, var(--surface) 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
}

/* Selo da promoção acima da headline */
.promo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.75rem;
  max-width: 100%;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  line-height: 1.3;
  background: #111;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.promo[hidden] {
  display: none;
}

.promo:not([hidden]) + .hero-cta {
  margin-top: 1.25rem;
}

.promo strong {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: #003737;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.75rem;
  /* O selo nunca quebra em duas linhas; quem quebra, se faltar espaço, é o texto ao lado */
  flex: none;
  white-space: nowrap;
}

.promo::after {
  flex: none;
  content: '→';
  transition: transform 0.2s;
}

.promo:hover::after {
  transform: translateX(3px);
}

/* Em tela estreita, o texto encurta para caber numa linha só ao lado do selo */
@media (max-width: 420px) {
  .promo-more {
    display: none;
  }
}

.eyebrow {
  margin-bottom: 0.75rem;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
}

.lead {
  max-width: 34rem;
  margin-top: 1.25rem;
  color: var(--text-muted);
  font-size: 1.2rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.fine {
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* iPhone (linha Pro atual) desenhado em CSS, com a conversa de exemplo */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  transform-origin: 50% 30%;
}

/* Brilho suave atrás do aparelho */
.hero-visual::before {
  content: '';
  position: absolute;
  inset: 10% -10% 0;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(0 106 106 / 22%), transparent);
  filter: blur(24px);
}

.iphone {
  position: relative;
  width: 300px;
  aspect-ratio: 300 / 640;
  padding: 4px;
  border-radius: 56px;
  background: linear-gradient(
    145deg,
    #e4e2de 0%,
    #8e8b86 22%,
    #d5d2cd 48%,
    #7a7772 74%,
    #c4c1bc 100%
  );
  box-shadow:
    0 0 0 1px rgb(0 0 0 / 18%),
    0 30px 60px -12px rgb(0 50 50 / 35%),
    0 18px 36px -18px rgb(0 0 0 / 40%);
}

.iphone-btn {
  position: absolute;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, #77746f, #c9c6c1);
}

.iphone-btn.action {
  top: 108px;
  left: -3px;
  height: 28px;
}

.iphone-btn.volume-up {
  top: 156px;
  left: -3px;
  height: 52px;
}

.iphone-btn.volume-down {
  top: 218px;
  left: -3px;
  height: 52px;
}

.iphone-btn.power {
  top: 176px;
  right: -3px;
  height: 84px;
  background: linear-gradient(270deg, #77746f, #c9c6c1);
}

.iphone-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 7px solid #0b0b0c;
  border-radius: 52px;
  background: var(--whatsapp-bg);
  color: #111b21;
  font-size: 13px;
}

.ios-status {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  padding: 4px 26px 0 30px;
  background: #f6f6f6;
}

.ios-time {
  font-weight: 600;
  font-size: 14px;
}

.ios-island {
  position: absolute;
  top: 9px;
  left: 50%;
  width: 90px;
  height: 26px;
  border-radius: 20px;
  background: #000;
  transform: translateX(-50%);
}

.ios-icons {
  display: flex;
  align-items: center;
  gap: 5px;
}

.ios-icons svg {
  height: 10px;
  fill: #111;
}

.ios-battery {
  position: relative;
  width: 23px;
  height: 11px;
  padding: 1.5px;
  border: 1px solid rgb(0 0 0 / 40%);
  border-radius: 3.5px;
}

.ios-battery::after {
  content: '';
  position: absolute;
  top: 3px;
  right: -3px;
  width: 1.5px;
  height: 4px;
  border-radius: 0 1px 1px 0;
  background: rgb(0 0 0 / 40%);
}

.ios-battery span {
  display: block;
  width: 80%;
  height: 100%;
  border-radius: 2px;
  background: #111;
}

.wa-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 8px;
  background: #f6f6f6;
  border-bottom: 1px solid #e2e2e2;
}

.wa-back {
  width: 10px;
  height: 18px;
  color: #007aff;
}

.wa-avatar {
  width: 34px;
  height: 34px;
  flex: none;
}

.wa-contact strong {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14.5px;
  line-height: 1.2;
}

.wa-verified {
  width: 14px;
  height: 14px;
}

.wa-contact small {
  color: #667781;
  font-size: 11.5px;
}

.wa-chat {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  min-height: 0;
  overflow: hidden;
  padding: 10px;
  background-color: var(--whatsapp-bg);
  background-image: radial-gradient(rgb(0 0 0 / 4%) 1px, transparent 1px);
  background-size: 14px 14px;
}

.wa-day {
  align-self: center;
  margin-bottom: auto;
  padding: 3px 10px;
  border-radius: 8px;
  background: #fff;
  color: #54656f;
  font-size: 11px;
  box-shadow: 0 1px 1px rgb(0 0 0 / 6%);
}

.bubble {
  max-width: 86%;
  padding: 6px 9px 4px;
  border-radius: 10px;
  font-size: 12.5px;
  line-height: 1.38;
  box-shadow: 0 1px 1px rgb(0 0 0 / 8%);
}

.bubble.in {
  align-self: flex-start;
  background: #fff;
  border-top-left-radius: 2px;
}

.bubble.out {
  align-self: flex-end;
  background: var(--bubble-out);
  border-top-right-radius: 2px;
}

.bubble time {
  display: block;
  margin-top: 1px;
  color: #667781;
  font-size: 10px;
  text-align: right;
}

/* Os dois tiques azuis de "lida", sobrepostos como no WhatsApp. */
.bubble time .wa-read {
  width: 15px;
  height: 10px;
  margin-left: 2px;
  vertical-align: -1px;
  fill: none;
  stroke: #53bdeb;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bubble-actions {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.bubble-actions span {
  flex: 1;
  padding: 5px;
  border-top: 1px solid #e9edef;
  color: #027eb5;
  font-weight: 600;
  text-align: center;
}

.bubble-link {
  display: block;
  color: #027eb5;
  word-break: break-all;
}

/* "Digitando..." entre uma mensagem e outra (só com JS) */
.bubble.typing {
  display: none;
  gap: 4px;
  padding: 10px 12px;
}

.bubble.typing.on {
  display: flex;
}

.bubble.typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8696a0;
  animation: typing 1s infinite ease-in-out;
}

.bubble.typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.bubble.typing span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes typing {
  0%,
  60%,
  100% {
    opacity: 0.4;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

.wa-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px 26px;
  background: #f6f6f6;
}

.wa-field {
  flex: 1;
  padding: 6px 12px;
  border: 1px solid #e2e2e2;
  border-radius: 18px;
  background: #fff;
  color: #8696a0;
  font-size: 12.5px;
}

.wa-mic {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #00a884;
}

.wa-mic svg {
  width: 16px;
  height: 16px;
}

.ios-home {
  position: absolute;
  bottom: 7px;
  left: 50%;
  width: 110px;
  height: 4px;
  border-radius: 4px;
  background: #111;
  transform: translateX(-50%);
}

/* Faixa de frases */
.strip {
  background: var(--primary);
  color: #fff;
}

.strip-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 2.5rem;
  padding-top: 22px;
  padding-bottom: 22px;
  font-weight: 600;
  font-size: 1.15rem;
}

.strip-inner span::before {
  content: '✓';
  margin-right: 0.5rem;
  color: var(--primary-soft);
}

/* Seções */
.section {
  padding: 88px 0;
}

.section-alt {
  background: var(--surface-low);
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
}

.section-lead {
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.cards {
  display: grid;
  gap: 20px;
  margin-top: 40px;
}

.cards-3 {
  grid-template-columns: repeat(3, 1fr);
}

.cards-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

.card p {
  margin-top: 0.5rem;
  color: var(--text-muted);
}

.pain .answer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--text);
  font-weight: 500;
}

.feature h3 {
  color: var(--primary);
}

/* Como funciona */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.step-n {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
}

.steps h3 {
  font-size: 1.1rem;
}

.steps p {
  margin-top: 0.4rem;
  color: var(--text-muted);
}

/* WhatsApp */
.whatsapp-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 48px;
}

.whatsapp .btn {
  margin-top: 2rem;
}

.whatsapp-stats {
  display: grid;
  gap: 16px;
}

.whatsapp-stats div {
  padding: 20px 24px;
  border-radius: var(--radius);
  background: var(--primary-tint);
}

.whatsapp-stats strong {
  display: block;
  color: var(--primary);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
}

.whatsapp-stats span {
  color: var(--text-muted);
}

/* Lista com check */
.checks {
  display: grid;
  gap: 0.75rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.checks li {
  position: relative;
  padding-left: 1.9rem;
}

.checks li::before {
  content: '';
  position: absolute;
  top: 0.3rem;
  left: 0;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z' fill='%23006a6a'/%3E%3C/svg%3E")
      center / 0.8rem no-repeat,
    var(--primary-soft);
}

/* Segurança */
.security {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
}

.security .checks {
  margin: 0;
}

/* Preços */
.cycle {
  display: inline-flex;
  gap: 4px;
  margin-top: 2rem;
  padding: 4px;
  border-radius: 999px;
  background: var(--surface-low);
}

.cycle-option {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 40px;
  padding: 0 1.1rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font:
    600 0.95rem/1 Inter,
    system-ui,
    sans-serif;
  cursor: pointer;
}

.cycle-option.active {
  background: var(--surface);
  color: var(--primary);
  box-shadow: 0 1px 3px rgb(0 0 0 / 12%);
}

.cycle-badge {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 0.75rem;
}

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 380px));
  gap: 24px;
  margin-top: 32px;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.plan-featured {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow);
}

.plan-badge {
  position: absolute;
  top: -13px;
  left: 28px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
}

.plan h3 {
  font-size: 1.4rem;
}

.plan-for {
  min-height: 3.2em;
  margin-top: 0.5rem;
  color: var(--text-muted);
}

.price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.25rem;
}

.price-value {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.price-unit {
  color: var(--text-muted);
  font-weight: 500;
}

.price-old {
  color: var(--text-muted);
  font-size: 1.1rem;
  text-decoration: line-through;
}

.price-note {
  margin-top: 0.4rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.founder {
  margin-top: 0.75rem;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--primary-tint);
  color: var(--primary-dark);
  font-size: 0.9rem;
  font-weight: 500;
}

.plan .checks {
  flex: 1;
  margin-bottom: 2rem;
}

/* Dúvidas */
.faq {
  display: grid;
  gap: 12px;
  margin-top: 32px;
}

.faq details {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 18px 20px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  color: var(--primary);
  font-size: 1.4rem;
  line-height: 1;
}

.faq details[open] summary::after {
  content: '–';
}

.faq details p {
  padding: 0 20px 18px;
  color: var(--text-muted);
}

/* Chamada final */
.final-cta {
  padding: 88px 0;
  background: var(--primary);
  color: #fff;
  text-align: center;
}

.final-cta h2 {
  margin-bottom: 2rem;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
}

.final-cta .fine {
  color: rgb(255 255 255 / 80%);
}

/* Rodapé */
.footer {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.footer nav {
  display: flex;
  gap: 1.25rem;
}

.footer a {
  color: var(--text-muted);
  text-decoration: none;
}

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

/* Frase que acende palavra por palavra com o scroll */
.statement {
  padding: 140px 0;
}

.statement-text {
  max-width: 980px;
  font-size: clamp(1.75rem, 4.2vw, 3.25rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.js .statement-text .word {
  color: #c9d3d2;
  transition: color 0.35s ease;
}

.js .statement-text .word.lit {
  color: var(--text);
}

.js .statement-text .word.lit.accent {
  color: var(--primary);
}

/* ---------- Animações (só com JS; quem pede menos movimento vê tudo parado) ---------- */

/* Entrada do hero ao abrir a página */
.js .hero-copy > * {
  animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.js .hero-copy > :nth-child(2) {
  animation-delay: 0.08s;
}

.js .hero-copy > :nth-child(3) {
  animation-delay: 0.16s;
}

.js .hero-copy > :nth-child(4) {
  animation-delay: 0.24s;
}

.js .hero-copy > :nth-child(5) {
  animation-delay: 0.32s;
}

.js .hero .iphone {
  animation: phone-in 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
}

@keyframes phone-in {
  from {
    opacity: 0;
    transform: translateY(80px) rotate(6deg) scale(0.92);
  }
}

/* Mensagens do celular chegam uma a uma */
.js .wa-chat [data-msg] {
  display: none;
}

.js .wa-chat [data-msg].shown {
  display: block;
  animation: pop 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}

.bubble.in {
  transform-origin: 0 0;
}

.bubble.out {
  transform-origin: 100% 0;
}

@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.9);
  }
}

/* Elementos que aparecem ao entrar na tela (marcados pelo landing.js) */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s ease,
    transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--delay, 0ms);
}

.js [data-reveal='scale'] {
  transform: translateY(24px) scale(0.94);
}

.js [data-reveal].in {
  opacity: 1;
  transform: none;
}

/* Faixa: cada frase acende em sequência */
.js .strip-inner span {
  opacity: 0.25;
  transition: opacity 0.6s ease;
}

.js .strip-inner span::before {
  display: inline-block;
  transform: scale(0);
  transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.4);
}

.js .strip.in .strip-inner span {
  opacity: 1;
}

.js .strip.in .strip-inner span::before {
  transform: scale(1);
}

.js .strip-inner span:nth-child(2),
.js .strip-inner span:nth-child(2)::before {
  transition-delay: 0.45s;
}

.js .strip-inner span:nth-child(3),
.js .strip-inner span:nth-child(3)::before {
  transition-delay: 0.9s;
}

/* Como funciona: o passo "acende" quando cruza o meio da tela */
.js .step-n {
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
  transition:
    background-color 0.4s,
    color 0.4s,
    transform 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.4);
}

.js .steps li.active .step-n {
  background: var(--primary);
  color: #fff;
  transform: scale(1.12);
}

.steps li,
.card,
.plan {
  transition:
    opacity 0.8s ease,
    transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.3s ease;
}

@media (hover: hover) {
  .card:hover,
  .steps li:hover {
    box-shadow: 0 12px 32px rgb(0 60 60 / 12%);
  }
}

/* Chamada final: gradiente que respira devagar */
.final-cta {
  background: linear-gradient(120deg, #004f4f, var(--primary), #0b8a87, var(--primary));
  background-size: 300% 300%;
  animation: drift 14s ease-in-out infinite;
}

@keyframes drift {
  50% {
    background-position: 100% 50%;
  }
}

/* Desktop: o hero se afasta com o scroll (--hero vai de 0 a 1, calculado no landing.js) */
@media (min-width: 961px) {
  .hero {
    --hero: 0;
  }

  .hero-copy {
    opacity: calc(1 - 0.7 * var(--hero));
    transform: translateY(calc(var(--hero) * 60px));
  }

  .hero-visual {
    transform: translateY(calc(var(--hero) * -40px)) rotate(calc(var(--hero) * -5deg))
      scale(calc(1 - 0.06 * var(--hero)));
  }
}

@media (prefers-reduced-motion: reduce) {
  .js .hero-copy > *,
  .js .hero .iphone,
  .final-cta {
    animation: none;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .js .wa-chat [data-msg] {
    display: block;
    animation: none;
  }

  .js .strip-inner span {
    opacity: 1;
  }

  .js .strip-inner span::before {
    transform: none;
  }

  .hero-copy,
  .hero-visual {
    opacity: 1;
    transform: none;
  }
}

/* Vitrine do sistema: telas reais numa janela de navegador */
.showcase {
  padding: 88px 0 96px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-low) 100%);
}

.container.wide {
  max-width: 1320px;
}

.showcase-stage {
  margin-top: 24px;
}

.showcase-sticky {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) 1.6fr;
  align-items: center;
  gap: 56px;
}

.showcase-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.showcase-item {
  --item-progress: 0;
  position: relative;
  padding: 16px 0 16px 22px;
  cursor: pointer;
  opacity: 0.38;
  transition: opacity 0.4s ease;
}

/* Trilho à esquerda; no item ativo ele enche conforme o scroll */
.showcase-item::before,
.showcase-item::after {
  content: '';
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 0;
  width: 3px;
  border-radius: 3px;
  background: var(--border);
}

.showcase-item::after {
  bottom: auto;
  height: calc((100% - 32px) * var(--item-progress));
  background: var(--primary);
}

.showcase-item.active {
  opacity: 1;
}

.showcase-item h3 {
  font-size: 1.35rem;
  font-weight: 700;
}

.showcase-item p {
  margin-top: 0.4rem;
  color: var(--text-muted);
}

.showcase-shot-mobile {
  display: none;
}

.browser {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  box-shadow:
    0 2px 6px rgb(0 0 0 / 5%),
    0 40px 80px -24px rgb(0 60 60 / 30%);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 40px;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
  background: #f6f8f7;
}

.browser-dots {
  display: flex;
  gap: 7px;
}

.browser-dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff5f57;
}

.browser-dots i:nth-child(2) {
  background: #febc2e;
}

.browser-dots i:nth-child(3) {
  background: #28c840;
}

.browser-url {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 0 1 380px;
  margin: 0 auto;
  padding: 5px 12px;
  border-radius: 8px;
  background: #fff;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.browser-url svg {
  width: 11px;
  height: 11px;
  fill: currentColor;
}

.browser-view {
  position: relative;
  aspect-ratio: 1280 / 800;
  background: var(--surface-low);
}

.browser-view img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateY(14px) scale(1.02);
  transition:
    opacity 0.55s ease,
    transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.browser-view img.active {
  opacity: 1;
  transform: none;
}

/* Desktop: a vitrine fica presa na tela por 4 "telas" de scroll, uma por item */
@media (min-width: 961px) {
  .js .showcase-stage {
    height: 360vh;
  }

  .js .showcase-sticky {
    position: sticky;
    top: 64px;
    height: calc(100vh - 64px);
  }

  .js .showcase-item[data-reveal].in:not(.active) {
    opacity: 0.38;
  }

  /* Só o item ativo mostra o texto: a lista cabe mesmo em telas baixas */
  .js .showcase-item p {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition:
      max-height 0.5s ease,
      opacity 0.4s ease;
  }

  .js .showcase-item.active p {
    max-height: 9em;
    opacity: 1;
  }
}

/* Celular no bolso */
.pocket {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 48px;
  margin-top: 96px;
}

.pocket-title {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 800;
}

.pocket-phones {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 28px;
}

/* A altura segue a imagem (a tela capturada é um pouco mais larga que a proporção do aparelho) */
.iphone.iphone-shot {
  width: 250px;
  aspect-ratio: auto;
}

.iphone-shot .iphone-screen {
  height: auto;
}

.iphone-shot:nth-child(2) {
  margin-top: 64px;
}

.iphone-shot .iphone-screen {
  background: #f1f4f3;
}

/* Mesma barra de status do iPhone do hero, na cor de fundo do app */
.iphone-shot .ios-status {
  flex: none;
  height: 40px;
  padding: 3px 16px 0 24px;
  background: #f2f4f3;
}

.iphone-shot .ios-island {
  top: 8px;
  width: 70px;
  height: 22px;
}

.iphone-shot .ios-icons {
  gap: 4px;
}

/* Faixa do indicador de início: a barra de baixo do app não encosta nos cantos arredondados */
.ios-home-area {
  position: relative;
  display: block;
  flex: none;
  /* Alta o bastante para a barra de abas do app ficar acima da curva dos cantos da tela */
  height: 34px;
  background: #eaefee;
}

.iphone-shot img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 960px) {
  .showcase-sticky {
    display: block;
  }

  .browser {
    display: none;
  }

  .showcase-list {
    gap: 40px;
  }

  .showcase-item {
    padding-left: 0;
    opacity: 1;
    cursor: default;
  }

  .showcase-item::before,
  .showcase-item::after {
    display: none;
  }

  .showcase-shot-mobile {
    display: block;
    width: 100%;
    height: auto;
    margin-top: 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 20px 40px -20px rgb(0 60 60 / 30%);
  }

  .pocket {
    grid-template-columns: 1fr;
    margin-top: 64px;
  }
}

@media (max-width: 640px) {
  .showcase {
    padding: 56px 0 64px;
  }

  .pocket-phones {
    gap: 12px;
  }

  .iphone.iphone-shot {
    width: 47%;
    padding: 3px;
    border-radius: 34px;
  }

  .iphone-shot .iphone-screen {
    border-width: 5px;
    border-radius: 31px;
  }

  .iphone-shot .ios-status {
    height: 26px;
    padding: 2px 9px 0 15px;
  }

  .iphone-shot .ios-time {
    font-size: 10px;
  }

  .iphone-shot .ios-island {
    top: 5px;
    width: 38px;
    height: 13px;
  }

  .iphone-shot .ios-icons {
    gap: 3px;
  }

  .iphone-shot .ios-icons svg {
    height: 7px;
  }

  .iphone-shot .ios-battery {
    width: 15px;
    height: 8px;
    padding: 1px;
    border-radius: 2.5px;
  }

  .iphone-shot .ios-battery::after {
    top: 2px;
    height: 3px;
  }

  .ios-home-area {
    height: 22px;
  }

  .iphone-shot .ios-home {
    bottom: 4px;
    width: 40%;
    height: 3px;
  }

  .iphone-shot .iphone-btn {
    display: none;
  }

  .iphone-shot:nth-child(2) {
    margin-top: 36px;
  }
}

/* Tablet */
@media (max-width: 960px) {
  .topbar {
    --bar-h: 64px;
  }

  .brand {
    font-size: 1.25rem;
  }

  .brand svg {
    width: 32px;
    height: 32px;
  }

  .topnav {
    display: none;
  }

  .topbar-actions {
    margin-left: auto;
  }

  .hero-inner,
  .whatsapp-inner,
  .security {
    grid-template-columns: 1fr;
  }

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

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

/* Celular */
@media (max-width: 640px) {
  .hero {
    padding: 104px 0 56px;
  }

  .statement {
    padding: 80px 0;
  }

  .section,
  .final-cta {
    padding: 56px 0;
  }

  .lead {
    font-size: 1.05rem;
  }

  .hero-cta .btn {
    flex: 1 1 100%;
  }

  .cards-3,
  .cards-4,
  .steps,
  .plans {
    grid-template-columns: 1fr;
  }

  .strip-inner {
    flex-direction: column;
    align-items: center;
    font-size: 1.05rem;
  }

  .topbar-actions .btn {
    padding: 0 0.9rem;
  }

  .plan-for {
    min-height: 0;
  }

  .price-value {
    font-size: 2.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
