/* =========================================================
   MacBook Editorial Landing — namespace .rdc-mbp
   Paleta: paper (off-white quente) + ink (preto) + accent dinâmico
   Fontes: Inter Tight (200/700/800/900) + Fraunces (italic) + IBM Plex Mono
   --accent: definido inline via PHP, default #B7704A (cobre)
   ========================================================= */

.rdc-mbp {
    --paper:    #f4f2ee;
    --paper-2:  #ebe8e2;
    --ink:      #0c0d0e;
    --ink-soft: #1a1b1d;
    --rule:     rgba(12,13,14,0.12);
    --mute:     rgba(12,13,14,0.55);
    --mute-2:   rgba(12,13,14,0.40);

    color: var(--ink);
    background: var(--paper);
    font-family: 'Inter Tight', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

/* Reset cirúrgico — box-sizing global, mas margin/padding zerado APENAS
   dentro das 3 seções editoriais próprias. Sem isso o reset alcança a S4
   universal de compra (que renderiza dentro do .rdc-mbp via helper) e
   quebra o form/botão "Ver todas as opções" do WooCommerce. */
.rdc-mbp,
.rdc-mbp * { box-sizing: border-box; }
.rdc-mbp__cine *,
.rdc-mbp__specs *,
.rdc-mbp__hero * { margin: 0; padding: 0; }
.rdc-mbp img { max-width: 100%; display: block; }
.rdc-mbp a { color: inherit; text-decoration: none; }

.rdc-mbp .mono {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 11px;
}

.rdc-mbp .serif {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 300;
    font-style: italic;
}

.rdc-mbp .destaque-accent { color: var(--accent); }

/* ═════════════════════════════════════════════════════════
   S1 — CINEMATIC
   ═════════════════════════════════════════════════════════ */
.rdc-mbp__cine {
    position: relative;
    background: var(--paper);
    padding: 72px 56px 96px;
    overflow: hidden;
    border-bottom: 1px solid var(--rule);
}

.rdc-mbp__cine-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    position: relative;
    z-index: 3;
}

.rdc-mbp__brand {
    font-family: 'Inter Tight', sans-serif;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rdc-mbp__brand::before {
    content: "";
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--accent);
    display: inline-block;
}

.rdc-mbp__crumbs {
    color: var(--mute);
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}

.rdc-mbp__crumbs span:not(:last-child)::after {
    content: "/";
    margin-left: 14px;
    color: var(--mute-2);
}

.rdc-mbp__crumbs-current { color: var(--ink); }

/* Letra gigante no fundo (PRO/AIR/MAX) */
.rdc-mbp__cine-bgword {
    position: absolute;
    left: 50%;
    top: 56%;
    transform: translate(-50%, -50%);
    font-family: 'Inter Tight', sans-serif;
    font-weight: 900;
    font-size: clamp(280px, 38vw, 720px);
    line-height: 0.78;
    letter-spacing: -0.06em;
    color: var(--ink);
    opacity: 0.045;
    pointer-events: none;
    user-select: none;
    z-index: 1;
    white-space: nowrap;
}

.rdc-mbp__cine-stage {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    justify-items: center;
    padding: 64px 0 24px;
    gap: 40px;
}

.rdc-mbp__cine-meta {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: center;
}

.rdc-mbp__edition {
    color: var(--mute);
    display: flex; gap: 18px; align-items: center;
}
.rdc-mbp__edition::before, .rdc-mbp__edition::after {
    content: "";
    width: 36px; height: 1px;
    background: var(--rule);
}

.rdc-mbp__cine h1 {
    font-family: 'Inter Tight', sans-serif;
    font-weight: 200;
    font-size: clamp(40px, 5.4vw, 88px);
    line-height: 0.96;
    letter-spacing: -0.04em;
    max-width: 14ch;
    text-wrap: balance;
}
.rdc-mbp__cine h1 em {
    font-family: 'Fraunces', Georgia, serif;
    font-style: italic;
    font-weight: 300;
    letter-spacing: -0.03em;
}

