/* Palette and type follow nordicinv.com: slate header/contact sections,
   charcoal page, white Quicksand text, square corners, red-outlined button. */
:root {
  --slate: #253a44;
  --charcoal: #1e2022;
  --ink: #ffffff;
  --muted: #b9c3c8;
  --line: rgba(255, 255, 255, .7);
  --rule: rgba(255, 255, 255, .14);
  --red: #ee2b2d;
  --err: #ff8a85;
  --font: 'Quicksand', 'Source Sans Pro', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.locked { overflow: hidden; }
body { margin: 0; background: var(--charcoal); color: var(--ink); font: 16px/1.5 var(--font); }

.topbar {
  position: sticky; top: 0; z-index: 5;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 16px; background: var(--slate);
}
.brand { font-size: 20px; font-weight: 500; letter-spacing: .02em; white-space: nowrap; }
.brand b { font-weight: 500; }
.tag { font-size: 13px; letter-spacing: .03em; color: var(--muted); text-align: right; }

#deck { max-width: 1040px; margin: 0 auto; padding: 24px 16px 8px; display: grid; gap: 24px; }
.slide { margin: 0; overflow: hidden; background: var(--slate); box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.slide img { display: block; width: 100%; height: auto; }

#gate { display: grid; gap: 24px; }
.slide.blurred img { filter: blur(14px) saturate(.8); transform: scale(1.08); }

.overlay {
  position: fixed; inset: 0; z-index: 10;
  display: grid; place-items: center; padding: 16px; overflow-y: auto;
  background: rgba(30, 32, 34, .6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  animation: fade .3s ease;
}
.overlay[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }

.card {
  width: min(540px, 100%); padding: 32px;
  background: var(--slate); box-shadow: 0 20px 60px rgba(0, 0, 0, .55);
}
.eyebrow { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.card h2 { margin: 6px 0 10px; font-size: 30px; font-weight: 400; line-height: 1.2; }
.lede { margin: 0 0 22px; color: var(--muted); font-size: 16px; }

form { display: grid; gap: 18px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label { display: grid; gap: 2px; font-size: 16px; font-weight: 700; color: var(--ink); }
.opt { font-weight: 400; color: var(--muted); font-size: 14px; }
input:not([type=checkbox]) {
  width: 100%; padding: 8px 0; font: inherit; font-weight: 400; font-size: 16px;
  color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
}
input:focus { outline: none; }
input:not([type=checkbox]):focus { border-bottom: 2px solid var(--ink); padding-bottom: 7px; }
input[aria-invalid=true] { border-bottom-color: var(--err); }
.hint { margin: -8px 0 0; font-size: 13px; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; font-weight: 400; line-height: 1.5; color: var(--muted); }
.consent input { margin-top: 3px; accent-color: var(--red); width: 16px; height: 16px; flex: none; }
.consent.invalid span { color: var(--err); }
.consent a { color: var(--ink); }
.form-error { margin: 0; color: var(--err); font-size: 14px; font-weight: 500; }

button[type=submit] {
  padding: 16px; cursor: pointer; border-radius: 0;
  font: 700 16px var(--font); color: var(--ink);
  background: transparent; border: 1px solid var(--red);
  transition: background .15s;
}
button[type=submit]:hover { background: var(--red); }
button[type=submit]:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
button[type=submit]:disabled { opacity: .6; cursor: wait; }
.fine { margin: 0; font-size: 12px; color: var(--muted); }
.back { margin-top: 16px; padding: 0; border: 0; background: none; color: var(--muted); font: 14px var(--font); cursor: pointer; }
.back:hover { color: var(--ink); }

.foot { max-width: 1040px; margin: 0 auto; padding: 16px 16px 40px; font-size: 12px; color: var(--muted); text-align: center; }

@media (max-width: 560px) {
  .overlay { place-items: start center; }
  .row { grid-template-columns: 1fr; }
  .card { padding: 22px 18px; }
  .card h2 { font-size: 24px; }
  .lede { font-size: 14px; margin-bottom: 14px; }
  form { gap: 14px; }
  .brand { font-size: 18px; }
  .tag { font-size: 11px; }
  #deck { gap: 14px; }
}
