/* AFEA CRM landing page (/{lang}/crm) */

.crm-page {
    --crm-accent: #5b8cff;
    --crm-accent-2: #8a6bff;
    --crm-line: rgba(255, 255, 255, 0.1);
    --crm-card: rgba(255, 255, 255, 0.03);
    --crm-muted: rgba(255, 255, 255, 0.65);
    overflow: hidden;
}

.crm-page h1, .crm-page h2, .crm-page h3 { color: #fff; }
.crm-page p { color: var(--crm-muted); }

/* Hero */
.crm-hero { position: relative; }
.crm-hero::before {
    content: "";
    position: absolute;
    inset: -20% 10% auto;
    height: 700px;
    background: radial-gradient(closest-side, rgba(91, 140, 255, 0.28), transparent 70%);
    pointer-events: none;
}
.crm-hero .container { position: relative; }
.crm-breadcrumb { text-align: center; margin-bottom: 40px; }
.crm-eyebrow {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid var(--crm-line);
    border-radius: 999px;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--crm-muted);
    margin-bottom: 24px;
}
.crm-hero-title {
    font-size: clamp(34px, 5.4vw, 68px);
    line-height: 1.1;
    font-weight: 600;
    margin-bottom: 24px;
}
.crm-hero-title span {
    background: linear-gradient(90deg, var(--crm-accent), var(--crm-accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.crm-hero-text { font-size: 18px; line-height: 1.7; max-width: 760px; margin: 0 auto 32px; }
.crm-note { font-size: 13px; margin-top: 16px; }
.crm-hero-shot { margin-top: 64px; }

/* Buttons */
.crm-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.crm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 500;
    transition: transform .2s, background-color .2s, border-color .2s;
}
.crm-btn:hover { transform: translateY(-1px); }
.crm-btn-primary { background: #fff; color: #0c0c0c !important; }
.crm-btn-primary:hover { background: #e8ecff; }
.crm-btn-ghost { border: 1px solid rgba(255, 255, 255, 0.3); color: #fff !important; }
.crm-btn-ghost:hover { border-color: #fff; }

/* App window frame around screenshots */
.crm-window {
    border: 1px solid var(--crm-line);
    border-radius: 14px;
    overflow: hidden;
    background: #1a1a1a;
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.02);
}
.crm-window-bar { display: flex; gap: 6px; padding: 10px 14px; background: #202020; }
.crm-window-bar span { width: 10px; height: 10px; border-radius: 50%; background: #3a3a3a; }
.crm-window img { display: block; width: 100%; height: auto; }

/* Stats */
.crm-stats { padding: 64px 0 0; }
.crm-stat { border-top: 1px solid var(--crm-line); padding: 20px 0; }
.crm-stat strong { display: block; font-size: 28px; font-weight: 600; color: #fff; }
.crm-stat span { color: var(--crm-muted); font-size: 14px; }

/* Section heads */
.crm-section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.crm-section-head h2, .crm-mobile h2, .crm-cta h2 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 600; margin-bottom: 14px; }
.crm-section-head p { font-size: 17px; }

/* Features */
.crm-feature {
    height: calc(100% - 24px);
    margin-bottom: 24px;
    padding: 28px;
    border: 1px solid var(--crm-line);
    border-radius: 16px;
    background: var(--crm-card);
}
.crm-feature svg { width: 28px; height: 28px; color: var(--crm-accent); margin-bottom: 18px; }
.crm-feature h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.crm-feature p { font-size: 14px; line-height: 1.65; margin: 0; }

/* Showcase */
.crm-showcase-row { margin-bottom: 80px; }
.crm-showcase-row:last-child { margin-bottom: 0; }
.crm-showcase-row h3 { font-size: 30px; font-weight: 600; margin-bottom: 14px; }
.crm-showcase-row p { font-size: 16px; line-height: 1.7; }

/* Mobile */
.crm-mobile { border-top: 1px solid var(--crm-line); border-bottom: 1px solid var(--crm-line); background: radial-gradient(60% 80% at 80% 50%, rgba(138, 107, 255, 0.14), transparent); }
.crm-mobile p { font-size: 17px; line-height: 1.7; }
.crm-phones { display: flex; justify-content: center; gap: 24px; }
.crm-phone {
    width: 46%;
    max-width: 260px;
    padding: 8px;
    border-radius: 36px;
    background: #1d1d1d;
    border: 1px solid #333;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.crm-phones .crm-phone:nth-child(2) { transform: translateY(40px); }
.crm-phone img { display: block; width: 100%; height: auto; border-radius: 28px; }

.crm-mobile .crm-eyebrow { margin-bottom: 18px; }
.crm-store { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 28px; }
.crm-store .crm-btn svg { width: 20px; height: 20px; margin-right: 8px; }
.crm-store small { color: var(--crm-muted); font-size: 13px; }

.crm-gallery {
    display: flex;
    gap: 28px;
    margin: 100px 0 0;
    padding: 0 0 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}
.crm-gallery figure { flex: 0 0 220px; margin: 0; scroll-snap-align: start; }
.crm-gallery .crm-phone { width: 100%; max-width: none; border-radius: 30px; padding: 6px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); }
.crm-gallery .crm-phone img { border-radius: 24px; }
.crm-gallery figcaption { margin-top: 14px; color: var(--crm-muted); font-size: 14px; line-height: 1.5; }

.crm-app-groups { margin-top: 72px; }
.crm-app-groups h3 { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.crm-app-groups .crm-checks { margin: 8px 0 36px; }
.crm-app-groups .crm-checks li { font-size: 14px; line-height: 1.55; color: var(--crm-muted); }

/* Check lists */
.crm-checks { list-style: none; padding: 0; margin: 24px 0; }
.crm-checks li { position: relative; padding: 6px 0 6px 28px; color: rgba(255, 255, 255, 0.85); font-size: 15px; }
.crm-checks li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 12px;
    width: 12px;
    height: 7px;
    border-left: 2px solid var(--crm-accent);
    border-bottom: 2px solid var(--crm-accent);
    transform: rotate(-45deg);
}
.crm-checks li.is-soon { color: var(--crm-muted); }
.crm-checks li.is-soon::before { border-color: var(--crm-muted); }
.crm-checks em, .crm-cycle em {
    font-style: normal;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(91, 140, 255, 0.18);
    color: #b9cbff;
    margin-left: 6px;
}

/* Pricing */
.crm-cycle {
    display: flex;
    width: max-content;
    max-width: 100%;
    margin: 0 auto 40px;
    padding: 4px;
    border: 1px solid var(--crm-line);
    border-radius: 999px;
}
.crm-cycle button {
    padding: 10px 22px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--crm-muted);
    font-size: 15px;
    cursor: pointer;
}
.crm-cycle button.active { background: #fff; color: #0c0c0c; }
.crm-cycle button.active em { background: rgba(91, 140, 255, 0.2); color: #2a4fcc; }

.crm-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    height: calc(100% - 24px);
    margin-bottom: 24px;
    padding: 36px 30px 30px;
    border: 1px solid var(--crm-line);
    border-radius: 20px;
    background: var(--crm-card);
}
.crm-plan.is-highlighted {
    border-color: rgba(91, 140, 255, 0.7);
    background: linear-gradient(180deg, rgba(91, 140, 255, 0.12), rgba(255, 255, 255, 0.02));
}
.crm-plan-badge {
    position: absolute;
    top: -13px;
    left: 30px;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--crm-accent);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
}
.crm-plan h3 { font-size: 24px; font-weight: 600; margin-bottom: 8px; }
.crm-plan-desc { font-size: 14px; line-height: 1.6; min-height: 68px; }
.crm-price { padding: 18px 0; border-bottom: 1px solid var(--crm-line); }
.crm-price[hidden] { display: none; }
.crm-price strong { font-size: 40px; font-weight: 600; color: #fff; }
.crm-price span { margin-left: 6px; color: var(--crm-muted); font-size: 14px; }
.crm-price small { display: block; margin-top: 4px; color: var(--crm-muted); font-size: 13px; }
.crm-plan .crm-checks { flex: 1; }
.crm-plan .crm-checks b { font-weight: 600; color: #fff; }
.crm-plan .crm-btn { width: 100%; }

.crm-payment {
    margin-top: 32px;
    padding: 32px;
    border: 1px solid var(--crm-line);
    border-radius: 20px;
}
.crm-payment h3 { font-size: 20px; font-weight: 600; margin-bottom: 14px; }
.crm-payment ul { padding-left: 18px; margin: 0; }
.crm-payment li { color: var(--crm-muted); font-size: 14px; line-height: 1.7; margin-bottom: 6px; list-style: disc; }
.crm-payment-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding: 16px 20px; border-radius: 12px; border: 1px solid var(--crm-line); margin-bottom: 20px; }
.crm-payment-logos img { flex: none; }
.crm-legal { display: flex; flex-direction: column; gap: 8px; }
.crm-legal a { color: #fff; text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }

/* FAQ */
.crm-faq details { border-bottom: 1px solid var(--crm-line); padding: 20px 0; }
.crm-faq summary { cursor: pointer; font-size: 17px; color: #fff; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.crm-faq summary::-webkit-details-marker { display: none; }
.crm-faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--crm-muted); }
.crm-faq details[open] summary::after { content: "–"; }
.crm-faq details p { margin: 12px 0 0; font-size: 15px; line-height: 1.7; }

/* CTA */
.crm-cta {
    text-align: center;
    padding: 64px 24px;
    border-radius: 24px;
    background: radial-gradient(80% 120% at 50% 0%, rgba(91, 140, 255, 0.3), rgba(255, 255, 255, 0.03));
    border: 1px solid var(--crm-line);
}
.crm-cta p { font-size: 17px; margin-bottom: 28px; }

@media (max-width: 991px) {
    .crm-showcase-row { margin-bottom: 56px; }
    .crm-showcase-row .col-lg-4 { margin-bottom: 20px; }
    .crm-mobile .col-lg-6:first-child { margin-bottom: 40px; }
    .crm-gallery { margin-top: 72px; }
    .crm-plan-desc { min-height: 0; }
}

@media (max-width: 575px) {
    .crm-hero-text { font-size: 16px; }
    .crm-hero-shot { margin-top: 40px; }
    .crm-window { border-radius: 10px; }
    .crm-window-bar { padding: 7px 10px; }
    .crm-window-bar span { width: 7px; height: 7px; }
    .crm-btn { width: 100%; }
    .crm-cycle button { padding: 10px 14px; }
    .crm-payment { padding: 24px 20px; }
    .crm-price strong { font-size: 34px; }
    .crm-gallery figure { flex-basis: 190px; }
    .crm-store .crm-btn { width: auto; }
}
