/* ============================================================
   AFS Pricing Page — reproduit fidèlement le design original
   ============================================================ */

/* ---- TOP BANNER ---- */
section.top_banner {
    min-height: 400px;
    align-items: center;
    display: flex;
    position: relative;
    flex-flow: column;
    background: url('https://www.afsanalytics.com/img/analytics-pricing.png') no-repeat bottom left / auto 100% #212b44;
}
section.top_banner h1 {
    font: 20px 'Open Sans', sans-serif;
    color: #fff;
    background: #e62640;
    text-align: center;
    padding: 10px 20px;
    margin: 0 0 20px 0;
    max-width: 500px;
}
section.top_banner::after {
    content: '';
    height: 7px;
    width: 100%;
    background: #e62640;
    bottom: -9px;
    position: absolute;
}
section.top_banner .hero_cnt {
    display: flex;
    width: 100%;
    height: 100%;
    flex-flow: column;
    z-index: 10;
    align-items: center;
}
section.top_banner .hero_cnt .title {
    font: bold 40px 'Open Sans', sans-serif;
    color: rgba(255,255,255,0.75);
    margin: 30px 0 10px;
    max-width: 80%;
    text-align: center;
    z-index: 1;
}
section.top_banner .hero_cnt .title b { color: #fff; }
section.top_banner .hero_cnt .testimonial {
    color: rgba(255,255,255,0.75);
    font: 15px 'Roboto', sans-serif;
}

/* ---- PLANS CONTAINER ---- */
section.plans { z-index: 10; }

.plan_select {
    display: flex;
    width: 100%;
    align-items: stretch;
    justify-content: center;
    position: relative;
    top: -193px;
    margin: 0 0 -193px 0;
    padding: 0;
    list-style: none;
}

/* ---- PLAN CARD ---- */
.plan_option {
    width: 275px;
    min-width: 250px;
    min-height: 600px;
    background: white;
    display: flex;
    flex-flow: column;
    box-shadow: 0 0 20px rgba(0,0,0,.25);
    text-align: center;
    margin: 0 10px 80px 0;
    justify-content: space-between;
    position: relative;
}
.plan_option:first-of-type {
    border-top-left-radius: 9px;
    border-bottom-left-radius: 9px;
    overflow: hidden;
}
.plan_option:last-of-type {
    border-top-right-radius: 9px;
    border-bottom-right-radius: 9px;
}
.plan_option.diamond .header { border-top-right-radius: 9px; }

/* ---- HEADER ---- */
.plan_option .header {
    display: flex;
    flex-flow: column;
    background: #32457b;
    color: white;
    padding: 10px 10px 5px;
    cursor: default;
}
.plan_option.free .header {
    background: #2bc9c0;
    height: 135px;
}
.plan_option.free.extended .header,
.plan_option.diamond.extended .header {
    height: 197px;
    border-bottom: 1px solid white;
}
.plan_option.diamond .header {
    background: linear-gradient(135deg, #e62640 0%, #f12395 80%, #cd32ff 100%);
}

.plan_option .header .label {
    font: 400 24px 'Open Sans', sans-serif;
    text-transform: uppercase;
    flex: 0 0 auto;
}
.plan_option .header .price { font: 400 36px 'Open Sans', sans-serif; }
.plan_option .header .sep {
    border-bottom: 1px solid white;
    margin: 10px 20px 5px;
    flex: 0 0 auto;
}
.plan_option.silver .header .sep { border-bottom-color: #bac3d4; }
.plan_option .header .from {
    text-align: left;
    font-size: 14px;
    opacity: .9;
    padding-left: 20px;
    margin-top: 5px;
}

/* ---- AMOUNT ---- */
.plan_option .header .amount {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    justify-content: center;
    flex: 0 0 auto;
}
.plan_option .header .amount div { flex: 0 0 auto; }
.plan_option .header .value  { order: 10; }
.plan_option .header .currency.eur { order: 11; }
.plan_option .header .currency.usd { order: 9; }
.plan_option .header .csep   { order: 20; margin: 0 0 0 5px; }
.plan_option .header .period { order: 21; font-size: 20px; margin-bottom: 5px; }
.plan_option .free .price    { margin-top: 20px; }

/* ---- DISCOUNT ---- */
.plan_option .discount {
    background: #e62640;
    color: rgba(255,255,255,.85);
    flex: 0 0 auto;
    padding: 5px 10px;
    font: 20px 'Open Sans', sans-serif;
    box-shadow: inset 0 0 2px rgba(255,255,255,1);
    border-top: 1px solid white;
    border-bottom: 1px solid white;
    cursor: default;
    transition: all 1000ms ease;
    display: flex;
    flex-flow: column;
    margin: 0 -10px -5px -10px; /* déborde du padding du .header */
}
.plan_option .discount.hidden { display: none; }
.plan_option .discount .label b {
    font: 400 26px 'Open Sans', sans-serif;
    color: white;
}
.plan_option .discount .label b small { font: 400 24px 'Open Sans', sans-serif; opacity: .95; }
.plan_option .discount .terms { font: 10px 'Open Sans', sans-serif; }

/* ---- SCOPE ---- */
.plan_option .scope {
    flex: 0 0 70px;
    display: flex;
    padding: 0 20px;
    color: #c9d2e4;
    box-sizing: border-box;
    background: #081c2f;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    align-items: center;
    justify-content: center;
}
.plan_option.free .scope { background: #007872; color: white; }
.plan_option.free .scope span { color: white; }

/* ---- PV SELECT ---- */
.plan_option .pv_select {
    display: flex;
    flex-flow: column;
    color: black;
    margin: 10px 0;
    cursor: default;
}
.plan_option.free .pv_select { margin-bottom: 43px; }

.plan_option .pv_select .infos {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-end;
    flex-wrap: nowrap;
    justify-content: center;
    padding: 0 20px;
}
.plan_option .pv_select .label {
    flex: 0 0 auto;
    color: black;
    margin-bottom: 5px;
    font-size: 14px;
}
.plan_option .pv_select .label.up { order: 1; }
.plan_option .pv_select .label:not(.up) { order: 3; }
.plan_option .pv_select .value {
    flex: 0 0 auto;
    color: #212b44;
    font: 26px 'Roboto', sans-serif;
    margin: 0 10px;
    order: 2;
}

/* Range slider */
.plan_option .pv_slider {
    flex: 0 0 32px;
    margin: 0 30px;
    order: 3;
    box-sizing: border-box;
    max-width: 230px;
    -webkit-appearance: none;
    width: calc(100% - 60px);
    cursor: pointer;
}
.plan_option .pv_slider::-webkit-slider-runnable-track {
    background: #ebeef9;
    border-radius: 6px;
    height: 10px;
}
.plan_option .pv_slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    background: #212b44;
    height: 18px;
    width: 18px;
    border-radius: 50%;
    margin-top: -3px;
    box-shadow: 3px 3px 1px rgba(0,0,0,.35), inset 1px 1px 1px rgba(255,255,255,.25);
}

/* ---- FEATURES ---- */
.plan_option .common_field {
    flex: 0 0 auto;
    margin: 7px 15px;
    font-size: 14px;
    position: relative;
    cursor: default;
    text-align: left;
    padding-left: 20px;
    display: flex;
    line-height: 20px;
}
.plan_option .common_field.checked { padding-left: 53px; }
.plan_option .common_field.checked::before {
    content: '\2713';
    position: absolute;
    font-size: 14px;
    font-weight: bold;
    color: #212b44;
    border: 1px solid #212b44;
    left: 15px;
    top: -5px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1px;
}
.plan_option .common_field .label { order: 2; }
.plan_option .common_field.dsp { margin-left: 48px; }

/* CMS integration block */
.plan_option .common_field.integration {
    display: flex;
    flex-flow: column;
    padding: 7px 7px 12px;
    border-radius: 19px;
    justify-content: center;
    align-items: center;
    margin: auto 12px 20px;
    background: #fcfcfc;
    border-bottom: 1px solid #c9e6e9;
}
.plan_option .common_field.integration .label {
    width: 100%;
    text-align: left;
    font-size: 13px;
    padding-left: 0;
}
.plan_option .common_field.integration .cms {
    order: 3;
    padding: 0;
    margin: 0;
    list-style: none;
}
.plan_option .common_field.integration .cms li {
    background: #2bc9bf;
    color: white;
    padding: 2px 5px;
    border-radius: 36px;
    margin: 5px 0;
    min-width: 140px;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}
.plan_option .common_field.integration .cms li .img_cnt {
    height: 24px;
    width: 24px;
    flex: 0 0 24px;
    border-radius: 50%;
    background: white;
    margin-right: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.plan_option .common_field.integration .cms li img {
    height: 20px;
    width: auto;
    border-radius: 50%;
}

/* Summary line */
.plan_option .common_field.summary {
    color: #32457b;
    font-weight: bold;
    margin-bottom: 14px;
    font-size: 15px;
    margin-left: 48px;
    padding-left: 0;
    position: relative;
}
.plan_option .common_field.summary::before {
    content: '\2713';
    color: white;
    background: #2bc9bf;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    left: -36px;
    top: -2px;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Special (diamond) */
.plan_option .special {
    padding: 10px 10px 30px;
    text-align: left;
    background: #f8f8f8;
    font-size: 15px;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    position: relative;
}
.plan_option .unavailable {
    color: #ad1f32;
    font-size: 16px;
    position: absolute;
    z-index: 1;
    padding: 7px 12px;
    transform: rotate(7deg);
    left: 67px;
    bottom: 13px;
    opacity: .45;
    font-weight: bold;
}
.plan_option .unavailable_more {
    color: white;
    background: #e62640;
    font-size: 17px;
    position: absolute;
    z-index: 1;
    padding: 7px 12px;
    transform: rotate(7deg);
    left: 60px;
    bottom: -22px;
    box-shadow: 4px 7px 1px rgba(0,0,0,.07);
}

.plan_option .spacer { flex: 2 1 auto; }

/* ---- BUTTONS ---- */
.plan_option .button {
    margin: 20px auto;
    border-radius: 30px;
    padding: 7px;
    color: white;
    box-sizing: border-box;
    cursor: pointer;
    font: bold 16px 'Open Sans', sans-serif;
    background: #e62640;
    transition: all 500ms ease;
    text-transform: uppercase;
    width: 200px;
    max-width: 200px;
    text-align: center;
    text-decoration: none;
    display: block;
    user-select: none;
}
.plan_option .button:hover { background: limegreen; color: #000060; }
.plan_option.free .button { background: #2bc9c0; }
.plan_option.free .button:hover { background: #2bc9c0; }

/* ---- BUBBLE (Gold / Diamond) ---- */
.plan_option .bubble {
    position: absolute;
    top: -64px;
    right: 0;
    height: 53px;
    min-width: 130px;
    border-radius: 6px;
    border-bottom-left-radius: 0;
    display: flex;
    flex-flow: row;
    align-items: center;
    justify-content: center;
    padding: 0 10px 0 0;
    background: rgb(46,190,205);
    color: #aef7ff;
}
.plan_option .bubble::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    transform: rotate(45deg);
    bottom: -4px;
    left: 10px;
    background: rgb(46,190,205);
    z-index: -1;
}
.plan_option .bubble .icon {
    margin-right: 7px;
    height: 100%;
    width: 60px;
    min-width: 50px;
    background-color: #a8f7ff;
    display: flex;
    font-size: 30px;
    align-items: center;
    justify-content: center;
    color: rgb(46,190,205);
}
.plan_option .bubble span { font-size: 13px; text-align: left; }

/* ---- COMPARE TABLE ---- */
section.compare {
    display: flex;
    flex-flow: column;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 80px auto 200px !important;
    border-top: 1px solid #ccc;
    width: 100%;
}
section.compare h2 {
    flex: 0 0 auto;
    text-align: center;
    padding: 10px;
    color: #101216;
    text-transform: capitalize;
    font-size: 40px;
    margin: 40px 0 0;
    box-sizing: border-box;
}
section.compare table {
    margin-top: 30px;
    border-collapse: collapse;
    max-width: 900px;
}
section.compare table th {
    padding: 10px 0 20px;
    text-transform: capitalize;
    font: 16px 'Open Sans', sans-serif;
    border-radius: 6px;
}
section.compare table .darker_col {
    background: rgba(176,195,238,.06);
    border-left: 5px solid white;
}
section.compare table th .title {
    color: white;
    border-radius: 3px;
    padding: 5px;
    margin: 5px;
    background: #212b44;
    cursor: default;
    font: 500 16px 'Open Sans', sans-serif;
    white-space: nowrap;
}
section.compare table tr:first-of-type { background: white; }
section.compare table tr { transition: all 500ms ease; border-bottom: 1px solid #f0f0f0; }
section.compare table tr:not(:first-of-type):hover { color: white; background: #212b44; cursor: default; }
section.compare table td {
    padding: 10px 5px;
    min-width: 100px;
    text-align: center;
    vertical-align: middle;
    border: 0;
}
section.compare table td.label .icon {
    height: 120px;
    width: 120px;
    border-radius: 6px;
    background-size: contain;
    background-repeat: no-repeat;
    float: left;
    margin-left: 40px;
    background-color: white;
}
section.compare table td.label .cnt {
    text-align: left;
    padding: 10px 40px 0 20px;
    display: flex;
    flex-flow: column;
    justify-content: flex-start;
}
section.compare table td.label .icon + .cnt { padding-left: 20px; }
section.compare table td.label .cnt .title { font: 700 16px 'Open Sans', sans-serif; }
section.compare table td.label .cnt .desc {
    font-size: 14px;
    margin: 7px 0;
    max-width: 270px;
}
section.compare table td.label .cnt .desc_cnt {
    display: flex;
    align-items: center;
}
section.compare table td.label .cnt .desc_cnt .icon {
    height: auto;
    flex: 0 0 120px;
    margin: 0 20px 0 0;
    background-color: white;
}
section.compare table td.label .cnt .desc_cnt .icon.wordpress {
    flex: 0 0 100px;
    height: 50px;
    margin: 5px 27px 0 13px;
}
section.compare table td.label .cnt .desc_cnt p { flex: 0 1 200px; font-size: 14px; }
section.compare table td.limited { color: darkorange; font: 800 16px 'Roboto', sans-serif; }
section.compare table td.enabled { color: #89bfbc; font: 800 16px 'Roboto', sans-serif; }
section.compare table tr:hover td.enabled { color: white !important; }

/* ---- MOBILE ---- */
@media screen and (max-width: 780px) {
    .plan_select { flex-flow: column; align-items: center; }
    .plan_option {
        width: calc(100% - 40px) !important;
        max-width: 400px;
        border-radius: 0 !important;
        margin-bottom: 40px !important;
    }
    .plan_option.gold,
    .plan_option.diamond { margin-top: 70px; }
    section.top_banner .hero_cnt .title { font-size: 25px; }
    section.compare table td { min-width: min-content !important; }
    section.compare { align-items: flex-start; max-width: 100%; overflow-x: auto; }
}
