/* Arkon Labs 6.0 — visual "Arena" das páginas públicas (início, app, RPG, termos, 404),
   da Arkon API e do painel admin. Carrega depois do CSS de cada página e muda só a aparência.
   Modo claro: html[data-modo="claro"], trocado pelo js/modo.js. Sem estilo inline (a CSP bloqueia). */

:root {
  color-scheme: dark;
  --bg: #070608; --bg-2: #0c0a0d; --panel: #121014; --panel-2: #1b181e; --panel-3: #242027; --panel-hover: #1b181e;
  --line: rgba(255, 255, 255, .1); --line-2: rgba(255, 255, 255, .18); --border: rgba(255, 255, 255, .11); --border-2: rgba(255, 255, 255, .19);
  --text: #f2eff1; --text-2: #d0cbd2; --muted: #a39ea8;
  --accent: #f05252; --accent-hi: #ff6f69; --accent-2: #ff6f69; --accent-soft: rgba(240, 82, 82, .14);
  --green: #4fd1a0; --amber: #f3c065;
  --grid: rgba(255, 255, 255, .025); --chamfer-bg: var(--bg); --nav-bg: rgba(7, 6, 8, .9);
  --font: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Chakra Petch', 'Barlow', system-ui, sans-serif;
  --radius: 4px; --cut: 14px;
}
html[data-modo="claro"] {
  color-scheme: light;
  --bg: #e9e7eb; --bg-2: #f4f3f5; --panel: #ffffff; --panel-2: #f3f1f4; --panel-3: #e7e4e9; --panel-hover: #f3f1f4;
  --line: rgba(30, 12, 18, .13); --line-2: rgba(30, 12, 18, .24); --border: rgba(30, 12, 18, .14); --border-2: rgba(30, 12, 18, .26);
  --text: #17141a; --text-2: #3b3640; --muted: #5d5864;
  --accent: #d42b33; --accent-hi: #b8222a; --accent-2: #b8222a; --accent-soft: rgba(212, 43, 51, .1);
  --green: #12805a; --amber: #93600b;
  --grid: rgba(30, 12, 18, .045); --nav-bg: rgba(244, 243, 245, .92);
}

body { font-family: var(--font); font-size: 17px; line-height: 1.55; color: var(--text); background: var(--bg);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 44px 44px; }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: 0; }
::selection { background: rgba(240, 82, 82, .3); }
:focus-visible { border-radius: 0; }
.skip-link { background: var(--accent); border-radius: 0; }

