/* Hive.Me · Diagnóstico
   Sistema visual inspirado no guia "Handhold" (Refero Styles):
   papel creme, serifa editorial nos títulos (Newsreader 400/500; a Cormorant desloca os acentos), Inter 400 no resto, sem cor, sem sombra,
   raios grandes em cards e pílula nos botões. */

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/newsreader-400.woff2) format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/newsreader-500.woff2) format("woff2");
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/figtree-var.woff2) format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/inter-400.woff2) format("woff2");
}

:root {
  --ink: #000000;
  --paper: #F2F1ED;
  --border: #DBD7CD;
  --stone: #5F5F5F;
  --white: #FFFFFF;
  --error: #A3301F;
  --accent: #E0C170;

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Figtree", "Inter", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  --wrap: 1200px;
  --gutter: 24px;
  --sec: clamp(72px, 9vw, 128px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* Destaque: fundo amarelo pintado atrás da palavra ou frase */
mark {
  color: var(--ink);
  background: var(--accent);
  padding: 0 .14em;
  border-radius: .12em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
p { margin: 0 0 1em; }
strong { font-weight: 700; letter-spacing: -0.016em; }
h1, h2, h3 { margin: 0; font-weight: 400; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 620px; }
.center { text-align: center; }

.skip { position: absolute; left: 16px; top: -48px; z-index: 50; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 9999px; font-size: 14px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 8px; }

/* Tipografia */
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.03em; font-feature-settings: "liga" 1, "kern" 1; }
.display { font-size: clamp(40px, 5.6vw, 72px); line-height: 1.02; font-weight: 500; letter-spacing: -0.025em; }
.heading { font-size: clamp(34px, 4vw, 48px); line-height: 1; margin-bottom: clamp(32px, 4vw, 48px); }
.sec .heading::before { content: ""; display: block; width: 44px; height: 1px; background: var(--ink); opacity: .28; margin: 0 auto 28px; }
.nw { white-space: nowrap; }
.subheading { font-size: 28px; line-height: 1.05; margin-bottom: 16px; }
.lead { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; max-width: 22em; margin: 0 auto clamp(40px, 5vw, 72px); }

/* Botões: pílula preta, o único elemento de alto contraste */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 40px; padding: 10px 18px;
  border: 0; border-radius: 9999px;
  background: var(--ink); color: var(--white);
  font: 400 14px/1.2 var(--sans); letter-spacing: -0.011em;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { opacity: .82; }
.btn:active { transform: translateY(1px); }
.btn--lg { min-height: 56px; padding: 16px 32px; font-size: 14px; letter-spacing: .02em; }
.btn--block { width: 100%; }

/* Navegação */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(242, 241, 237, .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.nav__in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav__logo img { width: 120px; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__link { font-size: 14px; text-decoration: none; }
.nav__link:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* Dobra 1 */
.hero { padding-top: clamp(56px, 8vw, 112px); overflow: hidden; }
.hero__in { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero h1 { max-width: 17em; }
.hero__sub { max-width: 34em; margin: 32px 0 36px; font-size: 19px; line-height: 1.5; }
.hero__art { margin-top: clamp(24px, 4vw, 48px); height: clamp(180px, 26vw, 340px); position: relative; }
.hero__art svg { position: absolute; left: 50%; top: 0; width: max(1400px, 110vw); height: 100%; transform: translateX(-50%); }
.waves path { fill: none; stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; }
.waves { animation: drift 18s ease-in-out infinite alternate; transform-origin: center; }
@keyframes drift { from { transform: translateX(-1.5%); } to { transform: translateX(1.5%); } }

/* Seções */
.sec { padding: var(--sec) 0 0; }
.sec:last-of-type { padding-bottom: var(--sec); }

/* Dobra 2 */
.msg__def { margin-bottom: clamp(28px, 3.5vw, 44px); }
.msg__body { text-align: center; }
.msg__body p { font-size: 19px; line-height: 1.62; margin-bottom: 1.35em; }
.msg__body p:last-child { margin-bottom: 0; }
.msg__body > p:nth-of-type(2) { font-size: 23px; line-height: 1.35; letter-spacing: -0.018em; }
.kicker {
  font-size: 13px; line-height: 1.4; text-transform: uppercase; letter-spacing: .18em;
  color: var(--stone); margin-bottom: 20px !important;
}
.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 1.4em; }
.tags li { padding: 8px 15px; border: 1px solid var(--border); border-radius: 9999px; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; background: var(--white); }
.pull { font-size: clamp(28px, 3vw, 36px) !important; line-height: 1.05 !important; text-align: center; margin: 48px 0 !important; }

/* Dobra 3 */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  background: var(--white); border-radius: 28px; padding: 40px 32px 36px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0, 0, 0, .07); }
.card__n {
  width: 76px; height: 76px; border-radius: 50%; background: var(--accent);
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 32px; line-height: 1; letter-spacing: -0.03em;
}
.card p { margin: 0; font-size: 17px; line-height: 1.55; max-width: 24em; }

/* Dobra 4 */
.slab { background: var(--ink); color: var(--paper); border-radius: 32px; padding: clamp(56px, 7vw, 96px) clamp(24px, 5vw, 72px); }
.slab .heading::before { width: 48px; height: 2px; background: var(--accent); opacity: 1; }
.slab .btn { background: var(--paper); color: var(--ink); }
.slab .btn:hover { opacity: .88; }
.get { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 48px; }
.get__item { padding: 0 32px; border-left: 1px solid rgba(242, 241, 237, .22); text-align: center; }
.get__item:first-child { padding-left: 0; border-left: 0; }
.get__item:last-child { padding-right: 0; }
.get__item p { margin: 0; font-size: 17px; line-height: 1.55; color: rgba(242, 241, 237, .78); }
.subheading--alt {
  font-family: var(--sans); font-weight: 700; font-size: 16px; line-height: 1.15;
  text-transform: uppercase; letter-spacing: -0.015em; margin-bottom: 18px;
}
.subheading--alt::before {
  content: ""; display: block; width: 26px; height: 2px;
  background: var(--accent); margin: 0 auto 20px;
}

/* Dobra 5 */
#quem { padding-top: clamp(40px, 5vw, 72px); }
.story__in .people { margin: 32px auto 40px; }
.about { display: flex; flex-direction: column; align-items: center; gap: clamp(40px, 5vw, 64px); }
.people { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: 100%; max-width: 560px; }
.person { margin: 0; }
.person img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 25%; border-radius: 24px; background: var(--border); }
.person figcaption { margin-top: 12px; font-size: 14px; text-align: center; }
.about__text { max-width: 720px; text-align: center; }
.about__text p { font-size: 18px; line-height: 1.6; margin-bottom: 1.3em; }
.about__text p:first-child { font-size: 21px; line-height: 1.45; }
.about__text p:last-child { margin: 0; }

/* Formulário */
.formcard { background: var(--white); border-radius: 32px; padding: clamp(32px, 6vw, 72px) clamp(20px, 6vw, 96px); max-width: 880px; margin: 0 auto; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
.field { display: flex; flex-direction: column; }
.field--full, .field--check { grid-column: 1 / -1; }
.field label { font-size: 14px; margin-bottom: 6px; }
.field input[type=text], .field input[type=tel], .field input[type=email], .field select {
  width: 100%; height: 48px; padding: 0 14px;
  font: 400 16px var(--sans); color: var(--ink);
  background: var(--paper); border: 1px solid var(--border); border-radius: 8px;
  -webkit-appearance: none; appearance: none;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px;
}
.field input::placeholder { color: #8A8A87; }
.field input:hover, .field select:hover { border-color: #B9B4A8; }
.field input:focus-visible, .field select:focus-visible { outline: none; border-color: var(--ink); background: var(--white); }
.field.is-invalid input, .field.is-invalid select { border-color: var(--error); }
.field__err { min-height: 20px; margin: 4px 0 6px; font-size: 13px; color: var(--error); }
.field--hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field--check { display: grid; grid-template-columns: 22px 1fr; column-gap: 12px; align-items: start; margin-top: 4px; }
.field--check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); cursor: pointer; }
.field--check label { font-size: 14px; line-height: 1.45; color: var(--stone); margin: 0; }
.field--check .field__err { grid-column: 2; }
.form .btn { grid-column: 1 / -1; margin-top: 8px; }
.form__status { grid-column: 1 / -1; margin: 14px 0 0; font-size: 14px; min-height: 1.5em; text-align: center; }
.form__status.is-error { color: var(--error); }
.spinner { display: none; width: 16px; height: 16px; border: 1.5px solid rgba(255,255,255,.35); border-top-color: var(--white); border-radius: 50%; animation: spin .8s linear infinite; }
.is-loading .spinner { display: inline-block; }
.is-loading { pointer-events: none; opacity: .8; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Páginas simples (obrigado, privacidade, 404) */
.page { padding: clamp(56px, 9vw, 120px) 0 var(--sec); min-height: 60vh; text-align: center; }
.page ul { text-align: left; display: inline-block; }
.page h1 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.03em; font-size: clamp(40px, 5vw, 64px); line-height: 1; margin-bottom: 32px; }
.page h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.03em; font-size: 28px; line-height: 1.05; margin: 40px 0 12px; }
.page p, .page li { font-size: 18px; line-height: 1.6; }

/* Rodapé */
.foot { padding: 40px 0 48px; border-top: 1px solid var(--border); }
.foot__in { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.foot__in img { width: 96px; }
.foot__nav { display: flex; gap: 24px; justify-content: center; }
.foot__nav a, .foot__copy { font-size: 14px; color: var(--stone); text-decoration: none; }
.foot__nav a:hover { color: var(--ink); }
.foot__copy { margin: 0; }

/* Responsivo */
@media (max-width: 960px) {
  .cards, .get { grid-template-columns: 1fr; }
  .cards { gap: 12px; }
  .get { gap: 32px; }
  .get__item, .get__item:first-child, .get__item:last-child { padding: 0; border-left: 0; }
  .get__item + .get__item { border-top: 1px solid rgba(242, 241, 237, .22); padding-top: 32px; }
}
@media (max-width: 560px) {
  :root { --gutter: 16px; }
  .nav__link { display: none; }
  .nav__logo img { width: 92px; }
  .nav__in .btn { font-size: 12.5px; padding: 9px 13px; letter-spacing: -0.01em; }
  .btn--lg { width: 100%; }
  .form { grid-template-columns: 1fr; }
  .card { padding: 28px; gap: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}

/* Versão B (teste de leitura) */
.vb .cta-mid { margin-top: 48px; }
.vb .person figcaption strong { display: block; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 8px; color: var(--ink); }
.vb .people .person figcaption { color: var(--stone); line-height: 1.45; }
.vb .story { width: 100%; max-width: 720px; }
.vb .story summary {
  list-style: none; cursor: pointer; margin: 0 auto; width: max-content; max-width: 100%;
  padding: 12px 22px; border: 1px solid var(--ink); border-radius: 9999px; font-size: 14px;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.vb .story summary::-webkit-details-marker { display: none; }
.vb .story summary::after { content: " +"; }
.vb .story[open] summary::after { content: " −"; }
.vb .story summary:hover { background: var(--ink); color: var(--white); }
.vb .story .about__text { margin-top: 32px; }

/* Botão flutuante de WhatsApp */
.wa {
  position: fixed; right: 20px; bottom: 20px; z-index: 30;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25D366; color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
  transition: transform .2s var(--ease);
}
.wa:hover { transform: scale(1.06); }
.wa:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (max-width: 560px) { .wa { right: 16px; bottom: 16px; width: 56px; height: 56px; } }