.rdc-mbp__cine-sub {
    max-width: 56ch;
    color: var(--mute);
    font-size: 17px;
    line-height: 1.55;
    text-wrap: pretty;
}

.rdc-mbp__product-frame {
    position: relative;
    width: min(880px, 78vw);
    aspect-ratio: 16 / 11;
    display: grid;
    place-items: center;
}
.rdc-mbp__product-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 60px 80px rgba(0,0,0,0.18));
}

/* Marcas de registro nos cantos — feel editorial impresso */
.rdc-mbp__regmark {
    position: absolute;
    width: 28px; height: 28px;
    border: 1px solid var(--ink);
    opacity: 0.35;
}
.rdc-mbp__regmark::before, .rdc-mbp__regmark::after {
    content: ""; position: absolute; background: var(--ink); opacity: 0.6;
}
.rdc-mbp__regmark::before { left: 50%; top: -6px; bottom: -6px; width: 1px; transform: translateX(-50%); }
.rdc-mbp__regmark::after  { top: 50%; left: -6px; right: -6px; height: 1px; transform: translateY(-50%); }
.rdc-mbp__regmark--tl { top: 0; left: 0; }
.rdc-mbp__regmark--tr { top: 0; right: 0; }
.rdc-mbp__regmark--bl { bottom: 0; left: 0; }
.rdc-mbp__regmark--br { bottom: 0; right: 0; }

/* Strip de specs no rodapé da S1 */
.rdc-mbp__strip {
    margin-top: 48px;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    position: relative;
    z-index: 2;
}
.rdc-mbp__strip-cell {
    padding: 22px 18px;
    border-right: 1px solid var(--rule);
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.rdc-mbp__strip-cell:last-child { border-right: 0; }
.rdc-mbp__strip-cell .l { color: var(--mute); }
.rdc-mbp__strip-cell .v {
    font-family: 'Inter Tight', sans-serif;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

/* ═════════════════════════════════════════════════════════
   S2 — SPEC SHEET
   ═════════════════════════════════════════════════════════ */
.rdc-mbp__specs {
    background: var(--paper-2);
    padding: 120px 56px;
    border-bottom: 1px solid var(--rule);
    position: relative;
}

.rdc-mbp__specs-head {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: end;
    margin-bottom: 64px;
    border-bottom: 1px solid var(--rule);
    padding-bottom: 28px;
}

.rdc-mbp__specs-eyebrow {
    color: var(--mute);
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 18px;
}
.rdc-mbp__specs-eyebrow .dot {
    width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}

.rdc-mbp__specs h2 {
    font-family: 'Inter Tight', sans-serif;
    font-weight: 200;
    font-size: clamp(48px, 7vw, 120px);
    line-height: 0.92;
    letter-spacing: -0.045em;
    text-wrap: balance;
}
.rdc-mbp__specs h2 .heavy {
    font-weight: 900;
    letter-spacing: -0.055em;
}
.rdc-mbp__specs h2 .accent {
    color: var(--accent);
    font-weight: 900;
    letter-spacing: -0.055em;
}

.rdc-mbp__specs-folio {
    text-align: right;
    color: var(--mute);
    line-height: 1.6;
}
.rdc-mbp__specs-folio strong {
    display: block;
    color: var(--ink);
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 4px;
}

.rdc-mbp__specs-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.4fr 1.1fr;
    gap: 0;
    align-items: stretch;
}

.rdc-mbp__specs-col {
    display: flex;
    flex-direction: column;
}

.rdc-mbp__spec {
    padding: 28px 28px 32px;
    border-top: 1px solid var(--rule);
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 16px;
    align-items: start;
}
.rdc-mbp__spec:last-child { border-bottom: 1px solid var(--rule); }

.rdc-mbp__spec-num {
    color: var(--mute);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    padding-top: 4px;
    letter-spacing: 0.04em;
}
.rdc-mbp__spec-label {
    color: var(--mute);
    margin-bottom: 8px;
}
.rdc-mbp__spec-value {
    font-family: 'Inter Tight', sans-serif;
    font-weight: 800;
    font-size: 28px;
    line-height: 1.05;
    letter-spacing: -0.025em;
    margin-bottom: 6px;
}
.rdc-mbp__spec-sub {
    color: var(--mute);
    font-size: 13px;
    line-height: 1.5;
}

/* Coluna direita: alinha texto à direita (ritmo alternado) */
.rdc-mbp__specs-col--right .rdc-mbp__spec {
    text-align: right;
    grid-template-columns: 1fr 32px;
}
.rdc-mbp__specs-col--right .rdc-mbp__spec-num {
    grid-column: 2; grid-row: 1; padding-top: 4px;
}
.rdc-mbp__specs-col--right .rdc-mbp__spec-body {
    grid-column: 1; grid-row: 1;
}

/* Coluna do meio: foto */
.rdc-mbp__specs-photo {
    display: grid;
    place-items: center;
    padding: 24px;
    position: relative;
}
.rdc-mbp__specs-photo img {
    width: 100%;
    max-width: 520px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 30px 60px rgba(0,0,0,0.12));
}
.rdc-mbp__specs-photo .caption {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    color: var(--mute);
    text-align: center;
    line-height: 1.4;
    max-width: 80%;
}
.rdc-mbp__specs-photo .caption b {
    display: block;
    color: var(--ink);
    font-family: 'Fraunces', Georgia, serif;
    font-style: italic;
    font-weight: 300;
    font-size: 16px;
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 4px;
}

