/* Redesigned product pages (Figma "Interior design generator" and "Photo-enhancer").
   Loaded with landing.css and home.css; the reviews, questions, gallery, closing and footer
   come from those. Prefix: pr-. */

:root {
  --pr-heading: #1e2939;
  --pr-quiet: #99a1af;
  --pr-ease: cubic-bezier(0.22, 0.8, 0.22, 1);
  --pr-shadow: 0 4px 9px #0000000f, 0 16px 16px #0000000d, 0 37px 22px #00000008,
    0 66px 26px #00000003;
  --pr-section: clamp(96px, 11.1vw, 160px);
}

/* The eyebrow sits inside the h1, so it resets the heading's type and keeps the 24px that
   used to separate the two. */
.pr-eyebrow {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0 0 24px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--muted);
  text-wrap: wrap;
  letter-spacing: -0.01em;
}

.pr-hero-center .pr-eyebrow {
  justify-content: center;
}

.pr-hero h1 {
  margin: 0;
  font: 400 clamp(38px, 3.75vw, 54px) / 1.15 var(--serif);
  color: var(--ink);
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.pr-intro {
  margin: 0;
  font-size: clamp(17px, 1.39vw, 20px);
  font-weight: 500;
  line-height: 1.5;
  color: var(--text);
  letter-spacing: -0.01em;
}

.pr-icon {
  flex: none;
  color: var(--purple);
}

.pr-eyebrow .pr-icon {
  color: var(--muted);
}

.pr-trust {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text);
}

/* Section headings share the homepage's serif display size. */
.pr-feature h2,
.pr-steps h2,
.pr-guide h2,
.pr-discover h2 {
  margin: 0;
  font: 400 clamp(32px, 3.06vw, 44px) / 1.3 var(--serif);
  color: var(--ink);
  letter-spacing: -0.04em;
  text-wrap: balance;
}

/* Hero: shared shell */
.pr-hero {
  position: relative;
  overflow: clip;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.pr-star {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

/* Prompt hero: copy on the left, a framed picture with a sample prompt on the right. */
.pr-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 628fr) minmax(0, 630fr);
  gap: clamp(24px, 3vw, 22px);
  align-items: center;
  min-height: min(828px, calc(100svh - 72px));
}

.pr-hero-grid.is-copy-only {
  grid-template-columns: minmax(0, 760px);
  min-height: 0;
}

.pr-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  padding-block: 64px;
}

.pr-hero-copy .pr-intro {
  max-width: 567px;
}

.pr-hero-cta {
  min-height: 54px;
  padding-inline: 32px;
  margin-top: 8px;
  font-size: 18px;
}

.pr-hero-copy .pr-trust {
  margin-top: clamp(32px, 7vw, 110px);
}

.pr-hero-art {
  position: relative;
  align-self: stretch;
  min-height: 680px;
}

.pr-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  width: 65%;
  aspect-ratio: 1;
  background: linear-gradient(90deg, #e05852 23%, #550fd0 52%, #af4aea 78%);
  border-radius: 50%;
  opacity: 0.55;
  filter: blur(100px);
  transform: translateX(-50%);
}

.pr-hero-frame {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(515px, 82%);
  aspect-ratio: 515 / 609;
  padding: 6px;
  margin: 0;
  transform: translate(-50%, -54%);
}

.pr-hero-frame img {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: var(--pr-shadow);
}

.pr-star-top {
  top: 1%;
  right: -4%;
  width: clamp(150px, 18vw, 261px);
  height: auto;
  rotate: 15deg;
}

.pr-star-bottom {
  bottom: 18%;
  left: 2%;
  width: clamp(80px, 9vw, 129px);
  height: auto;
  transform: rotate(165deg) scaleY(-1);
}

/* The picture fades into the hero's background behind the prompt. */
.pr-hero-fade {
  position: absolute;
  bottom: 6%;
  left: 50%;
  width: 104%;
  height: 33%;
  pointer-events: none;
  background: linear-gradient(#f9fafb00, var(--surface) 70%);
  transform: translateX(-50%);
}

.pr-hero-art .pr-prompt {
  position: absolute;
  bottom: 10%;
  left: 50%;
  z-index: 2;
  width: min(435px, 88%);
  transform: translateX(-50%);
}

/* Sample prompt: the homepage composer's look, as an illustration. */
.pr-prompt {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 4px 4px 4px 20px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
  white-space: nowrap;
  background: white;
  border: 1.5px solid var(--purple);
  border-radius: 999px;
  box-shadow: 0 0 0 6px #ffffff99, 0 6px 6px #00000005, 0 23px 11px #00000005;
}

.pr-prompt > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

.pr-prompt-send {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--purple);
  border-radius: 50%;
}

