/* Fontes (Geist, Bricolage Grotesque, JetBrains Mono): carregadas por <link> no <head> de cada página desde 27/10/2026. */

:root {
  /* Skin after maquina-de-influencers.vercel.app (light) and higgsfield.ai (dark, lime accent); see LEIA-ME "Visual". */
  --paper: #fafaf7;
  --paper-subtle: #f3f3ef;
  --card: #ffffff;
  --ink: #0f0f12;
  --ink-secondary: #55555d;
  --ink-muted: #6b6b73;
  --line: rgba(15, 15, 18, 0.08);
  --line-strong: rgba(15, 15, 18, 0.14);
  --accent: #dbf902;
  --accent-strong: #e6fb4d;
  --accent-ink: #1a1a1a;
  --highlight: #d40f66;
  --pink: #ff2e8a;
  --green: #15803d;
  --green-bg: #e8f5ee;
  --amber: #b45309;
  --amber-bg: #fef3c7;
  --red: #b4261a;
  --red-bg: rgba(180, 38, 26, 0.07);
  --shadow-1: 0 1px 2px rgba(15, 15, 18, 0.06);
  --shadow-2: 0 4px 12px rgba(15, 15, 18, 0.05), 0 12px 24px rgba(15, 15, 18, 0.08);
  --shadow-3: 0 8px 24px rgba(15, 15, 18, 0.08), 0 28px 64px rgba(15, 15, 18, 0.12);
  --shadow-btn: 0 12px 24px rgba(15, 15, 18, 0.22);
  --radius-card: 20px;
  --radius-ctl: 12px;
  --font-ui: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Bricolage Grotesque', 'Geist', ui-sans-serif, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --container: 1180px;
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  background: rgba(243, 242, 238, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: var(--container);
  height: 100%;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 18px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-link { font-size: 13px; font-weight: 500; color: var(--ink-secondary); transition: color 0.15s; }
.nav-link:hover, .nav-link.active { color: var(--ink); font-weight: 600; }
.topbar-right { display: flex; align-items: center; gap: 14px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn-primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-primary:hover { background: #2b2b2b; }

/* Layout */
.layout {
  max-width: var(--container);
  margin: 36px auto 68px;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: start;
}
.workspace, .result-panel { background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.workspace { padding: 28px; }
.result-panel { padding: 24px 24px 0; min-height: 480px; display: flex; flex-direction: column; }

.poster-index {
  display: block;
  margin-bottom: 28px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-secondary);
}
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.page-heading h1, .result-heading h2 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.subtitle { margin: 6px 0 0; font-size: 12.5px; color: var(--ink-secondary); }
.duration {
  flex: none;
  padding: 5px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink);
}

/* Form */
.field-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.field-label { display: block; font-size: 12px; font-weight: 600; color: var(--ink); }
.field-link { font-size: 11.5px; font-weight: 600; color: var(--ink); }
.field-link:hover { text-decoration: underline; }
.required { color: var(--red); }
.optional { margin-left: 6px; font-size: 11px; font-weight: 500; color: var(--ink-muted); }
.counter { font-family: var(--mono); font-size: 11px; color: var(--ink-muted); }
.counter.over { color: var(--red); }

.key-wrap { position: relative; margin: 8px 0 18px; }
.key-wrap input, textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  outline: none;
}
.key-wrap input { height: 42px; padding: 0 42px 0 12px; font-family: var(--mono); }
.key-wrap input:focus, textarea:focus { border-color: var(--ink); background: var(--card); }
.key-wrap .icon-button { position: absolute; top: 4px; right: 4px; }
.key-balance { margin: -12px 0 18px; font-size: 11.5px; color: var(--ink-muted); }
.key-balance.error { color: var(--red); }
textarea { display: block; min-height: 110px; margin-top: 8px; padding: 12px; resize: vertical; }

.icon-button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-secondary);
  cursor: pointer;
}
.icon-button:hover { background: var(--paper-subtle); color: var(--ink); }
.icon-button svg, .secondary-button svg, .upload-icon svg, .empty-icon svg {
  width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.small-icon { width: 26px; height: 26px; }
.small-icon svg { width: 14px; height: 14px; }

.ratio-row { margin-top: 18px; }
.seconds-option { min-width: 56px; }
.field-hint { margin: 8px 0 0; font-size: 11.5px; line-height: 1.5; color: var(--ink-muted); }
.segmented { display: flex; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.ratio-option, .seconds-option {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.ratio-option.active, .seconds-option.active { background: var(--ink); color: var(--paper); }
.ratio-icon { display: inline-block; border: 1.5px solid currentColor; border-radius: 2px; }
.ratio-icon.landscape { width: 14px; height: 9px; }
.ratio-icon.portrait { width: 9px; height: 14px; }

.image-title { margin: 18px 0 8px; }
.upload-zone {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 12px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: var(--paper);
  cursor: pointer;
}
.upload-zone:hover, .upload-zone.dragover { border-color: var(--ink); }
.upload-zone input { display: none; }
.upload-icon { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 6px; background: var(--card); }
.upload-copy { display: flex; flex-direction: column; gap: 2px; font-size: 12px; }
.upload-copy span { font-size: 11px; color: var(--ink-muted); }
.upload-browse { margin-left: auto; padding: 5px 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--card); font-size: 11px; font-weight: 600; white-space: nowrap; }

.image-list { display: grid; gap: 6px; margin-top: 8px; }
.image-list:empty { display: none; }
.image-item { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; }
.image-item img { width: 36px; height: 36px; border-radius: 4px; object-fit: cover; }
.image-meta { display: grid; gap: 2px; min-width: 0; }
.image-name { overflow: hidden; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.image-size { font-size: 11px; color: var(--ink-muted); }
.remove-image { margin-left: auto; font-size: 18px; }

.form-error, .job-error {
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px solid #f5c2c2;
  border-radius: 7px;
  background: var(--red-bg);
  color: var(--red);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.primary-button {
  width: 100%;
  height: 42px;
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.primary-button:hover { background: #2b2b2b; }
.primary-button:disabled { opacity: 0.6; cursor: progress; }

/* Jobs */
.result-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.job-total { font-family: var(--mono); font-size: 11.5px; color: var(--ink-muted); text-align: right; }
.jobs-list { display: grid; gap: 10px; margin: 16px 0; max-height: 70vh; overflow: auto; }
.jobs-list:empty { display: none; }
.job-card { padding: 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.job-card-heading { display: flex; justify-content: space-between; gap: 8px; }
.job-card-title { display: flex; gap: 8px; min-width: 0; }
.job-number { flex: none; font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--ink-muted); line-height: 1.7; }
.job-prompt { font-size: 12.5px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.job-metrics { display: flex; gap: 16px; margin: 8px 0 0 20px; font-size: 11px; color: var(--ink-muted); }
.job-metrics strong { color: var(--ink-secondary); font-weight: 600; }
.job-video-wrap { margin: 10px 0 0 20px; overflow: hidden; border-radius: 6px; background: #000; aspect-ratio: 16 / 9; }
.job-video-wrap video, .job-video-wrap img { display: block; width: 100%; height: 100%; object-fit: contain; }
.job-id-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 8px 0 0 20px; padding-top: 6px; border-top: 1px solid var(--line); }
.job-id-value { font-family: var(--mono); font-size: 11px; color: var(--ink-muted); overflow-wrap: anywhere; }
.job-card .job-error { margin-left: 20px; }
.job-actions { display: flex; gap: 6px; margin: 8px 0 0 20px; }
.job-actions:not(:has(button:not([hidden]))) { display: none; }
.secondary-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-size: 11.5px;
  cursor: pointer;
}
.secondary-button svg { width: 14px; height: 14px; }
.secondary-button:hover { border-color: var(--ink); }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--paper-subtle);
  color: var(--ink-secondary);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-badge.done { background: var(--green-bg); color: var(--green); }
.status-badge.queued, .status-badge.generating, .status-badge.sending, .status-badge.checking { background: var(--amber-bg); color: var(--amber); }
.status-badge.failed, .status-badge.connection { background: var(--red-bg); color: var(--red); }
.status-badge.queued .status-dot, .status-badge.generating .status-dot, .status-badge.sending .status-dot { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.25; } }

.empty-state { display: flex; flex-direction: column; align-items: center; padding: 72px 20px; text-align: center; color: var(--ink-muted); }
.empty-state strong { font-size: 13px; color: var(--ink); }
.empty-state span { margin-top: 4px; font-size: 12px; }
.empty-icon { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 12px; border-radius: 8px; background: var(--paper); }
.panel-footer { display: flex; align-items: center; gap: 7px; height: 42px; margin-top: auto; border-top: 1px solid var(--line); font-size: 11px; color: var(--ink-muted); }
.footer-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.footer-dot.offline { background: var(--red); }

/* Shared page pieces */
.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.mono, code, pre { font-family: var(--mono); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink); background: rgba(0, 0, 0, 0.03); }
.btn-lg { height: 44px; padding: 0 22px; font-size: 13.5px; }
.btn-sm { height: 30px; padding: 0 12px; font-size: 11.5px; }
.btn svg { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.btn:disabled { opacity: 0.6; cursor: progress; }
code.inline { padding: 1px 5px; border-radius: 4px; background: var(--paper-subtle); font-size: 0.92em; }

.site-footer { border-top: 1px solid var(--line); padding: 28px 0 36px; color: var(--ink-muted); font-size: 12px; }
.site-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11.5px; }
.site-footer-brand img { height: 14px; width: auto; }
.site-footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer-links a:hover { color: var(--ink); }

/* Dark code frames (home + docs) */
.code-tabs { overflow: hidden; border: 1px solid #262626; border-radius: 12px; background: #121212; color: #f3f2ee; }
.code-tabs-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-bottom: 1px solid #262626; background: #1a1a1a; }
.code-tab-buttons { display: flex; gap: 6px; flex-wrap: wrap; }
.code-tab-btn { padding: 5px 12px; border: 0; border-radius: 999px; background: transparent; color: #8a8882; font-family: var(--mono); font-size: 11.5px; font-weight: 600; cursor: pointer; }
.code-tab-btn:hover { color: #f3f2ee; }
.code-tab-btn.active { background: #f3f2ee; color: #111; }
.code-label { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: #8a8882; }
.copy-code-btn { padding: 4px 10px; border: 1px solid #333; border-radius: 999px; background: #222; color: #f3f2ee; font-family: var(--mono); font-size: 11px; cursor: pointer; }
.copy-code-btn:hover { border-color: #666; }
.code-block { margin: 0; padding: 20px; overflow-x: auto; color: #e5e4e0; font-size: 12.5px; line-height: 1.65; white-space: pre; }
.code-block .c { color: #8a8882; }

/* ===== Home ===== */
.hero-poster { position: relative; padding: 56px 0 72px; border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 32px; align-items: center; }
.poster-headline { margin: 0 0 24px; font-size: clamp(52px, 6.2vw, 82px); font-weight: 800; line-height: 0.96; letter-spacing: -0.04em; text-transform: uppercase; }
.poster-rule { width: 38px; height: 3px; margin: 0 0 16px; background: var(--ink); }
.poster-subline { margin: 0 0 22px; font-size: 18px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.poster-subline .motion-word { display: inline-block; padding: 0 3px; background: var(--paper-subtle); text-shadow: 3px 0 0 rgba(17, 17, 17, 0.25), -3px 0 0 rgba(17, 17, 17, 0.15); }
.poster-desc { max-width: 430px; margin: 0 0 30px; font-size: 14.5px; line-height: 1.65; color: var(--ink-secondary); }
.poster-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-poster::after { content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0.055; mix-blend-mode: multiply; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); background-size: 180px; }
.art-stage { position: relative; height: 470px; display: flex; align-items: center; justify-content: center; }
.art-fallback { position: absolute; inset: 0; }
.art-video { display: block; width: auto; max-width: 100%; height: 100%; object-fit: contain; filter: grayscale(1) contrast(1.08); mix-blend-mode: multiply; pointer-events: none; }
.art-stage.has-video .art-fallback { display: none; }
.frame { position: absolute; overflow: hidden; border: 1px solid #1d1d1d; background: #111; }
.frame::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 3px); }
.frame-a { top: 6%; left: 24%; width: 46%; height: 62%; background: radial-gradient(circle at 50% 38%, #d9d7d0 0 18%, #6f6d68 34%, #191919 62%); }
.frame-b { top: 0; left: 52%; width: 22%; height: 18%; background: linear-gradient(160deg, #c8c5bc, #3a3936 70%); }
.frame-c { top: 30%; left: 10%; width: 24%; height: 20%; background: linear-gradient(200deg, #eae8e2, #8a8882 45%, #2b2b2b); }
.frame-d { top: 52%; left: 56%; width: 32%; height: 40%; background: radial-gradient(ellipse at 40% 30%, #b9b6ad 0 14%, #4a4946 40%, #0f0f0f 75%); }
.frame-e { top: 72%; left: 30%; width: 18%; height: 20%; background: linear-gradient(90deg, #111 0 30%, #dfddd7 30% 34%, #111 34%); }
.frame-f { top: 16%; left: 76%; width: 12%; height: 18%; background: linear-gradient(180deg, #f3f2ee, #8a8882); }
.frame-play { position: absolute; top: 31%; left: 41%; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: rgba(243, 242, 238, 0.92); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); z-index: 2; }
.frame-play svg { width: 18px; height: 18px; margin-left: 3px; fill: #111; }
.scrub { position: absolute; left: 24%; top: 69.5%; width: 46%; height: 3px; background: #dfddd7; z-index: 2; }
.scrub::before { content: ""; position: absolute; inset: 0 62% 0 0; background: #111; }
.code-pill { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); font-family: var(--mono); font-size: 11.5px; white-space: nowrap; }
.code-pill.dark { background: #141414; color: #f3f2ee; }
.code-pill.light { background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(6px); color: var(--ink); }
.code-pill-1 { top: 13%; left: 0; }
.code-pill-2 { top: 50%; right: 0; }
.code-pill-3 { bottom: 12%; left: 4%; }

.home-section { padding: 64px 0 72px; }
.section-title { margin: 0; font-size: clamp(28px, 3.2vw, 38px); font-weight: 800; line-height: 1.1; letter-spacing: -0.035em; text-transform: uppercase; }
.section-lead { max-width: 560px; margin: 10px 0 32px; font-size: 14.5px; color: var(--ink-secondary); }
.quickstart { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.terminal-split { display: grid; grid-template-columns: 370px 1fr; background: #121212; color: #f3f2ee; }
.terminal-spec { display: flex; flex-direction: column; gap: 18px; padding: 24px; border-right: 1px solid #262626; background: #161616; }
.terminal-spec-group { display: grid; gap: 6px; }
.terminal-spec-val { padding: 8px 11px; border: 1px solid #262626; border-radius: 6px; background: #0e0e0e; font-family: var(--mono); font-size: 12px; word-break: break-all; }
.terminal-split .code-tabs { border: 0; border-radius: 0; min-width: 0; }
.steps-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.step-card { padding: 22px 16px 24px; border-right: 1px solid var(--line); }
.step-card:last-child { border-right: 0; }
.step-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 26px; }
.step-num { font-family: var(--mono); font-size: 11.5px; font-weight: 700; }
.step-tag { padding: 3px 7px; border-radius: 4px; background: var(--paper-subtle); font-family: var(--mono); font-size: 10.5px; white-space: nowrap; }
.step-card h3 { margin: 0 0 6px; font-size: 15px; font-weight: 700; }
.step-card p { margin: 0; font-size: 12px; color: var(--ink-secondary); }
.home-cta { margin-top: 28px; }

/* ===== Docs ===== */
.docs-layout { max-width: var(--container); margin: 40px auto 80px; padding: 0 28px; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start; }
.docs-layout > main { min-width: 0; }
.docs-sidebar { position: sticky; top: 96px; }
.docs-sidebar-title { display: block; margin-bottom: 12px; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); }
.docs-toc { display: flex; flex-direction: column; margin-bottom: 24px; border-left: 1px solid var(--line); }
.docs-toc a { margin-left: -1px; padding: 7px 0 7px 14px; border-left: 2px solid transparent; font-size: 13px; color: var(--ink-secondary); }
.docs-toc a:hover { color: var(--ink); }
.docs-toc a.active { border-left-color: var(--ink); color: var(--ink); font-weight: 600; }
.docs-sidebar .btn { width: 100%; justify-content: space-between; margin-top: 8px; }
.docs-section { padding: 0 0 44px; margin-bottom: 44px; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.docs-section:last-child { border-bottom: 0; }
.docs-section .poster-index { margin-bottom: 18px; }
.docs-section h1 { margin: 0 0 14px; font-size: 34px; font-weight: 800; letter-spacing: -0.03em; }
.docs-section h2 { margin: 0 0 14px; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.docs-section h3 { margin: 26px 0 10px; font-size: 13px; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; }
.docs-section p, .docs-section li { color: var(--ink-secondary); }
.docs-section p strong, .docs-section li strong { color: var(--ink); }
.docs-section ul { padding-left: 18px; }
.docs-section li { margin-bottom: 8px; }
.docs-section .code-tabs { margin: 14px 0; }
.ai-card { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; margin: 0 0 36px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); box-shadow: 0 10px 30px rgba(17, 17, 17, 0.05); }
/* Two columns while they fit; the actions drop below the text when the card gets narrow (panel column, tablets). */
.ai-card-text { flex: 1 1 340px; min-width: 0; }
.ai-card-actions { flex: 1 1 300px; min-width: 0; }
.ai-card .poster-index { margin-bottom: 8px; }
.ai-logos { display: flex; flex-wrap: wrap; gap: 8px; }
.ai-logo-btn { flex: 1 1 150px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 150px; height: 40px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--card); color: var(--ink); font: inherit; font-size: 12.5px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: border-color 0.15s, transform 0.15s; }
.ai-logo-btn:hover { border-color: var(--ink); transform: translateY(-1px); }
.ai-logo { width: 20px; height: 20px; flex: none; border-radius: 5px; }
:root[data-theme="dark"] .ai-card { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }
.ai-card-text strong { display: block; margin-bottom: 4px; font-size: 14px; }
.ai-card-text p { margin: 0 0 12px; font-size: 12.5px; color: var(--ink-secondary); }
.ai-link { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--paper); }
.ai-link code { flex: 1; min-width: 0; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.ai-card-actions { display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.ai-card-actions .btn { width: 100%; height: 40px; }
@media (max-width: 640px) { .ai-card { padding: 16px; } .ai-logo-btn { flex-basis: 100%; } }
.spec-list { border-top: 1px solid var(--line); }
.spec-row { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.spec-row span:first-child { font-family: var(--mono); font-size: 11px; color: var(--ink-muted); }
.spec-row strong { font-size: 13px; }
.spec-row code { padding: 3px 8px; border-radius: 4px; background: var(--paper-subtle); font-size: 11px; overflow-wrap: anywhere; }
.endpoint { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; padding: 8px 12px 8px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); font-family: var(--mono); font-size: 12.5px; overflow-wrap: anywhere; }
.method { flex: none; padding: 2px 7px; border-radius: 4px; background: var(--ink); color: var(--paper); font-size: 11px; font-weight: 700; }
.method.get { background: var(--green-bg); color: var(--green); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.data-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.data-table th { padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--paper); font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.05em; text-align: left; text-transform: uppercase; color: var(--ink-muted); white-space: nowrap; }
.data-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-secondary); }
.data-table tr:last-child td { border-bottom: 0; }
.data-table td:first-child code { color: var(--ink); white-space: nowrap; }
.req { padding: 2px 6px; border-radius: 4px; background: var(--ink); color: var(--paper); font-size: 10.5px; font-weight: 600; white-space: nowrap; }
.req.opt { background: var(--paper-subtle); color: var(--ink-muted); }
.note { padding: 12px 14px; border: 1px solid var(--line); border-left: 3px solid var(--ink); border-radius: 6px; background: var(--card); font-size: 13px; color: var(--ink-secondary); }

/* ===== Check key ===== */
.page-shell { max-width: var(--container); margin: 36px auto 72px; padding: 0 28px; }
.check-hero-card { margin-bottom: 20px; padding: 28px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.check-title { margin: 0 0 6px; font-family: 'Space Grotesk', sans-serif; font-size: 28px; font-weight: 700; letter-spacing: -0.03em; text-transform: uppercase; }
.check-lead { margin: 0; font-size: 13.5px; color: var(--ink-secondary); }
.check-search-row { display: flex; gap: 10px; margin-top: 18px; }
.key-input-wrap { position: relative; flex: 1; min-width: 0; }
.key-input-wrap input { width: 100%; height: 44px; padding: 0 84px 0 14px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--paper); color: var(--ink); font-family: var(--mono); font-size: 13px; outline: none; }
.key-input-wrap input:focus { border-color: var(--ink); background: var(--card); }
.key-input-actions { position: absolute; top: 5px; right: 5px; display: flex; gap: 2px; }

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat-card { display: flex; flex-direction: column; justify-content: space-between; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.stat-card.primary { border-color: #3a3d40; background: linear-gradient(145deg, #2c2e30, #212325); box-shadow: 0 8px 24px rgba(17, 17, 17, 0.08); }
.stat-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.stat-label { font-family: var(--mono); font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--ink-muted); }
.stat-value { font-size: 28px; font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; overflow-wrap: anywhere; }
.stat-sub { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--ink-secondary); }
.stat-card.primary .stat-label, .stat-card.primary .stat-sub { color: #a6a49d; }
.stat-card.primary .stat-value, .stat-card.primary .stat-sub strong { color: #f3f2ee; }
.stat-card.primary .stat-sub { border-top-color: rgba(243, 242, 238, 0.12); }
.stat-card.primary .meta-tag { border-color: rgba(243, 242, 238, 0.18); background: rgba(243, 242, 238, 0.1); color: #e5e3dc; }
.meta-tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); font-family: var(--mono); font-size: 10.5px; color: var(--ink-secondary); white-space: nowrap; }
.meta-tag[data-state="low"] { border-color: #f3d58a; background: var(--amber-bg); color: var(--amber); }
.meta-tag[data-state="disabled"] { border-color: #f5c2c2; background: var(--red-bg); color: var(--red); }

.key-meta-card { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 18px; padding: 16px 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.key-meta-items { display: flex; flex-wrap: wrap; gap: 28px; }
.key-meta-item span { display: block; margin-bottom: 2px; font-size: 11px; color: var(--ink-muted); }
.key-meta-item strong { font-size: 13px; }
.quota-wrap { flex: 1; min-width: 220px; max-width: 300px; }
.quota-labels { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 11.5px; color: var(--ink-muted); }
.quota-labels strong { color: var(--ink); }
.quota-track { height: 6px; overflow: hidden; border-radius: 999px; background: var(--paper-subtle); }
.quota-fill { width: 0; height: 100%; border-radius: 999px; background: var(--ink); }
.quota-fill.low { background: var(--amber); }

.requests-card { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.requests-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.filter-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.filter-tab { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-secondary); font-size: 12px; font-weight: 600; cursor: pointer; }
.filter-tab.active { background: var(--ink); color: var(--paper); }
.filter-count { padding: 0 6px; border-radius: 999px; background: rgba(0, 0, 0, 0.06); font-family: var(--mono); font-size: 10.5px; }
.filter-tab.active .filter-count { background: rgba(255, 255, 255, 0.18); }
.toolbar-controls { display: flex; flex-wrap: wrap; gap: 8px; }
.search-input, .select-input { height: 34px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--paper); color: var(--ink); font: inherit; font-size: 12.5px; outline: none; }
.search-input { width: 200px; }
.search-input:focus, .select-input:focus { border-color: var(--ink); background: var(--card); }
.requests-card .table-wrap { border: 0; border-radius: 0; }
.requests-card .btn-sm { height: 34px; }
.job-id-cell code { font-size: 12px; font-weight: 600; }
.cell-sub { font-size: 11.5px; color: var(--ink-muted); }
.copy-mini { height: 22px; margin-left: 6px; padding: 0 6px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--card); font-size: 10.5px; cursor: pointer; }
.prompt-text { display: -webkit-box; max-width: 380px; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: var(--ink); font-weight: 500; }
.prompt-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.bill-amount { display: block; font-family: var(--mono); font-size: 12px; font-weight: 700; }
.bill-amount.charged { color: var(--ink); }
.bill-amount.pending { color: var(--amber); }
.bill-amount.refunded { color: var(--green); }
.bill-note { display: block; margin-top: 2px; font-size: 11px; color: var(--ink-muted); }
.error-reason { max-width: 260px; margin-left: auto; font-size: 11.5px; color: var(--red); text-align: right; overflow-wrap: anywhere; }
.result-cell { text-align: right; }
.result-cell .btn { margin-top: 6px; }
.empty-row td { padding: 48px 20px; text-align: center; color: var(--ink-muted); }

.modal-backdrop { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; background: rgba(17, 17, 17, 0.72); }
.modal-card { width: min(640px, 100%); max-height: calc(100vh - 32px); overflow: auto; border-radius: 12px; background: var(--card); box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25); }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 20px 0; }
.modal-header h3 { margin: 0 0 2px; font-size: 16px; }
.modal-body { padding: 16px 20px 20px; }
.modal-video { overflow: hidden; border-radius: 8px; background: #000; }
.modal-video video, .modal-video img { display: block; width: 100%; max-height: 60vh; object-fit: contain; }
.modal-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; font-size: 12px; }
.modal-meta span { display: block; color: var(--ink-muted); }
.modal-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; margin-top: 24px; }
  .hero-grid { grid-template-columns: 1fr; }
  .art-stage { height: 380px; }
  .terminal-split { grid-template-columns: 1fr; }
  .terminal-spec { border-right: 0; border-bottom: 1px solid #262626; }
  .steps-grid, .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step-card:nth-child(2) { border-right: 0; }
  .step-card:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .docs-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .docs-sidebar { position: static; }
  .docs-toc { display: none; }
  .docs-sidebar-title { display: none; }
  .docs-sidebar { display: flex; gap: 8px; }
  .docs-sidebar .btn { margin-top: 0; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .topbar-inner, .layout, .container, .page-shell, .docs-layout { padding: 0 16px; }
  .topbar-right .btn { padding: 0 12px; }
  .workspace { padding: 20px; }
  .result-panel { padding: 20px 20px 0; }
  .ratio-row { flex-wrap: wrap; }
  .upload-browse { display: none; }
  .hero-poster { padding: 36px 0 48px; }
  .art-stage { height: 300px; }
  .code-pill { font-size: 10.5px; padding: 6px 10px; }
  .steps-grid, .stats-grid { grid-template-columns: 1fr; }
  .step-card { border-right: 0; border-bottom: 1px solid var(--line); }
  .step-card:last-child { border-bottom: 0; }
  .docs-sidebar { flex-direction: column; }
  .spec-row { grid-template-columns: 44px 1fr; }
  .spec-row code { grid-column: 2; justify-self: start; }
  .check-hero-card { padding: 20px; }
  .check-search-row { flex-direction: column; }
  .search-input { width: 100%; }
  .toolbar-controls { width: 100%; }
  .modal-meta { grid-template-columns: 1fr; }
}

/* ===== Theme toggle (header) and chooser (Configurações) ===== */
.theme-toggle { display: inline-grid; place-items: center; width: 36px; height: 36px; flex: none; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--ink-secondary); cursor: pointer; transition: color 0.15s, border-color 0.15s; }
.theme-toggle:hover { color: var(--ink); border-color: var(--ink); }
.theme-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .icon-sun { display: none; }
.theme-choice { display: inline-flex; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.theme-choice button { height: 30px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-secondary); font-size: 12px; font-weight: 600; cursor: pointer; }
.theme-choice button:hover { color: var(--ink); }
.theme-choice button.active { background: var(--ink); color: var(--paper); }

/* ===== Dark theme: the same tokens, inverted. theme.js sets data-theme on <html>. ===== */
:root[data-theme="dark"] {
  --paper: #0a0a0b;
  --paper-subtle: #17191c;
  --card: #131517;
  --ink: #f0f2f2;
  --ink-secondary: #a8aeaf;
  --ink-muted: #7d8486;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.13);
  --highlight: #ff5aa5;
  --pink: #ff2e9a;
  --green: #4ade80;
  --green-bg: #132a1c;
  --amber: #fbbf24;
  --amber-bg: #2e2510;
  --red: #ff8d78;
  --red-bg: rgba(255, 141, 120, 0.1);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-2: 0 4px 12px rgba(0, 0, 0, 0.3), 0 16px 40px rgba(0, 0, 0, 0.35);
  --shadow-3: 0 8px 24px rgba(0, 0, 0, 0.4), 0 32px 88px rgba(0, 0, 0, 0.52);
  --shadow-btn: 0 12px 24px rgba(0, 0, 0, 0.45);
}
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .brand-logo, :root[data-theme="dark"] .site-footer-brand img, :root[data-theme="dark"] .login-brand-mobile img { filter: invert(1) hue-rotate(180deg); }
:root[data-theme="dark"] .topbar { background: rgba(20, 21, 22, 0.9); }
:root[data-theme="dark"] .btn-primary:hover, :root[data-theme="dark"] .primary-button:hover { background: #dcdad4; }
:root[data-theme="dark"] .btn-secondary:hover { background: rgba(255, 255, 255, 0.05); }
:root[data-theme="dark"] .filter-count { background: rgba(255, 255, 255, 0.08); }
:root[data-theme="dark"] .filter-tab.active .filter-count { background: rgba(0, 0, 0, 0.16); }
:root[data-theme="dark"] .modal-backdrop { background: rgba(0, 0, 0, 0.68); }
:root[data-theme="dark"] .poster-subline .motion-word { text-shadow: 3px 0 0 rgba(243, 242, 238, 0.25), -3px 0 0 rgba(243, 242, 238, 0.15); }
:root[data-theme="dark"] .hero-poster::after { opacity: 0.04; mix-blend-mode: screen; }
:root[data-theme="dark"] .code-pill.light { background: rgba(32, 33, 36, 0.94); }
:root[data-theme="dark"] .code-pill { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4); }
:root[data-theme="dark"] .stat-card.primary { border-color: #4b4e52; background: linear-gradient(145deg, #303236, #222427); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3); }
:root[data-theme="dark"] .plan-card.highlighted { border-color: #4b4e52; background: linear-gradient(145deg, #303236, #222427); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35); }
:root[data-theme="dark"] .code-tabs, :root[data-theme="dark"] .terminal-split, :root[data-theme="dark"] .app-code { border-color: #2b2c30; }
:root[data-theme="dark"] .form-error, :root[data-theme="dark"] .login-message.error, :root[data-theme="dark"] .btn-danger, :root[data-theme="dark"] .meta-tag[data-state="disabled"] { border-color: #5a2626; }
:root[data-theme="dark"] .auth-ok, :root[data-theme="dark"] .login-message.ok, :root[data-theme="dark"] .new-key { border-color: #1f4d31; }
:root[data-theme="dark"] .meta-tag[data-state="low"], :root[data-theme="dark"] .app-empty-balance { border-color: #5a4616; }
:root[data-theme="dark"] .auth-tabs button.active { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--line-strong); }
:root[data-theme="dark"] .login-input input:focus { box-shadow: 0 0 0 3px rgba(243, 242, 238, 0.12); }
:root[data-theme="dark"] .login-submit.loading .login-submit-icon { border-color: rgba(0, 0, 0, 0.25); border-top-color: var(--paper); }
:root[data-theme="dark"] .app-shortcut:hover { border-color: var(--line-strong); }
:root[data-theme="dark"] .app-nav-link.active .app-nav-count { background: rgba(0, 0, 0, 0.14); color: var(--paper); }
:root[data-theme="dark"] .frame-play { background: rgba(243, 242, 238, 0.92); }

/* ===== Studio form: duration slider, ratio grid, reference mode ===== */
.studio-row { margin-top: 18px; }
.text-input { width: 100%; height: 40px; margin-top: 8px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-ctl, 10px); background: var(--paper); color: var(--ink); font: inherit; font-size: 13px; outline: none; }
.text-input:focus { border-color: var(--ink); background: var(--card); }
.range { --pct: 20%; width: 100%; height: 22px; margin: 6px 0 0; appearance: none; background: transparent; cursor: pointer; }
.range::-webkit-slider-runnable-track { height: 4px; border-radius: 999px; background: linear-gradient(90deg, var(--ink) var(--pct), var(--line-strong) var(--pct)); }
.range::-moz-range-track { height: 4px; border-radius: 999px; background: var(--line-strong); }
.range::-moz-range-progress { height: 4px; border-radius: 999px; background: var(--ink); }
.range::-webkit-slider-thumb { appearance: none; width: 18px; height: 18px; margin-top: -7px; border: 2px solid var(--card); border-radius: 999px; background: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25); }
.range::-moz-range-thumb { width: 14px; height: 14px; border: 2px solid var(--card); border-radius: 999px; background: var(--ink); }
.range-ticks { display: flex; justify-content: space-between; margin-top: 2px; font-family: var(--mono); font-size: 10px; color: var(--ink-muted); }
.ratio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; margin-top: 8px; }
.ratio-card { display: grid; justify-items: center; gap: 4px; padding: 10px 6px 8px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--paper); color: var(--ink-secondary); font: inherit; font-size: 11px; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.ratio-card strong { font-size: 12.5px; color: var(--ink); }
.ratio-card:hover { border-color: var(--ink); }
.ratio-card.active { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.ratio-card.active strong { color: var(--paper); }
.ratio-shape { display: block; height: 22px; max-width: 48px; border: 1.5px solid currentColor; border-radius: 3px; }
.ratio-card.active .ratio-shape { border-color: var(--paper); }
.ref-mode .ref-option { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-secondary); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.ref-mode .ref-option svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ref-mode .ref-option.active { background: var(--ink); color: var(--paper); }
.video-item video { width: 96px; height: 54px; flex: none; border-radius: 6px; background: #000; object-fit: cover; }
.upload-progress { display: grid; gap: 6px; margin-top: 10px; }

/* ===== Skin: Máquina de Influencers / Higgsfield look on the same structure (tokens above; overrides below) ===== */
.topbar { background: rgba(250, 250, 247, 0.78); border-bottom-color: var(--line); backdrop-filter: blur(14px); }
.nav-link { font-size: 14px; font-weight: 500; }
.nav-link:hover, .nav-link.active { font-weight: 600; }
.btn { height: 40px; padding: 0 18px; font-size: 13.5px; font-weight: 700; transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease; }
.btn-primary { box-shadow: var(--shadow-btn); }
.btn-primary:hover { background: #26262b; transform: translateY(-1px); }
.btn-secondary { border-color: var(--line-strong); background: transparent; }
.btn-secondary:hover { background: var(--paper-subtle); border-color: var(--line-strong); }
.btn-lg { height: 48px; padding: 0 28px; font-size: 15px; }
.btn-sm { height: 32px; padding: 0 14px; font-size: 12px; }
.primary-button { height: 46px; font-size: 14px; font-weight: 700; box-shadow: var(--shadow-btn); }
.primary-button:hover { background: #26262b; }
.secondary-button, .upload-browse, .copy-mini, .account-btn, .ai-link, .mcp-tab, .usage-totals span, .theme-toggle { border-color: var(--line-strong); }
.secondary-button { font-weight: 600; }
.workspace, .result-panel, .stat-card, .key-meta-card, .requests-card, .check-hero-card, .quickstart, .app-card, .app-shortcut, .ai-card, .note { border-radius: var(--radius-card); }
.modal-card { border-radius: 24px; box-shadow: var(--shadow-3); }
.table-wrap { border-radius: 16px; }
.key-wrap input, textarea, .search-input, .select-input, .key-input-wrap input, .upload-zone, .ratio-card, .image-item, .job-card, .endpoint { border-radius: var(--radius-ctl); }
.key-wrap input:focus, textarea:focus, .search-input:focus, .select-input:focus, .key-input-wrap input:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(15, 15, 18, 0.08); }
.job-card { background: var(--card); box-shadow: var(--shadow-1); }
.status-badge { font-family: var(--font-ui); font-size: 11.5px; font-weight: 600; }
.status-badge.done { background: rgba(219, 249, 2, 0.35); color: #3f5a00; }
.poster-index { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.page-heading h1, .result-heading h2, .docs-section h1, .docs-section h2, .step-card h3, .app-card h2, .modal-header h3 { font-family: var(--font-display); letter-spacing: -0.03em; }
.poster-headline, .section-title, .check-title, .docs-section h1 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.05em; text-transform: none; }
.poster-headline { font-size: clamp(48px, 6vw, 80px); line-height: 0.98; }
.poster-rule { background: var(--pink); border-radius: 999px; }
.poster-subline { text-transform: none; letter-spacing: -0.02em; font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.poster-subline .motion-word { padding: 0; background: none; color: var(--highlight); text-shadow: none; }
.poster-desc { font-size: 16px; line-height: 1.6; }
.hero-poster { border-bottom-color: var(--line); }
.hero-poster::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background:
  radial-gradient(60% 55% at 50% -5%, rgba(255, 46, 138, 0.16), transparent 70%),
  linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 100% 100%, 44px 44px, 44px 44px; opacity: 0.9; mask-image: linear-gradient(180deg, #000 55%, transparent); }
.hero-poster::after { opacity: 0.035; }
.hero-poster > .container { position: relative; z-index: 1; }
.section-title { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.05; }
.section-lead { font-size: 15px; }
.code-tabs { border-radius: 16px; border-color: rgba(255, 255, 255, 0.08); background: #0f1113; }
.code-tabs-header { background: #16181b; border-bottom-color: rgba(255, 255, 255, 0.08); }
.code-tab-btn.active { background: var(--accent); color: var(--accent-ink); }
.terminal-split { background: #0f1113; }
.terminal-spec { background: #131517; border-right-color: rgba(255, 255, 255, 0.08); }
.terminal-spec-val { border-color: rgba(255, 255, 255, 0.08); background: #0a0a0b; }
.quickstart { overflow: hidden; }
.step-tag { border-radius: 999px; }
.code-pill.dark { background: #0f0f12; }
.frame { border-radius: 10px; }
.stat-card.primary { border-color: #0f0f12; background: #0f0f12; box-shadow: var(--shadow-2); }
.stat-card.primary .stat-value, .stat-card.primary .stat-sub strong { color: #fff; }
.stat-card.primary .stat-value { color: var(--accent); }
.stat-card.primary .stat-label, .stat-card.primary .stat-sub { color: #a8aeaf; }
.stat-card.primary .stat-sub { border-top-color: rgba(255, 255, 255, 0.12); }
.stat-card.primary .meta-tag { border-color: rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.08); color: #f0f2f2; }
.stat-value { font-family: var(--font-display); letter-spacing: -0.04em; }
.meta-tag { border-radius: 999px; }
.quota-fill { background: var(--ink); }
.filter-tabs, .segmented, .theme-choice { background: var(--paper-subtle); border-color: var(--line); }
.filter-tab, .ratio-option, .seconds-option, .theme-choice button { font-weight: 600; }
.method { border-radius: 999px; }
.method.get { background: rgba(219, 249, 2, 0.4); color: #3f5a00; }
.req { border-radius: 999px; }
.note { border-left-width: 1px; background: var(--paper-subtle); }
.data-table th { font-family: var(--font-ui); font-size: 11px; letter-spacing: 0.06em; }
.ai-card { box-shadow: var(--shadow-2); }
.ai-logo-btn { border-radius: 14px; }
.ai-link { background: var(--paper-subtle); }
.footer-dot { background: #65a30d; }
.site-footer { border-top-color: var(--line); }
.theme-toggle { width: 40px; height: 40px; background: var(--paper-subtle); border-color: var(--line); }
.form-error, .job-error { border-radius: var(--radius-ctl); border-color: rgba(180, 38, 26, 0.25); }
.empty-icon { border-radius: 14px; background: var(--paper-subtle); }
.upload-icon { border-radius: 12px; }
.range::-webkit-slider-thumb { background: var(--ink); }
.ratio-card.active { box-shadow: var(--shadow-1); }
/* Dark theme: Higgsfield-style lime primary on near-black surfaces. */
:root[data-theme="dark"] .topbar { background: rgba(10, 10, 11, 0.78); }
:root[data-theme="dark"] .btn-primary, :root[data-theme="dark"] .primary-button, :root[data-theme="dark"] .login-submit.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 12px 24px rgba(219, 249, 2, 0.12); }
:root[data-theme="dark"] .btn-primary:hover, :root[data-theme="dark"] .primary-button:hover { background: var(--accent-strong); }
:root[data-theme="dark"] .btn-secondary:hover { background: rgba(255, 255, 255, 0.06); }
:root[data-theme="dark"] .key-wrap input:focus, :root[data-theme="dark"] textarea:focus, :root[data-theme="dark"] .search-input:focus, :root[data-theme="dark"] .select-input:focus, :root[data-theme="dark"] .key-input-wrap input:focus { box-shadow: 0 0 0 3px rgba(219, 249, 2, 0.18); border-color: var(--accent); }
:root[data-theme="dark"] .stat-card.primary { border-color: rgba(255, 255, 255, 0.1); background: #17191c; box-shadow: var(--shadow-2); }
:root[data-theme="dark"] .status-badge.done, :root[data-theme="dark"] .method.get { background: rgba(219, 249, 2, 0.14); color: var(--accent); }
:root[data-theme="dark"] .filter-tab.active, :root[data-theme="dark"] .ratio-option.active, :root[data-theme="dark"] .seconds-option.active, :root[data-theme="dark"] .theme-choice button.active, :root[data-theme="dark"] .ratio-card.active, :root[data-theme="dark"] .ref-mode .ref-option.active, :root[data-theme="dark"] .mcp-tab.active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
:root[data-theme="dark"] .ratio-card.active strong, :root[data-theme="dark"] .ratio-card.active .ratio-shape { color: var(--accent-ink); border-color: var(--accent-ink); }
:root[data-theme="dark"] .quota-fill { background: var(--accent); }
:root[data-theme="dark"] .hero-poster::before { background: radial-gradient(60% 55% at 50% -5%, rgba(255, 46, 154, 0.2), transparent 70%), linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 100% 100%, 44px 44px, 44px 44px; }
:root[data-theme="dark"] .code-pill.light { background: rgba(23, 25, 28, 0.94); }
:root[data-theme="dark"] .job-card { background: var(--paper-subtle); }
:root[data-theme="dark"] .form-error, :root[data-theme="dark"] .job-error { border-color: rgba(255, 141, 120, 0.3); }

/* ===== Color boost: lime + pink from the references used across the UI (not only on the dark theme) ===== */
:root { --lime-bg: rgba(219, 249, 2, 0.28); --lime-bg-strong: rgba(219, 249, 2, 0.5); --pink-bg: rgba(255, 46, 138, 0.09); --pink-bg-strong: rgba(255, 46, 138, 0.16); --lime-ink: #3f5a00; }
:root[data-theme="dark"] { --lime-bg: rgba(219, 249, 2, 0.14); --lime-bg-strong: rgba(219, 249, 2, 0.22); --pink-bg: rgba(255, 46, 154, 0.14); --pink-bg-strong: rgba(255, 46, 154, 0.22); --lime-ink: #dbf902; }
/* Primary actions are lime everywhere (Higgsfield); secondary ones get a lime hover. */
.btn-primary, .primary-button, .login-submit.btn-primary, .plan-card.highlighted .btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 12px 24px rgba(219, 249, 2, 0.28); }
.btn-primary:hover, .primary-button:hover, .plan-card.highlighted .btn-primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--accent-ink); }
.btn-secondary:hover, .secondary-button:hover, .upload-browse:hover, .ai-logo-btn:hover { background: var(--lime-bg); border-color: var(--accent); }
.btn-secondary.btn-pink { background: var(--pink-bg); border-color: transparent; color: var(--highlight); }
/* Eyebrow labels, rules and the current menu item take the pink highlight. */
.poster-index, .docs-sidebar-title, .app-nav-title, .login-index { color: var(--highlight); }
.nav-link.active { color: var(--highlight); }
.nav-link:hover { color: var(--highlight); }
.field-link, .docs-toc a.active, .auth-link, .login-foot a { color: var(--highlight); }
.docs-toc a.active { border-left-color: var(--highlight); }
.required { color: var(--pink); }
.poster-headline { background: linear-gradient(135deg, var(--ink) 55%, var(--highlight)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-title em, .poster-subline .motion-word { color: var(--highlight); font-style: normal; }
.poster-rule { height: 4px; width: 52px; background: linear-gradient(90deg, var(--pink), var(--accent)); }
.hero-poster::before { background:
  radial-gradient(55% 55% at 22% -5%, rgba(255, 46, 138, 0.3), transparent 70%),
  radial-gradient(45% 45% at 88% 15%, rgba(219, 249, 2, 0.35), transparent 70%),
  linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 44px 44px, 44px 44px; }
:root[data-theme="dark"] .hero-poster::before { background:
  radial-gradient(55% 55% at 22% -5%, rgba(255, 46, 154, 0.32), transparent 70%),
  radial-gradient(45% 45% at 88% 15%, rgba(219, 249, 2, 0.16), transparent 70%),
  linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 44px 44px, 44px 44px; }
.frame-play { background: var(--accent); }
.frame-play svg { fill: var(--accent-ink); }
.scrub::before { background: var(--pink); }
.code-pill.light { background: var(--lime-bg-strong); color: var(--lime-ink); backdrop-filter: none; }
:root[data-theme="dark"] .code-pill.light { background: rgba(219, 249, 2, 0.18); color: var(--accent); }
/* Tabs, segmented controls, menu: lime for the active state. */
.filter-tab.active, .ratio-option.active, .seconds-option.active, .theme-choice button.active, .ref-mode .ref-option.active, .mcp-tab.active, .ratio-card.active, .code-tab-btn.active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.ratio-card.active strong, .ratio-card.active .ratio-shape { color: var(--accent-ink); border-color: var(--accent-ink); }
.filter-tab.active .filter-count { background: rgba(0, 0, 0, 0.12); color: var(--accent-ink); }
.filter-count { background: var(--pink-bg); color: var(--highlight); }
.range::-webkit-slider-runnable-track { background: linear-gradient(90deg, var(--pink) var(--pct), var(--line-strong) var(--pct)); }
.range::-webkit-slider-thumb { background: var(--accent); border-color: var(--accent-ink); }
.range::-moz-range-progress { background: var(--pink); }
.range::-moz-range-thumb { background: var(--accent); border-color: var(--accent-ink); }
.upload-zone { background: var(--lime-bg); border-color: rgba(63, 90, 0, 0.25); }
.upload-zone:hover, .upload-zone.dragover { border-color: var(--lime-ink); background: var(--lime-bg-strong); }
.upload-icon { background: var(--accent); color: var(--accent-ink); }
.empty-icon { background: var(--pink-bg); color: var(--highlight); }
/* Status colors: lime done, amber working, pink failed. */
.status-badge.done, .status-badge.active { background: var(--lime-bg-strong); color: var(--lime-ink); }
.status-badge.failed, .status-badge.connection, .status-badge.error { background: var(--pink-bg-strong); color: var(--highlight); }
.status-badge.queued, .status-badge.generating, .status-badge.sending, .status-badge.checking, .status-badge.busy, .status-badge.pending { background: var(--amber-bg); color: var(--amber); }
.bill-amount.refunded { color: var(--highlight); }
.bill-amount.pending { color: var(--amber); }
.footer-dot { background: var(--pink); }
.method { background: var(--highlight); color: #fff; }
.method.get { background: var(--lime-bg-strong); color: var(--lime-ink); }
.req { background: var(--highlight); color: #fff; }
.data-table th { background: var(--lime-bg); color: var(--lime-ink); }
.note { border-left: 4px solid var(--pink); background: var(--pink-bg); }
.meta-tag[data-state="active"] { border-color: transparent; background: var(--lime-bg-strong); color: var(--lime-ink); }
.meta-tag[data-state="low"] { border-color: transparent; background: var(--pink-bg-strong); color: var(--highlight); }
/* Summary cards get tinted surfaces instead of plain white. */
.stat-card.primary { background: linear-gradient(145deg, #15171a, #0f0f12); border-color: #0f0f12; }
.stat-card.primary .stat-value { color: var(--accent); }
.stat-card.primary .meta-tag { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.stats-grid .stat-card:nth-child(2) { background: linear-gradient(160deg, var(--lime-bg), var(--card) 70%); border-color: rgba(219, 249, 2, 0.6); }
.stats-grid .stat-card:nth-child(3) { background: linear-gradient(160deg, var(--pink-bg-strong), var(--card) 70%); border-color: rgba(255, 46, 138, 0.3); }
.stats-grid .stat-card:nth-child(4) { background: linear-gradient(160deg, var(--paper-subtle), var(--card) 70%); }
.stats-grid .stat-card:nth-child(3) .stat-value { color: var(--highlight); }
.quota-track { background: var(--pink-bg); }
.quota-fill { background: linear-gradient(90deg, var(--pink), var(--accent)); }
.key-meta-card { border-left: 4px solid var(--accent); }
.step-card h3 { color: var(--ink); }
.step-num { color: var(--highlight); }
.step-tag { background: var(--lime-bg-strong); color: var(--lime-ink); }
.steps-grid .step-card:nth-child(even) { background: var(--lime-bg); }
.ai-card { background: linear-gradient(135deg, var(--pink-bg), var(--card) 45%, var(--lime-bg) 100%); border-color: rgba(255, 46, 138, 0.25); }
.ai-link { background: var(--card); }
.theme-toggle { background: var(--lime-bg); color: var(--lime-ink); border-color: transparent; }
.theme-toggle:hover { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.endpoint { border-color: rgba(255, 46, 138, 0.25); }
.modal-header h3 { color: var(--highlight); }
.form-error, .job-error, .login-message.error { background: var(--pink-bg); border-color: rgba(255, 46, 138, 0.35); color: var(--highlight); }
.auth-ok, .login-message.ok, .new-key { background: var(--lime-bg); border-color: rgba(63, 90, 0, 0.25); color: var(--lime-ink); }
:root[data-theme="dark"] .auth-ok, :root[data-theme="dark"] .login-message.ok, :root[data-theme="dark"] .new-key { color: var(--accent); }
.site-footer-brand { color: var(--highlight); }
.topbar-right .account-btn { border-color: transparent; background: var(--lime-bg); }
.account-avatar { background: var(--highlight); color: #fff; }

/* ===== Landing: poster style (always dark, lime neon) ===== */
.hero-neon, .max-section { position: relative; overflow: hidden; color: #f0f2f2; background: #0b0c0a; }
.hero-neon { padding: 72px 0 84px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.hero-neon::before { content: ""; position: absolute; inset: -20% -10% auto; height: 120%; pointer-events: none; background:
  radial-gradient(42% 55% at 72% 38%, rgba(219, 249, 2, 0.28), transparent 65%),
  radial-gradient(30% 40% at 20% 10%, rgba(219, 249, 2, 0.08), transparent 70%); }
.hero-neon::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.35; background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); }
.hero-neon-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.neon-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: #a8aeaf; }
.neon-eyebrow i { width: 32px; height: 2px; background: #dbf902; box-shadow: 0 0 12px #dbf902; }
.neon-headline { margin: 0 0 20px; font-family: var(--font-display); font-size: clamp(44px, 5.6vw, 76px); font-weight: 800; line-height: 0.98; letter-spacing: -0.05em; color: #fff; -webkit-background-clip: initial; background: none; }
.neon-headline em { font-style: normal; color: #dbf902; text-shadow: 0 0 24px rgba(219, 249, 2, 0.45); }
.neon-lead { max-width: 520px; margin: 0 0 30px; font-size: 16px; line-height: 1.6; color: #b9bfc0; }
.hero-neon .btn-primary { background: #dbf902; border-color: #dbf902; color: #1a1a1a; box-shadow: 0 0 0 1px rgba(219, 249, 2, 0.25), 0 12px 36px rgba(219, 249, 2, 0.35); }
.hero-neon .btn-primary:hover { background: #e6fb4d; }
.neon-outline { background: transparent !important; border-color: rgba(255, 255, 255, 0.22) !important; color: #f0f2f2 !important; }
.neon-outline:hover { border-color: #dbf902 !important; color: #dbf902 !important; }
.neon-points { display: flex; flex-wrap: wrap; gap: 22px; margin: 36px 0 0; padding: 0; list-style: none; font-size: 13.5px; font-weight: 600; line-height: 1.25; color: #f0f2f2; }
.neon-points li { display: flex; align-items: center; gap: 12px; padding-right: 22px; border-right: 1px solid rgba(255, 255, 255, 0.14); }
.neon-points li:last-child { border-right: 0; }
.neon-points svg { width: 30px; height: 30px; flex: none; fill: none; stroke: #dbf902; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.neon-stage { position: relative; height: 460px; }
.film { position: absolute; left: -8%; right: -8%; height: 150px; padding: 16px 0; background: #0f110d; border-top: 1px solid rgba(255, 255, 255, 0.08); border-bottom: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 0 40px rgba(219, 249, 2, 0.12); display: flex; gap: 18px; justify-content: center; overflow: hidden; }
.film::before, .film::after { content: ""; position: absolute; left: 0; right: 0; height: 12px; background: repeating-linear-gradient(90deg, #dbf902 0 16px, transparent 16px 34px); opacity: 0.85; filter: drop-shadow(0 0 6px #dbf902); }
.film::before { top: 2px; } .film::after { bottom: 2px; }
.film span { width: 150px; height: 100%; border-radius: 6px; background: linear-gradient(160deg, #2a3038, #0e1013); }
.film span:nth-child(1) { background: radial-gradient(circle at 60% 30%, #f7d08a 0 8%, #d1742e 30%, #2b1e14 70%); }
.film span:nth-child(2) { background: radial-gradient(circle at 40% 40%, #ff5aa5 0 6%, #6a2a6e 35%, #121018 75%); }
.film span:nth-child(3) { background: radial-gradient(circle at 50% 60%, #b7e3ff 0 8%, #2b6c8e 35%, #0d1a22 75%); }
.film span:nth-child(4) { background: radial-gradient(circle at 50% 35%, #dbf902 0 6%, #4a6b0a 35%, #0f160a 75%); }
.film-a { top: 60px; transform: rotate(-8deg); }
.film-b { top: 230px; transform: rotate(6deg); opacity: 0.9; }
.neon-play { position: absolute; left: 50%; top: 50%; width: 150px; height: 150px; transform: translate(-42%, -56%); display: grid; place-items: center; filter: drop-shadow(0 0 18px #dbf902) drop-shadow(0 0 48px rgba(219, 249, 2, 0.6)); }
.neon-play::before { content: ""; position: absolute; inset: 0; background: #dbf902; clip-path: polygon(14% 4%, 96% 50%, 14% 96%); }
.neon-play-core { position: absolute; inset: 14px; background: #0b0c0a; clip-path: polygon(22% 16%, 86% 50%, 22% 84%); }
.neon-floor { position: absolute; left: 10%; right: 10%; bottom: 0; height: 26px; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(219, 249, 2, 0.45), transparent 70%); filter: blur(10px); }
.hero-neon .code-pill.dark { background: #16181b; color: #f0f2f2; border: 1px solid rgba(255, 255, 255, 0.1); }
.hero-neon .code-pill.light { background: rgba(219, 249, 2, 0.16); color: #dbf902; border: 1px solid rgba(219, 249, 2, 0.4); }
.hero-neon .code-pill.light span { color: #dbf902; }
.posters-section .poster-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.poster-card { margin: 0; overflow: hidden; border-radius: 22px; border: 1px solid var(--line); background: #0b0c0a; box-shadow: var(--shadow-2); }
.poster-card img { display: block; width: 100%; height: auto; }
.max-section { padding: 72px 0; border-top: 1px solid rgba(255, 255, 255, 0.07); border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.max-section::before { content: ""; position: absolute; inset: auto -10% -30% 40%; height: 90%; pointer-events: none; background: radial-gradient(50% 50% at 50% 50%, rgba(219, 249, 2, 0.16), transparent 70%); }
.max-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: center; }
.max-section .section-title { color: #fff; background: none; -webkit-background-clip: initial; }
.max-section .section-title em { color: #dbf902; font-style: normal; }
.max-section .section-lead, .max-section .poster-index { color: #b9bfc0; }
.max-section .poster-index { color: #dbf902; }
.max-art { margin: 0; overflow: hidden; border-radius: 22px; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
.max-art img { display: block; width: 100%; height: auto; }
.max-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.max-tiles article { display: grid; gap: 4px; padding: 18px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 18px; background: rgba(255, 255, 255, 0.04); }
.max-tiles svg { width: 34px; height: 34px; margin-bottom: 8px; padding: 6px; border: 1.5px solid #dbf902; border-radius: 9px; fill: none; stroke: #dbf902; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; box-shadow: 0 0 14px rgba(219, 249, 2, 0.35); }
.max-tiles strong { font-family: var(--font-display); font-size: 18px; letter-spacing: -0.03em; color: #fff; }
.max-tiles span { font-size: 13px; color: #b9bfc0; }
.max-banner { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 14px 18px; border: 1px solid rgba(219, 249, 2, 0.45); border-radius: 14px; background: rgba(219, 249, 2, 0.08); font-weight: 700; color: #fff; box-shadow: 0 0 24px rgba(219, 249, 2, 0.12); }
.max-banner svg { width: 26px; height: 26px; flex: none; fill: none; stroke: #dbf902; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.plans-posters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.plan-poster { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 22px; background: var(--card); box-shadow: var(--shadow-1); }
.plan-poster.highlighted { border-color: rgba(219, 249, 2, 0.6); box-shadow: 0 0 0 1px rgba(219, 249, 2, 0.3), 0 30px 80px -30px rgba(219, 249, 2, 0.5); }
.plan-poster .plan-badge { top: 14px; left: 14px; z-index: 1; }
.plan-poster img { display: block; width: 100%; height: auto; border-radius: 21px 21px 0 0; }
.plan-poster-body { display: grid; gap: 8px; padding: 18px 18px 20px; }
.plan-poster-body strong { font-family: var(--font-display); font-size: 30px; letter-spacing: -0.04em; }
.plan-poster-body strong span { margin-left: 4px; font-family: var(--font-ui); font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--ink-muted); }
.plan-poster-body p { margin: 0; font-size: 13.5px; color: var(--ink-secondary); }
.plan-poster-body .btn { width: 100%; height: 44px; }
:root[data-theme="light"] .plan-poster .neon-outline { color: var(--ink) !important; border-color: var(--line-strong) !important; }
:root[data-theme="light"] .plan-poster .neon-outline:hover { border-color: var(--ink) !important; }
@media (max-width: 960px) {
  .hero-neon-grid, .max-grid, .posters-section .poster-grid { grid-template-columns: 1fr; }
  .neon-stage { height: 380px; }
  .plans-posters { grid-template-columns: 1fr; max-width: 420px; }
}
@media (max-width: 640px) {
  .hero-neon { padding: 44px 0 56px; }
  .neon-stage { height: 300px; }
  .film span { width: 110px; }
  .neon-play { width: 110px; height: 110px; }
  .neon-points li { border-right: 0; padding-right: 0; flex: 1 1 100%; }
  .max-tiles { grid-template-columns: 1fr; }
}

/* Hero video inside the neon frame; the CSS filmstrip is only the fallback. */
.neon-video { position: absolute; inset: 6% 0 10%; z-index: 2; display: grid; place-items: center; }
.neon-video video, .neon-video .hero-anim { display: block; width: 100%; max-height: 100%; aspect-ratio: 1024 / 752; object-fit: cover; border-radius: 22px; border: 1px solid rgba(219, 249, 2, 0.45); box-shadow: 0 0 0 1px rgba(219, 249, 2, 0.15), 0 0 48px rgba(219, 249, 2, 0.28), 0 30px 80px rgba(0, 0, 0, 0.6); background: #0b0c0a; }
.neon-stage.has-video .film, .neon-stage.has-video .neon-play { display: none; }
.neon-stage .code-pill { z-index: 3; }
.neon-stage.has-video .code-pill-1 { top: 2%; left: -2%; }
.neon-stage.has-video .code-pill-2 { top: auto; bottom: 14%; right: -2%; }
.neon-stage.has-video .code-pill-3 { bottom: 2%; left: 4%; }
@media (max-width: 640px) { .neon-video { inset: 4% 0 8%; } .neon-stage.has-video .code-pill { display: none; } }
.neon-video .art-video { filter: none; mix-blend-mode: normal; height: auto; cursor: pointer; }
/* Play / pause: big in the middle when the video is stopped, small in the corner while it plays. */
.hero-play { position: absolute; left: 50%; top: 50%; z-index: 3; display: grid; place-items: center; width: 76px; height: 76px; border: 0; border-radius: 999px; background: #dbf902; color: #0b0c0a; box-shadow: 0 0 0 8px rgba(219, 249, 2, 0.18), 0 0 40px rgba(219, 249, 2, 0.55); transform: translate(-50%, -50%); cursor: pointer; opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; }
.hero-play svg { width: 34px; height: 34px; fill: currentColor; }
.hero-play .i-pause { display: none; }
.neon-video.needs-tap:not(.is-playing) .hero-play { opacity: 1; pointer-events: auto; }
.neon-video.is-playing .hero-play { left: auto; top: auto; right: 12px; bottom: 12px; width: 44px; height: 44px; background: rgba(11, 12, 10, 0.6); color: #fff; box-shadow: none; backdrop-filter: blur(6px); transform: none; opacity: 0; pointer-events: auto; }
.neon-video.is-playing:hover .hero-play, .neon-video.is-playing .hero-play:focus-visible { opacity: 1; }
.neon-video.is-playing .hero-play svg { width: 18px; height: 18px; }
.neon-video.is-playing .hero-play .i-play { display: none; }
.neon-video.is-playing .hero-play .i-pause { display: inline; }
@media (hover: none) { .neon-video.is-playing .hero-play { opacity: 0.85; } }
/* Topbar: theme toggle and "Minha conta" are neutral (no lime fill). */
.theme-toggle, .topbar-right .account-btn { background: var(--card); border: 1px solid var(--line-strong); color: var(--ink-secondary); box-shadow: none; }
.topbar-right .account-btn { color: var(--ink); }
.theme-toggle:hover, .topbar-right .account-btn:hover { background: var(--paper-subtle); border-color: var(--ink); color: var(--ink); }
:root[data-theme="dark"] .theme-toggle, :root[data-theme="dark"] .topbar-right .account-btn { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.14); }
:root[data-theme="dark"] .theme-toggle:hover, :root[data-theme="dark"] .topbar-right .account-btn:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.3); }

/* Plan posters: crop the art above its baked-in numbers; the current numbers are HTML below. */
.plan-poster img { aspect-ratio: 1024 / 740; object-fit: cover; object-position: top; }
.plan-poster-stats { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px 14px; padding: 10px 0 2px; border-top: 1px solid var(--line); }
.plan-poster-stats span { display: grid; font-size: 11.5px; color: var(--ink-muted); line-height: 1.2; }
.plan-poster-stats b { font-family: var(--font-display); font-size: 20px; letter-spacing: -0.03em; color: var(--ink); }
.plan-poster-stats .or { align-self: center; font-size: 12px; font-weight: 600; color: var(--highlight); }

/* ===== Public site, narrow screens: menu button + logo; links, account and theme in a side drawer ===== */
.site-menu-btn, .site-drawer, .site-drawer-backdrop { display: none; }
.sr-only-mobile { }
@media (max-width: 760px) {
  .topbar { height: 60px; }
  .topbar-inner { flex-wrap: nowrap; justify-content: flex-start; gap: 12px; height: 60px; padding: 0 16px; }
  .topbar .nav-links, .topbar .topbar-right { display: none !important; }
  .site-menu-btn { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--card); color: var(--ink); cursor: pointer; }
  .site-menu-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  .site-drawer-backdrop:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 150; background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(2px); }
  .site-drawer:not([hidden]) { display: flex; }
  .site-drawer { position: fixed; top: 0; bottom: 0; left: 0; z-index: 160; width: min(320px, 88vw); flex-direction: column; gap: 22px; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); overflow-y: auto; background: var(--card); border-right: 1px solid var(--line); box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35); transform: translateX(-104%); transition: transform 0.22s ease; }
  .site-drawer.open { transform: none; }
  .site-drawer-head { display: flex; align-items: center; justify-content: space-between; }
  .site-drawer-close { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; color: var(--ink-secondary); cursor: pointer; }
  .site-drawer-close:hover { background: var(--paper-subtle); color: var(--ink); }
  .site-drawer-close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  .site-drawer-links { display: grid; gap: 4px; }
  .site-drawer-link { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 12px; border-radius: 12px; font-size: 16px; font-weight: 600; color: var(--ink); }
  .site-drawer-link:hover { background: var(--paper-subtle); }
  .site-drawer-link.active { background: var(--paper-subtle); color: var(--highlight); box-shadow: inset 3px 0 0 var(--highlight); }
  .site-drawer-link svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .site-drawer-account { display: grid; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); }
  .site-drawer-account .btn { width: 100%; height: 48px; font-size: 15px; }
  .site-drawer-account [hidden] { display: none !important; }
  .site-drawer-user { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); }
  .site-drawer-user .account-avatar { width: 36px; height: 36px; font-size: 15px; }
  .site-drawer-user-text { display: grid; flex: 1; min-width: 0; line-height: 1.3; }
  .site-drawer-user-text strong { font-size: 15px; }
  .site-drawer-user-text span { overflow: hidden; font-size: 12.5px; color: var(--ink-muted); text-overflow: ellipsis; white-space: nowrap; }
  .site-drawer-user > svg { width: 18px; height: 18px; fill: none; stroke: var(--ink-muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .site-drawer-theme { display: grid; gap: 10px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
  .site-drawer-theme > span { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
  .site-drawer-theme .theme-choice { display: grid; grid-template-columns: repeat(3, 1fr); }
  .site-drawer-theme .theme-choice button { height: 44px; font-size: 14px; }
  body.site-drawer-open { overflow: hidden; }

  /* Home hero: only the video (it carries the headline), then the call to action. The h1 stays for screen readers. */
  .hero-neon { padding: 20px 0 32px; }
  .hero-neon-grid { gap: 20px; }
  .neon-stage { order: -1; height: auto; min-height: 0; }
  .neon-stage:not(.has-video) { min-height: 300px; }
  .neon-video { position: relative; inset: auto; }
  .neon-video video, .neon-video .hero-anim { border-radius: 18px; }
  .neon-floor, .neon-stage .code-pill { display: none; }
  .neon-eyebrow, .neon-lead, .neon-points { display: none; }
  .neon-headline { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .hero-neon .poster-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero-neon .poster-actions .btn { width: 100%; height: 52px; padding: 0 12px; font-size: 15px; }
  .hero-neon .poster-actions .btn[hidden] { display: none; }
}

/* ----- Accessibility everywhere: visible keyboard focus, no tap flash ----- */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 2px solid var(--highlight, #ff2e8a); outline-offset: 2px; }
html { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

/* ----- Phones: 44px touch targets, 16px form fields (iOS does not zoom on focus), legible small text.
   Prefixed with `html` so it also wins over conta.css / chat.css / auth.css, which load after this file. ----- */
@media (max-width: 760px) {
  html input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]), html select, html textarea { font-size: 16px; }
  html .btn { min-height: 44px; }
  html .brand, html .login-brand { min-height: 44px; }
  html .site-footer-links { gap: 4px 6px; }
  html .site-footer-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; }
  html .code-tab-btn, html .copy-code-btn { min-height: 40px; padding-inline: 14px; font-size: 13px; }
  html .icon-button, html .login-eye { width: 44px; height: 44px; }
  html .key-wrap .icon-button { top: 0; }
  html .theme-choice button { height: 40px; }
  html .filter-tab { min-height: 40px; }
  html .mcp-tab { height: 40px; }
  html .ref-option { min-height: 40px; }
  html .field-link, html .auth-link, html .login-back { display: inline-flex; align-items: center; min-height: 40px; }
  html .select-input, html .search-input { min-height: 44px; font-size: 16px; }
  html :is(.poster-index, .code-label, .step-tag, .plan-badge, .meta-tag, .stat-label, .counter, .optional, .duration, .spec-row span, .spec-row code) { font-size: 12px; }
  html :is(.app-badge, .app-nav-title, #side-balance, .app-nav-new) { font-size: 11.5px; }
}
.site-drawer, .cx-history-list { overscroll-behavior: contain; }
/* Autoplay blocked (iOS Low Power Mode, some in-app browsers): site.js swaps the video for an animated WebP. */
.neon-video .hero-anim { height: auto; }
.neon-video.is-image .hero-play { display: none; }

/* Narrow top bar: menu button + logo on the left, one account button on the right. */
.site-top-cta { display: none; }
@media (max-width: 760px) {
  .site-top-cta:not([hidden]) { display: inline-flex; margin-left: auto; min-height: 44px; height: 44px; padding: 0 18px; font-size: 14px; white-space: nowrap; }
}

/* ----- Generating orb (GeneratingOrb, CSS renderer): chat and the Gerar vídeo / Gerar imagem pages ----- */
.gorb {
  --size: 120px; --speed: 2; --duration: 2000ms; --stagger: 100ms; --pop: 1.15; --rest: 0.4; --text-size: 1.2;
  --highlight: #ffffff; --halo: #ad5fff; --core: #471eec; --halo-alt: #d60a47; --core-alt: #311e80; --text: #ffffff;
  position: relative; display: grid; place-items: center; flex: none; width: var(--size); height: var(--size);
}
.gorb-glow { position: absolute; inset: -18%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--halo) 55%, transparent) 0%, color-mix(in srgb, var(--halo-alt) 25%, transparent) 45%, transparent 70%); filter: blur(calc(var(--size) * 0.08)); animation: gorb-breathe calc(6s / var(--speed)) ease-in-out infinite; }
.gorb-ball { position: absolute; inset: 0; overflow: hidden; border-radius: 50%; background: radial-gradient(circle at 50% 62%, var(--core) 0%, var(--core-alt) 72%); box-shadow: inset 0 0 calc(var(--size) * 0.12) rgba(255, 255, 255, 0.18), 0 0 calc(var(--size) * 0.25) color-mix(in srgb, var(--halo) 45%, transparent); }
.gorb-blob { position: absolute; width: 78%; height: 78%; border-radius: 50%; filter: blur(calc(var(--size) * 0.07)); mix-blend-mode: screen; opacity: 0.9; }
.gorb-blob.a { left: -8%; top: -6%; background: radial-gradient(circle at 40% 40%, var(--halo), transparent 68%); transform-origin: 64% 64%; animation: gorb-spin calc(8s / var(--speed)) linear infinite; }
.gorb-blob.b { right: -12%; bottom: -10%; background: radial-gradient(circle at 60% 60%, var(--halo-alt), transparent 66%); transform-origin: 36% 36%; animation: gorb-spin calc(11s / var(--speed)) linear infinite reverse; }
.gorb-blob.c { left: 14%; top: 24%; width: 60%; height: 60%; background: radial-gradient(circle, color-mix(in srgb, var(--highlight) 55%, transparent), transparent 70%); animation: gorb-drift calc(7s / var(--speed)) ease-in-out infinite alternate; }
.gorb-shine { position: absolute; left: 18%; top: 12%; width: 34%; height: 22%; border-radius: 50%; background: radial-gradient(ellipse, rgba(255, 255, 255, 0.55), transparent 70%); filter: blur(calc(var(--size) * 0.02)); }
.gorb-text { position: relative; z-index: 1; display: flex; font-family: var(--font-ui); font-size: calc(var(--size) * 0.1 * var(--text-size)); font-weight: 600; letter-spacing: 0; color: var(--text); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35); }
.gorb-text span { display: inline-block; opacity: var(--rest); animation: gorb-letter var(--duration) ease-in-out infinite; animation-delay: calc(var(--i) * var(--stagger)); }
@keyframes gorb-letter { 0%, 60%, 100% { opacity: var(--rest); transform: scale(1); } 25% { opacity: 1; transform: scale(var(--pop)); } }
@keyframes gorb-spin { to { transform: rotate(360deg); } }
@keyframes gorb-drift { from { transform: translate(-8%, -6%) scale(0.95); } to { transform: translate(10%, 8%) scale(1.1); } }
@keyframes gorb-breathe { 0%, 100% { opacity: 0.75; transform: scale(0.96); } 50% { opacity: 1; transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .gorb * { animation-duration: 0.01s !important; animation-iteration-count: 1 !important; } }

/* Gerar vídeo / Gerar imagem: the result panel appears only after sending, with the latest request. */
.layout:has(> .result-panel[hidden]) { grid-template-columns: minmax(0, 860px); }
.layout:has(> .result-panel:not([hidden])) { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
@media (max-width: 960px) { .layout:has(> .result-panel:not([hidden])) { grid-template-columns: minmax(0, 1fr); } }
.result-panel[hidden] { display: none; }
.result-panel:has(.job-result) { min-height: 0; padding-bottom: 18px; }
.result-panel .jobs-list { max-height: none; overflow: visible; margin: 0 0 12px; }
.job-result { padding: 16px; }
.job-result .job-card-title { min-width: 0; }
.job-result .job-prompt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.job-result .job-video-wrap { margin: 12px 0 0; border-radius: 10px; max-height: 70vh; }
.job-result .job-metrics { margin: 12px 0 0; }
.job-loading { display: grid; place-items: center; align-content: center; gap: 16px; margin-top: 12px; min-height: 220px; max-height: 60vh; width: 100%; border-radius: 10px; background: radial-gradient(circle at 50% 45%, rgba(173, 95, 255, 0.16), transparent 60%), #0b0c0f; }
.job-loading[hidden] { display: none; }
.job-loading-text { font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, 0.78); }
.result-history { justify-self: start; }

/* ===== App (PWA): "Baixe o app" section, install dialog, entry points ===== */
.app-installed [data-install], .app-installed .app-section { display: none !important; } /* already running as the app */
.app-section { border-top: 1px solid var(--line); }
.app-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: center; gap: 48px; }
.app-copy .section-lead { margin-bottom: 26px; }
.app-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.app-store-btn { display: inline-flex; align-items: center; gap: 12px; min-height: 60px; padding: 0 22px 0 18px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 16px; background: #0b0c0a; color: #fff; font: inherit; text-align: left; cursor: pointer; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18); transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s; }
.app-store-btn:hover { transform: translateY(-2px); border-color: rgba(219, 249, 2, 0.55); box-shadow: 0 14px 36px rgba(0, 0, 0, 0.25), 0 0 24px rgba(219, 249, 2, 0.18); }
.app-store-btn svg { width: 28px; height: 28px; flex: none; fill: none; stroke: #dbf902; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.app-store-btn[data-install="ios"] svg { fill: #dbf902; stroke: none; }
.app-store-btn span { display: grid; line-height: 1.15; }
.app-store-btn small { font-size: 11.5px; color: rgba(255, 255, 255, 0.65); }
.app-store-btn strong { font-family: var(--font-display); font-size: 19px; letter-spacing: -0.02em; }
.app-points { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 22px 0 0; padding: 0; list-style: none; font-size: 13.5px; color: var(--ink-secondary); }
.app-points li { display: inline-flex; align-items: center; gap: 8px; }
.app-points li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.app-phone { justify-self: center; width: min(280px, 100%); aspect-ratio: 9 / 18.5; padding: 10px; border-radius: 42px; background: linear-gradient(160deg, #2a2b27, #0b0c0a); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 40px 80px rgba(0, 0, 0, 0.35), 0 0 60px rgba(219, 249, 2, 0.12); }
.app-phone-screen { position: relative; display: grid; align-content: start; height: 100%; padding: 46px 18px 18px; overflow: hidden; border-radius: 33px; background: radial-gradient(120% 60% at 50% 0%, rgba(219, 249, 2, 0.22), transparent 60%), radial-gradient(90% 60% at 80% 100%, rgba(255, 46, 138, 0.22), transparent 60%), #111210; }
.app-phone-time { position: absolute; top: 14px; left: 26px; font-size: 13px; font-weight: 700; color: #fff; }
.app-phone-icons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 12px; }
.app-phone-icons > span { min-width: 0; aspect-ratio: 1; border-radius: 26%; background: rgba(255, 255, 255, 0.08); }
.app-phone-icons .app-phone-main { display: grid; justify-items: center; gap: 6px; aspect-ratio: auto; background: none; grid-column: span 1; }
.app-phone-main img { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 1; border-radius: 26%; box-shadow: 0 0 24px rgba(219, 249, 2, 0.45); animation: app-bounce 2.6s ease-in-out infinite; }
.app-phone-main b { font-size: 9.5px; font-weight: 600; color: #fff; letter-spacing: 0.02em; }
@keyframes app-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .app-phone-main img { animation: none; } }
.site-drawer-install { width: 100%; border: 0; background: transparent; font: inherit; text-align: left; cursor: pointer; }

.install-backdrop { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 16px; background: rgba(8, 9, 7, 0.62); backdrop-filter: blur(4px); }
.install-backdrop[hidden] { display: none; }
body.install-open { overflow: hidden; }
.install-card { position: relative; display: grid; gap: 16px; width: min(460px, 100%); max-height: calc(100dvh - 32px); padding: 24px; overflow-y: auto; border: 1px solid var(--line); border-radius: 22px; background: var(--card); color: var(--ink); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); }
.install-close { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; color: var(--ink-secondary); cursor: pointer; }
.install-close:hover { background: var(--paper-subtle); color: var(--ink); }
.install-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.install-head { display: flex; align-items: center; gap: 14px; padding-right: 40px; }
.install-head img { flex: none; border-radius: 14px; }
.install-head h2 { margin: 0; font-family: var(--font-display); font-size: 21px; letter-spacing: -0.02em; }
.install-head p { margin: 2px 0 0; font-size: 12.5px; color: var(--ink-muted); }
.install-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper-subtle); }
.install-tabs button { min-height: 40px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-secondary); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.install-tabs button.active { background: var(--ink); color: var(--paper); }
.install-body { display: grid; gap: 14px; }
.install-lead { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-secondary); }
.install-steps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.install-steps li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.55; }
.install-steps svg { display: inline-block; width: 18px; height: 18px; margin: 0 2px; vertical-align: -3px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.install-steps svg circle { fill: currentColor; stroke: none; }
.install-n { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #0b0c0a; font-size: 13px; font-weight: 800; }
.install-now, .install-copy { width: 100%; justify-content: center; }

@media (max-width: 860px) {
  .app-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .app-phone { width: min(210px, 62%); }
}
@media (max-width: 760px) {
  .app-buttons { display: grid; grid-template-columns: 1fr 1fr; }
  .app-store-btn { justify-content: center; min-height: 56px; padding: 0 12px; }
  .app-store-btn strong { font-size: 17px; }
  .install-backdrop { align-items: end; padding: 0; }
  .install-card { width: 100%; max-height: 92dvh; padding: 22px 18px max(22px, env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; }
}
@media (max-width: 360px) { .app-buttons { grid-template-columns: 1fr; } }

/* In-site dialogs and notices (ui.js): replace the browser's alert / confirm / prompt */
html.ui-dialog-lock { overflow: hidden; }
.ui-dialog-backdrop { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; background: rgba(8, 8, 10, 0.55); backdrop-filter: blur(6px); animation: ui-fade 0.14s ease-out; }
.ui-dialog-backdrop.closing { animation: ui-fade 0.14s ease-in reverse forwards; }
.ui-dialog { width: min(420px, 100%); padding: 22px; border: 1px solid var(--line-strong); border-radius: var(--radius-card); background: var(--card); color: var(--ink); font-family: var(--font-ui); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); animation: ui-pop 0.18s cubic-bezier(0.2, 0.9, 0.3, 1.2); }
.ui-dialog-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 14px; border-radius: 12px; background: var(--lime-bg, rgba(219, 249, 2, 0.16)); color: var(--lime-ink, #4d5a00); }
.ui-dialog.danger .ui-dialog-icon { background: var(--red-bg); color: var(--red); }
.ui-dialog-icon svg, .ui-toast svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ui-dialog h2 { margin: 0; font-family: var(--font-display); font-size: 19px; line-height: 1.25; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.ui-dialog p { margin: 8px 0 0; font-size: 14px; line-height: 1.55; color: var(--ink-secondary); white-space: pre-line; overflow-wrap: anywhere; }
.ui-dialog-field { display: grid; gap: 6px; margin-top: 16px; font-size: 13px; font-weight: 600; color: var(--ink-secondary); }
.ui-dialog-field input { width: 100%; min-height: 46px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-ctl); background: var(--paper-subtle); color: var(--ink); font: inherit; font-size: 15px; font-weight: 500; }
.ui-dialog-field input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.ui-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.ui-dialog-btn { min-height: 44px; padding: 0 18px; border: 1px solid var(--line-strong); border-radius: var(--radius-ctl); background: transparent; color: var(--ink); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.ui-dialog-btn:hover { background: var(--paper-subtle); }
.ui-dialog-btn.primary { border-color: transparent; background: var(--accent); color: var(--accent-ink); }
.ui-dialog-btn.primary:hover { background: var(--accent-strong); }
.ui-dialog-btn.danger { border-color: transparent; background: #e5484d; color: #fff; }
.ui-dialog-btn.danger:hover { background: #d33a40; }
.ui-dialog-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ui-toasts { position: fixed; right: 16px; bottom: 16px; z-index: 1001; display: grid; gap: 8px; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.ui-toast { display: flex; align-items: flex-start; gap: 10px; padding: 12px 10px 12px 14px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--card); color: var(--ink); font-family: var(--font-ui); font-size: 14px; line-height: 1.45; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22); pointer-events: auto; animation: ui-slide 0.2s ease-out; }
.ui-toast span { flex: 1; overflow-wrap: anywhere; }
.ui-toast svg { flex: none; margin-top: 1px; }
.ui-toast.error svg { color: var(--red); }
.ui-toast.ok svg { color: var(--green); }
.ui-toast button { flex: none; width: 26px; height: 26px; margin: -3px 0; border: 0; border-radius: 8px; background: none; color: var(--ink-muted); font-size: 18px; line-height: 1; cursor: pointer; }
.ui-toast.closing { animation: ui-slide 0.18s ease-in reverse forwards; }
@keyframes ui-fade { from { opacity: 0; } }
@keyframes ui-pop { from { opacity: 0; transform: translateY(8px) scale(0.97); } }
@keyframes ui-slide { from { opacity: 0; transform: translateY(10px); } }
@media (max-width: 560px) {
  .ui-dialog-backdrop { place-items: end center; padding: 0; }
  .ui-dialog { width: 100%; border-radius: 22px 22px 0 0; padding-bottom: max(22px, env(safe-area-inset-bottom)); }
  .ui-dialog-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .ui-dialog-actions .ui-dialog-btn:only-child { grid-column: 1 / -1; }
  .ui-toasts { left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); width: auto; }
}
@media (prefers-reduced-motion: reduce) { .ui-dialog-backdrop, .ui-dialog, .ui-toast { animation: none !important; } }

/* Landing showcase: real creations from the official Explorar (light copies in /showcase) */
.showcase-frame { position: relative; max-height: 820px; margin-top: 28px; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent); mask-image: linear-gradient(to bottom, #000 72%, transparent); }
.showcase-grid { columns: 4 220px; column-gap: 14px; }
.show-card { position: relative; display: block; margin: 0 0 14px; overflow: hidden; border-radius: 18px; background: #141512; color: #fff; text-decoration: none; break-inside: avoid; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06); transform: translateZ(0); }
.show-card img, .show-card video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.show-card:hover img, .show-card:hover video { transform: scale(1.04); }
.show-card::after { content: ''; position: absolute; inset: auto 0 0; height: 50%; background: linear-gradient(transparent, rgba(0, 0, 0, 0.7)); pointer-events: none; }
.show-kind { position: absolute; left: 12px; top: 12px; z-index: 1; padding: 3px 9px; border-radius: 999px; background: rgba(0, 0, 0, 0.5); font-size: 11px; font-weight: 700; backdrop-filter: none; }
.show-title { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; font-family: var(--font-display); font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.show-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.showcase-actions { position: relative; display: flex; justify-content: center; margin-top: -56px; }
@media (max-width: 760px) {
  .showcase-frame { max-height: 720px; }
  .showcase-grid { columns: 2; column-gap: 10px; }
  .show-card { margin-bottom: 10px; border-radius: 14px; }
  .show-title { font-size: 13.5px; left: 10px; right: 10px; bottom: 9px; }
  .show-kind { left: 8px; top: 8px; }
}
@media (prefers-reduced-motion: reduce) { .show-card img, .show-card video { transition: none; } .show-card:hover img, .show-card:hover video { transform: none; } }

/* Glow cards (glow.js): a lime-green light runs along the border near the pointer, with a soft halo outside */
.glow { --glow-border: 2px; --glow-size: 240px; --glow-radius: 22px; --glow-hue: calc(68 + var(--glow-xp, 0.5) * 50); position: relative; }
.has-glow .glow::before, .has-glow .glow::after { content: ""; position: absolute; inset: calc(var(--glow-border) * -1); z-index: 3; padding: var(--glow-border); border-radius: calc(var(--glow-radius) + var(--glow-border)); pointer-events: none; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.has-glow .glow::before { background: radial-gradient(calc(var(--glow-size) * 0.75) circle at var(--gx, -999px) var(--gy, -999px), hsl(var(--glow-hue) 100% 55%), transparent 100%); filter: brightness(1.5); }
.has-glow .glow::after { background: radial-gradient(calc(var(--glow-size) * 0.4) circle at var(--gx, -999px) var(--gy, -999px), hsl(0 0% 100% / 0.85), transparent 100%); }
.glow-halo { position: absolute; inset: -14px; z-index: 0; padding: 14px; border-radius: calc(var(--glow-radius) + 14px); pointer-events: none; background: radial-gradient(var(--glow-size) circle at calc(var(--gx, -999px) + 14px) calc(var(--gy, -999px) + 14px), hsl(var(--glow-hue) 100% 50% / 0.55), transparent 70%); filter: blur(12px); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.plan-poster.glow, .plan-card.glow { --glow-radius: 22px; }
.plan-poster.glow > *:not(.glow-halo), .plan-card.glow > *:not(.glow-halo) { position: relative; z-index: 1; }
.plan-poster.glow > .plan-badge, .plan-card.glow > .plan-badge { position: absolute; z-index: 2; }

/* Landing showcase: details view */
.show-detail { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 24px; background: rgba(6, 7, 6, 0.86); }
.show-detail[hidden] { display: none; }
body.cx-detail-open { overflow: hidden; }
.show-detail-card { display: grid; grid-template-columns: minmax(0, 1fr) 360px; width: min(1180px, 100%); height: min(780px, calc(100dvh - 48px)); overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 22px; background: #121315; color: #f3f3ef; box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55); animation: ui-pop 0.2s ease-out; }
.show-detail-media { display: grid; place-items: center; min-height: 0; background: #08090a; }
.show-detail-media img, .show-detail-media video { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.show-detail-side { display: flex; flex-direction: column; gap: 14px; min-height: 0; padding: 20px; overflow-y: auto; border-left: 1px solid rgba(255, 255, 255, 0.08); background: #17181b; }
.show-detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.show-detail-kind { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 7px; border-radius: 999px; background: rgba(219, 249, 2, 0.14); color: #dbf902; font-size: 11.5px; font-weight: 700; }
.show-detail-kind svg { width: 12px; height: 12px; fill: currentColor; }
.show-detail-head h2 { margin: 8px 0 0; font-family: var(--font-display); font-size: 22px; letter-spacing: -0.02em; color: #fff; }
.show-detail-close { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, 0.06); color: #f3f3ef; cursor: pointer; }
.show-detail-close svg, .show-detail-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.show-detail-block { display: grid; gap: 8px; padding: 14px; border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 14px; background: rgba(255, 255, 255, 0.03); }
.show-detail-label { font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(243, 243, 239, 0.55); }
.show-detail-block p { margin: 0; font-size: 13.5px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; color: rgba(243, 243, 239, 0.9); }
.show-detail-specs { display: grid; gap: 8px; margin: 0; }
.show-detail-specs div { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.show-detail-specs dt { color: rgba(243, 243, 239, 0.55); }
.show-detail-specs dd { margin: 0; font-weight: 600; text-align: right; }
.show-detail-actions { display: grid; gap: 8px; margin-top: auto; }
.show-detail-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 14px; background: transparent; color: #f3f3ef; font: inherit; font-size: 14.5px; font-weight: 700; text-decoration: none; cursor: pointer; }
.show-detail-btn.primary { border: 0; background: #dbf902; color: #0b0c0a; box-shadow: 0 10px 30px rgba(219, 249, 2, 0.25); }
.show-detail-btn.primary:hover { background: #e6fb4d; }
.show-detail-btn:focus-visible, .show-detail-close:focus-visible { outline: 2px solid #dbf902; outline-offset: 2px; }
.show-detail-note { margin: 2px 0 0; font-size: 12px; line-height: 1.5; text-align: center; color: rgba(243, 243, 239, 0.55); }
@media (max-width: 860px) {
  .show-detail { padding: 0; }
  .show-detail-card { grid-template-columns: 1fr; grid-template-rows: minmax(0, 46%) minmax(0, 1fr); width: 100%; height: 100dvh; border: 0; border-radius: 0; }
  .show-detail-side { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.08); padding-bottom: 0; }
  .show-detail-actions { position: sticky; bottom: 0; margin: auto -20px 0; padding: 12px 20px max(14px, env(safe-area-inset-bottom)); border-top: 1px solid rgba(255, 255, 255, 0.08); background: #17181b; }
  .show-detail-close { position: fixed; top: max(12px, env(safe-area-inset-top)); right: 12px; z-index: 2; background: rgba(0, 0, 0, 0.55); }
}

/* ===== Home v2 (27/10/2026, dono: "dar um tapa nesse visual"): menu, hero, como funciona, Max, planos, app e rodapé.
   As artes com texto desenhado repetiam o que estava ao lado; agora cada seção mostra a interface ou a oferta em HTML. ===== */

/* Menu (desktop): links centralizados numa pílula, ações à direita. O ativo deixa de ser rosa e vira a "aba" selecionada. */
@media (min-width: 761px) {
  :root .topbar-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
  :root .topbar-inner > .brand { justify-self: start; }
  :root .topbar .brand-logo { height: 20px; }
  :root .topbar-right { justify-self: end; gap: 6px; }
  :root .nav-links { gap: 2px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper-subtle); }
  :root .nav-link { display: inline-flex; align-items: center; height: 32px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink-secondary); transition: color 0.15s, background 0.15s; }
  :root .nav-link:hover { color: var(--ink); font-weight: 500; }
  :root .nav-link[aria-current="page"], :root .nav-link.active { color: var(--ink); font-weight: 600; background: var(--card); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), inset 0 0 0 1px var(--line-strong); }
  :root .topbar-right .btn { height: 38px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 600; }
  :root .topbar-right .btn-secondary { border-color: transparent; background: transparent; color: var(--ink); }
  :root .topbar-right .btn-secondary:hover, :root[data-theme="dark"] .topbar-right .btn-secondary:hover { border-color: transparent; background: var(--paper-subtle); }
  :root .topbar-right .btn-primary, :root[data-theme="dark"] .topbar-right .btn-primary { box-shadow: none; }
  :root .topbar-right .btn-primary:hover { transform: none; }
  :root .topbar .theme-toggle, :root[data-theme="dark"] .topbar .theme-toggle { width: 38px; height: 38px; border-color: transparent; background: transparent; color: var(--ink-secondary); }
  :root .topbar .theme-toggle:hover, :root[data-theme="dark"] .topbar .theme-toggle:hover { border-color: transparent; background: var(--paper-subtle); color: var(--ink); }
}

/* Hero: texto à esquerda; à direita a janela "Novo pedido" com um resultado real tocando e o prompt que o gerou. */
.hero-neon.hero-v2 { padding: 88px 0 104px; }
.hx-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 64px; align-items: center; }
.hx-badge { display: inline-flex; align-items: center; gap: 10px; height: 32px; margin-bottom: 26px; padding: 0 14px 0 12px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 999px; background: rgba(255, 255, 255, 0.04); font-size: 13px; font-weight: 500; color: #c9cecf; }
.hx-badge i { width: 8px; height: 8px; flex: none; border-radius: 50%; background: #dbf902; box-shadow: 0 0 0 4px rgba(219, 249, 2, 0.15); }
.hx-title { margin: 0 0 22px; font-family: var(--font-display); font-size: clamp(46px, 5.4vw, 74px); font-weight: 800; line-height: 0.98; letter-spacing: -0.045em; color: #fff; }
.hx-title em { display: block; font-style: normal; color: #dbf902; }
.hx-lead { max-width: 500px; margin: 0 0 34px; font-size: 17px; line-height: 1.6; color: #b9bfc0; }
.hx-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-v2 .btn-primary { box-shadow: 0 10px 30px rgba(219, 249, 2, 0.22); }
.hx-ghost { border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.03); color: #f0f2f2; }
.hx-ghost:hover { border-color: rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.07); }
.hx-proof { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 34px 0 0; padding: 0; list-style: none; font-size: 14px; color: #c9cecf; }
.hx-proof li { display: inline-flex; align-items: center; gap: 8px; }
.hx-proof svg { width: 20px; height: 20px; flex: none; padding: 3px; border-radius: 50%; background: rgba(219, 249, 2, 0.14); fill: none; stroke: #dbf902; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }

.hx-demo { position: relative; }
.hx-window { position: relative; z-index: 1; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 20px; background: #131517; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 40px 100px -20px rgba(0, 0, 0, 0.8), 0 0 90px -24px rgba(219, 249, 2, 0.3); }
.hx-bar { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); font-size: 13px; }
.hx-dots { display: inline-flex; gap: 6px; }
.hx-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.hx-bar-title { font-weight: 600; color: #e6e9e9; }
.hx-status { display: inline-flex; align-items: center; gap: 6px; height: 24px; margin-left: auto; padding: 0 10px; border-radius: 999px; background: rgba(74, 222, 128, 0.12); color: #4ade80; font-size: 12px; font-weight: 600; }
.hx-status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.hx-media { position: relative; aspect-ratio: 16 / 9; background: #0b0c0a; }
.hx-media video { display: block; width: 100%; height: 100%; object-fit: cover; }
.hx-tag { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 8px; background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(8px); font-family: var(--mono); font-size: 11.5px; color: #fff; }
.hx-prompt { padding: 16px; }
.hx-prompt p { margin: 0 0 14px; font-size: 14px; line-height: 1.55; color: #e6e9e9; }
.hx-caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -0.15em; background: #dbf902; animation: hx-blink 1.1s steps(1) infinite; }
@keyframes hx-blink { 50% { opacity: 0; } }
.hx-controls { display: flex; align-items: center; gap: 6px; }
.hx-chip { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 999px; font-size: 12.5px; font-weight: 500; color: #a8aeaf; white-space: nowrap; }
.hx-chip.on { border-color: transparent; background: rgba(219, 249, 2, 0.14); color: #dbf902; }
.hx-send { display: grid; place-items: center; width: 36px; height: 36px; flex: none; margin-left: auto; border-radius: 50%; background: #dbf902; color: #1a1a1a; }
.hx-send svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hx-float { position: absolute; z-index: 2; top: 72px; right: -28px; width: 128px; margin: 0; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 16px; background: #0b0c0a; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6); transform: rotate(3deg); }
.hx-float img { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; }
.hx-float figcaption { position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; background: rgba(0, 0, 0, 0.55); font-family: var(--mono); font-size: 11px; color: #fff; }

/* Como funciona: 3 passos, cada um com um pedaço da interface. */
.flow-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.flow-card { display: flex; flex-direction: column; padding: 14px 14px 26px; border: 1px solid var(--line); border-radius: 22px; background: var(--card); box-shadow: var(--shadow-1); }
.flow-visual { display: grid; align-content: center; gap: 12px; min-height: 200px; margin-bottom: 24px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: radial-gradient(80% 70% at 50% 0%, var(--lime-bg), transparent 70%), var(--paper-subtle); }
.flow-step { margin: 0 10px; font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--highlight); }
.flow-card h3 { margin: 6px 10px 8px; font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: -0.03em; }
.flow-card p { margin: 0 10px; font-size: 14.5px; line-height: 1.6; color: var(--ink-secondary); }
.fv-input { padding: 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--card); font-size: 13.5px; line-height: 1.5; color: var(--ink); box-shadow: var(--shadow-1); }
.fv-input .hx-caret { background: var(--highlight); }
.fv-attach { display: inline-flex; align-items: center; gap: 10px; justify-self: start; height: 42px; padding: 0 12px 0 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font-size: 12.5px; font-weight: 500; color: var(--ink-secondary); }
.fv-thumb { width: 30px; height: 30px; flex: none; border-radius: 7px; background: #222 center / cover; }
.fv-attach svg, .fv-actions svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.fv-attach svg { stroke: var(--green); stroke-width: 2.6; }
.fv-ratios { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.fv-ratios span { display: grid; justify-items: center; align-content: end; gap: 10px; height: 88px; padding: 10px 4px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--card); font-size: 12px; font-weight: 600; color: var(--ink-secondary); }
.fv-ratios i { display: block; border: 2px solid currentColor; border-radius: 4px; }
.fv-durations { display: flex; gap: 6px; }
.fv-durations span { display: grid; flex: 1; place-items: center; height: 36px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--card); font-size: 12.5px; font-weight: 600; color: var(--ink-secondary); }
.fv-ratios .on, .fv-durations .on { border-color: var(--accent); background: var(--lime-bg); color: var(--lime-ink); }
.fv-result { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--card); box-shadow: var(--shadow-1); }
.fv-result-thumb { display: grid; flex: none; place-items: center; width: 104px; aspect-ratio: 16 / 9; border-radius: 8px; background: #222 center / cover; }
.fv-result-thumb svg { width: 24px; height: 24px; padding: 5px 4px 5px 6px; border-radius: 50%; background: rgba(0, 0, 0, 0.55); fill: #fff; }
.fv-result-meta { display: grid; gap: 4px; min-width: 0; }
.fv-result-meta b { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.fv-result-meta span { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--green); }
.fv-result-meta i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.fv-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fv-actions span { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--card); font-size: 13px; font-weight: 600; color: var(--ink); }
.fv-actions .primary { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }

/* Max: a oferta (preço e botão) à esquerda, o que inclui à direita. */
.max-v2 { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 64px; }
.max-copy .section-lead { max-width: 420px; }
.max-price { display: flex; align-items: baseline; gap: 6px; margin: 0 0 24px; color: #fff; }
.max-price strong { font-family: var(--font-display); font-size: 46px; font-weight: 800; letter-spacing: -0.045em; line-height: 1; }
.max-price span { font-size: 15px; color: #b9bfc0; }
.max-note { margin: 14px 0 0; font-size: 13px; color: #8f9596; }

/* Planos: preço, o que rende, botão e itens (os mesmos da tabela plans). */
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; padding: 30px 28px 28px; border: 1px solid var(--line-strong); border-radius: 22px; background: var(--card); box-shadow: var(--shadow-1); }
.price-card.featured { border-color: rgba(219, 249, 2, 0.55); background: linear-gradient(180deg, var(--lime-bg), transparent 45%), var(--card); box-shadow: 0 0 0 1px rgba(219, 249, 2, 0.25), 0 30px 80px -30px rgba(219, 249, 2, 0.45); }
.price-card.glow > *:not(.glow-halo) { position: relative; z-index: 1; }
.price-card .price-badge, .price-card.glow > .price-badge { position: absolute; top: -12px; left: 28px; z-index: 2; display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.price-name { margin: 0; font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.price-for { margin: 4px 0 22px; font-size: 14px; color: var(--ink-muted); }
.price-value { display: flex; align-items: baseline; gap: 4px; }
.price-value strong { font-family: var(--font-display); font-size: 42px; font-weight: 800; letter-spacing: -0.045em; line-height: 1; }
.price-value span { font-size: 14px; color: var(--ink-muted); }
.price-yield { display: grid; gap: 2px; margin: 18px 0 22px; padding: 12px 14px; border-radius: 12px; background: var(--paper-subtle); }
.price-yield b { font-size: 15px; }
.price-yield span { font-size: 13px; color: var(--ink-secondary); }
.price-yield em { font-style: normal; font-weight: 600; color: var(--highlight); }
.price-cta { width: 100%; height: 46px; }
.price-list { display: grid; gap: 12px; margin: 24px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); list-style: none; font-size: 14px; color: var(--ink-secondary); }
.price-list li { display: flex; align-items: flex-start; gap: 10px; }
.price-list li::before { content: ""; width: 16px; height: 16px; flex: none; margin-top: 2px; background: var(--lime-ink); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.price-foot { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 28px 0 0; font-size: 14px; color: var(--ink-secondary); text-align: center; }
.price-foot svg, .sf-trust svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--lime-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* App: o celular com o app aberto e um pedido pronto, e o aviso de "adicionado à tela inicial". */
.app-section { overflow-x: clip; } /* o brilho atrás do celular passa da borda em telas estreitas */
.phone-stage { position: relative; justify-self: center; width: min(290px, 100%); }
.phone-stage::before { content: ""; position: absolute; inset: 8% -30%; z-index: 0; background: radial-gradient(closest-side, var(--lime-bg), transparent); filter: blur(20px); pointer-events: none; }
.phone { position: relative; z-index: 1; aspect-ratio: 9 / 19; padding: 9px; border-radius: 46px; background: linear-gradient(145deg, #3a3b37, #121311 40%, #1d1e1b); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.6), 0 40px 90px -10px rgba(0, 0, 0, 0.5); }
.phone-island { position: absolute; z-index: 3; top: 19px; left: 50%; width: 84px; height: 24px; border-radius: 999px; background: #000; transform: translateX(-50%); }
.phone-screen { position: relative; display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 38px; background: #0d0e10; color: #f0f2f2; }
.ph-status { display: flex; align-items: center; justify-content: space-between; height: 46px; padding: 6px 28px 0; font-size: 13px; }
.ph-status span { display: inline-flex; align-items: flex-end; gap: 2px; height: 10px; }
.ph-status span i { width: 3px; border-radius: 1px; background: #fff; }
.ph-status span i:nth-child(1) { height: 5px; } .ph-status span i:nth-child(2) { height: 7px; } .ph-status span i:nth-child(3) { height: 10px; }
.ph-head { display: flex; align-items: center; gap: 8px; padding: 6px 16px 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.ph-head img { width: 26px; height: 26px; border-radius: 7px; }
.ph-head b { font-size: 13.5px; letter-spacing: 0.01em; }
.ph-credits { display: inline-flex; align-items: center; height: 24px; margin-left: auto; padding: 0 9px; border-radius: 999px; background: rgba(219, 249, 2, 0.14); color: #dbf902; font-size: 11px; font-weight: 600; white-space: nowrap; }
.ph-chat { display: flex; flex: 1; flex-direction: column; gap: 10px; min-height: 0; padding: 14px; }
.ph-msg { align-self: flex-end; max-width: 86%; margin: 0; padding: 10px 12px; border-radius: 16px 16px 4px 16px; background: #23252a; font-size: 12px; line-height: 1.45; }
.ph-result { position: relative; flex: 1; min-height: 0; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 14px; background: #000; }
.ph-result img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ph-tag { position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; background: rgba(0, 0, 0, 0.55); font-family: var(--mono); font-size: 10.5px; }
.ph-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ph-actions span { display: grid; place-items: center; height: 32px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 10px; font-size: 11.5px; font-weight: 600; }
.ph-actions .primary { border-color: transparent; background: #dbf902; color: #1a1a1a; }
.ph-composer { display: flex; align-items: center; gap: 8px; height: 44px; margin: 0 12px 16px; padding: 0 6px 0 14px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 999px; background: #17191c; font-size: 12px; color: #7d8486; }
.ph-composer span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-composer i { display: grid; place-items: center; width: 32px; height: 32px; flex: none; margin-left: auto; border-radius: 50%; background: #dbf902; color: #1a1a1a; }
.ph-composer svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.phone-toast { position: absolute; z-index: 2; left: -64px; top: 30%; display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border: 1px solid var(--line-strong); border-radius: 16px; background: var(--card); box-shadow: var(--shadow-3); white-space: nowrap; }
.phone-toast img { width: 36px; height: 36px; border-radius: 9px; }
.phone-toast span { display: grid; font-size: 12px; line-height: 1.35; color: var(--ink-muted); }
.phone-toast b { font-size: 13px; color: var(--ink); }

/* Rodapé: marca e chamada, 3 colunas de links, linha de baixo com a garantia. */
.site-footer.sf-v2 { padding: 64px 0 28px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-secondary); }
.sf-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr); gap: 48px; padding-bottom: 44px; }
.sf-brand { display: grid; align-content: start; justify-items: start; gap: 18px; }
.sf-brand .brand-logo { height: 20px; }
.sf-brand p { max-width: 320px; margin: 0; line-height: 1.6; }
.sf-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.sf-col { display: grid; align-content: start; gap: 12px; }
.sf-col h2 { margin: 0 0 4px; font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.sf-col a { justify-self: start; color: var(--ink-secondary); transition: color 0.15s; }
.sf-col a:hover { color: var(--ink); }
.sf-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-muted); }
.sf-trust { display: inline-flex; align-items: center; gap: 8px; }

@media (max-width: 960px) {
  .hx-grid { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .hx-demo { width: 100%; max-width: 640px; }
  .hx-float { right: -8px; }
  .flow-grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .max-v2 { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .price-grid { grid-template-columns: minmax(0, 1fr); max-width: 460px; margin: 0 auto; }
  .price-card.featured { order: -1; }
  .phone-toast { left: -32px; }
}
@media (max-width: 760px) {
  .hero-neon.hero-v2 { padding: 36px 0 52px; }
  .hx-grid { gap: 40px; }
  .hx-badge { height: auto; min-height: 32px; margin-bottom: 20px; padding: 6px 14px 6px 12px; font-size: 12.5px; }
  .hx-title { font-size: clamp(38px, 11vw, 54px); }
  .hx-lead { margin-bottom: 26px; font-size: 16px; }
  .hx-actions { display: grid; grid-template-columns: minmax(0, 1fr); }
  .hx-actions .btn { width: 100%; height: 52px; font-size: 15px; }
  .hx-proof { display: grid; gap: 10px; margin-top: 26px; }
  .hx-float { display: none; }
  .hx-prompt p { font-size: 13.5px; }
  .hx-chip { height: 28px; padding: 0 10px; font-size: 12px; }
  .hx-chip:nth-child(2) { display: none; }
  .flow-visual { min-height: 0; }
  .max-price strong { font-size: 40px; }
  .max-copy .btn { width: 100%; height: 52px; }
  .price-card { padding: 28px 22px 24px; }
  .price-foot { align-items: flex-start; text-align: left; }
  .phone-stage { width: min(260px, 80%); margin-bottom: 24px; }
  .phone-toast { top: auto; left: 50%; bottom: -24px; transform: translateX(-50%); }
  .sf-top { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .sf-cols { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .sf-col { gap: 0; }
  .sf-col a { display: inline-flex; align-items: center; min-height: 40px; }
  .sf-brand .btn { height: 44px; padding: 0 18px; }
}
@media (prefers-reduced-motion: reduce) { .hx-caret { animation: none; } }

/* ===== Home v2.1 (27/10/2026, dono: "mais dinâmico", "MAIS TCHAN"): hero animado, Início rápido e palco do app ===== */

/* Hero: estados do ciclo do site.js (Na fila → Gerando → Pronto). */
.hx-status { transition: background 0.3s, color 0.3s; }
.hx-status[data-state="queued"] { background: rgba(251, 191, 36, 0.12); color: #fbbf24; }
.hx-status[data-state="generating"] { background: rgba(219, 249, 2, 0.12); color: #dbf902; }
.hx-status[data-state="generating"] i { animation: hx-pulse 0.9s ease-in-out infinite; }
@keyframes hx-pulse { 50% { opacity: 0.25; transform: scale(1.6); } }
.hx-media { overflow: hidden; }
.hx-media video { transition: filter 0.6s ease, transform 0.8s ease; }
.hx-media.is-generating video { filter: blur(16px) saturate(0.5) brightness(0.55); transform: scale(1.06); }
.hx-gen { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity 0.4s; background: linear-gradient(105deg, transparent 35%, rgba(219, 249, 2, 0.14) 50%, transparent 65%) 0 0 / 250% 100%; }
.hx-gen span { display: inline-flex; align-items: center; gap: 10px; height: 38px; padding: 0 16px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 999px; background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(8px); color: #fff; font-size: 13px; font-weight: 600; }
.hx-gen span::before { content: ""; width: 14px; height: 14px; border: 2px solid rgba(219, 249, 2, 0.3); border-top-color: #dbf902; border-radius: 50%; animation: hx-spin 0.8s linear infinite; }
@keyframes hx-spin { to { transform: rotate(360deg); } }
.hx-media.is-generating .hx-gen { opacity: 1; animation: hx-shimmer 1.4s linear infinite; }
@keyframes hx-shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.hx-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, 0.08); opacity: 0; transition: opacity 0.3s; }
.hx-progress i { display: block; width: 0; height: 100%; background: #dbf902; box-shadow: 0 0 14px #dbf902; }
.hx-media.is-generating .hx-progress { opacity: 1; }
.hx-media.is-generating .hx-progress i { animation: hx-fill 2.6s cubic-bezier(0.3, 0.6, 0.4, 1) forwards; }
@keyframes hx-fill { to { width: 100%; } }
.hx-media.is-generating .hx-tag { opacity: 0; }
.hx-tag { transition: opacity 0.3s; }
.hx-send { transition: transform 0.15s, box-shadow 0.3s; }
.hx-send.is-sending { transform: scale(0.84); box-shadow: 0 0 0 8px rgba(219, 249, 2, 0.18); }
.hx-float { animation: hx-bob 6s ease-in-out infinite; }
@keyframes hx-bob { 50% { translate: 0 -10px; } }
.hx-float img { transition: opacity 0.5s, filter 0.5s; }
.hx-float.is-swapping img { opacity: 0.35; filter: blur(8px); }
.hx-window { animation: hx-rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes hx-rise { from { opacity: 0; transform: translateY(24px) scale(0.98); } }
.hx-copy > * { animation: hx-rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hx-copy > :nth-child(2) { animation-delay: 0.06s; } .hx-copy > :nth-child(3) { animation-delay: 0.12s; }
.hx-copy > :nth-child(4) { animation-delay: 0.18s; } .hx-copy > :nth-child(5) { animation-delay: 0.24s; }

/* Início rápido: linha do tempo + editor. */
.qs-grid { display: grid; grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr); gap: 56px; align-items: start; }
.qs-steps.steps-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin: 0; padding: 8px 0 0; list-style: none; }
.qs-step { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px; padding-bottom: 30px; }
.qs-step::before { content: ""; position: absolute; top: 50px; bottom: 6px; left: 21px; width: 2px; border-radius: 2px; background: linear-gradient(var(--line-strong), transparent); }
.qs-step:last-child { padding-bottom: 0; }
.qs-step:last-child::before { display: none; }
.qs-num { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--card); box-shadow: var(--shadow-1); font-family: var(--mono); font-size: 15px; font-weight: 700; color: var(--ink); }
.qs-step.is-refund .qs-num { border-color: var(--accent); background: var(--lime-bg); color: var(--lime-ink); }
.qs-num svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.qs-step h3 { margin: 9px 0 6px; font-family: var(--font-display); font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.qs-step p { margin: 0 0 12px; font-size: 14.5px; line-height: 1.65; color: var(--ink-secondary); }
.qs-endpoint { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px 0 4px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper-subtle); font-family: var(--mono); font-size: 12.5px; color: var(--ink); }
.qs-endpoint b { display: inline-flex; align-items: center; height: 22px; padding: 0 7px; border-radius: 5px; font-size: 11px; }
.qs-endpoint .post { background: var(--pink-bg-strong); color: var(--highlight); }
.qs-endpoint .get { background: var(--lime-bg-strong); color: var(--lime-ink); }
.code-tabs.qs-editor { overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 20px; background: #0e1012; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.55), 0 0 90px -30px rgba(219, 249, 2, 0.28); }
.qs-bar { display: flex; align-items: center; gap: 16px; height: 54px; padding: 0 10px 0 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); background: #131517; }
.qs-editor .code-tab-buttons { flex-wrap: nowrap; gap: 2px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.qs-editor .code-tab-btn { height: 34px; padding: 0 13px; border-radius: 9px; background: transparent; font-family: var(--font-ui); font-size: 13px; font-weight: 500; color: #8d9496; white-space: nowrap; }
.qs-editor .code-tab-btn:hover { color: #f0f2f2; }
.qs-editor .code-tab-btn.active, :root[data-theme="dark"] .qs-editor .code-tab-btn.active { background: rgba(255, 255, 255, 0.08); color: #fff; box-shadow: inset 0 -2px 0 #dbf902; }
.qs-editor .copy-code-btn { flex: none; height: 34px; margin-left: auto; padding: 0 14px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 9px; background: transparent; color: #e6e9e9; font-family: var(--font-ui); font-size: 12.5px; font-weight: 600; }
.qs-editor .copy-code-btn:hover { border-color: rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.05); }
.qs-env { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 18px 0; }
.qs-env span { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; height: 30px; padding: 0 10px; border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 8px; background: rgba(255, 255, 255, 0.03); }
.qs-env b { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; color: #6b7275; }
.qs-env code { overflow: hidden; font-family: var(--mono); font-size: 12px; color: #e6e9e9; text-overflow: ellipsis; white-space: nowrap; }
.qs-editor .code-block { min-height: 312px; padding: 18px 20px 22px; background: transparent; font-size: 13px; line-height: 1.75; color: #d7dbdc; }
.code-block .c { color: #6b7275; }
.code-block .k { color: #ff7ab8; }
.code-block .s { color: #dbf902; }
.code-block .f { color: #7cc7ff; }
.code-block .n { color: #ffb86b; }
.code-block .p { color: #9ad1ff; }
.qs-run { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 18px; border-top: 1px solid rgba(255, 255, 255, 0.07); background: #111315; font-family: var(--mono); font-size: 12px; color: #5d6467; }
.qs-st { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 7px; background: rgba(255, 255, 255, 0.05); color: #8d9496; animation: qs-light 4.5s infinite; }
.qs-st.st-2 { animation-delay: 1.5s; } .qs-st.st-3 { animation-delay: 3s; }
@keyframes qs-light { 0%, 33% { background: rgba(219, 249, 2, 0.16); color: #dbf902; } 36%, 100% { background: rgba(255, 255, 255, 0.05); color: #8d9496; } }
.qs-note { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-family: var(--font-ui); font-size: 12.5px; color: #4ade80; }
.qs-note svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.qs-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

/* App: palco escuro com brilho e dois celulares (tela inicial atrás, app aberto na frente), cortados na base. */
.app-section.home-section { border-top: 0; }
.app-stage { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; min-height: 580px; padding: 0 0 0 64px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 32px; color: #f0f2f2; background: radial-gradient(55% 75% at 78% 100%, rgba(219, 249, 2, 0.24), transparent 65%), radial-gradient(45% 55% at 0% 0%, rgba(255, 46, 154, 0.16), transparent 60%), #0d0e0c; box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.6); }
.app-stage::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.5; background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(70% 80% at 70% 60%, #000, transparent); }
.app-stage .app-copy { align-self: center; padding: 64px 0; }
.app-stage .section-title { color: #fff; }
.app-stage .section-title em { color: #dbf902; }
.app-stage .section-lead { max-width: 460px; color: #b9bfc0; }
.app-stage .app-store-btn { border-color: rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(6px); }
.app-stage .app-points { gap: 8px; margin-top: 26px; }
.app-stage .app-points li { gap: 8px; height: 34px; padding: 0 12px 0 10px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 999px; background: rgba(255, 255, 255, 0.04); font-size: 13px; color: #e6e9e9; }
.app-stage .app-points li::before { display: none; }
.app-stage .app-points svg { width: 16px; height: 16px; fill: none; stroke: #dbf902; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.phone-duo { position: relative; align-self: stretch; min-height: 520px; }
.phone-duo .phone { position: absolute; width: 270px; }
.phone-front { z-index: 2; left: 40%; bottom: -96px; animation: phone-float 7s ease-in-out infinite; }
.phone-back { z-index: 1; left: 2%; bottom: -150px; rotate: -9deg; filter: brightness(0.8); animation: phone-float 7s ease-in-out -3.5s infinite; }
@keyframes phone-float { 50% { translate: 0 -12px; } }
.home-screen { background: radial-gradient(120% 70% at 20% 0%, #4a2f86, transparent 60%), radial-gradient(100% 60% at 100% 100%, #0f6152, transparent 60%), #15121f; }
.hs-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 14px; padding: 18px 18px 0; }
.hs-app { display: grid; justify-items: center; gap: 6px; }
.hs-app::before { content: ""; width: 100%; aspect-ratio: 1; border-radius: 26%; background: linear-gradient(145deg, hsl(var(--h) 70% 62%), hsl(calc(var(--h) + 40) 65% 38%)); opacity: 0.85; }
.hs-app::after { content: ""; width: 70%; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.3); }
.hs-videoapi::before, .hs-videoapi::after { display: none; }
.hs-videoapi img { display: block; width: 100%; height: auto; aspect-ratio: 1; border-radius: 26%; box-shadow: 0 0 0 3px rgba(219, 249, 2, 0.55), 0 0 26px rgba(219, 249, 2, 0.7); animation: hs-glow 2.4s ease-in-out infinite; }
.hs-videoapi b { font-size: 9px; font-weight: 600; color: #fff; }
@keyframes hs-glow { 50% { box-shadow: 0 0 0 5px rgba(219, 249, 2, 0.25), 0 0 36px rgba(219, 249, 2, 0.9); } }
.ph-result video { display: block; width: 100%; height: 100%; object-fit: cover; }
.phone-duo .phone-toast { top: auto; bottom: 70px; left: -2%; z-index: 3; border-color: rgba(255, 255, 255, 0.12); background: rgba(23, 25, 28, 0.92); backdrop-filter: blur(10px); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); animation: phone-float 6s ease-in-out -1s infinite; }
.phone-duo .phone-toast span { color: #8d9496; }
.phone-duo .phone-toast b { color: #fff; }

@media (max-width: 960px) {
  .qs-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .app-stage { grid-template-columns: minmax(0, 1fr); padding: 0 32px; }
  .app-stage .app-copy { padding: 48px 0 0; }
  .phone-duo { min-height: 460px; }
  .phone-front { left: 50%; margin-left: -60px; }
  .phone-back { left: 50%; margin-left: -230px; }
  .phone-duo .phone-toast { top: 24px; bottom: auto; left: 50%; transform: translateX(-50%); }
}
@media (max-width: 760px) {
  .qs-editor .code-block { min-height: 0; font-size: 12px; }
  .qs-bar { gap: 10px; padding: 0 8px 0 12px; }
  .qs-bar .hx-dots { display: none; }
  .qs-editor .code-tab-btn { padding: 0 10px; font-size: 12.5px; }
  .qs-note { margin-left: 0; }
  .qs-actions .btn { width: 100%; height: 52px; }
  .app-stage { padding: 0 20px; border-radius: 24px; }
  .app-stage .app-copy { padding-top: 36px; }
  .phone-duo { min-height: 400px; }
  .phone-duo .phone { width: 220px; }
  .phone-front { margin-left: -70px; bottom: -120px; }
  .phone-back { margin-left: -190px; bottom: -160px; }
  .phone-duo .phone-toast { top: 16px; bottom: auto; left: 50%; transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .hx-window, .hx-copy > *, .hx-float, .phone-front, .phone-back, .phone-duo .phone-toast, .hs-videoapi img, .qs-st, .hx-gen, .hx-gen span::before { animation: none !important; }
}

/* ===== Home v2.2 (27/10/2026, dono: "revise carregamento, dinamicidade"): entrada no scroll, hero vivo, cards de verdade ===== */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Menu: ganha fundo e sombra quando a página rola. */
.topbar { transition: background 0.25s, box-shadow 0.25s, border-color 0.25s; }
.topbar.is-scrolled { box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.35); }
:root[data-theme="dark"] .topbar.is-scrolled { background: rgba(10, 10, 11, 0.9); }

/* Entrada das seções (home.js põe .reveal só com JS e sem "reduzir movimento"). */
.js-reveal .reveal { opacity: 0; translate: 0 28px; transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) var(--reveal-delay, 0ms), translate 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) var(--reveal-delay, 0ms); }
.js-reveal .reveal.is-in { opacity: 1; translate: 0 0; }

/* Hero: selo com link, palavra que gira, números, botão com brilho, luz que segue o mouse e janela com inclinação 3D. */
.hero-v2 { background: radial-gradient(520px circle at var(--mx, 72%) var(--my, 38%), rgba(219, 249, 2, 0.07), transparent 65%), #0b0c0a; }
a.hx-badge { gap: 10px; height: 34px; padding: 0 10px 0 4px; color: #d7dbdc; transition: border-color 0.2s, background 0.2s; }
a.hx-badge:hover { border-color: rgba(219, 249, 2, 0.45); background: rgba(219, 249, 2, 0.06); }
.hx-badge b { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: #dbf902; color: #1a1a1a; font-size: 12px; font-weight: 700; white-space: nowrap; }
.hx-badge svg { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s; }
a.hx-badge:hover svg { transform: translateX(3px); }
.hx-word { display: inline-block; background: linear-gradient(100deg, #dbf902 0%, #dbf902 40%, #f6ffb0 50%, #dbf902 60%, #dbf902 100%) 0 0 / 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: hx-shine-text 4s linear infinite; transition: transform 0.32s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.32s, filter 0.32s; }
@keyframes hx-shine-text { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.hx-word.is-out { transform: translateY(-35%); opacity: 0; filter: blur(8px); }
.hx-word.is-in { transform: translateY(35%); opacity: 0; filter: blur(8px); transition: none; }
.hx-cta { position: relative; overflow: hidden; isolation: isolate; }
.hx-cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.65) 50%, transparent 70%) 0 0 / 250% 100% no-repeat; background-position: 160% 0; animation: hx-cta-shine 4.5s ease-in-out 1.5s infinite; }
@keyframes hx-cta-shine { 0%, 70% { background-position: 160% 0; } 100% { background-position: -60% 0; } }
.hx-cta span:last-child { transition: transform 0.2s; }
.hx-cta:hover span:last-child { transform: translateX(4px); }
.hx-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; max-width: 540px; margin: 36px 0 0; }
.hx-stats > div { padding: 0 18px; border-left: 1px solid rgba(255, 255, 255, 0.12); }
.hx-stats > div:first-child { padding-left: 0; border-left: 0; }
.hx-stats dt { font-family: var(--font-display); font-size: 30px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; color: #fff; font-variant-numeric: tabular-nums; }
.hx-stats dd { margin: 4px 0 0; font-size: 13px; line-height: 1.4; color: #9aa1a3; }
.hx-demo { transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d; transition: transform 0.25s ease-out; }
.hx-float { transform: rotate(3deg) translateZ(60px); }
.hx-chip { transition: background 0.25s, color 0.25s, border-color 0.25s; }

/* Como funciona: controles de verdade. */
.flow-card { transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s; }
.flow-card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow-2); }
.flow-card.glow > *:not(.glow-halo) { position: relative; z-index: 1; }
.flow-visual { align-content: start; }
.fv-input { display: block; padding: 12px 14px; transition: border-color 0.2s, box-shadow 0.2s; }
.fv-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--lime-bg); }
.fv-input textarea { display: block; width: 100%; padding: 0; border: 0; outline: 0; resize: none; background: transparent; color: var(--ink); font: inherit; font-size: 13.5px; line-height: 1.5; }
.fv-input textarea::placeholder { color: var(--ink-muted); }
.fv-input textarea.is-flash { animation: fv-flash 0.6s ease; }
@keyframes fv-flash { from { background: var(--lime-bg); } }
.fv-ideas { display: flex; flex-wrap: wrap; gap: 6px; }
.fv-ideas button, .fv-kind button, .fv-ratios button, .fv-durations button, .fv-actions button { font: inherit; cursor: pointer; }
.fv-ideas button { height: 30px; padding: 0 12px; border: 1px dashed var(--line-strong); border-radius: 999px; background: transparent; color: var(--ink-secondary); font-size: 12.5px; font-weight: 500; transition: border-color 0.15s, color 0.15s, background 0.15s; }
.fv-ideas button::before { content: "+ "; color: var(--highlight); }
.fv-ideas button:hover { border-style: solid; border-color: var(--accent); background: var(--lime-bg); color: var(--ink); }
.fv-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fv-thumb { object-fit: cover; }
.fv-go { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 13.5px; font-weight: 700; transition: transform 0.15s, box-shadow 0.2s; }
.fv-go:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(219, 249, 2, 0.3); }
.fv-go span { transition: transform 0.2s; }
.fv-go:hover span { transform: translateX(3px); }
.fv-kind { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--card); }
.fv-kind button { height: 34px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-secondary); font-size: 13px; font-weight: 600; transition: background 0.2s, color 0.2s; }
.fv-kind button.on { background: var(--ink); color: var(--paper); }
.fv-ratios button { display: grid; justify-items: center; align-content: end; gap: 10px; height: 88px; padding: 10px 4px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--card); font-size: 12px; font-weight: 600; color: var(--ink-secondary); transition: border-color 0.15s, background 0.15s, color 0.15s, transform 0.15s; }
.fv-durations button { display: grid; flex: 1; place-items: center; height: 36px; padding: 0; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--card); font-size: 12.5px; font-weight: 600; color: var(--ink-secondary); }
.fv-ratios button.on, .fv-durations button.on { border-color: var(--accent); background: var(--lime-bg); color: var(--lime-ink); }
.fv-ratios button:hover, .fv-durations button:hover { border-color: var(--ink-muted); color: var(--ink); }
.fv-ratios button:active, .fv-durations button:active, .fv-kind button:active { transform: scale(0.96); }
.fv-ratios i { transition: width 0.3s, height 0.3s; }
.fv-ratios .on i { animation: fv-pop 0.35s ease; }
@keyframes fv-pop { 50% { transform: scale(1.15); } }
.fv-durations { transition: opacity 0.25s; }
.fv-durations.is-off { opacity: 0.35; pointer-events: none; }
.fv-durations button { transition: border-color 0.15s, background 0.15s, color 0.15s, transform 0.15s; }
.fv-ratios .on:hover, .fv-durations .on:hover { border-color: var(--accent); color: var(--lime-ink); }
.fv-eta { display: flex; align-items: center; gap: 8px; margin: 2px 0 0; font-size: 12.5px; font-weight: 500; color: var(--ink-secondary); }
.fv-eta svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--lime-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fv-result-thumb { position: relative; overflow: hidden; padding: 0; border: 0; cursor: pointer; }
.fv-result-thumb img, .fv-result-thumb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fv-result-thumb svg { position: relative; z-index: 1; transition: transform 0.2s, opacity 0.2s; }
.fv-result-thumb:hover svg { transform: scale(1.15); }
.fv-result-thumb.is-playing svg { opacity: 0; }
.fv-result-thumb.is-playing:hover svg { opacity: 1; }
.fv-actions > * { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--card); font-size: 13px; font-weight: 600; color: var(--ink); transition: transform 0.15s, background 0.15s, border-color 0.15s; }
.fv-actions > *:hover { transform: translateY(-1px); border-color: var(--ink-muted); }
.fv-actions .primary { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.fv-actions .primary:hover { border-color: var(--accent-strong); background: var(--accent-strong); }
.fv-actions button.is-done { border-color: var(--green); color: var(--green); }
.fv-actions > * span { display: inline; height: auto; padding: 0; border: 0; background: none; color: inherit; } /* a regra antiga .fv-actions span pegava o texto do botão */
.fv-eta b { font-weight: 600; white-space: nowrap; }

/* Início rápido: "Executar", passos acendendo e o resultado que aparece. */
.qs-run-btn { display: inline-flex; flex: none; align-items: center; gap: 6px; height: 34px; margin-left: auto; padding: 0 14px 0 12px; border: 0; border-radius: 9px; background: #dbf902; color: #1a1a1a; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; transition: transform 0.15s, box-shadow 0.2s, opacity 0.2s; }
.qs-run-btn svg { width: 14px; height: 14px; fill: currentColor; }
.qs-run-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(219, 249, 2, 0.3); }
.qs-run-btn:disabled { opacity: 0.55; cursor: progress; transform: none; box-shadow: none; }
.qs-editor .copy-code-btn { margin-left: 0; }
.qs-editor .code-block { scrollbar-width: thin; scrollbar-color: #2a2d31 transparent; }
.qs-st { animation: none; transition: background 0.25s, color 0.25s; }
.qs-st.is-on { background: rgba(219, 249, 2, 0.16); color: #dbf902; box-shadow: 0 0 0 1px rgba(219, 249, 2, 0.35); animation: qs-blink 0.8s ease-in-out infinite; }
.qs-st.is-done { background: rgba(74, 222, 128, 0.12); color: #4ade80; }
@keyframes qs-blink { 50% { box-shadow: 0 0 0 4px rgba(219, 249, 2, 0.12); } }
.qs-editor .code-block.is-typing::after { content: ""; display: inline-block; width: 8px; height: 1.1em; margin-left: 2px; vertical-align: -0.2em; background: #dbf902; animation: hx-blink 0.8s steps(1) infinite; }
.qs-result { display: grid; grid-template-rows: 0fr; overflow: hidden; opacity: 0; border-top: 1px solid transparent; background: #111315; transition: grid-template-rows 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.35s, border-color 0.35s; }
.qs-result.is-in { grid-template-rows: 1fr; opacity: 1; border-top-color: rgba(255, 255, 255, 0.07); }
.qs-result { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0 14px; padding: 0 18px; }
.qs-result.is-in { padding: 12px 18px 14px; }
.qs-result > * { min-height: 0; }
.qs-result img { width: 40px; height: 72px; border-radius: 8px; object-fit: cover; }
.qs-result div { display: grid; gap: 4px; }
.qs-result code { font-family: var(--mono); font-size: 13px; color: #d7dbdc; }
.qs-result div > span { font-size: 12.5px; color: #8d9496; }
.qs-result > svg { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: rgba(74, 222, 128, 0.14); fill: none; stroke: #4ade80; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* Planos: preço por vídeo, cards que sobem no hover e borda viva no Pro. */
.price-hint { margin: -10px 0 20px; font-size: 12.5px; font-weight: 600; color: var(--lime-ink); }
.price-card { transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s; }
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-3); }
@property --pro-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.price-card.featured::after { content: ""; position: absolute; inset: -1px; z-index: 0; padding: 1px; border-radius: inherit; pointer-events: none; background: conic-gradient(from var(--pro-angle), transparent 0deg, #dbf902 50deg, transparent 110deg, transparent 360deg); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); animation: pro-spin 5s linear infinite; }
@keyframes pro-spin { to { --pro-angle: 360deg; } }
.price-card .price-badge { box-shadow: 0 6px 18px rgba(219, 249, 2, 0.35); }

/* App: botões no estilo das lojas (iPhone sólido, Android vidro). */
.app-stage .app-buttons { gap: 12px; }
.app-stage .app-store-btn { min-height: 62px; padding: 0 24px 0 18px; border-radius: 16px; transition: transform 0.18s, box-shadow 0.2s, border-color 0.2s, background 0.2s; }
.app-stage .app-store-btn svg { width: 30px; height: 30px; }
.app-stage .app-store-btn.store-ios { border-color: #fff; background: #fff; color: #0b0c0a; box-shadow: 0 14px 34px -10px rgba(255, 255, 255, 0.35); }
.app-stage .app-store-btn.store-ios svg { fill: #0b0c0a; stroke: none; }
.app-stage .app-store-btn.store-ios small { color: rgba(11, 12, 10, 0.6); }
.app-stage .app-store-btn.store-android { border-color: rgba(219, 249, 2, 0.35); background: rgba(219, 249, 2, 0.08); }
.app-stage .app-store-btn:hover { transform: translateY(-2px); }
.app-stage .app-store-btn.store-ios:hover { box-shadow: 0 18px 40px -10px rgba(255, 255, 255, 0.45); }
.app-stage .app-store-btn.store-android:hover { border-color: #dbf902; background: rgba(219, 249, 2, 0.14); box-shadow: 0 14px 36px -12px rgba(219, 249, 2, 0.45); }

@media (max-width: 760px) {
  a.hx-badge { height: auto; min-height: 34px; padding: 4px 10px 4px 4px; }
  .hx-badge span { font-size: 12.5px; }
  .hx-stats { margin-top: 28px; }
  .hx-stats > div { padding: 0 10px; }
  .hx-stats dt { font-size: 24px; }
  .hx-stats dd { font-size: 12px; }
  .hx-demo { transform: none; }
  .fv-row { flex-wrap: wrap; }
  .qs-run-btn span { display: none; }
  .qs-run-btn { padding: 0 10px; }
  .price-card:hover, .flow-card:hover { transform: none; }
  .app-stage .app-store-btn { padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .hx-word, .hx-cta::after, .price-card.featured::after, .qs-st.is-on, .fv-ratios .on i { animation: none !important; }
  .js-reveal .reveal { opacity: 1; translate: none; }
}

/* ===== Revisão mobile da home (27/10/2026, dono: "REVISE 100% A VERSÃO MOBILE"): toque ≥ 40 px, campos 16 px, texto legível ===== */
@media (max-width: 760px) {
  .fv-input textarea { font-size: 16px; }
  html .auth-tabs button { height: 40px; font-size: 13.5px; } /* /entrar: abas Entrar / Criar conta (auth.css carrega depois, por isso o html) */
  .hx-chip:nth-child(2) { display: inline-flex; } /* o ciclo do hero acende "Imagem" na cena de imagem */
  a.hx-badge { min-height: 42px; }
  .fv-ideas button { height: 40px; padding: 0 14px; font-size: 13px; }
  .fv-kind button { height: 40px; }
  .fv-durations button { height: 40px; }
  .qs-run-btn, .qs-editor .copy-code-btn { height: 40px; min-width: 40px; justify-content: center; }
  .qs-editor .code-tab-btn { height: 40px; padding: 0 9px; font-size: 12.5px; }
  .qs-bar { height: 60px; gap: 6px; }
  .qs-editor .copy-code-btn { display: none; } /* no celular sobram Executar e as 4 abas; copiar código de API pelo telefone é raro */
  /* Os celulares mantêm o tamanho de projeto (270 px) e encolhem por escala: o conteúdo de dentro não aperta. */
  .phone-duo { min-height: 380px; }
  .phone-duo .phone { width: 270px; scale: 0.7; transform-origin: 50% 100%; }
  .phone-front { margin-left: -105px; bottom: -100px; }
  .phone-back { margin-left: -225px; bottom: -130px; }
  .sf-col a { padding-right: 10px; }
  .show-kind { font-size: 12px; }
  .qs-endpoint b { font-size: 12px; }
  .qs-env b { font-size: 11.5px; }
}
@media (max-width: 400px) {
  .qs-editor .code-tab-btn { padding: 0 7px; font-size: 12px; }
  .qs-bar { padding: 0 8px; gap: 4px; }
}

/* ===== Revisão da home inteira e responsividade (27/10/2026, dono: "AGORA REVISE A HOME INTEIRA, E TBM A RESPONSIVIDADE") =====
   Varredura em 1440, 1280, 1024, 820, 768, 414, 375, 360 e 320 px: nada estoura; ajustes onde sobrava espaço ou faltava. */
@media (min-width: 640px) and (max-width: 960px) {
  /* tablet: os 3 passos em 2 colunas (o terceiro ocupa a linha) em vez de uma coluna estreita à esquerda */
  .flow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; }
  .flow-grid .flow-card:last-child { grid-column: 1 / -1; }
  /* janela do hero centralizada debaixo do texto */
  .hx-demo { justify-self: center; }
  /* planos lado a lado a partir de 720 px ficam apertados; em uma coluna, centralizados e mais largos */
  .price-grid { max-width: 520px; }
}
@media (max-width: 360px) {
  /* 320–360 px: os chips da janela do hero quebram em duas linhas em vez de sumir sob a borda */
  .hx-controls { flex-wrap: wrap; row-gap: 8px; }
  .hx-stats dd { font-size: 11.5px; }
}
