/* Självhostade typsnitt (SIL Open Font License): Barlow Condensed och Inter, latin-delmängd */
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url(assets/fonts/barlow-condensed-600.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url(assets/fonts/barlow-condensed-700.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: italic; font-weight: 600; font-display: swap; src: url(assets/fonts/barlow-condensed-600-italic.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(assets/fonts/inter-latin-var.woff2) format("woff2"); }

:root {
  --bg: #141417;          /* exakt samma färg som videons bakgrund */
  --ink: #f2f0ea;
  --muted: #a9a8ad;
  --blue: #5aa9e6;
  --yellow: #f2c230;
  --line: rgba(255, 255, 255, .12);
  --pad: clamp(20px, 5vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, .brand, .big, .facts dt {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 700;
  line-height: .95;
  letter-spacing: .005em;
}
.wrap { width: min(1100px, 100% - 2 * var(--pad)); margin-inline: auto; }

/* ---------- Toppfält ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: max(14px, env(safe-area-inset-top)) var(--pad) 14px;
  background: linear-gradient(to bottom, rgba(20, 20, 23, .85), rgba(20, 20, 23, 0));
  pointer-events: none;
  transition: background .25s ease, backdrop-filter .25s ease;
}
.topbar.solid { background: rgba(20, 20, 23, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.topbar > * { pointer-events: auto; }
.brand { color: var(--ink); text-decoration: none; font-size: 1.35rem; text-transform: uppercase; }

.btn {
  display: inline-block;
  padding: .8em 1.5em;
  background: var(--yellow);
  color: #17140a;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  transition: transform .15s ease, filter .15s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.btn-small { padding: .45em 1.1em; font-size: .9rem; }
.btn-large { padding: 1em 2em; font-size: 1.1rem; }

/* ---------- Scroll-video ---------- */
.scrollvideo { position: relative; height: 560vh; height: 560svh; }
.stage {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
  background: var(--bg);
}
.stage video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  background: var(--bg);
}

.caption {
  position: absolute; z-index: 2;
  left: var(--pad); right: var(--pad);
  bottom: 12vh;
  max-width: 34rem;
  opacity: 0; transform: translateY(18px);
  transition: opacity .45s ease, transform .45s ease;
  pointer-events: none;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .65);
}
.caption.on { opacity: 1; transform: none; pointer-events: auto; }
.caption h1 { margin: 0; font-size: clamp(3.6rem, 11vw, 9rem); text-transform: uppercase; color: var(--blue); }
.caption h2 { margin: 0; font-size: clamp(2.2rem, 5.2vw, 4rem); text-transform: uppercase; }
.caption .big { color: var(--blue); font-size: 1.5em; }
.caption p { margin: .8rem 0 0; font-size: clamp(1rem, 1.6vw, 1.25rem); color: var(--ink); }
.kicker { margin: 0 0 .6rem; color: var(--yellow); font-weight: 600; text-transform: uppercase; letter-spacing: .14em; font-size: .85rem; }
.lede { color: var(--muted); }
.cap-left { right: auto; }
.cap-right { left: auto; text-align: right; }
.cap-end { left: 50%; right: auto; bottom: 10vh; transform: translate(-50%, 18px); text-align: center; width: max-content; max-width: calc(100% - 2 * var(--pad)); }
.cap-end.on { transform: translate(-50%, 0); }

.hint {
  position: absolute; z-index: 3; left: 50%; bottom: 22px; translate: -50% 0;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--muted); font-size: .75rem; letter-spacing: .18em; text-transform: uppercase;
  transition: opacity .4s ease;
}
.hint i { width: 1px; height: 34px; background: linear-gradient(var(--ink), transparent); animation: drip 1.8s ease-in-out infinite; }
.hint.gone { opacity: 0; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

.progress { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .08); }
.progress span { display: block; height: 100%; width: 0; background: var(--blue); }

.loader {
  position: absolute; z-index: 4; left: 50%; top: 50%; translate: -50% -50%;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  color: var(--muted); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase;
  transition: opacity .5s ease; pointer-events: none;
}
.loader b { color: var(--ink); font-weight: 600; margin-left: .4em; }
.loader i { display: block; width: 140px; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; }
.loader.done { opacity: 0; }

/* ---------- Innehåll ---------- */
.eyebrow { margin: 0 0 1rem; color: var(--yellow); font-weight: 600; text-transform: uppercase; letter-spacing: .14em; font-size: .85rem; }
section.about { padding: clamp(80px, 14vw, 180px) 0 clamp(40px, 6vw, 80px); }
.statement {
  margin: 0 0 clamp(32px, 5vw, 64px);
  font-size: clamp(2.2rem, 6vw, 4.6rem);
  font-style: italic; font-weight: 600;
  text-transform: none; line-height: 1.02;
  max-width: 18em;
}
.cols { display: grid; gap: 1.5rem 3rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); color: #d6d5d9; font-size: 1.05rem; }
.cols p { margin: 0; }

.facts { padding: clamp(40px, 6vw, 80px) 0; border-block: 1px solid var(--line); }
.facts dl { margin: 0; display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
.facts dt { font-size: clamp(2.4rem, 5vw, 3.6rem); color: var(--blue); }
.facts dd { margin: .3rem 0 0; color: var(--muted); }

.quote { padding: clamp(80px, 12vw, 160px) 0; text-align: center; }
.quote blockquote { margin: 0; }
.quote p { margin: 0; font-size: clamp(1.8rem, 4.4vw, 3.2rem); font-style: italic; font-weight: 500; line-height: 1.2; }
.quote footer { margin-top: 1.2rem; color: var(--muted); }

.cta { padding: clamp(70px, 10vw, 140px) 0; text-align: center; background: #0f0f12; }
.cta h2 { margin: 0; font-size: clamp(2.6rem, 7vw, 5.6rem); text-transform: uppercase; }
.cta .sub { color: var(--muted); margin: 1rem 0 2rem; }

.footer { padding: 40px 0 max(40px, env(safe-area-inset-bottom)); text-align: center; color: var(--muted); }
.disclaimer { color: var(--yellow); margin: 0 0 .5rem; }
.fine { margin: 0; font-size: .85rem; }

/* ---------- Anmälan ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.signup { max-width: 34rem; margin: 0 auto; }
.signup .row { display: flex; gap: .6rem; flex-wrap: wrap; }
.signup input[type=email] {
  flex: 1 1 14rem; min-width: 0;
  padding: .95em 1.2em; font: inherit; color: var(--ink);
  background: #1c1c21; border: 1px solid var(--line); border-radius: 999px;
}
.signup input[type=email]::placeholder { color: #77777e; }
.signup input[type=email]:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-color: transparent; }
.signup .btn { border: 0; font: inherit; font-weight: 600; cursor: pointer; padding: .95em 1.6em; }
.signup .btn[disabled] { opacity: .6; cursor: progress; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.consent { margin: 1rem 0 0; font-size: .82rem; color: var(--muted); line-height: 1.5; }
.consent a, .alt a { color: var(--ink); text-underline-offset: 3px; }
.status { min-height: 1.5em; margin: .8rem 0 0; font-size: .95rem; }
.status.ok { color: #8fd49b; }
.status.err { color: #ff9b8a; }
.alt { margin: 2rem 0 0; font-size: .92rem; color: var(--muted); }

/* ---------- Mobil / stående ---------- */
@media (max-aspect-ratio: 4/5) {
  .scrollvideo { height: 520vh; height: 520svh; }
  .caption { bottom: 7vh; bottom: calc(5svh + env(safe-area-inset-bottom)); max-width: none; }
  .cap-right { left: var(--pad); text-align: left; }
  .cap-left, .cap-right { right: var(--pad); }
  .caption h1 { font-size: clamp(2.6rem, 12.5vw, 4.4rem); }
  .caption h1 br { display: none; }
  .caption h2 { font-size: clamp(1.9rem, 9vw, 3rem); }
  .kicker { margin-bottom: .3rem; }
  .lede { margin-top: .3rem; }
  .cap-end { bottom: calc(6svh + env(safe-area-inset-bottom)); }
  .hint { left: auto; right: var(--pad); translate: none; bottom: calc(5svh + env(safe-area-inset-bottom)); }
}

/* ---------- Reducerad rörelse ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scrollvideo { height: auto; }
  .stage { position: relative; }
  .caption { transition: none; }
  .hint { display: none; }
}
