/* =========================================================
   JM9 — NOVA HOMEPAGE
   ========================================================= */

:root {
    --jm9-gold: #d59a00;
    --jm9-gold-bright: #C68D0B;
    --jm9-gold-dark: #8f6200;
    --jm9-black: #050505;
    --jm9-black-soft: #0a0a0a;
    --jm9-white: #f5f4ef;
    --jm9-muted: #b7b7b3;
    --jm9-border: rgba(213, 154, 0, 0.46);
    --jm9-max: 1380px;
}

html {
    /*
     * O smooth scroll global pode tornar a navegação mais pesada,
     * sobretudo em Safari. Os links internos continuam com smooth
     * scroll através do JS.
     */
    scroll-behavior: auto;
}

body.jm9-main-home {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
    background: var(--jm9-black);
    color: var(--jm9-white);
    font-family: 'Poppins', Arial, sans-serif;
}

body.jm9-main-home * {
    box-sizing: border-box;
}

body.jm9-main-home img {
    max-width: 100%;
    height: auto;
}

body.jm9-main-home a {
    color: inherit;
}

.jm9-home-shell {
    min-height: 100vh;
    background:
        linear-gradient(rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.92)),
        var(--jm9-home-background-image, none),
        #050505;
    background-size: cover;
    background-position: center top;
    /*
     * Evita background-attachment: fixed.
     * Um background fixo força repaints constantes durante o scroll
     * e é especialmente pesado em Safari/macOS e em alguns portáteis.
     */
    background-attachment: scroll;
    /*
     * Evita scroll horizontal causado por elementos decorativos sem
     * cortar dropdowns que ultrapassem verticalmente as secções.
     */
    overflow-x: clip;
}

.jm9-container {
    width: min(calc(100% - 64px), var(--jm9-max));
    margin-inline: auto;
}

.jm9-home-main {
    /*
     * Não podemos cortar o overflow vertical aqui porque o dropdown
     * do distrito precisa de abrir por cima do footer.
     */
    overflow: visible;
}

.jm9-section {
    position: relative;
    padding: 74px 0;
}

.jm9-section-title,
.jm9-section-heading-line h2,
.jm9-newsletter-heading h2 {
    margin: 0;
    color: var(--jm9-gold-bright);
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-weight: 600;
    letter-spacing: 0.055em;
    line-height: 1;
    text-transform: uppercase;
}

.jm9-section-title {
    font-size: clamp(28px, 2.6vw, 46px);
}

.jm9-rich-text {
    color: #d1d0cc;
    font-size: clamp(14px, 1vw, 17px);
    line-height: 1.65;
}

.jm9-rich-text p {
    margin: 0 0 1.25em;
}

.jm9-button {
    display: inline-flex;
    min-height: 54px;
    padding: 0 34px;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    text-decoration: none;
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.13em;
    line-height: 1;
    text-transform: uppercase;
    transition: transform 0.2s ease, filter 0.2s ease, border-color 0.2s ease;
}

.jm9-button:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
}

.jm9-button--gold {
    border-color: #e3a600;
    background: linear-gradient(180deg, #e2a700 0%, #bd7f00 100%);
    color: #060606 !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12);
}

.jm9-text-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--jm9-gold);
    color: #fff;
    text-decoration: none;
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 15px;
    letter-spacing: 0.12em;
    line-height: 1.8;
    text-transform: uppercase;
    font-weight: 600;
}

.jm9-text-link span:last-child {
    color: var(--jm9-gold-bright);
    font-family: Arial, sans-serif;
    font-size: 20px;
}


/* =========================================================
   HEADER
   ========================================================= */

.jm9-home-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(213, 154, 0, 0.16);
    /*
     * O blur em conjunto com scroll/sticky obriga o browser a
     * recalcular continuamente o conteúdo atrás do header.
     * Mantemos o mesmo efeito visual através de um fundo mais opaco.
     */
    background: rgba(0,0,0,0.94);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.jm9-home-header__inner {
    display: grid;
    grid-template-columns: 150px 1fr auto;
    min-height: 90px;
    align-items: center;
    gap: 44px;
}

.jm9-home-brand {
    display: inline-flex;
    width: 118px;
    align-items: center;
}

.jm9-home-brand__image {
    display: block;
    width: 100%;
    max-height: 72px;
    object-fit: contain;
    object-position: left center;
}

