/* Final presentation layer for explicit feature demos and the Auraava Home view. */

#funcionalidades .crm-feature-card,
#funcionalidades .bento-card.narrow.dark {
    min-height: 590px;
}

#funcionalidades .bento-card.third {
    min-height: 530px;
}

#funcionalidades .web-publish-card,
#funcionalidades .schedule-feature-card {
    min-height: 540px;
}

#funcionalidades .crm-feature-card {
    padding-bottom: clamp(28px, 3vw, 38px);
}

#funcionalidades .crm-feature-card .mini-pipeline {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    margin-top: 26px;
}

body.home-view-active {
    overflow: hidden;
}

body.home-view-active .section-rail,
body.home-view-active .mobile-cta {
    opacity: 0;
    pointer-events: none;
}

.home-app-section[hidden] {
    display: none !important;
}

main > .home-app-section {
    position: fixed;
    z-index: 220;
    inset: 0;
    display: block;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100svh;
    align-items: flex-start;
    padding: 110px 0 90px;
    border: 0;
    background:
        linear-gradient(110deg, rgba(12, 20, 17, 0.78) 0%, rgba(12, 20, 17, 0.5) 49%, rgba(12, 20, 17, 0.62) 100%),
        url("assets/home/auraava-home-interior-v1.jpg") center / cover fixed no-repeat;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.015);
    transition: opacity 460ms ease, visibility 460ms ease, transform 700ms cubic-bezier(.16, 1, .3, 1);
}

.home-app-section.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.home-app-section::before {
    position: fixed;
    z-index: -1;
    inset: 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.035), rgba(10, 18, 15, 0.28));
    content: "";
    pointer-events: none;
}

.home-app-section .home-light-canvas {
    display: none;
}

.home-view-close {
    position: fixed;
    z-index: 4;
    top: 24px;
    right: max(24px, calc((100vw - var(--max)) / 2));
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(16, 25, 21, 0.78);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(18px);
}

.home-view-close span {
    font-size: 0.66rem;
    font-weight: 750;
}

.home-view-close svg {
    width: 16px;
    height: 16px;
    transform: rotate(180deg);
}

.home-app-section .home-app-copy {
    max-width: 560px;
    padding: clamp(28px, 4vw, 48px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    background: rgba(13, 23, 19, 0.72);
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.19);
    backdrop-filter: blur(20px) saturate(115%);
}

.home-app-section .home-app-copy h2,
.home-app-section .home-app-identity strong {
    color: #fff;
}

.home-app-section .home-app-copy > p:not(.section-kicker),
.home-app-section .home-app-identity span {
    color: rgba(255, 255, 255, 0.68);
}

.home-app-section .section-kicker {
    color: #6fe8bb;
}

.home-app-section .home-gallery-glow {
    background: radial-gradient(circle, rgba(237, 190, 126, 0.28), rgba(69, 218, 162, 0.15) 48%, transparent 72%);
}

.home-app-section .home-gallery-controls button {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(15, 25, 21, 0.72);
    color: #fff;
}

.home-app-section .home-gallery-progress span {
    background: rgba(255, 255, 255, 0.2);
}

.home-app-section .home-gallery-progress span.active {
    background: #68e6b8;
}

.home-app-section .home-capabilities {
    border-color: rgba(255, 255, 255, 0.14);
}

.home-app-section .home-capability {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(13, 23, 19, 0.67);
    backdrop-filter: blur(18px);
}

.home-app-section .home-capability > span {
    color: #69e5b7;
}

.home-app-section .home-capability h3 {
    color: #fff;
}

.home-app-section .home-capability p,
.home-app-section .home-feature-line {
    color: rgba(255, 255, 255, 0.66);
}

@media (max-width: 1040px) and (min-width: 761px) {
    #funcionalidades .bento-grid {
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }

    #funcionalidades .bento-card.wide,
    #funcionalidades .bento-card.narrow {
        grid-column: span 12;
    }

    #funcionalidades .bento-card.third {
        grid-column: span 6;
        min-height: 500px;
    }
}

@media (max-width: 760px) {
    #funcionalidades .bento-card,
    #funcionalidades .crm-feature-card,
    #funcionalidades .bento-card.narrow.dark,
    #funcionalidades .bento-card.third,
    #funcionalidades .web-publish-card,
    #funcionalidades .schedule-feature-card {
        min-height: 0;
        padding: 24px;
    }

    #funcionalidades .crm-feature-card .mini-pipeline {
        right: auto;
        bottom: auto;
        left: auto;
        grid-template-columns: 1fr;
        margin-top: 22px;
    }

    main > .home-app-section {
        padding: 92px 0 70px;
        background-attachment: scroll;
    }

    .home-view-close {
        top: 16px;
        right: 16px;
    }

    .home-app-section .home-app-copy {
        padding: 26px 22px;
        border-radius: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    main > .home-app-section {
        transition: none;
    }
}

