/* Egen box-modell: layouten får inte bero på i vilken ordning stilmallarna kommer. */
.desktop-page, .desktop-page *, .desktop-page *::before, .desktop-page *::after { box-sizing: border-box; }

.desktop-promo,
.desktop-page {
  color: #f6f4ef;
}

.desktop-promo {
  max-width: 1360px;
  margin: 5rem auto;
  padding: clamp(2rem, 5vw, 5rem);
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 3rem;
  align-items: center;
  border-top: 4px solid #f1d4b1;
  background: repeating-linear-gradient(120deg, #111d27 0, #111d27 36px, #14232d 37px, #14232d 38px);
}

.desktop-promo h2,
.desktop-page h1 {
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin: 0.3em 0 0.45em;
}

.desktop-kicker {
  color: #f1d4b1;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin: 0;
}

.desktop-promo p,
.desktop-page p {
  line-height: 1.6;
}

.desktop-actions {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  flex-wrap: wrap;
  margin: 1.8rem 0;
}

.desktop-actions a,
.desktop-trust a {
  color: #f1d4b1;
  font-weight: 700;
  text-decoration: none;
}

.desktop-actions a:hover,
.desktop-trust a:hover {
  text-decoration: underline;
}

.desktop-actions .desktop-cta,
.desktop-cta {
  display: inline-block;
  background: #f1d4b1;
  color: #0b121c;
  padding: 0.95rem 1.35rem;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.desktop-actions .desktop-cta:hover,
.desktop-cta:hover {
  background: #f7e1c6;
  text-decoration: none;
}

.desktop-actions .desktop-cta-secondary,
.desktop-cta-secondary {
  display: inline-block;
  background: rgba(241, 212, 177, 0.08);
  color: #f1d4b1;
  border: 1px solid rgba(241, 212, 177, 0.36);
  padding: 0.9rem 1.2rem;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}

.desktop-actions .desktop-cta-secondary:hover,
.desktop-cta-secondary:hover {
  background: rgba(241, 212, 177, 0.16);
  border-color: rgba(241, 212, 177, 0.62);
  text-decoration: none;
}

.desktop-unavailable {
  opacity: 0.55;
}

.desktop-meta {
  font-size: 0.92rem;
  color: #a9b8c9;
}

.desktop-preview {
  margin: 0;
  min-width: 0;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.55)) drop-shadow(0 10px 26px rgba(241, 212, 177, 0.14));
}

.desktop-preview img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(241, 212, 177, 0.28);
  border-radius: 12px;
}

.desktop-features {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.75rem;
  margin: 0;
}

.desktop-features div {
  border-top: 1px solid rgba(241, 212, 177, 0.24);
  padding-top: 1.1rem;
}

.desktop-features dt {
  font-weight: 800;
  color: #f1d4b1;
  font-size: 1.08rem;
}

.desktop-features dd {
  margin: 0.5rem 0 0;
  line-height: 1.6;
  color: #c7d2df;
}

.desktop-page {
  max-width: 1360px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4.5rem) clamp(1.5rem, 4vw, 3rem) 5rem;
  background: transparent;
}

/* Override the hard 360px subpage strip (higher specificity than affischen-shell.css) */
html[data-smidity-theme="arctic"] body:not(:has(.arctic-hero)):not(:has([data-pricing-root])):not(:has(.smidity-editor-host)) main.desktop-page::before {
  height: 540px;
  background:
    radial-gradient(60% 80% at 72% 28%, rgba(241, 212, 177, 0.12) 0%, rgba(29, 42, 56, 0.35) 45%, transparent 78%),
    linear-gradient(180deg, rgba(6, 10, 17, 0.55) 0%, rgba(9, 15, 24, 0) 100%);
}

.desktop-page-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
  min-height: 56vh;
  padding-bottom: 3rem;
}

.desktop-details,
.desktop-trust {
  padding: 3.5rem 0;
  border-top: 1px solid rgba(241, 212, 177, 0.18);
}

.desktop-details h2,
.desktop-trust h2 {
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  margin-top: 0;
}

