:root {
    --lp-blue: #144a80;
    --lp-blue-deep: #0b2a4a;
    --lp-blue-night: #071d34;
    --lp-orange: #f07a1c;
    --lp-orange-dark: #c95f0c;
    --lp-paper: #f4f7fb;
    --lp-ink: #12263d;
    --lp-muted: #4e6178;
    --lp-line: #d9e3ee;
    --lp-white: #ffffff;

    --lp-display: "Montserrat", "Segoe UI", system-ui, sans-serif;
    --lp-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;

    --lp-wrap: 1160px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.lp {
    margin: 0;
    color: var(--lp-ink);
    background: var(--lp-paper);
    font-family: var(--lp-body);
    font-size: 18px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.lp img {
    display: block;
}

.lp a {
    color: inherit;
}

.lp :focus-visible {
    outline: 3px solid var(--lp-orange);
    outline-offset: 3px;
    border-radius: 6px;
}

.lp-skip {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 10;
    padding: 10px 14px;
    color: var(--lp-white);
    background: var(--lp-blue-deep);
    border-radius: 8px;
}

.lp-skip:focus {
    top: 12px;
}

.lp-wrap {
    width: min(var(--lp-wrap), 100% - 32px);
    margin-inline: auto;
}

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

.lp-header {
    position: relative;
    z-index: 2;
    color: var(--lp-white);
    background: var(--lp-blue-night);
}

.lp-header__inner {
    display: flex;
    align-items: center;
    gap: 32px;
    min-height: 76px;
}

.lp-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.lp-brand__name {
    display: grid;
    line-height: 1.1;
}

.lp-brand__name strong {
    font-family: var(--lp-display);
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.lp-brand__name small {
    color: #a9c0d9;
    font-size: 13px;
}

.lp-nav {
    display: flex;
    gap: 26px;
    margin-left: auto;
    font-size: 15px;
    font-weight: 600;
}

.lp-nav a {
    color: #c9d8e8;
    text-decoration: none;
}

.lp-nav a:hover {
    color: var(--lp-white);
}

/* Rótulo curto do botão do cabeçalho em telas estreitas. */
.lp-label-short {
    display: none;
}

/* ---------- Buttons ---------- */

.lp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border: 2px solid transparent;
    border-radius: 999px;
    font-family: var(--lp-display);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.lp .lp-button--primary {
    color: var(--lp-white);
    background: var(--lp-orange);
}

.lp .lp-button--primary:hover {
    background: var(--lp-orange-dark);
}

.lp .lp-button--light {
    color: var(--lp-white);
    border-color: rgba(255, 255, 255, 0.45);
}

.lp .lp-button--light:hover {
    border-color: var(--lp-white);
}

.lp .lp-button--ghost {
    min-height: 42px;
    color: var(--lp-white);
    border-color: rgba(255, 255, 255, 0.3);
    font-size: 14px;
}

.lp .lp-button--ghost:hover {
    border-color: var(--lp-white);
}

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

.lp-hero {
    color: var(--lp-white);
    background: linear-gradient(180deg, var(--lp-blue-night) 0%, var(--lp-blue-deep) 100%);
    padding: 72px 0 96px;
}

.lp-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 64px;
}

.lp-hero h1 {
    max-width: 16ch;
    margin: 0;
    font-family: var(--lp-display);
    font-size: clamp(36px, 4.6vw, 58px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.lp-lead {
    max-width: 52ch;
    margin: 24px 0 0;
    color: #c9d8e8;
    font-size: 20px;
}

.lp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 36px;
}

/* The route card: the protocol and its path between SEMEF sectors. */

.lp-route {
    position: relative;
    margin: 0;
    padding: 30px 32px 28px;
    color: var(--lp-ink);
    background: var(--lp-white);
    border-radius: 22px;
    box-shadow: 0 30px 70px rgba(3, 14, 28, 0.45);
}

.lp-route__head {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--lp-line);
}

.lp-route__label {
    color: var(--lp-muted);
    font-size: 14px;
    font-weight: 600;
}

.lp-route__protocol {
    display: flex;
    flex-wrap: wrap;
    margin: 4px 0 0;
    color: var(--lp-blue);
    font-family: var(--lp-display);
    font-size: clamp(19px, 1.6vw, 24px);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.lp-route__subject {
    margin: 6px 0 0;
    color: var(--lp-muted);
    font-size: 15px;
}

.lp-route__steps {
    position: relative;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.lp-route__steps::before {
    content: "";
    position: absolute;
    top: 14px;
    bottom: 26px;
    left: 9px;
    width: 2px;
    background: var(--lp-line);
}

.lp-route__steps li {
    position: relative;
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 16px;
    padding: 8px 0;
}

.lp-route__dot {
    position: relative;
    z-index: 1;
    width: 20px;
    height: 20px;
    margin-top: 3px;
    border: 3px solid var(--lp-white);
    border-radius: 50%;
    background: var(--lp-line);
    box-shadow: 0 0 0 2px var(--lp-line);
}

.lp-route__steps .is-done .lp-route__dot {
    background: var(--lp-blue);
    box-shadow: 0 0 0 2px var(--lp-blue);
}

.lp-route__steps .is-now .lp-route__dot {
    background: var(--lp-orange);
    box-shadow: 0 0 0 2px var(--lp-orange), 0 0 0 8px rgba(240, 122, 28, 0.18);
}

.lp-route__steps strong {
    display: block;
    font-family: var(--lp-display);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.lp-route__steps span {
    color: var(--lp-muted);
    font-size: 15px;
}

.lp-route__steps .is-now strong {
    color: var(--lp-orange-dark);
}

.lp-route__toast {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    margin: 18px -12px -6px;
    padding: 14px 16px;
    color: var(--lp-ink);
    background: #fff4ea;
    border: 1px solid #ffd8b5;
    border-radius: 14px;
    font-size: 15px;
    line-height: 1.45;
}

.lp-route__toast strong {
    display: block;
    font-family: var(--lp-display);
    font-size: 15px;
}

/* One orchestrated moment: the route is walked, then the notice arrives. */

@media (prefers-reduced-motion: no-preference) {
    .lp-route__steps li {
        animation: lp-step 0.45s ease-out both;
    }

    .lp-route__steps li:nth-child(1) { animation-delay: 0.25s; }
    .lp-route__steps li:nth-child(2) { animation-delay: 0.65s; }
    .lp-route__steps li:nth-child(3) { animation-delay: 1.05s; }

    .lp-route__steps .is-now .lp-route__dot {
        animation: lp-pulse 2.4s ease-in-out 1.6s infinite;
    }

    .lp-route__toast {
        animation: lp-toast 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) 1.7s both;
    }

    @keyframes lp-step {
        from { opacity: 0.25; }
        to { opacity: 1; }
    }

    @keyframes lp-pulse {
        0%, 100% { box-shadow: 0 0 0 2px var(--lp-orange), 0 0 0 8px rgba(240, 122, 28, 0.18); }
        50% { box-shadow: 0 0 0 2px var(--lp-orange), 0 0 0 13px rgba(240, 122, 28, 0.05); }
    }

    @keyframes lp-toast {
        from { opacity: 0; transform: translateY(10px); }
        to { opacity: 1; transform: none; }
    }
}

/* ---------- Sections ---------- */

.lp-section {
    padding: 96px 0;
}

.lp-section--tinted {
    background: var(--lp-white);
    border-block: 1px solid var(--lp-line);
}

.lp-section h2,
.lp-cta h2 {
    margin: 0;
    font-family: var(--lp-display);
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.lp-section__intro {
    max-width: 62ch;
    margin: 16px 0 0;
    color: var(--lp-muted);
}

/* A real sequence, so it is numbered. */

.lp-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
    margin: 56px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: lp-step;
}

.lp-steps li {
    position: relative;
    padding-top: 64px;
    counter-increment: lp-step;
}

.lp-steps li::before {
    content: counter(lp-step);
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    color: var(--lp-white);
    background: var(--lp-blue);
    border-radius: 50%;
    font-family: var(--lp-display);
    font-size: 18px;
    font-weight: 800;
}

.lp-steps li::after {
    content: "";
    position: absolute;
    top: 21px;
    left: 56px;
    right: -28px;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--lp-orange) 0 8px, transparent 8px 14px);
}

.lp-steps li:last-child::after {
    content: none;
}

.lp-steps h3 {
    margin: 0;
    font-family: var(--lp-display);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.lp-steps p {
    margin: 10px 0 0;
    color: var(--lp-muted);
}

/* Features: a definition list, not a card grid. */

.lp-features {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 64px;
}

.lp-features__intro p {
    margin: 18px 0 0;
    color: var(--lp-muted);
}

.lp-features__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 40px;
    margin: 0;
}

.lp-features__list div {
    padding: 22px 0;
    border-top: 2px solid var(--lp-line);
}

.lp-features__list div:nth-child(-n + 2) {
    border-top-color: var(--lp-blue);
}

.lp-features__list dt {
    font-family: var(--lp-display);
    font-size: 18px;
    font-weight: 700;
}

.lp-features__list dd {
    margin: 6px 0 0;
    color: var(--lp-muted);
    font-size: 17px;
}

/* ---------- CTA + footer ---------- */

.lp-cta {
    color: var(--lp-white);
    background: var(--lp-blue);
    padding: 72px 0;
}

.lp-cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.lp-cta p {
    margin: 10px 0 0;
    color: #d3e2f2;
}

.lp-footer {
    color: #a9c0d9;
    background: var(--lp-blue-night);
    font-size: 15px;
}

.lp-footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 88px;
    padding-block: 20px;
}

.lp-footer p {
    margin: 0;
}

.lp-brand--small {
    color: var(--lp-white);
    gap: 10px;
}

.lp-brand--small strong {
    font-family: var(--lp-display);
    font-weight: 800;
}

.lp-footer a {
    color: #c9d8e8;
}

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

@media (max-width: 960px) {
    .lp-nav {
        display: none;
    }

    .lp-header__inner .lp-button--ghost {
        margin-left: auto;
    }

    .lp-hero {
        padding: 48px 0 72px;
    }

    .lp-hero__grid,
    .lp-features {
        grid-template-columns: minmax(0, 1fr);
        gap: 44px;
    }

    .lp-steps {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .lp-steps li {
        padding: 0 0 0 64px;
    }

    .lp-steps li::after {
        top: 52px;
        bottom: -26px;
        left: 21px;
        right: auto;
        width: 2px;
        height: auto;
        background: repeating-linear-gradient(180deg, var(--lp-orange) 0 8px, transparent 8px 14px);
    }

    .lp-cta__inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 600px) {
    body.lp {
        font-size: 17px;
    }

    .lp-brand__name small {
        display: none;
    }

    .lp-lead {
        font-size: 18px;
    }

    .lp-route {
        padding: 22px 20px;
    }

    .lp-route__toast {
        margin-inline: -6px;
    }

    .lp-features__list {
        grid-template-columns: minmax(0, 1fr);
    }

    .lp-features__list div:nth-child(2) {
        border-top-color: var(--lp-line);
    }

    .lp-section {
        padding: 72px 0;
    }

    .lp-actions .lp-button {
        flex: 1 1 100%;
    }
}

@media (max-width: 440px) {
    .lp-header .lp-label-full {
        display: none;
    }

    .lp-header .lp-label-short {
        display: inline;
    }

    .lp .lp-button--ghost {
        padding: 0 18px;
    }
}
