/* ==========================================================================
   marketing.css — public (logged-out) site layer
   --------------------------------------------------------------------------
   Loaded only by base_public.html, after base.css and ui.css.

   Scope: the marketing site — landing page, feature pages, integrations, FAQ.
   Nothing here may be used by the app shell (base.html), and nothing here
   declares a token: base.css owns :root. The public pages need a larger type
   scale than the app (the app is dense on purpose, a landing page is not), so
   the display sizes below are local and prefixed `.m-`.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */

.m-section {
    padding: 96px 0;
}
.m-section--tight  { padding: 64px 0; }
.m-section--subtle { background-color: var(--surface-subtle); }
.m-section--dark {
    background-color: var(--brand-black);
    color: #FFFFFF;
}
.m-section--dark .m-section-title { color: #FFFFFF; }
.m-section--dark .m-section-lead  { color: rgba(255, 255, 255, 0.72); }

/* A hairline between two same-colored sections, so they do not merge. */
.m-section--divided { border-top: 1px solid var(--border-strong); }

.m-narrow { max-width: 760px; margin-left: auto; margin-right: auto; }

/* --------------------------------------------------------------------------
   Type scale — public pages only
   -------------------------------------------------------------------------- */

.m-display {
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.08;
    letter-spacing: -0.02em;
    font-weight: 800;
    color: var(--brand-black);
    margin: 0 0 var(--space-5) 0;
}
.m-section-title {
    font-size: clamp(26px, 3.4vw, 38px);
    line-height: 1.15;
    letter-spacing: -0.015em;
    font-weight: 800;
    color: var(--brand-black);
    margin: 0 0 var(--space-3) 0;
}
.m-section-lead {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0 auto var(--space-6) auto;
    max-width: 640px;
}
.m-section-head { text-align: center; margin-bottom: 56px; }
.m-section-head .m-section-lead { margin-bottom: 0; }

/* The orange word inside a headline. Uses the ink shade — the raw brand
   orange is 2.03:1 on white and unreadable as text. */
.m-accent { color: var(--brand-orange-ink); }

.m-eyebrow {
    display: inline-block;
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand-orange-ink);
    margin-bottom: var(--space-3);
}
.m-section--dark .m-eyebrow { color: var(--brand-orange); }

/* --------------------------------------------------------------------------
   Buttons — the public site reuses .button from base.css, but its CTAs are
   larger than any control in the app.
   -------------------------------------------------------------------------- */

.m-cta {
    height: auto;
    padding: 16px 30px;
    font-size: 17px;
    font-weight: 700;
    border-radius: var(--radius);
}
.m-cta-row {
    display: flex;
    gap: var(--space-4);
    align-items: center;
    flex-wrap: wrap;
}
.m-cta-row--center { justify-content: center; }

/* The line under a CTA that removes the last objection. */
.m-cta-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font-size: var(--text-base);
    color: var(--text-secondary);
    margin-top: var(--space-4);
}
.m-cta-note svg { flex: 0 0 auto; color: var(--success-base); }
.m-section--dark .m-cta-note { color: rgba(255, 255, 255, 0.72); }

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

.m-hero { padding: 88px 0 72px 0; }
.m-hero-grid > *,
.m-split > * { min-width: 0; }

.m-hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 64px;
    align-items: center;
}
.m-hero-lead {
    font-size: 19px;
    line-height: 1.62;
    color: var(--text-secondary);
    margin: 0 0 var(--space-6) 0;
    max-width: 540px;
}
.m-hero .m-cta-note { justify-content: flex-start; }

