/* GV Contabiliza — estilos do site
   Cores tiradas do logo: grafite, mostarda, pedra e névoa. */

@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  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 {
  --grafite: #2a2824;
  --grafite-claro: #403d37;
  --mostarda: #f2b531;
  --mostarda-escura: #e2a11b;
  --pedra: #6f6a61;
  --nevoa: #c9c4ba;
  --linha: #e4e1db;
  --cal: #f4f3f1;
  --papel: #ffffff;
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --max: 72rem;
  --header-h: 4.5rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  font-family: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--grafite);
  background: var(--papel);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--grafite);
  outline-offset: 3px;
}

.on-dark :focus-visible {
  outline-color: var(--mostarda);
}

[hidden] {
  display: none !important;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--grafite);
  color: #fff;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

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

/* Tipografia */

.title-xl {
  font-size: clamp(2.6rem, 1.6rem + 4vw, 4.5rem);
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

.title-l {
  font-size: clamp(2rem, 1.45rem + 2.2vw, 2.9rem);
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.title-s {
  font-size: 1.1875rem;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.lead {
  font-size: clamp(1.125rem, 1.04rem + 0.4vw, 1.3rem);
  line-height: 1.55;
  max-width: 33em;
}

/* Botões */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.25rem;
  padding: 0.85rem 1.5rem;
  border: 0;
  border-radius: 2px;
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.btn svg {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
}

.btn-primary {
  background: var(--mostarda);
  color: var(--grafite);
}

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

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

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

.btn-sm {
  min-height: 2.75rem;
  padding: 0.55rem 1.05rem;
  font-size: 0.9375rem;
}

.text-link {
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--mostarda);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35em;
}

.text-link:hover {
  text-decoration-color: currentColor;
}

/* Marcas do logo (visto, barra e losango) */

.tick {
  width: 2.1rem;
  height: auto;
  color: var(--grafite);
}

.on-dark .tick {
  color: #fff;
}

/* Cabeçalho */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--linha);
}

@supports (backdrop-filter: blur(10px)) {
  .site-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(1.4) blur(10px);
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
}

.brand {
  flex: none;
}

.brand img {
  height: 2.25rem;
  width: auto;
}

@media (min-width: 40rem) {
  .brand img {
    height: 2.75rem;
  }
}

.nowrap {
  white-space: nowrap;
}

.nav {
  display: none;
}

.nav a {
  padding-block: 0.4rem;
  font-size: 1rem;
  text-decoration: none;
  background: linear-gradient(var(--mostarda), var(--mostarda)) 0 100% / 0 2px no-repeat;
  transition: background-size 0.2s ease;
}

.nav a:hover {
  background-size: 100% 2px;
}

.header-cta .long {
  display: none;
}

@media (min-width: 40rem) {
  .header-cta .long {
    display: inline;
  }
}

@media (min-width: 64rem) {
  .nav {
    display: flex;
    gap: 1.5rem;
    margin-left: auto;
    margin-right: 1.25rem;
  }

  /* No computador a logo cresce para o "contabilidade · consultoria" ficar legível */
  .brand img {
    height: 3rem;
  }
}

@media (min-width: 75rem) {
  .nav {
    gap: 2rem;
  }

  .brand img {
    height: 3.5rem;
  }
}

@media (max-width: 23.5rem) {
  .header-inner {
    gap: 0.75rem;
  }

  .brand img {
    height: 2rem;
  }

  .header-cta {
    padding-inline: 0.8rem;
  }
}

/* Abertura */

.hero {
  overflow-x: hidden;
  padding-block: clamp(2.75rem, 6vw, 5.5rem) clamp(4.5rem, 9vw, 7.5rem);
}

.hero-grid {
  display: grid;
  gap: clamp(3.5rem, 7vw, 5rem);
  align-items: center;
}

.hero-copy .lead {
  margin-top: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: 2.25rem;
}

.credential {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
  font-size: 0.9375rem;
  color: var(--pedra);
}

.credential .tick {
  width: 1.6rem;
  flex: none;
}

