@font-face {
  font-family: "Geist Mono";
  src: url("./fonts/GeistMono-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --canvas: #ccc;
  --panel-fill: rgba(255, 255, 255, 0.8);
  --overlay-fill: rgba(0, 0, 0, 0.5);
  --text-primary: #000;
  --text-secondary: rgba(0, 0, 0, 0.5);
  --panel-radius: 34px;
  --font-system:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Helvetica Neue", Arial, sans-serif;
  --font-mono:
    "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100svh;
  background: var(--canvas);
  color: var(--text-primary);
  font-family: var(--font-system);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img,
iframe {
  display: block;
}

a {
  color: inherit;
}

.screenshot {
  display: flex;
  gap: 16px;
  min-height: 100svh;
  padding: 16px;
}

.panel-left,
.panel-right {
  position: relative;
  overflow: hidden;
  border-radius: var(--panel-radius);
}

.panel-left {
  width: 320px;
  flex: 0 0 auto;
  background: var(--panel-fill);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.panel-left-inner {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 24px;
}

.left-icon-shell {
  width: 48px;
  height: 48px;
  overflow: hidden;
  border-radius: 10.688px;
  box-shadow: 0 0 0 0.2px rgba(255, 255, 255, 0.05);
}

.left-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.left-footer {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: auto;
}

.left-copy {
  max-width: 248px;
}

.left-title,
.left-subtitle {
  margin: 0;
  font-size: 15.374px;
  font-weight: 500;
  letter-spacing: -0.3075px;
}

.left-title {
  margin-bottom: 2.365px;
  opacity: 0.5;
}

.left-subtitle {
  line-height: 1.12;
}

.left-links {
  display: flex;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.left-links span {
  white-space: nowrap;
}

.left-links a {
  text-decoration: none;
}

.panel-right {
  flex: 1 1 auto;
  min-width: 1px;
  min-height: 1px;
  background: #fff;
  isolation: isolate;
}

.right-bg,
.right-overlay,
.right-stage {
  position: absolute;
  inset: 0;
}

.right-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.right-overlay {
  z-index: 0;
  background: var(--overlay-fill);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.right-stage {
  z-index: 1;
}

.popup-frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
}

body.privacy-modal-open {
  overflow: hidden;
}

.privacy-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 32px;
}

.privacy-modal[hidden] {
  display: none;
}

.privacy-modal-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: rgba(0, 0, 0, 0.4);
  transition: opacity 220ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity;
}

.privacy-modal-card {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  max-height: min(calc(100svh - 64px), 860px);
  overflow: auto;
  padding: 36px;
  border: 0;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 32px 120px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  opacity: 0;
  transform: translateY(36px) scale(0.96);
  filter: blur(10px);
  transition:
    opacity 220ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 220ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 220ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, filter;
}

.privacy-modal.is-open .privacy-modal-backdrop,
.privacy-modal.is-open .privacy-modal-card {
  opacity: 1;
}

.privacy-modal.is-open .privacy-modal-backdrop {
  animation: privacy-modal-backdrop-in 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.privacy-modal.is-open .privacy-modal-card {
  transform: translateY(0) scale(1);
  filter: blur(0);
  animation: privacy-modal-card-in 360ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes privacy-modal-backdrop-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes privacy-modal-card-in {
  0% {
    opacity: 0;
    transform: translateY(44px) scale(0.94);
    filter: blur(16px);
  }

  60% {
    opacity: 1;
    transform: translateY(-4px) scale(1.01);
    filter: blur(0);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.privacy-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  margin: 0 0 20px auto;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  color: rgba(0, 0, 0, 0.64);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.privacy-modal-header,
.privacy-modal-section {
  display: grid;
}

.privacy-modal-header {
  gap: 10px;
}

.privacy-modal-kicker {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.privacy-modal-title,
.privacy-modal-section h2,
.privacy-modal-section p {
  margin: 0;
}

.privacy-modal-title {
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.privacy-modal-sections {
  display: grid;
  gap: 24px;
  margin-top: 28px;
}

.privacy-modal-section {
  gap: 8px;
}

.privacy-modal-section h2 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.privacy-modal-section p {
  max-width: 68ch;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.78);
}

.privacy-modal-section a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.12em;
}

@media (max-width: 980px) {
  .screenshot {
    flex-direction: column;
  }

  .panel-left,
  .panel-right {
    width: 100%;
  }

  .panel-left {
    min-height: 420px;
  }

  .panel-right {
    min-height: 60svh;
  }
}

@media (max-width: 640px) {
  .screenshot {
    gap: 20px;
    padding: 16px;
  }

  .panel-left-inner {
    min-height: 100%;
  }

  .left-footer {
    min-height: 100%;
  }

  .left-links {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .privacy-modal {
    padding: 16px;
  }

  .privacy-modal-card {
    max-height: calc(100svh - 32px);
    padding: 24px;
    border-radius: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .privacy-modal-backdrop,
  .privacy-modal-card {
    transition-duration: 1ms;
    animation: none;
  }

  .privacy-modal-card {
    filter: none;
  }

  .privacy-modal.is-open .privacy-modal-card {
    transform: translateY(0) scale(1);
    filter: none;
  }
}
