/* Inovex – inovex.no */

@font-face {
	font-family: "Bricolage Grotesque";
	src: url("fonts/bricolage-grotesque.woff2") format("woff2-variations"), url("fonts/bricolage-grotesque.woff2") format("woff2");
	font-weight: 200 800;
	font-stretch: 75% 100%;
	font-display: swap;
}

@font-face {
	font-family: "Kalam";
	src: url("fonts/kalam-400.woff2") format("woff2");
	font-weight: 400;
	font-display: swap;
}

:root {
	--paper: #f4f4f6;
	--paper-2: #e8e8ee;
	--ink: #16161d;
	--ink-soft: #55556a;
	--line: #d4d4dc;

	/* Inovex purple. --accent is for shapes and large type only (3.8:1 on paper);
	   use --accent-text for normal text on light backgrounds and
	   --accent-on-dark for text on --ink. All meet WCAG AA. */
	--accent: #7b61ff;
	--accent-text: #5b3fd6;
	--accent-on-dark: #b3a4ff;

	/* Warning colour inside the product illustrations */
	--warn: #e8b23a;

	--stayput: #3858e9;
	--stayput-dark: #2a44c2;
	--note: #ffd60a;

	/* borettslag.app (Tailwind green) */
	--brl: #15803d;
	--brl-dark: #14532d;
	--brl-50: #f0fdf4;
	--brl-100: #dcfce7;
	--brl-200: #bbf7d0;

	--font: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
	--hand: "Kalam", "Bricolage Grotesque", cursive;
	--wrap: 1180px;
	--gutter: clamp(16px, 4vw, 40px);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 72px;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font);
	font-size: 18px;
	line-height: 1.6;
	font-variation-settings: "opsz" 14;
	-webkit-font-smoothing: antialiased;
}

img,
svg {
	display: block;
	max-width: 100%;
}

a {
	color: inherit;
}

p {
	margin: 0 0 1em;
}

h1,
h2,
h3,
h4 {
	margin: 0;
}

:focus-visible {
	outline: 3px solid var(--accent-text);
	outline-offset: 3px;
	border-radius: 4px;
}

.story--stayput :focus-visible {
	outline-color: #fff;
}

.contact :focus-visible,
.foot :focus-visible {
	outline-color: var(--accent-on-dark);
}

.wrap {
	max-width: var(--wrap);
	margin: 0 auto;
	padding-left: var(--gutter);
	padding-right: var(--gutter);
}

.skip {
	position: absolute;
	left: -999px;
	top: 8px;
	z-index: 20;
	background: var(--ink);
	color: #fff;
	padding: 8px 14px;
	border-radius: 6px;
}

.skip:focus {
	left: 8px;
}

/* ---------- Header ---------- */

.top {
	position: sticky;
	top: 0;
	z-index: 10;
	background: rgba(244, 244, 246, 0.92);
	backdrop-filter: saturate(1.4) blur(10px);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
}

.top__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	height: 68px;
}

.logo {
	display: inline-flex;
	align-items: center;
	color: var(--ink);
	text-decoration: none;
}

.logo__svg {
	display: block;
	height: 27px;
	width: auto;
}

.nav {
	display: flex;
	align-items: center;
	gap: 26px;
	font-size: 16px;
	font-weight: 500;
}

.nav a {
	text-decoration: none;
	color: var(--ink-soft);
}

.nav a:hover {
	color: var(--ink);
}

.nav .nav__cta {
	color: var(--ink);
	padding: 8px 16px;
	border: 1.5px solid var(--ink);
	border-radius: 999px;
}

.nav .nav__cta:hover {
	background: var(--ink);
	color: var(--paper);
}

/* ---------- Buttons ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 22px;
	border-radius: 999px;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
	border: 1.5px solid transparent;
	transition: background-color 0.15s, color 0.15s;
}

.btn--ink {
	background: var(--ink);
	color: var(--paper);
}

.btn--ink:hover {
	background: var(--accent-text);
}

.btn--line {
	border-color: var(--ink);
}

.btn--line:hover {
	background: var(--paper-2);
}

.btn--white {
	background: #fff;
	color: var(--stayput-dark);
}

.btn--white:hover {
	background: #e9edff;
}

.btn--green {
	background: var(--brl);
	color: #fff;
}

.btn--green:hover {
	background: var(--brl-dark);
}

.actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 32px;
}

/* ---------- Shared bits ---------- */

