/* ==========================================================================
   Feature — generic landing template (template-feature-landing.php)
   --------------------------------------------------------------------------
   Brand palette in use:
     primary blue   #5470CB  (buttons, links)
     primary dark   #3D5CC4  (buttons on section-gray bg)
     hover          #4866c7
     heading navy   #293763
     body gray      #505A89
     section bg     #F6FAFF
     border light   #ECF4FF  / #E7F1FF
     link blue      #344fa8
     accent cyan    #00CCCC
   ========================================================================== */

/* Hero -------------------------------------------------------------------- */
.feature-hero {
    padding: 56px 0 40px;
    background-color: #fff;
    background-image:
        radial-gradient(900px 360px at 88% -10%, rgba(84, 112, 203, 0.06), transparent 60%);
}

.feature-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.feature-hero-title {
    font-family: "Roboto", sans-serif;
    font-weight: 900;
    font-size: clamp(28px, 3.6vw, 44px);
    line-height: 1.15;
    letter-spacing: 0.01em;
    color: #293763;
    margin: 0 0 16px;
}

.feature-hero-sub {
    font-size: 18px;
    line-height: 1.5;
    color: #505A89;
    margin: 0 0 20px;
    max-width: 520px;
}

/* Trust pills — use the same neutral chip style across the theme */
.feature-trust-pills {
    margin: 12px 0 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feature-trust-pill {
    display: inline-block;
    background: #ECF4FF;
    color: #344fa8;
    font-weight: 500;
    font-size: 13px;
    line-height: 1.2;
    padding: 7px 14px;
    border-radius: 6px;
}

/* CTAs */
.feature-hero-cta {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.feature-hero-cta .button,
.feature-final-ctas .button,
.pricing-shared-btn {
    min-width: 180px;
    margin: 0;
}

.feature-cta-secondary,
.feature-final-secondary {
    background: #fff;
    color: #293763;
    border: 1px solid #E7F1FF;
}

.feature-cta-secondary:hover,
.feature-cta-secondary:focus,
.feature-final-secondary:hover,
.feature-final-secondary:focus {
    border-color: #5470CB;
    color: #5470CB;
    background: #fff;
}

/* 2nd CTA button  */

.feature-cta-booking {
    background: transparent;
    color: #293763;
    border: 1px solid transparent;
    text-decoration: underline;
    text-underline-offset: 4px;
    min-width: 0;
    padding: 7px 4px;
}

.feature-cta-booking:hover,
.feature-cta-booking:focus {
    color: #5470CB;
    background: transparent;
}

.feature-cta-note {
    text-align: left;
    font-size: 14px;
    color: #505A89;
    margin: 12px 0 0;
}

/* Ratings row */
.feature-ratings-row {
    display: flex;
    gap: 24px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.feature-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #505A89;
}

.feature-rating strong {
    color: #293763;
    font-family: "Roboto", sans-serif;
}

.feature-stars {
    color: #5470CB;
    letter-spacing: 1px;
}

/* Hero video */
.feature-hero-video {
    position: relative;
    width: 100%;
    margin: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 14px 40px -18px rgba(41, 55, 99, 0.28);
    background: #fff;
}

.feature-hero-video .landing-video-thumb {
    width: 100%;
    aspect-ratio: 16 / 10;
    background-size: cover;
    background-position: center;
    position: relative;
    cursor: pointer;
}

.feature-hero-video .landing-video-embed {
    position: absolute;
    inset: 0;
}

.feature-hero-video .landing-video-embed iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

/* Hero image fallback */
.feature-hero-img-wrap {
    width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 14px 40px -18px rgba(41, 55, 99, 0.28);
    background: #fff;
}

.feature-hero-img {
    display: block;
    max-width: 100%;
    max-height: 480px;
    width: auto;
    height: auto;
    border-radius: 8px;
}

/* Mockup card fallback (when no video / image) */
.feature-hero-mockup {
    background: #fff;
    border: 1px solid #ECF4FF;
    border-radius: 8px;
    box-shadow: 0 14px 40px -18px rgba(41, 55, 99, 0.28);
    overflow: hidden;
}

.feature-mockup-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 11px 14px;
    border-bottom: 1px solid #ECF4FF;
    background: #F6FAFF;
}

.feature-mockup-bar i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #E7F1FF;
    display: inline-block;
}

