/* Mine Timer R4 · bevægeligt, bredt lys og blød skygge på baggrunden. */
.mt-light-surface {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  overflow: clip;
  background: #293f53;
}

/* Alle indholdssøskende skal være over baggrunden. Bevar position:absolute/fixed
 * på eksisterende absolutte elementer; giv dem blot z-index:1 separat. */
.mt-light-foreground { position: relative; z-index: 1; }

.mt-scroll-light {
  --mt-wash-x: 0px;
  --mt-wash-y: 0px;
  --mt-shade-x: 0px;
  --mt-shade-y: 0px;
  --mt-field-intensity: .82;
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  contain: paint;
}

.mt-scroll-light__artwork { display: block; width: 100%; height: 100%; }
.mt-scroll-light__fields { opacity: var(--mt-field-intensity); }

/* SVG-transforms bruger artworkets 1600×1100 brugerkoordinater. Begge felter
 * dækker hele fladen også under vandringen. Gradienterne er faste og brede;
 * positionerne flyttes. Ingen spejlet crossfade eller telefonformet projektion. */
.mt-scroll-light__wash { transform: translate(var(--mt-wash-x), var(--mt-wash-y)); }
.mt-scroll-light__shade { transform: translate(var(--mt-shade-x), var(--mt-shade-y)); }
.mt-scroll-light[data-motion-state="scrolling"] .mt-scroll-light__wash,
.mt-scroll-light[data-motion-state="scrolling"] .mt-scroll-light__shade { will-change: transform; }

/* Reduced motion keeps the broad fields at a fixed midpoint. */
@media (prefers-reduced-motion: reduce) {
  .mt-scroll-light__wash,
  .mt-scroll-light__shade { transform: translate(0px, 0px); will-change: auto; }
}

@media (forced-colors: active) {
  .mt-light-surface { background: Canvas; color: CanvasText; }
  .mt-scroll-light { display: none; }
}

@media print {
  .mt-light-surface { background: white; color: black; }
  .mt-scroll-light { display: none; }
}

/* Home-only integration: replace the former flat hero decoration while the
   existing phone and all product content remain in the foreground. */
.presentation-page .hero-surface.mt-light-surface { background: #293f53; }
.presentation-page .hero-surface .mt-scroll-light {
  --mt-wash-x: -180px;
  --mt-wash-y: -100px;
  --mt-shade-x: 50.4px;
  --mt-shade-y: 15px;
}
.presentation-page .hero-surface.mt-light-surface::before { display: none; }
.presentation-page .hero-surface .mt-scroll-light__artwork {
  position: absolute;
  left: 50%;
  width: max(100%, 760px);
  transform: translateX(-50%);
}

/* Keep the broad projection and the same restrained field strength on narrow screens. */
@media screen and (max-width: 600px) {
  .presentation-page .hero-surface .mt-scroll-light__artwork { width: max(100%, 640px); }
  .presentation-page .hero-surface .mt-scroll-light__wash-default { display: none; }
  .presentation-page .hero-surface .mt-scroll-light__wash-mobile { display: block; }
}

/* R4.1 glass stays on the phone screen in both launcher and live-app states. */
.mt-phone-glass {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
  user-select: none;
}
.mt-phone-glass__dark { fill: none; stroke: #536d80; stroke-width: .55; opacity: .34; }
.mt-phone-glass__glint { fill: none; stroke: #fff; stroke-width: .45; opacity: .53; transform: translate(.35px,-.3px); }
.mt-phone-glass path { vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.presentation-page .hero-surface .hero-app-icon,
.presentation-page .hero-surface .hero-launch-hint { z-index: 1; }
.presentation-page .hero-surface .hero-app-icon { position: relative; }

@media (forced-colors: active) {
  .presentation-page .hero-surface.mt-light-surface { background: Canvas; color: CanvasText; }
  .mt-phone-glass { display: none; }
}

@media print {
  .presentation-page .hero-surface.mt-light-surface { background: white; color: black; }
  .mt-phone-glass { display: none; }
}
