/* ==========================================================================
   v2.css - Thelogitech homepage design system (Phase 3 rebuild)

   Hand-built, no framework. Replaces bootstrap.min.css, bootsnav.css,
   responsive.css, animate.css, style.css, three icon fonts and jQuery for
   this page. Layout is CSS Grid + flexbox; theming is custom properties
   with a real dark mode; icons are inline SVG in the markup.
   ========================================================================== */

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

html { -webkit-text-size-adjust: 100%; }

body,
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }

ul[class] { padding: 0; list-style: none; }

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

button, input, textarea, select { font: inherit; color: inherit; }

a { color: inherit; text-decoration: none; }

/* --- Tokens -------------------------------------------------------------- */
:root {
    color-scheme: light;

    /* Brand. --brand-ink is the navy already used across the site; the
       interactive accent is darkened from the original #FF4452 so white
       label text clears WCAG AA (4.5:1) at button sizes. */
    --brand-ink: #002359;
    --accent: #d43a12;
    --accent-hover: #a82f0c;
    --accent-bright: #f95733;

    --bg: #ffffff;
    --bg-subtle: #f7f8fa;
    --bg-raised: #ffffff;
    --bg-inverse: #10151f;

    --text: #121721;
    --text-muted: #5c6675;
    --text-inverse: #ffffff;
    --text-inverse-muted: rgba(255, 255, 255, 0.72);

    --border: #e4e7ec;
    --border-strong: #cfd4dc;

    --ring: #1f6feb;

    /* Type scale (fluid, clamps at both ends) */
    --step--1: clamp(0.82rem, 0.8rem + 0.1vw, 0.88rem);
    --step-0:  clamp(1rem, 0.97rem + 0.15vw, 1.06rem);
    --step-1:  clamp(1.19rem, 1.12rem + 0.35vw, 1.38rem);
    --step-2:  clamp(1.46rem, 1.32rem + 0.7vw, 1.9rem);
    --step-3:  clamp(1.8rem, 1.55rem + 1.25vw, 2.6rem);
    --step-4:  clamp(2.2rem, 1.75rem + 2.25vw, 3.6rem);

    /* Spacing */
    --sp-1: 0.25rem;
    --sp-2: 0.5rem;
    --sp-3: 0.75rem;
    --sp-4: 1rem;
    --sp-6: 1.5rem;
    --sp-8: 2rem;
    --sp-12: 3rem;
    --sp-16: 4rem;
    --sp-24: 6rem;

    --radius: 10px;
    --radius-lg: 16px;
    --radius-pill: 999px;

    /* Restrained elevation: hairline + soft ambient, not a 2019 drop shadow */
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.04), 0 1px 3px rgba(16, 24, 40, 0.06);
    --shadow-md: 0 4px 8px -2px rgba(16, 24, 40, 0.06), 0 12px 24px -6px rgba(16, 24, 40, 0.1);

    --container: 1200px;
    --header-h: 72px;

    --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;
        --bg: #0b0f16;
        --bg-subtle: #121822;
        --bg-raised: #151c27;
        --bg-inverse: #f7f8fa;
        --text: #e9edf3;
        --text-muted: #9aa5b5;
        --text-inverse: #121721;
        --text-inverse-muted: rgba(18, 23, 33, 0.72);
        --border: #222c3a;
        --border-strong: #2f3b4d;
        --accent: #ff6b42;
        --accent-hover: #ff8763;
        --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
        --shadow-md: 0 12px 28px -8px rgba(0, 0, 0, 0.6);
    }
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0b0f16;
    --bg-subtle: #121822;
    --bg-raised: #151c27;
    --bg-inverse: #f7f8fa;
    --text: #e9edf3;
    --text-muted: #9aa5b5;
    --text-inverse: #121721;
    --text-inverse-muted: rgba(18, 23, 33, 0.72);
    --border: #222c3a;
    --border-strong: #2f3b4d;
    --accent: #ff6b42;
    --accent-hover: #ff8763;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 12px 28px -8px rgba(0, 0, 0, 0.6);
}

/* --- Base ---------------------------------------------------------------- */
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: var(--step-0);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-weight: 650;
    text-wrap: balance;
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }

p { text-wrap: pretty; }

:where(a, button, input, textarea, [tabindex]):focus-visible {
    outline: 3px solid var(--ring);
    outline-offset: 2px;
    border-radius: 4px;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--sp-6);
}

.section { padding-block: var(--sp-24); }
.section--subtle { background: var(--bg-subtle); }

