/* ==========================================================================
   MinioPrime — folha de estilos principal
   Mobile-first · sem dependências · sem estilos inline (CSP)
   ========================================================================== */

:root {
    --navy: #0f2044;
    --navy-2: #172c58;
    --blue: #2563eb;
    --blue-dark: #1d4ed8;
    --sky: #3b9df8;
    --tint: #e8f1fd;

    --ink: #0f1b33;
    --text: #38445a;
    --muted: #5b6578;
    --line: #e3e8f0;
    --bg-alt: #f5f7fb;
    --white: #fff;

    --ok-bg: #e3f6ee;
    --ok: #0b6b48;
    --wait-bg: #fff3da;
    --wait: #8a5200;
    --late-bg: #fde8e8;
    --late: #9b1c1c;

    --radius: 12px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 2px rgba(15, 32, 68, .06);
    --shadow-md: 0 12px 32px -16px rgba(15, 32, 68, .25);

    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --container: 1160px;
    --header-h: 68px;
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img,
svg {
    max-width: 100%;
}

img {
    height: auto;
    display: block;
}

h1,
h2,
h3,
h4 {
    margin: 0 0 .5em;
    color: var(--ink);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.015em;
}

h1 {
    font-size: clamp(2rem, 1.2rem + 3.4vw, 3.1rem);
    line-height: 1.1;
    letter-spacing: -.025em;
}

h2 {
    font-size: clamp(1.55rem, 1.1rem + 1.8vw, 2.2rem);
}

h3 {
    font-size: 1.125rem;
    letter-spacing: -.01em;
}

p {
    margin: 0 0 1em;
}

ul,
ol {
    margin: 0;
    padding: 0;
}

a {
    color: var(--blue-dark);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

:focus-visible {
    outline: 3px solid var(--sky);
    outline-offset: 2px;
    border-radius: 4px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -48px;
    z-index: 200;
    background: var(--navy);
    color: #fff;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
}

.skip-link:focus {
    top: 12px;
    text-decoration: none;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

.container--narrow {
    max-width: 820px;
}

.center {
    text-align: center;
}

.icon {
    width: 1.25em;
    height: 1.25em;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---------- Botões ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55em;
    padding: .72em 1.25em;
    border: 1.5px solid transparent;
    border-radius: var(--radius-sm);
    font: inherit;
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    text-decoration: none !important;
    transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s;
}

.btn .icon {
    width: 1.1em;
    height: 1.1em;
}

.btn--lg {
    padding: .9em 1.5em;
    font-size: 1rem;
}

.btn--sm {
    padding: .55em 1em;
    font-size: .9rem;
}

.btn--block {
    width: 100%;
}

.btn--primary {
    background: var(--blue);
    color: #fff;
}

.btn--primary:hover {
    background: var(--blue-dark);
}

.btn--secondary {
    background: #fff;
    color: var(--navy);
    border-color: #c9d3e3;
}

.btn--secondary:hover {
    border-color: var(--navy);
}

.btn--light {
    background: #fff;
    color: var(--navy);
}

.btn--light:hover {
    background: var(--tint);
}

.btn--outline-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, .45);
}

.btn--outline-light:hover {
    background: rgba(255, 255, 255, .1);
    border-color: #fff;
}

.btn--disabled {
    background: var(--bg-alt);
    color: var(--muted);
    border-color: var(--line);
    cursor: not-allowed;
}

.link {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: .4em;
    font-weight: 600;
    margin-top: .25rem;
}

.link-arrow .icon {
    width: 1.05em;
    height: 1.05em;
    transition: transform .15s;
}

.link-arrow:hover {
    text-decoration: none;
}

.link-arrow:hover .icon {
    transform: translateX(3px);
}

/* ---------- Barra superior (contactos + idioma) ---------- */
.topbar {
    position: relative;
    z-index: 110;
    background: var(--navy);
    color: rgba(255, 255, 255, .86);
    font-size: .82rem;
}

.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
}

.topbar__right {
    display: flex;
    align-items: center;
    gap: 4px;
}

.topbar__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 6px 8px;
    color: inherit;
    line-height: 1.2;
}

.topbar__item .icon {
    width: 1.15em;
    height: 1.15em;
    color: var(--sky);
}