.jm9-home-nav {
    display: flex;
    justify-content: center;
    gap: clamp(28px, 4vw, 66px);
}

.jm9-home-nav a {
    position: relative;
    color: #efeee9;
    text-decoration: none;
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 16px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.jm9-home-nav a::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: -8px;
    left: 0;
    height: 1px;
    background: var(--jm9-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.jm9-home-nav a:hover::after {
    transform: scaleX(1);
}

.jm9-home-header__cta {
    min-height: 46px;
    padding-inline: 28px;
    font-size: 14px;
}

.jm9-nav-toggle {
    display: none;
}

/*
 * Compensa a altura do menu sticky quando a navegação
 * é feita através de âncoras internas.
 */
#livro,
#joao-matos,
#conversas,
#novidades,
#pre-venda,
#comprar,
#oferecer {
    scroll-margin-top: 110px;
}


/* =========================================================
   HERO
   ========================================================= */

.jm9-hero-section {
    position: relative;
    min-height: 720px;
    border-bottom: 1px solid var(--jm9-border);
}

.jm9-hero-section__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(430px, 0.92fr);
    min-height: 720px;
    align-items: stretch;
}

.jm9-hero-visual {
    position: relative;
    display: flex;
    min-height: 720px;
    align-items: flex-end;
    justify-content: center;
}

.jm9-hero-visual::after {
    content: '';
    position: absolute;
    z-index: 1;
    right: -18%;
    bottom: 0;
    left: 0;
    height: 30%;
    background: linear-gradient(to top, #050505 4%, transparent 100%);
    pointer-events: none;
}

.jm9-hero-visual__image {
    position: relative;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    /*max-height: 720px;*/
    object-fit: contain;
    object-position: left bottom;
}

.jm9-hero-copy {
    position: relative;
    z-index: 2;
    display: flex;
    padding: 70px 0 62px 26px;
    flex-direction: column;
    justify-content: center;
}

.jm9-hero-signature {
    min-height: 58px;
    margin-bottom: 16px;
}

.jm9-hero-signature__image {
    width: auto;
    max-width: 150px;
    max-height: 70px;
    object-fit: contain;
}

.jm9-eyebrow {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #ecebe6;
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 15px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 600;
}

.jm9-eyebrow__line {
    width: 54px;
    height: 2px;
    background: var(--jm9-gold);
}

.jm9-eyebrow__separator {
    color: var(--jm9-gold-bright);
}

.jm9-hero-title {
    margin: 20px 0 20px;
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: clamp(68px, 5.6vw, 118px);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1;
    text-transform: uppercase;
}

.jm9-hero-title span {
    display: block;
}

.jm9-hero-title__primary {
    color: #f7f6f1;
    text-shadow: 0 3px 0 rgba(255,255,255,0.08);
}

.jm9-hero-title__accent {
    margin-top: 8px;
    color: var(--jm9-gold-bright);
}

.jm9-hero-description {
    max-width: 650px;
    margin: 0;
    color: #d5d4cf;
    font-size: clamp(14px, 1.05vw, 18px);
    line-height: 1.55;
}

.jm9-hero-actions {
    display: flex;
    margin-top: 30px;
    align-items: center;
    gap: 34px;
}


/* =========================================================
   HIGHLIGHTS
   ========================================================= */

.jm9-highlights {
    border-bottom: 1px solid var(--jm9-border);
    background: rgba(0,0,0,0.48);
}

.jm9-highlights__grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.65fr;
    min-height: 112px;
    align-items: center;
}

.jm9-highlight-item,
.jm9-highlight-partners {
    min-height: 72px;
    padding: 0 38px;
}

.jm9-highlight-item {
    display: flex;
    align-items: center;
    gap: 22px;
    border-right: 1px solid var(--jm9-border);
}

.jm9-highlight-item:first-child {
    padding-left: 0;
}

.jm9-highlight-item__icon {
    display: grid;
    width: 54px;
    height: 54px;
    flex: 0 0 auto;
    place-items: center;
}

.jm9-highlight-icon {
    max-width: 48px;
    max-height: 48px;
    object-fit: contain;
}

.jm9-highlight-item strong,
.jm9-highlight-item span,
.jm9-highlight-partners__label {
    display: block;
}