.h2 {
	margin: 0 0 16px;
	font-size: clamp(38px, 5vw, 60px);
	line-height: 1;
	font-weight: 740;
	font-stretch: 80%;
	letter-spacing: -0.015em;
	font-variation-settings: "opsz" 96;
}

.h3 {
	margin: 88px 0 24px;
	font-size: 26px;
	line-height: 1.15;
	font-weight: 680;
	font-stretch: 85%;
}

.section-lead {
	max-width: 34em;
	color: var(--ink-soft);
	font-size: 19px;
	margin-bottom: 56px;
}

.l {
	display: block;
	height: 8px;
	margin-bottom: 9px;
	border-radius: 4px;
	background: var(--paper-2);
}

.l--t {
	height: 14px;
	width: 68%;
	margin-bottom: 14px;
	background: #d6d6de;
}

.l--90 { width: 90%; }
.l--80 { width: 80%; }
.l--70 { width: 70%; }
.l--60 { width: 60%; }

.l--img {
	height: 70px;
	margin: 14px 0;
}

.switch {
	position: relative;
	flex: none;
	width: 36px;
	height: 20px;
	border-radius: 999px;
	background: #c6c6d0;
	transition: background-color 0.3s;
}

.switch i {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: #fff;
	transition: transform 0.3s;
}

.switch.is-on {
	background: var(--stayput);
}

.switch.is-on i {
	transform: translateX(16px);
}

.avatar {
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--brl-200);
	color: var(--brl-dark);
	font-size: 10.5px;
	font-weight: 700;
}

.avatar--b {
	background: #fde7b4;
	color: #6b4a06;
}

.sign {
	display: grid;
	grid-template-columns: 26px 1fr auto;
	align-items: center;
	gap: 10px;
	padding: 8px 0;
	border-top: 1px solid var(--paper-2);
	font-size: 13px;
}

.sign b {
	font-size: 12px;
	font-weight: 600;
	color: #8a6d1d;
}

.sign--ok b {
	color: var(--brl);
}

.sign--ok b::before {
	content: "✓ ";
}

/* ---------- Hero ---------- */

.hero {
	padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 8vw, 112px);
	overflow: hidden;
}

.hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
	align-items: center;
	gap: clamp(32px, 4vw, 64px);
}

.hero h1 {
	font-size: clamp(46px, 6.2vw, 80px);
	line-height: 0.9;
	font-weight: 780;
	font-stretch: 77%;
	letter-spacing: -0.012em;
	font-variation-settings: "opsz" 96;
}

.lead {
	margin-top: 28px;
	max-width: 29em;
	font-size: 20px;
	color: var(--ink-soft);
}

/* The desk: a loose pile of real product fragments */
.desk {
	position: relative;
	justify-self: end;
	width: 560px;
	height: 580px;
}

.card {
	position: absolute;
	background: #fff;
	border-radius: 14px;
	border: 1px solid var(--line);
	box-shadow: 0 28px 50px -30px rgba(22, 22, 29, 0.5), 0 2px 0 rgba(22, 22, 29, 0.03);
	animation: settle 0.9s cubic-bezier(0.2, 0.8, 0.25, 1) both;
}

@keyframes settle {
	from {
		opacity: 0;
		transform: translateY(40px) rotate(var(--r-from, 0deg));
	}
	to {
		opacity: 1;
		transform: translateY(0) rotate(var(--r, 0deg));
	}
}

.c-invoice {
	--r: 2.5deg;
	--r-from: 8deg;
	top: 70px;
	right: 0;
	width: 280px;
	padding: 18px 18px 10px;
	animation-delay: 0.15s;
}

.c-invoice__top {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--brl);
}

.dot-green {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--brl);
}

.c-invoice__who {
	margin-top: 10px;
	font-weight: 650;
	font-size: 16px;
}

.c-invoice__sum {
	margin: 2px 0 10px;
	font-size: 30px;
	font-weight: 760;
	font-stretch: 80%;
	letter-spacing: -0.01em;
}

.c-page {
	--r: -3deg;
	--r-from: -9deg;
	top: 300px;
	left: 0;
	width: 270px;
	padding: 20px 20px 22px;
	animation-delay: 0.3s;
}

