/* ECIT palette, same as the secret.ecitsolutions.dk theme: dark blue #002c55, green #5bba7c. */
:root {
  --accent: #5bba7c; --accent-strong: #46a066; --accent-hover: #6cc78b;
  --bg: #f4f8fb; --bg2: #e1ebf4; --text: #002c55; --muted: #4b6580;
  --surface: #ffffff; --border: #d3e0ec; --code: #e8f0f7;
  --link: #002c55; --link-line: #46a066;
  --focus: #002c55;
  --shadow: 0 .5rem 1rem rgba(0,0,0,.15);
  --num-bg: #002c55; --num-ink: #ffffff;
  /* illustration tokens */
  --i-strip: #dfe7ef; --i-bar: #f5f8fb; --i-fld: #e3eaf1; --i-page: #ffffff; --i-out: #b7c7d7;
  --i-ln: #4b6580; --i-gl: #002c55; --i-sk: #d6e0ea; --i-sk2: #e3eaf1; --i-btn: #dbe5ee;
  --i-pn: #ffffff; --i-pnl: #c4d3e1; --i-sh: rgba(0,44,85,.14); --i-tx: #002c55;
  --i-ptr: #002c55; --i-ptr-ink: #ffffff; --i-halo: #ffffff; --i-hl: #46a066; --i-link: #002c55;
  color-scheme: light;
}
/* dark theme: html[data-theme="dark"] set by theme.js (stored choice, else the system setting) */
html[data-theme="dark"] {
  --accent: #5bba7c; --accent-strong: #5bba7c; --accent-hover: #6cc78b;
  --bg: #001a33; --bg2: #00264a; --text: #e8f0f7; --muted: #a9bfd4;
  --surface: #0b2d4f; --border: #24496e; --code: #12385e;
  --link: #e8f0f7; --link-line: #5bba7c;
  --focus: #6cc78b;
  --shadow: 0 .5rem 1rem rgba(0,0,0,.45);
  --num-bg: #5bba7c; --num-ink: #002c55;
  --i-strip: #163a5e; --i-bar: #1c4369; --i-fld: #12345a; --i-page: #0e2b4a; --i-out: #335c84;
  --i-ln: #a9bfd4; --i-gl: #e8f0f7; --i-sk: #27507a; --i-sk2: #1f4468; --i-btn: #27507a;
  --i-pn: #15395e; --i-pnl: #3d6890; --i-sh: rgba(0,0,0,.35); --i-tx: #e8f0f7;
  --i-ptr: #e8f0f7; --i-ptr-ink: #002c55; --i-halo: #0e2b4a; --i-hl: #5bba7c; --i-link: #8fd3a7;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; color: var(--text);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%) fixed;
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-wrap: break-word;
}
img, svg { max-width: 100%; }
.wrap { max-width: 780px; margin: 0 auto; padding: 0 16px; }

/* hero */
.hero { padding: 40px 0 4px; } /* flush with the card edges */
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hero-top h1 { flex: 1 1 auto; min-width: 0; margin: 0; }
.hero-top { margin-bottom: 12px; }
h1 { font-size: clamp(1.7rem, 4.4vw, 2.2rem); line-height: 1.15; letter-spacing: -.015em; margin: 0 0 14px; font-weight: 750; }
h2 { font-size: 1.35rem; line-height: 1.3; margin: 22px 0 10px; display: flex; align-items: center; gap: 12px; }
h3 { font-size: 1.05rem; margin: 18px 0 8px; }
p { margin: 0 0 12px; }
.lead { font-size: 1.12rem; color: var(--muted); margin: 0; }
.tools { display: flex; align-items: center; gap: 6px; flex: none; }
.langs { display: flex; gap: 6px; flex: none; }
.themetoggle {
  display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; border-radius: 8px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; font: inherit;
  transition: border-color .15s ease;
}
.themetoggle[hidden] { display: none; }
.themetoggle:hover { border-color: var(--muted); }
.themetoggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.themetoggle .ico-sun, html[data-theme="dark"] .themetoggle .ico-moon { display: none; }
html[data-theme="dark"] .themetoggle .ico-sun { display: block; }
.lang {
  display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 10px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font-weight: 700; font-size: .9rem; text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease;
}
.lang img { width: 24px; height: 18px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,44,85,.15); }
.lang:hover { border-color: var(--muted); }
.lang[aria-current="page"] { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }

