/* get.redeko.app: one page laid out like a product page in the App Store on
   iPhone. System font and system colors, light and dark. No JavaScript. */
:root {
  --bg: #fff;
  --text: #000;
  --text-2: rgba(60, 60, 67, 0.6);
  --text-3: rgba(60, 60, 67, 0.3);
  --line: rgba(60, 60, 67, 0.18);
  --fill: #f2f2f7;
  --blue: #007aff;
  --bar: rgba(255, 255, 255, 0.82);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000;
    --text: #fff;
    --text-2: rgba(235, 235, 245, 0.6);
    --text-3: rgba(235, 235, 245, 0.3);
    --line: rgba(84, 84, 88, 0.6);
    --fill: #1c1c1e;
    --blue: #0a84ff;
    --bar: rgba(22, 22, 24, 0.82);
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.35 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--blue);
  text-decoration: none;
}

.page {
  max-width: 480px;
  margin: 0 auto;
  padding: calc(20px + env(safe-area-inset-top)) 0 calc(96px + env(safe-area-inset-bottom));
}

/* Head: icon, name, subtitle, Get */
.head {
  display: flex;
  gap: 16px;
  padding: 0 20px;
}

.icon {
  flex: none;
  width: 118px;
  height: 118px;
  border-radius: 26px;
  box-shadow: 0 0 0 0.5px var(--line);
}

.head-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.18;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.subtitle {
  margin: 3px 0 0;
  font-size: 15px;
  color: var(--text-2);
}

.head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
}

.get {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  height: 32px;
  padding: 0 18px;
  border-radius: 16px;
  background: var(--blue);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.get:active {
  opacity: 0.7;
}

.iap {
  font-size: 9px;
  line-height: 1.15;
  color: var(--text-2);
}

/* Facts strip */
.facts {
  display: flex;
  margin: 18px 0 0;
  padding: 12px 20px 10px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
  border-top: 0.5px solid var(--line);
  margin-left: 20px;
  padding-left: 0;
}

.facts::-webkit-scrollbar,
.shots ul::-webkit-scrollbar {
  display: none;
}

.facts li {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 104px;
  padding: 0 12px;
  text-align: center;
  color: var(--text-2);
}

.facts li + li {
  border-left: 0.5px solid var(--line);
}

.facts .k {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-3);
}

.facts .v {
  display: flex;
  align-items: center;
  height: 30px;
  margin: 3px 0 1px;
  font-size: 20px;
  font-weight: 700;
  font-family: ui-rounded, -apple-system, BlinkMacSystemFont, sans-serif;
}

.facts .u {
  font-size: 12px;
  white-space: nowrap;
}

/* Screenshots */
.shots {
  margin-top: 6px;
  padding-top: 18px;
  border-top: 0.5px solid var(--line);
  margin-left: 20px;
}

.shots ul {
  display: flex;
  gap: 10px;
  margin: 0 0 0 -20px;
  padding: 0 20px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 20px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.shots li {
  flex: none;
  width: 62%;
  max-width: 260px;
  scroll-snap-align: start;
}

.shots img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 0 0 0.5px var(--line);
  background: var(--fill);
}

.device {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 14px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}

/* Description with "more" */
.about {
  position: relative;
  margin: 16px 0 0 20px;
  padding: 16px 20px 16px 0;
  border-top: 0.5px solid var(--line);
}

.more-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.desc {
  max-height: 4.05em;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.35;
}

.desc p {
  margin: 0 0 0.9em;
}

.desc h3 {
  margin: 1.2em 0 0.2em;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.more {
  position: absolute;
  right: 20px;
  bottom: 16px;
  padding-left: 28px;
  font-size: 15px;
  line-height: 1.35;
  color: var(--blue);
  background: linear-gradient(to right, transparent, var(--bg) 24px);
  cursor: pointer;
}

.more-toggle:checked ~ .desc {
  max-height: none;
}

.more-toggle:checked ~ .more {
  display: none;
}

.more-toggle:focus-visible ~ .more {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* Rows and information */
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-left: 20px;
  padding: 12px 20px 12px 0;
  border-top: 0.5px solid var(--line);
  color: var(--text-3);
}

.row-title {
  display: block;
  font-size: 15px;
  color: var(--blue);
}

.row-sub {
  display: block;
  font-size: 13px;
  color: var(--text-2);
}

.info {
  margin-left: 20px;
  padding: 18px 20px 0 0;
  border-top: 0.5px solid var(--line);
}

h2 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

dl {
  margin: 0;
}

dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  font-size: 15px;
  border-bottom: 0.5px solid var(--line);
}

dt {
  color: var(--text-2);
}

dd {
  margin: 0;
  text-align: right;
}

.links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.links li {
  padding: 11px 0;
  font-size: 15px;
  border-bottom: 0.5px solid var(--line);
}

.foot {
  padding: 22px 20px 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-2);
}

.foot p {
  margin: 0 0 14px;
}

.badge {
  display: inline-block;
  line-height: 0;
}

.badge img {
  width: 132px;
  height: auto;
}

/* Bar at the bottom: the Get button stays in reach */
.bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px max(20px, calc((100vw - 480px) / 2 + 20px)) calc(10px + env(safe-area-inset-bottom));
  background: var(--bar);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-top: 0.5px solid var(--line);
}

.bar img {
  flex: none;
  border-radius: 9px;
  box-shadow: 0 0 0 0.5px var(--line);
}

.bar-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  font-size: 12px;
  color: var(--text-2);
}

.bar-text b {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.bar-text span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
