/* Eazy Max static v2. 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); }
/* 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;
}
#bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity .8s ease;
}
/* The poster sits under the video as the container background; the video fades in only after its first frame is
   painted, so the poster-to-video swap never shows a blank or colour-shifted frame. */
#bg-video.is-playing { opacity: 1; }
.video-bg-container { background: var(--em-yellow) url('../img/max-poster.jpg') center / cover no-repeat; }
@media (prefers-reduced-motion: reduce) { #bg-video { transition: none; } }
.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-video { object-position: 88% 50%; }
    .bg-layer { background-position: 88% 50%; }
    .video-bg-container { background-position: 88% 50%; }
}

/* Skills / progress bars (fill animates transform only) */
.skills-container { max-width: 90%; }
@media (max-width: 767.98px) { .skills-container { max-width: 100%; } }
.skill-label {
    font-family: 'EazyMax Display', sans-serif;
    font-size: clamp(.95rem, .85rem + .5vw, 1.3rem);
    font-weight: 700;
    color: var(--ink);
    letter-spacing: 1px;
    overflow-wrap: break-word;
    min-width: 0;
}
.skill-item .d-flex { gap: .75rem; }
.skill-percent {
    font-family: 'EazyMax Display', sans-serif;
    font-size: clamp(.95rem, .85rem + .5vw, 1.3rem);
    font-weight: 700;
    color: var(--tg-strong);
    letter-spacing: 1px;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}
.lang-level { text-align: right; color: var(--tg-strong); font-weight: 600; font-size: .95rem; }
.skill-progress-track {
    width: 100%;
    height: 10px;
    background-color: rgba(0, 61, 49, .14);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}
.skill-progress-fill {
    height: 100%;
    width: 100%;
    background-color: var(--em-green);
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 255, 102, .5);
    transform-origin: left center;
    transform: scaleX(1);
    transition: transform 1.5s cubic-bezier(.25, 1, .5, 1);
}
.js .skill-item:not(.progress-started) .skill-progress-fill { transform: scaleX(0); }

/* 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; }
    .js .skill-item:not(.progress-started) .skill-progress-fill { transform: none; }
    .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;
}

/* CV sheet */
.cv-sheet { padding: clamp(18px, 3vw, 40px); }
.cv-head { display: flex; gap: 16px; align-items: center; padding-bottom: 16px; margin-bottom: 18px; border-bottom: 2px solid var(--panel-border); }
.cv-avatar { width: 48px; height: auto; }
.cv-name { font-family: 'EazyMax Display', sans-serif; font-weight: 900; font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2.2rem); line-height: 1; letter-spacing: 1px; color: var(--tg-strong); margin: 0; }
.cv-role { margin: 6px 0 0; font-weight: 600; color: var(--ink-soft); }
.cv-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 12px 24px; margin: 0 0 26px; }
.cv-facts dt { font-size: .8rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; color: var(--ink-soft); }
.cv-facts dd { margin: 2px 0 0; font-weight: 700; font-size: 1.05rem; }
.cv-facts a, .cv-sheet a { color: var(--tg-strong); }
.cv-sub { font-size: clamp(1.15rem, 1rem + .7vw, 1.6rem); color: var(--tg-strong); margin: 0 0 18px; }
.cv-sheet .skills-container { max-width: 100%; }
.cv-note { font-weight: 600; margin: 4px 0 0; }
.skill-zero .skill-progress-track { background: repeating-linear-gradient(45deg, rgba(0, 61, 49, .16) 0 6px, transparent 6px 12px); }

/* 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; } }

/* A day with Max: timeline */
.day-note { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; font-weight: 700; font-size: .92rem; color: var(--ink); background: var(--panel); border: 1px dashed var(--tg-strong); border-radius: 999px; padding: 4px 14px; margin: 0 0 1.5rem; }
.timeline { list-style: none; padding: 0; margin: 0 0 1rem; position: relative; max-width: 860px; }
.timeline::before { content: ''; position: absolute; left: 36px; top: 12px; bottom: 12px; width: 2px; background: var(--em-green-dark); }
.timeline li { display: grid; grid-template-columns: 74px 1fr; gap: 14px; align-items: start; padding: 6px 0; position: relative; }
.tl-time { position: relative; z-index: 1; display: block; text-align: center; font-family: 'EazyMax Display', sans-serif; font-weight: 700; font-size: .85rem; letter-spacing: 1px; color: var(--em-yellow); background: var(--ink); border-radius: 999px; padding: 7px 0; font-variant-numeric: tabular-nums; }
.tl-card { margin: 0; background: var(--panel); border: 1px solid var(--panel-border); border-radius: 12px; padding: 10px 14px; line-height: 1.5; color: var(--ink); font-size: 1.02rem; }
.timeline li:last-child .tl-card { font-family: 'EazyMax Display', sans-serif; font-weight: 700; }

/* 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; }
.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; } }
.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; } }
