/*
 * Himura — revisão transversal do funil
 * Esta folha fica depois dos estilos históricos e concentra as decisões de
 * navegação, ritmo e responsividade que devem ser iguais em todas as páginas.
 */

:root {
  --funnel-shell: min(1280px, calc(100% - 64px));
  --funnel-radius: 2px;
  --funnel-shadow: 0 18px 60px rgba(21, 24, 23, .09);
}

html {
  scroll-padding-top: 112px;
}

body {
  overflow-x: hidden;
}

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.section-shell,
.lp-section,
.lp-hero,
.lp-band > ul {
  width: var(--funnel-shell);
}

.section-heading,
.pricing-header,
.addons-header,
.portfolio-header,
.faq-grid > header,
.contact-grid > header {
  max-width: 1120px;
}

.section-heading h2,
.pricing-header h2,
.addons-header h2,
.portfolio-header h2,
.faq-grid h2,
.contact-grid h2 {
  max-width: 18ch;
  text-wrap: balance;
}

.section-heading > p:last-child,
.pricing-header > p:last-child,
.addons-header > p:last-child,
.portfolio-header > p:last-child {
  max-width: 68ch;
}

/* Cabeçalho: menos ruído, alvos maiores e melhor leitura em ecrãs largos. */
.site-header {
  min-height: 76px;
  padding-inline: clamp(20px, 3vw, 48px);
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
}

.site-header nav {
  gap: clamp(18px, 2vw, 30px);
}

.site-header nav a,
.header-cta {
  font-size: .84rem;
}

.site-header nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.header-cta {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
}

/* Primeiro ecrã: promessa, prova e um único ponto de entrada evidente. */
.hero {
  min-height: auto;
  padding: clamp(150px, 13vw, 190px) max(32px, calc((100vw - 1280px) / 2)) clamp(70px, 7vw, 104px);
  gap: clamp(48px, 6vw, 96px);
  align-items: center;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, .88fr);
}

.hero h1 {
  max-width: 13ch;
  font-size: clamp(3.2rem, 5.25vw, 5.35rem);
  line-height: .96;
  text-wrap: balance;
}

.hero-lede {
  max-width: 62ch;
  margin-top: 26px;
  font-size: clamp(1.02rem, 1.2vw, 1.14rem);
}

.hero-capture {
  max-width: 680px;
}

.capture-row input,
.capture-row button {
  min-height: 56px;
}

.hero-paths a,
.service-card,
.pain-grid article,
.lp-grid-3 article,
.lp-works a {
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.hero-paths a:hover,
.service-card:hover,
.pain-grid article:hover,
.lp-grid-3 article:hover,
.lp-works a:hover {
  transform: translateY(-4px);
  box-shadow: var(--funnel-shadow);
}

/*
 * Diagnóstico: a grelha exterior continha apenas o formulário mas reservava
 * duas colunas. O formulário era depois dividido outra vez, ficando com cerca
 * de 40% da largura útil. Aqui passa a ocupar o shell inteiro.
 */
.diagnostic-accordion .diagnostic-grid {
  display: block;
  width: 100%;
}

.diagnostic-accordion .diagnostic {
  width: 100%;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, .75fr);
  gap: clamp(28px, 4vw, 56px);
}

.diagnostic-accordion > summary {
  min-height: 94px;
  padding: 24px 64px 24px 0;
}

.diagnostic-accordion > summary::after {
  right: 8px;
  display: grid;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  place-items: center;
}

.diagnostic-accordion .addons-summary-title {
  max-width: 34ch;
  font-size: clamp(1.45rem, 2vw, 2rem);
  text-wrap: balance;
}

.diagnostic-accordion .addons-summary-hint {
  max-width: 72ch;
  font-size: .95rem;
  line-height: 1.55;
}

.diagnostic-accordion .symptom {
  min-height: 70px;
  padding: 16px 18px;
}

.diagnostic-accordion .diagnostic-panel {
  top: 112px;
  padding: clamp(26px, 3vw, 38px);
  box-shadow: var(--funnel-shadow);
}

/* Creator: cabeçalho e ferramenta deixam de competir em três colunas. */
.creator-diagnostic .diagnostic-grid {
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 64px);
}

.creator-diagnostic .diagnostic-grid > header {
  display: grid;
  max-width: 1120px;
  gap: 24px clamp(36px, 6vw, 90px);
  align-items: end;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
}

.creator-diagnostic .diagnostic-grid > header .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -4px;
}

