/* ==========================================================================
   Resulta CRM — layout canônico dos guias (herdado do tutorial BrAIn)
   Fonte única: todos os /tutorial/* devem linkar este arquivo.
   Versão: 20260821e
   ========================================================================== */

        :root { --brand: #4f46e5; --sbw: 272px; color-scheme: light; }
        * { box-sizing: border-box; }
        html { scroll-behavior: smooth; }
        body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: #1e293b; background: #ffffff; line-height: 1.6; -webkit-font-smoothing: antialiased; }
        a { color: var(--brand); }
        [data-lucide] { width: 18px; height: 18px; vertical-align: -3px; }

        .sidebar { position: fixed; top: 0; left: 0; width: var(--sbw); height: 100vh; overflow-y: auto; background: #0f172a; color: #cbd5e1; padding: 22px 16px 40px; z-index: 40; }
        .sidebar .brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 18px; border-bottom: 1px solid #1e293b; margin-bottom: 14px; }
        .sidebar .brand img { height: 26px; width: auto; }
        .sidebar .brand span { font-weight: 700; color: #fff; font-size: 14.5px; line-height: 1.25; }
        .sidebar .grp { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: #64748b; padding: 16px 10px 6px; }
        .sidebar nav a { display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 9px; color: #cbd5e1; text-decoration: none; font-size: 14.5px; transition: background .12s, color .12s; }
        .sidebar nav a [data-lucide] { color: #64748b; flex-shrink: 0; transition: color .12s; }
        .sidebar nav a:hover { background: #1e293b; color: #fff; }
        .sidebar nav a.active { background: color-mix(in srgb, var(--brand) 18%, #0f172a); color: #fff; }
        .sidebar nav a.active [data-lucide] { color: var(--brand); }

        .content { margin-left: var(--sbw); max-width: 900px; padding: 40px 40px 90px; }
        .page-head h1 { font-size: 30px; margin: 0 0 10px; line-height: 1.2; }
        .page-head p { font-size: 17px; color: #475569; margin: 0 0 8px; max-width: 660px; }

        /* Tour visual: usa capturas da empresa Demo para ligar a explicação à tela real. */
        .brain-tour { margin-top: 26px; overflow: hidden; background: #fff; border: 1px solid #e2e8f0; border-radius: 20px; box-shadow: 0 8px 26px rgba(15,23,42,.08); }
        .brain-tour__intro { padding: 24px 26px 20px; background: linear-gradient(125deg, color-mix(in srgb, var(--brand) 12%, #fff), #fff 62%); border-bottom: 1px solid #e2e8f0; }
        .brain-tour__eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #166534; font-weight: 800; }
        .brain-tour__eyebrow [data-lucide] { width: 15px; height: 15px; color: var(--brand); }
        .brain-tour__intro h2 { margin: 8px 0 5px; font-size: 23px; line-height: 1.25; color: #0f172a; }
        .brain-tour__intro p { margin: 0; color: #475569; max-width: 660px; }
        .tour-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 16px 18px 0; }
        .tour-tab { appearance: none; border: 1px solid #e2e8f0; background: #f8fafc; border-radius: 12px; padding: 11px 12px; text-align: left; cursor: pointer; color: #475569; font: inherit; font-size: 13px; line-height: 1.35; transition: transform .16s, border-color .16s, background .16s, box-shadow .16s; }
        .tour-tab:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--brand) 40%, #e2e8f0); background: #fff; }
        .tour-tab b { display: block; color: #1e293b; font-size: 13.5px; margin-bottom: 2px; }
        .tour-tab.active { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, #fff); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 12%, transparent); }
        .tour-tab.active b { color: #166534; }
        .tour-stage { padding: 18px; }
        .tour-stage__copy { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin: 0 4px 14px; }
        .tour-stage__step { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 13px; font-weight: 800; margin-top: 2px; }
        .tour-stage__title { margin: 0; color: #0f172a; font-size: 18px; }
        .tour-stage__description { margin: 3px 0 0; color: #64748b; font-size: 14px; }
        .tour-open { display: inline-flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap; color: #fff; background: var(--brand); border: 0; border-radius: 9px; padding: 9px 12px; font-size: 13px; font-weight: 700; text-decoration: none; }
        .tour-open:hover { filter: brightness(.94); color: #fff; }
        .tour-open [data-lucide] { width: 15px; height: 15px; }
        .tour-shot { position: relative; border: 1px solid #dbe5ec; border-radius: 13px; overflow: hidden; background: #e2e8f0; margin: 0; }
        .tour-shot img { display: block; width: 100%; height: auto; }
        .tour-shot figcaption { position: absolute; right: 10px; bottom: 10px; padding: 4px 8px; border-radius: 99px; background: rgba(15,23,42,.78); color: #f8fafc; font-size: 11px; backdrop-filter: blur(6px); }
        .tour-next { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 22px 19px; color: #64748b; font-size: 13px; }
        .tour-next button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: var(--brand); font: inherit; font-weight: 700; cursor: pointer; padding: 4px; }
        .tour-next button [data-lucide] { width: 15px; height: 15px; }
        .brain-quickstart { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 18px; border-top: 1px solid #e2e8f0; background: #f8fafc; }
        .brain-quickstart div { padding: 7px 8px; }
        .brain-quickstart b { display: block; color: #1e293b; font-size: 13px; margin-bottom: 2px; }
        .brain-quickstart span { display: block; color: #64748b; font-size: 12px; line-height: 1.4; }
        .brain-quickstart i { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin-bottom: 7px; border-radius: 7px; background: color-mix(in srgb, var(--brand) 13%, #fff); color: var(--brand); font-style: normal; font-size: 11px; font-weight: 800; }

        section.card { background: #fff; border-radius: 18px; padding: 26px 28px 28px; margin: 26px 0 0; box-shadow: 0 4px 18px rgba(15,23,42,.06); scroll-margin-top: 24px; }
        section.card h2 { margin: 0 0 6px; font-size: 22px; display: flex; align-items: center; gap: 12px; }
        section.card h2 .ic { background: color-mix(in srgb, var(--brand) 14%, #fff); color: var(--brand); width: 38px; height: 38px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
        section.card h2 .ic [data-lucide] { width: 20px; height: 20px; }
        section.card .sub { color: #64748b; margin: 0 0 16px; }
        section.card h3 { font-size: 16px; margin: 22px 0 8px; }

        .kids { background: #f0fdf4; border-left: 4px solid var(--brand); border-radius: 8px; padding: 12px 16px; margin: 14px 0; font-size: 15px; }
        .kids .hd { display: flex; align-items: center; gap: 8px; font-weight: 700; color: #166534; margin-bottom: 4px; }
        .kids .hd [data-lucide] { color: var(--brand); }

        ul.clean { padding-left: 20px; margin: 10px 0; }
        ul.clean li { margin: 6px 0; }
        code.inline { background: #eef2ff; color: #3730a3; padding: 2px 7px; border-radius: 6px; font-size: 13.5px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-word; }

        .tip, .warn { border-radius: 12px; padding: 13px 16px 13px 15px; margin: 16px 0; font-size: 14.5px; display: flex; gap: 10px; }
        .tip { background: #fffbeb; border: 1px solid #fde68a; }
        .tip [data-lucide] { color: #d97706; flex-shrink: 0; margin-top: 2px; }
        .tip b { color: #92400e; }
        .warn { background: #fef2f2; border: 1px solid #fecaca; }
        .warn [data-lucide] { color: #dc2626; flex-shrink: 0; margin-top: 2px; }
        .warn b { color: #991b1b; }

        table.mini { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14px; }
        table.mini td, table.mini th { padding: 8px 10px; border-bottom: 1px solid #e2e8f0; vertical-align: top; text-align: left; }
        table.mini th { color: #64748b; font-size: 12.5px; text-transform: uppercase; letter-spacing: .03em; }
        table.mini td:first-child { white-space: nowrap; width: 1%; font-weight: 600; }
        .pill { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 12.5px; font-weight: 700; }
        .pill.hot { background: #dcfce7; color: #166534; } .pill.warm { background: #fef9c3; color: #854d0e; } .pill.cold { background: #fee2e2; color: #991b1b; }
        .foot { color: #94a3b8; font-size: 13px; margin-top: 34px; }

        .example { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 12px; padding: 14px 16px; margin: 16px 0; font-size: 14.5px; }
        .example .hd { display: flex; align-items: center; gap: 8px; font-weight: 700; color: #1e40af; margin-bottom: 8px; }
        .example .hd [data-lucide] { color: #3b82f6; }
        .example table.mini { margin: 6px 0 0; }
        .example table.mini td { border-bottom: 1px solid #dbeafe; }
        .example p { margin: 8px 0 0; }

        details.faq { background: #fff; border-radius: 12px; margin: 10px 0 0; box-shadow: 0 2px 10px rgba(15,23,42,.05); overflow: hidden; }
        details.faq > summary { cursor: pointer; list-style: none; padding: 14px 18px; font-weight: 600; font-size: 15px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
        details.faq > summary::-webkit-details-marker { display: none; }
        details.faq > summary .chev { transition: transform .18s ease; color: #94a3b8; }
        details.faq[open] > summary .chev { transform: rotate(180deg); }
        details.faq .body { padding: 0 18px 16px; color: #475569; font-size: 14.5px; }

        .menubtn { display: none; }
        @media (max-width: 900px) {
            .sidebar { position: sticky; width: 100%; height: auto; max-height: none; padding: 12px 14px; }
            .sidebar .brand { margin-bottom: 0; padding-bottom: 12px; }
            .sidebar nav, .sidebar .grp { display: none; }
            .sidebar.open nav, .sidebar.open .grp { display: block; }
            .menubtn { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; background: #1e293b; color: #fff; border: 0; border-radius: 8px; padding: 6px 10px; font-size: 13px; cursor: pointer; }
            .content { margin-left: 0; padding: 24px 18px 70px; }
            .page-head h1 { font-size: 25px; }
            .brain-quickstart { grid-template-columns: repeat(2, 1fr); }
        }
        @media (max-width: 620px) {
            .brain-tour__intro { padding: 20px 18px 17px; }
            .tour-tabs { grid-template-columns: 1fr; padding: 13px 14px 0; }
            .tour-stage { padding: 14px; }
            .tour-stage__copy { display: grid; grid-template-columns: 28px 1fr; gap: 10px; margin: 0 1px 12px; }
            .tour-open { grid-column: 2; justify-self: start; margin-top: 2px; }
            .tour-next { padding: 0 17px 17px; }
        }
        
    

/* ===== Aliases: outros guias herdam o layout do BrAIn ===== */
.side { position: fixed; top: 0; left: 0; width: var(--sbw); height: 100vh; overflow-y: auto; background: #0f172a; color: #cbd5e1; padding: 22px 16px 40px; z-index: 40; }
.side .brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 18px; border-bottom: 1px solid #1e293b; margin-bottom: 14px; }
.side .brand img { height: 26px; width: auto; }
.side .brand b,
.side .brand span,
.side .brand strong,
.sidebar .brand b,
.sidebar .brand strong { font-weight: 700; color: #fff; font-size: 14.5px; line-height: 1.25; }
.side .group,
.sidebar .group,
.nav-label { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: #64748b; padding: 16px 10px 6px; }
.side nav a,
.side a { display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 9px; color: #cbd5e1; text-decoration: none; font-size: 14.5px; transition: background .12s, color .12s; }
.side nav a [data-lucide],
.side a [data-lucide],
.side a i,
.side nav a i { color: #64748b; flex-shrink: 0; width: 18px; height: 18px; transition: color .12s; }
.side nav a:hover,
.side a:hover { background: #1e293b; color: #fff; }
.side nav a.active,
.side a.active { background: color-mix(in srgb, var(--brand) 18%, #0f172a); color: #fff; }
.side nav a.active [data-lucide],
.side a.active [data-lucide],
.side nav a.active i,
.side a.active i,
.side nav a:hover [data-lucide],
.side a:hover [data-lucide] { color: var(--brand); }
.menu,
.menu-button,
.menubtn { display: none; }

main { margin-left: var(--sbw); max-width: 900px; padding: 40px 40px 90px; }
.hero h1 { font-size: 30px; margin: 0 0 10px; line-height: 1.2; color: #0f172a; }
.hero p { font-size: 17px; color: #475569; margin: 0 0 8px; max-width: 660px; }

.tour,
.billing-tour { margin-top: 26px; overflow: hidden; background: #fff; border: 1px solid #e2e8f0; border-radius: 20px; box-shadow: 0 8px 26px rgba(15,23,42,.08); }
.tour-intro,
.intro,
.billing-tour__intro { padding: 24px 26px 20px; background: linear-gradient(125deg, color-mix(in srgb, var(--brand) 12%, #fff), #fff 62%); border-bottom: 1px solid #e2e8f0; }
.eyebrow,
.billing-tour__eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #166534; font-weight: 800; }
.eyebrow [data-lucide],
.billing-tour__eyebrow [data-lucide] { width: 15px; height: 15px; color: var(--brand); }
.tour-intro h2,
.intro h2,
.billing-tour__intro h2 { margin: 8px 0 5px; font-size: 23px; line-height: 1.25; color: #0f172a; }
.tour-intro p,
.intro p,
.billing-tour__intro p { margin: 0; color: #475569; max-width: 660px; }

.tour-tabs,
.tabs,
.billing-tour-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; padding: 16px 18px 0; }
.tour-tab,
.tab,
.billing-tour-tab { appearance: none; border: 1px solid #e2e8f0; background: #f8fafc; border-radius: 12px; padding: 11px 12px; text-align: left; cursor: pointer; color: #475569; font: inherit; font-size: 13px; line-height: 1.35; transition: transform .16s, border-color .16s, background .16s, box-shadow .16s; }
.tour-tab:hover,
.tab:hover,
.billing-tour-tab:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--brand) 40%, #e2e8f0); background: #fff; }
.tour-tab b,
.tab b,
.billing-tour-tab b { display: block; color: #1e293b; font-size: 13.5px; margin-bottom: 2px; }
.tour-tab.active,
.tab.active,
.billing-tour-tab.active { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, #fff); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 12%, transparent); }
.tour-tab.active b,
.tab.active b,
.billing-tour-tab.active b { color: #166534; }

.tour-stage,
.stage,
.billing-tour-stage { padding: 18px; }
.tour-copy,
.copy,
.stage-copy,
.billing-tour-copy { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin: 0 4px 14px; }
.tour-copy > div,
.copy > div,
.stage-copy > div,
.billing-tour-copy > div { flex: 1; }
.step,
.tour-stage__step,
.billing-tour-step { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 13px; font-weight: 800; margin-top: 2px; }
.tour-copy h3,
.copy h3,
.stage-copy h3,
.tour-stage__title,
.billing-tour-title { margin: 0; color: #0f172a; font-size: 18px; }
.tour-copy p,
.copy p,
.stage-copy p,
.tour-stage__description,
.billing-tour-description { margin: 3px 0 0; color: #64748b; font-size: 14px; }
.open,
.tour-open,
.billing-tour-open { display: inline-flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap; color: #fff; background: var(--brand); border: 0; border-radius: 9px; padding: 9px 12px; font-size: 13px; font-weight: 700; text-decoration: none; }
.open:hover,
.tour-open:hover,
.billing-tour-open:hover { filter: brightness(.94); color: #fff; }
.open [data-lucide],
.tour-open [data-lucide],
.billing-tour-open [data-lucide] { width: 15px; height: 15px; }

.tour figure,
.billing-tour-shot,
.tour-shot { position: relative; border: 1px solid #dbe5ec; border-radius: 13px; overflow: hidden; background: #e2e8f0; margin: 0; }
.tour figure img,
.billing-tour-shot img,
.tour-shot img,
figure img { display: block; width: 100%; height: auto; }
.tour figure figcaption,
.billing-tour-shot figcaption,
.tour-shot figcaption,
figcaption { position: absolute; right: 10px; bottom: 10px; padding: 4px 8px; border-radius: 99px; background: rgba(15,23,42,.78); color: #f8fafc; font-size: 11px; backdrop-filter: blur(6px); }

.tour-next,
.next,
.billing-tour-next { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 22px 19px; color: #64748b; font-size: 13px; }
.tour-next button,
.next button,
.billing-tour-next button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: var(--brand); font: inherit; font-weight: 700; cursor: pointer; padding: 4px; }
.tour-next button [data-lucide],
.next button [data-lucide],
.billing-tour-next button [data-lucide] { width: 15px; height: 15px; }

.quick,
.quickstart,
.billing-quickstart,
.brain-quickstart { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; padding: 18px; border-top: 1px solid #e2e8f0; background: #f8fafc; }
.quick div,
.quickstart div,
.billing-quickstart div,
.brain-quickstart div { padding: 7px 8px; }
.quick b,
.quickstart b,
.billing-quickstart b,
.brain-quickstart b { display: block; color: #1e293b; font-size: 13px; margin-bottom: 2px; }
.quick span,
.quickstart span,
.billing-quickstart span,
.brain-quickstart span { display: block; color: #64748b; font-size: 12px; line-height: 1.4; }
.quick i,
.quickstart i,
.billing-quickstart i,
.brain-quickstart i { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin-bottom: 7px; border-radius: 7px; background: color-mix(in srgb, var(--brand) 13%, #fff); color: var(--brand); font-style: normal; font-size: 11px; font-weight: 800; }

section.card,
.card { background: #fff; border-radius: 18px; padding: 26px 28px 28px; margin: 26px 0 0; box-shadow: 0 4px 18px rgba(15,23,42,.06); scroll-margin-top: 24px; border: 0; }
section.card h2,
.card h2 { margin: 0 0 6px; font-size: 22px; display: flex; align-items: center; gap: 12px; color: #0f172a; }
.ico,
.heading-icon { background: color-mix(in srgb, var(--brand) 14%, #fff); color: var(--brand); width: 38px; height: 38px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ico [data-lucide],
.ico i,
.heading-icon [data-lucide] { width: 20px; height: 20px; }
.sub { color: #64748b; margin: 0 0 16px; }
.grid,
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.feature { padding: 14px; border: 1px solid #e2e8f0; border-radius: 12px; background: #f8fafc; }
.feature h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 5px; color: #1e293b; font-size: 14.5px; }
.feature h3 [data-lucide] { width: 17px; height: 17px; color: var(--brand); }
.feature p { margin: 0; color: #64748b; font-size: 13.5px; }
.ok { display: flex; gap: 10px; margin: 16px 0; padding: 13px 16px; border-left: 4px solid var(--brand); border-radius: 8px; background: #f0fdf4; font-size: 14px; }
.ok [data-lucide] { flex: 0 0 auto; color: var(--brand); }
details { overflow: hidden; margin-top: 10px; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; }
summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; cursor: pointer; color: #1e293b; font-weight: 600; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { color: #94a3b8; content: '+'; font-size: 20px; }
details[open] summary::after { content: '−'; }
details .body { padding: 0 16px 15px; color: #475569; font-size: 14px; }

/* Flow steps genéricos (BI/Forms/NPS/Grupos) */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 16px 0; }
.flow > div,
.flow-item { position: relative; padding: 13px 12px; border-radius: 12px; background: #f8fafc; font-size: 13px; }
.flow > div b,
.flow-item b { display: block; margin-bottom: 3px; color: #1e293b; }
.flow > div span,
.flow-item span { color: #64748b; font-size: 12px; line-height: 1.35; }
.flow > div:not(:last-child)::after,
.flow-item:not(:last-child)::after { position: absolute; top: 50%; right: -8px; z-index: 2; color: var(--brand); content: '→'; font-size: 18px; font-weight: 700; transform: translateY(-50%); }

@media (max-width: 980px) {
  .tour-tabs, .tabs, .billing-tour-tabs { grid-template-columns: repeat(2, 1fr); }
  .quick, .quickstart, .billing-quickstart, .brain-quickstart { grid-template-columns: repeat(3, 1fr); }
  .flow { grid-template-columns: repeat(3, 1fr); }
  .flow > div:nth-child(3)::after,
  .flow-item:nth-child(3)::after { display: none; }
}
@media (max-width: 900px) {
  .side { position: sticky; top: 0; width: 100%; height: auto; max-height: none; padding: 12px 14px; z-index: 50; }
  .side .brand { margin-bottom: 0; padding-bottom: 12px; }
  .side nav, .side .group, .side .grp { display: none; }
  .side.open nav, .side.open .group, .side.open .grp { display: block; }
  .menu, .menu-button, .menubtn { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; border: 0; border-radius: 8px; padding: 6px 10px; background: #1e293b; color: #fff; cursor: pointer; font-size: 13px; }
  main { margin-left: 0; padding: 24px 18px 70px; }
}
@media (max-width: 620px) {
  .hero h1 { font-size: 25px; }
  .tour-intro, .intro, .billing-tour__intro { padding: 20px 18px 17px; }
  .tour-tabs, .tabs, .billing-tour-tabs, .grid, .feature-grid { grid-template-columns: 1fr; }
  .tour-stage, .stage, .billing-tour-stage { padding: 14px; }
  .tour-copy, .copy, .stage-copy, .billing-tour-copy { display: grid; grid-template-columns: 28px 1fr; gap: 10px; margin: 0 1px 12px; }
  .open, .tour-open, .billing-tour-open { grid-column: 2; justify-self: start; }
  .tour-next, .next, .billing-tour-next { padding: 0 17px 17px; }
  .quick, .quickstart, .billing-quickstart, .brain-quickstart { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: 1fr; }
  .flow > div::after, .flow-item::after { display: none !important; }
  section.card, .card { padding: 22px 19px; }
}

/* ----- content: followup_tutorial.php ----- */
section.card h3 { font-size: 16px; margin: 22px 0 8px; }
.kids { background: #f0fdf4; border-left: 4px solid var(--brand); border-radius: 8px; padding: 12px 16px; margin: 14px 0; font-size: 15px; }
.kids .hd { display: flex; align-items: center; gap: 8px; font-weight: 700; color: #166534; margin-bottom: 4px; }
.kids .hd [data-lucide] { color: var(--brand); }
ul.clean { padding-left: 20px; margin: 10px 0; }
ul.clean li { margin: 6px 0; }
ol.steps { padding-left: 0; margin: 12px 0; list-style: none; counter-reset: st; }
ol.steps li { position: relative; padding: 4px 0 14px 44px; counter-increment: st; }
ol.steps li:before { content: counter(st); position: absolute; left: 0; top: 2px; width: 30px; height: 30px; border-radius: 9px; background: color-mix(in srgb, var(--brand) 14%, #fff); color: var(--brand); font-weight: 800; font-size: 15px; display: flex; align-items: center; justify-content: center; }
code.inline { background: #eef2ff; color: #3730a3; padding: 2px 7px; border-radius: 6px; font-size: 13.5px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-word; }
.tip, .warn { border-radius: 12px; padding: 13px 16px 13px 15px; margin: 16px 0; font-size: 14.5px; display: flex; gap: 10px; }
.tip { background: #fffbeb; border: 1px solid #fde68a; }
.tip [data-lucide] { color: #d97706; flex-shrink: 0; margin-top: 2px; }
.tip b { color: #92400e; }
.warn { background: #fef2f2; border: 1px solid #fecaca; }
.warn [data-lucide] { color: #dc2626; flex-shrink: 0; margin-top: 2px; }
.warn b { color: #991b1b; }
table.mini { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14px; }
table.mini td, table.mini th { padding: 8px 10px; border-bottom: 1px solid #e2e8f0; vertical-align: top; text-align: left; }
table.mini th { color: #64748b; font-size: 12.5px; text-transform: uppercase; letter-spacing: .03em; }
table.mini td:first-child { white-space: nowrap; width: 1%; font-weight: 600; }
.foot { color: #94a3b8; font-size: 13px; margin-top: 34px; }
.example { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 12px; padding: 14px 16px; margin: 16px 0; font-size: 14.5px; }
.example .hd { display: flex; align-items: center; gap: 8px; font-weight: 700; color: #1e40af; margin-bottom: 8px; }
.example .hd [data-lucide] { color: #3b82f6; }
.example p { margin: 8px 0 0; }
.example .trig { font-size: 13.5px; margin: 2px 0 10px; }
.example .trig b { color: #1e40af; }
/* Infográfico: corrente de blocos (nós do fluxo) */
        .chain { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 5px; margin: 10px 0 4px; }
.chain .n { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid color-mix(in srgb, var(--brand) 40%, #fff); border-radius: 9px; padding: 5px 9px; font-size: 12.5px; font-weight: 700; color: #1e293b; }
.chain .n [data-lucide] { width: 14px; height: 14px; color: var(--brand); }
.chain .n .arg { font-weight: 500; color: #64748b; }
.chain .n.wait { border-color: #fcd34d; }
.chain .n.wait [data-lucide] { color: #d97706; }
.chain .n.stop { border-color: #86efac; }
.chain .n.stop [data-lucide] { color: #16a34a; }
.chain .n.end { border-color: #fca5a5; }
.chain .n.end [data-lucide] { color: #dc2626; }
.chain .sep { color: #94a3b8; font-weight: 700; }
.example .used { font-size: 12.5px; color: #64748b; margin-top: 6px; }
/* Infográfico: comparação dos gatilhos */
        .cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 16px 0; }
.tcard { border: 1px solid #e2e8f0; border-radius: 14px; padding: 16px 16px 14px; background: #fff; }
.tcard .ico { width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--brand) 13%, #fff); color: var(--brand); margin-bottom: 10px; }
.tcard .tt { font-weight: 700; font-size: 15.5px; margin-bottom: 3px; }
.tcard .dd { color: #64748b; font-size: 14px; }
.flow .step { position: relative; padding: 0 0 20px 46px; }
.flow .step:before { content: ''; position: absolute; left: 16px; top: 30px; bottom: -2px; width: 2px; background: #e2e8f0; }
.flow .step:last-child:before { display: none; }
.flow .step .dot { position: absolute; left: 0; top: 1px; width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--brand) 13%, #fff); color: var(--brand); }
.flow .step .dot [data-lucide] { width: 17px; height: 17px; }
.flow .step .t { font-weight: 650; font-weight: 600; }
.flow .step .d { color: #64748b; font-size: 14px; }
.flow .step.wait .dot { background: #fef3c7; color: #b45309; }
.flow .step.trigger .dot { background: #dbeafe; color: #2563eb; }
.flow .step.stop .dot { background: #dcfce7; color: #16a34a; }
.flow .step.end .dot { background: #fee2e2; color: #dc2626; }
.blk { border: 1px solid #e2e8f0; border-radius: 11px; padding: 11px 12px; font-size: 13.5px; display: flex; gap: 9px; align-items: flex-start; background: #fff; }
.blk [data-lucide] { color: var(--brand); flex-shrink: 0; width: 17px; height: 17px; margin-top: 1px; }
.blk b { display: block; font-size: 13.5px; }
.blk span { color: #64748b; font-size: 12.5px; line-height: 1.35; }
.catlabel { font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; color: #64748b; font-weight: 700; margin: 18px 0 2px; }
@media (max-width: 900px) {
.cols2 { grid-template-columns: 1fr; }
}

/* ----- content: telegram_tutorial.php ----- */
section.card h2 .n { background: var(--brand); color: #fff; width: 38px; height: 38px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font-weight: 800; font-size: 18px; }
section.card h3 { font-size: 16px; margin: 22px 0 8px; display: flex; align-items: center; gap: 8px; }
section.card h3 [data-lucide] { color: var(--brand); width: 17px; height: 17px; }
.kids { background: #f0fdf4; border-left: 4px solid var(--brand); border-radius: 8px; padding: 12px 16px; margin: 14px 0; font-size: 15px; }
.kids .hd { display: flex; align-items: center; gap: 8px; font-weight: 700; color: #166534; margin-bottom: 4px; }
.kids .hd [data-lucide] { color: var(--brand); }
ul.clean { padding-left: 20px; margin: 10px 0; }
ul.clean li { margin: 6px 0; }
ol.steps { padding-left: 0; margin: 12px 0; list-style: none; counter-reset: st; }
ol.steps li { position: relative; padding: 4px 0 14px 44px; counter-increment: st; }
ol.steps li:before { content: counter(st); position: absolute; left: 0; top: 2px; width: 30px; height: 30px; border-radius: 9px; background: color-mix(in srgb, var(--brand) 14%, #fff); color: var(--brand); font-weight: 800; font-size: 15px; display: flex; align-items: center; justify-content: center; }
code.inline { background: #eef2ff; color: #3730a3; padding: 2px 7px; border-radius: 6px; font-size: 13.5px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-word; }
.tip, .warn { border-radius: 12px; padding: 13px 16px 13px 15px; margin: 16px 0; font-size: 14.5px; display: flex; gap: 10px; }
.tip { background: #fffbeb; border: 1px solid #fde68a; }
.tip [data-lucide] { color: #d97706; flex-shrink: 0; margin-top: 2px; }
.tip b { color: #92400e; }
.warn { background: #fef2f2; border: 1px solid #fecaca; }
.warn [data-lucide] { color: #dc2626; flex-shrink: 0; margin-top: 2px; }
.warn b { color: #991b1b; }
table.mini { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14px; }
table.mini td, table.mini th { padding: 8px 10px; border-bottom: 1px solid #e2e8f0; vertical-align: top; text-align: left; }
table.mini th { color: #64748b; font-size: 12.5px; text-transform: uppercase; letter-spacing: .03em; }
table.mini td:first-child { white-space: nowrap; width: 1%; font-weight: 600; }
.foot { color: #94a3b8; font-size: 13px; margin-top: 34px; }
/* Screenshots */
        figure.shot { margin: 16px 0 4px; border-radius: 14px; overflow: hidden; border: 1px solid #e2e8f0; background: #fff; }
figure.shot img { display: block; width: 100%; height: auto; }
figure.shot.tall { text-align: center; background: #0b1220; }
figure.shot.tall img { width: auto; max-width: 100%; max-height: 560px; margin: 0 auto; }
figure.shot figcaption { font-size: 12.5px; color: #64748b; padding: 9px 13px; border-top: 1px solid #e2e8f0; background: #f8fafc; }
.example { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 12px; padding: 14px 16px; margin: 16px 0; font-size: 14.5px; }
.example .hd { display: flex; align-items: center; gap: 8px; font-weight: 700; color: #1e40af; margin-bottom: 8px; }
.example .hd [data-lucide] { color: #3b82f6; }
.example p { margin: 8px 0 0; }
.flow .step { position: relative; padding: 0 0 20px 46px; }
.flow .step:before { content: ''; position: absolute; left: 16px; top: 30px; bottom: -2px; width: 2px; background: #e2e8f0; }
.flow .step:last-child:before { display: none; }
.flow .step .dot { position: absolute; left: 0; top: 1px; width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--brand) 13%, #fff); color: var(--brand); }
.flow .step .dot [data-lucide] { width: 17px; height: 17px; }
.flow .step .t { font-weight: 600; }
.flow .step .d { color: #64748b; font-size: 14px; }
.flow .step.ok .dot { background: #dcfce7; color: #16a34a; }

/* ----- content: atendente_ia_tutorial.php ----- */
section.card h3 { font-size: 16px; margin: 22px 0 8px; }
.kids { background: #f0fdf4; border-left: 4px solid var(--brand); border-radius: 8px; padding: 12px 16px; margin: 14px 0; font-size: 15px; }
.kids .hd { display: flex; align-items: center; gap: 8px; font-weight: 700; color: #166534; margin-bottom: 4px; }
.kids .hd [data-lucide] { color: var(--brand); }
ul.clean { padding-left: 20px; margin: 10px 0; }
ul.clean li { margin: 6px 0; }
code.inline { background: #eef2ff; color: #3730a3; padding: 2px 7px; border-radius: 6px; font-size: 13.5px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-word; }
.prompt { margin: 14px 0 6px; }
.prompt .bar { display: flex; align-items: center; justify-content: space-between; background: #1e293b; color: #cbd5e1; padding: 8px 14px; border-radius: 12px 12px 0 0; font-size: 12.5px; }
.prompt .bar .lbl { font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.prompt button.copy { display: inline-flex; align-items: center; gap: 6px; background: var(--brand); color: #fff; border: 0; border-radius: 7px; padding: 5px 12px; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.prompt button.copy [data-lucide] { width: 14px; height: 14px; }
.prompt button.copy:active { transform: translateY(1px); }
.prompt pre { margin: 0; background: #0f172a; color: #e2e8f0; padding: 16px 18px; border-radius: 0 0 12px 12px; overflow-x: auto; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.tip, .warn { border-radius: 12px; padding: 13px 16px 13px 15px; margin: 16px 0; font-size: 14.5px; display: flex; gap: 10px; }
.tip { background: #fffbeb; border: 1px solid #fde68a; }
.tip [data-lucide] { color: #d97706; flex-shrink: 0; margin-top: 2px; }
.tip b { color: #92400e; }
.warn { background: #fef2f2; border: 1px solid #fecaca; }
.warn [data-lucide] { color: #dc2626; flex-shrink: 0; margin-top: 2px; }
.warn b { color: #991b1b; }
table.mini { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14px; }
table.mini td { padding: 8px 10px; border-bottom: 1px solid #e2e8f0; vertical-align: top; }
table.mini td:first-child { white-space: nowrap; width: 1%; }
.foot { color: #94a3b8; font-size: 13px; margin-top: 34px; }
/* Exemplo de conversa (balões) */
        .chatex { margin: 12px 0 6px; }
.chatex .who { font-size: 12px; color: #64748b; font-weight: 600; margin: 12px 0 4px; }
.bubble { display: block; width: fit-content; max-width: 92%; background: var(--brand); color: #fff; padding: 8px 13px; border-radius: 14px 14px 14px 4px; margin: 5px 0; font-size: 14px; line-height: 1.4; }
.bubble.them { background: #e2e8f0; color: #1e293b; border-radius: 14px 14px 4px 14px; margin-left: auto; }
.bubble.sys { background: transparent; color: #94a3b8; font-style: italic; font-size: 12.5px; padding: 2px 4px; }
.timegap { text-align: center; margin: 14px 0; }
.timegap span { display: inline-block; background: #cbd5e1; color: #334155; font-size: 12px; font-weight: 700; letter-spacing: .02em; padding: 4px 14px; border-radius: 20px; text-transform: uppercase; }

/* ----- content: calendar_tutorial.php ----- */
.heading-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 38px; height: 38px; border-radius: 11px; background: color-mix(in srgb, var(--brand) 14%, #fff); color: var(--brand); }
.heading-icon [data-lucide] { width: 20px; height: 20px; }
section.card h3 { margin: 22px 0 8px; color: #1e293b; font-size: 16px; }
.flow-item { position: relative; padding: 13px 12px; border-radius: 12px; background: #f8fafc; font-size: 13px; }
.flow-item b { display: block; margin-bottom: 3px; color: #1e293b; }
.flow-item span { color: #64748b; font-size: 12px; line-height: 1.35; }
.flow-item:not(:last-child)::after { position: absolute; top: 50%; right: -8px; z-index: 2; color: var(--brand); content: '→'; font-size: 18px; font-weight: 700; transform: translateY(-50%); }
.tip { display: flex; gap: 10px; margin: 16px 0; padding: 13px 16px 13px 15px; border: 1px solid #fde68a; border-radius: 12px; background: #fffbeb; font-size: 14px; }
.tip [data-lucide] { flex: 0 0 auto; margin-top: 2px; color: #d97706; }
.tip b { color: #92400e; }
ul.clean { margin: 10px 0; padding-left: 20px; }
ul.clean li { margin: 6px 0; }
table.mini { width: 100%; margin: 12px 0; border-collapse: collapse; font-size: 14px; }
table.mini th, table.mini td { padding: 9px 10px; border-bottom: 1px solid #e2e8f0; text-align: left; vertical-align: top; }
table.mini th { color: #64748b; font-size: 12px; letter-spacing: .03em; text-transform: uppercase; }
table.mini td:first-child { width: 1%; color: #1e293b; font-weight: 700; white-space: nowrap; }
.foot { margin-top: 34px; color: #94a3b8; font-size: 13px; }
@media (max-width: 980px) {
.flow-item:nth-child(2)::after { display: none; }
}
@media (max-width: 620px) {
.flow-item::after { display: none; }
}

/* ----- content: cobrancas_tutorial.php ----- */
section.card h3 { font-size: 16px; margin: 22px 0 8px; display: flex; align-items: center; gap: 8px; }
section.card h3 [data-lucide] { color: var(--brand); width: 17px; height: 17px; }
.kids { background: #f0fdf4; border-left: 4px solid var(--brand); border-radius: 8px; padding: 12px 16px; margin: 14px 0; font-size: 15px; }
.kids .hd { display: flex; align-items: center; gap: 8px; font-weight: 700; color: #166534; margin-bottom: 4px; }
.kids .hd [data-lucide] { color: var(--brand); }
ul.clean { padding-left: 20px; margin: 10px 0; }
ul.clean li { margin: 6px 0; }
ol.steps { padding-left: 0; margin: 12px 0; list-style: none; counter-reset: st; }
ol.steps li { position: relative; padding: 4px 0 14px 44px; counter-increment: st; }
ol.steps li:before { content: counter(st); position: absolute; left: 0; top: 2px; width: 30px; height: 30px; border-radius: 9px; background: color-mix(in srgb, var(--brand) 14%, #fff); color: var(--brand); font-weight: 800; font-size: 15px; display: flex; align-items: center; justify-content: center; }
code.inline { background: #eef2ff; color: #3730a3; padding: 2px 7px; border-radius: 6px; font-size: 13.5px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-word; }
.tip, .warn { border-radius: 12px; padding: 13px 16px 13px 15px; margin: 16px 0; font-size: 14.5px; display: flex; gap: 10px; }
.tip { background: #fffbeb; border: 1px solid #fde68a; }
.tip [data-lucide] { color: #d97706; flex-shrink: 0; margin-top: 2px; }
.tip b { color: #92400e; }
.warn { background: #fef2f2; border: 1px solid #fecaca; }
.warn [data-lucide] { color: #dc2626; flex-shrink: 0; margin-top: 2px; }
.warn b { color: #991b1b; }
table.mini { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14px; }
table.mini td, table.mini th { padding: 8px 10px; border-bottom: 1px solid #e2e8f0; vertical-align: top; text-align: left; }
table.mini th { color: #64748b; font-size: 12.5px; text-transform: uppercase; letter-spacing: .03em; }
table.mini td:first-child { white-space: nowrap; width: 1%; font-weight: 600; }
.foot { color: #94a3b8; font-size: 13px; margin-top: 34px; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.pill.lite { background: #e0f2fe; color: #075985; }
.pill.ofi { background: #e0e7ff; color: #3730a3; }
.example { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 12px; padding: 14px 16px; margin: 16px 0; font-size: 14.5px; }
.example .hd { display: flex; align-items: center; gap: 8px; font-weight: 700; color: #1e40af; margin-bottom: 8px; }
.example .hd [data-lucide] { color: #3b82f6; }
.example p { margin: 8px 0 0; }
.example .msg { background: #fff; border: 1px solid #dbeafe; border-radius: 10px 10px 10px 2px; padding: 10px 13px; margin: 8px 0 0; font-size: 14px; color: #334155; }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 16px 0; }
.tcard { border: 1px solid #e2e8f0; border-radius: 14px; padding: 16px 16px 14px; background: #fff; }
.tcard .ico { width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--brand) 13%, #fff); color: var(--brand); margin-bottom: 10px; }
.tcard .tt { font-weight: 700; font-size: 15.5px; margin-bottom: 3px; }
.tcard .dd { color: #64748b; font-size: 14px; }
.flow .step { position: relative; padding: 0 0 20px 46px; }
.flow .step:before { content: ''; position: absolute; left: 16px; top: 30px; bottom: -2px; width: 2px; background: #e2e8f0; }
.flow .step:last-child:before { display: none; }
.flow .step .dot { position: absolute; left: 0; top: 1px; width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--brand) 13%, #fff); color: var(--brand); }
.flow .step .dot [data-lucide] { width: 17px; height: 17px; }
.flow .step .t { font-weight: 600; }
.flow .step .d { color: #64748b; font-size: 14px; }
.flow .step.ok .dot { background: #dcfce7; color: #16a34a; }
.flow .step.b .dot { background: #fef3c7; color: #b45309; }
.flow .step.r .dot { background: #fee2e2; color: #dc2626; }
.blocks { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 10px; margin: 12px 0 4px; }
.blk { border: 1px solid #e2e8f0; border-radius: 11px; padding: 11px 12px; font-size: 13.5px; display: flex; gap: 9px; align-items: flex-start; background: #fff; }
.blk [data-lucide] { color: var(--brand); flex-shrink: 0; width: 17px; height: 17px; margin-top: 1px; }
.blk b { display: block; font-size: 13.5px; }
.blk span { color: #64748b; font-size: 12.5px; line-height: 1.35; }
@media (max-width: 900px) {
.cols2, .cols3 { grid-template-columns: 1fr; }
}


/* Fundo branco da página (pedido 21/08/2026) */
html, body { background: #ffffff !important; }
main, .content { background: transparent; }


/* ===== Contraste legível (fundo branco) ===== */
html, body {
  background: #ffffff !important;
  color: #0f172a !important;
  color-scheme: light !important;
}
main, .content, section.card, .card, .tour, .brain-tour, .billing-tour {
  color: #0f172a;
}
.hero h1, .page-head h1, main h1, section.card h2, .card h2,
.tour-copy h3, .copy h3, .stage-copy h3, .feature h3,
.tour-intro h2, .intro h2, .brain-tour__intro h2 {
  color: #0f172a !important;
}
.hero p, .page-head p, .sub, .tour-intro p, .intro p,
.tour-copy p, .copy p, .stage-copy p, .feature p,
.tour-stage__description, .billing-tour-description,
.quick span, .quickstart span, .brain-quickstart span,
details .body, details > div:not([class]) {
  color: #334155 !important;
}
.eyebrow, .brain-tour__eyebrow { color: #166534 !important; }

/* Tabelas (com ou sem .mini) */
main table, .content table, section.card table, .card table,
table.mini {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 14px;
  color: #0f172a;
}
main th, .content th, section.card th, .card th, table.mini th,
main td, .content td, section.card td, .card td, table.mini td {
  padding: 9px 10px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  vertical-align: top;
  color: #0f172a !important;
}
main th, .content th, section.card th, .card th, table.mini th {
  color: #334155 !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}
main td:first-child, .content td:first-child, section.card td:first-child,
.card td:first-child, table.mini td:first-child {
  color: #0f172a !important;
  font-weight: 700;
  white-space: nowrap;
  width: 1%;
}
summary { color: #0f172a !important; }
.tour-tab, .tab, .billing-tour-tab { color: #334155 !important; }
.tour-tab b, .tab b, .billing-tour-tab b,
.quick b, .quickstart b, .brain-quickstart b { color: #0f172a !important; }
.tip, .ok, .kids, .warn { color: #0f172a !important; }
.tip b { color: #92400e !important; }
.foot { color: #475569 !important; }
