/* ==========================================================================
   INTRADOC — página pública
   Design: sóbrio, formal, bastante espaço em branco e hierarquia clara.
   ========================================================================== */

.home-page {
    --home-ink: #0b1220;
    --home-ink-2: #16233a;
    --home-text: #1e293b;
    --home-muted: #64748b;
    --home-line: #e2e8f0;
    --home-soft: #f6f8fb;
    --home-accent: #2563eb;
    --home-accent-soft: #e0ecff;
    --home-radius: 0.9rem;

    background: #fff;
    color: var(--home-text);
    font-size: 16px;
    line-height: 1.6;
}

.home-page a {
    color: var(--home-accent);
    text-decoration: none;
}

.home-skip {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    background: #fff;
    color: var(--home-ink);
    padding: 0.7rem 1rem;
    border-radius: 0 0 0.6rem 0;
}

.home-skip:focus {
    left: 0;
}

/* ------------------------------ TOPO ------------------------------ */
.home-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1rem clamp(1rem, 5vw, 3rem);
    background: var(--home-ink);
    color: #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.home-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: #f8fafc !important;
    font-weight: 700;
    letter-spacing: 0.06em;
    font-size: 0.95rem;
}

.home-brand .intradoc-logo {
    height: 1.6rem;
    width: auto;
}

.home-nav {
    display: flex;
    align-items: center;
    gap: 1.6rem;
}

.home-nav a {
    color: #cbd5e1 !important;
    font-size: 0.9rem;
    font-weight: 500;
}

.home-nav a:hover,
.home-nav a:focus-visible {
    color: #fff !important;
}

.home-enter {
    background: var(--home-accent);
    color: #fff !important;
    padding: 0.45rem 1.05rem;
    border-radius: 999px;
    font-weight: 600;
}

.home-enter:hover,
.home-enter:focus-visible {
    background: #1d4ed8;
    color: #fff !important;
}

/* ------------------------------ HERO ------------------------------ */
.home-hero {
    position: relative;
    padding: clamp(2.5rem, 6vw, 5rem) clamp(1rem, 5vw, 3rem);
    background:
        radial-gradient(1100px 480px at 78% -10%, rgba(37, 99, 235, 0.22), transparent 65%),
        var(--home-ink);
    color: #e2e8f0;
    overflow: hidden;
}

.home-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.07) 1px, transparent 1px);
    background-size: 58px 58px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent 78%);
    pointer-events: none;
}

.home-hero-grid {
    position: relative;
    width: min(74rem, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.home-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 0.9rem;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--home-muted);
}

.home-hero .home-kicker {
    color: #93c5fd;
}

.home-kicker span {
    width: 1.5rem;
    height: 2px;
    background: currentColor;
    opacity: 0.7;
}

.home-hero h1 {
    margin: 0 0 1.1rem;
    max-width: 15ch;
    font-size: clamp(2.1rem, 3.4vw, 3.25rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
    font-weight: 700;
    color: #f8fafc;
}

.home-lead {
    margin: 0 0 1.8rem;
    max-width: 34rem;
    color: #a9bbd4;
    font-size: 1.02rem;
    line-height: 1.7;
}

.home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    align-items: center;
}

.home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.4rem;
    border-radius: 0.6rem;
    font-weight: 600;
    font-size: 0.92rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.home-page a.home-btn-primary {
    background: var(--home-accent);
    color: #fff;
}

.home-page a.home-btn-primary:hover,
.home-page a.home-btn-primary:focus-visible {
    background: #1d4ed8;
    color: #fff;
}

.home-page a.home-btn-ghost {
    border-color: rgba(148, 163, 184, 0.4);
    color: #e2e8f0;
}

.home-page a.home-btn-ghost:hover,
.home-page a.home-btn-ghost:focus-visible {
    border-color: #94a3b8;
    background: rgba(148, 163, 184, 0.12);
    color: #fff;
}

/* Painel ilustrativo do portal */
.home-panel {
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: var(--home-radius);
    backdrop-filter: blur(6px);
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.45);
}

