/* BAND9AI card landing style (homepage + partner campaign pages).
   Card + dice models are ported from /joker (templates/joker.html): same proportions,
   Times pip index, black dice-back with BAND9AI glass branding. Pure CSS, no raster art. */

:is(.page-maxzaharenkov, .page-b9-home) {
    --mz-black: #0a0a0a;
    --mz-ink: #111111;
    --mz-red: #dc2626;
    --mz-red-dark: #b91c1c;
    --mz-muted: #64748b;
    --mz-line: rgba(10, 10, 10, 0.08);
    --mz-bg-muted: #f7f7f8;
    --mz-pip-font: "Times New Roman", Times, "Nimbus Roman", "Liberation Serif", Georgia, ui-serif, serif;
    --mz-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #ffffff;
    overflow-x: hidden;
}

.mz-container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; box-sizing: border-box; }
@media (min-width: 768px) { .mz-container { padding: 0 32px; } }

.mz-eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font: 700 12px/1 var(--mz-sans); letter-spacing: 0.22em; text-transform: uppercase;
    margin: 0 0 20px;
}
.mz-eyebrow .mz-x { color: var(--mz-red); font-family: var(--mz-pip-font); font-size: 16px; letter-spacing: 0; }
.mz-wordmark { font-family: var(--mz-pip-font); font-weight: 700; letter-spacing: 0.12em; }

