/* =========================
   Design tokens
   ========================= */
:root {
  --surface: #0b1020;
  --card: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.14);

  --text: rgba(255, 255, 255, 0.95);
  --muted: rgba(255, 255, 255, 0.70);

  --accent: #6ee7ff;
  --accent2: #a78bfa;

  --radius: 18px;
}

/* =========================
   Reset
   ========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: auto;
  background: var(--surface);
}

/* =========================
   App-like layout
   ========================= */
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: var(--text);

  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100svh;

  overflow-y: auto;
  overflow-x: hidden;
  padding: 24px;
}

/* =========================
   Content wrapper
   ========================= */
.wrap {
  width: 100%;
  max-width: 900px;
}

/* Top-of-page container for topbar */
.page-top {
  padding-top: 6px;
  margin-bottom: 14px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}

/* =========================
   Top row (back + language)
   ========================= */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 0;
}

/* Når index ikke har back-knapp, høyre-juster språk */
.topbar--right {
  justify-content: flex-end;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  gap: 10px;

  padding: 10px 14px;
  border-radius: 999px;

  font-weight: 800;
  text-decoration: none;

  color: #000;
  background: linear-gradient(135deg, var(--accent), var(--accent2));

  transition: transform 0.15s ease, filter 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.back-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.back-btn:active {
  transform: scale(0.97);
}

.back-btn:focus-visible {
  outline: 3px solid rgba(110, 231, 255, 0.45);
  outline-offset: 3px;
}

/* =========================
   Language switcher
   ========================= */
.lang {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.lang__link {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  color: var(--text);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  transition: filter 0.15s ease;
}

.lang__link:hover {
  filter: brightness(1.08);
}

.lang__link.is-active {
  color: #000;
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
}

/* =========================
   Typography
   ========================= */
h1 {
  margin: 0 0 12px 0;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.1;
}

p {
  margin: 0;
  color: var(--muted);
  max-width: 60ch;
  line-height: 1.6;
}

/* =========================
   Hero
   ========================= */
.hero {
  margin-bottom: 22px;
}

.hero p {
  margin-top: 6px;
}

/* =========================
   Landing: app card
   ========================= */
.grid {
  display: grid;
  gap: 14px;
}

.app-card {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 14px;

  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);

  text-decoration: none;
  color: inherit;

  transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.app-card:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  background: rgba(255, 255, 255, 0.06);
}

.app-card:active {
  transform: scale(0.99);
}

.app-card:focus-visible {
  outline: 3px solid rgba(110, 231, 255, 0.45);
  outline-offset: 3px;
}

.app-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
}

.app-card__meta {
  min-width: 0;
}

.app-card__title {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.app-card__desc {
  margin: 4px 0 0 0;
  color: var(--muted);
  line-height: 1.4;
}

.app-card__cta {
  font-weight: 800;
  color: rgba(255, 255, 255, 0.9);
  padding-left: 10px;
  white-space: nowrap;
}

/* =========================
   Swipe carousel (cards)
   ========================= */
.carousel {
  display: flex;
  gap: 20px;
  align-items: center;

  overflow-x: auto;
  overflow-y: hidden;

  scroll-snap-type: x mandatory;
  scroll-padding: 2px;

  -webkit-overflow-scrolling: touch;

  padding: 20px 6px 20px 6px;

  overscroll-behavior-x: contain;

  scrollbar-width: none;
}
.carousel-block { margin-top: 16px; }
.carousel::-webkit-scrollbar {
  height: 0;
}

.carousel::before,
.carousel::after {
  content: "";
  flex: 0 0 18vw;
}

.slide {
  flex: 0 0 auto;
  width: auto;

  scroll-snap-align: center;
  scroll-snap-stop: always;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;

  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
  box-shadow: none;

  opacity: 0.55;
  transform: scale(1);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.slide.is-active {
  opacity: 1;
  transform: scale(1.02);
}

.slide .media {
  width: auto;
  border-radius: 50px;
  overflow: hidden;

  background: transparent;
  box-shadow: none;
}

.slide:focus-visible {
  outline: 3px solid rgba(110, 231, 255, 0.45);
  outline-offset: 6px;
  border-radius: 22px;
}

.slide .media img {
  display: block;
  width: 100%;
  height: auto;

  max-height: 80vh;
  object-fit: contain;

  border-radius: 50px;
  border: 0;
  background: transparent;
}

/* =========================
   Dots + counter
   ========================= */
.carousel-ui {
  position: relative;
  margin-top: 10px;
  padding-bottom: 18px;
}

.dots {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);

  display: flex;
  gap: 8px;
  align-items: center;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
}

.dot.is-active {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-color: transparent;
}

.counter {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);

  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.55);
}

.actions {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.actions--center {
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 12px 16px;
  border-radius: 999px;

  font-weight: 800;
  text-decoration: none;

  color: #000;
  background: linear-gradient(135deg, var(--accent), var(--accent2));

  border: 0;
  cursor: pointer;

  transition: transform 0.15s ease, filter 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn:active { transform: scale(0.98); }
.btn:focus-visible {
  outline: 3px solid rgba(110, 231, 255, 0.45);
  outline-offset: 3px;
}

/* =========================
   Responsive tweaks
   ========================= */
@media (max-width: 520px) {
  .card {
    padding: 28px;
  }

  .app-card {
    grid-template-columns: 44px 1fr;
  }

  .app-card__icon {
    width: 44px;
    height: 44px;
  }

  .app-card__cta {
    display: none;
  }

  .carousel {
    gap: 6px;
  }

  .slide .media img {
    max-height: 110vw;
    border-radius: 32px;
  }

  .slide {
    opacity: 0.35;
    transform: scale(0.96);
  }

  .slide.is-active {
    opacity: 1;
    transform: scale(1.02);
  }

  .carousel::before,
  .carousel::after {
    flex-basis: 18vw;
  }

  .back-btn {
    padding: 9px 12px;
    gap: 8px;
    font-size: 14px;
  }

  .topbar {
    gap: 10px;
  }

  .lang__link {
    padding: 7px 10px;
    font-size: 14px;
    white-space: nowrap;
  }
}

/* =========================
   Reduced motion
   ========================= */
@media (prefers-reduced-motion: reduce) {
  .back-btn,
  .lang__link,
  .app-card,
  .slide {
    transition: none;
  }
}

/* Title with icon (inline, left-aligned) */
.title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 6px;
}

.title-row h1 {
  margin: 0;              /* ← viktig: hindrer at den faller ned */
}

.title-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex-shrink: 0;
}

/* Feature list – same style as body text */
.features {
  margin: 14px 0 0 0;
  padding-left: 0;
  list-style: none;
  color: var(--muted);
  max-width: 60ch;
}

.features li {
  position: relative;
  padding-left: 18px;
  margin: 6px 0;
  line-height: 1.6;
}

/* Custom bullet matching text tone */
.features li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--muted);
}

/* Mobile: keep proportions */
@media (max-width: 520px) {
  .title-icon {
    width: 44px;
    height: 44px;
  }
}

.btn--secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
}

.btn--secondary:hover {
  filter: brightness(1.08);
}

.btn--appstore {
  background: linear-gradient(
    180deg,
    #1a8cff,
    #0A84FF
  );
    color: #fff;

}

.btn--appstore:hover {
  filter: brightness(1.08);
}

.btn--appstore:active {
  transform: scale(0.98);
}

.btn--appstore:focus-visible {
  outline: 3px solid rgba(10, 132, 255, 0.45);
  outline-offset: 3px;
}