a.topbar__item:hover {
    color: #fff;
    text-decoration: none;
}

.topbar__address {
    min-width: 0;
    padding-left: 0;
    font-weight: 500;
}

.topbar__address span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar__right {
    flex-shrink: 0;
}

.lang {
    position: relative;
    margin-left: 8px;
}

.lang__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    list-style: none;
    cursor: pointer;
    color: #fff;
    font-size: .8rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
}

.lang__btn::-webkit-details-marker {
    display: none;
}

.lang__btn:hover {
    background: rgba(255, 255, 255, .13);
}

.lang__btn .icon {
    width: 1.15em;
    height: 1.15em;
    color: var(--sky);
}

.lang__btn .lang__chev {
    width: .95em;
    height: .95em;
    color: rgba(255, 255, 255, .7);
    transition: transform .15s;
}

.lang[open] .lang__chev {
    transform: rotate(180deg);
}

.lang__menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 150;
    min-width: 180px;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow-md);
}

.lang__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 12px;
    border-radius: 8px;
    color: var(--ink);
    font-size: .9rem;
    font-weight: 500;
}

.lang__item.is-current {
    background: var(--tint);
    color: var(--blue-dark);
    font-weight: 600;
}

.lang__item .icon {
    width: 1.1em;
    height: 1.1em;
    color: var(--blue);
    stroke-width: 2.25;
}

@media (max-width: 1099px) {
    .topbar__text {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    a.topbar__item {
        padding: 10px;
    }

    .topbar__item .icon {
        width: 1.3em;
        height: 1.3em;
    }
}

@media (max-width: 719px) {
    .topbar {
        font-size: .76rem;
    }

    .topbar__inner {
        padding-block: 4px;
    }

    .topbar__address {
        align-items: flex-start;
    }

    .topbar__address .icon {
        margin-top: 2px;
        flex-shrink: 0;
    }

    .topbar__address span {
        white-space: normal;
        overflow: visible;
        line-height: 1.3;
    }
}

/* ---------- Cabeçalho ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: saturate(1.4) blur(8px);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
}

.brand {
    display: inline-flex;
    align-items: center;
}

.brand img {
    height: 36px;
    width: auto;
}

.nav-check {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    color: var(--navy);
    cursor: pointer;
}

.nav-toggle .icon {
    width: 26px;
    height: 26px;
}

.nav-toggle__close {
    display: none;
}

.nav-check:checked+.nav-toggle .nav-toggle__open {
    display: none;
}

.nav-check:checked+.nav-toggle .nav-toggle__close {
    display: inline-block;
}

.nav-check:focus-visible+.nav-toggle {
    outline: 3px solid var(--sky);
    outline-offset: 2px;
}

.site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    gap: 8px;
    padding: 12px 20px 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 24px -16px rgba(15, 32, 68, .25);
}

.nav-check:checked~.site-nav {
    display: flex;
}

.nav__list {
    list-style: none;
    display: flex;
    flex-direction: column;
}

.nav__link {
    display: block;
    padding: 12px 4px;
    color: var(--ink);
    font-weight: 500;
    border-bottom: 1px solid var(--line);
}

.nav__link:hover {
    color: var(--blue-dark);
    text-decoration: none;
}

.nav__link.is-active {
    color: var(--blue-dark);
    font-weight: 600;
}

.nav__cta {
    margin-top: 8px;
}

@media (min-width: 1040px) {

    .nav-toggle,
    .nav-check {
        display: none;
    }

    .site-nav {
        display: flex;
        position: static;
        flex-direction: row;
        align-items: center;
        gap: 28px;
        padding: 0;
        background: transparent;
        border: 0;
        box-shadow: none;
    }

    .nav__list {
        flex-direction: row;
        gap: 4px;
    }

    .nav__link {
        padding: 8px 12px;
        border: 0;
        border-radius: var(--radius-sm);
        font-size: .93rem;
        color: var(--text);
    }

    .nav__link:hover {
        background: var(--bg-alt);
    }

    .nav__link.is-active {
        background: var(--tint);
    }

    .nav__cta {
        margin: 0;
    }
}

/* ---------- Secções ---------- */
.section {
    padding: clamp(56px, 7vw, 96px) 0;
}

.section--tight {
    padding: clamp(40px, 5vw, 64px) 0;
}

.section--alt {
    background: var(--bg-alt);
}

.section--dark {
    background: var(--navy);
    color: rgba(255, 255, 255, .78);
}

.section--dark h2,
.section--dark h3 {
    color: #fff;
}

.section__head {
    max-width: 680px;
    margin-bottom: clamp(28px, 4vw, 48px);
}

.section__head p {
    color: var(--muted);
    font-size: 1.05rem;
    margin-bottom: 0;
}

.section__head--center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.kicker {
    margin: 0 0 .6rem;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--blue);
}

