/*
 * Webitu default theme
 * System fonts only, no external requests. Light and dark mode. WCAG 2.1 AA contrast.
 */

/* ---------- Tokens ---------- */
:root {
    --bg: #ffffff;
    --surface: #f6f7f9;
    --surface-2: #eef0f4;
    --text: #15171c;
    --muted: #5a606c;
    --line: #e3e6eb;
    --accent: #3546d8;
    --accent-hover: #2636b8;
    --accent-soft: #eef0fd;
    --on-accent: #ffffff;
    --success: #17663a;
    --success-soft: #e7f5ec;
    --error: #b42318;
    --error-soft: #fdeceb;
    --warn-soft: #fff4d1;
    --warn: #6b4e00;

    --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, "Liberation Mono", monospace;

    --container: 72rem;
    --narrow: 46rem;
    --gutter: 1.25rem;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 2px rgb(16 24 40 / 0.04), 0 4px 16px rgb(16 24 40 / 0.06);
    --shadow-hover: 0 2px 4px rgb(16 24 40 / 0.06), 0 12px 32px rgb(16 24 40 / 0.10);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #101216;
        --surface: #171a20;
        --surface-2: #1e222a;
        --text: #eceef2;
        --muted: #a2a8b4;
        --line: #2a2f38;
        --accent: #8b9aff;
        --accent-hover: #a9b4ff;
        --accent-soft: #1e2340;
        --on-accent: #0c0f24;
        --success: #6fd49a;
        --success-soft: #142a1d;
        --error: #ff8f86;
        --error-soft: #331715;
        --warn-soft: #2f2710;
        --warn: #f2cf6b;
        --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 4px 16px rgb(0 0 0 / 0.25);
        --shadow-hover: 0 2px 4px rgb(0 0 0 / 0.35), 0 12px 32px rgb(0 0 0 / 0.35);
    }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: 5.5rem; /* anchor jumps stop below the sticky header */
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--text);
    font: 1.0625rem/1.7 var(--font);
    -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.85rem); font-weight: 750; }
h3 { font-size: 1.25rem; font-weight: 700; }

.skip-link {
    position: absolute; left: var(--gutter); top: -5rem; z-index: 100;
    padding: 0.7rem 1.1rem; border-radius: var(--radius-sm);
    background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container.narrow { max-width: calc(var(--narrow) + 2 * var(--gutter)); }
.site-main { flex: 1; }
.site-main:focus { outline: none; }
.section { padding-block: clamp(2.5rem, 5vw, 4.5rem); }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem 2rem; min-height: 4.5rem; flex-wrap: wrap; padding-block: 0.6rem; }

.brand { display: flex; align-items: center; gap: 0.7rem; color: var(--text); text-decoration: none; min-width: 0; }
.brand:hover { color: var(--text); }
.brand-mark {
    flex: none; display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 10px;
    background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: 1.1rem;
}
.brand-logo { display: block; height: 2.25rem; width: auto; max-width: min(55vw, 15rem); object-fit: contain; object-position: left center; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.made-with { display: inline-flex; align-items: center; gap: 0.3rem; vertical-align: bottom; }
.made-with img { display: block; width: 0.9rem; height: 0.9rem; }
.brand-name { font-weight: 750; font-size: 1.05rem; letter-spacing: -0.01em; line-height: 1.25; }
.brand-tagline { color: var(--muted); font-size: 0.82rem; line-height: 1.3; }

.header-nav { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.main-nav ul, .lang-switch ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem; }
.main-nav a {
    display: block; padding: 0.45rem 0.8rem; border-radius: 999px;
    color: var(--muted); font-weight: 550; font-size: 0.95rem; text-decoration: none;
}
.main-nav a:hover { color: var(--text); background: var(--surface-2); }
.main-nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }

