/* =============================================
   CTA Banner Block — taubenloft/cta-banner
   Pixel-perfect from Figma node 81:7540 (desktop 1920×461)
   Mobile counterpart 81:7636 (#12_mobile, 440×546)
   ─────────────────────────────────────────────
   Section bg:   #333A42
   Padding:      96 top / 96 bottom (h:360 → centered 1200 content)
   itemSpacing:  64 (text block ↔ buttons), VERTICAL, center
   Text block:   gap 24
     eyebrow  14 / 19.096  w500  UPPER  #B9BEC5  sep "/" 16px
     heading  36 / 50.4    w500         #B9BEC5
     subtext  16 / 24      w400         #B9BEC5
   Buttons:      HORIZONTAL gap 24
     radius 30, font 16/24 w400, icon↔text gap 10, icon 18×18
     primary   bg #EAEBE6  text #333A42  pad 10/20
     secondary border 1px #EAEBE6  text #B9BEC5  pad 10/24
   ============================================= */

/* Defensive defaults */
.tl-cta-banner img { max-width: 100%; height: auto; display: block; }
.tl-cta-banner svg { max-width: 100%; }

.tl-cta-banner {
    background: #333a42;                 /* Figma section fill */
    color: #b9bec5;
    font-family: 'Nunito Sans', 'Nunito Sans Fallback', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    padding: 96px 24px;                  /* Figma paddingTop/Bottom 96 */
}

.tl-cta-banner__container {
    max-width: 1200px;                   /* Figma inner content width (1920 − 360×2) */
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 64px;                           /* Figma itemSpacing 64 (text ↔ buttons) */
    box-sizing: border-box;
}

/* ── Text block (meta + heading + subtext) ─────────── */
.tl-cta-banner__text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;                           /* Figma Frame 17746 itemSpacing 24 */
    width: 100%;
    text-align: center;
}

/* ── Meta row (author + uppercase tags, "/" separators) ──
   Figma "info" frame: HORIZONTAL, center, itemSpacing 4. */
.tl-cta-banner__meta {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px;                            /* Figma info itemSpacing 4 */
    font-size: 14px;                     /* Figma tag fontSize 14 */
    line-height: 19.096px;               /* Figma lineHeightPx 19.095998... */
    font-weight: 500;                    /* NunitoSans-Medium */
    letter-spacing: 0;
    text-transform: uppercase;           /* Figma textCase UPPER (tags) */
    color: #b9bec5;                      /* Figma fill #B9BEC5 */
}
.tl-cta-banner__eyebrow-item { white-space: nowrap; }

/* Author segment: avatar + name. Figma author frame itemSpacing 16. */
.tl-cta-banner__author {
    display: inline-flex;
    align-items: center;
    gap: 16px;                           /* Figma author itemSpacing 16 */
    text-transform: none;                /* name is mixed-case in Figma */
}
.tl-cta-banner__avatar {
    flex: 0 0 auto;
    width: 36px;                         /* Figma Ellipse 30 = 36×36 */
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}
.tl-cta-banner__author-name {
    font-size: 16px;                     /* Figma "by Leo Smith" fontSize 16 */
    line-height: 19.2px;                 /* Figma lineHeightPx 19.2 */
    font-weight: 500;                    /* Figtree-Medium → Nunito Sans Medium */
    color: #b9bec5;                      /* Figma fill is #000000 (unreadable on dark) → light grey to match meta row */
    text-transform: none;
    white-space: nowrap;
}

/* Slash separator between meta segments (Figma "/" 16/19.2). */
.tl-cta-banner__sep {
    font-size: 16px;                     /* Figma "/" fontSize 16 */
    line-height: 19.2px;                 /* Figma lineHeightPx 19.2 */
    font-weight: 500;
    color: #b9bec5;
    text-transform: none;
    padding: 0 4px;                      /* Figma separator frame padding 8 → halved per side w/ row gap 4 */
}

/* ── Heading ───────────────────────────────────────── */
.tl-cta-banner__heading {
    margin: 0;
    font-size: 36px;                     /* Figma fontSize 36 */
    line-height: 50.4px;                 /* Figma lineHeightPx 50.4 */
    font-weight: 500;                    /* NunitoSans-Medium */
    letter-spacing: 0;
    color: #b9bec5;                      /* Figma fill #B9BEC5 */
}