.kicker--light {
    color: var(--sky);
}

.eyebrow {
    display: inline-block;
    margin: 0 0 1rem;
    padding: 5px 12px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--blue-dark);
    background: var(--tint);
    border-radius: 999px;
}

.eyebrow--light {
    color: #cfe3ff;
    background: rgba(59, 157, 248, .18);
}

.lead {
    font-size: clamp(1.05rem, 1rem + .4vw, 1.2rem);
    color: var(--muted);
    max-width: 60ch;
}

/* ---------- Hero ---------- */
.hero {
    padding: clamp(40px, 6vw, 88px) 0 clamp(48px, 6vw, 88px);
    background: linear-gradient(180deg, #f3f7ff 0%, #fff 100%);
    border-bottom: 1px solid var(--line);
}

.hero__grid {
    display: grid;
    gap: 40px;
    align-items: center;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 28px 0 0;
}

.hero__actions--center {
    justify-content: center;
}

.hero__points {
    list-style: none;
    display: grid;
    gap: 10px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    font-size: .95rem;
    color: var(--text);
}

.hero__points li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero__points .icon {
    color: var(--blue);
}

.hero__visual,
.hero__copy,
.contact__form,
.contact__info {
    min-width: 0;
}

@media (min-width: 960px) {
    .hero__grid {
        grid-template-columns: 1.05fr .95fr;
        gap: 56px;
    }

    .hero__points {
        display: flex;
        flex-wrap: wrap;
        gap: 12px 28px;
    }
}

.hero--navy {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
    border: 0;
}

.hero--navy h1 {
    color: #fff;
}

.hero--navy .lead {
    color: rgba(255, 255, 255, .78);
}

.hero--navy .hero__points {
    border-top-color: rgba(255, 255, 255, .18);
    color: rgba(255, 255, 255, .88);
}

.hero--navy .hero__points .icon {
    color: var(--sky);
}

/* Hero com imagem de fundo (assets/img/hero/…) */
.hero--image {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__bg--placeholder {
    background: repeating-linear-gradient(45deg, #1b3569 0 20px, #16305f 20px 40px);
}

.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(15, 32, 68, .94) 0%, rgba(15, 32, 68, .82) 50%, rgba(15, 32, 68, .62) 100%);
}

.hero__overlay--soft {
    background: rgba(15, 32, 68, .25);
}

.hero--placeholder {
    padding-bottom: calc(clamp(48px, 6vw, 88px) + 76px);
}

.hero__placeholder-label {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 16px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    font-size: .82rem;
    line-height: 1.45;
    color: #fff;
    background: rgba(15, 32, 68, .78);
    border: 1.5px dashed rgba(255, 255, 255, .6);
    border-radius: 10px;
}

.hero__placeholder-label .icon {
    width: 1.6em;
    height: 1.6em;
    color: var(--sky);
}

.hero__placeholder-label code {
    padding: 2px 7px;
    font-size: .95em;
    color: #fff;
    background: rgba(255, 255, 255, .16);
    border-radius: 4px;
    word-break: break-all;
}

@media (min-width: 1000px) {
    .hero__placeholder-label {
        left: max(20px, calc((100% - var(--container)) / 2 + 20px));
        right: max(20px, calc((100% - var(--container)) / 2 + 20px));
    }
}

.pill-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
}

.pill-list li {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 600;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .28);
    background: rgba(255, 255, 255, .06);
}

