/* ClarnexWeb Support – delad stil. Matchar clarnexweb.se designsystem. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:      #f4f6f6;
  --surface: #ffffff;
  --ink:     #0f1518;
  --muted:   #5c6670;
  --dim:     #9aa3aa;
  --teal:    #0fae9e;
  --teal-d:  #0a8d80;
  --teal-soft:#e3f5f2;
  --coral:   #ff7a59;
  --line:    #e3e7e8;
  --line-2:  #eef1f1;
  --shadow:  0 18px 50px -24px rgba(15,21,24,0.22);
  --shadow-s:0 6px 22px -12px rgba(15,21,24,0.18);
  --r: 18px;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--ink);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
::selection { background: var(--teal); color: #fff; }
a { color: var(--teal-d); }
h1,h2,h3,h4 { font-family: 'Schibsted Grotesk', sans-serif; letter-spacing: -0.025em; line-height: 1.1; }

.wrap { max-width: 1000px; margin: 0 auto; padding: 0 clamp(1.25rem,4vw,2.5rem); }

/* ── NAV ─────────────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(244,246,246,0.85); backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--line);
}
.nav-in { max-width: 1180px; margin: 0 auto; padding: 0.6rem clamp(1.25rem,4vw,2.5rem);
  display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; margin: -0.2rem 0; }
.nav-logo img { height: 46px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 1.8rem; }
.nav-links > a:not(.btn) { font-weight: 500; font-size: 0.94rem; text-decoration: none; color: var(--muted); transition: color .2s; }
.nav-links > a:not(.btn):hover, .nav-links > a.current { color: var(--ink); }
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.burger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; }

.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: inherit; font-weight: 600; font-size: 0.95rem;
  padding: 0.85rem 1.5rem; border-radius: 999px; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: transform .25s, box-shadow .25s, background .25s, border-color .25s, color .2s;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--teal-d); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px -12px var(--teal); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
/* Pil i navets "Få offert"-knapp – matchar startsidan */
.nav-links .btn-primary::after { content: '→'; display: inline-block; transition: transform .3s; }
.nav-links .btn-primary:hover::after { transform: translateX(3px); }

/* ── BREADCRUMB ──────────────────────────────────────── */
.crumbs { font-size: 0.85rem; color: var(--muted); padding: 1.4rem 0 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--teal-d); }
.crumbs .sep { color: var(--dim); }
.crumbs .here { color: var(--ink); font-weight: 600; }

/* ── PAGE HEAD ───────────────────────────────────────── */
.page-head { padding: 1.6rem 0 0.5rem; }
.kicker {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--teal-d); background: var(--teal-soft); padding: 0.35rem 0.8rem; border-radius: 999px;
}
.page-head h1 { font-size: clamp(2rem,5vw,3rem); font-weight: 800; margin-top: 1rem; }
.page-head p.lead { color: var(--muted); margin-top: 0.8rem; font-size: 1.08rem; max-width: 62ch; }

main { padding-bottom: clamp(3rem,6vw,5rem); }
section.block { padding-top: clamp(2rem,4vw,3rem); }

