/* Palette and type follow nordicinv.com: slate header/contact sections,
   charcoal page, white Quicksand text, square corners. The INVEST NOW
   button uses the OM's own gold so it reads as part of the deck. */
:root {
  --gold: #f8c85c;      /* sampled from the OM's stat figures ($166,102, 4.31%) */
  --gold-dark: #e5b23f;
  --navy: #0f1e3d;      /* OM background navy, for text on gold */
  --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); }

/* Stacking: gate overlay (10) < INVEST NOW (11), so it stays usable from
   the gate, < contact overlay (12). */
#contact { z-index: 12; }

/* Slides fill the width with a thin margin; capped at the 2400px image size. */
#deck { max-width: 2400px; margin: 0 auto; padding: 8px 8px 0; display: grid; gap: 8px; }
.slide { margin: 0; overflow: hidden; background: var(--slate); }
.slide img { display: block; width: 100%; height: auto; }

#gate, #full { display: grid; gap: 8px; }
.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); }

textarea {
  width: 100%; padding: 8px 0; font: inherit; font-weight: 400; font-size: 16px; resize: vertical;
  color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
}
textarea:focus { outline: none; border-bottom: 2px solid var(--ink); }

/* Radio groups shown as square chips */
.choices { margin: 0; padding: 0; border: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.choices legend { padding: 0; margin-bottom: 8px; font-size: 16px; font-weight: 700; }
.chip { position: relative; display: block; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: block; padding: 9px 14px; font-size: 14px; font-weight: 500;
  border: 1px solid rgba(255, 255, 255, .35); color: var(--ink); transition: background .15s, border-color .15s;
}
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); color: var(--slate); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.choices.invalid legend { color: var(--err); }
.choices.invalid .chip span { border-color: var(--err); }

/* INVEST NOW: floats top-right over the slides */
.cta {
  position: fixed; top: 20px; right: 24px; z-index: 11;
  padding: 13px 24px; cursor: pointer; border-radius: 0;
  font: 700 15px var(--font); letter-spacing: .1em; color: var(--navy);
  background: var(--gold); border: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .45); transition: background .15s;
}
.cta:hover { background: var(--gold-dark); }
.cta:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.cta[hidden] { display: none; }

.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; }
  .overlay { padding-top: 64px; } /* clear the INVEST NOW button */
  #deck { gap: 14px; }
  .cta { top: 12px; right: 12px; padding: 10px 16px; font-size: 13px; }
}