.eyebrow {
    display: block;
    margin-bottom: var(--sp-3);
    color: var(--accent);
    font-size: var(--step--1);
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-head {
    max-width: 60ch;
    margin-bottom: var(--sp-12);
}

.section-head p {
    margin-top: var(--sp-4);
    color: var(--text-muted);
    font-size: var(--step-1);
}

.skip-link {
    position: absolute;
    left: var(--sp-4);
    top: -100px;
    z-index: 100;
    padding: var(--sp-3) var(--sp-4);
    border-radius: var(--radius);
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    transition: top 0.15s ease;
}

.skip-link:focus { top: var(--sp-4); }

/* --- Buttons ------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    min-height: 46px;
    padding: var(--sp-3) var(--sp-6);
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-size: var(--step-0);
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.btn svg { flex: none; }

.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover,
.btn--primary:focus-visible { background: var(--accent-hover); transform: translateY(-1px); }

.btn--outline {
    border-color: var(--border-strong);
    background: transparent;
    color: var(--text);
}
.btn--outline:hover,
.btn--outline:focus-visible { border-color: var(--text); }

.btn--on-dark {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}
.btn--on-dark:hover,
.btn--on-dark:focus-visible { border-color: #fff; background: rgba(255, 255, 255, 0.14); }

.btn--block { width: 100%; }

/* --- Header -------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

@supports not (backdrop-filter: blur(12px)) {
    .site-header { background: var(--bg); }
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: var(--sp-6);
    min-height: var(--header-h);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    font-weight: 700;
    letter-spacing: -0.02em;
    font-size: 1.06rem;
}

.brand img { width: 132px; height: auto; }

/* The logo artwork is navy on transparent, which all but disappears on the
   dark surface. Invert it to white there rather than shipping a 2nd asset. */
:root[data-theme="dark"] .brand img { filter: brightness(0) invert(1); }

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .brand img { filter: brightness(0) invert(1); }
}

.nav { margin-left: auto; }

.nav__list {
    display: flex;
    align-items: center;
    gap: var(--sp-6);
    margin: 0;
}

.nav__list a {
    color: var(--text-muted);
    font-size: var(--step--1);
    font-weight: 550;
    transition: color 0.15s ease;
}

.nav__list a:hover,
.nav__list a:focus-visible { color: var(--text); }

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
}

.header-phone {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    font-size: var(--step--1);
    font-weight: 600;
    white-space: nowrap;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.theme-toggle:hover { color: var(--text); border-color: var(--border-strong); }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
    :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: transparent;
    cursor: pointer;
}

/* --- Hero ---------------------------------------------------------------- */
.hero {
    padding-block: var(--sp-24) var(--sp-16);
    border-bottom: 1px solid var(--border);
}

.hero__grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--sp-16);
    align-items: start;
}

.hero__lede {
    margin-top: var(--sp-6);
    max-width: 52ch;
    color: var(--text-muted);
    font-size: var(--step-1);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-3);
    margin-top: var(--sp-8);
}

.hero__proof {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-6);
    margin-top: var(--sp-12);
    padding-top: var(--sp-8);
    border-top: 1px solid var(--border);
}

.hero__proof div { min-width: 128px; }

.hero__proof dt {
    color: var(--text-muted);
    font-size: var(--step--1);
}

.hero__proof dd {
    margin: var(--sp-1) 0 0;
    font-size: var(--step-1);
    font-weight: 650;
    letter-spacing: -0.02em;
}

/* --- Form card ----------------------------------------------------------- */
.quote-card {
    padding: var(--sp-8);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-raised);
    box-shadow: var(--shadow-md);
}

.quote-card h2 { font-size: var(--step-2); }

.quote-card__sub {
    margin-top: var(--sp-2);
    color: var(--text-muted);
    font-size: var(--step--1);
}

.form-grid {
    display: grid;
    gap: var(--sp-4);
    margin-top: var(--sp-6);
}

.field label {
    display: block;
    margin-bottom: var(--sp-2);
    font-size: var(--step--1);
    font-weight: 600;
}

.field input,
.field textarea {
    width: 100%;
    padding: var(--sp-3) var(--sp-4);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    background: var(--bg);
    color: var(--text);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input::placeholder,
.field textarea::placeholder { color: var(--text-muted); opacity: 0.75; }

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--ring);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--ring) 22%, transparent);
}

.field textarea { min-height: 118px; resize: vertical; }

.form-note {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    margin-top: var(--sp-4);
    color: var(--text-muted);
    font-size: var(--step--1);
}

