/* ==================================================================
   JOOCOO — base layout & components
   Colours, fonts and radii come from CSS variables set per theme in
   themes.css. Only edit structure/spacing here.
   ================================================================== */

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--link, var(--accent)); text-decoration-thickness: 1px; text-underline-offset: 3px; }

h1, h2, h3 {
    font-family: var(--font-head);
    font-weight: var(--head-weight, 750);
    letter-spacing: var(--head-tracking, -0.02em);
    line-height: 1.15;
    margin: 0 0 .5em;
    color: var(--heading, var(--text));
}
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p  { margin: 0 0 1em; }

.container { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.narrow    { width: min(820px, 100% - 2.5rem); }

.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: -3rem; z-index: 100;
    background: var(--accent); color: var(--on-accent); padding: .6rem 1rem; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; }

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

/* ---------- Buttons ---------- */
.btn {
    --_bg: var(--accent);
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .9rem 1.5rem;
    font: inherit; font-weight: 650; font-size: 1rem; line-height: 1;
    color: var(--on-accent);
    background: var(--btn-bg, var(--_bg));
    border: 1px solid transparent;
    border-radius: var(--radius-btn);
    text-decoration: none;
    cursor: pointer;
    box-shadow: var(--btn-shadow, none);
    transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, filter .2s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: .6rem 1rem; font-size: .92rem; }
.btn-block { width: 100%; }
.btn-ghost {
    background: transparent;
    color: var(--ghost-text, var(--text));
    border-color: var(--ghost-border, var(--border));
    box-shadow: none;
}
.btn-ghost:hover { background: var(--ghost-hover, var(--surface-2)); filter: none; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: var(--header-bg);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--header-border, transparent);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--header-text, var(--text)); }
.brand-mark svg { width: 34px; height: 34px; }
.brand-mark rect { fill: var(--accent); }
.brand-mark path { fill: none; stroke: var(--on-accent); stroke-width: 3; stroke-linecap: round; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; letter-spacing: .04em; }

.nav-menu { display: flex; align-items: center; gap: 1.75rem; }
.nav-menu a:not(.btn) {
    color: var(--header-muted, var(--muted)); text-decoration: none; font-weight: 550; font-size: .97rem;
    transition: color .2s;
}
.nav-menu a:not(.btn):hover { color: var(--header-text, var(--text)); }

.nav-toggle {
    display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
    flex-direction: column; justify-content: center; align-items: center; gap: 6px; border-radius: 10px;
}
.nav-toggle .bar { display: block; width: 22px; height: 2px; background: var(--header-text, var(--text)); border-radius: 2px; transition: transform .25s; }
.nav-toggle[aria-expanded="true"] .bar:first-of-type { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:last-of-type  { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 860px) {
    .nav-toggle { display: inline-flex; }
    .nav-menu {
        position: absolute; inset: 72px 0 auto 0;
        flex-direction: column; align-items: stretch; gap: 0;
        padding: .5rem 1.25rem 1.25rem;
        background: var(--menu-bg, var(--bg));
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
        display: none;
    }
    .nav-menu.open { display: flex; }
    .nav-menu a:not(.btn) { padding: .85rem 0; border-bottom: 1px solid var(--border); color: var(--text); }
    .nav-menu .btn { margin-top: 1rem; }
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    background: var(--hero-bg);
    color: var(--hero-text, var(--text));
    padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3.5rem, 7vw, 6rem);
    overflow: hidden;
    /* illustration colours inside the hero */
    --illo-soft: var(--hero-illo-soft, var(--illo-soft-base));
}
.hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: var(--hero-glow, none);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { color: var(--hero-heading, var(--heading, var(--text))); }
.hero .lead { font-size: 1.2rem; color: var(--hero-muted, var(--muted)); max-width: 36ch; }
.grad {
    background: var(--grad);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
}
.eyebrow {
    display: inline-flex; align-items: center; gap: .55rem;
    padding: .4rem .85rem; margin-bottom: 1.4rem;
    font-size: .86rem; font-weight: 650; letter-spacing: .02em;
    color: var(--eyebrow-text, var(--accent));
    background: var(--eyebrow-bg, var(--accent-soft));
    border: 1px solid var(--eyebrow-border, transparent);
    border-radius: 999px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-2) 25%, transparent); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 2.6rem; }
