:root {
	--navy: #002c64;
	--mint: #3defb3;
	--mint-soft: #e3fbf3;
	--text: #1d2430;
	--muted: #5b6577;
	--line: #e3e6eb;
	--bg: #f5f7fa;
	--radius: 14px;
	font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	color: var(--text);
	line-height: 1.55;
}
* {
	box-sizing: border-box;
}
body {
	margin: 0;
	background: #fff;
}
img {
	max-width: 100%;
	display: block;
}
a {
	color: var(--navy);
}
h1,
h2,
h3 {
	color: var(--navy);
	line-height: 1.2;
	margin: 0 0 0.6rem;
}
h1 {
	font-size: clamp(2rem, 4.5vw, 3.2rem);
	letter-spacing: -0.02em;
}
h2 {
	font-size: clamp(1.5rem, 3vw, 2.1rem);
	letter-spacing: -0.01em;
}
h3 {
	font-size: 1.1rem;
}
p {
	margin: 0 0 1rem;
}
.wrap {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 1.25rem;
}

/* Knappar */
.button {
	display: inline-block;
	padding: 0.8rem 1.4rem;
	border-radius: 999px;
	background: var(--navy);
	color: #fff;
	font-weight: 600;
	text-decoration: none;
	border: 2px solid var(--navy);
	transition: transform 0.1s;
}
.button:hover {
	transform: translateY(-1px);
}
.button.ghost {
	background: transparent;
	color: var(--navy);
}
.button.small {
	padding: 0.45rem 1rem;
	font-size: 0.95rem;
}
.button.large {
	font-size: 1.2rem;
	padding: 1rem 2rem;
	background: var(--mint);
	border-color: var(--mint);
	color: var(--navy);
}

/* Sidhuvud */
.top {
	position: sticky;
	top: 0;
	z-index: 10;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--line);
}
.top-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 64px;
}
.logo img {
	height: 30px;
	width: auto;
}
nav {
	display: flex;
	align-items: center;
	gap: 1.5rem;
}
nav a:not(.button) {
	text-decoration: none;
	color: var(--muted);
	font-weight: 500;
}
nav a:not(.button):hover {
	color: var(--navy);
}

/* Hjälte */
.hero {
	background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
	padding: 4.5rem 0 0;
	overflow: hidden;
}
.hero-inner {
	text-align: center;
}
.hero-text {
	max-width: 760px;
	margin: 0 auto 3rem;
}
.eyebrow {
	display: inline-block;
	background: var(--mint-soft);
	color: var(--navy);
	font-weight: 600;
	font-size: 0.9rem;
	padding: 0.3rem 0.9rem;
	border-radius: 999px;
}
.lead {
	font-size: 1.2rem;
	color: var(--muted);
}
.cta {
	display: flex;
	gap: 0.8rem;
	justify-content: center;
	flex-wrap: wrap;
	margin-top: 1.5rem;
}

/* Skärmbilder */
.shot {
	margin: 0;
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid var(--line);
	box-shadow:
		0 30px 60px -20px rgba(0, 44, 100, 0.25),
		0 10px 20px -10px rgba(0, 44, 100, 0.15);
	background: #fff;
}
.hero-shot {
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
	border-bottom: none;
	max-height: 560px;
}

/* Funktioner */
.features,
.trust {
	padding: 5rem 0;
}
.features h2,
.trust h2 {
	text-align: center;
	max-width: 760px;
	margin: 0 auto 2.5rem;
}
.grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 1.25rem;
}
.grid article {
	padding: 1.5rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
	border-top: 4px solid var(--mint);
}
.grid p {
	color: var(--muted);
	margin: 0;
}

/* Visning */
.showcase {
	background: var(--bg);
	padding: 5rem 0;
	display: grid;
	gap: 5rem;
}
.two {
	display: grid;
	grid-template-columns: 2fr 3fr;
	gap: 3rem;
	align-items: center;
}
.two.reverse > div {
	order: 2;
}
.two p {
	color: var(--muted);
	font-size: 1.1rem;
}

/* Trygghet */
.trust .grid article {
	border-top-color: var(--navy);
}

