/* Home e landings de serviço (scripts/landing-page.mjs). O catálogo (.app-*) copia a home do
   app: webapp/src/ui/onboarding/OnboardingScreen.css (celular) e desktop/ClientDesktopHome.css (PC).
   Ao editar, suba o ?v= em CSS_HREF de scripts/landing-page.mjs. */

@font-face {
  font-family: 'Satoshi';
  src: url('/fonts/Satoshi-Variable.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --lime: #D2F159;
  --lime-soft: #F1F9D2;
  --ink: #090B02;
  --olive: #5F6C26;
  --text: #2B2D24;
  --muted: #62645A;
  --line: rgba(9, 11, 2, 0.1);
  --bg: #FFFFFF;
  --bg-soft: #F5F6F1;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Satoshi', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { list-style: none; }
button, input { font: inherit; color: inherit; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; }

.lp-wrap { width: min(var(--wrap), 100%); margin-inline: auto; padding-inline: 24px; }
.lp-narrow { max-width: 820px; }
.lp-section { padding-block: 64px; }
.lp-section-soft { background: var(--bg-soft); }
.lp-section h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; }
.lp-center { text-align: center; }

.app-subcategory-card::after {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.55;
}

/* Cabeçalho */
.lp-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
.lp-header-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 66px; }
.lp-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-size: 1.25rem; font-weight: 700; }
.lp-logo img { width: 34px; height: 34px; }
.lp-login { display: inline-flex; align-items: center; gap: 8px; padding: 6px 4px; color: var(--ink); font-size: 1rem; font-weight: 700; text-decoration: none; }
.lp-login svg { width: 24px; height: 24px; flex: 0 0 auto; }
.lp-login:hover { color: var(--olive); }
.lp-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; margin-right: 12px; }
.lp-nav a { color: var(--ink); font-size: 1rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.lp-nav a:hover { color: var(--olive); }
.lp-menu-btn { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; margin-right: -8px; padding: 0 10px; border: 0; background: transparent; cursor: pointer; }
.lp-menu-btn span { display: block; height: 2px; border-radius: 2px; background: var(--ink); transition: transform 200ms ease, opacity 200ms ease; }
.lp-header.is-menu-open .lp-menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.lp-header.is-menu-open .lp-menu-btn span:nth-child(2) { opacity: 0; }
.lp-header.is-menu-open .lp-menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
#como-funciona { scroll-margin-top: 80px; }

/* Topo da home no formato GetNinjas: título curto e foto lado a lado, busca embaixo */
.lp-hero { padding-top: 36px; padding-bottom: 36px; }
.lp-provider-btn { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; max-width: 760px; min-height: 52px; margin-bottom: 24px; padding: 0 48px; border-radius: 8px; background: var(--lime); color: var(--ink); font-size: 1.05rem; font-weight: 700; text-decoration: none; transition: filter 0.15s ease; }
.lp-provider-btn:hover { filter: brightness(0.96); }
.lp-provider-btn svg { position: absolute; right: 22px; }
.lp-hero-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px; }
.lp-hero-copy { padding-bottom: 28px; }
.lp-hero h1 { max-width: 620px; font-size: clamp(1.7rem, 4.2vw, 3rem); font-weight: 700; letter-spacing: -0.01em; }
.lp-hero-sub { margin-top: 12px; max-width: 560px; color: var(--muted); font-size: 1.1rem; }
.lp-hero-img { width: 280px; height: auto; }
.lp-hero > .lp-search { max-width: 760px; }

/* Busca com sugestões (mesmo campo do app: "O que você precisa?"). Ao clicar, a própria caixa
   cresce para baixo, por cima do conteúdo, com os pedidos que dá para buscar. */
