/* EmpathyBubble: folha de estilo única do site.
   A forma da marca é a bolha do logótipo: canto recto à esquerda, redondo à direita e cauda em baixo. */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #101644;
  --navy-deep: #0b0f33;
  --blue: #2563eb;
  --blue-deep: #1e3a8a;
  --sky: #93c5fd;
  --mist: #f8f3e8;
  --line: #e4dcc9;
  --white: #ffffff;
  --ink: #101644;
  --muted: #475569;
  --gutter: clamp(16px, 5vw, 72px);
  --page: 1180px;
  --edge: max(var(--gutter), calc((100vw - var(--page)) / 2));
  --band: clamp(64px, 9vw, 128px);
}

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

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

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; height: auto; }

h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1, h2 { font-weight: 700; letter-spacing: -0.03em; line-height: 1.06; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.4vw, 3.5rem); }
h3 { font-size: 1.1875rem; font-weight: 650; letter-spacing: -0.012em; line-height: 1.3; }
p { text-wrap: pretty; }

a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 2px; }
.light :focus-visible, .legal :focus-visible { outline-color: var(--blue); }
[id] { scroll-margin-top: 24px; }

.sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: var(--gutter); top: -60px; z-index: 5;
  background: var(--white); color: var(--navy); padding: 8px 14px;
}
.skip:focus { top: 8px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--page)); margin-inline: auto; }

/* Faixa da campanha */
.strip { background: var(--sky); color: var(--navy); font-size: 0.9375rem; line-height: 1.4; }
.strip .wrap { padding-block: 10px; }
.strip a { font-weight: 650; white-space: nowrap; }

/* Cabeçalho */
.top { background: var(--navy); color: var(--white); }
.top .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px clamp(16px, 3vw, 40px); padding-block: 14px;
}
.brand { display: block; flex: none; }
.brand img { width: 130px; height: 48px; object-fit: contain; object-position: left center; }
.menu { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 22px; font-size: 0.9375rem; }
.menu a { display: inline-block; padding-block: 6px; text-decoration: none; }
.menu a:hover { text-decoration: underline; }
.menu .menu-offer { font-weight: 650; color: var(--sky); }

/* Abertura: a bolha */
.hero { background: var(--navy); color: var(--white); padding-block: clamp(24px, 3.4vw, 48px) clamp(56px, 7vw, 96px); overflow: hidden; }

