/* MailMax. Rule of thumb: on scroll only opacity/transform change, never filter/blur/layout. */

:root {
    --em-green: #009478;
    --em-green-dark: #007a63;   /* AA (5.3:1) as button/text background with white text */
    --em-yellow: #fdd80d;
    --em-black: #000;
    --neon-green: #00ff66;
    --tg: #005a48;              /* large green text (headings) on yellow / blurred yellow: >= 4:1 */
    --tg-strong: #004d3d;       /* small green text: >= 4.9:1 on the blurred yellow */
    --ink: #10261f;             /* body text on yellow: ~8:1 */
    --ink-soft: #27443a;        /* secondary text: >= 5.5:1 */
    --panel: rgba(255, 250, 228, .8);
    --panel-border: rgba(0, 77, 61, .16);
    --header-h: 76px;
}

html {
    scrollbar-width: thin;
    scrollbar-color: var(--em-green) var(--em-yellow);
    scroll-padding-top: 82px;
    -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}
body {
    margin: 0;
    padding: 0;
    color: var(--em-black);
    background: var(--em-yellow);
    font-family: 'Oxanium', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    overflow-x: clip;
}
img, video { max-width: 100%; }

@media (min-width: 1200px) { .container.custom-wide { max-width: 1340px !important; } }
@media (min-width: 1400px) { .container.custom-wide { max-width: 1520px !important; } }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background-color: var(--em-yellow); }
::-webkit-scrollbar-thumb { background-color: var(--em-green); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background-color: var(--em-green-dark); }

/* Accessibility helpers */
.skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 20000;
    padding: 12px 18px;
    background: #000;
    color: #fff;
    border-radius: 8px;
    font-weight: 700;
    transform: translateY(-200%);
}
.skip-link:focus { transform: none; color: #fff; }
:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
    box-shadow: 0 0 0 6px #000;
}
main:focus { outline: none; box-shadow: none; }

/* Headings and type scale */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: 'EazyMax Display', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1;
    margin-left: -3px;
    overflow-wrap: break-word;
}
.orbitron { font-family: 'EazyMax Display', sans-serif; letter-spacing: 1px; }
.oxanium { font-family: 'Oxanium', sans-serif; letter-spacing: 1px; }

.text-green { color: var(--tg) !important; transition: color .5s ease; }
.text-yellow { color: var(--em-yellow); }
.bg-green { background-color: var(--em-green); }
.bg-yellow { background-color: var(--em-yellow); }

.fw-200 { font-weight: 200 !important; } .fw-300 { font-weight: 300 !important; }
.fw-400 { font-weight: 400 !important; } .fw-500 { font-weight: 500 !important; }
.fw-600 { font-weight: 600 !important; } .fw-700 { font-weight: 700 !important; }
.fw-800 { font-weight: 800 !important; } .fw-900 { font-weight: 900 !important; }

.fs-xl { font-size: clamp(1.75rem, 1rem + 4vw, 4rem) !important; }
.fs-xxl { font-size: clamp(2.25rem, 1rem + 6vw, 6rem) !important; }
.fs-xxxl { font-size: clamp(2.5rem, 12vw, 8rem) !important; margin-left: -5px; }
.fs-7 { font-size: clamp(.875rem, .8rem + .2vw, .95rem) !important; }
.fs-8 { font-size: clamp(.8125rem, .78rem + .2vw, .95rem) !important; }
p.fs-1 { font-size: clamp(1.125rem, .95rem + 1.1vw, 2.3rem) !important; line-height: 1.3 !important; }
.feature-title { line-height: 1.25; }

/* Sections (no scroll snapping) */
section {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 96px 20px 120px;
}
.section-card {
    max-width: 65%;
    display: flex;
    flex-direction: column;
}
.start-logo { width: 84px; height: auto; margin: 0 0 14px; }
.cta-block small { margin-top: .25rem; }
@media (max-width: 991.98px) {
    .section-card { max-width: 100%; }
    section { padding-left: 16px; padding-right: 16px; }
}

