:root {
  --gradient-top: #f9cafe;
  --gradient-bottom: #4f2cff;
  --overlay: rgba(0, 0, 0, 0.8);
  --text: #ffffff;
  --muted: #7f7f80;
  --brand: #8433ff;
  --brand-strong: #5a4ef9;
  --brand-dark: #7b61ff;
  --bubble-me: rgba(132, 51, 255, 0.24);
  --phone-bg: #2b2539;
  --bubble-incoming-bg: rgba(21, 22, 26, 0.95);
  --bubble-incoming-bg-tail: rgba(30, 31, 36, 0.88);
  --bubble-outgoing-bg-top: #8433ff;
  --bubble-outgoing-bg-bottom: #5a4ef9;
  --bubble-outgoing-border: rgba(255, 255, 255, 0.2);
  --bubble-incoming-border: rgba(255, 255, 255, 0.16);
}

@font-face {
  font-family: "SF Pro Rounded";
  src: local("SF Pro Rounded"), local("SFProRounded"), local("SF Pro Display");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: "SF Pro Rounded", "SF Pro Text", "SF Pro Display", "ui-rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--gradient-top) 0%, var(--gradient-bottom) 100%);
}

.page {
  position: relative;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 0 16px;
}

.overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay);
}

.phone-shell {
  position: relative;
  width: min(100%, 420px);
  margin-inline: auto;
  display: grid;
  row-gap: 16px;
  align-items: center;
  justify-items: stretch;
}

.photo-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 132px));
  justify-content: center;
  justify-self: center;
  column-gap: 4px;
  margin-top: 6px;
}

.splash-icon {
  position: absolute;
  top: -92px;
  left: 50%;
  transform: translateX(-50%);
  width: 98px;
  height: 98px;
  object-fit: contain;
  z-index: 2;
  pointer-events: none;
}

.squircle-shell {
  margin: 0;
  width: 132px;
  height: 132px;
  border-radius: 32px;
  background: rgba(0, 0, 0, 0.3);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.squircle-shell img {
  width: 126px;
  height: 126px;
  border-radius: 29px;
  object-fit: cover;
  transition: opacity 0.24s ease;
}

.fade {
  opacity: 0.75;
}

.bubble-list {
  display: grid;
  row-gap: 12px;
  align-self: stretch;
  padding-top: 2px;
}

.bubble-row {
  width: 100%;
  display: flex;
}

.bubble-row-them {
  justify-content: flex-start;
}

.bubble-row-me {
  justify-content: flex-end;
}

.bubble {
  width: fit-content;
  max-width: 76%;
  border-radius: 20px;
  padding: 9px 14px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.24;
  box-sizing: border-box;
  position: relative;
  opacity: 1;
  overflow: visible;
  z-index: 1;
}

.bubble.them {
  background: var(--bubble-incoming-bg);
  border-bottom-left-radius: 2px;
}

.bubble.me {
  background: linear-gradient(180deg, var(--bubble-outgoing-bg-top), var(--bubble-outgoing-bg-bottom));
  border-bottom-right-radius: 2px;
}

.bubble-tail {
  position: absolute;
  bottom: -5px;
  width: 10px;
  height: 14px;
  pointer-events: none;
}

.bubble-tail-them {
  left: -3px;
}

.bubble-tail-me {
  right: -2px;
}

.bubble-tail path {
  fill: var(--bubble-outgoing-bg-bottom);
}

.bubble-tail-them path {
  fill: var(--bubble-incoming-bg-tail);
}

.bubble-text {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  font-family: inherit;
}

.download-button {
  margin-top: 8px;
  width: 100%;
  height: 56px;
  min-height: 44px;
  border-radius: 999px;
  border: 0;
  background: var(--brand);
  color: #ffffff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 500;
  padding: 0 22px;
  position: relative;
}

.legal-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.1px;
}

.legal-links a {
  color: var(--muted);
  text-decoration: none;
}

.legal-links a:hover,
.legal-links a:focus-visible {
  text-decoration: underline;
}

@media (max-width: 420px) {
  .phone-shell {
    row-gap: 14px;
  }

  .photo-row {
    margin-top: 0;
    row-gap: 2px;
  }

  .splash-icon {
    top: -78px;
    width: 82px;
    height: 82px;
  }

  .bubble {
    max-width: 88%;
    font-size: 14px;
  }

  .download-button {
    font-size: 17px;
    height: 60px;
  }
}

@media (min-width: 768px) {
  .bubble-list {
    margin: 0 10px;
  }

  .bubble {
    max-width: 78%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
