/* VisitSign: hemsida, konto och panel */
:root {
	--bg-dark: #081c17;
	--bg-deep: #0d2d25;
	--bg-green: #134336;
	--bg-soft: #eef5f3;
	--paper: #f6faf8;
	--text: #f7fbfa;
	--ink: #10211c;
	--ink-2: #2d4640;
	--muted: rgba(255, 255, 255, .78);
	--muted-dark: #557068;
	--line: rgba(255, 255, 255, .12);
	--line-dark: #dbe7e2;
	--card: rgba(255, 255, 255, .08);
	--accent: #7fe0b7;
	--accent-dark: #2f8f6b;
	--danger: #b42318;
	--radius-xl: 34px;
	--radius-lg: 26px;
	--radius-md: 18px;
	--max: 1200px;
	--shadow: 0 24px 70px rgba(0, 0, 0, .24);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
	margin: 0;
	font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	color: var(--ink);
	background: var(--paper);
}
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -.025em; }
p { margin: 0; }
.wrap { width: min(100% - 40px, var(--max)); margin: 0 auto; }

/* Knappar */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 0 22px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: inherit;
	font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap;
	transition: transform .15s, background-color .15s, border-color .15s, color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: var(--bg-dark); }
.btn-accent:hover { background: #95e9c6; }
.btn-light { background: #fff; color: var(--ink); }
.btn-ghost { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-ghost:hover { border-color: #fff; }
.btn-dark { background: var(--bg-green); color: #fff; }
.btn-dark:hover { background: var(--bg-deep); }
.btn-line { border-color: var(--line-dark); background: #fff; color: var(--ink); }
.btn-line:hover { border-color: var(--accent-dark); }
.btn-block { width: 100%; }

/* Sidhuvud */
.site-head {
	position: sticky; top: 0; z-index: 50;
	background: rgba(8, 28, 23, .82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
	border-bottom: 1px solid var(--line); color: #fff;
}
.site-head .wrap { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.site-head .brand img { height: 40px; }
.site-nav { display: flex; gap: 24px; margin-left: auto; font-size: 15px; font-weight: 600; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover { color: #fff; }
.site-head .actions { display: flex; gap: 10px; }
.site-head .btn { min-height: 42px; padding: 0 18px; font-size: 15px; }

/* Hero */
.hero {
	position: relative; overflow: hidden; color: #fff;
	min-height: calc(100dvh - 72px); display: flex; align-items: center;
	background: linear-gradient(180deg, rgba(4, 15, 13, .3), rgba(4, 15, 13, .62)), var(--hero-image) center / cover no-repeat;
}
.hero::before {
	content: ""; position: absolute; inset: 0;
	background:
		radial-gradient(circle at 18% 18%, rgba(126, 224, 183, .16), transparent 26%),
		radial-gradient(circle at 80% 78%, rgba(98, 212, 255, .12), transparent 28%),
		linear-gradient(135deg, rgba(5, 19, 17, .86) 0%, rgba(9, 46, 34, .6) 54%, rgba(11, 70, 49, .5) 100%);
}
.hero .wrap { position: relative; padding: 80px 0 96px; }
.hero .logo { height: 120px; margin-bottom: 36px; }
.hero h1 { max-width: 860px; font-size: clamp(34px, 6vw, 68px); font-weight: 800; overflow-wrap: break-word; }
.hero .lead { max-width: 640px; margin-top: 22px; color: var(--muted); font-size: clamp(17px, 2vw, 20px); }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero .chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 44px; }
.chip {
	display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px;
	border: 1px solid var(--line); border-radius: 999px; background: var(--card);
	color: var(--muted); font-size: 14px; font-weight: 600;
}
.chip::before { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); content: ""; }

/* Sektioner */
.section { padding: 96px 0; }
.section-dark { background: var(--bg-dark); color: #fff; }
.section-deep { background: var(--bg-deep); color: #fff; }
.eyebrow { display: block; margin-bottom: 14px; color: var(--accent-dark); font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.section-dark .eyebrow, .section-deep .eyebrow { color: var(--accent); }
.section h2 { max-width: 760px; font-size: clamp(30px, 4vw, 46px); font-weight: 800; }
.section .intro { max-width: 680px; margin-top: 16px; color: var(--muted-dark); font-size: 18px; }
.section-dark .intro, .section-deep .intro { color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 48px; counter-reset: step; }
.step { position: relative; padding: 30px; border: 1px solid var(--line-dark); border-radius: var(--radius-lg); background: #fff; }
.step::before {
	counter-increment: step; content: counter(step);
	display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 22px;
	border-radius: 14px; background: var(--bg-green); color: var(--accent); font-weight: 800;
}
.step h3 { font-size: 21px; }
.step p { margin-top: 10px; color: var(--muted-dark); }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.feature { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card); }
.feature h3 { font-size: 19px; }
.feature p { margin-top: 10px; color: var(--muted); font-size: 15.5px; }
.feature .icon {
	display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 20px;
	border-radius: 14px; background: rgba(127, 224, 183, .14); color: var(--accent);
}
.feature .icon svg { width: 24px; height: 24px; }

.audience { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.audience span {
	padding: 14px 22px; border: 1px solid var(--line-dark); border-radius: 999px; background: #fff;
	font-weight: 700;
}

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.checks { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.checks li { position: relative; padding: 18px 20px 18px 56px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--card); color: var(--muted); }
.checks li strong { display: block; color: #fff; }
.checks li::before {
	position: absolute; top: 20px; left: 20px; width: 22px; height: 22px; border-radius: 50%;
	background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23081c17' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
	content: "";
}

.faq { display: grid; gap: 12px; max-width: 820px; margin-top: 40px; }
.faq details { border: 1px solid var(--line-dark); border-radius: var(--radius-md); background: #fff; }
.faq summary { padding: 20px 24px; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { float: right; color: var(--accent-dark); content: "+"; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 24px 22px; color: var(--muted-dark); }

.cta-band {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
	padding: 48px; border-radius: var(--radius-xl);
	background: radial-gradient(120% 140% at 100% 0%, #1d5a47 0%, transparent 55%), var(--bg-green); color: #fff;
}
.cta-band h2 { font-size: clamp(26px, 3.4vw, 38px); }
.cta-band p { margin-top: 8px; color: var(--muted); }
.cta-band .cta { display: flex; flex-wrap: wrap; gap: 12px; }

.site-foot { padding: 40px 0; background: var(--bg-dark); color: var(--muted); font-size: 14px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.site-foot img { height: 30px; }
.site-foot nav { display: flex; gap: 20px; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: #fff; }

/* Konto (skapa konto, logga in) */
.auth { min-height: 100dvh; display: grid; grid-template-columns: 1fr 1.1fr; }
.auth-side {
	position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; justify-content: space-between; padding: 48px; color: #fff;
	background: linear-gradient(180deg, rgba(4, 15, 13, .45), rgba(4, 15, 13, .75)), var(--hero-image) center / cover no-repeat;
}
.auth-side::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(5, 19, 17, .85), rgba(11, 70, 49, .55)); }
.auth-side > * { position: relative; }
.auth-side img { height: 44px; }
.auth-side h2 { max-width: 460px; font-size: clamp(28px, 3vw, 40px); font-weight: 800; }
.auth-side p { max-width: 440px; margin-top: 14px; color: var(--muted); }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth-card { width: min(100%, 520px); }
.auth-card h1 { font-size: 32px; font-weight: 800; }
.auth-card .sub { margin-top: 8px; color: var(--muted-dark); }
.auth-card .alt { margin-top: 22px; color: var(--muted-dark); text-align: center; }
.auth-card .alt a { color: var(--accent-dark); font-weight: 700; }

/* Formulär */
.form { display: grid; gap: 18px; margin-top: 28px; }
.form { counter-reset: formstep; }
.form fieldset {
	display: grid; gap: 16px; min-width: 0; margin: 0; padding: 24px;
	border: 1px solid var(--line-dark); border-radius: var(--radius-md); background: #fff;
	box-shadow: 0 1px 2px rgba(16, 33, 28, .04);
}
/* Rubriken ligger inne i kortet (float tar den ur ramen), med stegnummer */
.form legend {
	float: left; display: flex; align-items: center; gap: 12px; width: 100%;
	margin: 0 0 4px; padding: 0 0 16px; border-bottom: 1px solid #edf3f0;
	color: var(--ink); font-size: 17px; font-weight: 800; letter-spacing: -.01em;
}
.form legend::before {
	counter-increment: formstep; content: counter(formstep);
	display: grid; place-items: center; flex: none; width: 30px; height: 30px;
	border-radius: 10px; background: var(--bg-green); color: var(--accent);
	font-size: 14px; font-weight: 800;
}
.form legend small { margin-left: auto; color: var(--muted-dark); font-size: 13px; font-weight: 500; letter-spacing: 0; }
.form legend + * { clear: both; }
.field { display: grid; gap: 6px; align-content: start; }
.field label { font-size: 14px; font-weight: 700; }
.field .hint { color: var(--muted-dark); font-size: 13px; }
.field input[type=text], .field input[type=email], .field input[type=password], .field input[type=datetime-local], .field select {
	width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--line-dark); border-radius: 14px;
	background: #fff; color: var(--ink); font: inherit;
}
.field input:not([type=radio]):not([type=checkbox]):focus, .field select:focus { border-color: var(--accent-dark); outline: none; box-shadow: 0 0 0 4px rgba(127, 224, 183, .35); }
.field.has-error input, .field.has-error select { border-color: var(--danger); }
.field .error { color: var(--danger); font-size: 13px; font-weight: 600; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.addon { display: flex; align-items: stretch; }
.addon input { border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important; }
.addon span {
	display: flex; align-items: center; padding: 0 14px; border: 1px solid var(--line-dark); border-left: 0;
	border-radius: 0 14px 14px 0; background: var(--bg-soft); color: var(--muted-dark); font-size: 14px; white-space: nowrap;
}
.options { display: grid; gap: 10px; }
.option { display: flex; gap: 12px; padding: 14px 16px; border: 1px solid var(--line-dark); border-radius: 14px; cursor: pointer; }
.option:has(input:checked) { border-color: var(--accent-dark); background: #f0faf5; }
.option input { flex: none; align-self: flex-start; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent-dark); }
.option:has(input:focus-visible) { outline: 2px solid var(--accent-dark); outline-offset: 2px; }
.option small { display: block; margin-top: 2px; font-weight: 500; }
.option strong { display: block; }
.option small { color: var(--muted-dark); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check input { margin-top: 3px; accent-color: var(--accent-dark); }

/* Skapa konto: steg, identitet, sök */
.steps-mini { display: grid; gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; counter-reset: mini; }
.steps-mini li { display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--line-dark); border-radius: 14px; background: #fff; color: var(--muted-dark); font-size: 14px; }
.steps-mini li::before { grid-row: span 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--bg-soft); color: var(--muted-dark); font-weight: 800; counter-increment: mini; content: counter(mini); }
.steps-mini li strong { color: var(--ink); }
.steps-mini li.is-current { border-color: var(--accent-dark); background: #f0faf5; }
.steps-mini li.is-current::before { background: var(--bg-green); color: var(--accent); }
.identity { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 16px; border: 1px solid #a8dcc3; border-radius: 14px; background: #e9f8f0; color: #17603b; font-size: 14.5px; }
.identity form { margin: 0 0 0 auto; }
.identity-badge { padding: 3px 9px; border-radius: 999px; background: #17603b; color: #fff; font-size: 11.5px; font-weight: 800; letter-spacing: .04em; }
.link-btn { padding: 0; border: 0; background: none; color: var(--accent-dark); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.addon-btn { padding: 0 18px; border: 1px solid var(--line-dark); border-left: 0; border-radius: 0 14px 14px 0; background: var(--bg-green); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.other-company { display: grid; gap: 16px; }
.other-company[hidden] { display: none; }
.notice.is-error { border-color: #f1c4bf; background: #fdecea; color: var(--danger); }
.notice.is-warning { border-color: #f3dfb0; background: #fff6d6; color: #6b5200; }
.bankid-start svg { flex: none; }

/* Panel */
.panel-head { background: var(--bg-dark); color: #fff; }
.panel-head .wrap { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.panel-head img { height: 32px; }
.panel-head .who { margin-left: auto; color: var(--muted); font-size: 14px; }
.panel-head form { margin: 0; }
.panel-head .btn { min-height: 38px; padding: 0 16px; font-size: 14px; }
.panel-main { padding: 40px 0 80px; }
.panel-title { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.panel-title h1 { font-size: 32px; font-weight: 800; }
.panel-title p { margin-top: 6px; color: var(--muted-dark); }
.crumb { display: inline-block; margin-bottom: 10px; color: var(--muted-dark); font-size: 14px; font-weight: 600; text-decoration: none; }
.crumb:hover { color: var(--ink); }
.card { padding: 26px; border: 1px solid var(--line-dark); border-radius: 22px; background: #fff; box-shadow: 0 1px 2px rgba(16, 33, 28, .04), 0 10px 30px rgba(16, 33, 28, .05); }
.card + .card { margin-top: 18px; }
.card h2 { font-size: 20px; }
.card .meta { margin-top: 4px; color: var(--muted-dark); font-size: 14px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.venue-card { display: flex; flex-direction: column; gap: 16px; }
.venue-card .url { display: inline-flex; gap: 6px; color: var(--accent-dark); font-weight: 700; text-decoration: none; word-break: break-all; }
.facts { display: grid; gap: 10px; margin: 0; }
.facts div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--paper); font-size: 14px; }
.facts dt { color: var(--muted-dark); }
.facts dd { margin: 0; font-weight: 700; text-align: right; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; background: #eef1f0; color: var(--ink-2); font-size: 12.5px; font-weight: 700; }
.badge::before { width: 7px; height: 7px; border-radius: 50%; background: #f59103; content: ""; }
.badge.is-open { background: #e3f6ec; color: #17603b; }
.badge.is-open::before { background: #2e9b5d; }
.notice { margin-bottom: 20px; padding: 14px 18px; border: 1px solid #a8dcc3; border-radius: 14px; background: #e9f8f0; color: #17603b; font-weight: 600; }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th { padding: 10px 12px; border-bottom: 1px solid var(--line-dark); color: var(--muted-dark); font-size: 12px; letter-spacing: .06em; text-align: left; text-transform: uppercase; }
.table td { padding: 14px 12px; border-bottom: 1px solid #edf3f0; }
.table tr:last-child td { border-bottom: 0; }
.table a { color: var(--accent-dark); font-weight: 700; text-decoration: none; }
.empty { padding: 24px; border: 1px dashed var(--line-dark); border-radius: 16px; color: var(--muted-dark); text-align: center; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* Mobil */
@media (max-width: 960px) {
	.site-nav { display: none; }
	.steps, .features { grid-template-columns: 1fr; }
	.split { grid-template-columns: 1fr; gap: 32px; }
	.auth { grid-template-columns: 1fr; }
	.auth-side { position: relative; height: auto; min-height: 220px; padding: 28px; }
	.auth-side h2, .auth-side p { display: none; }
	.grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.site-head .actions .btn-ghost { display: none; }
	.site-head .brand img { height: 32px; }
	.hero .logo { height: 84px; }
	.hero h1 { hyphens: auto; }
	.section { padding: 64px 0; }
	.cta-band { padding: 30px; }
	.row-2 { grid-template-columns: 1fr; }
	.addon { flex-direction: column; }
	.addon input { border-radius: 14px !important; }
	.addon span { border-left: 1px solid var(--line-dark); border-radius: 14px; margin-top: 6px; }
	.table th:nth-child(n+3), .table td:nth-child(n+3) { display: none; }
}

.pending-card { border-color: #f3dfb0; background: #fffbea; }
.pending-card .resend { margin-top: 16px; max-width: 560px; }

.option[hidden] { display: none; }

/* Sökning av företag */
.addon-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 96px; transition: background-color .15s; }
.addon-btn:hover { background: var(--bg-deep); }
.addon-btn:disabled { cursor: progress; opacity: .85; }
.addon-btn.is-loading::before {
	flex: none; box-sizing: border-box; width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%;
	animation: vs-spin .7s linear infinite; content: "";
}
@keyframes vs-spin { to { transform: rotate(360deg); } }
.lookup-status {
	display: flex; align-items: flex-start; gap: 10px; margin-top: 2px; padding: 12px 14px;
	border: 1px solid var(--line-dark); border-radius: 12px; background: var(--paper);
	color: var(--ink-2); font-size: 14px; font-weight: 600; line-height: 1.45;
	animation: vs-fade .2s ease;
}
.lookup-status[hidden] { display: none; }
.lookup-status.is-error { border-color: #f1c4bf; background: #fdecea; color: var(--danger); }
.lookup-status.is-ok { border-color: #a8dcc3; background: #e9f8f0; color: #17603b; }
.lookup-icon { display: inline-flex; flex: none; width: 20px; height: 20px; }
.lookup-icon svg { width: 20px; height: 20px; }
.option.is-new { animation: vs-pop .9s ease; }
@keyframes vs-fade { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
@keyframes vs-pop { 0% { box-shadow: 0 0 0 0 rgba(127, 224, 183, .7); } 100% { box-shadow: 0 0 0 14px rgba(127, 224, 183, 0); } }