.hero .btn-ghost { color: var(--hero-ghost-text, var(--ghost-text, var(--text))); border-color: var(--hero-ghost-border, var(--ghost-border, var(--border))); }
.hero .btn-ghost:hover { background: var(--hero-ghost-hover, var(--ghost-hover, var(--surface-2))); }

.hero-stats { list-style: none; display: flex; flex-wrap: wrap; gap: 1.2rem 2.4rem; padding: 0; margin: 0; }
.hero-stats li { display: flex; flex-direction: column; padding-left: 1rem; border-left: 2px solid var(--hero-rule, var(--border)); }
.hero-stats strong { font-family: var(--font-head); font-size: 1.15rem; color: var(--hero-heading, var(--heading, var(--text))); }
.hero-stats span { font-size: .9rem; color: var(--hero-muted, var(--muted)); }
.hero-art { justify-self: center; width: 100%; max-width: 560px; }

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-art { max-width: 460px; order: -1; }
    .hero .lead { max-width: none; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin-bottom: 3rem; }
.kicker {
    font-size: .82rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase;
    color: var(--accent); margin-bottom: .8rem;
}
.section-lead { color: var(--muted); font-size: 1.12rem; }

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }

.card {
    position: relative;
    padding: 1.9rem 1.75rem 1.75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow, none);
    transition: transform .2s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--card-hover-border, var(--border)); }
.card p { color: var(--muted); margin: 0; }
.card-icon {
    display: inline-grid; place-items: center;
    width: 52px; height: 52px; margin-bottom: 1.2rem;
    color: var(--icon-color, var(--accent));
    background: var(--icon-bg, var(--accent-soft));
    border-radius: var(--radius-sm);
}
.card-icon svg { width: 26px; height: 26px; }
.card-cta { background: var(--cta-card-bg, var(--surface)); border-style: dashed; }
.link-arrow { display: inline-flex; gap: .35rem; margin-top: 1rem; font-weight: 650; text-decoration: none; }
.link-arrow span { transition: transform .2s; }
.link-arrow:hover span { transform: translateX(4px); }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: s; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 1.6rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.step p { color: var(--muted); margin: 0; font-size: .98rem; }
.step-num {
    display: inline-block; margin-bottom: 1rem;
    font-family: var(--font-mono); font-weight: 700; font-size: .95rem;
    color: var(--accent);
    padding: .25rem .6rem; border-radius: 999px; background: var(--accent-soft);
}

/* ---------- About ---------- */
.split { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split-art { max-width: 460px; } }
.split-copy > p { color: var(--muted); }
.checklist { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: .65rem; }
.checklist li { position: relative; padding-left: 2rem; font-weight: 550; }
.checklist li::before {
    content: ""; position: absolute; left: 0; top: .2em; width: 1.3rem; height: 1.3rem; border-radius: 50%;
    background: var(--accent);
}
.checklist li::after {
    content: ""; position: absolute; left: .42rem; top: calc(.2em + .3rem); width: .45rem; height: .25rem;
    border-left: 2px solid var(--on-accent); border-bottom: 2px solid var(--on-accent); transform: rotate(-45deg);
}
.audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
@media (max-width: 620px) { .audience { grid-template-columns: 1fr; } }
.audience div { padding: 1rem 1.1rem; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border); }
.audience strong { display: block; font-family: var(--font-head); }
.audience span { font-size: .9rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: .8rem; }
.faq details {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
    transition: border-color .2s, box-shadow .2s;
}
.faq details[open] { border-color: var(--faq-open-border, var(--accent)); box-shadow: var(--card-shadow, none); }
.faq summary {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 1.15rem 1.35rem; cursor: pointer; list-style: none;
    font-family: var(--font-head); font-weight: 650; font-size: 1.06rem; color: var(--heading, var(--text));
}
.faq summary::-webkit-details-marker { display: none; }
.faq-icon { position: relative; flex: 0 0 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); }
.faq-icon::before, .faq-icon::after {
    content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 2px; background: var(--accent);
    transform: translate(-50%, -50%); transition: transform .25s;
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-body { padding: 0 1.35rem 1.2rem; color: var(--muted); }
.faq-body p { margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } .contact-art { display: none; } }
.contact-copy > p { color: var(--muted); }
.contact-art { margin-top: 2rem; max-width: 400px; }

.contact-form {
    padding: clamp(1.5rem, 4vw, 2.5rem);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.1rem; }
