/* =====================================================================
   SÁLVIA — Design System (versão clara)
   Verde-oliva sobre papel cru, calmo e herbal.
   Tipos: Newsreader (serif itálica elegante) + Inter (geométrica moderna).
   Usado por: index.html, trajetoria.html, agendar.html, area_do_cliente.html
   ===================================================================== */

/* ---------- 1. TOKENS ---------- */
:root {
  color-scheme: light;

  /* cor */
  --bg: #F4F3EC;
  --bg-soft: #ECEBE2;
  --paper: #FBFAF5;
  --ink: #1F2622;
  --ink-soft: #3A423D;
  --ink-mute: #6B7570;
  --rule: #DAD8CB;
  --accent: oklch(0.45 0.035 155);
  --accent-deep: oklch(0.38 0.035 155);
  --glow: #C9B96A;
  --warn-bg: #ECEBE2;
  --warn-ink: #3A423D;
  --grain-op: 0.045;
  --hearth-op: 0.9;

  /* tipo */
  --font-head: "Newsreader", Georgia, serif;
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;

  /* layout */
  --max: 1140px;
  --pad-x: clamp(20px, 5vw, 56px);

  /* lanterna (nuvem de temas) */
  --lc-ink: var(--ink);
  --lc-mute: var(--ink-mute);
  --lc-accent: var(--accent);
  --lc-glow: var(--glow);
  --lc-head: var(--font-body);
  --lc-head-weight: 400;
  --lc-body: var(--font-body);
  --lc-rest-theme: 0.09;
  --lc-rest-term: 0.04;
  --lc-max-theme: 0.45;
  --lc-max-term: 0.35;
  --lc-light-size: 34vw;
  --lc-light-size-m: 84vw;
  --lc-light-alpha: 0.3;
  --lc-light-blend: multiply;
}

/* ---- Sálvia Claro (Modo Padrão / Ink) ---- */
html[data-palette="ink"] {
  color-scheme: light;
  --bg: #F4F3EC;
  --bg-soft: #ECEBE2;
  --paper: #FBFAF5;
  --ink: #1F2622;
  --ink-soft: #3A423D;
  --ink-mute: #6B7570;
  --rule: #DAD8CB;
  --accent: oklch(0.45 0.035 155);
  --accent-deep: oklch(0.38 0.035 155);
  --glow: #C9B96A;
  --warn-bg: #ECEBE2;
  --warn-ink: #3A423D;
  --grain-op: 0.045;
  --hearth-op: 0.9;
  --lc-ink: var(--ink);
  --lc-mute: var(--ink-mute);
  --lc-accent: var(--accent);
  --lc-glow: var(--glow);
  --lc-light-blend: multiply;
}

