/* "Swiss Grid" design: white, black type, hairlines, square corners, red only in the logo. */

@font-face {
	font-family: "Schibsted Grotesk";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url(/fonts/schibsted-grotesk-latin-400-normal.woff2) format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Schibsted Grotesk";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url(/fonts/schibsted-grotesk-latin-ext-400-normal.woff2) format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Schibsted Grotesk";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url(/fonts/schibsted-grotesk-latin-500-normal.woff2) format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Schibsted Grotesk";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url(/fonts/schibsted-grotesk-latin-ext-500-normal.woff2) format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Schibsted Grotesk";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url(/fonts/schibsted-grotesk-latin-700-normal.woff2) format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Schibsted Grotesk";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url(/fonts/schibsted-grotesk-latin-ext-700-normal.woff2) format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
	--ink: #111111;
	--text: #4a4a4a;
	--muted: #6b6b6b;
	--line: #e4e4e4;
	--field: #bdbdbd;
	--brand-red: #d52b1e; /* logo only */
	--error: #b42318;
	--success: #1e6b3c;
}

* {
	box-sizing: border-box;
}

html {
	background: #ffffff;
}

body {
	margin: 0;
	background: #ffffff;
	color: var(--ink);
	font-family: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
	font-size: 15px;
	line-height: 1.45;
	-webkit-text-size-adjust: 100%;
}

/* One column, full height on phones; a framed column on larger screens. */
.page {
	min-height: 100vh;
	min-height: 100dvh;
	max-width: 520px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
}
@media (min-width: 600px) {
	html,
	body {
		background: #f6f6f6;
	}
	.page {
		margin: 40px auto;
		min-height: 0;
		background: #ffffff;
		border: 1px solid var(--line);
	}
}

p,
h1 {
	margin: 0;
}
button {
	font: inherit;
	color: inherit;
}
a {
	color: inherit;
}
[hidden] {
	display: none !important;
}
:focus-visible {
	outline: 2px solid var(--ink);
	outline-offset: 2px;
}

/* ---- Top bar --------------------------------------------------------- */

.topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 20px;
	border-bottom: 1px solid var(--line);
}
.logo {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 0;
	text-decoration: none;
	color: var(--ink);
}
.wordmark {
	font-size: 19px;
	font-weight: 700;
	letter-spacing: -0.02em;
}
.wordmark .hyphen {
	color: var(--brand-red);
}
.langs {
	display: flex;
	gap: 4px;
}
.langs button {
	min-width: 36px;
	min-height: 44px;
	padding: 0 4px;
	border: 0;
	background: none;
	font-size: 13px;
	color: var(--muted);
	cursor: pointer;
}
.langs button[aria-current="true"] {
	color: var(--ink);
	font-weight: 700;
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 6px;
}

/* ---- Content --------------------------------------------------------- */

.main {
	flex: 1;
	padding: 28px 20px 32px;
}
.eyebrow {
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted);
}
h1 {
	margin: 10px 0;
	font-size: 32px;
	line-height: 1.08;
	font-weight: 700;
	letter-spacing: -0.02em;
}
h1:focus {
	outline: none;
}
.lead {
	font-size: 15px;
	color: var(--text);
}
.lead b {
	color: var(--ink);
	white-space: nowrap;
}

/* 01 / 02 progress: a rule above each step, black when active or done. */
.steps {
	list-style: none;
	margin: 24px 0 26px;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}
.steps li {
	border-top: 2px solid var(--line);
	padding-top: 8px;
	font-size: 13px;
	color: var(--muted);
}
.steps li b {
	margin-right: 6px;
}
.steps li.is-active {
	border-color: var(--ink);
	color: var(--ink);
}
.steps li.is-done {
	border-color: var(--ink);
}
.steps li.is-done b {
	color: var(--ink);
}
.steps.is-complete li {
	border-color: var(--success);
}
.steps.is-complete li b {
	color: var(--ink);
}
#screen-pin .steps {
	margin-top: 18px;
}
#screen-success .steps {
	margin: 0 0 32px;
}

/* ---- Form ------------------------------------------------------------ */

