/* =====================================================================
   Pulso Consultoria · site institucional one-page
   Layout: faixa diagonal verde (herdada da apresentação institucional)
   + linha de batimento (ECG) do logo como único motivo gráfico.
   ===================================================================== */

:root {
  /* Marca */
  --green-deep: #0E3B24;   /* verde escuro corporativo */
  --green: #007741;        /* verde do logo */
  --green-leaf: #3FA34D;   /* verde folha */
  --gold: #B8913A;         /* detalhe sutil */
  --ink: #2B323B;          /* cinza escuro do "Pulso" */

  /* Superfícies e texto */
  --bg: #FFFFFF;
  --bg-tint: #F1F6F2;
  --surface: #FFFFFF;
  --fg: #2B323B;
  --fg-muted: #5A6570;
  --line: #DCE6DF;
  --on-deep: #FFFFFF;
  --on-deep-muted: #CFE3D6;
  --accent: var(--green);
  --accent-hover: #00653A;
  --focus: #3FA34D;
  --free-bg: #D4AF55;       /* dourado do botão de freelancer */
  --free-bg-hover: #E0BE68;
  --free-fg: #0E3B24;

  /* Tipografia */
  --font-display: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --font-body: "Poppins", "Segoe UI", system-ui, sans-serif;
  --fs-xs: .8125rem;
  --fs-sm: .9375rem;
  --fs-md: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem);
  --fs-hero: clamp(2rem, 1.3rem + 3vw, 3.5rem);

  --radius: 10px;
  --wrap: 1160px;
  --header-h: 72px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0C1712; --bg-tint: #111F18; --surface: #14251C;
    --fg: #E7EFEA; --fg-muted: #A9B8AF; --line: #24392E;
    --green-deep: #0A2A1A; --accent: #3FA34D; --accent-hover: #4DB85B;
    --on-deep-muted: #B9D3C3; --ink: #E7EFEA;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0C1712; --bg-tint: #111F18; --surface: #14251C;
  --fg: #E7EFEA; --fg-muted: #A9B8AF; --line: #24392E;
  --green-deep: #0A2A1A; --accent: #3FA34D; --accent-hover: #4DB85B;
  --on-deep-muted: #B9D3C3; --ink: #E7EFEA;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-display); color: var(--fg); line-height: 1.15; margin: 0; text-wrap: balance; }
h2 { font-size: var(--fs-xl); font-weight: 800; letter-spacing: -.01em; }
h3 { font-size: var(--fs-lg); font-weight: 700; }
p { margin: 0; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) {
  .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); }
}

.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 16px; }

.eyebrow {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; min-height: 48px; padding: 0 24px;
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-sm);
  border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); color: #fff; }
.btn--ghost { border-color: var(--line); color: var(--fg); background: transparent; }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--sm { min-height: 40px; padding: 0 18px; }
.btn--block { width: 100%; }

/* ---------- Cabeçalho ---------- */
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__in { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: block; flex: none; }
.logo { height: 50px; width: auto; }
.logo--white { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo--color { display: none; }
  :root:not([data-theme="light"]) .logo--white { display: block; }
}
:root[data-theme="dark"] .logo--color { display: none; }
:root[data-theme="dark"] .logo--white { display: block; }

.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a {
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-sm);
  color: var(--fg); text-decoration: none; padding-block: 6px;
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a.is-active { color: var(--accent); border-bottom-color: var(--accent); }

/* Botão dourado "Seja freelancer" com selo "Cadastro aberto" */
.free-cta {
  position: relative; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 22px;
  font-family: var(--font-display); font-weight: 800; font-size: var(--fs-sm);
  color: var(--free-fg); background: var(--free-bg);
  border-radius: 999px; text-decoration: none;
  box-shadow: 0 6px 18px -6px rgba(184, 145, 58, .7);
  transition: background-color .2s, transform .2s;
}
.free-cta:hover { background: var(--free-bg-hover); color: var(--free-fg); transform: translateY(-1px); }
.free-cta__badge {
  position: absolute; top: -9px; right: 10px;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 8px; border-radius: 999px;
  background: var(--green); color: #fff;
  font-size: .625rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 1.5;
  white-space: nowrap;
}
.free-cta__dot { width: 6px; height: 6px; border-radius: 50%; background: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .free-cta__dot { animation: blink 1.6s ease-in-out infinite; }
}
@keyframes blink { 50% { opacity: .25; } }

.menu-toggle { display: none; }