.bubble {
  position: relative;
  margin-right: var(--gutter);
  padding: clamp(36px, 5vw, 72px) clamp(28px, 7vw, 112px) clamp(40px, 5.4vw, 80px) var(--edge);
  background: var(--blue);
  border-radius: 0 clamp(56px, 11vw, 168px) clamp(56px, 11vw, 168px) 0;
  animation: bubble-in 700ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.bubble::after {
  content: "";
  position: absolute; top: calc(100% - 1px); left: calc(var(--edge) + clamp(32px, 9vw, 160px));
  width: clamp(44px, 8vw, 112px); aspect-ratio: 1;
  background: inherit;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
.bubble h1 { font-size: clamp(2.375rem, 5.6vw, 5rem); letter-spacing: -0.038em; line-height: 1.03; text-wrap: wrap; }
.bubble h1 span { display: block; }
.bubble.long h1 { max-width: 25ch; font-size: clamp(2rem, 5.2vw, 4.5rem); line-height: 1.05; }

@keyframes bubble-in {
  from { opacity: 0; transform: translateX(-5%); }
  to { opacity: 1; transform: none; }
}

.after-bubble {
  /* Ao lado da cauda: a frase é o que a bolha diz a seguir. */
  margin-top: clamp(28px, 3vw, 44px);
  margin-left: calc(var(--edge) + clamp(32px, 9vw, 160px) + clamp(44px, 8vw, 112px) + 28px);
  margin-right: var(--gutter);
  max-width: 44rem;
}
.after-bubble p { font-size: clamp(1.125rem, 2vw, 1.4375rem); line-height: 1.45; }
.after-bubble p + p { margin-top: 0.8em; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-block; padding: 13px 24px; font-weight: 650; line-height: 1.25;
  text-decoration: none; border: 2px solid transparent;
  border-radius: 0 999px 999px 0;
}
.btn-main { background: var(--white); color: var(--navy); }
.btn-main:hover { background: var(--sky); }
.btn-line { border-color: var(--sky); color: var(--white); }
.btn-line:hover { background: var(--sky); color: var(--navy); }

/* Bandas */
.band { padding-block: var(--band); }
.light { background: var(--white); }
.pale, .home .light { background: var(--mist); }
.deep { background: var(--blue-deep); color: var(--white); }
.dark { background: var(--navy); color: var(--white); }

.lede { margin-top: 20px; max-width: 42rem; font-size: clamp(1.125rem, 1.8vw, 1.3125rem); line-height: 1.5; }

/* O que a empresa ganha: linhas largas, não cartões */
.gains { margin-top: clamp(32px, 5vw, 64px); border-top: 2px solid var(--navy); }
.gain {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 12px clamp(24px, 5vw, 80px);
  padding-block: clamp(24px, 3.4vw, 40px); border-bottom: 1px solid var(--line);
}
.gain h3 { font-size: clamp(1.5rem, 2.8vw, 2.25rem); font-weight: 650; letter-spacing: -0.025em; line-height: 1.12; text-wrap: balance; }
.gain .eg { margin-top: 10px; color: var(--muted); font-size: 1rem; }
.gains-end { margin-top: clamp(28px, 4vw, 44px); font-size: clamp(1.25rem, 2.2vw, 1.625rem); font-weight: 650; letter-spacing: -0.015em; }

/* Quem somos */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 20px clamp(24px, 5vw, 80px); }
.split p + p { margin-top: 1em; }
.split .big { font-size: clamp(1.125rem, 1.8vw, 1.3125rem); line-height: 1.5; }

/* Contacto */
.ways { display: grid; gap: 22px; align-content: start; }
.way-label { display: block; color: var(--sky); font-size: 1rem; }
.way a {
  font-size: clamp(1.5rem, 3.4vw, 2.75rem); font-weight: 650; letter-spacing: -0.03em; line-height: 1.15;
  overflow-wrap: anywhere;
}

.deep .lede { max-width: 54rem; margin-top: 28px; font-size: clamp(1.25rem, 2.4vw, 1.875rem); line-height: 1.4; letter-spacing: -0.012em; }

/* Como funciona */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px clamp(20px, 3vw, 40px); margin-top: clamp(36px, 5vw, 64px); }
.step-n { display: block; font-size: clamp(3rem, 6vw, 5rem); font-weight: 700; letter-spacing: -0.05em; line-height: 1; color: var(--blue); }
.step h3 { margin-top: 14px; }
.step p { margin-top: 8px; color: var(--muted); font-size: 1rem; }

/* Demo */
.demo { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: clamp(32px, 7vw, 96px); align-items: center; }
.demo video { width: 100%; aspect-ratio: 9 / 16; background: var(--navy-deep); border-radius: 20px; }
.demo .btn { margin-top: 28px; }