.lang-switch { padding-left: 1rem; border-left: 1px solid var(--line); }
.lang-switch a {
    display: block; padding: 0.3rem 0.55rem; border-radius: 6px;
    color: var(--muted); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; text-decoration: none;
}
.lang-switch a:hover { color: var(--text); background: var(--surface-2); }
.lang-switch a[aria-current="true"] { color: var(--text); background: var(--surface-2); }

/* Hamburger button (phones only) */
.menu-toggle { display: none; }
.menu-toggle-label {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

@media (max-width: 720px) {
    .header-inner { flex-wrap: nowrap; min-height: 4rem; gap: 0.75rem; }
    .brand-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .brand-tagline { display: none; }

    /* Without JavaScript: the menu stays visible as a scrollable row under the logo. */
    html:not(.js) .header-inner { flex-wrap: wrap; }
    html:not(.js) .header-nav { width: 100%; justify-content: space-between; }
    html:not(.js) .main-nav { overflow-x: auto; margin-inline: -0.8rem; }
    html:not(.js) .main-nav ul { flex-wrap: nowrap; }
    html:not(.js) .main-nav a { white-space: nowrap; }

    /* With JavaScript: hamburger button and a dropdown panel. */
    .js .menu-toggle {
        display: inline-grid; place-items: center; flex: none; width: 2.75rem; height: 2.75rem; padding: 0;
        border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--text); cursor: pointer;
    }
    .js .menu-toggle:hover { background: var(--surface-2); }
    .menu-toggle-icon { position: relative; display: block; width: 1.25rem; height: 0.875rem; }
    .menu-toggle-icon span {
        position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor;
        transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
    }
    .menu-toggle-icon span:nth-child(1) { top: 0; }
    .menu-toggle-icon span:nth-child(2) { top: calc(50% - 1px); }
    .menu-toggle-icon span:nth-child(3) { top: calc(100% - 2px); }
    .menu-open .menu-toggle-icon span:nth-child(1) { top: calc(50% - 1px); transform: rotate(45deg); }
    .menu-open .menu-toggle-icon span:nth-child(2) { opacity: 0; }
    .menu-open .menu-toggle-icon span:nth-child(3) { top: calc(50% - 1px); transform: rotate(-45deg); }

    .js .header-nav {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0.5rem;
        padding: 0.75rem var(--gutter) 1.25rem;
        background: var(--bg); border-bottom: 1px solid var(--line);
        box-shadow: 0 16px 32px rgb(16 24 40 / 0.12);
    }
    .js.menu-open .header-nav { display: flex; animation: menu-in 0.18s ease-out; }
    .js .main-nav ul { flex-direction: column; gap: 0.25rem; }
    .js .main-nav a { padding: 0.85rem 1rem; border-radius: 12px; font-size: 1.05rem; color: var(--text); }
    .js .main-nav a[aria-current="page"] { color: var(--accent); }
    .js .lang-switch { padding: 0.75rem 0 0; border-left: 0; border-top: 1px solid var(--line); }
    .js .lang-switch ul { gap: 0.5rem; }
    .js .lang-switch a { padding: 0.5rem 0.9rem; border: 1px solid var(--line); border-radius: 999px; }
}

@keyframes menu-in {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: none; }
}

/* ---------- Hero (homepage) ---------- */
.hero {
    padding-block: clamp(3.5rem, 9vw, 7rem) clamp(2.5rem, 6vw, 4.5rem);
    text-align: center;
    background:
        radial-gradient(60rem 24rem at 50% -6rem, var(--accent-soft), transparent 70%),
        var(--bg);
    border-bottom: 1px solid var(--line);
}
.hero h1 { font-size: clamp(2.25rem, 1.5rem + 3.5vw, 3.75rem); }
.hero-lead { margin: 1.1rem auto 0; max-width: 36rem; color: var(--muted); font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); line-height: 1.55; }