/* ═════════════════════════════════════════════════════════
   S3 — HERO EDITORIAL DARK
   ═════════════════════════════════════════════════════════ */
.rdc-mbp__hero {
    background: var(--ink);
    color: var(--paper);
    padding: 140px 56px 160px;
    position: relative;
    overflow: hidden;
}

.rdc-mbp__hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

/* Halo de luz accent atrás do texto */
.rdc-mbp__hero-bg::before {
    content: "";
    position: absolute;
    width: 1200px; height: 1200px;
    left: 50%; top: 60%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, var(--accent) 0%, transparent 60%);
    opacity: 0.18;
    filter: blur(40px);
}

.rdc-mbp__hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    max-width: 1500px;
    margin: 0 auto;
}

.rdc-mbp__hero-text {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.rdc-mbp__hero-eyebrow {
    color: rgba(244,242,238,0.55);
    display: flex; gap: 14px; align-items: center;
}
.rdc-mbp__hero-eyebrow .dot {
    width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}

.rdc-mbp__hero h2.hero-h1 {
    font-family: 'Inter Tight', sans-serif;
    font-weight: 200;
    font-size: clamp(48px, 6.4vw, 110px);
    line-height: 0.94;
    letter-spacing: -0.045em;
    color: var(--paper);
    text-wrap: balance;
}
.rdc-mbp__hero h2.hero-h1 .last {
    color: var(--accent);
    font-weight: 900;
    letter-spacing: -0.055em;
    font-style: normal;
}
.rdc-mbp__hero h2.hero-h1 .heavy {
    font-weight: 900; letter-spacing: -0.055em;
}

.rdc-mbp__hero-sub {
    max-width: 50ch;
    font-size: 18px;
    line-height: 1.6;
    color: rgba(244,242,238,0.7);
    text-wrap: pretty;
}

.rdc-mbp__hero-meta {
    display: flex;
    gap: 32px;
    margin-top: 8px;
    padding-top: 24px;
    border-top: 1px solid rgba(244,242,238,0.12);
    flex-wrap: wrap;
}
.rdc-mbp__hero-meta-item {
    display: flex; flex-direction: column; gap: 6px;
}
.rdc-mbp__hero-meta-item .l {
    color: rgba(244,242,238,0.45);
}
.rdc-mbp__hero-meta-item .v {
    font-weight: 700;
    font-size: 16px;
    letter-spacing: -0.01em;
}

.rdc-mbp__hero-photo {
    position: relative;
    aspect-ratio: 4 / 3;
    display: grid;
    place-items: center;
}
.rdc-mbp__hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 40px 80px rgba(0,0,0,0.6));
    position: relative;
    z-index: 2;
}
.rdc-mbp__hero-photo::before {
    content: attr(data-word);
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Inter Tight', sans-serif;
    font-weight: 900;
    font-size: clamp(180px, 22vw, 360px);
    line-height: 0.8;
    letter-spacing: -0.06em;
    color: var(--paper);
    opacity: 0.04;
    z-index: 0;
    white-space: nowrap;
    pointer-events: none;
}