.hero-visual {
  position: relative;
  width: min(100%, 26rem);
  margin-inline: auto;
}

.hero-photo {
  position: relative;
  z-index: 1;
  display: block;
  background: #1b1b1b;
}

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

/* Conversa de exemplo: no celular fica abaixo da foto; no computador, sobre a borda dela */

.chat {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 0.6rem;
  margin-top: -4.25rem;
  padding-inline: 0.75rem;
}

.msg {
  position: relative;
  max-width: 15.5rem;
  padding: 0.65rem 0.9rem 0.7rem;
  border-radius: 14px;
  font-size: 0.9375rem;
  line-height: 1.42;
  box-shadow: 0 14px 32px -14px rgba(0, 0, 0, 0.55);
}

.msg .who {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.msg .who small {
  font-size: inherit;
  font-weight: 400;
  color: var(--pedra);
}

.msg-in {
  justify-self: end;
  background: var(--mostarda);
  color: var(--grafite);
  border-bottom-right-radius: 3px;
}

.reply {
  display: grid;
  justify-self: start;
}

.reply > .msg {
  grid-area: 1 / 1;
}

.msg-out,
.typing {
  background: #fff;
  color: var(--grafite);
  border-bottom-left-radius: 3px;
}

.msg-out {
  max-width: 17rem;
}

.typing {
  display: flex;
  gap: 0.3rem;
  align-self: start;
  justify-self: start;
  padding: 0.95rem 1rem;
  opacity: 0;
  visibility: hidden;
}

.typing span {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--pedra);
}

@media (min-width: 56rem) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  }

  .hero-visual {
    margin-inline: auto 0;
  }
}

/* Balões sobre a borda da foto só quando há espaço para não cobrir o rosto */
@media (min-width: 75rem) {
  .chat {
    position: absolute;
    inset: 0;
    display: block;
    margin: 0;
    padding: 0;
  }

  .msg-in {
    position: absolute;
    top: 8%;
    left: -4.5rem;
    max-width: 13rem;
  }

  .reply {
    position: absolute;
    bottom: 1.25rem;
    left: clamp(-4rem, 4.5rem - 10vw, -1rem);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .msg-in {
    animation: msg-pop 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) 0.6s both;
  }

  .typing {
    animation: typing-window 1.35s linear 1.3s both;
  }

  .typing span {
    animation: typing-dot 0.9s ease-in-out infinite;
  }

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

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

  .msg-out {
    animation: msg-pop 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) 2.65s both;
  }
}