/* ── HUB / CARD GRID ─────────────────────────────────── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 1.2rem; margin-top: 2rem; }
.hub-card {
  display: flex; flex-direction: column; gap: 0.6rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.6rem; text-decoration: none; color: var(--ink);
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s, border-color .3s;
}
.hub-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.hub-card .ic { width: 48px; height: 48px; border-radius: 13px; background: var(--teal-soft); color: var(--teal-d); display: grid; place-items: center; }
.hub-card .ic svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.hub-card h2 { font-size: 1.3rem; font-weight: 700; }
.hub-card p { color: var(--muted); font-size: 0.96rem; }
.hub-card .go { margin-top: auto; font-weight: 600; font-size: 0.9rem; color: var(--teal-d); display: inline-flex; align-items: center; gap: 0.35rem; }
.hub-card:hover .go svg { transform: translateX(4px); }
.hub-card .go svg { width: 15px; height: 15px; transition: transform .3s; stroke: currentColor; stroke-width: 2; fill: none; }

/* ── SETTINGS TABLES ─────────────────────────────────── */
.settings-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-s); padding: 1.5rem clamp(1.25rem,3vw,1.8rem); margin-top: 1.2rem; }
.settings-block h2 { font-size: 1.3rem; display: flex; align-items: center; gap: 0.6rem; }
.settings-block h2 .pill { font-size: 0.7rem; font-weight: 700; color: #fff; background: var(--teal); padding: 0.15rem 0.55rem; border-radius: 999px; letter-spacing: .03em; }
.table-wrap { overflow-x: auto; margin-top: 0.9rem; }
table.mail { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 460px; }
table.mail th, table.mail td { text-align: left; padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.mail th { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
table.mail tr:last-child td { border-bottom: none; }
table.mail .rec td { background: var(--teal-soft); }
.val { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.92em; }
.rec-tag { display: inline-block; font-size: 0.68rem; font-weight: 700; color: var(--teal-d); background: #fff; border: 1px solid var(--teal); padding: 0.1rem 0.45rem; border-radius: 999px; margin-left: 0.4rem; }

/* copy button */
.copy { border: 1px solid var(--line); background: #fff; border-radius: 8px; cursor: pointer;
  font: inherit; font-size: 0.78rem; color: var(--muted); padding: 0.2rem 0.5rem; display: inline-flex; align-items: center; gap: 0.3rem; vertical-align: middle; margin-left: 0.4rem; transition: border-color .2s, color .2s, background .2s; }
.copy:hover { border-color: var(--teal); color: var(--teal-d); }
.copy.done { border-color: var(--teal); background: var(--teal-soft); color: var(--teal-d); }
.copy svg { width: 13px; height: 13px; stroke: currentColor; stroke-width: 2; fill: none; }

/* compact settings box for guides */
.settings-box { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: 12px; padding: 1.1rem 1.3rem; margin: 1.4rem 0; }
.settings-box h3 { font-size: 1.02rem; margin-bottom: 0.6rem; }
.settings-box dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1rem; font-size: 0.94rem; }
.settings-box dt { color: var(--muted); }
.settings-box dd .val { color: var(--ink); }

/* ── STEPS ───────────────────────────────────────────── */
.steps { list-style: none; counter-reset: step; margin-top: 1.4rem; }
.steps > li { position: relative; padding: 0 0 1.4rem 3.2rem; }
.steps > li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--ink); color: #fff; font-family: 'Schibsted Grotesk', sans-serif; font-weight: 700;
  display: grid; place-items: center; font-size: 0.95rem;
}
.steps > li:not(:last-child)::after { content: ''; position: absolute; left: 16.5px; top: 34px; bottom: 6px; width: 1px; background: var(--line); }
.steps > li h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 0.2rem; }
.steps > li p { color: var(--muted); font-size: 0.97rem; }
.steps .val { color: var(--ink); background: var(--line-2); padding: 0.05rem 0.35rem; border-radius: 5px; }

/* ── CALLOUT ─────────────────────────────────────────── */
.note { background: var(--teal-soft); border-radius: 12px; padding: 0.9rem 1.1rem; margin: 1.2rem 0; font-size: 0.94rem; color: #0a5f57; }
.note strong { color: var(--teal-d); }

/* ── CLIENT CHOOSER ──────────────────────────────────── */
.client-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); gap: 1rem; margin-top: 1.6rem; }
.client-card {
  display: flex; align-items: center; gap: 0.9rem; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.client-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-s); border-color: var(--teal); }
.client-card .ci { width: 40px; height: 40px; border-radius: 10px; background: var(--bg); display: grid; place-items: center; flex-shrink: 0; }
.client-card .ci svg { width: 22px; height: 22px; }
.client-card .cn { font-weight: 600; font-size: 0.98rem; }
.client-card .cs { display: block; font-size: 0.8rem; color: var(--muted); font-weight: 400; }

/* ── FOOTER ──────────────────────────────────────────── */
footer { border-top: 1px solid var(--line); padding: clamp(2.5rem,5vw,3.5rem) 0 2.5rem; margin-top: 2rem; }
.foot-in { max-width: 1180px; margin: 0 auto; padding: 0 clamp(1.25rem,4vw,2.5rem); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.foot-in img { height: 34px; }
.foot-in .fl { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.foot-in a, .foot-in p { font-size: 0.88rem; color: var(--muted); text-decoration: none; }
.foot-in a:hover { color: var(--teal-d); }

.backlink { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 2rem; font-weight: 600; color: var(--teal-d); text-decoration: none; }
.backlink:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 1rem; background: var(--surface); border-bottom: 1px solid var(--line); padding: 1.2rem clamp(1.25rem,4vw,2.5rem); }
  .burger { display: flex; }
}
