/* Homepage Ray — mesma identidade visual do dashboard (wrapperaegis-theme):
   papel creme, tinta escura, cartões brancos, linhas finas, títulos em serifa (Spectral),
   acentos azul-aço (#3f6f9f), verde (#1f4d3d) e âmbar (#b8862e).
   Fontes de origem: ray-design-tokens.css e styles.css (--ray-*, --wa-shell-*). */
:root {
  --bg: #faf8f2;            /* --ray-bg */
  --bg-2: #f3ecdf;          /* faixa alternada (shell) */
  --card: #ffffff;          /* --ray-bg-card */
  --ink: #14110a;           /* --ray-ink / --ray-brand */
  --ink-soft: #6b6557;      /* --ray-ink-soft */
  --line: #e4dece;          /* linha */
  --line-soft: #ede7d9;
  --blue: #3f6f9f;          /* --wa-shell-accent */
  --blue-soft: rgba(63, 111, 159, .12);
  --green: #1f4d3d;         /* verde dos tokens Ray */
  --green-soft: #e4eee7;
  --amber: #b8862e;
  --amber-soft: #f6ebd6;
  --dark-1: #4a3f2f;        /* --wa-shell-selected-bg */
  --dark-2: #14110a;
  --paper-on-dark: #fff7ea; /* --wa-shell-selected-text */
  --shadow: 0 18px 40px -28px rgba(20, 17, 10, .34);
  --shadow-lg: 0 30px 60px -30px rgba(20, 17, 10, .38);
  --radius: 16px;
  --header-h: 68px;
  --serif: "Spectral", "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
  --sans: -apple-system, "Segoe UI", "Segoe UI Variable Text", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(16px, .3vw + 15px, 17.5px);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--blue); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.ico { width: 1.15em; height: 1.15em; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.muted { color: var(--ink-soft); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper-on-dark); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
[hidden] { display: none !important; }

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 999px; text-decoration: none; border: 1px solid transparent; cursor: pointer; font: inherit; font-weight: 600; font-size: .93rem; line-height: 1.2; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s, color .2s; }
.btn-primary { background: linear-gradient(155deg, var(--dark-1) 0%, #241f18 55%, var(--dark-2) 100%); color: var(--paper-on-dark); border-color: #1e1a15; box-shadow: 0 10px 24px -12px rgba(20, 17, 10, .6); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -12px rgba(20, 17, 10, .7); }
.btn-outline { background: rgba(255, 255, 255, .7); color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper-on-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: #cfc7b2; }
.btn-ghost:hover { border-color: var(--ink); background: rgba(255, 255, 255, .6); }
.btn-lg { padding: 15px 28px; font-size: 1rem; }
.btn-sm { padding: 9px 16px; font-size: .86rem; }
fieldset:disabled .btn { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .82); backdrop-filter: blur(12px) saturate(140%); -webkit-backdrop-filter: blur(12px) saturate(140%); border-bottom: 1px solid var(--line); }
.site-header.scrolled { box-shadow: 0 10px 30px -22px rgba(20, 17, 10, .5); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-logo { display: block; height: 56px; width: auto; }
.brand-dot { width: 14px; height: 14px; border-radius: 50%; background: linear-gradient(155deg, var(--dark-1), var(--dark-2)); box-shadow: 0 0 0 3px var(--blue-soft); }
.brand-mark { font-family: var(--serif); font-size: 1.7rem; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 28px; }
.main-nav a:not(.btn) { color: var(--ink-soft); text-decoration: none; font-size: .92rem; font-weight: 500; transition: color .2s; }
.main-nav a:not(.btn):hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.login-link { white-space: nowrap; }
.nav-login-mobile { display: none; }
.menu-toggle { display: none; background: #fff; border: 1px solid var(--line); border-radius: 10px; width: 42px; height: 42px; cursor: pointer; }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; margin: 0 auto; border-radius: 2px; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }

/* ---------- Tipografia / seções ---------- */
h1, h2, h3 { margin: 0 0 16px; font-family: var(--serif); color: var(--ink); }
h1 { font-size: clamp(38px, 5.2vw, 70px); line-height: 1.04; font-weight: 600; letter-spacing: -.025em; }
h2 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.12; font-weight: 600; letter-spacing: -.02em; max-width: 22ch; }
h3 { font-size: 1.15rem; line-height: 1.3; font-weight: 600; }
.grad { font-style: italic; color: var(--blue); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); color: var(--ink-soft); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .75); margin: 0 0 22px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(31, 77, 61, .45); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(31, 77, 61, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 77, 61, 0); } }
.kicker { font-family: var(--mono); color: var(--blue); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 14px; }
.lead { font-size: clamp(17px, .5vw + 15px, 19.5px); color: var(--ink-soft); max-width: 54ch; margin: 0 0 8px; }
.section-lead { color: var(--ink-soft); max-width: 62ch; margin: 0 0 32px; }
.microtext { color: var(--ink-soft); font-size: .86rem; }
.illustrative { color: var(--ink-soft); font-size: .76rem; margin: 14px 0 0; font-style: italic; }