.c-page__note {
	position: absolute;
	right: -46px;
	top: 52px;
	width: 150px;
	padding: 12px 12px 14px;
	border-radius: 10px;
	background: var(--note);
	font-size: 12.5px;
	line-height: 1.35;
	box-shadow: 0 14px 24px -14px rgba(22, 22, 29, 0.6);
	transform: rotate(4deg);
}

.c-page__note strong {
	display: block;
	font-size: 14.5px;
}

.c-page__note::before {
	content: "";
	position: absolute;
	top: -7px;
	left: 50%;
	width: 14px;
	height: 14px;
	margin-left: -7px;
	border-radius: 50%;
	background: var(--warn);
	box-shadow: 0 0 0 3px var(--ink);
}

.c-term {
	--r: 1.5deg;
	--r-from: 6deg;
	right: 0;
	bottom: 0;
	width: 250px;
	padding: 0 16px 14px;
	background: var(--ink);
	border-color: var(--ink);
	color: #d9d9e3;
	font-size: 13px;
	line-height: 1.75;
	animation-delay: 0.45s;
}

.c-term__bar {
	display: flex;
	gap: 6px;
	padding: 12px 0 8px;
}

.c-term__bar i {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #3a3a48;
}

.c-term code {
	display: block;
	font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
	font-size: 12.5px;
}

.t-mute {
	color: #a6a6b4;
}

.t-ok {
	color: #7ee2a8;
}

.c-toggle {
	--r: -2deg;
	--r-from: -6deg;
	top: 0;
	left: 20px;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 16px;
	border-radius: 999px;
	font-size: 13.5px;
	font-weight: 500;
	animation-delay: 0.6s;
}

.c-toggle__label {
	font-weight: 700;
	color: var(--stayput-dark);
}

.scribble {
	position: absolute;
	width: 110px;
	height: 64px;
	fill: none;
	stroke: var(--accent);
	stroke-width: 2.2;
	stroke-linecap: round;
	stroke-linejoin: round;
	overflow: visible;
}

.scribble path {
	stroke-dasharray: 200;
	stroke-dashoffset: 200;
	animation: draw 0.8s ease-out 1.1s forwards;
}

@keyframes draw {
	to {
		stroke-dashoffset: 0;
	}
}

.note-hand {
	position: absolute;
	margin: 0;
	font-family: var(--hand);
	font-size: 19px;
	line-height: 1.15;
	color: var(--accent-text);
	opacity: 0;
	animation: fade 0.5s ease-out 1.3s forwards;
}

@keyframes fade {
	to {
		opacity: 1;
	}
}

.s1 {
	top: 190px;
	left: 150px;
	width: 120px;
}

.n1 {
	top: 150px;
	left: 0;
	width: 170px;
	transform: rotate(-4deg);
}

.s2 {
	top: 318px;
	left: 318px;
	width: 90px;
	transform: rotate(8deg);
}

.n2 {
	top: 300px;
	left: 405px;
	width: 150px;
	transform: rotate(3deg);
}

/* ---------- Stories (product scroll sections) ---------- */

.story {
	--view: 390px;
	padding: clamp(72px, 9vw, 128px) 0 clamp(40px, 6vw, 80px);
}

.kind {
	margin-bottom: 8px;
	font-size: 16px;
	font-weight: 600;
	opacity: 0.85;
}

.story__title {
	font-size: clamp(48px, 6.6vw, 80px);
	line-height: 0.88;
	font-weight: 790;
	font-stretch: 75%;
	letter-spacing: -0.015em;
	font-variation-settings: "opsz" 96;
}

.story__lead {
	max-width: 32em;
	margin-top: 20px;
	font-size: 20px;
}

.story__grid {
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
	gap: clamp(32px, 5vw, 80px);
	margin-top: 32px;
}

.step {
	position: relative;
	min-height: 72vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding-left: 28px;
}

/* The step in view gets a bar on the left. Text keeps full contrast in
   every state, so nothing depends on the dimmed look. */
.step::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 4px;
	height: 0;
	border-radius: 4px;
	background: currentColor;
	transform: translateY(-50%);
	transition: height 0.4s;
}

.step.is-active::before {
	height: 70%;
}

.story--brl .step::before {
	background: var(--brl);
}

.step h3 {
	margin-bottom: 12px;
	font-size: clamp(26px, 2.6vw, 34px);
	line-height: 1.08;
	font-weight: 720;
	font-stretch: 82%;
	letter-spacing: -0.01em;
}

.step p {
	max-width: 30em;
}

