:root {
  color-scheme: dark;
  --bg: #0b0c13;
  --panel: #121521;
  --panel2: #171a28;
  --text: #f7f7fb;
  --muted: #a7aabd;
  --purple: #a78bfa;
  --purple2: #8065f4;
  --line: rgba(255, 255, 255, 0.09);
  --green: #76e0b4;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
  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.5;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
}
.topbar {
  height: calc(76px + env(safe-area-inset-top, 0px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: env(safe-area-inset-top, 0px) clamp(20px, 5vw, 76px) 0;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 12, 19, 0.82);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 5;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.04em;
}
.brand b {
  color: #c6b7ff;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, #a78bfa, #6c4bd9);
  box-shadow: 0 0 22px #9c7bfa45;
  font-weight: 800;
  color: white;
}
.topbar nav {
  display: flex;
  gap: 30px;
  color: #c3c4d2;
  font-size: 14px;
}
.topbar nav a:hover,
.footer a:hover {
  color: #d2c5ff;
}
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  color: white;
  font-size: 24px;
}
.hero {
  position: relative;
  overflow: hidden;
  padding: 48px clamp(22px, 9vw, 140px) 56px;
  background:
    radial-gradient(ellipse at 78% 45%, #6542bf2b, transparent 36%),
    linear-gradient(115deg, #10121c, #0b0c13 65%);
}
.hero > *:not(.hero-orb) {
  position: relative;
  z-index: 1;
}
.eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #b9a7ff;
}
.pulse {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9b83ff;
  box-shadow: 0 0 12px #9b83ff;
  margin-right: 8px;
}
.hero h1 {
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.065em;
  margin: 14px 0 12px;
  max-width: 760px;
}
.hero h1 span {
  color: #b8a5ff;
}
.hero p {
  max-width: 490px;
  color: #aeb1c3;
  font-size: 17px;
  margin: 0;
}
.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  margin-top: 23px;
  padding: 13px 17px;
  border: 1px solid #a78bfa66;
  border-radius: 14px;
  background: #a78bfa10;
  font-size: 14px;
  font-weight: 650;
}
.hero-link span {
  font-size: 20px;
  color: #c7b9ff;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  pointer-events: none;
}
.orb-one {
  width: 330px;
  height: 330px;
  right: 10%;
  top: 55px;
  border: 1px solid #a78bfa24;
  box-shadow:
    0 0 100px #8a65ff14,
    inset 0 0 80px #8a65ff0d;
}
.orb-two {
  width: 190px;
  height: 190px;
  right: 16%;
  top: 120px;
  background: radial-gradient(circle, #a78bfa1e, transparent 70%);
}
.section-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 76px 28px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 30px;
}
.section-heading h2,
.support-copy h2 {
  font-size: clamp(27px, 3vw, 38px);
  letter-spacing: -0.045em;
  margin: 7px 0 0;
}
.search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #141622;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 0 14px;
  width: min(280px, 100%);
  color: #b9a7ff;
}
.search-wrap input {
  width: 100%;
  background: none;
  border: 0;
  outline: 0;
  color: white;
  padding: 12px 0;
}
.search-wrap input::placeholder {
  color: #777b90;
}
.app-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}
.app-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  min-width: 0;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 23px;
  background: linear-gradient(145deg, #171a28, #11131d);
  color: var(--text);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  overflow: hidden;
}
.app-card:before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 0%, #a78bfa22, transparent 55%);
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
.app-card:hover {
  transform: translateY(-4px);
  border-color: #a78bfa6b;
  box-shadow:
    0 14px 38px #0005,
    0 0 25px #9c7bfa12;
}
.app-card:hover:before {
  opacity: 1;
}
.app-card:active {
  transform: scale(0.96);
  box-shadow:
    0 0 0 2px #b9a7ff88,
    0 0 28px #9c7bfa5c;
}
.app-card:focus-visible,
.button:focus-visible,
.hero-link:focus-visible {
  outline: 2px solid #c4b5fd;
  outline-offset: 4px;
}
.app-icon-wrap {
  position: relative;
  width: 100%;
  display: grid;
  place-items: center;
  padding: 8px 0 15px;
}
.app-icon {
  width: min(100%, 138px);
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 24%;
  filter: drop-shadow(0 10px 18px #0006);
  transition:
    transform 0.2s,
    filter 0.2s;
}
.app-card:hover .app-icon {
  transform: translateY(-2px);
  filter: drop-shadow(0 10px 20px #a78bfa35);
}
.app-card:active .app-icon {
  transform: scale(0.94);
}
.lock-badge {
  position: absolute;
  right: 8px;
  top: 8px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: #0a0b12dd;
  border: 1px solid #ffffff20;
  font-size: 14px;
}
.app-card h3 {
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.025em;
}
.app-category {
  margin-top: 5px;
  font-size: 12px;
  color: #b7a5ff;
}
.app-desc {
  margin: 10px 0 0;
  font-size: 13px;
  color: #a7aabd;
  line-height: 1.5;
}
.card-open {
  margin-top: 17px;
  font-size: 12px;
  color: #d2c5ff;
  font-weight: 700;
}
.grid-note {
  color: #777b90;
  text-align: center;
  font-size: 13px;
  margin-top: 28px;
}
.support-section {
  display: flex;
  align-items: center;
  gap: 24px;
  border: 1px solid #a78bfa2c;
  border-radius: 28px;
  margin-bottom: 76px;
  padding: 30px;
  background:
    radial-gradient(ellipse at 0% 50%, #7b5bd51c, transparent 50%), #121420;
}
.support-icon {
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 19px;
  background: #a78bfa19;
  color: #c4b5fd;
  font-size: 30px;
}
.support-copy {
  flex: 1;
}
.support-copy p {
  max-width: 600px;
  color: #aeb1c3;
  margin-bottom: 0;
  font-size: 14px;
}
.button {
  border: 0;
  border-radius: 13px;
  padding: 14px 18px;
  font-weight: 750;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  white-space: nowrap;
  transition:
    transform 0.18s,
    box-shadow 0.18s;
}
.button:active {
  transform: scale(0.97);
}
.button-light {
  color: #171125;
  background: #d2c5ff;
  box-shadow: 0 5px 22px #a78bfa25;
}
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding: 25px clamp(20px, 5vw, 76px);
  font-size: 12px;
  color: #85899d;
}
.footer-brand {
  color: white;
  font-size: 14px;
}
.footer-brand .brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  font-size: 13px;
}
.app-dialog,
.swish-dialog {
  width: min(940px, calc(100% - 24px));
  max-height: calc(100% - 24px);
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #ffffff1a;
  border-radius: 26px;
  padding: 0;
  background: #10121c;
  color: var(--text);
  box-shadow: 0 30px 100px #000b;
}
.app-dialog::backdrop,
.swish-dialog::backdrop {
  background: #05060bd9;
  backdrop-filter: blur(8px);
}
.dialog-close {
  position: sticky;
  top: 12px;
  float: right;
  margin: 12px 12px -48px 0;
  z-index: 3;
  border: 1px solid #ffffff20;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  background: #202231;
  color: white;
  font-size: 25px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.dialog-close:focus,
.dialog-close:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #c4b5fd;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 30px;
  padding: 38px 38px 0;
}
.detail-copy {
  padding: 15px 0;
}
.detail-heading {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 24px;
}
.detail-heading img {
  width: 78px;
  height: 78px;
  border-radius: 22%;
  object-fit: contain;
}
.detail-heading h2 {
  margin: 0;
  font-size: 32px;
  letter-spacing: -0.05em;
}
.detail-copy p {
  color: #fdfdfd;
}
.feature {
  display: flex;
  gap: 10px;
  align-items: start;
  color: #d7d8e3;
  font-size: 14px;
}
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 25px;
}
.button-primary {
  background: #9a7cf5;
  color: #fff;
  box-shadow: 0 5px 24px #9a7cf538;
}
.button-secondary {
  background: #202333;
  color: #eceaf8;
  border: 1px solid #ffffff18;
}
.detail-footer {
  display: flex;
  justify-content: center;
  padding: 0 38px 36px;
}