/* Preços */
.prices { width: 100%; margin-top: clamp(32px, 5vw, 56px); border-collapse: collapse; font-size: 1rem; line-height: 1.4; }
.prices th, .prices td { padding: 13px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prices thead th { padding-top: 0; font-size: clamp(1.375rem, 2.4vw, 1.875rem); font-weight: 700; letter-spacing: -0.025em; border-bottom: 2px solid var(--navy); }
.prices thead td { border-bottom: 2px solid var(--navy); }
.prices tbody th { padding-left: 0; font-weight: 450; }
.prices .col { width: 26%; }
.prices .price td { font-size: clamp(1.25rem, 2.2vw, 1.625rem); font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; }
.prices .price th, .prices .manychat th { font-weight: 650; }
.prices .yes::before {
  content: ""; display: inline-block; width: 20px; height: 20px; vertical-align: -4px; background: var(--blue);
  clip-path: polygon(14% 50%, 5% 60%, 38% 92%, 96% 20%, 86% 11%, 37% 71%);
}
.prices .no::before { content: "\2014"; color: var(--muted); }
.note { margin-top: 28px; max-width: 46rem; }
.note + .note { margin-top: 12px; }
.small { color: var(--muted); font-size: 0.9375rem; font-style: italic; }

/* Como decorre */
.timeline { margin-top: clamp(32px, 5vw, 56px); max-width: 46rem; border-left: 2px solid var(--blue); }
.timeline li { position: relative; padding: 0 0 26px 26px; }
.timeline li:last-child { padding-bottom: 2px; }
.timeline li::before {
  content: ""; position: absolute; left: -7px; top: 9px; width: 12px; height: 12px;
  background: var(--blue); border-radius: 50%;
}
.total { margin-top: 32px; font-size: clamp(1.25rem, 2.2vw, 1.625rem); font-weight: 650; letter-spacing: -0.015em; }

/* O que não fazemos */
.nots { max-width: 46rem; }
.nots li { padding-block: 14px; border-bottom: 1px solid var(--line); }
.nots li:first-child { padding-top: 0; }
.nots li:last-child { border-bottom: 0; }

/* Perguntas */
.faq { margin-top: clamp(28px, 4vw, 48px); max-width: 52rem; border-top: 2px solid var(--navy); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; gap: 20px; padding-block: 18px;
  font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.35; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--blue); font-size: 1.5rem; font-weight: 500; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: 20px; max-width: 44rem; color: var(--muted); }