/* ═════════════════════════════════════════════════════════
   MOBILE — ≤ 768px (foto primeiro, layouts em coluna)
   ═════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

    .rdc-mbp__cine {
        padding: 64px 20px 40px;
    }
    .rdc-mbp__cine-top {
        flex-direction: column;
        gap: 10px;
        padding-bottom: 16px;
        border-bottom: 1px solid var(--rule);
        align-items: flex-start;
    }
    .rdc-mbp__brand { font-size: 12px; }
    .rdc-mbp__brand::before { width: 6px; height: 6px; }
    .rdc-mbp__crumbs { font-size: 9px; gap: 8px; }
    .rdc-mbp__crumbs span:not(:last-child)::after { margin-left: 8px; }

    .rdc-mbp__cine-bgword {
        font-size: 240px;
        opacity: 0.05;
    }

    .rdc-mbp__cine-stage {
        padding: 28px 0 12px;
        gap: 24px;
    }
    .rdc-mbp__cine-meta { gap: 14px; }
    .rdc-mbp__edition { font-size: 9px; gap: 10px; }
    .rdc-mbp__edition::before, .rdc-mbp__edition::after { width: 20px; }
    .rdc-mbp__cine h1 {
        font-size: 36px;
        max-width: 12ch;
    }
    .rdc-mbp__cine-sub {
        font-size: 13px;
        max-width: 32ch;
    }

    .rdc-mbp__product-frame {
        width: 100%;
        aspect-ratio: 4 / 3;
    }
    .rdc-mbp__product-frame img {
        filter: drop-shadow(0 24px 32px rgba(0,0,0,0.18));
    }

    /* Strip vira 2 colunas */
    .rdc-mbp__strip {
        margin-top: 28px;
        grid-template-columns: repeat(2, 1fr);
    }
    .rdc-mbp__strip-cell {
        padding: 14px 14px;
        border-right: 1px solid var(--rule);
        border-bottom: 1px solid var(--rule);
    }
    .rdc-mbp__strip-cell:nth-child(2n)        { border-right: 0; }
    .rdc-mbp__strip-cell:nth-last-child(-n+2) { border-bottom: 0; }
    .rdc-mbp__strip-cell .l { font-size: 9px; }
    .rdc-mbp__strip-cell .v { font-size: 14px; }

    /* S2: layout vertical, foto primeiro */
    .rdc-mbp__specs {
        padding: 40px 20px 48px;
    }
    .rdc-mbp__specs-head {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 24px;
        padding-bottom: 18px;
        border-bottom: 1px solid var(--rule);
    }
    .rdc-mbp__specs-eyebrow {
        font-size: 9px;
        margin-bottom: 8px;
    }
    .rdc-mbp__specs-eyebrow .dot { width: 5px; height: 5px; }
    .rdc-mbp__specs h2 {
        font-size: 38px;
    }
    .rdc-mbp__specs-folio {
        text-align: left;
        font-size: 9px;
    }
    .rdc-mbp__specs-folio strong { font-size: 10px; }

    .rdc-mbp__specs-grid {
        grid-template-columns: 1fr;
    }

    .rdc-mbp__specs-photo {
        order: -1;
        padding: 16px 0 28px;
    }
    .rdc-mbp__specs-photo img {
        max-width: 320px;
        filter: drop-shadow(0 18px 32px rgba(0,0,0,0.12));
    }
    .rdc-mbp__specs-photo .caption {
        position: static;
        transform: none;
        margin-top: 14px;
    }
    .rdc-mbp__specs-photo .caption b { font-size: 14px; }

    .rdc-mbp__spec {
        padding: 18px 4px 20px;
        grid-template-columns: 24px 1fr;
        gap: 12px;
    }
    .rdc-mbp__spec-num { font-size: 10px; padding-top: 3px; }
    .rdc-mbp__spec-label { font-size: 9px; margin-bottom: 4px; }
    .rdc-mbp__spec-value { font-size: 19px; margin-bottom: 4px; }
    .rdc-mbp__spec-sub { font-size: 12px; }

    /* Coluna direita perde alinhamento right no mobile */
    .rdc-mbp__specs-col--right .rdc-mbp__spec {
        text-align: left;
        grid-template-columns: 24px 1fr;
    }
    .rdc-mbp__specs-col--right .rdc-mbp__spec-num {
        grid-column: 1; grid-row: 1;
    }
    .rdc-mbp__specs-col--right .rdc-mbp__spec-body {
        grid-column: 2; grid-row: 1;
    }

    /* S3: dark hero em coluna */
    .rdc-mbp__hero {
        padding: 60px 20px 64px;
    }
    .rdc-mbp__hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .rdc-mbp__hero-text { gap: 22px; }
    .rdc-mbp__hero h2.hero-h1 { font-size: 44px; }
    .rdc-mbp__hero-sub { font-size: 14px; }
    .rdc-mbp__hero-meta { gap: 20px; }
    .rdc-mbp__hero-meta-item .v { font-size: 14px; }
    .rdc-mbp__hero-photo { aspect-ratio: 5 / 4; }
    .rdc-mbp__hero-photo::before {
        font-size: 160px;
    }

    /* Esconde marcas de registro no mobile (fica apertado) */
    .rdc-mbp__regmark { display: none; }
}