/* Small trust badge above the headline. */
.m-pill {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 6px 14px 6px 8px;
    border-radius: var(--radius-pill);
    background-color: var(--brand-orange-tint);
    color: var(--brand-orange-ink);
    font-size: var(--text-base);
    font-weight: 600;
    margin-bottom: var(--space-5);
}
.m-pill-tag {
    background-color: var(--brand-orange);
    color: var(--brand-black);
    border-radius: var(--radius-pill);
    padding: 2px 10px;
    font-size: var(--text-xs);
    font-weight: 800;
    letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   Mock UI — stand-ins for product screenshots, drawn with tokens.
   Every number inside one is illustrative, never a claim.
   -------------------------------------------------------------------------- */

.m-mock {
    max-width: 100%;
    background-color: var(--container-bg);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}
.m-mock-bar {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: 10px var(--space-4);
    background-color: var(--gray-50);
    border-bottom: 1px solid var(--border-strong);
}
.m-mock-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background-color: var(--gray-300);
}
.m-mock-title {
    margin-left: var(--space-2);
    min-width: 0;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.m-mock-body { padding: var(--space-5); }

/* A line of the P&L breakdown: label on the left, value on the right. */
.m-ledger { display: flex; flex-direction: column; gap: 2px; }
.m-ledger-row {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding: 9px 0;
    font-size: var(--text-base);
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}
.m-ledger-row:last-child { border-bottom: 0; }
.m-ledger-row > span { min-width: 0; }
.m-ledger-row b { flex: 0 0 auto; font-weight: 600; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.m-ledger-row--neg b { color: var(--danger-ink); }
.m-ledger-row--total {
    margin-top: var(--space-3);
    padding-top: var(--space-4);
    border-top: 2px solid var(--gray-200);
    border-bottom: 0;
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--text-primary);
}
.m-ledger-row--total b { font-size: 22px; color: var(--success-ink); }

/* KPI tiles inside a mock. */
.m-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(120px, 100%), 1fr));
    gap: var(--space-3);
}
.m-tile {
    background-color: var(--gray-50);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    padding: var(--space-4);
}
.m-tile-label {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.m-tile-value {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}
.m-tile-value--good { color: var(--success-ink); }
.m-tile-value--bad  { color: var(--danger-ink); }

/* Horizontal progress bar (goals, ABC share). */
.m-bar {
    height: 8px;
    border-radius: var(--radius-pill);
    background-color: var(--gray-200);
    overflow: hidden;
}
.m-bar-fill {
    display: block;
    height: 100%;
    border-radius: var(--radius-pill);
    background-color: var(--brand-orange);
}
.m-bar-fill--good { background-color: var(--success-base); }

.m-mock-list { display: flex; flex-direction: column; gap: var(--space-3); }
.m-mock-item {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
}
.m-mock-thumb {
    width: 38px; height: 38px;
    flex: 0 0 auto;
    border-radius: var(--radius-sm);
    background-color: var(--gray-100);
}
.m-mock-item-body { flex: 1 1 auto; min-width: 0; }
.m-mock-item-title {
    display: block;
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-primary);
    overflow-wrap: anywhere;
}
.m-mock-item-meta { display: block; font-size: var(--text-sm); color: var(--text-secondary); }

/* --------------------------------------------------------------------------
   Feature cards
   -------------------------------------------------------------------------- */

.m-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr));
    gap: var(--space-5);
}
.m-grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); }

.m-card {
    background-color: var(--container-bg);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-card);
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
}
.m-card h3 {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--brand-black);
    margin: 0 0 var(--space-2) 0;
}
.m-card p {
    font-size: var(--text-lg);
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}
.m-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    border-radius: var(--radius);
    background-color: var(--brand-orange-tint);
    color: var(--brand-orange-ink);
    margin-bottom: var(--space-4);
}
.m-card-icon svg { width: 22px; height: 22px; }