/* links & focus */
a { color: var(--link); text-decoration-color: var(--link-line); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

/* cards */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 6px 28px 24px; margin-top: 24px; box-shadow: var(--shadow);
}
.card > :last-child { margin-bottom: 0; }
.num {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 32px; height: 32px; border-radius: 50%; background: var(--num-bg); color: var(--num-ink);
  font-size: 1rem; font-weight: 800;
}
.small { font-size: .92rem; color: var(--muted); }
code { background: var(--code); padding: 1px 6px; border-radius: 5px; font-size: .92em; }
.file { white-space: nowrap; }
.fileicon { width: 20px; height: 20px; vertical-align: -4px; margin-right: 5px; border-radius: 4px; }

.tvbox { display: flex; align-items: center; gap: 16px; margin-top: 14px; padding: 12px; border-radius: 12px; background: var(--code); }
.tvbox[hidden] { display: none; }
.tvcap { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-size: .9rem; color: var(--muted); }
.tvcap img { border-radius: 4px; }
/* TeamViewer page shown as a small, visible preview (scaled to 20%), never hidden */
.tvframe { flex: none; width: 168px; height: 100px; overflow: hidden; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.tvframe iframe { display: block; width: 840px; height: 500px; border: 0; transform: scale(.2); transform-origin: 0 0; }
.tvtext { min-width: 0; }
.tvfb { margin: 0; }
iframe:not([src]), iframe[hidden] { display: none; }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 4px 0 4px; }
.steps li { counter-increment: s; position: relative; padding: 4px 0 4px 44px; margin: 10px 0; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 3px; width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .95rem;
  border: 2px solid var(--accent); color: var(--text);
}

