/* Forsiden for clientkeep.no. Samme farger og skrifter som appen (app.css). */

/* Like brede sifre (se app.css og scripts/lag-tallskrift.py). */
@font-face {
  font-family: 'Clientkeep Tall';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonter/clientkeep-tall.woff2') format('woff2');
  unicode-range: U+0030-0039;
}

:root {
  --ink: #10302a;
  --ink-2: #173a33;
  --ink-line: #2a4d43;
  --paper: #f2f4f1;
  --surface: #ffffff;
  --surface-2: #e9ede9;
  --line: #dbe0db;
  --fg: #141a17;
  --fg-2: #2b3530;
  --fg-3: #47524c;
  --fg-muted: #5a6660;
  --fg-on-dark: #f3f6f4;
  --fg-muted-dark: #a5bbb3;
  --brand: #14584a;
  --brand-dark: #0d3e33;
  --brand-soft: #e3efe9;
  --brand-light: #b9d8cc;
  --signal: #b4502a;
  --ok: #2f8a6c;
  --gul: #d9a441;
  --rod: #c1563a;
  --font-sans: "Schibsted Grotesk", "Helvetica Neue", system-ui, sans-serif;
  --font-tall: "Clientkeep Tall", "Schibsted Grotesk", "Helvetica Neue", system-ui, sans-serif;
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --maks: 1160px;
  --skygge: 0 24px 60px -24px rgba(18, 22, 20, 0.28), 0 2px 6px rgba(18, 22, 20, 0.06);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

.hopp { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--fg-on-dark); padding: 8px 14px; border-radius: var(--r-sm); z-index: 100; }
.hopp:focus { left: 8px; }

.rad { max-width: var(--maks); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .rad { padding: 0 16px; } }

/* ---------- Knapper ---------- */
.knapper { display: flex; flex-wrap: wrap; gap: 12px; }
.knapp {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  background: var(--brand); color: #fff;
  border: 1px solid var(--brand); border-radius: var(--r-md);
  font-weight: 600; font-size: 16px; text-decoration: none;
  transition: background .15s, transform .15s;
}
.knapp:hover { background: var(--brand-dark); }
.knapp:active { transform: translateY(1px); }
.knapp.sekundar { background: transparent; color: var(--fg); border-color: var(--line); background: var(--surface); }
.knapp.sekundar:hover { border-color: var(--fg-3); }
.knapp.liten { min-height: 40px; padding: 0 18px; font-size: 15px; }
.knapp.bred { width: 100%; }