/* A card that is a link to a feature page. */
.m-card-link {
    position: relative;
    text-decoration: none;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.m-card-link:hover {
    border-color: var(--brand-orange);
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}
.m-card-more {
    margin-top: var(--space-4);
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--brand-orange-ink);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* --------------------------------------------------------------------------
   Alternating feature rows (media + copy)
   -------------------------------------------------------------------------- */

.m-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.m-split + .m-split { margin-top: 96px; }
.m-split--flip .m-split-media { order: -1; }
.m-split h2 {
    font-size: clamp(24px, 2.6vw, 30px);
    line-height: 1.2;
    font-weight: 800;
    color: var(--brand-black);
    margin: 0 0 var(--space-4) 0;
    letter-spacing: -0.01em;
}
.m-split p {
    font-size: var(--text-lg);
    line-height: 1.65;
    color: var(--text-secondary);
    margin: 0 0 var(--space-4) 0;
}

/* Checked bullet list used inside a split. */
.m-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.m-checks li {
    display: flex;
    gap: var(--space-3);
    font-size: var(--text-lg);
    line-height: 1.55;
    color: var(--text-secondary);
}
.m-checks li strong { color: var(--text-primary); font-weight: 700; }
.m-checks svg { flex: 0 0 auto; margin-top: 4px; color: var(--success-base); }

/* --------------------------------------------------------------------------
   Numbered steps
   -------------------------------------------------------------------------- */

.m-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
    gap: var(--space-5);
    counter-reset: m-step;
}
.m-step { position: relative; padding-top: 52px; }
.m-step::before {
    counter-increment: m-step;
    content: counter(m-step);
    position: absolute;
    top: 0; left: 0;
    width: 38px; height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--brand-orange);
    color: var(--brand-black);
    font-weight: 800;
    font-size: var(--text-lg);
}
.m-step h3 {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--brand-black);
    margin: 0 0 var(--space-2) 0;
}
.m-step p { font-size: var(--text-lg); line-height: 1.6; color: var(--text-secondary); margin: 0; }
.m-section--dark .m-step h3 { color: #FFFFFF; }
.m-section--dark .m-step p { color: rgba(255, 255, 255, 0.72); }

/* --------------------------------------------------------------------------
   Integrations
   -------------------------------------------------------------------------- */

.m-logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--space-6);
}
.m-logo-chip {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-5);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-pill);
    background-color: var(--container-bg);
    font-weight: 700;
    color: var(--text-primary);
}
.m-logo-chip img { height: 24px; width: auto; display: block; }

.m-integration {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: var(--space-6);
    align-items: start;
    padding: var(--space-6) 0;
    border-top: 1px solid var(--border-strong);
}
.m-integration:first-of-type { border-top: 0; }
.m-integration-brand { display: flex; flex-direction: column; gap: var(--space-3); }
/* Sem isto o badge estica na largura da coluna — discreto no desktop, uma
   faixa de ponta a ponta no celular. */
.m-integration-brand .badge { align-self: flex-start; }
.m-integration-brand img { height: 36px; width: auto; align-self: flex-start; }
.m-integration h3 {
    font-size: var(--text-xl);
    font-weight: 800;
    color: var(--brand-black);
    margin: 0;
}
.m-integration p { font-size: var(--text-lg); line-height: 1.6; color: var(--text-secondary); margin: 0 0 var(--space-4) 0; }

/* --------------------------------------------------------------------------
   FAQ — native <details>, no JS
   -------------------------------------------------------------------------- */

.m-faq { display: flex; flex-direction: column; gap: var(--space-3); }
.m-faq-item {
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-card);
    background-color: var(--container-bg);
    overflow: hidden;
}
.m-faq-item > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-5);
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
}
.m-faq-item > summary::-webkit-details-marker { display: none; }
.m-faq-item > summary::after {
    content: '';
    flex: 0 0 auto;
    width: 10px; height: 10px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform var(--transition);
}
.m-faq-item[open] > summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.m-faq-item > summary:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.m-faq-answer {
    padding: 0 var(--space-5) var(--space-5) var(--space-5);
    font-size: var(--text-lg);
    line-height: 1.65;
    color: var(--text-secondary);
}
.m-faq-answer p { margin: 0 0 var(--space-3) 0; }
.m-faq-answer p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Closing CTA band
   -------------------------------------------------------------------------- */

