/* The public website of miCondomin.io (.architecture/public-site/guide.md). Colours, corners and
   shadows come from the Bosque theme (/assets/css/theme.css, loaded first); FoXE is the face of
   both headings and text (lib/fonts.php). Buttons have rounded corners and are never pills:
   pills mean status in the app (.architecture/login-hub/theme.md). */

:root {
    --hdr-h: 76px;
    --hdr-h-scrolled: 64px;
    --wrap: 1180px;
    --ease: cubic-bezier(.39, .24, .21, .99);
    --font-head: "FoXE", "Segoe UI", Arial, sans-serif;
    --font-body: "FoXE", "Segoe UI", Arial, sans-serif;
    --head-weight: 700;
    --body-weight: 400;
    --hero-shade: linear-gradient(100deg, rgba(10, 33, 26, .94) 0%, rgba(13, 41, 32, .86) 42%, rgba(18, 51, 41, .45) 100%);
}

/* ---------- Colour tokens per section background ---------- */
.theme-top {
    --bg: var(--mc-top); --title: #fff; --text: rgba(255, 255, 255, .86); --muted: var(--mc-on-brand-soft);
    --accent: var(--mc-brand-bright); --accent-hover: #64e69d; --on-accent: #0c2219; --overline: var(--mc-brand-bright);
    --line: rgba(255, 255, 255, .14); --link: #fff; --ghost: #fff;
}
.theme-brand {
    --bg: var(--mc-brand); --title: #fff; --text: rgba(255, 255, 255, .9); --muted: var(--mc-on-brand-soft);
    --accent: #fff; --accent-hover: var(--mc-tint); --on-accent: var(--mc-brand); --overline: var(--mc-on-brand-soft);
    --line: rgba(255, 255, 255, .2); --link: #fff; --ghost: #fff;
}
.theme-tint {
    --bg: var(--mc-tint); --title: var(--mc-ink); --text: #2c3d36; --muted: var(--mc-muted);
    --accent: var(--mc-brand); --accent-hover: var(--mc-brand-hover); --on-accent: #fff; --overline: var(--mc-brand);
    --line: #cfe2d7; --link: var(--mc-brand); --ghost: var(--mc-brand);
}
.theme-light {
    --bg: #fff; --title: var(--mc-ink); --text: #2c3d36; --muted: var(--mc-muted);
    --accent: var(--mc-brand); --accent-hover: var(--mc-brand-hover); --on-accent: #fff; --overline: var(--mc-brand);
    --line: var(--mc-line); --link: var(--mc-brand); --ghost: var(--mc-brand);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + 12px); }