.feature-title {
  color: #ffffff; /* Vit text */
  font-weight: bold;
}
.feature-detail {
  color: #a0a0a0; /* Grå text */
}
/* Rubrikerna (t.ex. 📱 Helt Offline) */
.feature-heading {
  color: #ffffff !important; /* Vit text */
  font-weight: bold;
  margin-top: 14px; /* Lite extra avstånd över en ny rubrik */
}

/* Raderna under rubrikerna */
.feature-subitem {
  color: #62636c !important; /* Grå text */
  padding-left: 10px; /* Snyggt indrag för raderna under rubriken */
  margin-top: 4px;
}

.phone-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 14px 14px;
  background: radial-gradient(circle, #9a7cf51b, transparent 70%);
  border-radius: 22px;
}
.phone {
  width: min(100%, 400px);
  background: #282932;
  border: 2px solid #62636c;
  border-radius: 40px;
  padding: 8px;
  box-shadow: 0 20px 45px #0008;
}

.phone-screen {
  width: 100%;
  aspect-ratio: 590 / 1280;
  overflow: hidden;
  border-radius: 31px;
  background: #000;
  color: #141722;
  position: relative;
}

.phone-slide {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: fill;
  object-position: center;
  margin: 0;
}

.phone-slide.active {
  display: block;
}
.feature-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin: 24px 0;
  height: auto;
  max-height: none;
  overflow: visible;
}