/* Buttons */
.btn {
    font-weight: 700;
    border-radius: 25px;
    position: relative;
    overflow: hidden;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color .4s ease-in-out, color .4s ease-in-out;
}
.btn:hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,.6) 50%, rgba(255,255,255,0) 100%);
    transform: translateX(-150%) skewX(-25deg);
    animation: shine 4s infinite;
}
@keyframes shine {
    0% { transform: translateX(-150%) skewX(-25deg); }
    15%, 100% { transform: translateX(300%) skewX(-25deg); }
}
.btn-theme { background-color: var(--em-green-dark); color: #fff; padding: 6px 20px; }
.btn-theme:hover, .btn-theme:focus-visible { background-color: #000; color: #fff; }
.btn-lg { padding-left: 24px; padding-right: 24px; }

/* Header */
.glass-header {
    z-index: 1020;
    transition: transform .4s cubic-bezier(.25, 1, .5, 1), background-color .3s ease;
}
.glass-header.header-hidden { transform: translateY(-100%); }
.glass-header.menu-open { background: var(--em-yellow); box-shadow: 0 14px 32px rgba(0, 0, 0, .18); }
.glass-header.is-scrolled { background: var(--em-yellow); border-bottom: 1px solid rgba(0, 0, 0, .12); box-shadow: 0 6px 18px rgba(0, 0, 0, .08); }
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
    .glass-header.is-scrolled { background: rgba(253, 216, 13, .82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
    .glass-header.menu-open { background: var(--em-yellow); }
}
@media (prefers-reduced-motion: reduce) { .glass-header { transition: none; } }
/* Mobile menu: the same in-page sections as the desktop floating nav, then the interview CTA. */
@media (max-width: 991.98px) {
    #topNavbar { max-height: calc(100svh - 80px); overflow-y: auto; }
    #topNavbar .menu-sections { gap: 2px; margin: 12px 0 4px; }
    #topNavbar .menu-sections .nav-link {
        display: block; min-height: 44px; padding: 12px 14px; border-radius: 12px;
        font-family: 'EazyMax Display', sans-serif; font-weight: 700; font-size: .95rem; letter-spacing: 1px;
        text-transform: uppercase; text-align: left; color: var(--em-green-dark);
    }
    /* !important: the floating-nav .nav-link base rule forces a transparent background */
    #topNavbar .menu-sections .nav-link:hover, #topNavbar .menu-sections .nav-link:focus-visible { background-color: rgba(0, 0, 0, .06) !important; }
    #topNavbar .menu-sections .nav-link.active { background-color: var(--em-green-dark) !important; color: #fff !important; }
    #topNavbar .menu-sections + .navbar-nav { margin-top: 8px !important; padding-bottom: 12px; }
}
.navbar-brand { min-height: 44px; }
.navbar-brand .text-black { transition: color .5s ease; }
.navbar-toggler {
    width: 44px;
    height: 44px;
    padding: 0;
    display: grid;
    place-items: center;
    background: var(--em-green-dark);
    border-radius: 50%;
}
.lang-switch {
    display: inline-flex;
    padding: 3px;
    background: rgba(255, 255, 255, .9);
    border-radius: 999px;
    gap: 2px;
}
.lang-switch a {
    min-width: 44px;
    min-height: 38px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #003d31;
    font-weight: 700;
    font-size: .85rem;
    letter-spacing: 1px;
    text-decoration: none;
}
.lang-switch a[aria-current] { background: var(--em-green-dark); color: #fff; }
.lang-switch a:not([aria-current]):hover { background: rgba(0, 0, 0, .08); }

/* Floating section nav: fixed, only transform/opacity animate */
.floating-nav {
    position: fixed;
    bottom: 24px;
    bottom: max(24px, env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    z-index: 1010;
    max-width: calc(100% - 16px);
    background: rgba(255, 255, 255, .88);
    border: 1px solid rgba(255, 255, 255, .6);
    border-radius: 50px;
    padding: 4px 8px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .25);
}
.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 4px;
    position: relative;
    overflow-x: auto;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
}
.nav-list::-webkit-scrollbar { display: none; }
.nav-indicator {
    position: absolute;
    height: calc(100% - 4px);
    top: 2px;
    left: 0;
    width: 0;
    background-color: var(--em-green-dark);
    border-radius: 25px;
    z-index: 1;
    overflow: hidden;
    transition: transform .5s cubic-bezier(.25, 1, .5, 1), width .5s cubic-bezier(.25, 1, .5, 1);
}
.nav-indicator::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,.4) 50%, rgba(255,255,255,0) 100%);
    transform: translateX(-150%) skewX(-25deg);
    animation: shine 4s infinite;
}
.nav-link {
    color: #004d3d;
    background-color: transparent !important;
    text-decoration: none;
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    padding: 0 16px;
    min-height: 44px;
    min-width: 44px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    white-space: nowrap;
    transition: color .4s ease;
}
.nav-link:hover { color: #000; }
.nav-link.active { color: #fff !important; }
@media (min-width: 992px) { .nav-link { min-width: 120px; } }
@media (max-width: 575.98px) {
    .floating-nav { bottom: 10px; bottom: max(10px, env(safe-area-inset-bottom)); padding: 3px 6px; }
    .nav-link { font-size: .78rem; padding: 0 12px; letter-spacing: .5px; }
}

/* Reveal: opacity/transform only; content stays visible without JS and with reduced motion */
.js .reveal-element {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .8s cubic-bezier(.25, 1, .5, 1), transform .8s cubic-bezier(.25, 1, .5, 1);
}
.js .reveal-element.is-visible { opacity: 1; transform: none; }
.delay-100 { transition-delay: 100ms !important; } .delay-200 { transition-delay: 200ms !important; }
.delay-300 { transition-delay: 300ms !important; } .delay-400 { transition-delay: 400ms !important; }
.delay-500 { transition-delay: 500ms !important; } .delay-600 { transition-delay: 600ms !important; }
.delay-700 { transition-delay: 700ms !important; } .delay-800 { transition-delay: 800ms !important; }

.material-icons { vertical-align: middle; margin-bottom: 2px; }
.rounded-circle {
    border-radius: 50% !important;
    width: 40px;
    height: 40px;
    display: grid !important;
    align-content: center;
    justify-content: center;
}

/* Pulse dot */
.pulse-dot {
    position: relative;
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: var(--neon-green);
    border-radius: 50%;
    vertical-align: middle;
    flex-shrink: 0;
}
.pulse-dot::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: var(--neon-green);
    border-radius: 50%;
    z-index: -1;
    animation: pulse-ring 2s cubic-bezier(.215, .61, .355, 1) infinite;
}
@keyframes pulse-ring {
    0% { transform: scale(1); opacity: .8; }
    80%, 100% { transform: scale(3.5); opacity: 0; }
}

/* Typewriter */
.js .typewriter:not(.tw-ready) { visibility: hidden; }
.blinking-cursor {
    font-family: 'EazyMax Display', sans-serif;
    color: inherit;
    font-weight: 700;
    margin-left: 2px;
    line-height: 1;
    animation: blink-animation 1s step-start infinite;
    transition: opacity .4s ease;
}
.blinking-cursor.gone { opacity: 0; animation: none; }
@keyframes blink-animation { 50% { opacity: 0; } }

/* Background: fixed layer, never resized while scrolling (100lvh), never filtered */
.video-bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100lvh;
    z-index: -2;
    overflow: hidden;
    background-color: var(--em-yellow);
    contain: strict;
}
/* Poster + scroll-scrubbed canvas: see the "Hero scrub" block at the end of this file */
.bg-layer {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity .9s ease;
}
.bg-blur-1 { background-image: url('../img/bg-blur-1.jpg'); }
.bg-blur-2 { background-image: url('../img/bg-blur-2.jpg'); }
.video-bg-container[data-level="1"] .bg-blur-1,
.video-bg-container[data-level="2"] .bg-blur-1,
.video-bg-container[data-level="2"] .bg-blur-2 { opacity: 1; }
@media (max-width: 767.98px) {
    .bg-layer { background-position: 82% 50%; }
}

