/* ==========================================================================
   Dev Aprender Soluções Digitais - automation landing page
   ========================================================================== */

/* Archivo, self-hosted (no Google Fonts request). Variable font: weights 100-900, widths 62-125%.
   Latin subset, which covers Portuguese. License: assets/fonts/OFL.txt */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("assets/fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --font: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --bg: #000411;
  --surface: #050A2E;
  --line: #15205D;
  --text: #F2F5FF;
  --muted: #9AA6C2;
  --cyan: #07FFE1;

  --wa: #25D366;
  --wa-hover: #1FBF5B;
  --wa-ink: #03200F;

  --container: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(72px, 10vw, 128px);
}

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

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

body {
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ol, ul { list-style: none; }

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

::selection { background: var(--cyan); color: var(--bg); }

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

/* Narrow sections (comparison, FAQ): centered column, centered title */
.container.narrow { max-width: 820px; }
.container.narrow .section-title { margin-left: auto; margin-right: auto; text-align: center; }

/* --------------------------------------------------------------------------
   WhatsApp button (the only call to action on the page)
   -------------------------------------------------------------------------- */
.btn-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--wa);
  color: var(--wa-ink);
  font-weight: 700;
  font-size: 1.0625rem;
  padding: 17px 28px;
  border-radius: 999px;
  box-shadow: 0 10px 32px -10px rgba(37, 211, 102, 0.55);
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.btn-wa svg { width: 22px; height: 22px; flex-shrink: 0; }
.btn-wa:hover { background: var(--wa-hover); }
.btn-wa:active { transform: translateY(1px); }

.btn-wa--sm {
  font-size: 0.9375rem;
  padding: 10px 18px;
  box-shadow: none;
}

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

.show-sm { display: none; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 4, 17, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-stretch: 108%;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.brand img { width: 36px; height: 36px; border-radius: 50%; }
.brand-sub { font-weight: 500; color: var(--muted); }

.header-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 0.9375rem;
  color: var(--muted);
}

.header-nav a:hover { color: var(--text); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: clamp(48px, 8vw, 104px) 0 var(--section-y);
  overflow: hidden;
}

/* One glow, behind the photo */
.hero::before {
  content: "";
  position: absolute;
  width: 760px;
  height: 760px;
  right: -180px;
  top: -120px;
  background: radial-gradient(circle, rgba(0, 188, 255, 0.16) 0%, rgba(7, 255, 225, 0.05) 40%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
}

.hero-kicker {
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.5rem, 6.2vw, 4.6rem);
  font-weight: 800;
  font-stretch: 112%;
  line-height: 1.0;
  letter-spacing: -0.035em;
  max-width: 13ch;
  text-wrap: balance;
}

/* The outcome is the only colored phrase in the hero */
.hero h1 .hl { color: var(--cyan); white-space: nowrap; }

.hero-lead {
  margin-top: 24px;
  max-width: 46ch;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  color: var(--muted);
}

.hero .btn-wa { margin-top: 36px; }

.hero-note {
  margin-top: 14px;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* Founder photo */
.hero-photo {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 400px;
  border-radius: 24px;
  overflow: hidden;
  background: #8E9196;
  box-shadow: 0 40px 80px -30px rgba(0, 188, 255, 0.35);
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 18%;
}

/* Fade the grey studio backdrop into the page */
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 55%, rgba(0, 4, 17, 0.9) 100%);
}

