/* ==========================================================================
   Altvia | Página Transformação Digital: seções redesenhadas
   Classes com prefixo "tf-" para não conflitar com o CSS antigo.
   ========================================================================== */

.tf-section { position: relative; padding: 100px 0; }
.tf-section--paper { background: #f7f9fc; }

.tf-tag {
    display: inline-flex;
    align-items: center;
    margin-bottom: 16px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--light-blue);
    color: var(--dark-blue);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.tf-title {
    margin: 0 0 18px;
    color: var(--dark-blue);
    font-size: clamp(1.75rem, 1.1rem + 2vw, 2.5rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

.tf-lead { color: #555; font-size: 1.1rem; line-height: 1.6; }
.tf-strong { color: var(--dark-blue); font-weight: 700; }

.tf-hl {
    background: linear-gradient(90deg, #0078b8, #009ba1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tf-head-center { max-width: 800px; margin: 0 auto 52px; text-align: center; }

.tf-ico {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: linear-gradient(135deg, #0078b8, #009ba1);
    color: #fff;
    font-size: 19px;
    box-shadow: 0 8px 18px rgba(0, 155, 161, 0.28);
}

.tf-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }

.tf-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 13px;
    border: 1px solid #dde6ee;
    border-radius: 999px;
    background: #fff;
    color: var(--dark-blue);
    font-size: 13.5px;
    font-weight: 600;
}

.tf-chip i { color: #009ba1; }

/* ---------- 1. Como funciona: ilustração do DevFlow ---------- */
.tf-devflow {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 20px;
    container-type: inline-size;
    color: #fff;
    background:
        radial-gradient(420px 300px at 85% 0%, rgba(0, 177, 183, 0.28), transparent 65%),
        radial-gradient(360px 280px at 0% 100%, rgba(111, 114, 242, 0.25), transparent 65%),
        linear-gradient(150deg, #001a2c 0%, #002c53 60%, #013a66 100%);
    box-shadow: 0 20px 50px rgba(0, 44, 83, 0.25);
}

.tf-df-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3.6cqi 4.4cqi 3cqi;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tf-df-brand {
    display: flex;
    align-items: center;
    gap: 2cqi;
    font-size: clamp(12px, 3.2cqi, 17px);
    font-weight: 800;
    letter-spacing: 0.01em;
}

.tf-df-brand i {
    display: grid;
    place-items: center;
    width: 7cqi;
    min-width: 24px;
    aspect-ratio: 1 / 1;
    border-radius: 28%;
    background: linear-gradient(135deg, #0078b8, #009ba1);
    font-size: clamp(11px, 3cqi, 15px);
}

.tf-df-live {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 1cqi 2.6cqi;
    border-radius: 999px;
    background: rgba(61, 220, 151, 0.12);
    color: #a8f0cd;
    font-size: clamp(9.5px, 2.4cqi, 12px);
    font-weight: 700;
}

.tf-df-live b {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #3ddc97;
    animation: tf-blink 1.6s ease-in-out infinite;
}

.tf-df-board {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3cqi;
    padding: 3.4cqi 4.4cqi 0;
}

.tf-df-col {
    min-height: 34cqi;
    padding: 2.4cqi;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
}

.tf-df-col h4 {
    display: flex;
    justify-content: space-between;
    margin: 0 0 2.2cqi;
    color: #9fb3c4;
    font-size: clamp(9px, 2.3cqi, 12px);
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.tf-df-card {
    margin-bottom: 1.8cqi;
    padding: 2cqi;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-left: 3px solid #6fdde1;
}

.tf-df-card i {
    display: block;
    height: 1.4cqi;
    min-height: 4px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.45);
}

.tf-df-card i + i { width: 60%; margin-top: 1.2cqi; background: rgba(255, 255, 255, 0.22); }
.tf-df-card--todo { border-left-color: #9fb3c4; }
.tf-df-card--done { border-left-color: #3ddc97; }

/* cartão que sai de "Em andamento" e vai para "Entregue" */
.tf-df-moving {
    position: absolute;
    top: calc(3.4cqi + 2.4cqi + 2.2cqi + 3.2cqi);
    left: calc(4.4cqi + (100% - 8.8cqi - 6cqi) / 3 + 3cqi + 2.4cqi);
    width: calc((100% - 8.8cqi - 6cqi) / 3 - 4.8cqi);
    margin: 0;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
    animation: tf-move 5s ease-in-out infinite;
}

.tf-df-foot {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 4cqi;
    align-items: end;
    padding: 3.4cqi 4.4cqi 0;
}

.tf-df-progress span {
    display: block;
    margin-bottom: 1.6cqi;
    color: #c9d6e2;
    font-size: clamp(9.5px, 2.4cqi, 12px);
    font-weight: 600;
}

.tf-df-bar {
    height: 1.8cqi;
    min-height: 6px;
    overflow: hidden;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.12);
}

.tf-df-bar b {
    display: block;
    height: 100%;
    width: 72%;
    border-radius: 9px;
    background: linear-gradient(90deg, #0078b8, #6fdde1);
    animation: tf-bar 5s ease-in-out infinite;
}

.tf-df-chart { width: 100%; height: auto; }
.tf-df-chart polyline { fill: none; stroke: #6fdde1; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.tf-df-chart .base { stroke: rgba(255, 255, 255, 0.15); stroke-width: 1.5; }

@keyframes tf-move {
    0%, 30% { transform: translateX(0); }
    55%, 85% { transform: translateX(calc(100% + 4.8cqi + 3cqi)); }
    86% { opacity: 0; transform: translateX(calc(100% + 4.8cqi + 3cqi)); }
    95% { opacity: 0; transform: translateX(0); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes tf-bar {
    0%, 40% { width: 72%; }
    60%, 95% { width: 86%; }
    100% { width: 72%; }
}

@keyframes tf-blink { 50% { opacity: 0.35; } }

/* ---------- 2. Equipe altamente capacitada ---------- */
.tf-benefits { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

.tf-benefit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, #eafafb, #eef3ff);
    color: var(--dark-blue);
    font-size: 14.5px;
    font-weight: 700;
}

.tf-benefit i { color: #009ba1; }

.tf-roles {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 0;
    padding: 0;
}

.tf-role {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border: 1px solid #e8edf2;
    border-radius: 16px;
    background: #fff;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.tf-role:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 177, 183, 0.45);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
}

.tf-role p { margin: 0; color: var(--dark-blue); font-size: 15.5px; font-weight: 700; line-height: 1.35; }

.tf-role--wide { grid-column: span 2; }

/* ---------- 3. Entregas com histórico (faixa azul) ---------- */
.tf-blue {
    overflow: hidden;
    background:
        radial-gradient(560px 420px at 92% 8%, rgba(0, 177, 183, 0.32), transparent 65%),
        radial-gradient(520px 420px at 4% 100%, rgba(111, 114, 242, 0.22), transparent 65%),
        linear-gradient(150deg, #0067a3 0%, #00528a 45%, #003a6b 100%);
}

.tf-blue::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 60% 40%, #000 0%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 70% at 60% 40%, #000 0%, transparent 75%);
}

.tf-blue > .container-fluid { position: relative; }
.tf-blue .tf-tag { background: rgba(255, 255, 255, 0.14); color: #fff; }
.tf-blue .tf-title { color: #fff; }
.tf-blue .tf-lead { color: #d9e8f5; }
.tf-blue .tf-strong { color: #8ee6e9; }

.tf-ring {
    position: relative;
    width: min(320px, 80%);
    aspect-ratio: 1 / 1;
    margin: 0 auto;
}

.tf-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.tf-ring .track { fill: none; stroke: rgba(255, 255, 255, 0.14); stroke-width: 12; }

.tf-ring .fill {
    fill: none;
    stroke: url(#tfRingGrad);
    stroke-width: 12;
    stroke-linecap: round;
    stroke-dasharray: 100;
    stroke-dashoffset: 2;
    animation: tf-ring 2.2s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.tf-ring-label {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    text-align: center;
}

.tf-ring-label strong {
    color: #fff;
    font-size: clamp(3rem, 2rem + 3vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
}

.tf-ring-label span {
    max-width: 16ch;
    margin: 8px auto 0;
    color: #d9e8f5;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
}

@keyframes tf-ring { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 2; } }

/* ---------- 4. Planos sob demanda ---------- */
.tf-plans {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    margin: 0;
    padding: 0;
}

.tf-plan {
    --metal: #b08d57;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 26px 20px 22px;
    overflow: hidden;
    border: 1px solid #e8edf2;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tf-plan::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--metal);
}

.tf-plan:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0, 44, 83, 0.12); }

.tf-plan-name {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--dark-blue);
    font-size: 15px;
    font-weight: 700;
}

.tf-plan-name i { color: var(--metal); }

.tf-plan-hours {
    color: var(--dark-blue);
    font-size: clamp(1.8rem, 1.3rem + 1vw, 2.3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.tf-plan-hours small { color: #6b7280; font-size: 0.45em; font-weight: 600; letter-spacing: 0; }

.tf-plan-meter {
    height: 6px;
    margin-top: 8px;
    overflow: hidden;
    border-radius: 6px;
    background: #eef1f5;
}

.tf-plan-meter b { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #0078b8, #00b1b7); }

.tf-plan--latao { --metal: #b5935c; }
.tf-plan--bronze { --metal: #cd7f32; }
.tf-plan--prata { --metal: #a3adb8; }
.tf-plan--ouro { --metal: #d4af37; }
.tf-plan--platinum { --metal: #7f9db3; }
.tf-plan--diamante { --metal: linear-gradient(90deg, #5fd3f3, #9b8cff); }
.tf-plan--diamante .tf-plan-name i { color: #4fb8e0; }

/* ---------- 5. Por que Altvia ---------- */
.tf-why-intro { position: sticky; top: 110px; }

.tf-reasons { list-style: none; display: grid; gap: 16px; margin: 0; padding: 0; }

.tf-reason {
    display: flex;
    gap: 20px;
    padding: 24px 26px;
    border: 1px solid #e8edf2;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}

.tf-reason-num {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0078b8, #009ba1);
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    box-shadow: 0 0 0 5px #e5f6ff;
}

.tf-reason h3 { margin: 4px 0 8px; color: var(--dark-blue); font-size: 1.15rem; font-weight: 700; }
.tf-reason p { margin: 0; color: #555; font-size: 15px; line-height: 1.55; }

.tf-closing {
    margin: 56px auto 0;
    max-width: 820px;
    padding: 26px 30px;
    border-radius: 18px;
    background: linear-gradient(135deg, #002c53, #0078b8);
    color: #fff;
    text-align: center;
}

.tf-closing p { margin: 0; color: #fff; font-size: clamp(1.1rem, 0.95rem + 0.6vw, 1.35rem); font-weight: 700; line-height: 1.45; }
.tf-closing span { color: #8ee6e9; }

/* ---------- 6. Engenharia que evoluiu (faixa escura) ---------- */
.tf-dark {
    overflow: hidden;
    color: #c9d6e2;
    background:
        radial-gradient(600px 460px at 85% 30%, rgba(0, 177, 183, 0.24), transparent 65%),
        radial-gradient(520px 420px at 0% 100%, rgba(111, 114, 242, 0.26), transparent 65%),
        linear-gradient(155deg, #001a2c 0%, #002c53 60%, #013a66 100%);
}

.tf-dark > .container-fluid { position: relative; }
.tf-dark .tf-tag { background: rgba(255, 255, 255, 0.14); color: #fff; }
.tf-dark .tf-title { color: #fff; }
.tf-dark .tf-lead, .tf-dark p { color: #c9d6e2; }

.tf-rules { list-style: none; display: grid; gap: 10px; margin: 26px 0 0; padding: 0; }

.tf-rule {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #dbe6ef;
    font-size: 15px;
}

.tf-rule i { color: #3ddc97; }
.tf-rule b { color: #8ee6e9; }

/* pilha de camadas */
.tf-stack { list-style: none; display: grid; gap: 10px; max-width: 420px; margin: 0 auto; padding: 0; }

.tf-layer { margin: 0; }

.tf-layer > a,
.tf-layer > span {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 18px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    background: rgba(0, 26, 44, 0.6);
    color: #fff;
    font-size: 15.5px;
    font-weight: 700;
    text-decoration: none;
    animation: tf-layer 7s ease-in-out infinite;
}

.tf-layer > a:hover { border-color: rgba(142, 230, 233, 0.8); color: #fff; }

.tf-layer i {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #0078b8, #009ba1);
    font-size: 15px;
}

.tf-layer small { margin-left: auto; color: #8ee6e9; font-size: 12px; font-weight: 600; }

.tf-stack .tf-layer:nth-child(1) > * { margin-left: 0; animation-delay: 0s; }
.tf-stack .tf-layer:nth-child(2) > * { margin-left: 4%; animation-delay: 0.5s; }
.tf-stack .tf-layer:nth-child(3) > * { margin-left: 8%; animation-delay: 1s; }
.tf-stack .tf-layer:nth-child(4) > * { margin-left: 12%; animation-delay: 1.5s; }
.tf-stack .tf-layer:nth-child(5) > * { margin-left: 8%; animation-delay: 2s; }
.tf-stack .tf-layer:nth-child(6) > * { margin-left: 4%; animation-delay: 2.5s; }
.tf-stack .tf-layer:nth-child(7) > * { margin-left: 0; animation-delay: 3s; }

.tf-stack-caption { margin: 18px 0 0; color: #9fb3c4 !important; font-size: 13px; text-align: center; }

@keyframes tf-layer {
    0%, 100% { box-shadow: none; border-color: rgba(255, 255, 255, 0.16); }
    8%, 22% { box-shadow: 0 0 24px rgba(0, 177, 183, 0.45); border-color: rgba(142, 230, 233, 0.8); }
    30% { box-shadow: none; border-color: rgba(255, 255, 255, 0.16); }
}

.tf-dark .tf-closing { background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.14); }

/* ---------- Responsivo ---------- */
@media (max-width: 1199.98px) {
    .tf-plans { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 991.98px) {
    .tf-section { padding: 72px 0; }
    .tf-devflow { margin: 0 auto; }
    .tf-why-intro { position: static; }
}

@media (max-width: 767.98px) {
    .tf-roles { grid-template-columns: 1fr; }
    .tf-role--wide { grid-column: auto; }
    .tf-plans { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 575.98px) {
    .tf-section { padding: 64px 0; }
    .tf-reason { gap: 14px; padding: 20px; }
    .tf-reason-num { width: 42px; height: 42px; font-size: 16px; }
    .tf-stack .tf-layer > * { margin-left: 0 !important; }
}

@media (prefers-reduced-motion: reduce) {
    .tf-df-moving, .tf-df-bar b, .tf-df-live b, .tf-ring .fill, .tf-layer > a, .tf-layer > span { animation: none; }
    .tf-role, .tf-plan { transition: none; }
}

/* posição reservada para o cartão que se move no quadro do DevFlow */
.tf-df-card--slot { visibility: hidden; }

.tf-df-foot { padding-bottom: 4cqi; }
.tf-df-col { min-height: 30cqi; }
.tf-df-moving { background: #1f4766; }

/* painel do DevFlow com altura conforme o conteúdo e gráfico com altura limitada */
.tf-devflow { aspect-ratio: auto; }
.tf-df-chart { height: 12cqi; min-height: 40px; }

/* cartão em movimento com o mesmo brilho dos outros; borda fica verde ao chegar em "Entregue" */
.tf-df-moving {
    background: #2b5a7e;
    animation: tf-move 5s ease-in-out infinite, tf-move-color 5s ease-in-out infinite;
}

@keyframes tf-move-color {
    0%, 40% { border-left-color: #6fdde1; }
    55%, 85% { border-left-color: #3ddc97; }
    100% { border-left-color: #6fdde1; }
}

/* cartão totalmente visível durante todo o percurso; só some no reinício do ciclo */
@keyframes tf-move {
    0%, 30% { opacity: 1; transform: translateX(0); }
    55%, 85% { opacity: 1; transform: translateX(calc(100% + 4.8cqi + 3cqi)); }
    88% { opacity: 0; transform: translateX(calc(100% + 4.8cqi + 3cqi)); }
    95% { opacity: 0; transform: translateX(0); }
    100% { opacity: 1; transform: translateX(0); }
}

@media (max-width: 767.98px) {
    .tf-plan-hours small { display: block; margin-top: 2px; }
}

/* ==========================================================================
   Seções "Por que construir", "Como pensamos" e "O que podemos construir"
   ========================================================================== */

/* ---------- Por que construir ---------- */
.tf-challenges {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 0;
    padding: 0;
}

.tf-challenge {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border: 1px solid #e8edf2;
    border-radius: 16px;
    background: #fff;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.tf-challenge:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 177, 183, 0.45);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
}

.tf-challenge p { margin: 0; color: var(--dark-blue); font-size: 15px; font-weight: 600; line-height: 1.4; }
.tf-challenge--wide { grid-column: span 2; }

.tf-ico--soft {
    background: #e5f6ff;
    color: #0078b8;
    box-shadow: none;
}

.tf-callout {
    margin-top: 24px;
    padding: 18px 22px;
    border-left: 4px solid #009ba1;
    border-radius: 0 14px 14px 0;
    background: #f7f9fc;
}

.tf-callout p { margin: 0; color: #3d4a55; font-size: 15.5px; line-height: 1.55; }

/* ---------- Como pensamos: etapas elaboradas ---------- */
.tf-steps-wrap { position: relative; }

.tf-steps-track {
    position: absolute;
    top: 44px;
    left: 10%;
    right: 10%;
    height: 4px;
    transform: translateY(-50%);
    border-radius: 4px;
    background: linear-gradient(90deg, #002c53, #0078b8 50%, #00b1b7);
}

.tf-steps-pulse {
    position: absolute;
    top: -3px;
    left: 0;
    width: 14%;
    height: 10px;
    border-radius: 10px;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.95) 0%, rgba(142, 230, 233, 0.6) 40%, transparent 72%);
    animation: tf-steps-pulse 4.5s ease-in-out infinite;
}

.tf-steps-chev {
    position: absolute;
    top: 50%;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(0, 177, 183, 0.55);
    border-radius: 50%;
    background: #fff;
    color: #008388;
    font-size: 10px;
    box-shadow: 0 6px 14px rgba(0, 44, 83, 0.12);
}

.tf-steps-chev:nth-of-type(2) { left: 12.5%; }
.tf-steps-chev:nth-of-type(3) { left: 37.5%; }
.tf-steps-chev:nth-of-type(4) { left: 62.5%; }
.tf-steps-chev:nth-of-type(5) { left: 87.5%; }

.tf-steps {
    list-style: none;
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin: 0;
    padding: 0;
}

.tf-step { position: relative; text-align: center; }

.tf-step-badge {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.25), transparent 55%),
        linear-gradient(140deg, #0078b8, #009ba1);
    box-shadow: 0 0 0 8px var(--tf-step-ring, #f7f9fc), 0 16px 32px rgba(0, 120, 184, 0.3);
    color: #fff;
    font-size: 30px;
    transition: transform 0.25s ease;
}

.tf-step-badge::before {
    content: "";
    position: absolute;
    inset: -15px;
    border-radius: 50%;
    border: 2px dashed rgba(0, 177, 183, 0.4);
    animation: tf-spin 26s linear infinite;
}

.tf-step:nth-child(even) .tf-step-badge::before { animation-direction: reverse; }

.tf-step-num {
    position: absolute;
    top: -4px;
    right: -6px;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--dark-blue);
    box-shadow: 0 0 0 3px #fff;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.tf-step:hover .tf-step-badge { transform: translateY(-4px); }

.tf-step h3 { margin: 0 0 8px; color: var(--dark-blue); font-size: 1.12rem; font-weight: 700; }
.tf-step p { max-width: 26ch; margin: 0 auto; color: #555; font-size: 14.5px; line-height: 1.5; }

@keyframes tf-steps-pulse {
    0% { left: -8%; opacity: 0; }
    15%, 85% { opacity: 1; }
    100% { left: 94%; opacity: 0; }
}

@keyframes tf-spin { to { transform: rotate(360deg); } }

/* ---------- O que podemos construir ---------- */
.tf-builds {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.tf-build {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 28px 26px;
    border: 1px solid #e8edf2;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.tf-build:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 177, 183, 0.45);
    box-shadow: 0 14px 30px rgba(0, 44, 83, 0.1);
}

.tf-build h3 { margin: 4px 0 0; color: var(--dark-blue); font-size: 1.15rem; font-weight: 700; }
.tf-build p { margin: 0; color: #555; font-size: 15px; line-height: 1.55; }

/* ---------- Responsivo ---------- */
@media (max-width: 1199.98px) {
    .tf-builds { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 991.98px) {
    /* etapas na vertical: um trecho de linha liga cada selo ao seguinte */
    .tf-steps-track { display: none; }

    .tf-steps { grid-template-columns: 1fr; gap: 34px; }

    .tf-step {
        display: grid;
        grid-template-columns: 88px 1fr;
        column-gap: 22px;
        text-align: left;
    }

    .tf-step-badge { grid-row: span 2; margin: 0; }
    .tf-step h3 { align-self: end; margin-top: 10px; }
    .tf-step p { max-width: none; margin: 0; }

    .tf-step:not(:last-child)::after {
        content: "";
        position: absolute;
        z-index: 0;
        top: 44px;
        bottom: -78px;
        left: 44px;
        width: 4px;
        transform: translateX(-50%);
        border-radius: 4px;
        background: linear-gradient(180deg, #0078b8, #00b1b7);
    }
}

@media (max-width: 767.98px) {
    .tf-challenges { grid-template-columns: 1fr; }
    .tf-challenge--wide { grid-column: auto; }
    .tf-builds { grid-template-columns: 1fr; }
}

@media (max-width: 575.98px) {
    .tf-step { grid-template-columns: 70px 1fr; column-gap: 16px; }
    .tf-step-badge { width: 70px; height: 70px; font-size: 24px; box-shadow: 0 0 0 6px var(--tf-step-ring, #f7f9fc), 0 12px 24px rgba(0, 120, 184, 0.28); }
    .tf-step-badge::before { inset: -11px; }
    .tf-step-num { width: 26px; height: 26px; font-size: 12px; }
    .tf-step:not(:last-child)::after { top: 35px; bottom: -69px; left: 35px; }
}

@media (prefers-reduced-motion: reduce) {
    .tf-steps-pulse { display: none; }
    .tf-step-badge::before { animation: none; }
    .tf-challenge, .tf-build, .tf-step-badge { transition: none; }
}

/* Plano Cobre (antes Latão): tom de cobre avermelhado, distinto do Bronze */
.tf-plan--cobre { --metal: #b5562f; }
