/* ==========================================================================
   vexs.site — design system
   Tokens + BEM, sem framework e sem build step (METODO_HOCSIS §6).
   ========================================================================== */

:root {
  --bg: #ffffff;
  --surface: #f7f8fa;
  --surface-2: #eef1f6;
  --line: #e3e7ee;
  --line-strong: #cfd6e2;

  --ink: #0f1218;
  --ink-2: #39414f;
  --muted: #667085;

  --brand: #4f46e5;
  /* Segunda parada do gradiente da marca (indigo -> teal). O logo e o ícone
     leem daqui, então trocar a identidade é trocar estes dois valores. */
  --brand-2: #14b8a6;
  --brand-ink: #ffffff;
  --brand-hover: #4338ca;
  --brand-soft: #eef0ff;
  --brand-border: #d7d9fb;

  --ok: #067a55;
  --ok-soft: #e7f7f1;
  --warn: #9a6400;
  --warn-soft: #fdf3e2;
  --danger: #b42318;
  --danger-soft: #fdeceb;
  --info: #1461c4;
  --info-soft: #e9f1fd;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-full: 999px;

  --shadow-xs: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-sm: 0 1px 3px rgba(16, 24, 40, .08), 0 1px 2px rgba(16, 24, 40, .04);
  --shadow-md: 0 8px 24px rgba(16, 24, 40, .08);
  --shadow-lg: 0 18px 48px rgba(16, 24, 40, .12);

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  --wrap: 1140px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --header-h: 68px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1017;
    --surface: #141922;
    --surface-2: #1b2130;
    --line: #242c3a;
    --line-strong: #333d4f;

    --ink: #eef1f7;
    --ink-2: #c2cad8;
    --muted: #8e99ac;

    --brand: #7c7bff;
    --brand-2: #2dd4bf;
    --brand-ink: #0d1017;
    --brand-hover: #9a99ff;
    --brand-soft: #1c1f3d;
    --brand-border: #322f6b;

    --ok: #3ecf9a;
    --ok-soft: #10261f;
    --warn: #e0a53f;
    --warn-soft: #2a2113;
    --danger: #ff8a80;
    --danger-soft: #2b1717;
    --info: #6aa8f5;
    --info-soft: #12203a;

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .5);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, .45);
    --shadow-lg: 0 18px 48px rgba(0, 0, 0, .55);
  }
}

/* ------------------------------------------------------------------ reset */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* Elemento com [hidden] tem que sumir mesmo quando uma classe define display.
   Sem esta regra o elemento escondido reaparece (armadilha ja vista em producao). */
[hidden] { display: none !important; }

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

h1, h2, h3, h4 {
  margin: 0 0 var(--space-3);
  line-height: 1.18;
  letter-spacing: -.021em;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.7vw, 2.25rem); }
h3 { font-size: clamp(1.12rem, 1rem + .5vw, 1.35rem); }

p { margin: 0 0 var(--space-4); }
p:last-child { margin-bottom: 0; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

ul, ol { margin: 0 0 var(--space-4); padding-left: 1.15em; }
li { margin-bottom: var(--space-2); }

hr { border: 0; border-top: 1px solid var(--line); margin: var(--space-6) 0; }

small { font-size: .875rem; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection { background: var(--brand); color: var(--brand-ink); }

/* ----------------------------------------------------------------- layout */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

.section { padding-block: clamp(var(--space-7), 6vw, var(--space-9)); }
.section--tight { padding-block: var(--space-7); }
.section--surface { background: var(--surface); }
.section--line { border-top: 1px solid var(--line); }

.section__head {
  max-width: 660px;
  margin-bottom: var(--space-6);
}
.section__head--center { margin-inline: auto; text-align: center; }
.section__eyebrow {
  display: inline-block;
  margin-bottom: var(--space-3);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--brand);
}
.section__lead { color: var(--muted); font-size: 1.06rem; margin: 0; }

.grid { display: grid; gap: var(--space-5); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(216px, 1fr)); }

.stack { display: flex; flex-direction: column; gap: var(--space-4); }
.row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.row--between { justify-content: space-between; }
.row--end { justify-content: flex-end; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: var(--space-3) var(--space-4);
  background: var(--ink);
  color: var(--bg);
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------- tipografia */

.muted { color: var(--muted); }
.strong { font-weight: 650; }
.mono { font-family: var(--mono); font-size: .92em; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }

/* ---------------------------------------------------------------- botoes */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 11px 20px;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 600;
  font-size: .96rem;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  /* Botão não quebra linha: rótulo em duas linhas desalinha a altura dos
     botões vizinhos e some com a leitura de "ação". Se não couber, o rótulo
     é que tem que encurtar. */
  white-space: nowrap;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .12s ease, box-shadow .18s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--brand); color: var(--brand-ink); box-shadow: var(--shadow-xs); }
