/*
 * Site Persisto: página de produto com uma coluna de conversa centralizada; Bastidores
 * flutua só durante a demonstração. Identidade do manual da marca (azul-acinzentado,
 * grafite, branco, Titillium e grafismos geométricos). Ver docs/plans/estrutura-novo-site.md.
 */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --soft: #edf1f4;
  --line: #dde2e6;
  --fg: #393536;
  --muted: #656263;
  --ink: #393536;
  --on-ink: #ffffff;
  --brand: #96aebe;
  --brand-text: #4f6b7e;
  --verbs: #e6eaed;
  --grafismo: #d3d2d2;
  --logo-ink: #96aebe;
  --logo-grid: #d3d2d2;
  --shadow: 0 1px 2px rgb(57 53 54 / .05), 0 10px 30px rgb(57 53 54 / .08);
  --font-display: "Titillium Web", "Titillium", "Segoe UI", system-ui, sans-serif;
  --font-body: "Titillium Web", "Titillium", "Segoe UI", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --col: 660px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #2f2b2c; --surface: #393536; --soft: #45403f; --line: #514b4c;
    --fg: #f5f4f4; --muted: #bdb8b9; --ink: #f5f4f4; --on-ink: #393536;
    --brand: #96aebe; --brand-text: #b4c7d4; --verbs: #3c3738; --grafismo: #4a4546;
    --logo-ink: #ffffff; --logo-grid: #7a7475;
    --shadow: 0 1px 2px rgb(0 0 0 / .25), 0 12px 32px rgb(0 0 0 / .3); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #2f2b2c; --surface: #393536; --soft: #45403f; --line: #514b4c;
  --fg: #f5f4f4; --muted: #bdb8b9; --ink: #f5f4f4; --on-ink: #393536;
  --brand: #96aebe; --brand-text: #b4c7d4; --verbs: #3c3738; --grafismo: #4a4546;
  --logo-ink: #ffffff; --logo-grid: #7a7475;
  --shadow: 0 1px 2px rgb(0 0 0 / .25), 0 12px 32px rgb(0 0 0 / .3); color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.55 var(--font-body); overflow: hidden; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 6px; }

.page { height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; position: relative; isolation: isolate; }
.grafismo { position: absolute; z-index: -1; pointer-events: none; width: min(640px, 70vw); aspect-ratio: 1; right: max(-220px, -12vw); top: 40px; }
.grafismo * { fill: none; stroke: var(--grafismo); stroke-width: .5; vector-effect: non-scaling-stroke; }
.logo { display: block; height: 54px; width: auto; aspect-ratio: 384 / 129; }
.logo-ink { fill: var(--logo-ink); }
.logo-grid { fill: none; stroke: var(--logo-grid); }
.verbs { font: 200 clamp(24px, 4.4vw, 44px)/1.02 var(--font-display); text-transform: uppercase; letter-spacing: .06em; color: var(--verbs); margin: 0 0 18px; user-select: none; }
.verbs b { font-weight: 300; color: var(--brand); }

/* Topo */
.top { display: flex; align-items: center; gap: 28px; padding: 18px max(24px, env(safe-area-inset-right, 0px)) 18px max(24px, env(safe-area-inset-left, 0px)); }
.brand { display: flex; align-items: center; color: inherit; }
.top > nav { margin-left: auto; }
.nav { display: flex; gap: 4px; list-style: none; padding: 0; margin-block: 0; }
.nav a { display: block; padding: 8px 12px; border-radius: 99px; color: var(--muted); font-size: 15px; white-space: nowrap; text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); }
.nav a[aria-current="page"] { background: var(--soft); }
.cta { display: inline-block; background: var(--ink); color: var(--on-ink); border: 0; border-radius: 99px; padding: 10px 20px; font-size: 15px; font-weight: 600; cursor: pointer; white-space: nowrap; text-decoration: none; }
.cta:hover { opacity: .88; }
.cta-curto { display: none; }

.menu { display: none; margin-left: auto; }
.menu > summary { list-style: none; cursor: pointer; padding: 8px; display: grid; place-items: center; border-radius: 10px; }
.menu > summary::-webkit-details-marker { display: none; }
.menu .icon-close { display: none; }
.menu[open] .icon-open { display: none; }
.menu[open] .icon-close { display: block; }
.menu[open] > summary { position: fixed; top: max(12px, env(safe-area-inset-top, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); z-index: 31; }
.sheet { position: fixed; inset: 0; background: var(--bg); z-index: 30; display: flex; flex-direction: column; padding: max(76px, calc(env(safe-area-inset-top, 0px) + 64px)) max(16px, env(safe-area-inset-right, 0px)) 24px max(16px, env(safe-area-inset-left, 0px)); gap: 28px; }
.sheet ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.sheet ul a { display: block; color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--line); padding: 16px 2px; font-size: 22px; font-weight: 300; }
.sheet ul a[aria-current="page"] { font-weight: 600; }
.sheet .cta { align-self: flex-start; padding: 13px 22px; font-size: 16px; }