/* ═════════════════════════════════════════════════════════
   Esconde header/footer do tema quando o template editorial
   está ativo (já é feito via wp_add_inline_style central — mas
   reforço aqui caso CSS do tema sobrescreva no ar).
   ═════════════════════════════════════════════════════════ */
.rdc-mbp .site-header,
.rdc-mbp .fm-header,
.rdc-mbp .site-footer,
.rdc-mbp .fm-footer { display: none !important; }

/* ═════════════════════════════════════════════════════════
   CTA Comprar agora — botão pílula paper sobre ink
   ═════════════════════════════════════════════════════════ */
.rdc-mbp .rdc-mbp__cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    align-self: flex-start;
    margin-top: 8px;
    padding: 18px 32px;
    background: var(--paper);
    color: var(--ink) !important;
    font-family: 'Inter Tight', sans-serif;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: -0.005em;
    border-radius: 999px;
    text-decoration: none;
    border: 1px solid var(--paper);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
}
.rdc-mbp .rdc-mbp__cta:hover,
.rdc-mbp .rdc-mbp__cta:focus-visible {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--ink) !important;
    transform: translateY(-1px);
}
.rdc-mbp .rdc-mbp__cta span { transition: transform 0.2s ease; }
.rdc-mbp .rdc-mbp__cta:hover span { transform: translateX(4px); }

@media (max-width: 768px) {
    .rdc-mbp .rdc-mbp__cta {
        align-self: stretch;
        justify-content: center;
        padding: 16px 24px;
        font-size: 14px;
    }
}

/* ═════════════════════════════════════════════════════════
   CTA --accent variant — S1 (fundo paper, botão accent vibrante)
   ═════════════════════════════════════════════════════════ */
.rdc-mbp .rdc-mbp__cta-row {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}
.rdc-mbp .rdc-mbp__cta--accent {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--ink) !important;
    align-self: auto;
    margin-top: 0;
    box-shadow: 0 12px 32px rgba(12, 13, 14, 0.14);
}
.rdc-mbp .rdc-mbp__cta--accent:hover,
.rdc-mbp .rdc-mbp__cta--accent:focus-visible {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--paper) !important;
}

@media (max-width: 768px) {
    .rdc-mbp .rdc-mbp__cta-row { margin-top: 28px; padding: 0 8px; }
    .rdc-mbp .rdc-mbp__cta-row .rdc-mbp__cta { width: 100%; justify-content: center; }
}