.mz-h2 {
    font: 800 clamp(28px, 4.2vw, 46px)/1.08 var(--mz-sans);
    letter-spacing: -0.03em; color: var(--mz-black); margin: 0 0 16px;
}
.mz-sub { font: 400 17px/1.6 var(--mz-sans); color: #334155; max-width: 640px; margin: 0; }
.mz-section { padding: 88px 0; }
@media (max-width: 767px) { .mz-section { padding: 64px 0; } }
.mz-section--muted { background: var(--mz-bg-muted); border-top: 1px solid var(--mz-line); border-bottom: 1px solid var(--mz-line); }
.mz-section-head { margin-bottom: 44px; }
.mz-section-head--center { text-align: center; }
.mz-section-head--center .mz-sub { margin: 0 auto; }

/* Buttons — mirror pe-btn-ace-red / outline pattern from homepage */
.mz-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 52px; padding: 0 26px; border-radius: 12px;
    font: 800 15px/1 var(--mz-sans); letter-spacing: 0.04em; text-transform: uppercase;
    text-decoration: none; transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease, border-color .2s ease;
    box-sizing: border-box;
}
.mz-btn:focus-visible { outline: 3px solid var(--mz-red); outline-offset: 3px; }
.mz-btn--red { background: var(--mz-red); color: #fff; border: 2px solid var(--mz-red); box-shadow: 0 10px 30px rgba(220, 38, 38, 0.35); }
.mz-btn--red:hover { background: var(--mz-red-dark); border-color: var(--mz-red-dark); transform: translateY(-1px); }
.mz-btn--ghost-light { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, 0.4); }
.mz-btn--ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.06); }
.mz-btn--black { background: var(--mz-black); color: #fff; border: 2px solid var(--mz-black); }
.mz-btn--black:hover { background: #262626; }

/* ───────────── Joker card model (ported) ───────────── */
.mz-card {
    position: relative; width: 100%; aspect-ratio: 7 / 10;
    border-radius: 12px; font-family: var(--mz-sans); user-select: none;
}
.mz-card-front {
    position: absolute; inset: 0; border-radius: 12px; background: #fff;
    border: 1px solid #e5e7eb; box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; color: #000; overflow: hidden;
}
.mz-corner { position: absolute; display: flex; flex-direction: column; align-items: center; line-height: 1; }
.mz-corner--tl { top: 8%; left: 8%; transform: translate(-30%, -30%); }
.mz-corner--br { bottom: 8%; right: 8%; transform: translate(30%, 30%) rotate(180deg); }
.mz-rank { font: 700 var(--mz-rank-size, 40px)/1 var(--mz-pip-font); letter-spacing: -0.02em; }
.mz-suit { font: 400 var(--mz-suit-size, 34px)/1 var(--mz-pip-font); margin-top: 4px; }
.mz-red-ink { color: var(--mz-red); }
.mz-joker-text {
    font: 700 var(--mz-joker-size, 18px)/1.2 var(--mz-pip-font); color: var(--mz-red);
    writing-mode: vertical-rl; text-orientation: upright; letter-spacing: 0.12em; text-transform: uppercase;
}
.mz-joker-text--black { color: #000; }
.mz-card-text { padding: 0 16%; max-width: 100%; box-sizing: border-box; }
.mz-card-text .mz-tag {
    display: inline-block; background: #000; color: #fff; padding: 4px 10px; border-radius: 4px;
    font: 600 10px/1.4 var(--mz-sans); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 10px;
}
.mz-card-text .mz-tag--red { background: var(--mz-red); }
.mz-card-text h3, .mz-card-text .mz-card-title {
    font: 800 var(--mz-card-title, 20px)/1.15 var(--mz-sans); letter-spacing: -0.02em; margin: 0 0 8px; color: #000;
}
.mz-card-text p { font: 400 var(--mz-card-body, 13px)/1.45 var(--mz-sans); color: #1f2937; margin: 0; }
.mz-card-text .mz-big { font: 900 var(--mz-big, 56px)/1 -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif; display: block; margin: 4px 0 8px; }
.mz-card-text .mz-highlight { background: #ffd700; padding: 1px 3px; border-radius: 2px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* Card back — black, dice rows, BAND9AI glass plate */
.mz-card-back {
    position: absolute; inset: 0; border-radius: 12px; background: #000; overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}
.mz-card-back::before {
    content: ''; position: absolute; inset: 5.7%; border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 8px; z-index: 1;
}
.mz-card-back--red { background: linear-gradient(135deg, #000 0%, #1a0000 50%, #ff0000 100%); }
.mz-card-back--red::before { border-color: rgba(220, 38, 38, 0.3); }
.mz-dice-row {
    position: absolute; left: 14%; right: 14%; height: 16%;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 4%; color: #fff; z-index: 0;
}
.mz-dice-row--top { top: 10%; }
.mz-dice-row--bottom { bottom: 10%; }
.mz-card-back--red .mz-dice-row { color: var(--mz-red); }
.mz-card-back--red .mz-pip { opacity: 0.3; box-shadow: 0 0 8px rgba(220, 38, 38, 0.5); }
.mz-branding {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 3;
    text-align: center; padding: 9% 11%; width: 74%; box-sizing: border-box;
    background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.1);
}
.mz-branding-logo {
    font: 900 var(--mz-logo, 30px)/1.1 "Times New Roman", Times, serif; letter-spacing: 0.15em;
    text-transform: uppercase; color: #fff; text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.mz-card-back--red .mz-branding { border-color: rgba(220, 38, 38, 0.2); }
.mz-branding-tagline {
    font: 400 var(--mz-tagline, 9px)/1.4 'Roboto', var(--mz-sans); letter-spacing: 0.2em; text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9); margin-top: 8px;
}

/* Dice face + pips (same coordinates as /joker) */
.mz-die { position: relative; width: 100%; height: 100%; }
.mz-pip {
    position: absolute; width: var(--mz-pip, 8px); height: var(--mz-pip, 8px); border-radius: 50%;
    background: currentColor; opacity: 0.2; box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}
.mz-die--1 .mz-pip:nth-child(1) { top: 50%; left: 50%; transform: translate(-50%, -50%); }
.mz-die--2 .mz-pip:nth-child(1) { top: 30%; left: 30%; }
.mz-die--2 .mz-pip:nth-child(2) { bottom: 30%; right: 30%; }
.mz-die--3 .mz-pip:nth-child(1) { top: 30%; left: 30%; }
.mz-die--3 .mz-pip:nth-child(2) { top: 50%; left: 50%; transform: translate(-50%, -50%); }
.mz-die--3 .mz-pip:nth-child(3) { bottom: 30%; right: 30%; }
.mz-die--4 .mz-pip:nth-child(1) { top: 30%; left: 30%; }
.mz-die--4 .mz-pip:nth-child(2) { top: 30%; right: 30%; }
.mz-die--4 .mz-pip:nth-child(3) { bottom: 30%; left: 30%; }
.mz-die--4 .mz-pip:nth-child(4) { bottom: 30%; right: 30%; }
.mz-die--5 .mz-pip:nth-child(1) { top: 30%; left: 30%; }
.mz-die--5 .mz-pip:nth-child(2) { top: 30%; right: 30%; }
.mz-die--5 .mz-pip:nth-child(3) { top: 50%; left: 50%; transform: translate(-50%, -50%); }
.mz-die--5 .mz-pip:nth-child(4) { bottom: 30%; left: 30%; }
.mz-die--5 .mz-pip:nth-child(5) { bottom: 30%; right: 30%; }
.mz-die--6 .mz-pip:nth-child(1) { top: 30%; left: 30%; }
.mz-die--6 .mz-pip:nth-child(2) { top: 30%; right: 30%; }
.mz-die--6 .mz-pip:nth-child(3) { top: 50%; left: 30%; transform: translateY(-50%); }
.mz-die--6 .mz-pip:nth-child(4) { top: 50%; right: 30%; transform: translateY(-50%); }
.mz-die--6 .mz-pip:nth-child(5) { bottom: 30%; left: 30%; }
.mz-die--6 .mz-pip:nth-child(6) { bottom: 30%; right: 30%; }

/* Solid die tile (step markers) — same pip grid, white body */
.mz-die-tile {
    position: relative; width: 56px; height: 56px; flex: 0 0 56px; border-radius: 12px;
    background: #fff; border: 1px solid #e5e7eb; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08); color: #000;
    --mz-pip: 9px;
}
.mz-die-tile .mz-pip { opacity: 1; box-shadow: none; }
.mz-die-tile--red { background: var(--mz-red); border-color: var(--mz-red); color: #fff; }

/* ───────────── Hero ───────────── */
.mz-hero {
    position: relative; background: #000; color: #fff; overflow: hidden;
    padding: 72px 0 88px;
}
.mz-hero::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(60% 70% at 78% 45%, rgba(220, 38, 38, 0.18), transparent 70%);
}
.mz-hero-grid { position: relative; display: grid; grid-template-columns: 1fr; gap: 56px; align-items: center; }
@media (min-width: 992px) { .mz-hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 40px; } .mz-hero { padding: 104px 0 112px; } }
.mz-hero .mz-eyebrow { color: rgba(255, 255, 255, 0.85); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px; padding: 10px 16px; }
.mz-hero h1 {
    font: 800 clamp(38px, 6vw, 68px)/1.02 var(--mz-sans); letter-spacing: -0.035em; margin: 0 0 22px; color: #fff;
}
.mz-hero h1 .mz-h1-accent { color: var(--mz-red); }
.mz-hero-lead { font: 400 18px/1.6 var(--mz-sans); color: rgba(255, 255, 255, 0.78); max-width: 560px; margin: 0 0 32px; }
.mz-hero-lead strong { color: #fff; font-weight: 600; }
.mz-cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 479px) { .mz-cta-row .mz-btn { width: 100%; } }
.mz-hero-skills { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.mz-hero-skills li {
    font: 600 12px/1 var(--mz-sans); letter-spacing: 0.08em; text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 999px; padding: 9px 12px;
}
.mz-hero-skills .mz-s { font-family: var(--mz-pip-font); font-size: 14px; margin-right: 4px; letter-spacing: 0; }
.mz-hero-note { margin: 18px 0 0; font: 400 12px/1.5 var(--mz-sans); color: rgba(255, 255, 255, 0.5); }

/* Fanned hand of cards */
.mz-hand { position: relative; height: 440px; max-width: 520px; margin: 0 auto; width: 100%; }
@media (max-width: 991px) { .mz-hand { height: 380px; } }
@media (max-width: 479px) { .mz-hand { height: 300px; } }
.mz-hand .mz-card {
    position: absolute; left: 50%; top: 50%; width: 240px;
    --mz-rank-size: 34px; --mz-suit-size: 28px; --mz-logo: 26px; --mz-tagline: 8px; --mz-pip: 7px;
    transform-origin: 50% 110%;
    transition: transform .5s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.mz-hand .mz-card .mz-card-front, .mz-hand .mz-card .mz-card-back { box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06); }
.mz-hand .mz-card--1 { transform: translate(-50%, -50%) translateX(-120px) rotate(-14deg); z-index: 1; }
.mz-hand .mz-card--2 { transform: translate(-50%, -50%) translateY(-14px); z-index: 3; }
.mz-hand .mz-card--3 { transform: translate(-50%, -50%) translateX(120px) rotate(14deg); z-index: 2; }
@media (hover: hover) {
    .mz-hand:hover .mz-card--1 { transform: translate(-50%, -50%) translateX(-150px) rotate(-18deg); }
    .mz-hand:hover .mz-card--3 { transform: translate(-50%, -50%) translateX(150px) rotate(18deg); }
    .mz-hand:hover .mz-card--2 { transform: translate(-50%, -50%) translateY(-26px); }
}
@media (max-width: 991px) { .mz-hand .mz-card { width: 210px; --mz-logo: 22px; } }
@media (max-width: 479px) {
    .mz-hand .mz-card { width: 168px; --mz-rank-size: 26px; --mz-suit-size: 22px; --mz-logo: 17px; --mz-tagline: 6px; --mz-pip: 5px; --mz-card-title: 15px; --mz-card-body: 10px; --mz-big: 40px; --mz-joker-size: 13px; }
    .mz-hand .mz-card--1 { transform: translate(-50%, -50%) translateX(-82px) rotate(-12deg); }
    .mz-hand .mz-card--3 { transform: translate(-50%, -50%) translateX(82px) rotate(12deg); }
}
/* Touch screens can't hover: show the desktop hover spread as the resting pose */
@media (hover: none) {
    .mz-hand .mz-card--1 { transform: translate(-50%, -50%) translateX(-150px) rotate(-18deg); }
    .mz-hand .mz-card--3 { transform: translate(-50%, -50%) translateX(150px) rotate(18deg); }
    .mz-hand .mz-card--2 { transform: translate(-50%, -50%) translateY(-26px); }
}
@media (hover: none) and (max-width: 479px) {
    .mz-hand .mz-card--1 { transform: translate(-50%, -50%) translateX(-102px) rotate(-16deg); }
    .mz-hand .mz-card--3 { transform: translate(-50%, -50%) translateX(102px) rotate(16deg); }
    .mz-hand .mz-card--2 { transform: translate(-50%, -50%) translateY(-22px); }
}
.mz-float { animation: mzFloat 6s ease-in-out infinite; }
@keyframes mzFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

/* ───────────── B: Challenge ───────────── */
.mz-problems { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .mz-problems { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .mz-problems { grid-template-columns: repeat(4, 1fr); } }
.mz-problem {
    position: relative; background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 28px 22px 24px 64px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.mz-problem .mz-corner { top: 22px; left: 22px; transform: none; --mz-rank-size: 24px; --mz-suit-size: 18px; }
.mz-problem h3 { font: 700 17px/1.3 var(--mz-sans); color: var(--mz-black); margin: 0 0 8px; letter-spacing: -0.01em; }
.mz-problem p { font: 400 14.5px/1.55 var(--mz-sans); color: #475569; margin: 0; }

/* ───────────── C: Four skills as cards ───────────── */
.mz-skills { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 640px) { .mz-skills { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .mz-skills { grid-template-columns: repeat(4, 1fr); gap: 22px; } }
.mz-skill { display: flex; flex-direction: column; gap: 18px; }
.mz-skill .mz-card {
    max-width: 280px; margin: 0 auto; --mz-rank-size: 32px; --mz-suit-size: 26px; --mz-card-title: 22px; --mz-card-body: 13px;
    transition: transform .35s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.mz-skill:hover .mz-card { transform: translateY(-6px) rotate(-1.5deg); }
.mz-skill-name { font: 700 20px/1.2 var(--mz-sans); color: var(--mz-black); margin: 0; letter-spacing: -0.01em; }
.mz-skill ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mz-skill li {
    position: relative; padding-left: 18px; font: 400 14px/1.5 var(--mz-sans); color: #334155;
}
.mz-skill li::before { content: '♦'; position: absolute; left: 0; top: 0; font-family: var(--mz-pip-font); color: var(--mz-red); font-size: 12px; line-height: 21px; }
.mz-skill-link {
    font: 700 13px/1 var(--mz-sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--mz-black);
    text-decoration: none; border-bottom: 2px solid var(--mz-red); padding-bottom: 4px; align-self: flex-start;
}
.mz-skill-link:hover { color: var(--mz-red); }

/* ───────────── D: Collaboration ───────────── */
.mz-collab { background: #000; color: #fff; position: relative; overflow: hidden; }
.mz-collab::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(50% 60% at 15% 50%, rgba(255, 255, 255, 0.06), transparent 70%);
}
.mz-collab-grid { position: relative; display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
@media (min-width: 900px) { .mz-collab-grid { grid-template-columns: 0.8fr 1.2fr; gap: 72px; } }
.mz-collab-pair { display: flex; justify-content: center; gap: 0; }
.mz-collab-pair .mz-card { width: 200px; --mz-logo: 22px; --mz-tagline: 7px; --mz-pip: 6px; --mz-joker-size: 16px; --mz-card-title: 17px; --mz-card-body: 12px; }
.mz-collab-pair .mz-card:first-child { transform: rotate(-6deg) translateX(14px); z-index: 2; }
.mz-collab-pair .mz-card:last-child { transform: rotate(6deg) translateX(-14px) translateY(18px); z-index: 1; }
@media (max-width: 479px) { .mz-collab-pair .mz-card { width: 150px; --mz-logo: 16px; --mz-tagline: 6px; --mz-pip: 5px; --mz-joker-size: 12px; --mz-card-title: 13px; --mz-card-body: 10px; } }
.mz-collab .mz-h2 { color: #fff; }
.mz-collab .mz-sub { color: rgba(255, 255, 255, 0.75); }
.mz-collab .mz-eyebrow { color: rgba(255, 255, 255, 0.7); }
.mz-roles { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 32px; }
@media (min-width: 640px) { .mz-roles { grid-template-columns: 1fr 1fr; } }
.mz-role { border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 14px; padding: 20px; background: rgba(255, 255, 255, 0.03); }
.mz-role-label { font: 700 11px/1 var(--mz-sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--mz-red); margin: 0 0 10px; }
.mz-role p { font: 400 14.5px/1.55 var(--mz-sans); color: rgba(255, 255, 255, 0.8); margin: 0; }
.mz-role strong { color: #fff; }

/* ───────────── E: Conversion path ───────────── */
.mz-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 16px; counter-reset: none; }
@media (min-width: 768px) { .mz-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .mz-steps { grid-template-columns: repeat(4, 1fr); } }
.mz-step { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.mz-step-label { font: 700 11px/1 var(--mz-sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--mz-muted); margin: 0; }
.mz-step h3 { font: 700 18px/1.3 var(--mz-sans); color: var(--mz-black); margin: 0; letter-spacing: -0.01em; }
.mz-step p { font: 400 14.5px/1.55 var(--mz-sans); color: #475569; margin: 0; flex: 1; }
.mz-step > a { font: 700 13px/1 var(--mz-sans); letter-spacing: 0.04em; text-transform: uppercase; color: var(--mz-red); text-decoration: none; }
.mz-step > a:hover { text-decoration: underline; }
.mz-step p a { color: inherit; text-decoration: underline; text-decoration-color: rgba(15, 23, 42, 0.3); text-underline-offset: 2px; }
.mz-step p a:hover { color: var(--mz-red); }

/* ───────────── F: Final CTA ───────────── */
.mz-final { background: #000; color: #fff; text-align: center; position: relative; overflow: hidden; }
.mz-final::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(50% 80% at 50% 100%, rgba(220, 38, 38, 0.22), transparent 70%);
}
.mz-final .mz-container { position: relative; }
.mz-final .mz-h2 { color: #fff; max-width: 760px; margin-left: auto; margin-right: auto; }
.mz-final .mz-sub { color: rgba(255, 255, 255, 0.75); margin: 0 auto 32px; }
.mz-final .mz-cta-row { justify-content: center; }
.mz-final-dice { display: flex; justify-content: center; gap: 12px; margin-bottom: 28px; }
.mz-final-dice .mz-die-tile { width: 44px; height: 44px; flex-basis: 44px; --mz-pip: 7px; border-radius: 10px; }
.mz-disclaimer { margin: 28px auto 0; max-width: 640px; font: 400 12px/1.55 var(--mz-sans); color: rgba(255, 255, 255, 0.5); }
.mz-disclaimer a { color: rgba(255, 255, 255, 0.75); text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
    .mz-float { animation: none; }
    .mz-hand .mz-card, .mz-skill .mz-card, .mz-btn { transition: none; }
}

/* Fixed campaign header (partials/campaign_nav.html) sets --cn-h */
:is(.page-maxzaharenkov, .page-b9-home) main#main { padding-top: var(--cn-h, 84px); }
html:has(body:is(.page-maxzaharenkov, .page-b9-home)) { scroll-behavior: smooth; }
:is(.page-maxzaharenkov, .page-b9-home) section[id] { scroll-margin-top: var(--cn-h, 84px); }
@media (prefers-reduced-motion: reduce) { html:has(body:is(.page-maxzaharenkov, .page-b9-home)) { scroll-behavior: auto; } }

/* Card text: stack tag / title / body; keep clear of the corner indices */
.mz-card-text { padding: 0 22%; display: flex; flex-direction: column; align-items: center; }
.mz-card-text .mz-tag, .mz-card-text .mz-card-title { display: block; }
.mz-card-text .mz-tag { align-self: center; }
.mz-hand .mz-card { --mz-card-title: 17px; --mz-card-body: 12px; --mz-big: 50px; --mz-logo: 19px; --mz-tagline: 7px; }
.mz-collab-pair .mz-card { --mz-logo: 17px; --mz-card-title: 15px; }
.mz-branding { width: 80%; padding: 9% 6%; }
.mz-branding-logo { letter-spacing: 0.1em; white-space: nowrap; }
@media (max-width: 991px) { .mz-hand .mz-card { --mz-logo: 16px; --mz-card-title: 15px; --mz-big: 44px; } }
@media (max-width: 479px) {
    .mz-hand .mz-card { --mz-logo: 13px; --mz-tagline: 5px; --mz-card-title: 12px; --mz-card-body: 9px; --mz-big: 32px; }
    .mz-card-text .mz-tag { font-size: 8px; padding: 3px 7px; margin-bottom: 6px; }
    .mz-collab-pair .mz-card { --mz-logo: 12px; --mz-card-title: 12px; }
}
.mz-collab .mz-role p.mz-role-label { color: var(--mz-red); font-weight: 700; }
@media (max-width: 479px) {
    .mz-hand { height: 270px; }
    .mz-hero { padding-bottom: 56px; }
    .mz-hero-grid { gap: 32px; }
}

/* ───────────── 3D dice (ported from /dice · dice2.html) ───────────── */
.mz-dice-block { display: flex; flex-direction: column; align-items: center; margin: 0 0 72px; --mz-cube: 300px; }
@media (max-width: 479px) { .mz-dice-block { --mz-cube: 225px; margin-bottom: 56px; } }
.mz-cube-stage {
    width: calc(var(--mz-cube) * 1.6); height: calc(var(--mz-cube) * 1.6); max-width: 100%;
    perspective: calc(var(--mz-cube) * 5); display: flex; align-items: center; justify-content: center;
}
.mz-cube {
    width: var(--mz-cube); height: var(--mz-cube); position: relative; transform-style: preserve-3d;
    transition: transform 1s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.mz-face {
    position: absolute; inset: 0; border-radius: 12px; display: flex; align-items: center; justify-content: center;
    background: #fff; border: 1px solid #d1d5db; color: #000; user-select: none; text-align: center;
    font: 700 calc(var(--mz-cube) * 0.105)/1 var(--mz-sans); letter-spacing: 0.02em;
    backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.mz-f-front { font-family: var(--mz-pip-font); font-weight: 900; font-size: calc(var(--mz-cube) * 0.16); letter-spacing: 0.08em; }
.mz-f-bottom { color: var(--mz-red); font-size: calc(var(--mz-cube) * 0.15); }
.mz-cube.mz-cube-land .mz-face { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.9), inset 0 -18px 40px rgba(15, 23, 42, 0.04); }
.mz-f-front  { transform: rotateY(0deg)   translateZ(calc(var(--mz-cube) / 2)); }
.mz-f-back   { transform: rotateY(180deg) translateZ(calc(var(--mz-cube) / 2)); }
.mz-f-right  { transform: rotateY(90deg)  translateZ(calc(var(--mz-cube) / 2)); }
.mz-f-left   { transform: rotateY(-90deg) translateZ(calc(var(--mz-cube) / 2)); }
.mz-f-top    { transform: rotateX(90deg)  translateZ(calc(var(--mz-cube) / 2)); }
.mz-f-bottom { transform: rotateX(-90deg) translateZ(calc(var(--mz-cube) / 2)); }
.mz-roll-btn {
    margin-top: 8px; padding: 12px 28px; min-height: 48px; background: #000; color: #fff; border: 2px solid #000;
    border-radius: 8px; font: 700 15px/1 var(--mz-sans); cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}
.mz-roll-btn:hover:not(:disabled) { background: #fff; color: #000; }
.mz-roll-btn:disabled { opacity: 0.6; cursor: progress; }
.mz-roll-btn:focus-visible { outline: 3px solid var(--mz-red); outline-offset: 3px; }
.mz-roll-result { min-height: 24px; margin: 14px 0 0; font: 400 15px/1.5 var(--mz-sans); color: #334155; text-align: center; }
.mz-roll-result a { color: var(--mz-red); font-weight: 700; text-decoration: none; margin-left: 4px; }
.mz-roll-result a:hover { text-decoration: underline; }
/* Rotated faces can overhang the button — never let the die swallow clicks */
.mz-cube-stage, .mz-cube, .mz-face { pointer-events: none; }
.mz-roll-btn { position: relative; z-index: 2; }

/* ── Dice autoplay: elegant presentation ── */
.mz-cube-stage { position: relative; }
.mz-cube-tilt { transform-style: preserve-3d; transform: rotateX(-16deg) rotateY(-24deg); }
.mz-cube { transition: none; will-change: transform; }
.mz-face {
    background: linear-gradient(145deg, #ffffff 0%, #f6f6f7 100%);
    border: 1px solid #e2e4e8;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.9), inset 0 -18px 40px rgba(15, 23, 42, 0.04);
}
.mz-cube-shadow {
    position: absolute; left: 50%; bottom: 6%; width: calc(var(--mz-cube) * 0.95); height: calc(var(--mz-cube) * 0.16);
    transform: translateX(-50%); border-radius: 50%;
    background: radial-gradient(closest-side, rgba(15, 23, 42, 0.22), rgba(15, 23, 42, 0));
    transition: transform 1.5s cubic-bezier(0.65, 0, 0.35, 1), opacity 1.5s cubic-bezier(0.65, 0, 0.35, 1);
    pointer-events: none;
}
.mz-cube-stage.is-moving .mz-cube-shadow { transform: translateX(-50%) scale(0.82); opacity: 0.65; }
.mz-roll-result { transition: opacity 0.2s ease, transform 0.2s ease; margin-top: 4px; }
.mz-roll-result.is-changing { opacity: 0; transform: translateY(4px); }
.mz-roll-label {
    font: 700 13px/1 var(--mz-sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--mz-black);
    margin-right: 6px;
}
@media (prefers-reduced-motion: reduce) { .mz-cube-shadow, .mz-roll-result { transition: none; } }

/* Bigger die so the partner name breathes */
.mz-dice-block { --mz-cube: 340px; }
@media (max-width: 479px) { .mz-dice-block { --mz-cube: 250px; } }
@media (max-width: 479px) { .mz-cube-stage { width: 100%; height: calc(var(--mz-cube) * 1.5); } }
.mz-cube-shadow { transition-duration: var(--mz-move-ms, 1.3s); }

/* Face text wrapper — turned upright per landing by the autoplay script */
.mz-face-inner { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; }
/* Front face: MAX ZAHARENKOV × BAND9AI */
.mz-face.mz-f-name { display: flex; }
.mz-f-name::after { content: none; }
.mz-f-name .mz-face-inner { gap: 0; padding: 0 8%; box-sizing: border-box; }
.mz-f-name .mz-n1 {
    font: 700 calc(var(--mz-cube) * 0.062)/1 var(--mz-sans); letter-spacing: 0.5em; margin-right: -0.5em;
    color: var(--mz-red); text-transform: uppercase;
}
.mz-f-name .mz-n2 {
    font: 800 calc(var(--mz-cube) * 0.088)/1.1 var(--mz-sans); letter-spacing: 0.08em; margin: calc(var(--mz-cube) * 0.03) -0.08em 0 0;
    color: var(--mz-black); text-transform: uppercase;
}
.mz-f-name .mz-nx {
    font: 400 calc(var(--mz-cube) * 0.075)/1 var(--mz-pip-font); color: var(--mz-red);
    margin: calc(var(--mz-cube) * 0.055) 0 calc(var(--mz-cube) * 0.045);
}
.mz-f-name .mz-n3 {
    font: 900 calc(var(--mz-cube) * 0.1)/1 "Times New Roman", Times, serif; letter-spacing: 0.14em; margin-right: -0.14em;
    color: var(--mz-black);
}
.mz-f-name .mz-n1, .mz-f-name .mz-n2, .mz-f-name .mz-nx, .mz-f-name .mz-n3 { display: block; }

@media (max-width: 479px) { .mz-roll-label { letter-spacing: 0.1em; font-size: 12px; } .mz-roll-result { font-size: 14px; } }


/* ───────────── A2: IELTS is your passport ───────────── */
.mz-passport { background: #fff; }
.mz-goals { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 860px) { .mz-goals { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.mz-goal {
    position: relative; background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 30px 26px 28px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04); overflow: hidden;
}
.mz-goal::after {  /* perforated ticket edge */
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
    background: radial-gradient(circle at 6px 6px, var(--mz-bg-muted) 3px, transparent 3.5px) 0 0 / 14px 6px repeat-x;
    opacity: 0.9;
}
.mz-goal h3 { font: 800 22px/1.2 var(--mz-sans); letter-spacing: -0.02em; color: var(--mz-black); margin: 0 0 10px; }
.mz-goal p { font: 400 15px/1.6 var(--mz-sans); color: #475569; margin: 0; }
.mz-goal .mz-goal-test {
    font: 700 11px/1 var(--mz-sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--mz-red); margin: 0 0 14px;
}
.mz-stamp {
    position: absolute; top: 20px; right: 20px; width: 54px; height: 54px; border-radius: 50%;
    border: 2px dashed rgba(10, 10, 10, 0.35); display: flex; align-items: center; justify-content: center;
    transform: rotate(-12deg); color: var(--mz-black);
}
.mz-stamp span { font: 400 24px/1 var(--mz-pip-font); }
.mz-stamp--red { border-color: rgba(220, 38, 38, 0.55); color: var(--mz-red); }
.mz-passport-strip {
    margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px;
    background: #000; color: #fff; border-radius: 16px; padding: 22px 26px;
}
.mz-passport-strip p { margin: 0; font: 400 16px/1.5 var(--mz-sans); color: rgba(255, 255, 255, 0.8); max-width: 640px; }
.mz-passport-strip strong { color: #fff; }
@media (max-width: 479px) { .mz-passport-strip .mz-btn { width: 100%; } }
.mz-passport-note { margin: 14px 0 0; font: 400 12.5px/1.5 var(--mz-sans); color: var(--mz-muted); text-align: center; }
.mz-goal .mz-goal-test { padding-right: 64px; line-height: 1.35; }
.mz-goal h3 { padding-right: 56px; }

/* Joker corners: vertical JOKER index sits fully inside the card (no outward offset) */
.mz-corner--joker.mz-corner--tl { top: 5%; left: 5%; transform: none; }
.mz-corner--joker.mz-corner--br { bottom: 5%; right: 5%; transform: rotate(180deg); }
.mz-corner--joker .mz-joker-text { font-size: min(var(--mz-joker-size, 18px), 7.5cqh); line-height: 1.1; }
.mz-card { container-type: size; }

body:is(.page-maxzaharenkov, .page-b9-home) { font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: #0f172a; line-height: 1.5; }

/* Skill Fix cards (checkout template) inside the skills section */
.mz-skillfix { margin-top: 8px; }
.mz-skillfix-note { margin: 32px auto 0; max-width: 640px; text-align: center; font: 400 13.5px/1.6 var(--mz-sans); color: var(--mz-muted); }
.mz-skillfix-note a { color: var(--mz-red); font-weight: 700; text-decoration: none; }
.mz-skillfix-note a:hover { text-decoration: underline; }
:is(.page-maxzaharenkov, .page-b9-home) .checkout-joker-page [id$="-bundle"] { scroll-margin-top: var(--cn-h, 84px); }
/* Equal card widths on phones (wrappers otherwise shrink to content) */
.mz-skillfix [id$="-bundle"] { width: 100%; max-width: 350px; }

/* Partner Joker card: same lockup as the dice face / campaign nav */
.mz-partner-lockup { display: flex; flex-direction: column; align-items: center; line-height: 1; text-transform: uppercase; }
.mz-pl-first { font: 700 calc(var(--mz-card-title, 17px) * 0.62)/1 var(--mz-sans); letter-spacing: 0.5em; margin-right: -0.5em; color: var(--mz-red); }
.mz-pl-last { font: 800 var(--mz-card-title, 17px)/1.1 var(--mz-sans); letter-spacing: 0.06em; margin: 0.3em -0.06em 0 0; color: var(--mz-black); }
.mz-pl-x { font: 400 calc(var(--mz-card-title, 17px) * 0.85)/1 var(--mz-pip-font); color: var(--mz-red); margin: 0.45em 0 0.35em; }
.mz-pl-brand { font: 900 calc(var(--mz-card-title, 17px) * 0.95)/1 "Times New Roman", Times, serif; letter-spacing: 0.12em; margin-right: -0.12em; color: var(--mz-black); }

/* Checkout ladder framing: single centred cards (Reality, Complete) + face-card heading */
.mz-ladder-single { display: flex; justify-content: center; width: 100%; margin: 0 auto 56px; }
.mz-ladder-single > .checkout-joker-col { max-width: 350px; }
#tier-complete.mz-ladder-single { margin: 64px auto 0; }
.mz-ladder-head { text-align: center; margin: 0 auto 36px; max-width: 640px; }
.mz-ladder-head h3 { font: 800 clamp(22px, 3vw, 30px)/1.15 var(--mz-sans); letter-spacing: 0.04em; text-transform: uppercase; color: var(--mz-black); margin: 0 0 8px; }
.mz-ladder-head p { font: 400 15.5px/1.6 var(--mz-sans); color: #475569; margin: 0; }
:is(.page-maxzaharenkov, .page-b9-home) .checkout-joker-page [id^="tier-"] { scroll-margin-top: var(--cn-h, 84px); }

/* ── Homepage additions ── */
/* Hero stats row (claim registry values, same as the previous homepage) */
.mz-stats { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 56px; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 16px; overflow: hidden; }
@media (min-width: 768px) { .mz-stats { grid-template-columns: repeat(4, 1fr); } }
.mz-stat { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 20px 12px; background: #000; text-align: center; }
.mz-stat-num { font: 800 clamp(22px, 2.6vw, 30px)/1 var(--mz-sans); color: #fff; letter-spacing: -0.02em; }
.mz-stat-lbl { font: 600 11px/1.35 var(--mz-sans); letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }
.mz-stats-note { position: relative; margin: 12px auto 0; max-width: 680px; text-align: center; font: 400 12px/1.5 var(--mz-sans); color: rgba(255, 255, 255, 0.5); }
.mz-stats-note a { color: rgba(255, 255, 255, 0.75); text-decoration: underline; }
/* BAND9AI dice face: AI-POWERED / BAND9AI / suits / IELTS */
.mz-f-brand .mz-n3 { font-size: calc(var(--mz-cube) * 0.13); margin-top: calc(var(--mz-cube) * 0.035); }
.mz-f-brand .mz-nx { font-size: calc(var(--mz-cube) * 0.06); letter-spacing: 0.3em; margin: calc(var(--mz-cube) * 0.045) -0.3em calc(var(--mz-cube) * 0.035) 0; }
.mz-f-brand .mz-n2 { color: var(--mz-red); letter-spacing: 0.3em; margin-right: -0.3em; font-size: calc(var(--mz-cube) * 0.075); }
/* SEO related-guides block (injected into .mz-related-slot) */
.mz-related-slot .auto-related-links { margin: 40px 0 0 !important; background: #fff !important; border: 1px solid #e5e7eb; border-radius: 16px !important; padding: 22px 24px !important; }
.mz-related-slot .auto-related-links ul { display: flex !important; flex-wrap: wrap; gap: 6px 20px; padding: 0 !important; margin: 8px 0 0 !important; list-style: none !important; }
.mz-related-slot .auto-related-links li { margin: 0 !important; }
.mz-related-slot .auto-related-links a { color: var(--mz-black) !important; font-weight: 600; text-decoration: none !important; }
.mz-related-slot .auto-related-links a:hover { color: var(--mz-red) !important; }

/* Only the description stretches; keeps step titles aligned across cards */
.mz-step .mz-step-label { flex: 0 0 auto; }

/* Dice kicker — "You pick. We roll." */
.mz-kicker { max-width: 760px; margin: 0 auto 8px; padding: 0 8px; text-align: center; }
.mz-kicker-eyebrow {
    display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 7px 14px 7px 10px;
    border: 1px solid rgba(220, 38, 38, 0.25); border-radius: 999px; background: #fff;
    font: 700 12px/1 var(--mz-sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--mz-red);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}
.mz-kicker-die {
    width: 18px; height: 18px; flex: 0 0 auto; border-radius: 5px; background-color: var(--mz-red);
    background-image:
        radial-gradient(circle, #fff 1.7px, transparent 2.1px), radial-gradient(circle, #fff 1.7px, transparent 2.1px),
        radial-gradient(circle, #fff 1.7px, transparent 2.1px), radial-gradient(circle, #fff 1.7px, transparent 2.1px),
        radial-gradient(circle, #fff 1.7px, transparent 2.1px);
    background-size: 6px 6px; background-repeat: no-repeat;
    background-position: 2px 2px, 10px 2px, 6px 6px, 2px 10px, 10px 10px;
    transform: rotate(-12deg);
}
.mz-kicker-title {
    margin: 0; font: 900 clamp(46px, 11vw, 96px)/0.95 var(--mz-pip-font); letter-spacing: -0.035em; color: #000;
    text-wrap: balance;
}
.mz-kicker-hit {
    position: relative; display: inline-block; color: var(--mz-red); white-space: nowrap;
}
.mz-kicker-hit::after {
    content: ''; position: absolute; left: -2%; right: -2%; bottom: -0.16em; height: 0.2em; pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 24' preserveAspectRatio='none'%3E%3Cpath d='M4 16 C 60 6, 130 4, 196 9 S 280 14, 296 7' fill='none' stroke='%23dc2626' stroke-width='5' stroke-linecap='round'/%3E%3Cpath d='M30 20 C 100 13, 190 12, 270 15' fill='none' stroke='%23dc2626' stroke-width='2.5' stroke-linecap='round' opacity='.45'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
.mz-kicker-sub {
    max-width: 520px; margin: 18px auto 0; font: 500 clamp(15px, 2.2vw, 18px)/1.5 var(--mz-sans); color: #374151;
}
@media (max-width: 480px) {
    .mz-kicker-eyebrow { font-size: 10.5px; letter-spacing: 0.12em; margin-bottom: 14px; }
    .mz-kicker-title { font-size: 46px; }
    .mz-kicker-sub { font-size: 14.5px; margin-top: 14px; }
}
html[lang^="zh"] .mz-kicker-title { font-size: clamp(34px, 7vw, 68px); letter-spacing: 0.02em; line-height: 1.1; }
@media (max-width: 480px) { html[lang^="zh"] .mz-kicker-title { font-size: 34px; } }

/* Dice floor shadow: always below and behind the die (it used to paint over the bottom edge) */
.mz-cube-tilt { position: relative; z-index: 1; }
.mz-cube-shadow { z-index: 0; bottom: -2%; }

/* Mobile legibility + tap targets (audit 2026-10-11): body text >= 12px, standalone links/buttons >= 44px tall.
   Inline links inside sentences are left as-is (WCAG 2.5.8 inline exception). Card-back brand art stays decorative. */
@media (max-width: 768px) {
  .mz-step a, .mz-roll-result a, .auto-related-links a,
  .cf-site a, .cf-links a, .cf-contact a, .cn-lockup, .cf-lockup { display: inline-flex; align-items: center; min-height: 44px !important; }
  .cf-site a, .cf-links a, .cn-lockup, .cf-lockup { padding: 0 .35rem !important; min-width: 44px; justify-content: center; }
  .b9pv-trigger { min-height: 44px !important; }
  .mz-card-text p, .mz-card-text .mz-highlight { font-size: 12px !important; line-height: 1.35; }
  .mz-card-text .mz-tag { font-size: 11px !important; }
  .mz-stat-lbl, .mz-goal-test, .mz-kicker-eyebrow { font-size: 12px !important; }
  .checkout-joker-micro, .checkout-joker-save, .checkout-joker-joker-vert { font-size: 12px !important; }
  .checkout-joker-badge-pop span { font-size: 12px !important; }
}
