/* ══════════════════════════════════════════════════
   Features / Templates page
══════════════════════════════════════════════════ */

/* ── Hero right: mini template grid ───────────── */
.ftpl-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
    width: 100%;
    max-width: 420px;
}
.ftpl-hero-tile {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 6px 24px rgba(0,0,0,.10);
    display: flex;
    flex-direction: column;
    font-size: 7px;
}
.ftpl-hero-tile:nth-child(1) { transform: translateY(8px); }
.ftpl-hero-tile:nth-child(2) { transform: translateY(-4px); }
.ftpl-hero-tile:nth-child(3) { transform: translateY(-8px); }
.ftpl-hero-tile:nth-child(4) { transform: translateY(4px); }
.ftpl-tile-chrome {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 7px;
    border-bottom: 1px solid rgba(0,0,0,.06);
    background: rgba(0,0,0,.03);
}
.ftpl-tile-dots { display: flex; gap: 3px; }
.ftpl-tile-dots span { width: 4px; height: 4px; border-radius: 50%; display: block; }
.ftpl-tile-url {
    flex: 1;
    background: rgba(0,0,0,.06);
    border-radius: 3px;
    padding: 1.5px 5px;
    font-size: 5.5px;
    color: rgba(0,0,0,.35);
    overflow: hidden;
    white-space: nowrap;
}
.ftpl-tile-body { flex: 1; padding: 7px 8px 8px; }
.ftpl-tile-title { font-weight: 800; margin-bottom: 5px; }
.ftpl-tile-field { margin-bottom: 3px; }
.ftpl-tile-label { font-weight: 600; opacity: .6; margin-bottom: 1.5px; }
.ftpl-tile-input { border: 1px solid; border-radius: 2px; padding: 2px 4px; opacity: .5; display: block; width: 100%; }
.ftpl-tile-btn {
    display: block;
    width: 100%;
    padding: 3px;
    border-radius: 3px;
    font-weight: 700;
    text-align: center;
    margin-top: 5px;
}
.ftpl-tile-badge {
    display: inline-block;
    font-size: 5.5px;
    font-weight: 700;
    padding: 1.5px 5px;
    border-radius: 3px;
    margin-bottom: 5px;
}