.jm9-highlight-item strong,
.jm9-highlight-partners__label {
    color: #fff;
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 15px;
    letter-spacing: 0.13em;
    line-height: 1.15;
    text-transform: uppercase;
    font-weight: 600;
}

.jm9-highlight-item span {
    margin-top: 6px;
    color: #d6d5d0;
    font-size: 14px;
}

.jm9-highlight-partners {
    display: flex;
    align-items: center;
    gap: 30px;
}

.jm9-highlight-partners__label {
    min-width: 128px;
    color: #bcbab4;
    font-size: 12px;
}

.jm9-logo-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 22px;
}

.jm9-logo-row a {
    display: inline-flex;
    align-items: center;
}

.jm9-partner-logo {
    width: auto;
    max-width: 150px;
    max-height: 44px;
    object-fit: contain;
}


/* =========================================================
   SOBRE O LIVRO
   ========================================================= */

.jm9-about-section {
    border-bottom: 1px solid rgba(213, 154, 0, 0.2);
}

.jm9-about-grid {
    display: grid;
    grid-template-columns: 0.95fr 2.2fr;
    gap: 80px;
}

.jm9-about-intro .jm9-section-title {
    margin-bottom: 24px;
}

.jm9-pillars {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
}

.jm9-pillar {
    position: relative;
    padding: 8px 30px 0;
    text-align: center;
}

.jm9-pillar + .jm9-pillar {
    border-left: 1px solid rgba(213, 154, 0, 0.35);
}

.jm9-pillar__icon {
    display: grid;
    min-height: 58px;
    margin-bottom: 16px;
    place-items: center;
}

.jm9-pillar__image {
    max-width: 54px;
    max-height: 54px;
    object-fit: contain;
}

.jm9-pillar h3 {
    margin: 0 0 12px;
    color: var(--jm9-gold-bright);
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.05em;
    line-height: 1.1;
    text-transform: uppercase;
}

.jm9-pillar p {
    margin: 0;
    color: #c3c2bd;
    font-size: 13px;
    line-height: 1.55;
}


/* =========================================================
   PRÉ-VENDA
   ========================================================= */

.jm9-presale-section {
    padding-top: 64px;
    padding-bottom: 78px;
}

.jm9-presale-grid {
    display: grid;
    grid-template-columns: minmax(260px, 0.85fr) minmax(350px, 1.1fr) minmax(280px, 0.75fr);
    align-items: center;
    gap: 54px;
}

.jm9-presale-book {
    display: flex;
    align-items: center;
    justify-content: center;
}

.jm9-presale-book__image {
    width: 100%;
    max-width: 430px;
    max-height: 560px;
    object-fit: contain;
    filter: drop-shadow(0 24px 35px rgba(0,0,0,0.55));
}

.jm9-presale-eyebrow,
.jm9-presale-accent-title,
.jm9-presale-author,
.jm9-presale-limited {
    display: block;
    text-transform: uppercase;
}

.jm9-presale-eyebrow {
    color: #fff;
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 16px;
    letter-spacing: 0.18em;
    font-weight: 600;
}

.jm9-presale-accent-title {
    margin-top: 12px;
    color: var(--jm9-gold-bright);
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: clamp(34px, 3.2vw, 56px);
    letter-spacing: 0.035em;
    line-height: 1;
}

.jm9-presale-title {
    margin: 10px 0 12px;
    color: #fff;
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: clamp(48px, 4.8vw, 82px);
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1;
    text-transform: uppercase;
}

.jm9-presale-author {
    margin: 0;
    color: #aaa8a1;
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 14px;
    letter-spacing: 0.17em;
    font-weight: 600;
}

.jm9-presale-price-row {
    display: flex;
    margin-top: 26px;
    align-items: flex-end;
    gap: 24px;
}

.jm9-presale-price-row strong {
    color: var(--jm9-gold-bright);
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: clamp(38px, 3.4vw, 58px);
    font-weight: 600;
    letter-spacing: 0.04em;
}

.jm9-presale-price-row span {
    color: #eee;
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 13px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 600;
}

