/* Felles artikkeldesign for Skademelding Bil. Variabelnavnene fra gammel
   seo.css beholdes fordi enkelte sider har inline-stiler som refererer dem. */

:root {
  --accent: #d61e56;
  --bg: #ffffff;
  --surface: #ffffff;
  --card: #faf8fa;
  --text: #1c1c21;
  --text-2: #5a5a64;
  --muted: #5a5a64;
  --faint: #6f6f79;
  --line: #eee9ed;
  --green: #087a54; /* historisk navn — brukes i enkelte inline-stiler */
  --green-2: #087a54;
  --yellow: #d61e56; /* historisk navn — aksentkant på .notice */
  --soft: #fdf1f6;
  --shadow: 0 16px 48px rgba(80, 25, 49, 0.09);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--bg);
}

::selection {
  background: var(--text);
  color: #fff;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 150ms ease;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(calc(-100% - 16px));
  transition: transform 150ms ease;
}

.skip-link:focus { transform: translateY(0); }

.article-content a,
.article-grid a,
.notice a,
.faq-hero-note a {
  color: var(--accent);
  font-weight: 600;
}

a:hover {
  text-decoration: underline;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px max(20px, calc((100vw - 1120px) / 2));
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.03em;
  color: var(--text);
}

.brand--skademelding-bil .brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.brand--skademelding-bil .brand-name {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  column-gap: 4px;
  color: var(--text);
  font-size: 16px;
  line-height: 1;
  white-space: nowrap;
}

.brand--skademelding-bil .brand-name strong,
.brand--skademelding-bil .brand-name em {
  font-style: normal;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.brand--skademelding-bil .brand-name em {
  color: var(--accent);
}

.brand--skademelding-bil .brand-name small {
  grid-column: 1 / -1;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.035em;
}

.brand:hover {
  text-decoration: none;
}

.brand em {
  font-style: normal;
  color: var(--accent);
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 32px);
  flex-wrap: wrap;
}

.site-header nav a:not(.pill) {
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
}

.site-header nav a:not(.pill):hover {
  color: var(--accent);
  text-decoration: none;
}

/* ---------- Pill-knapper (samme som forsiden) ---------- */
.pill,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 26px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.08);
  transition: transform 150ms ease;
}

.pill:hover,
.button:hover {
  transform: scale(1.05);
  text-decoration: none;
}

.button.primary {
  background: var(--accent);
  color: #fff;
}

.button.secondary {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.06);
}

.button.is-disabled,
.button:disabled {
  cursor: not-allowed;
  opacity: 0.72;
  transform: none;
}

/* ---------- Sideramme ---------- */
main,
.article-page {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
}

.article-page {
  padding: clamp(40px, 6vw, 88px) 0 clamp(48px, 7vw, 96px);
}

/* ---------- Artikkel-hero ---------- */
.article-hero {
  display: grid;
  gap: 20px;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.eyebrow {
  margin: 0;
  justify-self: start;
  background: var(--soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  padding: 6px 16px;
  border-radius: 999px;
}

h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}

h1 {
  font-size: clamp(34px, 5.5vw, 58px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  max-width: 22ch;
  text-wrap: balance;
}

h2 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: balance;
}

h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

#eksempel,
#fornoyd-garanti { scroll-margin-top: 84px; }

.lead {
  max-width: 58ch;
  color: var(--text-2);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.65;
  text-wrap: pretty;
}

.actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.analytics-choice .button {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.analytics-choice .button.secondary {
  border: 1px solid var(--line);
}

.analytics-choice [hidden] {
  display: none !important;
}

.price-note {
  color: var(--faint);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.content-date {
  color: var(--faint);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.content-date time { white-space: nowrap; }

/* ---------- Innholdskort ---------- */
.article-content,
.article-grid article,
.notice,
.login-panel {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.article-content,
.notice {
  display: grid;
  gap: 16px;
  padding: clamp(24px, 4vw, 44px);
  margin-bottom: clamp(20px, 3vw, 32px);
}

.article-content p,
.article-grid p,
.notice p {
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.65;
}

.article-content h2 {
  margin-top: 12px;
}

.article-content h2:first-child {
  margin-top: 0;
}

.article-content ul,
.article-content ol {
  display: grid;
  gap: 10px;
  padding-left: 22px;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.6;
}

.article-content li strong,
.article-content p strong {
  color: var(--text);
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: clamp(20px, 3vw, 32px);
}

.article-grid article {
  display: grid;
  gap: 12px;
  padding: clamp(20px, 3vw, 32px);
}

.article-grid h2 {
  font-size: 20px;
}

.notice {
  border-left: 5px solid var(--accent);
}

/* ---------- Eksempel-PDF ---------- */
.sample-pdf {
  display: grid;
  gap: clamp(20px, 4vw, 32px);
  margin: 12px 0 20px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.sample-pdf-copy {
  display: grid;
  gap: 14px;
}

.sample-pdf-copy .eyebrow { justify-self: start; }

.sample-pdf-pages {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 3vw, 22px);
  align-items: start;
}

.sample-pdf-pages figure {
  min-width: 0;
  margin: 0;
}

.sample-pdf-pages img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 720 / 1019;
  object-fit: cover;
  object-position: top;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(28, 28, 33, 0.14);
}

.sample-pdf-pages figcaption {
  margin-top: 10px;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

@media (max-width: 640px) {
  .sample-pdf-pages { grid-template-columns: 1fr; }
}

/* ---------- FAQ-accordion (samme uttrykk som forsiden) ---------- */
.faq-list {
  display: grid;
  gap: 14px;
}

.faq-list details {
  background: var(--card);
  border-radius: 20px;
  padding: 4px 24px;
}

.faq-list summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  padding: 18px 0;
  font-size: 17px;
  font-weight: 600;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: '+';
  color: var(--accent);
  font-size: 24px;
  font-weight: 400;
  flex-shrink: 0;
}

.faq-list details[open] summary::after {
  content: '−';
}

.faq-list details p {
  padding: 0 0 20px;
}

/* ---------- Footer ---------- */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: clamp(40px, 6vw, 72px);
  padding: 32px max(20px, calc((100vw - 1120px) / 2)) 40px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 14px;
}

.site-footer nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.site-footer nav a {
  color: var(--text);
  font-size: 14px;
}

.site-footer nav a:hover {
  color: var(--accent);
  text-decoration: none;
}

/* ---------- Mobil ---------- */
@media (max-width: 700px) {
  .site-header nav a:not(.pill) {
    display: none;
  }

  .article-grid {
    grid-template-columns: 1fr;
  }
}

/* Trust-stripe under artikkel-hero (speiler forsidens lp-trust). */
.trust-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  color: var(--faint);
  font-size: 14px;
  font-weight: 600;
}
