/* TTEU Imóveis · Landing page
   Identidade aprovada em 14/09/2026: Violeta Profundo, Areia Clara, Terracota Estratégico.
   Tipografia: Inter Display (títulos, via eixo opsz) e Inter (texto). */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Paleta oficial */
  --ameixa: #302735;
  --areia: #E9E3DA;
  --terracota: #C9785A;
  --branco: #FFFFFF;
  --preto: #000000;

  /* Derivadas (uso funcional, não substituem a paleta) */
  --ameixa-80: #4A4050;
  --ameixa-60: #6B6170;
  --areia-50: #F5F1EB;
  --areia-70: #DDD5C9;
  --terracota-texto: #9A4E33; /* terracota escurecida: contraste AA sobre areia-50 */
  --terracota-claro: #E6B09B; /* terracota clareada: texto pequeno AA sobre fundos escuros */

  --texto: var(--ameixa);
  --texto-suave: var(--ameixa-80);
  --fundo: var(--areia-50);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgb(48 39 53 / .06), 0 12px 32px -12px rgb(48 39 53 / .22);
  --gutter: 16px;
  --container: 1160px;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--texto);
  background: var(--fundo);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .5em; font-variation-settings: "opsz" 32; }
h1 { font-size: clamp(2.1rem, 6.5vw, 3.6rem); font-weight: 750; }
h2 { font-size: clamp(1.65rem, 4.2vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ameixa); color: var(--areia); padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--terracota); outline-offset: 3px; border-radius: 6px; }