.step .btn {
	align-self: flex-start;
	margin-top: 12px;
}

.story__stage {
	position: relative;
}

.frame--inline {
	display: none;
}

.frame {
	position: sticky;
	top: calc(50vh - var(--view) / 2 - 10px);
	border-radius: 16px;
	background: #fff;
	color: var(--ink);
	overflow: hidden;
	box-shadow: 0 50px 80px -40px rgba(10, 20, 40, 0.55);
}

.frame__bar {
	display: flex;
	align-items: center;
	gap: 6px;
	height: 36px;
	padding: 0 14px;
	background: var(--paper-2);
	font-size: 12.5px;
	color: var(--ink-soft);
}

.frame__bar i {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #c6c6d0;
}

.frame__bar span {
	margin-left: 12px;
	padding: 2px 12px;
	border-radius: 999px;
	background: #fff;
}

/* Stay Put story */

.story--stayput {
	background: var(--stayput);
	color: #fff;
}

.story--stayput .step p {
	color: #eef1ff;
}

.sp-view {
	--note-h: 112px;
	--foot-h: 104px;
	position: relative;
	height: var(--view);
	overflow: hidden;
}

.sp-scroll {
	display: grid;
	grid-template-columns: 1.7fr 1fr;
	gap: 20px;
	padding: 22px;
	transition: transform 0.9s cubic-bezier(0.45, 0, 0.2, 1);
}

.sp-side {
	padding-top: 2px;
}

.sp-box {
	display: block;
	height: 56px;
	border-radius: 10px;
	background: var(--paper-2);
	margin-bottom: 14px;
}

.sp-box--s {
	height: 90px;
}

.sp-ghost {
	display: block;
	height: var(--note-h);
	margin-bottom: 14px;
	border-radius: 10px;
	border: 2px dashed transparent;
	transition: border-color 0.4s;
}

.sp-note {
	position: absolute;
	right: 22px;
	top: 94px;
	width: calc((100% - 64px) / 2.7);
	height: var(--note-h);
	padding: 12px 12px 14px;
	border-radius: 10px;
	background: var(--note);
	font-size: 12.5px;
	line-height: 1.35;
	box-shadow: 0 16px 26px -16px rgba(22, 22, 29, 0.7);
	transition: top 0.9s cubic-bezier(0.45, 0, 0.2, 1);
	z-index: 2;
}

.sp-note strong {
	display: block;
	font-size: 14.5px;
}

.sp-note em {
	display: inline-block;
	margin-top: 10px;
	padding: 4px 10px;
	border-radius: 6px;
	background: var(--ink);
	color: #fff;
	font-style: normal;
	font-weight: 600;
	font-size: 11.5px;
}

.sp-footer {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: var(--foot-h);
	display: flex;
	gap: 18px;
	align-items: center;
	padding: 0 22px;
	background: var(--ink);
	transform: translateY(100%);
	transition: transform 0.9s cubic-bezier(0.45, 0, 0.2, 1);
}

.sp-footer span {
	height: 8px;
	flex: 1;
	border-radius: 4px;
	background: #34443d;
}

.sp-panel {
	position: absolute;
	left: 22px;
	top: 118px;
	width: 250px;
	padding: 14px 16px;
	border-radius: 12px;
	background: #fff;
	border: 1px solid var(--line);
	box-shadow: 0 24px 40px -20px rgba(10, 20, 40, 0.45);
	font-size: 13px;
	z-index: 3;
	transition: opacity 0.4s, transform 0.4s;
}

.sp-panel__title {
	display: block;
	margin-bottom: 8px;
	font-weight: 700;
}

.sp-panel__row {
	display: flex;
	align-items: center;
	gap: 10px;
}

.sp-cart {
	position: absolute;
	left: 14px;
	right: 14px;
	bottom: 14px;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px;
	border-radius: 12px;
	background: #fff;
	border: 1px solid var(--line);
	box-shadow: 0 18px 30px -16px rgba(0, 0, 0, 0.45);
	font-size: 13px;
	line-height: 1.3;
	transform: translateY(140%);
	transition: transform 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.1);
	z-index: 4;
}

