/* AMASO local copy: a realistic macOS desktop (and iOS status bar) on the 3D device screens.
   Geometry comes from laptop.js as CSS variables on .external_ps_wrap, in desktop-layer pixels:
   --mac-l/t/w/h (screen rectangle), --mac-bar (notch height = menu bar height), --mac-notch-w,
   --ios-l/t/w/h and --ios-isl-l/r/t/b (Dynamic Island). Fallbacks fit a 1440 x 900 / 390 x 844 layer. */
:root { --mac-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro", "Helvetica Neue", Helvetica, Arial, sans-serif; }

/* ---------------------------------------------------------------- menu bar (macOS, with the notch inside) */
.mac-menubar {
  position: absolute; z-index: 2147483000; box-sizing: border-box;
  left: var(--mac-l, 0px); top: var(--mac-t, 0px); width: var(--mac-w, 100%); height: var(--mac-bar, 24px);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 calc(var(--mac-bar, 24px) * .62);
  background: rgba(74, 44, 18, .16);
  font-family: var(--mac-font); font-size: calc(var(--mac-bar, 25px) * .47); line-height: 1; color: #fff;
  text-shadow: 0 0 2px rgba(0, 0, 0, .28), 0 .5px 1px rgba(0, 0, 0, .25);
  opacity: 0; transition: opacity .35s ease, transform .3s ease; pointer-events: none; grid-gap: 0;
  transform: translateY(var(--mac-nav-push, 0px));
}
/* under the site's navigation bar the notch is hidden by that bar anyway: the slid-down menu bar has none */
.mac-under-nav .mb-notch { display: none; }
.mac-desktop-live .mac-menubar { opacity: 1; }
.mb-left, .mb-right { display: flex; align-items: center; height: 100%; white-space: nowrap; }
.mb-left { gap: 1.42em; }
.mb-logo { height: 1.02em; width: auto; filter: drop-shadow(0 .5px 1px rgba(0, 0, 0, .3)); margin-right: .1em; }
.mb-item { font-weight: 400; letter-spacing: -.005em; }
.mb-app { font-weight: 600; }
.mb-right { gap: 1.05em; }
.mac-menubar .mb-ic { width: auto; height: 1.3em; object-fit: contain; filter: drop-shadow(0 .5px 1px rgba(0, 0, 0, .25)); }
.mac-menubar .mb-battery { height: 1.45em; }
.mac-menubar .mb-wifi { height: 1.28em; }
.mac-menubar .mb-search { height: 1.18em; }
.mac-menubar .mb-cc { height: 1.24em; }
.mac-menubar .timing { display: flex; align-items: center; gap: .48em; margin-left: .1em; }
.mac-menubar .date, .mac-menubar .time { font-family: var(--mac-font); font-size: 1em; font-weight: 400; color: #fff; }
.mb-notch {
  position: absolute; top: 0; height: 100%; background: #000;
  width: var(--mac-notch-w, 157px); left: calc(50% - var(--mac-notch-w, 157px) / 2);
  border-radius: 0 0 calc(var(--mac-bar, 25px) * .24) calc(var(--mac-bar, 25px) * .24);
}
.mb-notch i {
  position: absolute; left: 50%; top: 50%; width: calc(var(--mac-bar, 24px) * .22); height: calc(var(--mac-bar, 24px) * .22);
  margin: calc(var(--mac-bar, 24px) * -.11) 0 0 calc(var(--mac-bar, 24px) * -.11); border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #2a3550 0, #0b0f1c 60%, #05070d 100%);
}
.ios-bar { display: none; }

/* ---------------------------------------------------------------- windows (macOS Sonoma chrome) */
.zefir_wrapper, .natalia_wrapper, .andrii_wrapper, .faq_wrapper, .testimonial_wrapper { box-shadow: none; border-radius: 10px; }
.personal, .faq_inner_wrap, .testimonial_inner_wrap {
  border-radius: 10px; overflow: hidden;
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .2), 0 12px 32px rgba(0, 0, 0, .18), 0 2px 6px rgba(0, 0, 0, .08);
  transition: box-shadow .2s ease;
}
.mac-active .personal, .mac-active .faq_inner_wrap, .mac-active .testimonial_inner_wrap {
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .3), 0 28px 64px rgba(0, 0, 0, .36), 0 8px 20px rgba(0, 0, 0, .16);
}
.zefir_grabb, .natalia_grabb, .andrii_grabb, .faq_grabb, .testimonial_grabb {
  flex: none; height: 28px; background: #ececec; border-bottom: 1px solid rgba(0, 0, 0, .1);
}
.mac-inactive .zefir_grabb, .mac-inactive .natalia_grabb, .mac-inactive .andrii_grabb, .mac-inactive .faq_grabb, .mac-inactive .testimonial_grabb { background: #f6f6f6; }
.dots_wrap:not(.big) { height: 28px; padding: 0 0 0 10px; gap: 8px; align-items: center; }
.zefir_close, .natalia_close, .andrii_close, .faq_close, .testimonial_close {
  position: relative; inset: auto; width: 12px; height: 12px; flex: none;
}
.red_dot { width: 12px; height: 12px; background: #ff5f57; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .2); }
.mac-tl { display: block; flex: none; width: 12px; height: 12px; border-radius: 50%; pointer-events: none; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .2); }
.mac-tl-min { background: #febc2e; }
.mac-tl-max { background: #28c840; }
.mac-inactive .red_dot, .mac-inactive .mac-tl, .pricing_wrapper.mac-inactive .pricing_close { background: #dcdcdc; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .12); }
/* an image window shows its picture edge to edge under the title bar, like Preview */
.zefir_wrapper .inner_img_wrap, .natalia_wrapper .inner_img_wrap, .andrii_wrapper .inner_img_wrap { padding: 0; }
.faq_name:not(.big) { font-family: var(--mac-font); font-size: 13px; font-weight: 600; color: #4d4d4d; margin-top: 0; letter-spacing: -.01em; }
.faq_name:not(.big) .thin_text { font-weight: 400; }
.mac-inactive .faq_name { color: #a8a8a8; }

/* the services window (Diensten.html): full screen first, a window once the desktop shows (scaled .45 by the site) */
/* the window is the full page scaled to .68 (AMASO_WIN): its chrome is drawn at 1/.68 so it reads as a 28px bar */
.pricing_wrapper.mac-window { border-radius: 15px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .28), 0 60px 140px rgba(0, 0, 0, .34), 0 18px 44px rgba(0, 0, 0, .16); }
.pricing_wrapper .pricing_grabb { height: 41px; padding: 0; background: #ececec; border-bottom: 2px solid rgba(0, 0, 0, .1); }
.pricing_wrapper.mac-inactive .pricing_grabb { background: #f6f6f6; }
.pricing_wrapper .dots_wrap.big { height: 41px; padding: 0 0 0 15px; gap: 12px; align-items: center; }
.pricing_wrapper .pricing_close { width: 18px; height: 18px; flex: none; background: #ff5f57; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2); }
.pricing_wrapper .mac-tl.big { width: 18px; height: 18px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2); }
.pricing_wrapper .faq_name.big { font-family: var(--mac-font); font-size: 19px; font-weight: 600; color: #4d4d4d; margin-top: 0; padding-left: 0; justify-content: center; }
.pricing_wrapper.mac-inactive .faq_name.big { color: #a8a8a8; }
.pricing_border { background-color: transparent; }

/* ---------------------------------------------------------------- Finder desktop icons */
@media screen and (min-width: 768px) {
  .files_wrap { justify-content: flex-start; padding-top: calc(var(--mac-bar, 25px) + 10px + var(--mac-nav-push, 0px)); margin-right: calc(10px + var(--mac-l, 0px)); gap: 2px; transition: padding-top .3s ease; }
  .files_wrap .file_item { padding: 5px 8px 6px; gap: 4px; width: 100px; border-radius: 5px; }
  .files_wrap .file_img { width: 56px; height: 56px; border: 3px solid #fff; border-radius: 3px; box-shadow: 0 1px 3px rgba(0, 0, 0, .38), 0 0 0 .5px rgba(0, 0, 0, .18); }
  .files_wrap .file_img.file, .files_wrap .file_img.text_file, .pricing_icon .file_img.text_file {
    width: 62px; height: 62px; border: 0; border-radius: 0; box-shadow: none; object-fit: contain; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .32));
  }
  .file_name { font-family: var(--mac-font); font-size: 12px; font-weight: 500; letter-spacing: 0; line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .7), 0 0 1px rgba(0, 0, 0, .55); }
  /* Diensten.html lies under its own window (which macOS keeps above the Dock), as in the original */
  .pricing_icon { left: 14px; bottom: 80px; }
  .pricing_icon .file_item { padding: 5px 8px 6px; gap: 4px; }
}

/* ---------------------------------------------------------------- Dock */
.mac-dock {
  position: absolute; z-index: 2147483002; display: flex; justify-content: center; pointer-events: none;
  left: var(--mac-l, 0px); width: var(--mac-w, 100%);
  /* 6px above the bottom of the screen, or of the viewport while the screen runs past it (fully zoomed in) */
  bottom: calc(100% - var(--mac-vis-b, 100%) + 6px);
  opacity: 0; transition: opacity .35s ease;
}
.mac-desktop-live .mac-dock { opacity: 1; }
.mac-interactive .mac-dock { pointer-events: auto; }
.dock-shelf {
  /* fixed height: when magnified, the icons rise out of the shelf, as on macOS */
  display: flex; align-items: flex-end; gap: 6px; padding: 5px 7px 6px; border-radius: 18px; box-sizing: border-box; height: 57px;
  background: rgba(255, 255, 255, .28);
  box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .55), 0 0 0 .5px rgba(0, 0, 0, .16), 0 10px 30px rgba(0, 0, 0, .22), 0 2px 6px rgba(0, 0, 0, .08);
}
.dock-app { position: relative; display: block; flex: none; width: 46px; height: 46px; cursor: default; transition: width .14s ease-out, height .14s ease-out; }
.dock-app img { display: block; width: 100%; height: 100%; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .22)); }
.dock-dot { position: absolute; left: 50%; bottom: -5px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: rgba(0, 0, 0, .62); opacity: 0; transition: opacity .2s; }
.dock-app.is-running .dock-dot { opacity: 1; }
.dock-sep { flex: none; width: 1px; align-self: stretch; margin: 5px 3px; background: rgba(0, 0, 0, .2); }
.mac-interactive .dock-app::before {
  content: attr(data-name); position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%);
  padding: 4px 10px; border-radius: 6px; background: rgba(236, 236, 236, .94); color: #222; white-space: nowrap;
  font: 500 12px/1.2 var(--mac-font); box-shadow: 0 0 0 .5px rgba(0, 0, 0, .15), 0 4px 12px rgba(0, 0, 0, .18);
  opacity: 0; transition: opacity .12s; pointer-events: none;
}
.mac-interactive .dock-app:hover::before { opacity: 1; }
.dock-app.is-launching img { animation: dock-bounce .9s ease-in-out 1; }
@keyframes dock-bounce { 0%, 100% { transform: translateY(0); } 30% { transform: translateY(-22%); } 60% { transform: translateY(0); } 78% { transform: translateY(-8%); } }

/* ---------------------------------------------------------------- the display itself: a faint glossy sheen */
.mac-gloss {
  position: absolute; z-index: 2147483003; pointer-events: none;
  left: var(--mac-l, 0px); top: var(--mac-t, 0px); width: var(--mac-w, 100%); height: var(--mac-h, 100%);
  border-radius: var(--mac-r, 12px);
  background: linear-gradient(112deg, rgba(255, 255, 255, .075) 0%, rgba(255, 255, 255, .03) 30%, rgba(255, 255, 255, 0) 46%);
  opacity: 0; transition: opacity .4s ease;
}
.mac-desktop-live .mac-gloss { opacity: 1; }
.ios-home { display: none; }

/* ---------------------------------------------------------------- iPhone (below 768px): iOS status bar + home indicator */
@media screen and (max-width: 767px) {
  .mac-dock, .mac-gloss { display: none; }
  .mac-menubar { left: 0; top: 0; width: 0; height: 0; padding: 0; background: none; overflow: visible; opacity: 1; }
  .mb-left, .mb-right, .mb-notch { display: none; }
  .ios-bar {
    display: block; position: absolute; font-family: var(--mac-font); color: #fff;
    left: var(--ios-l, 0px); width: var(--ios-w, 390px);
    top: var(--ios-isl-t, 12px); height: calc(var(--ios-isl-b, 46px) - var(--ios-isl-t, 12px));
    text-shadow: 0 0 2px rgba(0, 0, 0, .18);
  }
  .ios-ear { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; justify-content: center; }
  .ios-l { left: 0; width: calc(var(--ios-isl-l, 140px) - var(--ios-l, 0px)); }
  .ios-r { left: calc(var(--ios-isl-r, 250px) - var(--ios-l, 0px)); right: 0; gap: calc(var(--ios-w, 390px) * .013); }
  .ios-time { font-size: calc(var(--ios-w, 390px) * .041); font-weight: 600; letter-spacing: -.01em; }
  .ios-ic { width: auto; height: calc(var(--ios-w, 390px) * .03); filter: drop-shadow(0 0 1px rgba(0, 0, 0, .2)); }
  .ios-wifi { height: calc(var(--ios-w, 390px) * .034); }
  .ios-bat { height: calc(var(--ios-w, 390px) * .04); }
  .ios-home {
    display: block; position: absolute; z-index: 2147483004; pointer-events: none; border-radius: 99px; background: rgba(255, 255, 255, .9);
    left: calc(var(--ios-l, 0px) + var(--ios-w, 390px) * .345); width: calc(var(--ios-w, 390px) * .31);
    top: calc(var(--ios-t, 0px) + var(--ios-h, 844px) - var(--ios-w, 390px) * .03); height: calc(var(--ios-w, 390px) * .012);
    box-shadow: 0 0 1px rgba(0, 0, 0, .25);
  }
  /* iOS-style rounded icons on the phone's desktop */
  .files_wrap .file_img { width: 52px; height: 52px; border: 0; border-radius: 23%; object-fit: cover; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
  .files_wrap .file_img.file, .files_wrap .file_img.text_file, .pricing_icon .file_img.text_file {
    width: 52px; height: 52px; padding: 7px; box-sizing: border-box; border-radius: 23%; object-fit: contain;
    background: rgba(255, 255, 255, .55); box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
  }
  .file_name { font-family: var(--mac-font); font-size: 11px; font-weight: 500; text-shadow: 0 1px 2px rgba(0, 0, 0, .55); }
  /* the narrow services window: smaller lights and title, so the centred title clears the lights */
  .pricing_wrapper .dots_wrap.big { gap: 12px; padding-left: 16px; }
  .pricing_wrapper .pricing_close, .pricing_wrapper .mac-tl.big { width: 24px; height: 24px; }
  .pricing_wrapper .faq_name.big { font-size: 24px; padding-left: 0; }
}