/* The design's arrow icon is drawn sideways and turned upright. */
.pr-prompt-send img {
  transform: rotate(-90deg) scaleX(-1);
}

/* Upload hero: centred copy and upload box between two before/after cards. */
.pr-hero-upload {
  padding-block: 64px 72px;
}

.pr-hero-center {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  text-align: center;
}

.pr-hero-center h1 {
  max-width: 871px;
}

.pr-upload {
  position: relative;
  display: block;
  width: min(630px, 100%);
  padding: 4px;
  margin-top: 20px;
  cursor: pointer;
  background: white;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow-card);
}

.pr-upload input {
  position: absolute;
  inset: 0;
  width: 100%;
  cursor: pointer;
  opacity: 0;
}

/* A transparency checkerboard, as in the editor. */
.pr-upload-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  justify-content: center;
  min-height: clamp(240px, 30vw, 440px);
  padding: 24px;
  background: repeating-conic-gradient(#f3f4f6 0 25%, white 0 50%) 0 0 / 24px 24px;
  border-radius: 24px;
  transition: box-shadow 160ms ease;
}

.pr-upload-button {
  gap: 8px;
  min-height: 54px;
  padding-inline: 32px;
  font-size: 18px;
}

.pr-upload-button img {
  filter: brightness(0) invert(1);
}

.pr-upload-note {
  font-size: 16px;
  font-weight: 500;
  color: var(--pr-heading);
}

.pr-upload:focus-within .pr-upload-inner,
.pr-upload.is-dragover .pr-upload-inner,
.pr-upload:hover .pr-upload-inner {
  box-shadow: inset 0 0 0 1.5px var(--purple);
}

.pr-upload:focus-within {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
}

.pr-hero-upload .pr-trust {
  margin-top: 20px;
}

.pr-compare.pr-hero-compare {
  position: absolute;
  z-index: 1;
  width: clamp(190px, 18vw, 258px);
}

/* Landscape pairs get more width so they don't sit as thin strips. */
.pr-compare.pr-hero-compare.is-wide {
  width: clamp(240px, 23vw, 340px);
}

.pr-hero-compare-left {
  top: 37%;
  left: 2%;
  rotate: -6deg;
}

.pr-hero-compare-right {
  top: 60%;
  right: 3%;
  rotate: 7deg;
}

.pr-star-left {
  top: 56%;
  left: 11%;
  width: clamp(120px, 13vw, 198px);
  height: auto;
  rotate: -12deg;
}

.pr-star-right {
  top: 54%;
  right: 1%;
  width: clamp(90px, 10vw, 146px);
  height: auto;
  rotate: 18deg;
}

/* Before/after card */
.pr-compare {
  position: relative;
  padding: 6px;
  margin: 0;
  background: #ffffff8c;
  border-radius: 24px;
  box-shadow: var(--pr-shadow);
}

.pr-compare > img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
}

.pr-compare .pr-compare-before {
  position: absolute;
  inset: 6px;
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  clip-path: inset(0 50% 0 0 round 20px 0 0 20px);
  object-fit: cover;
  filter: blur(1.25px);
}

.pr-compare-seam {
  position: absolute;
  inset-block: 6px;
  left: calc(50% - 2px);
  width: 4px;
  background: white;
  border-radius: 4px;
}

.pr-compare-seam img {
  position: absolute;
  top: 50%;
  left: 50%;
  box-sizing: content-box;
  padding: 4px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 2px 6px #0000001f;
  transform: translate(-50%, -50%);
}

.pr-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 4px 9px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 0 0 4px #ffffff66, 0 2px 2px #0000000a;
}

.pr-tag-dark {
  right: 16px;
  left: auto;
  color: var(--surface);
  background: var(--ink);
  border-color: var(--ink);
}

/* Feature: pictures on the left, a heading and expandable rows on the right. */
.pr-feature {
  display: grid;
  grid-template-columns: minmax(0, 630fr) minmax(0, 518fr);
  gap: clamp(40px, 8vw, 126px);
  align-items: center;
  padding-block: var(--pr-section);
}

.pr-feature.is-copy-only {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
}

.pr-feature-art {
  position: relative;
  aspect-ratio: 630 / 700;
}

.pr-feature-panel {
  position: absolute;
  inset: 3% 13% 3% 13%;
  background: var(--surface);
  border-radius: 20px;
}