/* ---------- Page header ---------- */
.page-header { margin-bottom: 2rem; }
.eyebrow { margin: 0 0 0.6rem; color: var(--muted); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.02em; }
.back-link { margin: 0 0 1.5rem; font-size: 0.95rem; }
.back-link a { color: var(--muted); text-decoration: none; }
.back-link a:hover { color: var(--accent); }

/* ---------- Prose (page content) ---------- */
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose pre, .prose dl { margin: 0 0 1.25em; }
.prose h2 { margin: 2.2em 0 0.7em; }
.prose h3 { margin: 1.8em 0 0.5em; }
.prose h4 { margin: 1.5em 0 0.4em; font-size: 1.05rem; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin: 0.35em 0; }
.prose li::marker { color: var(--accent); }
.prose strong { font-weight: 700; }
.prose img { display: block; margin: 2em auto; border-radius: var(--radius); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 3em 0; }
.prose blockquote {
    padding: 1rem 1.25rem; border-left: 4px solid var(--accent);
    background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--text);
}
.prose blockquote > :last-child { margin-bottom: 0; }
.prose code { font-family: var(--mono); font-size: 0.88em; background: var(--surface-2); padding: 0.15em 0.4em; border-radius: 5px; }
.prose pre { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.25rem; overflow-x: auto; line-height: 1.55; }
.prose pre code { background: none; padding: 0; font-size: 0.88rem; }

/* ---------- Cards (blog) ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 1.25rem; }
.prose .card-grid { margin: 1.5em 0 2em; }
.card {
    position: relative; display: flex; flex-direction: column;
    padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--bg); box-shadow: var(--shadow);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.card .eyebrow { margin-bottom: 0.4rem; }
.card-title { font-size: 1.2rem; margin: 0 0 0.5rem; }
.prose .card-title { margin: 0 0 0.5rem; }
.card-title a { color: var(--text); text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* whole card is clickable */
.card-title a:focus-visible { outline: none; }
.card:has(a:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }
.card-text { margin: 0 0 1rem; color: var(--muted); font-size: 0.97rem; line-height: 1.6; }
.prose .card-text { margin: 0 0 1rem; }
.card-more { margin: auto 0 0; color: var(--accent); font-weight: 600; font-size: 0.93rem; }
.prose .card-more { margin: auto 0 0; }

.empty { color: var(--muted); padding: 2rem; text-align: center; background: var(--surface); border-radius: var(--radius); }

.pager { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; }
.pager a { padding: 0.6rem 1rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 600; }
.pager a:hover { background: var(--surface); }
.pager [rel="next"] { margin-left: auto; }

/* ---------- Buttons ---------- */
.button {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.8rem 1.5rem; border: 0; border-radius: 999px; cursor: pointer;
    background: var(--accent); color: var(--on-accent);
    font: inherit; font-weight: 650; text-decoration: none; line-height: 1.2;
    transition: background 0.15s ease;
}
.button:hover { background: var(--accent-hover); color: var(--on-accent); }