@media (max-width: 1140px) {
  .free-cta { margin-left: auto; }
  .menu-toggle {
    display: grid; place-content: center; gap: 6px;
    width: 44px; height: 44px;
    background: none; border: 1px solid var(--line); border-radius: 8px; cursor: pointer;
  }
  .menu-toggle span { display: block; width: 20px; height: 2px; background: var(--fg); transition: transform .2s; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; margin: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px));
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding-block: 12px; border-bottom: 1px solid var(--line); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--bg);
  padding-block: 56px 0;
  overflow: hidden;
  isolation: isolate;
}
/* Faixa diagonal verde (referência à apresentação institucional) */
.hero::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; z-index: -1;
  height: 200px; background: var(--green-deep);
  clip-path: polygon(0 78%, 100% 0, 100% 100%, 0 100%);
}
.hero__in {
  display: grid; gap: 40px;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr);
  align-items: center;
  padding-bottom: 136px;
}
.hero__text { display: grid; gap: 20px; min-width: 0; }
.hero h1 { font-size: var(--fs-hero); font-weight: 800; letter-spacing: -.02em; max-width: 16ch; }
.lead { font-size: var(--fs-lg); color: var(--fg-muted); max-width: 52ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

.hero__line {
  position: absolute; left: 0; right: 0; bottom: 18px;
  width: 100%; height: 80px;
}
.hero__line polyline { fill: none; stroke: var(--green-leaf); stroke-width: 2.5; stroke-linejoin: round; opacity: .55; }

/* Cartão "rotina do mês" */
.month {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 24px 48px -24px rgba(14, 59, 36, .35);
  display: grid; gap: 16px; min-width: 0;
}
.month__head { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-lg); color: var(--fg); }
.month__head span { color: var(--accent); }
.month__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.month__list li { display: flex; align-items: center; gap: 12px; font-size: var(--fs-sm); }
.tick {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent);
  -webkit-mask: radial-gradient(circle, #000 70%, transparent 71%);
  position: relative;
}
.tick::after {
  content: ""; position: absolute; left: 7px; top: 4px; width: 6px; height: 11px;
  border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
.month__pulse { width: 100%; height: 40px; }
.month__pulse polyline {
  fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-linejoin: round;
  stroke-dasharray: 420; stroke-dashoffset: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .month__pulse polyline { animation: beat 3.2s ease-in-out 1s infinite; }
}
@keyframes beat {
  0%   { stroke-dashoffset: 0; }
  45%  { stroke-dashoffset: 420; }
  46%  { stroke-dashoffset: -420; }
  100% { stroke-dashoffset: 0; }
}

@media (max-width: 860px) {
  .hero { padding-top: 36px; }
  .hero::before { height: 150px; clip-path: polygon(0 55%, 100% 0, 100% 100%, 0 100%); }
  .hero__in { grid-template-columns: minmax(0, 1fr); padding-bottom: 96px; }
}

/* ---------- Seções ---------- */
.section { padding-block: 88px; }
.section--tint { background: var(--bg-tint); }
.section__head { display: grid; gap: 12px; max-width: 46ch; margin-bottom: 40px; }
@media (max-width: 600px) { .section { padding-block: 64px; } }
@media (max-width: 420px) {
  .topbar__in { gap: 12px; }
  .logo { height: 38px; }
  .free-cta { padding: 0 16px; font-size: var(--fs-xs); }
}

/* Para quem */
.audience { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; }
.audience__item { display: grid; gap: 14px; align-content: start; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); }
.audience__item p { color: var(--fg-muted); }
.audience__item--feature { background: var(--green-deep); border-color: var(--green-deep); }
.audience__item--feature h3 { color: var(--on-deep); }
.audience__item--feature p { color: var(--on-deep-muted); }
.tags { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  font-size: var(--fs-xs); font-weight: 500; color: var(--on-deep);
  border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; padding: 4px 12px;
}
@media (max-width: 760px) { .audience { grid-template-columns: minmax(0, 1fr); } .audience__item { padding: 24px; } }

/* Serviços */
.services {
  display: grid; gap: 1px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.service { background: var(--surface); padding: 28px 24px; display: grid; gap: 12px; align-content: start; }
.service h3 { font-size: var(--fs-md); }
.service ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.service li { font-size: var(--fs-sm); color: var(--fg-muted); padding-left: 16px; position: relative; }
.service--cta { background: var(--green-deep); align-content: space-between; gap: 20px; }
.service--cta h3 { color: var(--on-deep); }
.service--cta p { color: var(--on-deep-muted); font-size: var(--fs-sm); }
.service--cta .btn { justify-self: start; }
.service li::before { content: ""; position: absolute; left: 0; top: .72em; width: 6px; height: 2px; background: var(--green-leaf); }

/* Como trabalhamos */
.steps {
  list-style: none; margin: 0; padding: 0; counter-reset: step;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px;
  position: relative;
}
.step { counter-increment: step; display: grid; gap: 10px; align-content: start; padding-top: 56px; position: relative; }
.step::before {
  content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; color: #fff; background: var(--accent);
}
.step::after { content: ""; position: absolute; top: 19px; left: 52px; right: -12px; height: 2px; background: var(--line); }
.step:last-child::after { display: none; }
.step p { color: var(--fg-muted); font-size: var(--fs-sm); }
@media (max-width: 860px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .step { padding: 0 0 0 60px; }
  .step::after { top: 48px; left: 19px; right: auto; width: 2px; height: calc(100% - 20px); }
}

.plans { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--line); display: grid; gap: 24px; }
.plans__list { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 48px; }
.plans__list dt { font-family: var(--font-display); font-weight: 700; color: var(--fg); }
.plans__list dd { margin: 4px 0 0; color: var(--fg-muted); font-size: var(--fs-sm); }
@media (max-width: 680px) { .plans__list { grid-template-columns: minmax(0, 1fr); } }