.feature-mockup-body {
    padding: 18px;
}

.feature-mockup-card {
    border: 1px solid #ECF4FF;
    border-radius: 6px;
    padding: 14px;
    margin-bottom: 12px;
}

.feature-mockup-card:last-child {
    margin-bottom: 0;
}

.feature-mockup-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 6px;
}

.feature-mockup-card-label {
    font-size: 13px;
    color: #505A89;
}

.feature-mockup-card-meta {
    font-size: 12px;
    color: #505A89;
}

.feature-mockup-shots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 6px;
}

.feature-mockup-shots > div {
    aspect-ratio: 16 / 10;
    border-radius: 6px;
    background: linear-gradient(135deg, #ECF4FF, #F6FAFF);
    border: 1px solid #ECF4FF;
}

/* Intro band */
.feature-intro {
    padding: 30px 0;
}

.feature-intro p {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
    font-size: 17px;
    color: #293763;
    line-height: 1.6;
}

/* Steps (shared) — matches existing .section-card pattern */
.steps-shared-grid {
    margin-top: 20px;
    margin-right: -8px;
    margin-left: -8px;
    row-gap: 16px;
}

.steps-shared-grid > [class*="col-"] {
    padding-right: 8px;
    padding-left: 8px;
}

.steps-shared-item {
    background: #F6FAFF;
    border: 1px solid #ECF4FF;
    border-radius: 12px;
    padding: 22px;
    height: 100%;
}

.steps-shared-num {
    font-family: "Roboto", sans-serif;
    font-weight: 800;
    color: #5470CB;
    font-size: 13px;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}

.steps-shared-item h3 {
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    font-size: 17px;
    color: #293763;
    margin: 0 0 7px;
}

.steps-shared-item p {
    font-size: 14.5px;
    color: #505A89;
    margin: 0;
    line-height: 1.5;
}

/* Feature grid — alignment with existing .features .feature pattern */
.feature-features-grid {
    margin-top: 20px;
    margin-right: -8px;
    margin-left: -8px;
    row-gap: 16px;
}

.feature-features-grid > [class*="col-"] {
    padding-right: 8px;
    padding-left: 8px;
}

.feature-feat {
    background: #F6FAFF;
    border: 1px solid #ECF4FF;
    border-radius: 16px;
    padding: 24px;
    height: 100%;
    transition: background-color 0.18s, color 0.18s, box-shadow 0.18s;
}

.feature-feat:hover {
    background: #5470CB;
    color: #fff;
    box-shadow: 0 24px 40px -28px rgba(84, 112, 203, 0.45);
}

.feature-feat:hover h3,
.feature-feat:hover h3 a,
.feature-feat:hover p {
    color: #fff;
}

.feature-feat-icon {
    display: block;
    width: 64px;
    height: 64px;
    margin: 0 0 16px;
    color: #5470CB;
}

.feature-feat:hover .feature-feat-icon {
    color: #fff;
}

.feature-feat-icon img {
    display: block;
    width: 100%;
    height: auto;
}

.feature-feat-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.feature-feat h3 {
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #293763;
    margin: 0 0 8px;
    line-height: 1.25;
}

.feature-feat h3 a {
    color: inherit;
    text-decoration: none;
}

.feature-feat h3 a:hover {
    color: #00CCCC;
}

.feature-feat p {
    font-size: 15px;
    color: #505A89;
    margin: 0 0 10px;
    line-height: 1.5;
}

.feature-feat:hover p {
    color: #ECF4FF;
}

.feature-feat-more {
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    font-size: 13px;
    color: #344fa8;
}

.feature-feat:hover .feature-feat-more {
    color: #fff;
}

.feature-feat-more:hover,
.feature-feat-more:focus {
    color: #fff;
    text-decoration: underline;
}

/* Why panel — keep dark navy brand color, replace teal accents with brand blue */
.feature-why-inner {
    background: #293763;
    color: #ECF4FF;
    border-radius: 24px;
    padding: 48px;
}

.feature-why-inner h2 {
    color: #fff;
    font-family: "Roboto", sans-serif;
    font-weight: 900;
    font-size: clamp(24px, 2.8vw, 32px);
    line-height: 1.2;
    margin: 0 0 8px;
    max-width: 560px;
}

.feature-why-lead {
    color: #BCCDE7;
    max-width: 560px;
    margin: 0 0 30px;
    font-size: 17px;
    line-height: 1.5;
}

.feature-why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 34px;
}