.sp-cart__img {
	flex: none;
	width: 40px;
	height: 40px;
	border-radius: 8px;
	background: linear-gradient(160deg, #e7c48a, #b47a2d);
}

.sp-cart__txt {
	flex: 1;
	min-width: 0;
}

.sp-cart__txt strong {
	display: block;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.sp-cart__txt span {
	color: var(--ink-soft);
}

.sp-cart__btn {
	flex: none;
	padding: 9px 13px;
	border-radius: 8px;
	background: var(--stayput);
	color: #fff;
	font-weight: 600;
	white-space: nowrap;
}

/* states */
.frame--sp[data-step="1"] .sp-panel .switch {
	animation: flip 0.01s linear 0.7s forwards;
}

@keyframes flip {
	to {
		background: var(--stayput);
	}
}

.frame--sp[data-step="1"] .sp-panel .switch i {
	animation: knob 0.3s ease-out 0.7s forwards;
}

@keyframes knob {
	to {
		transform: translateX(16px);
	}
}

.frame--sp:not([data-step="1"]) .sp-panel {
	opacity: 0;
	transform: translateY(10px);
}

.frame--sp:not([data-step="1"]) .sp-ghost {
	border-color: #c9d2cb;
}

.frame--sp[data-step="2"] .sp-scroll {
	transform: translateY(-300px);
}

.frame--sp[data-step="2"] .sp-note,
.frame--sp[data-step="4"] .sp-note {
	top: 14px;
}

.frame--sp[data-step="3"] .sp-scroll {
	transform: translateY(-460px);
}

.frame--sp[data-step="3"] .sp-footer {
	transform: none;
}

.frame--sp[data-step="3"] .sp-note {
	top: calc(var(--view) - var(--foot-h) - var(--note-h) - 14px);
}

.frame--sp[data-step="4"] .sp-scroll {
	transform: translateY(-160px);
}

.frame--sp[data-step="4"] .sp-cart {
	transform: none;
}

/* borettslag.app story */

.story--brl {
	background: var(--brl-50);
	color: var(--ink);
	border-top: 1px solid var(--brl-100);
}

.story--brl .kind,
.story--brl .story__title {
	color: var(--brl-dark);
}

.story--brl .step p {
	color: var(--ink-soft);
}

.story--brl .price {
	font-weight: 650;
	color: var(--brl-dark);
}

.brl {
	display: grid;
	grid-template-columns: 158px 1fr;
	height: var(--view);
}

.brl__nav {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 18px 10px;
	background: var(--brl-dark);
	color: #bfe9cf;
	font-size: 13px;
}

.brl__nav strong {
	margin: 0 8px 12px;
	color: #fff;
	font-size: 15px;
}

.brl__nav span {
	padding: 7px 10px;
	border-radius: 8px;
	transition: background-color 0.3s, color 0.3s;
}

.frame--brl[data-step="1"] [data-nav="1"],
.frame--brl[data-step="2"] [data-nav="2"],
.frame--brl[data-step="3"] [data-nav="3"],
.frame--brl[data-step="4"] [data-nav="4"] {
	background: var(--brl);
	color: #fff;
	font-weight: 600;
}

.brl__main {
	position: relative;
	overflow: hidden;
}

.screen {
	position: absolute;
	inset: 0;
	padding: 22px 24px;
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 0.45s, transform 0.45s;
	pointer-events: none;
}

.frame--brl[data-step="1"] [data-screen="1"],
.frame--brl[data-step="2"] [data-screen="2"],
.frame--brl[data-step="3"] [data-screen="3"],
.frame--brl[data-step="4"] [data-screen="4"] {
	opacity: 1;
	transform: none;
}

.screen h4 {
	margin-bottom: 14px;
	font-size: 22px;
	font-weight: 720;
	font-stretch: 85%;
}

.inv {
	padding: 14px 16px 6px;
	border-radius: 12px;
	border: 1px solid var(--line);
	margin-bottom: 12px;
}

.inv__head {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 8px;
	font-size: 13.5px;
	line-height: 1.35;
}

.inv__head strong {
	display: block;
}

.inv__head span {
	color: var(--ink-soft);
	font-size: 12.5px;
}

.inv__head b {
	white-space: nowrap;
	font-size: 16px;
}

.inv--muted {
	padding-bottom: 8px;
	border-style: dashed;
}

.inv--muted .inv__head strong,
.inv--muted .inv__head b {
	color: var(--ink-soft);
}

.sign--anim b {
	display: grid;
	justify-items: end;
}

.sign--anim .w,
.sign--anim .d {
	grid-area: 1 / 1;
	transition: opacity 0.3s;
}

.sign--anim .d {
	opacity: 0;
	color: var(--brl);
}

.sign--anim .d::before {
	content: "✓ ";
}

.frame--brl[data-step="1"] .sign--anim .w {
	opacity: 0;
	transition-delay: 1.2s;
}

.frame--brl[data-step="1"] .sign--anim .d {
	opacity: 1;
	transition-delay: 1.2s;
}

.dug {
	display: flex;
	align-items: center;
	gap: 14px;
	font-size: 14px;
	line-height: 1.35;
}

.dug strong {
	display: block;
}

.dug span {
	color: var(--ink-soft);
}

.dug__date {
	display: grid;
	place-items: center;
	width: 56px;
	height: 60px;
	border-radius: 12px;
	background: var(--brl-100);
	color: var(--brl-dark);
	line-height: 1;
}

.dug__date b {
	font-size: 26px;
}

.dug__date span {
	font-size: 12px;
	color: var(--brl-dark);
}

.meter {
	height: 10px;
	margin: 20px 0 8px;
	border-radius: 999px;
	background: var(--paper-2);
	overflow: hidden;
}

.meter span {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: var(--brl);
	transform-origin: left;
	transform: scaleX(0.2);
	transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s;
}

.frame--brl[data-step="2"] .meter span {
	transform: none;
}

.meter__txt {
	font-size: 13px;
	color: var(--ink-soft);
}

.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.chips span {
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--brl-50);
	border: 1px solid var(--brl-200);
	color: var(--brl-dark);
	font-size: 12.5px;
	font-weight: 600;
}

.req {
	margin: 0;
	padding: 0;
	list-style: none;
}

.req li {
	display: grid;
	grid-template-columns: 1fr auto auto;
	align-items: center;
	gap: 12px;
	padding: 12px 2px;
	border-top: 1px solid var(--paper-2);
	font-size: 14px;
}

.req li:first-child {
	border-top: 0;
}

.req em {
	font-style: normal;
	color: var(--ink-soft);
	font-size: 12.5px;
}

.st {
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 11.5px;
	font-weight: 650;
	white-space: nowrap;
}

.st--new {
	background: #e3e8ff;
	color: var(--stayput-dark);
}

.st--work {
	background: #fbefd2;
	color: #7a5408;
}

.st--ok {
	background: var(--brl-100);
	color: var(--brl-dark);
}

.plan {
	margin: 0;
	padding: 0;
	list-style: none;
}

.plan li {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px;
	margin-bottom: 8px;
	border-radius: 12px;
	border: 1px solid var(--line);
	font-size: 14px;
	line-height: 1.35;
}

.plan strong {
	display: block;
}

.plan li span:not(.plan__m) {
	color: var(--ink-soft);
	font-size: 12.5px;
}

.plan__m {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 10px;
	background: var(--paper-2);
	font-weight: 700;
	font-size: 13px;
}

.plan .is-soon {
	border-color: var(--warn);
	background: #fffaeb;
}

.plan .is-soon .plan__m {
	background: var(--warn);
	color: var(--ink);
}

/* ---------- Services ---------- */

.services {
	padding: clamp(72px, 9vw, 128px) 0;
	background: #fff;
}

.svc {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	gap: clamp(28px, 5vw, 72px);
	align-items: center;
	padding: 40px 0;
	border-top: 1.5px solid var(--ink);
}

.svc--flip .svc__text {
	order: 2;
}

.svc h3 {
	margin-bottom: 12px;
	font-size: clamp(30px, 3.4vw, 42px);
	line-height: 1;
	font-weight: 730;
	font-stretch: 80%;
	letter-spacing: -0.01em;
}

.svc p {
	max-width: 30em;
	color: var(--ink-soft);
}

.svc__art {
	display: flex;
	justify-content: center;
	padding: 36px 24px;
	border-radius: 20px;
	background: var(--paper);
}

.code {
	width: 100%;
	max-width: 470px;
	padding: 18px 20px;
	border-radius: 12px;
	background: var(--ink);
	color: #d5e3db;
	font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
	font-size: 13px;
	line-height: 1.8;
	overflow-x: auto;
	transform: rotate(-1deg);
	box-shadow: 0 30px 50px -30px rgba(22, 22, 29, 0.6);
}

.code code {
	display: block;
	white-space: pre;
	font-family: inherit;
}

.code .k { color: #f0a0c0; }
.code .f { color: #8fc8ff; }
.code .s { color: #b9e4a3; }
.code .c { color: #ffd479; }
.code .v { color: #e8c7ff; }
.code .m { color: #a6a6b4; }

.wpanel {
	width: 100%;
	max-width: 320px;
	border-radius: 12px;
	background: #fff;
	border: 1px solid #dcdcde;
	box-shadow: 0 30px 50px -30px rgba(22, 22, 29, 0.5);
	font-size: 13.5px;
	transform: rotate(1.5deg);
}

.wpanel__tabs {
	display: flex;
	gap: 18px;
	padding: 12px 16px 0;
	border-bottom: 1px solid #e5e5e5;
	color: #50575e;
}

.wpanel__tabs span {
	padding-bottom: 10px;
}

.wpanel__tabs .is-on {
	color: #1e1e1e;
	font-weight: 600;
	box-shadow: inset 0 -2px 0 #1e1e1e;
}

.wpanel__block {
	display: flex;
	gap: 10px;
	padding: 14px 16px;
	border-bottom: 1px solid #e5e5e5;
	line-height: 1.35;
}

.wpanel__block strong {
	display: block;
}

.wpanel__block span {
	color: #50575e;
	font-size: 12.5px;
}

.wpanel__icon {
	flex: none;
	width: 24px;
	height: 24px;
	border-radius: 6px;
	border: 2px solid #1e1e1e;
}

.wpanel__sec {
	padding: 14px 16px;
	border-bottom: 1px solid #e5e5e5;
}

.wpanel__sec:last-child {
	border-bottom: 0;
}

.wpanel__row {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 10px;
}

.uptime {
	width: 100%;
	max-width: 420px;
	padding: 18px 20px;
	border-radius: 12px;
	background: #fff;
	border: 1px solid var(--line);
	box-shadow: 0 30px 50px -30px rgba(22, 22, 29, 0.5);
	transform: rotate(-1.2deg);
	font-size: 13.5px;
}

.uptime__head,
.uptime__foot {
	display: flex;
	justify-content: space-between;
	gap: 12px;
}

.uptime__foot {
	color: var(--ink-soft);
	font-size: 12px;
}

.ok {
	color: var(--brl);
	font-weight: 650;
}

.ok::before {
	content: "";
	display: inline-block;
	width: 8px;
	height: 8px;
	margin-right: 6px;
	border-radius: 50%;
	background: var(--brl);
	box-shadow: 0 0 0 4px var(--brl-100);
}

.bars {
	display: grid;
	grid-template-columns: repeat(30, 1fr);
	gap: 3px;
	height: 34px;
	margin: 14px 0 10px;
}

.bars i {
	border-radius: 2px;
	background: #34c26c;
}

.bars i:nth-child(11) {
	background: var(--warn);
	transform: scaleY(0.7);
	transform-origin: bottom;
}

.steps {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 28px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: step;
}

.steps li {
	counter-increment: step;
	font-size: 16.5px;
	color: var(--ink-soft);
}

.steps li::before {
	content: counter(step);
	display: block;
	margin-bottom: 10px;
	font-size: 64px;
	line-height: 1;
	font-weight: 790;
	font-stretch: 75%;
	color: var(--accent);
	font-variation-settings: "opsz" 96;
}

.steps strong {
	display: block;
	margin-bottom: 4px;
	color: var(--ink);
	font-size: 19px;
}

/* ---------- About ---------- */

.about {
	padding: clamp(72px, 9vw, 128px) 0;
}

.about__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	gap: clamp(32px, 6vw, 96px);
	align-items: start;
}

.about p {
	max-width: 34em;
	font-size: 19px;
}

.stack {
	padding: 28px 30px;
	border-radius: 20px;
	background: var(--paper-2);
}

.stack__title {
	margin-bottom: 12px;
	font-size: 19px;
	font-weight: 680;
}

.stack ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.stack li {
	padding: 9px 0;
	border-top: 1px solid var(--line);
	font-size: 17px;
}

/* ---------- Contact ---------- */

.contact {
	padding: clamp(80px, 11vw, 144px) 0;
	background: var(--ink);
	color: var(--paper);
}

.contact__title {
	margin-bottom: 16px;
	font-size: clamp(42px, 6vw, 76px);
	line-height: 0.92;
	font-weight: 790;
	font-stretch: 75%;
	letter-spacing: -0.015em;
	font-variation-settings: "opsz" 96;
}

.contact p {
	max-width: 30em;
	color: #c9c9d3;
	font-size: 19px;
}

.contact__mail {
	display: inline-block;
	margin-top: 12px;
	font-size: clamp(26px, 4.4vw, 52px);
	font-weight: 650;
	font-stretch: 85%;
	color: var(--accent-on-dark);
	text-decoration: none;
	border-bottom: 3px solid currentColor;
	overflow-wrap: anywhere;
}

.contact__mail:hover {
	color: #d4cbff;
}

/* ---------- Footer ---------- */

.foot {
	padding: 32px 0 40px;
	background: var(--ink);
	color: #a6a6b4;
	font-size: 15px;
	border-top: 1px solid #2c2c38;
}

.foot__inner {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 24px;
	flex-wrap: wrap;
}

.foot strong {
	color: var(--paper);
}

.foot p {
	margin: 0;
}

.foot nav {
	display: flex;
	gap: 22px;
	flex-wrap: wrap;
}

.foot a {
	color: #d9d9e3;
	text-decoration: none;
}

.foot a:hover {
	color: #fff;
}

/* ---------- Simple pages (personvern, 404) ---------- */

.page {
	padding: clamp(48px, 8vw, 96px) 0;
}

.page__inner {
	max-width: 760px;
}

.page h1 {
	margin: 0 0 12px;
	font-size: clamp(44px, 7vw, 72px);
	line-height: 0.95;
	font-weight: 780;
	font-stretch: 75%;
	letter-spacing: -0.015em;
}

.page h2 {
	margin: 40px 0 10px;
	font-size: 24px;
	font-weight: 680;
	font-stretch: 85%;
}

.page .updated {
	color: var(--ink-soft);
	margin-bottom: 32px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
	.desk {
		transform: scale(0.86);
		transform-origin: center right;
	}
}

@media (max-width: 960px) {
	.hero__inner {
		grid-template-columns: minmax(0, 1fr);
	}

	.desk {
		width: 100%;
		max-width: 620px;
		margin: 0 auto;
		transform: none;
	}

	.story {
		--view: 330px;
	}

	.story__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
	}

	.story__stage {
		display: none;
	}

	.frame--inline {
		display: block;
		position: relative;
		top: 0;
		margin-bottom: 22px;
		box-shadow: 0 30px 50px -30px rgba(10, 20, 40, 0.5);
	}

	.step {
		min-height: 0;
		justify-content: flex-start;
		padding: 28px 0 36px;
	}

	.step::before {
		display: none;
	}

	.svc,
	.about__inner {
		grid-template-columns: minmax(0, 1fr);
	}

	.svc--flip .svc__text {
		order: 0;
	}

	.steps {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 680px) {
	body {
		font-size: 17px;
	}

	.nav a:not(.nav__cta) {
		display: none;
	}

	.lead,
	.section-lead,
	.story__lead,
	.about p,
	.contact p {
		font-size: 17.5px;
	}

	/* Hero desk: scale the whole pile down instead of reflowing it */
	.desk {
		justify-self: start;
		width: 560px;
		max-width: none;
		margin: 0 0 calc(580px * -0.38) 0;
		transform: scale(0.62);
		transform-origin: top left;
	}

	.hero__inner {
		gap: 24px;
	}

	.story {
		--view: 290px;
	}

	.sp-view {
		--note-h: 100px;
		--foot-h: 84px;
	}

	.sp-scroll {
		grid-template-columns: 1.4fr 1fr;
		padding: 16px;
		gap: 14px;
	}

	.sp-note {
		right: 16px;
		top: 86px;
		width: calc((100% - 46px) / 2.4);
		font-size: 11.5px;
		padding: 10px;
	}

	.sp-note em {
		display: none;
	}

	.sp-panel {
		left: 16px;
		top: 100px;
		width: 220px;
	}

	.sp-cart__btn {
		padding: 8px 10px;
		font-size: 12px;
	}

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

	.brl__nav {
		display: none;
	}

	.screen {
		padding: 16px 18px;
	}

	.screen h4 {
		font-size: 19px;
		margin-bottom: 10px;
	}

	.step h3 {
		font-size: 25px;
	}

	.steps {
		grid-template-columns: minmax(0, 1fr);
	}

	.svc__art {
		padding: 24px 14px;
	}

	.code {
		font-size: 11px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-delay: 0s !important;
		transition-duration: 0.01ms !important;
	}
}