.jm9-presale-actions {
    display: flex;
    margin-top: 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

.jm9-presale-benefits {
    padding: 34px 32px;
    border: 2px solid var(--jm9-gold-dark);
    background: rgba(0,0,0,0.3);
}

.jm9-presale-benefits h3 {
    margin: 0 0 28px;
    color: var(--jm9-gold-bright);
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 21px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.jm9-presale-benefits ul {
    display: grid;
    margin: 0;
    padding: 0;
    gap: 19px;
    list-style: none;
}

.jm9-presale-benefits li {
    display: grid;
    grid-template-columns: 30px 1fr;
    align-items: center;
    gap: 14px;
    color: #deddd8;
    font-size: 14px;
    line-height: 1.4;
}

.jm9-presale-benefits__icon {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
}

.jm9-presale-benefits__check {
    display: block;
    width: 28px;
    height: 28px;
    color: var(--jm9-gold-bright);
}

.jm9-presale-limited {
    margin-top: 34px;
    color: #8d8b84;
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 13px;
    letter-spacing: 0.15em;
    font-weight: 600;
}


/* =========================================================
   O QUE VEM A SEGUIR
   ========================================================= */

.jm9-next-section {
    padding-top: 0;
    padding-bottom: 34px;
}

.jm9-section-heading-line {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
    margin-bottom: 18px;
}

.jm9-section-heading-line > span {
    height: 1px;
    background: var(--jm9-gold-dark);
}

.jm9-section-heading-line h2 {
    font-size: clamp(27px, 2.7vw, 46px);
}

.jm9-next-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.jm9-next-card {
    display: grid;
    grid-template-columns: 80px 1fr;
    min-height: 150px;
    padding: 26px 30px;
    align-items: center;
    border: 1px solid rgba(213, 154, 0, 0.38);
    background: rgba(5,5,5,0.42);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.jm9-next-card[href]:hover {
    transform: translateY(-2px);
    border-color: var(--jm9-gold-bright);
    background: rgba(213,154,0,0.05);
}

.jm9-next-card__icon {
    display: grid;
    width: 66px;
    height: 66px;
    place-items: center;
}

.jm9-next-card__image {
    max-width: 62px;
    max-height: 62px;
    object-fit: contain;
}

.jm9-next-card__title-row {
    display: flex;
    align-items: baseline;
    gap: 15px;
}

.jm9-next-card h3 {
    margin: 0;
    color: var(--jm9-gold-bright);
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.jm9-next-card__title-row span {
    color: #b5b3ac;
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.jm9-next-card p {
    margin: 10px 0 0;
    color: #c5c4be;
    font-size: 13px;
    line-height: 1.5;
}


/* =========================================================
   NEWSLETTER
   ========================================================= */

.jm9-newsletter-section {
    position: relative;
    z-index: 100;
    padding: 0 0 36px;
    overflow: visible;
}

.jm9-newsletter-box {
    position: relative;
    z-index: 110;
    padding: 20px 34px 18px;
    border: 1px solid rgba(213, 154, 0, 0.4);
    overflow: visible;
    background: rgba(7,7,7,0.55);
}

.jm9-newsletter-form {
    position: relative;
    z-index: 120;
    overflow: visible;
}

.jm9-newsletter-heading h2 {
    color: #fff;
    font-size: clamp(26px, 2.3vw, 39px);
    letter-spacing: 0.07em;
}

.jm9-newsletter-heading p {
    margin: 4px 0 14px;
    color: #bdbbb5;
    font-size: 13px;
}

.jm9-newsletter-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 18px;
}

.jm9-newsletter-form input[type='text'],
.jm9-newsletter-form input[type='email'] {
    width: 100%;
    height: 52px;
    padding: 0 18px;
    border: 1px solid #5d5d59;
    border-radius: 0;
    outline: none;
    background: rgba(0,0,0,0.48);
    color: #fff;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 14px;
}

.jm9-newsletter-form input::placeholder {
    color: #96958f;
}

.jm9-newsletter-form input:focus,
.jm9-home-district.is-open .jm9-home-district__input {
    border-color: var(--jm9-gold);
}

.jm9-home-district {
    position: relative;
    z-index: 500;
    overflow: visible;
}

.jm9-home-district__input {
    padding-right: 44px !important;
}

.jm9-home-district__arrow {
    position: absolute;
    z-index: 2;
    top: 50%;
    right: 17px;
    color: var(--jm9-gold-bright);
    font-size: 18px;
    line-height: 1;
    pointer-events: none;
    transform: translateY(-50%);
}

.jm9-home-district.is-open .jm9-home-district__arrow {
    transform: translateY(-50%) rotate(180deg);
}

.jm9-home-district__menu {
    position: absolute;
    z-index: 9999;
    top: calc(100% + 3px);
    right: 0;
    left: 0;
    border: 1px solid #5d5d59;
    background: #090909;
    box-shadow: 0 16px 35px rgba(0,0,0,0.5);
}

.jm9-home-district__menu[hidden] {
    display: none !important;
}

.jm9-home-district__options {
    display: block;
    width: 100%;
    max-height: 156px;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
    overflow-y: auto;
    list-style: none !important;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

.jm9-home-district__option,
.jm9-home-district__empty {
    display: flex;
    width: 100%;
    min-height: 52px;
    margin: 0 !important;
    padding: 0 18px !important;
    align-items: center;
    border: 0;
    border-bottom: 1px solid #242424;
    background: #090909;
    color: #f4f3ee;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.2;
    text-align: left;
}

.jm9-home-district__option {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    user-select: none;
    touch-action: manipulation;
}

.jm9-home-district__option:hover,
.jm9-home-district__option:active,
.jm9-home-district__option.is-active,
.jm9-home-district__option[aria-selected='true'] {
    outline: none;
    background: #2a2107 !important;
    color: #fff;
}

.jm9-home-district__option.is-active {
    color: var(--jm9-gold-bright);
}

.jm9-home-district__empty {
    color: #8f8e89;
    cursor: default;
}

.jm9-newsletter-submit {
    min-width: 250px;
    height: 52px;
    gap: 24px;
    border: 0;
    cursor: pointer;
}

.jm9-newsletter-submit:disabled {
    cursor: wait;
    opacity: 0.65;
}

.jm9-newsletter-form__meta {
    display: flex;
    margin-top: 12px;
    align-items: center;
    gap: 28px;
}

.jm9-consent {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #a8a7a2;
    cursor: pointer;
    font-size: 11px;
}

.jm9-consent input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.jm9-consent > span {
    position: relative;
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    border: 1px solid #686761;
}

.jm9-consent input:checked + span::after {
    content: '✓';
    position: absolute;
    inset: -2px 0 0;
    display: grid;
    place-items: center;
    color: var(--jm9-gold-bright);
    font-size: 16px;
}

.jm9-consent em {
    font-style: normal;
}

.jm9-privacy-link {
    color: #aaa8a2 !important;
    font-size: 11px;
    text-decoration: underline;
}

.jm9-home-form-status {
    display: none;
    margin-top: 10px;
    font-size: 12px;
}

.jm9-home-form-status.is-visible {
    display: block;
}

.jm9-home-form-status.is-success {
    color: #cbdc82;
}

.jm9-home-form-status.is-error {
    color: #ff9b8b;
}

.jm9-honeypot {
    position: absolute !important;
    left: -99999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}


/* =========================================================
   FOOTER
   ========================================================= */

.jm9-home-footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(213, 154, 0, 0.32);
    background: rgba(0,0,0,0.78);
}

.jm9-home-footer__top {
    display: grid;
    grid-template-columns: 1.05fr 1fr 1.35fr;
    min-height: 110px;
    align-items: center;
    gap: 44px;
}

.jm9-home-footer__brand {
    display: flex;
    align-items: center;
    gap: 28px;
}

.jm9-home-footer__logo {
    width: auto;
    max-width: 110px;
    max-height: 72px;
    object-fit: contain;
}

.jm9-home-footer__brand p {
    margin: 0;
    color: var(--jm9-gold-bright);
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 14px;
    letter-spacing: 0.12em;
    line-height: 1.2;
    text-transform: uppercase;
}

.jm9-home-footer__group {
    padding-left: 38px;
    border-left: 1px solid rgba(213, 154, 0, 0.3);
}

.jm9-home-footer__label {
    display: block;
    margin-bottom: 10px;
    color: #aaa8a1;
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.jm9-footer-partner-logo {
    width: auto;
    max-width: 130px;
    max-height: 38px;
    object-fit: contain;
}

.jm9-home-footer__bottom {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(213, 154, 0, 0.12);
    color: #72716c;
    font-size: 9px;
}

.jm9-home-footer__legal {
    display: flex;
    align-items: center;
    gap: 18px;
}

.jm9-home-footer__legal a {
    color: #85847e;
    text-decoration: none;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .jm9-container {
        width: min(calc(100% - 44px), var(--jm9-max));
    }

    .jm9-home-header__inner {
        grid-template-columns: 120px 1fr auto;
        gap: 20px;
    }

    .jm9-home-nav {
        gap: 22px;
    }

    .jm9-home-nav a {
        font-size: 13px;
    }

    .jm9-home-header__cta {
        padding-inline: 20px;
    }

    .jm9-hero-section,
    .jm9-hero-section__grid,
    .jm9-hero-visual {
        min-height: 620px;
    }

    .jm9-hero-section__grid {
        grid-template-columns: minmax(0, 0.95fr) minmax(410px, 1.05fr);
    }

    .jm9-hero-copy {
        padding-left: 8px;
    }

    .jm9-about-grid {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .jm9-presale-grid {
        grid-template-columns: 0.8fr 1.2fr;
    }

    .jm9-presale-benefits {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 220px 1fr auto;
        align-items: start;
        gap: 30px;
    }

    .jm9-presale-benefits h3,
    .jm9-presale-limited {
        margin: 0;
    }

    .jm9-presale-benefits ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .jm9-newsletter-form__row {
        grid-template-columns: 1fr 1fr;
    }

    .jm9-newsletter-submit {
        width: 100%;
    }

    .jm9-home-footer__top {
        grid-template-columns: 1fr 1fr;
    }

    .jm9-home-footer__group--partners {
        grid-column: 1 / -1;
        padding: 20px 0;
        border-top: 1px solid rgba(213,154,0,0.2);
        border-left: 0;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    /*
     * No mobile o header sticky acabava por ficar por cima do topo
     * da fotografia do hero. Mantemo-lo no fluxo normal para garantir
     * que a imagem começa sempre abaixo do cabeçalho e não perde a cabeça.
     */
    .jm9-home-header {
        position: relative;
        top: auto;
    }

    .jm9-container {
        width: calc(100% - 32px);
    }

    .jm9-section {
        padding: 48px 0;
    }

    .jm9-home-header__inner {
        position: relative;
        grid-template-columns: 1fr auto;
        min-height: 72px;
    }

    .jm9-home-brand {
        width: 84px;
    }

    .jm9-home-header__cta {
        display: none;
    }

    .jm9-nav-toggle {
        display: inline-flex;
        width: 42px;
        height: 42px;
        padding: 9px;
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        gap: 5px;
        border: 1px solid rgba(213,154,0,0.4);
        background: transparent;
        cursor: pointer;
    }

    .jm9-nav-toggle span {
        height: 2px;
        background: var(--jm9-gold-bright);
    }

    .jm9-home-nav {
        position: absolute;
        top: 100%;
        right: -16px;
        left: -16px;
        display: none;
        padding: 20px 16px 26px;
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        border-top: 1px solid rgba(213,154,0,0.25);
        border-bottom: 1px solid rgba(213,154,0,0.25);
        background: #050505;
    }

    .jm9-home-nav.is-open {
        display: flex;
    }

    .jm9-home-nav a {
        width: 100%;
        font-size: 17px;
    }

    .jm9-hero-section,
    .jm9-hero-section__grid,
    .jm9-hero-visual {
        min-height: 0;
    }

    .jm9-hero-section__grid {
        display: flex;
        flex-direction: column;
    }

    .jm9-hero-visual {
        order: 1;
        height: auto;
        min-height: 0;
        margin: 0 -16px;
        padding: 0;
        align-items: flex-start;
        overflow: visible;
    }

    .jm9-hero-visual__image {
        position: static;
        display: block;
        width: 100%;
        height: auto !important;
        max-height: none !important;
        margin: 0;
        object-fit: contain;
        object-position: center top;
    }

    .jm9-hero-copy {
        order: 2;
        padding: 24px 0 44px;
    }

    .jm9-hero-signature {
        min-height: 0;
        margin-bottom: 12px;
    }

    .jm9-hero-signature__image {
        max-width: 100px;
        max-height: 54px;
    }

    .jm9-eyebrow {
        gap: 8px;
        font-size: 11px;
    }

    .jm9-eyebrow__line {
        width: 26px;
    }

    .jm9-hero-title {
        margin-top: 14px;
        font-size: clamp(52px, 18vw, 78px);
    }

    .jm9-hero-description {
        font-size: 14px;
    }

    .jm9-hero-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
    }

    .jm9-button {
        width: 100%;
    }

    .jm9-highlights__grid {
        grid-template-columns: 1fr;
        padding: 16px 0;
    }

    .jm9-highlight-item,
    .jm9-highlight-partners {
        min-height: 84px;
        padding: 16px 0;
        border-right: 0;
        border-bottom: 1px solid rgba(213,154,0,0.2);
    }

    .jm9-highlight-partners {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
        border-bottom: 0;
    }

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

    .jm9-pillar {
        padding: 24px 14px;
        border-top: 1px solid rgba(213,154,0,0.25);
    }

    .jm9-pillar + .jm9-pillar {
        border-left: 0;
    }

    .jm9-pillar:nth-child(even) {
        border-left: 1px solid rgba(213,154,0,0.25);
    }

    .jm9-presale-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .jm9-presale-book__image {
        max-width: 310px;
    }

    .jm9-presale-copy {
        text-align: center;
    }

    .jm9-presale-price-row,
    .jm9-presale-actions {
        justify-content: center;
        align-items: center;
    }

    .jm9-presale-actions {
        width: 100%;
    }

    .jm9-presale-benefits {
        grid-column: auto;
        display: block;
        padding: 28px 22px;
    }

    .jm9-presale-benefits h3 {
        margin-bottom: 24px;
    }

    .jm9-presale-benefits ul {
        grid-template-columns: 1fr;
    }

    .jm9-presale-limited {
        margin-top: 28px;
    }

    .jm9-section-heading-line {
        gap: 12px;
    }

    .jm9-section-heading-line h2 {
        font-size: 26px;
        white-space: nowrap;
    }

    .jm9-next-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .jm9-next-card {
        grid-template-columns: 62px 1fr;
        min-height: 124px;
        padding: 20px;
    }

    .jm9-next-card__icon {
        width: 50px;
        height: 50px;
    }

    .jm9-newsletter-section {
        padding-bottom: 28px;
    }

    .jm9-newsletter-box {
        padding: 22px 18px;
    }

    .jm9-newsletter-form__row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .jm9-newsletter-form__meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .jm9-home-footer__top {
        grid-template-columns: 1fr;
        padding: 28px 0;
        gap: 28px;
    }

    .jm9-home-footer__brand {
        align-items: flex-start;
    }

    .jm9-home-footer__group,
    .jm9-home-footer__group--partners {
        grid-column: auto;
        padding: 20px 0 0;
        border-top: 1px solid rgba(213,154,0,0.2);
        border-left: 0;
    }

    .jm9-home-footer__bottom {
        padding: 14px 0;
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .jm9-home-footer__legal {
        flex-wrap: wrap;
        gap: 10px 16px;
    }
}

.jm9-home-footer__copyright a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.jm9-home-footer__copyright a:hover {
    color: var(--jm9-gold-bright);
}
/* =========================================================
   VENDA ANTECIPADA — PREÇO E MODAL DE ENCOMENDA
   ========================================================= */

.jm9-anchor-alias {
    display: block;
    position: relative;
    top: -90px;
    visibility: hidden;
}

.jm9-presale-price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

.jm9-presale-price__old {
    display: inline-block;
    color: #f1efe8 !important;
    font-family: 'Poppins', Arial, sans-serif !important;
    font-size: clamp(18px, 1.35vw, 22px) !important;
    font-weight: 600 !important;
    line-height: 1.1 !important;
    letter-spacing: 0.01em !important;
    text-decoration-line: line-through;
    text-decoration-color: var(--jm9-gold-bright);
    text-decoration-thickness: 2px;
    text-decoration-skip-ink: none;
    opacity: 0.9;
}

.jm9-presale-shipping {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 11px;
    border: 1px solid rgba(213, 154, 0, 0.45);
    color: #f4f2eb !important;
    background: rgba(213, 154, 0, 0.06);
    line-height: 1.15;
    white-space: nowrap;
}

.jm9-presale-discount-note,
.jm9-presale-delivery {
    margin: 12px 0 0;
    color: #d6d3cb;
    font-size: 13px;
    line-height: 1.55;
}

.jm9-presale-discount-note {
    color: var(--jm9-gold-bright);
    font-weight: 600;
}

.jm9-presale-actions .jm9-button {
    border: 0;
    cursor: pointer;
}

body.jm9-order-modal-open {
    overflow: hidden;
}

.jm9-order-modal[hidden] {
    display: none !important;
}

.jm9-order-modal {
    position: fixed;
    z-index: 999999;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
}

.jm9-order-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.84);
    backdrop-filter: blur(8px);
}

.jm9-order-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(760px, 100%);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 42px;
    border: 1px solid rgba(192, 153, 84, 0.55);
    background: #11110f;
    box-shadow: 0 28px 90px rgba(0,0,0,0.65);
}

.jm9-order-modal__close {
    position: absolute;
    top: 14px;
    right: 18px;
    width: 38px;
    height: 38px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
}

.jm9-order-modal__intro h2 {
    margin: 8px 0 6px;
    color: var(--jm9-gold-bright);
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-size: clamp(34px, 5vw, 54px);
    font-weight: 600;
    letter-spacing: .03em;
    line-height: 1;
}

.jm9-order-modal__intro p,
.jm9-order-instructions,
.jm9-order-form__summary {
    color: #d6d3cb;
    font-size: 13px;
    line-height: 1.6;
}

.jm9-order-payment-box {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin: 26px 0 18px;
    border: 1px solid #37342e;
    background: #37342e;
}

.jm9-order-payment-box > div {
    display: flex;
    min-height: 86px;
    padding: 16px 18px;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    background: #181815;
}

.jm9-order-payment-box__wide {
    grid-column: 1 / -1;
}

.jm9-order-payment-box span,
.jm9-order-field > span {
    color: #9d9a92;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.jm9-order-payment-box strong {
    color: #fff;
    font-size: 18px;
}

.jm9-order-payment-box small {
    color: var(--jm9-gold-bright);
    font-size: 11px;
}

.jm9-order-iban {
    overflow-wrap: anywhere;
    letter-spacing: .06em;
}

.jm9-order-form {
    margin-top: 24px;
}

.jm9-order-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.jm9-order-field {
    display: grid;
    gap: 7px;
}

.jm9-order-field--full {
    grid-column: 1 / -1;
}

.jm9-order-field input,
.jm9-order-field textarea {
    width: 100%;
    border: 1px solid #39362f;
    border-radius: 0;
    outline: 0;
    padding: 12px 13px;
    background: #0c0c0b;
    color: #fff;
    font: inherit;
}

.jm9-order-field input:focus,
.jm9-order-field textarea:focus {
    border-color: var(--jm9-gold-bright);
}

.jm9-order-field input[type="file"] {
    padding: 10px;
    color: #c9c6bd;
}

.jm9-order-consent {
    display: flex;
    margin: 18px 0 0;
    align-items: flex-start;
    gap: 10px;
    color: #bdbab1;
    font-size: 12px;
    line-height: 1.5;
}

.jm9-order-consent input {
    margin-top: 3px;
}

.jm9-order-form__summary {
    margin: 18px 0;
}

.jm9-order-submit {
    border: 0;
    cursor: pointer;
}

.jm9-order-submit:disabled {
    opacity: .6;
    cursor: wait;
}

.jm9-order-status {
    display: none;
    margin-top: 14px;
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.5;
}

.jm9-order-status.is-visible {
    display: block;
}

.jm9-order-status.is-success {
    border: 1px solid rgba(103, 171, 112, .6);
    color: #ccebd0;
    background: rgba(46, 91, 52, .28);
}

.jm9-order-status.is-error {
    border: 1px solid rgba(196, 91, 91, .65);
    color: #ffd0d0;
    background: rgba(105, 40, 40, .3);
}

@media (max-width: 680px) {
    .jm9-order-modal {
        padding: 10px;
    }

    .jm9-order-modal__dialog {
        max-height: calc(100vh - 20px);
        padding: 34px 20px 24px;
    }

    .jm9-order-payment-box,
    .jm9-order-form__grid {
        grid-template-columns: 1fr;
    }

    .jm9-order-payment-box__wide,
    .jm9-order-field--full {
        grid-column: auto;
    }
}