.form-error {
    margin-bottom: var(--sp-4);
    padding: var(--sp-3) var(--sp-4);
    border-left: 3px solid #d92d20;
    border-radius: 6px;
    background: color-mix(in srgb, #d92d20 10%, transparent);
    color: #b42318;
    font-size: var(--step--1);
    font-weight: 550;
}

:root[data-theme="dark"] .form-error { color: #ff9d90; }

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .form-error { color: #ff9d90; }
}

.visually-hidden {
    position: absolute !important;
    left: -9999px;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* The honeypot lives inside .visually-hidden; keep its input from widening
   the document on small screens. */
.visually-hidden input { width: 1px; }

/* --- Trust strip --------------------------------------------------------- */
.trust {
    border-bottom: 1px solid var(--border);
    background: var(--bg-subtle);
    padding-block: var(--sp-6);
}

.trust ul {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--sp-6);
    margin: 0;
}

.trust li {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    font-size: var(--step--1);
    font-weight: 550;
}

.trust svg { flex: none; color: var(--accent); }

/* --- Cards --------------------------------------------------------------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--sp-6);
}

.card {
    padding: var(--sp-8);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-raised);
    transition: border-color 0.18s ease, transform 0.18s ease;
}

.card:hover { border-color: var(--border-strong); transform: translateY(-2px); }

.card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: var(--sp-6);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    color: var(--accent);
}

.card h3 { margin-bottom: var(--sp-3); }
.card p { color: var(--text-muted); font-size: var(--step--1); }

/* --- Work / portfolio ---------------------------------------------------- */
.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--sp-6);
}

.work {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-raised);
}

.work__shot {
    aspect-ratio: 16 / 10;
    background: var(--bg-subtle);
    border-bottom: 1px solid var(--border);
    object-fit: cover;
    width: 100%;
}

/* Placeholder slot: reads unmistakably as "not filled in yet" rather than
   pretending to be a finished case study. */
.work__placeholder {
    display: grid;
    place-content: center;
    gap: var(--sp-2);
    aspect-ratio: 16 / 10;
    padding: var(--sp-6);
    border-bottom: 1px dashed var(--border-strong);
    background: repeating-linear-gradient(
        45deg,
        var(--bg-subtle),
        var(--bg-subtle) 10px,
        transparent 10px,
        transparent 20px
    );
    color: var(--text-muted);
    text-align: center;
    font-size: var(--step--1);
}

.work__body { padding: var(--sp-6); }

.work__sector {
    color: var(--accent);
    font-size: var(--step--1);
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.work__body h3 { margin: var(--sp-2) 0 var(--sp-3); font-size: var(--step-1); }
.work__body p { color: var(--text-muted); font-size: var(--step--1); }

.badge-todo {
    display: inline-block;
    margin-top: var(--sp-4);
    padding: var(--sp-1) var(--sp-3);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-pill);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
}

/* --- Clients ------------------------------------------------------------- */
.clients {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--sp-12);
    margin-top: var(--sp-8);
}

.clients img {
    width: auto;
    max-height: 40px;
    opacity: 0.72;
    transition: opacity 0.18s ease;
}

.clients img:hover { opacity: 1; }

:root[data-theme="dark"] .clients img { filter: brightness(0) invert(1); opacity: 0.6; }

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .clients img { filter: brightness(0) invert(1); opacity: 0.6; }
}

/* --- Testimonials -------------------------------------------------------- */
.quote-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--sp-6);
}

.quote {
    display: flex;
    flex-direction: column;
    padding: var(--sp-8);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-raised);
}

.quote blockquote {
    flex: 1;
    margin: 0 0 var(--sp-6);
    font-size: var(--step-0);
}

.quote__by {
    display: flex;
    align-items: center;
    gap: var(--sp-4);
    padding-top: var(--sp-6);
    border-top: 1px solid var(--border);
}

.quote__by img {
    width: 76px;
    height: 40px;
    object-fit: contain;
    flex: none;
}

.quote__name { font-weight: 650; font-size: var(--step--1); }
.quote__role { color: var(--text-muted); font-size: var(--step--1); }

/* --- CTA band ------------------------------------------------------------ */
.cta {
    padding-block: var(--sp-16);
    background: var(--bg-inverse);
    color: var(--text-inverse);
}

.cta__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-8);
}

.cta h2 { font-size: var(--step-2); }
.cta p { margin-top: var(--sp-2); color: var(--text-inverse-muted); }
.cta__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* In dark mode the inverse band turns light, so its buttons must flip too. */
:root[data-theme="dark"] .cta .btn--on-dark {
    border-color: rgba(18, 23, 33, 0.3);
    background: rgba(18, 23, 33, 0.05);
    color: var(--text-inverse);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .cta .btn--on-dark {
        border-color: rgba(18, 23, 33, 0.3);
        background: rgba(18, 23, 33, 0.05);
        color: var(--text-inverse);
    }
}