body {
    margin: 0; overflow-x: clip; background: var(--mc-bg); color: var(--mc-ink);
    font: var(--body-weight) 17px/1.6 var(--font-body); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
p { margin: 0 0 1rem; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: var(--head-weight); line-height: 1.15; margin: 0 0 .6rem; letter-spacing: -.01em; }
b, strong { font-weight: 700; }
a { color: var(--link, var(--mc-brand)); }
[hidden] { display: none !important; }
.skip-link { position: absolute; left: -999px; top: 8px; background: #fff; color: var(--mc-ink); padding: 8px 12px; z-index: 1000; border-radius: var(--mc-radius-control); }
.skip-link:focus { left: 8px; }
.ui-icon, .social-icon { width: 1.15em; height: 1.15em; flex: none; }

.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }
.row { display: flex; flex-wrap: wrap; margin: 0 -16px; }
.row > [class*="col-"] { width: 100%; padding: 0 16px; }
@media (min-width: 768px) {
    .col-sm-5 { flex: 0 0 41.666%; max-width: 41.666%; } .col-sm-6 { flex: 0 0 50%; max-width: 50%; } .col-sm-7 { flex: 0 0 58.333%; max-width: 58.333%; }
}
@media (min-width: 992px) {
    .col-lg-4 { flex: 0 0 33.333%; max-width: 33.333%; } .col-lg-5 { flex: 0 0 41.666%; max-width: 41.666%; }
    .col-lg-7 { flex: 0 0 58.333%; max-width: 58.333%; } .col-lg-8 { flex: 0 0 66.666%; max-width: 66.666%; }
    .col-lg-10 { flex: 0 0 83.333%; max-width: 83.333%; } .offset-lg-1 { margin-left: 8.333%; } .mx-lg-auto { margin-left: auto; margin-right: auto; }
}

/* ---------- Type ---------- */
.fs-title-xs { font-size: 15px; }
.fs-title-sm { font-size: clamp(26px, 3vw, 34px); margin-bottom: 1rem; }
.fs-title-md { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 1rem; }
.fs-title-lg { font-size: clamp(30px, 4vw, 48px); margin-bottom: 1rem; }
.fs-sub-sm { font-size: clamp(17px, 1.5vw, 19px); }
.fs-body-sm, .fs-body-md { font-size: 17px; }
.mb-4 { margin-bottom: 1.5rem !important; }
.c-title { color: var(--title); }
.c-sub { color: var(--text); }
.c-desc { color: var(--text); }
.overline { color: var(--overline); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .75rem; }

/* ---------- Sections ---------- */
.sec { position: relative; background: var(--sec-bg, var(--bg)); color: var(--text); isolation: isolate; }
.sec-bg { position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: center; }
.sec-pad-md { padding: clamp(40px, 6vw, 64px) 0; }
.sec-pad-lg { padding: clamp(56px, 8vw, 104px) 0; }
.sec-pad-xl { padding: clamp(72px, 10vw, 128px) 0; }
main > .sec:first-child:not(.sec-heroLogin) { padding-top: var(--hdr-h); }
.sec.is-hidden { opacity: .45; }

/* Reveal on scroll (site.js adds .is-in) */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .45s var(--ease), transform .45s var(--ease); transition-delay: var(--rv-delay, 0ms); }
.js .rv.is-in { opacity: 1; transform: none; }
.is-editing .rv, .is-editing.js .rv { opacity: 1 !important; transform: none !important; transition: none; }
@media (prefers-reduced-motion: reduce) { .js .rv { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem; text-align: center;
    font: 700 16px/1.2 var(--font-body); text-decoration: none; border: 0; border-radius: var(--mc-radius-control);
    cursor: pointer; transition: background-color .15s, box-shadow .15s, color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: .55rem 1rem; min-height: 40px; font-size: 15px; }
.btn-md { padding: .75rem 1.35rem; min-height: 48px; }
.btn-lg { padding: .9rem 1.7rem; min-height: 54px; font-size: 17px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent, var(--mc-brand)); color: var(--on-accent, #fff); box-shadow: 0 6px 18px -10px rgba(0, 0, 0, .45); }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--accent-hover, var(--mc-brand-hover)); color: var(--on-accent, #fff); }
.btn-ghost { background: transparent; color: var(--ghost); box-shadow: inset 0 0 0 2px currentColor; }
.btn-ghost:hover, .btn-ghost:focus-visible { background: rgba(255, 255, 255, .08); }
.btn-ghost-primary { background: transparent; color: var(--link); box-shadow: inset 0 0 0 2px var(--line); }
.btn-ghost-primary:hover, .btn-ghost-primary:focus-visible { box-shadow: inset 0 0 0 2px var(--link); }
.btns { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.5rem; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; color: inherit; cursor: pointer; padding: 8px; border-radius: var(--mc-radius-control); }
.icon-btn:hover { background: rgba(127, 127, 127, .14); }

/* ---------- Header ---------- */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--hdr-h);
    transition: background-color .25s, box-shadow .25s, height .25s;
}
.site-header.hdr-over-dark { color: #fff; }
.site-header.hdr-over-light, .site-header.is-scrolled, .site-header.menu-open {
    background: rgba(255, 255, 255, .97); color: var(--mc-ink); box-shadow: 0 1px 0 var(--mc-line), 0 10px 30px -22px rgba(20, 35, 30, .5);
    backdrop-filter: saturate(1.4) blur(8px);
}
.site-header.is-scrolled { height: var(--hdr-h-scrolled); }
.hdr-inner { height: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; flex: none; }
.logo-mark { width: 40px; height: 40px; border-radius: 10px; object-fit: contain; background: #fff; padding: 3px; }
.logo-word { font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.hdr-over-light .brand-mi, .is-scrolled .brand-mi, .menu-open .brand-mi { color: var(--mc-brand); }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav > ul { display: flex; align-items: center; gap: 6px; }
.main-nav > ul > li { position: relative; display: flex; align-items: center; }
.main-nav a { color: inherit; text-decoration: none; }
.main-nav > ul > li > a { display: block; padding: 8px 12px; border-radius: var(--mc-radius-control); font-size: 16px; opacity: .9; }
.main-nav > ul > li > a:hover, .main-nav > ul > li > a.is-active { opacity: 1; background: rgba(127, 127, 127, .14); }
.dropdown-toggle { background: none; border: 0; color: inherit; cursor: pointer; padding: 6px 4px; margin-left: -6px; display: inline-flex; }
.dropdown-toggle .ui-icon { width: 16px; height: 16px; }
.dropdown {
    position: absolute; top: 100%; left: 0; min-width: 270px; padding: 8px; margin-top: 6px; background: #fff; color: var(--mc-ink);
    border: 1px solid var(--mc-line); border-radius: var(--mc-radius-card); box-shadow: var(--mc-shadow-popover);
    opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s;
    max-height: calc(100vh - 120px); overflow: auto;
}
.has-children:hover > .dropdown, .has-children:focus-within > .dropdown, .has-children.is-open > .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: block; padding: 8px 12px; border-radius: var(--mc-radius-control); font-size: 15px; }
.dropdown a:hover, .dropdown a.is-active { background: var(--mc-tint); color: var(--mc-brand); }
.hdr-tools { display: flex; align-items: center; gap: 10px; }
.site-header .locale-switch { font-size: 14px; }
.btn-login, .btn-request { padding: .6rem 1.1rem; min-height: 42px; font-size: 15px; }
.site-header .btn-request { color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.login-card .btn-ghost-primary { --link: var(--mc-brand); --line: var(--mc-line); }
@media (max-width: 1100px) { .site-header .btn-request { display: none; } }
.hdr-over-dark:not(.is-scrolled):not(.menu-open) .btn-login { background: var(--mc-brand-bright); color: #0c2219; }
.menu-toggle { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; color: inherit; position: relative; }
.menu-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-toggle span:nth-child(1) { top: 15px; } .menu-toggle span:nth-child(2) { top: 21px; } .menu-toggle span:nth-child(3) { top: 27px; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 991.98px) {
    .hdr-inner { gap: 12px; padding: 0 16px; }
    .menu-toggle { display: inline-block; }
    .search-toggle { display: none; }
    .site-header.menu-open { backdrop-filter: none; }
    .main-nav {
        position: fixed; top: var(--hdr-h); left: 0; right: 0; bottom: 0; margin: 0; background: #fff; color: var(--mc-ink);
        padding: 16px 16px 32px; overflow: auto; transform: translateX(100%); transition: transform .25s var(--ease);
    }
    .is-scrolled .main-nav { top: var(--hdr-h-scrolled); }
    .menu-open .main-nav { transform: none; }
    .main-nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
    .main-nav > ul > li { flex-wrap: wrap; }
    .main-nav > ul > li > a { flex: 1; font-size: 18px; padding: 12px; }
    .dropdown-toggle { width: 44px; height: 44px; margin: 0; align-items: center; justify-content: center; }
    .dropdown-toggle .ui-icon { width: 22px; height: 22px; transition: transform .2s; }
    .has-children.is-open > .dropdown-toggle .ui-icon { transform: rotate(180deg); }
    .main-nav .dropdown {
        position: static; opacity: 1; visibility: visible; transform: none; display: none; min-width: 0; box-shadow: none; max-height: none;
        border: 0; border-left: 2px solid var(--mc-line); border-radius: 0; margin: 0 0 8px 12px; padding: 0 0 0 8px; flex: 0 0 calc(100% - 12px);
    }
    .has-children.is-open > .dropdown { display: block; }
    .hdr-tools { margin-left: auto; }
    .logo-word { font-size: 19px; }
}
.nav-locale { display: none; }
@media (max-width: 480px) {
    .hdr-tools .locale-switch { display: none; }
    .nav-locale { display: block; padding: 16px 12px 0; margin-top: 12px; border-top: 1px solid var(--mc-line); font-size: 16px; }
    .btn-login { padding: .5rem .8rem; }
}

/* ---------- Hero with the login card ---------- */
.sec-heroLogin { min-height: min(100vh, 860px); display: flex; align-items: center; }
.sec-heroLogin .sec-bg { opacity: 1 !important; z-index: -2; }
.sec-heroLogin::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--hero-shade); }
.hero-content { width: 100%; padding: calc(var(--hdr-h) + 40px) 0 72px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, 400px); gap: clamp(32px, 6vw, 88px); align-items: center; }
.hero-title { color: #fff; font-size: clamp(36px, 5.2vw, 64px); line-height: 1.05; margin-bottom: 1.2rem; }
.hero-title .brand-mi, .hero-title em { color: var(--mc-brand-bright); font-style: normal; }
.hero-subtitle { color: rgba(255, 255, 255, .86); font-size: clamp(18px, 1.7vw, 21px); max-width: 36em; }
.hero-highlights { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 10px 22px; }
.hero-highlights li { display: flex; align-items: flex-start; gap: 10px; color: rgba(255, 255, 255, .9); font-size: 15px; }
.hero-highlights .ui-icon { color: var(--mc-brand-bright); margin-top: 2px; }
.hero-card { scroll-margin-top: calc(var(--hdr-h) + 16px); }
@media (max-width: 899.98px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-content { padding-bottom: 48px; }
}

/* The login card: white on any ground, the app's card (16px corners, the theme's shadow). */
.login-card {
    display: flex; flex-direction: column; gap: .55rem; background: #fff; color: var(--mc-ink);
    border-radius: var(--mc-radius-card); padding: 28px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55), var(--mc-shadow);
}
.login-card-title { font-size: 24px; margin: 0; color: var(--mc-ink); }
.login-card-sub { color: var(--mc-muted); font-size: 15px; margin: 0 0 .4rem; }
.login-card label { font-size: 14px; font-weight: 700; margin-top: .3rem; }
.login-card input[type=text], .login-card input[type=password], .login-card input[type=email] {
    width: 100%; font: inherit; font-size: 16px; padding: .7rem .85rem; border: 1px solid #cdd8d2; border-radius: var(--mc-radius-control);
    background: #fbfcfb; color: var(--mc-ink);
}
.login-card input:focus { outline: 2px solid var(--mc-brand); outline-offset: 0; border-color: var(--mc-brand); background: #fff; }
.login-card .pwd-field { position: relative; }
.login-card-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; margin: .2rem 0 .4rem; }
.login-card-row a, .login-card-signup a { color: var(--mc-brand); font-weight: 700; text-decoration: none; }
.login-card-row a:hover, .login-card-signup a:hover { text-decoration: underline; }
.login-card-check { display: inline-flex; align-items: center; gap: 6px; font-weight: 400 !important; margin: 0 !important; }
.login-card input[type=submit] { --accent: var(--mc-brand); --accent-hover: var(--mc-brand-hover); --on-accent: #fff; margin-top: .2rem; }
.login-card-or { display: flex; align-items: center; gap: 10px; color: var(--mc-muted); font-size: 13px; margin: .6rem 0 .1rem; }
.login-card-or::before, .login-card-or::after { content: ""; flex: 1; height: 1px; background: var(--mc-line); }
.login-card-social { display: flex; justify-content: center; gap: 12px; }
.social-login { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid var(--mc-line); border-radius: var(--mc-radius-control); background: #fff; transition: border-color .15s, box-shadow .15s; }
.social-login:hover { border-color: var(--mc-brand); box-shadow: var(--mc-shadow); }
.login-card-signup { text-align: center; font-size: 15px; margin: .6rem 0 0; color: var(--mc-muted); }
.login-card.is-signed-in { gap: .8rem; }

/* ---------- Cover (feature and other pages' heads) ---------- */
.sec-cover .sec-bg { }
.cover-content { padding: clamp(48px, 8vw, 104px) 0 clamp(48px, 7vw, 88px); }
.cover-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 5vw, 64px); align-items: end; }
.cover-title { color: var(--title); font-size: clamp(34px, 4.6vw, 56px); line-height: 1.07; margin: 0; }
.cover-subtitle { color: var(--title); font-size: clamp(18px, 1.6vw, 21px); }
.cover-desc { color: var(--text); }
@media (max-width: 767.98px) { .cover-grid { grid-template-columns: 1fr; } }

/* ---------- Text + image ---------- */
.mt-img { width: 100%; border-radius: var(--mc-radius-card); box-shadow: 0 30px 60px -36px rgba(20, 35, 30, .55); object-fit: cover; aspect-ratio: 4 / 3; }
.mt-left-grid, .mt-right-grid { align-items: center; row-gap: 32px; }
.accent-line { width: 56px; height: 4px; border: 0; border-radius: 2px; background: var(--accent); margin: 0 0 1.2rem; }
.mt-left-text, .mt-right-text { color: var(--text); }
.mt-left-text .c-desc ul, .mt-right-text .c-desc ul { padding-left: 1.2rem; }

/* ---------- Cards and features ---------- */
.cards-head { max-width: 760px; margin: 0 auto 2.6rem; text-align: center; }
.cards-sub { color: var(--muted); }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.card-item { display: flex; }
.card-inner {
    flex: 1; display: flex; flex-direction: column; gap: .4rem; background: #fff; color: var(--mc-ink); padding: 26px;
    border: 1px solid var(--mc-line); border-radius: var(--mc-radius-card); box-shadow: var(--mc-shadow);
    transition: transform .2s var(--ease), box-shadow .2s;
}
.card-inner:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -26px rgba(20, 35, 30, .45); }
.card-icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px; background: var(--mc-tint); color: var(--mc-brand); margin-bottom: .5rem; }
.card-title { font-size: 20px !important; color: var(--mc-ink); margin: 0 0 .2rem; }
.card-text { color: var(--mc-muted); font-size: 16px; flex: 1; }
.card-item .btn { align-self: flex-start; margin-top: .6rem; --link: var(--mc-brand); --line: var(--mc-line); }

