/* Páginas públicas do MyOwnBot. Paleta e fontes exatamente como start.mjs as imprimiu
   (palette white-link-blue, type geist, radius soft). Depois delas, só o CSS que vive dentro
   das telas desenhadas (Discord e aplicativo) e o --p-h de cada grupo de cartões. */
:root {
  --p-bg: #ffffff; --p-surface: #f4f4f4; --p-ink: #111111; --p-muted: #6b6b6b;
  --p-accent: #1a4be0; --p-accent-ink: #ffffff; --p-action: #1a4be0; --p-action-ink: #ffffff;
  --p-inv-bg: #111111; --p-inv-surface: #1e1e1e; --p-inv-ink: #ffffff; --p-inv-muted: #9a9a9a;
  --p-inv-accent: #ffffff; --p-inv-accent-ink: #111111; --p-inv-action: #ffffff; --p-inv-action-ink: #111111;
  --font-display: "Geist", system-ui, sans-serif;
  --font-text: "Geist", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --display-weight: 500;
  --display-tracking: -0.035em;
  --display-tracking-xl: -0.045em;
}

/* o logo do cliente no lugar da marca sorteada */
.nav__logo .site-logo { width: 28px; height: 28px; border-radius: 7px; flex: none; }
.nav__user { display: inline-flex; align-items: center; gap: var(--s-2); }
.nav__user img { border-radius: 50%; }
.nav__user span { max-width: 9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.login-error { color: #b42318; }

/* um grupo de cartões, uma altura de painel */
#recursos .panel { --p-h: 300px; }
@media (max-width: 639px) { #recursos .panel { --p-h: 220px; } }
.menu-card__panel { display: flex; align-items: flex-end; padding: var(--s-4); background: #1e1f22; }
.muted-lead { color: var(--muted); }
#jogos code { font-family: var(--font-mono); font-size: .9em; }
.plan-for { color: var(--ink); }
.plan-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.plan-list li { padding-left: 24px; position: relative; }
.plan-list li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 10px; height: 6px; border-left: 2px solid var(--action); border-bottom: 2px solid var(--action); transform: rotate(-45deg); }

/* ------------------------------------------------------------------ Discord (dc-) */
.dc {
  --dc-bg: #313338; --dc-deep: #2b2d31; --dc-darker: #1e1f22; --dc-text: #dbdee1; --dc-soft: #b5bac1; --dc-mute: #949ba4;
  --dc-blurple: #5865f2; --dc-green: #248046; --dc-red: #da373c;
  background: var(--dc-bg); color: var(--dc-text); font: 400 13px/1.45 var(--font-text);
  border: 1px solid rgb(0 0 0 / .25); border-radius: 12px; box-shadow: 0 24px 48px -16px rgb(17 17 17 / .35);
  text-align: left; letter-spacing: 0;
}
.dc b { color: #fff; font-weight: 500; }
.dc-window { width: 520px; padding: 16px 16px 20px; }
.dc-card { width: 420px; padding: 14px 16px 18px; }
.dc-channel { margin: 0 0 12px; color: var(--dc-mute); font-weight: 500; }
.dc-msg { display: flex; gap: 12px; }
.dc-msg + .dc-msg { margin-top: 14px; }
.dc-avatar { border-radius: 50%; flex: none; width: 36px; height: 36px; }
.dc-msg__body { min-width: 0; flex: 1; }
.dc-msg__head { margin: 0; display: flex; align-items: baseline; gap: 6px; }
.dc-name { color: #fff; font-weight: 500; }
.dc-app { background: var(--dc-blurple); color: #fff; font-size: 10px; font-weight: 500; padding: 0 4px; border-radius: 3px; }
.dc-time { color: var(--dc-mute); font-size: 12px; }
.dc-text { margin: 2px 0 0; }
.dc-embed { margin-top: 6px; background: var(--dc-deep); border-left: 4px solid var(--dc-blurple); border-radius: 4px; padding: 10px 12px; }
.dc-embed__title { margin: 0; color: #fff; font-weight: 500; }
.dc-embed__meta { margin: 2px 0 0; color: var(--dc-soft); font-size: 12px; }
.dc-groups { margin-top: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.dc-group__name { margin: 0; color: #fff; font-size: 12px; font-weight: 500; }
.dc-group__name span { color: var(--dc-mute); font-weight: 400; }
.dc-group__who { margin: 0; font-size: 12px; color: var(--dc-text); }
.dc-buttons { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.dc-btn { background: #4e5058; color: #fff; font-size: 12px; font-weight: 500; padding: 6px 12px; border-radius: 3px; }
.dc-btn--green { background: var(--dc-green); }
.dc-btn--red { background: var(--dc-red); }
.dc-select, .dc-field { margin-top: 8px; display: flex; justify-content: space-between; gap: 8px; background: var(--dc-darker); border-radius: 4px; padding: 7px 10px; }
.dc-field__label { color: var(--dc-mute); }
.dc-system { margin: 10px 0 0 48px; color: var(--dc-soft); font-size: 12px; }
.dc-system--small { margin-left: 0; }
.dc-ok { color: #23a55a; margin-right: 4px; }
.dc-roles { margin-top: 10px; display: grid; gap: 10px; }
.dc-bar { margin: 4px 0; height: 6px; border-radius: 3px; background: var(--dc-darker); overflow: hidden; }
.dc-bar i { display: block; height: 100%; background: var(--dc-blurple); }
.dc-bar i.is-full { background: #23a55a; }
.dc-voice { width: 300px; background: var(--dc-deep); }
.dc-cat { margin: 0 0 6px; color: var(--dc-mute); font-size: 11px; font-weight: 500; }
.dc-vc { margin: 2px 0; padding: 4px 8px 4px 30px; border-radius: 4px; color: var(--dc-mute); position: relative; }
.dc-vc::before { content: ""; position: absolute; left: 8px; top: 50%; width: 16px; height: 16px; margin-top: -8px; opacity: .8;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23949ba4' d='M2 6h3l4-3v10L5 10H2zM11 5.5a3.5 3.5 0 0 1 0 5l-.8-.8a2.4 2.4 0 0 0 0-3.4zM12.6 3.9a5.8 5.8 0 0 1 0 8.2l-.8-.8a4.6 4.6 0 0 0 0-6.6z'/%3E%3C/svg%3E") center/16px no-repeat; }
.dc-vc--live { color: var(--dc-text); background: #35373c; }
.dc-people { list-style: none; margin: 2px 0 6px; padding: 0 0 0 30px; display: grid; gap: 4px; }
.dc-people li { display: flex; align-items: center; gap: 8px; color: var(--dc-soft); }
.dc-face { width: 18px; height: 18px; border-radius: 50%; flex: none; }
.dc-mini { color: #dbdee1; font: 500 13px/1 var(--font-text); display: flex; align-items: center; gap: 8px; }
.dc-dot { width: 8px; height: 8px; border-radius: 50%; background: #23a55a; }
.dc-commands { width: 520px; padding: 0; overflow: hidden; }
.dc-cmd-head { margin: 0; padding: 12px 16px 8px; color: var(--dc-mute); font-size: 11px; font-weight: 500; }
.dc-commands ul { list-style: none; margin: 0; padding: 0 8px; }
.dc-commands li { display: flex; gap: 12px; align-items: baseline; padding: 8px; border-radius: 4px; }
.dc-commands li.is-on { background: #3f4147; }
.dc-cmd { color: #fff; font-weight: 500; white-space: nowrap; }
.dc-cmd-desc { color: var(--dc-soft); font-size: 12px; }
.dc-input { margin: 8px 16px 16px; background: #383a40; border-radius: 8px; padding: 10px 14px; color: #fff; }

/* ------------------------------------------------------------------ aplicativo (app-) */
.app-win { --a-bg: #313338; --a-side: #2b2d31; --a-deep: #1e1f22; --a-text: #dbdee1; --a-soft: #b5bac1; --a-mute: #949ba4; --a-blurple: #5865f2;
  color: var(--a-text); font: 400 13px/1.45 var(--font-text); letter-spacing: 0; text-align: left; }
.app-chrome { display: flex; justify-content: space-between; align-items: center; height: 32px; padding: 0 12px; background: var(--a-deep); color: var(--a-mute); font-size: 12px; font-weight: 500; }
.app-chrome__ctl { letter-spacing: 14px; }
.app-h { margin: 0 0 10px; color: #fff; font-size: 15px; font-weight: 500; }
.app-sub { margin: -6px 0 0; color: var(--a-mute); font-size: 12px; }
.app-chip { font-size: 12px; padding: 1px 8px; border-radius: 4px; white-space: nowrap; }
.app-chip--open { background: rgb(35 165 90 / .16); color: #57d28f; }
.app-chip--work { background: rgb(88 101 242 / .18); color: #a9b0f8; }
.app-chip--done { background: #3f4147; color: var(--a-soft); }
.app-btn { display: inline-block; background: #4e5058; color: #fff; padding: 5px 12px; border-radius: 4px; font-size: 12px; font-weight: 500; }
.app-btn--primary { background: var(--a-blurple); }
.app-btn--red { background: #da373c; }
.app-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }

/* app-frame (receita do kit, sections-library.md) com as cores do aplicativo */
.app.ui { --u-bg: #313338; --u-line: rgb(0 0 0 / .3); --u-border: rgb(0 0 0 / .25); --u-r: 16px;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); margin-top: var(--s-7); background: var(--u-bg); border: 1px solid var(--u-border); border-radius: var(--u-r); box-shadow: 0 32px 64px -24px rgb(17 17 17 / .35); overflow: hidden; }
.app > .app__pane { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.app > .app__pane + .app__pane { border-left: 1px solid var(--u-line); }
.app > .app__pane::after { content: ""; position: absolute; inset: auto 0 0 0; height: 64px; background: linear-gradient(transparent, var(--u-bg)); pointer-events: none; }
.app-list { display: grid; grid-template-columns: 150px minmax(0, 1fr); }
.app-side { background: var(--a-side); padding: 10px 8px; min-height: 100%; }
.app-side__title { margin: 10px 8px 4px; color: var(--a-mute); font-size: 11px; font-weight: 500; }
.app-side__item { margin: 0; padding: 4px 8px; border-radius: 4px; color: var(--a-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-side__item.is-on { background: #404249; color: #fff; }
.app-events { padding: 14px 12px; }
.app-ev { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 8px; padding: 8px 10px; border-radius: 6px; }
.app-ev.is-on { background: #404249; box-shadow: inset 3px 0 0 var(--a-blurple); }
.app-ev__when { color: #fff; font-weight: 500; }
.app-ev__what { grid-row: 2; color: var(--a-mute); font-size: 12px; }
.app-ev .app-chip { grid-row: 1 / span 2; align-self: center; }
.app-open { padding: 44px 20px 20px; }
.app-open__head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.app-roster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.app-roster__group { background: var(--a-side); border-radius: 8px; padding: 10px 12px; }
.app-roster__name { margin: 0 0 6px; color: #fff; font-weight: 500; }
.app-roster__name span { color: var(--a-mute); font-weight: 400; }
.app-roster__row { margin: 0; display: flex; justify-content: space-between; padding: 3px 0; border-top: 1px solid rgb(255 255 255 / .05); }
.app-roster__row span:last-child { color: var(--a-mute); font-size: 12px; }
@media (min-width: 1024px) and (max-width: 1279px) { .app.ui { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } .app-side { display: none; } .app-list { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1023px) {
  .app.ui { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .app > .app__pane--list { max-height: 252px; }
  .app > .app__pane--list::after { display: none; }
  .app-side { display: none; }
  .app-list { grid-template-columns: minmax(0, 1fr); }
  .app > .app__pane + .app__pane { border-left: 0; border-top: 1px solid var(--u-line); }
  .app-open { padding-top: 20px; }
}
@media (max-width: 639px) {
  .app.ui { grid-template-rows: minmax(0, 1fr); }
  .app > .app__pane--list { display: none; }
  .app > .app__pane + .app__pane { border-top: 0; }
  .app-roster { grid-template-columns: minmax(0, 1fr); }
}

/* telas do momento (pinned-chapters) */
.app-shot { background: var(--a-bg); border: 1px solid rgb(0 0 0 / .25); border-radius: 14px; overflow: hidden; height: 100%; }
.app-shot__body { padding: 18px 20px; }
.mo-pc__visual .app-shot { min-height: 100%; }
.app-templates { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.app-templates span { border: 1px solid #3f4147; color: var(--a-soft); border-radius: 8px; padding: 6px 10px; }
.app-templates span.is-on { border-color: var(--a-blurple); background: rgb(88 101 242 / .16); color: #fff; }
.app-box { background: var(--a-side); border-radius: 8px; padding: 14px; }
.app-box__head { margin: 0 0 10px; display: flex; justify-content: space-between; color: #fff; font-weight: 500; }
.app-box__head span { color: var(--a-mute); font-weight: 400; }
.app-progress { height: 6px; border-radius: 3px; background: var(--a-deep); margin-bottom: 12px; overflow: hidden; }
.app-progress i { display: block; height: 100%; background: var(--a-blurple); }
.app-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.app-steps li { padding-left: 24px; position: relative; }
.app-steps li::before { content: ""; position: absolute; left: 0; top: 3px; width: 12px; height: 12px; border-radius: 50%; border: 1px solid #4e5058; }
.app-steps li.is-done::before { border: 0; background: #23a55a; }
.app-steps li.is-run::before { border: 2px solid var(--a-blurple); border-top-color: transparent; }
.app-steps li.is-todo { color: #80848e; }
.app-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; background: var(--a-side); border-radius: 8px; padding: 14px; }
.app-stats span { display: block; color: var(--a-mute); font-size: 11px; }
.app-stats strong { color: var(--a-text); font-weight: 500; }
.app-stats strong.is-ok { color: #23a55a; }
.app-notice { margin: 0; padding: 8px 12px; border-radius: 6px; border: 1px solid rgb(240 178 50 / .4); background: rgb(240 178 50 / .1); color: #f0b232; }
.app-log { background: var(--a-deep); border-radius: 6px; padding: 8px 10px; font: 400 12px/1.9 var(--font-mono); }
.app-log p { margin: 0; display: flex; gap: 12px; white-space: nowrap; overflow: hidden; }
.app-log__t { color: #80848e; }
.app-log__lv { width: 40px; flex: none; }
.app-log__lv.is-info { color: #00a8fc; }
.app-log__lv.is-warn { color: #f0b232; }
.app-log__lv.is-error { color: #f23f43; }

/* peças dentro dos frames */
.hero-frame__piece { --ax: 40px; --ay: 48px; }
.feature-piece { --fit-max: 420px; --ax: max(24px, 50% - 210px); --ay: 40px; --ay-sm: 24px; }
.feature-piece .dc-card, .feature-piece .dc-voice { width: 100%; }
.commands-piece { --w: 520px; --ay: 56px; }
@media (max-width: 639px) {
  .dc-window, .dc-commands { width: 340px; }
  .hero-frame__piece { --ax: 16px; --ay: 16px; }
}

/* /precos: a tabela de comparação (comparison-table) */
.cmp__row { min-height: 48px; align-items: center; border-bottom: 1px solid var(--line); }
.cmp__head { font-weight: 500; }
.cmp-yes { display: inline-block; width: 12px; height: 7px; border-left: 2px solid var(--action); border-bottom: 2px solid var(--action); transform: rotate(-45deg); }
.cmp-no { color: var(--muted); }
.hero--pricing .hero-text { align-content: start; }
@media (max-width: 639px) { .cmp__row { grid-template-columns: 2fr 1fr 1fr; } .cmp__row > * { grid-column: auto !important; } }

/* ---- correções da primeira rodada do gate */
.tag::before { content: "["; } .tag::after { content: "]"; }
.app-pane-in { height: 100%; }
.app-templates { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; }
.app-templates li { padding-left: 22px; position: relative; color: var(--a-soft); }
.app-templates li::before { content: ""; position: absolute; left: 0; top: 3px; width: 12px; height: 12px; border-radius: 50%; border: 1px solid #6d6f78; }
.app-templates li.is-on { color: #fff; }
.app-templates li.is-on::before { border: 4px solid var(--a-blurple); width: 6px; height: 6px; }
.app-log p { white-space: normal; overflow: visible; }
/* o fallback estático dos painéis com efeito: o mesmo céu claro do chão, em duas paradas suaves */
#recursos .panel[data-fx] { background: radial-gradient(120% 90% at 20% 0%, #dfe7ef 0%, #c6d3df 55%, #b7c6d4 100%); }
.hero-frame { background: linear-gradient(160deg, #dfe6ee, #c3cfdb); }
/* o nome grande do fechamento, medido por largura */
.close--word .close__word { font-size: min(18vw, 262px); line-height: 1.02; overflow: visible; white-space: nowrap; }
@media (max-width: 639px) { .close--word .close__word { font-size: 17.5vw; } }
@media (max-width: 639px) {
  #recursos { --hm: 2; }
  #recursos .panel { --p-h: 200px; }
  #precos { --hm: 2; }
}

/* ---- rodada 2 */
.pricing__grid { align-items: stretch; }
.faq-visual { margin-top: var(--s-6); }
.dc-auth { width: 340px; text-align: center; padding: 24px; }
.dc-auth__logo { border-radius: 14px; }
.dc-auth__title { margin: 12px 0 4px; color: #fff; font-size: 16px; font-weight: 500; }
.dc-auth__sub { margin: 12px 0 6px; color: var(--dc-mute); font-size: 12px; text-align: left; }
.dc-auth__list { margin: 0; padding: 10px 12px; list-style: none; background: var(--dc-deep); border-radius: 6px; text-align: left; }
.dc-auth__note { margin: 10px 0 0; color: var(--dc-soft); font-size: 12px; text-align: left; }
.dc-auth__buttons { justify-content: flex-end; margin-top: 16px; }
.dc-btn--ghost { background: transparent; }
.dc-btn--blurple { background: var(--dc-blurple); }
/* o momento em repouso (celular, movimento reduzido, antes de montar): as telas cabem na linha e a seção fica em dois screens */
[data-moment="pinned-chapters"]:not(.is-live) .mo-pc__visual > .app-shot { max-height: 30svh; overflow: hidden; }
@media (min-width: 640px) { main > #comecar[data-moment]:not(.is-live) { height: calc(2 * 100svh); } }
[data-moment="pinned-chapters"].is-live .mo-pc__visual > .app-shot { height: 100%; }
.dc-auth { width: min(340px, 100%); }
.faq-visual { max-width: 100%; }
.both-plans .rows__name { font-weight: 400; }
@media (max-width: 639px) { #precos .pricing__grid { row-gap: var(--s-7); } }
