/* ==========================================================================
   Mbui Technologies — design system
   Flat, solid colours only. No gradients anywhere (project rule).
   Palette: charcoal ink + white/grey neutrals + orange accent #db5609.
   Type: Poppins throughout, clamp() based responsive scale.
   ========================================================================== */

:root {
    --ink:        #16181d;
    --ink-soft:   #23262d;
    --body:       #3f4550;
    --muted:      #6b7280;
    --bg:         #ffffff;
    --bg-soft:    #f4f5f7;
    --bg-dark:    #16181d;
    --line:       #e4e7eb;
    --line-dark:  #2c3038;
    --accent:     #db5609;
    --accent-dark:#b24406;
    --accent-soft:#fbeadd;
    --ok:         #1a7f4e;
    --green:      #0d7a4f;
    --magenta:    #c21f63;
    --yellow:     #ffc61a;
    --cream:      #fdf6ec;

    --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;

    --container: 1180px;
    --radius: 10px;
    --radius-sm: 6px;

    --space-1: 0.5rem;
    --space-2: 1rem;
    --space-3: 1.5rem;
    --space-4: 2.5rem;
    --space-5: 4rem;
    --space-6: 6.5rem;

    --fs-h1: clamp(2.15rem, 1.5rem + 3.2vw, 3.55rem);
    --fs-h2: clamp(1.55rem, 1.25rem + 1.6vw, 2.3rem);
    --fs-h3: clamp(1.12rem, 1.02rem + 0.55vw, 1.35rem);
    --fs-body: clamp(1rem, 0.96rem + 0.22vw, 1.09rem);
    --fs-small: 0.88rem;
    --fs-eyebrow: 0.8rem;
}

