/*
 * Gentle device and page motion, like on IsMyAudit. Opt in per element:
 * - data-device-motion="top-left|top-right": near the top of a page. Glides
 *   in once, then drifts up and leans further while the page scrolls.
 * - data-device-motion="view-left|view-right": further down. Rises and leans
 *   a little as it passes through the viewport (scroll-driven view timeline).
 * The direction sets the resting lean. Nothing moves with reduced motion,
 * and browsers without scroll-driven animations keep the resting lean.
 */
[data-device-motion$="left"] {
  rotate: -2deg;
}

[data-device-motion$="right"] {
  rotate: 2.5deg;
}

@media (prefers-reduced-motion: no-preference) {
  [data-device-motion^="top"] {
    animation: device-motion-in 900ms cubic-bezier(0.22, 1, 0.36, 1) 150ms both;
  }

  @supports (animation-timeline: scroll()) {
    [data-device-motion="top-left"],
    [data-device-motion="top-right"] {
      animation:
        device-motion-in 900ms cubic-bezier(0.22, 1, 0.36, 1) 150ms both,
        var(--device-motion-drift) linear both;
      animation-timeline: auto, scroll(block);
      animation-range:
        normal,
        0 80vh;
      will-change: transform;
    }

    [data-device-motion="top-left"] {
      --device-motion-drift: device-motion-drift-left;
    }

    [data-device-motion="top-right"] {
      --device-motion-drift: device-motion-drift-right;
    }

    [data-device-motion="view-left"] {
      animation: device-motion-pass-left linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
      will-change: transform;
    }

    [data-device-motion="view-right"] {
      animation: device-motion-pass-right linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
      will-change: transform;
    }
  }
}

@keyframes device-motion-in {
  from {
    opacity: 0;
    translate: 6% 8%;
    rotate: 0deg;
  }
}

@keyframes device-motion-drift-left {
  to {
    transform: translate(-3%, -4%) rotate(-2deg);
  }
}

@keyframes device-motion-drift-right {
  to {
    transform: translate(3%, -6%) rotate(2deg);
  }
}

@keyframes device-motion-pass-left {
  from {
    transform: translateY(2.5rem) rotate(1.5deg);
  }

  to {
    transform: translateY(-2.5rem) rotate(-1.5deg);
  }
}

@keyframes device-motion-pass-right {
  from {
    transform: translateY(3rem) rotate(-1.5deg);
  }

  to {
    transform: translateY(-3rem) rotate(2deg);
  }
}
.showcase[data-astro-cid-cqloipx5] [data-showcase-tablet] {
  rotate: -2deg;
}

.showcase[data-astro-cid-cqloipx5] [data-showcase-phone] {
  rotate: 4deg;
}

@media (prefers-reduced-motion: no-preference) {
  .showcase[data-astro-cid-cqloipx5] [data-showcase-tablet] {
    animation: .9s cubic-bezier(.22, 1, .36, 1) both showcase-tablet-in;
  }

  .showcase[data-astro-cid-cqloipx5] [data-showcase-phone] {
    animation: .9s cubic-bezier(.22, 1, .36, 1) .15s both showcase-phone-in;
  }

  @supports (animation-timeline: scroll()) {
    .showcase[data-astro-cid-cqloipx5] [data-showcase-tablet] {
      animation: .9s cubic-bezier(.22, 1, .36, 1) both showcase-tablet-in, linear both showcase-tablet-scroll;
      animation-timeline: auto, scroll();
      animation-range: normal, 0 80vh;
      will-change: transform;
    }

    .showcase[data-astro-cid-cqloipx5] [data-showcase-phone] {
      animation: .9s cubic-bezier(.22, 1, .36, 1) .15s both showcase-phone-in, linear both showcase-phone-scroll;
      animation-timeline: auto, scroll();
      animation-range: normal, 0 80vh;
      will-change: transform;
    }
  }
}

@keyframes showcase-tablet-in {
  from {
    opacity: 0;
    translate: -6% 4%;
    rotate: 0deg;
  }
}

@keyframes showcase-phone-in {
  from {
    opacity: 0;
    translate: 10% 12%;
    rotate: 0deg;
  }
}

@keyframes showcase-tablet-scroll {
  from {
    transform: none;
  }

  to {
    transform: translate(-3%, -2%) rotate(-2deg);
  }
}

@keyframes showcase-phone-scroll {
  from {
    transform: none;
  }

  to {
    transform: translate(4%, -10%) rotate(3deg);
  }
}
[data-astro-cid-3n26hlkq][data-design="standard"] {
  --page: #fff;
  --heading: #036;
  --text: #6b7280;
  --line: #c9a34e;
  --surface: #f3f4f6;
}

[data-astro-cid-3n26hlkq][data-design="navy-gold"] {
  --page: #faf6ef;
  --heading: #1b365d;
  --text: #0d1b2a;
  --line: #c99a47;
  --surface: #f5ebdd;
}

[data-astro-cid-3n26hlkq][data-design="cognac-harbor"] {
  --page: #f4f9fb;
  --heading: #8c582f;
  --text: #342019;
  --line: #688593;
  --surface: #b3c6cd;
}

[data-astro-cid-3n26hlkq][data-design="petrol-copper"] {
  --page: #f4f6f2;
  --heading: #164b4b;
  --text: #263332;
  --line: #b8734f;
  --surface: #f4f6f2;
}

[data-astro-cid-3n26hlkq][data-design="ink-burgundy"] {
  --page: #fff;
  --heading: #172b46;
  --text: #30343b;
  --line: #7a2e3a;
  --surface: #fff;
}

.report-design-page[data-astro-cid-3n26hlkq] {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  aspect-ratio: 210 / 297;
  padding: 12% 11%;
  border-radius: .5rem;
  background: var(--page);
  box-shadow: 0 1px 2px #0f172a14, 0 12px 32px -12px #0f172a40;
  outline: 1px solid #0f172a14;
}

.report-design-rule[data-astro-cid-3n26hlkq] {
  display: block;
  height: 3px;
  border-radius: 9999px;
  background: var(--line);
}

.report-design-rule-bottom[data-astro-cid-3n26hlkq] {
  margin-top: auto;
  height: 2px;
}

.report-design-heading[data-astro-cid-3n26hlkq] {
  display: block;
  width: 70%;
  height: .6rem;
  margin-top: .4rem;
  border-radius: 9999px;
  background: var(--heading);
}

.report-design-heading-small[data-astro-cid-3n26hlkq] {
  width: 45%;
  height: .45rem;
}

.report-design-text[data-astro-cid-3n26hlkq] {
  display: block;
  height: .3rem;
  border-radius: 9999px;
  background: var(--text);
  opacity: .35;
}

.report-design-text-short[data-astro-cid-3n26hlkq] {
  width: 60%;
}

.report-design-surface[data-astro-cid-3n26hlkq] {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  margin-top: .4rem;
  padding: .6rem;
  border-left: 3px solid var(--line);
  border-radius: .25rem;
  background: var(--surface);
}