/* Chat dialog */
.custom-chat-modal {
    background-color: var(--em-yellow);
    border: none;
    border-radius: 16px;
    padding: 12px 16px 16px;
    width: min(720px, calc(100% - 24px));
    max-width: none;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    overflow: auto;
    color: #000;
}
.custom-chat-modal::backdrop { background: rgba(0, 0, 0, .6); }
html:has(dialog[open]) { overflow: hidden; }
.chat-dialog-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.chat-dialog-head .modal-title { color: #004d3d; font-weight: 700; font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); margin: 0; }
.chat-close {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #000;
    display: grid;
    place-items: center;
}
.chat-close:hover { background: rgba(0, 0, 0, .1); }
.chat-wrap { background-color: #fff; border: 2px solid var(--em-green-dark); border-radius: 14px; overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background-color: var(--em-green-dark); }
.chat-av {
    width: 44px; height: 44px; border-radius: 50%;
    background-color: #fff; color: var(--em-green-dark);
    display: grid; place-items: center; font-weight: 700; position: relative; font-size: 18px;
}
.chat-av .on {
    position: absolute; bottom: 0; right: 0; width: 12px; height: 12px; border-radius: 50%;
    background-color: var(--em-yellow); border: 2px solid var(--em-green-dark);
}
.chat-name { font-weight: 700; font-size: 16px; color: #fff; }
.chat-status { font-size: 13px; color: #fff; font-weight: 600; }
.chat-badge {
    margin-left: auto; font-size: 10px; font-weight: 700; color: #005c4b; background-color: #fff;
    border-radius: 5px; padding: 4px 8px; letter-spacing: .06em;
}
#em-chat-log {
    height: min(320px, 42vh);
    overflow-y: auto;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background-color: #fff;
    overscroll-behavior: contain;
}
#em-chat-log::-webkit-scrollbar { width: 6px; }
#em-chat-log::-webkit-scrollbar-thumb { background: var(--em-green); border-radius: 6px; }
.msg { display: flex; gap: 8px; max-width: 92%; }
.msg.out { align-self: flex-end; }
.msg .av {
    width: 28px; height: 28px; border-radius: 50%; background-color: var(--em-green-dark); color: #fff;
    display: grid; place-items: center; font-size: 11px; font-weight: 700; flex: 0 0 auto;
}
.bub { font-size: 15px; line-height: 1.45; padding: 10px 14px; overflow-wrap: anywhere; }
.bub.in { background-color: #f1f1f1; border-radius: 4px 14px 14px 14px; color: #000; }
.bub.out { background-color: var(--em-green-dark); color: #fff; border-radius: 14px 4px 14px 14px; }
.bub .btn { font-size: 14px; }
.qp-wrap { padding: 10px 14px 4px; display: flex; flex-wrap: wrap; gap: 8px; background-color: #fff; }
.qp {
    font-size: 14px; font-weight: 600; color: var(--em-green-dark); border: 1px solid var(--em-green-dark);
    background: #fff; border-radius: 22px; padding: 8px 14px; min-height: 44px; cursor: pointer;
    transition: background-color .2s, color .2s; text-align: left;
}
.qp:hover { background-color: var(--em-green-dark); color: #fff; }
.chat-input { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid #e0e0e0; background-color: #fff; }
.chat-input input, .chat-input textarea {
    flex: 1; min-width: 0; min-height: 44px; border: 1px solid #767676; background: #f9f9f9;
    border-radius: 999px; padding: 10px 16px; font-size: 16px; color: #000;
}
.chat-input input:focus, .chat-input textarea:focus { border-color: var(--em-green-dark); }
.send {
    width: 44px; height: 44px; border-radius: 50%; background-color: var(--em-green-dark); color: #fff;
    border: none; display: grid; place-items: center; cursor: pointer; flex: 0 0 auto; transition: background-color .2s;
}
.send:hover { background-color: #000; }
.dots span {
    display: inline-block; width: 6px; height: 6px; margin: 0 1.5px; background-color: var(--em-green-dark);
    border-radius: 50%; animation: blink 1.2s infinite both;
}
.dots span:nth-child(2) { animation-delay: .2s; }
.dots span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

/* Reduced motion: no reveal, typewriter, shine, pulse or smooth movement */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        transition-delay: 0ms !important;
        scroll-behavior: auto !important;
    }
    .js .reveal-element { opacity: 1; transform: none; }
    .js .typewriter:not(.tw-ready) { visibility: visible; }
    .blinking-cursor, .pulse-dot::after { display: none; }
}

/* Mobile: static light scrim so dark text stays readable over the suit at level 0 (never animated) */
.bg-scrim { display: none; }
@media (max-width: 767.98px) {
    .bg-scrim { display: block; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(253,216,13,.55), rgba(253,216,13,.7)); }
}

/* ===== Marketing sections (v2 content round). Text on the yellow blur is dark (ink / dark green);
   cards, CV, calculator, FAQ and form sit on light translucent panels (no backdrop-filter). ===== */
.text-ink { color: var(--ink) !important; }
.section-card.wide { max-width: 100%; }
.section-card.faq-card { max-width: min(100%, 940px); }
.section-intro, .section-lead {
    color: var(--ink);
    font-weight: 500;
    font-size: clamp(1.05rem, .95rem + .5vw, 1.4rem);
    line-height: 1.45;
    max-width: 50em;
    margin: 0 0 1.75rem;
}
.section-lead { font-size: clamp(1.15rem, .95rem + 1vw, 2rem); line-height: 1.3; font-weight: 600; }
.scroll-hint { color: var(--ink); font-size: 1rem; font-weight: 600; }
.panel {
    background: var(--panel);
    border: 1px solid var(--panel-border);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(70, 50, 0, .12);
    color: var(--ink);
}
.card-icon {
    width: 44px; height: 44px; flex: 0 0 44px;
    border-radius: 50%;
    background: var(--em-green-dark);
    color: #fff;
    display: grid; place-items: center;
    font-size: 22px; margin: 0;
}
.btn-outline-ink { border: 2px solid var(--ink); color: var(--ink); background: rgba(255, 255, 255, .25); padding: 6px 20px; }
.btn-outline-ink:hover, .btn-outline-ink:focus-visible { background: var(--ink); color: var(--em-yellow); border-color: var(--ink); }

/* Hero: name (brand) -> value proposition (h1) -> sub -> CTAs -> benefit strip. h1 is static text (no animation). */
.hero-brand { font-size: clamp(2.4rem, 1rem + 6.5vw, 6.5rem); line-height: 1; margin: 0 0 .9rem -4px; letter-spacing: 2px; }
.hero-title {
    font-size: clamp(1.45rem, .95rem + 2.1vw, 3rem);
    font-weight: 800;
    line-height: 1.14;
    color: var(--ink);
    margin: 0 0 1rem -2px;
    max-width: 24em;
}
.hero-sub { color: var(--ink); font-size: clamp(1rem, .92rem + .4vw, 1.25rem); line-height: 1.5; font-weight: 500; max-width: 44em; margin: 0 0 1.5rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { color: var(--ink-soft); font-size: .92rem; font-weight: 600; margin: .75rem 0 0; }
.hero-benefits { list-style: none; padding: 0; margin: 2.25rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.hero-benefits li { display: flex; gap: .8rem; align-items: flex-start; }
.hero-benefits strong { display: block; font-family: 'EazyMax Display', sans-serif; font-size: .95rem; line-height: 1.25; letter-spacing: .5px; color: var(--ink); margin-bottom: 4px; }
.hero-benefits span:not(.card-icon) { display: block; font-size: .92rem; line-height: 1.4; color: var(--ink-soft); }
@media (max-width: 767.98px) {
    .hero-benefits { grid-template-columns: 1fr; gap: .9rem; margin-top: 1.75rem; }
    .start-logo { width: 56px; margin-bottom: 10px; }
}
@media (max-width: 575.98px) { .hero-ctas .btn { width: 100%; } }
/* Short laptop viewports (e.g. 1920x1080 at 125% = about 1536x680): size the hero by height too, so the CTAs stay
   above the floating nav. */
#start { padding-top: clamp(64px, 11vh, 96px); }
.hero-brand { font-size: min(clamp(2.4rem, 1rem + 6.5vw, 6.5rem), 12vh); }
.hero-title { font-size: min(clamp(1.45rem, .95rem + 2.1vw, 3rem), 5.6vh); }
@media (min-width: 992px) and (max-height: 860px) {
    .start-logo { width: 56px; margin-bottom: 8px; }
    .hero-brand { margin-bottom: .5rem; }
    .hero-title { margin-bottom: .75rem; }
    .hero-sub { font-size: 1.05rem; line-height: 1.45; margin-bottom: 1rem; }
    .hero-note { margin-top: .5rem; }
}

/* Admin relief cards */
.card-grid { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.relief-card { padding: 22px 22px 20px; }
.relief-card h3, .step h3 { font-size: clamp(1rem, .95rem + .3vw, 1.2rem); line-height: 1.3; color: var(--tg-strong); margin: 14px 0 8px; letter-spacing: .5px; }
.relief-card p, .step p { margin: 0; font-size: 1rem; line-height: 1.5; }
.motto {
    font-family: 'EazyMax Display', sans-serif; font-weight: 700; letter-spacing: .5px;
    font-size: clamp(1.05rem, .95rem + .55vw, 1.45rem); line-height: 1.4;
    color: var(--ink); max-width: 40em;
    border-left: 4px solid var(--em-green-dark); padding-left: 16px; margin: 0 0 1rem;
}


/* How it works */
.steps { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.step { padding: 22px; }
.step-num { display: block; font-family: 'EazyMax Display', sans-serif; font-weight: 900; font-size: 2rem; line-height: 1; color: var(--em-green-dark); }

/* Calculator shell */
.calc { padding: clamp(18px, 3vw, 36px); display: grid; gap: 24px 36px; grid-template-columns: 1fr; }
@media (min-width: 992px) { .calc { grid-template-columns: 5fr 7fr; } }
.calc-inputs label { display: block; font-weight: 700; margin-bottom: 8px; }
.calc-range-row { display: flex; align-items: center; gap: 12px; }
.calc-range-row input[type="range"] { flex: 1; min-width: 0; min-height: 44px; accent-color: var(--em-green-dark); }
.calc-range-val { font-family: 'EazyMax Display', sans-serif; font-weight: 900; font-size: 1.6rem; min-width: 2ch; text-align: right; color: var(--tg-strong); }
.calc-unit { font-weight: 600; color: var(--ink-soft); }
.calc-money { display: flex; align-items: center; gap: 10px; }
.calc-money .form-control { max-width: 220px; }
.calc-help { font-size: .9rem; color: var(--ink-soft); margin: 8px 0 0; }
.calc-fineprint { grid-column: 1 / -1; font-size: .78rem; line-height: 1.4; color: var(--ink-soft); margin: 0; }
.calc-results { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; align-content: start; }
.calc-box { border-radius: 14px; padding: 16px; background: #fff; border: 1px solid var(--panel-border); }
.calc-box p { margin: 0; }
.calc-box .lbl { font-weight: 700; }
.calc-box .val { font-family: 'EazyMax Display', sans-serif; font-weight: 800; font-size: clamp(1.15rem, .95rem + 1vw, 1.75rem); margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.calc-box .unit { font-family: 'Oxanium', sans-serif; font-size: .9rem; font-weight: 600; }
.calc-box .note { font-size: .88rem; color: var(--ink-soft); }
.calc-box.is-max { background: var(--em-green-dark); border-color: var(--em-green-dark); color: #fff; }
.calc-box.is-max .note { color: #fff; }
.calc-box.is-diff { grid-column: 1 / -1; background: var(--ink); border-color: var(--ink); color: var(--em-yellow); }
.calc-box.is-diff .note { color: #fff; }
.calc-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
@media (max-width: 575.98px) { .calc-results { grid-template-columns: 1fr; } }


/* Pricing */
.price-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); max-width: 980px; margin-bottom: 1.25rem; }
@media (min-width: 1100px) { #arazas .card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.price-card { padding: clamp(20px, 2.5vw, 30px); display: flex; flex-direction: column; gap: 8px; }
.price-card p { margin: 0; }
.price-tag { font-size: .8rem; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700; color: var(--tg-strong); }
.price-card h3 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); color: var(--ink); margin: 0; }
.price-sub { color: var(--ink-soft); font-weight: 600; }
.price-card .price-amount { font-family: 'EazyMax Display', sans-serif; font-weight: 900; font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); line-height: 1.1; color: var(--tg-strong); margin: 8px 0; }
.price-unit { font-family: 'Oxanium', sans-serif; font-size: 1rem; font-weight: 600; color: var(--ink-soft); }
.price-list { list-style: none; padding: 0; margin: 0 0 14px; }
.price-list li { position: relative; padding-left: 28px; margin: 6px 0; line-height: 1.4; }
.price-list li::before { content: "\2713"; position: absolute; left: 0; top: 0; font-weight: 900; color: var(--em-green-dark); }
.price-card .btn { align-self: flex-start; margin-top: auto; }
.price-foot { color: var(--ink); font-weight: 600; }
.price-foot a { color: var(--tg-strong); font-weight: 700; }

/* FAQ (native details/summary) */
.faq-list { display: grid; gap: 10px; margin-bottom: 1rem; }
.faq-item summary { list-style: none; cursor: pointer; position: relative; padding: 15px 52px 15px 20px; min-height: 44px; font-weight: 700; font-size: 1.05rem; line-height: 1.35; border-radius: 18px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-family: 'EazyMax Display', sans-serif; font-weight: 700; font-size: 1.4rem; color: var(--tg-strong); }
.faq-item[open] summary::after { content: "\2013"; }
.faq-item p { margin: 0; padding: 0 20px 18px; line-height: 1.55; }
.faq-item a { color: var(--tg-strong); font-weight: 700; }

/* Closing CTA + lead form */
.lead-form { padding: clamp(18px, 3vw, 32px); }
.lead-form .form-label { font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.lead-form .form-control, .calc-money .form-control { min-height: 48px; border: 1.5px solid #6b7d76; border-radius: 12px; font-size: 16px; background: #fff; color: #000; }
.lead-form .form-control:focus, .calc-money .form-control:focus { border-color: var(--em-green-dark); box-shadow: 0 0 0 3px rgba(0, 122, 99, .25); }
.lead-form .form-control::placeholder { color: #66736e; }
.lead-form .form-check { padding-left: 2.1em; }
.lead-form .form-check-input { width: 22px; height: 22px; margin-left: -2.1em; margin-top: .1em; border: 1.5px solid #4c5d57; }
.lead-form .form-check-input:checked { background-color: var(--em-green-dark); border-color: var(--em-green-dark); }
.lead-form .form-check-label { line-height: 1.45; }
.lead-form .form-check-label a { color: var(--tg-strong); font-weight: 700; }
.lead-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.lead-note { font-size: .88rem; color: var(--ink-soft); }
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-alt { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 20px; color: var(--ink); font-weight: 600; }
.contact-alt a:not(.btn) { color: var(--ink); font-weight: 700; }
@media (max-width: 575.98px) { .lead-actions .btn { width: 100%; } }

/* Footer (outside the observed sections; room for the floating nav) */
.site-footer { position: relative; background: #0c2a22; color: #e8f2ee; padding: 40px 0 120px; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 34px; height: auto; }
.footer-name { font-family: 'EazyMax Display', sans-serif; font-weight: 900; letter-spacing: 1px; color: var(--em-yellow); margin: 0; }
.footer-tagline { margin: 2px 0 0; font-size: .92rem; }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; }
.footer-links a { color: var(--em-yellow); display: inline-block; padding: 10px 0; }
.footer-rights { margin: 20px 0 0; font-size: .85rem; color: #c9d9d3; }
@media (min-width: 992px) {
    /* keep large text in the left (plain yellow) zone; the blurred figure sits on the right */
    .section-card.wide > h2, .section-card.wide > .section-intro, .section-card.wide > .section-lead, .section-card.wide > .motto { max-width: 65%; }
}

/* ===== v2 interactive parts: chat FAB + teaser, chat blocks, calculator, lead form states ===== */
.chat-input textarea { resize: none; border-radius: 22px; line-height: 1.35; max-height: 120px; overflow-y: auto; font-family: inherit; }
.chat-input { align-items: flex-end; }
.send:disabled { opacity: .5; cursor: not-allowed; }
.send:disabled:hover { background-color: var(--em-green-dark); }
.chat-fab-wrap { position: fixed; right: 16px; bottom: 84px; z-index: 1009; display: flex; align-items: flex-end; gap: 10px; max-width: calc(100% - 24px); }
@media (min-width: 992px) { .chat-fab-wrap { bottom: 32px; right: 24px; flex-direction: column; align-items: flex-end; } }
.chat-fab { width: 56px; height: 56px; flex: 0 0 auto; border-radius: 50%; border: 0; background: var(--em-green-dark); color: #fff; display: grid; place-items: center; box-shadow: 0 4px 18px rgba(0, 0, 0, .3); cursor: pointer; }
.chat-fab:hover { background: #000; }
.chat-teaser { display: flex; align-items: center; background: #fff; color: var(--ink); border: 1.5px solid var(--em-green-dark); border-radius: 16px 16px 4px 16px; box-shadow: 0 4px 18px rgba(0, 0, 0, .25); max-width: 260px; }
.chat-teaser[hidden] { display: none; }
.chat-teaser-open { background: none; border: 0; padding: 10px 4px 10px 14px; font: inherit; font-weight: 600; text-align: left; color: inherit; cursor: pointer; }
.chat-teaser-x { background: none; border: 0; width: 44px; height: 44px; flex: 0 0 auto; display: grid; place-items: center; color: var(--ink); cursor: pointer; }
.chat-teaser-x .material-icons { font-size: 18px; }
.msg-choices, .msg-notice { align-self: stretch; }
.msg-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.msg-notice .bub { background: #fff8d6; border: 1px solid #c9a800; border-radius: 10px; font-size: 14px; color: #000; }
.msg-error .bub { background: #fdecea; border: 1px solid #b3261e; border-radius: 10px; color: #000; }
.bub p { margin: 0 0 .5em; } .bub p:last-child { margin-bottom: 0; }
.bub ul, .bub ol { margin: 0 0 .5em; padding-left: 1.2em; }
.bub a { color: #004d3d; font-weight: 600; }
.chat-cta { margin-top: 10px; }
.chat-closed .qp-wrap { display: none; }
.chat-api .qp-wrap { display: none; }
.calc-live-note { font-size: .9rem; }
.lead-form .is-invalid { border-color: #b3261e !important; }
.field-error { color: #9b1c15; font-size: .9rem; font-weight: 600; margin: 6px 0 0; }
.lead-form-msg { color: #9b1c15; font-weight: 600; margin: 0; }
.lead-calc-note { background: #fff; border: 1px dashed var(--em-green-dark); border-radius: 10px; padding: 10px 14px; margin: 0; font-size: .95rem; }
.lead-calc-note[hidden], .lead-success[hidden] { display: none; }
.lead-success { padding: clamp(18px, 3vw, 32px); }
.lead-success-title { color: var(--tg); font-weight: 900; font-size: 1.5rem; }
.lead-success-title:focus { outline: none; }
.lead-demo-note { font-weight: 700; color: var(--tg-strong); }
.chat-consent { display: none; margin: 0; padding: 0 14px 10px; font-size: .8rem; color: #333; background: #fff; }
.chat-api .chat-consent { display: block; }
.chat-consent a { color: #004d3d; font-weight: 600; }

/* ===== backend merge: legal/thank-you pages, phone FAB vs. lead form ===== */
.legal-page { min-height: 100svh; align-items: center; }
.legal-page .section-card { max-width: min(100%, 820px); }
.legal-page h1 { margin: .5rem 0 1rem; }
.legal-page .btn { align-self: flex-start; margin-top: 8px; }
.legal-page .legal-note { font-size: 1.05rem; color: var(--ink); }
.form-check + .field-error { margin-left: 0; }
@media (max-width: 991.98px) {
    /* the round chat button would sit on the consent row: hide it while the form is in view (main.js sets the class) */
    .chat-fab-wrap { transition: opacity .2s ease, visibility .2s ease; }
    .chat-fab-wrap.is-form-view { opacity: 0; visibility: hidden; pointer-events: none; }
    #kapcsolat { padding-bottom: 168px; }
}
@media (prefers-reduced-motion: reduce) { .chat-fab-wrap { transition: none; } }

/* === B2b: results, comparison, trust, faq, contact === */

/* Unfilled number/text token */
.ph {
    background: repeating-linear-gradient(135deg, rgba(0, 77, 61, .14) 0 4px, transparent 4px 8px);
    border-bottom: 2px dashed var(--tg-strong);
    border-radius: 3px;
    padding: 0 .2em;
    cursor: help;
    white-space: nowrap;
}

/* Browser-window screenshot frame */
.shot { margin: 0; }
.shot-frame {
    background: rgba(255, 250, 228, .9);
    border: 1px solid var(--panel-border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 14px 36px rgba(70, 50, 0, .18);
}
.shot-bar { display: flex; gap: 6px; align-items: center; padding: 9px 12px; background: rgba(0, 77, 61, .09); border-bottom: 1px solid var(--panel-border); }
.shot-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(0, 77, 61, .35); display: block; }
.shot-img { display: block; width: 100%; height: auto; }
.shot-ph {
    display: grid; place-items: center; align-content: center; gap: 6px; text-align: center;
    min-height: 200px; aspect-ratio: 16 / 10; padding: 16px; margin: 10px;
    border: 2px dashed var(--tg-strong); border-radius: 10px;
    background: repeating-linear-gradient(135deg, rgba(0, 77, 61, .07) 0 8px, transparent 8px 16px);
    color: var(--ink);
}
.shot-ph-icon { font-size: 34px; color: var(--tg-strong); }
.shot-ph-text { font-weight: 700; }
.shot-ph-slot { font-size: .8rem; color: var(--ink-soft); background: rgba(255, 255, 255, .5); padding: 1px 8px; border-radius: 6px; }
.shot-cap { margin-top: 10px; font-size: .95rem; font-weight: 600; color: var(--ink-soft); line-height: 1.35; }

/* Results */
.res-stats { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.res-stat { padding: 18px 20px; display: grid; gap: 6px; align-content: start; }
.res-num { font-family: 'EazyMax Display', sans-serif; font-weight: 900; font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.6rem); line-height: 1.05; color: var(--tg); }
.res-scale { font-weight: 600; margin: 0 0 28px; }
.res-shots { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); margin-bottom: 28px; }
.case-card { padding: clamp(18px, 3vw, 36px); margin-bottom: 28px; }
.case-title { color: var(--tg); font-size: clamp(1.3rem, 1rem + 1vw, 2rem); margin: 0 0 6px; }
.case-client { margin: 0 0 18px; }
.case-cols { display: grid; gap: 8px 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.case-col h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: 1px; color: var(--tg-strong); margin: 14px 0 4px; }
.case-col p { margin: 0; line-height: 1.5; }
.case-results { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; font-weight: 700; }
.case-thumbs { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); margin: 22px 0; }
.case-quote { margin: 0 0 12px; padding: 4px 0 4px 16px; border-left: 4px solid var(--em-green-dark); font-weight: 600; }
.case-quote p { margin: 0 0 4px; }
.case-quote footer { font-size: .9rem; color: var(--ink-soft); }
.case-method { margin: 0; font-size: .9rem; color: var(--ink-soft); }
.res-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }

/* Comparison: table on desktop, stacked cards on phones */
.comp-wrap { overflow: hidden; }
.comp-table { width: 100%; border-collapse: collapse; }
.comp-table th, .comp-table td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--panel-border); line-height: 1.4; }
.comp-table thead th { font-family: 'EazyMax Display', sans-serif; font-size: .9rem; color: var(--tg-strong); }
.comp-table thead .comp-mm-h { background: var(--em-green-dark); color: #fff; }
.comp-table tbody th { font-weight: 700; width: 24%; }
.comp-table .comp-mm { background: rgba(0, 148, 120, .12); font-weight: 700; }
.comp-table tbody tr:last-child > * { border-bottom: 0; }
.comp-lab { display: none; }
.comp-foot { margin: 14px 0 0; font-size: .9rem; color: var(--ink-soft); max-width: 60em; }
@media (max-width: 767.98px) {
    .comp-wrap { background: none; border: 0; box-shadow: none; border-radius: 0; overflow: visible; }
    .comp-table, .comp-table tbody, .comp-table tr, .comp-table th, .comp-table td { display: block; width: 100%; }
    .comp-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .comp-table tbody tr { background: var(--panel); border: 1px solid var(--panel-border); border-radius: 18px; margin-bottom: 12px; overflow: hidden; box-shadow: 0 8px 22px rgba(70, 50, 0, .1); }
    .comp-table tbody th { width: 100%; padding: 12px 16px; background: rgba(0, 77, 61, .09); border-bottom: 1px solid var(--panel-border); }
    .comp-table td { padding: 10px 16px; border-bottom: 1px solid var(--panel-border); }
    .comp-table tbody tr > td:last-child { border-bottom: 0; }
    .comp-lab { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; color: var(--tg-strong); margin-bottom: 2px; }
}

/* Trust */
.trust-grid { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.trust-item { display: flex; gap: 14px; padding: 18px 20px; align-items: flex-start; }
.trust-h { font-size: 1.1rem; font-weight: 800; margin: 0 0 4px; color: var(--tg-strong); }
.trust-item p { margin: 0; line-height: 1.5; }
.trust-deliv { font-weight: 700; margin: 0 0 16px; }
.trust-shot { max-width: 520px; }

/* FAQ extras */
.faq-item summary:focus-visible { outline: 3px solid var(--em-green-dark); outline-offset: 2px; }
.faq-more { margin: 0; font-weight: 600; }
.faq-more a { color: var(--tg-strong); font-weight: 700; }

/* ===== MailMax top sections (B2a): brand, hero scrim, proof, engine, automations ===== */
.brand-mark { width: 28px; height: auto; }
.brand-word { color: var(--ink); font-size: 1.15rem; letter-spacing: 1px; line-height: 1; }
/* Desktop hero: a left-to-right yellow wash keeps the text block readable over every scrub frame (static, never
   animated). The 62% stop covers the racer's arm when he flicks the envelope toward the headline (>= 4.5:1 for --ink);
   narrower or portrait screens, where the text column reaches the racer, get a mobile-like even wash. */
@media (min-width: 768px) {
    .bg-scrim { display: block; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(253,216,13,.82) 0%, rgba(253,216,13,.66) 46%, rgba(253,216,13,.36) 62%, rgba(253,216,13,0) 76%); }
}
@media (min-width: 768px) and (max-width: 1199.98px), (min-width: 768px) and (orientation: portrait) {
    .bg-scrim { background: linear-gradient(90deg, rgba(253,216,13,.82) 0%, rgba(253,216,13,.62) 55%, rgba(253,216,13,.5) 100%); }
}
.hero-badge { display: inline-flex; align-items: center; gap: .6rem; align-self: flex-start; margin: 0 0 1rem; padding: 6px 14px; border-radius: 999px; background: var(--panel); border: 1px solid var(--panel-border); color: var(--ink); font-weight: 700; font-size: .9rem; }
.hero-mark { display: flex; align-items: center; gap: 14px; margin: 0 0 .5rem; }
.hero-mark .start-logo { width: clamp(52px, 8vw, 84px); margin: 0; }
.hero-mark .hero-brand { margin: 0; }
.hero-scroll { margin-top: 1.5rem; }
@media (max-width: 575.98px) { .hero-scroll { display: none !important; } }
/* Proof strip */
.proof-section { min-height: 0; padding-top: 48px; padding-bottom: 48px; }
.proof-grid { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 992px) { .proof-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.proof-stat { padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.proof-value { font-weight: 900; font-size: clamp(1.15rem, .95rem + 1vw, 1.7rem); line-height: 1.1; color: var(--tg-strong); overflow-wrap: break-word; }
.proof-label { font-size: .95rem; line-height: 1.35; color: var(--ink-soft); }
.proof-note { margin: 0; font-size: .9rem; color: var(--ink-soft); max-width: 60em; }
/* Engine */
.engine-note { display: flex; align-items: flex-start; gap: .5rem; font-weight: 600; color: var(--ink); max-width: 50em; margin: 0 0 1.25rem; }
.engine-note .material-icons { color: var(--em-green-dark); }
.engine-figure { margin: 0 0 1.5rem; }
.mm-engine-mount { width: 100%; min-height: 0; aspect-ratio: 16 / 7; max-height: 420px; }
.mm-engine-mount:empty { display: none; }
.engine-caption { margin-top: .5rem; font-size: .9rem; color: var(--ink-soft); }
/* Automations */
.auto-trigger { font-size: .92rem !important; color: var(--tg-strong); margin: 0 0 8px !important; }
.auto-bench { margin-top: 10px !important; font-size: .85rem !important; color: var(--ink-soft); }

/* === B3: pricing + calculator === */
.price-box { padding: clamp(18px, 3vw, 32px); max-width: 560px; }
.price-box .lbl { font-weight: 700; }
.price-value { font-family: 'EazyMax Display', sans-serif; font-weight: 900; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); color: var(--tg-strong); font-variant-numeric: tabular-nums; }
.price-unit, .price-line { color: var(--ink-soft); }
.ph-price-badge { display: inline-block; font-size: .82rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--em-yellow); color: #000; border: 1px dashed #000; }
.calc-box.is-max .ph-price-badge { margin-top: 8px; }
.calc-volume { grid-column: 1 / -1; font-weight: 700; }
.calc-box.is-now { background: #fff; }
.calc-results [hidden], .calc-msg[hidden] { display: none; }
.calc-msg { grid-column: 1 / -1; }
.calc-money input[type="number"] { min-height: 48px; }

/* === Engine motion === */
/* MailMax decision engine. Animated properties: canvas pixels, plus opacity/transform on the HUD only. */

.mm-engine {
    /* Dark "contrast island" theme (default for data-variant="section"). Colours are read by engine.js. */
    --mm-raw: #fff3c4;              /* unknown customer */
    --mm-seg: #2fd3ab;              /* segmented (brand green, lifted for a dark ground) */
    --mm-conv: #fdd80d;             /* came back / converted: the single accent */
    --mm-halo: #fdd80d;
    --mm-line: rgba(47, 211, 171, .24);
    --mm-gate: rgba(47, 211, 171, .42);
    --mm-text: rgba(255, 250, 228, .94);
    --mm-muted: rgba(255, 250, 228, .62);
    --mm-node-bg: #0c2620;
    --mm-chip-bg: rgba(8, 28, 23, .72);
    --mm-chip-border: rgba(47, 211, 171, .2);
    position: relative;
    display: block;
    width: 100%;
    margin: 0;
    aspect-ratio: 16 / 9.4;
    overflow: hidden;
    isolation: isolate;
    border-radius: 18px;
    color: var(--mm-text);
    font-family: 'Oxanium', system-ui, sans-serif;
    background:
        radial-gradient(70% 80% at 30% 58%, rgba(30, 92, 76, .55) 0%, rgba(30, 92, 76, 0) 70%),
        radial-gradient(45% 55% at 92% 18%, rgba(253, 216, 13, .08) 0%, rgba(253, 216, 13, 0) 70%),
        linear-gradient(160deg, #0d2a23 0%, #081b16 100%);
    box-shadow: 0 30px 60px -28px rgba(16, 38, 31, .7), 0 0 0 1px rgba(0, 77, 61, .4), inset 0 1px 0 rgba(255, 250, 228, .07);
}
.mm-engine::before { /* dot grid, faded toward the edges */
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(255, 250, 228, .09) 1px, transparent 1.3px);
    background-size: 24px 24px;
    -webkit-mask-image: radial-gradient(75% 70% at 50% 50%, #000 30%, transparent 100%);
    mask-image: radial-gradient(75% 70% at 50% 50%, #000 30%, transparent 100%);
}
.mm-engine canvas {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
}

/* Light theme: transparent, sits directly on the yellow background (video). Default for data-variant="hero". */
.mm-engine[data-theme="light"] {
    --mm-raw: #10261f;
    --mm-seg: #007a63;
    --mm-conv: #004d3d;
    --mm-halo: #ffffff;
    --mm-line: rgba(16, 38, 31, .17);
    --mm-gate: rgba(16, 38, 31, .3);
    --mm-text: #10261f;
    --mm-muted: #27443a;
    --mm-node-bg: rgba(255, 250, 228, .9);
    --mm-chip-bg: rgba(255, 250, 228, .8);
    --mm-chip-border: rgba(0, 77, 61, .16);
    background: none;
    box-shadow: none;
    border-radius: 0;
}
.mm-engine[data-theme="light"]::before { display: none; }
.mm-engine[data-variant="hero"] { aspect-ratio: 4 / 3; }
.mm-engine.is-tall:not([data-variant="hero"]) { aspect-ratio: 2 / 3; }

/* HUD: real text over the canvas (translatable, crisp at any DPR). engine.js sets left/top. */
.mm-engine__hud,
.mm-engine__lanes {
    position: absolute;
    inset: 0;
    z-index: 2;
    margin: 0;
    padding: 0;
    list-style: none;
    pointer-events: none;
}
.mm-engine__hud > *,
.mm-lane__seg,
.mm-lane__act { position: absolute; left: 0; top: 0; opacity: 0; will-change: opacity, transform; }

.mm-engine__core {
    width: 256px;
    box-sizing: border-box;
    padding: 12px 14px 11px;
    translate: -50% 0;
    background: var(--mm-chip-bg);
    border: 1px solid var(--mm-chip-border);
    border-radius: 12px;
}
.mm-engine__title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 9px;
    font-family: 'EazyMax Display', sans-serif;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--mm-seg);
}
.mm-engine__title::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--mm-seg);
    box-shadow: 0 0 0 3px rgba(47, 211, 171, .18);
    animation: mm-live 1.8s ease-in-out infinite;
}
@keyframes mm-live { 50% { opacity: .35; } }
.mm-engine__signals { margin: 0; padding: 0; list-style: none; }
.mm-engine__signals li {
    display: grid;
    grid-template-columns: 1fr 70px;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    line-height: 1.6;
    color: var(--mm-muted);
}
.mm-meter {
    display: block;
    height: 3px;
    overflow: hidden;
    border-radius: 2px;
    background: rgba(255, 250, 228, .12);
}
.mm-engine[data-theme="light"] .mm-meter { background: rgba(16, 38, 31, .12); }
.mm-meter > span {
    display: block;
    height: 100%;
    background: var(--mm-seg);
    transform: scaleX(.5);
    transform-origin: 0 50%;
    transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.mm-engine__decision {
    margin: 8px 0 0;
    padding-top: 8px;
    border-top: 1px solid var(--mm-chip-border);
    min-height: 2.8em;
    font-size: 12px;
    line-height: 1.4;
    color: var(--mm-muted);
}
.mm-engine__decision b { font-weight: 600; color: var(--mm-text); }

.mm-engine__intake {
    translate: 0 -100%;
    max-width: 26%;
    margin: 0;
    font-size: 12px;
    line-height: 1.35;
    color: var(--mm-muted);
}
.mm-engine__intake strong { display: block; font-weight: 600; color: var(--mm-text); }

.mm-lane__seg {
    translate: 0 -100%;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .02em;
    white-space: nowrap;
    color: var(--mm-text);
}
.mm-lane__act { width: 30px; height: 30px; translate: -50% -50%; }
.mm-lane__icon {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    box-sizing: border-box;
    border-radius: 50%;
    border: 1px solid var(--mm-gate);
    background: var(--mm-node-bg);
    color: var(--mm-seg);
    font-size: 16px;
}
.mm-lane__text {
    position: absolute;
    left: 40px;
    bottom: 50%;
    margin-bottom: 9px;
    font-size: 12px;
    white-space: nowrap;
    color: var(--mm-muted);
}

.mm-engine__counter {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    translate: -100% 0;
    margin: 0;
    text-align: right;
    white-space: nowrap;
}
.mm-engine__count {
    font-family: 'EazyMax Display', sans-serif;
    font-size: clamp(22px, 2.6vw, 36px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: .02em;
    font-variant-numeric: tabular-nums;
    color: var(--mm-conv);
}
.mm-engine__counter > span { margin-top: 6px; white-space: nowrap; font-size: 12px; color: var(--mm-muted); }

/* Tall (phone) layout: header strip on top, counter bottom-right, action text under the line. */
.mm-engine.is-tall .mm-engine__core { translate: none; }
.mm-engine.is-tall .mm-engine__signals { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
.mm-engine.is-tall .mm-engine__signals li { grid-template-columns: 1fr 34px; gap: 6px; font-size: 11px; }
.mm-engine.is-tall .mm-engine__decision,
.mm-engine.is-tall .mm-engine__intake { display: none; }
.mm-engine.is-tall .mm-lane__seg { font-size: 12px; }
.mm-engine.is-tall .mm-lane__text { left: auto; right: 0; bottom: auto; top: 50%; margin: 18px 0 0; font-size: 11px; }
.mm-engine.is-tall .mm-engine__counter { translate: -100% -100%; }

/* Hero / bare: labels stay in the DOM for assistive tech but are visually hidden. */
.mm-engine--bare .mm-engine__hud,
.mm-engine--bare .mm-engine__lanes,
.mm-sr {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Optional sticky wrapper for scroll-scrubbed progress (desktop with hover only). */
.mm-sticky { position: relative; height: 280vh; }
.mm-sticky__pin {
    position: sticky;
    top: 0;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
}
@media (max-width: 899px), (hover: none), (prefers-reduced-motion: reduce) {
    .mm-sticky { height: auto; }
    .mm-sticky__pin { position: static; min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .mm-engine__title::before { animation: none; }
    .mm-meter > span { transition: none; }
}

/* === Engine motion: integration === */
#dontesi-motor .mm-sticky__pin { display: flex; flex-direction: column; justify-content: center; align-items: stretch; }
#dontesi-motor .mm-engine { width: 100%; max-height: calc(100svh - 190px); }
.engine-demo-note { margin: .25rem 0 0; text-align: center; font-size: .8rem; opacity: .7; font-style: italic; }
@media (max-width: 899px) { #dontesi-motor .mm-engine { max-height: none; } #dontesi-motor .mm-sticky { padding: 8px 0; } }
#dontesi-motor .mm-engine.is-tall { aspect-ratio: 5 / 9; }
@media (min-width: 900px) and (hover: hover) { #dontesi-motor .mm-sticky__pin { padding-bottom: 96px; box-sizing: border-box; } #dontesi-motor .mm-engine { max-height: calc(100svh - 230px); } }

/* === Hero scrub === */
/* Frame 0 as a poster <img> under the canvas (no-JS, reduced motion, Save-Data, first paint). Same cover focus as
   hero-scrub.js FOCUS, so the poster-to-canvas swap is pixel-exact: desktop right-weighted to keep the racer in view,
   mobile frames are already cropped around him. */
.bg-poster, .bg-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.bg-poster { object-fit: cover; object-position: 80% 50%; }
.bg-canvas { opacity: 0; transition: opacity .3s ease; }
.bg-canvas.is-ready { opacity: 1; }
@media (max-width: 767.98px) { .bg-poster { object-position: 50% 50%; } }
/* Scroll room for the take (range: hero-scrub.js measure()). Desktop pins the hero card while the racer acts, the
   take ends a quarter screen after the pin releases; mobile keeps the natural flow and plays until #szamok takes over.
   No JS, reduced motion or Save-Data (.scrub-static): the normal one-screen hero. */
@media (prefers-reduced-motion: no-preference) {
    .js:not(.scrub-static) #start { min-height: 200vh; min-height: 200svh; align-items: flex-start; }
}
@media (min-width: 768px) and (min-height: 600px) and (prefers-reduced-motion: no-preference) {
    .js:not(.scrub-static) #start { min-height: 270vh; min-height: 270svh; padding-top: 0; padding-bottom: 0; }
    .js:not(.scrub-static) #start > .container {
        position: sticky;
        top: 0;
        min-height: 100vh;
        min-height: 100svh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding-top: clamp(64px, 11vh, 96px);
        padding-bottom: 120px;
    }
}

/* === Pricing breakdown === */
.calc-breakdown { margin: 10px 0 0; padding: 10px 0 0; border-top: 1px solid rgba(255, 255, 255, .4); font-size: .92rem; }
.calc-breakdown .bd-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 2px 0; }
.calc-breakdown .bd-row[hidden] { display: none; }
.calc-breakdown dt { font-weight: 600; margin: 0; }
.calc-breakdown dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc-breakdown .bd-plus { display: inline-block; width: 1em; }
.calc-breakdown small { display: block; padding-left: 1em; font-size: .8rem; font-weight: 500; }
.price-box .price-line + .lbl, .price-box .price-unit + .lbl { margin-top: .25rem; }
/* Soft yellow halo behind the hero copy: invisible on the wall, lifts contrast where a frame puts the green suit under
   the text (flick toward the headline, narrow desktops). */
#start .hero-title, #start .hero-sub, #start .hero-note, #start .hero-benefits div {
    text-shadow: 0 0 .25em rgba(253,216,13,.95), 0 0 .6em rgba(253,216,13,.8);
}
/* 2026-10-13 pricing pillars: four hero benefits (2x2 on tablets, one row on wide screens), measurement section
   note + screenshot, and the non-summed commission line in the calculator. */
@media (min-width: 768px) { .hero-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .hero-benefits { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.meas-note { color: var(--ink-soft); font-size: .95rem; font-weight: 600; margin: -.75rem 0 1.5rem; }
.meas-shot { max-width: 960px; }
.calc-box.is-max .calc-comm { margin: 10px 0 0; padding-top: 8px; border-top: 1px dashed rgba(255, 255, 255, .45); font-weight: 600; }