.feature {
  display: flex;
  align-items: flex-start;
  min-height: 0;
  height: auto;
}
/* Ger rader med stjärna ett indrag (tab) */
.feature.feature-subitem {
  margin-left: 1.5rem;
}

/* Valfritt: Ger rubrikerna lite extra utrymme ovanför så det blir luftigare */
.feature.feature-heading {
  margin-top: 1rem;
  font-weight: bold; /* Gör rubriken fet om du vill */
}

/* .phone-screen{height: 500px; overflow:hidden;border-radius:31px;background:#f7f8fa;color:#141722} */
.phone-island {
  height: 0px;
  background: #191a11;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 0;
}
.phone-island span {
  width: 82px;
  height: 19px;
  border-radius: 0 0 13px 13px;
  background: #050609;
}
.phone-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 4px;
  color: #d4d3e0;
  font-size: 12px;
}
.carousel-controls {
  display: flex;
  gap: 7px;
}
.carousel-controls button {
  background: #262838;
  color: white;
  border: 1px solid #ffffff22;
  border-radius: 8px;
  padding: 5px 9px;
  cursor: pointer;
}
.swish-content {
  padding: 45px 28px 32px;
  text-align: center;
  max-width: 500px;
  margin: auto;
}
.support-icon.large {
  margin: 0 auto 20px;
  width: 66px;
  height: 66px;
}
.swish-content h2 {
  font-size: 30px;
  letter-spacing: -0.04em;
  margin: 10px 0;
}
.swish-content p {
  color: #b1b4c5;
}
.qr-placeholder {
  margin: 25px auto 16px;
  max-width: 290px;
  min-height: 235px;
  border: 1px dashed #9b83ff77;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 22px;
  background: #171a28;
}
.qr-symbol {
  font-size: 54px;
  color: #c4b5fd;
}
.qr-placeholder small,
.fine-print {
  font-size: 12px;
  color: #858aa0;
}
.empty-state {
  grid-column: 1/-1;
  padding: 40px;
  text-align: center;
  color: #a7aabd;
  border: 1px dashed #ffffff22;
  border-radius: 20px;
}

.detail-layout,
.detail-copy {
  min-height: 0;
  height: auto;
  max-height: none;
  overflow: visible;
}