/* Kontakt */
.contact {
	background: var(--navy);
	color: #fff;
	padding: 5rem 0;
	text-align: center;
}
.contact h2 {
	color: #fff;
}
.contact-inner p {
	max-width: 620px;
	margin: 0 auto 2rem;
	color: rgba(255, 255, 255, 0.82);
	font-size: 1.15rem;
}

/* Sidfot */
footer {
	padding: 2rem 0;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 0.95rem;
}
.footer-inner {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	flex-wrap: wrap;
}
.footer-inner img {
	height: 22px;
	width: auto;
}
.footer-inner span:last-child {
	margin-left: auto;
}

@media (max-width: 820px) {
	nav a:not(.button) {
		display: none;
	}
	.hero {
		padding-top: 3rem;
	}
	.two,
	.two.reverse {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
	.two.reverse > div {
		order: 0;
	}
	.footer-inner span:last-child {
		margin-left: 0;
	}
}

/* Pris */
.pricing {
	padding: 5rem 0;
}
.pricing-inner {
	display: grid;
	grid-template-columns: 3fr 2fr;
	gap: 3rem;
	align-items: center;
}
.pricing-text > p {
	color: var(--muted);
	font-size: 1.1rem;
}
.included {
	list-style: none;
	padding: 0;
	margin: 1.5rem 0 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.6rem 1.5rem;
}
.included li,
.price-card li,
.compare li {
	position: relative;
	padding-left: 1.7rem;
}
.included li::before,
.price-card li::before,
.compare .us li::before {
	content: '✓';
	position: absolute;
	left: 0;
	top: 0;
	color: #06a26d;
	font-weight: 700;
}
.price-card {
	background: var(--navy);
	color: #fff;
	border-radius: 20px;
	padding: 2.25rem;
	box-shadow: 0 30px 60px -20px rgba(0, 44, 100, 0.45);
	text-align: center;
}
.price-label {
	color: var(--mint);
	font-weight: 600;
	letter-spacing: 0.02em;
}
.price {
	margin: 0.5rem 0 0;
	line-height: 1;
}
.price .amount {
	font-size: 4rem;
	font-weight: 800;
	letter-spacing: -0.03em;
}
.price .unit {
	font-size: 1.5rem;
	font-weight: 600;
}
.price-note {
	color: rgba(255, 255, 255, 0.7);
	margin-bottom: 1.5rem;
}
.price-card ul {
	list-style: none;
	padding: 0;
	margin: 0 0 1.75rem;
	text-align: left;
	display: grid;
	gap: 0.5rem;
}
.price-card li::before {
	color: var(--mint);
}

/* Jämförelse */
.compare {
	padding: 0 0 5rem;
}
.compare h2 {
	text-align: center;
	margin-bottom: 2rem;
}
.compare-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.25rem;
	max-width: 960px;
	margin: 0 auto;
}
.compare .col {
	border-radius: var(--radius);
	padding: 1.75rem;
}
.compare .them {
	background: var(--bg);
	color: var(--muted);
}
.compare .them h3 {
	color: var(--muted);
}
.compare .them li::before {
	content: '✕';
	position: absolute;
	left: 0;
	top: 0;
	color: #c2410c;
	font-weight: 700;
}
.compare .us {
	background: var(--mint-soft);
	border: 2px solid var(--mint);
}
.compare ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 0.7rem;
}

@media (max-width: 820px) {
	.pricing-inner,
	.compare-grid,
	.included {
		grid-template-columns: 1fr;
	}
}

