/* Coverkort-fan: produktforklaring, bevægelse og responsive tilstande */
.landing-page .hero-stage-grid{
  grid-template-columns:1fr;
}

.landing-page #inspiration{
  padding:74px 0 92px;
  overflow:hidden;
}

.landing-page #inspiration .site-shell{
  max-width:1580px;
}

.landing-page #inspiration .section-heading{
  margin-bottom:42px;
}

.landing-page #inspiration .centered-heading:before{
  content:"ET COVER. MANGE COVERKORT. UENDELIGE UDTRYK.";
}

.landing-page .insert-explainer{
  width:100%;
  margin:0 auto;
}

.landing-page .insert-fan{
  width:100%;
  display:flex;
  justify-content:center;
  align-items:flex-start;
  gap:0;
  padding:22px 2px 30px;
}

.landing-page .insert-card-item{
  width:100%;
  max-width:154px;
  flex:0 1 154px;
  min-width:0;
  position:relative;
  text-align:center;
}

.landing-page .insert-card-item + .insert-card-item{
  margin-left:-18px;
}

/* Coveret er nu første, identiske element i den samme bue */
.landing-page .insert-card-item:nth-child(1){transform:translateY(32px);z-index:1}
.landing-page .insert-card-item:nth-child(2){transform:translateY(18px);z-index:2}
.landing-page .insert-card-item:nth-child(3){transform:translateY(7px);z-index:3}
.landing-page .insert-card-item:nth-child(4){transform:translateY(0);z-index:4}
.landing-page .insert-card-item:nth-child(5){transform:translateY(2px);z-index:5}
.landing-page .insert-card-item:nth-child(6){transform:translateY(10px);z-index:6}
.landing-page .insert-card-item:nth-child(7){transform:translateY(25px);z-index:7}
.landing-page .insert-card-item:nth-child(8){transform:translateY(48px);z-index:8}

.landing-page .insert-card-shell{
  --sensor-x:0px;
  --sensor-y:0px;
  --sensor-rotate:0deg;
  --tap-y:0px;
  width:100%;
  aspect-ratio:176/363;
  margin:0 auto;
  position:relative;
  transform-origin:50% 104%;
  translate:var(--sensor-x) calc(var(--sensor-y) + var(--tap-y));
  rotate:var(--sensor-rotate);
  transition:translate 150ms cubic-bezier(.2,.7,.2,1),rotate 150ms ease-out;
  will-change:translate,rotate;
}

.landing-page .insert-card-item:nth-child(1) .insert-card-shell{transform:translateX(10px) rotate(-9deg)}
.landing-page .insert-card-item:nth-child(2) .insert-card-shell{transform:translateX(7px) rotate(-6deg)}
.landing-page .insert-card-item:nth-child(3) .insert-card-shell{transform:translateX(4px) rotate(-3deg)}
.landing-page .insert-card-item:nth-child(4) .insert-card-shell{transform:translateX(1px) rotate(0)}
.landing-page .insert-card-item:nth-child(5) .insert-card-shell{transform:translateX(-2px) rotate(3deg)}
.landing-page .insert-card-item:nth-child(6) .insert-card-shell{transform:translateX(-5px) rotate(6deg)}
.landing-page .insert-card-item:nth-child(7) .insert-card-shell{transform:translateX(-8px) rotate(9deg)}
.landing-page .insert-card-item:nth-child(8) .insert-card-shell{transform:translateX(-11px) rotate(12deg)}

.landing-page .insert-card{
  position:absolute;
  inset:0;
  border:1px solid rgba(255,255,255,.96);
  border-radius:18px;
  background-size:cover!important;
  background-position:center!important;
  background-clip:padding-box;
  box-shadow:inset 0 0 0 1px rgba(70,48,39,.08);
  filter:
    drop-shadow(0 3px 3px rgba(58,39,31,.15))
    drop-shadow(0 19px 16px rgba(58,39,31,.21));
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 176 363'%3E%3Cmask id='a'%3E%3Crect width='176' height='363' rx='18' fill='white'/%3E%3Crect x='14' y='15' width='67' height='67' rx='14' fill='black'/%3E%3C/mask%3E%3Crect width='176' height='363' fill='black' mask='url(%23a)'/%3E%3C/svg%3E") center/100% 100% no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 176 363'%3E%3Cmask id='a'%3E%3Crect width='176' height='363' rx='18' fill='white'/%3E%3Crect x='14' y='15' width='67' height='67' rx='14' fill='black'/%3E%3C/mask%3E%3Crect width='176' height='363' fill='black' mask='url(%23a)'/%3E%3C/svg%3E") center/100% 100% no-repeat;
}