.pr-collage {
  position: absolute;
  inset: 7.5% 1%;
  display: grid;
  grid-template-rows: minmax(0, 251fr) minmax(0, 331fr);
  grid-template-columns: minmax(0, 297fr) minmax(0, 305fr);
  gap: 12px;
}

.pr-collage figure {
  min-width: 0;
  height: 100%;
  min-height: 0;
  padding: 6px;
  margin: 0;
  background: #ffffff8c;
  border-radius: 24px;
}

.pr-collage figure:first-child {
  grid-row: 1 / 3;
  align-self: center;
  height: 74%;
}

.pr-collage figure:nth-child(3) {
  width: 86%;
}

/* Fewer pictures: one fills the panel, two sit side by side. */
.pr-collage.is-1 {
  inset: 7.5% 14%;
  grid-template-rows: minmax(0, 1fr);
  grid-template-columns: minmax(0, 1fr);
}

.pr-collage.is-1 figure:first-child {
  grid-row: auto;
  height: 100%;
}

.pr-collage.is-2 {
  grid-template-rows: minmax(0, 1fr);
}

.pr-collage.is-2 figure:first-child {
  grid-row: auto;
  height: 74%;
}

.pr-collage.is-2 figure:nth-child(2) {
  align-self: end;
  height: 74%;
}

.pr-collage img {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: var(--shadow-card);
}

.pr-feature-art.is-compare figure {
  position: absolute;
  width: 46%;
  aspect-ratio: 284 / 361;
  padding: 6px;
  margin: 0;
  background: #ffffff8c;
  border-radius: 24px;
}

.pr-feature-art.is-compare figure img {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  object-fit: cover;
}

.pr-feature-before {
  top: 7%;
  left: 9%;
}

.pr-feature-before img {
  filter: blur(2.5px);
}

.pr-feature-after {
  right: 9%;
  bottom: 7%;
  z-index: 1;
  box-shadow: var(--pr-shadow);
}

.pr-clover {
  position: absolute;
  top: 22%;
  right: -2%;
  width: 66%;
  height: auto;
  rotate: -15deg;
}

.pr-feature-copy {
  display: flex;
  flex-direction: column;
  gap: 54px;
}

.pr-rows details {
  border-bottom: 1px solid #f3f4f6;
}

.pr-rows details:last-child {
  border-bottom: 0;
}

.pr-rows summary {
  display: flex;
  justify-content: space-between;
  padding-block: 16px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--pr-quiet);
  letter-spacing: -0.02em;
  list-style: none;
  cursor: pointer;
}

.pr-rows summary::-webkit-details-marker {
  display: none;
}

.pr-rows details:first-child summary {
  padding-top: 0;
}

.pr-rows summary:hover,
.pr-rows details[open] summary {
  color: var(--pr-heading);
}

/* A row closing in home.js fades its title back while its panel collapses. */
.pr-rows details[data-faq-closing] summary:not(:hover) {
  color: var(--pr-quiet);
}

.pr-row-body {
  overflow: clip;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  padding-bottom: 32px;
  margin-top: -12px;
}

.pr-row-body p {
  max-width: 465px;
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--pr-heading);
  letter-spacing: -0.01em;
}

.pr-row-body .button {
  min-height: 48px;
  padding-inline: 24px;
  font-size: 16px;
  font-weight: 500;
}

/* Steps */
.pr-steps {
  padding-bottom: var(--pr-section);
  text-align: center;
}

.pr-steps h2 {
  max-width: 765px;
  margin-inline: auto;
}

.pr-steps > .pr-intro {
  max-width: 730px;
  margin: 20px auto 0;
}

.pr-steps ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding: 0;
  margin: 54px 0 0;
  text-align: left;
  list-style: none;
}

.pr-steps li {
  position: relative;
  container-type: inline-size;
  display: flex;
  overflow: clip;
  flex-direction: column;
  min-height: 522px;
  padding: 32px;
  background: var(--surface);
  border-radius: 20px;
}

.pr-step-art {
  position: relative;
  flex: 1;
  min-height: 300px;
  margin-bottom: 32px;
}

.pr-step-number {
  position: absolute;
  top: 32px;
  left: 32px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  font-size: 16px;
  font-weight: 500;
  color: white;
  background: var(--ink);
  border-radius: 50%;
}

.pr-steps h3 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--pr-heading);
  letter-spacing: -0.02em;
}

.pr-steps li p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--pr-heading);
}

.pr-thumb {
  position: absolute;
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: 6px solid #ffffff8c;
  border-radius: 18px;
  box-shadow: var(--pr-shadow);
  transform: translate(-50%, -50%);
}

.pr-thumb.is-top {
  top: calc(50% - 115px);
  left: calc(50% + 50px);
}