@keyframes msg-pop {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes typing-window {
  0% {
    opacity: 0;
    visibility: visible;
  }
  10%,
  90% {
    opacity: 1;
    visibility: visible;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes typing-dot {
  0%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

/* Seções */

.section {
  padding-block: clamp(4.5rem, 9vw, 7.5rem);
}

.section--cal {
  background: var(--cal);
}

.section--dark {
  background: var(--grafite);
  color: #fff;
}

.section-head {
  max-width: 40rem;
}

.section-head p {
  margin-top: 1rem;
  color: var(--pedra);
  text-wrap: balance;
}

/* Diferenciais */

.features {
  display: grid;
  gap: 2.75rem 2.5rem;
  margin-top: clamp(2.75rem, 5vw, 4rem);
}

.feature-mark {
  width: 2.6rem;
  margin-bottom: 1.25rem;
}

.feature p {
  margin-top: 0.6rem;
  color: var(--pedra);
}

@media (min-width: 40rem) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .features {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Serviços */

.services {
  display: grid;
  gap: 2.5rem 4.5rem;
  margin-top: clamp(2.75rem, 5vw, 4rem);
}

.service {
  display: grid;
  grid-template-columns: 2.1rem minmax(0, 1fr);
  column-gap: 1.15rem;
}

.service .tick {
  margin-top: 0.4rem;
}

.service p {
  margin-top: 0.4rem;
  color: var(--pedra);
}

@media (min-width: 48rem) {
  .services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.mei {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  margin-top: clamp(3.25rem, 6vw, 4.5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--linha);
}

.mei p {
  max-width: 38rem;
}

.mei strong {
  font-weight: 600;
}

/* Como começar */

.steps {
  display: grid;
  gap: 2.75rem 2.5rem;
  margin-top: clamp(2.75rem, 5vw, 4rem);
}

.step-num {
  width: 3.4rem;
  height: 3.4rem;
  margin-bottom: 1.25rem;
}

.step-num text {
  font-family: "Jost", "Futura", system-ui, sans-serif;
  font-weight: 600;
}

.step p {
  margin-top: 0.5rem;
  color: var(--pedra);
}

@media (min-width: 52rem) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Quem cuida */

.about-grid {
  display: grid;
  gap: 3rem;
  align-items: start;
}

.about-copy p {
  margin-top: 1.25rem;
  max-width: 34em;
}

.about-copy .title-l + p {
  margin-top: 1.5rem;
}

.ficha {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--nevoa);
}

.ficha .tick {
  width: 2.6rem;
  margin-bottom: 1.75rem;
}

.ficha dl {
  display: grid;
  gap: 1.4rem;
}

.ficha dt {
  font-size: 0.875rem;
  color: var(--pedra);
}

.ficha dd {
  margin-top: 0.15rem;
  font-weight: 500;
  line-height: 1.45;
}

.ficha dd > span {
  display: block;
  font-weight: 400;
  color: var(--pedra);
}

@media (min-width: 56rem) {
  .about-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 5rem;
  }
}

/* Contato e rodapé */

.contact-grid {
  display: grid;
  gap: 3rem;
  align-items: end;
}

.contact-copy p {
  margin-top: 1.25rem;
  max-width: 30em;
  color: var(--nevoa);
}

.contact-copy .btn {
  margin-top: 2rem;
}

.contact-list {
  display: grid;
  gap: 1.35rem;
}

.contact-list dt {
  font-size: 0.875rem;
  color: var(--nevoa);
}

.contact-list dd {
  margin-top: 0.1rem;
  font-size: 1.25rem;
  overflow-wrap: anywhere;
}

.contact-list a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  transition: border-color 0.15s ease;
}

.contact-list a:hover {
  border-color: var(--mostarda);
}

@media (min-width: 56rem) {
  .contact-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 5rem;
  }
}

.site-footer {
  padding-block: 2.5rem 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--grafite);
  color: var(--nevoa);
  font-size: 0.9rem;
}

.footer-inner {
  display: grid;
  gap: 1.75rem;
}

.footer-logo img {
  height: 2.25rem;
  width: auto;
}

@media (min-width: 64rem) {
  .footer-logo img {
    height: 3.5rem;
  }
}

.footer-legal p + p {
  margin-top: 0.3rem;
}

@media (min-width: 56rem) {
  .footer-inner {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 4rem;
  }

  .footer-legal {
    text-align: right;
  }
}

/* Consulta "Posso ser MEI?" */

.nav a[aria-current="page"] {
  background-size: 100% 2px;
}

.container.tool-narrow {
  width: min(100% - 2 * var(--gutter), 48rem);
}

.tool-hero {
  padding-block: clamp(2.75rem, 6vw, 4.5rem) 1.25rem;
}

.tool-hero .lead {
  margin-top: 1rem;
}

.search {
  margin-top: 2rem;
}

.search-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.search-field {
  position: relative;
}

.search-field svg {
  position: absolute;
  top: 50%;
  left: 1rem;
  width: 1.4rem;
  height: 1.4rem;
  transform: translateY(-50%);
  color: var(--pedra);
  pointer-events: none;
}

.search-field input {
  width: 100%;
  min-height: 3.75rem;
  padding: 0.75rem 1rem 0.75rem 3.1rem;
  border: 2px solid var(--grafite);
  border-radius: 2px;
  background: #fff;
  color: var(--grafite);
  font: inherit;
  font-size: 1.1875rem;
  -webkit-appearance: none;
  appearance: none;
}

.search-field input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.search-field input::placeholder {
  color: var(--pedra);
  opacity: 1;
}

.search-field input:focus {
  outline: 3px solid var(--mostarda);
  outline-offset: 2px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.chips-label {
  margin-right: 0.25rem;
  font-size: 0.9375rem;
  color: var(--pedra);
}

.chip {
  min-height: 2.5rem;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--nevoa);
  border-radius: 2px;
  background: #fff;
  color: var(--grafite);
  font: inherit;
  font-size: 0.9375rem;
  cursor: pointer;
}

.chip:hover {
  border-color: var(--grafite);
}

.source {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: var(--pedra);
}

.tool-results {
  padding-block: 0.5rem clamp(3.5rem, 7vw, 5.5rem);
}

.results-count {
  min-height: 1.6em;
  font-weight: 600;
}

.occ-list {
  margin-top: 0.75rem;
  border-top: 1px solid var(--linha);
}

.js:not(.mei-ready) .occ-list {
  display: none;
}

.occ {
  display: grid;
  grid-template-columns: 2.1rem minmax(0, 1fr);
  column-gap: 1rem;
  row-gap: 0.75rem;
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--linha);
}