.btn--primary:hover { background: var(--brand-hover); }

.btn--ghost { background: var(--bg); color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--surface); border-color: var(--muted); }

.btn--soft { background: var(--brand-soft); color: var(--brand); border-color: var(--brand-border); }
.btn--soft:hover { background: var(--brand-soft); border-color: var(--brand); }

.btn--danger { background: var(--danger-soft); color: var(--danger); border-color: var(--danger); }
.btn--danger:hover { background: var(--danger); color: #fff; }

.btn--link { background: none; color: var(--brand); padding-inline: 0; min-height: 0; }
.btn--link:hover { text-decoration: underline; }

.btn--sm { padding: 7px 13px; min-height: 36px; font-size: .875rem; }
.btn--lg { padding: 14px 26px; min-height: 52px; font-size: 1.02rem; }
.btn--block { width: 100%; }

.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }

.btn-group { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* ---------------------------------------------------------------- badges */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: .78rem;
  font-weight: 650;
  line-height: 1.5;
  border: 1px solid transparent;
  white-space: nowrap;
}
.badge--neutral { background: var(--surface-2); color: var(--ink-2); border-color: var(--line); }
.badge--brand { background: var(--brand-soft); color: var(--brand); border-color: var(--brand-border); }
.badge--ok { background: var(--ok-soft); color: var(--ok); border-color: currentColor; }
.badge--warn { background: var(--warn-soft); color: var(--warn); border-color: currentColor; }
.badge--danger { background: var(--danger-soft); color: var(--danger); border-color: currentColor; }
.badge--info { background: var(--info-soft); color: var(--info); border-color: currentColor; }

.badge__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ----------------------------------------------------------------- cards */

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-5);
  box-shadow: var(--shadow-xs);
}
.card--flush { padding: 0; overflow: hidden; }
.card--surface { background: var(--surface); box-shadow: none; }
.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--line);
}
.card__title { margin: 0; font-size: 1rem; font-weight: 650; }
.card__body { padding: var(--space-5); }
.card__foot {
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--line);
  background: var(--surface);
}

/* --------------------------------------------------------------- header */

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
@supports not (backdrop-filter: blur(1px)) {
  .header { background: var(--bg); }
}

.header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  min-height: var(--header-h);
}

/* O logo é um SVG (App\Support\Brand): a metade "vexs" herda a cor do texto e
   acompanha o tema, o ".site" vem no gradiente da marca. */
.logo {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  transition: opacity .15s ease;
}
.logo:hover { text-decoration: none; opacity: .82; }
.logo:focus-visible { outline-offset: 4px; }
.logo .brand-mark { height: 26px; width: auto; }
.logo .brand-icon { border-radius: 8px; }

@media (max-width: 400px) {
  .logo .brand-mark { height: 22px; }
}

.nav { display: flex; align-items: center; gap: var(--space-2); margin-left: auto; }
.nav__link {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--ink-2);
  font-size: .94rem;
  font-weight: 550;
}
.nav__link:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.nav__link.is-active { color: var(--brand); background: var(--brand-soft); }

.nav__toggle {
  display: none;
  margin-left: auto;
  padding: 9px;
  min-height: 42px;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--ink);
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav__toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-1);
    padding: var(--space-4);
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
  .nav.is-open { display: flex; }
  .nav__link { padding: 12px; }
  .nav .btn { width: 100%; }
}

/* ----------------------------------------------------------------- hero */

.hero { padding-block: clamp(var(--space-7), 7vw, 104px); }
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: var(--space-7);
  align-items: center;
}
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: var(--space-6); }
}

.hero__title { margin-bottom: var(--space-4); text-wrap: balance; }
.hero__sub {
  font-size: clamp(1.03rem, .98rem + .35vw, 1.19rem);
  color: var(--muted);
  max-width: 34em;
  margin-bottom: var(--space-5);
}
.hero__note { margin-top: var(--space-5); font-size: .88rem; color: var(--muted); }

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
}
.hero__proof-item strong { display: block; font-size: 1.3rem; letter-spacing: -.02em; }
.hero__proof-item span { font-size: .85rem; color: var(--muted); }

/* ------------------------------------------------ preview de modelo (mock) */

.preview {
  --p-bg: #fff;
  --p-surface: #f2f4f8;
  --p-ink: #14161a;
  --p-muted: #7a8291;
  --p-accent: #2f6df6;
  --p-accent-ink: #fff;
  --p-radius: 7px;

  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--p-bg);
  border-bottom: 1px solid var(--line);
  container-type: inline-size;
}
.preview--tall { aspect-ratio: 3 / 4; }
.preview--wide { aspect-ratio: 16 / 10; }