/* ------------------------------ Reset ------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font);
    font-size: var(--fs-body);
    line-height: 1.7;
    color: var(--body);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 {
    color: var(--ink);
    line-height: 1.18;
    letter-spacing: -0.015em;
    font-weight: 700;
    text-wrap: balance;
}
h1 { font-size: var(--fs-h1); font-weight: 800; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 600; }
p  { text-wrap: pretty; }
a { color: var(--accent-dark); text-decoration: none; }
a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--accent); color: #fff; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; left: 1rem; top: -4rem; z-index: 100;
    background: var(--ink); color: #fff; padding: 0.6rem 1.1rem; border-radius: var(--radius-sm);
    transition: top 0.15s ease;
}
.skip-link:focus { top: 1rem; color: #fff; text-decoration: none; }

/* ---------------------------- Layout ---------------------------- */
.container { width: min(var(--container), 100% - 2.5rem); margin-inline: auto; }
.container-narrow { width: min(820px, 100% - 2.5rem); margin-inline: auto; }
.section { padding-block: var(--space-5); }
@media (min-width: 900px) { .section { padding-block: var(--space-6); } }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--bg-dark); }
.section-dark h2, .section-dark h3 { color: #fff; }

.section-head { max-width: 720px; margin-bottom: var(--space-4); }
.section-head p { margin-top: var(--space-2); }
.section-head-row {
    max-width: none;
    display: flex; align-items: end; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap;
}
.eyebrow {
    display: inline-block;
    font-size: var(--fs-eyebrow);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: var(--space-1);
}
.icon { width: 24px; height: 24px; flex: none; }
.icon-sm { width: 17px; height: 17px; }
.mt-3 { margin-top: var(--space-3); }
.mb-2 { margin-bottom: var(--space-2); }
.text-light { color: #fff; }
.text-muted-light { color: #aab0ba; }
.self-end { align-self: center; }

/* ---------------------------- Buttons ---------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
    padding: 0.72rem 1.45rem;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    font-weight: 600; font-size: 0.98rem; line-height: 1.25;
    cursor: pointer; text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--bg-soft); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn-ghost-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-lg { padding: 0.95rem 1.9rem; font-size: 1.04rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: wait; transform: none; }

.text-link { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; color: var(--accent-dark); }
.text-link:hover { color: var(--accent); }

/* ---------------------------- Header ---------------------------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
}
.header-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 40px; height: 40px; }
.brand-text { font-size: 1.22rem; color: var(--ink); letter-spacing: -0.01em; white-space: nowrap; }
.brand-text strong { font-weight: 800; margin-right: 0.32rem; }
.brand-light .brand-text { color: #fff; }

.main-nav { display: flex; align-items: center; }
.nav-links { display: flex; align-items: center; gap: 0.15rem; }
.nav-item { position: relative; }
.nav-item > a {
    display: inline-block; padding: 0.55rem 0.68rem;
    color: var(--ink-soft); font-weight: 500; font-size: 0.99rem; border-radius: var(--radius-sm);
}
.nav-item > a:hover, .nav-item.is-active > a { color: var(--accent-dark); background: var(--accent-soft); text-decoration: none; }
.dropdown {
    position: absolute; top: calc(100% + 6px); left: 0; z-index: 40;
    min-width: 320px; padding: 0.5rem;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: 0 14px 34px rgba(22, 24, 29, 0.14);
    display: none;
}
.nav-item.has-dropdown:hover > .dropdown,
.nav-item.has-dropdown:focus-within > .dropdown { display: block; }
.dropdown a {
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0.6rem 0.75rem; border-radius: var(--radius-sm);
    color: var(--ink-soft); font-weight: 500; font-size: 0.95rem;
}
.dropdown a:hover { background: var(--bg-soft); color: var(--accent-dark); text-decoration: none; }
.dropdown .icon { color: var(--accent); }
.dropdown-all { margin-top: 0.35rem; border-top: 1px solid var(--line); border-radius: 0 0 var(--radius-sm) var(--radius-sm); color: var(--accent-dark) !important; font-weight: 600 !important; }
.btn-nav { margin-left: 0.75rem; white-space: nowrap; }

.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.55rem; cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; content: "";
    position: relative;
}
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after { position: absolute; top: 6px; }

.search-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: var(--radius-sm);
    border: 1px solid var(--line); background: none; cursor: pointer; color: var(--ink);
}
.search-toggle:hover { border-color: var(--accent); color: var(--accent-dark); }

/* Search panel */
.search-panel { border-top: 1px solid var(--line); background: var(--bg); }
.search-inner { position: relative; padding-block: var(--space-3); }
.search-inner input {
    width: 100%; padding: 0.9rem 3rem 0.9rem 1.1rem;
    border: 2px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-soft);
}
.search-inner input:focus { border-color: var(--accent); outline: none; background: #fff; }
.search-close {
    position: absolute; right: 0.4rem; top: calc(var(--space-3) + 0.45rem);
    background: none; border: none; font-size: 1.7rem; line-height: 1; cursor: pointer; color: var(--muted);
    padding: 0.2rem 0.55rem;
}
.search-results { position: absolute; left: 0; right: 0; z-index: 30; }
.search-results a, .search-results p {
    display: block; background: #fff; border: 1px solid var(--line); border-top: 0;
    padding: 0.75rem 1.1rem; color: var(--ink-soft);
}
.search-results a:hover { background: var(--bg-soft); text-decoration: none; }
.search-results a strong { display: block; color: var(--ink); }
.search-results span { font-size: var(--fs-small); color: var(--muted); }
.search-results p { color: var(--muted); border-top: 1px solid var(--line); }
.search-results > :first-child { border-top: 1px solid var(--line); }

/* ---------------------------- Home hero ---------------------------- */
.hero { background: var(--bg); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-inner {
    display: grid; gap: var(--space-5);
    padding-block: var(--space-5) var(--space-5);
}
@media (min-width: 980px) {
    .hero-inner { grid-template-columns: 1.15fr 0.85fr; align-items: center; padding-block: var(--space-6); }
}
.hero h1 { max-width: 15ch; }
.hero-sub { margin-top: var(--space-2); font-size: clamp(1.05rem, 1rem + 0.4vw, 1.22rem); max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); }
.hero-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: var(--space-4); padding: 0; list-style: none; }
.hero-chips li {
    font-size: var(--fs-small); font-weight: 600; color: var(--ink-soft);
    padding: 0.35rem 0.85rem; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-soft);
}

/* Hero photo — framed to match the flat card system (solid colours only) */
.hero-media {
    margin: 0; position: relative; max-width: 520px; justify-self: center; width: 100%;
}
.hero-media::before {
    content: ""; position: absolute; inset: auto -14px -14px auto;
    width: 42%; height: 42%; background: var(--accent); border-radius: var(--radius);
    z-index: 0;
}
.hero-media picture { position: relative; z-index: 1; display: block; }
.hero-media img {
    width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
    border-radius: var(--radius); border: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(22, 24, 29, 0.14);
}

/* ---------------------------- Page hero ---------------------------- */
.page-hero { background: var(--bg-dark); color: #fff; padding-block: var(--space-5); }
.page-hero h1 { color: #fff; max-width: 24ch; }
.page-hero-sub { margin-top: var(--space-2); color: #c3c8d1; max-width: 62ch; font-size: 1.04rem; }
.page-hero .eyebrow { color: #ff8a3d; }
.page-hero-icon {
    display: inline-flex; width: 56px; height: 56px; align-items: center; justify-content: center;
    background: var(--accent); color: #fff; border-radius: var(--radius); margin-bottom: var(--space-2);
}
.page-hero-icon .icon { width: 30px; height: 30px; }
.page-hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); align-items: center; }
.hero-note { color: #c3c8d1; font-size: var(--fs-small); }
.page-hero-meta { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-4); }
.page-hero-meta div { border-left: 3px solid var(--accent); padding-left: 0.9rem; }
.page-hero-meta dt { font-size: var(--fs-eyebrow); text-transform: uppercase; letter-spacing: 0.1em; color: #9aa1ac; }
.page-hero-meta dd { margin: 0; font-weight: 600; color: #fff; }
.page-hero-404 { text-align: left; }
.error-code { font-size: clamp(3rem, 8vw, 5rem); font-weight: 800; color: var(--accent); line-height: 1; margin-bottom: 0.5rem; }
.page-hero a { color: #ff8a3d; }
.page-hero a:hover { color: #fff; }

/* ---------------------------- Cards ---------------------------- */
.card-grid { display: grid; gap: var(--space-3); }
@media (min-width: 700px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 700px) and (max-width: 1019px) { .card-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .card-grid-4 { grid-template-columns: repeat(4, 1fr); } }
.card-grid-3 { grid-template-columns: 1fr; }
@media (min-width: 700px) { .card-grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .card-grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
    position: relative; display: flex; flex-direction: column; gap: 0.6rem;
    background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
    padding: var(--space-3);
    color: inherit;
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 12px 28px rgba(22,24,29,0.09); text-decoration: none; }
.card-static, .card-static:hover { transform: none; box-shadow: none; }
.card-icon {
    display: inline-flex; width: 46px; height: 46px; align-items: center; justify-content: center;
    background: var(--accent-soft); color: var(--accent-dark); border-radius: var(--radius-sm);
}
.card h2 { font-size: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem); }
.card h3 { font-size: 1.12rem; }
.card p { font-size: 0.96rem; }
.card-link { margin-top: auto; display: inline-flex; align-items: center; gap: 0.4rem; color: var(--accent-dark); font-weight: 600; font-size: var(--fs-small); }
.card-tag {
    display: inline-block; width: fit-content;
    font-size: 0.76rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--accent-dark); background: var(--accent-soft); border-radius: 4px; padding: 0.18rem 0.55rem;
}
.card-meta { font-size: var(--fs-small); color: var(--muted); }
.card-list { list-style: none; margin: 0.2rem 0 0; padding: 0; display: grid; gap: 0.4rem; }
.card-list li { display: flex; align-items: start; gap: 0.5rem; font-size: 0.93rem; }
.card-list .icon { color: var(--ok); margin-top: 0.2rem; }
.card-tight { gap: 0.45rem; }

/* Post cards */
.post-card-image { display: block; margin: -0.25rem -0.25rem 0.55rem; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.post-card-image img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.post-grid { display: grid; gap: var(--space-3); }
@media (min-width: 700px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }
.post-card {
    display: flex; flex-direction: column; gap: 0.55rem;
    background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-3);
    color: inherit; transition: border-color 0.18s ease, transform 0.18s ease;
}
.post-card:hover { border-color: var(--accent); transform: translateY(-3px); text-decoration: none; }
.post-card h2 { font-size: 1.16rem; }
.post-card h3 { font-size: 1.16rem; }
.post-card p { font-size: 0.95rem; }
.post-card-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.post-card .card-meta:last-child { margin-top: auto; }

/* ---------------------------- Process & values ---------------------------- */
.process-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
@media (min-width: 700px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .process-grid { grid-template-columns: repeat(4, 1fr); } }
.process-grid li {
    background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
    padding: var(--space-3);
}
.process-num { font-size: 1rem; font-weight: 800; color: var(--accent); letter-spacing: 0.06em; }
.process-grid h3 { margin: 0.4rem 0 0.3rem; }
.process-grid p { font-size: 0.95rem; }
.process-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); counter-reset: step; }
.process-list li { padding-left: 0; }
.process-list strong { color: inherit; }
.section-dark .process-list li { border-left: 3px solid var(--accent); padding-left: 1rem; color: #c3c8d1; }
.section-dark .process-list strong { color: #fff; }
.section .process-list li { border-left: 3px solid var(--accent); padding-left: 1rem; }
.section .process-list strong { color: var(--ink); }

.split { display: grid; gap: var(--space-4); align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.split-center { align-items: center; }
.split > div > p { margin-top: var(--space-2); }
.split .btn { margin-top: var(--space-3); }

.value-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.value-list li { display: flex; gap: 0.9rem; align-items: flex-start; }
.value-list .icon { color: var(--accent); margin-top: 0.35rem; }
.value-list h3 { font-size: 1.08rem; }
.value-list p { font-size: 0.95rem; }

.feature-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
@media (min-width: 800px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
.feature-grid li {
    display: flex; gap: 0.8rem; align-items: flex-start;
    background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem;
}
.feature-grid .icon { color: var(--ok); margin-top: 0.28rem; }

/* ---------------------------- Product & case study ---------------------------- */
.product-layout { display: grid; gap: var(--space-4); }
@media (min-width: 960px) { .product-layout { grid-template-columns: 1.6fr 1fr; align-items: start; } }
.product-aside { position: sticky; top: 96px; }
.aside-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-3); }
.aside-card h2 { font-size: 1.15rem; margin-bottom: var(--space-2); }
.specs { display: grid; gap: 0.8rem; margin-bottom: var(--space-3); }
.specs div { border-left: 3px solid var(--accent); padding-left: 0.8rem; }
.specs dt { font-size: var(--fs-eyebrow); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.specs dd { margin: 0; font-weight: 500; color: var(--ink-soft); font-size: 0.95rem; }

.case-study { display: grid; gap: var(--space-5); max-width: 860px; }
.case-block h2 { margin-bottom: var(--space-2); padding-top: 1.2rem; border-top: 1px solid var(--line); }
.case-block:first-child h2 { border-top: 0; padding-top: 0; }

/* ---------------------------- Prose (article body) ---------------------------- */
.prose { max-width: 74ch; }
.article-body.prose { max-width: none; }
.prose h2 { font-size: var(--fs-h2); margin: 3rem 0 var(--space-2); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 2rem 0 var(--space-1); }
.prose p { margin-bottom: var(--space-2); }
.prose ul, .prose ol { margin: 0 0 var(--space-2) 1.3rem; }
.prose li { margin-bottom: 0.45rem; }
.prose blockquote {
    border-left: 4px solid var(--accent); background: var(--bg-soft);
    padding: 0.9rem 1.2rem; border-radius: 0 var(--radius) var(--radius) 0; margin-bottom: var(--space-2);
    font-weight: 500; color: var(--ink-soft);
}
.prose table { width: 100%; border-collapse: collapse; margin-bottom: var(--space-2); font-size: 0.95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 0.55rem 0.8rem; text-align: left; }
.prose th { background: var(--bg-soft); color: var(--ink); }
.prose pre {
    background: var(--ink); color: #e6e9ee; padding: 1rem 1.2rem; border-radius: var(--radius);
    overflow-x: auto; margin-bottom: var(--space-2); font-size: 0.9rem; line-height: 1.6;
}
.prose code { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 4px; padding: 0.1rem 0.35rem; font-size: 0.9em; }
.prose pre code { background: none; border: 0; padding: 0; color: inherit; }

/* Article page */
.article-cover-section { padding-top: var(--space-4); padding-bottom: 0; }
.article-cover { display: block; }
.article-cover img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }
.author-box {
    display: flex; gap: 1.1rem; align-items: flex-start;
    background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.2rem 1.4rem; margin-top: var(--space-4);
}
.author-avatar {
    flex: none; width: 64px; height: 64px; display: inline-flex; align-items: center; justify-content: center;
    background: var(--accent); color: #fff; border-radius: 50%;
    font-weight: 800; font-size: 1.05rem; letter-spacing: 0.02em;
}
.author-box h2 { font-size: 1.02rem; margin-bottom: 0.4rem; }
.author-box p { font-size: 0.92rem; margin-bottom: 0.5rem; }
.author-box .text-link { margin-right: 1.2rem; }
@media (max-width: 560px) { .author-box { flex-direction: column; } }

/* Article page */
.article-hero { background: var(--bg-dark); color: #fff; padding-block: var(--space-5); }
.article-hero .eyebrow { color: #ff8a3d; }
.article-hero h1 { color: #fff; max-width: 26ch; }
.article-meta { margin-top: var(--space-2); color: #aab0ba; font-size: var(--fs-small); }
.article-body { padding-block: var(--space-5) 0; }
.article-body > :last-child { margin-bottom: 0; }

/* ---------------------------- Breadcrumbs ---------------------------- */
.breadcrumbs { padding-top: var(--space-2); }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.15rem 0.6rem; font-size: var(--fs-small); }
.breadcrumbs li { display: flex; align-items: center; gap: 0.6rem; }
.breadcrumbs li + li::before { content: "›"; color: var(--muted); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent-dark); }
.breadcrumbs [aria-current] { color: var(--body); font-weight: 500; }

/* ---------------------------- Chips & pagination ---------------------------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip-row-spaced { padding-top: var(--space-4); }
.chip {
    display: inline-block; padding: 0.38rem 0.95rem; border-radius: 999px;
    border: 1px solid var(--line); background: var(--bg); color: var(--ink-soft);
    font-size: var(--fs-small); font-weight: 500;
}
.chip:hover { border-color: var(--accent); color: var(--accent-dark); text-decoration: none; }
.chip-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip-active:hover { color: #fff; }

.pagination { display: flex; gap: 0.4rem; margin-top: var(--space-4); flex-wrap: wrap; }
.page-num {
    min-width: 42px; padding: 0.45rem 0.8rem; text-align: center;
    border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink-soft); font-weight: 500;
}
.page-num:hover { border-color: var(--accent); color: var(--accent-dark); text-decoration: none; }
.page-current { background: var(--accent); border-color: var(--accent); color: #fff; }
.empty-note { color: var(--muted); padding: var(--space-4) 0; }

/* ---------------------------- Contact ---------------------------- */
.contact-layout { display: grid; gap: var(--space-5); }
@media (min-width: 960px) { .contact-layout { grid-template-columns: 1fr 1.25fr; align-items: start; } }
.contact-info h2 { margin-bottom: var(--space-2); }
.contact-details { margin-top: var(--space-4); display: grid; gap: 0.7rem; }
.contact-details p { display: flex; align-items: center; gap: 0.7rem; margin: 0; }
.contact-details .icon { color: var(--accent-dark); }
.contact-details a { color: var(--ink-soft); font-weight: 500; }
.contact-details a:hover { color: var(--accent-dark); }
.contact-note { margin-top: var(--space-3); font-size: var(--fs-small); color: var(--muted); }

.contact-form {
    background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
    padding: var(--space-4);
    display: grid; gap: var(--space-3);
}
.contact-form h2 { font-size: 1.35rem; }
.form-row { display: grid; gap: var(--space-3); }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-field { display: grid; gap: 0.35rem; }
.form-field label { font-weight: 600; font-size: 0.94rem; color: var(--ink); }
.form-field label span { color: var(--accent); }
.form-field input, .form-field select, .form-field textarea {
    width: 100%; padding: 0.75rem 0.9rem;
    border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--bg);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
    outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-message { min-height: 1.5em; font-weight: 600; font-size: 0.97rem; margin: 0; }
.form-message.is-ok { color: var(--ok); }
.form-message.is-error { color: #b3261e; }
.form-privacy { font-size: var(--fs-small); color: var(--muted); margin: 0; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Newsletter (footer) */
.newsletter { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: var(--space-2); }
.newsletter input[type="email"] {
    flex: 1 1 190px; padding: 0.62rem 0.85rem;
    background: #fff; border: 1.5px solid var(--line-dark); border-radius: var(--radius-sm); color: var(--ink);
}
.newsletter input[type="email"]:focus { outline: none; border-color: var(--accent); }
.newsletter .form-message { flex-basis: 100%; margin: 0; font-size: var(--fs-small); color: #aab0ba; }
.newsletter .form-message.is-ok { color: #7fd6a8; }
.newsletter .form-message.is-error { color: #ff9d94; }

/* Project screenshot media (browser-frame presentation) */
.card-media, .case-media {
    display: block; margin: -0.25rem -0.25rem 0.65rem;
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: var(--bg-soft); overflow: hidden;
}
.case-media { margin: 0; border-radius: var(--radius); }
.media-bar {
    display: flex; gap: 5px; align-items: center;
    padding: 7px 10px; background: var(--ink);
}
.media-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-dark); }
.media-bar i:first-child { background: var(--accent); }
.card-media picture, .case-media picture { display: block; }
.card-media img, .case-media img {
    width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top;
    display: block; border-top: 1px solid var(--line);
}
.media-caption { margin-top: 0.8rem; font-size: var(--fs-small); color: var(--muted); }
.card-icon-hidden { display: none; }
.card > .card-media + .card-tag { margin-top: 0.15rem; }

/* ---------------------------- CTA band & footer ---------------------------- */
.cta-band { background: var(--accent); color: #fff; }
.cta-inner {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3);
    padding-block: var(--space-4);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #ffe1ce; margin-top: 0.35rem; }
.cta-band .btn-light:hover { background: var(--ink); color: #fff; }

.site-footer { background: var(--bg-dark); color: #aab0ba; padding-top: var(--space-5); }
.footer-grid { display: grid; gap: var(--space-4); padding-bottom: var(--space-4); }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; } }
.footer-brand p { font-size: 0.95rem; margin-top: var(--space-2); max-width: 34ch; }
.footer-former { font-size: var(--fs-small) !important; color: #7d848f; }
.footer-social { display: flex; gap: var(--space-2); margin-top: var(--space-2); }
.footer-social a { color: #c3c8d1; font-weight: 500; font-size: var(--fs-small); }
.footer-social a:hover { color: #fff; }
.footer-col h3 { color: #fff; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: var(--space-2); }
.footer-col { display: grid; gap: 0.55rem; align-content: start; }
.footer-col a { color: #aab0ba; font-size: 0.95rem; }
.footer-col a:hover { color: #fff; }
.footer-contact p { display: flex; align-items: center; gap: 0.55rem; margin: 0; font-size: 0.95rem; }
.footer-contact .icon { color: var(--accent); }
.footer-legal {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2);
    border-top: 1px solid var(--line-dark); padding-block: var(--space-3); font-size: var(--fs-small);
}
.footer-legal nav { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.footer-legal a { color: #aab0ba; }
.footer-legal a:hover { color: #fff; }

/* ---------------------------- Utilities & motion ---------------------------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }

}

@media (max-width: 940px) {
    .nav-toggle { display: inline-flex; }
    .nav-links {
        position: absolute; top: 100%; left: 0; right: 0;
        display: none; flex-direction: column; align-items: stretch; gap: 0.2rem;
        background: var(--bg); border-bottom: 1px solid var(--line);
        padding: var(--space-2) 1.25rem var(--space-3);
        box-shadow: 0 18px 30px rgba(22,24,29,0.12);
    }
    .nav-links.open { display: flex; }
    .nav-item > a { display: block; padding: 0.7rem 0.5rem; font-size: 1.02rem; }
    .dropdown {
        display: block; position: static; min-width: 0;
        box-shadow: none; border: 0; border-left: 3px solid var(--accent-soft); border-radius: 0;
        margin: 0.2rem 0 0.5rem 0.5rem; padding: 0;
    }
    .dropdown-all { border-top: 0; }
    .btn-nav { margin: var(--space-2) 0 0; }
}

@media (max-width: 560px) {
    .container { width: calc(100% - 2rem); }
    .container-narrow { width: calc(100% - 2rem); }
    .hero-actions .btn { width: 100%; }
    .page-hero-actions .btn { width: 100%; }
    .cta-inner .btn { width: 100%; }

    .footer-legal { justify-content: center; text-align: center; }
}

@media print {
    .site-header, .cta-band, .site-footer, .search-panel, .breadcrumbs { display: none !important; }
}

/* ---------------------------- Tools page ---------------------------- */
.tool-grid { display: grid; gap: var(--space-3); }
@media (min-width: 900px) { .tool-grid { grid-template-columns: repeat(2, 1fr); align-items: start; } }
.tool-card {
    background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
    padding: var(--space-3); display: grid; gap: 0.8rem; align-content: start;
}
.tool-wide { grid-column: 1 / -1; }
.tool-fields { display: grid; gap: 0.7rem; }
.tool-fields label { display: grid; gap: 0.3rem; font-weight: 600; font-size: 0.88rem; color: var(--ink); }
.tool-fields input, .tool-fields select, .tool-fields textarea {
    width: 100%; padding: 0.6rem 0.75rem; border: 1.5px solid var(--line);
    border-radius: var(--radius-sm); font: inherit; color: var(--ink);
}
.tool-fields input:focus, .tool-fields select:focus, .tool-fields textarea:focus {
    outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.field-hint { font-size: 0.78rem; color: var(--muted); font-weight: 400; }
.serp-preview {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1rem 1.2rem; font-family: Arial, sans-serif;
}
.serp-url { color: #202124; font-size: 0.82rem; margin: 0 0 0.25rem; }
.serp-title { color: #1a0dab; font-size: 1.25rem; line-height: 1.3; margin: 0 0 0.3rem; }
.serp-description { color: #4d5156; font-size: 0.92rem; line-height: 1.5; margin: 0; }
.vat-result { display: grid; gap: 0.4rem; margin: 0; }
.vat-result div { display: flex; justify-content: space-between; border-left: 3px solid var(--accent); padding-left: 0.7rem; }
.vat-result dt { color: var(--muted); font-size: 0.86rem; }
.vat-result dd { margin: 0; font-weight: 700; color: var(--ink); }
.vat-result div:last-child dd { color: var(--accent-dark); }
.pw-meter { height: 10px; border-radius: 5px; background: var(--line); overflow: hidden; }
.pw-meter span { display: block; height: 100%; width: 0; background: var(--line); border-radius: 5px; transition: width 0.2s ease, background-color 0.2s ease; }
.pw-verdict { font-weight: 600; color: var(--ink); margin: 0; }
.pw-notes { margin: 0; padding-left: 1.1rem; font-size: 0.85rem; color: var(--muted); }

/* ---------------------------- SEO Audit Tool results ---------------------------- */
.audit-score-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; }
.audit-score { font-size: 2.6rem; font-weight: 800; color: var(--ink); line-height: 1.1; margin: 0.2rem 0 0.6rem; }
.audit-score-max { font-size: 1rem; font-weight: 500; color: var(--muted); }
.audit-categories { display: grid; gap: 0.3rem; margin: 0; }
.audit-categories div { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 0.25rem; }
.audit-categories dt { color: var(--body); font-size: 0.86rem; font-weight: 500; }
.audit-categories dd { margin: 0; font-weight: 600; color: var(--ink); font-size: 0.86rem; }
.audit-block { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; margin-top: 0.9rem; }
.audit-block-title { font-weight: 700; color: var(--ink); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.7rem; }
.audit-subtitle { font-weight: 700; color: var(--ink); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; margin: 0.9rem 0 0.4rem; }
.finding { border-left: 3px solid var(--line); padding: 0.55rem 0.8rem; margin-bottom: 0.5rem; background: #fafbfc; border-radius: 0 6px 6px 0; }
.finding-pass { border-left-color: var(--ok); }
.finding-warning { border-left-color: #d97706; }
.finding-fail { border-left-color: #b3261e; }
.finding-status { margin: 0 0 0.2rem; font-size: 0.78rem; font-weight: 700; }
.finding-badge { padding: 0.08rem 0.45rem; border-radius: 4px; font-size: 0.72rem; letter-spacing: 0.05em; }
.finding-badge.pass { background: #e7f5ee; color: var(--ok); }
.finding-badge.warning { background: #fdf3e3; color: #92600a; }
.finding-badge.fail { background: #fdecea; color: #b3261e; }
.finding-badge.info, .finding-badge.not-applicable { background: #eef0f2; color: var(--muted); }
.finding-text { margin: 0 0 0.2rem; font-size: 0.9rem; color: var(--ink-soft); }
.finding-evidence { margin: 0 0 0.2rem; font-size: 0.82rem; color: var(--muted); overflow-wrap: anywhere; }
.finding-rec { margin: 0; font-size: 0.84rem; color: var(--accent-dark); }
.outline-line { margin: 0 0 0.3rem; font-size: 0.88rem; color: var(--ink-soft); }
.outline-h2 { padding-left: 0.9rem; }
.outline-h3 { padding-left: 1.8rem; }
.term-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.3rem 1rem; border-bottom: 1px solid var(--line); padding: 0.3rem 0; }
.term-name { font-weight: 600; color: var(--ink); font-size: 0.88rem; }
.term-counts { color: var(--muted); font-size: 0.8rem; }

/* ---------------------------- Quotation generator ---------------------------- */
.quote-generator {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.9fr);
    gap: var(--space-3);
    align-items: start;
}
.quote-form, .quote-preview-panel { display: grid; gap: var(--space-2); min-width: 0; }
.quote-step {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    padding: 0.9rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft);
}
.quote-step span {
    display: inline-grid; width: 30px; height: 30px; place-items: center;
    border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800;
}
.quote-step strong { color: var(--ink); font-size: 0.92rem; }
.quote-step span:nth-of-type(2) { background: var(--accent-soft); color: var(--accent-dark); }
.quote-panel, .quote-preview-panel {
    padding: clamp(16px, 2.5vw, 26px); border: 1px solid var(--line);
    border-radius: var(--radius); background: var(--bg); min-width: 0;
}
.quote-preview-panel { position: sticky; top: 88px; background: var(--accent-soft); }
.quote-logo-upload {
    display: grid; min-height: 120px; place-items: center; text-align: center;
    border: 2px dashed var(--line); border-radius: var(--radius); cursor: pointer; gap: 0.3rem;
}
.quote-logo-upload input { max-width: 320px; font-size: 0.85rem; }
.quote-logo-upload em { font-style: normal; color: var(--accent-dark); font-weight: 600; }
.quote-logo-upload span { display: block; font-size: 0.78rem; color: var(--muted); }
.quote-grid-4, .quote-toolbar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.quote-two-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); }
@media (max-width: 760px) { .quote-two-columns, .quote-grid-4, .quote-toolbar { grid-template-columns: 1fr 1fr; } }
.quote-panel h2 { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 1rem; margin-bottom: 0.6rem; }
.quote-panel h2 span { color: var(--muted); font-size: 0.82rem; font-weight: 600; }
.quote-check { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); }
.quote-check input { width: 20px; min-height: 20px; }
.quote-lines { display: grid; gap: var(--space-2); }
.quote-line {
    display: grid; grid-template-columns: 30px minmax(0, 1.4fr) minmax(0, 1.6fr) 90px 110px 110px auto;
    gap: 10px; align-items: end; background: var(--bg-soft);
    border: 1px solid var(--line); border-radius: var(--radius); padding: 0.8rem;
}
.quote-line-number { font-weight: 800; color: var(--accent); align-self: start; padding-top: 0.5rem; }
.quote-line label { display: grid; gap: 0.2rem; font-size: 0.76rem; font-weight: 600; color: var(--ink); }
.quote-line input, .quote-line select, .quote-toolbar input, .quote-toolbar select, .quote-grid-4 input, .quote-grid-4 select {
    width: 100%; padding: 0.5rem 0.6rem; border: 1.5px solid var(--line);
    border-radius: var(--radius-sm); font: inherit; font-size: 0.88rem; color: var(--ink); background: #fff;
}
.quote-line input:focus, .quote-line select:focus, .quote-toolbar input:focus, .quote-toolbar select:focus, .quote-grid-4 input:focus, .quote-grid-4 select:focus {
    outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.quote-remove { background: none; border: 1.5px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; padding: 0.45rem 0.6rem; font-size: 0.78rem; color: #b3261e; font-weight: 600; }
.quote-remove:hover { background: #b3261e; color: #fff; border-color: #b3261e; }
.quote-actions, .quote-preview-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.quote-preview {
    padding: clamp(16px, 2.5vw, 30px); background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); color: #17171a; min-width: 0; overflow-x: auto;
    box-shadow: 0 14px 40px rgba(22, 24, 29, 0.08);
}
.quote-document-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 20px; padding-bottom: 16px; border-bottom: 4px solid var(--accent); }
.quote-document-logo { display: grid; min-width: 150px; min-height: 70px; place-items: center; color: var(--ink); font-weight: 800; font-size: 1.05rem; }
.quote-document-logo img { max-width: 160px; max-height: 90px; object-fit: contain; }
.quote-document-header h2 { margin: 0; color: var(--ink); font-size: clamp(24px, 3vw, 32px); text-align: right; }
.quote-document-header p { margin: 4px 0 0; text-align: right; color: var(--muted); }
.quote-document-meta, .quote-document-parties { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin-top: 16px; }
.quote-document-parties { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.quote-document-meta div, .quote-document-parties div { display: grid; gap: 3px; padding: 10px; border: 1px solid rgba(22, 24, 29, 0.12); border-radius: 8px; }
.quote-document-meta span, .quote-document-parties small { color: rgba(23, 23, 26, 0.68); }
.quote-document-parties span { font-weight: 800; }
.quote-document-table { width: 100%; margin-top: 16px; border-collapse: collapse; table-layout: fixed; }
.quote-document-table th { padding: 10px; background: var(--ink); color: #fff; text-align: left; font-size: 0.82rem; }
.quote-document-table td { padding: 10px; border-bottom: 1px solid rgba(22, 24, 29, 0.12); vertical-align: top; font-size: 0.88rem; overflow-wrap: anywhere; }
.quote-document-table th:first-child, .quote-document-table td:first-child { width: 42%; }
.quote-document-table td:not(:first-child) { text-align: right; }
.quote-document-table td span { display: block; margin-top: 3px; color: rgba(23, 23, 26, 0.62); font-size: 0.8rem; }
.quote-document-total { display: grid; gap: 8px; width: min(360px, 100%); margin: 18px 0 0 auto; }
.quote-document-total div { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; border-bottom: 1px solid rgba(22, 24, 29, 0.12); }
.quote-grand-total { margin-top: 10px; padding: 14px 16px !important; border: 0 !important; border-top: 2px solid rgba(22, 24, 29, 0.16) !important; background: var(--accent-soft); color: var(--ink); font-size: 1.15rem; font-weight: 800; }
.quote-document-footer { margin-top: 20px; padding-top: 12px; border-top: 1px solid rgba(22, 24, 29, 0.12); }
.quote-document-footer p { margin: 0.4rem 0 0; font-size: 0.88rem; color: var(--body); }
.compact-help { font-size: 0.8rem; color: var(--muted); margin: 0; }
@media (max-width: 1020px) {
    .quote-generator { grid-template-columns: 1fr; }
    .quote-preview-panel { position: static; }
    .quote-line { grid-template-columns: 1fr 1fr; }
    .quote-line-number { grid-column: 1 / -1; padding-top: 0; }
}
@media print {
    .site-header, .site-footer, .cta-band, .breadcrumbs, .quote-form, .quote-preview-actions, .compact-help { display: none !important; }
    .quote-generator { grid-template-columns: 1fr; }
    .quote-preview { border: 0; box-shadow: none; }
}

/* ---------------------------- Vehicle import calculator ---------------------------- */
.vehicle-results { display: grid; gap: 0.4rem; }
.vehicle-results button {
    text-align: left; padding: 0.6rem 0.8rem; border: 1.5px solid var(--line);
    border-radius: var(--radius-sm); background: #fff; font: inherit; font-size: 0.88rem;
    color: var(--ink); cursor: pointer;
}
.vehicle-results button:hover { border-color: var(--accent); color: var(--accent-dark); }
.vi-manual { border: 1px solid var(--line); border-radius: var(--radius); padding: 0.7rem 0.9rem; background: #fafbfc; }
.vi-manual summary { cursor: pointer; font-weight: 600; color: var(--ink); font-size: 0.88rem; }
.vi-manual[open] { display: grid; gap: 0.7rem; }
.vi-manual label { display: grid; gap: 0.25rem; font-weight: 600; font-size: 0.85rem; color: var(--ink); }
.vi-manual input { width: 100%; padding: 0.5rem 0.6rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font: inherit; color: var(--ink); }
.vi-manual input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* ---------------------------- Investment calculators ---------------------------- */
.projection-table { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
.projection-table th { padding: 8px; background: var(--ink); color: #fff; text-align: left; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.05em; }
.projection-table td { padding: 7px 8px; border-bottom: 1px solid var(--line); text-align: right; }
.projection-table td:first-child, .projection-table th:first-child { text-align: left; }
.comparison-table th, .comparison-table td { font-size: 0.82rem; }
.comparison-table span { color: var(--muted); font-size: 0.78rem; }
.comparison-option { border: 1px solid var(--line); border-radius: var(--radius); padding: 0.9rem; margin: 0 0 0.9rem; display: grid; gap: 0.5rem; }
.comparison-option legend { padding: 0 8px; color: var(--accent-dark); font-weight: 700; font-size: 0.85rem; }
.comparison-option label { display: grid; gap: 0.2rem; font-size: 0.8rem; font-weight: 600; color: var(--ink); }
.comparison-option input, .comparison-option select { width: 100%; padding: 0.45rem 0.55rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font: inherit; font-size: 0.85rem; color: var(--ink); }
.comparison-option input:focus, .comparison-option select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* ---------------------------- WhatsApp float ---------------------------- */
.whatsapp-float {
    position: fixed; right: 1rem; bottom: 1rem; z-index: 60;
    width: 3.25rem; height: 3.25rem; border-radius: 50%;
    background: #25d366; color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.whatsapp-float svg { width: 1.7rem; height: 1.7rem; fill: currentColor; }
.whatsapp-float:hover, .whatsapp-float:focus-visible { background: #1fb955; color: #fff; text-decoration: none; }
@media (min-width: 900px) { .whatsapp-float { right: 1.5rem; bottom: 1.5rem; } }
.footer-legal { padding-right: 4.5rem; }

/* ---------------------------- WhatsApp link tool ---------------------------- */
.wa-link-output {
    font-family: ui-monospace, Consolas, monospace; font-size: 0.92rem;
    word-break: break-all; background: var(--bg-soft);
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: 0.7rem 0.9rem; margin: 0 0 0.9rem; min-height: 2.6rem;
}
.wa-link-error { color: #b3261e; background: #fdecec; border-color: #f2c6c3; }
#whatsapp-link-tool .quote-panel > label { display: grid; gap: 0.35rem; margin-bottom: 1rem; }
#whatsapp-link-tool input, #whatsapp-link-tool textarea { width: 100%; }

/* ---------------------------- QR code tool ---------------------------- */
.qr-type-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.qr-type.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
#qr-tool .quote-panel > label { display: grid; gap: 0.35rem; margin-bottom: 1rem; }
#qr-tool input, #qr-tool select { width: 100%; }
.qr-inline-check { display: flex !important; align-items: center; gap: 0.5rem; flex-direction: row !important; }
.qr-inline-check input { width: auto !important; }
.qr-canvas-wrap { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; text-align: center; margin-bottom: 1rem; }
.qr-canvas-wrap canvas { width: 100%; max-width: 320px; height: auto; border-radius: var(--radius-sm); }
#qr-fields-text label { display: block; }
#qr-fields-text textarea { display: block; width: 100%; margin-bottom: 0.4rem; }
#qr-tool input[type="color"] { height: 2.6rem; padding: 0.2rem; }

/* ---------------------------- Image converter ---------------------------- */
#convert-tool .quote-panel > label { display: grid; gap: 0.35rem; margin-bottom: 1rem; }
#convert-tool input[type="range"] { width: 100%; accent-color: var(--accent); }
.drop-zone { border: 2px dashed var(--line); border-radius: var(--radius); padding: 1.6rem 1rem; text-align: center; cursor: pointer; margin-bottom: 0.8rem; transition: border-color 0.15s, background 0.15s; }
.drop-zone:hover, .drop-zone.is-drag { border-color: var(--accent); background: var(--bg-soft); }
.ci-results { display: grid; gap: 0.5rem; margin-top: 0.9rem; }
.ci-result-row { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.5rem 0.8rem; font-size: 0.88rem; }
.ci-result-label { word-break: break-all; color: var(--ink-soft); }
#compress-tool .quote-panel > label { display: grid; gap: 0.35rem; margin-bottom: 1rem; }
#compress-tool input[type="range"] { width: 100%; accent-color: var(--accent); }

/* ---------------------------- Delivery note tool ---------------------------- */
#delivery-note-tool .quote-panel > label { display: grid; gap: 0.35rem; margin-bottom: 0.9rem; }
.delivery-lines { display: grid; gap: 0.7rem; margin-bottom: 0.9rem; }
.delivery-line { display: grid; grid-template-columns: 28px minmax(0, 1.15fr) minmax(0, 1.2fr) minmax(64px, 0.4fr) minmax(92px, 0.56fr) minmax(112px, 0.72fr); gap: 10px; align-items: end; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(22, 24, 29, 0.025); min-width: 0; }
.delivery-line label { min-width: 0; margin: 0; gap: 6px; font-size: 0.82rem; line-height: 1.25; }
.delivery-line input, .delivery-line select { min-width: 0; width: 100%; min-height: 44px; padding: 0 10px; font-size: 0.84rem; line-height: 1.35; text-overflow: ellipsis; }
.quote-line-number { align-self: center; font-weight: 800; }
.delivery-line .quote-remove { grid-column: 2 / -1; justify-self: start; min-height: 40px; padding: 8px 12px; font-size: 0.84rem; }
.delivery-form .quote-grid-4 input, .delivery-form .quote-grid-4 select { min-width: 0; width: 100%; }
.delivery-form input::placeholder { font-size: 0.78rem; }
.delivery-preview { color: var(--ink); min-width: 0; overflow-x: auto; }
.delivery-document-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; justify-content: space-between; gap: 20px; padding-bottom: 16px; border-bottom: 4px solid var(--accent); }
.delivery-document-header h2 { margin: 0; font-size: clamp(24px, 3vw, 32px); text-align: right; }
.delivery-document-header p { margin: 4px 0 0; text-align: right; color: var(--ink-soft); }
.delivery-document-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.delivery-document-grid div { display: grid; gap: 3px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.delivery-document-grid span { font-weight: 800; }
.delivery-document-grid small { color: var(--ink-soft); }
.delivery-document-table { width: 100%; margin-top: 18px; border-collapse: collapse; table-layout: fixed; font-size: 0.9rem; }
.delivery-document-table th { padding: 10px; background: var(--ink); color: #fff; text-align: left; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; }
.delivery-document-table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.delivery-document-table td span { display: block; color: var(--ink-soft); font-size: 0.82rem; }
.delivery-signatures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 1.4rem; }
.delivery-signatures div { border-top: 2px solid rgba(22, 24, 29, 0.3); padding-top: 8px; font-size: 0.8rem; font-weight: 700; }
.delivery-item-redacted { text-decoration: line-through; text-decoration-color: #d92c35; text-decoration-thickness: 2px; }
.delivery-preview--label { max-width: 480px; border: 2px solid var(--ink); border-radius: var(--radius); }
.delivery-label-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 12px; }
.delivery-label-logo { color: var(--ink); font-weight: 800; overflow-wrap: anywhere; }
.delivery-label-logo img { max-width: 116px; max-height: 44px; object-fit: contain; }
.delivery-label-header strong { display: block; font-size: 17px; line-height: 1.25; text-align: right; }
.delivery-label-header span { display: block; color: var(--ink-soft); font-size: 0.72rem; font-weight: 800; text-align: right; }
.delivery-label-customer { display: grid; gap: 2px; margin-top: 12px; }
.delivery-label-customer span, .delivery-label-meta span { color: var(--ink-soft); font-size: 0.68rem; font-weight: 800; text-transform: uppercase; }
.delivery-label-customer strong { font-size: 22px; line-height: 1.18; }
.delivery-label-customer p { margin: 0; font-size: 0.84rem; font-weight: 700; line-height: 1.28; }
.delivery-label-meta { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 10px; }
.delivery-label-meta div { min-width: 0; padding: 7px; border: 1px solid var(--line); border-radius: 8px; }
.delivery-label-meta strong { display: block; overflow: hidden; font-size: 0.72rem; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.delivery-label-items { display: grid; gap: 3px; margin: 10px 0 0; padding: 0; list-style: none; font-size: 0.74rem; font-weight: 700; line-height: 1.25; }
.delivery-label-signatures { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-top: 14px; }
.delivery-label-signatures div { border-top: 2px solid rgba(22, 24, 29, 0.38); padding-top: 8px; }
.delivery-label-signatures span { font-size: 0.62rem; font-weight: 800; text-transform: uppercase; }
.delivery-label-footer { margin-top: 12px; color: var(--accent); font-size: 0.72rem; font-weight: 800; text-transform: uppercase; }
@media (max-width: 700px) {
    .delivery-line { grid-template-columns: 1fr 1fr; }
    .delivery-line .quote-line-number { grid-column: 1 / -1; }
}

/* ---------------------------- SKU + description tools ---------------------------- */
#sku-tool .quote-panel > label, #pdesc-tool .quote-panel > label { display: grid; gap: 0.35rem; margin-bottom: 1rem; }
#sku-tool input, #pdesc-tool input, #pdesc-tool textarea { width: 100%; }
.sku-output {
    font-family: ui-monospace, Consolas, monospace; font-size: 1.3rem; font-weight: 800;
    letter-spacing: 0.04em; word-break: break-all; background: var(--bg-soft);
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: 1rem 1.2rem; margin: 0 0 0.9rem; min-height: 3rem;
}
#pdesc-output { width: 100%; font: inherit; line-height: 1.6; padding: 0.9rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-soft); margin-bottom: 0.9rem; resize: vertical; }

/* ---------------------------- Receipt tool ---------------------------- */
#receipt-tool .quote-panel > label { display: grid; gap: 0.35rem; margin-bottom: 0.9rem; }
.receipt-lines { display: grid; gap: 0.7rem; margin-bottom: 0.9rem; }
.receipt-line { display: grid; grid-template-columns: minmax(0, 2fr) minmax(70px, 0.5fr) minmax(90px, 0.6fr) minmax(100px, 0.6fr) auto; gap: 10px; align-items: end; }
.receipt-line label { min-width: 0; margin: 0; gap: 6px; font-size: 0.82rem; }
.receipt-line input { min-width: 0; width: 100%; min-height: 44px; padding: 0 10px; }
.receipt-line input[readonly] { background: var(--bg-soft); }
.receipt-parties { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 18px; }
.receipt-parties div { display: grid; gap: 3px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.receipt-parties strong { font-size: 0.82rem; }
.receipt-document-table td, .receipt-document-table th { text-align: left; }
.receipt-totals { display: grid; gap: 6px; margin-top: 16px; max-width: 340px; margin-left: auto; }
.receipt-totals div { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.92rem; }
.receipt-totals span { color: var(--ink-soft); }
.receipt-total-row { border-top: 2px solid var(--ink); padding-top: 8px; font-size: 1.05rem !important; }
.receipt-notes, .receipt-terms { margin-top: 14px; font-size: 0.88rem; }
.receipt-notes p, .receipt-terms p { margin: 0.3rem 0 0; color: var(--ink-soft); }
.vat-result dd { color: var(--ink); font-weight: 700; }
#roadtrip-tool .quote-panel > label { display: grid; gap: 0.35rem; margin-bottom: 0.9rem; }
#roadtrip-tool input, #roadtrip-tool select { width: 100%; }
#shoe-tool .quote-panel > label { display: grid; gap: 0.35rem; margin-bottom: 0.9rem; }
#shoe-tool input { width: 100%; }

/* ---------------------------- Tools page index ---------------------------- */
.tools-toolbar { display: grid; gap: 0.9rem; margin-bottom: 1.8rem; }
.tools-search-row { display: flex; align-items: center; gap: 1rem; border: 1px solid var(--line); border-radius: var(--radius); padding: 0.3rem 1rem; background: var(--bg); }
.tools-search-row:focus-within { border-color: var(--accent); }
.tools-search { flex: 1; border: 0; outline: none; font: inherit; padding: 0.8rem 0; background: none; min-width: 0; }
.tools-count { white-space: nowrap; color: var(--ink-soft); font-size: 0.85rem; font-weight: 700; }
.tools-chips { display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.3rem; scrollbar-width: thin; }
.tools-chip { border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 0.5rem 1.1rem; font: inherit; font-size: 0.85rem; font-weight: 700; cursor: pointer; white-space: nowrap; }
.tools-chip:hover { border-color: var(--accent); }
.tools-chip.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.tool-grid { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); align-items: start; }
@media (min-width: 900px) { .tool-grid { grid-template-columns: repeat(2, 1fr); } }
a.tool-card { text-decoration: none; color: inherit; transition: border-color 0.15s; }
a.tool-card:hover { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
a.tool-card h2 { font-size: 1.08rem; }
.tool-card.is-hidden { display: none !important; }
.card-link { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--accent-dark); font-weight: 700; font-size: 0.85rem; }

/* ---------------------------- Tool request modal ---------------------------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(22, 24, 29, 0.55); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.modal-backdrop[hidden] { display: none; }
.modal-card { position: relative; width: min(560px, 100%); max-height: calc(100vh - 2rem); overflow-y: auto; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-3); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3); }
.modal-card h2 { margin-bottom: 0.4rem; }
.modal-card .form-field { margin-bottom: 0.9rem; }
.modal-card label { display: grid; gap: 0.3rem; font-weight: 600; font-size: 0.88rem; }
.modal-card input, .modal-card textarea { width: 100%; padding: 0.6rem 0.75rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font: inherit; }
.modal-card input:focus, .modal-card textarea:focus { outline: none; border-color: var(--accent); }
.modal-close { position: absolute; top: 0.8rem; right: 0.8rem; border: 0; background: none; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--ink-soft); padding: 0.2rem; }
.modal-close:hover { color: var(--accent); }
.hp-field { position: absolute; left: -9999px; height: 1px; width: 1px; overflow: hidden; }
button.text-link { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }

/* ---------------------------- Accent hero (service pages) ---------------------------- */
.page-hero--accent { background: var(--accent); color: var(--ink); }
.page-hero--accent h1 { color: var(--ink); max-width: 24ch; }
.page-hero--accent .page-hero-sub { color: rgba(22, 24, 29, 0.82); }
.page-hero--accent .eyebrow { color: var(--ink); }
.page-hero--accent .page-hero-icon { background: #fff; color: var(--accent); }
.page-hero--accent .page-hero a { color: var(--ink); }
.page-hero--accent .page-hero-actions .btn-ink { background: var(--ink); color: #fff; }
.page-hero--accent .page-hero-actions .btn-ink:hover { background: #000; }
.page-hero--accent .page-hero-actions .btn-ghost-light { color: var(--ink); background: rgba(255, 255, 255, 0.85); border-color: var(--ink); }
.btn-ink { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------------------------- Service hero split ---------------------------- */
.hero-split { display: grid; gap: var(--space-4); align-items: center; }
@media (min-width: 900px) { .page-hero--split .hero-split { grid-template-columns: 1.15fr 0.85fr; } }
.hero-split-media { margin: 0; }
.hero-split-media img { width: 100%; height: auto; border-radius: var(--radius); border: 3px solid rgba(255, 255, 255, 0.85); display: block; }
@media (max-width: 899px) { .page-hero--split .hero-split-media { order: 2; } .page-hero--split .hero-split-copy { order: 1; } }

/* ---------------------------- Supporting palette (Cherie-inspired) ---------------------------- */
.section-cream { background: var(--cream); }
.tag-green { background: var(--green); color: #fff; }
.tag-magenta { background: var(--magenta); color: #fff; }
.tag-yellow { background: var(--yellow); color: var(--ink); }
.tag-orange { background: var(--accent); color: #fff; }
.page-hero--accent .page-hero-meta dt { color: rgba(22, 24, 29, 0.72); }
.page-hero--accent .page-hero-meta dd { color: var(--ink); }
.page-hero--accent .page-hero-meta div { border-left-color: var(--ink); }
.page-hero--accent .hero-note { color: rgba(22, 24, 29, 0.72); }