/* ---------- Contact form ---------- */
.contact-form {
    margin: 2rem 0; padding: clamp(1.25rem, 4vw, 2rem);
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 0 1rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; margin-bottom: 0.35rem; font-weight: 600; font-size: 0.95rem; }
.field input, .field textarea {
    width: 100%; padding: 0.7rem 0.85rem;
    font: inherit; font-size: 1rem; color: var(--text);
    background: var(--bg); border: 1px solid color-mix(in srgb, var(--muted) 55%, var(--line)); border-radius: var(--radius-sm);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { resize: vertical; min-height: 9rem; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.consent { display: flex; gap: 0.7rem; align-items: flex-start; margin: 0.25rem 0 1.4rem; font-size: 0.93rem; color: var(--muted); }
.consent input { flex: none; width: 1.15rem; height: 1.15rem; margin-top: 0.25rem; accent-color: var(--accent); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.notice { margin: 0 0 1.5rem; padding: 0.9rem 1.1rem; border-radius: var(--radius-sm); font-size: 0.97rem; }
.notice p { margin: 0; }
.notice ul { margin: 0.4rem 0 0; padding-left: 1.2rem; }
.notice-success { background: var(--success-soft); color: var(--success); }
.notice-error { background: var(--error-soft); color: var(--error); }
.notice-info { margin: 2rem 0; background: var(--surface); border: 1px solid var(--line); color: var(--text); }

.draft-note { display: inline-block; margin: 0 0 1.25rem; padding: 0.35rem 0.8rem; border-radius: 999px; background: var(--warn-soft); color: var(--warn); font-size: 0.85rem; font-weight: 700; }

/* ---------- Business details ---------- */
.company-details {
    display: grid; grid-template-columns: max-content 1fr; gap: 0.6rem 1.5rem;
    padding: 1.25rem 1.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.company-details dt { color: var(--muted); font-weight: 600; }
.company-details dd { margin: 0; }
@media (max-width: 480px) {
    .company-details { grid-template-columns: 1fr; gap: 0.1rem; }
    .company-details dd { margin-bottom: 0.6rem; }
}

/* ---------- 404 ---------- */
.not-found { text-align: center; }
.not-found .hero-lead { margin-bottom: 2rem; }

/* ---------- Page blocks ---------- */
.blocks-header { padding-top: clamp(2.5rem, 5vw, 4rem); }
.blocks-header h1 { margin-bottom: 0.5rem; }
.block { padding-block: clamp(2rem, 4.5vw, 3.5rem); }
.blocks > .block:last-child { padding-bottom: clamp(3rem, 6vw, 5rem); }
.block-heading { margin: 0 0 1.5rem; }
.block-header { max-width: 46rem; margin-bottom: 2rem; }
.block-header .block-heading { margin: 0; }
.block-intro { margin: 0.75rem 0 0; color: var(--muted); font-size: 1.1rem; line-height: 1.6; }
.block-eyebrow { margin: 0 0 0.6rem; color: var(--accent); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.block-tinted { background: var(--surface); border-block: 1px solid var(--line); }
.blocks > .block-tinted:last-child { padding-bottom: clamp(2rem, 4.5vw, 3.5rem); }
.block-text .prose > :first-child { margin-top: 0; }

.block-hero {
    padding-block: clamp(3.5rem, 9vw, 7rem);
    background: radial-gradient(60rem 24rem at 50% -6rem, var(--accent-soft), transparent 70%), var(--bg);
    border-bottom: 1px solid var(--line);
}
.blocks > .block-hero:first-child { margin-top: 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; align-items: center; text-align: center; }
.block-hero.has-image .hero-grid { text-align: left; }
.block-hero.has-image .hero-title { font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.25rem); }
@media (min-width: 900px) { .block-hero.has-image .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 3.5rem; } }
.hero-title { font-size: clamp(2.25rem, 1.5rem + 3.5vw, 3.75rem); font-weight: 800; margin: 0; }
.block-hero .hero-lead { margin: 1.1rem 0 0; max-width: 38rem; }
.block-hero:not(.has-image) .hero-lead { margin-inline: auto; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.75rem 0 0; }
.block-hero:not(.has-image) .hero-actions { justify-content: center; }
.hero-eyebrow {
    display: inline-block; margin: 0 0 1.1rem; padding: 0.3rem 0.85rem; border-radius: 999px;
    background: var(--accent-soft); color: var(--accent); font-size: 0.88rem; font-weight: 700;
}
.hero-note { margin: 1rem 0 0; color: var(--muted); font-size: 0.92rem; }
.button-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--muted) 45%, var(--line)); }
.button-ghost:hover { background: var(--surface-2); color: var(--text); }
.hero-media img { display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow-hover); }