.preview__chrome {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding-inline: 9px;
  background: var(--p-surface);
  border-bottom: 1px solid rgba(0, 0, 0, .07);
}
.preview__dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(0, 0, 0, .18); }

.preview__body { padding: 10px 12px; height: calc(100% - 22px); overflow: hidden; }

.preview__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.preview__brand {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--p-ink);
  text-transform: uppercase;
}
.preview__menu { display: flex; gap: 5px; }
.preview__menu i { display: block; width: 14px; height: 3px; border-radius: 2px; background: var(--p-muted); opacity: .5; }

.preview__hero {
  position: relative;
  padding: 12px;
  border-radius: var(--p-radius);
  background: var(--p-surface);
  margin-bottom: 9px;
  overflow: hidden;
}

/* Foto real por baixo do esqueleto de texto. O scrim existe para as barras
   claras continuarem legíveis sobre qualquer imagem — sem ele, foto clara
   engole o "texto" e o card deixa de parecer um site. */
.preview__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.preview__hero--img > *:not(.preview__photo):not(.preview__scrim) { position: relative; z-index: 2; }
.preview__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(0, 0, 0, .68) 0%, rgba(0, 0, 0, .34) 62%, rgba(0, 0, 0, .12) 100%);
}
.preview__hero--img .preview__h { background: #fff; }
.preview__hero--img .preview__t { background: #fff; opacity: .72; }
.preview__hero--center.preview__hero--img .preview__scrim {
  background: linear-gradient(180deg, rgba(0, 0, 0, .28) 0%, rgba(0, 0, 0, .62) 100%);
}

.preview__tile { position: relative; overflow: hidden; }
.preview__tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.preview__thumb { position: relative; overflow: hidden; }
.preview__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Com foto dentro, a miniatura perde o preenchimento de cor e a transparência
   que existiam só para simular a imagem ausente. */
.preview__thumb:has(img) { opacity: 1; background: var(--p-surface); }
.preview__tile:has(img) { opacity: 1; border-color: transparent; }
.preview__hero--accent { background: var(--p-accent); }
.preview__hero--accent .preview__h { background: var(--p-accent-ink); opacity: .95; }
.preview__hero--accent .preview__t { background: var(--p-accent-ink); opacity: .6; }
.preview__hero--accent .preview__cta { background: var(--p-accent-ink); color: var(--p-accent); }
.preview__hero--center { text-align: center; }
.preview__hero--center .preview__h,
.preview__hero--center .preview__t { margin-inline: auto; }
.preview__hero--center .preview__cta { margin-inline: auto; }

.preview__h { height: 8px; width: 74%; border-radius: 3px; background: var(--p-ink); margin-bottom: 6px; }
.preview__h--sm { height: 6px; width: 52%; }
.preview__t { height: 4px; width: 90%; border-radius: 2px; background: var(--p-muted); opacity: .45; margin-bottom: 4px; }
.preview__t--short { width: 62%; }

.preview__cta {
  display: inline-block;
  margin-top: 7px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--p-accent);
  color: var(--p-accent-ink);
  font-size: 7px;
  font-weight: 700;
}

.preview__grid { display: grid; gap: 6px; }
.preview__grid--3 { grid-template-columns: repeat(3, 1fr); }
.preview__grid--2 { grid-template-columns: repeat(2, 1fr); }
.preview__tile {
  border-radius: calc(var(--p-radius) - 2px);
  background: var(--p-surface);
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(0, 0, 0, .05);
}
.preview__tile--accent { background: var(--p-accent); opacity: .85; }

.preview__list { display: grid; gap: 5px; }
.preview__row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 6px;
  border-radius: 5px;
  background: var(--p-surface);
}
.preview__thumb { width: 16px; height: 16px; border-radius: 4px; background: var(--p-accent); opacity: .8; flex: none; }
.preview__row-lines { flex: 1; }
.preview__price { font-size: 7px; font-weight: 800; color: var(--p-accent); }

.preview__split { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-items: center; }

/* --------------------------------------------------- card de modelo */

.template-card {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.template-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}
.template-card__body { padding: var(--space-4) var(--space-5) var(--space-5); display: flex; flex-direction: column; flex: 1; }
.template-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-2); }
.template-card__name { margin: 0; font-size: 1.06rem; font-weight: 680; letter-spacing: -.015em; }
.template-card__name a { color: var(--ink); }
.template-card__desc { color: var(--muted); font-size: .92rem; margin: 0 0 var(--space-4); flex: 1; }
.template-card__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-4); }
.template-card__price { font-size: 1.22rem; font-weight: 720; letter-spacing: -.02em; }
.template-card__price small { display: block; font-size: .72rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.template-card__actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }

/* -------------------------------------------------------------- filtros */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}
.filters__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-full);
  background: var(--bg);
  color: var(--ink-2);
  font-size: .89rem;
  font-weight: 600;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}
.filters__chip:hover { background: var(--surface-2); text-decoration: none; border-color: var(--muted); }
.filters__chip.is-active { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.filters__chip.is-active:hover { background: var(--brand-hover); }
.filters__count { font-size: .78rem; opacity: .72; }

/* --------------------------------------------------------------- passos */

.steps { counter-reset: step; display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.step { position: relative; padding-top: var(--space-5); border-top: 2px solid var(--line); }
.step__n {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: var(--space-3);
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: .84rem;
  font-weight: 750;
  border: 1px solid var(--brand-border);
}
.step__title { font-size: 1.02rem; font-weight: 660; margin-bottom: 6px; }
.step__text { color: var(--muted); font-size: .93rem; margin: 0; }

/* ----------------------------------------------------------- beneficios */

.benefit { display: flex; gap: var(--space-4); align-items: flex-start; }
.benefit__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--brand-soft);
  color: var(--brand);
  border: 1px solid var(--brand-border);
}
.benefit__title { font-size: .99rem; font-weight: 660; margin-bottom: 3px; }
.benefit__text { color: var(--muted); font-size: .91rem; margin: 0; }

/* -------------------------------------------------------------- planos */

.plan {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.plan:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.plan--featured {
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
  position: relative;
}
.plan--featured:hover { transform: translateY(-2px); }
.plan__tag {
  position: absolute;
  top: -11px;
  left: var(--space-5);
  padding: 3px 11px;
  border-radius: var(--radius-full);
  background: var(--brand);
  color: var(--brand-ink);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.plan__name { font-size: 1.1rem; font-weight: 680; margin-bottom: var(--space-2); }
.plan__price { display: flex; align-items: baseline; gap: 5px; margin-bottom: var(--space-2); }
.plan__price b { font-size: 2.3rem; font-weight: 760; letter-spacing: -.035em; line-height: 1; }
.plan__price span { color: var(--muted); font-size: .88rem; }
.plan__summary { color: var(--muted); font-size: .91rem; margin-bottom: var(--space-5); min-height: 2.7em; }
.plan__features { list-style: none; margin: 0 0 var(--space-5); padding: 0; display: grid; gap: 9px; flex: 1; }
.plan__features li { display: flex; gap: 9px; align-items: flex-start; margin: 0; font-size: .93rem; }
.plan__check { flex: none; color: var(--ok); margin-top: 2px; }

/* ----------------------------------------------------------------- faq */

.faq { display: grid; gap: var(--space-3); max-width: 780px; margin-inline: auto; }
.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  overflow: hidden;
}
.faq__item[open] { border-color: var(--line-strong); box-shadow: var(--shadow-xs); }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  font-weight: 620;
  cursor: pointer;
  list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { background: var(--surface); }
.faq__q::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .2s ease;
}
.faq__item[open] .faq__q::after { transform: rotate(-135deg) translateY(-2px); }
.faq__a { padding: 0 var(--space-5) var(--space-5); color: var(--muted); margin: 0; }

/* --------------------------------------------------------------- forms */

.field { display: block; margin-bottom: var(--space-4); }
.field__label { display: block; font-size: .89rem; font-weight: 620; margin-bottom: 6px; }
.field__hint { display: block; font-size: .82rem; color: var(--muted); margin-top: 5px; }
.field__req { color: var(--danger); }
.field__optional { color: var(--muted); font-weight: 500; }

.input, .select, .textarea {
  width: 100%;
  padding: 11px 13px;
  min-height: 44px;
  font: inherit;
  font-size: .96rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.input::placeholder, .textarea::placeholder { color: var(--muted); opacity: .8; }
.textarea { min-height: 118px; resize: vertical; line-height: 1.55; }
.select { appearance: none; padding-right: 38px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 20px, calc(100% - 13px) 20px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }

.input[aria-invalid="true"], .textarea[aria-invalid="true"], .select[aria-invalid="true"] {
  border-color: var(--danger);
}

/* Campo com botao dentro (hoje so a senha). O padding a direita reserva o
   espaco do botao — sem ele a senha passa POR BAIXO do olho ao encher o campo. */
.field__control { position: relative; display: block; }
.input--lock { padding-right: 46px; }
.field__toggle {
  position: absolute;
  top: 50%;
  right: 5px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color .16s ease, background-color .16s ease;
}
.field__toggle:hover { color: var(--ink); background: var(--surface-2); }
.field__toggle:focus-visible {
  outline: none;
  color: var(--brand);
  box-shadow: 0 0 0 2px var(--brand-soft);
}
.field__toggle[aria-pressed="true"] { color: var(--brand); }
.field__toggle-icon { display: inline-flex; }
.field__error { display: block; margin-top: 5px; font-size: .84rem; color: var(--danger); font-weight: 550; }

.input-file {
  width: 100%;
  padding: var(--space-4);
  font-size: .9rem;
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.input-file:hover { border-color: var(--brand); background: var(--brand-soft); }

.check { display: flex; gap: 11px; align-items: flex-start; cursor: pointer; }
.check input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--brand); flex: none; }
.check__title { font-weight: 620; font-size: .95rem; }
.check__text { color: var(--muted); font-size: .87rem; }