.responsibility-section {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding-top: 32px;
  padding-bottom: 32px;
  border-top: 1px solid #ffffff18;
}

.responsibility-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: #9a7cf522;
  color: #b8a5ff;
  font-size: 24px;
}

.responsibility-copy {
  min-width: 0;
  max-width: 780px;
}

.responsibility-copy h2 {
  margin: 4px 0 14px;
}

.responsibility-copy p {
  color: #b2b5c6;
  line-height: 1.7;
}

#ansvar {
  display: none;
}

#ansvar.visible {
  display: flex;
}

@media (max-width: 600px) {
  .responsibility-section {
    gap: 12px;
  }

  .responsibility-icon {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 760px) {
  .detail-layout {
    grid-template-columns: minmax(0, 1fr);
    padding: 22px;
    gap: 24px;
  }
}

@media (max-width: 1000px) {
  .app-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .hero {
    padding-top: 72px;
  }

  .detail-layout {
    gap: 18px;
    padding: 28px;
  }
}
@media (max-width: 650px) {
  .topbar {
    height: calc(66px + env(safe-area-inset-top, 0px));
  }
  .topbar nav {
    display: none;
    position: absolute;
    top: calc(65px + env(safe-area-inset-top, 0px));
    left: 0;
    right: 0;
    background: #11131d;
    padding: 18px 22px;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 16px;
  }
  .topbar nav.open {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
  .hero {
    padding: 40px 23px 48px;
  }
  .hero h1 {
    font-size: 46px;
  }
  .hero p {
    font-size: 15px;
  }
  .orb-one {
    right: -180px;
    top: 90px;
  }
  .orb-two {
    right: -80px;
    top: 140px;
  }
  .section-wrap {
    padding: 55px 18px;
  }
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }
  .search-wrap {
    width: 100%;
  }
  .app-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }
  .app-card {
    padding: 13px;
    border-radius: 19px;
  }
  .app-icon-wrap {
    padding: 6px 0 12px;
  }
  .app-icon {
    width: min(100%, 120px);
    border-radius: 22%;
  }
  .app-card h3 {
    font-size: 15px;
  }
  .app-desc {
    font-size: 12px;
  }
  .support-section {
    margin: 0 18px 50px;
    padding: 23px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .support-section .button {
    width: 100%;
    justify-content: center;
  }
  .footer {
    flex-wrap: wrap;
  }
  .footer > span {
    order: 3;
    width: 100%;
  }
  .detail-layout {
    grid-template-columns: 1fr;
    padding: 24px 18px 22px;
    gap: 8px;
  }
  .detail-copy {
    padding: 0;
  }
  .detail-heading h2 {
    font-size: 27px;
  }
  .phone-stage {
    padding: 15px;
  }
  .phone {
    width: min(100%, 285px);
  }
  .detail-actions .button {
    flex: 1;
    justify-content: center;
  }
  .detail-footer {
    padding: 0 18px 30px;
  }
  .app-dialog,
  .swish-dialog {
    border-radius: 20px;
    max-height: calc(
      100dvh - 24px - env(safe-area-inset-top, 0px) -
        env(safe-area-inset-bottom, 0px)
    );
    margin-top: calc(12px + env(safe-area-inset-top, 0px));
  }
  .swish-content {
    padding: 45px 20px 25px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

.qr-placeholder img {
  display: block;
  width: min(100%, 240px);
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  padding: 8px;
}
.qr-placeholder img[hidden] {
  display: none;
}

.support-section {
  gap: 24px;
}
.support-copy {
  flex: 1 1 auto;
  min-width: 0;
}
.support-swish {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
.support-swish img {
  display: block;
  width: clamp(120px, 16vw, 160px);
  height: auto;
  border-radius: 10px;
}
@media (max-width: 650px) {
  .support-swish {
    align-self: center;
  }
  .support-swish img {
    width: min(100%, 220px);
  }
}