.page-hero {
    padding: clamp(40px, 5vw, 72px) 0 clamp(28px, 4vw, 48px);
    background: linear-gradient(180deg, #f3f7ff 0%, #fff 100%);
    border-bottom: 1px solid var(--line);
}

.page-hero h1 {
    font-size: clamp(1.9rem, 1.2rem + 2.6vw, 2.8rem);
    max-width: 22ch;
}

.page-hero .lead {
    margin-bottom: 0;
}

.page-hero .meta {
    margin: 1rem 0 0;
    font-size: .9rem;
    color: var(--muted);
}

.page-hero--navy {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
    border: 0;
}

.page-hero--navy h1 {
    color: #fff;
    max-width: 26ch;
}

.page-hero--navy .lead {
    color: rgba(255, 255, 255, .78);
}

.page-hero--center {
    text-align: center;
}

.page-hero--center h1,
.page-hero--center .lead {
    margin-left: auto;
    margin-right: auto;
}

/* ---------- Ilustrações de produto (HTML/CSS) ---------- */
.mock {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.mock__bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--line);
}

.mock__dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #cdd5e3;
}

.mock__title {
    margin-left: 8px;
    font-size: .78rem;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mock__body {
    padding: 10px 14px 14px;
    overflow-x: auto;
}

.mock__table {
    width: 100%;
    border-collapse: collapse;
    font-size: .82rem;
    color: var(--text);
}

.mock__table th {
    padding: 8px 6px;
    text-align: left;
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
}

.mock__table td {
    padding: 11px 6px;
    border-bottom: 1px solid #eef1f6;
    white-space: nowrap;
}

.mock__table tr:last-child td {
    border-bottom: 0;
}

.mock__table .num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.mock__note,
.mock__caption {
    margin: 10px 0 0;
    font-size: .75rem;
    color: var(--muted);
}

.mock__caption {
    text-align: right;
}

.mock__caption--light {
    color: rgba(255, 255, 255, .6);
}

.chip {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 600;
}

.chip--ok {
    background: var(--ok-bg);
    color: var(--ok);
}

.chip--wait {
    background: var(--wait-bg);
    color: var(--wait);
}

.chip--late {
    background: var(--late-bg);
    color: var(--late);
}

.chip--info {
    background: var(--tint);
    color: var(--blue-dark);
}

@media (max-width: 520px) {

    .mock__table th:nth-child(2),
    .mock__table td:nth-child(2) {
        display: none;
    }
}

/* ---------- Grelhas e cartões ---------- */
.grid {
    display: grid;
    gap: 20px;
}

@media (min-width: 640px) {
    .grid--2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid--3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 960px) {
    .grid--3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid--4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

.card {
    padding: 24px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.card h3 {
    margin-bottom: .4em;
}

.card p {
    margin: 0;
    color: var(--muted);
    font-size: .95rem;
}

.card .checklist {
    margin: 16px 0;
}

.card .link-arrow {
    margin-top: 8px;
}

.card--lg {
    padding: 32px;
}

.card--lg p {
    margin-bottom: 0;
}

.card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 16px;
    color: var(--blue-dark);
    background: var(--tint);
    border-radius: 10px;
}

.card__icon .icon {
    width: 22px;
    height: 22px;
}

/* ---------- Duas colunas ---------- */
.split {
    display: grid;
    gap: 36px;
    align-items: center;
}

.split__text p {
    color: var(--muted);
}

.section--dark .split__text p {
    color: rgba(255, 255, 255, .78);
}

.split__text .btn {
    margin-top: 8px;
}

.split__visual {
    min-width: 0;
}

@media (min-width: 900px) {
    .split {
        grid-template-columns: 1fr 1fr;
        gap: 64px;
    }
}

/* ---------- Listas ---------- */
.checklist {
    list-style: none;
    display: grid;
    gap: 12px;
}

.checklist li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text);
    font-size: .97rem;
}

.checklist .icon {
    width: 1.15em;
    height: 1.15em;
    margin-top: .25em;
    color: var(--blue);
    stroke-width: 2.25;
}

.checklist--panel {
    padding: 28px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.section--alt .checklist--panel {
    background: #fff;
}

.feature-stack {
    list-style: none;
    display: grid;
    gap: 12px;
}

.feature-stack li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .05);
    color: #fff;
}

.feature-stack .icon {
    width: 24px;
    height: 24px;
    margin-top: 2px;
    color: var(--sky);
}

