/* ==========================================================================
   InovaMicro — produtos próprios (/colorau, /treinix, ...) e vitrine da home
   Cada página de produto define --p, --p-dark, --p-soft, --p-on e --p-ink no <body>.
   ========================================================================== */

.product { --p: var(--brand); --p-dark: var(--brand-dark); --p-soft: var(--brand-soft); --p-on: #fff; --p-ink: var(--ink); }

.btn-p { background: var(--p); color: var(--p-on); box-shadow: 0 8px 20px rgba(11, 27, 51, .14); }
.btn-p:hover { background: var(--p-dark); color: #fff; }
.product .eyebrow { color: var(--p-dark); }
.product .link-arrow { color: var(--p-dark); }
.product .section-dark .eyebrow { color: #fff; opacity: .75; }

.btn-store {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 9px 18px 9px 14px; border-radius: 12px; background: #111; color: #fff; text-decoration: none;
    line-height: 1.15; border: 1px solid #111; transition: transform .2s;
}
.btn-store:hover { transform: translateY(-1px); }
.btn-store svg { width: 24px; height: 24px; flex-shrink: 0; }
.btn-store small { display: block; font-size: .6875rem; opacity: .8; font-weight: 500; }
.btn-store strong { font-size: 1rem; font-weight: 700; }
.btn-store.is-soon { background: rgba(255, 255, 255, .6); color: var(--ink); border: 1px dashed #9AA6B8; cursor: default; }
.btn-store.is-soon:hover { transform: none; }

.status {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .8125rem; font-weight: 700; padding: 6px 12px; border-radius: 999px;
    background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); white-space: nowrap;
}
.status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #F0A020; }
.status.live::before { background: var(--success); box-shadow: 0 0 0 4px rgba(18, 160, 107, .15); }
.status.dev::before { background: #8B95A7; }

/* ---------- Hero do produto ---------- */

.p-hero {
    position: relative; overflow: hidden; padding: 64px 0 88px;
    background:
        radial-gradient(700px 420px at 90% 0%, rgba(255, 255, 255, .7), transparent 65%),
        var(--p-soft);
}
.p-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.p-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; flex-wrap: wrap; }
.p-icon {
    width: 64px; height: 64px; border-radius: 18px; background: #fff; box-shadow: var(--shadow);
    display: grid; place-items: center; overflow: hidden; flex-shrink: 0;
}
.p-icon img { width: 100%; height: 100%; object-fit: contain; }
.p-icon svg { width: 34px; height: 34px; color: var(--p); }
.p-icon.on-brand { background: var(--p); }
.p-icon.on-brand svg { color: #fff; }
.p-icon.pad img { padding: 6px; }
.p-brand-name { font-size: 1.375rem; font-weight: 800; color: var(--p-ink); letter-spacing: -0.02em; line-height: 1.15; }
.p-brand-name small { display: block; font-size: .8125rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.p-hero h1 { font-size: clamp(2.125rem, 4.6vw, 3.375rem); font-weight: 800; letter-spacing: -0.035em; color: var(--p-ink); margin-bottom: 20px; }
.p-hero h1 em { font-style: normal; color: var(--p-dark); }
.p-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 20px; }
.p-note { font-size: .9063rem; color: var(--muted); margin: 0; }
.p-note a { color: var(--p-dark); font-weight: 600; }

.p-visual { position: relative; display: flex; justify-content: center; }

/* ---------- Celular ---------- */

.phone {
    position: relative; width: 100%; max-width: 280px;
    border-radius: 42px; padding: 10px; background: #0E1626;
    box-shadow: 0 30px 70px rgba(11, 27, 51, .28), inset 0 0 0 2px #2A3447;
}
.phone .media { aspect-ratio: 9 / 19.5; border-radius: 33px; background: #fff; }
.phone::before {
    content: ''; position: absolute; z-index: 2; top: 20px; left: 50%; transform: translateX(-50%);
    width: 74px; height: 20px; border-radius: 12px; background: #0E1626;
}
.p-visual.has-two { justify-content: flex-start; padding-left: 6%; }
.p-visual .phone + .phone { position: absolute; right: 4%; top: 12%; max-width: 230px; transform: rotate(6deg); z-index: 0; }
.p-visual .phone:first-child { z-index: 1; }

/* ---------- Cartão ilustrativo (quando ainda não há print) ---------- */

.mock-card {
    width: 100%; max-width: 440px; background: #fff; border-radius: 22px; padding: 28px;
    box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.mock-label { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.mock-prompt { background: var(--p-soft); border-radius: 14px; padding: 14px 16px; color: var(--p-ink); font-weight: 600; margin-bottom: 20px; font-size: .9688rem; }
.mock-q { font-weight: 700; color: var(--ink); margin-bottom: 14px; line-height: 1.45; }
.mock-opts { display: grid; gap: 8px; list-style: none; padding: 0; margin: 0 0 18px; }
.mock-opts li { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font-size: .9375rem; }
.mock-opts li.ok { border-color: var(--success); background: #E9F7F1; color: #0B6B47; font-weight: 600; }
.mock-foot { display: flex; justify-content: space-between; gap: 12px; font-size: .8125rem; color: var(--muted); }
.mock-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-tile { border-radius: 16px; padding: 18px 8px; text-align: center; background: var(--p-soft); font-weight: 700; color: var(--p-ink); font-size: .875rem; }
.mock-tile svg { width: 28px; height: 28px; margin: 0 auto 8px; color: var(--p-dark); }

/* ---------- Aviso em destaque ---------- */

.p-callout {
    display: flex; gap: 14px; align-items: flex-start;
    padding: 18px 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
    border-left: 4px solid var(--p); font-size: .9688rem;
}
.p-callout svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--p-dark); margin-top: 2px; }
.p-callout p { margin: 0; }
.p-callout-wrap { padding: 32px 0 0; }

/* ---------- Cartões de público ---------- */

.p-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.p-cards.two { grid-template-columns: repeat(2, 1fr); }
.p-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.p-card h3 { font-size: 1.1875rem; margin-bottom: 8px; }
.p-card p { color: var(--muted); font-size: 1rem; margin: 0; }
.p-card ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.p-card li, .plan li { position: relative; padding-left: 24px; font-size: .9688rem; }
.p-card li::before, .plan li::before {
    content: ''; position: absolute; left: 2px; top: .55em; width: 12px; height: 7px;
    border-left: 2px solid var(--p-dark); border-bottom: 2px solid var(--p-dark); transform: rotate(-45deg);
}
.p-ico {
    width: 48px; height: 48px; border-radius: 14px; margin-bottom: 18px;
    display: grid; place-items: center; background: var(--p-soft); color: var(--p-dark);
}
.p-ico svg { width: 24px; height: 24px; }

/* ---------- Funcionalidades ---------- */

.p-group-title { font-size: .9375rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--p-dark); margin: 48px 0 24px; }
.p-group-title:first-child { margin-top: 0; }
.p-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 32px; }
.p-feature { display: flex; gap: 16px; }
.p-feature .p-ico { margin: 0; flex-shrink: 0; width: 44px; height: 44px; }
.p-feature .p-ico svg { width: 22px; height: 22px; }
.p-feature h3 { font-size: 1.0625rem; margin-bottom: 4px; }
.p-feature p { font-size: .9688rem; color: var(--muted); margin: 0; }

/* ---------- Passos ---------- */

.p-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; list-style: none; padding: 0; margin: 0; counter-reset: pstep; }
.p-steps li::before {
    counter-increment: pstep; content: counter(pstep);
    display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
    background: var(--p); color: var(--p-on); font-weight: 800; margin-bottom: 16px;
}
.p-steps h3 { font-size: 1.125rem; margin-bottom: 6px; }
.p-steps p { font-size: .9688rem; color: var(--muted); margin: 0; }

/* ---------- Chips ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .9375rem; font-weight: 600; color: var(--p-ink); }

/* ---------- Telas ---------- */

.p-screens {
    display: grid; grid-auto-flow: column; grid-auto-columns: 220px; gap: 24px;
    overflow-x: auto; padding: 8px 4px 24px; scroll-snap-type: x mandatory;
}
.p-screens figure { margin: 0; scroll-snap-align: start; }
.p-screens .phone { max-width: none; padding: 8px; border-radius: 34px; box-shadow: var(--shadow); }
.p-screens .phone::before { top: 15px; width: 56px; height: 16px; }
.p-screens .phone .media { border-radius: 27px; }
.p-screens figcaption { text-align: center; font-size: .875rem; font-weight: 600; color: var(--muted); margin-top: 12px; }

/* ---------- Planos ---------- */

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--p); box-shadow: var(--shadow); }
.plan h3 { font-size: 1.375rem; margin-bottom: 4px; }
.plan .plan-sub { color: var(--muted); font-size: .9375rem; margin-bottom: 20px; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.plans-note { margin-top: 20px; font-size: .9063rem; color: var(--muted); }

/* ---------- Chamada final do produto ---------- */

.p-cta {
    border-radius: 28px; padding: 56px; text-align: center; color: #fff;
    background: linear-gradient(135deg, var(--p) 0%, var(--p-dark) 100%);
}
.p-cta h2 { color: #fff; font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 800; }
.p-cta p { font-size: 1.125rem; opacity: .92; max-width: 620px; margin: 0 auto 28px; }
.p-cta .p-actions { justify-content: center; margin: 0; }

/* ---------- Links legais do produto ---------- */

.p-legal { background: var(--surface); border-top: 1px solid var(--line); padding: 28px 0; font-size: .9375rem; }
.p-legal .container { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; }
.p-legal nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.p-legal a { color: var(--text); text-decoration: none; font-weight: 600; }
.p-legal a:hover { color: var(--p-dark); }
.p-legal span { color: var(--muted); }

/* ---------- Vitrine de produtos (home) ---------- */

.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1140px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }
.product-card {
    display: flex; flex-direction: column; text-decoration: none; color: inherit;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px;
    transition: box-shadow .2s, transform .2s, border-color .2s;
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: transparent; }
.product-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.product-card .p-icon { width: 56px; height: 56px; border-radius: 16px; box-shadow: none; border: 1px solid var(--line); }
.product-card .p-icon svg { width: 28px; height: 28px; }
.product-card .status { box-shadow: none; background: var(--surface); font-size: .75rem; }
.product-card h3 { font-size: 1.25rem; margin-bottom: 2px; }
.product-card .kind { font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.product-card p { color: var(--muted); font-size: .9688rem; }
.product-card .link-arrow { margin-top: auto; }

.case-cta-card {
    display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 4px;
    border: 2px dashed #C4D1EA; border-radius: var(--radius-lg); padding: 40px;
}
.case-cta-card h3 { font-size: 1.5rem; }
.case-cta-card p { color: var(--muted); }

@media (max-width: 960px) {
    .p-hero { padding: 40px 0 64px; }
    .p-hero-grid { grid-template-columns: 1fr; gap: 48px; }
    .p-cards, .p-features, .plans, .products-grid { grid-template-columns: repeat(2, 1fr); }
    .p-steps { grid-template-columns: repeat(2, 1fr); }
    .p-visual.has-two { justify-content: center; padding-left: 0; }
    .p-visual .phone + .phone { display: none; }
}
@media (max-width: 640px) {
    .p-cards, .p-cards.two, .p-features, .plans, .p-steps, .products-grid { grid-template-columns: 1fr; }
    .p-cta { padding: 40px 24px; border-radius: 22px; }
    .phone { max-width: 250px; }
    .case-cta-card { padding: 28px; }
}

.p-callout a, .faq a { color: var(--p-dark, var(--brand)); font-weight: 700; }

/* Lista de modelos por grupo (home) */
.models-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .models-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .models-grid-4 { grid-template-columns: 1fr; } }
.model-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 6px; font-size: .9375rem; }
.model-list a { color: var(--text); text-decoration: none; }
.model-list a:hover { color: var(--brand); }
.model-list li::before { content: '→ '; color: var(--brand); }
.model-card .media { aspect-ratio: 16 / 10; }
.model-card .media img { object-position: top left; }

/* Páginas de serviço */
.page-hero h1 em { font-style: normal; color: var(--brand); }
.page-hero .eyebrow { display: block; }
.svc-intro { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: start; }
.svc-text h2 { font-size: clamp(1.75rem, 3.2vw, 2.375rem); font-weight: 800; }
.svc-text p { font-size: 1.0938rem; }
.svc-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; position: sticky; top: calc(var(--header-h) + 24px); }
.svc-box h3 { font-size: 1.1875rem; margin-bottom: 18px; }
.svc-box .btn { width: 100%; margin-top: 10px; }
.svc-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.svc-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); font-weight: 700; text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.svc-link:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); }
@media (max-width: 900px) { .svc-intro { grid-template-columns: 1fr; gap: 32px; } .svc-box { position: static; } }