.lp-search { position: relative; z-index: 40; height: 58px; }
.lp-search-box { position: absolute; top: 0; left: 0; right: 0; overflow: hidden; border: 2px solid #E4E6DC; border-radius: 14px; background: #fff; transition: border-color 160ms ease, box-shadow 260ms ease, border-radius 260ms ease; }
.lp-search.is-open .lp-search-box { border-color: var(--ink); border-radius: 18px; box-shadow: 0 22px 48px rgba(9, 11, 2, 0.16); }
.lp-search input {
  display: block;
  width: 100%;
  height: 54px;
  padding: 0 18px 0 50px;
  border: 0;
  outline: 0;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%2362645A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 16px center;
  font-size: 1.05rem;
}
.lp-suggest-wrap { display: grid; grid-template-rows: 0fr; overflow: hidden; transition: grid-template-rows 300ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.lp-search.is-open .lp-suggest-wrap { grid-template-rows: 1fr; }
.lp-suggest { min-height: 0; max-height: min(60vh, 440px); overflow-y: auto; overscroll-behavior: contain; border-top: 1px solid var(--line); }
.lp-suggest a { display: flex; flex-direction: column; padding: 12px 18px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.lp-suggest li:last-child a { border-bottom: 0; }
.lp-suggest a:hover, .lp-suggest a:focus-visible { background: var(--lime-soft); outline: 0; }
.lp-suggest small { color: var(--muted); font-size: 0.82rem; }
.lp-suggest .lp-suggest-all { color: var(--olive); font-weight: 700; }
.lp-suggest-label { padding: 14px 18px 6px; color: var(--muted); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
@media (prefers-reduced-motion: no-preference) {
  .lp-search.is-entering .lp-suggest li { animation: lp-suggest-in 260ms ease both; }
  .lp-search.is-entering .lp-suggest li:nth-child(2) { animation-delay: 30ms; }
  .lp-search.is-entering .lp-suggest li:nth-child(3) { animation-delay: 60ms; }
  .lp-search.is-entering .lp-suggest li:nth-child(4) { animation-delay: 90ms; }
  .lp-search.is-entering .lp-suggest li:nth-child(n+5) { animation-delay: 120ms; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-search-box, .lp-suggest-wrap { transition: none; }
}
@keyframes lp-suggest-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* Catálogo igual ao app (celular) */
.app-catalog { padding-top: 8px; padding-bottom: 24px; scroll-margin-top: 80px; }
.app-section-title { margin: 32px 0 14px; font-size: 20px; line-height: 26px; font-weight: 700; }
.app-category-menu { display: flex; gap: 12px; overflow-x: auto; padding: 2px 2px 4px; scrollbar-width: none; }
.app-category-menu::-webkit-scrollbar { display: none; }
.app-category-button { flex: 0 0 118px; width: 118px; height: 138px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px; border-radius: 14px; background: #fff; color: var(--ink); text-decoration: none; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.04); transition: transform 0.15s ease; }
.app-category-button:hover { transform: translateY(-2px); }
.app-category-icon { width: 88px; height: 88px; display: grid; place-items: center; overflow: hidden; }
.app-category-icon img { width: 100%; height: 100%; object-fit: contain; }
.app-category-button > span:last-child { width: 100%; font-size: 12px; line-height: 13px; font-weight: 700; text-align: center; }
.app-catalog-title { display: none; }
.app-catalog-section { margin-top: 28px; }
.app-catalog-section:first-of-type { margin-top: 12px; }
.app-catalog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.app-catalog-head h3 { font-size: 20px; line-height: 26px; font-weight: 700; }
.app-catalog-head span { display: none; }
.app-catalog-head a { color: var(--ink); font-weight: 700; text-decoration: none; white-space: nowrap; }
.app-subcategory-row { display: flex; gap: 12px; overflow-x: auto; overflow-y: hidden; margin-right: -24px; padding: 0 24px 4px 0; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.app-subcategory-row::-webkit-scrollbar { display: none; }
.app-subcategory-card { flex: 0 0 154px; width: 154px; height: 166px; display: flex; flex-direction: column; overflow: hidden; border-radius: 8px; background: #fff; color: var(--ink); text-decoration: none; scroll-snap-align: start; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.04); }
.app-subcategory-card img { width: 100%; height: 98px; flex: 0 0 98px; object-fit: cover; }
.app-subcategory-card span { padding: 12px; }
.app-subcategory-card strong { display: -webkit-box; overflow: hidden; font-size: 15px; line-height: 18px; font-weight: 700; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.app-subcategory-card small { display: none; }
.app-subcategory-card::after { display: none; }


/* Como funciona: passos em linha, sem caixas */
.lp-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 24px; counter-reset: step; }
.lp-steps li { counter-increment: step; }
.lp-steps li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 12px; border-radius: 50%; background: var(--lime); color: var(--ink); font-weight: 700; }
.lp-steps h3 { font-size: 1.08rem; }
.lp-steps p { margin-top: 4px; color: var(--muted); }

/* Faixa do app */
.lp-app { background: var(--lime); overflow: hidden; }
.lp-app-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); align-items: center; gap: 32px; padding-top: 56px; }
.lp-app h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 700; }
.lp-app p { margin-top: 10px; max-width: 460px; color: var(--text); font-size: 1.08rem; }
.lp-app-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; padding-bottom: 56px; }
.lp-app-badges a { display: block; line-height: 0; border-radius: 8px; background: #000; }
.lp-app-badges img { width: 170px; height: auto; border-radius: 8px; }
.is-apple-device .lp-app-badges .is-apple { order: -1; }
.lp-app-phone { justify-self: center; align-self: end; width: min(250px, 70%); transform: rotate(-6deg) translateY(24px); filter: drop-shadow(0 24px 30px rgba(9, 11, 2, 0.25)); }

/* Faixa do profissional */
.lp-pro { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding: 40px 44px; border-radius: 24px; background: var(--lime); }
.lp-pro h2 { max-width: 560px; color: var(--ink); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; line-height: 1.15; }
.lp-pro-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: 12px; background: #fff; color: var(--ink); font-size: 1.05rem; font-weight: 700; text-decoration: none; box-shadow: 0 6px 18px rgba(9, 11, 2, 0.1); transition: transform 0.15s ease; }
.lp-pro-btn:hover { transform: translateY(-1px); }

/* Depoimentos: citações soltas */
.lp-reviews-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 32px; }
.lp-review-stars { color: #E2B100; letter-spacing: 2px; }
.lp-review blockquote { margin-top: 8px; color: var(--text); }
.lp-review figcaption { margin-top: 10px; color: var(--muted); font-size: 0.92rem; }
.lp-review figcaption strong { color: var(--ink); }

/* Texto de SEO */
.lp-seo h3 { margin-top: 28px; font-size: 1.2rem; font-weight: 700; }
.lp-seo p { margin-top: 10px; color: var(--text); font-size: 1.04rem; line-height: 1.7; }
.lp-seo a { color: var(--olive); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* FAQ em lista, sem caixas */
.lp-faq-list { margin-top: 18px; border-top: 1px solid var(--line); }
.lp-faq-list details { border-bottom: 1px solid var(--line); }
.lp-faq-list summary { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; color: var(--ink); font-weight: 700; cursor: pointer; list-style: none; }
.lp-faq-list summary::-webkit-details-marker { display: none; }
.lp-faq-list summary::after { content: "+"; font-size: 1.3rem; line-height: 1; }
.lp-faq-list details[open] summary::after { content: "−"; }
.lp-faq-list details p { padding-bottom: 18px; color: var(--muted); }

/* Rodapé */
.lp-footer { background: var(--ink); color: rgba(255, 255, 255, 0.78); }
.lp-footer-inner { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; padding-block: 56px 40px; }
.lp-footer .lp-logo { color: #fff; }
.lp-footer p { margin-top: 12px; max-width: 320px; font-size: 0.95rem; }
.lp-footer-title { margin-bottom: 12px; color: #fff; font-weight: 700; }
.lp-footer-col { display: flex; flex-direction: column; gap: 8px; }
.lp-footer-col a { color: rgba(255, 255, 255, 0.78); font-size: 0.93rem; text-decoration: none; }
.lp-footer-col a:hover { color: var(--lime); }
.lp-footer-bottom { padding-block: 18px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.85rem; text-align: center; }

/* Aviso "Acessar aplicativo" no topo (celular) */
.app-banner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 10px 12px 10px 8px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.app-banner[hidden] { display: none; }
.app-banner-close { width: 28px; height: 28px; border: 0; background: transparent; color: var(--muted); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.app-banner-text { min-width: 0; }
.app-banner-text strong { display: block; color: var(--ink); font-size: 0.95rem; line-height: 1.2; }
.app-banner-text span { display: block; color: var(--muted); font-size: 0.8rem; line-height: 1.25; }
.app-banner-open { display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border-radius: 999px; background: var(--lime); color: var(--ink); font-weight: 700; text-decoration: none; }

/* Catálogo no computador: igual ao "Catálogo de serviços" do app desktop */
@media (min-width: 961px) {
  .lp-hero { display: flex; flex-direction: column; }
  .lp-hero > .lp-search { max-width: none; width: 100%; }
  .lp-hero > .lp-provider-btn { display: none; }
  .app-catalog { padding-top: 24px; padding-bottom: 40px; }
  .app-section-title { font-size: 22px; }
  .app-category-menu { gap: 16px; overflow: visible; }
  .app-category-button { flex: 1 1 0; width: auto; height: auto; padding: 14px 10px 16px; }
  .app-category-button > span:last-child { font-size: 14px; line-height: 17px; }
  .app-catalog-title { display: block; margin: 48px 0 8px; font-size: 30px; line-height: 36px; font-weight: 700; text-align: center; }
  .app-catalog-section { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 40px; }
  .app-catalog-head { position: sticky; top: 86px; display: block; margin: 0; padding-top: 4px; }
  .app-catalog-head h3 { font-size: 26px; line-height: 32px; font-weight: 700; }
  .app-catalog-head span { display: block; margin-top: 8px; color: rgba(9, 11, 2, 0.56); font-size: 14px; }
  .app-catalog-head a { display: inline-block; margin-top: 10px; color: var(--olive); font-size: 14px; }
  .app-subcategory-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; overflow: visible; }
  .app-subcategory-card { display: grid; grid-template-columns: 104px minmax(0, 1fr) 12px; align-items: center; gap: 14px; width: auto; height: auto; min-height: 112px; padding: 8px 14px 8px 8px; border: 1px solid rgba(9, 11, 2, 0.1); box-shadow: none; transition: border-color 150ms ease, background-color 150ms ease; }
  .app-subcategory-card:hover { border-color: rgba(166, 204, 47, 0.48); background: #fbfdf2; }
  .app-subcategory-card img { width: 104px; height: 96px; flex: none; border-radius: 8px; }
  .app-subcategory-card span { display: flex; flex-direction: column; gap: 5px; padding: 0; }
  .app-subcategory-card strong { font-size: 15px; line-height: 20px; -webkit-line-clamp: 2; }
  .app-subcategory-card small { display: block; color: rgba(9, 11, 2, 0.56); font-size: 13px; }
  .app-subcategory-card::after { display: block; margin: 0; }
}

@media (max-width: 1100px) and (min-width: 961px) {
  .app-catalog-section { grid-template-columns: 200px minmax(0, 1fr); }
  .app-subcategory-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .lp-reviews-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  /* Cabeçalho do celular: uma linha de altura fixa, fundo sólido (sem blur) e menu de três barras. */
  .lp-header { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .lp-header-inner { height: 60px; gap: 8px; }
  .lp-login { margin-left: auto; }
  .lp-menu-btn { display: inline-flex; }
  .lp-nav { position: absolute; top: 100%; left: 0; right: 0; z-index: 60; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 6px 16px 14px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(9, 11, 2, 0.1); visibility: hidden; opacity: 0; transform: translateY(-6px); transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear 180ms; }
  .lp-header.is-menu-open .lp-nav { visibility: visible; opacity: 1; transform: none; transition: opacity 180ms ease, transform 180ms ease; }
  .lp-nav a { padding: 14px 8px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .lp-nav a:last-child { border-bottom: 0; }
}

@media (max-width: 720px) {
  .lp-wrap { padding-inline: 16px; }
  .lp-pro { padding: 28px 22px; border-radius: 20px; }
  .lp-pro-btn { width: 100%; }
  .lp-section { padding-block: 48px; }
  .lp-hero { padding-top: 20px; padding-bottom: 24px; }
  .lp-hero-top { gap: 8px; align-items: center; }
  .lp-hero-copy { padding-bottom: 0; }
  .lp-hero h1 { font-size: 1.6rem; line-height: 1.2; }
  .lp-hero-sub { margin-top: 10px; font-size: 1rem; }
  .lp-hero-img { width: 128px; }
  .app-subcategory-row { margin-right: -16px; padding-right: 16px; }
  .lp-steps { grid-template-columns: 1fr; gap: 22px; }
  .lp-app-inner { grid-template-columns: 1fr; padding-top: 44px; }
  .lp-app-badges { padding-bottom: 12px; }
  .lp-app-phone { width: 190px; transform: rotate(-6deg) translateY(40px); margin-top: -10px; }
  .lp-reviews-grid { grid-template-columns: 1fr; gap: 26px; }
  .lp-footer-inner { grid-template-columns: 1fr; gap: 24px; }
}