/* ── Subtext ───────────────────────────────────────── */
.tl-cta-banner__subtext {
    margin: 0;
    max-width: 1200px;
    font-size: 16px;                     /* Figma fontSize 16 */
    line-height: 24px;                   /* Figma lineHeightPx 24 */
    font-weight: 400;                    /* NunitoSans-Regular */
    letter-spacing: 0;
    color: #b9bec5;                      /* Figma fill #B9BEC5 */
}

/* ── Buttons ───────────────────────────────────────── */
.tl-cta-banner__buttons {
    display: flex;
    flex-direction: row;                 /* Figma buttons frame HORIZONTAL */
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;                           /* Figma buttons itemSpacing 24 */
}

.tl-cta-banner__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;                           /* Figma button itemSpacing 10 (text ↔ icon) */
    border-radius: 30px;                 /* Figma cornerRadius 30 */
    font-size: 16px;                     /* Figma fontSize 16 */
    line-height: 24px;                   /* Figma lineHeightPx 24 */
    font-weight: 400;                    /* NunitoSans-Regular */
    letter-spacing: 0;
    text-decoration: none;
    white-space: nowrap;
    box-sizing: border-box;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.tl-cta-banner__btn:hover,
.tl-cta-banner__btn:focus { opacity: 0.85; text-decoration: none; }

.tl-cta-banner__btn .tl-cta-banner__icon {
    flex: 0 0 auto;
    width: 18px;                         /* Figma icon vector 18×18 */
    height: 18px;
    transition: transform 0.25s ease-out;
}
.tl-cta-banner__btn:hover .tl-cta-banner__icon,
.tl-cta-banner__btn:focus .tl-cta-banner__icon {
    transform: translateY(2px);
}

/* Primary — filled #EAEBE6, dark text */
.tl-cta-banner__btn--primary {
    padding: 10px 20px;                  /* Figma primary padding 10/20 */
    background: #eaebe6;                 /* Figma fill #EAEBE6 */
    color: #333a42;                      /* Figma text #333A42 */
    border: 1px solid #eaebe6;           /* keeps height equal to outlined btn */
}
.tl-cta-banner__btn--primary:hover,
.tl-cta-banner__btn--primary:focus { color: #333a42; }

/* Secondary — outlined #EAEBE6, light text */
.tl-cta-banner__btn--secondary {
    padding: 10px 24px;                  /* Figma secondary padding 10/24 */
    background: transparent;
    color: #b9bec5;                      /* Figma text #B9BEC5 */
    border: 1px solid #eaebe6;           /* Figma stroke #EAEBE6 weight 1 */
}
.tl-cta-banner__btn--secondary:hover,
.tl-cta-banner__btn--secondary:focus { color: #b9bec5; }

/* ── Laptop ≤1440 ─────────────────────────────────── */
@media (max-width: 1440px) {
    .tl-cta-banner { padding: 88px 24px; }
}

/* ── Tablet ≤1024 ─────────────────────────────────── */
@media (max-width: 1024px) {
    .tl-cta-banner { padding: 72px 32px; }
    .tl-cta-banner__container { gap: 56px; padding: 0; }
    .tl-cta-banner__heading { font-size: 32px; line-height: 44px; }
}

/* ── Mobile ≤767 — Figma node 81:7636 (#12_mobile, 440) ──
   padding 48 / 16,  itemSpacing 64 kept
   eyebrow/heading/subtext sizes UNCHANGED from desktop (36/50.4 etc.)
   buttons stack VERTICAL gap 24, padding 10/24 both
*/
@media (max-width: 767px) {
    .tl-cta-banner { padding: 48px 16px; }      /* Figma mobile padding 48/16 */
    .tl-cta-banner__container { gap: 64px; padding: 0; }
    .tl-cta-banner__buttons {
        flex-direction: column;                 /* Figma mobile buttons VERTICAL */
        align-items: center;
        gap: 24px;
        width: 100%;
    }
    .tl-cta-banner__btn {
        width: 100%;
        max-width: 320px;
    }
    .tl-cta-banner__btn--primary { padding: 10px 24px; }   /* mobile evens padding to 10/24 */
}

/* ── Narrow mobile ≤480 — shrink heading so long DE words fit ── */
@media (max-width: 480px) {
    .tl-cta-banner__heading { font-size: 28px; line-height: 36px; }
    .tl-cta-banner__subtext { font-size: 15px; line-height: 22px; }
}
