/* Shared UI refinements for home / sales / mail. Loaded after the product CSS.
   Rule: filled green = primary button only. Everything non-clickable is plain text or a light card. */

/* ---- Headings ---- */
h1, h2, h3, .section-title, .hero-title, .em-team-title { text-wrap: balance; }
.section-title { font-size: clamp(1.4rem, .95rem + 1.9vw, 2.55rem); line-height: 1.18; }
h2.fs-xl { font-size: clamp(1.45rem, 1rem + 2.35vw, 3.1rem) !important; line-height: 1.14 !important; }
.em-team .em-team-title { font-size: clamp(1.4rem, 1.05rem + 1.3vw, 2.15rem); }

/* ---- Primary buttons: big, strong ---- */
.btn-theme:not(.btn-sm):not(.nav-cta) {
    min-height: 56px; padding: 10px 32px; font-size: 1.12rem; gap: 10px;
    box-shadow: 0 8px 20px rgba(0, 77, 61, .28);
    transition: background-color .4s ease-in-out, color .4s ease-in-out, box-shadow .25s ease, transform .25s ease;
}
.btn-theme:not(.btn-sm):not(.nav-cta) .material-icons { font-size: 1.35em; }
.btn-theme:not(.btn-sm):not(.nav-cta):hover, .btn-theme:not(.btn-sm):not(.nav-cta):focus-visible {
    box-shadow: 0 12px 26px rgba(0, 77, 61, .38); transform: translateY(-2px);
}
.hero .btn-theme:not(.btn-sm):not(.nav-cta), .hero-ctas .btn-theme { min-height: 62px; padding: 12px 38px; font-size: 1.15rem; }
.nav-cta, .btn-theme.btn-sm { min-height: 44px; padding: 6px 20px; font-size: 1rem; box-shadow: none; }
@media (max-width: 576px) {
    form button.btn-theme[type="submit"] { width: 100%; }
    .hero .btn-theme:not(.btn-sm), .hero-ctas .btn-theme { padding-left: 26px; padding-right: 26px; }
}
@media (prefers-reduced-motion: reduce) {
    .btn-theme:not(.btn-sm):not(.nav-cta), .btn-theme:not(.btn-sm):not(.nav-cta):hover, .btn-theme:not(.btn-sm):not(.nav-cta):focus-visible { transform: none; transition: background-color .2s, color .2s; }
}

/* ---- Secondary action: text link with an arrow ---- */
.btn.btn-outline-ink {
    background: none; border: 0; box-shadow: none; border-radius: 0; overflow: visible;
    min-height: 44px; padding: 6px 2px; font-size: 1.05rem; color: var(--ink); gap: 0;
    text-decoration: underline transparent 2px; text-underline-offset: 6px; transition: text-decoration-color .2s ease, color .2s ease;
}
.btn.btn-outline-ink .material-icons:first-child { display: none; }
.btn.btn-outline-ink::after, .btn.btn-outline-ink:hover::after {
    content: "\2192"; position: static; width: auto; height: auto; background: none; animation: none;
    transform: none; margin-left: 8px; font-weight: 700; transition: transform .2s ease;
}
.btn.btn-outline-ink:hover, .btn.btn-outline-ink:focus-visible { background: none; color: var(--em-green-dark); text-decoration-color: currentColor; }
.btn.btn-outline-ink:hover::after, .btn.btn-outline-ink:focus-visible::after { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) { .btn.btn-outline-ink:hover::after, .btn.btn-outline-ink:focus-visible::after { transform: none; } }

/* ---- Non-clickable status chips: plain text + dot ---- */
.live-pill, .hero-badge {
    padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; cursor: default;
    font-weight: 600; font-size: .88rem; color: var(--ink);
}
.live-ticker {
    padding: 0; border-radius: 0; background: none; box-shadow: none; color: var(--ink); cursor: default; font-size: .88rem;
}
.live-ticker .tk-who { color: var(--tg-strong, var(--em-green-dark)); }
.chips li {
    padding: 0; border: 0; border-radius: 0; background: none; cursor: default; font-weight: 600; font-size: .92rem;
    display: inline-flex; align-items: center; gap: 8px;
}
.chips li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--em-green-dark); flex: 0 0 6px; }
.chips-dark li::before { background: var(--dk-green); }
.chips .chip-soon { opacity: .8; }
.chips .chip-soon::before { background: none; border: 1px solid var(--em-green-dark); }
.journey { gap: 4px 0; }
.journey li { padding: 2px 0; border-radius: 0; background: none; font-size: .86rem; cursor: default; }
.journey li:not(:last-child)::after { content: none; }
.journey li + li::before { content: "/"; margin: 0 9px; color: var(--ink-soft); font-weight: 400; }
.journey li:last-child { background: none; color: var(--em-green-dark); text-decoration: underline 2px; text-underline-offset: 5px; }

/* ---- Section nav: translucent, small type, underline for the active item ---- */
.floating-nav {
    background: rgba(255, 255, 255, .6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, .5); box-shadow: 0 2px 12px rgba(0, 0, 0, .12); padding: 2px 6px;
}
.floating-nav .nav-indicator {
    height: 3px; top: auto; bottom: 6px; border-radius: 2px; background: var(--em-green-dark);
    clip-path: inset(0 14px); overflow: visible;
}
.floating-nav .nav-indicator::after { display: none; }
.floating-nav .nav-link { font-size: .72rem; font-weight: 600; letter-spacing: .8px; min-height: 40px; }
.floating-nav .nav-link.active, .floating-nav .nav-link.active:hover { color: var(--em-green-dark) !important; font-weight: 800; }
@media (max-width: 991.98px) {
    #topNavbar .menu-sections .nav-link.active { background-color: rgba(0, 122, 99, .1) !important; color: var(--em-green-dark) !important; box-shadow: inset 3px 0 0 var(--em-green-dark); }
}

/* ---- Filled green boxes that are not buttons -> light cards with a green accent ---- */
.vs-win { background: rgba(0, 122, 99, .09); color: var(--ink); border-top: 3px solid var(--em-green-dark); }
.vs-win .material-icons { color: var(--em-green-dark); }
.tile-in { background: var(--panel); color: var(--ink); border: 2px solid var(--em-green-dark); }
.tile-in p { color: var(--ink-soft); }
.tile-in .card-icon { background: var(--em-green-dark); color: #fff; }
.steps.is-running .step.is-lit { background: rgba(0, 122, 99, .1); color: var(--ink); box-shadow: inset 0 3px 0 var(--em-green-dark); }
.steps.is-running .step.is-lit .step-num { color: var(--em-green-dark); }
.steps.is-running .step.is-lit p { color: var(--ink-soft); }
.layer[aria-selected="true"] { background: rgba(0, 122, 99, .1); color: var(--ink); box-shadow: inset 4px 0 0 var(--em-green-dark); }
.layer[aria-selected="true"] .layer-n { color: var(--em-green-dark); }
.layer[aria-selected="true"] .layer-hint { color: var(--ink-soft); }
.calc-box.is-max { background: rgba(0, 122, 99, .1); border-color: var(--em-green-dark); color: var(--ink); }
.calc-box.is-max .note { color: var(--ink-soft); }
.calc-box.is-max .calc-comm { border-top-color: rgba(0, 77, 61, .3); }

/* Narrow phones: the header has no room for the system link next to the language switch and the
   menu button (it wrapped onto the hero); the footer and the team cards still link the EazyMAX page. */
@media (max-width: 575.98px) {
    .home-link { display: none; }
}
