/* ============================================================
RUBY IA · TUDO INTEGRADO (landing + app estilo Beni) — estilos
============================================================ */
:root {
  --ruby: #e11d2e; --ruby-d: #9b111e; --ruby-deep: #7a0d18; --ruby-soft: #f3d3d6;
  --ink: #17120f; --muted: #6f605a; --kicker: #b0454f;
  --cream: #f6f3f0; --cream2: #efe8e2; --card: #f1ebe5;
  --dark: #161210; --dark2: #221b18; --bubble-ai: #2b2320;
  --line: rgba(23, 18, 15, .10); --line-d: rgba(255, 255, 255, .10);
  --sans: 'Inter', system-ui, sans-serif; --serif: 'Fraunces', Georgia, serif;
  --maxw: 1180px; --r: 22px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans); color: var(--ink); background: var(--cream); line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
::selection { background: var(--ruby); color: #fff; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(122, 13, 24, .25); border-radius: 4px; }
:focus-visible { outline: 2px solid var(--ruby); outline-offset: 2px; }
#appScreen :focus-visible { outline-color: #7c3aed; }

/* ---------- botões (landing) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: .95rem; border-radius: 999px; padding: 11px 22px;
  cursor: pointer; border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .25s ease, background .25s, color .2s; white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-dark { background: var(--dark); color: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.btn-dark:hover { transform: translateY(-2px); background: #000; box-shadow: 0 12px 30px rgba(122, 13, 24, .35); }
.btn-lg { padding: 15px 30px; font-size: 1.02rem; }
.btn-outline { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--ruby); color: var(--ruby); transform: translateY(-2px); }

/* ===================== LANDING ===================== */
#landing { transition: opacity .4s ease; }
#landing.hide { opacity: 0; pointer-events: none; }
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center;
  justify-content: space-between; padding: 18px clamp(18px, 5vw, 56px); transition: all .3s ease;
}
.nav.scrolled {
  background: rgba(246, 243, 240, .86); backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line); padding-top: 12px; padding-bottom: 12px;
}
.brand { display: flex; align-items: baseline; gap: 5px; font-family: var(--serif); }
.brand-name { font-size: 1.5rem; font-weight: 600; font-style: italic; letter-spacing: -.01em; }
.brand-ai {
  font-family: var(--sans); font-size: .62rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--ruby); transform: translateY(-3px);
}
.nav:not(.scrolled) .brand-name { color: #fff; }
.nav:not(.scrolled) .brand-ai { color: #ffd9dc; }
.nav-links { display: flex; gap: 30px; }
.nav-links a {
  font-size: .92rem; font-weight: 500; color: var(--ink); opacity: .85;
  transition: opacity .2s, color .2s;
}
.nav-links a:hover { opacity: 1; color: var(--ruby); }
.nav:not(.scrolled) .nav-links a { color: #fff; }
.nav-right { display: flex; align-items: center; gap: 14px; }
.menu-btn {
  display: none; flex-direction: column; gap: 5px; background: none;
  border: none; cursor: pointer; padding: 6px;
}
.menu-btn span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }
.nav:not(.scrolled) .menu-btn span { background: #fff; }

.hero {
  position: relative; padding: 150px clamp(18px, 5vw, 56px) 70px;
  background: radial-gradient(125% 85% at 50% -12%, #d8384c 0%, #b3243a 28%, #e3a9af 60%, var(--cream) 86%);
  text-align: center; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, .5), transparent),
    radial-gradient(1.5px 1.5px at 70% 20%, rgba(255, 255, 255, .4), transparent),
    radial-gradient(1.5px 1.5px at 85% 45%, rgba(255, 255, 255, .35), transparent),
    radial-gradient(2px 2px at 35% 15%, rgba(255, 255, 255, .4), transparent);
}
.hero-inner { position: relative; max-width: var(--maxw); margin: 0 auto; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .28); color: #fff; font-size: .72rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; padding: 7px 14px; border-radius: 999px;
  margin-bottom: 22px; backdrop-filter: blur(4px);
}
.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 800; letter-spacing: -.025em;
  color: #fff; line-height: 1.04; text-shadow: 0 2px 30px rgba(122, 13, 24, .35);
}
.hero-sub { color: rgba(255, 255, 255, .92); font-size: clamp(1rem, 2vw, 1.2rem); margin: 20px 0 30px; }
.hero .btn { margin-bottom: 54px; }