/* Motion highlights information without making examples unreadable mid-cycle. */
@keyframes human-flow-arrive {
    0%, 7% { opacity: .84; transform: translateX(8px); }
    20%, 100% { opacity: 1; transform: none; }
}

@keyframes pipeline-priority {
    0%, 9% { transform: translateY(6px); box-shadow: none; opacity: .82; }
    22%, 78% { transform: none; border-color: rgba(27,183,126,.3); box-shadow: 0 10px 28px rgba(27,183,126,.12); opacity: 1; }
    100% { transform: none; opacity: 1; }
}

@keyframes insight-rise {
    0%, 24% { transform: translateY(6px); opacity: .76; }
    40%, 100% { transform: none; opacity: 1; }
}

@keyframes agent-online {
    0%, 38% { filter: grayscale(.55); opacity: .72; }
    55%, 100% { filter: none; opacity: 1; box-shadow: 0 0 0 5px rgba(145,173,211,.14); }
}

/* --------------------------------------------------------------------------
   v11 color and contrast pass

   The CRM keeps green as a small semantic signal, not as a large surface.
   Auraava Home intentionally returns to its original warm interior palette.
   -------------------------------------------------------------------------- */

:root {
    --feature-night: #202521;
    --feature-night-raised: #313733;
    --feature-night-line: #48504b;
    --feature-night-copy: #d8ded9;
    --feature-night-meta: #b8c1bb;
    --feature-blue: #91add3;
    --feature-blue-soft: #dce6f3;
    --home-navy: #0f172a;
    --home-cream: #f5f0eb;
    --home-cocoa: #3d2b1f;
    --home-cocoa-soft: #5c4033;
    --home-gold: #c4956a;
    --home-gold-soft: #d4a76a;
    --home-blush: #e8a0b0;
    --home-lilac: #b8a0d4;
}

/* Neutral dark canvases and readable editorial copy. */
#funcionalidades .bento-card.narrow.dark,
#funcionalidades .bento-card.third.dark,
#funcionalidades .web-publish-card {
    border-color: rgba(255, 255, 255, 0.13);
    background:
        radial-gradient(circle at 104% 102%, rgba(145, 173, 211, 0.13), transparent 31%),
        var(--feature-night);
}

#funcionalidades .bento-card.narrow.dark::before,
#funcionalidades .bento-card.third.dark::before,
#funcionalidades .web-publish-card::before {
    background: linear-gradient(90deg, transparent, rgba(216, 222, 217, 0.3), transparent);
}

#funcionalidades .bento-card.narrow.dark > p,
#funcionalidades .bento-card.third.dark > p,
#funcionalidades .web-publish-card > p {
    color: var(--feature-night-copy);
}

#funcionalidades .dark .bento-label,
#funcionalidades .web-publish-card .bento-label {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(248, 247, 243, 0.12);
    color: #edf1ee;
}

/* AI example: quiet neutrals with a blue intelligence accent. */
#funcionalidades .assistant-example-message small,
#funcionalidades .support-message small {
    color: var(--feature-night-meta);
    font-size: 10px;
}

#funcionalidades .assistant-example-message p {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--feature-night-raised);
    color: #f5f7f5;
    font-size: 12px;
    line-height: 1.5;
}

#funcionalidades .assistant-example-message.ai p {
    border-color: #d8d4cd;
    background: #f3f0eb;
    color: #252b27;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
}

#funcionalidades .ai-avatar {
    border-color: rgba(145, 173, 211, 0.62);
    background: rgba(145, 173, 211, 0.13);
    color: #bdd0ea;
}

#funcionalidades .ai-context-readout {
    border-color: var(--feature-night-line);
    background: #2a302c;
}

#funcionalidades .ai-context-readout > div + div {
    border-left-color: var(--feature-night-line);
}

#funcionalidades .ai-context-readout small {
    color: #bfc7c2;
    font-size: 9px;
}

#funcionalidades .ai-context-readout strong {
    color: #f7f8f7;
    font-size: 11px;
}