/* --- FAQ ----------------------------------------------------------------- */
.faq { display: grid; gap: var(--sp-3); max-width: 68ch; }

.faq details {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-raised);
}

.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
    padding: var(--sp-4) var(--sp-6);
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
    content: "";
    flex: none;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.faq details[open] summary::after { transform: rotate(-135deg); }

.faq p {
    padding: 0 var(--sp-6) var(--sp-6);
    color: var(--text-muted);
    font-size: var(--step--1);
}

/* --- Blog ---------------------------------------------------------------- */
.post {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-raised);
    transition: border-color 0.18s ease, transform 0.18s ease;
}

.post:hover { border-color: var(--border-strong); transform: translateY(-2px); }

.post img {
    aspect-ratio: 16 / 9;
    width: 100%;
    object-fit: cover;
    border-bottom: 1px solid var(--border);
}

.post__body { padding: var(--sp-6); }
.post__date { color: var(--text-muted); font-size: var(--step--1); }
.post__body h3 { margin-top: var(--sp-2); font-size: var(--step-0); line-height: 1.4; }

/* --- Footer -------------------------------------------------------------- */
.site-footer {
    padding-block: var(--sp-16) var(--sp-8);
    border-top: 1px solid var(--border);
    background: var(--bg-subtle);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: var(--sp-12);
}

.site-footer h3 {
    margin-bottom: var(--sp-4);
    font-size: var(--step--1);
    font-weight: 650;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.site-footer li + li { margin-top: var(--sp-1); }

/* WCAG 2.2 (2.5.8) asks for a 24px minimum target. Inline footer links are
   ~16px tall from line-height alone, so pad them into a real target. */
.site-footer li a,
.footer-bottom a {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding-block: var(--sp-1);
    color: var(--text-muted);
    font-size: var(--step--1);
}

.site-footer a:hover { color: var(--text); }
.site-footer p { color: var(--text-muted); font-size: var(--step--1); }

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
    margin-top: var(--sp-12);
    padding-top: var(--sp-6);
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: var(--step--1);
}

/* --- Floating contact ---------------------------------------------------- */
.float-actions {
    position: fixed;
    right: var(--sp-4);
    bottom: var(--sp-4);
    z-index: 40;
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
}

.float-actions a {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: var(--radius-pill);
    color: #fff;
    box-shadow: var(--shadow-md);
    transition: transform 0.18s ease;
}

.float-actions a:hover { transform: scale(1.06); }
.float-wa { background: #1faa53; }
.float-call { background: var(--accent); }

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 1024px) {
    :root { --sp-24: 4.5rem; }

    .hero__grid { grid-template-columns: 1fr; gap: var(--sp-12); }
    .quote-card { max-width: 560px; }
    .trust ul { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
    .nav,
    .header-phone { display: none; }

    .nav-toggle { display: inline-flex; }

    /* Progressive enhancement: with JS the panel toggles; without it the
       :target fallback in the markup still opens it. */
    .nav.is-open {
        position: absolute;
        inset: var(--header-h) 0 auto;
        display: block;
        margin: 0;
        padding: var(--sp-4) var(--sp-6) var(--sp-6);
        border-bottom: 1px solid var(--border);
        background: var(--bg);
        box-shadow: var(--shadow-md);
    }

    .nav.is-open .nav__list { flex-direction: column; align-items: stretch; gap: 0; }

    .nav.is-open .nav__list a {
        display: block;
        padding-block: var(--sp-4);
        border-bottom: 1px solid var(--border);
        font-size: var(--step-0);
    }
}

@media (max-width: 640px) {
    :root { --sp-24: 3.5rem; --sp-16: 2.75rem; }

    .container { padding-inline: var(--sp-4); }
    .quote-card { padding: var(--sp-6); }
    .trust ul { grid-template-columns: 1fr; gap: var(--sp-4); }
    .footer-grid { grid-template-columns: 1fr; gap: var(--sp-8); }
    .hero__actions .btn { width: 100%; }
    .cta__actions { width: 100%; }
    .cta__actions .btn { flex: 1 1 auto; }
    .clients { gap: var(--sp-8); }
}

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

    .card:hover,
    .post:hover,
    .btn--primary:hover,
    .float-actions a:hover { transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

/* --- Print --------------------------------------------------------------- */
@media print {
    .site-header,
    .float-actions,
    .cta,
    .quote-card { display: none; }
}