.feature-why-row {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-why-check {
    flex: none;
    width: 24px;
    height: 24px;
    margin-top: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #5470CB;
}

.feature-why-check svg {
    width: 100%;
    height: 100%;
    display: block;
}

.feature-why-row strong {
    color: #fff;
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    display: block;
    margin-bottom: 4px;
}

.feature-why-row p {
    margin: 0;
    font-size: 14px;
    color: #BCCDE7;
    line-height: 1.55;
}

.feature-why-row a {
    color: #fff;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.feature-why-row a:hover {
    color: #00CCCC;
    border-bottom-color: #00CCCC;
}

/* Integrations chips */
.feature-integrations-chips {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.feature-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #E7F1FF;
    border-radius: 6px;
    padding: 12px 20px;
    font-family: "Roboto", sans-serif;
    font-weight: 500;
    color: #293763;
    font-size: 15px;
}

.feature-chip-sq {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: #5470CB;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    font-family: "Roboto", sans-serif;
}

/* Who grid — generic industry cards */
.feature-who-grid {
    margin-top: 10px;
    margin-right: -8px;
    margin-left: -8px;
    row-gap: 16px;
}

.feature-who-grid > [class*="col-"] {
    padding-right: 8px;
    padding-left: 8px;
}

.feature-who-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #F6FAFF;
    border: 1px solid #ECF4FF;
    border-radius: 8px;
    padding: 18px 22px;
    font-family: "Roboto", sans-serif;
    font-weight: 500;
    color: #293763;
    font-size: 16px;
    margin-bottom: 0;
    transition: background-color 0.16s, border-color 0.16s, color 0.16s;
}

.feature-who-card:hover,
.feature-who-card:focus {
    background: #5470CB;
    color: #fff;
    text-decoration: none;
}

.feature-who-card span {
    color: #5470CB;
    font-size: 20px;
    line-height: 1;
    transition: transform 0.16s;
}

.feature-who-card:hover span,
.feature-who-card:focus span {
    color: #fff;
    transform: translateX(4px);
}

/* Compare table */
.feature-compare-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #ECF4FF;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 6px 18px -12px rgba(41, 55, 99, 0.22);
}

.feature-compare-table {
    border-collapse: collapse;
    width: 100%;
    min-width: 780px;
    font-size: 14.5px;
}

.feature-compare-table th,
.feature-compare-table td {
    padding: 14px 16px;
    text-align: center;
    border-bottom: 1px solid #ECF4FF;
    vertical-align: middle;
}

.feature-compare-table thead th {
    font-family: "Roboto", sans-serif;
    font-weight: 800;
    color: #293763;
    font-size: 15px;
    background: #F6FAFF;
}

.feature-compare-table thead th.feature-compare-me {
    background: #ECF4FF;
    color: #5470CB;
}

.feature-compare-table tbody th {
    position: sticky;
    left: 0;
    background: #fff;
    text-align: left;
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    color: #293763;
    min-width: 172px;
    z-index: 1;
    box-shadow: 1px 0 0 #ECF4FF;
}

.feature-compare-table td.feature-compare-me {
    background: #F6FAFF;
}

.feature-compare-yes {
    color: #5470CB;
    font-weight: 800;
    font-size: 17px;
}

.feature-compare-no {
    color: #BCCDE7;
    font-weight: 800;
    font-size: 16px;
}

.feature-compare-part {
    color: #344fa8;
    font-weight: 700;
    font-size: 12.5px;
    white-space: nowrap;
}

.feature-compare-small {
    font-size: 13px;
    color: #505A89;
    font-weight: 500;
}