/* ---------- Topp ---------- */
.topp {
  position: sticky; top: 0; z-index: 50;
  background: rgba(242, 244, 241, 0.9);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.topp.scrollet { border-bottom-color: var(--line); }
.topp .rad { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); font-size: 20px; letter-spacing: -0.02em; }
.logo svg { width: 28px; height: 28px; color: var(--brand); }
.logo b { color: var(--brand); font-weight: 700; }
.hovednav { display: flex; gap: 4px; margin-left: 16px; }
.hovednav a { text-decoration: none; color: var(--fg-3); font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: var(--r-sm); }
.hovednav a:hover { color: var(--fg); background: var(--surface-2); }
.topp-knapper { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.lenke-logginn { text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 14px; border-radius: var(--r-sm); }
.lenke-logginn:hover { background: var(--surface-2); }
@media (max-width: 860px) { .hovednav { display: none; } }
@media (max-width: 359px) { .topp .knapp.liten { display: none; } }
@media (max-width: 420px) { .topp .rad { gap: 8px; } .lenke-logginn { padding: 8px 10px; } .topp .knapp.liten { padding: 0 14px; } }

/* ---------- Felles ---------- */
.seksjon { padding: 104px 0; }
@media (max-width: 700px) { .seksjon { padding: 72px 0; } }
.seksjon h2 { font-size: clamp(30px, 4.4vw, 46px); max-width: 18ch; }
.seksjon-ingress { margin-top: 18px; font-size: 19px; color: var(--fg-3); max-width: 60ch; }
.smaa { font-size: 14px; color: var(--fg-muted); }
.sentrert { text-align: center; margin-top: 28px; }

.kort-grid { display: grid; gap: 16px; margin-top: 44px; }
.kort-grid.tre { grid-template-columns: repeat(3, 1fr); }
.kort-grid.fire { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .kort-grid.tre, .kort-grid.fire { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .kort-grid.tre, .kort-grid.fire { grid-template-columns: 1fr; } }
.kort { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; }
.kort h3 { font-size: 20px; margin-bottom: 10px; }
.kort p { color: var(--fg-3); }

/* ---------- Hovedbudskap ---------- */
.helt { padding: 72px 0 96px; overflow: hidden; }
.helt-rad { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 960px) { .helt-rad { grid-template-columns: 1fr; gap: 48px; } .helt { padding-top: 40px; } }
.helt h1 { font-size: clamp(40px, 6vw, 68px); letter-spacing: -0.035em; }
.helt h1 span { display: block; }
.ingress { margin-top: 22px; font-size: 20px; color: var(--fg-3); max-width: 52ch; }
.helt .knapper { margin-top: 32px; }
.helt .smaa { margin-top: 18px; }

/* Skjermbilde laget i HTML */
.skjerm { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--skygge); overflow: hidden; }
.skjerm-topp { display: flex; align-items: center; gap: 6px; padding: 12px 18px; border-bottom: 1px solid var(--line); background: var(--surface); font-size: 13px; }
.skjerm-topp b { font-weight: 600; color: var(--fg-2); }
.skjerm-innhold { padding: 18px; display: grid; gap: 16px; }
/* Nøkkeltallene som én linjert stripe, som i appen. */
.tall-rad { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.tall { padding: 12px 14px; box-shadow: -1px 0 0 var(--line); }
.tall small { display: block; font-size: 12px; color: var(--fg-3); }
.tall strong { font-family: var(--font-tall); font-weight: 600; font-size: 22px; letter-spacing: -0.02em; white-space: nowrap; }
@media (max-width: 520px) { .tall { padding: 10px; } .tall strong { font-size: 17px; } }
.tall.varsel strong { color: var(--signal); }
.liste { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.liste-tittel { padding: 10px 14px; font-size: 13px; font-weight: 600; background: var(--paper); border-bottom: 1px solid var(--line); }
.linje { display: flex; align-items: center; gap: 12px; padding: 10px 14px; font-size: 14px; border-bottom: 1px solid var(--line); }
.linje:last-child { border-bottom: 0; }
.linje > span:nth-child(2) { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dato { font-family: var(--font-tall); font-size: 13px; color: var(--fg-muted); }
.kunde { color: var(--fg-muted); font-size: 13px; white-space: nowrap; }
@media (max-width: 520px) { .kunde { display: none; } }
/* Status som i appen: prikk og ord i statusfargen. */
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; color: var(--fg-muted); white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.gronn { color: var(--brand); }
.status.gul { color: #7a4b06; }

/* ---------- Kjenner du deg igjen ---------- */
.kjenner { background: var(--surface-2); }
.kjenner h2 { max-width: none; }
.sitat { font-size: 18px; color: var(--fg-2) !important; line-height: 1.45; }
.kjenner-svar { margin-top: 40px; font-size: clamp(22px, 3vw, 30px); font-weight: 600; color: var(--brand); letter-spacing: -0.02em; }

/* ---------- Se selv ---------- */
.demo { margin-top: 48px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px; box-shadow: var(--skygge); }
.demo-faner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.demo-faner button {
  display: flex; align-items: center; gap: 12px; text-align: left;
  padding: 14px 16px; border-radius: var(--r-md); border: 1px solid transparent;
  background: var(--paper); font: inherit; color: var(--fg); cursor: pointer;
}
.demo-faner button small { display: block; color: var(--fg-muted); font-size: 14px; }
.demo-faner button[aria-selected="true"] { background: var(--ink); color: var(--fg-on-dark); }
.demo-faner button[aria-selected="true"] small { color: var(--fg-muted-dark); }
.steg { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); color: var(--fg); font-family: var(--font-tall); font-weight: 600; font-size: 14px; }
.demo-faner button[aria-selected="true"] .steg { background: var(--brand-light); border-color: var(--brand-light); color: var(--brand-dark); }
@media (max-width: 700px) {
  .demo-faner { grid-template-columns: 1fr; }
  .demo-faner button small { display: none; }
}
.demo-panel { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; padding: 40px 32px 32px; }
.demo-panel[hidden] { display: none; }
@media (max-width: 860px) { .demo-panel { grid-template-columns: 1fr; padding: 28px 8px 8px; gap: 32px; } }
.demo-tekst h3 { font-size: 26px; margin-bottom: 14px; }
.demo-tekst p { color: var(--fg-3); }
.demo-tekst p + p { margin-top: 12px; }
.liten-skjerm { box-shadow: 0 16px 40px -20px rgba(18,22,20,.25); }

.telefon { justify-self: center; width: 280px; max-width: 100%; border: 10px solid var(--ink); border-radius: 36px; background: var(--paper); overflow: hidden; box-shadow: var(--skygge); }
.telefon-topp { background: var(--brand); color: #fff; font-weight: 600; font-size: 14px; padding: 14px 16px; }
.telefon-innhold { padding: 16px; display: grid; gap: 10px; }
.telefon-overskrift { font-weight: 700; font-size: 18px; }
.opplasting { display: grid; place-items: center; gap: 6px; height: 104px; border: 2px dashed var(--brand-light); border-radius: var(--r-md); color: var(--brand); font-size: 14px; font-weight: 600; background: var(--brand-soft); }
.ikon-kamera { width: 26px; height: 20px; border: 2px solid currentColor; border-radius: 5px; position: relative; }
.ikon-kamera::after { content: ""; position: absolute; inset: 4px 7px; border: 2px solid currentColor; border-radius: 50%; }
.felt { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 12px; font-size: 14px; }
.felt small { display: block; font-size: 11px; color: var(--fg-muted); }
.knapp-falsk { background: var(--brand); color: #fff; text-align: center; font-weight: 600; border-radius: var(--r-md); padding: 11px; font-size: 14px; }
.knapp-falsk.mini { padding: 6px 12px; font-size: 12px; }
.kvittering { font-size: 13px; color: var(--brand); text-align: center; }

.bilagsvarsel { background: var(--brand-soft); color: var(--brand); font-weight: 600; font-size: 14px; padding: 10px 14px; border-radius: var(--r-md); }
.hake { flex: none; width: 18px; height: 18px; border: 2px solid var(--line); border-radius: 5px; }
.hake.ja { background: var(--brand); border-color: var(--brand); position: relative; }
.hake.ja::after { content: ""; position: absolute; left: 4px; top: 0; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.stoppeklokke { display: flex; align-items: center; gap: 12px; background: var(--ink); color: var(--fg-on-dark); border-radius: var(--r-md); padding: 12px 14px; font-size: 14px; }
.stoppeklokke strong { font-family: var(--font-tall); font-weight: 600; margin-left: auto; font-size: 18px; }

.matrise { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 6px; align-items: center; font-size: 13px; }
.matrise b { font-weight: 600; color: var(--fg-muted); text-align: center; font-size: 12px; }
.matrise .c { display: block; height: 26px; border-radius: 6px; background: var(--surface-2); }
.matrise .c.ok { background: var(--brand-soft); position: relative; }
.matrise .c.ok::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--brand); font-style: normal; font-weight: 700; }
.matrise .c.gul { background: #f3ddb0; }
.matrise .c.rod { background: #f2c7bb; }
.faktura-linje { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 14px; font-size: 14px; }
.faktura-linje strong { font-family: var(--font-tall); font-weight: 600; font-size: 18px; color: var(--brand); }

/* ---------- Mørk seksjon: funksjoner ---------- */
.mork { background: var(--ink); color: var(--fg-on-dark); }
/* Funksjonene som en linjert oversikt, ikke seks like bokser med ikon. */
.mork .kort-grid { gap: 36px 40px; }
.mork .kort { background: transparent; border: 0; border-top: 1px solid var(--ink-line); border-radius: 0; padding: 20px 0 0; }
.mork .kort p { color: var(--fg-muted-dark); }
.og-resten { margin-top: 56px; border-top: 1px solid var(--ink-line); padding-top: 40px; }
.og-resten h3 { font-size: 22px; margin-bottom: 20px; }
.og-resten ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 32px; }
.og-resten li { color: var(--fg-muted-dark); padding-left: 24px; position: relative; }
.og-resten li::before { content: ""; position: absolute; left: 0; top: 12px; width: 12px; height: 2px; background: var(--brand-light); }
@media (max-width: 600px) { .og-resten ul { grid-template-columns: 1fr; } }

/* ---------- Roller ---------- */
.kort.rolle { background: transparent; border: 0; border-top: 2px solid var(--fg); border-radius: 0; padding: 18px 0 0; }

/* ---------- Sikkerhet ---------- */
.lys { background: var(--brand-soft); }
.sikkerhet-rad { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: start; }
@media (max-width: 960px) { .sikkerhet-rad { grid-template-columns: 1fr; gap: 36px; } }
.sikkerhet-liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 600px) { .sikkerhet-liste { grid-template-columns: 1fr; } }
.sikkerhet-liste li { padding: 16px 0 6px; border-top: 1px solid var(--brand-light); }
.sikkerhet-liste b { display: block; font-size: 17px; margin-bottom: 6px; color: var(--brand-dark); }
.sikkerhet-liste span { color: var(--fg-3); font-size: 15px; }

/* ---------- Priser ---------- */
.pris-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; align-items: stretch; }
@media (max-width: 960px) { .pris-grid { grid-template-columns: 1fr; max-width: 460px; } }
.pris-kort { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px 28px 28px; }
.pris-kort.fremhevet { border: 2px solid var(--brand); box-shadow: var(--skygge); }
.pris-merke { position: absolute; top: -12px; left: 27px; background: var(--brand); color: #fff; font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: var(--r-xs); }
.pris-kort h3 { font-size: 22px; }
.pris-for { color: var(--fg-muted); font-size: 15px; margin-top: 4px; }
.pris { margin: 24px 0; }
.pris strong { display: block; font-family: var(--font-tall); font-size: 38px; letter-spacing: -0.03em; }
.pris span { color: var(--fg-muted); font-size: 14px; }
.pris-kort ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; flex: 1; }
.pris-kort li { padding-left: 26px; position: relative; color: var(--fg-2); font-size: 15px; }
.pris-kort li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }

/* ---------- Prøv gratis ---------- */
.prov { background: var(--brand); color: #fff; }
.prov h2 { color: #fff; }
.prov .seksjon-ingress { color: var(--brand-light); }
.prov-rad { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .prov-rad { grid-template-columns: 1fr; gap: 36px; } }
.prov-steg { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); border-radius: var(--r-lg); padding: 28px; }
.prov-steg ol { margin: 0 0 24px; padding-left: 22px; display: grid; gap: 12px; color: var(--brand-soft); }
.prov-steg b { color: #fff; }
.prov .knapp { background: #fff; color: var(--brand-dark); border-color: #fff; }
.prov .knapp:hover { background: var(--brand-soft); }
.prov .knapp.sekundar { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.prov .knapp.sekundar:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

/* ---------- Bunn ---------- */
.bunn { background: var(--ink); color: var(--fg-muted-dark); padding: 48px 0; }
.bunn-rad { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; }
.bunn .logo { color: var(--fg-on-dark); }
.bunn .logo svg, .bunn .logo b { color: var(--brand-light); }
.bunn nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.bunn nav a { text-decoration: none; font-size: 15px; }
.bunn nav a:hover { color: var(--fg-on-dark); }
.bunn .smaa { margin-left: auto; color: var(--fg-muted-dark); }
@media (max-width: 700px) { .bunn .smaa { margin-left: 0; } }