.home-panel header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
}

.home-dots {
    display: inline-flex;
    gap: 0.3rem;
}

.home-dots i {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #475569;
}

.home-dots i:first-child { background: #38bdf8; }
.home-dots i:nth-child(2) { background: #3b82f6; }

.home-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.85rem 1.1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.home-row:last-child {
    border-bottom: 0;
}

.home-mark {
    width: 2.1rem;
    height: 2.1rem;
    flex: 0 0 2.1rem;
    border-radius: 0.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.16);
    color: #93c5fd;
    font-size: 0.9rem;
}

.home-row strong {
    display: block;
    color: #f1f5f9;
    font-size: 0.92rem;
    font-weight: 600;
}

.home-row small {
    display: block;
    color: #8fa3bd;
    font-size: 0.78rem;
}

/* ------------------------------ SECÇÕES ------------------------------ */
.home-section {
    width: min(74rem, 100%);
    margin: 0 auto;
    padding: clamp(1.8rem, 3.4vw, 3rem) clamp(1rem, 4vw, 2rem);
}

.home-section-alt {
    width: min(80rem, 100%);
    background: var(--home-soft);
    border-radius: 1.2rem;
    padding: clamp(2rem, 4vw, 3.4rem) clamp(1rem, 4vw, 3rem);
    margin-bottom: clamp(1.5rem, 3vw, 2.6rem);
}

.home-section h2,
.home-trust h2,
.home-cta h2 {
    margin: 0 0 1.6rem;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    line-height: 1.2;
    letter-spacing: -0.025em;
    font-weight: 700;
    color: var(--home-ink);
}

.home-section-alt h2 {
    color: var(--home-ink);
}

.home-section-alt .home-kicker {
    color: var(--home-accent);
}

/* Módulos */
.home-modules {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
}

.home-module {
    background: #fff;
    border: 1px solid var(--home-line);
    border-radius: var(--home-radius);
    padding: 1.25rem 1.15rem;
    transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.home-module:hover {
    border-color: #c7d7f5;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

.home-module i {
    font-size: 1.05rem;
    color: var(--home-accent);
    margin-bottom: 0.7rem;
    display: block;
}

.home-module h3 {
    margin: 0 0 0.3rem;
    font-size: 0.98rem;
    font-weight: 650;
    color: var(--home-ink);
}

.home-module p {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.55;
    color: var(--home-muted);
}

/* Passos */
.home-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.home-step {
    background: #fff;
    border: 1px solid var(--home-line);
    border-radius: var(--home-radius);
    padding: 1.4rem 1.3rem;
}

.home-step em {
    display: inline-block;
    font-style: normal;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--home-accent);
    margin-bottom: 0.6rem;
}

.home-step h3 {
    margin: 0 0 0.4rem;
    font-size: 1rem;
    font-weight: 650;
    color: var(--home-ink);
}

.home-step p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--home-muted);
}

/* Comparativo */
.home-compare {
    background: #fff;
    border: 1px solid var(--home-line);
    border-radius: var(--home-radius);
    overflow: hidden;
}

.home-compare-head,
.home-compare-row {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1.15fr;
    gap: 0.5rem;
    align-items: center;
}

.home-compare-head {
    background: var(--home-ink);
    color: #cbd5e1;
    font-size: 0.76rem;
    font-weight: 650;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.85rem 1.1rem;
}

.home-compare-head .is-intradoc {
    color: #93c5fd;
}

.home-compare-row {
    padding: 0.8rem 1.1rem;
    border-top: 1px solid #eef2f7;
    font-size: 0.88rem;
    color: var(--home-muted);
}

.home-compare-row span:first-child {
    color: var(--home-ink);
    font-weight: 600;
}

.home-compare-row .is-intradoc {
    color: var(--home-ink);
    font-weight: 600;
}

.home-compare-row .is-intradoc i {
    color: #059669;
    margin-right: 0.35rem;
}