.desktop-details .desktop-features {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.desktop-trust input {
  display: block;
  width: min(100%, 44rem);
  box-sizing: border-box;
  background: #060a11;
  color: #fff;
  border: 1px solid rgba(241, 212, 177, 0.45);
  border-radius: 8px;
  padding: 0.9rem 1rem;
  font: 0.92rem 'JetBrains Mono', monospace;
}

.desktop-trust label {
  display: block;
  margin: 1rem 0 0.45rem;
  color: #a9b8c9;
  font-weight: 600;
}

.desktop-promo :focus-visible,
.desktop-page :focus-visible {
  outline: 3px solid #f1d4b1;
  outline-offset: 4px;
}

/* ===== Premium-lyft: knappar, chips och studiokort (Obsidian + Varm Sand) ===== */
.desktop-actions .desktop-cta,
.desktop-actions .desktop-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 3.6rem;
  padding: 0.7rem 1.3rem;
  border-radius: 14px;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.desktop-actions .desktop-cta {
  background: linear-gradient(135deg, #f7e1c6, #f1d4b1);
  box-shadow: 0 14px 30px -16px rgba(241, 212, 177, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.desktop-actions .desktop-cta:hover {
  background: linear-gradient(135deg, #fbe9d2, #f4d9b8);
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -14px rgba(241, 212, 177, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.desktop-actions .desktop-cta-secondary {
  background: linear-gradient(155deg, rgba(20, 30, 44, 0.94), rgba(11, 17, 27, 0.98));
  color: #f1d4b1;
  border: 1px solid rgba(241, 212, 177, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.desktop-actions .desktop-cta-secondary:hover {
  background: linear-gradient(155deg, rgba(28, 41, 58, 0.96), rgba(14, 22, 34, 0.98));
  border-color: rgba(241, 212, 177, 0.75);
  transform: translateY(-2px);
}

.desktop-cta__icon {
  flex: none;
}

.desktop-cta__text {
  display: grid;
  gap: 0.15rem;
  text-align: left;
}

.desktop-cta__text strong {
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.2;
}

.desktop-cta__text small {
  font: 500 0.78rem/1.2 'JetBrains Mono', ui-monospace, monospace;
  opacity: 1;
}

.desktop-actions .desktop-cta .desktop-cta__text small {
  color: #5b4630 !important;
}

.desktop-actions .desktop-cta-secondary .desktop-cta__text small {
  color: #aebbc9 !important;
}

@media (min-width: 801px) {
  .desktop-page-hero {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  }

  .desktop-page-hero .desktop-actions {
    flex-wrap: nowrap;
    gap: 0.9rem;
  }

  .desktop-page-hero .desktop-actions .desktop-cta,
  .desktop-page-hero .desktop-actions .desktop-cta-secondary {
    min-width: 0;
    gap: 0.65rem;
    padding: 0.7rem 1.05rem;
  }
}

.desktop-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0;
}

.desktop-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(241, 212, 177, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: #c7d2df;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}

.desktop-chip--version {
  background: rgba(241, 212, 177, 0.14);
  border-color: rgba(241, 212, 177, 0.45);
  color: #f1d4b1;
  font: 700 0.82rem/1.3 'JetBrains Mono', ui-monospace, monospace;
}

.desktop-chip--verified {
  background: rgba(134, 214, 164, 0.1);
  border-color: rgba(134, 214, 164, 0.38);
  color: #b4e8c8;
}

.desktop-chips a.desktop-chip--link {
  color: #f1d4b1;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.desktop-chips a.desktop-chip--link:hover {
  background: rgba(241, 212, 177, 0.14);
  border-color: rgba(241, 212, 177, 0.6);
  transform: translateY(-1px);
  text-decoration: none;
}

.desktop-details .desktop-features {
  gap: 1.25rem;
}

.desktop-details .desktop-features > div {
  padding: 1.5rem 1.4rem 1.6rem;
  border: 1px solid rgba(241, 212, 177, 0.16);
  border-radius: 16px;
  background: linear-gradient(155deg, rgba(20, 30, 44, 0.94), rgba(11, 17, 27, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 22px 44px -34px rgba(0, 0, 0, 0.8);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.desktop-details .desktop-features > div:hover {
  border-color: rgba(241, 212, 177, 0.5);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 24px 44px -28px rgba(241, 212, 177, 0.4);
}

.desktop-feature-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(241, 212, 177, 0.3);
  background: linear-gradient(155deg, rgba(241, 212, 177, 0.18), rgba(241, 212, 177, 0.06));
  color: #f1d4b1;
}

.desktop-details .desktop-features dt {
  color: #fff;
}

.desktop-details .desktop-features dd {
  color: #aebbc9;
}

@media (prefers-reduced-motion: reduce) {
  .desktop-actions .desktop-cta:hover,
  .desktop-actions .desktop-cta-secondary:hover,
  .desktop-chips a.desktop-chip--link:hover,
  .desktop-details .desktop-features > div:hover {
    transform: none;
  }
}

@media (max-width: 800px) {
  .desktop-promo,
  .desktop-page-hero {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .desktop-features,
  .desktop-details .desktop-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .desktop-promo {
    margin: 3rem 0;
  }

  .desktop-page-hero {
    min-height: 0;
    padding: 1.5rem 0 3rem;
  }
}

@media (max-width: 480px) {
  .desktop-features,
  .desktop-details .desktop-features {
    grid-template-columns: 1fr;
  }

  .desktop-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .desktop-actions .desktop-cta,
  .desktop-actions .desktop-cta-secondary {
    width: 100%;
    box-sizing: border-box;
  }

  .desktop-promo {
    padding: 2rem 1.25rem;
  }

  .desktop-page {
    padding: 1.5rem 1.25rem 3.5rem;
  }

  .desktop-trust input {
    font-size: 0.78rem;
  }
}

/* ===== Smooth nedladdningsguide & micro-feedback (2026-11-23) ===== */
.desktop-actions .desktop-cta.is-downloading,
.desktop-actions .desktop-cta-secondary.is-downloading {
  position: relative;
  overflow: hidden;
}
.desktop-actions .desktop-cta.is-downloading::after,
.desktop-actions .desktop-cta-secondary.is-downloading::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.45) 50%, transparent 80%);
  transform: translateX(-100%);
  animation: desktop-cta-sheen 0.9s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}
@keyframes desktop-cta-sheen {
  to { transform: translateX(120%); }
}

.desktop-dl-guide {
  margin: 0 0 1.4rem;
  padding: 1.15rem 1.25rem;
  border-radius: 14px;
  border: 1px solid rgba(241, 212, 177, 0.34);
  background: linear-gradient(155deg, rgba(16, 25, 37, 0.96), rgba(9, 15, 24, 0.98));
  box-shadow: 0 22px 44px -26px rgba(0, 0, 0, 0.78), 0 0 28px -12px rgba(241, 212, 177, 0.25);
  animation: desktop-guide-enter 280ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes desktop-guide-enter {
  from { opacity: 0; transform: translate3d(0, 10px, 0) scale(0.985); }
  to { opacity: 1; transform: none; }
}
.desktop-dl-guide__head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.7rem;
}
.desktop-dl-guide__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #f1d4b1;
  box-shadow: 0 0 12px rgba(241, 212, 177, 0.9);
  animation: desktop-dot-pulse 1.5s ease-in-out infinite;
}
.desktop-dl-guide.is-ready .desktop-dl-guide__dot {
  background: #86d6a4;
  box-shadow: 0 0 12px rgba(134, 214, 164, 0.85);
  animation: none;
}
@keyframes desktop-dot-pulse {
  0%, 100% { opacity: 0.55; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.12); }
}
.desktop-dl-guide__head strong {
  color: #fff;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.desktop-dl-guide__head code {
  margin-left: auto;
  padding: 0.18rem 0.55rem;
  border-radius: 6px;
  background: rgba(241, 212, 177, 0.12);
  color: #f1d4b1;
  font: 500 0.78rem/1.3 'JetBrains Mono', ui-monospace, monospace;
}
.desktop-dl-guide__track {
  position: relative;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 0.9rem;
}
.desktop-dl-guide__bar {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #d6ae7e, #f1d4b1 60%, #f8e8d0);
  transform-origin: 0 50%;
  transform: scaleX(0.08);
  transition: transform 2.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.desktop-dl-guide__bar.is-running {
  transform: scaleX(0.86);
}
.desktop-dl-guide__bar.is-done {
  transform: scaleX(1);
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}
.desktop-dl-guide__steps {
  list-style: none;
  margin: 0 0 0.8rem;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.desktop-dl-guide__steps li {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  color: #c7d2df;
  font-size: 0.88rem;
  line-height: 1.45;
}
.desktop-dl-guide__steps li span {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: rgba(241, 212, 177, 0.14);
  border: 1px solid rgba(241, 212, 177, 0.34);
  color: #f1d4b1;
  font: 600 0.72rem/1 'JetBrains Mono', ui-monospace, monospace;
}
.desktop-dl-guide__retry {
  display: inline-block;
  color: #f1d4b1;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
}
.desktop-dl-guide__retry:hover {
  text-decoration: underline;
}
.desktop-trust input.is-copied {
  border-color: #86d6a4;
  box-shadow: 0 0 0 2px rgba(134, 214, 164, 0.25);
}
@media (prefers-reduced-motion: reduce) {
  .desktop-dl-guide,
  .desktop-dl-guide__dot,
  .desktop-actions .desktop-cta.is-downloading::after,
  .desktop-actions .desktop-cta-secondary.is-downloading::after {
    animation: none;
  }
  .desktop-dl-guide__bar {
    transition: none;
  }
}

/* Polish (2026-11-23): inget hopp när nedladdningsguiden öppnas, och knapptexterna bryts inte på mellanbredd. */
@media (min-width: 801px) {
  .desktop-page-hero { align-items: start; }
  .desktop-page-hero .desktop-preview { margin-top: clamp(0rem, 2vw, 2rem); }
}
@media (min-width: 801px) and (max-width: 1180px) {
  .desktop-page-hero .desktop-actions { flex-direction: column; align-items: stretch; }
}
.desktop-actions .desktop-cta .desktop-cta__text small,
.desktop-actions .desktop-cta-secondary .desktop-cta__text small { white-space: nowrap; }
