.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

a:focus-visible,
summary:focus-visible,
.btn:focus-visible {
    outline: 3px solid var(--brand-orange);
    outline-offset: 3px;
}

/* ---------- Hero ---------- */
.ft-hero {
    background: #e0e5fd;
    padding: 20px 0 40px;
    overflow: hidden;
}

.ft-hero h1 {
    font-size: 40px;
    font-weight: 900;
    line-height: 1.55;
    color: #1a1a4e;
    margin-bottom: 18px;
}

.ft-brand {
    color: var(--brand-purple-dark);
}

.ft-hero .hero-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    opacity: 1;
    margin-bottom: 32px;
    max-width: 460px;
}

.ft-hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.ft-hero-actions .btn {
    border-radius: 100px;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 700;
    gap: 10px;
}

.ft-btn-demo {
    background: var(--brand-purple-dark);
    color: white;
    box-shadow: 0 8px 20px rgba(68, 52, 217, 0.35);
}

.ft-btn-demo::after {
    content: "\2190";
    font-size: 1.2rem;
}

.ft-btn-demo:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(68, 52, 217, 0.5);
}

.ft-btn-outline {
    border: 2px solid var(--brand-purple-dark);
    color: var(--brand-purple-dark);
    background: transparent;
}

.ft-btn-outline:hover {
    background: var(--brand-purple-dark);
    color: #fff;
}

.ft-hero-visual img {
    display: block;
    width: 100%;
    height: auto;
}

/* ---------- Comparison table ---------- */
.ft-table-wrap {
    max-width: 880px;
    margin: 0 auto;
    overflow-x: auto;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.ft-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 560px;
}

.ft-table th,
.ft-table td {
    padding: 16px 22px;
    text-align: right;
    border-bottom: 1px solid #e8edf5;
}

.ft-table tbody tr:last-child > * {
    border-bottom: none;
}

.ft-table thead th {
    background: #f1f5f9;
    color: var(--text-heading);
}

.ft-table thead .ft-th-brand {
    background: var(--brand-purple);
    color: #fff;
}

.ft-table tbody th {
    font-weight: 700;
    color: var(--text-heading);
}

.ft-table td:last-child {
    background: rgba(106, 92, 226, 0.06);
    color: var(--text-heading);
    font-weight: 700;
}

/* ---------- Feature rows ---------- */
.ft-feature.ft-rev {
    background: #fff;
}

.ft-text h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #141414;
    margin-bottom: 16px;
}

.ft-text > p {
    font-size: 1.05rem;
    text-align: justify;
    margin-bottom: 20px;
}

.ft-list {
    list-style: none;
    margin-bottom: 26px;
}

.ft-list li {
    position: relative;
    padding: 6px 34px 6px 0;
}

.ft-list li::before {
    content: "✓";
    position: absolute;
    right: 0;
    top: 8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.15);
    color: var(--brand-green);
    font-size: 0.8rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* alternate the visual side on wide screens */
@media (min-width: 992px) {
    .ft-rev .ft-text {
        order: 2;
    }
}

.ft-visual {
    background: #e7eaef;
    border: 1px solid #f1f5f9;
    border-radius: 20px;
    padding: 28px;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ft-feature.ft-rev .ft-visual {
    background: #f0f5fd;
}

.ft-visual img {
    max-width: 100%;
    height: auto;
}

/* chat mockup */
.ft-chat {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ft-chat-tag {
    align-self: center;
    font-size: 0.8rem;
    padding: 2px 14px;
    border-radius: 100px;
    background: #fff;
    color: var(--brand-purple);
    margin-bottom: 4px;
}

.ft-bubble {
    max-width: 82%;
    padding: 10px 16px;
    border-radius: 16px;
    font-size: 0.95rem;
    margin: 0;
}

.ft-in {
    background: #fff;
    color: var(--text-heading);
    border-top-right-radius: 4px;
    align-self: flex-end;
}

.ft-out {
    align-self: flex-start;
    background: var(--brand-purple);
    color: #fff;
    border-top-left-radius: 4px;
}

/* images */
.ft-imgs {
    gap: 14px;
}

.ft-imgs img {
    width: 48%;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
}

.ft-imgs img:first-child {
    transform: rotate(6deg);
}

.ft-imgs img:last-child {
    transform: rotate(-6deg);
}

.ft-single img {
    max-width: 300px;
}

.ft-phones {
    gap: 0;
}

.ft-phones img {
    width: 31%;
}

.ft-ph-c {
    z-index: 1;
    width: 36% !important;
}

.ft-ph-l {
    transform: rotate(-12deg) translateX(18px);
}

.ft-ph-r {
    transform: rotate(12deg) translateX(-18px);
}

/* campaigns */
.ft-campaigns {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
}

.ft-campaigns .campaign-box {
    min-height: 82px;
}

/* ---------- Steps ---------- */
.ft-steps-section {
    background: #fff;
}

.ft-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    list-style: none;
    counter-reset: step;
}

.ft-steps li {
    counter-increment: step;
    background: #f0f5fd;
    border-radius: 20px;
    padding: 28px 24px;
}

.ft-steps li::before {
    content: counter(step);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--brand-purple);
    color: #fff;
    font-weight: 900;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.ft-steps h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--text-heading);
}

/* ---------- FAQ (details) ---------- */
.ft-faq details {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
}

.ft-faq summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 24px;
    font-size: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.ft-faq summary::-webkit-details-marker {
    display: none;
}

.ft-faq summary::after {
    content: "+";
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--brand-purple);
}

.ft-faq details[open] summary {
    font-weight: 700;
}

.ft-faq details[open] summary::after {
    content: "−";
}

.ft-faq details p {
    padding: 0 24px 20px;
}

/* ---------- Responsive ---------- */
@media only screen and (max-width: 991px) {
    .ft-hero h1 {
        font-size: 28px;
    }

    .ft-hero .hero-subtitle {
        margin-bottom: 24px;
        max-width: none;
    }

    .ft-hero-visual {
        margin-top: 8px;
    }

    .ft-text h2 {
        font-size: 1.6rem;
    }

    .ft-steps {
        grid-template-columns: 1fr;
    }

    .ft-visual {
        min-height: 260px;
    }

}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* ---------- Homepage-style showcase cards ---------- */
.ft-showcase { min-height: 340px; }
.ft-showcase .isenarios { height: 230px; }
.ft-showcase .ibot-main { height: 200px; }
.ft-showcase .iapps-main { min-height: 230px; }
.ft-showcase .iapps-main img { width: 170px; }
.ft-showcase .iapps-left, .ft-showcase .iapps-right { top: 55px !important; }
.ft-showcase .mockup-container { margin-top: auto; }
.ft-feature.ft-rev .feature-card { background: #e7eaef; }

/* ---------- Sub-capabilities under each feature ---------- */
.ft-subgrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}
.ft-subgrid article {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-right: 5px solid var(--brand-purple);
    border-radius: 16px;
    padding: 20px 22px;
}
.ft-feature.ft-rev .ft-subgrid article { background: #f0f5fd; }
.ft-subgrid h3 { font-size: 1.05rem; color: var(--text-heading); margin-bottom: 6px; }
.ft-subgrid p { font-size: 0.95rem; }

@media only screen and (max-width: 991px) {
    .ft-subgrid { grid-template-columns: 1fr; margin-top: 28px; }
    .ft-showcase .iapps-main img { width: 130px; }
}

.ft-th-old-msg {
    background-color: #ffd2d2 !important;
}

.ibot-main img {
    width: 280px !important;
}