.feature-stack strong {
    display: block;
    color: #fff;
    font-size: 1rem;
}

.feature-stack span {
    display: block;
    font-size: .9rem;
    color: rgba(255, 255, 255, .68);
}

.feature-stack--light li {
    background: #fff;
    border-color: var(--line);
    box-shadow: var(--shadow-sm);
}

.feature-stack--light .icon {
    color: var(--blue);
}

.feature-stack--light strong {
    color: var(--ink);
}

.feature-stack--light span {
    color: var(--muted);
}

/* ---------- Passos ---------- */
.steps {
    list-style: none;
    display: grid;
    gap: 20px;
    counter-reset: step;
}

.steps__item {
    position: relative;
}

.steps__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-bottom: 12px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    font-weight: 700;
    font-size: .95rem;
}

.steps__item h3 {
    margin-bottom: .3em;
}

.steps__item p {
    margin: 0;
    color: var(--muted);
    font-size: .95rem;
}

@media (min-width: 640px) {
    .steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1000px) {
    .steps:not(.steps--list) {
        grid-template-columns: repeat(5, 1fr);
        gap: 24px;
    }
}

.steps--list {
    grid-template-columns: 1fr !important;
    gap: 0;
}

.steps--list .steps__item {
    display: flex;
    gap: 18px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}

.steps--list .steps__item:last-child {
    border-bottom: 0;
}

.steps--list .steps__num {
    flex: none;
    margin: 0;
}

/* ---------- Planos ---------- */
.plans {
    display: grid;
    gap: 20px;
}

@media (min-width: 900px) {
    .plans {
        grid-template-columns: repeat(3, 1fr);
    }
}

.plan {
    display: flex;
    flex-direction: column;
    padding: 28px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.plan__name {
    margin-bottom: .25em;
}

.plan__tagline {
    min-height: 3.2em;
    margin-bottom: 1em;
    color: var(--muted);
    font-size: .93rem;
}

.plan__price {
    margin: 0;
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.plan__amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -.02em;
}

.plan__per {
    color: var(--muted);
    font-size: .95rem;
}

.plan__yearly {
    margin: 4px 0 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: .9rem;
}

.plan__save {
    color: var(--ok);
    font-weight: 600;
}

.plans__more {
    margin: 28px 0 0;
}

.table-wrap {
    position: relative;
    overflow-x: auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.compare {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    font-size: .95rem;
}

.compare th,
.compare td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--line);
}

.compare thead th {
    background: var(--bg-alt);
    color: var(--ink);
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.compare tbody th {
    font-weight: 500;
    color: var(--text);
}

.compare td {
    color: var(--ink);
    font-weight: 500;
}

.compare thead th:not(:first-child),
.compare td {
    text-align: center;
}

.compare tr:last-child th,
.compare tr:last-child td {
    border-bottom: 0;
}

.compare__price th,
.compare__price td {
    background: #fbfcfe;
    font-weight: 700;
}

.icon--ok {
    color: var(--ok);
    stroke-width: 2.5;
}

.icon--off {
    color: #aab3c5;
}

/* ---------- Download ---------- */
.os-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.os-card__head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.os-card__head .card__icon {
    margin: 0;
}

.os-card__head h3 {
    margin: 0;
}

.os-card__req {
    margin: 0;
    color: var(--muted);
    font-size: .9rem;
}

.os-card__meta {
    margin: 0;
    display: grid;
    gap: 0;
    border-top: 1px solid var(--line);
}

.os-card__meta div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    font-size: .93rem;
}

.os-card__meta dt {
    color: var(--muted);
}

.os-card__meta dd {
    margin: 0;
    color: var(--ink);
    font-weight: 600;
    text-align: right;
}

.os-card__file,
.os-card__hash {
    margin: 0;
    font-size: .82rem;
    color: var(--muted);
    word-break: break-all;
}

.os-card__hash code {
    font-size: .78rem;
}

.os-card--soon {
    background: var(--bg-alt);
}

.note {
    margin: 28px 0 0;
    padding: 16px 20px;
    background: var(--tint);
    border-radius: var(--radius-sm);
    color: var(--navy);
    font-size: .95rem;
}

