/* Elkontakten One — design tokens lifted 1:1 from elinstallation.nu (see docs/site-capture/CAPTURE.md).
   Always use var() tokens; never hardcode colours. */
:root {
  --red: #c00000;
  --red-2: #e0284f;
  --ink: #212934;
  --ink-2: #2c3e50;
  --muted: #4a4e57;
  --line: #e5e4e3;
  --bg: #ffffff;
  --bg-2: #f6f7f8;
  --surface: #ffffff;   /* card / panel surface (themeable) */
  --surface-2: #f6f7f8;
  --cream: #f5f2ef;
  --ink-deep: #1a2230;
  --ok: #65bc7b;
  --warn: #b9770a;       /* amber — "note from the office" highlights */
  --danger: #c00000;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(33, 41, 52, 0.1);
  --maxw: 1140px;
  --font: "Gilroy", "Poppins", "Helvetica Neue", system-ui, -apple-system, sans-serif;
}

/* ───────── Dark theme ───────── */
[data-theme="dark"] {
  --ink: #e8eaef; --ink-2: #d6dae1; --ink-deep: #f3f5f9; --muted: #99a1b0;
  --line: #2b313c; --bg: #0f1217; --bg-2: #161a21; --surface: #1b1f27; --surface-2: #232833; --cream: #1b1f27;
  --shadow: 0 12px 34px rgba(0, 0, 0, 0.5); --red: #ff5260; --red-2: #ff7080; --warn: #f0b352;
}
/* ───────── Sand theme (matches missionrhw.com) ───────── */
[data-theme="sand"] {
  --ink: #2c2620; --ink-2: #3a342c; --ink-deep: #211c16; --muted: #6e6354;
  --line: #ddd1bb; --bg: #efe7d8; --bg-2: #e8dfcd; --surface: #f7f1e6; --surface-2: #ece2d0; --cream: #f7f1e6;
  --shadow: 0 12px 30px rgba(90, 70, 35, 0.14); --red: #b08a4f; --red-2: #c79a57; --danger: #b3402f; --warn: #9c7a36;
}
html { color-scheme: light; overflow-x: clip; }  /* kill stray horizontal overflow on mobile without breaking sticky headers */
[data-theme="dark"] { color-scheme: dark; }
body { transition: background-color .25s ease, color .25s ease; }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.15; color: var(--ink); margin: 0 0 0.4em; font-weight: 800; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
p { margin: 0 0 1em; color: var(--muted); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section--alt { background: var(--bg-2); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  border: 2px solid transparent; cursor: pointer; transition: 0.15s;
}
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: #a30000; }
.btn--ghost { background: var(--surface); color: var(--red); border-color: #fff; }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--danger { background: var(--red); color: #fff; border-color: var(--red); }
.article-pop { position: absolute; z-index: 50; left: 0; right: 0; top: 100%; margin-top: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(26,34,48,.16); max-height: 280px; overflow-y: auto; min-width: 260px; }
.article-pop__item { display: flex; flex-direction: column; gap: 1px; width: 100%; text-align: left; padding: 8px 12px; background: none; border: none; border-bottom: 1px solid var(--bg-2); cursor: pointer; }
.article-pop__item:hover { background: var(--bg-2); }
.article-pop__name { font-weight: 600; color: var(--ink-deep); font-size: .9rem; }
.article-pop__meta { font-size: .76rem; color: var(--muted); }

/* header */
.nav {
  position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.nav__row { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav__logo img { height: 46px; width: auto; }
.nav__links { display: flex; gap: 26px; align-items: center; }
.nav__links a { color: var(--ink); font-weight: 600; font-size: 0.95rem; }
.nav__links a:hover { color: var(--red); }
@media (max-width: 860px) {
  .nav__row { flex-wrap: wrap; height: auto; padding: 10px 0; gap: 8px 16px; }
  .nav__links { flex-wrap: wrap; gap: 10px 18px; }
  .nav__links a { font-size: .88rem; }
}

/* hero */
.hero { position: relative; min-height: 78vh; display: flex; align-items: flex-end; color: #fff; }
.hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,24,30,0.15) 0%, rgba(20,24,30,0.78) 100%); }
.hero__inner { position: relative; padding-bottom: 64px; max-width: 760px; }
.hero h1 { color: #fff; }
.hero p { color: rgba(255,255,255,0.92); font-size: 1.15rem; max-width: 600px; }

/* cards */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.card h3 { color: var(--red); font-size: 1.2rem; }
.card__img { height: 170px; border-radius: 10px; object-fit: cover; width: 100%; margin-bottom: 16px; }

/* steps */
.steps { display: grid; gap: 14px; counter-reset: s; }
.step { display: flex; gap: 14px; align-items: flex-start; }
.step__n {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; background: var(--red); color: #fff;
  display: grid; place-items: center; font-weight: 800;
}

/* badge / reco */
.eyebrow { color: var(--red); font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.85rem; }

/* footer */
.footer { background: var(--ink); color: #cfd6df; padding: 56px 0 32px; }
.footer a { color: #cfd6df; }
.footer a:hover { color: #fff; }
.footer h4 { color: #fff; margin: 0 0 12px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__logo { height: 52px; margin-bottom: 16px; }

/* auth */
.auth { min-height: 100vh; display: grid; place-items: center; background: var(--bg-2); padding: 24px; }
.auth__card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; width: 100%; max-width: 380px; box-shadow: var(--shadow); }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.field input {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit;
}
.field input:focus { outline: none; border-color: var(--red); }
.sel {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; background: var(--surface); color: var(--ink);
}
.sel:focus { outline: none; border-color: var(--red); }
textarea.sel { resize: vertical; }
.dropzone {
  border: 2px dashed var(--border-strong, #cbb8a1); border-radius: 12px; padding: 22px;
  text-align: center; cursor: pointer; background: var(--bg-2); transition: .15s; color: var(--ink);
  display: flex; flex-direction: column; gap: 4px; align-items: center;
}
.dropzone:hover, .dropzone--over { border-color: var(--red); background: color-mix(in srgb, var(--red) 6%, var(--surface)); }
.error { color: var(--danger); font-size: 0.9rem; margin: 8px 0; }

/* tabs */
.tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.tab { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; cursor: pointer; color: var(--muted); }
.tab--on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* pills */
.pill { font-size: .72rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: var(--bg-2); color: var(--muted); white-space: nowrap; }
.pill--NEW { background: color-mix(in srgb, var(--red) 14%, var(--surface)); color: var(--red); }
.pill--QUOTED { background: #fef0d9; color: #9a5c0a; }
.pill--SIGNED { background: #e3effb; color: #1c5fa8; }
.pill--SCHEDULED { background: #ede7fb; color: #5b3ea8; }
.pill--DELIVERED { background: #e6f3ea; color: #2f7d45; }
.pill--INVOICED { background: #eef1f4; color: var(--ink-2); }
.pill--PAID { background: color-mix(in srgb, var(--ok) 22%, var(--surface)); color: #2f7d45; }
.pill--DECLINED { background: #f3eded; color: #8a6d6d; }
.pill--ok { background: color-mix(in srgb, var(--ok) 18%, var(--surface)); color: #2f7d45; }
.pill--off { background: #eee; color: #888; }
.banner { background: #fef0d9; color: #9a5c0a; padding: 10px 14px; border-radius: 10px; font-size: .88rem; margin: 8px 0; }

/* kanban board */
.board { display: flex; gap: 14px; margin-top: 16px; overflow-x: auto; padding-bottom: 8px; align-items: flex-start; }
.board__col { flex: 0 0 240px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.board__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-weight: 700; font-size: .85rem; }
.kcard { display: block; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; cursor: pointer; box-shadow: var(--shadow-sm, 0 1px 3px rgba(33,41,52,.06)); }
.kcard:hover { border-color: var(--red); }

/* ───── modern public redesign ───── */
.pnav { position: fixed; top: 0; left: 0; right: 0; z-index: 60; border-bottom: 1px solid transparent; transition: background .35s ease, box-shadow .35s ease, border-color .35s ease; }
.pnav--top { background: linear-gradient(180deg, rgba(8,11,16,.5) 0%, rgba(8,11,16,0) 100%); }
.pnav--solid { background: rgba(255,255,255,.82); backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%); border-bottom-color: var(--line); box-shadow: 0 8px 30px rgba(10,13,18,.07); }
.pnav__row { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 18px; }
.pnav__links { display: flex; gap: 26px; align-items: center; }
.pnav__links a, .pnav__drop > span { font-weight: 600; font-size: .95rem; cursor: pointer; transition: color .2s; }
.pnav--solid .pnav__links a, .pnav--solid .pnav__drop > span { color: var(--ink-deep); }
.pnav--top .pnav__links a, .pnav--top .pnav__drop > span, .pnav--top .pnav__surf { color: #fff; }
.pnav--solid .pnav__surf { color: var(--muted); }
.pnav__links a:hover { color: var(--red) !important; }
.pnav__drop { position: relative; }
.pnav__menu { position: absolute; top: 150%; left: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 8px; min-width: 220px; display: none; }
.pnav__drop:hover .pnav__menu { display: block; }
.pnav__menu a { display: block; padding: 9px 12px; border-radius: 8px; font-weight: 500; color: var(--ink-deep) !important; }
.pnav__menu a:hover { background: var(--cream); }
.pnav__menubtn { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font-size: 1.1rem; transition: all .2s; }
.pnav--top .pnav__menubtn { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.36); color: #fff; backdrop-filter: blur(6px); }
.pnav__mobile { display: grid; gap: 2px; padding: 4px 20px 16px; }
.pnav__mobile a { padding: 12px 4px; font-weight: 600; color: var(--ink-deep); border-bottom: 1px solid var(--line); }
.pnav--top .seg { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.3); box-shadow: none; }
.pnav--top .seg a { color: rgba(255,255,255,.82); }
.pnav--top .seg a.seg--on { background: var(--surface); color: var(--ink-deep); }
@media (max-width: 980px) { .pnav__links { display: none; } .pnav__row { height: 64px; } }
/* Phone: collapse the segment switcher into the hamburger so the bar never overflows. */
@media (max-width: 760px) { .pnav__row .seg { display: none; } .pnav__row { gap: 10px; } }
.seg--mob { display: flex; margin: 4px 0 8px; }
.seg--mob a { flex: 1; text-align: center; }

.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px; box-shadow: 0 2px 8px rgba(33,41,52,.08); }
.seg a { padding: 8px 18px; border-radius: 999px; font-weight: 700; font-size: .9rem; color: var(--muted); }
.seg a.seg--on { background: var(--ink-deep); color: #fff; }

.phero { position: relative; min-height: 92vh; display: flex; align-items: center; color: #fff; overflow: hidden; padding-top: 72px; }
.phero__bg { position: absolute; inset: 0; background-size: cover; background-position: 72% center; transform: scale(1.04); animation: heroZoom 18s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.phero__bg::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(102deg, rgba(10,13,18,.95) 0%, rgba(10,13,18,.78) 32%, rgba(10,13,18,.34) 62%, rgba(10,13,18,.04) 100%),
  linear-gradient(180deg, rgba(10,13,18,.55) 0%, transparent 24%, transparent 64%, rgba(26,34,48,.96) 100%); }
.phero__in { position: relative; max-width: 680px; padding: 56px 20px; animation: heroRise .7s cubic-bezier(.2,.7,.2,1) both; }
@keyframes heroRise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.phero__eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 15px; border-radius: 99px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(10px); font-size: .8rem; font-weight: 700; letter-spacing: .01em; color: #fff; }
.phero__eyebrow .st { color: #ffc83d; font-size: .95rem; line-height: 1; }
.phero h1 { color: #fff; font-size: clamp(2.5rem, 6vw, 4.4rem); line-height: 1.02; letter-spacing: -.025em; font-weight: 800; margin: 20px 0 0; text-shadow: 0 2px 36px rgba(0,0,0,.32); }
.phero p { color: rgba(255,255,255,.9); font-size: 1.12rem; line-height: 1.6; max-width: 520px; margin: 18px 0 30px; }
.phero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.phero__cta .btn { box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.phero__trust { display: inline-flex; align-items: center; gap: 12px; margin-top: 28px; padding: 12px 18px; border-radius: 14px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(12px); color: #fff; transition: background .15s; }
.phero__trust:hover { background: rgba(255,255,255,.17); }
.phero__trust .stars { color: #ffc83d; letter-spacing: 2px; font-size: 1.02rem; }
.phero__trust b { font-weight: 800; }
.phero__trust small { color: rgba(255,255,255,.72); }
.btn--lg { padding: 15px 26px; font-size: 1.02rem; border-radius: 12px; }
.btn--glass { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.38); backdrop-filter: blur(8px); }
.btn--glass:hover { background: rgba(255,255,255,.24); }
@media (max-width: 560px) { .phero { min-height: 88vh; padding-top: 64px; } .phero__in { padding: 28px 20px; } .phero h1 { font-size: clamp(2.1rem, 9vw, 3rem); } .phero p { font-size: 1.05rem; } .phero__trust { width: 100%; } .phero__cta .btn { flex: 1; justify-content: center; } }

.reco-band { background: var(--ink-deep); color: #fff; }
.reco-band__row { display: flex; flex-wrap: wrap; gap: 28px 48px; align-items: center; justify-content: center; padding: 22px 0; text-align: center; }
.reco-band b { font-size: 1.6rem; display: block; }
.reco-band span { font-size: .82rem; color: #aeb7c2; text-transform: uppercase; letter-spacing: .04em; }

.section--cream { background: var(--cream); }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
@media (max-width: 900px) { .svc-grid { grid-template-columns: 1fr; } }
.svc { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 26px; transition: .18s; }
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.svc__ic { width: 54px; height: 54px; border-radius: 14px; background: color-mix(in srgb, var(--red) 12%, var(--surface)); color: var(--red); display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 14px; }
.svc h3 { color: var(--ink-deep); font-size: 1.2rem; }
.svc .more { color: var(--red); font-weight: 700; font-size: .9rem; }

.feat { display: flex; gap: 12px; align-items: flex-start; margin: 12px 0; }
.feat__ic { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; background: color-mix(in srgb, var(--ok) 18%, var(--surface)); color: #2f7d45; display: grid; place-items: center; font-weight: 800; }

.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { width: 100%; text-align: left; background: none; border: none; padding: 18px 0; font-weight: 700; font-size: 1.05rem; color: var(--ink-deep); cursor: pointer; display: flex; justify-content: space-between; gap: 12px; font-family: inherit; }
.faq__a { padding: 0 0 18px; color: var(--muted); }

.btn--dark { background: var(--ink-deep); color: #fff; }
.btn--dark:hover { background: #0f141d; }
.btn--white { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.5); backdrop-filter: blur(4px); }
.btn--white:hover { background: rgba(255,255,255,.22); }

/* chat widget */
.chat-fab { position: fixed; bottom: 20px; right: 20px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; border: none; background: var(--red); color: #fff; font-size: 1.5rem; cursor: pointer; box-shadow: var(--shadow); }
.chat-panel { position: fixed; bottom: 20px; right: 20px; z-index: 95; width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 100px)); background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); }
.chat-head { background: var(--red); color: #fff; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; }
.chat-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: var(--bg-2); }
.chat-msg { max-width: 82%; padding: 9px 12px; border-radius: 12px; font-size: .9rem; line-height: 1.4; }
.chat-msg--bot { background: var(--surface); border: 1px solid var(--line); align-self: flex-start; }
.chat-msg--me { background: var(--red); color: #fff; align-self: flex-end; }
.chat-input { padding: 10px; border-top: 1px solid var(--line); background: var(--surface); }
.mic-btn { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 8px 12px; cursor: pointer; font: inherit; }
.mic-btn--on { background: var(--red); color: #fff; border-color: var(--red); }

/* calendar (Calendly-style) */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal__h { text-align: center; font-size: .72rem; font-weight: 700; color: var(--muted); padding: 4px 0; }
.cal__d { aspect-ratio: 1; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; cursor: pointer; font: inherit; font-weight: 600; color: var(--ink); }
.cal__d:hover:not(:disabled) { border-color: var(--red); }
.cal__d:disabled { background: var(--bg-2); color: #c4c4c4; cursor: not-allowed; border-color: transparent; }
.cal__d--sel { background: var(--red); color: #fff; border-color: var(--red); }

/* inbox rows */
.inbox-row { display: block; width: 100%; text-align: left; padding: 14px 18px; border: none; border-bottom: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.inbox-row:hover, .inbox-row[data-on="true"] { background: var(--bg-2); }

/* table */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th, .tbl td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: .92rem; }
.tbl th { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; }
.link-btn { background: none; border: none; color: var(--red); font-weight: 600; cursor: pointer; padding: 0 8px; font: inherit; }

/* modal */
.modal { position: fixed; inset: 0; background: rgba(20,24,30,.5); display: grid; place-items: center; z-index: 240; padding: 20px; }
.modal__card { position: relative; background: var(--surface); border-radius: var(--radius); padding: 28px; max-width: 380px; box-shadow: var(--shadow); }
.modal__x { position: absolute; top: 12px; right: 14px; border: none; background: none; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--muted); }
.legal h1 { margin-bottom: 18px; }
.legal h2 { font-size: 1.2rem; }
.legal p, .legal li { font-size: .96rem; }

/* ───────── auto-advancing intake wizard ───────── */
.wiz__head { display: flex; align-items: center; gap: 12px; margin: 6px 0 26px; }
.wiz__back { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); font-size: 1.1rem; cursor: pointer; color: var(--ink); flex: none; }
.wiz__back:hover { border-color: var(--red); color: var(--red); }
.wiz__bar { flex: 1; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.wiz__bar span { display: block; height: 100%; background: var(--red); border-radius: 99px; transition: width .35s cubic-bezier(.4,0,.2,1); }
.wiz__count { font-size: .82rem; font-weight: 700; color: var(--muted); flex: none; }
.wiz__q { font-size: 1.7rem; line-height: 1.15; color: var(--ink-deep); margin: 0 0 6px; }
.wiz__sub { color: var(--muted); margin: 0 0 20px; }
.wiz__step { animation: wizIn .34s cubic-bezier(.4,0,.2,1); }
.wiz__step--back { animation: wizInBack .34s cubic-bezier(.4,0,.2,1); }
@keyframes wizIn { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: none; } }
@keyframes wizInBack { from { opacity: 0; transform: translateX(-22px); } to { opacity: 1; transform: none; } }
.wiz__text { width: 100%; resize: vertical; }
.wiz__cta { width: 100%; justify-content: center; margin-top: 18px; padding: 15px; font-size: 1.02rem; }
.wiz__skip { display: block; margin: 16px auto 0; }
.wiz__rot { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 4px; font-weight: 600; color: var(--ink); cursor: pointer; }
.wiz__rot small { color: var(--muted); font-weight: 400; }
.wiz__rot input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--red); }
.wiz__fine { font-size: .76rem; color: var(--muted); text-align: center; margin-top: 12px; }
.wiz__done { text-align: center; padding: 40px 28px; }
.wiz__check { width: 64px; height: 64px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 2rem; display: grid; place-items: center; margin: 0 auto 16px; }

.opt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.opt-grid--2 { grid-template-columns: 1fr 1fr; }
.opt { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 16px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); cursor: pointer; font: inherit; transition: transform .12s, border-color .12s, box-shadow .12s; }
.opt:hover { border-color: var(--red); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.06); }
.opt--on { border-color: var(--red); box-shadow: 0 0 0 3px rgba(192,0,0,.12); }
.opt__ic { font-size: 1.7rem; line-height: 1; margin-bottom: 6px; }
.opt__l { font-weight: 700; color: var(--ink-deep); }
.opt__d { font-size: .8rem; color: var(--muted); }
@media (max-width: 460px) { .opt-grid { grid-template-columns: 1fr; } .wiz__q { font-size: 1.45rem; } }

/* ───────── Reco reviews ───────── */
.reco-band__row a, a.reco-band__row { color: inherit; }
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 22px; }
.rev { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: 0 4px 14px rgba(0,0,0,.04); }
.rev__stars { color: #f5a623; letter-spacing: 2px; font-size: 1rem; }
.rev__txt { color: var(--ink-deep); font-weight: 600; margin: 8px 0 14px; line-height: 1.45; }
.rev__meta { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--muted); }
.rev__av { width: 30px; height: 30px; border-radius: 50%; background: var(--cream); display: grid; place-items: center; font-weight: 800; color: var(--red); }
.reco-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-weight: 700; color: var(--red); }
.reco-pill { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 7px 14px; font-weight: 700; font-size: .85rem; color: var(--ink-deep); }
.reco-pill b { color: #f5a623; }

/* ───────── rich signing experience (Oneflow parity) ───────── */
.sign-acc { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1.5px solid var(--line); border-radius: 12px; margin-bottom: 10px; cursor: pointer; transition: border-color .12s, background .12s; }
.sign-acc--on { border-color: var(--red); background: #fff7f7; }
.sign-acc input { margin-top: 3px; width: 20px; height: 20px; accent-color: var(--red); flex: none; }
.sign-acc__l { font-weight: 700; color: var(--ink-deep); }
.sign-acc__p { font-size: .82rem; color: var(--muted); margin-top: 2px; }
.sign-acc__price { margin-left: auto; text-align: right; font-weight: 800; color: var(--ink-deep); white-space: nowrap; }
.sign-acc__price s { display: block; font-weight: 400; font-size: .76rem; color: var(--muted); }
.sign-scope { background: var(--bg-2); border-radius: 12px; padding: 16px 18px; font-size: .86rem; color: var(--muted); line-height: 1.55; margin-top: 14px; }
.sign-scope b { color: var(--ink-deep); }

/* ───────── customer self-booking (Calendly) ───────── */
.book-day { border: 1.5px solid var(--line); background: var(--surface); border-radius: 99px; padding: 8px 14px; font: inherit; font-weight: 700; color: var(--ink-deep); cursor: pointer; text-transform: capitalize; white-space: nowrap; }
.book-day:hover { border-color: var(--red); }
.book-day--on { background: var(--red); border-color: var(--red); color: #fff; }
.book-slot { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; font: inherit; transition: border-color .12s, transform .12s; }
.book-slot:hover:not(:disabled) { border-color: var(--red); transform: translateY(-2px); }
.book-slot strong { color: var(--ink-deep); }
.book-slot span { font-size: .82rem; color: var(--muted); }
.book-slot em { font-size: .74rem; color: var(--red); font-style: normal; }
.book-slot:disabled { background: var(--bg-2); color: #b9b9b9; cursor: not-allowed; }

/* ───────── admin shell (mobile-first, app-like) ───────── */
.adm { min-height: 100vh; background: var(--bg-2); padding-bottom: 32px; }
.adm__top { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%); border-bottom: 1px solid var(--line); }
.adm__toprow { display: flex; align-items: center; justify-content: space-between; height: 58px; }
.adm__user { font-size: .9rem; color: var(--muted); font-weight: 600; }
.adm__tabsrow { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; padding: 4px 0 12px; -webkit-overflow-scrolling: touch; }
.adm__tabsrow::-webkit-scrollbar { display: none; }
.atab { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: .9rem; color: var(--muted); cursor: pointer; white-space: nowrap; transition: background .15s, color .15s, border-color .15s, box-shadow .15s; }
.atab:hover { border-color: var(--ink-deep); color: var(--ink-deep); }
.atab--on { background: var(--ink-deep); color: #fff; border-color: var(--ink-deep); box-shadow: 0 6px 18px rgba(26,34,48,.24); }
.atab__ic { font-size: 1rem; line-height: 1; }
.adm__main { padding: 22px 20px; }
@media (max-width: 560px) { .adm__main { padding: 16px; } .adm__user { display: none; } }

.icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 1.1rem; color: var(--ink); display: grid; place-items: center; transition: border-color .15s, color .15s; }
.icon-btn:hover { border-color: var(--red); color: var(--red); }

/* ───────── agenda (Idag) ───────── */
.agenda { display: grid; gap: 16px; margin-top: 16px; }
.agenda__nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; box-shadow: 0 4px 14px rgba(0,0,0,.03); }
.agenda__tech { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,.04); }
.agenda__techhead { display: flex; align-items: center; gap: 10px; padding: 13px 16px; font-weight: 800; color: var(--ink-deep); border-bottom: 1px solid var(--line); background: var(--cream); }
.agenda__techhead .avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .85rem; flex: none; }
.agenda__techhead .badge { margin-left: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 3px 11px; font-size: .78rem; color: var(--muted); font-weight: 700; }
.agenda__appt { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.agenda__appt:last-child { border-bottom: none; }
.agenda__time { text-align: center; min-width: 52px; flex: none; }
.agenda__time b { display: block; font-size: 1.05rem; color: var(--ink-deep); }
.agenda__time span { font-size: .72rem; color: var(--muted); }
.chip { background: var(--cream); color: var(--ink-deep); border-radius: 99px; padding: 4px 11px; font-size: .76rem; font-weight: 800; white-space: nowrap; }
button.chip { border: 1px solid var(--line); cursor: pointer; }
.chip--on { background: var(--ink-deep); color: #fff; border-color: var(--ink-deep); }
.empty { background: var(--surface); border: 1px dashed var(--line); border-radius: 16px; padding: 44px 20px; text-align: center; color: var(--muted); font-size: 1rem; }

/* ───────── mobile: full-width inbox tools, snap board, sheet modals ───────── */
@media (max-width: 600px) {
  .board { gap: 12px; scroll-snap-type: x mandatory; }
  .board__col { flex: 0 0 80vw; scroll-snap-align: start; }
  .modal { padding: 0; align-items: flex-end; }
  .modal__card { max-width: 100%; width: 100%; max-height: 92vh; border-radius: 20px 20px 0 0; padding: 22px 18px calc(20px + env(safe-area-inset-bottom)); animation: sheetUp .28s cubic-bezier(.2,.7,.2,1); }
  @keyframes sheetUp { from { transform: translateY(40px); opacity: .6; } to { transform: none; opacity: 1; } }
  .tabs { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; padding-bottom: 4px; }
  .tabs::-webkit-scrollbar { display: none; }
}

/* ───────── conversion sections (USP, process, CTA band) ───────── */
.pnav__cta { padding: 10px 18px; font-size: .92rem; }
@media (max-width: 980px) { .pnav__cta { display: none; } }
#tjanster { scroll-margin-top: 84px; }

.usp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.usp { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px 20px; box-shadow: 0 6px 20px rgba(0,0,0,.04); transition: transform .15s, box-shadow .15s; }
.usp:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,0,0,.08); }
.usp__ic { font-size: 1.8rem; line-height: 1; margin-bottom: 10px; }
.usp h3 { font-size: 1.05rem; color: var(--ink-deep); margin: 0 0 6px; }
.usp p { font-size: .9rem; margin: 0; line-height: 1.5; }
@media (max-width: 880px) { .usp-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .usp-grid { grid-template-columns: 1fr; } }

.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 26px; counter-reset: step; }
.pstep { position: relative; }
.pstep__n { width: 42px; height: 42px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; margin-bottom: 14px; box-shadow: 0 6px 16px rgba(192,0,0,.28); }
.pstep h3 { font-size: 1.1rem; color: var(--ink-deep); margin: 0 0 6px; }
.pstep p { font-size: .92rem; margin: 0; }
@media (max-width: 880px) { .process { grid-template-columns: 1fr 1fr; gap: 24px; } }
@media (max-width: 480px) { .process { grid-template-columns: 1fr; } }

.cta-band { background: var(--ink-deep); color: #fff; padding: clamp(44px, 7vw, 76px) 0; }
.cta-band__in { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 8px; }
.cta-band p { color: rgba(255,255,255,.82); margin: 0; max-width: 540px; }
.cta-band__btns { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-band .btn--white { background: var(--surface); color: var(--ink-deep); }
.cta-band .btn--white:hover { background: #f0f0f0; }
@media (max-width: 560px) { .cta-band__btns { width: 100%; } .cta-band__btns .btn { flex: 1; justify-content: center; } }

/* chat guided quick actions */
.chat-quick { display: grid; gap: 8px; margin: 4px 0 2px; }
.chat-quick__btn { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; font-weight: 700; color: var(--ink-deep); font-size: .9rem; transition: border-color .15s, transform .1s; }
.chat-quick__btn:hover { border-color: var(--red); transform: translateY(-1px); }
.chat-quick__btn span { font-size: 1.05rem; }

/* ───────── resizable drawer (Claude/Google-style) ───────── */
.drw__scrim { position: fixed; inset: 0; background: rgba(10,13,18,.42); backdrop-filter: blur(2px); z-index: 200; animation: drwFade .2s ease; }
@keyframes drwFade { from { opacity: 0; } to { opacity: 1; } }
.drw { position: fixed; top: 0; right: 0; bottom: 0; z-index: 201; background: var(--bg); border-left: 1px solid var(--line); box-shadow: -24px 0 70px rgba(10,13,18,.2); display: flex; flex-direction: column; animation: drwIn .3s cubic-bezier(.2,.7,.2,1); }
@keyframes drwIn { from { transform: translateX(36px); opacity: .3; } to { transform: none; opacity: 1; } }
.drw__resize { position: absolute; left: -4px; top: 0; bottom: 0; width: 9px; cursor: col-resize; z-index: 3; }
.drw__resize:hover, .drw__resize:active { background: linear-gradient(90deg, transparent, rgba(192,0,0,.22)); }
.drw__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 22px 24px 14px; border-bottom: 1px solid var(--line); }
.drw__title { font-size: 1.35rem; font-weight: 800; color: var(--ink-deep); line-height: 1.15; word-break: break-word; }
.drw__sub { color: var(--muted); font-size: .85rem; margin-top: 4px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.drw__x { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; color: var(--muted); font-size: .95rem; flex: none; }
.drw__x:hover { border-color: var(--red); color: var(--red); }
.drw__actions { display: flex; gap: 8px; flex-wrap: wrap; padding: 14px 24px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.drw__body { flex: 1; overflow-y: auto; padding: 20px 24px 48px; }
.drw__label { font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 6px 0 6px; }
@media (max-width: 700px) { .drw { width: 100% !important; animation: sheetUp .28s; } .drw__resize { display: none; } }

/* drag-and-drop states */
.kcard[draggable=true] { cursor: grab; transition: box-shadow .12s, opacity .12s; }
.kcard--drag { opacity: .4; }
.board__col--drop { background: color-mix(in srgb, var(--red) 7%, var(--bg-2)); border-color: var(--red); border-style: dashed; }
.agenda__appt[draggable=true] { cursor: grab; }
.agenda__tech--drop { outline: 2px dashed var(--red); outline-offset: 2px; }

/* workspace switch */
.ws__switch { display: inline-flex; gap: 4px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 4px; max-width: 100%; overflow-x: auto; }
.ws__seg { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 9px; border: none; background: transparent; font: inherit; font-weight: 700; font-size: .92rem; color: var(--muted); cursor: pointer; white-space: nowrap; }
.ws__seg:hover { color: var(--ink-deep); }
.ws__seg--on { background: var(--surface); color: var(--ink-deep); box-shadow: 0 2px 8px rgba(26,34,48,.1); }
.ws__seg-ic { font-size: 1rem; }

/* electrician field app */
.jobcard { display: flex; align-items: center; gap: 14px; width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; cursor: pointer; box-shadow: 0 3px 12px rgba(0,0,0,.03); transition: border-color .12s, transform .1s; }
.jobcard:hover { border-color: var(--red); transform: translateY(-1px); }
.jobcard__time { min-width: 52px; text-align: center; font-weight: 800; color: var(--ink-deep); font-size: 1.05rem; flex: none; }
.fieldrow { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.fieldrow > span:first-child { color: var(--muted); }
.fieldrow a { color: var(--red); font-weight: 600; text-align: right; }
.sheet { position: fixed; inset: 0; z-index: 210; background: rgba(10,13,18,.5); display: flex; align-items: flex-end; justify-content: center; animation: drwFade .2s; }
.sheet__card { background: var(--bg); width: 100%; max-width: 640px; max-height: 92vh; overflow-y: auto; border-radius: 22px 22px 0 0; padding: 10px 18px calc(24px + env(safe-area-inset-bottom)); position: relative; animation: sheetUp .3s cubic-bezier(.2,.7,.2,1); }
@media (min-width: 700px) { .sheet { align-items: center; } .sheet__card { border-radius: 18px; } }
.sheet__grip { width: 40px; height: 4px; border-radius: 99px; background: var(--line); margin: 6px auto 12px; }
.sheet__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.voice-btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 18px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); font: inherit; font-weight: 700; font-size: 1.02rem; color: var(--ink-deep); cursor: pointer; }
.voice-btn:hover:not(:disabled) { border-color: var(--red); }
.voice-btn:disabled { opacity: .7; }
.voice-btn--rec { background: var(--red); color: #fff; border-color: var(--red); }
.voice-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--surface); animation: vpulse 1s infinite; }
@keyframes vpulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink-deep); color: #fff; padding: 10px 18px; border-radius: 99px; font-weight: 600; font-size: .9rem; z-index: 320; animation: drwFade .2s; }

/* global toast host (lib/toast.ts) */
.toasts { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 9999; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: max-content; max-width: 92vw; }
.toasts__t { display: flex; align-items: center; gap: 9px; background: var(--ink-deep); color: #fff; padding: 11px 17px; border-radius: 12px; font-weight: 600; font-size: .92rem; box-shadow: 0 10px 28px rgba(0,0,0,.20); animation: toastin .22s ease; }
.toasts__t--ok { background: var(--ok); }
.toasts__t--error { background: var(--red); }
.toasts__ic { font-weight: 800; font-size: 1rem; }
@keyframes toastin { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* AI voice-action suggestions */
.voiceacts { margin-top: 8px; border-top: 1px dashed var(--line); padding-top: 8px; }
.voiceacts__h { font-size: .72rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.voiceacts__h span { font-weight: 600; text-transform: none; letter-spacing: 0; }
.voiceacts__sum { font-size: .85rem; color: var(--ink); margin-bottom: 8px; }
.voiceacts__row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: var(--bg-2); border-radius: 10px; margin-bottom: 6px; }
.voiceacts__row--warn { border: 1px solid var(--red); }
.voiceacts__ic { font-size: 1.05rem; flex: 0 0 auto; line-height: 1; }
.voiceacts__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.voiceacts__txt strong { font-size: .9rem; color: var(--ink-deep); }
.voiceacts__txt span { font-size: .78rem; color: var(--muted); }
.voiceacts__btns { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.btn--xs { padding: 5px 11px; font-size: .8rem; }
.iconx { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; font-size: .82rem; line-height: 1; flex: 0 0 auto; }
.iconx:hover { border-color: var(--red); color: var(--red); }
.voiceacts__done { font-size: .82rem; color: var(--ok); font-weight: 600; padding: 2px 0; }

/* ───────── command center (open canvas) ───────── */
.adm .container { max-width: 1340px; }
.cmd { display: grid; gap: 20px; }
.cmd__hello { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cmd__hello h1 { font-size: 1.7rem; color: var(--ink-deep); margin: 0; }
.cmd__hello p { color: var(--muted); margin: 4px 0 0; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(186px, 1fr)); gap: 14px; }
.stat { position: relative; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 18px 16px; cursor: pointer; transition: transform .12s, box-shadow .12s, border-color .12s; overflow: hidden; }
.stat:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(0,0,0,.08); border-color: var(--ink-deep); }
.stat::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent, var(--ink-deep)); }
.stat--red { --accent: var(--red); } .stat--gold { --accent: #d6920a; } .stat--purple { --accent: #6b46c1; } .stat--green { --accent: #2f9e57; } .stat--blue { --accent: #2274c9; } .stat--ink { --accent: var(--ink-deep); }
.stat__v { font-size: 2rem; font-weight: 800; color: var(--ink-deep); line-height: 1; }
.stat__l { font-weight: 700; color: var(--ink); margin-top: 8px; font-size: .95rem; }
.stat__sub { color: var(--muted); font-size: .8rem; margin-top: 2px; }
.stat__badge { position: absolute; top: 12px; right: 12px; min-width: 22px; height: 22px; border-radius: 99px; background: var(--red); color: #fff; font-size: .72rem; font-weight: 800; display: grid; place-items: center; padding: 0 6px; }

.cmd__panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; box-shadow: 0 6px 18px rgba(0,0,0,.03); }
.panel__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.panel__head h3 { margin: 0; color: var(--ink-deep); font-size: 1.05rem; }

.funnel { display: grid; gap: 8px; }
.funnel__row { display: flex; align-items: center; gap: 10px; background: none; border: none; cursor: pointer; padding: 2px 0; font: inherit; }
.funnel__l { width: 92px; font-size: .85rem; color: var(--muted); text-align: left; flex: none; }
.funnel__bar { flex: 1; height: 12px; background: var(--bg-2); border-radius: 99px; overflow: hidden; }
.funnel__fill { display: block; height: 100%; border-radius: 99px; background: var(--ink-deep); transition: width .4s; }
.funnel__fill--NEW { background: var(--red); } .funnel__fill--QUOTED { background: #d6920a; } .funnel__fill--SIGNED { background: #2274c9; } .funnel__fill--SCHEDULED { background: #6b46c1; } .funnel__fill--DELIVERED { background: #2f9e57; } .funnel__fill--INVOICED { background: #7a8699; } .funnel__fill--PAID { background: var(--ok); }
.funnel__n { width: 24px; text-align: right; font-weight: 800; color: var(--ink-deep); flex: none; }

.mini-appt { display: flex; gap: 10px; align-items: center; padding: 5px 0 5px 38px; font-size: .9rem; color: var(--ink); }
.mini-appt b { color: var(--ink-deep); }
.feed { display: grid; gap: 2px; }
.feed__item { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.feed__item:last-child { border-bottom: none; }
.feed__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); margin-top: 6px; flex: none; }
.feed__time { color: var(--muted); font-size: .76rem; margin-top: 1px; }
.feed__item--btn { width: 100%; background: none; border: none; border-bottom: 1px solid var(--line); cursor: pointer; align-items: center; font: inherit; color: inherit; border-radius: 8px; transition: background .12s; }
.feed__item--btn:hover { background: var(--bg-2); }
.feed__go { color: var(--muted); opacity: 0; transition: opacity .12s; flex: none; padding-right: 4px; }
.feed__item--btn:hover .feed__go { opacity: 1; }
@media (max-width: 600px) { .cmd__hello h1 { font-size: 1.4rem; } .stat__v { font-size: 1.7rem; } }

/* admin calendar: weekend/holiday days (still bookable by admin) */
.cal__d--blocked { color: var(--red); border-color: color-mix(in srgb, var(--red) 30%, var(--line)); background: color-mix(in srgb, var(--red) 5%, var(--surface)); }
.cal__d--blocked.cal__d--sel { background: var(--red); color: #fff; }

/* ───────────────── Planner (Google-Calendar-style Dag/Vecka/Månad) ───────────────── */
.plan { margin-top: 4px; }
.plan__bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.plan__views.seg { padding: 4px; }
.seg__btn { padding: 8px 16px; border-radius: 999px; font: inherit; font-weight: 700; font-size: .9rem; color: var(--muted); background: none; border: none; cursor: pointer; }
.seg__btn--on { background: var(--ink-deep); color: #fff; }
.plan__filter { max-width: 210px; padding: 9px 12px; }
.plan__nav { display: flex; align-items: center; gap: 6px; }
.plan__today { padding: 8px 14px; }
.plan__title { font-weight: 800; color: var(--ink-deep); text-transform: capitalize; font-size: 1.1rem; margin-left: auto; }

.tg__wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 4px 16px rgba(0,0,0,.04); }
.tg { display: grid; min-width: max-content; }
.tg__corner { position: sticky; top: 0; z-index: 4; background: var(--cream); border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.tg__colh { position: sticky; top: 0; z-index: 4; background: var(--cream); border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); padding: 11px 10px; text-align: center; font-weight: 800; color: var(--ink-deep); font-size: .85rem; display: flex; align-items: center; justify-content: center; gap: 7px; }
.tg__dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.tg__gutter { border-right: 1px solid var(--line); }
.tg__hour { height: 52px; position: relative; }
.tg__hour span { position: absolute; top: -8px; right: 8px; font-size: .72rem; color: var(--muted); font-weight: 600; }
.tg__col { position: relative; border-left: 1px solid var(--line); background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 51px, var(--line) 51px, var(--line) 52px); }
.tg__col--drop { background-color: color-mix(in srgb, var(--red) 5%, var(--surface)); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--red) 35%, transparent); }
.tg__now { position: absolute; left: 0; right: 0; height: 2px; background: var(--red); z-index: 3; }
.tg__now::before { content: ""; position: absolute; left: -1px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.ev { position: absolute; left: 4px; right: 4px; border: 1px solid var(--line); border-left: 4px solid var(--muted); border-radius: 8px; padding: 5px 8px; text-align: left; cursor: grab; overflow: hidden; display: flex; flex-direction: column; gap: 1px; z-index: 2; box-shadow: 0 1px 4px rgba(33,41,52,.08); font: inherit; }
.ev:hover { box-shadow: 0 4px 12px rgba(33,41,52,.16); z-index: 3; }
.ev--drag { opacity: .4; }
.ev b { font-size: .74rem; color: var(--ink-deep); }
.ev__cust { font-weight: 700; font-size: .82rem; color: var(--ink-deep); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev__sub { font-size: .72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.mcal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,.04); }
.mcal__h { background: var(--cream); text-align: center; font-size: .76rem; font-weight: 800; color: var(--muted); padding: 9px 0; }
.mcal__cell { background: var(--surface); min-height: 108px; padding: 5px 5px 7px; display: flex; flex-direction: column; gap: 4px; }
.mcal__cell--dim { background: var(--bg-2); }
.mcal__cell--dim .mcal__d { color: #b9bcc2; }
.mcal__cell--today { background: color-mix(in srgb, var(--red) 4%, var(--surface)); }
.mcal__cell--drop { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--red) 40%, transparent); }
.mcal__d { align-self: flex-start; min-width: 26px; height: 26px; border-radius: 8px; border: none; background: none; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; }
.mcal__cell--today .mcal__d { background: var(--red); color: #fff; }
.mcal__d:hover { background: var(--bg-2); }
.mcal__chips { display: grid; gap: 3px; }
.mcal__chip { display: block; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--muted); border-radius: 6px; padding: 3px 6px; font: inherit; font-size: .74rem; color: var(--ink); cursor: grab; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mcal__chip b { color: var(--ink-deep); }
.mcal__chip:hover { border-color: var(--red); }
.mcal__more { background: none; border: none; font: inherit; font-size: .72rem; font-weight: 700; color: var(--red); cursor: pointer; text-align: left; padding: 1px 6px; }

@media (max-width: 700px) {
  .plan__title { margin-left: 0; width: 100%; order: -1; }
  .mcal__cell { min-height: 78px; }
  .mcal__chip { font-size: .68rem; }
}

/* ───────────────── Electrician work card — single scrollable screen ───────────────── */
.wcard { display: grid; }
.wcard__sec { padding: 16px 0; border-bottom: 1px solid var(--line); }
.wcard__sec:first-child { padding-top: 2px; }
.wcard__sec--last { border-bottom: none; padding-bottom: 4px; }
.wcard__h { font-weight: 800; color: var(--ink-deep); font-size: 1rem; margin-bottom: 12px; }
.btn--big { padding: 16px 26px; font-size: 1.05rem; }

/* ───────────────── Address autocomplete (Geoapify) ───────────────── */
.ac__list { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 30; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(33,41,52,.16); overflow: hidden; max-height: 280px; overflow-y: auto; }
.ac__item { display: block; width: 100%; text-align: left; background: none; border: none; border-bottom: 1px solid var(--line); padding: 11px 14px; cursor: pointer; font: inherit; }
.ac__item:last-child { border-bottom: none; }
.ac__item:hover { background: var(--bg-2); }
.ac__item strong { display: block; color: var(--ink-deep); font-size: .95rem; }
.ac__item span { font-size: .82rem; color: var(--muted); }
.ac__spin { position: absolute; right: 12px; top: 12px; opacity: .6; pointer-events: none; }

/* ───────────────── Job photos (field app + admin) ───────────────── */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; margin-top: 12px; }
.photo-thumb { display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-thumb:hover { border-color: var(--red); }

/* ───────────────── Customer journey portal (/status/:token) ───────────────── */
.jp__hero { text-align: center; padding: 8px 0 22px; }
.jp__ref { display: inline-block; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-weight: 700; font-size: .76rem; padding: 4px 12px; border-radius: 999px; }
.jp__title { font-size: clamp(1.5rem, 6vw, 2rem); margin: 14px 0 6px; color: var(--ink-deep); line-height: 1.15; }
.jp__sub { color: var(--muted); margin: 0; }
.jp__steps { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 8px 18px; box-shadow: var(--shadow); }
.jp__step { display: flex; align-items: center; gap: 14px; padding: 12px 0; position: relative; }
.jp__step:not(:last-child)::after { content: ""; position: absolute; left: 21px; top: 46px; bottom: -12px; width: 2px; background: var(--line); }
.jp__step--done:not(:last-child)::after { background: var(--ok); }
.jp__dot { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 1.2rem; background: var(--bg-2); border: 2px solid var(--line); color: var(--muted); z-index: 1; transition: .2s; }
.jp__step--done .jp__dot { background: var(--ok); border-color: var(--ok); color: #fff; font-weight: 800; }
.jp__step--now .jp__dot { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 0 0 6px color-mix(in srgb, var(--red) 16%, transparent); animation: jpPulse 1.6s infinite; }
.jp__steplabel { font-weight: 700; color: var(--ink-deep); }
.jp__step--todo .jp__steplabel { color: var(--muted); font-weight: 600; }
.jp__steptag { font-size: .76rem; font-weight: 800; color: var(--red); }
@keyframes jpPulse { 0%,100% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--red) 18%, transparent); } 50% { box-shadow: 0 0 0 11px color-mix(in srgb, var(--red) 4%, transparent); } }
.jp__action { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin-top: 16px; box-shadow: var(--shadow); }
.jp__cta { width: 100%; justify-content: center; font-size: 1.05rem; }
.jp__bookmark { margin-top: 16px; background: var(--cream); border-radius: 14px; padding: 14px 16px; font-size: .9rem; color: var(--ink); text-align: center; }

/* ───────────────── Dashboard collapse + clickable today's jobs ───────────────── */
.cmd__sectionhead { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 8px; }
.cmd__sectionhead h3 { margin: 0; color: var(--ink-deep); font-size: 1rem; }
.panel__headr { display: flex; align-items: center; gap: 8px; }
.panel__min { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; font-size: .8rem; flex: none; display: grid; place-items: center; }
.panel__min:hover { border-color: var(--red); color: var(--red); }
.mini-appt--btn { width: 100%; background: none; border: none; border-radius: 8px; cursor: pointer; font: inherit; transition: background .12s; }
.mini-appt--btn:hover { background: var(--bg-2); }
.mini-appt--btn .feed__go { opacity: 0; transition: opacity .12s; color: var(--muted); }
.mini-appt--btn:hover .feed__go { opacity: 1; }

/* ───────────────── Chat: mobile-first (full-screen panel, readable input) ───────────────── */
.chat-input { flex-shrink: 0; }
.chat-input .sel { font-size: 16px; flex: 1 1 auto; min-width: 0; }   /* 16px stops iOS focus-zoom; input never collapses */
.chat-input .btn { flex: 0 0 auto; }
@media (max-width: 560px) {
  .chat-panel {
    inset: 0; width: 100%; max-width: none;
    height: 100vh; height: 100svh; height: 100dvh;   /* dynamic vh: respects mobile toolbar/keyboard */
    border-radius: 0; border: none;
  }
  .chat-head { padding-top: max(14px, env(safe-area-inset-top)); }
  .chat-input { padding: 10px max(10px, env(safe-area-inset-left)) max(12px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-right)); }
  .chat-fab { bottom: max(20px, env(safe-area-inset-bottom)); }
}

/* Chat pin: faint until hovered or already pinned, with a little pop on hover. */
.pin-btn { opacity: .35; transition: opacity .15s ease, transform .15s ease; }
.pin-btn:hover { opacity: 1; transform: scale(1.2); }
.pin-btn[data-pinned="true"] { opacity: 1; }

/* ───────── Electrician field app: native, focused, stage-driven ───────── */
.mp-greeting { font-size: 1.5rem; font-weight: 800; color: var(--ink-deep); margin: 4px 0 14px; line-height: 1.15; }
.mp-dayhead { font-weight: 800; color: var(--ink-deep); text-transform: capitalize; margin: 4px 0 8px; }

.mp-hero { position: relative; display: block; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: 0 8px 26px rgba(0,0,0,.06); cursor: pointer; transition: transform .1s ease; -webkit-tap-highlight-color: transparent; }
.mp-hero:active { transform: scale(.99); }
.mp-hero__time { font-size: 2rem; font-weight: 800; color: var(--ink-deep); line-height: 1.1; }
.mp-hero__row { display: flex; gap: 8px; margin-top: 14px; }
.btn--sm { padding: 10px 16px; font-size: .92rem; }

/* Staged work sheet: fixed header + scrollable body + pinned bottom CTA */
.mp-sheet { display: flex; flex-direction: column; overflow: hidden; height: 92vh; padding: 10px 0 0; }
@media (min-width: 700px) { .mp-sheet { height: auto; max-height: 88vh; } }
.mp-sheet .sheet__head { padding: 0 18px; margin-bottom: 8px; }
.mp-stagebar { display: flex; gap: 8px; padding: 4px 18px 12px;  }
.mp-stagebar__seg { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.mp-stagebar__bar { height: 5px; border-radius: 99px; background: var(--line); transition: background .35s ease; }
.mp-stagebar__bar.is-on { background: var(--red); }
.mp-stagebar span { font-size: .68rem; color: var(--muted); text-align: center; }
.mp-stagebar span.is-on { color: var(--ink-deep); font-weight: 700; }
.mp-body { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 0 18px 8px; }
.mp-cta { flex: 0 0 auto; background: var(--bg); border-top: 1px solid var(--line); padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); }
.mp-cta .btn--big { padding: 18px 26px; font-size: 1.1rem; border-radius: 16px; }

/* Quiet CTA — calm at rest (blends into the bar, brand outline + text), solidifies on hover/press.
   Keeps the field screen from feeling like a glaring red block; the data stays the hero. */
.btn--quiet { background: color-mix(in srgb, var(--red) 7%, var(--surface)); color: var(--red); border: 1.5px solid color-mix(in srgb, var(--red) 36%, transparent); box-shadow: none; font-weight: 800; transition: background .16s, color .16s, border-color .16s, transform .08s; }
.btn--quiet:hover, .btn--quiet:active { background: var(--red); color: #fff; border-color: var(--red); }
.btn--quiet:active { transform: scale(.99); }
.btn--quiet:disabled { opacity: .42; }
.btn--quiet:disabled:hover { background: color-mix(in srgb, var(--red) 7%, var(--surface)); color: var(--red); border-color: color-mix(in srgb, var(--red) 36%, transparent); }

/* Job brief (field app) — premium, glanceable, editable by admin + the assigned electrician. */
.ji { display: grid; gap: 12px; }
.ji__brief { font-size: 1.08rem; line-height: 1.6; color: var(--ink-deep); white-space: pre-line; padding: 2px 0 2px 14px; border-left: 3px solid var(--red); font-weight: 500; }
.ji__note { background: color-mix(in srgb, var(--warn) 13%, var(--surface)); border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent); border-left: 3px solid var(--warn); border-radius: 12px; padding: 11px 14px; }
.ji__note-label { font-size: .72rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: var(--warn); margin-bottom: 5px; }
.ji__note-body { color: var(--ink-deep); font-size: 1.04rem; line-height: 1.55; white-space: pre-line; }
.ji__empty { width: 100%; display: flex; align-items: center; gap: 10px; justify-content: center; padding: 18px; border: 1.5px dashed var(--line); border-radius: 14px; background: var(--surface-2); color: var(--muted); font-weight: 700; font-size: 1rem; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .08s, border-color .15s; }
.ji__empty:active { transform: scale(.99); }
.ji__edit { background: none; border: none; color: var(--red); font-weight: 700; font-size: .9rem; cursor: pointer; padding: 4px 6px; border-radius: 8px; -webkit-tap-highlight-color: transparent; flex: none; }
.ji__rich { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }

/* AI-formatted instruction markup (banner / heading / bullets / bold) — rendered via React elements. */
.rtx { display: grid; gap: 8px; }
.rtx__plain { white-space: pre-line; color: var(--ink-deep); line-height: 1.55; }
.rtx__banner { justify-self: start; font-weight: 800; font-size: 1.05rem; color: var(--ink-deep); background: color-mix(in srgb, var(--red) 12%, var(--surface)); border-left: 3px solid var(--red); border-radius: 10px; padding: 8px 12px; line-height: 1.3; }
.rtx__h { font-weight: 800; color: var(--ink-deep); font-size: .98rem; margin-top: 2px; }
.rtx__ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 5px; }
.rtx__ul li { position: relative; padding-left: 20px; color: var(--ink-deep); line-height: 1.5; }
.rtx__ul li::before { content: "›"; position: absolute; left: 5px; top: -1px; color: var(--red); font-weight: 900; }
.rtx__p { margin: 0; color: var(--ink-deep); line-height: 1.55; }
.rtx strong { font-weight: 800; color: var(--ink-deep); }

/* Admin checklist builder rows — editable, reorderable, numbered. */
.chk-edit { display: flex; align-items: center; gap: 6px; }
.chk-edit__num { flex: none; width: 22px; height: 22px; border-radius: 50%; background: color-mix(in srgb, var(--red) 14%, var(--surface)); color: var(--red); font-size: .72rem; font-weight: 800; display: grid; place-items: center; }
.chk-edit__txt { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; font-size: .9rem; }
.chk-edit__btn { flex: none; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--muted); cursor: pointer; font-size: .85rem; }
.chk-edit__btn:disabled { opacity: .35; cursor: default; }
.chk-edit__btn--del:hover { color: var(--red); border-color: var(--red); }

.mp-opt { width: 100%; display: flex; align-items: center; justify-content: space-between; background: none; border: none; padding: 2px 0; cursor: pointer; color: var(--muted); font-weight: 600; font-size: .92rem; -webkit-tap-highlight-color: transparent; }

/* Embedded chat (inside an iframe on a customer's site): fill the frame, no floating chrome. */
.chat-panel--embed { position: static; width: 100%; height: 100%; max-width: none; border-radius: 0; box-shadow: none; border: none; }

/* ───────── Electrician app shell: bottom nav + full-screen job view ───────── */
.mp-app { min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg-2); }
.mp-main { flex: 1 1 auto; padding-bottom: 84px; }
.mp-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; display: flex; background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -4px 20px rgba(0,0,0,.05); }
.mp-nav button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; background: none; border: none; padding: 9px 0 7px; color: var(--muted); font-size: .68rem; font-weight: 700; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: color .15s; }
.mp-nav button.is-on { color: var(--red); }
.mp-nav__ic { font-size: 1.4rem; line-height: 1; }

/* Full-screen job view (no dialog look on phones) */
@media (max-width: 699px) {
  .mp-fullsheet { align-items: stretch !important; background: var(--bg) !important; animation: none; }
  .mp-fullsheet .mp-sheet { height: 100dvh; max-height: 100dvh; width: 100vw; max-width: 100vw; border-radius: 0; padding: max(6px, env(safe-area-inset-top)) 0 0; animation: mpSlide .28s cubic-bezier(.2,.7,.2,1); }
}
@keyframes mpSlide { from { transform: translateY(24px); opacity: .6; } to { transform: translateY(0); opacity: 1; } }

/* Theme switcher (sun / sand / moon) */
.mp-theme { display: flex; gap: 8px; }
.mp-theme button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink-deep); font-weight: 700; cursor: pointer; font-size: .95rem; }
.mp-theme button.is-on { border-color: var(--red); color: var(--red); box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 14%, transparent); }

/* Accent (primary colour) picker — swatches recolour the whole app, light + dark aware. */
.mp-acc { margin-top: 14px; }
.mp-acc__label { display: block; font-weight: 700; color: var(--ink-deep); font-size: .9rem; margin-bottom: 8px; }
.mp-acc__row { display: flex; flex-wrap: wrap; gap: 10px; }
.mp-swatch { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--line); cursor: pointer; display: grid; place-items: center; padding: 0; transition: transform .1s, box-shadow .15s; -webkit-tap-highlight-color: transparent; }
.mp-swatch:hover { transform: scale(1.08); }
.mp-swatch.is-on { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px currentColor; border-color: transparent; }
.mp-swatch__tick { color: #fff; font-size: .9rem; font-weight: 900; text-shadow: 0 1px 2px rgba(0,0,0,.35); }

/* Electrician app: larger, easier sizing */
.mp-app { font-size: 1.03rem; }
.mp-body { font-size: 1.04rem; }
.mp-body .wcard__h { font-size: 1.14rem; font-weight: 800; margin-bottom: 8px; }
.mp-body .fieldrow { font-size: 1.05rem; padding: 12px 0; }
.mp-body .fieldrow span { font-size: 1.05rem; }
.mp-greeting { font-size: 1.7rem; }
.mp-hero__time { font-size: 2.1rem; }
.mp-stagebar span { font-size: .82rem; }
.mp-stagebar__seg { background: none; border: none; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.mp-nav button { font-size: .72rem; }
.mp-nav__ic { font-size: 1.5rem; }
.jobcard { padding: 16px 18px; }
.jobcard__time { font-size: 1.05rem; font-weight: 800; }
.mp-body .voice-btn { font-size: 1.02rem; padding: 14px 16px; }
.mp-body .sel, .mp-body .field input, .mp-body textarea { font-size: 16px; }

/* ───────── Dark-mode polish: recessed inputs + accent-OUTLINED selected states (not grey fill) ───────── */
[data-theme="dark"] .sel,
[data-theme="dark"] .field input,
[data-theme="dark"] textarea.sel,
[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="password"],
[data-theme="dark"] input[type="search"],
[data-theme="dark"] input[type="tel"],
[data-theme="dark"] input[type="date"],
[data-theme="dark"] input[type="time"],
[data-theme="dark"] input[type="number"] {
  background: var(--bg-2);
  color: var(--ink);
  border-color: var(--line);
}
/* Selected tab / segment: prominent accent outline + accent text, only a whisper of fill. */
[data-theme="dark"] .atab--on,
[data-theme="dark"] .tab--on {
  background: color-mix(in srgb, var(--red) 12%, var(--surface));
  color: var(--red);
  border-color: var(--red);
  box-shadow: 0 0 0 1px var(--red);
}
[data-theme="dark"] .atab--on .atab__ic { filter: none; }
[data-theme="dark"] .seg a.seg--on { background: color-mix(in srgb, var(--red) 16%, var(--surface)); color: var(--red); }
[data-theme="dark"] .ws__switch button.is-on,
[data-theme="dark"] .ws__switch a.is-on { color: var(--red); border-color: var(--red); }

/* ════════════════════════════════════════════════════════════════════════
   STATIC MARKETING SITE — additions for the decoupled elinstallation.nu site
   (no React; pure HTML/CSS + a few lines of progressive-enhancement JS)
   ════════════════════════════════════════════════════════════════════════ */

/* Accessibility: skip-to-content link */
.skip, .skip-link { position: absolute; left: -9999px; top: 0; z-index: 300; background: var(--red); color: #fff; padding: 10px 16px; border-radius: 0 0 10px 0; font-weight: 700; }
.skip:focus, .skip-link:focus { left: 0; }

/* Hero: dark base + blurred LQIP paints instantly under the optimized WebP photo.
   image-set() serves WebP to modern browsers and JPG as a fallback; the inline
   183-byte LQIP shows under the gradient until the full image arrives (no white flash).
   All three landing pages (Privat / Företag / BRF) share this hero photo. */
.phero__bg {
  background-color: var(--ink-deep);
  background-image:
    image-set(url("/img/hero.webp") type("image/webp"), url("/img/hero.jpg") type("image/jpeg")),
    url("data:image/webp;base64,UklGRnAAAABXRUJQVlA4IGQAAADwAwCdASoYABAAPu1kqk2ppaQiMAgBMB2JZgC7AGYFdzQwgIyjR6uAAP0Az5Q7l7j/8t0dN15pcUnAnHF9QhmKKIMVfJyawMt5AAF1u06/MHPzijxbmPIGwsO6ADTi4/t7AAAA");
}
@media (max-width: 760px) {
  .phero__bg {
    background-image:
      image-set(url("/img/hero-1000.webp") type("image/webp"), url("/img/hero.jpg") type("image/jpeg")),
      url("data:image/webp;base64,UklGRnAAAABXRUJQVlA4IGQAAADwAwCdASoYABAAPu1kqk2ppaQiMAgBMB2JZgC7AGYFdzQwgIyjR6uAAP0Az5Q7l7j/8t0dN15pcUnAnHF9QhmKKIMVfJyawMt5AAF1u06/MHPzijxbmPIGwsO6ADTi4/t7AAAA");
  }
}

/* CSS-only mobile menu (hidden checkbox toggles .pnav__mobile) — no JS dependency */
.pnav__toggle { display: none; }
.pnav__mobile { display: none; }
.pnav__toggle:checked ~ .pnav__mobile { display: grid; }
/* Hamburger + mobile menu belong to mobile only. On desktop the full nav links
   are visible, so hide the button and never reveal the (duplicate) mobile menu. */
@media (min-width: 981px) {
  .pnav__menubtn { display: none; }
  .pnav__toggle:checked ~ .pnav__mobile { display: none; }
}
@media (max-width: 980px) {
  .pnav--solid { background: rgba(255,255,255,.95); }
}

/* FAQ via native <details> (zero-JS, accessible, crawlable) */
details.faq__item { padding: 0; }
details.faq__item > summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 700; font-size: 1.05rem; color: var(--ink-deep); display: flex; justify-content: space-between; gap: 12px; align-items: center; }
details.faq__item > summary::-webkit-details-marker { display: none; }
details.faq__item > summary::after { content: "+"; color: var(--red); font-weight: 800; font-size: 1.3rem; line-height: 1; }
details.faq__item[open] > summary::after { content: "\2212"; }
details.faq__item > .faq__a { padding: 0 0 18px; color: var(--muted); }

/* Booking / careers: blank pages with an embeddable-form slot */
.embed-wrap { max-width: 860px; margin: 0 auto; }
.embed-frame { width: 100%; min-height: 760px; border: 0; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); display: block; }
.embed-note { border: 1.5px dashed var(--line); border-radius: 16px; padding: clamp(40px, 7vw, 72px) 24px; text-align: center; color: var(--muted); background: var(--surface); }
.embed-note h2 { color: var(--ink-deep); }
.embed-note code { background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; font-size: .9em; color: var(--ink-deep); }

/* Breadcrumbs (legal & inner pages) — small SEO + UX win */
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--red); }
.crumbs span { color: var(--ink-deep); }

/* Legal pages: tighter reading column + list styling */
.legal ul { padding-left: 22px; margin: 0 0 1em; }
.legal li { margin-bottom: 6px; color: var(--muted); }
.legal .updated { font-size: .85rem; color: var(--muted); margin-bottom: 24px; }

/* Static page top spacing when a solid nav sits above non-hero content */
.page-top { padding-top: 96px; }
@media (max-width: 980px) { .page-top { padding-top: 80px; } }

/* ════════ Real EL KONTAKTEN logo, trust badges & a11y polish (review pass) ════════ */

/* Header logo: the real raster mark. A white chip keeps it legible over the dark hero;
   once the nav turns solid (or on the always-solid inner-page nav) the chip is dropped. */
.nav__logo img { height: 44px; width: auto; display: block; }
.pnav--top .nav__logo img { background: #fff; padding: 5px 9px; border-radius: 9px; }
@media (max-width: 560px) { .nav__logo img { height: 38px; } }

/* Trust badges (Reco · AAA · Installatörsföretagen) */
.trust { border-top: 1px solid var(--line); }
.trust__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 30px 56px; margin-top: 30px; }
.trust__badge { height: 96px; width: auto; object-fit: contain; transition: transform .15s, filter .15s; }
a.trust__badge:hover img, img.trust__badge:hover { transform: translateY(-3px); }
@media (max-width: 600px) { .trust__badge { height: 70px; } .trust__row { gap: 22px 34px; } }

/* Visually-hidden heading helper (keeps a logical h1→h2 outline for screen readers) */
.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; }

/* Visible keyboard focus on all interactive controls */
a:focus-visible, button:focus-visible, label:focus-visible, summary:focus-visible,
input:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--red); outline-offset: 2px; border-radius: 6px;
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .phero__bg { transform: none !important; }
}

/* Price table (prislista) + key-facts blocks for SEO/AEO content pages */
.legal table.ptab { width: 100%; border-collapse: collapse; margin: 6px 0 26px; }
.legal .ptab caption { text-align: left; font-weight: 800; color: var(--ink-deep); padding: 0 0 10px; }
.legal .ptab th, .legal .ptab td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: .96rem; }
.legal .ptab th { color: var(--ink); font-weight: 700; width: 58%; }
.legal .ptab td { color: var(--ink-deep); font-weight: 700; white-space: nowrap; }

/* Mobile dropdown menu: opaque panel so links stay readable over the hero photo
   (fixes "the gray part is missing" when opened on a landing page). The header
   itself is switched to its solid state by JS while the menu is open. */
.pnav__mobile {
  background: rgba(255,255,255,.98);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 16px 32px rgba(10,13,18,.18);
  padding: 10px 20px 18px;
}
.pnav__mobile a { color: var(--ink-deep); }
.pnav__mobile .seg { background: var(--surface); border-color: var(--line); box-shadow: 0 2px 8px rgba(33,41,52,.08); }
.pnav__mobile .seg a { color: var(--muted); }
.pnav__mobile .seg a.seg--on { background: var(--ink-deep); color: #fff; }

/* Slightly tighter nav so the 5 links + segment switcher + CTA fit comfortably */
.pnav__links, .nav__links { gap: 20px; }

/* Live Reco review widget (third-party iframe, lazy-loaded) */
.reco-embed { margin-top: 22px; }
.reco-embed iframe { width: 100%; border: 0; display: block; overflow: hidden; }


/* Per-page hero photos: Företag (byggprojekt) & BRF (laddstolpar/garage) override the shared hero */
.phero__bg--foretag { background-position: center;
  background-image: image-set(url("/img/foretag.webp") type("image/webp"), url("/img/foretag.jpg") type("image/jpeg")), url("data:image/webp;base64,UklGRlAAAABXRUJQVlA4IEQAAADwAwCdASoYAAsAPu1krU2ppaSiMAgBMB2JZwDDNCP+p9m4ef/NQSnAAPzSBzF0En3laHmjC+6mGJyWObiS1ou+PYAAAA=="); }
.phero__bg--brf { background-position: center;
  background-image: image-set(url("/img/brf-hero.webp") type("image/webp"), url("/img/brf-hero.jpg") type("image/jpeg")), url("data:image/webp;base64,UklGRlwAAABXRUJQVlA4IFAAAACQAwCdASoYABIAPulgo02pJasiMAwBYB0JZwC/OB5DK5Q7cZ0AAPpgzx+GRwjzCkreb5zIahZHjZzlEd738g+pX1kQYyzu7030jUZIBQAAAA=="); }
@media (max-width: 760px) {
  .phero__bg--foretag { background-image: image-set(url("/img/foretag-1000.webp") type("image/webp"), url("/img/foretag.jpg") type("image/jpeg")), url("data:image/webp;base64,UklGRlAAAABXRUJQVlA4IEQAAADwAwCdASoYAAsAPu1krU2ppaSiMAgBMB2JZwDDNCP+p9m4ef/NQSnAAPzSBzF0En3laHmjC+6mGJyWObiS1ou+PYAAAA=="); }
  .phero__bg--brf { background-image: image-set(url("/img/brf-hero-1000.webp") type("image/webp"), url("/img/brf-hero.jpg") type("image/jpeg")), url("data:image/webp;base64,UklGRlwAAABXRUJQVlA4IFAAAACQAwCdASoYABIAPulgo02pJasiMAwBYB0JZwC/OB5DK5Q7cZ0AAPpgzx+GRwjzCkreb5zIahZHjZzlEd738g+pX1kQYyzu7030jUZIBQAAAA=="); }
}

/* ═══════ Audit fixes (2026-07-03) ═══════ */

/* CTA band: btn--outline was near-black on the near-black band (invisible phone
   button on 67 tjanster/elektriker/kunskapsbank pages). Render it glass-style. */
.cta-band .btn--outline { color: #fff; border-color: rgba(255,255,255,.5); }
.cta-band .btn--outline:hover { background: rgba(255,255,255,.12); }