.split-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem 4rem; align-items: center; }
@media (min-width: 900px) {
    .split-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
    .image-left .split-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
    .image-left .split-media { order: -1; }
    .no-image .split-grid { grid-template-columns: minmax(0, 46rem); }
}
.split-copy .block-heading { margin-bottom: 1rem; }
.split-copy .prose { color: var(--muted); }
.split-copy .prose strong { color: var(--text); }
.split-actions { margin: 1.5rem 0 0; }
.split-media img { display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow-hover); }

.block-image figure { margin: 0 auto; }
.block-image img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.block-image figcaption { margin-top: 0.6rem; color: var(--muted); font-size: 0.92rem; text-align: center; }

.gallery-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 0.75rem; }
.gallery-grid a { display: block; border-radius: var(--radius-sm); overflow: hidden; }
.gallery-grid img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.25s ease; }
.gallery-grid a:hover img { transform: scale(1.03); }

.columns-grid { display: grid; gap: 2rem 3rem; }
@media (min-width: 760px) { .columns-grid { grid-template-columns: 1fr 1fr; } }

.cta-box {
    padding: clamp(1.75rem, 5vw, 3rem); border-radius: calc(var(--radius) + 4px); text-align: center;
    background: var(--accent); color: var(--on-accent);
}
.cta-box h2 { margin: 0 0 0.75rem; }
.cta-box p { margin: 0 auto; max-width: 34rem; }
.cta-box p + p { margin-top: 1.5rem; }
.button-light { background: var(--on-accent); color: var(--accent); }
.button-light:hover { background: var(--on-accent); color: var(--accent-hover); filter: brightness(0.96); }