form {
	display: flex;
	flex-direction: column;
}
label {
	font-size: 13px;
	font-weight: 700;
	margin-bottom: 8px;
}
.input {
	display: block;
	width: 100%;
	height: 52px;
	padding: 0 14px;
	border: 1px solid var(--field);
	border-radius: 0;
	background: #ffffff;
	color: var(--ink);
	font: inherit;
	font-size: 18px;
	-webkit-appearance: none;
	appearance: none;
}
.input::placeholder {
	color: #a3a3a3;
}
.input:focus,
.pin-digit:focus {
	outline: none;
	border-color: var(--ink);
	box-shadow: inset 0 0 0 1px var(--ink);
}
.input[readonly] {
	background: #f6f6f6;
}
[aria-invalid="true"] {
	border-color: var(--error) !important;
	box-shadow: inset 0 0 0 1px var(--error) !important;
}
.hint {
	margin: 6px 0 18px;
	font-size: 12px;
	color: var(--muted);
}

.consent {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin: 0 0 22px;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
	cursor: pointer;
}
.consent input {
	flex: none;
	width: 22px;
	height: 22px;
	margin: 0;
	accent-color: var(--ink);
}
.consent input[aria-invalid="true"] {
	outline: 2px solid var(--error);
	outline-offset: 1px;
}

.primary {
	height: 56px;
	padding: 0 20px;
	border: 0;
	border-radius: 0;
	background: var(--ink);
	color: #ffffff;
	font-size: 16px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	text-align: left;
	cursor: pointer;
}
.primary:hover {
	background: #333333;
}
.primary:disabled {
	opacity: 0.55;
	cursor: wait;
}

/* Message under the button: grey info, or red error. */
.note {
	margin-top: 16px;
	display: flex;
	gap: 10px;
	font-size: 13px;
	color: var(--muted);
}
.note svg {
	flex: none;
	margin-top: 2px;
}
.note .icon-error,
.note.is-error .icon-info {
	display: none;
}
.note.is-error .icon-error {
	display: block;
}
.note.is-error {
	font-size: 14px;
	color: var(--error);
}
#pin-message {
	margin: 10px 0 22px;
}

/* ---- PIN step -------------------------------------------------------- */

.back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	padding: 0;
	border: 0;
	background: none;
	font-size: 14px;
	cursor: pointer;
}
.back span {
	text-decoration: underline;
	text-underline-offset: 3px;
}
#pin-sent {
	margin-bottom: 24px;
}
.pin {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	margin-bottom: 22px;
}
.pin:has(+ #pin-message:not([hidden])) {
	margin-bottom: 0;
}
.pin-digit {
	width: 100%;
	height: 68px;
	padding: 0;
	border: 1px solid var(--field);
	border-radius: 0;
	background: #ffffff;
	color: var(--ink);
	font: inherit;
	font-size: 30px;
	font-weight: 700;
	text-align: center;
	-webkit-appearance: none;
	appearance: none;
}
.resend {
	margin-top: 20px;
	padding-top: 14px;
	border-top: 1px solid var(--line);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	font-size: 14px;
	color: var(--muted);
}
.link {
	min-height: 44px;
	padding: 0;
	border: 0;
	background: none;
	font-size: 14px;
	color: var(--ink);
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}
.link:disabled {
	color: var(--muted);
	text-decoration: none;
	cursor: default;
}

/* ---- Success --------------------------------------------------------- */

.success-mark {
	width: 56px;
	height: 56px;
	background: var(--success);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 22px;
}
#screen-success .lead {
	margin-bottom: 28px;
}
.summary {
	margin: 0 0 20px;
	border-top: 1px solid var(--ink);
}
.summary div {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 0;
	border-bottom: 1px solid var(--line);
	font-size: 14px;
}
.summary dt {
	color: var(--muted);
}
.summary dd {
	margin: 0;
	font-weight: 700;
	text-align: right;
	overflow-wrap: anywhere;
}

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

.footer {
	padding: 16px 20px 20px;
	border-top: 1px solid var(--line);
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 12px;
	color: var(--muted);
}
.footer nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0 16px;
}
.footer a {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	color: var(--muted);
}
.footer a:hover {
	color: var(--ink);
}