.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.eyebrow { font-size: .8rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--terracota-texto); margin-bottom: .9rem; }
.eyebrow-light { color: var(--terracota-claro); }
.accent { color: var(--terracota-texto); white-space: nowrap; }
.lead { font-size: clamp(1.08rem, 2.2vw, 1.25rem); color: var(--texto-suave); max-width: 36em; }
.note { font-size: .9rem; opacity: .8; margin: .75rem 0 0; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .8rem 1.35rem; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 650; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center;
  cursor: pointer; transition: transform .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-lg { min-height: 56px; padding: 1rem 1.6rem; font-size: 1.125rem; font-weight: 700; }
.btn-sm { min-height: 40px; padding: .5rem 1rem; font-size: .95rem; }
.btn-primary { background: var(--ameixa); color: var(--areia); }
.btn-primary:hover { background: var(--ameixa-80); }
.btn-accent { background: var(--terracota); color: var(--ameixa); font-weight: 700; }
.btn-accent:hover { background: #d58a6e; }
.btn-ghost { border-color: var(--ameixa); color: var(--ameixa); background: transparent; }
.btn-ghost:hover { background: var(--ameixa); color: var(--areia); }
.btn-ghost-light { border-color: rgb(233 227 218 / .55); color: var(--areia); background: transparent; }
.btn-ghost-light:hover { border-color: var(--areia); background: rgb(233 227 218 / .08); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgb(48 39 53 / .94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease; color: var(--areia);
}
.site-header.is-scrolled { border-bottom-color: rgb(233 227 218 / .12); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand img { width: 132px; height: auto; }
.menu-toggle { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: transparent; color: var(--areia); cursor: pointer; border-radius: 10px; }
.menu-toggle-bar, .menu-toggle-bar::before, .menu-toggle-bar::after { content: ""; display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.menu-toggle-bar { position: relative; }
.menu-toggle-bar::before { position: absolute; top: -7px; }
.menu-toggle-bar::after { position: absolute; top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bar { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }

.nav {
  position: absolute; left: 0; right: 0; top: var(--header-h);
  background: var(--ameixa); border-bottom: 1px solid rgb(233 227 218 / .12);
  padding: .5rem var(--gutter) 1.25rem; display: none;
}
.nav.is-open { display: block; }
.nav ul { list-style: none; margin: 0 0 1rem; padding: 0; }
.nav li a { display: block; padding: .8rem 0; text-decoration: none; font-weight: 550; border-bottom: 1px solid rgb(233 227 218 / .12); }
.nav .btn { width: 100%; }

@media (min-width: 900px) {
  .brand img { width: 150px; }
  .menu-toggle { display: none; }
  .nav { position: static; display: flex !important; align-items: center; gap: 1.75rem; padding: 0; background: none; border: 0; }
  .nav ul { display: flex; gap: 1.5rem; margin: 0; }
  .nav li a { padding: .4rem 0; border: 0; font-size: .95rem; color: rgb(233 227 218 / .78); }
  .nav li a:hover { color: var(--areia); }
  .nav .btn { width: auto; }
}

/* Hero */
.hero {
  position: relative; overflow: hidden; padding: 2.5rem 0 3.5rem; color: var(--areia);
  background:
    radial-gradient(60rem 30rem at 85% 40%, rgb(201 120 90 / .16), transparent 60%),
    var(--ameixa);
}
.hero .accent { color: var(--terracota); }
.hero .lead { color: rgb(233 227 218 / .85); }
.hero-grid { position: relative; display: grid; gap: 2.5rem; align-items: center; }
.hero h1 .line { display: block; }
.hero-actions { display: flex; flex-direction: column; gap: .75rem; margin: 1.75rem 0 1.5rem; }
.hero-proof { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; font-size: .95rem; color: rgb(233 227 218 / .8); }
.hero-proof li { display: flex; align-items: center; gap: .55rem; }
.hero-proof li::before { content: ""; width: 8px; height: 8px; flex: none; background: var(--terracota); clip-path: polygon(50% 0, 100% 100%, 0 100%); }

@media (min-width: 600px) {
  .hero-actions { flex-direction: row; flex-wrap: wrap; }
}
@media (min-width: 960px) {
  .hero { padding: 5rem 0 6rem; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 3.5rem; }
}

/* Diagrama do match: o próprio símbolo se monta a partir das duas pontas */
.match { margin: 0; width: 100%; max-width: 560px; justify-self: center; }
.match-svg { width: 100%; height: auto; overflow: visible; }
.match-node circle { fill: rgb(233 227 218 / .06); stroke: rgb(233 227 218 / .35); stroke-width: 1.5; }
.match-icon { fill: none; stroke: var(--areia); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.match-line { fill: none; stroke: var(--terracota); stroke-width: 2; stroke-dasharray: 4 8; stroke-linecap: round; animation: match-flow 1.2s linear infinite; }
.match-line-r { animation-direction: reverse; }
@keyframes match-flow { to { stroke-dashoffset: -24; } }
.match-symbol { fill: var(--areia); }
.match-symbol .part { transform-box: view-box; animation: part-in 1s cubic-bezier(.2,.8,.2,1) both; }
.match-symbol .part-l { --from: translate(-150px, 40px); animation-delay: .3s; }
.match-symbol .part-r { --from: translate(150px, 40px); animation-delay: .3s; }
.match-symbol .part-roof { --from: translate(0, -70px); animation-delay: 1.1s; }
@keyframes part-in { from { opacity: 0; transform: var(--from); } to { opacity: 1; transform: none; } }
.match-glow { animation: glow 3.5s ease-in-out 2s infinite; transform-origin: 280px 200px; }
@keyframes glow { 0%, 100% { opacity: .7; } 50% { opacity: 1; } }
.match-labels { display: grid; grid-template-columns: 1fr 2fr 1fr; margin-top: .25rem; font-size: .8rem; line-height: 1.35; text-align: center; color: rgb(233 227 218 / .75); }
.match-labels strong { display: block; color: var(--areia); font-size: .9rem; font-weight: 650; }
.match-label-center strong { color: var(--terracota-claro); }

/* Mock de WhatsApp (ilustrativo, não clicável) */
.teo-visual { display: grid; justify-items: center; }
.phone {
  margin: 0; width: min(100%, 380px); background: var(--ameixa); border-radius: 30px; overflow: hidden;
  border: 8px solid var(--ameixa); box-shadow: var(--shadow); position: relative;
}
.phone-top { display: flex; align-items: center; gap: .7rem; background: var(--ameixa); color: var(--areia); padding: .75rem 1rem; }
.phone-avatar { width: 40px; height: 40px; padding: 7px; background: var(--ameixa-80); border-radius: 50%; object-fit: contain; }
.phone-name { margin: 0; font-weight: 650; font-size: .98rem; line-height: 1.2; }
.phone-status { margin: 0; font-size: .78rem; opacity: .75; line-height: 1.2; }
.chat { background: #EFE7DD; list-style: none; margin: 0; padding: 1rem .85rem 3.25rem; display: flex; flex-direction: column; gap: .5rem; }
.msg { max-width: 84%; padding: .55rem .8rem; border-radius: 12px; font-size: .93rem; line-height: 1.45; box-shadow: 0 1px 1px rgb(0 0 0 / .08); }
.msg-in { align-self: flex-start; background: var(--branco); border-top-left-radius: 4px; }
.msg-out { align-self: flex-end; background: #D9FDD3; border-top-right-radius: 4px; }
.js .chat .msg { display: none; }
.js .chat .msg.is-visible { display: block; animation: msg-in .35s ease both; }
@keyframes msg-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.chat-typing { align-self: flex-start; display: flex; gap: 4px; width: 58px; padding: .7rem .8rem; background: var(--branco); border-radius: 12px; border-top-left-radius: 4px; }
.chat-typing[hidden] { display: none; }
.chat-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--ameixa-60); animation: typing 1s infinite ease-in-out; }
.chat-typing span:nth-child(2) { animation-delay: .15s; }
.chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.chat-replay { position: absolute; right: 12px; bottom: 12px; border: 0; border-radius: 999px; padding: .45rem .9rem; background: var(--ameixa); color: var(--areia); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; }
.chat-replay[hidden] { display: none; }
.phone-caption { margin: .8rem 0 0; font-size: .82rem; color: var(--texto-suave); text-align: center; }

/* Téo em ação */
.section-teo { background: var(--areia); }
.teo-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 960px) { .teo-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.checks { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: .75rem; }
.checks li { position: relative; padding-left: 1.9rem; font-weight: 550; }
.checks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--ameixa); }
.checks li::after { content: ""; position: absolute; left: .42rem; top: .42em; width: .32rem; height: .6rem; border: solid var(--areia); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* Seções */
.section { padding: 4rem 0; }
.section-alt { background: var(--areia); }
.section-head { max-width: 42rem; margin-bottom: 2.25rem; }
.section-head p:not(.eyebrow) { color: var(--texto-suave); }
@media (min-width: 960px) { .section { padding: 6rem 0; } }

.split { display: grid; gap: 1rem; }
@media (min-width: 960px) {
  .split { grid-template-columns: .9fr 1.1fr; gap: 4rem; align-items: start; }
  .split .section-head { position: sticky; top: calc(var(--header-h) + 2rem); }
}

/* Dois caminhos */
.paths { padding-top: 0; margin-top: -2rem; position: relative; }
.path-grid { display: grid; gap: 1rem; }
.path-card { background: var(--branco); border-radius: var(--radius-lg); padding: 1.75rem; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: flex-start; }
.path-card p { color: var(--texto-suave); }
.path-card .btn { margin-top: auto; }
.path-kicker { font-size: .8rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--terracota-texto) !important; margin-bottom: .6rem; }
.path-card h3 { font-size: 1.45rem; }
.path-card-dark { background: var(--ameixa); color: var(--areia); border: 1px solid rgb(233 227 218 / .14); }
.path-card-dark p { color: rgb(233 227 218 / .82); }
.path-card-dark .path-kicker { color: var(--terracota-claro) !important; }
@media (min-width: 760px) { .path-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; } .path-card { padding: 2.25rem; } }

/* Passos */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: step; }
.step { background: var(--branco); border-radius: var(--radius); padding: 1.5rem; border: 1px solid var(--areia-70); }
.step-num { display: inline-block; font-weight: 750; font-size: .9rem; color: var(--areia); background: var(--ameixa); border-radius: 8px; padding: .2rem .55rem; margin-bottom: 1rem; font-variant-numeric: tabular-nums; }
.step p { color: var(--texto-suave); margin: 0; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; } }

/* Features */
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.features li { display: flex; gap: 1rem; background: var(--branco); border: 1px solid var(--areia-70); border-radius: var(--radius); padding: 1.35rem; }
.features .icon { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--ameixa); stroke: var(--areia); }
.features h3 { margin-bottom: .3rem; }
.features p { margin: 0; color: var(--texto-suave); }

/* Segurança */
.safety { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.safety li { background: var(--branco); border-radius: var(--radius-lg); padding: 1.75rem; border-top: 4px solid var(--terracota); box-shadow: var(--shadow); }
.safety .icon { width: 48px; height: 48px; padding: 11px; border-radius: 14px; background: var(--ameixa); stroke: var(--areia); margin-bottom: 1.1rem; }
.safety p { margin: 0; color: var(--texto-suave); }
@media (min-width: 860px) { .safety { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }

/* Corretores */
.section-dark { background: var(--ameixa); color: var(--areia); }
.section-dark .section-head p:not(.eyebrow) { color: rgb(233 227 218 / .82); }
.broker-points { list-style: none; margin: 0 0 2.5rem; padding: 0; display: grid; gap: 1rem; }
.broker-points li { border-top: 2px solid var(--terracota); padding-top: 1rem; }
.broker-points p { margin: 0; color: rgb(233 227 218 / .82); }
@media (min-width: 860px) { .broker-points { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }

.compare-wrap { border-radius: var(--radius); border: 1px solid rgb(233 227 218 / .18); overflow: hidden; }
.compare { width: 100%; border-collapse: collapse; font-size: .95rem; }
.compare caption { text-align: left; padding: 1rem 1.1rem; font-weight: 650; background: rgb(233 227 218 / .06); }
.compare th, .compare td { padding: .9rem 1.1rem; text-align: left; vertical-align: top; }
.compare thead th { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: rgb(233 227 218 / .7); font-weight: 650; }
.compare thead th:last-child { color: var(--terracota-claro); }
.compare tbody th { font-weight: 600; }
.compare td { color: rgb(233 227 218 / .78); }
.compare td:last-child { color: var(--areia); background: rgb(201 120 90 / .12); font-weight: 550; }

/* Mobile: cada critério vira um bloco empilhado */
@media (max-width: 699px) {
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare tr, .compare th, .compare td { display: block; }
  .compare tbody tr { border-top: 1px solid rgb(233 227 218 / .14); padding: .4rem 0 .9rem; }
  .compare tbody th { padding-bottom: .4rem; }
  .compare td { padding: .55rem 1.1rem; margin: 0 1.1rem; border-radius: 10px; }
  .compare td + td { margin-top: .4rem; }
  .compare td::before { content: attr(data-label); display: block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; opacity: .7; margin-bottom: .15rem; }
}
@media (min-width: 700px) {
  .compare th, .compare td { border-top: 1px solid rgb(233 227 218 / .14); }
  .compare tbody th { width: 26%; }
}
.stats { margin: 0 0 3rem; padding: 1.75rem; border-radius: var(--radius-lg); background: rgb(233 227 218 / .05); border: 1px solid rgb(233 227 218 / .12); }
.stats-lead { font-size: 1.15rem; font-weight: 650; margin-bottom: 1.25rem; }
.stats-grid { display: grid; gap: 1.25rem; margin: 0; }
.stats-grid div { display: flex; flex-direction: column-reverse; }
.stats-grid dt { font-size: .92rem; color: rgb(233 227 218 / .75); }
.stats-grid dd { margin: 0; font-size: clamp(2rem, 6vw, 2.75rem); font-weight: 750; letter-spacing: -0.02em; line-height: 1.1; color: var(--terracota); font-variant-numeric: tabular-nums; }
.stats-source { margin: 1.25rem 0 0; font-size: .8rem; color: rgb(233 227 218 / .6); }
@media (min-width: 760px) { .stats-grid { grid-template-columns: repeat(3, 1fr); } .stats { padding: 2.25rem; } }

.ppu { display: grid; gap: 1.5rem; margin-top: 3rem; }
.ppu > div { border-radius: var(--radius-lg); padding: 1.75rem; }
.ppu > div:first-child { background: rgb(233 227 218 / .05); border: 1px solid rgb(233 227 218 / .12); }
.ppu p { color: rgb(233 227 218 / .82); }
.ppu h3 { font-size: 1.35rem; }
.launch { background: #3A3040; border: 1px solid rgb(201 120 90 / .45); }
.launch .btn { width: 100%; }
.launch-tag { display: inline-block; padding: .35rem .8rem; border-radius: 999px; background: rgb(201 120 90 / .18); color: var(--terracota-claro) !important; font-size: .8rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
@media (min-width: 600px) { .launch .btn { width: auto; } }
@media (min-width: 860px) { .ppu { grid-template-columns: 1fr 1fr; } .ppu > div { padding: 2.25rem; } }

.section-cta { margin-top: 2.5rem; }
.section-cta .btn { width: 100%; }
@media (min-width: 600px) { .section-cta .btn { width: auto; } }

/* Quem somos */
.prose p { color: var(--texto-suave); font-size: 1.1rem; }
.trust { list-style: none; padding: 0; margin: 1.75rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.trust li { padding: .5rem .9rem; border-radius: 999px; background: var(--areia); font-size: .92rem; font-weight: 550; }

/* FAQ */
.faq { display: grid; gap: .6rem; }
.faq details { background: var(--areia-50); border-radius: var(--radius); padding: 0 1.25rem; }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.1rem 2rem 1.1rem 0; font-weight: 650; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 2px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--ameixa); border-bottom: 2px solid var(--ameixa); transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { color: var(--texto-suave); padding-bottom: 1.1rem; margin: 0; }

/* CTA final */
.final-cta { background: var(--ameixa); color: var(--areia); text-align: center; }
.final-inner { display: grid; justify-items: center; }
.final-inner img { width: 60px; height: auto; margin-bottom: 1.5rem; }
.final-inner h2 { max-width: 18ch; }
.final-inner p { color: rgb(233 227 218 / .82); margin-bottom: 2rem; }

/* Rodapé */
.site-footer { background: #251E29; color: rgb(233 227 218 / .82); padding: 3rem 0 2.5rem; font-size: .95rem; }
.footer-grid { display: grid; gap: 1.75rem; }
.site-footer img { width: 150px; height: auto; }
.footer-tag { margin: .8rem 0 0; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--areia); text-decoration: underline; }
.footer-legal { margin: 0; font-size: .85rem; opacity: .75; }
@media (min-width: 860px) {
  .footer-grid { grid-template-columns: 1fr auto; align-items: start; }
  .footer-legal { grid-column: 1 / -1; border-top: 1px solid rgb(233 227 218 / .12); padding-top: 1.5rem; }
}

/* Páginas legais */
.legal { padding: 3rem 0 5rem; }
.legal h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); }
.legal h2 { font-size: 1.35rem; margin-top: 2.25rem; }
.legal p, .legal li { color: var(--texto-suave); }
.legal .updated { font-size: .9rem; }
.legal a { color: var(--terracota-texto); }

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

/* 404 */
.page-404 { min-height: 100vh; display: grid; align-items: center; }

/* Intro: conversa do Téo em tela cheia (assets/js/intro-gate.js + intro.js) */
.intro { display: none; }
.intro-on body { overflow: hidden; }
.intro-on .intro {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: radial-gradient(50rem 30rem at 50% 30%, rgb(201 120 90 / .18), transparent 65%), var(--ameixa);
}
.intro-saindo .intro { animation: intro-out .55s cubic-bezier(.6,0,.4,1) forwards; }
@keyframes intro-out { to { opacity: 0; transform: translateY(-3%); visibility: hidden; } }

/* Animações do topo esperam a intro terminar */
.intro-on .match-symbol .part, .intro-on .match-line, .intro-on .match-glow { animation-play-state: paused; }

.intro-skip {
  position: fixed; top: max(14px, env(safe-area-inset-top)); right: 14px; z-index: 2;
  border: 1px solid rgb(233 227 218 / .25); border-radius: 999px; background: rgb(48 39 53 / .55);
  color: rgb(233 227 218 / .8); font: inherit; font-size: .85rem; font-weight: 550; padding: .45rem .95rem; cursor: pointer;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: color .15s ease, border-color .15s ease;
}
.intro-skip:hover { color: var(--areia); border-color: rgb(233 227 218 / .6); }

.intro-chat {
  display: flex; flex-direction: column; width: 100%; height: 100dvh; overflow: hidden;
  background-color: #EFE7DD;
  background-image: url("/assets/img/tteu-simbolo-ameixa.svg");
  background-size: 64px auto; background-blend-mode: soft-light;
}
@media (min-width: 640px) {
  .intro-chat { width: min(460px, 92vw); height: min(780px, 90dvh); border-radius: 28px; border: 8px solid #251E29; box-shadow: 0 30px 80px -20px rgb(0 0 0 / .55); }
}

.intro-top { display: flex; align-items: center; gap: .7rem; padding: .7rem 7rem .7rem 1rem; background: var(--ameixa); color: var(--areia); }
@media (min-width: 640px) { .intro-top { padding-right: 1rem; } }
.intro-avatar { width: 40px; height: 40px; padding: 7px; border-radius: 50%; background: var(--ameixa-80); object-fit: contain; }
.intro-nome { margin: 0; font-weight: 650; line-height: 1.2; }
.intro-status { margin: 0; font-size: .78rem; opacity: .75; line-height: 1.2; }

.intro-body { flex: 1; overflow-y: auto; padding: .75rem .9rem 1rem; background: rgb(239 231 221 / .9); }
.intro-day { width: max-content; margin: .25rem auto .9rem; padding: .2rem .6rem; border-radius: 8px; background: rgb(255 255 255 / .85); font-size: .75rem; color: var(--ameixa-80); }
.intro-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .45rem; }
.imsg { display: none; max-width: 82%; padding: .5rem .7rem .35rem; border-radius: 12px; font-size: 1rem; line-height: 1.4; box-shadow: 0 1px 1px rgb(0 0 0 / .08); }
.imsg.is-visible { display: block; animation: msg-in .35s ease both; }
.imsg-in { align-self: flex-start; background: var(--branco); border-top-left-radius: 4px; }
.imsg-out { align-self: flex-end; background: #D9FDD3; border-top-right-radius: 4px; }
.imsg-meta { display: inline-flex; align-items: center; gap: 3px; float: right; margin: .35rem 0 0 .6rem; font-size: .68rem; color: #667781; }
.imsg-tick { width: 16px; height: 10px; fill: none; stroke: #53BDEB; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.intro-typing { align-self: flex-start; display: flex; gap: 4px; padding: .7rem .8rem; background: var(--branco); border-radius: 12px; border-top-left-radius: 4px; }
.intro-typing[hidden] { display: none; }
.intro-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--ameixa-60); animation: typing 1s infinite ease-in-out; }
.intro-typing span:nth-child(2) { animation-delay: .15s; }
.intro-typing span:nth-child(3) { animation-delay: .3s; }

.intro-actions { display: grid; gap: .55rem; margin-top: 1rem; animation: msg-in .4s ease both; }
.intro-actions[hidden] { display: none; }
.intro-actions .btn { width: 100%; }
.intro-enter { background: var(--branco); color: var(--ameixa); border-color: var(--areia-70); }
.intro-enter:hover { border-color: var(--ameixa); }

.intro-input { display: flex; align-items: center; gap: .5rem; padding: .55rem .6rem calc(.55rem + env(safe-area-inset-bottom)); background: #F0EBE4; }
.intro-field { flex: 1; padding: .6rem 1rem; border-radius: 999px; background: var(--branco); color: #8696A0; font-size: .95rem; }
.intro-mic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--ameixa); }
.intro-mic svg { width: 20px; height: 20px; fill: none; stroke: var(--areia); stroke-width: 1.8; stroke-linecap: round; }
.intro-logo { display: none; }
@media (min-width: 640px) { .intro-logo { display: block; position: fixed; top: 22px; left: 24px; width: 140px; height: auto; opacity: .9; } }
.intro-skip:focus-visible { outline: 2px solid rgb(233 227 218 / .55); outline-offset: 2px; }
.nowrap { white-space: nowrap; }
