@font-face {
  font-family: Asta;
  src: url("assets/asta-sans.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #f6f7f9;
  --ink: #283c5a;
  --blue: #2862eb;
  --muted: #5b6d84;
  --bar: #aebed4;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 14px/1.4 var(--font);
  -webkit-font-smoothing: antialiased;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}
::selection {
  background: #ffd04a;
  color: var(--ink);
}
html {
  scrollbar-color: #8b99b2 var(--paper);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.preview {
  max-width: 1000px;
  margin: auto;
  padding: 32px 24px 24px;
}
.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  max-width: 900px;
  margin: auto;
}
.preview-header h1 {
  font:
    700 30px/1.15 Asta,
    var(--font);
  letter-spacing: -0.025em;
  margin: 0;
}
.preview-header p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.preview-header > span {
  font-size: 12px;
  color: var(--muted);
}
.film {
  margin: 0;
}
.stage {
  position: relative;
  width: 100%;
  aspect-ratio: 960/800;
  overflow: hidden;
  isolation: isolate;
}
.canvas {
  position: absolute;
  width: 960px;
  height: 800px;
  transform-origin: 0 0;
}
.phone {
  position: absolute;
  left: 308px;
  top: 48px;
  width: 344px;
  height: 704px;
  transform-origin: center center;
  z-index: 2;
}
.phone-shell {
  height: 100%;
  padding: 8px;
  background: #e0e6ef;
  border: 2px solid #68809f;
  border-radius: 47px;
}
.screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  background: white;
  border: 1.5px solid #8ca0bd;
  border-radius: 37px;
}
.statusbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 48px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 9;
}
.status-time {
  width: 26px;
  height: 6px;
  border-radius: 6px;
  background: #8295af;
}
.island {
  position: absolute;
  left: 50%;
  top: 10px;
  transform: translateX(-50%);
  width: 77px;
  height: 21px;
  border-radius: 20px;
  background: #344761;
}
.statusbar > div {
  display: flex;
  gap: 4px;
  align-items: center;
}
.statusbar > div > i {
  width: 12px;
  height: 5px;
  border-radius: 2px;
  background: #8295af;
}
.statusbar > div > i:last-child {
  width: 17px;
  height: 8px;
}
.home-indicator {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  border-radius: 4px;
  background: #566e91;
  z-index: 10;
}
.scene {
  position: absolute;
  inset: 48px 0 0;
  background: white;
}
.bar {
  display: block;
  height: 8px;
  border-radius: 8px;
  background: var(--bar);
}
.faint {
  background: #dce3ed;
}
.w40 {
  width: 40%;
}
.w45 {
  width: 45%;
}
.w55 {
  width: 55%;
}
.w65 {
  width: 65%;
}
.w70 {
  width: 70%;
}
.w80 {
  width: 80%;
}
.blue-bar {
  background: #729cf0;
}
.mail-toolbar {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  border-bottom: 1px solid #edf0f6;
  color: #8297b5;
}
.mail-toolbar svg {
  width: 22px;
  height: 22px;
}
.mail-toolbar > i {
  width: 22px;
  height: 7px;
  background: #d4ddea;
  border-radius: 7px;
}
.email-viewport {
  position: absolute;
  top: 48px;
  bottom: 38px;
  left: 0;
  right: 0;
  overflow: hidden;
}
.sender {
  padding: 22px 22px 18px;
  display: flex;
  gap: 11px;
  align-items: center;
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #d3deee;
}
.sender > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.newsletter {
  margin: 0 12px 24px;
  background: #fcfbf8;
  border-radius: 5px;
  padding: 18px 10px 24px;
}
.mail-hero {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 0 0 29px;
}
.brand-sun {
  width: 32px;
  height: 32px;
  color: #edb82e;
}
.mail-hero .headline {
  width: 162px;
  height: 12px;
  background: #6d89b0;
  margin-top: 15px;
}
.mail-hero .subline {
  width: 114px;
  height: 8px;
  background: #c6d3e6;
  margin-top: 10px;
}
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px 12px;
}
.merch-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tile {
  height: 126px;
  background: #edf1f6;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tile > svg {
  width: 72px;
  height: 72px;
}
.merch-item > .bar {
  height: 7px;
}
.merch-item > .bar:first-of-type {
  margin-top: 3px;
}
.tile.face-tile {
  background: #d4e2ff;
}
.face-frame {
  width: 77px;
  height: 94px;
  background: #9baecb;
  padding: 4px;
  border-radius: 21px;
  transform: rotate(-6deg);
}
.face-frame img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 17px;
}
.mail-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 38px;
  background: #f0f4fa;
  display: flex;
  align-items: flex-start;
  justify-content: space-around;
  padding-top: 7px;
}
.mail-bottom svg {
  width: 21px;
  height: 21px;
  color: #8a9fbd;
}
.mail-bottom .bar {
  width: 28px;
  margin-top: 8px;
  height: 5px;
  background: #cbd6e7;
}
.swipe-track {
  position: absolute;
  right: 6px;
  top: 180px;
  width: 3px;
  height: 75px;
  opacity: 0;
}
.swipe-track > i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 4px;
  background: #9caecc;
}
.store-screen {
  z-index: 3;
  transform: scale(0.68);
  transform-origin: center;
  clip-path: inset(0 round 38px);
  opacity: 0;
  overflow: hidden;
}
.email-screen {
  transform-origin: center;
  overflow: hidden;
}
.store-header {
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  color: #8ba0bf;
}
.store-header > span svg {
  width: 22px;
  height: 22px;
}
.store-header > .brand-sun {
  width: 28px;
  height: 28px;
  color: #edb82e;
}
.store-content {
  padding: 4px 24px 0;
}
.product-cover {
  height: 264px;
  border-radius: 14px;
  background: #e0eaff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cover-face {
  width: 150px;
  height: 185px;
  padding: 6px;
  border-radius: 36px;
  background: #9baecb;
  transform: rotate(-6deg);
}
.cover-face img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 30px;
}
.product-copy {
  padding: 28px 0 24px;
  display: flex;
  flex-direction: column;
}
.title-line {
  width: 79%;
  height: 15px;
  background: #8da4c5;
}
.price-line {
  width: 25%;
  height: 11px;
  background: #b2c1d8;
  margin: 13px 0 23px;
}
.body-line {
  width: 91%;
  height: 8px;
  background: #e0e6ef;
}
.body-line.shorter {
  width: 68%;
  margin-top: 9px;
}
.action-button {
  height: 53px;
  border-radius: 28px;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  position: relative;
}
.action-button > span {
  display: flex;
}
.action-button svg {
  width: 27px;
  height: 27px;
  stroke-width: 2.2;
}
.action-button .install-icon,
.action-button .installed-icon,
.action-button .install-spinner {
  display: none;
}
.install-progress {
  height: 5px;
  width: 85%;
  border-radius: 5px;
  background: #e0e8f7;
  margin: 13px auto 0;
  overflow: hidden;
  opacity: 0;
}
.install-progress > i {
  display: block;
  width: 100%;
  height: 100%;
  background: #2862eb;
  transform: scaleX(0);
  transform-origin: left;
}
.sheet-shade {
  position: absolute;
  inset: 0;
  background: #263d61;
  opacity: 0;
}
.purchase-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 339px;
  background: #fff;
  border-radius: 23px 23px 0 0;
  padding: 10px 24px 0;
  transform: translateY(110%);
  z-index: 6;
}
.sheet-handle {
  display: block;
  width: 34px;
  height: 4px;
  border-radius: 4px;
  background: #d4dce8;
  margin: 0 auto 22px;
}
.sheet-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sheet-title > span {
  color: #2862eb;
  display: flex;
}
.sheet-title svg {
  width: 30px;
  height: 30px;
}
.sheet-title > .bar {
  width: 82px;
  height: 10px;
}
.sheet-product {
  margin: 24px 0;
  padding-bottom: 23px;
  display: flex;
  gap: 11px;
  align-items: center;
  border-bottom: 1px solid #e5eaf2;
}
.sheet-thumb {
  width: 40px;
  height: 49px;
  overflow: hidden;
  border-radius: 10px;
}
.sheet-thumb img {
  width: 100%;
  height: 100%;
  display: block;
}
.sheet-product > div:nth-child(2) {
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
}
.price-block {
  width: 33px;
  height: 9px;
  border-radius: 8px;
  background: #99adca;
}
.confirm-symbol {
  height: 61px;
  width: 61px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto;
  color: #2862eb;
}
.confirm-symbol > span {
  position: absolute;
  display: flex;
}
.confirm-symbol svg {
  width: 46px;
  height: 46px;
  stroke-width: 1.6;
}
.payment-check {
  opacity: 0;
  width: 57px;
  height: 57px;
  border-radius: 50%;
  color: #278368;
  background: #d8f1e6;
  align-items: center;
  justify-content: center;
}
.payment-check svg {
  width: 32px;
  height: 32px;
  stroke-width: 2.5;
}
.payment-spinner,
.install-spinner {
  width: 29px;
  height: 29px;
  border: 3px solid #cad9f4;
  border-top-color: #2862eb;
  border-radius: 50%;
  display: none;
}
.confirmation-bar {
  width: 106px;
  height: 8px;
  margin: 19px auto 0;
  background: #d5dfec;
}
.side-confirm {
  position: absolute;
  right: 2px;
  top: 142px;
  display: flex;
  gap: 5px;
  opacity: 0;
  z-index: 5;
}
.side-confirm > i {
  height: 42px;
  width: 4px;
  border-radius: 4px;
  background: #f8fafc;
}
.side-confirm > i:first-child {
  opacity: 0.5;
}
.tap {
  position: absolute;
  width: 50px;
  height: 50px;
  margin: -25px 0 0 -25px;
  border: 2px solid #2862eb;
  background: #8eafff38;
  border-radius: 50%;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
}
.tap > i {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #2862eb85;
}
.wrist {
  position: absolute;
  left: -20px;
  top: 140px;
  width: 1000px;
  height: 1000px;
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  transform-origin: center center;
}
.wrist-art {
  width: 100%;
  height: 100%;
  display: block;
}
.wrist-face {
  position: absolute;
  left: 38.22%;
  top: 36.16%;
  width: 20.75%;
  height: 23.7%;
  border-radius: 25% / 21%;
  overflow: hidden;
  background: #2055b2;
}
.wrist-face img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: fill;
}
.loop-wipe {
  position: absolute;
  inset: 0;
  background: var(--paper);
  z-index: 20;
  opacity: 0;
  pointer-events: none;
}
.player {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 520px;
  margin: auto;
  padding: 8px 0;
}
.player button {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: #425c80;
  min-width: 40px;
  height: 40px;
  border-radius: 20px;
  flex-shrink: 0;
}
.player button:hover {
  background: #e5eaf2;
}
.player button svg {
  width: 19px;
  height: 19px;
}
.player .speed {
  font-size: 12px;
}
.time {
  font-size: 11px;
  white-space: nowrap;
  color: #586d88;
  font-variant-numeric: tabular-nums;
}
input[type="range"] {
  appearance: none;
  -webkit-appearance: none;
  min-width: 40px;
  flex: 1;
  height: 4px;
  background: linear-gradient(
    to right,
    var(--blue) var(--progress, 0%),
    #dbe2ed var(--progress, 0%)
  );
  border-radius: 3px;
  cursor: pointer;
  margin: 0;
}
input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
}
input[type="range"]::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: var(--blue);
}
.preview-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  max-width: 900px;
  margin: 20px auto 0;
  padding-top: 16px;
  border-top: 1px solid #dce3ed;
  font-size: 11px;
  color: #62748d;
}
.chapter {
  color: #3e5d88;
}
.embed .preview {
  max-width: none;
  padding: 0;
}
html.mobile-embed,
.mobile-embed body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}
.embed .preview-header,
.embed .preview-footer {
  display: none;
}
.embed .player {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: min(88%, 420px);
  opacity: 0.7;
}
.embed .player:hover,
.embed .player:focus-within {
  opacity: 1;
}
.capture .player {
  display: none;
}
.hide-controls .player {
  display: none;
}
.hide-controls .stage {
  cursor: pointer;
}
.hide-controls .stage:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: -3px;
}
@media (max-width: 599px) {
  .preview {
    padding: 25px 14px 18px;
  }
  .preview-header {
    margin: 0 6px;
  }
  .preview-header h1 {
    font-size: 27px;
  }
  .preview-header p {
    font-size: 12px;
  }
  .preview-header > span {
    display: none;
  }
  .stage {
    aspect-ratio: 480/800;
  }
  .canvas {
    width: 480px;
  }
  .phone {
    left: 68px;
  }
  .wrist {
    left: -115px;
    top: 230px;
    width: 740px;
    height: 740px;
  }
  .player {
    gap: 5px;
  }
  .preview-footer {
    font-size: 10px;
    margin-top: 12px;
  }
}
