:root {
  --bg: #fafaf8;
  --surface: #ffffff;
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --border: #ececec;
  --accent: #2f6df0;
  --accent-soft: #eaf1ff;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 4px 8px rgba(0, 0, 0, 0.06), 0 18px 40px rgba(0, 0, 0, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero */
.hero {
  padding: clamp(48px, 9vw, 110px) 0 clamp(28px, 5vw, 56px);
}

.brand {
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
  color: var(--accent);
  margin-bottom: clamp(28px, 6vw, 64px);
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 18px;
}

.hero .lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--muted);
  max-width: 56ch;
  margin: 0;
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 28px;
  padding-bottom: 72px;
}

/* Card */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

/* Stort ikon-felt med gradient afstemt efter ikonets farve (--accent pr. kort) */
.card-media {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  background: linear-gradient(
    160deg,
    color-mix(in srgb, var(--accent, #8a8a8a) 16%, #fff) 0%,
    color-mix(in srgb, var(--accent, #8a8a8a) 38%, #fff) 100%
  );
  overflow: hidden;
}

/* Afrundet flise der holder ikonet (favicon, app-ikon, logo) */
.icon-tile {
  width: 104px;
  height: 104px;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 10px 22px -8px rgba(0, 0, 0, 0.18);
  transition: transform 0.3s ease;
}

.card:hover .icon-tile {
  transform: translateY(-2px) scale(1.04);
}

.icon-tile img {
  display: block;
}

/* App-ikoner fylder hele flisen */
.icon-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Favicons/logoer centreres med luft omkring */
.icon-contain img {
  max-width: 68%;
  max-height: 68%;
  object-fit: contain;
}

.card-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.card-head h2 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
}

.tag {
  flex: none;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.tagline {
  font-weight: 600;
  color: var(--text);
  margin: 0 0 8px;
}

.desc {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 20px;
}

.visit {
  margin-top: auto;
  align-self: flex-start;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent);
}

.visit span {
  display: inline-block;
  transition: transform 0.2s ease;
}

.visit:hover span {
  transform: translateX(4px);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-dim {
  opacity: 0.6;
}