#funcionalidades .ai-scan-line {
    background: linear-gradient(90deg, transparent, rgba(145, 173, 211, 0.22), transparent);
}

#funcionalidades .assistant-typing {
    color: #bdc5c0;
}

#funcionalidades .assistant-typing em {
    font-size: 9px;
}

#funcionalidades .assistant-typing > span {
    background: var(--feature-blue);
}

#funcionalidades .assistant-orbit {
    border-color: rgba(145, 173, 211, 0.25);
}

#funcionalidades .assistant-orbit::before {
    border-color: rgba(145, 173, 211, 0.17);
}

#funcionalidades .assistant-orbit::after {
    background: #8faed6;
    box-shadow: 0 0 62px rgba(143, 174, 214, 0.22);
}

/* Human handoff: separate speakers clearly without a fluorescent fill. */
#funcionalidades .support-bubble {
    border: 1px solid rgba(255, 255, 255, 0.11);
    background: var(--feature-night-raised);
    color: #f1f4f2;
    font-size: 11px;
    box-shadow: none;
}

#funcionalidades .support-bubble.agent {
    border-color: #d7dfe9;
    background: #e7edf4;
    color: #24303c;
}

#funcionalidades .handoff-context {
    border-color: rgba(145, 173, 211, 0.32);
    background: rgba(145, 173, 211, 0.11);
}

#funcionalidades .handoff-context > svg,
#funcionalidades .handoff-context > em {
    color: #b8cdea;
}

#funcionalidades .handoff-context > em {
    font-size: 9px;
}

#funcionalidades .handoff-context strong {
    color: #f6f8f6;
    font-size: 10px;
}

#funcionalidades .handoff-context small {
    color: #c1c9c4;
    font-size: 9px;
}

#funcionalidades .handoff-progress {
    background: linear-gradient(90deg, var(--feature-blue), rgba(145, 173, 211, 0));
}

/* Web builder: blue/graphite branding reduces the all-green impression. */
#funcionalidades .widget-controls > div:not(.publish-status) {
    border-color: var(--feature-night-line);
    background: #2b312d;
}

#funcionalidades .widget-controls span {
    color: #c4cbc7;
    font-size: 10px;
}

#funcionalidades .widget-controls strong {
    color: #f7f8f7;
    font-size: 11px;
}

#funcionalidades .widget-controls em {
    background: rgba(145, 173, 211, 0.15);
    color: #c4d5ec;
    font-size: 9px;
}

#funcionalidades .color-swatch {
    background: #6889b5;
}

#funcionalidades .widget-builder-example .widget-head {
    background: #405d7c;
}

#funcionalidades .widget-builder-example .widget-head small {
    color: rgba(255, 255, 255, 0.83);
    font-size: 9px;
}

#funcionalidades .widget-builder-example .widget-head strong {
    font-size: 11px;
}

#funcionalidades .widget-customer-message {
    background: #567494;
    font-size: 10px;
}

#funcionalidades .widget-message {
    font-size: 10px;
}

#funcionalidades .publish-status {
    color: #bfe8d8;
    font-size: 10px;
}

/* Light feature cards use quieter blue/sand accents; green stays semantic. */
#funcionalidades .channel-performance b {
    background: linear-gradient(90deg, #6788b3, #9cb4d2);
}

#funcionalidades .analytics-insight {
    background: #eef3f8;
    color: #426589;
}

#funcionalidades .analytics-head em {
    background: #e8eef6;
    color: #3f6388;
}

#funcionalidades .pipeline-event > span {
    background: #55799d;
}

#funcionalidades .pipeline-event {
    border-color: rgba(85, 121, 157, 0.2);
    background: #eef4f8;
}

#funcionalidades .pipeline-event > em {
    color: #436b91;
}

/* The examples are teaching tools; their microcopy must remain legible. */
#funcionalidades .crm-feature-card .mini-stage > span b,
#funcionalidades .crm-feature-card .mini-stage > span em,
#funcionalidades .crm-feature-card .mini-lead u {
    font-size: 9px;
}

#funcionalidades .crm-feature-card .mini-lead strong,
#funcionalidades .pipeline-event strong,
#funcionalidades .operation-example-row strong {
    font-size: 11px;
}

#funcionalidades .crm-feature-card .mini-lead small,
#funcionalidades .pipeline-event small,
#funcionalidades .operation-example-row small,
#funcionalidades .operation-example-row em {
    font-size: 9.5px;
}