/* ---------- FAQ ---------- */
.faq__group {
    margin-bottom: 36px;
}

.faq__title {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.faq__item {
    border-bottom: 1px solid var(--line);
}

.faq__item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 4px;
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    color: var(--ink);
}

.faq__item summary::-webkit-details-marker {
    display: none;
}

.faq__item summary:hover {
    color: var(--blue-dark);
}

.faq__chevron {
    transform: rotate(90deg);
    color: var(--muted);
    transition: transform .15s;
}

.faq__item[open] .faq__chevron {
    transform: rotate(-90deg);
}

.faq__body {
    padding: 0 4px 18px;
}

.faq__body p {
    margin: 0;
    color: var(--muted);
}

.faq__more {
    margin-top: 24px;
}

/* ---------- Faixa final ---------- */
.cta {
    background: linear-gradient(135deg, var(--blue) 0%, #1a3fa6 100%);
    color: #fff;
    padding: clamp(44px, 6vw, 72px) 0;
}

.cta__inner {
    display: grid;
    gap: 24px;
    align-items: center;
}

.cta h2 {
    color: #fff;
    margin-bottom: .3em;
}

.cta p {
    margin: 0;
    color: rgba(255, 255, 255, .85);
    max-width: 56ch;
}

@media (min-width: 800px) {
    .cta__inner {
        grid-template-columns: 1fr auto;
        gap: 48px;
    }
}

/* ---------- Contacto / formulários ---------- */
.contact {
    display: grid;
    gap: 32px;
    align-items: start;
}

@media (min-width: 900px) {
    .contact {
        grid-template-columns: 1.6fr 1fr;
        gap: 48px;
    }
}

.form {
    display: grid;
    gap: 18px;
}

.form__row {
    display: grid;
    gap: 18px;
}

@media (min-width: 640px) {
    .form__row {
        grid-template-columns: 1fr 1fr;
    }
}

.field label,
.field .check {
    font-size: .93rem;
    font-weight: 600;
    color: var(--ink);
}

.field label {
    display: block;
    margin-bottom: 6px;
}

.req {
    color: #c0392b;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
    width: 100%;
    padding: 12px 14px;
    font: inherit;
    font-size: 1rem;
    color: var(--ink);
    background: #fff;
    border: 1.5px solid #c9d3e3;
    border-radius: var(--radius-sm);
    transition: border-color .15s, box-shadow .15s;
}

.field textarea {
    resize: vertical;
    min-height: 140px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .18);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
    border-color: #c0392b;
}

.field__error {
    margin: 6px 0 0;
    min-height: 0;
    font-size: .85rem;
    color: #b42318;
}

.field__error:empty {
    display: none;
}

.check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 400 !important;
}

.check input {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: var(--blue);
    flex: none;
}

.form__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.form__status {
    margin: 0;
    font-size: .95rem;
    font-weight: 600;
}

.form__status.is-ok {
    color: var(--ok);
}

.form__status.is-error {
    color: #b42318;
}

/* ---------- Ecrã de envio do formulário (loader a ecrã inteiro) ---------- */
.sending {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 32, 68, .86);
}

.sending[hidden] {
    display: none;
}

html.is-sending {
    overflow: hidden;
}

.sending__box {
    width: 100%;
    max-width: 420px;
    padding: 36px 28px 30px;
    text-align: center;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .5);
    outline: none;
}

.sending__icon {
    position: relative;
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
}

.sending__spinner {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 5px solid var(--tint);
    border-top-color: var(--blue);
    animation: sending-spin .9s linear infinite;
}

