/* Componentes compartilhados (HANDOFF.md › Componentes) */

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 26px; border-radius: var(--radius-button);
  font-family: var(--font-body); font-size: 16px; font-weight: 700; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease), border-color var(--ease), color var(--ease);
}
.btn svg { flex: none; }
.btn--primary { background: var(--gradient-brand); color: #fff; }
.btn--primary:hover { color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-button-hover); }
.btn--secondary { background: #fff; border-color: var(--border-control); color: var(--ink); }
.btn--secondary:hover { color: var(--ink); background: var(--bg-lilac); border-color: #CFC4FA; }
.btn--sm { height: 44px; padding: 0 18px; border-radius: var(--radius-control); font-size: 15px; gap: 8px; }
.btn--md { height: 48px; padding: 0 20px; border-radius: var(--radius-control); font-size: 15px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 700; text-decoration: none;
}
.link-arrow .arrow { display: inline-block; transition: transform var(--ease); }
.link-arrow:hover .arrow { transform: translateX(4px); }
.link-arrow--sites { color: var(--vero-violet-strong); }
.link-arrow--tools { color: var(--vero-blue-strong); }
.link-arrow--sob { color: var(--vero-indigo-strong); }
.link-arrow--sites:hover { color: var(--vero-violet-hover); }
.link-arrow--tools:hover { color: #183FA6; }
.link-arrow--sob:hover { color: #352BA3; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  padding: 4px 10px; border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 700; line-height: 1.5; white-space: nowrap;
}
.badge__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--dev { color: var(--status-dev); background: var(--status-dev-bg); }
.badge--dev .badge__dot { background: var(--status-dev-dot); }
.badge--available { color: var(--status-available); background: var(--status-available-bg); }
.badge--soon { color: var(--status-soon); background: var(--status-soon-bg); }
.badge--sites { color: var(--vero-violet-strong); background: #EFE9FF; padding: 5px 11px; }
.badge--tools { color: var(--vero-blue-strong); background: #E7EEFF; padding: 5px 11px; }
.badge--sob { color: var(--vero-indigo-strong); background: var(--tint-indigo); padding: 5px 11px; }

/* ---------- Ícones ---------- */
.icon-tile {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px;
}
.icon-tile--sites { background: var(--tint-violet); color: var(--vero-violet); }
.icon-tile--tools { background: var(--tint-blue); color: var(--vero-blue); }
.icon-tile--sob { background: var(--tint-indigo); color: var(--vero-indigo); }
.icon-tile--social { background: linear-gradient(135deg, #F1ECFF, #EAF0FF); color: var(--vero-violet-strong); }
.icon-tile--class { background: linear-gradient(135deg, #F1ECFF, #E6FBF7); color: var(--vero-violet-strong); }
.icon-tile--lg.icon-tile--social { background: linear-gradient(135deg, #6A45F5, #2A5FE8); color: #fff; }
.icon-tile--lg { width: 56px; height: 56px; border-radius: 16px; color: #fff; }
.icon-tile--lg.icon-tile--sites { background: var(--vero-violet); box-shadow: 0 14px 28px -14px rgba(106,69,245,.8); }
.icon-tile--lg.icon-tile--tools { background: var(--vero-blue); box-shadow: 0 14px 28px -14px rgba(42,95,232,.8); }
.icon-tile--lg.icon-tile--sob { background: var(--gradient-brand); box-shadow: 0 14px 28px -14px rgba(75,63,214,.8); }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__mark { width: 30px; height: 28px; }
.logo__word { width: 92px; height: 18px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.86);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-header);
}
.site-header__bar { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border: 0; border-radius: 10px; background: transparent;
  color: var(--ink); font-family: var(--font-body); font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: color .15s ease, background .15s ease;
}
.nav__link:hover, .nav__link[aria-expanded="true"] { color: var(--vero-violet); background: var(--bg-lilac); }
.nav__chevron { transition: transform .2s ease; }
.nav__link[aria-expanded="true"] .nav__chevron { transform: rotate(180deg); }

.dropdown { position: relative; }
.dropdown__panel {
  position: absolute; top: 100%; left: -16px; padding-top: 10px; width: 400px;
  visibility: hidden; opacity: 0; transform: translateY(-4px);
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}
.dropdown.is-open .dropdown__panel { visibility: visible; opacity: 1; transform: none; transition: opacity .18s ease, transform .18s ease; }
.dropdown__menu {
  background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: 10px;
  box-shadow: var(--shadow-dropdown);
}
.dd-item {
  display: flex; gap: 14px; align-items: flex-start; padding: 14px; border-radius: 14px; text-decoration: none;
  transition: background .15s ease;
}
.dd-item:hover, .dd-item[aria-current="page"] { background: #F6F3FE; }
.dd-item__text { display: flex; flex-direction: column; gap: 2px; }
.dd-item__name { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--ink); }
.dd-item__desc { font-size: 14px; line-height: 1.5; color: var(--text); }

.menu-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--border-control); border-radius: 12px;
  background: #fff; color: var(--ink); align-items: center; justify-content: center; cursor: pointer;
}
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-menu {
  position: absolute; top: var(--header-h); left: 0; right: 0;
  max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  background: #fff; border-bottom: 1px solid var(--border-header);
  box-shadow: 0 30px 50px -30px rgba(42,30,110,.35);
  padding: 12px 16px 20px; display: flex; flex-direction: column;
}
.mobile-menu[hidden] { display: none; }
.m-row {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  min-height: 52px; padding: 0 12px; border: 0; border-radius: 12px; background: transparent;
  color: var(--ink); font-family: var(--font-body); font-size: 17px; font-weight: 700; text-decoration: none; text-align: left; cursor: pointer;
}
.m-row:hover { background: var(--bg-lilac); color: var(--ink); }
.m-row[aria-expanded="true"] .nav__chevron { transform: rotate(180deg); }
.m-products { display: flex; flex-direction: column; gap: 4px; margin: 2px 0 8px; padding: 6px; border-radius: 16px; background: var(--bg-offwhite); border: 1px solid var(--border-header); }
.m-products[hidden] { display: none; }
.m-products .dd-item { padding: 12px; gap: 12px; border-radius: 12px; }
.m-products .icon-tile { width: 36px; height: 36px; border-radius: 11px; }
.m-products .dd-item__desc { font-size: 13px; line-height: 1.45; }
.mobile-menu .btn { margin-top: 12px; height: 52px; width: 100%; }

@media (max-width: 860px) {
  .nav, .site-header__cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .logo { min-height: 44px; }
  .logo__mark { width: 26px; height: 24px; }
  .logo__word { width: 80px; height: 16px; }
}

/* ---------- Cards ---------- */
.card {
  border: 1px solid var(--border); border-radius: var(--radius-card); background: #fff;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); border-color: var(--border-hover); }

.product-card { display: flex; flex-direction: column; gap: 22px; padding: 32px; }
.product-card--sites { background: linear-gradient(180deg, #F7F3FF 0%, #FFFFFF 46%); }
.product-card--tools { background: linear-gradient(180deg, #F1F5FF 0%, #FFFFFF 46%); }
.product-card--sob { background: linear-gradient(180deg, #F3F1FE 0%, #FFFFFF 46%); }
.product-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.product-card__body { display: flex; flex-direction: column; gap: 10px; }
.product-card__name { font-size: 24px; }
.product-card__promise { font-size: 17px; line-height: 1.55; font-weight: 600; color: var(--text-strong); }
.product-card__desc { font-size: 15px; color: var(--text); }
.checklist { display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--text-strong); }
.checklist li { display: flex; gap: 10px; align-items: center; }
.checklist svg { flex: none; }
.product-card__cta {
  margin-top: auto; padding-top: 20px; border-top: 1px solid var(--border-header);
  display: flex; justify-content: space-between; min-height: 44px;
}

.tool-card { display: flex; flex-direction: column; overflow: hidden; }
.tool-card__preview { height: 200px; padding: 24px; }
.tool-card__screen {
  height: 100%; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 14px;
  box-shadow: 0 20px 40px -28px rgba(42,30,110,.4);
}
.tool-card__icon { display: none; }
.tool-card__body { padding: 26px 28px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.tool-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tool-card__name { font-size: 20px; }
.tool-card__desc { font-size: 15px; color: var(--text); }
.tool-card__cta { margin-top: auto; padding-top: 12px; }

.project-card { display: flex; flex-direction: column; overflow: hidden; }
.project-card__frame-wrap { padding: 28px 28px 0; }
.project-card--sites .project-card__frame-wrap { background: linear-gradient(170deg, #F1ECFF, #FFFFFF); }
.project-card--blue .project-card__frame-wrap { background: linear-gradient(170deg, #EBF1FF, #FFFFFF); }
.browser { border: 1px solid var(--border); border-bottom: 0; border-radius: 14px 14px 0 0; background: #fff; overflow: hidden; }
.browser__bar { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 12px; background: #F8F6FD; border-bottom: 1px solid var(--border-header); }
.browser__dots { display: flex; gap: 5px; }
.browser__dots i { width: 8px; height: 8px; border-radius: 50%; background: #E3DDF5; }
.browser__url { font-size: 11px; color: #75728F; }
.capture { position: relative; height: 250px; background: repeating-linear-gradient(135deg, #FAF9FE 0 12px, #F4F1FC 12px 24px); }
.project-card--blue .capture { background: repeating-linear-gradient(135deg, #F8FAFF 0 12px, #F0F4FD 12px 24px); }
.capture picture, .capture img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.capture__fallback small { font-size: 12px; font-weight: 500; }
.capture__fallback {
  position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  color: var(--text-muted); font-size: 13px; font-weight: 600; text-align: center; padding: 16px;
}
.capture.is-empty picture { display: none; }
.capture.is-empty .capture__fallback { display: flex; }
.project-card__body { padding: 26px 28px 28px; display: flex; flex-direction: column; gap: 10px; }
.project-card__tag { font-size: 12px; font-weight: 700; color: var(--vero-violet-strong); }
.project-card__name { font-size: 22px; }
.project-card__desc { font-size: 15px; color: var(--text); }
.project-card__link { margin-top: 6px; }

/* ---------- Breadcrumb (páginas de produto) ---------- */
.breadcrumb ol { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text-muted); }
.breadcrumb li + li::before { content: '/'; margin-right: 8px; color: #C9C3E0; }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--vero-violet); }
.breadcrumb [aria-current] { color: var(--ink); }

/* ---------- Formulários (lista de espera, proposta) ---------- */
.wl-form { display: flex; flex-direction: column; gap: 20px; }
.wl-fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.wl-fieldset legend { margin-bottom: 10px; padding: 0; font-size: 14px; font-weight: 700; color: var(--ink); }
.wl-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.wl-chip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 1px solid var(--border-control); border-radius: 999px; background: #fff; color: var(--text-strong); font: 700 14px/1 var(--font-body); cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.wl-chip:hover { border-color: #CFC4FA; }
.wl-chip[aria-pressed="true"] { background: #F1ECFF; border-color: #8A6CFA; color: #4A2FCB; }
.wl-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.wl-label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; color: var(--ink); }
.wl-input { height: 50px; padding: 0 14px; border: 1px solid var(--border-control); border-radius: 12px; font: 400 15px var(--font-body); color: var(--ink); background: #fff; }
.wl-input::placeholder { color: #8A87A3; }
.wl-input:focus { outline: 2px solid var(--vero-violet); outline-offset: 1px; border-color: transparent; }
.wl-input[aria-invalid="true"] { border-color: #C2410C; }
.wl-error { font-size: 14px; font-weight: 600; color: #B42318; }
.wl-submit { height: 54px; width: 100%; border: 0; cursor: pointer; font-size: 16px; }
.wl-privacy { font-size: 12px; color: var(--text-muted); }
.wl-done { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 8px 0; }
.wl-done:focus { outline: none; }
.wl-done__icon { width: 52px; height: 52px; border-radius: 16px; background: #E8F7EE; color: #17703C; display: flex; align-items: center; justify-content: center; }
.wl-done__title { font: 700 22px/1.25 var(--font-display); color: var(--ink); }
.wl-done__text { font-size: 15px; color: var(--text); }
.wl-done__text strong { color: var(--ink); }
.wl-done__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.wl-reset { height: 44px; padding: 0 16px; font-size: 14px; border-radius: 12px; cursor: pointer; }
@media (max-width: 560px) {
  .wl-form { gap: 16px; }
  .wl-chip { height: 44px; padding: 0 12px; font-size: 13px; gap: 6px; }
  .wl-fields { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}

/* ---------- Fluxo de etapas: linha animada que liga os quadros ---------- */
.flow { position: relative; --cols: 4; --gap: 20px; --pad: 28px; --node: 40px; --m-node: 36px; --t: calc(var(--cols) * 1s); }
.flow__links { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); column-gap: var(--gap); align-items: start; pointer-events: none; z-index: 1; }
.flow__link { grid-row: 1; position: relative; height: 2px; border-radius: 2px;
  margin-top: calc(var(--pad) + var(--node) / 2 - 1px); margin-left: calc(var(--pad) + var(--node) + 8px);
  width: calc(100% + var(--gap) - var(--node) - 16px);
  background: repeating-linear-gradient(90deg, #CFC4FA 0 6px, transparent 6px 12px);
  animation: flow-dash 1.2s linear infinite; }
.flow__link::after { content: ''; position: absolute; top: -2px; left: -48px; width: 48px; height: 6px; border-radius: 6px; opacity: 0;
  background: linear-gradient(90deg, rgba(106,69,245,0), #6A45F5 60%, #2A5FE8); box-shadow: 0 0 14px rgba(106,69,245,.55);
  animation: flow-comet var(--t) cubic-bezier(.45,.05,.55,.95) infinite; animation-delay: calc(var(--i, 0) * 1s + .35s); }
.flow__node { position: relative; z-index: 2; animation: flow-node var(--t) ease-out infinite; animation-delay: calc(var(--i, 0) * 1s); }
@keyframes flow-dash { to { background-position: 12px 0; } }
@keyframes flow-comet { 0% { left: -48px; opacity: 0; } 3% { opacity: 1; } 19% { left: calc(100% - 4px); opacity: 1; } 22%, 100% { left: calc(100% - 4px); opacity: 0; } }
@keyframes flow-node { 0% { box-shadow: 0 0 0 0 rgba(106,69,245,.35); transform: none; } 6% { box-shadow: 0 0 0 7px rgba(106,69,245,.16), 0 10px 22px -8px rgba(106,69,245,.6); transform: scale(1.08); } 22%, 100% { box-shadow: 0 0 0 0 rgba(106,69,245,0); transform: none; } }
/* Lista vertical (mobile): linha que desce ligando os números */
.flow--vertical-sm::before, .flow--vertical-sm::after { content: none; }
@media (max-width: 1080px) { .flow__links { display: none; } }

/* ---------- CTA final ---------- */
.cta-panel {
  position: relative; overflow: hidden; border-radius: var(--radius-panel);
  padding: 88px 48px; text-align: center; background: var(--gradient-cta); border: 1px solid #E8E1FB;
}
.cta-panel__inner { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.cta-panel__title { font-size: 44px; line-height: 1.15; letter-spacing: -.02em; }
.cta-panel .btn { height: 56px; padding: 0 28px; }

/* ---------- Rodapé ---------- */
.site-footer { border-top: 1px solid var(--divider); background: #fff; }
.site-footer__grid { padding-top: 72px; padding-bottom: 40px; display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.site-footer__brand { display: flex; flex-direction: column; gap: 16px; }
.site-footer__brand p { max-width: 300px; font-size: 15px; color: var(--text); }
.site-footer__col { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.site-footer__title { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--ink); }
.foot-link { color: var(--text); text-decoration: none; }
.foot-link:hover { color: var(--vero-violet); }
.site-footer__bottom {
  padding-top: 20px; padding-bottom: 32px; border-top: 1px solid var(--divider);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--text-muted);
}
.site-footer__bottom .foot-link { color: var(--text-muted); }

@media (max-width: 1080px) {
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .cta-panel__title { font-size: 30px; }
}
@media (max-width: 560px) {
  .product-card { gap: 16px; padding: 24px; border-radius: 22px; }
  .product-card__name { font-size: 21px; }
  .product-card__promise { font-size: 15px; }
  .product-card__desc, .product-card .checklist { display: none; }
  .product-card__cta { padding-top: 14px; }
  .icon-tile--lg { width: 48px; height: 48px; border-radius: 14px; }
  .icon-tile--lg svg { width: 22px; height: 22px; }
  .badge--sites, .badge--tools, .badge--sob { font-size: 11px; padding: 4px 10px; }

  .tool-card { flex-direction: row; gap: 14px; padding: 18px; border-radius: 18px; }
  .tool-card__preview { display: none; }
  .tool-card__icon { display: inline-flex; width: 44px; height: 44px; }
  .tool-card__body { padding: 0; gap: 4px; }
  .tool-card__head { gap: 8px; }
  .tool-card__name { font-size: 17px; }
  .tool-card__desc { font-size: 14px; }
  .tool-card__cta { padding-top: 0; min-height: 44px; font-size: 14px; }
  .badge { font-size: 11px; padding: 3px 8px; }

  .project-card { border-radius: 20px; }
  .project-card__frame-wrap { padding: 0; background: none !important; }
  .browser { border: 0; border-bottom: 1px solid var(--border-header); border-radius: 0; }
  .browser__bar { display: none; }
  .capture { height: 190px; }
  .project-card__body { padding: 20px; gap: 6px; }
  .project-card__tag { display: none; }
  .project-card__name { font-size: 19px; }
  .project-card__desc { font-size: 14px; }
  .project-card__link { font-size: 14px; min-height: 44px; }

  .cta-panel { padding: 44px 24px; border-radius: 26px; }
  .cta-panel__inner { gap: 22px; align-items: stretch; }
  .cta-panel__title { font-size: 26px; line-height: 1.22; }
  .cta-panel .btn { height: 54px; }

  .site-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 44px; padding-bottom: 28px; }
  .site-footer__col { font-size: 14px; gap: 10px; }
  .site-footer__col .foot-link { min-height: 44px; display: flex; align-items: center; }
  .site-footer__col { gap: 0; }
  .site-footer__title { margin-bottom: 4px; }
  .site-footer__bottom { flex-direction: column; gap: 6px; font-size: 12px; }
}

@media (max-width: 560px) {
  .flow--vertical-sm { padding-left: 0; }
  .flow--vertical-sm::before { content: ''; position: absolute; left: calc(var(--m-node) / 2 - 1px); top: calc(var(--m-pad, 16px) + var(--m-node) / 2); bottom: calc(var(--m-pad, 16px) + var(--m-node) / 2); width: 2px;
    background: repeating-linear-gradient(180deg, #CFC4FA 0 6px, transparent 6px 12px); animation: flow-dash-v 1.2s linear infinite; }
  .flow--vertical-sm::after { content: ''; position: absolute; left: calc(var(--m-node) / 2 - 3px); top: calc(var(--m-pad, 16px) + var(--m-node) / 2); width: 6px; height: 46px; border-radius: 6px; opacity: 0;
    background: linear-gradient(180deg, rgba(106,69,245,0), #6A45F5 60%, #2A5FE8); box-shadow: 0 0 14px rgba(106,69,245,.55);
    animation: flow-comet-v var(--t) cubic-bezier(.45,.05,.55,.95) infinite; }
  @keyframes flow-dash-v { to { background-position: 0 12px; } }
  @keyframes flow-comet-v { 0% { transform: translateY(-46px); opacity: 0; } 5% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(var(--m-len, 300px)); opacity: 0; } }
}