/* ---------- Numbered steps ---------- */
.steps-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 24px; counter-reset: step; }
.step-item { position: relative; background: #fff; color: var(--mc-ink); border-radius: var(--mc-radius-card); padding: 30px 26px 26px; border: 1px solid var(--mc-line); box-shadow: var(--mc-shadow); }
.step-number {
    display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%;
    background: var(--mc-brand); color: #fff; font-weight: 700; font-size: 19px; margin-bottom: 1rem;
}
.step-title { font-size: 20px; color: var(--mc-ink); }
.step-text { color: var(--mc-muted); margin: 0; }
.sec-steps .btns { justify-content: center; margin-top: 2.4rem; }

/* ---------- Feature cards (products) ---------- */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); gap: 22px; margin-top: 2rem; }
.product-card { display: flex; }
.product-card-inner {
    flex: 1; display: flex; flex-direction: column; background: #fff; color: var(--mc-ink); border: 1px solid var(--mc-line);
    border-radius: var(--mc-radius-card); overflow: hidden; box-shadow: var(--mc-shadow); transition: transform .2s var(--ease), box-shadow .2s;
}
.product-card-inner:hover { transform: translateY(-4px); box-shadow: 0 26px 46px -28px rgba(20, 35, 30, .5); }
.product-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--mc-tint); }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.product-img.fit-contain img { object-fit: contain; padding: 12%; }
.product-card-inner:hover .product-img.fit-cover img { transform: scale(1.04); }
.product-body { flex: 1; display: flex; flex-direction: column; padding: 22px 22px 24px; }
.product-name { font-size: 21px; margin-bottom: .25rem; color: var(--mc-ink); }
.product-tagline { color: var(--mc-brand); font-weight: 700; font-size: 15px; margin-bottom: .6rem; }
.product-text { color: var(--mc-muted); font-size: 16px; flex: 1; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: .4rem; }
.product-foot .btn { --accent: var(--mc-brand); --accent-hover: var(--mc-brand-hover); --on-accent: #fff; }
.product-note { color: var(--mc-muted); font-size: 14px; margin: 0; }
.next-products { position: fixed; right: 20px; bottom: 20px; z-index: 30; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--mc-brand); color: #fff; box-shadow: var(--mc-shadow-popover); cursor: pointer; opacity: 0; transform: translateY(10px); transition: opacity .2s, transform .2s; display: inline-flex; align-items: center; justify-content: center; }
.next-products.is-shown { opacity: 1; transform: none; animation: next-bounce 2.4s ease-in-out infinite; }
@keyframes next-bounce { 0%, 100% { translate: 0 0; } 50% { translate: 0 5px; } }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 16px; margin-top: 1.6rem; }
.gallery-item { margin: 0; }
.gallery-link { display: block; overflow: hidden; border-radius: var(--mc-radius-card); aspect-ratio: 4 / 3; }
.gallery-link img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery-link:hover img { transform: scale(1.05); }
.sec-gallery .fs-title-md, .sec-gallery .c-sub { text-align: center; }