.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Faixa escura (mesmo gradiente do item selecionado do shell) */
.section-cta { background: linear-gradient(155deg, var(--dark-1) 0%, #241f18 55%, var(--dark-2) 100%); color: var(--paper-on-dark); }
.section-cta h2, .section-cta .section-lead { color: var(--paper-on-dark); }
.section-cta .section-lead { opacity: .8; }
.section-cta .kicker { color: #e8c98a; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(48px, 7vw, 104px) 0 0; overflow: hidden; background-image: linear-gradient(rgba(20, 17, 10, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(20, 17, 10, .035) 1px, transparent 1px); background-size: 56px 56px; background-position: center top; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.hero-glow { position: absolute; inset: -10% -10% auto -10%; height: 90%; background: radial-gradient(560px 360px at 82% 25%, rgba(63, 111, 159, .18), transparent 70%), radial-gradient(520px 340px at 12% 5%, rgba(184, 134, 46, .14), transparent 70%); pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }

.hero-visual { margin: 0; position: relative; }
.hero-visual figcaption { color: var(--ink-soft); font-size: .76rem; margin-top: 16px; text-align: center; font-style: italic; }
.app-window { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg), 0 0 0 6px rgba(255, 255, 255, .5); transform: perspective(1400px) rotateY(-5deg) rotateX(2deg); }
.win-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fcfaf5; border-radius: 18px 18px 0 0; }
.win-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d9d2bf; }
.win-bar span { margin-left: 10px; font-size: .74rem; color: var(--ink-soft); font-family: var(--mono); }
.win-body { display: grid; grid-template-columns: 1.2fr 1fr; }
.win-doc { padding: 20px; border-right: 1px solid var(--line); }
.win-title { font-family: var(--serif); font-weight: 600; font-size: .98rem; margin: 0 0 16px; }
.line { display: block; height: 8px; border-radius: 4px; background: #ece6d6; margin-bottom: 11px; }
.line.hl { background: rgba(184, 134, 46, .4); box-shadow: 0 0 0 3px rgba(184, 134, 46, .12); }
.line.hl2 { background: rgba(63, 111, 159, .35); box-shadow: 0 0 0 3px rgba(63, 111, 159, .1); }
.w50 { width: 50%; } .w60 { width: 60%; } .w70 { width: 70%; } .w75 { width: 75%; } .w80 { width: 80%; } .w85 { width: 85%; } .w90 { width: 90%; }
.win-side { padding: 20px; display: flex; flex-direction: column; gap: 10px; background: #fdfbf6; border-radius: 0 0 18px 0; }
.win-label { display: flex; align-items: center; gap: 6px; color: var(--blue); font-size: .72rem; font-family: var(--mono); letter-spacing: .06em; text-transform: uppercase; margin: 0 0 4px; }
.finding { background: var(--amber-soft); border: 1px solid #e7d5a6; border-left: 3px solid var(--amber); border-radius: 10px; padding: 10px 12px; font-size: .8rem; display: flex; flex-direction: column; }
.finding span { color: var(--ink-soft); font-size: .72rem; }
.finding.amber { background: #faf3e3; }
.finding.ok { background: var(--green-soft); border-color: #c5dccf; border-left-color: var(--green); }
.chip { position: absolute; display: inline-flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-size: .78rem; box-shadow: var(--shadow); animation: float 6s ease-in-out infinite; }
.chip .ico { color: var(--blue); }
.chip-flow { left: -22px; bottom: 36px; }
.chip-chat { right: -14px; bottom: -22px; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-7px); } }

.capabilities { position: relative; z-index: 1; list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; padding: 56px 24px 48px; margin: 0 auto; color: var(--ink-soft); font-size: .9rem; }
.capabilities li { display: inline-flex; align-items: center; gap: 9px; }
.capabilities .ico { color: var(--blue); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Cards & painéis ---------- */
.glass { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: 0 1px 0 rgba(20, 17, 10, .02); transition: transform .25s, border-color .25s, box-shadow .25s; }
.card:hover { transform: translateY(-3px); border-color: #cfc7b2; box-shadow: var(--shadow); }
.card p { color: var(--ink-soft); margin: 0; font-size: .95rem; }
.card-ico { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--blue-soft); border: 1px solid rgba(63, 111, 159, .25); color: var(--blue); margin-bottom: 18px; }
.card-ico .ico { width: 22px; height: 22px; }
.card-wide { margin-top: 20px; }
.badge { display: inline-block; font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; }
.badge-amber { background: var(--amber-soft); color: #8a6415; border: 1px solid #e7d5a6; }
.badge-cyan { background: var(--blue-soft); color: var(--blue); border: 1px solid rgba(63, 111, 159, .3); }
.panel-label { color: var(--ink-soft); font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 10px; }
blockquote { margin: 0 0 20px; padding: 14px 16px; border-left: 3px solid var(--amber); background: #f0ebdd; border-radius: 0 10px 10px 0; color: var(--ink); font-size: .95rem; font-style: italic; }
.finding-card { background: #fdfbf6; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.finding-card p { margin: 0 0 6px; }
.finding-card .muted { font-size: .85rem; margin: 0; }
.checklist { list-style: none; padding: 0; margin: 0 0 28px; }
.checklist li { padding: 6px 0 6px 30px; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 13px; width: 16px; height: 16px; border-radius: 50%; background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f4d3d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4 4 10-10'/%3E%3C/svg%3E") center/10px no-repeat; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 16px; position: relative; }
.timeline::before { content: ""; position: absolute; top: 19px; left: 19px; right: 19px; height: 2px; background: linear-gradient(90deg, var(--ink), #cfc7b2); }
.timeline li { position: relative; }
.t-num { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--bg); border: 2px solid var(--ink); color: var(--ink); font-family: var(--serif); font-size: 1.05rem; font-weight: 700; margin-bottom: 18px; }
.timeline h3 { font-size: 1.02rem; margin-bottom: 6px; }
.timeline p { color: var(--ink-soft); font-size: .85rem; margin: 0; line-height: 1.5; }

/* ---------- Chat ---------- */
.chat-head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(155deg, var(--dark-1), var(--dark-2)); color: var(--paper-on-dark); }
.bubble { padding: 12px 16px; border-radius: 16px; margin: 0 0 12px; max-width: 88%; font-size: .95rem; }
.bubble.user { background: var(--ink); color: var(--paper-on-dark); margin-left: auto; border-bottom-right-radius: 4px; }
.bubble.bot { background: #f1ede4; border: 1px solid #d8d1c4; color: var(--ink); border-bottom-left-radius: 4px; }

/* ---------- Fluxo ---------- */
.flow { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; padding: 0; margin: 0 0 20px; }
.flow li { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.flow li strong { display: block; font-family: var(--serif); font-size: 1.08rem; font-weight: 600; }
.flow li span { color: var(--ink-soft); font-size: .85rem; }
.flow li.active { border-color: var(--ink); box-shadow: 0 0 0 4px var(--blue-soft), var(--shadow); }
.flow li:not(:last-child)::after { content: ""; position: absolute; right: -27px; top: 50%; width: 26px; height: 2px; background: var(--ink); }
.flow-return { color: var(--ink-soft); font-size: .9rem; margin: 0; padding-left: 4px; }

/* ---------- GED ---------- */
.doc { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fdfbf6; margin-bottom: 10px; font-size: .93rem; }
.doc .ico { color: var(--blue); }
.doc em { margin-left: auto; font-style: normal; font-size: .7rem; color: var(--ink-soft); font-family: var(--mono); }
.doc-main { border-color: var(--ink); background: #fff; font-weight: 600; }
.doc-child { margin-left: 28px; position: relative; }
.doc-child::before { content: ""; position: absolute; left: -16px; top: 50%; width: 14px; height: 1px; background: #cfc7b2; }
.doc-event { color: #8a6415; background: var(--amber-soft); border-color: #e7d5a6; }
.doc-event .ico { color: var(--amber); }

/* ---------- Diagrama de integração ---------- */
.diagram { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; margin: 8px 0 36px; }
.node { text-align: center; padding: 22px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); font-weight: 600; font-size: .95rem; box-shadow: var(--shadow); }
.node-core { background: linear-gradient(155deg, var(--dark-1), var(--dark-2)); color: var(--paper-on-dark); border-color: #1e1a15; font-family: var(--serif); font-size: 1.7rem; font-weight: 700; }
.link { position: relative; width: clamp(48px, 9vw, 120px); height: 2px; background: repeating-linear-gradient(90deg, var(--ink) 0 6px, transparent 6px 10px); }
.link span { position: absolute; left: 50%; top: -14px; transform: translateX(-50%); background: var(--bg-2); border: 1px solid var(--ink); border-radius: 999px; font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; padding: 2px 10px; color: var(--ink); }

/* ---------- CLM / pilares ---------- */
.pillar { padding: 30px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); transition: border-color .25s, transform .25s, box-shadow .25s; }
.pillar:hover { transform: translateY(-3px); border-color: #cfc7b2; box-shadow: var(--shadow); }
.pillar-n { display: block; font-family: var(--serif); font-size: 2.6rem; font-weight: 600; font-style: italic; color: var(--blue); line-height: 1; margin-bottom: 18px; }
.pillar p { color: var(--ink-soft); margin: 0; font-size: .95rem; }
.aside-complement { margin-top: 44px; padding: 22px 26px; border: 1px solid var(--line); border-left: 3px solid var(--green); border-radius: 0 14px 14px 0; background: var(--card); }
.aside-complement h3 { margin-bottom: 6px; }
.aside-complement p { margin: 0; color: var(--ink-soft); }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; padding: 0; margin: 0 0 22px; }
.chips li { display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 999px; padding: 10px 20px; background: var(--card); }
.chips .ico { color: var(--blue); }
.notice { display: inline-block; color: var(--ink-soft); font-style: italic; padding: 8px 16px; border: 1px dashed #cfc7b2; border-radius: 10px; margin: 0; }

/* ---------- FAQ ---------- */
.faq { border: 1px solid var(--line); border-radius: 14px; background: var(--card); margin-bottom: 12px; transition: border-color .2s; }
.faq[open] { border-color: var(--ink); }
.faq summary { cursor: pointer; font-family: var(--serif); font-size: 1.08rem; font-weight: 600; padding: 18px 54px 18px 22px; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); color: var(--blue); font-size: 1.5rem; font-weight: 400; }
.faq[open] summary::after { content: "–"; }
.faq p { color: var(--ink-soft); margin: 0; padding: 0 22px 20px; }

/* ---------- Formulário (cartão claro sobre faixa escura) ---------- */
.section-cta .glass { background: var(--bg); color: var(--ink); border-color: transparent; }
.demo-form fieldset { border: 0; padding: 0; margin: 0; }
.demo-form label { display: block; margin: 16px 0 6px; font-weight: 600; font-size: .88rem; }
.demo-form label:first-of-type { margin-top: 0; }
.demo-form .opt { color: var(--ink-soft); font-weight: 400; }
.demo-form input, .demo-form select, .demo-form textarea { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid #cfc7b2; background: #fff; color: var(--ink); font: inherit; transition: border-color .2s, box-shadow .2s; }
.demo-form input:focus, .demo-form select:focus, .demo-form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.demo-form .btn { margin-top: 22px; width: 100%; padding: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark-2); color: var(--paper-on-dark); padding: 48px 0; }
.site-footer .brand-mark { color: var(--paper-on-dark); }
.site-footer .brand-dot { background: var(--paper-on-dark); box-shadow: 0 0 0 3px rgba(255, 247, 234, .15); }
.site-footer .muted { color: rgba(255, 247, 234, .65); }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 32px; align-items: start; }
.footer-inner p { margin: 10px 0 0; font-size: .9rem; }
.footer-inner ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-inner li a { color: rgba(255, 247, 234, .75); text-decoration: none; font-size: .92rem; }
.footer-inner li a:hover { color: #fff; }
.footer-contact { font-style: normal; min-width: 0; max-width: 300px; }
.footer-contact p { color: rgba(255, 247, 234, .85); line-height: 1.55; }
.footer-contact .muted { color: rgba(255, 247, 234, .65); }
.footer-wrapper-logo { display: block; width: 220px; max-width: 100%; height: auto; margin-bottom: 18px; }
.site-footer .footer-contact-title { margin: 0; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 247, 234, .65); }
.footer-contact .footer-phones { margin-top: 10px; gap: 6px; }
.footer-phones li { color: rgba(255, 247, 234, .65); font-size: .92rem; }
.footer-phones li a { color: var(--paper-on-dark); font-weight: 600; white-space: nowrap; }
.footer-phones li a:hover { text-decoration: underline; }

/* =====================================================================
   v2 — Marquee de diferenciais, Segurança e LGPD, carrossel e motion.
   Movimento decorativo só com prefers-reduced-motion: no-preference;
   a regra global de reduced-motion desliga o restante.
   ===================================================================== */

/* Marquee */
.marquee { position: relative; overflow: hidden; background: var(--dark-2); color: var(--paper-on-dark); }
.marquee::before, .marquee::after { content: ""; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 1; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--dark-2), transparent); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--dark-2), transparent); }
.marquee-track { display: flex; width: max-content; }
.marquee-group { display: flex; flex: none; gap: 48px; padding: 18px 48px 18px 0; font-family: var(--mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.marquee-group span { display: inline-flex; align-items: center; gap: 48px; }
.marquee-group span::after { content: "✦"; color: #e8c98a; }
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: marquee 40s linear infinite; }
  .marquee:hover .marquee-track { animation-play-state: paused; }
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* Hero: brilho de fundo em deriva lenta */
@media (prefers-reduced-motion: no-preference) {
  .hero-glow { animation: drift 18s ease-in-out infinite alternate; }
}
@keyframes drift { from { transform: translate3d(-3%, 0, 0) scale(1); } to { transform: translate3d(4%, 3%, 0) scale(1.07); } }

/* Segurança e LGPD (faixa escura) */
.section-seguranca { overflow: hidden; }
.section-seguranca::before { content: ""; position: absolute; width: 620px; height: 620px; right: -220px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(232, 201, 138, .16), transparent 68%); pointer-events: none; }
.section-seguranca .container { position: relative; }
.seg-head { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 4vw, 56px); align-items: end; margin-bottom: 28px; }
.seg-title { font-size: clamp(32px, 4.2vw, 56px); line-height: 1.06; max-width: 20ch; color: var(--paper-on-dark); margin-bottom: 0; }
.seg-alert { border: 1px solid rgba(232, 201, 138, .5); background: rgba(232, 201, 138, .08); border-radius: var(--radius); padding: 22px 24px; }
.seg-alert p { margin: 0; color: var(--paper-on-dark); font-size: 1rem; line-height: 1.55; }
.seg-alert strong { color: #e8c98a; }
.dark-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dark-card { background: rgba(255, 247, 234, .05); border: 1px solid rgba(255, 247, 234, .14); border-radius: var(--radius); padding: 26px; transition: transform .25s, border-color .25s; }
.dark-card:hover { transform: translateY(-3px); border-color: rgba(232, 201, 138, .5); }
.dark-card h3 { color: var(--paper-on-dark); font-size: 1.12rem; }
.dark-card p { color: rgba(255, 247, 234, .78); margin: 0; font-size: .95rem; }
.dark-card .card-ico { background: rgba(232, 201, 138, .12); border-color: rgba(232, 201, 138, .35); color: #e8c98a; }
.tarja-wrap { margin-top: 56px; }
.tarja-wrap .kicker { color: #e8c98a; }
.tarja-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.tarja-step { position: relative; min-width: 0; background: rgba(255, 247, 234, .06); border: 1px solid rgba(255, 247, 234, .16); border-radius: 16px; padding: 18px 18px 20px; }
.tarja-step:not(:last-child)::after { content: "→"; position: absolute; right: -17px; top: 50%; transform: translateY(-50%); color: #e8c98a; font-size: 1.1rem; line-height: 1; }
.tarja-step small { display: block; font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: #e8c98a; margin-bottom: 10px; }
.tarja-step code { display: block; font-family: var(--mono); font-size: .84rem; line-height: 1.55; color: var(--paper-on-dark); white-space: normal; overflow-wrap: anywhere; background: none; padding: 0; }
.tarja-step .tag { background: #e8c98a; color: var(--dark-2); padding: 0 5px; border-radius: 5px; }
.tarja-note { color: rgba(255, 247, 234, .6); font-size: .8rem; font-style: italic; margin: 14px 0 0; }
.seg-facts { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.seg-facts li { border: 1px solid rgba(255, 247, 234, .22); border-radius: 999px; padding: 8px 16px; font-size: .86rem; color: var(--paper-on-dark); }
.seg-cta { margin-top: 36px; }
.btn-light { background: var(--paper-on-dark); color: var(--ink); border-color: var(--paper-on-dark); }
.btn-light:hover { background: #fff; transform: translateY(-1px); }
@media (prefers-reduced-motion: no-preference) {
  .tarja-step { animation: tarja-on 8s ease-in-out infinite; }
  .tarja-step:nth-child(2) { animation-delay: 2s; }
  .tarja-step:nth-child(3) { animation-delay: 4s; }
  .tarja-step:nth-child(4) { animation-delay: 6s; }
}
@keyframes tarja-on {
  0%, 100% { opacity: .42; transform: translateY(6px); }
  4%, 22% { opacity: 1; transform: none; border-color: #e8c98a; box-shadow: 0 0 0 4px rgba(232, 201, 138, .14); }
  30% { opacity: .42; transform: translateY(6px); border-color: rgba(255, 247, 234, .16); box-shadow: none; }
}

/* Carrossel "Por que o Ray" */
.carrossel { position: relative; }
.carrossel-bar-wrap { height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; margin-bottom: 36px; }
.carrossel-bar { height: 100%; width: 0; border-radius: 3px; background: linear-gradient(90deg, var(--blue), var(--green)); }
@media (prefers-reduced-motion: no-preference) {
  .carrossel-bar { animation: barra 6.5s linear forwards; }
  .carrossel.is-hold .carrossel-bar { animation-play-state: paused; }
}
@keyframes barra { from { width: 0; } to { width: 100%; } }
.carrossel-viewport { display: grid; }
.slide { grid-area: 1 / 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 56px); align-items: center; opacity: 0; visibility: hidden; transform: translateX(28px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1), visibility 0s linear .6s; }
.slide.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1), visibility 0s; }
.slide-num { display: inline-block; font-family: var(--serif); font-style: italic; color: var(--blue); font-size: 1.05rem; margin-bottom: 6px; }
.slide .kicker { margin-bottom: 12px; }
.slide h3 { font-size: clamp(26px, 3vw, 40px); line-height: 1.1; letter-spacing: -.01em; max-width: 20ch; margin-bottom: 16px; }
.slide-text > p:not(.kicker) { color: var(--ink-soft); font-size: 1.02rem; max-width: 52ch; margin: 0 0 22px; }
.slide-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.slide-tags li { font-size: .8rem; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px; }
.slide-stage { position: relative; overflow: hidden; min-height: 300px; display: flex; flex-direction: column; justify-content: center; background: linear-gradient(155deg, var(--dark-1) 0%, #241f18 55%, var(--dark-2) 100%); color: var(--paper-on-dark); border-radius: 22px; padding: clamp(26px, 3vw, 40px); box-shadow: var(--shadow-lg); }
.slide-stage::before { content: ""; position: absolute; width: 300px; height: 300px; right: -120px; top: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(232, 201, 138, .3), transparent 68%); pointer-events: none; }
.slide-stage::after { content: ""; position: absolute; width: 220px; height: 220px; left: -90px; bottom: -110px; border-radius: 50%; background: radial-gradient(circle, rgba(63, 111, 159, .35), transparent 70%); pointer-events: none; }
.slide-stage > * { position: relative; z-index: 1; }
.stage-ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: rgba(232, 201, 138, .14); color: #e8c98a; margin-bottom: 22px; }
.stage-ico .ico { width: 28px; height: 28px; }
.slide-stage .stage-metric { font-family: var(--serif); font-size: clamp(64px, 8vw, 104px); font-weight: 700; line-height: 1; letter-spacing: -.03em; color: #fff; margin: 0; max-width: none; }
.slide-stage .stage-label { color: rgba(255, 247, 234, .8); font-size: 1rem; margin: 12px 0 0; max-width: 28ch; }
.stage-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.stage-list li { background: rgba(255, 247, 234, .08); border: 1px solid rgba(255, 247, 234, .14); border-radius: 12px; padding: 12px 14px; font-size: .92rem; color: var(--paper-on-dark); }
.stage-list b { color: #e8c98a; font-weight: 600; }
.stage-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.stage-chips span { border: 1px solid rgba(255, 247, 234, .28); border-radius: 999px; padding: 8px 14px; font-size: .86rem; }
.stage-caption { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 247, 234, .6); margin: 22px 0 0; }
@media (prefers-reduced-motion: no-preference) {
  .slide.is-active .stage-list li { animation: sobe .6s both; }
  .slide.is-active .stage-list li:nth-child(2) { animation-delay: .12s; }
  .slide.is-active .stage-list li:nth-child(3) { animation-delay: .24s; }
  .slide.is-active .stage-ico { animation: flutua 4s ease-in-out infinite; }
}
@keyframes sobe { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes flutua { 50% { transform: translateY(-5px); } }
.carrossel-ctrl { display: flex; align-items: center; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.ctrl-btn { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--ink); background: var(--card); color: var(--ink); cursor: pointer; transition: background .2s, color .2s; }
.ctrl-btn:hover { background: var(--ink); color: var(--paper-on-dark); }
.ctrl-btn .ico { width: 20px; height: 20px; }
.ctrl-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; flex: 1; }
.ctrl-dot { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.ctrl-dot::before { content: ""; width: 10px; height: 10px; border-radius: 999px; background: #cfc7b2; transition: width .3s, background .3s; }
.ctrl-dot[aria-current="true"]::before { width: 30px; background: var(--ink); }

/* Navegação: itens sem quebra de linha; "Agendar demonstração" só no menu mobile */
.main-nav a:not(.btn) { white-space: nowrap; }
.nav-demo-mobile { display: none; }
@media (min-width: 961px) and (max-width: 1240px) {
  .main-nav ul { gap: 18px; }
  .main-nav a:not(.btn) { font-size: .86rem; }
}
@media (max-width: 960px) {
  .nav-demo-mobile { display: block; }
}

/* Responsivo das seções novas */
@media (max-width: 960px) {
  .seg-head, .slide { grid-template-columns: 1fr; }
  .dark-grid { grid-template-columns: 1fr; }
  .tarja-flow { grid-template-columns: 1fr 1fr; }
  .tarja-step:not(:last-child)::after { content: none; }
  .slide-stage { min-height: 0; }
}
@media (max-width: 640px) {
  .tarja-flow { grid-template-columns: 1fr; }
  .carrossel-ctrl { gap: 10px; }
  .ctrl-dots { order: 3; flex-basis: 100%; }
  .carrossel-ctrl .btn { margin-left: auto; }
  .slide h3 { max-width: none; }
}

/* Carrossel de benefícios no topo (coverflow 3D com sombras dinâmicas).
   Posição, escala, opacidade e sombra são aplicadas pelo ray.js a cada troca. */
.topo-carrossel { position: relative; padding: 40px 0 8px; overflow: hidden; background: radial-gradient(900px 360px at 50% 0%, rgba(63, 111, 159, .14), transparent 70%); }
.hc-stage { position: relative; height: 290px; perspective: 1400px; perspective-origin: 50% 45%; }
.hc-card { position: absolute; top: 0; left: 50%; width: min(440px, 80vw); height: 270px; margin-left: calc(min(440px, 80vw) / -2); display: flex; flex-direction: column; gap: 8px; padding: 24px 26px; background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--acc, var(--blue)); border-radius: 22px; transform-style: preserve-3d; transition: transform .8s cubic-bezier(.2, .7, .2, 1), opacity .8s ease, box-shadow .8s ease, filter .8s ease; will-change: transform; cursor: pointer; }
.hc-card:not(.is-active):hover { filter: brightness(1.02) saturate(1); }
.hc-seg { --acc: var(--green); }
.hc-doc { --acc: var(--blue); }
.hc-know { --acc: var(--blue); }
.hc-ctl { --acc: var(--amber); }
.hc-card .hc-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--blue-soft); color: var(--acc); border: 1px solid rgba(20, 17, 10, .08); margin-bottom: 4px; }
.hc-card .hc-ico .ico { width: 22px; height: 22px; }
.hc-card .hc-tag { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--acc); }
.hc-card h3 { font-size: 1.4rem; line-height: 1.2; margin: 0; }
.hc-card p { margin: 0; color: var(--ink-soft); font-size: .95rem; line-height: 1.55; }
/* Carrossel de riscos reais (acima dos benefícios) */
.topo-risco { padding-top: 48px; }
.hc-risco { --acc: var(--amber); }
.topo-risco .hc-stage { height: 330px; }
.topo-risco .hc-card { height: 300px; }
.hc-fontes { margin-top: auto; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.hc-fontes a { font-family: var(--mono); font-size: .7rem; letter-spacing: .04em; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.hc-fontes a:hover { color: var(--ink); }
@media (max-width: 640px) {
  .topo-risco .hc-stage { height: 360px; }
  .topo-risco .hc-card { height: 340px; }
}
.risco-head { position: relative; text-align: center; max-width: 760px; margin: 0 auto 28px; padding: 0 24px; }
.risco-head .kicker { color: #8a6415; }
.risco-titulo { font-size: clamp(26px, 3.2vw, 40px); line-height: 1.12; max-width: none; margin-bottom: 12px; }
.risco-lead { color: var(--ink-soft); font-size: .95rem; margin: 0; }
.risco-nota { position: relative; text-align: center; color: var(--ink); font-size: .95rem; max-width: 720px; margin: 22px auto 0; padding: 0 24px; }
/* Cabeçalho genérico dos carrosséis do topo (proposta, assunto e explicação breve). */
.carrossel-head { position: relative; text-align: center; max-width: 760px; margin: 0 auto 24px; padding: 0 24px; }
.carrossel-head .kicker { color: #8a6415; }
.carrossel-titulo { font-size: clamp(22px, 2.8vw, 32px); line-height: 1.15; max-width: none; margin: 0 0 8px; }
.carrossel-lead { color: var(--ink-soft); font-size: .8rem; line-height: 1.5; margin: 0; }
.hc-ctrl-bar { justify-content: center; padding: 0 24px; margin-top: 24px; }
.hc-ctrl-bar .btn { margin-left: 0; }
@media (max-width: 640px) {
  .hc-stage { height: 330px; }
  .hc-card { height: 310px; padding: 20px 22px; }
  .hc-card h3 { font-size: 1.22rem; }
  .hc-ctrl-bar { padding: 0 18px; }
  .hc-ctrl-bar .btn { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hc-card { transition: none; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  .timeline { grid-template-columns: repeat(4, 1fr); row-gap: 32px; }
  .timeline::before { display: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .cta-header { display: none; }
  .menu-toggle { display: inline-block; }
  .main-nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 18px 24px 24px; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 16px; }
  .nav-login-mobile { display: block; }
  .nav-login-mobile .btn { width: 100%; }
  .hero-grid, .two-col, .grid-2 { grid-template-columns: 1fr; }
  .two-col.reverse > :first-child { order: 2; }
  .app-window { transform: none; }
  .chip-flow { left: 8px; } .chip-chat { right: 8px; }
  h2 { max-width: none; }
  .flow { grid-template-columns: 1fr 1fr; }
  .flow li::after { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .login-link span { font-size: .82rem; }
  .login-link { padding: 8px 12px; }
  .timeline, .grid-4, .flow { grid-template-columns: 1fr; }
  .diagram { grid-template-columns: 1fr; gap: 12px; }
  .link { width: 2px; height: 36px; margin: 0 auto; background: repeating-linear-gradient(var(--ink) 0 6px, transparent 6px 10px); }
  .link span { left: 14px; top: 50%; transform: translateY(-50%); }
  .win-body { grid-template-columns: 1fr; }
  .win-doc { border-right: 0; border-bottom: 1px solid var(--line); }
  .chip { position: static; margin-top: 10px; animation: none; }
}
@media (max-width: 380px) {
  .brand-mark { font-size: 1.4rem; }
  .login-link .ico { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
