/* Darubs statiska sajter. Systemtypsnitt, inga externa anrop. */
:root {
  --bg: #fafafb;
  --surface: #ffffff;
  --band: #f0f1f6;
  --ink: #17171f;
  --muted: #565867;
  --line: #d8dae3;
  --red: #c20f23;        /* Darubs punkt, mörkad för kontrast 6:1 mot vitt */
  --red-ink: #ffffff;
  --link: #2f3f9e;       /* släkt med apparnas indigo */
  --amber: #8a5200;
  --amber-soft: #fbf1df;
  --indigo-soft: #e9ebf8;
  --focus: #2f3f9e;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131318;
    --surface: #1b1b23;
    --band: #20202a;
    --ink: #ececf1;
    --muted: #a9abba;
    --line: #34353f;
    --red: #ff6b78;
    --red-ink: #1a0508;
    --link: #a9b4ff;
    --amber: #f0b45a;
    --amber-soft: #2e2413;
    --indigo-soft: #23263d;
    --focus: #a9b4ff;
    color-scheme: dark;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 1.125rem; line-height: 1.6; }
img { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.wrap { max-width: 68rem; margin-inline: auto; padding-inline: 1.25rem; }
.narrow { max-width: 44rem; }

.skip { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: var(--bg); padding: 0.6rem 1rem; z-index: 20; border-radius: 0 0 6px 6px; }
.skip:focus { top: 0; }

/* Sidhuvud */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1.5rem; padding-block: 0.8rem; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 700; font-size: 1.3rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; margin-right: auto; }
.site-header nav ul { display: flex; flex-wrap: wrap; gap: 0.1rem 1.2rem; list-style: none; margin: 0; padding: 0; }
.site-header nav a { color: var(--ink); text-decoration: none; font-size: 1rem; padding-block: 0.35rem; display: inline-block; border-bottom: 3px solid transparent; }
.site-header nav a:hover { border-bottom-color: var(--line); }
.site-header nav a[aria-current="page"] { border-bottom-color: var(--red); font-weight: 600; }
.login { font-size: 1rem; border: 1px solid var(--line); border-radius: 999px; padding: 0.3rem 0.95rem; text-decoration: none; color: var(--ink); background: var(--bg); }
.login:hover { border-color: var(--ink); }

/* Rubriker */
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); font-weight: 750; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0.9rem 0; max-width: 40rem; }
.lede { font-size: 1.3rem; line-height: 1.5; color: var(--muted); max-width: 38rem; }
.eyebrow { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); margin: 0 0 0.8rem; }
.eyebrow.amber { color: var(--amber); }
.dot { color: var(--red); }

/* Avsnitt */
.hero { padding-block: clamp(2.5rem, 7vw, 5rem) clamp(2rem, 5vw, 3.5rem); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 2.5rem; align-items: center; }
.page-head { padding-block: clamp(2.2rem, 6vw, 4rem) 1.5rem; }
section { padding-block: clamp(2rem, 5vw, 3.5rem); }
.band { background: var(--band); }
.stack > * + * { margin-top: 1.1rem; }

/* Knappar */
.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }
.btn { display: inline-block; background: var(--red); color: var(--red-ink); font-weight: 650; text-decoration: none; padding: 0.7rem 1.3rem; border-radius: 6px; border: 2px solid var(--red); font-size: 1.05rem; font-family: inherit; cursor: pointer; }
.btn:hover { filter: brightness(0.92); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--bg); filter: none; }

/* Flödet text -> kanaler (startsidans bild) */
.flow { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1.4rem; font-size: 1rem; }
.flow ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.flow li { display: grid; grid-template-columns: 2.1rem 1fr; gap: 0.8rem; align-items: start; }
.flow .n { width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--red); color: var(--red-ink); font-weight: 700; display: grid; place-items: center; font-size: 1rem; }
.flow strong { display: block; }
.flow span.t { color: var(--muted); }
.channels { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.5rem; padding: 0; list-style: none; }
.channels li { display: block; background: var(--indigo-soft); border-radius: 999px; padding: 0.15rem 0.7rem; font-size: 0.9rem; }

