/* =============================================
   Features Block — taubenloft/features
   Pixel-perfect from Figma node 81:7532 (desktop 1920)
   + mobile counterpart icons_mobile (frame 81:7542, 440)
   ─────────────────────────────────────────────
   Section bg:    #EAEBE6
   Desktop pad:   120 top/bottom, 360 left/right (→ 1200 inner)
   Columns:       4× icon+title+body, gap 24, vertical dividers 0.5px #333A42
   Icon:          69×69 circle, stroke #333A42 1px (empty placeholder)
   icon→text gap: 64 | title→body gap: 48 (desktop) / 32 (mobile)
   Title:         20/27.28 weight 600 #333A42
   Body:          16/24   weight 400 #333A42
   Mobile:        stacked rows, horizontal dividers, row pad 48/16
   ============================================= */

/* Defensive defaults (editor iframe may miss media queries) */
.tl-features img { max-width: 100%; height: auto; display: block; }
.tl-features svg { max-width: 100%; }

.tl-features {
    background: #eaebe6;                /* Figma section fill */
    color: #333a42;
    font-family: 'Nunito Sans', 'Nunito Sans Fallback', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    padding: 120px 24px;               /* Figma paddingTop/Bottom 120 (horizontal handled by container) */
}

.tl-features__container {
    max-width: 1200px;                 /* Figma inner content: 1920 − 2×360 */
    margin: 0 auto;
    display: flex;
    align-items: stretch;
    /* gap handled via dividers/border-left so divider lines sit flush between columns */
    border-right: 0.5px solid #333a42; /* Figma: trailing vertical line right of last column */
}

/* ── Column ─────────────────────────────────────── */
.tl-features__col {
    flex: 1 1 0;
    min-width: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: stretch;              /* Figma: inner text block stretches; only icon is centered */
    text-align: left;                  /* Figma: title/body left-aligned */
    gap: 64px;                         /* Figma "text" frame itemSpacing 64 (icon → text block) */
    padding: 0 24px;                   /* Figma Frame 17561 paddingLeft/Right 24 */
    border-left: 0.5px solid #333a42;  /* Figma vertical divider (Line 30/32), weight 0.5 */
}

/* ── Icon (empty circle placeholder, or uploaded image) ── */
.tl-features__icon {
    width: 69px;                       /* Figma Ellipse 656 69×69 */
    height: 69px;
    flex: 0 0 auto;
    align-self: center;                /* Figma: only the icon Ellipse is centered */
    object-fit: contain;
}
.tl-features__icon--placeholder {
    display: block;
    border: 1px solid #333a42;         /* Figma ellipse stroke #333A42 weight 1 */
    border-radius: 50%;
    background: transparent;
}

/* ── Text block (title + body) ──────────────────── */
.tl-features__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;           /* Figma: text block left-aligned */
    gap: 48px;                         /* Figma Frame 17561 itemSpacing 48 (title → body) */
    width: 100%;
}

.tl-features__title {
    margin: 0;
    font-family: 'Nunito Sans', 'Nunito Sans Fallback', sans-serif;
    font-weight: 600;                  /* Figma SemiBold */
    font-size: 20px;
    line-height: 27.28px;              /* Figma lineHeightPx 27.279998… */
    letter-spacing: 0;
    color: #333a42;
}

.tl-features__body {
    margin: 0;
    font-family: 'Nunito Sans', 'Nunito Sans Fallback', sans-serif;
    font-weight: 400;                  /* Figma Regular */
    font-size: 16px;
    line-height: 24px;                 /* Figma lineHeightPx 24 */
    letter-spacing: 0;
    color: #333a42;
}

/* ── Laptop ≤1440 — pull side padding in, keep 4 cols ── */
@media (max-width: 1440px) {
    .tl-features { padding: 96px 32px; }
}

/* ── Laptop large ≤1280 ─────────────────────────── */
@media (max-width: 1280px) {
    .tl-features { padding: 88px 32px; }
    .tl-features__col { gap: 48px; }
    .tl-features__text { gap: 32px; }
}

/* ── Tablet ≤1024 — 2 columns to avoid text squeeze ─ */
@media (max-width: 1024px) {
    .tl-features { padding: 72px 32px; }
    .tl-features__container {
        flex-wrap: wrap;
        border-right: 0;               /* RESET desktop trailing line */
    }
    .tl-features__col {
        flex: 1 1 50%;
        max-width: 50%;
        padding: 32px 24px;
        border-left: 0;                /* RESET desktop vertical divider */
    }
    /* horizontal separators between the two rows in 2-col grid */
    .tl-features__col:nth-child(n+3) {
        border-top: 0.5px solid #333a42;
    }
}

/* ── Mobile ≤549 — single column stack (2 columns only from 550px up).
   Row pad 48 top/bottom, 16 left/right; title→body gap 32. */
@media (max-width: 549px) {
    .tl-features { padding: 0 0; }     /* Figma rows own their 48 vertical padding */
    .tl-features__container {
        flex-direction: column;
        flex-wrap: nowrap;
        max-width: 100%;
        border-right: 0;               /* RESET desktop trailing line */
    }
    .tl-features__col {
        flex: 1 1 auto;
        max-width: 100%;
        padding: 48px 16px;            /* Figma icon_mobile padding 48/16 */
        gap: 64px;                     /* Figma "text" itemSpacing 64 (unchanged) */
        border-left: 0;                /* RESET desktop vertical divider */
        border-top: 0;                 /* RESET tablet top border */
    }
    /* RESET tablet 2-col separators */
    .tl-features__col:nth-child(n+3) { border-top: 0; }
    /* Figma Frame 17683: horizontal divider between rows, 0.5px #333A42 */
    .tl-features__col + .tl-features__col {
        border-top: 0.5px solid #333a42;
    }
    .tl-features__text {
        gap: 32px;                     /* Figma mobile Frame 17561 itemSpacing 32 */
        align-items: center;           /* Figma icons_mobile: text block centered (RESET desktop flex-start) */
    }
    .tl-features__title,
    .tl-features__body {
        text-align: center;            /* Figma mobile: centered text (desktop is left) */
    }
    .tl-features__title {
        line-height: 24px;             /* Figma mobile: title 20/24 (desktop was 27.28) */
    }
}

/* ── Narrow mobile ≤480 — tighten padding ───────── */
@media (max-width: 480px) {
    .tl-features__col {
        padding: 40px 16px;
        gap: 48px;
    }
}