#funcionalidades .analytics-head small,
#funcionalidades .channel-performance > span,
#funcionalidades .channel-performance > strong,
#funcionalidades .analytics-insight strong,
#funcionalidades .analytics-insight small {
    font-size: 10px;
}

/* Auraava Home: restored cream, cocoa, gold, blush and lilac identity. */
main > .home-app-section {
    color: var(--home-cocoa);
    background:
        linear-gradient(106deg, rgba(15, 23, 42, 0.38) 0%, rgba(61, 43, 31, 0.17) 48%, rgba(61, 43, 31, 0.34) 100%),
        url("assets/home/auraava-home-interior-v1.jpg") center / cover fixed no-repeat;
}

.home-app-section::before {
    background:
        radial-gradient(circle at 12% 14%, rgba(212, 167, 106, 0.18), transparent 35%),
        linear-gradient(to bottom, rgba(245, 240, 235, 0.06), rgba(15, 23, 42, 0.2));
}

.home-view-close {
    border-color: rgba(61, 43, 31, 0.17);
    background: rgba(245, 240, 235, 0.92);
    color: var(--home-cocoa);
    box-shadow: 0 15px 40px rgba(61, 43, 31, 0.16);
}

.home-app-section .home-view-close:focus-visible {
    outline: 3px solid var(--home-gold-soft);
    outline-offset: 3px;
}

.home-app-section .home-app-copy {
    border-color: rgba(255, 255, 255, 0.64);
    background: rgba(245, 240, 235, 0.88);
    box-shadow: 0 35px 90px rgba(61, 43, 31, 0.2);
    backdrop-filter: blur(22px) saturate(108%);
}

.home-app-section .home-app-copy h2 {
    color: var(--home-cocoa);
}

.home-app-section .home-app-identity strong {
    color: var(--home-cocoa);
    background: linear-gradient(135deg, var(--home-cocoa) 0%, var(--home-gold) 58%, #8b6914 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.home-app-section .home-app-copy > p:not(.section-kicker) {
    color: var(--home-cocoa-soft);
}

.home-app-section .home-app-identity span {
    color: #735744;
}

.home-app-section .section-kicker {
    color: #815c37;
}

.home-app-section .home-gallery-glow {
    background: radial-gradient(circle, rgba(212, 167, 106, 0.34), rgba(232, 160, 176, 0.2) 44%, rgba(184, 160, 212, 0.12) 61%, transparent 74%);
}

.home-app-section .home-gallery-controls button {
    border-color: rgba(61, 43, 31, 0.18);
    background: rgba(245, 240, 235, 0.92);
    color: var(--home-cocoa);
    box-shadow: 0 10px 25px rgba(61, 43, 31, 0.11);
}

.home-app-section .home-gallery-progress span {
    background: rgba(245, 240, 235, 0.48);
}

.home-app-section .home-gallery-progress span.active {
    background: var(--home-gold-soft);
    box-shadow: 0 0 0 4px rgba(212, 167, 106, 0.16);
}

.home-app-section .home-capabilities {
    gap: 14px;
    border: 0;
}

.home-app-section .home-capability {
    border-color: rgba(255, 255, 255, 0.54);
    border-radius: 18px;
    background: rgba(245, 240, 235, 0.88);
    box-shadow: 0 18px 50px rgba(61, 43, 31, 0.12);
    backdrop-filter: blur(18px) saturate(108%);
}

.home-app-section .home-capability::before {
    background: radial-gradient(260px circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(212, 167, 106, 0.17), rgba(232, 160, 176, 0.07) 43%, transparent 67%);
}

.home-app-section .home-capability > span {
    color: #8a633d;
}

.home-app-section .home-capability h3 {
    color: var(--home-cocoa);
}

.home-app-section .home-capability p {
    color: #6b5344;
}

.home-app-section .home-feature-line {
    color: var(--home-cream);
    text-shadow: 0 2px 14px rgba(15, 23, 42, 0.55);
}

.home-app-section .home-feature-line span:not(:last-child)::after {
    background: var(--home-gold-soft);
}

@media (max-width: 760px) {
    main > .home-app-section {
        background-attachment: scroll;
        background-position: 61% center;
    }

    .home-app-section .home-app-copy,
    .home-app-section .home-capability {
        background: rgba(245, 240, 235, 0.93);
    }
}

/* --------------------------------------------------------------------------
   Product footage inside feature cards
   -------------------------------------------------------------------------- */

#funcionalidades .crm-feature-card,
#funcionalidades .assistant-feature-card {
    grid-column: 1 / -1;
    min-height: 0;
}