.feature-compare-table tbody tr:last-child th,
.feature-compare-table tbody tr:last-child td {
    border-bottom: 0;
}

.feature-compare-note {
    text-align: center;
    font-size: 12.5px !important;
    color: #505A89;
    margin: 14px auto 0;
    max-width: 760px;
}

/* Pricing shared band — single brand-blue tone, no LLM gradient */
.pricing-shared-inner {
    background: #ECF4FF;
    border-radius: 20px;
    padding: 48px;
    text-align: center;
}

.pricing-shared-inner h2 {
    font-family: "Roboto", sans-serif;
    font-weight: 900;
    font-size: clamp(24px, 2.8vw, 32px);
    color: #293763;
    margin: 0 0 8px;
}

.pricing-shared-from {
    font-family: "Roboto", sans-serif;
    font-weight: 900;
    color: #5470CB;
    font-size: 20px;
    margin: 6px 0 4px;
}

.pricing-shared-inner p {
    color: #505A89;
    margin: 0 0 22px;
    font-size: 16px;
}

/* Guide / FAQ consistent typography */
.feature-guide-inner {
    max-width: 1140px;
    margin: 0 auto;
}

.feature-guide-title {
    font-family: "Roboto", sans-serif;
    font-weight: 900;
    font-size: clamp(26px, 3vw, 36px);
    color: #293763;
    text-align: center;
    margin: 0 0 30px;
    line-height: 1.2;
}

.feature-guide-inner h2 {
    font-family: "Roboto", sans-serif;
    font-weight: 900;
    font-size: clamp(22px, 2.6vw, 28px);
    color: #293763;
    margin: 38px 0 12px;
    line-height: 1.2;
}

.feature-guide-inner h2:first-of-type {
    margin-top: 0;
}

.feature-guide-inner h3 {
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    font-size: 19px;
    color: #293763;
    margin: 24px 0 8px;
}

.feature-guide-inner p {
    font-size: 16.5px;
    color: #293763;
    margin: 0 0 16px;
    line-height: 1.65;
}

.feature-guide-inner a {
    color: #344fa8;
    font-weight: 600;
}

.feature-guide-inner a:hover {
    color: #00CCCC;
    text-decoration: underline;
}

.feature-guide-inner ul {
    margin: 0 0 16px;
    padding-left: 0;
    list-style: none;
}

.feature-guide-inner li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 10px;
    font-size: 16px;
    color: #293763;
    line-height: 1.6;
}

.feature-guide-inner li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18' fill='none'%3E%3Cpath d='M3.5 9.5l3 3 8-8' stroke='%235470CB' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.feature-faq .section-feature-header {
    margin-bottom: 30px;
}

/* Final CTA panel — keep dark navy, brand-aligned padding/radius */
.feature-final-inner {
    background: #293763;
    color: #fff;
    border-radius: 24px;
    padding: 60px;
    text-align: center;
}

.feature-final-inner h2 {
    color: #fff;
    font-family: "Roboto", sans-serif;
    font-weight: 900;
    font-size: clamp(26px, 3vw, 38px);
    margin: 0 0 12px;
    line-height: 1.2;
}

.feature-final-inner p {
    color: #BCCDE7;
    margin: 0 0 26px;
    font-size: 17px;
}

.feature-final-ctas {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.feature-final-ctas .button {
    margin: 0;
}

/* Responsive ------------------------------------------------------------- */
@media (max-width: 991px) {
    .feature-hero-grid {
        grid-template-columns: 1fr;
    }
    .feature-why-grid {
        grid-template-columns: 1fr;
    }
    .feature-why-inner,
    .pricing-shared-inner,
    .feature-final-inner {
        padding: 32px;
    }
    .feature-hero-mockup,
    .feature-hero-img-wrap {
        max-width: 520px;
    }
}

@media (max-width: 575px) {
    .feature-hero {
        padding: 40px 0 30px;
    }
    .feature-final-ctas {
        flex-direction: column;
        align-items: stretch;
    }
    .feature-final-ctas .button,
    .feature-hero-cta .button {
        width: 100%;
        min-width: 0;
    }
    .feature-compare-table tbody th {
        min-width: 140px;
    }
}