.sending__symbol {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.sending__symbol .icon {
    width: 32px;
    height: 32px;
    stroke-width: 2.5;
}

.sending__symbol--ok {
    background: var(--ok-bg);
    color: var(--ok);
}

.sending__symbol--info {
    background: var(--tint);
    color: var(--blue-dark);
}

.sending__symbol--error {
    background: var(--late-bg);
    color: var(--late);
}

.sending[data-state="ok"] .sending__symbol--ok,
.sending[data-state="info"] .sending__symbol--info,
.sending[data-state="error"] .sending__symbol--error {
    display: flex;
}

.sending:not([data-state="loading"]) .sending__spinner {
    display: none;
}

.sending__title {
    margin: 0 0 8px;
    font-size: 1.3rem;
    line-height: 1.3;
    color: var(--ink);
}

.sending__text {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.sending__close {
    display: none;
    margin-top: 24px;
    min-width: 140px;
}

.sending:not([data-state="loading"]) .sending__close {
    display: inline-flex;
}

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

@media (prefers-reduced-motion: reduce) {
    .sending__spinner {
        animation-duration: 2.4s;
    }
}

.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.alert {
    margin-bottom: 20px;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-weight: 500;
}

.alert--ok {
    background: var(--ok-bg);
    color: var(--ok);
}

.alert--error {
    background: var(--late-bg);
    color: var(--late);
}

.info-card {
    margin-bottom: 16px;
    padding: 24px;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.info-card h2 {
    font-size: 1.1rem;
    margin-bottom: 14px;
}

.info-card p {
    margin: 0;
    color: var(--muted);
    font-size: .95rem;
}

.info-list {
    list-style: none;
    display: grid;
    gap: 16px;
}

.info-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.info-list .icon {
    margin-top: 3px;
    color: var(--blue);
}

.info-list span {
    display: block;
    font-size: .8rem;
    color: var(--muted);
}

.info-list a {
    font-weight: 600;
    word-break: break-word;
}

.info-note {
    margin: 0;
    font-size: .85rem;
    color: var(--muted);
}

/* ---------- Páginas legais ---------- */
.legal {
    display: grid;
    gap: 32px;
}

@media (min-width: 960px) {
    .legal {
        grid-template-columns: 280px 1fr;
        gap: 56px;
        align-items: start;
    }

    .legal__toc {
        position: sticky;
        top: calc(var(--header-h) + 24px);
    }
}

.legal__toc {
    padding: 20px 22px;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.legal__toc h2 {
    font-size: 1rem;
    margin-bottom: 10px;
}

.legal__toc ol {
    padding-left: 1.2em;
    display: grid;
    gap: 6px;
    font-size: .92rem;
}

.legal__toc a {
    color: var(--text);
}

.legal__toc a:hover {
    color: var(--blue-dark);
}

.prose {
    max-width: 74ch;
}

.prose h2 {
    margin-top: 2em;
    font-size: 1.4rem;
}

.prose h2:first-child {
    margin-top: 0;
}

.prose h3 {
    margin-top: 1.4em;
    font-size: 1.05rem;
}

.prose ul {
    padding-left: 1.3em;
    margin: 0 0 1em;
}

.prose li {
    margin-bottom: .5em;
}

.prose a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---------- Rodapé ---------- */
.site-footer {
    background: var(--navy);
    color: rgba(255, 255, 255, .72);
    padding: 56px 0 0;
    font-size: .93rem;
}

.footer__grid {
    display: grid;
    gap: 32px;
    padding-bottom: 40px;
}

@media (min-width: 640px) {
    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 960px) {
    .footer__grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr 1.4fr;
        gap: 40px;
    }
}

.footer__brand img {
    height: 40px;
    width: auto;
    margin-bottom: 14px;
}

.footer__brand p {
    max-width: 32ch;
    margin-bottom: .6em;
}

.footer__company {
    color: rgba(255, 255, 255, .55);
    font-size: .85rem;
}

.footer__title {
    margin-bottom: 14px;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: #fff;
}

.footer__col ul {
    list-style: none;
    display: grid;
    gap: 10px;
}

.site-footer a {
    color: rgba(255, 255, 255, .78);
}

.site-footer a:hover {
    color: #fff;
    text-decoration: none;
}

.footer__contact li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer__contact .icon {
    width: 1.1em;
    height: 1.1em;
    color: var(--sky);
}

.footer__bottom {
    padding: 20px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    font-size: .85rem;
    color: rgba(255, 255, 255, .55);
}

.footer__bottom p {
    margin: 0;
}

/* ---------- Preferências do utilizador e impressão ---------- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
    }
}

@media print {

    .site-header,
    .site-footer,
    .cta,
    .legal__toc,
    .skip-link {
        display: none !important;
    }

    body {
        color: #000;
    }

    .page-hero {
        background: none;
        border: 0;
    }
}