/* CODEC Concrete — landing page e páginas de documentos. */
:root {
    --ink: #16171c;
    --ink-2: #2b2d35;
    --muted: #5c6070;
    --faint: #8b8f9c;
    --line: #e5e6eb;
    --bg: #ffffff;
    --bg-soft: #f6f6f9;
    --bg-dark: #121318;
    --bg-dark-2: #1b1d24;
    --brand: #ed2884;
    --brand-dark: #c4166a;
    --brand-soft: #fde7f2;
    --product: #e8711a;
    --ok: #12805c;
    --radius: 14px;
    --shadow: 0 1px 2px rgba(16, 17, 22, .06), 0 12px 32px rgba(16, 17, 22, .08);
    --shadow-lg: 0 24px 60px rgba(16, 17, 22, .18);
    --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.02em; margin: 0; }
p { margin: 0; }
.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }

/* Cabeçalho */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(18, 19, 24, .92); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; letter-spacing: -.02em; font-size: 18px; white-space: nowrap; }
.brand-mark { width: 12px; height: 12px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(237, 40, 132, .22); }
.brand small { color: rgba(255, 255, 255, .55); font-weight: 600; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin-left: 2px; }
.site-nav { display: flex; gap: 22px; margin-left: auto; }
.site-nav a { color: rgba(255, 255, 255, .72); text-decoration: none; font-size: 14px; font-weight: 550; }
.site-nav a:hover { color: #fff; }
.header-cta { display: flex; gap: 10px; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid rgba(255, 255, 255, .2); color: #fff; border-radius: 10px; width: 42px; height: 42px; font-size: 20px; cursor: pointer; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { border-color: rgba(255, 255, 255, .28); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }

/* Hero */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(1200px 600px at 85% -10%, rgba(237, 40, 132, .28), transparent 60%), radial-gradient(900px 500px at -10% 110%, rgba(232, 113, 26, .16), transparent 60%), var(--bg-dark); padding: 72px 0 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
.hero-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 400px); gap: 40px; align-items: center; }
.hero-logo { display: grid; justify-items: center; gap: 10px; }
.hero-logo img { width: 100%; filter: drop-shadow(0 24px 48px rgba(237, 40, 132, .25)); }
.hero-logo span { color: rgba(255, 255, 255, .55); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .85); font-size: 13px; font-weight: 600; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.hero h1 { font-size: clamp(36px, 5.4vw, 64px); font-weight: 800; margin-top: 20px; max-width: 900px; }
.hero h1 span { color: var(--brand); }
.hero .lead { margin-top: 20px; max-width: 720px; font-size: clamp(17px, 1.6vw, 20px); color: rgba(255, 255, 255, .75); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; padding: 0; list-style: none; color: rgba(255, 255, 255, .7); font-size: 14px; }
.hero-points li::before { content: "✓"; color: var(--brand); font-weight: 800; margin-right: 8px; }
.hero-shot { position: relative; margin-top: 8px; }
.browser { border-radius: 14px 14px 0 0; overflow: hidden; background: #fff; box-shadow: var(--shadow-lg); border: 1px solid rgba(255, 255, 255, .1); }
.browser-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; background: #f1f1f4; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d5d6dc; }
.browser-bar span { margin-left: 12px; font-size: 12px; color: var(--faint); }
.hero-shot .browser img { aspect-ratio: 16 / 8.6; object-fit: cover; object-position: top left; }
.phone { position: absolute; right: -8px; bottom: 24px; width: 17%; min-width: 150px; border-radius: 26px; border: 6px solid #0b0c10; overflow: hidden; box-shadow: var(--shadow-lg); background: #0b0c10; }

/* Faixa de produtos */
.products-strip { background: var(--bg-dark-2); color: rgba(255, 255, 255, .7); }
.products-strip .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 34px; padding: 22px 0; font-size: 14px; font-weight: 600; }
.products-strip strong { color: #fff; }

/* Seções */
section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.kicker { color: var(--brand); font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; margin-top: 12px; }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 18px; }

/* Dores */
.pains { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pain { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: #fff; }
.pain h3 { font-size: 19px; }
.pain p { margin-top: 10px; color: var(--muted); }
.pain .num { font-size: 13px; font-weight: 800; color: var(--brand); }

/* Fluxo */
.flow { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 8px; counter-reset: step; }
.flow a { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); text-decoration: none; text-align: center; transition: border-color .15s ease, transform .15s ease; }
.flow a:hover { border-color: var(--brand); transform: translateY(-2px); }
.flow a::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-size: 12px; font-weight: 800; color: var(--brand); }
.flow strong { font-size: 14px; }
.flow span { font-size: 12px; color: var(--muted); line-height: 1.35; }

/* Módulos */
.module { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: 56px; align-items: center; padding: 64px 0; border-top: 1px solid var(--line); }
.module:first-of-type { border-top: 0; padding-top: 0; }
.module.reverse { grid-template-columns: minmax(0, 6fr) minmax(0, 4fr); }
.module.reverse .module-text { order: 2; }
.module-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; color: var(--brand); letter-spacing: .08em; text-transform: uppercase; }
.module h3 { font-size: clamp(26px, 2.6vw, 34px); font-weight: 800; margin-top: 10px; }
.module-text > p { margin-top: 14px; color: var(--muted); font-size: 17px; }
.features { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.features li { position: relative; padding-left: 30px; color: var(--ink-2); }
.features li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 6px; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ed2884' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.features strong { color: var(--ink); }
.gallery { display: grid; gap: 12px; }
/* A galeria mostra a área de trabalho (sem o menu lateral, 264 de 1600 px); ampliar abre a tela inteira. */
.gallery-main { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); cursor: zoom-in; aspect-ratio: 1336 / 1000; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; object-position: right top; }
.gallery-caption { position: absolute; left: 12px; bottom: 12px; padding: 6px 12px; border-radius: 999px; background: rgba(18, 19, 24, .82); color: #fff; font-size: 13px; font-weight: 600; }
.gallery-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.gallery-thumbs button { border: 1px solid var(--line); background: #fff; color: var(--muted); border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.gallery-thumbs button[aria-pressed="true"] { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }

/* IA */
.ai { background: radial-gradient(900px 500px at 100% 0, rgba(237, 40, 132, .25), transparent 60%), var(--bg-dark); color: #fff; }
.ai .section-head p { color: rgba(255, 255, 255, .7); }
.ai-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.ai-card { border-radius: var(--radius); background: var(--bg-dark-2); border: 1px solid rgba(255, 255, 255, .08); overflow: hidden; }
.ai-card-text { padding: 26px 26px 18px; }
.ai-card h3 { font-size: 21px; }
.ai-card p { margin-top: 8px; color: rgba(255, 255, 255, .68); }
.ai-card .prompt { margin-top: 14px; display: inline-block; padding: 8px 14px; border-radius: 12px 12px 12px 4px; background: rgba(237, 40, 132, .16); color: #ffd2e7; font-size: 14px; font-weight: 600; }
.ai-card img { border-top: 1px solid rgba(255, 255, 255, .08); cursor: zoom-in; width: 100%; }
.ai-points { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.ai-point { padding: 22px; border-radius: var(--radius); border: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .03); }
.ai-point strong { display: block; font-size: 16px; }
.ai-point span { display: block; margin-top: 6px; color: rgba(255, 255, 255, .62); font-size: 14px; }

/* Galeria de telas */
.shot-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 28px; }
.shot-filters button { border: 1px solid var(--line); background: #fff; color: var(--muted); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.shot-filters button small { color: var(--faint); font-weight: 700; margin-left: 2px; }
.shot-filters button[aria-pressed="true"] { border-color: var(--brand); background: var(--brand); color: #fff; }
.shot-filters button[aria-pressed="true"] small { color: rgba(255, 255, 255, .8); }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.shot { margin: 0; display: grid; gap: 10px; }
.shot[hidden] { display: none; }
.shot button { padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; cursor: zoom-in; box-shadow: var(--shadow); aspect-ratio: 1336 / 1000; transition: transform .15s ease, border-color .15s ease; }
.shot button:hover { transform: translateY(-2px); border-color: var(--brand); }
.shot button img { width: 100%; height: 100%; object-fit: cover; object-position: right top; }
.shot-mobile button { aspect-ratio: 1336 / 1000; background: var(--bg-dark-2); }
.shot-mobile button img { object-fit: contain; object-position: center top; }
.shot figcaption { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.shot figcaption span { display: block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }

/* Modos, segurança, implantação */
.cards-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cards-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 28px; }
.card h3 { font-size: 20px; }
.card p, .card li { color: var(--muted); }
.card p { margin-top: 10px; }
.card ul { margin: 14px 0 0; padding-left: 18px; display: grid; gap: 6px; }
.card .label { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
.step-num { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-weight: 800; margin-bottom: 16px; }
.mobile-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 32px; align-items: center; margin-top: 48px; }
.mobile-row .phone { position: static; width: 210px; }
.notice { margin-top: 28px; padding: 16px 20px; border-radius: 12px; background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; font-size: 15px; }

/* Documentos */
.docs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.doc { display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.doc:hover { border-color: var(--brand); transform: translateY(-2px); }
.doc strong { font-size: 17px; }
.doc span { color: var(--muted); font-size: 14px; }
.doc em { margin-top: auto; padding-top: 10px; color: var(--brand); font-style: normal; font-weight: 700; font-size: 14px; }

/* FAQ */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 0 22px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 18px; color: var(--muted); }

/* CTA e rodapé */
.cta { text-align: center; background: linear-gradient(135deg, var(--brand), #b3125f); color: #fff; }
.cta h2 { font-size: clamp(30px, 3.8vw, 46px); font-weight: 800; }
.cta p { margin: 16px auto 0; max-width: 640px; color: rgba(255, 255, 255, .85); font-size: 18px; }
.cta .hero-actions { justify-content: center; }
.cta .btn-primary { background: #fff; color: var(--brand-dark); }
.site-footer { background: var(--bg-dark); color: rgba(255, 255, 255, .6); padding: 56px 0 32px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: 14px; margin-bottom: 12px; }
.site-footer a { display: block; color: rgba(255, 255, 255, .6); text-decoration: none; margin: 6px 0; }
.site-footer a:hover { color: #fff; }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* Ampliação de imagem */
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: rgba(10, 10, 14, .9); }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: calc(100vh - 80px); width: auto; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lightbox p { color: #fff; margin-top: 12px; text-align: center; font-weight: 600; }
.lightbox button { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font-size: 22px; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, .22); }
.lightbox [data-lightbox-prev], .lightbox [data-lightbox-next] { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 26px; }
.lightbox [data-lightbox-prev] { left: 16px; right: auto; }
.lightbox [data-lightbox-next] { right: 16px; }
.lightbox [hidden] { display: none; }

/* Páginas de documento */
.doc-hero { background: var(--bg-dark); color: #fff; padding: 56px 0 44px; }
.doc-hero h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
.doc-hero p { margin-top: 12px; color: rgba(255, 255, 255, .7); font-size: 17px; }
.doc-hero .back { display: inline-block; margin-bottom: 18px; color: rgba(255, 255, 255, .7); text-decoration: none; font-size: 14px; font-weight: 600; }
.doc-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; padding: 48px 0 96px; }
.doc-toc { position: sticky; top: 92px; align-self: start; display: grid; gap: 4px; font-size: 14px; }
.doc-toc strong { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); margin-bottom: 6px; }
.doc-toc a { text-decoration: none; color: var(--muted); padding: 4px 0; }
.doc-toc a:hover { color: var(--brand); }
.doc-body { max-width: 780px; }
.doc-body h2 { font-size: 26px; margin: 44px 0 14px; padding-top: 8px; }
.doc-body h2:first-child { margin-top: 0; }
.doc-body h3 { font-size: 19px; margin: 28px 0 10px; }
.doc-body p, .doc-body li { color: var(--ink-2); }
.doc-body p { margin: 12px 0; }
.doc-body ul, .doc-body ol { padding-left: 22px; margin: 12px 0; display: grid; gap: 6px; }
.doc-body li > ul, .doc-body li > ol { margin: 6px 0 0; }
.doc-body code { background: var(--bg-soft); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.doc-body pre { background: var(--bg-soft); padding: 16px; border-radius: 10px; overflow-x: auto; font-size: 14px; }
.doc-body a { color: var(--brand-dark); }
.doc-body .note { margin: 18px 0; padding: 14px 18px; border-left: 4px solid var(--brand); background: var(--brand-soft); border-radius: 0 10px 10px 0; color: var(--ink-2); }
.doc-body .table { overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: 10px; }
.doc-body table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc-body th, .doc-body td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc-body th { background: var(--bg-soft); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.doc-body tr:last-child td { border-bottom: 0; }
.doc-body .doc-shot { margin: 16px 0 22px; }
.doc-body .doc-shot img { width: 100%; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }
.draft { margin-bottom: 28px; padding: 14px 18px; border-radius: 10px; background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; font-size: 15px; }

/* Responsivo */
@media (max-width: 1080px) {
    .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .docs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ai-points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .hero-top { grid-template-columns: minmax(0, 1fr); }
    .hero-logo { display: none; }
    .lightbox [data-lightbox-prev], .lightbox [data-lightbox-next] { top: auto; bottom: 16px; transform: none; }
    .site-nav, .header-cta { display: none; }
    .menu-toggle { display: block; }
    .site-header.open .site-nav { display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; padding: 16px; gap: 14px; background: var(--bg-dark); border-bottom: 1px solid rgba(255, 255, 255, .08); }
    .module, .module.reverse { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 48px 0; }
    .module.reverse .module-text { order: 0; }
    .pains, .cards-3, .cards-2, .ai-grid { grid-template-columns: minmax(0, 1fr); }
    .mobile-row { grid-template-columns: minmax(0, 1fr); justify-items: center; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .doc-layout { grid-template-columns: minmax(0, 1fr); }
    .doc-toc { position: static; }
    section { padding: 72px 0; }
}
@media (max-width: 560px) {
    .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .shot figcaption { font-size: 12px; }
    .flow, .docs, .ai-points { grid-template-columns: minmax(0, 1fr); }
    .phone { display: none; }
    .mobile-row .phone { display: block; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-actions .btn { width: 100%; }
}