.radio-cards { display: grid; gap: var(--space-3); }
.radio-card {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding: var(--space-4);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease;
}
.radio-card:hover { border-color: var(--brand); background: var(--surface); }
.radio-card input { margin-top: 3px; accent-color: var(--brand); flex: none; width: 17px; height: 17px; }
.radio-card__name { font-weight: 650; }
.radio-card__price { color: var(--brand); font-weight: 700; }
.radio-card__text { color: var(--muted); font-size: .87rem; margin: 3px 0 0; }
.radio-card:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 1px var(--brand); }

.fieldset { border: 0; padding: 0; margin: 0 0 var(--space-6); }
.fieldset__legend {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  padding: 0 0 var(--space-4);
  font-size: 1.06rem;
  font-weight: 660;
  letter-spacing: -.015em;
}
.fieldset__n {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  font-size: .8rem;
  font-weight: 700;
  flex: none;
}
.form-grid { display: grid; gap: 0 var(--space-4); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.form-grid--full { grid-column: 1 / -1; }

/* -------------------------------------------------------------- alertas */

.alert {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding: var(--space-4);
  border-radius: var(--radius);
  border: 1px solid;
  margin-bottom: var(--space-4);
  font-size: .94rem;
}
.alert--sucesso { background: var(--ok-soft); border-color: var(--ok); color: var(--ok); }
.alert--erro { background: var(--danger-soft); border-color: var(--danger); color: var(--danger); }
.alert--aviso { background: var(--warn-soft); border-color: var(--warn); color: var(--warn); }
.alert--info { background: var(--info-soft); border-color: var(--info); color: var(--info); }
.alert strong { font-weight: 700; }
.alert__icon { flex: none; margin-top: 1px; }

.flash-stack { position: relative; z-index: 30; }

/* --------------------------------------------------------------- tabela */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}
.table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 720px; }
.table th, .table td { padding: 13px var(--space-4); text-align: left; vertical-align: middle; }
.table thead th {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  white-space: nowrap;
}
.table tbody tr + tr td { border-top: 1px solid var(--line); }
.table tbody tr:hover td { background: var(--surface); }
.table__num { text-align: right; font-variant-numeric: tabular-nums; }
.table__actions { text-align: right; white-space: nowrap; }

.empty {
  padding: var(--space-8) var(--space-5);
  text-align: center;
  color: var(--muted);
}
.empty__icon { margin: 0 auto var(--space-4); color: var(--line-strong); }
.empty__title { font-weight: 660; color: var(--ink); margin-bottom: 6px; }

/* ------------------------------------------------------------ progresso */

.progress { display: grid; gap: var(--space-1); }
.progress__track {
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--surface-2);
  overflow: hidden;
}
.progress__fill {
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
  transition: width .5s cubic-bezier(.2, .8, .3, 1);
}

.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: var(--space-4);
  padding-bottom: var(--space-5);
  margin: 0;
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 24px;
  bottom: 0;
  width: 2px;
  background: var(--line);
}
.timeline__item:last-child::before { display: none; }
.timeline__dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 2px solid var(--line);
  color: var(--muted);
}
.timeline__item.is-done .timeline__dot { background: var(--ok-soft); border-color: var(--ok); color: var(--ok); }
.timeline__item.is-current .timeline__dot { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.timeline__title { font-weight: 640; font-size: .97rem; }
.timeline__meta { font-size: .85rem; color: var(--muted); }

/* ----------------------------------------------------------- resumo/kpi */

.summary { position: sticky; top: calc(var(--header-h) + var(--space-4)); }
@media (max-width: 900px) { .summary { position: static; } }

.summary__line {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 9px 0;
  font-size: .93rem;
}
.summary__line + .summary__line { border-top: 1px dashed var(--line); }
.summary__label { color: var(--ink-2); }
.summary__label small { display: block; color: var(--muted); font-size: .8rem; }
.summary__value { font-weight: 640; white-space: nowrap; font-variant-numeric: tabular-nums; }
.summary__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-4);
  margin-top: var(--space-3);
  padding-top: var(--space-4);
  border-top: 2px solid var(--line);
  font-size: 1.03rem;
  font-weight: 700;
}
.summary__total b { font-size: 1.6rem; letter-spacing: -.03em; }