/* Segurança */
.home-trust {
    width: min(74rem, 100%);
    margin: 0 auto;
    padding: clamp(1.8rem, 3.4vw, 3rem) clamp(1rem, 4vw, 2rem);
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: start;
}

.home-trust h2 {
    margin-bottom: 1.4rem;
}

.home-trust-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1.1rem;
}

.home-trust-list li h3 {
    margin: 0 0 0.25rem;
    font-size: 0.95rem;
    font-weight: 650;
    color: var(--home-ink);
}

.home-trust-list li p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--home-muted);
}

.home-trust-card {
    background: var(--home-ink);
    color: #e2e8f0;
    border-radius: var(--home-radius);
    padding: 1.6rem 1.4rem;
}

.home-trust-card h3 {
    margin: 0 0 1rem;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #93c5fd;
}

.home-trust-checks {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.65rem;
    font-size: 0.9rem;
}

.home-trust-checks li {
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
    color: #cbd5e1;
}

.home-trust-checks i {
    color: #34d399;
    margin-top: 0.25rem;
    font-size: 0.8rem;
}

/* Dúvidas */
.home-faq {
    display: grid;
    gap: 0.55rem;
    max-width: 50rem;
}

.home-faq details {
    background: #fff;
    border: 1px solid var(--home-line);
    border-radius: 0.7rem;
    padding: 0.85rem 1.1rem;
}

.home-faq summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 0.94rem;
    color: var(--home-ink);
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}

.home-faq summary::-webkit-details-marker {
    display: none;
}

.home-faq-caret {
    font-size: 0.72rem;
    color: #94a3b8;
    transition: transform 0.15s ease;
}

.home-faq details[open] .home-faq-caret {
    transform: rotate(180deg);
}

.home-faq details p {
    margin: 0.65rem 0 0;
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--home-muted);
}

/* CTA final */
.home-cta {
    width: min(74rem, 100%);
    margin: 0 auto clamp(2.5rem, 5vw, 4rem);
    padding: clamp(2rem, 4vw, 3rem) clamp(1.2rem, 4vw, 3rem);
    background: var(--home-ink);
    border-radius: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.home-cta h2 {
    margin: 0;
    color: #f8fafc;
}

/* ------------------------------ RODAPÉ ------------------------------ */
.home-foot {
    border-top: 1px solid var(--home-line);
    background: var(--home-soft);
    padding: 1.4rem clamp(1rem, 4vw, 3rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--home-muted);
}

.home-foot nav {
    display: flex;
    gap: 1.2rem;
}

.home-foot a {
    color: var(--home-muted);
}

.home-foot a:hover,
.home-foot a:focus-visible {
    color: var(--home-ink);
}

/* ------------------------------ RESPONSIVO ------------------------------ */
@media (max-width: 1000px) {
    .home-modules {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .home-hero-grid,
    .home-trust {
        grid-template-columns: 1fr;
    }

    .home-steps {
        grid-template-columns: 1fr;
    }

    .home-modules {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-compare-head,
    .home-compare-row {
        grid-template-columns: 1fr 1fr;
    }

    .home-compare-head span:first-child,
    .home-compare-row span:first-child {
        grid-column: 1 / -1;
    }

    .home-cta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.2rem;
    }
}

@media (max-width: 680px) {
    .home-top {
        flex-wrap: wrap;
        gap: 0.8rem;
    }

    .home-nav {
        gap: 1rem;
        flex-wrap: wrap;
        font-size: 0.85rem;
    }

    .home-nav a:nth-child(n + 4) {
        display: none;
    }

    .home-hero h1 {
        max-width: 100%;
        font-size: clamp(1.8rem, 7.5vw, 2.3rem);
    }

    .home-modules {
        grid-template-columns: 1fr;
    }

    .home-compare-head,
    .home-compare-row {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .home-compare-head {
        grid-template-columns: 1fr;
    }

    .home-compare-row span:not(:first-child) {
        padding-left: 0.9rem;
    }
}