#funcionalidades .crm-feature-card {
    padding: 0;
    border-color: rgba(23, 33, 29, 0.1);
    background: #f4f5f2;
    box-shadow: 0 28px 70px rgba(23, 33, 29, 0.1);
}

#funcionalidades .crm-feature-card::before,
#funcionalidades .assistant-feature-card::before {
    display: none;
}

#funcionalidades .assistant-feature-card {
    padding: clamp(30px, 3.5vw, 46px);
    border-color: rgba(23, 33, 29, 0.09);
    background: #f4f5f2;
    color: var(--ink);
    box-shadow: 0 28px 70px rgba(23, 33, 29, 0.08);
}

#funcionalidades .assistant-feature-layout {
    display: grid;
    gap: clamp(30px, 4.5vw, 62px);
    align-items: center;
}

#funcionalidades .assistant-feature-card h3 {
    max-width: 390px;
    margin: 0;
    color: var(--ink);
    font-size: clamp(2rem, 3.1vw, 3.3rem);
    line-height: 1;
}

#funcionalidades .assistant-feature-card .feature-video-copy > p {
    max-width: 390px;
    margin-top: 18px;
    color: #5f6b65;
    font-size: 1rem;
    line-height: 1.65;
}

@media (min-width: 761px) {
    #funcionalidades .assistant-feature-layout {
        grid-template-columns: minmax(0, 1.5fr) minmax(270px, 0.62fr);
    }
}

#funcionalidades .feature-video-demo {
    position: relative;
    z-index: 2;
    margin-top: 36px;
    overflow: hidden;
    border: 1px solid rgba(23, 33, 29, 0.11);
    border-radius: 24px;
    background: #eef1ef;
    box-shadow: 0 24px 58px rgba(23, 33, 29, 0.11);
    isolation: isolate;
}

#funcionalidades .feature-video-demo::after {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
    content: "";
    pointer-events: none;
}

#funcionalidades .feature-demo-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: inherit;
    background: #eef1ef;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
}

#funcionalidades .feature-video-demo-assistant {
    margin-top: 0;
    border-color: rgba(23, 33, 29, 0.08);
    background: #f4f5f2;
    box-shadow: 0 20px 48px rgba(23, 33, 29, 0.08);
}

#funcionalidades .feature-video-demo-assistant .feature-demo-video {
    background: #f4f5f2;
}

#funcionalidades .crm-feature-card .feature-video-demo {
    width: 100%;
    margin: 0;
    border: 0;
    border-radius: inherit;
    box-shadow: none;
}

#funcionalidades .feature-demo-video::-webkit-media-controls,
#funcionalidades .feature-demo-video::-webkit-media-controls-panel,
#funcionalidades .feature-demo-video::-webkit-media-controls-start-playback-button {
    display: none !important;
    -webkit-appearance: none;
}

@media (max-width: 760px) {
    #funcionalidades .feature-video-demo {
        width: calc(100% + 32px);
        margin-top: 22px;
        margin-left: -16px;
        border-radius: 16px;
        box-shadow: 0 18px 42px rgba(23, 33, 29, 0.1);
    }

    #funcionalidades .crm-feature-card .feature-video-demo {
        width: 100%;
        margin: 0;
        border-radius: inherit;
    }

    #funcionalidades .assistant-feature-card {
        padding: 26px 24px;
    }

    #funcionalidades .assistant-feature-card h3 {
        font-size: 2rem;
    }
}

/* The web builder is product footage, not a duplicated explanatory card. */
#funcionalidades .web-builder-video-card {
    padding: 0;
    border-color: rgba(23, 33, 29, 0.1);
    background: #f4f5f2;
    box-shadow: 0 28px 70px rgba(23, 33, 29, 0.1);
}

#funcionalidades .web-builder-video-card::before {
    display: none;
}

#funcionalidades .web-builder-video-card .feature-video-demo-web-builder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    border: 0;
    border-radius: inherit;
    background: #f4f5f2;
    box-shadow: none;
}

#funcionalidades .web-builder-video-card .feature-demo-video {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    background: #f4f5f2;
    object-fit: contain;
}

@media (max-width: 760px) {
    #funcionalidades .web-builder-video-card {
        min-height: 0;
        padding: 0;
        aspect-ratio: 16 / 9;
    }

    #funcionalidades .web-builder-video-card .feature-video-demo-web-builder {
        width: 100%;
        margin: 0;
        border-radius: inherit;
    }
}