.creator-diagnostic .diagnostic-grid h2 {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(2.9rem, 5vw, 5.1rem);
  text-wrap: balance;
}

.creator-diagnostic .diagnostic-grid > header > p:last-child {
  max-width: 48ch;
  margin: 0 0 6px;
  font-size: 1.02rem;
  line-height: 1.7;
}

.creator-diagnostic .diagnostic {
  width: min(100%, 1120px);
  margin-inline: auto;
  gap: clamp(28px, 4vw, 52px);
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, .75fr);
}

.creator-diagnostic .symptom {
  min-height: 72px;
  padding: 16px 18px;
}

.creator-diagnostic .diagnostic-panel {
  top: 112px;
  padding: clamp(28px, 3vw, 38px);
  box-shadow: var(--funnel-shadow);
}

/* Landing pages de restaurante e negócio local. */
.lp-top {
  min-height: 76px;
  padding-inline: max(24px, calc((100vw - 1280px) / 2));
}

.lp-top-nav a {
  min-height: 44px;
  padding-inline: 8px;
  font-size: .84rem;
}

.lp-hero {
  padding: clamp(54px, 6vw, 88px) 0;
  gap: clamp(46px, 6vw, 88px);
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, .72fr);
}

.lp-hero > *,
.lp-card,
.lp-form,
.lp-form label,
.cv-form,
.cv-form label,
.project,
.project > div {
  min-width: 0;
  max-width: 100%;
}

.lp-hero h1 {
  max-width: 12ch;
  font-size: clamp(3.2rem, 5.25vw, 5.35rem);
  line-height: .96;
  text-wrap: balance;
}

.lp-lede {
  max-width: 62ch;
  font-size: clamp(1.02rem, 1.2vw, 1.12rem);
  line-height: 1.7;
}

.lp-card {
  top: 100px;
  padding: clamp(28px, 3vw, 40px);
  box-shadow: var(--funnel-shadow);
}

.lp-card h2,
.lp-section h2,
.cv-block h2,
.cv-form-wrap h2 {
  text-wrap: balance;
}

.lp-form input,
.lp-form select,
.lp-form textarea,
.cv-form input,
.cv-form select,
.cv-form textarea {
  width: 100%;
  max-width: 100%;
  min-height: 50px;
  font-size: 16px;
}

.project ul {
  flex-wrap: wrap;
}

.compare-arrow {
  min-width: 0;
  max-width: 100%;
}

.lp-form label > span,
.cv-form label > span {
  font-size: .86rem;
}

.lp-form .lp-consent,
.cv-form .cv-consent {
  align-items: flex-start;
}

.lp-form .lp-consent input[type="checkbox"],
.cv-form .cv-consent input[type="checkbox"] {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}

.lp-section {
  padding-block: clamp(54px, 6vw, 82px);
}

.lp-section > h2 {
  max-width: 19ch;
  margin-bottom: 30px;
  font-size: clamp(2.2rem, 3.8vw, 3.65rem);
  line-height: 1;
}

.lp-grid-3 {
  gap: 18px;
}

.lp-grid-3 article {
  min-height: 100%;
  padding: 28px;
  background: rgba(255, 253, 247, .72);
}

.lp-offer > div {
  padding: clamp(28px, 4vw, 48px);
}

.lp-works {
  gap: 18px;
}

.lp-works a {
  background: var(--white);
}

.lp-objections {
  max-width: 900px;
}

.lp-objections summary {
  min-height: 64px;
  display: flex;
  align-items: center;
  padding-right: 44px;
  font-size: 1rem;
}

.lp-final {
  gap: 30px;
}

/* Convite: mantém o tom de carta, mas com o mesmo conforto de leitura. */
.cv-shell {
  width: min(960px, calc(100% - 64px));
}

.cv-open h1 {
  max-width: 15ch;
  font-size: clamp(3rem, 6vw, 5.2rem);
  line-height: .98;
  text-wrap: balance;
}

.cv-letter,
.cv-form-wrap {
  box-shadow: var(--funnel-shadow);
}

