/* Tokens as on m2remote.ch (src/styles.scss of the website) */
@font-face { font-family: Inter; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/inter-400.woff2) format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/inter-500.woff2) format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/inter-600.woff2) format("woff2"); }
:root {
  --bg: #f8fafc; --card: #ffffff; --border: #e2e8f0; --hover: #f1f5f9; --text: #334155; --heading: #0f172a; --muted: #64748b;
  --primary: #3b82f6; --primary-hover: #2563eb; --link: #2563eb; --link-hover: #1d4ed8; --on-primary: #ffffff; --primary-soft: #eff6ff;
  --brand: #ff7a00; --danger: #dc2626; --danger-soft: #fef2f2; --success: #15803d;
  --shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
  --radius: 6px; --radius-card: 12px; --container: 820px; --gutter: 16px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif; --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  color-scheme: light;
}
:root.dark {
  --bg: #020617; --card: #0f172a; --border: #1e293b; --hover: #1e293b; --text: #e2e8f0; --heading: #f8fafc; --muted: #94a3b8;
  --primary: #60a5fa; --primary-hover: #93c5fd; --link: #60a5fa; --link-hover: #93c5fd; --on-primary: #0f172a; --primary-soft: rgba(96, 165, 250, .12);
  --danger: #f87171; --danger-soft: rgba(248, 113, 113, .1); --success: #4ade80; --shadow: none;
  color-scheme: dark;
}
@media (min-width: 768px) { :root { --gutter: 24px; } }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2 { margin: 0 0 12px; color: var(--heading); font-weight: 600; line-height: 1.2; letter-spacing: -.015em; }
h1 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem); }
h2 { font-size: 1.375rem; margin-top: 40px; }
p { margin: 0 0 12px; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--link-hover); }
code { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 2px; }
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.top { border-bottom: 1px solid var(--border); background: var(--card); }
.top-row { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--heading); text-decoration: none; font-weight: 600; }
.brand img { height: 32px; width: auto; }
.tools { display: flex; gap: 8px; align-items: center; }
input[type=email], #others { font: inherit; color: var(--text); background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 10px; }
input[type=email], #others { width: 100%; max-width: 420px; display: block; margin-top: 4px; }
input[type=email]:focus, #others:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 25%, transparent); outline: none; }
.mode { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); color: var(--text); cursor: pointer; }
.mode svg { width: 18px; height: 18px; }
.mode .moon, .dark .mode .sun { display: none; }
.dark .mode .moon { display: block; }
main { padding-block: 40px 56px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; color: var(--link); font-size: .8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 16px; height: 2px; border-radius: 1px; background: var(--brand); }
.lead { color: var(--muted); font-size: 1.125rem; max-width: 70ch; }
.note { padding: 12px 16px; border-radius: var(--radius); background: var(--primary-soft); max-width: 70ch; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow); padding: 24px; margin-top: 24px; }
fieldset { border: 0; padding: 0; margin: 0 0 20px; }
legend { font-weight: 600; color: var(--heading); margin-bottom: 8px; }
.check { display: flex; gap: 10px; align-items: baseline; padding: 6px 0; cursor: pointer; }
.check input { accent-color: var(--primary); width: 16px; height: 16px; flex: none; transform: translateY(2px); }
.field { display: block; margin-bottom: 6px; font-weight: 500; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 16px; }
.btn { font: inherit; font-weight: 600; padding: 9px 16px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--card); color: var(--text); cursor: pointer; text-decoration: none; display: inline-block; }
.btn:hover { background: var(--hover); }
.btn.primary { background: var(--primary-hover); border-color: var(--primary-hover); color: #fff; }
.dark .btn.primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger { color: var(--danger); }
.btn.danger-solid { background: #dc2626; border-color: #dc2626; color: #fff; }
.btn.danger-solid:hover { filter: brightness(1.08); }
dialog { max-width: min(440px, calc(100vw - 32px)); padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--card); color: var(--text); box-shadow: 0 20px 50px rgba(15, 23, 42, .25); }
dialog::backdrop { background: rgba(15, 23, 42, .45); }
dialog h2 { margin: 0 0 8px; color: var(--heading); font-size: 1.25rem; }
dialog p { margin: 0; }
dialog .btn-row { justify-content: flex-end; margin-top: 20px; }
.btn.small { padding: 4px 10px; font-size: .875rem; }
.btn:disabled { opacity: .5; cursor: default; }
.error { color: var(--danger); background: var(--danger-soft); padding: 10px 14px; border-radius: var(--radius); }
.ok { color: var(--success); }
.facts .fact { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); }
.facts .label { min-width: 160px; color: var(--muted); }
.facts code { font-size: 1.125rem; color: var(--heading); font-weight: 600; word-break: break-all; }
.steps { padding-left: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 16px 16px 16px 56px; margin-bottom: 12px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-card); }
.steps li::before { content: counter(step); position: absolute; left: 16px; top: 16px; width: 28px; height: 28px; border-radius: 50%; background: var(--primary-soft); color: var(--link); font-weight: 600; display: flex; align-items: center; justify-content: center; }
.steps strong { display: block; color: var(--heading); margin-bottom: 4px; }
.steps .step-btn { display: table; margin-top: 10px; color: var(--link); border-color: var(--link); }
.foot { display: flex; gap: 16px; padding-block: 24px; border-top: 1px solid var(--border); }
.skip-link { position: absolute; left: 16px; top: -100px; padding: 10px 16px; border-radius: var(--radius); background: var(--link); color: var(--on-primary); }
.skip-link:focus { top: 12px; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
[hidden] { display: none !important; }
/* language switch as on m2remote.ch (lang-switch.ts of the website) */
.langs { display: inline-flex; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.langs button { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 36px; padding: 0 10px; border: 0; border-left: 1px solid var(--border); background: transparent; color: var(--muted); font: inherit; font-size: .8125rem; font-weight: 600; letter-spacing: .02em; cursor: pointer; }
.langs button:first-child { border-left: none; }
.langs button:hover { background: var(--hover); color: var(--heading); }
.langs button[aria-pressed="true"] { background: var(--primary-soft); color: var(--link); }
.langs button:focus-visible { outline-offset: -2px; }
@media (max-width: 480px) { .brand span { display: none; } }