/* Conversa */
.log { overflow-y: auto; padding: 24px max(24px, env(safe-area-inset-right, 0px)) 24px max(24px, env(safe-area-inset-left, 0px)); }
.thread { max-width: var(--col); margin: 0 auto; display: flex; flex-direction: column; gap: 14px; padding-top: 4vh; }
.conversa { display: flex; flex-direction: column; gap: 14px; }
.msg.is-pending { display: none; }
.eyebrow { margin-bottom: 6px; }
.eyebrow > summary { list-style: none; display: flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); cursor: pointer; width: fit-content; }
.eyebrow > summary::-webkit-details-marker { display: none; }
.info-icon { border: 1px solid var(--line); border-radius: 99px; width: 22px; height: 22px; display: grid; place-items: center; font-size: 12px; letter-spacing: 0; text-transform: none; }
.info { margin-top: 10px; border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 14px 18px; font-size: 14px; color: var(--muted); display: grid; gap: 6px; }
.info p { margin: 0; }
.info strong { color: var(--fg); font-weight: 500; }

.msg { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 14px; animation: rise .3s ease-out both; }
.mark { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; background: var(--surface); }
.msg.cont .mark { visibility: hidden; }
.mark-arrow { stroke: var(--logo-ink); }
.mark.demo { font: 500 13px var(--font-body); color: var(--fg); }
.text { margin: 0; padding-top: 3px; font-size: 19px; line-height: 1.5; font-weight: 300; overflow-wrap: anywhere; }
.text strong { font-weight: 600; }
.msg.lead .text { font-size: clamp(28px, 4.4vw, 42px); line-height: 1.12; letter-spacing: -.01em; font-weight: 300; padding-top: 0; text-wrap: balance; }
.who { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; font-weight: 400; }
.note { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; }
.msg.user { grid-template-columns: minmax(0, 1fr); justify-items: end; }
.msg.user .text { background: var(--soft); border-radius: 20px 20px 6px 20px; padding: 9px 16px; font-size: 17px; font-weight: 400; max-width: 80%; }
.typing .text { padding-top: 6px; }
.spin { display: inline-block; animation: turn 1.6s steps(8) infinite; }
.spin svg { display: block; }
.divider { display: flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 14px 0 4px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.card { margin-left: 46px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px 24px; display: grid; gap: 16px; box-shadow: var(--shadow); animation: rise .3s ease-out both; }
.card h3 { margin: 0; font-size: 20px; font-weight: 400; }
.card dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 20px; font-size: 15px; }
.card dt { color: var(--muted); }
.card dd { margin: 0; overflow-wrap: anywhere; }
.card details { font-size: 14px; color: var(--muted); }
.card summary { cursor: pointer; color: var(--brand-text); text-decoration: underline; text-underline-offset: 3px; }
.card details p { margin: 8px 0 0; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.quiet { background: none; border: 1px solid var(--line); border-radius: 99px; padding: 10px 18px; font-size: 14px; cursor: pointer; }
.quiet:hover { border-color: var(--muted); }
.cta:disabled, .quiet:disabled { opacity: .45; cursor: default; }

/* Bastidores */
.backstage { position: fixed; top: 84px; right: max(24px, env(safe-area-inset-right, 0px)); width: 280px; max-height: calc(100% - 220px); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 18px; display: flex; flex-direction: column; gap: 12px; animation: rise .3s ease-out both; }
.backstage-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.backstage h2 { margin: 0; font-size: 17px; font-weight: 600; }
.live { font: 11px var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); animation: blink 1.6s infinite; }
.backstage p { margin: 0; font-size: 13px; color: var(--muted); }
.events { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; overflow-y: auto; }
.event { border-top: 1px solid var(--line); padding-top: 10px; display: grid; gap: 2px; animation: rise .3s ease-out both; }
.event-top { display: flex; justify-content: space-between; gap: 8px; font: 11px var(--font-mono); color: var(--muted); }
.event-sys { color: var(--brand-text); font-weight: 500; }
.event-text { font-size: 14px; }
.event-ok { font: 11px var(--font-mono); color: var(--muted); }
.log .event-inline { display: none; }

