/* ==========================================================================
   VisitWeb UF – Interaktiv live-demo
   Kontrollpanel + förhandsvisning. Mini-hemsidan (.ms) använder container queries
   så att den byter till mobillayout på riktigt i mobilvyn.
   ========================================================================== */

.demo__app {
  display: grid;
  grid-template-columns: minmax(290px, 350px) minmax(0, 1fr);
  gap: clamp(16px, 2vw, 28px);
  align-items: start;
  margin-top: clamp(40px, 5vw, 72px);
}

/* ---------- Kontroller ---------- */
.demo__controls {
  display: grid;
  gap: 26px;
  padding: 26px;
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line), var(--sh-2);
}
@media (min-width: 1025px) {
  .demo__controls { position: sticky; top: calc(var(--nav-h) + 24px); }
}
.ctl { margin: 0; padding: 0; border: 0; min-width: 0; }
.ctl__legend {
  padding: 0;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.ctl__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip__box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px 9px 12px;
  border-radius: 999px;
  background: var(--bg-tint);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.chip__box svg { width: 17px; height: 17px; flex: none; }
.chip__box:hover { background: #E9ECF3; color: var(--ink); }
.chip:active .chip__box { transform: scale(0.96); }
.chip input:checked + .chip__box { background: var(--ink); color: #fff; box-shadow: 0 8px 18px -10px rgba(21, 25, 35, 0.6); }
.chip input:focus-visible + .chip__box,
.stylecard input:focus-visible + .stylecard__box,
.swatch input:focus-visible + .swatch__dot { outline: 2.5px solid var(--blue-ink); outline-offset: 3px; }

.ctl__styles { display: grid; gap: 8px; }
.stylecard { position: relative; }
.stylecard__box {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 7px 12px 7px 7px;
  border-radius: 16px;
  background: var(--bg-tint);
  box-shadow: inset 0 0 0 1px var(--line);
  cursor: pointer;
  transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.stylecard__box:hover { background: #E9ECF3; }
.stylecard input:checked + .stylecard__box { background: #fff; box-shadow: inset 0 0 0 2px var(--ink), 0 10px 22px -14px rgba(21, 25, 35, 0.5); }
.stylecard__name { font-size: 0.93rem; font-weight: 600; }
.stylecard__thumb {
  position: relative;
  display: grid;
  align-content: center;
  gap: 4px;
  height: 46px;
  padding: 0 8px;
  border-radius: 10px;
  overflow: hidden;
}
.stylecard__thumb i { display: block; height: 4px; border-radius: 3px; }
.st-modern { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.st-modern i:nth-child(1) { width: 70%; height: 6px; background: var(--ink); }
.st-modern i:nth-child(2) { width: 90%; background: #DEE2EA; }
.st-modern i:nth-child(3) { width: 40%; height: 7px; border-radius: 6px; background: var(--blue); }
.st-elegant { background: #141418; justify-items: center; }
.st-elegant i:nth-child(1) { width: 60%; height: 5px; background: #EFE7DA; border-radius: 0; }
.st-elegant i:nth-child(2) { width: 36%; height: 1px; background: #B59F7B; }
.st-elegant i:nth-child(3) { width: 30%; height: 6px; border-radius: 0; background: transparent; box-shadow: inset 0 0 0 1px #EFE7DA; }
.st-kreativ { background: #FFE8D2; }
.st-kreativ::after { content: ""; position: absolute; right: -8px; top: -8px; width: 30px; height: 30px; border-radius: 50%; background: #FF7A45; }
.st-kreativ i:nth-child(1) { width: 66%; height: 8px; background: #15131A; border-radius: 2px; }
.st-kreativ i:nth-child(2) { width: 50%; height: 5px; background: #7C3AED; }
.st-kreativ i:nth-child(3) { width: 38%; height: 8px; border-radius: 6px; background: #FFD23F; box-shadow: 2px 2px 0 #15131A; }

.ctl__swatches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.swatch { position: relative; display: grid; justify-items: center; gap: 8px; cursor: pointer; }
.swatch__dot {
  position: relative;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--sw);
  box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--line);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.swatch__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.4 6.6 11.4 12.6 4.8' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.25s ease, transform 0.4s var(--ease);
}
.swatch:hover .swatch__dot { transform: scale(1.06); }
.swatch input:checked + .swatch__dot { box-shadow: 0 0 0 3px #fff, 0 0 0 5.5px var(--sw); }
.swatch input:checked + .swatch__dot::after { opacity: 1; transform: none; }
.swatch__name { font-size: 0.82rem; font-weight: 500; color: var(--ink-soft); }

.ctl__shuffle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border-radius: 14px;
  border: 1.5px dashed var(--line-strong);
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--ink-soft);
  transition: border-color 0.3s ease, color 0.3s ease, background-color 0.3s ease;
}
.ctl__shuffle svg { width: 18px; height: 18px; transition: transform 0.6s var(--ease); }
.ctl__shuffle:hover { border-color: var(--blue-ink); color: var(--blue-ink); background: rgba(65, 105, 255, 0.04); }
.ctl__shuffle:hover svg { transform: rotate(180deg); }

/* ---------- Förhandsvisning ---------- */
.demo__preview { display: grid; gap: 14px; min-width: 0; }
.demo__toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.seg {
  position: relative;
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line), var(--sh-1);
}
.seg__thumb {
  position: absolute;
  top: 4px; bottom: 4px; left: 0;
  width: var(--tw, 50%);
  border-radius: 999px;
  background: var(--ink);
  transform: translateX(var(--tx, 4px));
  transition: transform 0.5s var(--ease), width 0.5s var(--ease);
}
.seg__btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-muted);
  transition: color 0.3s ease;
}
.seg__btn svg { width: 18px; height: 18px; }
.seg__btn:hover { color: var(--ink); }
.seg__btn[aria-pressed="true"] { color: #fff; }

.demo__viewport {
  position: relative;
  display: grid;
  justify-items: center;
  align-items: start;
  min-width: 0;
  padding: clamp(14px, 2.6vw, 36px);
  border-radius: 28px;
  background:
    radial-gradient(60% 60% at 80% 0%, rgba(65, 105, 255, 0.1), transparent 70%),
    radial-gradient(50% 60% at 0% 100%, rgba(167, 139, 250, 0.12), transparent 70%),
    #E9ECF3;
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
}
.demo__device {
  position: relative;
  width: var(--dw, 100%);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(21, 25, 35, 0.08), 0 40px 80px -40px rgba(28, 40, 110, 0.45);
  overflow: hidden;
  transition: opacity 0.35s var(--ease), transform 0.5s var(--ease);
}
.demo__device.is-switching { opacity: 0; transform: translateY(14px) scale(0.98); }
.demo__chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 38px;
  padding: 0 14px;
  background: #F6F7FA;
  border-bottom: 1px solid var(--line);
}
.demo__url {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-inline: auto;
  padding: 4px 14px;
  border-radius: 7px;
  background: #fff;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-muted);
}
.demo__url svg { width: 11px; height: 11px; color: var(--success); }
.demo__notch { display: none; }
.demo__screen-wrap { position: relative; height: var(--sh, 600px); overflow: hidden; }
.demo__screen {
  width: var(--iw, 1200px);
  height: var(--ih, 760px);
  transform: scale(var(--sc, 1));
  transform-origin: 0 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  container-type: inline-size;
  container-name: ms;
  background: #fff;
}
.demo__screen:focus-visible { outline: 3px solid var(--blue-ink); outline-offset: -3px; }
.demo__noscript { padding: 40px; font-size: 1.2rem; }

.demo__device[data-view="mobile"] {
  padding: 12px;
  border-radius: 46px;
  background: #151923;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 0 50px 90px -40px rgba(21, 25, 35, 0.6);
}
.demo__device[data-view="mobile"] .demo__chrome { display: none; }
.demo__device[data-view="mobile"] .demo__notch {
  display: block;
  position: absolute;
  top: 20px; left: 50%;
  z-index: 3;
  width: 92px; height: 26px;
  border-radius: 20px;
  background: #151923;
  transform: translateX(-50%);
}
.demo__device[data-view="mobile"] .demo__screen-wrap { border-radius: 34px; }

.demo__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  margin-top: clamp(28px, 3vw, 44px);
  padding: clamp(22px, 3vw, 34px) clamp(22px, 3vw, 40px);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line), var(--sh-1);
}
.demo__cta-text {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

@media (max-width: 1024px) {
  .demo__app { grid-template-columns: 1fr; }
  .demo__controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo__controls .ctl:first-child { grid-column: 1 / -1; }
  .ctl__shuffle { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .demo__controls { grid-template-columns: 1fr; padding: 20px; gap: 22px; }
  .ctl__chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: -20px; padding: 2px 20px 6px; scrollbar-width: none; scroll-snap-type: x proximity; }
  .ctl__chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; scroll-snap-align: start; }
  .demo__cta .btn { width: 100%; }
  .demo__toolbar .tag { display: none; }
  .demo__toolbar { justify-content: center; }
  .seg { width: 100%; }
  .seg__btn { flex: 1; justify-content: center; }
}

/* ==========================================================================
   Mini-hemsidan (.ms) – tre stilar, valfri accentfärg
   ========================================================================== */
.ms {
  --ac: #2563EB;
  --ac-soft: color-mix(in srgb, var(--ac) 12%, #fff);
  --ac-mid: color-mix(in srgb, var(--ac) 42%, #fff);
  --ac-deep: color-mix(in srgb, var(--ac) 72%, #000);
  --ms-bg: #fff;
  --ms-ink: #14161C;
  --ms-muted: #5D6371;
  --ms-surface: #F5F6F8;
  --ms-line: rgba(20, 22, 28, 0.09);
  --ms-radius: 16px;
  --ms-btn-radius: 999px;
  --ms-h-font: var(--font-body);
  --ms-h-weight: 600;
  --ms-h-spacing: -0.035em;
  --ms-btn-bg: var(--ac);
  --ms-btn-fg: #fff;
  --ms-link: var(--ac);
  --il-bg: var(--ac-soft);
  --il-soft: var(--ac-mid);
  --il-mid: color-mix(in srgb, var(--ac) 65%, #fff);
  --il-light: #fff;
  --il-ink: #1D2130;

  position: relative;
  min-height: 100%;
  background: var(--ms-bg);
  color: var(--ms-ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease);
}
.ms * { transition: background-color 0.5s var(--ease), color 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease), border-radius 0.5s var(--ease); }
.ms svg .bg { fill: var(--il-bg); }
.ms svg .a { fill: var(--ac); }
.ms svg .as { fill: var(--il-soft); }
.ms svg .am { fill: var(--il-mid); }
.ms svg .w { fill: var(--il-light); }
.ms svg .k { fill: var(--il-ink); }
.ms svg .sa { fill: none; stroke: var(--ac); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.ms svg .sk { fill: none; stroke: var(--il-ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ms svg .sl { fill: none; stroke: var(--il-soft); stroke-width: 1; }
.ms svg text { font-family: var(--font-body); font-weight: 700; fill: #fff; letter-spacing: 0.06em; }
.ms svg * { transition: fill 0.5s var(--ease), stroke 0.5s var(--ease); }

/* Animering när innehållet byts */
.ms [data-anim] { animation: ms-in 0.7s var(--ease) both; animation-delay: calc(var(--k, 0) * 60ms); }
@keyframes ms-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.ms-wrap { width: min(100% - 96px, 1080px); margin-inline: auto; }

.ms-nav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 18px 48px;
  background: color-mix(in srgb, var(--ms-bg) 88%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ms-line);
}
.ms-logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--ms-h-font); font-weight: 700; font-size: 20px; letter-spacing: -0.03em; white-space: nowrap; }
.ms-logo__mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--ac); color: #fff; }
.ms-logo__mark svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ms-links { display: flex; gap: 28px; margin-left: auto; font-size: 15px; font-weight: 500; color: var(--ms-muted); }
.ms-links span { cursor: pointer; }
.ms-links span:hover { color: var(--ms-ink); }
.ms-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--ms-btn-radius);
  background: var(--ms-btn-bg);
  color: var(--ms-btn-fg);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.3s var(--ease), background-color 0.5s var(--ease), color 0.5s var(--ease), box-shadow 0.3s var(--ease);
}
.ms-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--ac) 70%, transparent); }
.ms-btn--sm { padding: 10px 18px; font-size: 14px; }
.ms-btn--ghost { background: transparent; color: var(--ms-ink); box-shadow: inset 0 0 0 1.5px var(--ms-line); }
.ms-btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ms-ink); }
.ms-burger { display: none; width: 44px; height: 44px; border-radius: 12px; background: var(--ms-surface); place-items: center; cursor: pointer; }
.ms-burger i { display: block; width: 18px; height: 2px; background: var(--ms-ink); border-radius: 2px; box-shadow: 0 6px 0 var(--ms-ink); transform: translateY(-3px); }

.ms-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; padding: 72px 48px 64px; }
.ms-hero__text { display: grid; gap: 22px; justify-items: start; }
.ms-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--ac-soft);
  color: var(--ac-deep);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.ms-h1 {
  font-family: var(--ms-h-font);
  font-weight: var(--ms-h-weight);
  font-size: 58px;
  line-height: 1.02;
  letter-spacing: var(--ms-h-spacing);
  text-wrap: balance;
}
.ms-lead { font-size: 18px; color: var(--ms-muted); max-width: 46ch; }
.ms-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ms-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--ms-muted); }
.ms-meta span { display: inline-flex; align-items: center; gap: 8px; }
.ms-meta span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ac); }
.ms-hero__media { position: relative; aspect-ratio: 4 / 3.3; border-radius: calc(var(--ms-radius) * 1.5); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(20, 22, 28, 0.35); }
.ms-hero__media svg { width: 100%; height: 100%; display: block; }
.ms-badge {
  position: absolute;
  left: 18px; bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  color: #14161C;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 12px 26px -12px rgba(20, 22, 28, 0.4);
}
.ms-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ac); }

