/* Snag web2app landing — App Store product page look (port of the pose-ios reference). */

html {
  letter-spacing: 0;
  background: #fff;
}

* {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  user-select: none;
  -webkit-user-select: none;
  scrollbar-width: thin !important;
  scroll-behavior: smooth;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  color: #1d1d1f;
  background: #fff;
}

.page {
  max-width: 430px;
  margin: 0 auto;
}

/* ---- sticky top bar ---- */
.topbar {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  border-bottom: 1px solid #d6d6d6;
  position: fixed;
  top: 0;
  width: 100%;
  max-width: 430px;
  height: 44px;
  padding-top: env(safe-area-inset-top, 0px);
  background-color: rgba(255, 255, 255, .72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  z-index: 10;
}

.topbar .brand {
  margin: 0 0 0 20px;
  padding: 0;
  font-weight: 700;
  font-size: 19px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -.01em;
  background: linear-gradient(to right, #ff3b30, #f00d0d);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.topbar .brand-suffix {
  color: #636366b0;
  font-size: 19px;
  font-weight: 400;
  line-height: 1;
}

#top-button {
  position: absolute;
  right: 12px;
  opacity: 0;
  transition: opacity .15s linear;
}

/* ---- GET button (Spectrum accent sizeS look) ---- */
.get-btn {
  all: unset;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  height: 32px;
  padding: 0 16px;
  border-radius: 16px;
  background-color: #0d83fe;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  cursor: pointer;
  transition: background-color .1s ease-out, transform .1s ease-out;
}
.get-btn:active { background-color: #0a6fd8; transform: scale(.97); }
.get-btn:focus-visible { outline: 2px solid #0d83fe; outline-offset: 2px; }

/* ---- app header ---- */
.app-header-wrapper {
  margin: 20px;
  margin-top: 50px;
  display: flex;
  border-bottom: 1px solid #d6d6d6;
  padding-top: 20px;
}

.app-logo {
  min-width: 143px;
  width: 143px;
  height: 143px;
  border-radius: 22.5%;
  border: .5px solid rgba(0, 0, 0, .08);
  box-sizing: border-box;
}

.app-header-text {
  margin-left: 3.28358%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  min-width: 0;
}

.app-header-text h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -.02em;
  color: #1d1d1f;
}

.app-subtitle {
  color: #636366b0;
  font-size: 13px;
  font-weight: 400;
}

.app-developer {
  text-decoration: none;
  color: #0070c9;
  display: block;
  font-size: 13px;
}

.stars-wrapper {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.stars { display: inline-flex; gap: 1px; }

.rating-inline {
  margin-left: 4px;
  color: #636366b0;
  font-size: 10px;
  font-weight: 400;
}

.header-cta { margin-bottom: 12px; margin-top: 12px; }

@media screen and (min-width: 600px) {
  .app-header-wrapper { padding-bottom: 10px; }
  .app-description-wrapper { display: flex; flex-direction: column; gap: 4px; }
}

/* ---- screenshots ---- */
.section-title {
  margin: 20px 20px 12px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.02em;
}

#screenshots-container {
  height: 662px;
  max-height: 662px;
  display: flex;
  width: auto;
  overflow-x: auto;
  overflow-y: hidden;
  column-gap: 12px;
  padding: 0 20px 10px 20px;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
#screenshots-container::-webkit-scrollbar { display: none; }

.img-item {
  width: 300px;
  height: auto;
  border-radius: 10% / 4.7%;
  scroll-snap-align: start;
  scroll-margin-left: 20px;
  flex-shrink: 0;
  background: #f2f2f7;
}

/* ---- description ---- */
.description-wrapper {
  margin: 20px;
  position: relative;
}

.description {
  height: 103px;
  overflow: hidden;
  mask: linear-gradient(0deg, rgba(0, 0, 0, 0) 0px, rgba(0, 0, 0, 0) 18.0001px, rgb(0, 0, 0) 18.0001px),
        linear-gradient(270deg, rgba(0, 0, 0, 0) 0px, rgba(0, 0, 0, 0) 32.8px, rgb(0, 0, 0) 68.8002px);
  -webkit-mask: linear-gradient(0deg, rgba(0, 0, 0, 0) 0px, rgba(0, 0, 0, 0) 18.0001px, rgb(0, 0, 0) 18.0001px),
        linear-gradient(270deg, rgba(0, 0, 0, 0) 0px, rgba(0, 0, 0, 0) 32.8px, rgb(0, 0, 0) 68.8002px);
  /* default (add) composite: only the bottom-right corner under the "more" button is masked out */
}

.description.expanded {
  height: auto;
  mask: none;
  -webkit-mask: none;
}

.description p {
  font-size: 13px;
  font-weight: 400;
  color: #1d1d1f;
  line-height: 1.38462;
  margin: 0 0 12px;
}

.more-button {
  all: unset;
  color: #0070c9;
  position: absolute;
  bottom: -4px;
  right: 0;
  font-size: 13px;
  line-height: 18px;
  cursor: pointer;
  background: #fff;
  padding-left: 8px;
}

.seperator {
  margin: 20px;
  height: 1px;
  background-color: #d6d6d6;
}

/* ---- what's new ---- */
.whats-new-wrapper { margin-left: 20px; margin-right: 20px; }
.whats-new-header { display: flex; justify-content: space-between; align-items: baseline; }
.whats-new-header h3 { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.whats-new-header span { font-size: 13px; color: #636366; }
.whats-new-wrapper p { font-size: 13px; margin-top: 16px; line-height: 1.38462; }

/* ---- ratings & reviews ---- */
.ratings-and-reviews-wrapper { padding: 0 20px; }
.ratings-and-reviews-header h3 { margin: 0 0 12px; font-size: 17px; font-weight: 700; letter-spacing: -.02em; }

.ratings-wrapper {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

.rating-value-wrapper {
  text-align: center;
  color: #636366;
  font-size: 13px;
  line-height: 1.38462;
  font-weight: 600;
  letter-spacing: -.005em;
}

.rating-value {
  margin-bottom: 10px;
  display: block;
  line-height: 43px;
  font-size: 60px;
  font-weight: 700;
  letter-spacing: -.07em;
  color: #4c4c50;
  margin-right: 3px;
}

.stars-wrapper-container {
  display: flex;
  flex-direction: column;
  flex: 1;
  width: 66%;
  max-width: 66%;
}

.rating-row { display: flex; align-items: center; }

.five-star-icon {
  width: 10px;
  height: 9px;
  display: inline-block;
  background-image: url(./images/five-star.svg);
  background-size: 49px 9px;
  background-position: 100% center;
  background-repeat: no-repeat;
  margin-left: auto;
}
.five { width: 49px; }
.four { width: 39.5px; }
.three { width: 29.5px; }
.two { width: 19.5px; }

.rating-line {
  width: calc(100% - 59px);
  height: 2px;
  position: relative;
  top: 1px;
  background-color: #efeff4;
  border-radius: 4px;
  margin-left: 10px;
}

.rating-line-foreground {
  max-width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-color: #636366;
  border-radius: 4px;
}

.total-rating-span {
  color: #636366;
  margin-top: 8px;
  font-size: 13px;
  text-align: right;
}

.comments-wrapper {
  display: flex;
  gap: 10px;
  align-items: stretch;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
  white-space: nowrap;
  margin-bottom: -9.75px;
  margin-left: -20px;
  margin-right: -20px;
  padding-left: 20px;
  padding-right: 20px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.comments-wrapper::-webkit-scrollbar { display: none; }

.comment {
  padding: 13px 16px 16px;
  background-color: #f8f8f8;
  box-sizing: border-box;
  border-radius: 6px;
  min-height: 184px;
  flex-shrink: 0;
  width: calc(100% - 40px);
  max-width: 70dvw;
  margin-bottom: 10px;
  scroll-snap-align: start;
  scroll-margin-left: 20px;
}

.five-star-rating { margin-bottom: 3px; display: flex; gap: 0; }

.reviewer {
  margin-bottom: 15px;
  color: #636366;
  font-size: 12px;
  line-height: 1.33337;
  font-weight: 600;
  letter-spacing: 0;
}

.comment-title {
  font-size: 13px;
  line-height: 1.38462;
  font-weight: 600;
  letter-spacing: -.005em;
  margin: 0;
  white-space: initial;
}

.comment-body {
  font-size: 13px;
  line-height: 1.38462;
  font-weight: 400;
  letter-spacing: -.005em;
  white-space: initial;
  margin: 0;
  color: #1d1d1f;
}

/* ---- information ---- */
.info-wrapper { margin: 0 20px; }
.info-wrapper h3 { margin: 0 0 4px; font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.info-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid #efeff4;
  font-size: 13px;
}
.info-row:last-child { border-bottom: 0; }
.info-row dt { color: #636366; margin: 0; }
.info-row dd { margin: 0; text-align: right; color: #1d1d1f; }
.info-wrapper dl { margin: 0; }

/* ---- app privacy ---- */
.app-privacy-wrapper { margin: 0 20px; }
.app-privacy-header h3 { margin: 0 0 6px; font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.app-privacy-description { font-size: 13px; color: #1d1d1f; line-height: 1.38462; }

.privacy-card-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 13px;
}

.privacy-card {
  padding: 28px 20px 20px;
  width: 100%;
  box-sizing: border-box;
  border-radius: 16px;
  background-color: #f8f8f8;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.privacy-card-title {
  margin-top: 9px;
  color: #111;
  text-align: center;
  font-size: 15px;
  line-height: 1.33338;
  font-weight: 600;
  letter-spacing: -.016em;
}

.privacy-card-description {
  margin-top: 6px;
  color: #666;
  text-align: center;
  font-size: 13px;
  line-height: 1.38462;
  font-weight: 400;
  letter-spacing: -.005em;
}

.privacy-card-bottom-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 12px;
}

.privacy-card-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.privacy-card-bottom-title {
  padding-top: 7px;
  padding-bottom: 5px;
  color: #111;
  font-size: 13px;
  line-height: 1.38462;
  font-weight: 400;
  letter-spacing: -.005em;
  margin: 0;
}

/* ---- footer ---- */
.footer {
  margin: 20px;
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  font-size: 11px;
  color: #86868b;
  line-height: 1.4;
}
.footer a { color: #0070c9; text-decoration: none; }