.field label { font-weight: 600; font-size: .93rem; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
    width: 100%; font: inherit; font-size: 1rem; color: var(--text);
    padding: .8rem .95rem;
    background: var(--input-bg, var(--bg));
    border: 1px solid var(--input-border, var(--border));
    border-radius: var(--radius-input, var(--radius-sm));
    transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--accent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
}
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: var(--danger); }
.field .err { color: var(--danger); font-size: .85rem; }
.field-check { flex-direction: row; align-items: flex-start; gap: .7rem; }
.field-check input { width: 1.15rem; height: 1.15rem; margin-top: .25rem; flex: 0 0 auto; accent-color: var(--accent); }
.field-check label { font-weight: 450; font-size: .92rem; color: var(--muted); }
.form-note { margin: .9rem 0 0; font-size: .85rem; color: var(--muted); text-align: center; }

.form-status { padding: .9rem 1.1rem; border-radius: var(--radius-sm); margin-bottom: 1.25rem; font-weight: 550; }
.form-status[data-state="ok"]    { background: color-mix(in srgb, var(--success) 14%, transparent); color: var(--success); border: 1px solid color-mix(in srgb, var(--success) 40%, transparent); }
.form-status[data-state="error"] { background: color-mix(in srgb, var(--danger) 12%, transparent);  color: var(--danger);  border: 1px solid color-mix(in srgb, var(--danger) 40%, transparent); }