.occ[hidden] {
  display: none;
}

.occ::before {
  content: "";
  grid-row: 1;
  width: 2.1rem;
  height: 1.5rem;
  margin-top: 0.15rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='307.5 386.5 600 426'%3E%3Cpath fill='%232A2824' d='M385.5 560.5 492 667 414 745 307.5 638.5Z'/%3E%3Cpath fill='%23F2B531' d='M829.5 386.5 907.5 464.5 559.5 812.5 481.5 734.5Z'/%3E%3C/svg%3E") no-repeat center / contain;
}

.occ-name {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
}

.occ-cnae {
  margin-top: 0.35rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--pedra);
}

.occ-code {
  display: inline-block;
  margin-right: 0.4rem;
  padding: 0 0.4rem;
  border: 1px solid var(--nevoa);
  border-radius: 2px;
  color: var(--grafite);
  font-size: 0.8125rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.occ-tax {
  margin-top: 0.35rem;
  font-size: 0.9375rem;
}

.occ-note {
  margin-top: 0.35rem;
  font-size: 0.875rem;
  color: var(--pedra);
}

.occ-cta {
  grid-column: 2;
  justify-self: start;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--mostarda);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}

.occ-cta:hover {
  text-decoration-color: currentColor;
}

@media (min-width: 48rem) {
  .occ {
    grid-template-columns: 2.1rem minmax(0, 1fr) auto;
    align-items: start;
  }

  .occ-cta {
    grid-column: 3;
    grid-row: 1;
    margin-top: 0.15rem;
    white-space: nowrap;
  }
}

.no-results {
  margin-top: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--nevoa);
}

.no-results[hidden] {
  display: none;
}

.no-results p + p {
  margin-top: 0.5rem;
  color: var(--pedra);
}

.no-results .btn {
  margin-top: 1.25rem;
}

.results-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 1.5rem;
}

.text-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--grafite);
  font: inherit;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--mostarda);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35em;
  cursor: pointer;
}

.text-button:hover {
  text-decoration-color: currentColor;
}

.req-list {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.req-list li {
  display: grid;
  grid-template-columns: 2.1rem minmax(0, 1fr);
  column-gap: 1rem;
}

.req-list .tick {
  margin-top: 0.4rem;
}

.req-list strong {
  font-weight: 600;
}

.callout {
  margin-top: 2.5rem;
  padding: 1.5rem 1.75rem;
  border-left: 4px solid var(--mostarda);
  background: #fff;
}

.callout p + p {
  margin-top: 0.5rem;
}

.disclaimer {
  margin-top: 2rem;
  font-size: 0.875rem;
  color: var(--pedra);
}

/* Página 404 */

.notfound {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-content: center;
  padding-block: 4rem;
}

.notfound p {
  margin-top: 1rem;
  color: var(--pedra);
}

.notfound .btn {
  margin-top: 2rem;
  justify-self: start;
}

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

  .typing {
    display: none;
  }
}

.mei-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}