.app-mock {
  max-width: 880px; margin: 0 auto; background: var(--dark); border-radius: 16px;
  overflow: hidden; box-shadow: 0 40px 90px rgba(80, 8, 16, .4); text-align: left;
}
.mock-bar { display: flex; gap: 7px; padding: 12px 16px; background: #0d0a09; }
.mock-bar span { width: 11px; height: 11px; border-radius: 50%; }
.mock-bar span:nth-child(1) { background: #ff5f57; }
.mock-bar span:nth-child(2) { background: #febc2e; }
.mock-bar span:nth-child(3) { background: #28c840; }
.mock-body { display: grid; grid-template-columns: 1.25fr 1fr; min-height: 340px; }
.mock-stage { position: relative; background: #c9ccd2; overflow: hidden; }
.mock-stage img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.mock-chip {
  position: absolute; left: 14px; background: rgba(20, 20, 20, .62); color: #fff;
  font-size: .72rem; font-weight: 600; padding: 6px 11px; border-radius: 999px;
  display: flex; align-items: center; gap: 6px; backdrop-filter: blur(4px);
}
.mock-chip.c1 { top: 14px; }
.mock-chip.c2 { top: 48px; }
.mock-chip .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--ruby); display: inline-block; }
.mock-gift {
  position: absolute; left: 14px; bottom: 14px; background: rgba(20, 20, 20, .62); color: #fff;
  font-size: .72rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; backdrop-filter: blur(4px);
}
.mock-watermark {
  position: absolute; right: 14px; bottom: 12px; font-family: var(--serif);
  font-style: italic; font-size: 1.3rem; color: rgba(255, 255, 255, .7);
}
.mock-chat { background: var(--dark); color: #e9e2df; display: flex; flex-direction: column; }
.mock-chat-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; border-bottom: 1px solid var(--line-d); font-weight: 600; font-size: .9rem;
}
.mock-likes {
  font-size: .72rem; color: #b9ada8; background: rgba(255, 255, 255, .06);
  padding: 4px 9px; border-radius: 999px;
}
.mock-chat-body { padding: 16px; display: flex; flex-direction: column; gap: 9px; overflow: hidden; flex: 1; }
.mock-chat-body p { font-size: .82rem; line-height: 1.45; }
.mock-chat-body p.dim { color: #a99d98; }
.mock-chat-input {
  margin: 12px 14px 14px; background: rgba(255, 255, 255, .06); border-radius: 999px;
  padding: 11px 14px; font-size: .8rem; color: #8d817c; display: flex; justify-content: space-between; align-items: center;
}
.send-ico {
  width: 24px; height: 24px; border-radius: 50%; background: #fff; color: #000;
  display: grid; place-items: center; font-size: .8rem;
}
.mock-foot { display: flex; gap: 18px; justify-content: center; padding: 12px; background: #0d0a09; color: #cfc6c2; font-size: 1rem; }
.mock-foot span { width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .06); display: grid; place-items: center; }

.section { max-width: var(--maxw); margin: 0 auto; padding: 96px clamp(18px, 5vw, 56px); }
.section-tight { padding-bottom: 60px; }
.kicker { font-size: .78rem; font-weight: 700; letter-spacing: .22em; color: var(--kicker); text-align: center; margin-bottom: 14px; }
.kicker.left { text-align: left; }
.section-title { font-size: clamp(1.9rem, 4.4vw, 3rem); font-weight: 800; letter-spacing: -.02em; text-align: center; line-height: 1.08; }
.section-title.left { text-align: left; }
.section-lead { text-align: center; color: var(--muted); margin-top: 12px; font-size: 1.05rem; }

.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 54px; }
.feature {
  position: relative; background: var(--card); border-radius: var(--r); padding: 30px 26px 32px;
  transition: transform .25s, box-shadow .25s;
}
.feature:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(122, 13, 24, .12); }
.feature-ico {
  width: 46px; height: 46px; border-radius: 50%; background: #fff; display: grid; place-items: center;
  font-size: 1.2rem; box-shadow: 0 4px 14px rgba(0, 0, 0, .06); margin-bottom: 42px;
}
.feature h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 12px; letter-spacing: -.01em; }
.feature p { color: var(--muted); font-size: .95rem; }
.badge-soon {
  position: absolute; top: 24px; right: 24px; background: #5a4a44; color: #fff;
  font-size: .62rem; font-weight: 700; letter-spacing: .1em; padding: 5px 10px; border-radius: 999px;
}

.studio-mock {
  margin-top: 48px; display: grid; grid-template-columns: 230px 1fr; background: #fff;
  border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px rgba(80, 8, 16, .12);
}
.studio-side { background: #faf7f4; border-right: 1px solid var(--line); padding: 20px 16px; }
.studio-brand { display: flex; align-items: baseline; gap: 4px; font-family: var(--serif); margin-bottom: 22px; }
.studio-brand .brand-name { font-size: 1.25rem; }
.studio-group { font-size: .8rem; font-weight: 700; color: var(--muted); margin-bottom: 10px; }
.studio-item { font-size: .9rem; padding: 9px 12px; border-radius: 10px; margin-bottom: 4px; cursor: pointer; transition: .2s; }
.studio-item:hover { background: #f0e9e3; }
.studio-item.active { background: var(--ruby-soft); color: var(--ruby-d); font-weight: 600; }
.studio-item.add { color: var(--muted); text-align: center; border: 1px dashed var(--line); }
.studio-main { padding: 22px 26px; }
.studio-main-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.studio-main-head strong { font-size: 1.05rem; }
.studio-head-right { display: flex; gap: 8px; align-items: center; }
.free-tag { font-size: .72rem; color: var(--muted); border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; }
.min-tag { font-size: .72rem; font-weight: 600; background: var(--ruby); color: #fff; padding: 4px 10px; border-radius: 999px; }
.persona-grid { display: flex; gap: 14px; margin-bottom: 24px; }
.persona-tile {
  width: 84px; height: 84px; border-radius: 14px; overflow: hidden;
  border: 2px solid transparent; background: #f0e9e3; position: relative;
}
.persona-tile.sel { border-color: var(--ruby); }
.persona-tile img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.persona-tile img.alt { filter: hue-rotate(160deg) saturate(.8); }
.persona-tile.plus {
  display: grid; place-items: center; font-size: 1.6rem; color: var(--muted);
  border: 2px dashed var(--line); background: transparent;
}
.studio-fields { display: grid; gap: 14px; }
.field label { display: block; font-size: .72rem; font-weight: 600; color: var(--muted); letter-spacing: .04em; margin-bottom: 6px; }
.field-box { background: #faf7f4; border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; font-size: .9rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; margin-bottom: 80px; }
.split.reverse .split-text { order: 2; }
.split-text h3 { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: 14px; }
.split-text p { color: var(--muted); font-size: 1.05rem; line-height: 1.6; }
.chat-mock {
  background: var(--dark); border-radius: 18px; padding: 16px; color: #e9e2df;
  max-width: 380px; margin-left: auto; box-shadow: 0 24px 60px rgba(80, 8, 16, .3);
}
.split.reverse .chat-mock { margin-left: 0; margin-right: auto; }
.cm-head {
  display: flex; justify-content: space-between; align-items: center; font-weight: 600;
  font-size: .85rem; padding-bottom: 12px; border-bottom: 1px solid var(--line-d); margin-bottom: 14px;
}
.cm-date {
  text-align: center; font-size: .66rem; color: #9a8e89; background: rgba(255, 255, 255, .06);
  padding: 4px 12px; border-radius: 999px; width: max-content; margin: 6px auto 12px;
}
.cm-bubble {
  font-size: .82rem; line-height: 1.45; padding: 10px 13px; border-radius: 14px;
  margin-bottom: 10px; max-width: 85%;
}
.cm-bubble.user { background: var(--ruby); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.cm-bubble.ai { background: var(--bubble-ai); color: #ddd4d0; border-bottom-left-radius: 4px; }
.cm-bubble.float { box-shadow: 0 10px 24px rgba(0, 0, 0, .4); }
.cm-input {
  margin-top: 8px; background: rgba(255, 255, 255, .06); border-radius: 999px;
  padding: 10px 14px; font-size: .78rem; color: #8d817c; display: flex; justify-content: space-between; align-items: center;
}
.cm-input span { width: 22px; height: 22px; border-radius: 50%; background: #fff; color: #000; display: grid; place-items: center; font-size: .75rem; }

.social-card {
  background: var(--card); border-radius: var(--r); padding: 30px 26px; text-align: left;
  display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s;
}
.social-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(122, 13, 24, .12); }
.social-ico { font-size: 1.5rem; margin-bottom: 18px; }
.social-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.social-card p { color: var(--muted); font-size: .92rem; margin-bottom: 20px; flex: 1; }
.social-card .btn { align-self: flex-start; }

.footer {
  background: linear-gradient(180deg, #cf2c40 0%, var(--ruby-d) 55%, var(--ruby-deep) 100%);
  color: #fff; padding: 90px clamp(18px, 5vw, 56px) 40px; margin-top: 40px;
}
.footer-cta { text-align: center; max-width: 640px; margin: 0 auto 70px; }
.footer-cta h2 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -.02em; }
.footer-cta p { color: rgba(255, 255, 255, .85); margin: 14px 0 30px; font-size: 1.05rem; }
.footer-card {
  max-width: var(--maxw); margin: 0 auto; background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14); border-radius: 20px; padding: 34px clamp(20px, 4vw, 40px);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; backdrop-filter: blur(6px);
}
.footer-left { max-width: 320px; }
.brand.light .brand-name { color: #fff; }
.brand.light .brand-ai { color: #ffd9dc; }
.footer-left p { color: rgba(255, 255, 255, .85); margin: 14px 0 16px; font-size: .95rem; }
.footer-mail { font-weight: 600; font-size: .92rem; border-bottom: 1px solid rgba(255, 255, 255, .4); }
.footer-right { display: flex; flex-direction: column; gap: 12px; font-size: .92rem; }
.footer-right a { opacity: .9; transition: opacity .2s; }
.footer-right a:hover { opacity: 1; text-decoration: underline; }
.footer-bottom {
  max-width: var(--maxw); margin: 30px auto 0; display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; font-size: .82rem; color: rgba(255, 255, 255, .75);
}
.footer-legal { display: flex; gap: 22px; }
.footer-legal a:hover { color: #fff; }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===================== APP (estilo Beni) ===================== */
#appScreen {
  position: fixed; inset: 0; z-index: 200; display: none; opacity: 0; transition: opacity .4s ease;
  --bg: #000; --panel: #0a0a0a; --panel2: #1a1a1a; --line: #2a2a2a; --ink: #ffffff; --muted: #b8b8b8; --dim: #888888;
  --user: #7c3aed; --user-hover: #6d28d9; --ai: #1e1e1e; --ai-ink: #f5f5f5; --accent: #7c3aed;
  --sans: 'Inter', system-ui, sans-serif; --serif: 'Fraunces', Georgia, serif;
}
#appScreen.in { opacity: 1; }
.app {
  display: grid; grid-template-columns: 1fr 420px; height: 100vh; height: 100dvh;
  background: var(--bg); font-family: var(--sans); color: var(--ink);
}

/* Stage / Avatar (vídeo ou imagem) */
.stage-col { display: flex; flex-direction: column; min-width: 0; position: relative; }
.stage {
  flex: 1; position: relative; overflow: hidden;
  background: radial-gradient(120% 100% at 50% 30%, #2a2f3a, #15171d);
}
.stage .avatar {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%;
  animation: breathe 5s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { transform: scale(1) translateY(0); }
  50% { transform: scale(1.015) translateY(-4px); }
}
.stage .vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 35%, transparent 52%, rgba(0, 0, 0, .32) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, .20), transparent 22%, transparent 68%, rgba(0, 0, 0, .34));
}
.stage .amb {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(40% 30% at 50% 92%, rgba(124, 58, 237, .18), transparent 70%);
  animation: amb 6s ease-in-out infinite alternate;
}
@keyframes amb { to { opacity: .5; } }
.brand-chip {
  position: absolute; top: 16px; left: 16px; z-index: 5; display: flex; align-items: center; gap: 8px;
  background: rgba(18, 16, 15, .72); backdrop-filter: blur(8px); color: #fff; border: none; cursor: pointer;
  padding: 7px 12px 7px 8px; border-radius: 999px; font: 600 .82rem var(--sans); transition: background .2s;
}
.brand-chip:hover { background: rgba(18, 16, 15, .92); }
.brand-chip .av {
  width: 22px; height: 22px; border-radius: 50%; object-fit: cover; object-position: center 20%;
  background: linear-gradient(135deg, var(--accent), #4c1d95);
}
.brand-chip .ring {
  position: absolute; left: 6px; top: 6px; width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid rgba(124, 58, 237, .6); animation: ping 2.2s ease-out infinite;
}
@keyframes ping { from { transform: scale(.7); opacity: .9; } to { transform: scale(1.5); opacity: 0; } }
.brand-chip .car { opacity: .7; font-size: .7rem; }
.mode-chip {
  position: absolute; top: 54px; left: 16px; z-index: 5;
  background: rgba(18, 16, 15, .72); backdrop-filter: blur(8px); color: #fff; border: none; cursor: pointer;
  padding: 7px 12px; border-radius: 999px; font: 600 .78rem var(--sans); transition: background .2s;
}
.mode-chip:hover { background: rgba(18, 16, 15, .92); }
.cam-box {
  position: absolute; top: 16px; right: 16px; z-index: 5; width: 150px; height: 92px; border-radius: 12px;
  background: #1b2530; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0, 0, 0, .4);
}
.cam-box svg { width: 34px; height: 34px; opacity: .5; color: #8899aa; }
.gift {
  position: absolute; left: 16px; bottom: 16px; z-index: 5;
  background: rgba(18, 16, 15, .72); backdrop-filter: blur(8px); color: #fff;
  padding: 7px 13px; border-radius: 999px; font: 600 .78rem var(--sans); cursor: pointer; transition: background .2s;
}
.gift:hover { background: rgba(18, 16, 15, .92); }
.watermark {
  position: absolute; right: 18px; bottom: 14px; z-index: 4;
  font: italic 700 1.5rem var(--serif); color: rgba(255, 255, 255, .62); text-shadow: 0 2px 10px rgba(0, 0, 0, .3);
}

.stage-controls {
  height: 64px; flex: none; background: #0d0d0d; display: flex; align-items: center;
  justify-content: center; gap: 16px; position: relative; border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.ctrl {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .06); color: #d8d0cc;
  display: grid; place-items: center; cursor: pointer;
  transition: background .2s, color .2s, transform .15s, box-shadow .2s, border-color .2s;
}
.ctrl:hover {
  background: rgba(255, 255, 255, .14); color: #fff;
  transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0, 0, 0, .4);
  border-color: rgba(255, 255, 255, .18);
}
.ctrl:active { transform: scale(.94); }
.ctrl svg { width: 18px; height: 18px; display: block; }
.ctrl.rec {
  background: var(--accent); border-color: var(--accent); color: #fff;
  animation: pulse 1.4s infinite; box-shadow: 0 0 0 4px rgba(124, 58, 237, .25);
}
.ctrl.speak-on {
  background: #23a06a; border-color: #23a06a; color: #fff;
  box-shadow: 0 0 0 4px rgba(35, 160, 106, .25);
}
@keyframes pulse { 50% { opacity: .55; } }
.popover {
  position: absolute; bottom: 74px; left: 50%; transform: translateX(-50%) translateY(8px); z-index: 30;
  background: #1a1a1a; border: 1px solid var(--line); border-radius: 12px; padding: 6px; min-width: 210px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .55); opacity: 0; visibility: hidden; transition: .2s;
}
.popover.open { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.popover button {
  display: flex; width: 100%; align-items: center; gap: 10px; background: none; border: none;
  color: var(--ink); padding: 10px 12px; border-radius: 8px; cursor: pointer; font: 500 .85rem var(--sans);
  text-align: left; transition: background .15s;
}
.popover button:hover { background: rgba(255, 255, 255, .06); }
.popover .pv-sep { height: 1px; background: var(--line); margin: 5px 4px; }

/* Chat Column */
.chat-col { background: var(--panel); border-left: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.chat-head {
  display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; flex: none; gap: 8px;
  border-bottom: 1px solid var(--line);
}
.chat-head h2 { font-size: 1rem; font-weight: 700; }
.head-right { display: flex; align-items: center; gap: 8px; }
.mem-pill {
  display: flex; align-items: center; gap: 6px; font: 600 .74rem var(--sans); color: var(--muted);
  background: rgba(255, 255, 255, .05); padding: 5px 11px; border-radius: 999px; border: none; cursor: pointer; transition: color .2s, background .2s;
}
.mem-pill:hover { color: var(--ink); background: rgba(255, 255, 255, .1); }
.head-pill {
  display: flex; align-items: center; gap: 8px; font: 600 .74rem var(--sans); color: var(--muted);
  background: rgba(255, 255, 255, .05); padding: 5px 11px; border-radius: 999px;
}
.head-pill .likes { display: flex; align-items: center; gap: 5px; }
.head-pill .likes svg { width: 13px; height: 13px; fill: var(--accent); }
.head-pill .sep { opacity: .4; }
.head-pill .prov { cursor: pointer; color: var(--ink); border: none; background: none; font: 600 .74rem var(--sans); padding: 0; transition: color .2s; }
.head-pill .prov:hover { color: var(--accent); }
.messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.row { display: flex; animation: rise .3s ease both; }
.row.user { justify-content: flex-end; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.bub {
  max-width: 82%; padding: 11px 14px; border-radius: 14px; font-size: .9rem;
  line-height: 1.5; white-space: pre-wrap; word-break: break-word;
}
.row.ai .bub { background: var(--ai); color: var(--ai-ink); border-bottom-left-radius: 4px; }
.row.user .bub { background: var(--user); color: #fff; border-bottom-right-radius: 4px; font-weight: 500; }
.row.ai .bub img { max-width: 100%; max-height: 240px; border-radius: 10px; margin-top: 6px; }
.typing .bub { display: flex; gap: 5px; padding: 13px 16px; }
.typing .bub span { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); animation: blink 1.1s infinite; }
.typing .bub span:nth-child(2) { animation-delay: .18s; }
.typing .bub span:nth-child(3) { animation-delay: .36s; }
@keyframes blink {
  0%, 100% { opacity: .3; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-3px); }
}
.imgprev { display: flex; gap: 8px; flex-wrap: wrap; padding: 8px 16px 0; }
.imgprev figure { position: relative; }
.imgprev img { width: 54px; height: 54px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.imgprev button {
  position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; border-radius: 50%;
  border: none; background: var(--accent); color: #fff; font-size: .65rem; cursor: pointer; display: grid; place-items: center;
}

/* ---------- NOVO: chips de nutrição (como perguntar) ---------- */
.chips-row {
  display: flex; gap: 8px; align-items: center; padding: 8px 12px 0;
  overflow-x: auto; flex: none; scrollbar-width: none;
}
.chips-row::-webkit-scrollbar { display: none; }
.chips-label {
  font: 600 .62rem var(--sans); color: var(--dim); white-space: nowrap;
  letter-spacing: .08em; text-transform: uppercase;
}
.nchip {
  flex: none; background: rgba(124, 58, 237, .12); border: 1px solid rgba(124, 58, 237, .35);
  color: #cbb8f5; border-radius: 999px; padding: 6px 12px; font: 600 .7rem var(--sans);
  cursor: pointer; transition: .2s;
}
.nchip:hover { background: rgba(124, 58, 237, .25); color: #fff; transform: translateY(-1px); }

.composer { padding: 12px 14px 16px; flex: none; padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
.composer form {
  display: flex; align-items: center; gap: 8px; background: var(--panel2);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 6px 6px 16px; transition: border-color .2s;
}
.composer form:focus-within { border-color: var(--accent); }
.composer input { flex: 1; background: none; border: none; outline: none; color: var(--ink); font: 400 .9rem var(--sans); }
.composer input::placeholder { color: var(--dim); }
.send {
  width: 34px; height: 34px; border-radius: 50%; border: none; background: var(--accent); color: #fff;
  cursor: pointer; display: grid; place-items: center; flex: none; transition: transform .15s, opacity .2s;
}
.send:hover { transform: scale(1.06); }
.send:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.send svg { width: 16px; height: 16px; }

/* Drawer */
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(360px, 92vw); z-index: 300;
  background: var(--panel); border-left: 1px solid var(--line); transform: translateX(105%);
  transition: transform .32s ease; display: flex; flex-direction: column; box-shadow: -20px 0 60px rgba(0, 0, 0, .5);
}
.drawer.open { transform: none; }
.drawer-tabs { display: flex; border-bottom: 1px solid var(--line); flex: none; }
.drawer-tabs button {
  flex: 1; background: none; border: none; color: var(--muted); padding: 14px;
  font: 600 .82rem var(--sans); cursor: pointer; border-bottom: 2px solid transparent; transition: .2s;
}
.drawer-tabs button.on { color: var(--ink); border-bottom-color: var(--accent); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px 0; flex: none; }
.drawer-head h3 { font-size: 1rem; font-weight: 700; }
.x {
  background: none; border: none; color: var(--muted); font-size: 1.2rem; cursor: pointer;
  transition: color .2s, transform .25s;
}
.x:hover { color: var(--accent); transform: rotate(90deg); }
.drawer-body { padding: 14px 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.ctrl-row { display: flex; gap: 8px; }
.ctrl-row input {
  flex: 1; background: var(--panel2); border: 1px solid var(--line); color: var(--ink);
  border-radius: 999px; padding: 9px 13px; font: 400 .82rem var(--sans); outline: none;
}
.ctrl-row input:focus { border-color: var(--accent); }
.ctrl-row select {
  background: var(--panel2); border: 1px solid var(--line); color: var(--ink);
  border-radius: 999px; padding: 9px; font: 500 .8rem var(--sans);
}
.btn-ghost {
  background: transparent; border: 1px solid var(--line); color: var(--ink); border-radius: 999px;
  padding: 10px; font: 600 .72rem var(--sans); cursor: pointer; transition: border-color .2s, transform .15s;
}
.btn-ghost:hover { border-color: var(--accent); transform: translateY(-1px); }
.conv {
  padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
  position: relative; transition: border-color .2s, background .2s, transform .15s;
}
.conv:hover { border-color: var(--accent); transform: translateX(-2px); }
.conv.active { border-color: var(--accent); background: rgba(124, 58, 237, .1); }
.conv .cn {
  font-weight: 600; font-size: .86rem; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; padding-right: 24px;
}
.conv .cd { font: 400 .62rem var(--sans); color: var(--muted); margin-top: 3px; }
.conv .cp { font-size: .76rem; color: var(--muted); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv .del {
  position: absolute; top: 9px; right: 9px; background: none; border: none; color: var(--muted);
  cursor: pointer; opacity: 0; transition: opacity .2s, color .2s;
}
.conv:hover .del { opacity: 1; }
.conv .del:hover { color: var(--accent); }
.empty-note { font: italic .82rem var(--sans); color: var(--muted); text-align: center; padding: 24px 0; }
.mem {
  background: rgba(255, 255, 255, .03); border: 1px solid var(--line); border-left: 3px solid var(--mc, #23e0ad);
  border-radius: 8px; padding: 8px 10px; font: 400 .74rem/1.5 var(--sans);
}
.mem .mtag {
  display: block; font-weight: 700; font-size: .58rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--mc); margin-bottom: 2px;
}
.mem time { color: var(--muted); font-size: .6rem; }

/* Modal */
.modal {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .75); display: none; place-items: center;
  z-index: 400; padding: 20px; backdrop-filter: blur(4px);
}
.modal.show { display: grid; }
.modal-card {
  width: min(520px, 94vw); max-height: 90vh; overflow-y: auto;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none; border-radius: 20px; padding: 28px; animation: pop .25s ease both; color: #fff;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .5);
}
@keyframes pop { from { opacity: 0; transform: scale(.95) translateY(20px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.modal-head h3 { font-size: 1.2rem; font-weight: 700; color: #fff; }
.lab {
  display: block; font: 600 .62rem var(--sans); letter-spacing: .16em;
  text-transform: uppercase; color: rgba(255, 255, 255, .9); margin: 20px 0 10px;
}
.lab:first-of-type { margin-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font: 600 .78rem var(--sans); padding: .6rem 1.1rem; border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .1); color: #fff;
  cursor: pointer; transition: all .2s;
}
.chip:hover { border-color: #fff; background: rgba(255, 255, 255, .2); }
.chip.on { background: #fff; color: #667eea; border-color: #fff; font-weight: 700; }
.txt {
  width: 100%; background: rgba(255, 255, 255, .15); border: 2px solid rgba(255, 255, 255, .3);
  border-radius: 12px; padding: 12px 14px; color: #fff; font: 500 .9rem var(--sans);
  outline: none; transition: border-color .2s;
}
.txt:focus { border-color: #fff; background: rgba(255, 255, 255, .2); }
.txt::placeholder { color: rgba(255, 255, 255, .6); }
.info-box, .warn-box {
  background: rgba(255, 255, 255, .15); border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 12px; padding: 12px 14px; display: flex; align-items: center; gap: 10px;
  font: 400 .8rem var(--sans); color: rgba(255, 255, 255, .95); margin-top: 8px;
}
.lock-icon { font-size: 1rem; }
.row2 { display: flex; gap: 10px; flex-wrap: wrap; }
.row2 .txt { flex: 1; }
.note { font: 400 .75rem var(--sans); color: rgba(255, 255, 255, .8); margin-top: 10px; line-height: 1.6; }

/* Voice Controls */
.voice-controls {
  display: grid; gap: 16px; margin-top: 16px; padding: 18px;
  background: rgba(255, 255, 255, .1); border-radius: 14px; border: 1px solid rgba(255, 255, 255, .15);
}
.voice-control label { display: block; font: 600 .8rem var(--sans); color: rgba(255, 255, 255, .95); margin-bottom: 8px; }
.control-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.value-badge {
  background: rgba(255, 255, 255, .2); padding: 4px 10px; border-radius: 6px;
  font: 600 .75rem var(--sans); color: #fff;
}
.voice-control input[type=range] {
  width: 100%; height: 8px; -webkit-appearance: none; appearance: none;
  background: rgba(255, 255, 255, .2); border-radius: 4px; outline: none; cursor: pointer;
}
.voice-control input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); transition: transform .15s;
}
.voice-control input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.1); }
.voice-control input[type=range]::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%; background: #fff; cursor: pointer;
  border: none; box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}

/* Botões */
.btn-primary {
  background: #fff; color: #667eea; border: none; padding: 12px 20px; border-radius: 12px;
  font: 700 .9rem var(--sans); cursor: pointer; transition: all .2s; box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0, 0, 0, .2); }
.btn-secondary {
  background: rgba(255, 255, 255, .15); color: #fff; border: 2px solid rgba(255, 255, 255, .3);
  padding: 10px 16px; border-radius: 10px; font: 600 .8rem var(--sans); cursor: pointer; transition: all .2s;
}
.btn-secondary:hover { background: rgba(255, 255, 255, .25); border-color: #fff; }
.btn-lm { transition: transform .15s, opacity .2s; background: rgba(255, 255, 255, .2); color: #fff; border: 2px solid rgba(255, 255, 255, .3); }
.btn-lm:hover { transform: translateY(-2px); opacity: .9; background: rgba(255, 255, 255, .3); border-color: #fff; }

/* Danger buttons */
.danger-row {
  display: flex; gap: 10px; margin-top: 24px; padding-top: 20px;
  border-top: 2px solid rgba(255, 255, 255, .25); flex-wrap: wrap;
}
.btn-danger {
  flex: 1; background: rgba(239, 68, 68, .2); border: 2px solid rgba(239, 68, 68, .5); color: #fff;
  border-radius: 10px; padding: 11px 14px; font: 600 .75rem var(--sans); cursor: pointer;
  transition: all .2s; min-width: 120px;
}
.btn-danger:hover { background: rgba(239, 68, 68, .35); border-color: #ef4444; transform: translateY(-1px); }

/* Toast */
.toast {
  position: fixed; top: 18px; left: 50%; transform: translate(-50%, -14px); z-index: 600;
  background: #1a1a1a; border: 1px solid #2a2a2a; color: #f2f2f2; font: 600 .8rem var(--sans);
  padding: 10px 18px; border-radius: 999px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
  opacity: 0; transition: .3s; pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { border-color: #5a1419; }
#appScreen .toast { top: 110px; }

/* LM Studio Modal */
.lm-modal-card { background: #1e1e1e !important; border: 1px solid #333 !important; max-width: 520px !important; color: #fff !important; }
.lm-modal-card .lab { color: rgba(255, 255, 255, .8) !important; }
.lm-modal-card .note { color: rgba(255, 255, 255, .7) !important; }
.lm-modal-card .txt { background: rgba(255, 255, 255, .15) !important; border-color: rgba(255, 255, 255, .3) !important; color: #fff !important; }
.lm-modal-card .txt::placeholder { color: rgba(255, 255, 255, .5) !important; }
.lm-modal-card .status-box { background: rgba(255, 255, 255, .1) !important; border-color: rgba(255, 255, 255, .2) !important; color: #fff !important; }
.lm-modal-header {
  background: #4CAF50; color: #fff; padding: 16px 20px; border-radius: 12px 12px 0 0;
  display: flex; justify-content: space-between; align-items: center; margin: -24px -24px 16px -24px;
}
.lm-modal-header h3 { margin: 0; font-size: 1.1rem; }
.lm-modal-header .x {
  color: #fff; background: rgba(255, 255, 255, .2); width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; transition: background .2s;
}
.lm-modal-header .x:hover { background: rgba(255, 255, 255, .3); }

/* ===================== RESPONSIVO ===================== */
@media (max-width: 880px) {
  .nav-links {
    position: fixed; top: 0; right: 0; height: 100vh; width: min(78vw, 300px); background: var(--cream);
    flex-direction: column; gap: 6px; padding: 90px 26px; transform: translateX(105%); transition: transform .32s ease;
    box-shadow: -12px 0 40px rgba(0, 0, 0, .18); z-index: 99;
  }
  .nav-links.open { transform: none; }
  .nav-links a { color: var(--ink) !important; font-size: 1.1rem; padding: 10px 0; }
  .menu-btn { display: flex; z-index: 101; }
  .menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-btn.open span:nth-child(2) { opacity: 0; }
  .menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-cta { display: none; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-stage { min-height: 240px; }
  .cards3 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 26px; }
  .split.reverse .split-text { order: 0; }
  .chat-mock, .split.reverse .chat-mock { margin: 0 auto; max-width: 420px; }
  .studio-mock { grid-template-columns: 1fr; }
  .studio-side { border-right: none; border-bottom: 1px solid var(--line); }
  .app { grid-template-columns: 1fr; grid-template-rows: 46vh 1fr; }
  .chat-col { border-left: none; border-top: 1px solid var(--line); }
  .stage .avatar { object-position: center 30%; }
  .cam-box { width: 96px; height: 62px; }
  .watermark { font-size: 1.1rem; }
}
@media (max-width: 520px) {
  .hero { padding-top: 120px; }
  .footer-card { flex-direction: column; }
  .head-pill .sep, .head-pill .likes { display: none; }
  .brand-chip { padding: 6px 10px 6px 6px; font-size: .76rem; }
  .mode-chip { font-size: .72rem; padding: 6px 10px; }
  .gift { font-size: .72rem; padding: 6px 11px; }
}
@media (max-width: 380px) {
  .stage-controls { gap: 10px; }
  .ctrl { width: 38px; height: 38px; }
  .ctrl svg { width: 16px; height: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .stage .avatar { animation: none !important; }
  .stage .amb { animation: none !important; }
  .brand-chip .ring { animation: none !important; }
}