.hero-photo figcaption,
.about-photo figcaption {
  position: absolute;
  left: 22px;
  bottom: 20px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.hero-photo figcaption strong,
.about-photo figcaption strong { font-weight: 700; }
.hero-photo figcaption span,
.about-photo figcaption span { color: var(--muted); font-size: 0.9375rem; }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section {
  padding: var(--section-y) 0;
  border-top: 1px solid var(--line);
}

.section-title {
  font-size: clamp(1.875rem, 3.6vw, 2.75rem);
  font-weight: 800;
  font-stretch: 108%;
  line-height: 1.08;
  letter-spacing: -0.025em;
  max-width: 20ch;
  margin-bottom: clamp(36px, 5vw, 56px);
  text-wrap: balance;
}

/* Demos: pick a business type, see one WhatsApp conversation (dark WhatsApp colors) */
/* Left column: title, short line, the six tabs. Right column: the phone */
.demo-side { order: 1; min-width: 0; }
.demos-head { margin-bottom: 28px; }
.demos-head .section-title { margin: 0; }
.demo-caption { display: none; }

.showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  max-width: 1060px;
  margin-inline: auto;
}

/* Every chat sits in the same grid cell, so the box keeps the height of the tallest one */
.demos { display: grid; grid-template-columns: minmax(0, 1fr); order: 2; }
.demos > .demo { grid-area: 1 / 1; }
.showcase.js .demo:not(.is-active) { visibility: hidden; }

.demo-tabs { display: none; gap: 8px; }
.showcase.js .demo-tabs { display: grid; }

.demo-tab {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  overflow: hidden;
  text-align: left;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: transparent;
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}

.demo-tab-text { min-width: 0; }

.demo-tab small {
  display: block;
  margin-bottom: 2px;
  color: var(--cyan);
  font-size: 0.8125rem;
  font-weight: 600;
}

.demo-tab b { font-size: 1.0625rem; font-weight: 700; }

/* Chevron says "click me"; it slides on hover */
.demo-tab-go {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.15s ease, stroke 0.15s ease;
}

.demo-tab:hover { border-color: var(--cyan); transform: translateX(4px); }
.demo-tab:hover .demo-tab-go { stroke: var(--cyan); transform: translateX(3px); }
.demo-tab[aria-selected="true"] { background: var(--surface); border-color: var(--cyan); }
.demo-tab[aria-selected="true"] .demo-tab-go { stroke: var(--cyan); }
.demo-tab:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* While the examples play one after another, a line fills up before the next one opens */
.demo-tab::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
}

.demo-tab.is-timing::after { animation: tab-fill var(--dwell, 4500ms) linear forwards; }

@keyframes tab-fill { to { transform: scaleX(1); } }

/* New card slides in from the side it came from */
.demo.enter-r { animation: demo-in-r 0.3s ease-out; }
.demo.enter-l { animation: demo-in-l 0.3s ease-out; }
@keyframes demo-in-r { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes demo-in-l { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }

/* Mobile pager: arrows and dots under the card (hidden on desktop) */
.demo-pager { display: none; }
.showcase { touch-action: pan-y; }

@keyframes pager-pulse {
  0%, 100% { transform: none; box-shadow: 0 0 0 0 rgba(7, 255, 225, 0); }
  50% { transform: translateX(4px); box-shadow: 0 0 0 6px rgba(7, 255, 225, 0.18); }
}

@keyframes card-nudge {
  0%, 100% { transform: none; }
  35% { transform: translateX(-22px); }
}

.section-lead {
  margin-top: 14px;
  max-width: 48ch;
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  color: var(--muted);
  text-wrap: balance;
}

/* Each demo is one panel: what it solves on top, the conversation below */
.demo {
  display: flex;
  flex-direction: column;
  padding: 22px 18px 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}

.demo-copy { padding: 0 4px; margin-bottom: 18px; }

.demo-biz {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--cyan);
  margin-bottom: 6px;
}

.demo-title {
  font-size: 1.25rem;
  font-weight: 800;
  font-stretch: 105%;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin-bottom: 8px;
}

.demo-desc {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.45;
  min-height: 2.9em; /* two lines, so the chats line up across cards */
}

/* The WhatsApp mock: light theme, like the iPhone app */
.wa {
  flex: 1;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
  background: #EFEAE2 url("assets/wa-doodle.svg") center top / 240px;
  color: #111B21;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.wa-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 10px 6px;
}

/* Round white buttons floating over the wallpaper */
.wa-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: 38px;
  padding: 0 11px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(11, 20, 26, 0.2);
  color: #111B21;
}