.m-cta-band { padding: 88px 0; background-color: var(--brand-black); text-align: center; }
.m-cta-band h2 {
    font-size: clamp(28px, 3.6vw, 40px);
    font-weight: 800;
    letter-spacing: -0.015em;
    color: #FFFFFF;
    margin: 0 0 var(--space-4) 0;
}
.m-cta-band p {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.72);
    margin: 0 auto var(--space-6) auto;
    max-width: 560px;
}
.m-cta-band .m-cta-note { color: rgba(255, 255, 255, 0.72); }

/* --------------------------------------------------------------------------
   Page header for the inner (feature) pages
   -------------------------------------------------------------------------- */

.m-page-head {
    padding: 72px 0 56px 0;
    background-color: var(--surface-subtle);
    border-bottom: 1px solid var(--border-strong);
    text-align: center;
}
.m-page-head .m-display { margin-bottom: var(--space-4); }
.m-page-head .m-section-lead { margin-bottom: 0; }

/* Breadcrumb-ish back link. */
.m-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: var(--space-4);
}
.m-back:hover { color: var(--brand-orange-ink); }

/* --------------------------------------------------------------------------
   Header navigation (public shell)
   -------------------------------------------------------------------------- */

.m-nav-links { display: flex; align-items: center; gap: var(--space-2); }
.m-nav-link {
    padding: 8px 14px;
    border-radius: var(--radius);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    transition: background-color var(--transition), color var(--transition);
}
.m-nav-link:hover { background-color: var(--gray-100); color: var(--text-primary); }
.m-nav-link.active { color: var(--brand-orange-ink); }

/* Dropdown for "Recursos". CSS-only: hover on pointer devices, and the
   summary/details fallback keeps it reachable by keyboard and on touch. */
.m-nav-menu { position: relative; }
.m-nav-menu > summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    list-style: none;
}
.m-nav-menu > summary::-webkit-details-marker { display: none; }
.m-nav-menu > summary:hover { background-color: var(--gray-100); color: var(--text-primary); }
.m-nav-menu > summary:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.m-nav-menu > summary svg { transition: transform var(--transition); }
.m-nav-menu[open] > summary svg { transform: rotate(180deg); }
.m-nav-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 1100;
    min-width: min(320px, calc(100vw - 2 * var(--space-5)));
    padding: var(--space-2);
    background-color: var(--container-bg);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-hover);
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.m-nav-panel a {
    display: block;
    padding: 10px var(--space-3);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: var(--text-base);
}
.m-nav-panel a:hover { background-color: var(--gray-100); }
.m-nav-panel a span {
    display: block;
    font-weight: 500;
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-top: 2px;
}

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

.m-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: var(--space-6);
    padding-bottom: var(--space-6);
    margin-bottom: var(--space-5);
    border-bottom: 1px solid var(--border-strong);
}
.m-footer-col h4 {
    font-size: var(--text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-primary);
    margin: 0 0 var(--space-3) 0;
}
.m-footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.m-footer-col a { color: var(--text-secondary); text-decoration: none; font-size: var(--text-base); }
.m-footer-col a:hover { color: var(--brand-orange-ink); }
.m-footer-brand img { height: 44px; width: auto; margin-bottom: var(--space-3); }
.m-footer-brand p { font-size: var(--text-base); line-height: 1.6; color: var(--text-secondary); margin: 0; }

/* --------------------------------------------------------------------------
   Menu no celular
   --------------------------------------------------------------------------
   Abaixo de 861px a faixa de links do header não cabe ao lado do logo e das
   duas ações. Antes ela simplesmente sumia, e as páginas de recurso só eram
   alcançáveis pelo rodapé — ou seja, invisíveis para quem chega pelo celular,
   que é a maior parte do tráfego. Este bloco é a versão móvel da mesma
   navegação: um <details> nativo, sem JavaScript.
   -------------------------------------------------------------------------- */

.m-nav-mobile { display: none; }