html[data-palette="ink"] body {
  background:
    radial-gradient(110% 70% at 85% -12%, #FBFAF0 0%, rgba(251, 250, 240, 0) 55%),
    radial-gradient(120% 60% at 50% 112%, #E5E1C4 0%, rgba(229, 225, 196, 0) 60%),
    linear-gradient(to bottom, #F4F3EC, #ECEBE2);
  background-attachment: fixed;
  color: var(--ink);
}

/* ---- Sálvia Noite (Modo Escuro) ---- */
html[data-palette="sage"] {
  color-scheme: dark;
  --bg: #1A211D;
  --bg-soft: #232B26;
  --paper: #232B26;
  --ink: #ECE7D6;
  --ink-soft: #C5BFAE;
  --ink-mute: #8B9088;
  --rule: #2D3731;
  --accent: oklch(0.80 0.058 155);
  --accent-deep: oklch(0.72 0.058 155);
  --accent-soft: color-mix(in oklab, var(--accent) 16%, transparent);
  --glow: #94BEA9;
  --warn-bg: #232B26;
  --warn-ink: #C5BFAE;
  --error: #E07856;
  --offset-shadow: rgba(0, 0, 0, 0.45);
  --grain-op: 0.07;
  --hearth-op: 0.55;
  --lc-ink: var(--ink);
  --lc-mute: var(--ink-mute);
  --lc-accent: var(--accent);
  --lc-glow: var(--glow);
  --lc-light-blend: screen;
}

html[data-palette="sage"] body {
  background:
    radial-gradient(110% 70% at 85% -12%, #232B26 0%, rgba(35, 43, 38, 0) 55%),
    radial-gradient(120% 60% at 50% 112%, #1C231F 0%, rgba(28, 35, 31, 0) 60%),
    linear-gradient(to bottom, #1A211D, #131A16);
  background-attachment: fixed;
  color: var(--ink);
}

/* Alternador de Tema */
.theme-toggle {
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  color: var(--ink-soft);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  font-family: var(--font-body);
}
.theme-toggle:hover {
  background: var(--rule);
  color: var(--ink);
}
.theme-toggle #theme-icon {
  font-size: 14px;
}

@media (max-width: 1399px) {
  :root {
    --lc-rest-theme: 0.12;
    --lc-rest-term: 0.04;
    --lc-max-theme: 0.55;
    --lc-max-term: 0.35;
    --lc-light-size: 26vw;
  }
}

/* ---------- 2. BASE ---------- */
* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  overflow-x: clip;
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background:
    radial-gradient(110% 70% at 85% -12%, #FBFAF0 0%, rgba(251, 250, 240, 0) 55%),
    radial-gradient(120% 60% at 50% 112%, #E5E1C4 0%, rgba(229, 225, 196, 0) 60%),
    linear-gradient(to bottom, #F4F3EC, #ECEBE2);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  font-weight: 400;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* grão de filme sobre tudo */
body::after {
  content: "";
  position: fixed;
  inset: -10%;
  pointer-events: none;
  z-index: 200;
  opacity: var(--grain-op);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* luz da sala: brilho sutil que respira, vindo de baixo */
.room-light {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: var(--hearth-op);
  background:
    radial-gradient(120% 55% at 50% 108%,
      color-mix(in oklab, var(--glow) 15%, transparent) 0%,
      color-mix(in oklab, var(--glow) 5%, transparent) 45%,
      transparent 72%),
    radial-gradient(55% 38% at 90% -8%,
      color-mix(in oklab, var(--glow) 10%, transparent) 0%,
      transparent 70%);
}

@media (prefers-reduced-motion: no-preference) {
  .room-light {
    animation: hearth-breathe 7s ease-in-out infinite;
  }

  @keyframes hearth-breathe {

    0%,
    100% {
      opacity: calc(var(--hearth-op) * 0.75);
    }

    38% {
      opacity: var(--hearth-op);
    }

    52% {
      opacity: calc(var(--hearth-op) * 0.85);
    }

    70% {
      opacity: calc(var(--hearth-op) * 0.97);
    }
  }
}

/* ---------- 3. NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}

.nav.scrolled {
  border-bottom-color: var(--rule);
}

.nav .wrap {
  max-width: 1320px; /* Abre mais espaço nas laterais no desktop */
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px var(--pad-x);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 19px;
  white-space: nowrap; /* Impede a quebra de linha do logotipo no desktop */
  flex-shrink: 0;
}

.brand-nome {
  white-space: nowrap; /* Impede que o nome do logotipo quebre no desktop */
}

.brand-mark-m {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand-crp-mobile {
  display: none;
}

.brand-mark {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 0 10px color-mix(in oklab, var(--glow) 60%, transparent);
}

@media (prefers-reduced-motion: no-preference) {
  .brand-mark {
    animation: ember-pulse 4.2s ease-in-out infinite;
  }

  @keyframes ember-pulse {

    0%,
    100% {
      box-shadow: 0 0 6px color-mix(in oklab, var(--glow) 40%, transparent);
      opacity: 0.9;
    }

    50% {
      box-shadow: 0 0 14px color-mix(in oklab, var(--glow) 75%, transparent);
      opacity: 1;
    }
  }
}

.brand-mobile-meta {
  display: none;
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  white-space: nowrap;
}

.brand-meta {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.02em;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link {
  font-size: 14px;
  color: var(--ink-soft);
  position: relative;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: var(--glow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.nav-link:hover {
  color: var(--ink);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.nav-link.is-active {
  color: var(--ink);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid color-mix(in oklab, var(--ink) 55%, transparent);
  border-radius: 999px;
  font-size: 14px;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  box-shadow: 0 0 24px color-mix(in oklab, var(--glow) 24%, transparent);
}

.nav-cta .arr {
  transition: transform 0.25s ease;
}

.nav-cta:hover .arr {
  transform: translateX(3px);
}

@media (max-width: 1220px) {
  .nav .wrap {
    max-width: 100%;
    padding-left: 20px;
    padding-right: 20px;
  }
  .nav-right {
    gap: 16px;
  }
  .brand {
    font-size: 17px;
    gap: 8px;
  }
}

@media (max-width: 1100px) {
  .nav-right {
    gap: 11px;
  }
  .brand {
    font-size: 15.5px;
  }
  .nav-link {
    font-size: 13px;
  }
}

@media (max-width: 680px) {

  .brand-meta,
  .nav-link {
    display: none;
  }

  .brand-mobile-meta {
    display: inline;
  }

  .brand {
    gap: 7px;
    font-size: 15px;
    align-items: center;
    min-width: 0;
    white-space: normal;
  }

  .brand-nome {
    display: flex;
    flex-direction: column;
    line-height: 1.12;
    min-width: 0;
  }

  .brand-nome-2 {
    font-size: 12.5px;
    font-style: italic;
    color: var(--ink-soft);
  }

  .brand-crp-mobile {
    display: inline;
    font-size: 8.5px;
    font-style: normal;
    color: var(--ink-soft);
  }

  .brand-mobile-meta {
    font-size: 9px;
    letter-spacing: 0.09em;
  }

  .nav-right {
    gap: 10px;
  }
}

/* ---------- 4. BOTÕES ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 15px;
  font-weight: 500;
  border: 1px solid var(--ink);
  cursor: pointer;
  font-family: inherit;
  transition: box-shadow 0.3s ease, transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.btn:hover {
  box-shadow: 0 0 34px color-mix(in oklab, var(--glow) 32%, transparent);
  transform: translateY(-1px);
}

.btn .arr {
  transition: transform 0.25s ease;
}

.btn:hover .arr {
  transform: translateX(3px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 24px;
  font-size: 14px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.btn-secondary:hover {
  border-color: var(--ink-mute);
  background: color-mix(in oklab, var(--ink) 5%, transparent);
}

/* ---------- 5. SEÇÕES / TIPOGRAFIA EDITORIAL ---------- */
.block {
  padding: clamp(72px, 10vw, 130px) 0;
  position: relative;
}

.block+.block {
  border-top: 1px solid var(--rule);
}

.block-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.block-label::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
}

.block-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.section-title {
  font-size: clamp(28px, 2.8vw, 46px);
  line-height: 1.1;
  font-weight: 300;
}

.section-title em,
.hero-em {
  font-style: italic;
  color: var(--accent);
  font-weight: 300;
}

.lede {
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.65;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.body-copy {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 62ch;
}

.body-copy+.body-copy {
  margin-top: 18px;
}

.body-copy strong {
  color: var(--ink);
  font-weight: 500;
}

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

/* ---------- 6. AVISO (emergência) ---------- */
.notice {
  margin-top: 36px;
  padding: 22px 26px;
  background: var(--warn-bg);
  border: 1px solid var(--rule);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
}

.notice-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  padding-top: 4px;
  white-space: nowrap;
}

.notice-body {
  font-size: 15px;
  color: var(--warn-ink);
  line-height: 1.55;
}

.notice-body strong {
  font-weight: 600;
  color: var(--ink);
}

@media (max-width: 560px) {
  .notice {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* ---------- 7. FORMULÁRIOS ---------- */
.field label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 8px;
  font-weight: 500;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"] {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--rule);
  background: transparent;
  padding: 8px 0 10px;
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  transition: border-color 0.2s ease;
}

.field input:focus {
  outline: none;
  border-bottom-color: var(--accent-deep);
}

.field input::placeholder {
  color: color-mix(in oklab, var(--ink-mute) 60%, transparent);
}

.radio-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.radio-chip {
  cursor: pointer;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  font-size: 14px;
  color: var(--ink-soft);
  position: relative;
  transition: border-color 0.2s ease, background 0.25s ease, color 0.25s ease;
}

.radio-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-chip:has(input:checked) {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.radio-chip:hover {
  border-color: var(--ink-mute);
}

/* ---------- 8. FOOTER ---------- */
footer {
  border-top: 1px solid var(--rule);
  padding: 56px 0 100px;
  color: var(--ink-mute);
  font-size: 14px;
  position: relative;
  z-index: 1;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
}

.foot-brand {
  font-family: var(--font-head);
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 6px;
}

.foot-col h4 {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
  margin: 0 0 14px;
  font-family: var(--font-body);
}

.foot-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.foot-col a:hover {
  color: var(--ink);
}

.foot-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  flex-wrap: wrap;
}

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

/* ---------- 9. CTA FINAL (sentar perto do fogo) ---------- */
.cta-final {
  position: relative;
  border-top: 1px solid var(--rule);
  padding: clamp(90px, 13vw, 170px) 0 clamp(110px, 14vw, 190px);
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}

.cta-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(90% 70% at 50% 118%,
      color-mix(in oklab, var(--glow) 17%, transparent) 0%,
      color-mix(in oklab, var(--glow) 6%, transparent) 45%,
      transparent 75%);
  pointer-events: none;
}

.cta-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.cta-final .wrap {
  position: relative;
  z-index: 1;
}

.cta-final h2 {
  font-size: clamp(34px, 4.2vw, 68px);
  line-height: 1.08;
  max-width: 18ch;
  margin: 0 auto 22px;
  font-weight: 300;
}

.cta-final .cta-line {
  display: block;
}

.cta-final h2 em {
  font-style: italic;
  color: var(--accent);
}

.cta-final p {
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 42ch;
  margin: 0 auto 34px;
}

.cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.cta-quiet {
  font-size: 13px;
  color: var(--ink-mute);
  width: 100%;
  margin-top: 4px;
}

@media (max-width: 560px) {
  .cta-final h2 {
    font-size: clamp(26px, 7vw, 32px);
    max-width: none;
    margin-bottom: 18px;
    line-height: 1.12;
  }

  .cta-final .cta-line-first,
  .cta-final .cta-line-second {
    white-space: nowrap;
  }

  .cta-final p {
    font-size: clamp(13px, 3.7vw, 15px);
    max-width: 33ch;
    margin-bottom: 30px;
  }
}

@media (max-width: 380px) {
  .cta-final h2 {
    font-size: 24px;
  }

  .cta-final p {
    font-size: 12.5px;
    max-width: 31ch;
  }
}

/* ---------- 10b. APP BAR (somente mobile — desktop intacto) ---------- */
.app-bar {
  display: none;
}

.scroll-progress {
  display: none;
}

@media (max-width: 768px) {

  /* barra inferior que simula um app (grudada no rodapé mobile) */
  .app-bar {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 95 !important;
    display: flex !important;
    align-items: center;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px)) !important;
    background: color-mix(in oklab, var(--paper) 94%, transparent) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: none !important;
    border-top: 1px solid color-mix(in oklab, var(--ink) 12%, transparent) !important;
    border-radius: 0 !important;
    box-shadow: 0 -4px 20px -2px color-mix(in oklab, var(--ink) 8%, transparent) !important;
  }

  html[data-palette="sage"] .app-bar {
    background: rgba(35, 43, 38, 0.94) !important;
    border-top: 1px solid rgba(236, 231, 214, 0.14) !important;
  }

  .app-tab {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1; /* Distribui o espaço igualmente para simetria perfeita */
    min-width: 0;
    gap: 4px;
    padding: 8px 0 6px;
    color: var(--ink-soft);
    opacity: 0.65;
    font-size: 10px;
    letter-spacing: 0.04em;
    font-weight: 600;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.25s ease, opacity 0.25s ease, transform 0.2s cubic-bezier(0.2, 0.7, 0.2, 1);
  }

  .app-tab:active {
    transform: scale(0.92);
  }

  .app-tab svg {
    display: block;
    transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), stroke-width 0.25s ease;
  }

  .app-tab::before {
    /* brasa indicadora sutil abaixo do texto */
    content: "";
    position: absolute;
    bottom: -1px;
    left: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent);
    transform: translateX(-50%) scale(0);
    transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 0 8px var(--glow);
  }

  .app-tab.is-active {
    color: var(--accent-deep);
    opacity: 1;
  }

  .app-tab.is-active::before {
    transform: translateX(-50%) scale(1);
  }

  .app-tab.is-active svg {
    color: var(--accent);
    transform: translateY(-1px);
    stroke-width: 2.1px;
  }

  /* botão central elevado (conversar) */
  .app-fab {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1; /* Distribui o espaço igualmente para simetria perfeita */
    min-width: 0;
    gap: 4px;
    padding: 0 0 4px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--ink-soft);
    -webkit-tap-highlight-color: transparent;
    margin-left: 13px; /* Desloca o ícone para a direita para equalizar as distâncias */
  }

  .app-fab .fab-circle {
    width: 48px;
    height: 48px;
    margin-top: -22px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--bg);
    display: grid;
    place-items: center;
    border: 3.5px solid var(--paper) !important;
    box-shadow:
      0 8px 20px -4px color-mix(in oklab, var(--accent) 50%, transparent),
      0 0 16px color-mix(in oklab, var(--glow) 25%, transparent);
    transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.3s ease;
  }

  .app-fab:active .fab-circle {
    transform: scale(0.92);
  }

  @media (prefers-reduced-motion: no-preference) {
    .app-bar {
      animation: appbar-in 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s backwards;
    }

    @keyframes appbar-in {
      from {
        transform: translateY(120%);
        opacity: 0;
      }
    }

    /* apenas o círculo do FAB flutua — label e tabs ficam parados */
    .app-fab .fab-circle {
      animation: fab-ember 3.5s ease-in-out infinite;
    }

    @keyframes fab-ember {
      0%,
      100% {
        transform: translateY(0);
        box-shadow:
          0 8px 20px -4px color-mix(in oklab, var(--accent) 50%, transparent),
          0 0 16px color-mix(in oklab, var(--glow) 25%, transparent);
      }

      50% {
        transform: translateY(-3px);
        box-shadow:
          0 12px 24px -4px color-mix(in oklab, var(--accent) 65%, transparent),
          0 0 24px color-mix(in oklab, var(--glow) 40%, transparent);
      }
    }
  }

  /* desloca o tab Agendar levemente para perto de Cliente */
  .app-tab[href="agendar.html"] {
    margin-left: 12px;
  }

  /* fio de brasa: progresso de leitura no topo */
  .scroll-progress {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    z-index: 60;
    background: linear-gradient(to right, var(--accent-deep), var(--glow));
    transform-origin: left;
    transform: scaleX(0);
    pointer-events: none;
    box-shadow: 0 0 8px color-mix(in oklab, var(--glow) 60%, transparent);
  }

  /* acomodações quando a app bar está presente */
  body.has-appbar {
    padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px));
  }

  body.has-appbar .nav-cta {
    display: none;
  }

  body.has-appbar footer {
    padding-bottom: 48px;
  }

  body.has-appbar .som-toggle {
    bottom: calc(94px + env(safe-area-inset-bottom, 0px));
  }
}

/* ---------- 10. REVEAL ON SCROLL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

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

  .room-light {
    animation: none !important;
  }
}

/* ---------- 11. UTILITÁRIOS MOBILE / DESKTOP ---------- */
/* Uso no HTML:
     só aparece no desktop  → class="desktop-only"
     só aparece no mobile   → class="mobile-only"
   Breakpoint: 680px (igual ao app-bar e ao nav do projeto)
*/
@media (max-width: 680px) {
  .desktop-only {
    display: none !important;
  }
}

@media (min-width: 681px) {
  .mobile-only {
    display: none !important;
  }
}

/* ícones black tattoo ================================================
   Proposta de aplicação dos ícones Sálvia (pack blacktattoo_pack_v1).
   Ver 09_Imagens_e_Identidade/PROPOSTA_ICONES_SITE_SALVIA.md no hub.
   Regra: stroke herdado via currentColor (cor = var(--ink) por padrão);
   1 único acento em var(--accent) — reservado à ilustração da poltrona.
   ===================================================================== */
.bt-icon {
  display: block;
  flex-shrink: 0;
  color: var(--ink);
}

/* ---- cards de tema (index.html · buildTemas) ----
   #temas-grid eleva a especificidade para vencer ".tema-cell h3" definido
   no <style> interno de index.html (align-items:baseline / gap:10px). */
#temas-grid .tema-cell h3 {
  align-items: center;
  gap: 14px;
}

.bt-icon-tema {
  width: 48px;
  height: 48px;
}

/* ---- steps "como funciona" (index.html · buildSteps) ----
   Especificidade alta (.step .step-btn .step-icon) para vencer o estilo
   de 14px definido no <style> interno de index.html, que carrega depois
   de salvia.css. O indicador +/- original (::before/::after) some: o
   ícone ilustrativo assume o lugar dessa affordance. */
.step .step-btn {
  grid-template-columns: 56px 1fr auto 44px;
}

.step .step-btn .step-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step .step-btn .step-icon::before,
.step .step-btn .step-icon::after {
  display: none;
}

.step-icon .bt-icon-step {
  width: 44px;
  height: 44px;
  color: var(--ink-mute);
  transition: color 0.25s ease;
}

.step.open .step-icon .bt-icon-step,
.step-btn:hover .bt-icon-step {
  color: var(--ink);
}

@media (max-width: 680px) {
  .step .step-btn {
    grid-template-columns: 36px 1fr 44px;
  }
}

/* ---- ilustração protagonista · seção Sobre (index.html) ---- */
.sobre-illu {
  display: flex;
  margin-top: 32px;
  justify-content: flex-start;
}

.bt-icon-sobre {
  width: min(200px, 85%);
  height: auto;
}

@media (max-width: 760px) {
  .sobre-illu {
    margin-top: 24px;
    justify-content: center;
  }
  
  .bt-icon-sobre {
    width: 130px;
  }
}

/* ---- ilustração protagonista · seção Online (index.html) ---- */
.online-illu {
  display: flex;
  margin-top: 40px;
}

.bt-icon-online {
  width: min(320px, 82%);
  height: auto;
}

@media (max-width: 760px) {
  .online-illu {
    margin-top: 24px;
    justify-content: flex-start;
  }

  .bt-icon-online {
    width: 148px;
  }
}

/* ---- CTA final (index.html / trajetoria.html) ---- */
.cta-illu {
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
}

.bt-icon-cta {
  width: 56px;
  height: 56px;
}

/* ---- rodapé: folha ao lado do nome (todas as páginas) ---- */
.foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.bt-icon-foot {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

/* ---- trajetoria.html: farol no hero ---- */
.th-hero-illu {
  display: flex;
  margin-bottom: 28px;
}

.bt-icon-farol {
  width: 140px;
  height: 140px;
}

@media (max-width: 820px) {
  .bt-icon-farol {
    width: 96px;
    height: 96px;
  }
}

/* ---- bolinha-marca: marcador de lista/timeline (trajetoria.html, agendar.html) ---- */
.bt-marker {
  width: 16px;
  height: 16px;
  color: var(--accent);
  position: absolute;
  left: -8px;
  top: 4px;
}

/* ícones injetados de forma genérica via [data-bt-icon] (sem classe de
   tamanho no próprio <svg>) herdam o tamanho do wrapper */
.bt-marker svg,
.bt-icon-ampulheta svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* especificidade elevada (.timeline-list .t-content::before) para vencer
   o ::before de trajetoria.html que desenha o marcador antigo (bolinha
   CSS) — substituído pelo SVG bolinha-marca injetado via .bt-marker */
.timeline-list .t-content {
  position: relative;
}

.timeline-list .t-content::before {
  content: none;
}

.o-que-esperar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.o-que-esperar-list li {
  position: relative;
  padding-left: 26px;
}

.o-que-esperar-list li+li {
  margin-top: 16px;
}

.o-que-esperar-list .bt-marker {
  left: 0;
  top: 8px;
}

/* ---- agendar.html: xícara no hero, ampulheta na agenda em breve ---- */
.agendar-hero-illu {
  display: flex;
  margin-bottom: 20px;
}

.bt-icon-xicara {
  width: 120px;
  height: 120px;
}

@media (max-width: 780px) {
  .bt-icon-xicara {
    width: 88px;
    height: 88px;
  }
}

.schedule-fallback-text h2 {
  display: flex;
  align-items: center;
  gap: 14px;
}

.bt-icon-ampulheta {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}