.wa-pill svg { width: 20px; height: 20px; }
.wa-back { gap: 1px; padding: 0 12px 0 8px; }
.wa-back b { font-size: 0.8125rem; font-weight: 500; }
.wa-call { gap: 0; padding: 0 9px 0 11px; }
.wa-call .wa-caret { width: 14px; height: 14px; color: #667781; }

.wa-avatar {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
}

.wa-contact { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.wa-contact strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #111B21; font-size: 0.9375rem; font-weight: 600; }
.wa-contact span { color: #667781; font-size: 0.75rem; }

.wa-chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  gap: 3px;
  min-height: 300px;
  padding: 8px 12px 14px;
}

.wa-msg {
  position: relative;
  max-width: 84%;
  padding: 6px 8px 6px 9px;
  border-radius: 9px;
  box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13);
  font-size: 0.9rem;
  line-height: 1.32;
  color: #111B21;
  overflow-wrap: anywhere;
}

.wa-in { align-self: flex-start; background: #fff; }
.wa-out { align-self: flex-end; background: #D9FDD3; }
.wa-msg strong { font-weight: 700; }

/* First message of a run gets the little tail */
.wa-tail { margin-top: 5px; }
.wa-tail::before {
  content: "";
  position: absolute;
  top: 0;
  width: 9px;
  height: 13px;
  background: inherit;
}
.wa-in.wa-tail { border-top-left-radius: 0; }
.wa-in.wa-tail::before { left: -8px; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.wa-out.wa-tail { border-top-right-radius: 0; }
.wa-out.wa-tail::before { right: -8px; clip-path: polygon(0 0, 100% 0, 0 100%); }

/* Time sits at the bottom right of the bubble, like WhatsApp */
.wa-meta {
  float: right;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin: 8px 0 -4px 10px;
  font-size: 0.6875rem;
  line-height: 1;
  white-space: nowrap;
  color: #667781;
}

/* Double blue check (read) */
.wa-ticks {
  width: 16px;
  height: 11px;
  font-size: 0;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2016%2011%22%20fill%3D%22none%22%20stroke%3D%22%2353BDEB%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M1.5%206L4.5%209%2011%201.5M7%208.5l1%201L14.5%201.5%22%2F%3E%3C%2Fsvg%3E") center / contain no-repeat;
}

.wa-day { align-self: center; margin: 8px 0 4px; }

.wa-day span {
  display: block;
  padding: 5px 12px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13);
  color: #54656F;
  font-size: 0.75rem;
}

/* Voice note with transcript */
.wa-audio { width: 88%; padding: 8px 9px 6px; }
.wa-voice { display: flex; align-items: center; gap: 10px; }

.wa-play {
  width: 0;
  height: 0;
  flex-shrink: 0;
  border-style: solid;
  border-width: 7px 0 7px 12px;
  border-color: transparent transparent transparent #667781;
}

.wa-wave { display: flex; align-items: center; gap: 2px; flex: 1; height: 18px; }
.wa-wave i { flex: 1; height: var(--h); border-radius: 2px; background: #A9B3B9; }
.wa-dur { font-size: 0.75rem; color: #667781; }
.wa-transcript { display: block; margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(11, 20, 26, 0.08); font-size: 0.875rem; }

/* PDF attachment: a darker card inside the bubble */
.wa-file { display: flow-root; width: 88%; padding: 4px 4px 6px; }

.wa-filecard {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 6px;
  background: rgba(11, 20, 26, 0.06);
}

.wa-pdf {
  display: grid;
  place-items: center;
  width: 30px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 4px;
  background: #E5484D;
  color: #fff;
  font-size: 0.625rem;
  font-weight: 800;
}

.wa-fname { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 0.8125rem; overflow-wrap: normal; }
.wa-fname small { color: #667781; font-size: 0.6875rem; }
.wa-file .wa-meta { margin: 6px 5px -2px 8px; }

/* Pix copy-and-paste code */
.wa-code {
  display: block;
  margin-top: 6px;
  padding: 7px 8px;
  border-radius: 6px;
  background: rgba(11, 20, 26, 0.06);
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.6875rem;
  color: #3B4A54;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Typing dots before each business reply */
.wa-typing {
  display: none;
  position: absolute;
  left: 12px;
  z-index: 1;
  gap: 4px;
  padding: 12px 13px;
  border-radius: 9px;
  border-top-left-radius: 0;
  background: #fff;
  box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13);
}

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

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

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

/* Bottom bar: plus, text field, camera and the green mic */
.wa-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 12px;
  color: #111B21;
}

.wa-input > svg { width: 26px; height: 26px; flex-shrink: 0; }

.wa-field {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 38px;
  padding: 0 10px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(11, 20, 26, 0.18);
  color: #54656F;
}

.wa-field svg { width: 22px; height: 22px; }

.wa-mic {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #1FAA59;
  color: #fff;
}

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

/* Set by JS: messages wait until the card is on screen, then arrive one by one */
.wa-chat.is-waiting > li:not(.wa-typing),
.wa-chat.is-playing > li:not(.show):not(.wa-typing) { visibility: hidden; }
.wa-chat.is-playing > li.show { animation: wa-arrive 0.26s ease-out; }
.wa-chat.is-playing > .wa-typing.show { display: flex; }

@keyframes wa-arrive {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* Instagram demos: same showcase, phone on the left on desktop */
.showcase--flip { grid-template-columns: minmax(320px, 420px) minmax(0, 1fr); }
.showcase--flip .demos { order: 0; }

/* The Instagram DM mock: dark theme, like the iPhone app. Reuses the chat structure of .wa
   (wa-chat, wa-msg, wa-in/out, wa-day) so the same script plays it. */
.ig { background: #000; color: #F5F5F5; }

.ig-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 10px;
}

.ig-back {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #1F1F22;
}

.ig-back svg { width: 20px; height: 20px; color: #F5F5F5; }
.ig-icon { width: 24px; height: 24px; flex-shrink: 0; color: #F5F5F5; }
.ig .wa-avatar { width: 34px; height: 34px; }
.ig .wa-contact strong { color: #F5F5F5; font-weight: 700; }
.ig .wa-contact span { color: #A8A8A8; }

.ig .wa-chat { gap: 4px; padding: 8px 12px 12px; }

/* Instagram demos switch to WhatsApp after the number step: both screens sit in the same spot
   and the active one shows. The pill above says which app the customer is in. */
.dm-switch { display: none; }

.showcase.js .dm-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}

.dm-app {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.dm-app svg { width: 18px; height: 18px; flex-shrink: 0; }
.dm-ig { color: #E1306C; }
.dm-wa { color: #25D366; }
.dm-app.is-on { border-color: var(--cyan); background: var(--surface); color: var(--text); }
.dm-app:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.dm-arrow { color: var(--muted); }

.dm { display: grid; gap: 16px; }
.showcase.js .dm { gap: 0; }

.showcase.js .dm > .wa {
  grid-area: 1 / 1;
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s;
}

.showcase.js .dm > .wa:not(.is-on) {
  visibility: hidden;
  opacity: 0;
  transform: translateX(-24px) scale(0.98);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s 0.35s;
}

/* The flows are long, so the window keeps one height: messages land at the bottom and older ones
   scroll up, like the real app (phones size it in the media query below) */
.showcase.js .dm > .wa { flex: none; height: 520px; }

/* A demo that stays on Instagram has no switch above the phone, so the phone takes that space */
.showcase.js .dm--solo > .wa { height: 564px; }

/* Before switching apps: a short notice over the Instagram screen */
.dm-handoff { display: none; }

.showcase.js .dm-handoff {
  display: flex;
  grid-area: 1 / 1;
  z-index: 2;
  align-self: center;
  justify-self: center;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
  color: #111B21;
  font-size: 0.9375rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.dm-handoff svg { width: 22px; height: 22px; color: #25D366; }
.showcase.js .dm.is-handoff .dm-handoff { opacity: 1; transform: none; }
.showcase.js .dm.is-handoff > .ig { opacity: 0.45; transition: opacity 0.3s ease; }

.showcase.js .dm .wa-chat {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.showcase.js .dm .wa-chat::-webkit-scrollbar { display: none; }
.showcase.js .dm .wa-chat::before { content: ""; flex: 1 0 0; }
.showcase.js .dm .wa-chat.is-waiting > li:not(.wa-typing),
.showcase.js .dm .wa-chat.is-playing > li:not(.show):not(.wa-typing) { display: none; }
.dm .wa-typing { position: static; align-self: flex-start; margin-top: 5px; }

.ig .wa-msg {
  max-width: 76%;
  padding: 8px 12px;
  border-radius: 18px;
  box-shadow: none;
  font-size: 0.9rem;
  line-height: 1.3;
  color: #F5F5F5;
}

/* Business messages leave room for the small avatar next to the last one of a run */
.ig .wa-in { margin-left: 34px; background: #26272B; }
.ig .wa-out { margin-top: 4px; background: linear-gradient(135deg, #9A3CF1, #6B4CF6); color: #fff; }
.ig .wa-in + .wa-out, .ig .wa-out + .wa-in { margin-top: 8px; }

.ig-av::before {
  content: "";
  position: absolute;
  left: -34px;
  bottom: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #26272B var(--av) center / cover;
}

/* "X te mandou mensagem sobre um comentário seu" */
.ig .wa-day { margin: 6px 0; }
.ig .wa-day span { padding: 0 8px; background: none; box-shadow: none; color: #A8A8A8; font-size: 0.75rem; text-align: center; }
.ig .ig-note span { max-width: 30ch; line-height: 1.35; }
.ig-note b { color: #D4D4D4; font-weight: 600; }

/* Message with buttons (link card, menu, free times) */
.ig .ig-card { width: 84%; max-width: 84%; padding: 10px 10px 10px; }
.ig-card { overflow-wrap: normal; }
.ig-btns { display: grid; gap: 5px; margin-top: 8px; }

.ig-btns span {
  padding: 6px 10px;
  border-radius: 10px;
  background: #3A3B40;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
}

/* Shared post: the customer sends the product post with the question */
.ig .ig-rich { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; padding: 0; background: none; }

.ig-post {
  display: flex;
  align-items: flex-end;
  width: 120px;
  height: 120px;
  padding: 8px;
  border-radius: 12px;
  background: linear-gradient(160deg, #E9D8BE, #B08B5E);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: normal;
}

.ig-bubble { padding: 8px 12px; border-radius: 18px; background: linear-gradient(135deg, #9A3CF1, #6B4CF6); }

/* Pix code inside a business message */
.ig .wa-code { background: rgba(255, 255, 255, 0.08); color: #D4D4D4; }

/* Bottom bar: camera, "Mensagem...", mic, gallery, sticker */
.ig-input {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 46px;
  margin: 4px 10px 12px;
  padding: 0 14px 0 5px;
  border-radius: 999px;
  background: #1F1F22;
  color: #F5F5F5;
}

.ig-input > svg { width: 22px; height: 22px; flex-shrink: 0; }

.ig-cam {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #6B4CF6;
}

.ig-cam svg { width: 20px; height: 20px; color: #fff; }
.ig-field { flex: 1; min-width: 0; color: #A8A8A8; font-size: 0.9375rem; }

.ig .wa-typing {
  position: static;
  align-self: flex-start;
  margin: 4px 0 0 34px;
  padding: 12px 14px;
  border-radius: 18px;
  background: #26272B;
  box-shadow: none;
}

.ig .wa-typing span { background: #A8A8A8; }

/* Services: one panel, 4 x 2 cells */
.services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  overflow: hidden;
}

.service {
  padding: 28px 26px 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service:nth-child(4n) { border-right: 0; }
.service:nth-last-child(-n + 4) { border-bottom: 0; }

/* Icons: real app logos where one exists, colored icons otherwise */
.service-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: color-mix(in srgb, var(--c) 14%, transparent);
  color: var(--c);
  margin-bottom: 20px;
}

.service-icon svg { width: 32px; height: 32px; }

.service-icon--logo,
.service-icon--file { background: rgba(255, 255, 255, 0.06); }

.service-icon--logo svg { width: 30px; height: 30px; }

/* Excel and PDF file icons carry their own padding */
.service-icon--file svg { width: 40px; height: 40px; }

.service h3 {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-bottom: 6px;
}

.service p { color: var(--muted); font-size: 0.9375rem; }

.services-more {
  margin-top: 28px;
  color: var(--muted);
}

.services-more a {
  color: var(--wa);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.services-more a:hover { color: var(--wa-hover); }

/* Comparison */
.compare-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding: 20px 4px;
  border-bottom: 1px solid var(--line);
}

.compare-row dt { font-weight: 600; }
.compare-row dd { color: var(--muted); }

.compare-row--us {
  margin-top: 12px;
  padding: 24px;
  border: 1px solid var(--cyan);
  border-radius: 16px;
  background: rgba(7, 255, 225, 0.05);
}

.compare-row--us dt { font-weight: 800; }
.compare-row--us dd { color: var(--text); }

/* Steps: a real sequence, so numbers */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  counter-reset: none;
}

.step {
  position: relative;
  padding-top: 28px;
  border-top: 2px solid var(--line);
}

.step:first-child { border-top-color: var(--cyan); }

.step-num {
  display: block;
  font-size: 3.25rem;
  font-weight: 800;
  font-stretch: 125%;
  line-height: 1;
  color: var(--cyan);
  margin-bottom: 18px;
}

.step h3 {
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.step p { color: var(--muted); font-size: 0.9875rem; }

/* About */
.about {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
}

.about-photo {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #8E9196;
}

.hero-photo picture,
.about-photo picture { display: block; height: 100%; }

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.about-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 55%, rgba(0, 4, 17, 0.85) 100%);
}

.about-copy .section-title { margin-bottom: 20px; }

.about-lead {
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  color: var(--muted);
  max-width: 52ch;
}

/* Stats: one row of three, YouTube and Instagram link out */
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 36px;
}

.stat {
  position: relative;
  display: block;
  height: 100%;
  padding: 20px 20px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

a.stat { transition: border-color 0.15s ease; }
a.stat:hover { border-color: var(--cyan); }

.stat-icon { display: block; height: 28px; margin-bottom: 14px; }
.stat-icon svg { width: auto; height: 28px; }
.stat-icon--plain { color: var(--cyan); }

.stat-arrow {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 18px;
  height: 18px;
  color: var(--muted);
}

a.stat:hover .stat-arrow { color: var(--cyan); }

.stat strong {
  display: block;
  font-size: clamp(1.625rem, 2.6vw, 2rem);
  font-weight: 800;
  font-stretch: 112%;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.stat-label { display: block; margin-top: 4px; color: var(--muted); font-size: 0.9375rem; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px 4px;
  font-weight: 600;
  font-size: 1.0625rem;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: "";
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  background:
    linear-gradient(var(--cyan), var(--cyan)) center / 12px 2px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) center / 2px 12px no-repeat;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--cyan); }

.faq details p {
  padding: 0 4px 24px;
  color: var(--muted);
  max-width: 64ch;
}

/* Final CTA */
.final {
  padding: var(--section-y) 0;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 70% at 50% 100%, rgba(37, 211, 102, 0.12), transparent 70%),
    var(--surface);
}

.final-inner { text-align: center; }

.final h2 {
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  font-weight: 800;
  font-stretch: 112%;
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 18ch;
  margin: 0 auto;
  text-wrap: balance;
}

.final p {
  margin-top: 16px;
  font-size: 1.1875rem;
  color: var(--muted);
}

.final .btn-wa { margin-top: 32px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 48px;
  font-size: 0.9375rem;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { border-radius: 50%; }
.footer-brand strong { color: var(--text); font-weight: 700; }
.footer-brand p { font-size: 0.875rem; }

.footer-links { display: flex; gap: 24px; }
.footer-links a:hover { color: var(--text); }

.footer-copy { width: 100%; font-size: 0.875rem; }
.footer-copy a { text-decoration: underline; text-underline-offset: 3px; }
.footer-copy a:hover { color: var(--text); }

/* Privacy page */
.legal-back { margin-left: auto; color: var(--muted); font-weight: 600; }
.legal-back:hover { color: var(--text); }

.legal .container { max-width: calc(68ch + 2 * var(--gutter)); }
.legal .section-title { max-width: none; margin-bottom: 8px; }
.legal-updated { color: var(--muted); margin-bottom: 40px; }
.legal h2 { font-size: 1.25rem; font-weight: 700; margin: 36px 0 12px; }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 1.2em; display: grid; gap: 10px; }
.legal li { list-style: disc; }
.legal a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .header-nav { display: none; }
  .header-inner { justify-content: space-between; }

  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .service:nth-child(2n) { border-right: 0; }
  .service:nth-last-child(-n + 4) { border-bottom: 1px solid var(--line); }
  .service:nth-last-child(-n + 2) { border-bottom: 0; }

  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { max-width: 15ch; }
  .hero-photo { justify-self: stretch; max-width: none; }
  .hero-photo img { aspect-ratio: 4 / 3; object-position: center 22%; }

  .about { grid-template-columns: minmax(0, 1fr); }
  .about-photo { max-width: 420px; aspect-ratio: 1 / 1; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }

  /* Company name on a second, smaller line */
  .brand-sub { display: block; font-size: 0.75rem; font-stretch: 100%; letter-spacing: 0; }
  .hide-sm { display: none; }
  .show-sm { display: inline; }

  .hero .btn-wa { width: 100%; }
  .hero .btn-wa, .final .btn-wa { padding: 13px 22px; font-size: 1rem; }
  .hero .btn-wa svg, .final .btn-wa svg { width: 20px; height: 20px; }


  /* Services become a compact list: icon left, text right */
  .services { grid-template-columns: minmax(0, 1fr); }
  .service {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px 18px;
    border-right: 0;
  }
  .service:nth-last-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .service:last-child { border-bottom: 0; }
  .service-icon { flex-shrink: 0; margin-bottom: 0; width: 46px; height: 46px; }
  .service-icon svg { width: 28px; height: 28px; }
  .service-icon--file svg { width: 36px; height: 36px; }


  .compare-row { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 16px 4px; }
  .compare-row--us { padding: 20px; }

  .steps { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
  .step-num { font-size: 2.5rem; }

  .showcase { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .showcase--flip .demos { order: 2; }
  .demos-head { margin-bottom: 20px; text-align: center; }
  .demos-head .section-title, .demos-head .section-lead { margin-inline: auto; }

  /* The pill names the business, so the card keeps only the phone; its one line goes here */
  .showcase.js .demo-caption {
    display: block;
    min-height: 2.9em;
    margin-top: 12px;
    text-align: center;
    color: var(--muted);
    font-size: 0.9375rem;
    line-height: 1.45;
    text-wrap: balance;
  }
  .showcase.js .demo-copy { display: none; }
  .showcase.js .demo { padding: 0; border: 0; background: none; }

  /* Chat window sized to the screen: header, pills, caption and arrows (about 270px) fit around it.
     Messages land at the bottom and older ones scroll up, like the real app. */
  .showcase.js .wa {
    flex: none;
    height: clamp(380px, calc(100vh - 270px), 640px);
    height: clamp(380px, calc(100svh - 270px), 640px);
  }
  /* Instagram demos also show the app switch above the phone (about 44px) */
  .showcase.js .dm > .wa {
    height: clamp(340px, calc(100vh - 314px), 600px);
    height: clamp(340px, calc(100svh - 314px), 600px);
  }
  .showcase.js .dm--solo > .wa {
    height: clamp(380px, calc(100vh - 270px), 640px);
    height: clamp(380px, calc(100svh - 270px), 640px);
  }
  .showcase.js .wa-chat {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
  }
  .showcase.js .wa-chat::-webkit-scrollbar { display: none; }
  .showcase.js .wa-chat::before { content: ""; flex: 1 0 0; }
  .showcase.js .wa-chat.is-waiting > li:not(.wa-typing),
  .showcase.js .wa-chat.is-playing > li:not(.show):not(.wa-typing) { display: none; }
  .showcase.js .wa-typing { position: static; margin-top: 5px; }
  .showcase.js .demo-tabs {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    /* Pills run to the screen edges */
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
  }
  .demo-tabs::-webkit-scrollbar { display: none; }
  .demo-tab { flex: none; padding: 10px 16px; border-radius: 999px; }
  .demo-tab:hover { transform: none; }
  .demo-tab b, .demo-tab-go { display: none; }
  .demo-tab::after { height: 2px; }
  .showcase.js .demo-pager {
    order: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
  }
  .pager-btn {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
  }
  .pager-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
  .pager-btn:disabled { opacity: 0.35; }
  .pager-btn:not(:disabled):active { border-color: var(--cyan); color: var(--cyan); }
  /* Until the visitor touches it, the next arrow pulses and the card gives a small nudge */
  .showcase.js:not(.touched) .pager-next:not(:disabled) { animation: pager-pulse 1.4s ease-in-out 4; border-color: var(--cyan); color: var(--cyan); }
  .showcase.nudge:not(.touched) .demo.is-active { animation: card-nudge 1.1s ease-in-out 1; }
  .pager-dots { display: flex; gap: 8px; }
  .pager-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); transition: background-color 0.2s ease, width 0.2s ease; }
  .pager-dots i.is-on { width: 20px; border-radius: 4px; background: var(--cyan); }
  .demo-tab small { margin: 0; font-size: 0.9375rem; color: var(--muted); }
  .demo-tab[aria-selected="true"] small { color: var(--cyan); }

  .stats { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .stat { padding: 16px 14px 18px; }
  .stat strong { font-size: 1.375rem; }
  .stat-arrow { top: 14px; right: 14px; }

  .final .btn-wa { width: 100%; }

  .footer-inner { flex-direction: column; align-items: flex-start; }

  /* The header button is the WhatsApp button on phones */
  .header-inner { gap: 12px; }
  .site-header .btn-wa--sm { flex-shrink: 0; white-space: nowrap; padding: 9px 13px; gap: 6px; font-size: 0.8125rem; }
  .site-header .btn-wa--sm svg { width: 16px; height: 16px; }
  .brand { gap: 8px; min-width: 0; white-space: nowrap; }
}

/* Very small phones: drop the round logo so the brand and the button share one row */
@media (max-width: 350px) {
  .brand img { display: none; }
  .site-header .btn-wa--sm { padding: 8px 11px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Privacy page: analytics opt-out switch (sets Umami's own "umami.disabled" flag) */
.analytics-toggle { display: inline-flex; align-items: center; gap: 12px; margin-top: 20px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); font-weight: 600; cursor: pointer; }
.analytics-toggle small { display: block; font-size: 0.8125rem; font-weight: 400; color: var(--muted); }
.analytics-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch { position: relative; display: inline-block; flex-shrink: 0; width: 40px; height: 22px; border-radius: 999px; background: var(--line); transition: background 0.2s ease; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--text); transition: transform 0.2s ease; }
input:checked + .switch { background: var(--cyan); }
input:checked + .switch::after { transform: translateX(18px); background: var(--bg); }
input:focus-visible + .switch { outline: 2px solid var(--cyan); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .switch, .switch::after { transition: none; }
}
