/*
 * Sammenligningene: /sammenligninger/ og sidene som /wordpress-vs-wix/
 * (template-parts/sections/sammenligning/ og sammenligninger/oversikt.php).
 * Spørsmålene bruker trekkspillet fra bransjesidene.
 *
 * Bygger på plattform.css, heltside.css og nettside.css (inc/plattform.php).
 * Alle sidene har samme oppbygning og samme uttrykk: lilla for det første
 * alternativet, rolig grått for det andre, og «Kort svar» i en egen boks.
 */

.sml-h2 { font-size: clamp(2.1rem, 1.3rem + 2.4vw, 3.4rem); }
.sml-hode { margin-bottom: clamp(36px, 4vw, 56px); }

/* ---------- Toppen ---------- */

.sml-topp {
	padding-block: clamp(48px, 6vw, 100px) clamp(56px, 6vw, 96px);
	background:
		radial-gradient(42% 56% at 90% 16%, #efe7ff 0%, transparent 70%),
		radial-gradient(38% 50% at 0% 100%, #fdeaf3 0%, transparent 70%),
		#fafcf9;
}

.sml-topp-rad { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: clamp(32px, 5vw, 72px); }
.sml-topp .pf-pille { margin-bottom: 18px; }
.sml-h1 { font-size: clamp(2.5rem, 1.3rem + 3.3vw, 4.4rem); line-height: 1.05; }
.sml-ingress { max-width: 34rem; margin: 20px 0 0; }
.sml-ingress strong { color: var(--pf-blekk); }
.sml-knapper { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 30px; }
.sml-knapper .pf-knapp { gap: 8px; }

.sml-merker { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.sml-merker li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid #ebe8f4; border-radius: 999px; background: rgba(255, 255, 255, .8); color: #4a4a62; font-size: 13.5px; }
.sml-merker svg { width: 14px; height: 14px; color: #16a34a; }

.sml-konklusjon {
	position: relative;
	padding: clamp(24px, 2.8vw, 36px);
	border: 1px solid #e9e3fb;
	border-radius: 30px;
	background: #fff;
}

.sml-konklusjon::before {
	content: '';
	position: absolute;
	inset: -1px;
	z-index: -1;
	border-radius: inherit;
	background: linear-gradient(135deg, #7c3aed, #c026d3 55%, #ec4899);
	opacity: .14;
	filter: blur(24px);
}

.sml-mot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; }
.sml-mot span { padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 700; }
.sml-mot-a { background: #f0e9ff; color: #5b21b6; }
.sml-mot-vs { padding: 0 2px !important; color: var(--pf-gra); font-size: 13px !important; font-weight: 600 !important; text-transform: uppercase; letter-spacing: .06em; }
.sml-mot-b { background: #f2f2f6; color: #3f3f50; }

.sml-konklusjon-merke { display: inline-flex; align-items: center; gap: 6px; color: #6d28d9; font-size: 13.5px; font-weight: 600; }
.sml-konklusjon-merke svg { width: 15px; height: 15px; }
.sml-dom { margin-top: 8px; color: var(--pf-blekk); font-size: clamp(1.3rem, 1.1rem + .6vw, 1.6rem); font-weight: 700; line-height: 1.2; }
.sml-konklusjon-tekst { margin-top: 10px; color: #4a4a62; font-size: 16px; line-height: 1.6; }
.sml-konklusjon-tekst strong { color: var(--pf-blekk); }

/* ---------- Kort svar ---------- */

.sml-kort-svar {
	max-width: 860px;
	margin: 0 auto clamp(28px, 3vw, 40px);
	padding: 20px 24px;
	border: 1px solid #e3dafb;
	border-radius: 20px;
	background: linear-gradient(135deg, #f8f4ff 0%, #fdf4fa 100%);
}

.sml-kort-svar-merke { display: inline-flex; align-items: center; gap: 6px; color: #6d28d9; font-size: 13.5px; font-weight: 600; }
.sml-kort-svar-merke svg { width: 15px; height: 15px; }
.sml-kort-svar p:last-child { margin-top: 6px; color: #2b2b3a; font-size: 16.5px; line-height: 1.6; }
.sml-kort-svar strong { color: var(--pf-blekk); }

/* ---------- Hvem vinner hva ---------- */

.sml-vinner { padding-block: clamp(80px, 9vw, 128px); }
.sml-vinner-rad { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); max-width: 1040px; }

.sml-side { position: relative; padding: clamp(22px, 2.6vw, 32px); border: 1px solid #ebe8f2; border-radius: 26px; background: #fafafc; }

.sml-side--vinner { border-color: transparent; background: #fff; }
.sml-side--vinner::before {
	content: '';
	position: absolute;
	inset: 0;
	padding: 1.5px;
	border-radius: inherit;
	background: linear-gradient(135deg, #7c3aed, #c026d3 55%, #ec4899);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	pointer-events: none;
}

.sml-side-hode { display: flex; align-items: center; gap: 14px; }
.sml-side-bokstav { display: grid; flex: none; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: #ececf2; color: #3f3f50; font-size: 18px; font-weight: 700; }
.sml-side--vinner .sml-side-bokstav { background: linear-gradient(135deg, #7c3aed, #c026d3 60%, #ec4899); color: #fff; }
.sml-side .sml-side-tittel { --hh-fs: 1.25rem; --hh-lh: 1.25; color: var(--pf-blekk); font-weight: 700; }
.sml-side-andel { margin-top: 2px; color: var(--pf-gra); font-size: 14px; }
.sml-side-punkter { display: grid; gap: 10px; margin-top: 20px; }
.sml-side-punkter li { display: flex; gap: 10px; color: #2b2b3a; font-size: 15.5px; line-height: 1.45; }
.sml-side-punkter li > span { flex: none; width: 14px; color: var(--pf-gra); font-weight: 700; text-align: center; }
.sml-side--vinner .sml-side-punkter li > span { color: #a020f0; }

/* ---------- Tabellen ---------- */

.sml-tabell { padding-block: clamp(80px, 9vw, 128px); background: linear-gradient(180deg, #f8f6ff 0%, #fbfaff 100%); scroll-margin-top: 60px; }

.sml-tabell-rom { overflow-x: auto; border: 1px solid #e9e5f5; border-radius: 24px; background: #fff; }
.sml-tabell-rom:focus-visible { outline: 3px solid #a020f0; outline-offset: 3px; }

.sml-tabell-t { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; }
.sml-tabell-t th,
.sml-tabell-t td { padding: 15px 18px; border-top: 1px solid #f0edf7; text-align: left; vertical-align: top; line-height: 1.45; }
.sml-tabell-t thead th { position: sticky; top: 0; border-top: 0; background: #fbfaff; color: var(--pf-gra); font-size: 13px; font-weight: 600; }
.sml-tabell-t tbody th { position: sticky; left: 0; z-index: 1; width: 28%; background: #fff; color: var(--pf-blekk); font-weight: 600; }
.sml-tabell-t td { color: #4a4a62; }
.sml-tabell-t .sml-uthev { background: #faf6ff; color: var(--pf-blekk); font-weight: 600; }
.sml-tabell-t thead .sml-uthev { background: #f3edff; color: #5b21b6; }
.sml-tabell-t .sml-note { color: var(--pf-gra); font-size: 13.5px; }
.sml-tabell-t tbody tr:hover > * { background-color: #fdfcff; }
.sml-tabell-t tbody tr:hover .sml-uthev { background: #f6f0ff; }

.sml-prikk { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: linear-gradient(135deg, #7c3aed, #ec4899); vertical-align: middle; }
.sml-tabell-t .sml-hake { display: inline-block; width: 15px; height: 15px; margin: 0 6px 0 0; color: #16a34a; vertical-align: -2px; }
.sml-fotnote { max-width: 760px; margin: 16px auto 0; color: var(--pf-gra); font-size: 13.5px; text-align: center; }

/* ---------- Når du bør velge ---------- */

.sml-scenarier { padding-block: clamp(80px, 9vw, 128px); }
.sml-scenarier--b { background: #fafafc; }
.sml-scenario-liste { display: grid; grid-template-columns: repeat(var(--antall, 2), minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 22px); max-width: 1100px; }

.sml-scenario { padding: clamp(22px, 2.4vw, 30px); border: 1px solid #ebe8f4; border-radius: 24px; background: #fff; }
.sml-scenario-merke { display: inline-block; padding: 4px 10px; border-radius: 999px; background: #f3edff; color: #6d28d9; font-size: 12.5px; font-weight: 600; }
.sml-scenarier--b .sml-scenario-merke { background: #f0f0f4; color: #4a4a62; }
.sml-scenario .sml-scenario-tittel { --hh-fs: 1.2rem; --hh-lh: 1.3; margin-top: 14px; color: var(--pf-blekk); font-weight: 600; }
.sml-scenario-tekst { margin-top: 8px; color: #4a4a62; font-size: 15px; line-height: 1.6; }

/* ---------- Stegene ---------- */

.sml-steg { padding-block: clamp(80px, 9vw, 128px); background: linear-gradient(180deg, #fff 0%, #f8f6ff 100%); }
.sml-steg-liste { display: grid; grid-template-columns: repeat(var(--antall, 4), minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 18px); }
.sml-steg-liste li { padding: 24px; border: 1px solid #ebe8f4; border-radius: 22px; background: #fff; }

.sml-steg-nr {
	background: linear-gradient(135deg, #7c3aed 0%, #c026d3 55%, #ec4899 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	font-size: 36px;
	font-weight: 700;
	line-height: 1;
}

.sml-steg-liste .sml-steg-tittel { --hh-fs: 1.15rem; --hh-lh: 1.3; margin-top: 14px; color: var(--pf-blekk); font-weight: 600; }
.sml-steg-tekst { margin-top: 6px; color: #4a4a62; font-size: 14.5px; line-height: 1.55; }

.sml-pakke {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 18px 32px;
	max-width: 900px;
	margin: clamp(28px, 3vw, 40px) auto 0;
	padding: 22px 26px;
	border: 1px solid #e3dafb;
	border-radius: 22px;
	background: #fff;
}

.sml-pakke-merke { color: #6d28d9; font-size: 13px; font-weight: 600; }
.sml-pakke-tittel { margin-top: 2px; color: var(--pf-blekk); font-size: 20px; font-weight: 700; }
.sml-pakke-tekst { margin-top: 2px; color: var(--pf-gra); font-size: 14.5px; }
.sml-pakke .pf-knapp { gap: 8px; }

/* ---------- Tekst ---------- */

.sml-tekst { padding-block: clamp(72px, 8vw, 112px); }
.sml-tekst-kort { max-width: 760px; margin-inline: auto; padding: clamp(24px, 3vw, 40px); border: 1px solid #ebe8f4; border-radius: 26px; background: #fff; }
.sml-tekst-tittel { color: var(--pf-blekk); font-size: 20px; font-weight: 700; }
.sml-tekst-kort p:not(.sml-tekst-tittel) { margin-top: 12px; color: #4a4a62; font-size: 16.5px; line-height: 1.65; }
.sml-tekst-kort strong { color: var(--pf-blekk); }

/* ---------- Les videre ---------- */

.sml-relatert { padding-block: clamp(64px, 7vw, 96px); background: #fbfaff; }
.sml-relatert-hode { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.sml-relatert-tittel { color: var(--pf-blekk); font-size: 22px; font-weight: 700; }
.sml-relatert-liste { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }

.sml-relatert-liste a {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 4px;
	height: 100%;
	padding: 18px 44px 18px 20px;
	border: 1px solid #ebe8f4;
	border-radius: 18px;
	background: #fff;
	color: var(--pf-blekk);
	text-decoration: none;
	transition: border-color .2s, transform .3s var(--pf-myk);
}

.sml-relatert-liste a:hover { border-color: #c4b5fd; transform: translateY(-2px); }
.sml-relatert-liste small { color: #6d28d9; font-size: 12.5px; font-weight: 600; }
.sml-relatert-liste b { font-size: 16px; font-weight: 600; }
.sml-relatert-liste svg { position: absolute; top: 50%; right: 18px; width: 16px; height: 16px; color: #6d28d9; transform: translateY(-50%); }

/* ---------- Oversikten ---------- */

.sml-oversikt { padding-block: clamp(80px, 9vw, 128px); scroll-margin-top: 60px; }
.sml-snarveier { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: clamp(36px, 4vw, 56px); }
.sml-snarveier a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid #e6e4ef; border-radius: 999px; background: #fff; color: var(--pf-blekk); font-size: 15px; font-weight: 600; text-decoration: none; }
.sml-snarveier a:hover { border-color: #c4b5fd; }
.sml-snarveier span { color: var(--pf-gra); font-size: 13px; font-weight: 500; }

.sml-grupper { display: grid; gap: clamp(40px, 5vw, 64px); }
.sml-gruppe { scroll-margin-top: 110px; }
.sml-gruppe-hode { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 16px; }
.sml-gruppe-hode h3 { color: var(--pf-blekk); font-size: 20px; font-weight: 700; }
.sml-gruppe-hode p { color: var(--pf-gra); font-size: 15px; }

.sml-kortliste { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 22px); }

.sml-kort {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 24px;
	border: 1px solid #ebe8f4;
	border-radius: 24px;
	background: #fff;
	transition: border-color .25s, transform .35s var(--pf-myk);
}

.sml-kort:hover { border-color: #c4b5fd; transform: translateY(-3px); }
.sml-kort:has(.sml-kort-lenke:focus-visible) { outline: 3px solid #a020f0; outline-offset: 3px; }
.sml-kort-kategori { margin-bottom: 12px; color: var(--pf-gra); font-size: 12.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.sml-kort .sml-mot { margin-bottom: 14px; }
.sml-kort .sml-mot span { padding: 4px 10px; font-size: 12.5px; }
.sml-kort .sml-kort-tittel { --hh-fs: 1.25rem; --hh-lh: 1.25; color: var(--pf-blekk); font-weight: 700; }
.sml-kort-lenke { color: inherit; text-decoration: none; }
.sml-kort-lenke::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.sml-kort-tekst { display: -webkit-box; margin-top: 8px; overflow: hidden; color: #4a4a62; font-size: 15px; line-height: 1.55; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.sml-kort-fot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto; padding-top: 18px; }
.sml-kort-dom { padding: 4px 10px; border-radius: 999px; background: #e8f7ee; color: #15803d; font-size: 12.5px; font-weight: 600; }
.sml-kort-populaer { padding: 4px 10px; border-radius: 999px; background: #fff4e5; color: #b45309; font-size: 12.5px; font-weight: 600; }
.sml-kort-pil { margin-left: auto; color: #6d28d9; transition: transform .3s var(--pf-myk); }
.sml-kort-pil svg { width: 18px; height: 18px; }
.sml-kort:hover .sml-kort-pil { transform: translateX(3px); }

/* ---------- Mindre skjermer ---------- */

@media (max-width: 1023px) {
	.sml-topp-rad { grid-template-columns: minmax(0, 1fr); }
	.sml-konklusjon { max-width: 640px; }
	.sml-scenario-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sml-steg-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sml-kortliste { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 639px) {
	.sml-vinner-rad,
	.sml-scenario-liste,
	.sml-steg-liste,
	.sml-kortliste { grid-template-columns: minmax(0, 1fr); }
	.sml-tabell-t th,
	.sml-tabell-t td { padding: 12px 14px; }
}

@media (prefers-reduced-motion: reduce) {
	.sml-relatert-liste a,
	.sml-kort,
	.sml-kort-pil { transition: none; }
	.sml-relatert-liste a:hover,
	.sml-kort:hover { transform: none; }
}