/* ---------- Quote / call to action ---------- */
.sec-quote { text-align: center; }
.quote-text { max-width: 820px; margin: 0 auto; }
.quote-overline { color: var(--overline); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 13px; }
.quote-underline { width: 64px; height: 4px; border: 0; border-radius: 2px; background: var(--accent); margin: 1.2rem auto 1.4rem; }
.sec-quote .btns { justify-content: center; }
.has-parallax .sec-bg { background-attachment: fixed; }
@media (hover: none) { .has-parallax .sec-bg { background-attachment: scroll; } }

/* ---------- Article, map, video, social, countdown ---------- */
.article-body { font-size: 17px; }
.article-body a { color: var(--link); }
.map-wrap { position: relative; }
.map-wrap iframe { display: block; width: 100%; height: 100%; border: 0; filter: saturate(.9); }
.map-edit-hint { position: absolute; left: 12px; top: 12px; background: #fff; color: var(--mc-ink); padding: 6px 10px; border-radius: var(--mc-radius-control); font-size: 14px; }
.video-grid { align-items: center; row-gap: 28px; }
.video-container { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.video-embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--mc-radius-card); overflow: hidden; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.social-circles { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 1.4rem; }
.social-circles .social-link { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: var(--on-accent); }
.sec-social .c-title { text-align: center; }
.countdown-card { text-align: center; }
.countdown { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
.cd-unit { display: flex; flex-direction: column; min-width: 84px; padding: 14px; border-radius: var(--mc-radius-card); background: rgba(127, 127, 127, .12); }
.cd-num { font-size: 36px; font-weight: 700; color: var(--title); }
.cd-label { font-size: 14px; color: var(--muted); }

/* ---------- Forms (contact, subscribe) ---------- */
.contact-grid { row-gap: 32px; }
.contact-desc { color: var(--text); }
.site-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; background: #fff; color: var(--mc-ink); padding: clamp(20px, 3vw, 32px); border-radius: var(--mc-radius-card); box-shadow: var(--mc-shadow); border: 1px solid var(--mc-line); }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.wide { grid-column: 1 / -1; }
.form-field label { font-size: 14px; font-weight: 700; }
.form-field input, .form-field textarea {
    width: 100%; font: inherit; font-size: 16px; padding: .7rem .85rem; border: 1px solid #cdd8d2; border-radius: var(--mc-radius-control); background: #fbfcfb; color: var(--mc-ink);
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus { outline: 2px solid var(--mc-brand); outline-offset: 0; border-color: var(--mc-brand); background: #fff; }
.form-field.consent label { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; color: var(--mc-muted); }
.form-field .btn { --accent: var(--mc-brand); --accent-hover: var(--mc-brand-hover); --on-accent: #fff; justify-self: start; align-self: flex-start; }
.form-error { color: var(--mc-danger, #b33a1e); font-size: 15px; margin: 0; grid-column: 1 / -1; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-success { position: relative; background: #fff; color: var(--mc-ink); border-radius: var(--mc-radius-card); padding: 32px; text-align: center; box-shadow: var(--mc-shadow); animation: pop-in .3s var(--ease); }
.form-success-icon { width: 48px; height: 48px; color: var(--mc-brand); margin: 0 auto 12px; }
.form-success-close { position: absolute; top: 10px; right: 10px; background: none; border: 0; cursor: pointer; color: var(--mc-muted); }
@keyframes pop-in { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
@media (max-width: 600px) { .site-form { grid-template-columns: 1fr; } }
.subscribe-card { max-width: 640px; margin: 0 auto; text-align: center; }
.subscribe-form { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.subscribe-icon .ui-icon { width: 40px; height: 40px; color: var(--mc-brand); }
.subscribe-title { color: var(--mc-ink); }
.subscribe-sub { color: var(--mc-muted); }
.subscribe-card input[type=email] { width: 100%; font: inherit; padding: .75rem .9rem; border: 1px solid #cdd8d2; border-radius: var(--mc-radius-control); }
.subscribe-btn { --accent: var(--mc-brand); --accent-hover: var(--mc-brand-hover); --on-accent: #fff; }
.consent-note { color: var(--mc-muted); font-size: 13px; }

/* ---------- Articles (knowledge base) ---------- */
.kb-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 1rem 0 1.6rem; }
.kb-tab { font: inherit; padding: .45rem .9rem; border: 1px solid var(--line); border-radius: var(--mc-radius-control); background: transparent; color: var(--text); cursor: pointer; }
.kb-tab.is-active { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.kb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 20px; }
.kb-card { color: inherit; text-decoration: none; display: flex; }
.kb-card-inner { flex: 1; background: #fff; color: var(--mc-ink); border-radius: var(--mc-radius-card); overflow: hidden; box-shadow: var(--mc-shadow); }
.kb-card-img { aspect-ratio: 16 / 9; background: var(--mc-tint) center / cover; }
.kb-card-text { padding: 18px; }
.kb-card-date { color: var(--mc-muted); font-size: 13px; }
.kb-card-title { font-size: 19px; margin: .3rem 0; }
.kb-card-desc { color: var(--mc-muted); font-size: 15px; }
.kb-read-more { color: var(--mc-brand); font-weight: 700; font-size: 15px; }
.kb-card.is-draft .kb-card-inner { opacity: .6; }
.badge { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: var(--mc-radius-pill); background: var(--mc-warn-soft, #fdf1d6); color: var(--mc-ink); }
.kb-pager { display: flex; justify-content: center; margin-top: 1.6rem; }
.kb-pager-inner { display: flex; gap: 6px; }
.kb-pager button { min-width: 40px; height: 40px; border: 1px solid var(--line); border-radius: var(--mc-radius-control); background: transparent; color: var(--text); cursor: pointer; }
.kb-pager button.is-active { background: var(--accent); color: var(--on-accent); }
.post-head { position: relative; min-height: 260px; }
.post-image { position: absolute; inset: 0; background: center / cover; opacity: .35; }
.post-back { position: relative; max-width: var(--wrap); margin: 0 auto; padding: 24px; }
.post-back a { display: inline-flex; align-items: center; gap: 6px; color: #fff; text-decoration: none; }
.post-main { position: relative; max-width: 820px; margin: 0 auto; padding: 0 24px 72px; }
.post-meta { color: var(--muted); font-size: 14px; }
.post-leader { font-size: 20px; color: var(--text); }
.post-content { color: var(--text); }
.post-content img { border-radius: var(--mc-radius-card); margin: 1.2rem 0; }
.post-content a { color: var(--mc-brand-bright); }
.post-content blockquote { border-left: 4px solid var(--accent); margin: 1.2rem 0; padding: .2rem 0 .2rem 1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--mc-top); color: rgba(255, 255, 255, .78); font-size: 15px; }
.ftr-container { padding-top: clamp(48px, 6vw, 72px); padding-bottom: 40px; }
.ftr-cols { display: grid; grid-template-columns: 1.4fr 1fr 1.1fr; gap: 40px; }
.ftr-brand .logo { color: #fff; margin-bottom: 1rem; }
.ftr-about { max-width: 30em; }
.ftr-title { color: #fff; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1rem; }
.ftr-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ftr-nav a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.ftr-nav a:hover { color: #fff; text-decoration: underline; }
.ftr-nav .dropdown-toggle { display: none; }
.ftr-dropdown { list-style: none; margin: 6px 0 0; padding: 0 0 0 12px; display: grid; gap: 4px; font-size: 14px; columns: 1; }
.ftr-line-item { display: flex; gap: 10px; align-items: flex-start; }
.ftr-line-item .ui-icon { margin-top: 3px; color: var(--mc-brand-bright); }
.ftr-line-item a { color: inherit; text-decoration: none; }
.ftr-line-item a:hover { color: #fff; text-decoration: underline; }
.social-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.2rem; }
.social-bar .social-link { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--mc-radius-control); background: rgba(255, 255, 255, .08); color: #fff; transition: background-color .15s, color .15s; }
.social-bar .social-link:hover { background: var(--mc-brand-bright); color: #0c2219; }
.subfooter { border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; }
.subfooter-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 18px; padding-bottom: 18px; }
.subfooter p { margin: 0; }
.ftr-product-of a { color: #fff; font-weight: 700; text-decoration: none; }
.ftr-product-of a:hover { text-decoration: underline; }
.ftr-legal { display: flex; gap: 18px; }
.ftr-legal a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.ftr-legal a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 860px) { .ftr-cols { grid-template-columns: 1fr 1fr; } .ftr-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .ftr-cols { grid-template-columns: 1fr; } }

/* ---------- Search, lightbox, cookie banner ---------- */
body.modal-open { overflow: hidden; }
.search-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(12, 30, 24, .55); display: flex; justify-content: center; padding: 12vh 16px 16px; }
.search-panel { width: 100%; max-width: 680px; background: #fff; color: var(--mc-ink); border-radius: var(--mc-radius-card); box-shadow: var(--mc-shadow-popover); overflow: hidden; align-self: flex-start; }
.search-bar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--mc-line); }
.search-bar input { flex: 1; font: inherit; font-size: 18px; border: 0; outline: 0; }
.search-results { list-style: none; margin: 0; padding: 6px; max-height: 60vh; overflow: auto; }
.search-results li a { display: block; padding: 10px 12px; border-radius: var(--mc-radius-control); color: inherit; text-decoration: none; }
.search-results li a:hover, .search-results li a:focus, .search-results li.is-active a { background: var(--mc-tint); }
.search-results .sr-page { color: var(--mc-brand); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.search-results .sr-title { display: block; font-weight: 700; }
.search-results .sr-snippet { display: block; color: var(--mc-muted); font-size: 14px; }
.search-results mark { background: #d8f5e4; color: inherit; }
.search-results .sr-empty { padding: 16px; color: var(--mc-muted); }
.lightbox { position: fixed; inset: 0; z-index: 210; background: rgba(5, 14, 11, .92); display: flex; align-items: center; justify-content: center; animation: fade-in .2s; }
.lb-figure { margin: 0; max-width: 92vw; max-height: 86vh; }
.lb-figure img { max-width: 92vw; max-height: 80vh; border-radius: var(--mc-radius-control); }
.lb-figure figcaption { color: #fff; text-align: center; margin-top: 8px; }
.lb-btn { position: absolute; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; }
.lb-btn:hover { background: rgba(255, 255, 255, .24); }
.lb-close { top: 18px; right: 18px; } .lb-prev { left: 18px; } .lb-next { right: 18px; }
.lb-counter { position: absolute; bottom: 18px; color: #fff; font-size: 14px; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 720px; margin: 0 auto; display: flex; align-items: center; gap: 16px; background: #fff; color: var(--mc-ink); padding: 14px 16px; border-radius: var(--mc-radius-card); box-shadow: var(--mc-shadow-popover); font-size: 15px; }
.cookie-banner a { color: var(--mc-brand); }

/* ---------- 404 and the editor's login page ---------- */
.sec-notfound .container { text-align: center; }
.sec-notfound .btns { justify-content: center; }
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; background: var(--mc-top); }
.editor-login { width: 100%; max-width: 400px; }
.editor-login .logo { color: var(--mc-ink); margin-bottom: .6rem; }
.editor-login .brand-mi { color: var(--mc-brand); }
.editor-login h1 { font-size: 24px; }
.editor-login .btn { --accent: var(--mc-brand); --accent-hover: var(--mc-brand-hover); --on-accent: #fff; margin-top: .4rem; }
.login-back { display: inline-flex; align-items: center; gap: 4px; color: var(--mc-muted); text-decoration: none; font-size: 14px; margin-top: .4rem; }