/* Kort */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1.2rem; margin-top: 1.6rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-top: 5px solid var(--line); border-radius: 10px; padding: 1.5rem; display: flex; flex-direction: column; }
.card p { margin: 0.6rem 0; }
.card .more { margin-top: auto; padding-top: 0.8rem; font-weight: 650; }
.card.l1 { border-top: 5px solid var(--red); }
.card.l2 { border-top: 5px solid var(--amber); }

/* Listor med innehåll */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1.4rem 2.2rem; margin: 1.6rem 0 0; padding: 0; list-style: none; }
.features li { border-top: 2px solid var(--ink); padding-top: 0.7rem; }
.features strong { display: block; font-size: 1.1rem; }
.features span { color: var(--muted); font-size: 1.02rem; }
ul.plain { padding-left: 1.2rem; max-width: 40rem; }
ul.plain li { margin: 0.4rem 0; }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 1.1rem; max-width: 42rem; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 2.4rem 1fr; gap: 0.9rem; }
.steps li::before { content: counter(s); width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; font-weight: 700; }
.steps strong { display: block; }

.note { background: var(--indigo-soft); border-radius: 8px; padding: 1.1rem 1.3rem; max-width: 42rem; margin-top: 1.4rem; }
.note.amber { background: var(--amber-soft); }
.note p { margin: 0.3rem 0; }

.customers { display: flex; flex-wrap: wrap; gap: 0.5rem 0.6rem; list-style: none; padding: 0; margin: 1rem 0 0; }
.customers li { border: 1px solid var(--line); background: var(--surface); border-radius: 6px; padding: 0.35rem 0.8rem; font-size: 1rem; }

/* Tabell */
.table-wrap { overflow-x: auto; margin-top: 1.4rem; }
table { border-collapse: collapse; width: 100%; min-width: 34rem; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
caption { text-align: left; font-weight: 700; padding-bottom: 0.5rem; }
th, td { text-align: left; vertical-align: top; padding: 0.8rem 1rem; border-bottom: 1px solid var(--line); }
thead th { font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
td.price { white-space: nowrap; font-weight: 700; font-variant-numeric: tabular-nums; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }

/* Kundcase */
.case { border-top: 2px solid var(--ink); padding-top: 1.4rem; margin-top: 2.4rem; display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); gap: 1rem 2.5rem; }
.case dl { margin: 0; font-size: 1rem; }
.case dt { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 0.7rem; }
.case dd { margin: 0; }
.case h2 { font-size: 1.6rem; }

/* Formulär */
form.contact { display: grid; gap: 1rem; max-width: 34rem; margin-top: 1.4rem; }
label { font-weight: 650; display: block; margin-bottom: 0.25rem; }
.hint { font-weight: 400; color: var(--muted); font-size: 0.95rem; }
input, textarea, select { width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 2px solid var(--muted); border-radius: 6px; padding: 0.6rem 0.75rem; }
textarea { min-height: 8rem; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form-status { font-weight: 650; min-height: 1.6rem; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; margin-top: 1.4rem; }
.choice { display: block; background: var(--surface); border: 2px solid var(--ink); border-radius: 10px; padding: 1.2rem 1.3rem; text-decoration: none; color: var(--ink); }
.choice:hover { background: var(--ink); color: var(--bg); }
.choice strong { display: block; font-size: 1.15rem; }

/* Sidfot */
.cta-band { background: var(--ink); color: var(--bg); }
.cta-band h2, .cta-band p { color: inherit; }
.cta-band .btn.ghost { color: var(--bg); border-color: var(--bg); }
.cta-band .btn.ghost:hover { background: var(--bg); color: var(--ink); }
.cta-band a:not(.btn) { color: inherit; }
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding-block: 2.5rem 3rem; font-size: 1rem; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 2rem; }
.site-footer h2 { font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.site-footer ul { list-style: none; padding: 0; margin: 0.6rem 0 0; }
.site-footer li { margin: 0.35rem 0; }
.brandline { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 1.1rem; margin-top: 0; }

@media (max-width: 52rem) {
  .hero .wrap { grid-template-columns: 1fr; }
  .case { grid-template-columns: 1fr; }
  .brand { margin-right: 0; flex: 1 1 auto; }
  .site-header nav { order: 3; flex: 1 1 100%; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn, .choice, .login { transition: background-color 0.15s, color 0.15s, filter 0.15s; }
}
@media print {
  .site-header nav, .login, .actions, .cta-band, .skip { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
}