.m-nav-mobile > summary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--control-height);
    height: var(--control-height);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
}
.m-nav-mobile > summary::-webkit-details-marker { display: none; }
.m-nav-mobile > summary:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.m-nav-mobile > summary .m-icon-close,
.m-nav-mobile[open] > summary .m-icon-open { display: none; }
.m-nav-mobile[open] > summary .m-icon-close { display: block; }

/* O painel ancora no `.header`, não no <details>: `.header` é `position:
   sticky`, o que já o torna bloco de contenção para descendentes absolutos.
   Assim `top: 100%` cai exatamente sob a barra sem nenhuma altura chutada, e o
   painel acompanha o header quando a página rola. Por isso `.m-nav-mobile` NÃO
   pode ser `position: relative` — ele roubaria a âncora. */
.m-nav-mobile[open] > summary::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 1040;
    background-color: rgba(0, 0, 0, 0.4);
}

.m-nav-mobile-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 1100;
    max-height: 75vh;
    overflow-y: auto;
    padding: var(--space-4) var(--space-5) var(--space-5);
    background-color: var(--container-bg);
    border-bottom: 1px solid var(--border-strong);
    box-shadow: var(--shadow-hover);
}
.m-nav-mobile-panel h4 {
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin: 0 0 var(--space-2) 0;
}
.m-nav-mobile-panel a:not(.button) {
    display: block;
    padding: 12px var(--space-3);
    margin: 0 calc(-1 * var(--space-3));
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: var(--text-lg);
}
.m-nav-mobile-panel a:not(.button):active { background-color: var(--gray-100); }
.m-nav-mobile-panel a:not(.button) span {
    display: block;
    font-weight: 500;
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-top: 2px;
}
.m-nav-mobile-panel hr {
    border: 0;
    border-top: 1px solid var(--border-strong);
    margin: var(--space-4) 0;
}
/* `.button` não é border-box em base.css, então `width: 100%` somava padding
   e borda por fora e o botão vazava a lateral do painel. */
.m-nav-mobile-panel .button { width: 100%; box-sizing: border-box; }

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

@media (max-width: 960px) {
    .m-hero-grid,
    .m-split { grid-template-columns: 1fr; gap: var(--space-6); }
    .m-split--flip .m-split-media { order: 0; }
    .m-split + .m-split { margin-top: 64px; }
    .m-integration { grid-template-columns: 1fr; gap: var(--space-4); }
    .m-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .m-section { padding: 64px 0; }
    .m-hero { padding: 56px 0 48px 0; }
    .m-section-head { margin-bottom: 40px; }
    .m-hero .m-cta-note,
    .m-cta-row { justify-content: center; }
    .m-hero-copy { text-align: center; }
    .m-hero-lead { margin-left: auto; margin-right: auto; }
    .m-footer-grid { grid-template-columns: 1fr; }
    .m-footer-col ul { gap: 0; }

    /* Alvos de toque: 19–24px de altura é menor que a ponta de um dedo. Não é
       preciosismo — é a diferença entre abrir a página e abrir a de baixo. */
    .footer-links { gap: 0; }
    .footer-links a { display: block; padding: 10px 0; }
    .m-back { padding: 8px 0; }
    .m-card-more { padding: 8px 0; }
    .m-footer-col a {
        display: block;
        padding: 9px 0;
        font-size: var(--text-lg);
    }
    .m-cta-row .m-cta { width: 100%; justify-content: center; }
}

@media (max-width: 860px) {
    /* A faixa horizontal dá lugar ao menu de disclosure; a navegação continua
       existindo, só muda de forma. */
    .m-nav-links { display: none; }
    .m-nav-mobile { display: block; }

    /* O logo encolhe: em 320px ele disputava a linha com as duas ações e o
       header estourava a largura da tela. */
    .navbar-logo img { height: 38px; }
    .navbar-actions a {
        padding: 9px 14px;
        font-size: var(--text-base);
    }
    .navbar-actions .login-link { display: none; }  /* "Entrar" vive no menu */
    .navbar { gap: var(--space-3); }
}