/* Botões com canto cortado e letra normal */
.btn { border-radius: 0; font-family: var(--display); font-weight: 600; letter-spacing: .01em; text-transform: none;
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px); background: var(--panel-2); border-color: var(--line-2); }
.btn:hover { transform: none; filter: brightness(1.08); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: none; }
.btn.large { border-radius: 0; font-size: 17px; min-height: 54px; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--text); }
.btn.primary:focus-visible { box-shadow: inset 0 0 0 2px #fff; }

/* Topo */
.site-nav { background: var(--nav-bg); border-bottom: 1px solid var(--line); }
.logo { font-family: var(--display); letter-spacing: .18em; }
.logo img { border-radius: 50%; box-shadow: none; }
.logo b { color: var(--accent); }
.site-menu a { border-radius: 0; font-family: var(--display); font-weight: 600; font-size: 15.5px; }
.site-menu a:hover { background: var(--panel-2); }
.menu-toggle { border-radius: 0; background: var(--panel); }
.modo-btn { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line-2); background: var(--panel); color: var(--text-2); cursor: pointer; flex-shrink: 0;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
.modo-btn svg { width: 20px; height: 20px; }
.modo-btn .m-cla { display: none; }
html[data-modo="claro"] .modo-btn .m-cla { display: block; }
html[data-modo="claro"] .modo-btn .m-esc { display: none; }
@media (max-width: 860px) { html[data-modo="claro"] .site-menu { background: rgba(255, 255, 255, .98); } }

/* Rótulos, títulos e seções */
.eyebrow { font-family: var(--display); font-size: 15px; font-weight: 600; letter-spacing: .02em; text-transform: none; color: var(--accent-hi); }
.eyebrow::before { width: 8px; height: 14px; border-radius: 0; background: var(--accent); box-shadow: none; transform: skewX(-18deg); }
.lead { color: var(--text-2); }
.section-head h2 { font-style: italic; }
.badge { border-radius: 2px; background: var(--panel); }
.announcement div, .referral-banner div { border-radius: 0; }
html[data-modo="claro"] .announcement div { color: #7a1015; }
html[data-modo="claro"] .referral-banner div { color: #0b5a3f; }

/* Cartões com canto cortado e a faixa vermelha */
.feature, .step, .plan, .tour-main, .tour-side, .faq details, .cta, .legal .box, .legal-toc, .card, .lp-step, .lp-role, .lp-rpg, .lp-help, .lp-words {
  position: relative; border-radius: 0 !important; background-color: var(--panel); }
.feature::after, .plan::after, .faq details::after, .cta::after, .card::after, .lp-step::after, .lp-role::after, .lp-rpg::after, .lp-words::after, .legal .box::after {
  content: ''; position: absolute; inset: -1px; pointer-events: none;
  background:
    linear-gradient(135deg, var(--chamfer-bg) 0 calc(50% - .6px), var(--line-2) calc(50% - .6px) calc(50% + .6px), transparent calc(50% + .6px)) top left / var(--cut) var(--cut) no-repeat,
    linear-gradient(315deg, var(--chamfer-bg) 0 calc(50% - .6px), var(--line-2) calc(50% - .6px) calc(50% + .6px), transparent calc(50% + .6px)) bottom right / var(--cut) var(--cut) no-repeat,
    linear-gradient(var(--accent), var(--accent)) var(--cut) 0 / 34px 2px no-repeat; }
.feature:hover { transform: none; }
.step::before { border-radius: 0; background: var(--accent); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.plan.featured { border-color: var(--accent); background: radial-gradient(400px 220px at 100% 0, rgba(240, 82, 82, .14), transparent 70%), var(--panel); box-shadow: 0 0 0 1px var(--accent); }
.plan .tag { border-radius: 0; background: var(--accent); clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px); z-index: 1; }
.plan-icon { border-radius: 0; border: 0; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: linear-gradient(160deg, #ff5d5a, #8f1019); color: #fff; width: 52px; height: 58px; }
.plan h3 { font-style: italic; font-size: 27px; }
.plan .price { font-size: 42px; }
.plan ul { font-size: 16px; }
.periods { border-radius: 0; }
.periods button { border-radius: 0; font: 600 15px var(--display); }
.periods button.active { background: var(--accent); }
.faq summary { font-size: 17px; }
.faq details p { color: var(--text-2); font-size: 16px; }
.cta { background: radial-gradient(70% 160% at 100% 50%, rgba(190, 20, 30, .4), transparent 70%), #0a080b; color: #f2eff1; border: 1px solid rgba(255, 255, 255, .12); --chamfer-bg: var(--bg); }
.cta h2 { font-style: italic; }
.cta p { color: #d0cbd2; }
.cta .btn:not(.primary) { background: #1b181e; color: #f2eff1; border-color: rgba(255, 255, 255, .2); }
.site-foot { color: var(--muted); }
.site-foot small { font-size: 14px; }

/* ---------- Página de boas-vindas (6.0) ---------- */
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--pad); }
.lp-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 460px; align-items: center; margin-top: 26px; min-height: 540px; overflow: hidden; color: #f2eff1;
  background: radial-gradient(60% 90% at 80% 50%, rgba(190, 20, 30, .45), transparent 70%), #0a080b; border: 1px solid rgba(240, 82, 82, .45);
  clip-path: polygon(26px 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%, 0 26px); }
.lp-hero-t { padding: 52px 0 52px 54px; }
.lp-hero .eyebrow { color: #ff6f69; }
.lp-hero h1 { font-size: clamp(38px, 5vw, 62px); line-height: 1; font-style: italic; font-weight: 700; margin: 16px 0 20px; }
.lp-hero h1 em { display: block; color: #ff5a55; font-style: italic; }
.lp-hero .lead { color: #d0cbd2; font-size: 19px; max-width: 560px; }
.lp-hero .hero-actions .btn:not(.primary) { background: #1b181e; color: #f2eff1; border-color: rgba(255, 255, 255, .2); }
.lp-hero .hero-trial { color: #d0cbd2; }
.lp-stats { list-style: none; padding: 0; margin: 34px 0 0; display: flex; flex-wrap: wrap; gap: 18px 34px; }
.lp-stats li { display: flex; flex-direction: column; padding-left: 12px; border-left: 2px solid #f05252; }
.lp-stats b { font-family: var(--display); font-size: 25px; line-height: 1.1; }
.lp-stats span { font-size: 15px; color: #a39ea8; }
.lp-hero-art { display: grid; place-items: center; padding-right: 26px; }
.lp-hero-art img { width: 430px; height: auto; filter: drop-shadow(0 0 70px rgba(240, 40, 40, .5)); }
.hero-badges { margin-top: 16px; }
.lp-sec { padding-top: clamp(64px, 8vw, 96px); }
.lp-title { display: flex; align-items: center; gap: 14px; font-size: clamp(30px, 3.6vw, 42px); font-style: italic; line-height: 1.1; }
.lp-title::before { content: ''; flex: none; width: 13px; height: 30px; background: var(--accent); transform: skewX(-18deg); }
.lp-sub { color: var(--text-2); font-size: 18px; margin: 10px 0 30px 27px; max-width: 680px; }
.lp-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.lp-step { padding: 28px 26px; border: 1px solid var(--line); }
.lp-num { display: grid; place-items: center; width: 56px; height: 62px; font: 700 26px var(--display); color: #fff; background: linear-gradient(160deg, #ff5d5a, #8f1019);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); margin-bottom: 18px; }
.lp-step h3 { font-size: 24px; margin-bottom: 10px; }
.lp-step p { color: var(--text-2); font-size: 17px; }
.lp-how { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.lp-how summary { cursor: pointer; font-weight: 600; color: var(--accent-hi); font-size: 16px; }
.lp-how ol { margin: 10px 0 0; padding-left: 22px; display: grid; gap: 6px; color: var(--text-2); font-size: 16px; }
.lp-help { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 18px; padding: 20px 24px; border: 1px solid var(--line); border-left: 3px solid var(--green); }
.lp-help svg { width: 34px; height: 34px; color: var(--green); flex: none; }
.lp-help p { flex: 1 1 320px; font-size: 17px; color: var(--text-2); }
.lp-help strong { color: var(--text); }
.lp-roles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.lp-role { padding: 26px 22px; border: 1px solid var(--line); }
.lp-hex { display: grid; place-items: center; width: 56px; height: 62px; color: #fff; background: linear-gradient(160deg, #ff5d5a, #8f1019); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.lp-hex svg { width: 26px; height: 26px; }
.lp-role h3 { font-size: 23px; font-style: italic; margin: 18px 0 12px; }
.lp-role ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.lp-role li { position: relative; padding-left: 22px; color: var(--text-2); font-size: 16.5px; }
.lp-role li::before { content: ''; position: absolute; left: 2px; top: 9px; width: 9px; height: 9px; background: var(--accent); transform: rotate(45deg); }
.lp-easy { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lp-easy li { display: flex; flex-direction: column; padding: 18px 20px; border-left: 1px solid var(--line); }
.lp-easy li:first-child { border-left: 0; }
.lp-easy b { font-family: var(--display); font-size: 21px; font-style: italic; color: var(--accent-hi); line-height: 1.2; }
.lp-easy span { color: var(--text-2); font-size: 16px; }
.lp-demo { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 18px; align-items: stretch; }
.lp-chat { display: flex; flex-direction: column; background: #0b141a; color: #e9edef; border: 1px solid rgba(255, 255, 255, .1); clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px); }
.lp-chat header { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: #202c33; }
.lp-chat header b { display: block; font-size: 16px; }
.lp-chat header small { color: #8696a0; font-size: 14px; }
.lp-chat-av { display: grid; place-items: center; width: 40px; height: 44px; flex: none; font: 700 15px var(--display); color: #fff; background: linear-gradient(160deg, #ff5d5a, #8f1019); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.lp-chat-b { display: flex; flex-direction: column; gap: 8px; padding: 16px; flex: 1; }
.lp-chat-b .sys { align-self: center; font-size: 14px; color: #8696a0; background: #182229; padding: 4px 10px; border-radius: 7px; }
.lp-chat-b .m { max-width: 80%; padding: 7px 11px; border-radius: 8px; font-size: 15.5px; line-height: 1.4; background: #202c33; }
.lp-chat-b .m b { display: block; font-size: 14px; font-weight: 600; }
.lp-chat-b .bot { box-shadow: inset 3px 0 0 #f05252; }
.lp-chat-b .bot b { color: #ff6f69; }
.lp-chat-b .u { align-self: flex-end; background: #005c4b; }
.lp-chat-b .u b { color: #a8e6c9; }
.lp-chat-b .del { color: #8696a0; font-style: italic; }
.lp-chat-b .warn { box-shadow: inset 3px 0 0 #f3c065; }
.lp-rpg { display: flex; flex-direction: column; gap: 12px; padding: 26px; border: 1px solid var(--line); }
.lp-rpg h3 { font-size: 25px; font-style: italic; }
.lp-rpg > p:not(.eyebrow) { color: var(--text-2); font-size: 16.5px; }
.lp-rpg code { font-size: 15px; color: var(--accent-hi); }
.lp-rpg .btn { align-self: flex-start; margin-top: auto; }
.lp-rpg-card { padding: 16px; background: #0b090c; color: #f2eff1; border: 1px solid rgba(255, 255, 255, .1); }
.lp-rpg-h { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.lp-rpg-h b { display: block; font: italic 700 22px var(--display); }
.lp-rpg-h small { color: #a39ea8; font-size: 14.5px; }
.lp-chat-av.red { background: linear-gradient(160deg, #5b151d, #1d0609); color: #ff918c; }
.lp-bar-l { display: flex; justify-content: space-between; font-size: 14px; color: #a39ea8; margin: 10px 0 5px; }
.lp-bar-l b { color: #f2eff1; font-weight: 600; }
.lp-bar { height: 8px; background: rgba(255, 255, 255, .1); }
.lp-bar i { display: block; height: 100%; background: linear-gradient(90deg, #8f1019, #f05252); }
.lp-bar.hp i { background: linear-gradient(90deg, #1f8f63, #4fd1a0); }
.lp-bar .w84 { width: 84%; }
.lp-bar .w72 { width: 72%; }
.lp-attr { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.lp-attr li { display: flex; flex-direction: column; align-items: center; padding: 8px 4px; background: rgba(255, 255, 255, .05); }
.lp-attr b { font: 700 21px var(--display); }
.lp-attr span { font-size: 14px; color: #a39ea8; }
.lp-words { margin-top: 18px; border: 1px solid var(--line); padding: 0 22px; }
.lp-words summary { cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 17px; color: var(--accent-hi); }
.lp-words dl { margin: 0 0 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 26px; }
.lp-words dt { font-weight: 700; font-family: var(--display); }
.lp-words dd { margin: 2px 0 0; color: var(--text-2); font-size: 16px; }
.lp .faq { max-width: none; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.lp .cta { margin: 0; max-width: none; }
.lp main { padding-bottom: 80px; }

/* ---------- Páginas de texto e do app no modo claro ---------- */
html[data-modo="claro"] .app-in-app { color: #0b5a3f; }
html[data-modo="claro"] .app-ios { color: #6b4507; }
html[data-modo="claro"] .float-card, html[data-modo="claro"] .app-notice-card { background: rgba(255, 255, 255, .95); }
html[data-modo="claro"] .notfound .code { background: linear-gradient(180deg, #17141a, #8b8590); -webkit-background-clip: text; background-clip: text; }

/* ---------- Celular ---------- */
@media (max-width: 960px) {
  .lp-hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .lp-hero-t { padding: 34px 24px 8px; }
  .lp-hero-art { padding: 6px 0 28px; }
  .lp-hero-art img { width: min(300px, 80%); }
  .lp-steps, .lp-roles, .lp-demo { grid-template-columns: minmax(0, 1fr); }
  .lp-easy { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-easy li:nth-child(3) { border-left: 0; }
  .lp-easy li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 600px) {
  body { font-size: 16.5px; }
  .modo-btn { width: 40px; height: 40px; }
  .lp-hero { margin-top: 14px; clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px); }
  .lp-hero h1 { font-size: 38px; }
  .lp-hero .lead { font-size: 17px; }
  .lp-stats { gap: 14px 22px; }
  .lp-stats b { font-size: 21px; }
  .lp-sub { margin-left: 0; font-size: 17px; }
  .lp-title { font-size: 28px; }
  .lp-title::before { width: 10px; height: 24px; }
  .lp-easy li { padding: 14px; }
  .lp-easy b { font-size: 18px; }
  .lp-words dl, .lp .faq { grid-template-columns: minmax(0, 1fr); }
  .lp-chat-b .m { max-width: 90%; }
  .lp .cta { margin: 0; }
  .cta .hero-actions .btn { flex: 1 1 100%; }
}

/* ---------- Arkon API e painel admin ---------- */
.topbar { background: var(--nav-bg); }
.modo-btn.sm { width: 38px; height: 38px; }
html[data-modo="claro"] .rpg-tabs, html[data-modo="claro"] .rpg-search { background: var(--nav-bg); }
html[data-modo="claro"] .field input, html[data-modo="claro"] .field textarea, html[data-modo="claro"] .field select,
html[data-modo="claro"] .input-ico.search input, html[data-modo="claro"] .money-wrap, html[data-modo="claro"] .inline-search input,
html[data-modo="claro"] .inline-search select, html[data-modo="claro"] .give-balances span { background: var(--bg-2); color: var(--text); }
html[data-modo="claro"] .field select option, html[data-modo="claro"] .city-go option { background: #fff; color: var(--text); }
/* Código e respostas da API ficam escuros nos dois modos, como num editor. */
.code, .json { color-scheme: dark; }
html[data-modo="claro"] .sidebar { background: rgba(255, 255, 255, .96); }
