/* Landing page — Dwarf | Durin */

.landing {
    font-family: var(--font-body);
    color: #303236;
}

.landing section {
    position: relative;
}

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #D8DADD;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px;
    padding-bottom: 18px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-mark {
    object-fit: contain;
    flex: none;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
    color: #111111;
}

.brand-tagline {
    font-weight: 400;
    font-size: 0.78rem;
    color: #747A80;
}

.header-cta.mud-button-root {
    padding-left: 28px;
    padding-right: 28px;
}

/* ---------- Hero ---------- */

.hero {
    padding: 96px 0 72px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 48px;
}

.hero-copy {
    max-width: 560px;
}

.hero-title.mud-typography {
    font-family: var(--font-display);
    font-size: 3rem;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #111111;
    margin-bottom: 24px;
}

.hero-subtitle.mud-typography {
    font-size: 1.1rem;
    line-height: 1.6;
    font-weight: 400;
    color: #303236;
    margin-bottom: 40px;
    max-width: 480px;
}

.hero-cta.mud-button-root {
    padding-left: 36px;
    padding-right: 36px;
    padding-top: 14px;
    padding-bottom: 14px;
    font-size: 1rem;
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.hero-illustration {
    width: 100%;
    max-width: 520px;
    height: auto;
}

/* ---------- Benefits ---------- */

.benefits {
    padding: 48px 0 104px;
}

.benefit-card {
    background: #FFFFFF;
    border: 1px solid #D8DADD;
    border-radius: 16px;
    padding: 36px 32px;
    height: 100%;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(17, 17, 17, 0.08);
    border-color: #747A80;
}

.benefit-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: #F2F3F4;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.benefit-title.mud-typography {
    font-family: var(--font-display);
    font-weight: 700;
    margin-bottom: 10px;
    color: #111111;
}

.benefit-text.mud-typography {
    color: #747A80;
    line-height: 1.6;
}

/* ---------- Features ---------- */

.features {
    padding: 40px 0 120px;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 64px;
}

.feature-mockup {
    width: 100%;
    height: auto;
}

.features-title.mud-typography {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #111111;
    margin-bottom: 32px;
    max-width: 440px;
}

.features-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1.05rem;
    font-weight: 500;
    color: #303236;
}

/* ---------- Footer ---------- */

.site-footer {
    border-top: 1px solid #D8DADD;
    padding: 36px 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-legal {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    font-size: 0.82rem;
    color: #747A80;
}

/* ---------- Client login ---------- */

.client-login {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 20px;
    background:
        radial-gradient(circle at 10% 0%, rgba(241, 90, 36, 0.10), transparent 34%),
        linear-gradient(145deg, #F7F7F8 0%, #ECEDEE 100%);
}

/* Keep the return link and card together instead of stretching their grid rows. */
.client-login-with-back {
    align-content: center;
    row-gap: 64px;
}

.client-login-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0;
    color: #747A80 !important;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.15s ease;
}

.client-login-back:hover {
    color: #F15A24 !important;
}

.client-login-card {
    position: relative;
    width: min(100%, 460px);
    padding: 42px;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 24px 70px rgba(32, 34, 38, 0.12);
}

.client-login-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, #F15A24, #C74718);
}

.client-login-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 26px;
    border-bottom: 1px solid #ECEDEE;
}

.client-login-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 8px;
    border: 1px solid rgba(241, 90, 36, 0.32);
    border-radius: 6px;
    background: #FDEAE1;
    color: #F15A24;
    font-family: var(--font-tech);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.09em;
}

.client-login-heading {
    padding: 30px 0 26px;
}

.client-login-heading .mud-typography-h4 {
    font-family: var(--font-display);
    font-size: 28px;
    line-height: 1.18;
    color: #111111;
}

.client-login-heading .mud-typography-body2 {
    margin-top: 8px;
    color: #747A80;
    line-height: 1.55;
}

.client-login-form {
    display: grid;
    gap: 18px;
}

.client-login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: -4px;
}

.client-login-forgot-link {
    padding-inline: 4px !important;
}

.client-login-submit {
    min-height: 48px;
    margin-top: 2px;
    border-radius: 10px !important;
}

.client-login-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid #ECEDEE;
    color: #747A80;
    font-size: 12px;
    text-align: center;
}

/* ---------- Responsive ---------- */

@media (max-width: 1279px) {
    .hero-title.mud-typography {
        font-size: 2.6rem;
    }

    /* O H1 tem três degraus (3rem / 2,6rem / 2rem) e o título da seção de benefícios não tinha
       nenhum: como Typo.h3 sem tamanho declarado, ficava nos 3rem do tema em toda largura
       abaixo de 1280px. Medido em 768px, dava 48px contra os 41,6px do H1 — a mesma inversão
       do móvel, só que numa faixa que ninguém tinha olhado. Acompanhar o H1 aqui resolve a
       faixa inteira de 600px a 1279px; em 1280px ou mais nada muda (ambos seguem em 3rem). */
    .features-title.mud-typography {
        font-size: 2.6rem;
    }
}

@media (max-width: 959px) {
    .hero {
        padding: 56px 0 48px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-copy {
        max-width: none;
        margin: 0 auto;
    }

    .hero-subtitle.mud-typography {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-visual {
        order: -1;
    }

    .hero-illustration {
        max-width: 380px;
    }

    .benefits {
        padding: 24px 0 72px;
    }

    .features {
        padding: 16px 0 80px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .features-title.mud-typography {
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }

    .features-list {
        align-items: center;
    }

    .footer-inner {
        justify-content: center;
        text-align: center;
    }

    .footer-legal {
        align-items: center;
    }
}

@media (max-width: 599px) {
    .header-cta.mud-button-root {
        padding-left: 18px;
        padding-right: 18px;
        font-size: 0.85rem;
    }

    .header-actions {
        gap: 4px;
    }

    .header-actions .mud-button-root {
        padding-left: 12px;
        padding-right: 12px;
        font-size: 0.78rem;
    }

    .brand-tagline {
        display: none;
    }

    .hero-title.mud-typography {
        font-size: 2rem;
    }

    .hero-subtitle.mud-typography {
        font-size: 1rem;
    }

    /* O H1 desce para 2rem aqui em cima, mas o título da seção de benefícios é um Typo.h3 sem
       tamanho declarado: ficava nos 3rem do tema em QUALQUER largura. Em 375px isso rendia 48px
       contra os 32px do H1 — a hierarquia invertida, com o subtítulo dominando a página e
       ocupando 280px de altura. Igualar ao teto do H1 devolve a ordem sem tocar no desktop. */
    .features-title.mud-typography {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-cta.mud-button-root {
        width: 100%;
    }

    .client-login-card {
        padding: 30px 24px;
    }

    .client-login-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }
}
