/* AgentPress landing. No framework, no web fonts: first paint is the HTML and this file. */
@property --angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

:root {
  --bg: #07080d;
  --bg-2: #0d0f18;
  --line: #1c2030;
  --text: #e6e8f0;
  --muted: #8a90a6;
  --accent: #7c7cff;
  --accent-2: #10d39a;
  --warn: #ffb547;
  --radius: 14px;
  --mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Inter', sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 var(--sans); text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; }
code, kbd, pre { font-family: var(--mono); }
code { font-size: .88em; color: #c9cbff; background: #151830; padding: .1em .35em; border-radius: 5px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; }
.skip:focus { left: 12px; z-index: 99; background: var(--accent); color: #000; padding: 6px 10px; border-radius: 8px; }

/* blueprint grid, fading out at the edges */
.grid-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60rem 30rem at 70% -10%, #7c7cff22, transparent 60%),
    radial-gradient(40rem 25rem at 0% 10%, #10d39a14, transparent 60%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
  opacity: .55;
}

/* ── nav ── */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .9rem clamp(1rem, 4vw, 3rem);
  backdrop-filter: blur(12px) saturate(140%); -webkit-backdrop-filter: blur(12px) saturate(140%);
  background: color-mix(in oklab, var(--bg) 70%, transparent);
  border-bottom: 1px solid transparent;
  animation: nav-line linear both; animation-timeline: scroll(); animation-range: 0 120px;
}
@keyframes nav-line { to { border-bottom-color: var(--line); } }
.brand { font: 600 15px var(--mono); text-decoration: none; letter-spacing: -.02em; display: inline-flex; align-items: center; gap: .5rem; }
.brand .mark { color: var(--accent); }
.caret { color: var(--accent-2); animation: blink 1.1s steps(1) infinite; }
.nav nav { display: flex; align-items: center; gap: clamp(.6rem, 2vw, 1.4rem); font: 13px var(--mono); }
.nav nav a:not(.btn) { color: var(--muted); text-decoration: none; }
.nav nav a:not(.btn):hover { color: var(--text); }

/* ── buttons ── */
.btn {
  --b: var(--line);
  display: inline-flex; align-items: center; gap: .6rem; cursor: pointer;
  font: 500 14px var(--mono); color: var(--text); text-decoration: none;
  padding: .8rem 1.15rem; border-radius: 10px; border: 1px solid var(--b); background: var(--bg-2);
  transition: transform .15s ease, border-color .2s, background .2s;
}
.btn:hover { transform: translateY(-1px); --b: #2c3250; }
.btn:active { transform: translateY(0) scale(.98); }
.btn.sm { padding: .45rem .75rem; font-size: 12px; }
.btn.primary {
  border: 1px solid transparent; color: #fff;
  background:
    linear-gradient(#11132a, #11132a) padding-box,
    conic-gradient(from var(--angle), var(--accent), var(--accent-2), #4c6fff, var(--accent)) border-box;
  animation: spin 4s linear infinite;
  box-shadow: 0 0 0 0 #7c7cff00, 0 10px 40px -12px #7c7cff88;
}
@keyframes spin { to { --angle: 360deg; } }
.btn kbd { font-size: 11px; padding: 0 .4em; border: 1px solid #ffffff30; border-radius: 4px; color: var(--muted); }

/* ── hero ── */
main { max-width: 1120px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }
.hero { padding: clamp(3.5rem, 10vw, 7rem) 0 3rem; display: grid; gap: 1.4rem; }
.eyebrow { margin: 0; font: 12px var(--mono); color: var(--muted); display: inline-flex; align-items: center; gap: .55rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 4px #10d39a22; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px #10d39a00; } }
h1 {
  margin: 0; font-weight: 650; letter-spacing: -.035em; line-height: 1.04;
  font-size: clamp(2.3rem, 6.2vw, 4.6rem); text-wrap: balance; max-width: 18ch;
}
.grad {
  background: linear-gradient(92deg, var(--accent) 10%, var(--accent-2) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { margin: 0; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.18rem); max-width: 58ch; text-wrap: pretty; }
.cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .4rem; }

.term {
  margin: 1.8rem 0 0; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, #0c0e17, #090a11); overflow: hidden; max-width: 680px;
  box-shadow: 0 30px 80px -40px #000, inset 0 1px 0 #ffffff08;
  transform: perspective(1200px) rotateX(6deg); transform-origin: top;
  animation: tilt linear both; animation-timeline: view(); animation-range: entry 0% cover 40%;
}
@keyframes tilt { to { transform: none; } }
.term-bar { display: flex; align-items: center; gap: 6px; padding: .6rem .8rem; border-bottom: 1px solid var(--line); }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a2f45; }
.term-bar span { margin-left: .6rem; font: 12px var(--mono); color: var(--muted); }
.term pre { margin: 0; padding: 1rem 1.1rem 1.2rem; font-size: 13px; line-height: 1.7; overflow-x: auto; }
.term code { background: none; padding: 0; color: var(--text); }
.term .p { color: var(--accent-2); } .term .c { color: var(--muted); } .term .ok { color: var(--accent-2); } .term .k { color: #c9cbff; }
.blink { animation: blink 1s steps(1) infinite; color: var(--accent); }
@keyframes blink { 50% { opacity: 0; } }

/* ── bento ── */
.bento {
  display: grid; gap: 1rem; padding: 3rem 0;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
@media (min-width: 900px) { .bento { grid-template-columns: repeat(3, 1fr); } .card.wide { grid-column: span 2; } }
.card {
  container-type: inline-size; position: relative; isolation: isolate;
  padding: 1.4rem 1.4rem 1.5rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-2); overflow: hidden;
  animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 60%;
}
/* cursor-following glow (coordinates set by widget.js) */
.card::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), #7c7cff1f, transparent 45%);
}
.card:hover::before { opacity: 1; }
.card:hover { border-color: #2a2f48; }
.card h2 { margin: 0 0 .5rem; font: 600 15px var(--mono); letter-spacing: -.01em; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.ix { color: var(--accent); margin-right: .4rem; }
@container (min-width: 520px) { .card p { font-size: 16px; max-width: 60ch; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

/* ── how ── */
.h { font: 600 13px var(--mono); color: var(--muted); text-transform: lowercase; letter-spacing: .04em; margin: 0 0 1.2rem; }
.h::before { content: '// '; color: var(--accent); }
.how { padding: 2rem 0 3rem; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; counter-reset: s; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: s; background: var(--bg); padding: 1.3rem; display: grid; gap: .45rem; align-content: start; }
.steps b { font: 600 14px var(--mono); }
.steps b::before { content: counter(s, decimal-leading-zero) ' '; color: var(--accent-2); }
.steps span { color: var(--muted); font-size: 14.5px; }

/* ── faq ── */
.faq { padding: 2rem 0 3rem; max-width: 760px; }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 1rem 0; font-weight: 550; display: flex; justify-content: space-between; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-family: var(--mono); color: var(--accent); transition: rotate .2s; }
details[open] summary::after { rotate: 45deg; }
details p { margin: 0 0 1.1rem; color: var(--muted); }
details::details-content { transition: height .25s ease, content-visibility .25s allow-discrete; height: 0; overflow: clip; }
details[open]::details-content { height: auto; }
@supports (interpolate-size: allow-keywords) { :root { interpolate-size: allow-keywords; } }

.final { text-align: center; padding: 4rem 0 5rem; display: grid; justify-items: center; gap: .8rem; }
.final h2 { margin: 0; font-size: clamp(1.6rem, 3.5vw, 2.4rem); letter-spacing: -.03em; }
.final p { margin: 0 0 .6rem; color: var(--muted); }

.foot { display: flex; flex-wrap: wrap; gap: 1.2rem; justify-content: center; padding: 2rem 1rem 6rem; border-top: 1px solid var(--line); font: 12px var(--mono); color: var(--muted); }
.foot a { color: var(--muted); text-decoration: none; } .foot a:hover { color: var(--text); }

/* ── chat widget ── */
.ap-launcher {
  position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 50;
  width: 58px; height: 58px; border-radius: 18px; border: 1px solid #2c3150; cursor: pointer;
  background: radial-gradient(circle at 30% 25%, #2a2d6b, #12142b); color: #fff;
  display: grid; place-items: center; font: 600 20px var(--mono);
  box-shadow: 0 18px 50px -12px #7c7cff99, inset 0 1px 0 #ffffff14;
  transition: transform .2s cubic-bezier(.3,1.4,.5,1);
}
.ap-launcher:hover { transform: translateY(-2px) rotate(-3deg); }
.ap-launcher .badge { position: absolute; top: -4px; right: -4px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent-2); border: 2px solid var(--bg); }
.ap-launcher[aria-expanded="true"] .badge { display: none; }

.ap-peek {
  position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: calc(max(18px, env(safe-area-inset-bottom)) + 72px); z-index: 50;
  max-width: min(320px, calc(100vw - 36px)); padding: .85rem 2.2rem .9rem 1rem; cursor: pointer;
  background: #14172d; color: var(--text);
  border: 1px solid #343a63; border-radius: 14px 14px 4px 14px; font-size: 14.5px; line-height: 1.45;
  box-shadow: 0 20px 60px -20px #000;
  transition: opacity .35s, transform .45s cubic-bezier(.2,1.3,.4,1), display .45s allow-discrete;
  @starting-style { opacity: 0; transform: translateY(12px) scale(.96); }
}
.ap-peek[hidden] { display: none; opacity: 0; transform: translateY(12px) scale(.96); }
.ap-peek b { font: 600 12px var(--mono); color: var(--accent-2); display: block; margin-bottom: .2rem; }
.ap-peek .x { position: absolute; top: 6px; right: 8px; background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 16px; padding: 4px; }

.ap-panel {
  position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: calc(max(18px, env(safe-area-inset-bottom)) + 72px); z-index: 51;
  width: min(400px, calc(100vw - 24px)); height: min(620px, calc(100dvh - 120px));
  display: flex; flex-direction: column; overflow: hidden;
  background: #0c0e18f2; backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid #262a44; border-radius: 18px; box-shadow: 0 40px 120px -30px #000;
  transform-origin: bottom right;
  transition: opacity .25s, transform .35s cubic-bezier(.2,1.2,.4,1), display .35s allow-discrete, overlay .35s allow-discrete;
  @starting-style { opacity: 0; transform: translateY(16px) scale(.94); }
}
.ap-panel[hidden] { display: none; opacity: 0; transform: translateY(16px) scale(.94); }
@media (max-width: 520px) {
  .ap-panel { right: 0; left: 0; bottom: 0; width: 100%; height: 100dvh; border-radius: 0; border: 0; }
}
.ap-head { display: flex; align-items: center; gap: .7rem; padding: .85rem 1rem; border-bottom: 1px solid var(--line); }
.ap-av { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--accent-2)); font: 700 14px var(--mono); color: #07080d; }
.ap-head h3 { margin: 0; font-size: 14.5px; }
.ap-head p { margin: 0; font: 11px var(--mono); color: var(--accent-2); }
.ap-head .sp { flex: 1; }
.ap-head button { background: none; border: 0; color: var(--muted); cursor: pointer; font: 18px var(--mono); padding: 4px 8px; border-radius: 8px; }
.ap-head button:hover { color: var(--text); background: #ffffff0a; }
.ap-log { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; overscroll-behavior: contain; scrollbar-width: thin; }
.ap-msg { max-width: 86%; padding: .6rem .85rem; border-radius: 14px; font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; animation: pop .25s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } }
.ap-msg.bot { background: #161930; border: 1px solid #22264080; border-bottom-left-radius: 4px; align-self: flex-start; }
.ap-msg.user { background: linear-gradient(135deg, #5b5bf0, #4747c9); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.ap-msg.note { align-self: center; font: 12px var(--mono); color: var(--muted); background: none; text-align: center; }
.ap-msg a { color: var(--accent-2); }
.ap-chips { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0 1rem .6rem; }
.ap-chips button { font: 12px var(--mono); color: var(--text); background: #12142a; border: 1px solid #2a2f4a; border-radius: 999px; padding: .4rem .7rem; cursor: pointer; }
.ap-chips button:hover { border-color: var(--accent); }
.ap-form { display: flex; gap: .5rem; padding: .7rem; border-top: 1px solid var(--line); }
.ap-form textarea { flex: 1; resize: none; max-height: 120px; field-sizing: content; min-height: 42px; padding: .6rem .8rem; border-radius: 12px; border: 1px solid #262a44; background: #0a0b14; color: var(--text); font: 14.5px var(--sans); }
.ap-form textarea:focus { outline: none; border-color: var(--accent); }
.ap-form button { width: 42px; border-radius: 12px; border: 0; background: var(--accent); color: #fff; cursor: pointer; font-size: 16px; }
.ap-form button:disabled { opacity: .5; cursor: default; }
.ap-foot { font: 10.5px var(--mono); color: var(--muted); text-align: center; padding: 0 0 .55rem; }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: bob 1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bob { 40% { transform: translateY(-4px); opacity: 1; } 0%, 80%, 100% { opacity: .4; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .term { transform: none; }
}

/* ══ dev ↔ produto ═══════════════════════════════════════════════════════════
   Same page, two audiences. `data-mode` on <html> picks the theme and which copy
   shows (elements tagged data-dev / data-prod). mode.js sets it before paint. */
[data-mode="dev"] :is([data-prod], [data-mkt]),
[data-mode="produto"] :is([data-dev], [data-mkt]),
[data-mode="marketing"] :is([data-dev], [data-prod]) { display: none !important; }

[data-mode="produto"], [data-mode="marketing"] {
  --bg: #fbfaf7;
  --bg-2: #ffffff;
  --line: #e9e6df;
  --text: #16171d;
  --muted: #5d6170;
  --accent: #4f46e5;
  --accent-2: #059669;
  --mono: var(--sans);
  color-scheme: light;
}
:is([data-mode="produto"], [data-mode="marketing"]) body { font-size: 17px; }
:is([data-mode="produto"], [data-mode="marketing"]) .grid-bg {
  background:
    radial-gradient(55rem 28rem at 75% -10%, #c7d2fe88, transparent 60%),
    radial-gradient(40rem 24rem at 5% 10%, #a7f3d055, transparent 60%);
  opacity: 1;
}
:is([data-mode="produto"], [data-mode="marketing"]) .caret { display: none; }
:is([data-mode="produto"], [data-mode="marketing"]) h1 { font-weight: 700; letter-spacing: -.04em; }
:is([data-mode="produto"], [data-mode="marketing"]) code { color: #3730a3; background: #eef2ff; }
:is([data-mode="produto"], [data-mode="marketing"]) .btn { border-radius: 999px; font-weight: 600; }
:is([data-mode="produto"], [data-mode="marketing"]) .btn.primary {
  background: linear-gradient(135deg, #4f46e5, #7c3aed); animation: none; color: #fff;
  box-shadow: 0 12px 30px -12px #4f46e5aa;
}
:is([data-mode="produto"], [data-mode="marketing"]) .btn.ghost { background: #fff; }
:is([data-mode="produto"], [data-mode="marketing"]) .card { box-shadow: 0 1px 2px #0000000a, 0 12px 32px -20px #1e1b4b33; border-radius: 18px; }
:is([data-mode="produto"], [data-mode="marketing"]) .card::before { background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), #6366f114, transparent 45%); }
:is([data-mode="produto"], [data-mode="marketing"]) .card h2 { font-size: 17px; letter-spacing: -.02em; }
:is([data-mode="produto"], [data-mode="marketing"]) .ix { font-family: ui-monospace, Menlo, monospace; font-size: 12px; vertical-align: 2px; }
:is([data-mode="produto"], [data-mode="marketing"]) .h::before { content: ''; }
:is([data-mode="produto"], [data-mode="marketing"]) .h { text-transform: uppercase; font-size: 12px; letter-spacing: .12em; }
:is([data-mode="produto"], [data-mode="marketing"]) .steps li { background: #fff; }
:is([data-mode="produto"], [data-mode="marketing"]) .term { background: #fff; box-shadow: 0 30px 80px -40px #1e1b4b55; border-radius: 20px; }
:is([data-mode="produto"], [data-mode="marketing"]) .term-bar i { background: #e5e2da; }
:is([data-mode="produto"], [data-mode="marketing"]) .nav { background: color-mix(in oklab, var(--bg) 78%, transparent); }

/* the product-side hero figure: a short conversation + outcomes */
.demo-chat { display: grid; gap: .55rem; padding: 1.1rem 1.1rem .6rem; }
.demo-chat .b { margin: 0; max-width: 82%; padding: .6rem .85rem; border-radius: 16px; font-size: 15px; line-height: 1.45; animation: rise .5s both; }
.demo-chat .u { justify-self: end; background: #eef2ff; color: #1e1b4b; border-bottom-right-radius: 4px; }
.demo-chat .a { background: #f5f4f0; border-bottom-left-radius: 4px; animation-delay: .25s; }
.demo-chat .u:nth-child(3) { animation-delay: .5s; }
.demo-chat .n { justify-self: center; font-size: 13px; color: var(--accent-2); background: none; animation-delay: .75s; }
.kpis { list-style: none; margin: 0; padding: .8rem 1.1rem 1.1rem; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.kpis b { color: var(--text); }

/* the switch in the header */
.mode {
  position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  padding: 3px; border-radius: 999px; border: 1px solid var(--line); background: color-mix(in oklab, var(--bg-2) 85%, transparent);
  font: 500 12px var(--mono); isolation: isolate;
}
.mode button {
  position: relative; z-index: 1; border: 0; background: none; color: var(--muted); cursor: pointer;
  padding: .38rem .8rem; border-radius: 999px; font: inherit; white-space: nowrap; transition: color .25s;
}
.mode button[aria-checked="true"] { color: var(--text); }
.mode-thumb {
  position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / 3); border-radius: 999px;
  background: linear-gradient(135deg, #1c1f3a, #23264a); box-shadow: inset 0 1px 0 #ffffff14, 0 0 0 1px #2c3150;
  transition: translate .4s cubic-bezier(.3, 1.3, .5, 1), background .3s;
}
[data-mode="produto"] .mode-thumb { translate: 100% 0; background: #fff; box-shadow: 0 1px 3px #0000001f, 0 0 0 1px #e9e6df; }
@media (max-width: 640px) { .nav nav a:not(.btn) { display: none; } .mode button { padding: .35rem .6rem; } }

/* circular reveal from the switch (View Transitions API) */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-group(root) { background: #000; }
::view-transition-old(root) { animation: recede .7s cubic-bezier(.6, 0, .2, 1) both; transform-origin: var(--vx, 50%) var(--vy, 0); }
::view-transition-new(root) { animation: reveal .7s cubic-bezier(.6, 0, .2, 1) both; }
@keyframes recede { to { transform: scale(.94); filter: blur(3px) brightness(.7); border-radius: 24px; } }
@keyframes reveal { from { clip-path: circle(0 at var(--vx, 50%) var(--vy, 0)); } to { clip-path: circle(150vmax at var(--vx, 50%) var(--vy, 0)); } }

/* the chat widget follows the theme */
:is([data-mode="produto"], [data-mode="marketing"]) .ap-launcher { background: linear-gradient(135deg, #4f46e5, #7c3aed); border-color: transparent; box-shadow: 0 16px 40px -12px #4f46e5aa; }
:is([data-mode="produto"], [data-mode="marketing"]) .ap-peek { background: #fff; border-color: #e5e2da; box-shadow: 0 20px 50px -20px #1e1b4b55; }
:is([data-mode="produto"], [data-mode="marketing"]) .ap-panel { background: #fffffff5; border-color: #e5e2da; box-shadow: 0 40px 100px -30px #1e1b4b66; }
:is([data-mode="produto"], [data-mode="marketing"]) .ap-msg.bot { background: #f5f4f0; border-color: transparent; }
:is([data-mode="produto"], [data-mode="marketing"]) .ap-chips button { background: #fff; border-color: #e5e2da; }
:is([data-mode="produto"], [data-mode="marketing"]) .ap-form textarea { background: #fff; border-color: #e5e2da; }
:is([data-mode="produto"], [data-mode="marketing"]) .ap-head button:hover { background: #0000000a; }

[data-mode="marketing"] .mode-thumb { translate: 200% 0; background: #fff; box-shadow: 0 1px 3px #0000001f, 0 0 0 1px #f1dccf; }
.term .s { color: #a5e8c8; }

/* ── marketing: warm, bold, campaign-like ── */
[data-mode="marketing"] {
  --bg: #fff8f3;
  --line: #f1dccf;
  --text: #1e1209;
  --muted: #6e5b4d;
  --accent: #e11d48;
  --accent-2: #f97316;
}
[data-mode="marketing"] .grid-bg {
  background:
    radial-gradient(50rem 28rem at 80% -10%, #fecdd3aa, transparent 60%),
    radial-gradient(40rem 26rem at 0% 15%, #fed7aa99, transparent 60%);
}
[data-mode="marketing"] h1 { font-weight: 800; letter-spacing: -.045em; }
[data-mode="marketing"] .btn.primary { background: linear-gradient(135deg, #e11d48, #f97316); box-shadow: 0 12px 30px -12px #e11d48aa; }
[data-mode="marketing"] code { color: #9f1239; background: #ffe4e6; }
[data-mode="marketing"] .card { box-shadow: 0 1px 2px #0000000a, 0 12px 32px -20px #7c2d1233; }
[data-mode="marketing"] .card::before { background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), #fb718518, transparent 45%); }
[data-mode="marketing"] .demo-chat .u { background: #ffe4e6; color: #4c0519; }
[data-mode="marketing"] .demo-chat .n { color: #c2410c; font-weight: 600; }
[data-mode="marketing"] .ap-launcher { background: linear-gradient(135deg, #e11d48, #f97316); box-shadow: 0 16px 40px -12px #e11d48aa; }
[data-mode="marketing"] .ap-msg.user { background: linear-gradient(135deg, #e11d48, #f97316); }
[data-mode="marketing"] .ap-form button { background: #e11d48; }
@media (max-width: 640px) { .mode button { padding: .35rem .5rem; } }