.landing-page .insert-card:before{
  content:"";
  position:absolute;
  inset:-8%;
  z-index:2;
  background:linear-gradient(112deg,transparent 38%,rgba(255,255,255,.62) 49%,transparent 61%);
  opacity:0;
  transform:translateX(-150%);
  pointer-events:none;
}

.landing-page .motion-toggle{
  display:none;
  width:max-content;
  margin:-25px auto 18px;
  padding:9px 14px;
  border:1px solid rgba(237,50,100,.28);
  border-radius:999px;
  background:rgba(255,255,255,.62);
  color:var(--primary);
  font:800 .76rem/1 var(--sans);
  box-shadow:0 7px 18px rgba(88,47,40,.08);
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}

.landing-page .motion-toggle[hidden]{
  display:none;
}

.landing-page .motion-toggle:active{
  transform:translateY(1px);
}

.landing-page .motion-toggle[aria-pressed="true"]{
  border-color:rgba(52,119,96,.26);
  background:rgba(229,242,235,.86);
  color:#347760;
  cursor:default;
}

.landing-page .insert-card-item.is-touch-lift{
  z-index:30;
}

.landing-page .insert-card-item.is-lightning-active{
  z-index:30;
}

.landing-page .insert-card-item.is-touch-lift .insert-card-shell{
  --tap-y:-18px;
}

.landing-page .insert-card-item.is-lightning-active .insert-card-shell{
  animation:insert-card-lightning-lift 600ms linear both;
}

.landing-page .insert-card-item.is-touch-lift .insert-card:before,
.landing-page .insert-fan.is-motion-wave .insert-card:before{
  animation:insert-card-sheen 560ms ease-out calc(var(--fan-index,0) * 34ms) both;
}

.landing-page .insert-card-item.is-lightning-active .insert-card:before{
  animation:insert-card-sheen 540ms ease-out 60ms both;
}

.landing-page .insert-fan.is-motion-wave .insert-card-shell{
  animation:insert-card-motion-wave 520ms cubic-bezier(.2,.8,.2,1) calc(var(--fan-index,0) * 34ms) both;
}

.landing-page .clear-insert-card{
  background:
    linear-gradient(112deg,rgba(255,255,255,.20),rgba(255,255,255,.025) 17%,transparent 36% 76%,rgba(255,255,255,.07)),
    linear-gradient(145deg,rgba(255,255,255,.035),transparent 55%,rgba(236,178,170,.025));
}

.landing-page .clear-insert-card:after{
  content:"";
  position:absolute;
  inset:5px;
  border-radius:14px;
  background:linear-gradient(126deg,rgba(255,255,255,.16) 0 6%,transparent 19% 80%,rgba(255,255,255,.05));
  pointer-events:none;
}

.landing-page .clear-cover-glint{
  position:absolute;
  top:28px;
  right:17px;
  bottom:40px;
  width:12px;
  border-radius:999px;
  background:linear-gradient(rgba(255,255,255,.65),rgba(255,255,255,0));
  filter:blur(2px);
  opacity:.34;
}

.landing-page .camera-cutout-edge{
  position:absolute;
  left:7.95%;
  top:4.13%;
  width:38.1%;
  aspect-ratio:1;
  border:1.5px solid rgba(91,66,56,.30);
  border-radius:21%;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.22),
    0 2px 5px rgba(58,39,31,.10);
  pointer-events:none;
}