@media (max-width: 1060px) {
  :root {
    --funnel-shell: min(100% - 48px, 920px);
  }

  .site-header {
    min-height: 70px;
    grid-template-columns: 1fr auto;
  }

  .hero {
    padding-top: 150px;
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero h1,
  .hero-lede,
  .hero-capture {
    max-width: 780px;
  }

  .hero-proof {
    width: min(100%, 780px);
  }

  .diagnostic-accordion .diagnostic {
    grid-template-columns: 1fr;
  }

  .diagnostic-accordion .diagnostic-panel {
    position: static;
  }

  .creator-diagnostic .diagnostic-grid > header,
  .creator-diagnostic .diagnostic {
    grid-template-columns: 1fr;
  }

  .creator-diagnostic .diagnostic-panel {
    position: static;
  }

  .lp-hero {
    grid-template-columns: 1fr;
  }

  .lp-hero > div,
  .lp-card {
    width: min(100%, 760px);
  }

  .lp-card {
    position: static;
  }
}

@media (max-width: 760px) {
  :root {
    --funnel-shell: calc(100% - 36px);
  }

  html {
    scroll-padding-top: 84px;
  }

  .site-header {
    min-height: 64px;
    padding-inline: 18px;
  }

  .brand > span {
    width: 38px;
    height: 38px;
  }

  .menu-toggle {
    width: 44px;
    height: 44px;
  }

  .mobile-menu {
    top: 64px;
    max-height: calc(100dvh - 64px);
    padding: 14px 18px calc(28px + env(safe-area-inset-bottom));
    overflow-y: auto;
  }

  .mobile-menu a {
    min-height: 50px;
    padding-block: 12px;
    font-size: 1rem;
  }

  .hero {
    padding: 124px 18px 64px;
    gap: 38px;
  }

  .announce-bar ~ main .hero {
    padding-top: 150px;
  }

  .hero h1,
  .lp-hero h1 {
    max-width: 14ch;
    font-size: clamp(2.55rem, 12vw, 3.7rem);
    letter-spacing: -.045em;
  }

  .hero-lede,
  .lp-lede {
    margin-top: 22px;
    font-size: 1rem;
    line-height: 1.65;
  }

  .hero-paths {
    gap: 10px;
  }

  .hero-paths a {
    padding: 18px;
  }

  .proof-card,
  .hero-proof aside {
    padding: 24px 20px;
  }

  /* A prova repete os mesmos dados já visíveis no primeiro ecrã. Em mobile,
     removê-la encurta o caminho até às soluções sem perder informação. */
  .hero-proof {
    display: none;
  }

  .diagnostic-accordion > summary {
    min-height: 112px;
    padding: 22px 52px 22px 0;
  }

  .diagnostic-accordion > summary::after {
    right: 0;
    width: 38px;
    height: 38px;
  }

  .diagnostic-accordion .addons-summary-title {
    font-size: 1.35rem;
  }

  .diagnostic-accordion .diagnostic-grid {
    margin-top: 20px;
  }

  .diagnostic-accordion .diagnostic {
    gap: 22px;
  }

  .diagnostic-accordion .symptom {
    min-height: 74px;
  }

  .creator-diagnostic .diagnostic-grid {
    gap: 28px;
  }

  .creator-diagnostic .diagnostic-grid h2 {
    font-size: clamp(2.5rem, 12vw, 3.65rem);
  }

  .creator-diagnostic .diagnostic-grid > header {
    gap: 16px;
  }

  .creator-diagnostic .symptom {
    min-height: 76px;
  }

  .lp-top {
    min-height: 64px;
    padding: 12px 18px;
    gap: 10px;
  }

  .lp-top-nav {
    order: 3;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .lp-top-nav a {
    justify-content: center;
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    text-align: center;
  }

  .lp-top-note {
    max-width: 16ch;
    text-align: right;
  }

  .lp-hero {
    padding: 40px 0 48px;
    gap: 36px;
  }

  .lp-facts {
    margin-top: 26px;
  }

  .lp-card {
    padding: 26px 20px;
  }

  .lp-section {
    padding-block: 52px;
  }

  .lp-section > h2 {
    margin-bottom: 24px;
    font-size: clamp(2.15rem, 10vw, 3rem);
  }

  .lp-grid-3 article,
  .lp-offer > div {
    padding: 24px 20px;
  }

  .lp-final {
    padding: 28px 22px;
  }

  .lp-final .button,
  .lp-form button {
    width: 100%;
  }

  .lp-foot {
    padding-bottom: 92px;
    gap: 20px;
  }

  .cv-shell {
    width: calc(100% - 36px);
  }

  .cv-open h1 {
    font-size: clamp(2.55rem, 12vw, 3.7rem);
  }

  .cv-letter,
  .cv-form-wrap {
    padding: 26px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-paths a,
  .service-card,
  .pain-grid article,
  .lp-grid-3 article,
  .lp-works a {
    transition: none;
  }
}
