/* Community sign-up pop-up. Blue panel with the promise, white panel with the form.
   On phones it becomes a bottom sheet so the page stays visible behind it. */
.pdl-lead {
	--pl-blue: #0E3487; --pl-court: #1446B4; --pl-ball: #E4F222; --pl-ink: #14213D; --pl-muted: #5E6A80;
	--pl-line: #D9E0EB; --pl-soft: #F3F6FB;
	--pl-font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	position: fixed; inset: 0; z-index: 100001; display: grid; place-items: center; padding: 20px;
	font-family: var(--pl-font); color: var(--pl-ink); line-height: 1.45; -webkit-font-smoothing: antialiased;
}
.pdl-lead[hidden] { display: none; }
.pdl-lead *, .pdl-lead *::before, .pdl-lead *::after { box-sizing: border-box; }
.pdl-lead .pdl-icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pl-scrim { position: absolute; inset: 0; background: rgba(8, 18, 48, .55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); opacity: 0; transition: opacity .25s ease; }
.pl-dialog {
	position: relative; display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); width: min(920px, 100%); max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px);
	border-radius: 22px; overflow: hidden; background: #fff; box-shadow: 0 40px 90px -30px rgba(3, 12, 40, .7); outline: 0;
	opacity: 0; transform: translateY(14px) scale(.985); transition: opacity .25s ease, transform .3s cubic-bezier(.2, .8, .2, 1);
}
.pdl-lead.is-in .pl-scrim, .pdl-lead.is-in .pl-dialog { opacity: 1; transform: none; }
.pl-x {
	position: absolute; top: 14px; right: 14px; z-index: 3; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%;
	background: var(--pl-soft); color: var(--pl-ink); cursor: pointer; transition: background .15s, transform .15s;
}
.pl-x:hover { background: #E6ECF6; transform: rotate(90deg); }
.pl-x:focus-visible { outline: 2px solid var(--pl-court); outline-offset: 2px; }

/* Blue side */
.pl-side { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 14px; padding: 30px 30px 28px; color: #fff; background: linear-gradient(170deg, var(--pl-blue) 0%, #1446B4 100%); }
.pl-logo { display: inline-flex; align-self: flex-start; padding: 7px 12px; border-radius: 10px; background: #fff; }
.pl-logo img { display: block; height: 22px; width: auto; }
.pl-label { margin: 6px 0 0; color: var(--pl-ball); font-size: .86rem; font-weight: 700; }
.pl-big { margin: 0; font-size: clamp(1.9rem, 3.2vw, 2.45rem); font-weight: 850; line-height: 1.02; letter-spacing: -.035em; text-wrap: balance; }
.pl-big span { color: var(--pl-ball); }
.pl-lead { margin: 0; color: rgba(255, 255, 255, .82); font-size: .96rem; }
.pl-stats { display: flex; gap: 0; margin: 4px 0 0; padding: 14px 0 0; border-top: 1px solid rgba(255, 255, 255, .18); }
.pl-stats > div { display: flex; flex-direction: column; padding-right: 20px; }
.pl-stats > div + div { padding-left: 20px; border-left: 1px solid rgba(255, 255, 255, .2); }
.pl-stats dd { order: -1; margin: 0; color: var(--pl-ball); font-size: 1.55rem; font-weight: 850; letter-spacing: -.02em; line-height: 1.05; }
.pl-stats dt { color: rgba(255, 255, 255, .75); font-size: .8rem; }
.pl-points { display: grid; gap: 12px; margin: 4px 0 0; padding: 0; list-style: none; position: relative; z-index: 1; }
.pl-points li { display: flex; gap: 12px; align-items: flex-start; }
.pl-points .pdl-icon { width: 30px; height: 30px; padding: 6px; border-radius: 9px; background: rgba(228, 242, 34, .14); color: var(--pl-ball); }
.pl-points strong { display: block; font-size: .95rem; font-weight: 750; }
.pl-points span { display: block; color: rgba(255, 255, 255, .75); font-size: .85rem; line-height: 1.4; }
.pl-court { position: absolute; right: -60px; bottom: -40px; width: 300px; transform: rotate(-14deg); fill: none; stroke: rgba(255, 255, 255, .09); stroke-width: 1.2; pointer-events: none; }

/* Form side */
.pl-main { position: relative; overflow-y: auto; overscroll-behavior: contain; padding: 30px 32px 24px; }
.pl-h { margin: 0 44px 6px 0; color: var(--pl-ink); font-size: 1.6rem; font-weight: 820; letter-spacing: -.025em; line-height: 1.12; outline: 0; }
.pl-p { margin: 0 0 18px; color: var(--pl-muted); font-size: .95rem; }
.pl-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pl-field { display: block; margin: 0 0 12px; }
.pl-field > span { display: block; margin: 0 0 5px; font-size: .86rem; font-weight: 700; color: var(--pl-ink); }
.pdl-lead .pl-field input {
	display: block; width: 100%; height: 46px; padding: 0 14px; margin: 0; border: 1px solid var(--pl-line); border-radius: 12px; background: #fff;
	color: var(--pl-ink); font: inherit; font-size: 16px; box-shadow: none; transition: border-color .15s, box-shadow .15s;
}
.pdl-lead .pl-field input::placeholder { color: #8A94A7; }
.pdl-lead .pl-field input:focus { outline: 0; border-color: var(--pl-court); box-shadow: 0 0 0 3px rgba(20, 70, 180, .18); }
.pdl-lead .pl-field input[aria-invalid="true"] { border-color: #C2362B; box-shadow: 0 0 0 3px rgba(194, 54, 43, .12); }
.pl-field small { display: block; margin-top: 4px; color: var(--pl-muted); font-size: .78rem; }

.pl-profile { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 14px; padding: 0; border: 0; min-width: 0; }
.pl-profile legend { width: 100%; margin: 0 0 7px; padding: 0; font-size: .86rem; font-weight: 700; }
.pl-profile label { position: relative; }
.pl-profile input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pl-profile span {
	display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border-radius: 999px; font-size: .9rem; font-weight: 650;
	box-shadow: inset 0 0 0 1px var(--pl-line); color: var(--pl-ink); cursor: pointer; transition: background .15s, box-shadow .15s, color .15s;
}
.pl-profile label:hover span { box-shadow: inset 0 0 0 1px #AEB9CC; }
.pl-profile input:checked + span { background: var(--pl-blue); color: #fff; box-shadow: none; }
.pl-profile input:focus-visible + span { outline: 2px solid var(--pl-court); outline-offset: 2px; }

.pl-consent {
	display: flex; gap: 12px; align-items: flex-start; margin: 0 0 14px; padding: 13px 14px; border-radius: 14px;
	background: #F6F9DE; box-shadow: inset 0 0 0 1px #DCE69B; cursor: pointer; font-size: .86rem; line-height: 1.4;
}
.pl-consent input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--pl-blue); cursor: pointer; }
.pl-consent strong { font-weight: 650; color: var(--pl-ink); }
.pl-consent small { color: var(--pl-muted); font-size: .8rem; }
.pl-consent.is-bad { box-shadow: inset 0 0 0 2px #C2362B; }
.pl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pl-err { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: #FDECEA; color: #8F2A21; font-size: .88rem; font-weight: 600; }

.pl-go {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 52px; padding: 0 22px; border: 0; border-radius: 14px;
	background: var(--pl-ball); color: var(--pl-ink); font: inherit; font-size: 1.02rem; font-weight: 800; cursor: pointer;
	transition: transform .15s, box-shadow .15s, opacity .15s;
}
.pl-go:hover { transform: translateY(-1px); box-shadow: 0 12px 24px -12px rgba(160, 170, 10, .9); }
.pl-go:active { transform: none; }
.pl-go:focus-visible { outline: 2px solid var(--pl-court); outline-offset: 3px; }
.pl-go:disabled { opacity: .7; cursor: progress; transform: none; box-shadow: none; }
.pl-go.is-loading::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: pl-spin .8s linear infinite; }
@keyframes pl-spin { to { transform: rotate(360deg); } }
.pl-note { margin: 10px 0 0; text-align: center; color: var(--pl-muted); font-size: .8rem; }
.pl-note a { color: var(--pl-court); text-decoration: underline; text-underline-offset: 2px; }

.pl-msg { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: 100%; padding: 10px 0; }
.pl-msg[hidden] { display: none; }
.pl-msg__ico { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 16px; border-radius: 16px; background: #EEF3FC; color: var(--pl-court); }
.pl-msg__ico .pdl-icon { width: 28px; height: 28px; }
.pl-msg--done .pl-msg__ico { background: var(--pl-ball); color: var(--pl-ink); }
.pl-msg .pl-p { margin-bottom: 22px; }
.pl-msg .pl-go { width: auto; }
.pdl-lead.is-sent .pl-form { display: none; }

/* Floating re-open tab after the visitor closes it */
.pl-tab {
	position: fixed; right: 18px; bottom: 18px; z-index: 9990; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 12px; border: 0; border-radius: 999px;
	background: var(--pl-blue, #0E3487); color: #fff; font: 700 .9rem/1 "Schibsted Grotesk", system-ui, sans-serif; cursor: pointer;
	box-shadow: 0 14px 30px -14px rgba(3, 12, 40, .8); transition: transform .15s;
}
.pl-tab .pdl-icon { width: 18px; height: 18px; color: #E4F222; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pl-tab:hover { transform: translateY(-2px); }
.pl-tab:focus-visible { outline: 2px solid #E4F222; outline-offset: 2px; }
.pl-tab[hidden] { display: none; }

@media (max-width: 760px) {
	.pdl-lead { place-items: end stretch; padding: 0; }
	.pl-dialog { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); width: 100%; max-height: 92vh; max-height: 92dvh; border-radius: 22px 22px 0 0; transform: translateY(40px); }
	.pl-side { gap: 6px; padding: 20px 20px 18px; }
	.pl-logo, .pl-lead, .pl-stats, .pl-points, .pl-court { display: none; }
	.pl-label { margin: 0; font-size: .8rem; }
	.pl-big { font-size: 1.55rem; padding-right: 44px; }
	.pl-x { background: rgba(255, 255, 255, .14); color: #fff; }
	.pl-main { padding: 18px 20px calc(18px + env(safe-area-inset-bottom)); }
	.pl-form > .pl-h { font-size: 1.2rem; margin-right: 0; }
	.pl-p { font-size: .9rem; margin-bottom: 14px; }
	.pl-row { grid-template-columns: 1fr; gap: 0; }
	.pl-tab { right: 12px; bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
	.pl-scrim, .pl-dialog, .pl-x, .pl-go, .pl-tab { transition: none; }
	.pl-dialog { transform: none; }
}