.ms-section { padding: 64px 48px; }
.ms-sec-head { display: grid; gap: 12px; justify-items: start; margin-bottom: 32px; }
.ms-h2 { font-family: var(--ms-h-font); font-weight: var(--ms-h-weight); font-size: 38px; line-height: 1.08; letter-spacing: var(--ms-h-spacing); }
.ms-h3 { font-family: var(--ms-h-font); font-weight: var(--ms-h-weight); font-size: 21px; line-height: 1.2; letter-spacing: -0.02em; }
.ms-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ms-card { display: grid; gap: 12px; align-content: start; padding: 28px; border-radius: var(--ms-radius); background: var(--ms-surface); }
.ms-card p { color: var(--ms-muted); font-size: 15px; }
.ms-card__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--ac-soft); color: var(--ac-deep); }
.ms-card__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.ms-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.ms-item { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--ms-line); }
.ms-item__t { font-weight: 600; font-size: 17px; }
.ms-item__d { font-size: 14px; color: var(--ms-muted); }
.ms-item__p { flex: none; font-weight: 600; color: var(--ac-deep); font-variant-numeric: tabular-nums; }

.ms-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 24px 48px 56px;
  padding: 44px 48px;
  border-radius: calc(var(--ms-radius) * 1.5);
  background: var(--ac);
  color: #fff;
}
.ms-band .ms-h2 { color: #fff; }
.ms-band .ms-btn { background: #fff; color: var(--ac-deep); }
.ms-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding: 28px 48px 36px; border-top: 1px solid var(--ms-line); font-size: 14px; color: var(--ms-muted); }

.ms-toast {
  position: sticky;
  bottom: 18px;
  z-index: 6;
  width: max-content;
  max-width: calc(100% - 36px);
  margin: -64px auto 18px;
  padding: 12px 18px;
  border-radius: 14px;
  background: #14161C;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 16px 34px -12px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.5s var(--ease);
}
.ms-toast.is-show { opacity: 1; transform: none; }
.ms-menu {
  position: absolute;
  top: 76px; left: 0; right: 0;
  z-index: 4;
  display: grid;
  gap: 4px;
  padding: 16px 24px 24px;
  background: var(--ms-bg);
  border-bottom: 1px solid var(--ms-line);
  box-shadow: 0 20px 30px -20px rgba(0, 0, 0, 0.3);
  font-family: var(--ms-h-font);
  font-size: 22px;
  font-weight: var(--ms-h-weight);
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.4s var(--ease);
}
.ms-menu span { padding: 8px 0; border-bottom: 1px solid var(--ms-line); }
.ms.is-menu .ms-menu { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- Stil: Exklusiv och elegant ---------- */
.ms[data-style="elegant"] {
  --ac-light: color-mix(in srgb, var(--ac) 45%, #F4EFE6);
  --ms-bg: #121216;
  --ms-ink: #F4EFE6;
  --ms-muted: #ABA59B;
  --ms-surface: transparent;
  --ms-line: rgba(244, 239, 230, 0.14);
  --ms-radius: 2px;
  --ms-btn-radius: 0px;
  --ms-h-font: var(--font-serif);
  --ms-h-weight: 400;
  --ms-h-spacing: -0.01em;
  --ms-btn-bg: var(--ac-light);
  --ms-btn-fg: #121216;
  --il-bg: color-mix(in srgb, var(--ac) 22%, #1A1A20);
  --il-soft: color-mix(in srgb, var(--ac) 38%, #2A2A31);
  --il-mid: color-mix(in srgb, var(--ac) 60%, #F4EFE6);
  --il-light: #EDE6DA;
  --il-ink: #0D0D10;
}
.ms[data-style="elegant"] .ms-nav { padding: 24px 48px; }
.ms[data-style="elegant"] .ms-logo { font-family: var(--font-serif); font-weight: 400; font-size: 26px; letter-spacing: 0.01em; }
.ms[data-style="elegant"] .ms-logo__mark { background: transparent; color: var(--ac-light); box-shadow: inset 0 0 0 1px var(--ac-light); border-radius: 50%; }
.ms[data-style="elegant"] .ms-links { text-transform: uppercase; letter-spacing: 0.18em; font-size: 12px; }
.ms[data-style="elegant"] .ms-btn { text-transform: uppercase; letter-spacing: 0.14em; font-size: 12px; padding: 16px 28px; }
.ms[data-style="elegant"] .ms-btn--sm { padding: 12px 20px; }
.ms[data-style="elegant"] .ms-btn--ghost { color: var(--ms-ink); box-shadow: inset 0 0 0 1px var(--ms-line); }
.ms[data-style="elegant"] .ms-hero { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: 48px; padding-top: 80px; }
.ms[data-style="elegant"] .ms-hero__text { justify-items: center; }
.ms[data-style="elegant"] .ms-eyebrow { background: transparent; color: var(--ac-light); padding: 0; text-transform: uppercase; letter-spacing: 0.24em; font-size: 12px; }
.ms[data-style="elegant"] .ms-h1 { font-size: 76px; line-height: 1; max-width: 16ch; }
.ms[data-style="elegant"] .ms-lead { margin-inline: auto; }
.ms[data-style="elegant"] .ms-actions, .ms[data-style="elegant"] .ms-meta { justify-content: center; }
.ms[data-style="elegant"] .ms-meta span::before { border-radius: 0; width: 14px; height: 1px; background: var(--ac-light); }
.ms[data-style="elegant"] .ms-hero__media { width: 100%; aspect-ratio: 21 / 8; border-radius: 0; box-shadow: none; }
.ms[data-style="elegant"] .ms-badge { border-radius: 0; background: #121216; color: var(--ms-ink); text-transform: uppercase; letter-spacing: 0.14em; font-size: 11px; }
.ms[data-style="elegant"] .ms-sec-head { justify-items: center; text-align: center; margin-bottom: 44px; }
.ms[data-style="elegant"] .ms-h2 { font-size: 46px; }
.ms[data-style="elegant"] .ms-h3 { font-size: 26px; }
.ms[data-style="elegant"] .ms-grid { gap: 0; border-block: 1px solid var(--ms-line); }
.ms[data-style="elegant"] .ms-card { padding: 36px 32px; text-align: center; justify-items: center; }
.ms[data-style="elegant"] .ms-card + .ms-card { border-left: 1px solid var(--ms-line); }
.ms[data-style="elegant"] .ms-card__icon { background: transparent; color: var(--ac-light); border-radius: 50%; box-shadow: inset 0 0 0 1px var(--ms-line); }
.ms[data-style="elegant"] .ms-item__t { font-family: var(--font-serif); font-weight: 400; font-size: 22px; }
.ms[data-style="elegant"] .ms-item__p { color: var(--ac-light); font-weight: 500; letter-spacing: 0.04em; }
.ms[data-style="elegant"] .ms-band { background: transparent; border-block: 1px solid var(--ms-line); border-radius: 0; margin-inline: 48px; padding-inline: 0; }
.ms[data-style="elegant"] .ms-band .ms-h2 { color: var(--ms-ink); }
.ms[data-style="elegant"] .ms-band .ms-btn { background: var(--ac-light); color: #121216; }
.ms[data-style="elegant"] .ms-toast { background: var(--ac-light); color: #121216; border-radius: 0; }

/* ---------- Stil: Kreativ och färgstark ---------- */
.ms[data-style="kreativ"] {
  --ms-bg: color-mix(in srgb, var(--ac) 9%, #FFFBF4);
  --ms-ink: #15131A;
  --ms-muted: #4D4856;
  --ms-surface: #fff;
  --ms-line: rgba(21, 19, 26, 0.14);
  --ms-radius: 26px;
  --ms-h-font: var(--font-display);
  --ms-h-weight: 700;
  --ms-h-spacing: -0.05em;
  --il-bg: color-mix(in srgb, var(--ac) 22%, #FFF3E2);
  --il-soft: #FFD23F;
  --il-mid: color-mix(in srgb, var(--ac) 50%, #fff);
  --il-light: #fff;
  --il-ink: #15131A;
}
.ms[data-style="kreativ"] .ms-logo { font-size: 22px; }
.ms[data-style="kreativ"] .ms-logo__mark { border-radius: 50%; background: var(--ms-ink); color: #FFD23F; }
.ms[data-style="kreativ"] .ms-btn { box-shadow: 4px 4px 0 var(--ms-ink); border: 2px solid var(--ms-ink); }
.ms[data-style="kreativ"] .ms-btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ms-ink); }
.ms[data-style="kreativ"] .ms-btn--ghost { background: #fff; color: var(--ms-ink); }
.ms[data-style="kreativ"] .ms-h1 { font-size: 72px; line-height: 0.95; }
.ms[data-style="kreativ"] .ms-eyebrow { background: #FFD23F; color: var(--ms-ink); transform: rotate(-2deg); box-shadow: 2px 2px 0 var(--ms-ink); }
.ms[data-style="kreativ"] .ms-hero__media { border-radius: 58% 42% 46% 54% / 46% 52% 48% 54%; box-shadow: none; overflow: visible; }
.ms[data-style="kreativ"] .ms-hero__media svg { border-radius: inherit; }
.ms[data-style="kreativ"] .ms-badge {
  left: auto; right: -6px; bottom: auto; top: -10px;
  width: 116px; height: 116px;
  justify-content: center;
  padding: 12px;
  border-radius: 50%;
  background: #FFD23F;
  color: var(--ms-ink);
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.1;
  box-shadow: 3px 3px 0 var(--ms-ink);
  animation: ms-wobble 6s ease-in-out infinite;
}
.ms[data-style="kreativ"] .ms-badge::before { display: none; }
@keyframes ms-wobble { 50% { transform: rotate(10deg) scale(1.04); } }
.ms[data-style="kreativ"] .ms-h2 { font-size: 46px; }
.ms[data-style="kreativ"] .ms-card { box-shadow: 0 0 0 2px var(--ms-ink); }
.ms[data-style="kreativ"] .ms-card:nth-child(1) { background: #fff; transform: rotate(-1.2deg); }
.ms[data-style="kreativ"] .ms-card:nth-child(2) { background: var(--ac); color: #fff; transform: translateY(14px) rotate(1deg); }
.ms[data-style="kreativ"] .ms-card:nth-child(2) p { color: rgba(255, 255, 255, 0.86); }
.ms[data-style="kreativ"] .ms-card:nth-child(2) .ms-card__icon { background: rgba(255, 255, 255, 0.18); color: #fff; }
.ms[data-style="kreativ"] .ms-card:nth-child(3) { background: #FFD23F; transform: rotate(-0.6deg); }
.ms[data-style="kreativ"] .ms-card__icon { border-radius: 50%; }
.ms[data-style="kreativ"] .ms-items { gap: 14px; }
.ms[data-style="kreativ"] .ms-item { padding: 18px 22px; border: 2px solid var(--ms-ink); border-radius: 20px; background: #fff; }
.ms[data-style="kreativ"] .ms-item__p { padding: 6px 12px; border-radius: 999px; background: var(--ac); color: #fff; }
.ms[data-style="kreativ"] .ms-band { border: 2px solid var(--ms-ink); box-shadow: 6px 6px 0 var(--ms-ink); }
.ms[data-style="kreativ"] .ms-band .ms-btn { background: #FFD23F; color: var(--ms-ink); }

/* ---------- Mobillayout inne i förhandsvisningen ---------- */
@container ms (max-width: 640px) {
  .ms-nav { padding: 14px 20px; gap: 12px; }
  .ms[data-style="elegant"] .ms-nav { padding: 18px 20px; }
  .ms-links, .ms-nav > .ms-btn { display: none; }
  .ms-burger { display: grid; margin-left: auto; }
  .ms-hero { grid-template-columns: 1fr; gap: 28px; padding: 36px 20px 32px; }
  .ms[data-style="elegant"] .ms-hero { padding-top: 44px; gap: 32px; }
  .ms-h1, .ms[data-style="kreativ"] .ms-h1 { font-size: 40px; }
  .ms[data-style="elegant"] .ms-h1 { font-size: 46px; }
  .ms-lead { font-size: 16px; }
  .ms-actions .ms-btn { flex: 1; }
  .ms-hero__media { aspect-ratio: 4 / 3.2; }
  .ms[data-style="elegant"] .ms-hero__media { aspect-ratio: 4 / 3; }
  .ms[data-style="kreativ"] .ms-badge { width: 92px; height: 92px; font-size: 12px; }
  .ms-section { padding: 40px 20px; }
  .ms-h2, .ms[data-style="elegant"] .ms-h2, .ms[data-style="kreativ"] .ms-h2 { font-size: 30px; }
  .ms-grid { grid-template-columns: 1fr; gap: 14px; }
  .ms[data-style="elegant"] .ms-card + .ms-card { border-left: 0; border-top: 1px solid var(--ms-line); }
  .ms[data-style="kreativ"] .ms-card:nth-child(2) { transform: rotate(1deg); }
  .ms-items { grid-template-columns: 1fr; }
  .ms-band { flex-direction: column; align-items: flex-start; margin: 12px 20px 40px; padding: 32px 24px; }
  .ms[data-style="elegant"] .ms-band { margin-inline: 20px; }
  .ms-foot { flex-direction: column; padding: 24px 20px 32px; }
}
