/* Swiftpas. Sort og hvid. Skrifterne ligger her, så siden ikke kalder andre domæner. */
@font-face {
  font-family: 'Space Grotesk';
  src: url('fonts/SpaceGrotesk-Variable-latin.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-Variable-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0e0e10;
  --bg-2: #17181a;
  --ink: #f2f1ed;
  --ink-dim: rgba(242, 241, 237, .72);
  --line: rgba(255, 255, 255, .14);
  --moerk-dim: rgba(14, 14, 16, .74);
  --moerk-line: rgba(14, 14, 16, .16);
  --display: 'Space Grotesk', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --bredde: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--ink); color: var(--bg); }

/* Top */
.top {
  position: relative;
  z-index: 3;
  max-width: calc(var(--bredde) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ordmaerke {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -.02em;
  text-decoration: none;
}
.top__log-ind {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  font-size: 15px;
  color: var(--ink-dim);
  text-decoration: none;
}
.top__log-ind:hover { color: var(--ink); }

/* Knapper: almindelige links, så tryk let kan tælles senere (data-spor) */
.knapper { display: flex; flex-wrap: wrap; gap: 10px; }
.knap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.knap:hover { border-color: var(--ink); }
.knap--fyldt { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.knap--fyldt:hover { background: #fff; border-color: #fff; }

/* Toppen af siden */
.helt {
  position: relative;
  overflow: hidden;
  max-width: calc(var(--bredde) + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(40px, 7vw, 88px) var(--gutter) clamp(44px, 6vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
  grid-template-rows: auto auto;
  column-gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.helt__tekst { grid-column: 1; grid-row: 1 / 3; position: relative; z-index: 2; }
h1 {
  font-family: var(--display);
  font-size: clamp(38px, 5.6vw, 72px);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.helt__linje {
  max-width: 34em;
  margin: 22px 0 28px;
  font-size: clamp(18px, 1.7vw, 21px);
  line-height: 1.45;
  color: var(--ink-dim);
  text-wrap: pretty;
}
.helt__note { margin-top: 14px; font-size: 15px; color: var(--ink-dim); text-wrap: pretty; }
.helt__eksempel {
  grid-column: 2;
  grid-row: 2;
  position: relative;
  z-index: 2;
  margin-top: 6px;
  font-size: 14px;
  color: var(--ink-dim);
  text-align: right;
}

/* De svævende kort. Alle mål i em, så det kan stå i flere størrelser */
.rum { grid-column: 2; grid-row: 1; position: relative; height: 560px; }
.k {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  font-size: calc(var(--w) / 24);
  aspect-ratio: 1074 / 1344;
  overflow: hidden;
  border-radius: 1.4em;
  color: #fff;
  background: #1a1a1e;
  font-family: var(--display);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 2.6em 5em rgba(0, 0, 0, .65), 0 .4em 1em rgba(0, 0, 0, .4);
  transform: rotate(var(--r));
  animation: svaev var(--t, 14s) ease-in-out var(--f, 0s) infinite alternate;
}
@keyframes svaev {
  from { transform: translateY(-.7em) rotate(calc(var(--r) - .7deg)); }
  to { transform: translateY(.9em) rotate(calc(var(--r) + .7deg)); }
}
.k__foto { position: absolute; left: 0; top: 0; width: 100%; height: 76.5%; object-fit: cover; }
.k__top {
  position: absolute;
  inset: 0 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1em 1.05em 2.6em;
  background: linear-gradient(180deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0));
}
.k__afsender { font-size: .72em; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.k__aar { text-align: right; font-size: .9em; font-weight: 500; line-height: 1.15; }
.k__aar small { display: block; font-size: .62em; letter-spacing: .08em; opacity: .85; }
.k__aar i {
  display: inline-block;
  margin-top: .35em;
  padding: .2em .6em;
  border-radius: 999px;
  font-style: normal;
  font-size: .64em;
  font-weight: 700;
  letter-spacing: .06em;
  background: #fff;
  color: #0e0e10;
}
.k__panel {
  position: absolute;
  inset: auto 0 0;
  height: 23.5%;
  padding: 1em 1.05em;
  background: linear-gradient(180deg, #17181a, #050505);
}
.k__raekke { display: flex; justify-content: space-between; gap: .6em; align-items: flex-end; }
.k__navn { font-size: 1.08em; font-weight: 600; line-height: 1.15; }
.k__pris { text-align: right; font-size: 1em; font-weight: 500; white-space: nowrap; }
.k__pris small { display: block; font-size: .66em; opacity: .75; }

.k1 { --x: 0%;  --y: 3%;  --w: 236px; --r: -8deg; --t: 15s; }
.k2 { --x: 54%; --y: 0%;  --w: 228px; --r: 7deg;  --t: 18s; --f: -4s; }
.k3 { --x: 24%; --y: 30%; --w: 272px; --r: -2deg; --t: 13s; --f: -8s; }

/* Beskeden på låseskærmen */
.besked {
  position: absolute;
  left: 8%;
  right: 4%;
  bottom: 0;
  display: flex;
  gap: 10px;
  padding: 11px 13px;
  border-radius: 18px;
  background: rgba(58, 60, 66, .88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .55);
  color: #fff;
  animation: svaev2 9s ease-in-out infinite alternate;
}
@keyframes svaev2 {
  from { transform: translateY(-4px) rotate(-1.5deg); }
  to { transform: translateY(5px) rotate(-1.5deg); }
}
.besked__ikon { flex: none; width: 34px; height: 34px; border-radius: 8px; background: var(--ink); }
.besked div { min-width: 0; flex: 1; }
.besked p { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 600; line-height: 1.3; }
.besked p i { font-style: normal; font-weight: 400; font-size: 13px; color: rgba(255, 255, 255, .7); }
.besked span:last-child { display: block; margin-top: 1px; font-size: 13px; line-height: 1.3; }

/* Afsnit */
.afsnit {
  max-width: calc(var(--bredde) + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(52px, 7vw, 96px) var(--gutter);
}
h2 {
  font-family: var(--display);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.025em;
  text-wrap: balance;
}

/* Tre trin */
.trin__liste {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
  margin-top: clamp(28px, 4vw, 44px);
}
.trin__liste li { padding-top: 18px; border-top: 1px solid var(--line); }
.trin__nr {
  display: block;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
}
h3 {
  margin: 10px 0 8px;
  font-family: var(--display);
  font-size: clamp(20px, 1.9vw, 24px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.015em;
  text-wrap: balance;
}
.trin__liste p { color: var(--ink-dim); text-wrap: pretty; }

/* Tallene: det ene lyse felt på siden */
.tal { background: var(--ink); color: var(--bg); }
.tal ::selection { background: var(--bg); color: var(--ink); }
.tal__indre {
  max-width: calc(var(--bredde) + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(48px, 7vw, 88px) var(--gutter);
}
.tal__oevre {
  font-family: var(--body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
}
.tal__gitter {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  margin-top: 14px;
}
.tal__stor b {
  display: block;
  font-family: var(--display);
  font-size: clamp(112px, 22vw, 264px);
  font-weight: 600;
  line-height: .9;
  letter-spacing: -.05em;
}
.tal__stor span {
  display: block;
  max-width: 28em;
  margin-top: 14px;
  font-size: clamp(18px, 1.7vw, 21px);
  line-height: 1.4;
  text-wrap: pretty;
}
.tal__smaa { display: grid; gap: 20px; }
.tal__smaa li { padding-top: 14px; border-top: 1px solid var(--moerk-line); }
.tal__smaa b {
  display: block;
  font-family: var(--display);
  font-size: clamp(30px, 3.2vw, 40px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0;
}
.tal__smaa span { display: block; margin-top: 4px; color: var(--moerk-dim); }
.tal__noter {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  margin-top: clamp(32px, 4vw, 52px);
  padding-top: 20px;
  border-top: 1px solid var(--moerk-line);
  font-size: 16px;
  color: var(--moerk-dim);
}
.tal__noter p { text-wrap: pretty; }
.tal__noter strong { color: var(--bg); font-weight: 600; }

/* Kontakt */
.kontakt__linje { max-width: 34em; margin: 14px 0 26px; color: var(--ink-dim); font-size: clamp(17px, 1.5vw, 19px); text-wrap: pretty; }

/* Fod */
.fod {
  max-width: calc(var(--bredde) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 22px var(--gutter) calc(30px + env(safe-area-inset-bottom));
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-dim);
}
.fod a { display: inline-flex; align-items: center; min-height: 44px; }

/* Under 1100 px er der ikke plads til kortene ved siden af teksten: teksten først, kortene under */
@media (max-width: 1100px) {
  .helt { grid-template-columns: minmax(0, 1fr); padding-bottom: 28px; }
  .helt__tekst { grid-column: 1; grid-row: auto; }
  .rum {
    grid-column: 1;
    grid-row: auto;
    justify-self: center;
    width: 100%;
    max-width: 720px;
    height: clamp(370px, 62vw, 520px);
    margin-top: 36px;
  }
  .helt__eksempel { grid-column: 1; grid-row: auto; margin-top: 12px; text-align: center; }
  .k1 { --x: 2%;  --y: 2%;  --w: clamp(150px, 27vw, 230px); }
  .k2 { --x: calc(98% - clamp(146px, 26vw, 222px)); --y: 0%; --w: clamp(146px, 26vw, 222px); }
  .k3 { --x: calc(50% - clamp(90px, 16vw, 142px)); --y: 18%; --w: clamp(180px, 32vw, 284px); }
  .besked { left: 0; right: 0; max-width: 420px; margin: 0 auto; }
}
@media (max-width: 900px) {
  .trin__liste, .tal__gitter, .tal__noter { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .knapper { flex-direction: column; }
  .knap { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .k, .besked { animation: none; }
  .knap { transition: none; }
}