.kpi-grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(184px, 1fr)); }
.kpi {
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}
.kpi__label { font-size: .8rem; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 6px; }
.kpi__value { font-size: 1.75rem; font-weight: 740; letter-spacing: -.03em; line-height: 1.1; }
.kpi__meta { font-size: .84rem; color: var(--muted); margin-top: 4px; }

/* ----------------------------------------------------------- definicoes */

.dl { display: grid; grid-template-columns: minmax(120px, auto) 1fr; gap: 10px var(--space-4); margin: 0; font-size: .93rem; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; word-break: break-word; }
@media (max-width: 560px) { .dl { grid-template-columns: 1fr; gap: 2px var(--space-4); } .dl dd { margin-bottom: 10px; } }

.thumbs { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.thumbs img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
}

/* ---------------------------------------------------------------- admin */

.admin { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }

.admin__side {
  background: var(--surface);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  /* Fica parado enquanto a tabela de pedidos rola: antes o menu sumia junto
     e era preciso voltar ao topo para trocar de secao. */
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.admin__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-4) var(--space-4);
  border-bottom: 1px solid var(--line);
}
.admin__brand .logo { font-size: 1.05rem; }
.admin__env {
  margin-left: auto;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-full);
  padding: 2px 8px;
}

.admin__nav { display: grid; gap: 1px; padding: var(--space-4) var(--space-3); }
.admin__group + .admin__group { margin-top: var(--space-5); }
.admin__group-label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 12px var(--space-2);
}

.admin__link {
  position: relative;
  display: grid;
  grid-template-columns: 20px 1fr auto;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--ink-2);
  font-size: .93rem;
  font-weight: 550;
  transition: background-color .15s ease, color .15s ease;
}
.admin__link svg { justify-self: center; opacity: .75; }
.admin__link:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.admin__link:hover svg { opacity: 1; }

/* Estado ativo por trilho + fundo suave. O preenchimento solido anterior pesava
   demais e brigava com o badge de contagem. */
.admin__link.is-active {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 650;
}
.admin__link.is-active svg { opacity: 1; }
.admin__link.is-active::before {
  content: "";
  position: absolute;
  left: -3px;
  top: 7px;
  bottom: 7px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--brand);
}

.admin__foot {
  margin-top: auto;
  padding: var(--space-4);
  border-top: 1px solid var(--line);
}
.admin__user {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: var(--space-3);
  align-items: center;
  margin-bottom: var(--space-3);
}
.admin__avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  font-size: .78rem;
  font-weight: 700;
  color: var(--ink-2);
}
.admin__user-name { font-size: .88rem; font-weight: 620; line-height: 1.3; }
.admin__user-mail {
  font-size: .76rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin__toggle { display: none; }
.admin__bar { display: none; }

.admin__main { padding: var(--space-6) var(--space-5) var(--space-8); min-width: 0; }

@media (max-width: 900px) {
  .admin { grid-template-columns: 1fr; }

  /* No celular o menu inteiro empilhava acima do conteudo e empurrava a tabela
     para fora da tela. Vira barra + gaveta. */
  .admin__bar {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    position: sticky;
    top: 0;
    z-index: 40;
    padding: 10px var(--space-4);
    background: var(--surface);
    border-bottom: 1px solid var(--line);
  }
  .admin__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    width: 42px;
    height: 42px;
    background: none;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    color: var(--ink);
    cursor: pointer;
  }
  .admin__side {
    display: none;
    position: sticky;
    top: 63px;
    height: auto;
    max-height: calc(100vh - 63px);
    border-right: 0;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    z-index: 39;
  }
  .admin__side.is-open { display: flex; }
  .admin__brand { display: none; }
  .admin__main { padding: var(--space-5) var(--space-4) var(--space-7); }
}
.admin__head { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; justify-content: space-between; margin-bottom: var(--space-6); }
.admin__title { margin: 0; font-size: 1.5rem; }

/* --------------------------------------------------------------- footer */

.footer {
  margin-top: auto;
  padding-block: var(--space-7) var(--space-5);
  background: var(--surface);
  border-top: 1px solid var(--line);
  font-size: .92rem;
}
/* NÃO voltar a misturar `1.6fr` com `repeat(auto-fit, …)`: combinar track
   flexível com auto-repeat é inválido, o navegador descarta a declaração
   inteira e o rodapé desaba numa coluna só no desktop. */