/* honeypot: off-screen for humans */
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.is-loading .spinner { display: inline-block; }
.is-loading { pointer-events: none; opacity: .85; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg, var(--bg-alt)); color: var(--footer-text, var(--muted)); padding: 2.5rem 0; border-top: 1px solid var(--border); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; }
.site-footer .brand { color: var(--footer-heading, var(--text)); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.site-footer nav a { color: inherit; text-decoration: none; font-size: .95rem; }
.site-footer nav a:hover { color: var(--footer-heading, var(--text)); }
.copy { margin: 0; font-size: .9rem; }

/* ---------- Illustration theming ---------- */
.illo .i-soft      { fill: var(--illo-soft, var(--illo-soft-base)); }
.illo .i-card      { fill: var(--surface); }
.illo .i-card-2    { fill: var(--surface-2); }
.illo .i-line      { fill: var(--illo-line); }
.illo .i-dots      { fill: var(--illo-dots); }
.illo .i-net       { stroke: var(--illo-net); }
.illo .i-ink       { fill: var(--illo-ink); }
.illo .i-a         { fill: var(--accent); }
.illo .i-b         { fill: var(--accent-2); }
.illo .s-a         { stop-color: var(--accent); }
.illo .s-b         { stop-color: var(--accent-2); }
.illo .i-stroke-a  { stroke: var(--accent); }
.illo .i-stroke-b  { stroke: var(--accent-2); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Theme switcher (preview only) ---------- */
.theme-switcher { position: fixed; right: 1rem; bottom: 1rem; z-index: 90; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
.ts-toggle {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .7rem 1rem; border-radius: 999px; border: 1px solid rgba(0,0,0,.12);
    background: #111827; color: #fff; font: 600 .9rem/1 system-ui, sans-serif; cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.ts-toggle svg { width: 18px; height: 18px; }
.ts-panel {
    position: absolute; right: 0; bottom: calc(100% + .6rem); width: 280px; max-height: 70vh; overflow: auto;
    padding: 1rem; border-radius: 16px; background: #fff; color: #111827;
    box-shadow: 0 20px 50px rgba(0,0,0,.25); border: 1px solid rgba(0,0,0,.08);
}
.ts-title { margin: 0 0 .6rem; font-weight: 700; font-size: .95rem; }
.ts-list { display: grid; gap: .3rem; }
.ts-item {
    display: flex; align-items: center; gap: .7rem; width: 100%; padding: .5rem .6rem;
    border: 1px solid transparent; border-radius: 10px; background: transparent; color: inherit;
    font: 500 .92rem/1.2 system-ui, sans-serif; text-align: left; cursor: pointer;
}
.ts-item:hover { background: #f3f4f6; }
.ts-item.is-active { border-color: #111827; background: #f9fafb; }
.ts-swatch { display: inline-flex; overflow: hidden; border-radius: 6px; border: 1px solid rgba(0,0,0,.12); flex: 0 0 auto; }
.ts-swatch i { display: block; width: 14px; height: 24px; }
.ts-swatch i:nth-child(1) { background: var(--hero-bg-solid, var(--bg)); }
.ts-swatch i:nth-child(2) { background: var(--accent); }
.ts-swatch i:nth-child(3) { background: var(--accent-2); }
.ts-hint { margin: .8rem 0 0; font-size: .78rem; color: #6b7280; line-height: 1.45; }
.ts-hint code { font-size: .75rem; background: #f3f4f6; padding: .05rem .3rem; border-radius: 4px; }

/* ---------- SEO content additions ---------- */
.card-points { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .35rem; }
.card-points li { position: relative; padding-left: 1.1rem; font-size: .92rem; color: var(--text); }
.card-points li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); }
.about-summary { color: var(--text) !important; font-size: 1.08rem; }
.about-summary strong { font-weight: 600; }
.tech { margin: 1.5rem 0 0; font-size: .92rem; color: var(--muted); }
.tech span { font-weight: 650; color: var(--text); }
.faq summary .faq-q { margin: 0; font: inherit; color: inherit; letter-spacing: inherit; }
.brand-sub { font-weight: 500; font-size: .78em; letter-spacing: .02em; opacity: .75; margin-left: .15em; }
@media (max-width: 380px) { .brand-sub { display: none; } }

/* ---------- Legal pages (privacy notice) ---------- */
.legal h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.legal h2 { font-size: 1.45rem; margin-top: 2.6rem; scroll-margin-top: 90px; }
.legal h3 { font-size: 1.08rem; margin-top: 1.6rem; }
.legal section { scroll-margin-top: 90px; }
.legal p, .legal li { color: var(--muted); }
.legal strong { color: var(--text); }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: .4rem; }
.legal-meta { font-size: .92rem; }
.legal-summary {
    margin: 2rem 0; padding: 1.4rem 1.6rem;
    background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent);
    border-radius: var(--radius-sm);
}
.legal-summary h2 { margin-top: 0; font-size: 1.15rem; }
.legal-summary ul { margin: 0; }
.legal-toc { margin: 0 0 1rem; padding: 1.1rem 1.4rem; background: var(--surface-2); border-radius: var(--radius-sm); }
.legal-toc ol { margin: 0; padding-left: 1.2rem; columns: 2; column-gap: 2rem; }
@media (max-width: 560px) { .legal-toc ol { columns: 1; } }
.legal-toc a { text-decoration: none; }
.legal-details { list-style: none; padding: 0 !important; }
.table-wrap { overflow-x: auto; margin: 1rem 0 1.25rem; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.legal table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 520px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: .8rem 1rem; border-bottom: 1px solid var(--border); color: var(--muted); }
.legal th { background: var(--surface-2); color: var(--text); font-weight: 650; }
.legal tr:last-child td { border-bottom: 0; }
.legal code { font-family: var(--font-mono); font-size: .9em; color: var(--text); }
.legal-back { margin-top: 3rem; }
.form-note a, .field-check a { color: inherit; }

/* ---------- "Go up" button ---------- */
.to-top {
    position: fixed; right: 1rem; bottom: 1rem; z-index: 80;
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .7rem 1rem .7rem .85rem;
    font-weight: 650; font-size: .92rem; line-height: 1; text-decoration: none;
    color: var(--on-accent); background: var(--btn-bg, var(--accent));
    border-radius: 999px;
    box-shadow: 0 10px 28px -8px rgba(0, 0, 0, .35);
    transition: opacity .25s ease, transform .25s ease, filter .2s ease;
}
.to-top svg { width: 18px; height: 18px; }
.to-top:hover { filter: brightness(1.08); transform: translateY(-2px); }
/* With JS: hidden until the visitor has scrolled down */
.js .to-top { opacity: 0; transform: translateY(12px); pointer-events: none; }
.js .to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.js .to-top.show:hover { transform: translateY(-2px); }
/* Sit above the theme switcher while previewing themes */
.theme-switcher ~ .to-top { bottom: 4.6rem; }
@media (max-width: 480px) {
    .to-top { padding: .8rem; }
    .to-top-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
@media print { .to-top, .theme-switcher { display: none !important; } }

/* ---------- Fallbacks for browsers without color-mix() ---------- */
@supports not (color: color-mix(in srgb, red 50%, blue)) {
    .eyebrow .dot { box-shadow: none; }
    .field input:focus, .field select:focus, .field textarea:focus { box-shadow: 0 0 0 3px var(--border); }
    .form-status[data-state="ok"], .form-status[data-state="error"] { background: var(--surface-2); border-color: currentColor; }
}