/* open-the-file section */
.picker { margin: 4px 0 14px; }
.picker[hidden] { display: none; }
.picker-label { display: block; font-size: .92rem; color: var(--muted); margin-bottom: 6px; }
.tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: var(--code); }
.tab {
  font-family: inherit; font-weight: 600; font-size: .95rem; line-height: 1; color: var(--text); background: transparent; border: 0; border-radius: 9px;
  padding: 10px 14px; min-height: 40px; cursor: pointer; transition: background-color .15s ease, color .15s ease;
}
.tab:hover { background: var(--surface); }
.tab[aria-selected="true"] { background: var(--num-bg); color: var(--num-ink); }
.tab:focus-visible { outline-offset: 2px; }
.browser { margin: 0 0 18px; }
.browser[hidden] { display: none; }
.js-tabs .bname { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.browser:focus-visible { outline-offset: 6px; border-radius: 12px; }
.ill { display: block; width: 100%; height: auto; margin: 6px 0 10px; }
.cap { margin: 0; }
.hint { margin: 10px 0 0; }
.ill text { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.i-strip { fill: var(--i-strip); }
.i-bar { fill: var(--i-bar); }
.i-fld { fill: var(--i-fld); }
.i-page { fill: var(--i-page); }
.i-out { fill: none; stroke: var(--i-out); stroke-width: 1.5; }
.i-sk { fill: var(--i-sk); }
.i-sk2 { fill: var(--i-sk2); }
.i-btn { fill: var(--i-btn); }
.i-ln, .i-lnr { fill: none; stroke: var(--i-ln); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i-gl { fill: none; stroke: var(--i-gl); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.i-ring { fill: none; stroke: var(--i-hl); stroke-width: 2.5; }
.i-dots, .i-tl { fill: var(--i-ln); }
.i-tl { opacity: .5; }
.i-sh { fill: var(--i-sh); }
.i-pn { fill: var(--i-pn); stroke: var(--i-pnl); stroke-width: 1.2; }
.i-notch { fill: var(--i-pn); stroke: var(--i-pnl); stroke-width: 1.2; }
.i-sep { stroke: var(--i-pnl); stroke-width: 1.2; }
.i-tx { fill: var(--i-tx); }
.i-link { fill: var(--i-link); }
.i-linkln { stroke: var(--i-link); stroke-width: 1.5; }
.i-hl { fill: none; stroke: var(--i-hl); stroke-width: 3; stroke-dasharray: 7 5; }
.i-ptr { fill: none; stroke: var(--i-ptr); stroke-width: 7; stroke-linecap: round; }
.i-ptrf { fill: var(--i-ptr); }
.i-halo { fill: var(--i-halo); stroke: var(--i-halo); stroke-width: 15; stroke-linecap: round; stroke-linejoin: round; }
path.i-halo { fill: none; }
.i-badge circle { fill: var(--i-ptr); stroke: var(--i-halo); stroke-width: 3; }
.i-badge text { fill: var(--i-ptr-ink); }

footer.foot { padding: 36px 16px 32px; color: var(--muted); font-size: .92rem; text-align: center; }
.foot p { margin: 0; }

/* motion (only when the user has not asked for reduced motion) */
@media (prefers-reduced-motion: no-preference) {
  .card, .hero { animation: rise .5s ease-out both; }
  #download, #app { animation-delay: .06s; }
  #open, #help { animation-delay: .12s; }
  #steps { animation-delay: .18s; }
  .i-nudge { animation: nudge 1.1s ease-in-out infinite alternate; }
  .i-hl { animation: march 1.2s linear infinite; }
  .browser:not([hidden]) .ill { animation: fade .3s ease-out; }
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes nudge { from { transform: translate(0, 0); } to { transform: translate(var(--dx), var(--dy)); } }
@keyframes march { to { stroke-dashoffset: -24; } }

@media (max-width: 720px) {
  .hero-top { flex-wrap: wrap; gap: 10px; }
  .hero-top h1 { flex-basis: 100%; }
  .tools { order: -1; margin-left: auto; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 14px; }
  .card { padding: 2px 18px 20px; margin-top: 16px; border-radius: 14px; }
  .hero { padding: 16px 0 2px; }
  .hero-top { gap: 14px; margin-bottom: 10px; }
  .pagehint { margin: 20px 0 0; }
  h1 { font-size: clamp(1.45rem, 6.6vw, 1.75rem); letter-spacing: -.015em; }
  .lead { font-size: 1rem; }
  .tvbox { flex-wrap: wrap; }
  .lang { min-height: 44px; padding: 0 10px; gap: 6px; }
  .themetoggle { width: 44px; height: 44px; }
  h2 { font-size: 1.2rem; gap: 10px; margin: 18px 0 8px; }
  .num { width: 28px; height: 28px; font-size: .9rem; }
  .tab { padding: 10px 10px; font-size: .9rem; min-height: 44px; }
  .steps li { padding-left: 42px; margin: 8px 0; }
  footer.foot { padding: 28px 16px 24px; }
}
@media (forced-colors: active) {
  .num, .tab[aria-selected="true"] { border: 2px solid CanvasText; }
}

.lang-swap body { visibility: hidden; }

/* Mac guide */
.back { margin: 14px 0 0; font-size: .95rem; }
.shot { margin: 14px 0 4px; }
.shot img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--border); background: #fff; }
.perm { margin: 0 0 12px; padding-left: 1.2em; }
.perm li { margin: 4px 0; }
.pagehint { margin: 24px 0 0; }
.callout { margin: 14px 0 0; padding: 12px 14px; border-radius: 10px; background: var(--code); border-left: 4px solid var(--accent); }
.callout[hidden] { display: none; }

/* Per-OS content. html[data-os] = windows | mac | other | ios | android, set in <head>.
   Unset (no JS, bots/crawlers) = the Windows content, so the page always has real text.
   Use these classes on block elements only. */
.os-mac, .os-other, .os-mobile, .os-ios, .os-android { display: none; }
html[data-os="mac"] .os-mac, html[data-os="other"] .os-other,
html[data-os="ios"] .os-mobile, html[data-os="android"] .os-mobile,
html[data-os="ios"] .os-ios, html[data-os="android"] .os-android { display: block; }
html[data-os="mac"] .os-win, html[data-os="other"] .os-win,
html[data-os="ios"] .os-win, html[data-os="android"] .os-win,
html[data-os="ios"] .os-desktop, html[data-os="android"] .os-desktop { display: none; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: 12px;
  background: var(--accent); color: #002c55; font-weight: 700; font-size: 1.05rem; text-decoration: none;
  box-shadow: 0 2px 6px rgba(0,44,85,.18); transition: background-color .15s ease;
}
.btn:hover { background: var(--accent-hover); text-decoration: none; }
.btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.storebox { margin: 0 0 4px; }
.storebox p { margin-bottom: 14px; }
/* the one mobile illustration: modest and centred */
.phone-shot { margin: 14px auto 6px; max-width: 170px; }
.phone-shot img { display: block; width: 100%; height: auto; }
.more { margin: 12px 0 0; border-top: 1px solid var(--border); }
.more summary {
  display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 4px 0; cursor: pointer;
  font-weight: 600; color: var(--text); list-style: none;
}
.more summary::-webkit-details-marker { display: none; }
.more summary::before {
  content: ""; flex: none; width: 8px; height: 8px; margin: 0 6px 0 4px;
  border-right: 2px solid var(--accent-strong); border-bottom: 2px solid var(--accent-strong); transform: rotate(-45deg);
  transition: transform .15s ease;
}
.more[open] summary::before { transform: rotate(45deg); }
.more p { margin: 2px 0 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 600px) {
  .btn { display: flex; justify-content: center; width: 100%; }
}