.pr-thumb.is-left {
  top: calc(50% - 43px);
  left: calc(50% - 144px);
}

.pr-thumb.is-right {
  top: calc(50% + 45px);
  left: calc(50% + 133px);
}

.pr-thumb.is-bottom {
  top: calc(50% + 118px);
  left: calc(50% - 60px);
  width: 100px;
  height: 100px;
}

.pr-thumb.is-soft {
  filter: blur(6px);
}

.pr-step-generate .pr-prompt {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: min(334px, 100%);
  transform: translate(-50%, -50%);
}

.pr-step-main {
  position: absolute;
  top: calc(50% + 12px);
  left: 50%;
  width: 237px;
  height: 280px;
  object-fit: cover;
  border: 6px solid #ffffff8c;
  border-radius: 24px;
  box-shadow: var(--pr-shadow);
  transform: translate(-50%, -50%);
}

.pr-tools {
  position: absolute;
  top: 100px;
  left: calc(50% - 150px);
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px;
  background: #ffffff8c;
  border-radius: 999px;
}

.pr-tools span,
.pr-share-center,
.pr-share {
  display: grid;
  place-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: 0 6px 12px #00000005, 0 23px 23px #00000005;
}

.pr-tools span {
  width: 48px;
  height: 48px;
}

.pr-share-center,
.pr-share {
  position: absolute;
  width: 64px;
  height: 64px;
  transform: translate(-50%, -50%);
}

.pr-share-center {
  top: calc(50% + 4px);
  left: 50%;
  z-index: 1;
  background: var(--purple);
  border-color: var(--purple);
}

.pr-share-center img {
  filter: brightness(0) invert(1);
}

/* The share icons are drawn on a white disc; the composites already include theirs. */
.pr-share {
  box-sizing: border-box;
  padding: 17px;
  object-fit: contain;
}

.pr-share.is-composite {
  width: 124px;
  height: 151px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  /* The drawn disc is 64px wide, 30px from the left and 6px from the top. */
  transform: translate(-62px, -38px);
}

.pr-share.is-top {
  top: calc(50% - 86px);
  left: 50%;
}

.pr-share.is-bottom {
  top: calc(50% + 95px);
  left: 50%;
}

.pr-share.is-top-left {
  top: calc(50% - 41px);
  left: calc(50% - 78px);
}

.pr-share.is-top-right {
  top: calc(50% - 41px);
  left: calc(50% + 79px);
}

.pr-share.is-bottom-left {
  top: calc(50% + 50px);
  left: calc(50% - 78px);
}

.pr-share.is-bottom-right {
  top: calc(50% + 50px);
  left: calc(50% + 79px);
}

/* Gallery: the homepage's community gallery and stats pill. */
/* Columns end level: each column's last card grows (cropped) to the longest column. */
.pr-gallery .gallery > div > .art-trigger:last-child {
  display: flex;
  flex: 1 0 auto;
  min-height: 160px;
}

.pr-gallery .art-trigger img {
  height: 100%;
}

.pr-gallery h2 {
  font: 400 clamp(32px, 3.06vw, 44px) / 1.15 var(--serif);
  letter-spacing: -0.04em;
}

/* Guide: the copy and links of the page this design replaced, as a quiet editorial block. */
.pr-guide {
  padding-bottom: var(--pr-section);
}

.pr-guide h2,
.pr-guide > .pr-intro {
  max-width: 871px;
  margin-inline: auto;
  text-align: center;
}

.pr-guide > .pr-intro {
  max-width: 720px;
  margin-top: 16px;
}

.pr-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px 64px;
  align-items: start;
  margin-top: 54px;
}

.pr-guide-grid.is-single {
  grid-template-columns: minmax(0, 720px);
  justify-content: center;
}

.pr-guide-block {
  min-width: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  overflow-wrap: break-word;
}

.pr-guide-block > h3,
.pr-guide-links h3 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--pr-heading);
  letter-spacing: -0.02em;
}

.pr-guide-body :is(p, ul, ol, table),
.pr-guide-list {
  margin: 0 0 12px;
}

.pr-guide-block > :last-child,
.pr-guide-body > :last-child {
  margin-bottom: 0;
}

.pr-guide-body + .pr-guide-list {
  margin-top: 12px;
}

.pr-guide-body :is(ul, ol),
.pr-guide-list {
  padding-left: 22px;
}

.pr-guide-block li + li {
  margin-top: 6px;
}

.pr-guide-body :is(h3, h4) {
  margin: 20px 0 8px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--pr-heading);
}