/* Prazos */
.dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px clamp(24px, 5vw, 80px); margin-top: clamp(28px, 4vw, 48px); }
.dates h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 500; }
.dates strong { display: block; margin-top: 4px; font-size: clamp(2.5rem, 7vw, 5.5rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; }

/* Páginas legais e 404 */
.legal { padding-block: clamp(40px, 7vw, 88px) var(--band); }
.legal h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
.legal .updated { margin-top: 12px; color: var(--muted); font-style: italic; }
.legal .body { margin-top: 36px; max-width: 44rem; }
.legal .body p + p { margin-top: 1.1em; }

/* Rodapé */
.foot { background: var(--navy-deep); color: #cbd5e1; font-size: 0.9375rem; line-height: 1.5; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 40px; padding-block: 32px; }
.foot-legal { display: flex; flex-wrap: wrap; gap: 2px 20px; }
.foot-legal a { display: inline-block; padding-block: 4px; }
.foot-id { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 20px; }

/* Abertura com fotografia de fundo, na página principal e na da campanha.
   A fotografia tem o assunto no terço direito; a parte esquerda fica escurecida para o texto. */
.natal, .home {
  --cauda-x: calc(var(--edge) + clamp(32px, 4vw, 64px));
  --cauda: clamp(44px, 6vw, 84px);
}
.home {
  --sombra: 16 22 68;
  --foto: url("/assets/img/home-fundo.jpg");
}

/* Página da campanha: a mesma bolha, com as cores do Natal. */
.natal {
  --navy: #0e2f26;
  --navy-deep: #08211a;
  --blue: #ad1f2d;
  --blue-deep: #8a1723;
  --sky: #f2c14e;
  --ink: #12302a;
  --muted: #4f5d56;
  --sombra: 14 47 38;
  --foto: url("/assets/img/natal-fundo.jpg");
}
.natal .hero, .home .hero {
  padding-bottom: clamp(64px, 8vw, 112px);
  background-color: var(--navy);
  background-image:
    linear-gradient(90deg, rgb(var(--sombra) / 0.96) 0%, rgb(var(--sombra) / 0.88) 46%, rgb(var(--sombra) / 0.18) 72%, rgb(var(--sombra) / 0) 88%),
    var(--foto);
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
}
.natal .bubble, .home .bubble { width: 64vw; margin-right: 0; padding-right: clamp(28px, 5vw, 80px); }
.natal .bubble::after, .home .bubble::after { left: var(--cauda-x); width: var(--cauda); }
.natal .bubble.long h1 { font-size: clamp(2rem, 3.7vw, 3.75rem); }
.home .bubble h1 { font-size: clamp(2rem, 3.9vw, 3.75rem); }
.natal .bubble, .home .bubble { padding-block: clamp(32px, 3.6vw, 56px) clamp(36px, 4vw, 60px); }
.natal .after-bubble, .home .after-bubble { margin-top: clamp(20px, 2vw, 28px); margin-left: calc(var(--cauda-x) + var(--cauda) + 24px); max-width: 34rem; }
.natal .after-bubble p, .home .after-bubble p { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); }
.natal .actions, .home .actions { margin-top: 24px; }

@media (min-width: 861px) and (max-width: 1180px) {
  /* Em ecrãs médios o texto ocupa mais largura: o escurecimento tem de ir até mais longe. */
  .natal .hero, .home .hero {
    background-image:
      linear-gradient(90deg, rgb(var(--sombra) / 0.96) 0%, rgb(var(--sombra) / 0.88) 60%, rgb(var(--sombra) / 0.2) 80%, rgb(var(--sombra) / 0) 94%),
      var(--foto);
  }
  .natal .after-bubble, .home .after-bubble { max-width: 30rem; }
}

@media (max-width: 860px) {
  /* No telemóvel a fotografia passa a faixa no topo, com a bolha a entrar por cima dela. */
  .natal .hero, .home .hero {
    padding-top: 46vw;
    background-image:
      linear-gradient(180deg, rgb(var(--sombra) / 0) 40vw, var(--navy) 62vw),
      var(--foto);
    background-size: auto 78vw;
    /* Sobe a fotografia para os embrulhos ficarem por cima da bolha. */
    background-position: right -16vw;
  }
  .natal .bubble, .home .bubble { width: auto; margin-right: var(--gutter); }
  .natal .bubble.long h1 { font-size: clamp(1.75rem, 6.6vw, 3rem); }
  .home .bubble h1 { font-size: clamp(2rem, 8.4vw, 3rem); }
  .natal .after-bubble, .home .after-bubble { margin-top: clamp(68px, 13vw, 112px); margin-left: var(--gutter); max-width: none; }

  .gain, .split { grid-template-columns: minmax(0, 1fr); }
  .split.contact { row-gap: 36px; }
  .after-bubble { margin-top: clamp(68px, 13vw, 112px); margin-left: var(--gutter); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo { grid-template-columns: minmax(0, 1fr); }
  .demo video { max-width: 300px; }

  /* A tabela passa a blocos: cada linha mostra o que é e depois os dois escalões lado a lado */
  .prices, .prices tbody { display: block; }
  .prices thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .prices tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 16px; padding-block: 14px; border-bottom: 1px solid var(--line); }
  .prices tbody tr:first-child { border-top: 2px solid var(--navy); }
  .prices tbody th { grid-column: 1 / -1; padding: 0 0 8px; border: 0; }
  .prices td { padding: 0; border: 0; }
  .prices td > .tier { display: block; color: var(--muted); font-size: 0.875rem; font-weight: 450; letter-spacing: 0; }
  .prices .price td { white-space: normal; }
  .prices .yes, .prices .no { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
  .prices .yes::before, .prices .no::before { order: 2; }
}
@media (min-width: 861px) {
  .prices .tier { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

@media (max-width: 520px) {
  .steps, .dates { grid-template-columns: minmax(0, 1fr); }
  .bubble h1 span { display: inline; }
  .btn { width: 100%; text-align: center; }
  .strip a { white-space: normal; }
}

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