/*
 * Advantages / comparison page (/perevagy/ and /en/advantages/).
 *
 * Follows the house landing-page style set by ai-for-education.css and
 * tutoring.css: the same blue/teal palette, 28px cards on soft blue shadows,
 * centred section titles, the gradient accent band, the gradient primary button
 * and the same 136/118/108 hero rhythm that clears the fixed navbar. Keep them
 * in step — where a value here differs it should be because the content
 * differs, not by accident.
 *
 * The comparison matrix is a port of `.pricing-table` (pricing.css), which is
 * the theme's existing feature-matrix component. It is re-prefixed rather than
 * reused directly because pricing.css scopes its custom properties to
 * `.pricing-page`; the literals below resolve to the same house values.
 *
 * Fonts come from the shared typography custom properties; never hard-code a
 * family.
 */

.advantages-page {
    background:
        radial-gradient(circle at top left, rgba(72, 128, 255, 0.22), transparent 38%),
        linear-gradient(180deg, #f4f8ff 0%, #ffffff 48%, #f7fbff 100%);
    color: #14233f;
    /* `clip` rather than `hidden`: contains the gradient bleed without turning
       this box into a scroll container for everything inside it. */
    overflow-x: clip;
}

.advantages-page .container {
    max-width: 1200px;
}

.advantages-page__hero,
.advantages-page__section {
    position: relative;
}

/* ---------------------------------------------------------------- headings */

.advantages-page__title,
.advantages-page__section-title,
.advantages-page__card-title,
.advantages-page__profile-name {
    color: #182845;
    font-family: var(--font-heading);
}

.advantages-page__lead,
.advantages-page__intro-text,
.advantages-page__card-text,
.advantages-page__profile-text,
.advantages-page__faq-answer,
.advantages-page__hero-note {
    color: #4b5b79;
    font-family: var(--font-body);
}

.advantages-page__section-title {
    font-size: clamp(32px, 4vw, 46px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.08;
    margin: 0 0 28px;
    text-align: center;
}

.advantages-page__section-title--light {
    color: #ffffff;
}

.advantages-page__intro-text {
    font-size: 18px;
    line-height: 1.8;
    margin: 0 auto 36px;
    max-width: 980px;
    text-align: center;
}

.advantages-page__intro-text--light {
    color: rgba(255, 255, 255, 0.9);
}

/* ------------------------------------------------------------------- hero */

/*
 * This page has no product screenshot to show — it argues by comparison — so
 * the hero is a single centred column rather than the two-column copy/visual
 * grid the other landing pages use.
 */
.advantages-page__hero {
    padding: 136px 0 76px;
    text-align: center;
}

.advantages-page__hero-copy {
    margin: 0 auto;
    max-width: 860px;
}

.advantages-page__eyebrow {
    color: #2f6bd8;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.14em;
    margin: 0 0 18px;
    text-transform: uppercase;
}

.advantages-page__title {
    font-size: clamp(38px, 5.2vw, 58px);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1.02;
    margin: 0 0 24px;
    /* The hero centres its children, but the Zoho SalesIQ widget injects a
       cross-origin stylesheet that sets text-align on bare heading elements,
       and a rule on the element beats an inherited value. Every centred
       heading on this page has to declare it. */
    text-align: center;
}

.advantages-page__title em {
    background: linear-gradient(135deg, #5677ea 0%, #1ac6aa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-style: normal;
}

.advantages-page__lead {
    font-size: 18px;
    line-height: 1.75;
    margin: 0 auto 32px;
    max-width: 720px;
}

.advantages-page__hero-note {
    font-size: 15px;
    line-height: 1.6;
    margin: 24px auto 0;
    max-width: 640px;
}

/* ---------------------------------------------------------------- buttons */

.advantages-page__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.advantages-page__button {
    align-items: center;
    border-radius: 16px;
    border: 1px solid transparent;
    box-shadow: 0 18px 45px rgba(38, 74, 153, 0.18);
    cursor: pointer;
    display: inline-flex;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 700;
    justify-content: center;
    line-height: 1;
    min-width: 220px;
    padding: 18px 28px;
    text-align: center;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.advantages-page__button:hover,
.advantages-page__button:focus {
    box-shadow: 0 24px 45px rgba(38, 74, 153, 0.22);
    text-decoration: none;
    transform: translateY(-2px);
}

.advantages-page__button--primary {
    background: linear-gradient(135deg, #18c7a3 0%, #17b78f 100%);
    color: #ffffff;
}

.advantages-page__button--primary:hover,
.advantages-page__button--primary:focus {
    color: #ffffff;
}

.advantages-page__button--secondary {
    background: #ffffff;
    border-color: #b9c8f2;
    color: #20365d;
}

.advantages-page__button--secondary:hover,
.advantages-page__button--secondary:focus {
    color: #20365d;
}

/* ---------------------------------------------------------------- sections */

.advantages-page__section {
    padding: 84px 0;
}

.advantages-page__section--accent {
    background: linear-gradient(90deg, #5677ea 0%, #1ac6aa 100%);
}

.advantages-page__section--soft {
    background:
        radial-gradient(circle at top left, rgba(72, 128, 255, 0.18), transparent 36%),
        linear-gradient(180deg, #edf4ff 0%, #ffffff 100%);
}

.advantages-page__section--faq {
    padding-top: 72px;
}

/* -------------------------------------------------------- shared card shell */

.advantages-page__card,
.advantages-page__profile,
.advantages-page__faq-item {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(185, 202, 240, 0.72);
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(30, 54, 101, 0.12);
}

/* ------------------------------------------------- differentiators (accent) */

.advantages-page__cards {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.advantages-page__card {
    padding: 32px 28px;
}

.advantages-page__card-icon {
    align-items: center;
    background: linear-gradient(135deg, rgba(86, 119, 234, 0.16) 0%, rgba(26, 198, 170, 0.16) 100%);
    border-radius: 20px;
    color: #2f6bd8;
    display: inline-flex;
    font-size: 24px;
    height: 62px;
    justify-content: center;
    margin-bottom: 18px;
    width: 62px;
}

.advantages-page__card-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin: 0 0 12px;
}

.advantages-page__card-text {
    font-size: 15px;
    line-height: 1.74;
    margin: 0;
}

/* ------------------------------------------------------- comparison matrix */

.advantages-table-wrap {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(185, 202, 240, 0.72);
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(30, 54, 101, 0.12);
    overflow: hidden;
    overflow-x: auto;
}

/*
 * Wide enough for the Ukrainian matrix, which carries the label column plus
 * Prosvita plus five platforms. It fits the 1200px container without scrolling;
 * below that the wrapper scrolls and the label column stays pinned.
 */
.advantages-table {
    border-collapse: collapse;
    min-width: 1040px;
    width: 100%;
}

.advantages-table th,
.advantages-table td {
    border-bottom: 1px solid rgba(185, 202, 240, 0.5);
    padding: 15px 18px;
    text-align: center;
    vertical-align: middle;
}

/*
 * The label column is pinned so the criterion stays readable while a narrow
 * viewport scrolls the platform columns sideways. It needs its own background,
 * otherwise the scrolling cells show through underneath it.
 */
.advantages-table th:first-child,
.advantages-table td:first-child {
    background: #ffffff;
    color: #182845;
    font-weight: 700;
    left: 0;
    min-width: 240px;
    position: sticky;
    text-align: left;
    width: 30%;
    z-index: 1;
}

.advantages-table thead th {
    background: linear-gradient(135deg, #2b4c8f 0%, #182845 100%);
    color: #ffffff;
    font-size: 15px;
}

.advantages-table thead th:first-child {
    background: #182845;
    color: #ffffff;
    z-index: 2;
}

.advantages-table thead span {
    color: rgba(255, 255, 255, 0.75);
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-top: 4px;
}

/* The Prosvita column is the reference point; tint it so the eye finds it. */
.advantages-table th:nth-child(2),
.advantages-table td:nth-child(2) {
    background: rgba(23, 183, 143, 0.07);
}

.advantages-table thead th:nth-child(2) {
    background: linear-gradient(135deg, #18c7a3 0%, #17b78f 100%);
}

.advantages-table__group td {
    background: #eef4ff;
    color: #20365d;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-align: left;
    text-transform: uppercase;
}

.advantages-table__yes {
    color: #0f9f7c;
    font-weight: 900;
}

.advantages-table__partial {
    background: rgba(86, 135, 255, 0.14);
    border-radius: 999px;
    color: #5687ff;
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    padding: 3px 10px;
}

/*
 * "unknown" means the vendor does not publish this, not that they lack it.
 * Rendered as muted words rather than a cross, so the table never asserts an
 * absence we cannot evidence.
 */
.advantages-table__unknown {
    color: #9aa7b3;
    font-size: 13px;
}

.advantages-table__note {
    color: #5b6c8a;
    font-family: var(--font-body);
    font-size: 12px;
    line-height: 1.7;
    margin: 16px auto 0;
    max-width: 900px;
    text-align: center;
}

/* --------------------------------------------------- competitor profiles */

.advantages-page__profiles {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.advantages-page__profile {
    display: flex;
    flex-direction: column;
    padding: 30px 28px;
}

.advantages-page__profile-badge {
    align-self: flex-start;
    background: rgba(86, 135, 255, 0.14);
    border-radius: 999px;
    color: #2f6bd8;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    margin-bottom: 14px;
    padding: 5px 12px;
    text-transform: uppercase;
}

/* The "works alongside" badge marks a platform we complement rather than rival. */
.advantages-page__profile-badge--partner {
    background: rgba(23, 183, 143, 0.14);
    color: #0f9f7c;
}

.advantages-page__profile-name {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin: 0 0 12px;
}

.advantages-page__profile-text {
    font-size: 15px;
    line-height: 1.75;
    margin: 0 0 16px;
}

.advantages-page__profile-source {
    color: #2f6bd8;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    margin: auto 0 0;
}

/* ------------------------------------------------------------------- FAQ */

.advantages-page__faq-list {
    display: grid;
    gap: 18px;
    margin: 0 auto;
    max-width: 920px;
}

.advantages-page__faq-item {
    overflow: hidden;
}

.advantages-page__faq-question {
    color: #20365d;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
    list-style: none;
    padding: 24px 72px 24px 28px;
    position: relative;
}

.advantages-page__faq-question::-webkit-details-marker {
    display: none;
}

.advantages-page__faq-question::after {
    color: #5687ff;
    content: '+';
    font-size: 28px;
    font-weight: 400;
    position: absolute;
    right: 28px;
    top: 18px;
}

.advantages-page__faq-item[open] .advantages-page__faq-question::after {
    content: '\2212';
}

.advantages-page__faq-answer {
    font-size: 15px;
    line-height: 1.75;
    margin: 0;
    padding: 0 28px 24px;
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 1199px) {
    .advantages-page__cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .advantages-page__hero {
        padding-top: 118px;
    }

    .advantages-page__section {
        padding: 72px 0;
    }
}

@media (max-width: 767px) {
    .advantages-page__hero {
        padding: 108px 0 56px;
    }

    .advantages-page__section {
        padding: 56px 0;
    }

    .advantages-page__title {
        font-size: 36px;
    }

    .advantages-page__lead,
    .advantages-page__intro-text {
        font-size: 16px;
    }

    .advantages-page__actions {
        flex-direction: column;
    }

    .advantages-page__button {
        min-width: 0;
        width: 100%;
    }

    .advantages-page__cards {
        grid-template-columns: 1fr;
    }

    .advantages-page__card,
    .advantages-page__profile {
        padding: 24px 20px;
    }

    .advantages-page__card-title {
        font-size: 20px;
    }

    .advantages-table th,
    .advantages-table td {
        padding: 12px 14px;
    }

    .advantages-table th:first-child,
    .advantages-table td:first-child {
        min-width: 190px;
    }

    .advantages-page__faq-question {
        font-size: 16px;
        padding: 20px 56px 20px 20px;
    }

    .advantages-page__faq-question::after {
        right: 20px;
        top: 14px;
    }

    .advantages-page__faq-answer {
        padding: 0 20px 20px;
    }
}
