/*
 * Overlapp – sidene pluginen eier: forside, bransjesider og juridiske dokumenter.
 * Bygger på designsystemet i Overlapp-temaet (tokens, typografi, knapper, kort).
 * Lastes bare på disse sidene.
 */

/* ---------- Forside: hero ---------- */

.ol-hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 7vw, 96px); }
.ol-hero::before, .ol-hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.ol-hero::before { width: 720px; height: 720px; right: -60px; top: -200px; background: radial-gradient(circle, rgba(31, 78, 95, .09), rgba(31, 78, 95, 0) 70%); }
.ol-hero::after { width: 620px; height: 620px; right: -320px; top: 40px; background: radial-gradient(circle, rgba(217, 107, 67, .12), rgba(217, 107, 67, 0) 70%); }
.ol-hero__inner { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; padding: 0 max(4vw, 18px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.ol-hero__title { margin: 0 0 20px; font-family: var(--serif); font-weight: 600; font-size: clamp(40px, 6vw, 68px); line-height: 1.03; letter-spacing: -.02em; text-wrap: balance; }
.ol-hero__lead { margin: 0 0 28px; font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 40ch; }
.ol-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.ol-hero__note { margin: 16px 0 0; font-size: 14px; color: var(--muted); font-weight: 600; }
.ol-hero__art { position: relative; min-height: 500px; }
.ol-device { position: absolute; background: var(--surface); border-radius: 26px; box-shadow: var(--shadow); padding: 22px 20px; font-size: 14px; }
.ol-device--out { left: 0; top: 10px; width: 62%; border: 8px solid #11171C; border-radius: 34px; transform: rotate(-3deg); }
.ol-device--in { right: 0; top: 150px; width: 58%; border: 1px solid var(--line); transform: rotate(2deg); }
.ol-device__bar { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 10px; }
.ol-device__progress { height: 5px; border-radius: 9px; background: var(--line); margin-bottom: 16px; overflow: hidden; }
.ol-device__progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--slate), var(--terra)); }
.ol-device__q { margin: 0 0 12px; font-size: 17px; font-weight: 700; line-height: 1.35; }
.ol-device__answer { min-height: 112px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #FFFEFC; color: var(--ink); line-height: 1.5; }
.ol-caret { display: inline-block; width: 2px; height: 1.05em; background: var(--terra); vertical-align: -2px; margin-left: 2px; animation: ol-blink 1s steps(1) infinite; }
.ol-device__mic { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; padding: 11px; border-radius: 10px; border: 1px dashed #A9C2CB; background: var(--slate-l); color: var(--slate); font-weight: 700; }
.ol-device__mic i { width: 12px; height: 12px; border-radius: 50%; background: var(--slate); box-shadow: 0 0 0 4px rgba(31, 78, 95, .15); }
.ol-device__hello { margin: 0 0 8px; font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1.15; }
.ol-device__chip { display: inline-block; margin: 0 0 14px; padding: 4px 11px; border-radius: 99px; background: var(--slate); color: #fff; font-size: 12px; font-weight: 700; }
.ol-device__tasks { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 7px; }
.ol-device__tasks li { position: relative; padding-left: 26px; }
.ol-device__tasks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid #B8C3C8; }
.ol-device__tasks li.is-done { color: var(--muted); text-decoration: line-through; }
.ol-device__tasks li.is-done::before { background: var(--ok); border-color: var(--ok); }
.ol-device__ask { display: grid; gap: 6px; }
.ol-device__ask p { margin: 0; padding: 9px 12px; border-radius: 14px; max-width: 88%; line-height: 1.4; }
.ol-device__ask .me { justify-self: end; background: var(--slate); color: #fff; border-bottom-right-radius: 4px; }
.ol-device__ask .ai { justify-self: start; background: #F3F1EC; border-bottom-left-radius: 4px; }
.ol-hero__overlap { position: absolute; left: 50%; top: 136px; transform: translateX(-12%); z-index: 3; padding: 6px 14px; border-radius: 99px; background: var(--terra); color: #fff; font-size: 13px; font-weight: 700; box-shadow: 0 8px 20px -8px rgba(185, 84, 47, .6); }
.ol-device--in { z-index: 2; }
@keyframes ol-blink { 50% { opacity: 0; } }
.ol-loss { background: var(--surface); border-block: 1px solid var(--line); }
.ol-loss .ol-h2 { max-width: 22ch; }
.ol-relay { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; position: relative; }
.ol-relay::before { content: ""; position: absolute; left: 28px; right: 28px; top: 27px; height: 2px; background: repeating-linear-gradient(90deg, var(--terra) 0 10px, transparent 10px 18px); }
.ol-relay__leg { position: relative; padding-right: 8px; }
.ol-relay__n { position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 18px; border-radius: 50%; background: var(--slate); color: #fff; font-weight: 700; font-size: 20px; box-shadow: 0 0 0 8px var(--paper); }
.ol-relay__leg:nth-child(2) .ol-relay__n { background: linear-gradient(90deg, var(--slate) 50%, var(--terra) 50%); }
.ol-relay__leg:nth-child(3) .ol-relay__n { background: var(--terra); }
.ol-relay h3 { margin: 0 0 8px; font-size: 20px; }
.ol-relay p { margin: 0; color: var(--muted); }
.ol-get { background: var(--surface); border-block: 1px solid var(--line); }
.ol-industry-grid { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.ol-industry { display: flex; flex-direction: column; gap: 2px; padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.ol-industry:hover { border-color: var(--terra); color: var(--ink); transform: translateY(-2px); }
.ol-industry__name { font-weight: 700; font-size: 17px; }
.ol-industry__meta { font-size: 14px; color: var(--muted); }
.ol-industry__name::after { content: " →"; color: var(--terra); }
.ol-privacy { background: var(--slate); color: #E6EEF1; }
.ol-privacy .ol-h2 { color: #fff; }
.ol-privacy a { color: #fff; }
.ol-privacy .ol-checks li { font-size: 17px; }
.ol-links { display: flex; flex-wrap: wrap; gap: 18px; font-weight: 700; }
.ol-pricecard { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 32px; box-shadow: var(--shadow); }
.ol-pricecard__price { margin: 0; font-family: var(--serif); font-size: clamp(48px, 6vw, 64px); font-weight: 600; line-height: 1; color: var(--slate); }
.ol-pricecard__note { margin: 6px 0 22px; color: var(--muted); font-weight: 600; }
.ol-pricecard .ol-checks { margin-bottom: 26px; }
.ol-faq { background: var(--surface); border-top: 1px solid var(--line); }
.ol-q { border-bottom: 1px solid var(--line); }
.ol-q summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; font-weight: 700; font-size: 18px; position: relative; }
.ol-q summary::-webkit-details-marker { display: none; }
.ol-q summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font-size: 26px; font-weight: 400; color: var(--terra); transition: transform .2s; }
.ol-q[open] summary::after { transform: rotate(45deg); }
.ol-q p { margin: 0 0 20px; color: var(--muted); max-width: 64ch; }
.ol-cta { background: var(--terra); color: #fff; text-align: center; }
.ol-cta__inner { display: grid; justify-items: center; gap: 6px; }
.ol-cta .ol-h2 { color: #fff; margin-bottom: 4px; }
.ol-cta p { margin: 0 0 22px; font-size: 19px; color: #FFF1EA; }
.ol-crumbs { margin: 0 0 12px; font-size: 14px; font-weight: 600; color: var(--muted); }
.ol-crumbs a { color: var(--muted); }
.ol-qlist { margin: 18px 0; padding: 0; list-style: none; counter-reset: q; display: grid; gap: 14px; }
.ol-qlist li { counter-increment: q; position: relative; padding: 16px 18px 16px 58px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font-size: 17px; }
.ol-qlist li::before { content: counter(q); position: absolute; left: 16px; top: 14px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--terra-l); color: var(--terra-d); font-weight: 700; font-size: 14px; }
.ol-checklist { position: sticky; top: 96px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px; box-shadow: var(--shadow); }
.ol-how--compact { background: var(--surface); border-top: 1px solid var(--line); }
.ol-industry-list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ol-industry-list .ol-h3 a { color: var(--ink); text-decoration: none; }
.ol-industry-list__q { margin: 12px 0 14px !important; font-family: var(--serif); font-size: 18px; line-height: 1.4; color: var(--ink) !important; }
.ol-arrow { font-weight: 700; text-decoration: none; }
.ol-arrow::after { content: " →"; color: var(--terra); }
.ol-legal__grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; }
.ol-toc { position: sticky; top: 96px; font-size: 14px; padding-top: 8px; }
.ol-toc__title { margin: 0 0 8px; font-weight: 700; }
.ol-toc ol { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.ol-toc a { color: var(--muted); text-decoration: none; }
.ol-toc a:hover { color: var(--slate); text-decoration: underline; }
.ol-legal__body { max-width: 720px; }
@media (max-width: 960px) {
	.ol-hero__inner, .ol-split { grid-template-columns: 1fr; }
	.ol-hero__art { min-height: 470px; max-width: 520px; width: 100%; margin: 0 auto; }
	.ol-relay { grid-template-columns: 1fr; gap: 28px; }
	.ol-relay::before { left: 27px; right: auto; top: 28px; bottom: 28px; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--terra) 0 10px, transparent 10px 18px); }
	.ol-relay__leg { padding-left: 76px; min-height: 56px; }
	.ol-relay__n { position: absolute; left: 0; top: 0; margin: 0; }
	.ol-industry-list { grid-template-columns: 1fr; }
	.ol-checklist, .ol-toc { position: static; }
	.ol-legal__grid { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 600px) {
	.ol-hero__actions .ol-btn { width: 100%; }
	.ol-hero__art { min-height: 560px; }
	.ol-device { font-size: 13px; padding: 16px 14px; }
	.ol-device--out { width: 74%; }
	.ol-device--in { width: 72%; top: 190px; }
	.ol-device__q { font-size: 15px; }
	.ol-hero__overlap { top: 170px; left: auto; right: 8px; transform: none; }
	.ol-pricecard { padding: 24px; }
}
.ol-how--compact .ol-relay__n { box-shadow: 0 0 0 8px var(--surface); }
/* ---------- Uten Overlapp-temaet: nødvendige tokens som reserve ---------- */
body:not(.ol-theme) { --paper: #FAF9F6; --surface: #fff; --ink: #1E242B; --muted: #5C6670; --line: #E6E2DA; --slate: #1F4E5F; --slate-d: #163A47; --slate-l: #EEF4F6; --terra: #D96B43; --terra-d: #B9542F; --terra-l: #FBEDE6; --ok: #2E7D5B; --radius: 14px; --shadow: 0 24px 50px -24px rgba(22, 58, 71, .35); --serif: Georgia, serif; --max: 1180px; }