.footer__grid {
  display: grid;
  gap: var(--space-6) var(--space-5);
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin-bottom: var(--space-6);
}
.footer__brand { grid-column: span 2; }
@media (max-width: 720px) {
  .footer__brand { grid-column: 1 / -1; }
}
.footer__title { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: var(--space-3); }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer__list a { color: var(--ink-2); }
.footer__list a:hover { color: var(--brand); }
.footer__about { color: var(--muted); max-width: 34ch; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .86rem;
}

.page { display: flex; flex-direction: column; min-height: 100vh; }
.page__main { flex: 1; }

/* ------------------------------------------- botão flutuante de atendimento

   Abre a conversa de atendimento — que é uma thread À PARTE da montagem do
   site. Substituiu o atalho direto para o WhatsApp de propósito: assim a
   dúvida comum é respondida na hora, sem custo humano, e só chega no WhatsApp
   quem realmente precisa de gente (já identificado e com o histórico junto). */

.fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 45;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px 13px 15px;
  border-radius: var(--radius-full);
  background: var(--ink);
  color: var(--bg);
  font-weight: 650;
  font-size: .93rem;
  box-shadow: var(--shadow-lg);
  transition: transform .18s ease, box-shadow .18s ease;
}
.fab:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 22px 52px rgba(0, 0, 0, .28); }
.fab:active { transform: translateY(0); }

.fab__dot {
  position: relative;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  flex: none;
}
/* Anel pulsante: sinaliza "tem alguém aqui" sem precisar de texto. */
.fab__dot::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid var(--brand-2);
  opacity: 0;
  animation: fabPulse 2.6s ease-out infinite;
}
@keyframes fabPulse {
  0% { transform: scale(.8); opacity: .7; }
  70% { transform: scale(1.25); opacity: 0; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .fab__dot::before { animation: none; } }

.fab__text { display: inline; }
@media (max-width: 560px) {
  .fab { padding: 11px; right: 14px; bottom: 14px; gap: 0; }
  .fab__text { display: none; }
}

/* --------------------------------------------------------- microanimacao */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s ease, transform .55s cubic-bezier(.2, .8, .3, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ------------------------------------------------- documento (juridico) */

.doc { display: grid; grid-template-columns: 220px 1fr; gap: var(--space-7); align-items: start; }
@media (max-width: 900px) { .doc { grid-template-columns: 1fr; gap: var(--space-5); } }

.doc__toc { position: sticky; top: calc(var(--header-h) + var(--space-4)); }
@media (max-width: 900px) {
  .doc__toc { position: static; border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-4); }
}
.doc__toc-title {
  font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--muted); margin-bottom: var(--space-3);
}
.doc__toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: doc; }
.doc__toc li { margin: 0; counter-increment: doc; }
.doc__toc a {
  display: block; padding: 5px 10px; border-radius: var(--radius-sm);
  font-size: .87rem; color: var(--ink-2); line-height: 1.35;
}
.doc__toc a::before { content: counter(doc) ". "; color: var(--muted); }
.doc__toc a:hover { background: var(--surface-2); color: var(--brand); text-decoration: none; }

.doc__body { max-width: 68ch; counter-reset: sec; }
.doc__body h2 {
  font-size: 1.22rem; margin: var(--space-7) 0 var(--space-3);
  scroll-margin-top: calc(var(--header-h) + var(--space-4)); counter-increment: sec;
}
.doc__body h2::before { content: counter(sec) ". "; color: var(--muted); font-weight: 600; }
.doc__body > h2:first-child { margin-top: 0; }
.doc__body h3 { font-size: 1rem; margin: var(--space-5) 0 var(--space-2); }
.doc__body p, .doc__body li { color: var(--ink-2); }
.doc__body ul { display: grid; gap: 7px; margin-bottom: var(--space-4); }
.doc__body strong { color: var(--ink); }

.doc__meta {
  display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4);
  padding-bottom: var(--space-4); margin-bottom: var(--space-5);
  border-bottom: 1px solid var(--line); font-size: .86rem; color: var(--muted);
}

.doc__table { width: 100%; border-collapse: collapse; font-size: .9rem; margin-bottom: var(--space-4); }
.doc__table th, .doc__table td {
  text-align: left; padding: 10px 12px; border: 1px solid var(--line); vertical-align: top;
}
.doc__table th { background: var(--surface); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }

.doc__callout {
  border: 1px solid var(--line-strong); border-left: 3px solid var(--brand);
  background: var(--surface); padding: var(--space-4); border-radius: 0 var(--radius) var(--radius) 0;
  margin: var(--space-5) 0;
}
.doc__callout p { margin: 0; font-size: .92rem; }

/* ------------------------------------------------------------ utilitarios */