/* Faixa diferenciais */
.band { background: var(--green-deep); padding-block: 80px; }
.band__in { display: grid; gap: 40px; }
.band h2 { color: var(--on-deep); }
.why { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; }
.why li { display: grid; gap: 8px; align-content: start; padding-top: 16px; border-top: 2px solid var(--gold); }
.why h3 { color: var(--on-deep); font-size: var(--fs-md); }
.why p { color: var(--on-deep-muted); font-size: var(--fs-sm); }
@media (max-width: 1100px) { .why { grid-template-columns: repeat(2, minmax(0, 1fr)); } .why li:last-child { grid-column: 1 / -1; } }
@media (max-width: 520px) { .why { grid-template-columns: minmax(0, 1fr); } }

/* Quem somos */
.about { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.about__text { display: grid; gap: 16px; max-width: 58ch; }
.about__text p { color: var(--fg-muted); }
.facts { margin: 0; display: grid; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: minmax(0, 9rem) minmax(0, 1fr); gap: 16px; padding-block: 18px; border-bottom: 1px solid var(--line); }
.facts dt { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-muted); padding-top: 2px; }
.facts dd { margin: 0; font-family: var(--font-display); font-weight: 600; color: var(--fg); }
@media (max-width: 480px) { .facts div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
@media (max-width: 860px) { .about { grid-template-columns: minmax(0, 1fr); } }

/* Contato */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.contact__info { display: grid; gap: 16px; }
.contact__info > p { color: var(--fg-muted); }
.channels { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 14px; }
.channels li { display: grid; gap: 2px; }
.channels__label { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-muted); }
.channels a, .channels span:not(.channels__label) { font-family: var(--font-display); font-weight: 600; color: var(--fg); text-decoration: none; overflow-wrap: anywhere; }
.channels a:hover { color: var(--accent); }

.form {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 28px; display: grid; gap: 16px; min-width: 0;
}
.field { display: grid; gap: 6px; min-width: 0; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field label { font-size: var(--fs-sm); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: var(--fs-sm); color: var(--fg);
  background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.field [aria-invalid="true"] { border-color: #C0392B; }
.form__error { color: #C0392B; font-size: var(--fs-sm); }
.form__fallback { font-size: var(--fs-sm); color: var(--fg-muted); }
.note { font-size: var(--fs-sm); color: var(--fg-muted); }
.optional { font-weight: 400; color: var(--fg-muted); }
.hint { font-size: var(--fs-xs); color: var(--fg-muted); }
.field input[type="file"] { padding: 10px; cursor: pointer; }
.field input[type="file"]::file-selector-button { font: inherit; font-weight: 600; margin-right: 12px; padding: 6px 14px; border: 0; border-radius: 6px; background: var(--bg-tint); color: var(--accent); cursor: pointer; }
.form__ok { color: var(--accent); font-weight: 600; font-size: var(--fs-sm); }
@media (max-width: 860px) { .contact { grid-template-columns: minmax(0, 1fr); gap: 40px; } }

/* Cadastro de freelancers */
.tags--light li { color: var(--accent); border-color: var(--line); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.days { border: 0; margin: 0; padding: 0; }
.days legend { font-size: var(--fs-sm); font-weight: 500; padding: 0; margin-bottom: 6px; }
.days__list { display: flex; flex-wrap: wrap; gap: 8px; }
.days__list label { position: relative; cursor: pointer; }
.days__list input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.days__list span {
  display: inline-grid; place-items: center; min-width: 52px; height: 40px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--bg);
  font-size: var(--fs-sm); font-weight: 500; color: var(--fg);
}
.days__list input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.days__list input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.consent { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; font-size: var(--fs-xs); line-height: 1.55; color: var(--fg-muted); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--green); }
.consent[aria-invalid="true"] span { color: #C0392B; }
@media (max-width: 480px) { .field-row { grid-template-columns: minmax(0, 1fr); } .form { padding: 20px; } }

/* Rodapé */
.footer { background: var(--green-deep); color: var(--on-deep-muted); padding-block: 48px calc(48px + env(safe-area-inset-bottom, 0px)); font-size: var(--fs-sm); }
.footer__in { display: grid; gap: 16px; justify-items: start; }
.footer__logo { height: 80px; width: auto; }
.footer__copy { font-size: var(--fs-xs); opacity: .8; }
.footer__legal { font-size: var(--fs-xs); color: var(--on-deep); font-variant-numeric: tabular-nums; }
.footer a { color: var(--on-deep); }
.footer a:hover { color: var(--free-bg); }
.consent a { color: var(--accent); }

/* Botão flutuante WhatsApp */
.wa-float {
  position: fixed; z-index: 40;
  right: calc(20px + env(safe-area-inset-right, 0px));
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--green); color: #fff;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .45);
}
.wa-float svg { width: 28px; height: 28px; fill: currentColor; }
.wa-float:hover { background: var(--accent-hover); color: #fff; }

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