.landing-page .swap-cue{
  position:absolute;
  left:50%;
  top:55%;
  z-index:3;
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:7px;
  color:var(--ck-accent,#ed3264);
  transform:translate(-50%,-50%) rotate(9deg);
}

.landing-page .hand-arrow{
  width:68px;
  height:32px;
  display:inline-block;
  flex:0 0 auto;
  color:var(--primary);
  vertical-align:middle;
}

.landing-page .hand-arrow svg{
  display:block;
  width:100%;
  height:100%;
  overflow:visible;
}

.landing-page .hand-arrow path{
  fill:none;
  stroke:currentColor;
  stroke-width:2.1;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.landing-page .swap-cue small{
  font-family:"Bradley Hand","Segoe Print",cursive;
  font-size:1.18rem;
  line-height:1.05;
  font-weight:800;
  text-align:center;
  white-space:nowrap;
}

.landing-page .insert-card-item p{
  margin:22px auto 0;
  max-width:158px;
  color:var(--ck-ink,#2b211d);
  font-size:.77rem;
  line-height:1.3;
  font-weight:800;
}

.landing-page .blank-card-note{
  max-width:820px;
  margin:46px auto 0;
  color:var(--primary);
  font-family:"Bradley Hand","Segoe Print",cursive;
  font-size:1.18rem;
  line-height:1.55;
  font-weight:700;
  text-align:center;
  transform:rotate(-1deg);
}

.landing-page .blank-card-note .hand-arrow{
  margin-right:9px;
  transform:translateY(-6px) rotate(-7deg);
  transform-origin:center;
}

/* Samme korte coverglimt som på hero-telefonen, kun for en præcis markør */
@media(hover:hover) and (pointer:fine){
  .landing-page .insert-card-shell{
    top:0;
    transition:
      top 260ms cubic-bezier(.16,1,.3,1),
      translate 260ms cubic-bezier(.16,1,.3,1),
      rotate 150ms ease-out;
  }

  .landing-page .insert-card-item:hover{
    z-index:30;
  }

  .landing-page .insert-card-item:hover .insert-card-shell{
    top:-18px;
  }

  .landing-page .insert-card-item:hover .insert-card:before{
    animation:insert-card-sheen 540ms ease-out 60ms both;
  }
}

@keyframes insert-card-sheen{
  0%{opacity:0;transform:translateX(-150%)}
  18%{opacity:.82}
  100%{opacity:0;transform:translateX(150%)}
}

@keyframes insert-card-lightning-lift{
  0%{
    translate:var(--sensor-x) var(--sensor-y);
    animation-timing-function:cubic-bezier(.16,1,.3,1);
  }
  42%{
    translate:var(--sensor-x) calc(var(--sensor-y) - 18px);
    animation-timing-function:linear;
  }
  58%{
    translate:var(--sensor-x) calc(var(--sensor-y) - 18px);
    animation-timing-function:cubic-bezier(.4,0,.2,1);
  }
  100%{
    translate:var(--sensor-x) var(--sensor-y);
  }
}

@keyframes insert-card-motion-wave{
  0%,100%{
    translate:var(--sensor-x) calc(var(--sensor-y) + var(--tap-y));
    rotate:var(--sensor-rotate);
  }
  38%{
    translate:var(--sensor-x) calc(var(--sensor-y) + var(--tap-y) - 11px);
    rotate:calc(var(--sensor-rotate) - .7deg);
  }
  68%{
    translate:var(--sensor-x) calc(var(--sensor-y) + var(--tap-y) - 3px);
    rotate:calc(var(--sensor-rotate) + .45deg);
  }
}

@media(max-width:1180px){
  .landing-page .insert-card-item p{
    font-size:.67rem;
  }
}

@media(hover:none) and (pointer:coarse){
  .landing-page .motion-toggle.is-available{
    display:flex;
    align-items:center;
    justify-content:center;
  }
}

@media(max-width:700px){
  .landing-page #inspiration{
    padding:58px 0 72px;
  }
  .landing-page #inspiration .section-heading{
    margin-bottom:38px;
  }
  .landing-page .insert-fan{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:38px 5px;
  }
  .landing-page .insert-card-item + .insert-card-item{
    margin-left:0;
  }
  .landing-page .insert-card-item:nth-child(n){
    transform:translateY(0);
  }
  .landing-page .insert-card-item:nth-child(n) .insert-card-shell{
    transform:rotate(0);
  }
  .landing-page .swap-cue{
    transform:translate(-50%,-50%);
  }
  .landing-page .insert-card-item p{
    font-size:.7rem;
  }
  .landing-page .blank-card-note{
    margin-top:32px;
    font-size:1.05rem;
  }
  .landing-page .swap-cue small{
    font-size:1.05rem;
  }
}

@media(max-width:480px){
  .landing-page .insert-fan{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:36px 14px;
  }
  .landing-page .insert-card-item{
    max-width:142px;
  }
  .landing-page .insert-card-item p{
    font-size:.78rem;
  }
}

@media(prefers-reduced-motion:reduce){
  .landing-page .motion-toggle{
    display:none!important;
  }
  .landing-page .insert-card-shell{
    translate:0 0;
    rotate:0deg;
    transition:none;
  }
  .landing-page .insert-card-item.is-touch-lift .insert-card-shell{
    --tap-y:0px;
  }
  .landing-page .insert-card-item.is-touch-lift .insert-card:before,
  .landing-page .insert-card-item.is-lightning-active .insert-card:before,
  .landing-page .insert-fan.is-motion-wave .insert-card:before,
  .landing-page .insert-card-item:hover .insert-card:before{
    animation:none;
  }
  .landing-page .insert-fan.is-motion-wave .insert-card-shell{
    animation:none;
  }
  .landing-page .insert-card-item.is-lightning-active .insert-card-shell{
    animation:none;
  }
}