.breadcrumb { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; font-size: .87rem; color: var(--muted); margin-bottom: var(--space-4); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb__sep { opacity: .5; }

.split { display: grid; grid-template-columns: 1.45fr .95fr; gap: var(--space-6); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.code-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: .9rem;
  font-weight: 650;
  letter-spacing: .02em;
}

.demo-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  justify-content: space-between;
  padding: 10px var(--space-5);
  background: #0f1218;
  color: #fff;
  font-size: .9rem;
}
.demo-bar a { color: #fff; }
.demo-bar__tag {
  padding: 2px 9px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, .16);
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* =========================================================================
   Assistente guiado — conversa à esquerda, prévia do site à direita.
   ========================================================================= */

.assist {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: var(--space-5);
  align-items: start;
  padding-block: var(--space-5) var(--space-8);
}
@media (max-width: 980px) {
  .assist { grid-template-columns: 1fr; }
}

.assist__col { min-width: 0; }

/* ------------------------------------------------------------ progresso */
.assist__head { margin-bottom: var(--space-4); }
.assist__steps {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 8px;
}
.assist__bar { height: 5px; border-radius: var(--radius-full); background: var(--surface-2); overflow: hidden; }
.assist__fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  transition: width .45s cubic-bezier(.2, .8, .3, 1);
}

/* -------------------------------------------------------------- conversa */
.assist__thread {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}

.bubble {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  max-width: 640px;
}
.bubble__avatar {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
}
.bubble__text {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px 14px 14px 14px;
  padding: 11px 15px;
  font-size: .96rem;
  line-height: 1.55;
}
.bubble--me { margin-left: auto; flex-direction: row-reverse; }
.bubble--me .bubble__text {
  background: var(--brand);
  color: var(--brand-ink);
  border-color: transparent;
  border-radius: 14px 4px 14px 14px;
}
.bubble--me .bubble__avatar { background: var(--surface-2); color: var(--ink-2); }

/* Entrada suave só na última fala, para não animar a conversa toda a cada carga. */
.bubble--new { animation: bubbleIn .32s cubic-bezier(.2, .8, .3, 1) both; }
@keyframes bubbleIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .bubble--new { animation: none; } }

/* ---------------------------------------------------------------- resposta */
.assist__answer {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
}
.assist__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }

.assist__options { display: grid; gap: var(--space-2); }
.assist__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  font-size: .94rem;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, transform .12s ease;
}
.assist__option:hover { border-color: var(--brand); background: var(--brand-soft); }
.assist__option:active { transform: translateY(1px); }
.assist__option small { display: block; font-weight: 500; color: var(--muted); font-size: .84rem; margin-top: 2px; }
.assist__option-price { font-size: .88rem; font-weight: 700; color: var(--brand); white-space: nowrap; }

/* Escolha de modelo: miniatura + botão, dentro da conversa. */
.assist__templates { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--space-3); }
.assist__template {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}
.assist__template .preview { border-bottom: 1px solid var(--line); }
.assist__template-body { padding: var(--space-3); display: flex; flex-direction: column; gap: 8px; flex: 1; }
.assist__template-name { font-weight: 650; font-size: .95rem; }
.assist__template-foot { display: flex; gap: 6px; margin-top: auto; }
.assist__template-foot .btn { flex: 1; }

/* ------------------------------------------------------------------ prévia */
.assist__preview { position: sticky; top: calc(var(--header-h) + var(--space-4)); }
@media (max-width: 980px) { .assist__preview { position: static; } }

.livepv {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.livepv__bar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.livepv__dots { display: flex; gap: 5px; }
.livepv__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); display: block; }
.livepv__url {
  flex: 1;
  font-family: var(--mono);
  font-size: .76rem;
  color: var(--muted);
  background: var(--surface-2);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.livepv__frame { width: 100%; height: 560px; border: 0; display: block; background: var(--bg); }
@media (max-width: 980px) { .livepv__frame { height: 420px; } }

.livepv__foot {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  background: var(--bg);
  font-size: .82rem;
  color: var(--muted);
}
.livepv__live { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ok); }
.livepv__live i {
  width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: block;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .livepv__live i { animation: none; } }

.livepv__empty {
  display: grid;
  place-items: center;
  gap: var(--space-3);
  height: 360px;
  text-align: center;
  padding: var(--space-5);
  color: var(--muted);
}

/* Resumo do pedido dentro da conversa. */
.assist__review { display: grid; gap: var(--space-2); }
.assist__review dl { display: grid; grid-template-columns: auto 1fr; gap: 6px var(--space-4); margin: 0; font-size: .92rem; }
.assist__review dt { color: var(--muted); }
.assist__review dd { margin: 0; font-weight: 550; }