/* Funktionskorten har längre texter: bredare kort */
.features .grid {
	grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

/* Juridiska sidor (villkor, personuppgiftsbiträdesavtal) */
.legal {
	background: var(--bg);
	padding: 3rem 1.25rem 4rem;
}
.legal-inner {
	max-width: 760px;
	margin: 0 auto;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 2.5rem clamp(1.25rem, 4vw, 3rem);
	line-height: 1.65;
}
.legal h1 {
	font-size: clamp(1.7rem, 3.5vw, 2.3rem);
	margin-bottom: 0.3rem;
}
.legal .meta {
	color: var(--muted);
	font-size: 0.92rem;
	margin-bottom: 2rem;
}
.legal h2 {
	font-size: 1.2rem;
	margin: 2rem 0 0.6rem;
	padding-top: 1rem;
	border-top: 1px solid var(--line);
}
.legal section:first-of-type h2 {
	border-top: none;
	padding-top: 0;
}
.legal ul {
	padding-left: 1.3rem;
	margin: 0 0 1rem;
}
.legal li {
	margin-bottom: 0.35rem;
}
.legal a {
	color: var(--navy);
}
.legal .draft {
	background: #fff4e5;
	border: 1px solid #fcd9a5;
	color: #7a3a00;
	border-radius: 10px;
	padding: 0.8rem 1rem;
	margin-bottom: 1.75rem;
	font-size: 0.95rem;
}
.legal .table-scroll {
	overflow-x: auto;
	margin-bottom: 1rem;
}
.legal table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.93rem;
}
.legal th,
.legal td {
	text-align: left;
	vertical-align: top;
	padding: 0.5rem 0.6rem;
	border-bottom: 1px solid var(--line);
}
.legal th {
	color: var(--muted);
	font-weight: 600;
}
.legal table {
	table-layout: fixed;
}
.legal td,
.legal th {
	overflow-wrap: anywhere;
}
.legal-inner {
	overflow-wrap: break-word;
}

/* ------------------------------------------------------------------ rörelse (återhållsam) */

.top {
	transition: box-shadow 0.25s;
}
.top.scrolled {
	box-shadow: 0 6px 24px -14px rgba(0, 44, 100, 0.25);
}
.button {
	transition: transform 0.15s, box-shadow 0.2s;
}
.button:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 18px -10px rgba(0, 44, 100, 0.4);
}

/* Hjälte: långsamt drivande ljus och rutnät */
.hero {
	position: relative;
	isolation: isolate;
}
.hero-bg {
	position: absolute;
	inset: 0;
	z-index: -1;
	overflow: hidden;
	pointer-events: none;
}
.orb {
	position: absolute;
	border-radius: 50%;
	filter: blur(70px);
	opacity: 0.55;
}
.o1 {
	width: 520px;
	height: 520px;
	background: var(--mint);
	top: -180px;
	left: -120px;
	animation: drift1 18s ease-in-out infinite alternate;
}
.o2 {
	width: 460px;
	height: 460px;
	background: #7aa7ff;
	top: -100px;
	right: -140px;
	opacity: 0.35;
	animation: drift2 22s ease-in-out infinite alternate;
}
.o3 {
	width: 380px;
	height: 380px;
	background: var(--mint);
	top: 420px;
	left: 45%;
	opacity: 0.25;
	animation: drift3 26s ease-in-out infinite alternate;
}
.grid-lines {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(0, 44, 100, 0.06) 1px, transparent 1px),
		linear-gradient(90deg, rgba(0, 44, 100, 0.06) 1px, transparent 1px);
	background-size: 48px 48px;
	-webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 30%, transparent 75%);
	mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 30%, transparent 75%);
}
@keyframes drift1 {
	to {
		transform: translate(120px, 80px) scale(1.15);
	}
}
@keyframes drift2 {
	to {
		transform: translate(-140px, 120px) scale(0.9);
	}
}
@keyframes drift3 {
	to {
		transform: translate(-200px, -60px) scale(1.2);
	}
}

/* Hjältens innehåll tonar in en gång vid sidladdning */
.rise {
	animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.d2 {
	animation-delay: 0.1s;
}
.d3 {
	animation-delay: 0.2s;
}
.d4 {
	animation-delay: 0.3s;
}
@keyframes rise {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
}

/* Skärmbilden lutar lätt och rätar upp sig när man scrollar */
.stage {
	perspective: 1600px;
}
.stage .hero-shot {
	transform: rotateX(var(--tilt, 0deg));
	transform-origin: 50% 0;
}

/* Sektioner tonar in när de syns (bara när skriptet körs) */
.js [data-reveal] {
	opacity: 0;
	transform: translateY(16px);
	transition:
		opacity 0.6s ease-out,
		transform 0.6s ease-out;
}
.js [data-reveal].in {
	opacity: 1;
	transform: none;
}

@media (max-width: 820px) {
	.orb {
		filter: blur(50px);
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		animation-delay: 0s !important;
		transition-duration: 0.01ms !important;
	}
}