/* ── CTA button (used in gallery banner) ──────── */
.ftpl-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0B0D0F;
    color: #fff;
    padding: 13px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: background .15s, transform .15s;
}
.ftpl-btn-primary:hover { background: #FFBA12; color: #0B0D0F; text-decoration: none; transform: translateY(-1px); }

/* ── How it works ──────────────────────────────── */
.ftpl-steps { padding: 100px 0 80px; background: #fff; }
.ftpl-steps-header { text-align: center; margin-bottom: 60px; }
.ftpl-steps-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #FFBA12;
    margin-bottom: 12px;
    display: block;
}
.ftpl-steps-title {
    font-size: 38px;
    font-weight: 800;
    color: #0B0D0F;
    line-height: 1.15;
}
.ftpl-step-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 32px 28px 30px;
    height: 100%;
    position: relative;
    transition: box-shadow .2s, transform .2s;
}
.ftpl-step-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,.08); transform: translateY(-3px); }
.ftpl-step-num {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 48px;
    font-weight: 900;
    color: #f3f4f6;
    line-height: 1;
}
.ftpl-step-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.ftpl-step-card h3 { font-size: 20px; font-weight: 800; color: #0B0D0F; margin-bottom: 12px; }
.ftpl-step-card p { font-size: 15px; color: #6b7280; line-height: 1.65; margin: 0; }
.ftpl-step-detail {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.ftpl-step-detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #374151;
    font-weight: 500;
}
.ftpl-step-detail-item svg { color: #FFBA12; flex-shrink: 0; }

/* ── Benefits ──────────────────────────────────── */
.ftpl-benefits { padding: 80px 0; background: #f9fafb; }
.ftpl-benefits-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.ftpl-benefits-text h2 {
    font-size: 38px;
    font-weight: 800;
    color: #0B0D0F;
    line-height: 1.2;
    margin-bottom: 16px;
}
.ftpl-benefits-text h2 em { font-style: normal; position: relative; display: inline-block; padding-bottom: 10px; }
.ftpl-benefits-text h2 em img { position: absolute; top: 100%; left: 0; width: 100%; height: auto; margin-top: -4px; }
.ftpl-benefits-text p { font-size: 16px; color: #6b7280; line-height: 1.7; margin-bottom: 32px; }
.ftpl-benefit-list { display: flex; flex-direction: column; gap: 16px; }
.ftpl-benefit-item { display: flex; align-items: flex-start; gap: 14px; }
.ftpl-benefit-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}
.ftpl-benefit-item h4 { font-size: 15px; font-weight: 700; color: #0B0D0F; margin-bottom: 3px; }
.ftpl-benefit-item p { font-size: 13px; color: #6b7280; margin: 0; line-height: 1.55; }

/* ── Visual panel (right of benefits) ─────────── */
.ftpl-panel {
    background: #0B0D0F;
    border-radius: 20px;
    padding: 28px;
    position: relative;
    overflow: hidden;
}
.ftpl-panel::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,186,18,.12), transparent 70%);
    pointer-events: none;
}
.ftpl-panel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.ftpl-panel-card {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.06);
}
.ftpl-panel-card-head {
    padding: 6px 9px;
    font-size: 7px;
    font-weight: 700;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.ftpl-panel-card-body { padding: 8px 9px 9px; }
.ftpl-panel-field { margin-bottom: 4px; }
.ftpl-panel-label { font-size: 6px; font-weight: 600; opacity: .5; margin-bottom: 1.5px; }
.ftpl-panel-input {
    display: block;
    width: 100%;
    border: 1px solid;
    border-radius: 2px;
    padding: 2px 5px;
    font-size: 6px;
    opacity: .4;
}
.ftpl-panel-btn {
    display: block;
    width: 100%;
    padding: 3.5px;
    border-radius: 3px;
    font-size: 6.5px;
    font-weight: 700;
    text-align: center;
    margin-top: 5px;
}
.ftpl-panel-label-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.ftpl-panel-label-bar span:first-child { font-size: 8px; font-weight: 700; color: #fff; }
.ftpl-panel-label-bar span:last-child { font-size: 7px; color: #FFBA12; font-weight: 600; }

/* ── Use cases ─────────────────────────────────── */
.ftpl-use-cases { padding: 80px 0 90px; background: #fff; }
.ftpl-use-cases-header { text-align: center; margin-bottom: 56px; }
.ftpl-use-cases-title { font-size: 36px; font-weight: 800; color: #0B0D0F; }
.ftpl-use-case-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 24px;
    border: 1px solid #e9ecef;
    border-radius: 14px;
    height: 100%;
    transition: box-shadow .2s, border-color .2s;
}
.ftpl-use-case-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.07); border-color: #d1d5db; }
.ftpl-use-case-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ftpl-use-case-card h4 { font-size: 16px; font-weight: 700; color: #0B0D0F; margin: 0; }
.ftpl-use-case-card p { font-size: 13px; color: #6b7280; margin: 0; line-height: 1.6; }
.ftpl-use-case-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.ftpl-use-case-tag {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 20px;
    background: #f3f4f6;
    color: #374151;
}

/* ── Gallery CTA banner ────────────────────────── */
.ftpl-gallery-cta {
    background: #0B0D0F;
    border-radius: 20px;
    padding: 48px 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    position: relative;
    overflow: hidden;
    margin: 0 0 100px;
}
.ftpl-gallery-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 50%, rgba(255,186,18,.08) 0%, transparent 60%);
    pointer-events: none;
}
.ftpl-gallery-cta h2 { font-size: 30px; font-weight: 800; color: #fff; margin-bottom: 8px; line-height: 1.2; }
.ftpl-gallery-cta p { font-size: 15px; color: rgba(255,255,255,.5); margin: 0; }

@media (max-width: 991px) {
    .ftpl-hero-inner { grid-template-columns: 1fr; }
    .ftpl-hero-grid { display: none; }
    .ftpl-hero h1 { font-size: 38px; }
    .ftpl-benefits-inner { grid-template-columns: 1fr; gap: 40px; }
    .ftpl-gallery-cta { flex-direction: column; align-items: flex-start; padding: 36px 28px; }
}
@media (max-width: 767px) {
    .ftpl-steps-title { font-size: 28px; }
    .ftpl-benefits-text h2 { font-size: 28px; }
}