.testimonial-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1.25rem; }
.feature-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .feature-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.feature { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.block-tinted .feature { background: var(--bg); }
.feature h3 { margin: 0 0 0.5rem; font-size: 1.15rem; }
.feature p { margin: 0; color: var(--muted); }
.feature-icon, .feature-number {
    display: grid; place-items: center; width: 2.5rem; height: 2.5rem; margin-bottom: 1rem;
    border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: 1.1rem;
}
.is-numbered .feature-number { border-radius: 50%; background: var(--accent); color: var(--on-accent); }

.faq-list { display: grid; gap: 0.75rem; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.faq-item summary { cursor: pointer; list-style: none; padding: 1rem 3rem 1rem 1.25rem; font-weight: 650; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%); font-size: 1.3rem; color: var(--accent); transition: transform 0.2s ease; }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item .prose { padding: 0 1.25rem 1.1rem; color: var(--muted); }

.testimonial { margin: 0; height: 100%; padding: 1.5rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 1rem; }
.testimonial blockquote { margin: 0; font-size: 1.05rem; }
.testimonial blockquote p { margin: 0; }
.testimonial blockquote p::before { content: "“"; color: var(--accent); font-size: 1.6rem; line-height: 0; margin-right: 0.15rem; vertical-align: -0.35rem; }
.testimonial figcaption { margin-top: auto; color: var(--muted); font-weight: 600; font-size: 0.93rem; }

.block-contact .contact-form, .block-contact .notice-info { margin-top: 0; }
.block-contact .block-header { text-align: center; margin-inline: auto; }

/* ---------- Footer ---------- */
.site-footer {
    /* always dark, in light and dark mode */
    --f-bg: #0f1116; --f-text: #e9ebf0; --f-muted: #9aa1ae; --f-line: #262a33; --f-accent: #a3adff;
    margin-top: auto; background: var(--f-bg); color: var(--f-muted); font-size: 0.93rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; padding-block: 3.25rem 2.25rem; }
.footer-grid p { margin: 0 0 0.5rem; }
.footer-logo { display: inline-block; margin-bottom: 0.75rem; }
.footer-logo img { display: block; height: 2rem; width: auto; max-width: 12rem; }
.footer-brand { color: var(--f-text); font-weight: 750; font-size: 1.1rem; }
.footer-heading { color: var(--f-text); font-weight: 650; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.site-footer a { color: var(--f-muted); text-decoration: none; }
.site-footer a:hover { color: var(--f-accent); text-decoration: underline; }
.footer-details { position: relative; }
.footer-details summary { cursor: pointer; list-style: none; color: var(--f-muted); }
.footer-details summary::-webkit-details-marker { display: none; }
.footer-details summary::after { content: " +"; }
.footer-details[open] summary::after { content: " –"; }
.footer-details summary:hover { color: var(--f-accent); }
.footer-details summary:focus-visible { outline: 2px solid var(--f-accent); outline-offset: 2px; border-radius: 4px; }
.footer-details-panel {
    position: absolute; bottom: calc(100% + 0.6rem); right: 0; z-index: 5; width: min(22rem, calc(100vw - 2 * var(--gutter)));
    padding: 1rem 1.1rem; border-radius: var(--radius); background: var(--bg); color: var(--text);
    box-shadow: 0 12px 40px rgb(0 0 0 / 0.35); font-size: 0.88rem;
}
.footer-details-panel .footer-heading { color: var(--text); margin-bottom: 0.6rem; }
.footer-details-panel a { color: var(--accent); }
.footer-details-panel .company-details { grid-template-columns: max-content 1fr; gap: 0.35rem 1rem; margin: 0; padding: 0; background: none; border: 0; }
.footer-bottom {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem;
    padding-block: 1.25rem 2rem; font-size: 0.85rem;
    /* divider aligned with the text, not the container padding */
    background: linear-gradient(var(--f-line), var(--f-line)) top center / calc(100% - 2 * var(--gutter)) 1px no-repeat;
}
.footer-bottom p { margin: 0; }
@media (max-width: 720px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-about { grid-column: 1 / -1; }
    .footer-details-panel { position: fixed; left: var(--gutter); right: var(--gutter); bottom: 1rem; width: auto; }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
    .card:hover { transform: none; }
    .js.menu-open .header-nav { animation: none; }
    .gallery-grid a:hover img { transform: none; }
}

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Shop ---------- */
.cart-link {
    order: 3; display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.45rem 0.9rem; border-radius: 999px;
    border: 1px solid var(--line); color: var(--text); font-weight: 600; font-size: 0.95rem; text-decoration: none;
}
.cart-link:hover { background: var(--surface-2); color: var(--text); }
.cart-count { min-width: 1.4rem; padding: 0 0.4rem; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 0.8rem; text-align: center; line-height: 1.4rem; }
.cart-count[hidden] { display: none; }
@media (max-width: 720px) {
    .cart-link { order: 0; margin-left: auto; padding: 0.55rem 0.8rem; }
    .cart-link > span:not(.cart-count) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

.price-note { margin: 0.5rem 0 0; color: var(--muted); font-size: 0.9rem; }
.block-more { margin: 2rem 0 0; text-align: center; }

.product-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 1.25rem; }
.product-card { padding: 0; overflow: hidden; }
.product-card .card-title { margin: 1rem 1.25rem 0.25rem; font-size: 1.1rem; }
.product-card-image { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--surface-2); }
.product-card-placeholder { display: grid; place-items: center; color: var(--muted); font-size: 3rem; font-weight: 800; background: var(--surface-2); aspect-ratio: 1; width: 100%; border-radius: inherit; }
.product-price { margin: 0 1.25rem 1.25rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.product-badge { display: inline-block; margin-left: 0.4rem; padding: 0.1rem 0.55rem; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 0.8rem; font-weight: 600; }

.product-grid-detail { display: grid; gap: 2rem 3rem; align-items: start; }
@media (min-width: 860px) { .product-grid-detail { grid-template-columns: 1fr 1fr; } }
.product-media img { display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.product-info h1 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.5rem); }
.product-price-large { margin: 1rem 0 0; font-size: 1.6rem; }
.product-info .notice { margin-top: 1.5rem; }
.add-to-cart { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin: 1.5rem 0 2rem; }
.add-to-cart label { font-weight: 600; }
.add-to-cart input, .qty-input {
    width: 5rem; padding: 0.65rem 0.7rem; font: inherit; color: var(--text); background: var(--bg);
    border: 1px solid color-mix(in srgb, var(--muted) 55%, var(--line)); border-radius: var(--radius-sm);
}
.add-to-cart-status { flex-basis: 100%; margin: 0; color: var(--success); font-weight: 600; }
.add-to-cart-status:empty { display: none; }
.product-description { margin-top: 1rem; }
.product-safety { margin-top: 2rem; padding: 1.1rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font-size: 0.93rem; }
.product-safety h2 { font-size: 1rem; margin: 0 0 0.4rem; }
.product-safety p { margin: 0; color: var(--muted); }

.table-scroll { overflow-x: auto; }
.cart-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.cart-table th, .cart-table td { padding: 0.75rem 0.5rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.cart-table thead th { color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.cart-table tfoot th, .cart-table tfoot td { border-bottom: 0; }
.cart-table .num { text-align: right; white-space: nowrap; }
.cart-table .muted td { color: var(--muted); font-size: 0.9rem; padding-block: 0.2rem; }
.cart-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin: 1rem 0 0; font-size: 0.92rem; }
.button-secondary { background: var(--surface-2); color: var(--text); }
.button-secondary:hover { background: var(--line); color: var(--text); }
.order-form h2 { font-size: 1.3rem; margin: 0 0 1rem; }
.order-form .field input { width: 100%; }
.choice-list { margin: 0.5rem 0 1.5rem; padding: 0; border: 0; display: grid; gap: 0.5rem; }
.choice-list legend { margin-bottom: 0.6rem; font-weight: 700; font-size: 1.05rem; }
.choice { display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.8rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); cursor: pointer; }
.choice:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.choice input { flex: none; margin-top: 0.35rem; accent-color: var(--accent); }
.choice-hint { display: block; color: var(--muted); font-size: 0.88rem; margin: 0; }
.order-form .price-note { margin: 0 0 1rem; }
.button-order { font-size: 1.05rem; padding: 0.95rem 1.8rem; }

.order-box { margin: 0 0 1.5rem; padding: 1.25rem 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.order-box h2 { font-size: 1.15rem; margin: 0 0 0.75rem; }
.order-box h3 { font-size: 1rem; margin: 1.25rem 0 0.4rem; }
.order-box p { margin: 0; }
.pre-line { white-space: pre-line; }
.order-done .hero-lead { margin: 1rem 0 0; }

/* ---------- Private demos (demo.webitu.com) ---------- */
.demo-banner { background: #161a33; color: #e9ebf7; font-size: 0.88rem; }
.demo-banner p { max-width: var(--container); margin: 0 auto; padding: 0.55rem var(--gutter); }
.demo-banner a { color: #c3c9ff; }
.demo-form { margin: 0; }
.demo-form .block-heading { margin-bottom: 0.5rem; }
.demo-form .block-intro { margin: 0 0 1.5rem; }
.demo-form .field input { width: 100%; }
.demo-login dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.4rem 1.25rem; margin: 0 0 1.25rem; }
.demo-login dt { color: var(--muted); font-weight: 600; }
.demo-login dd { margin: 0; }
.demo-login code { font-family: var(--mono); font-size: 1.05rem; font-weight: 700; letter-spacing: 0.04em; }
.demo-login p { margin: 0 0 0.75rem; }
.demo-links { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.6rem; }
.demo-links .choice-hint { display: inline; }
.demo-ready .hero-lead { margin: 1rem 0 0; max-width: 40rem; }

/* ---------- Video block ---------- */
.video-frame { max-width: 64rem; }
.video-frame video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: var(--radius); background: #161a33; box-shadow: var(--shadow-hover); }