.pr-guide-body > :is(h3, h4):first-child {
  margin-top: 0;
}

.pr-guide-block strong {
  font-weight: 600;
  color: var(--pr-heading);
}

.pr-guide-body a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pr-guide-body a:hover {
  color: var(--purple);
}

.pr-guide-body table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  font-size: 14px;
  border-collapse: collapse;
}

.pr-guide-body :is(th, td) {
  padding: 8px 12px;
  text-align: left;
  vertical-align: top;
  border: 1px solid var(--line);
}

.pr-guide-links {
  margin-top: 54px;
}

.pr-guide-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.pr-guide-links a {
  display: block;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.pr-guide-links a:hover {
  background: var(--surface);
  border-color: #d1d5dc;
}

/* Discover more */
.pr-discover {
  padding-bottom: var(--pr-section);
}

.pr-discover h2 {
  text-align: center;
}

.pr-discover ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding: 0;
  margin: 54px 0 0;
  list-style: none;
}

.pr-discover li {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 20px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.pr-discover li:hover {
  border-color: #d1d5dc;
  box-shadow: var(--shadow-card);
}

.pr-discover-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 32px;
  background: #f3f4f6;
  border-radius: 50%;
}

.pr-discover h3 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--pr-heading);
  letter-spacing: -0.02em;
}

.pr-discover h3 a::after {
  position: absolute;
  inset: 0;
  content: '';
  border-radius: inherit;
}

.pr-discover h3 a:focus-visible {
  outline: none;
}

.pr-discover li:has(a:focus-visible) {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
}

.pr-discover p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--pr-heading);
}

/* The title's colour turns on the panels' clock (home.js faqDuration and easing). */
@media (prefers-reduced-motion: no-preference) {
  .pr-rows summary {
    transition: color 280ms var(--home-ease);
  }
}

/* The step illustrations are drawn for a 349px-wide card; narrower cards scale them down. */
@container (max-width: 400px) {
  .pr-step-art {
    zoom: 0.84;
  }
}

/* Narrow desktops: the upload hero's side cards would crowd the box, and the steps stack. */
@media (max-width: 1180px) {
  .pr-hero-compare,
  .pr-star-left,
  .pr-star-right {
    display: none;
  }

  .pr-steps ol {
    grid-template-columns: minmax(0, 1fr);
    max-width: 560px;
    margin-inline: auto;
  }

  .pr-steps li {
    min-height: 0;
  }
}

/* Phones and tablets: one column. */
@media (max-width: 900px) {
  .pr-hero-grid,
  .pr-feature {
    grid-template-columns: 1fr;
  }

  .pr-hero-copy {
    padding-block: 40px 0;
  }

  .pr-hero-copy .pr-trust {
    margin-top: 8px;
  }

  .pr-hero-art {
    min-height: 0;
    aspect-ratio: 630 / 700;
  }

  .pr-hero-art .pr-prompt {
    bottom: 6%;
  }

  .pr-hero-upload {
    padding-block: 40px 48px;
  }

  .pr-feature-copy {
    gap: 32px;
  }

  .pr-guide-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    margin-top: 40px;
  }

  .pr-discover ul {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 601px) and (max-width: 900px) {
  .pr-discover ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .pr-hero-cta {
    align-self: stretch;
  }

  .pr-prompt {
    font-size: 14px;
  }

  .pr-steps li,
  .pr-discover li {
    padding: 24px;
  }

  .pr-step-number {
    top: 24px;
    left: 24px;
  }
}

/* App first on phones (app-first.tsx): the hero and closing pair the app with the web app,
   and the upload box steps back to a secondary style below "Download app". */
.pr-hero-actions,
.pr-closing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: inherit;
}

.pr-closing-actions {
  justify-content: center;
}

@media (max-width: 900px) {
  .pr-hero-actions {
    flex-direction: column;
    align-self: stretch;
  }

  .pr-hero-actions .button,
  .pr-closing-actions .button {
    justify-content: center;
    min-height: 54px;
    font-size: 18px;
  }

  .pr-closing-actions {
    flex-direction: column;
    width: min(100%, 360px);
    margin-inline: auto;
  }

  .pr-hero-center > .app-first-download {
    align-self: stretch;
    justify-content: center;
    min-height: 54px;
    font-size: 18px;
  }

  .pr-upload {
    margin-top: 0;
  }

  .pr-upload-button {
    color: var(--ink);
    background: #fff;
    border-color: var(--line);
  }

  /* The upload icon is drawn white; on the light secondary button it turns dark. */
  .pr-upload-button img {
    filter: brightness(0);
  }
}