/* Dock */
.dock { padding: 8px max(24px, env(safe-area-inset-right, 0px)) 18px max(24px, env(safe-area-inset-left, 0px)); background: linear-gradient(to top, var(--bg) 70%, transparent); }
.dock-inner { max-width: var(--col); margin: 0 auto; display: grid; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 8px 15px; cursor: pointer; font-size: 14px; white-space: nowrap; }
.chip:hover { border-color: var(--fg); }
.composer { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 7px 7px 7px 20px; box-shadow: var(--shadow); }
.composer:focus-within { border-color: var(--muted); }
.composer input { flex: 1; min-width: 0; background: none; border: 0; outline: none; padding: 9px 0; font-size: 16px; }
.send { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--ink); color: var(--on-ink); display: grid; place-items: center; cursor: pointer; flex: none; }
.foot { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--muted); }
.foot a { color: inherit; text-underline-offset: 3px; }
.show-all { background: none; border: 0; padding: 0; color: var(--muted); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; justify-self: start; }

/* Avisos e formulário sem JavaScript */
.flash { border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 12px 16px; font-size: 15px; }
.form-contato { margin-top: 24px; display: grid; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px 24px; }
.form-contato h2 { margin: 0; font-size: 20px; font-weight: 400; }
.form-contato label { display: grid; gap: 4px; font-size: 14px; color: var(--muted); }
.form-contato input, .form-contato select, .form-contato textarea { font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; }
.form-contato p { margin: 0; font-size: 13px; color: var(--muted); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
a { color: var(--brand-text); }

@keyframes rise { from { opacity: .001; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes turn { to { transform: rotate(360deg); } }
@keyframes blink { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; } }

@media (max-width: 1279px) {
  .backstage { display: none !important; }
  .log .event-inline { display: grid; margin-left: 46px; border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; background: var(--surface); }
}
@media (max-width: 1180px) {
  /* O contato fica sempre à vista: botão compacto no topo, ao lado do menu. */
  .top > nav { display: none; }
  .top { gap: 12px; }
  .cta-topo { margin-left: auto; padding: 8px 14px; font-size: 14px; }
  .cta-longo { display: none; }
  .cta-curto { display: inline; }
  .menu { display: block; margin-left: 0; }
  .top { padding: 12px max(16px, env(safe-area-inset-right, 0px)) 12px max(16px, env(safe-area-inset-left, 0px)); }
  .log { padding: 12px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px)); }
  .dock { padding: 6px max(16px, env(safe-area-inset-right, 0px)) 12px max(16px, env(safe-area-inset-left, 0px)); }
  .thread { padding-top: 8px; }
}
@media (max-width: 600px) {
  .msg { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .msg .mark { display: none; }
  .msg.lead .mark, .msg.demo:not(.cont) .mark { display: grid; width: 28px; height: 28px; }
  .text { font-size: 17px; }
  .card, .log .event-inline { margin-left: 0; }
  .card { padding: 18px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
  .chips::-webkit-scrollbar { display: none; }
  .msg.user .text { max-width: 88%; }
  .grafismo { width: 420px; right: -230px; top: 20px; opacity: .45; }
  .logo { height: 40px; }
  .logo-grid { stroke: transparent; }
}
/* Fontes auto-hospedadas (SIL Open Font License 1.1, ver app/assets/fonts/OFL-*.txt). */
@font-face {
  font-family: "Titillium Web";
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url(/assets/titillium-web-200-0329ab1da53148ffd9a4079cc0314a2056ccbb69262e7708242b19d36c2c7106.woff2) format("woff2");
}
@font-face {
  font-family: "Titillium Web";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(/assets/titillium-web-300-41dc34fbb9dfce03c79115da9696ddfe198893492bf78ee5601957b484d2c4a0.woff2) format("woff2");
}
@font-face {
  font-family: "Titillium Web";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/titillium-web-400-0f13a9f0a670962b70e60704f7b650ee13977dc5562b040c3e4ef3e587b3db47.woff2) format("woff2");
}
@font-face {
  font-family: "Titillium Web";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/titillium-web-600-9b97fdca24c6e6ba7a73ccddd5f301b421757b6f7f6fcc2f29cf85101f79f271.woff2) format("woff2");
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/geist-mono-400-ae4dd1871fd592baec1e18eb3ccfd15b952c6b5a3f4d326595e4045e5756873a.woff2) format("woff2");
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
