/* Lumea website: Lumea Paintings page only (/paintings). */

/* ---------- Paintings page hero ----------
   Name, headline and the three numbers on the left; a gallery wall like the
   home page's on the right, tucked slightly behind the text. */

.p-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  padding: clamp(1rem, 3vw, 2rem) 0 clamp(2rem, 5vw, 3rem);
}

.p-hero-copy {
  position: relative;
  z-index: 2;
  grid-column: 1;
  grid-row: 1;
  padding: 1rem 0;
}

.p-hero-app {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
  max-width: none;
  font: 500 1rem/1.2 var(--sans);
  letter-spacing: 0.02em;
  color: var(--text-soft);
}

.p-hero-app .app-icon {
  width: 2.75rem;
}

.p-hero h1 {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  line-height: 1.02;
  max-width: 13ch;
}

.p-hero-sub {
  margin: 1rem 0 0;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: var(--text-soft);
}

/* The three numbers */
.stats {
  position: relative;
  z-index: 4;
  display: grid;
  /* three equal columns */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  max-width: 36rem;
  justify-content: start;
  gap: 0;
  margin: 2rem 0 0;
  padding: 0;
}

.stats > div {
  padding: 0 clamp(0.9rem, 1.6vw, 1.25rem);
  border-left: 1px solid var(--line-strong);
}

.stats > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.stats dt {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.stats dd {
  margin: 0;
}

.stat-num {
  display: block;
  white-space: nowrap;
  font: 400 clamp(2rem, 3.1vw, 2.75rem)/1 var(--serif);
  color: var(--gold);
  font-variant-numeric: lining-nums;
}

.stat-label {
  display: block;
  max-width: 9rem;
  margin-top: 0.45rem;
  font-size: 0.88rem;
  line-height: 1.35;
  color: var(--text-muted);
}

.p-hero .actions {
  margin-top: 2.25rem;
}

/* The wall: to the right, starting under the text, with a soft fade on its
   left edge so the words stay easy to read. */
.p-hero-art {
  position: relative;
  z-index: 1;
  grid-column: 2;
  grid-row: 1;
  margin-left: clamp(-5rem, -5vw, -2rem);
}

.p-hero-art::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 20%;
  z-index: 3;
  pointer-events: none;
  border-radius: 6px 0 0 6px;
  background: linear-gradient(90deg, var(--wall) 0%, rgba(18, 17, 16, 0.6) 40%, transparent 100%);
}

/* A smaller phone, set right of center, so the frames show around it. */
.p-hero .backdrop {
  --pw: min(31cqh, 31cqw);
}

.p-hero .phone {
  left: 59.5%;
}

@media (min-width: 48rem) {
  .p-hero .backdrop {
    height: clamp(26rem, calc(100vh - 8rem), 42rem);
    height: clamp(26rem, calc(100svh - 8rem), 42rem);
  }
}

@media (max-width: 56rem) {
  .p-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .p-hero-art {
    grid-column: 1;
    grid-row: 2;
    margin: 2rem 0 0;
  }

  .p-hero-art::before {
    display: none;
  }

  /* stacked: the wall is full width, so use the home page's phone size */
  .p-hero .backdrop {
    --pw: min(40.6cqh, 62cqw);
  }

  .p-hero .phone {
    left: 50%;
  }

  .p-hero h1 {
    max-width: 14ch;
  }
}

@media (max-width: 36rem) {
  .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stats > div {
    padding: 0 0.75rem;
  }

  .stat-num {
    font-size: clamp(1.45rem, 7.4vw, 2.2rem);
  }

  .stat-label {
    font-size: 0.8rem;
  }
}

/* ---------- Paintings page: Framed, not cropped ----------
   Text on the left; two phones on the right showing the same painting as
   "Museum wall" and "Fill screen". */

.hung-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.hung-copy h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
}

.hung-lead {
  margin-top: 1rem;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--text-soft);
  text-wrap: pretty;
}

.modes {
  margin: 1.75rem 0 0;
  padding: 0;
}

.modes > div {
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
}

.modes > div:last-child {
  border-bottom: 1px solid var(--line);
}

.modes dt {
  font: 400 1.35rem/1.2 var(--serif);
  color: var(--gold);
}

.modes dd {
  margin: 0.25rem 0 0;
  color: var(--text-muted);
}

.hung-note {
  margin-top: 1.25rem;
  color: var(--text-soft);
}

.hung-demo {
  display: flex;
  justify-content: center;
  gap: clamp(1.25rem, 3vw, 2.5rem);
}

.demo-phone {
  --pw: clamp(9.5rem, 17vw, 15rem);
  margin: 0;
  text-align: center;
}

.demo-phone .phone {
  position: relative;
  left: auto;
  bottom: auto;
  transform: none;
  margin: 0 auto;
}

.demo-phone figcaption {
  margin-top: 1rem;
  font: 600 0.75rem/1 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Fill screen: the painting covers the whole lock screen. */
.screen .fill {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.screen .fill .standin,
.screen .fill img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.screen .fill ~ .clock {
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

@media (max-width: 56rem) {
  .hung-section {
    grid-template-columns: minmax(0, 1fr);
  }

  .demo-phone {
    --pw: min(40vw, 12rem);
  }
}

/* ---------- Paintings page: What you get ----------
   Feature cards (the same style as the home page promises) and a strip of
   the eras, traditions and mediums in the collection. */

.features .section-head {
  max-width: none;
  margin: 0 auto 2.75rem;
  text-align: center;
}

.feature-cards {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
}

.feature-cards li {
  display: flex;
  flex-direction: column;
}

.pass-tag {
  position: absolute;
  top: 1.75rem;
  right: 1.75rem;
  padding: 0.3rem 0.6rem;
  border: 1px solid rgba(201, 169, 106, 0.45);
  border-radius: 999px;
  font: 600 0.68rem/1 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

/* The strip of eras, traditions and mediums */
.range {
  max-width: 52rem;
  margin: 3rem auto 0;
}

.range-title {
  margin: 0 0 1.25rem;
  text-align: center;
  font-size: 1.5rem;
}

.range-list,
.range-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.range-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.range-group {
  display: contents;
}

.range-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.range-group ul {
  display: contents;
}

.range-group li {
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.88rem;
  line-height: 1;
  color: var(--text-soft);
  white-space: nowrap;
}

/* the mediums are told apart by a gold outline */
.range-mediums li {
  border-color: rgba(201, 169, 106, 0.4);
  color: var(--gold);
}

@media (max-width: 47.99rem) {
  .range-list {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0.5rem;
    overflow-x: auto;
    margin: 0 calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 0.5rem;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent 100%);
  }

  .range-list::-webkit-scrollbar {
    display: none;
  }
}

/* ---------- Paintings page: How it works ----------
   Uses the home page's numbered steps, with four steps instead of three. */

.journey-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 68rem;
  gap: 1.5rem;
}

.journey-4 li + li::before {
  width: calc(100% + 1.5rem - var(--dot) - 1.5rem);
}

.journey-4 h3 {
  font-size: 1.3rem;
}

.pass-tag-inline {
  position: static;
  display: inline-block;
  margin: 0 0 0.6rem;
}

@media (min-width: 48rem) and (max-width: 64rem) {
  .journey-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 2.75rem;
  }

  /* in two rows, no line from the end of one row to the start of the next */
  .journey-4 li:nth-child(3)::before {
    display: none;
  }
}

@media (max-width: 47.99rem) {
  .journey-4 {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .journey-4 li + li::before {
    width: 1px;
  }
}

/* ---------- Paintings page: Free or Gallery Pass ----------
   Two cards side by side. Gallery Pass repeats the free features and adds
   its own with gold checks, so it's visibly longer, like the app's paywall. */

.plans-section .section-head {
  max-width: 40rem;
  margin: 0 auto 2.75rem;
  text-align: center;
}

.plans-section .section-head p {
  margin: 1rem auto 0;
  text-wrap: pretty;
}

.plan-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 1.5rem;
  max-width: 50rem;
  margin: 0 auto;
}

.plan-card {
  padding: 2rem 1.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: linear-gradient(180deg, var(--wall-lit), var(--wall));
}

.plan-gallery {
  border-color: rgba(201, 169, 106, 0.6);
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(201, 169, 106, 0.1), transparent 70%),
    linear-gradient(180deg, var(--wall-lit), var(--wall));
  box-shadow: 0 0 0 1px rgba(201, 169, 106, 0.15), 0 20px 50px -20px rgba(201, 169, 106, 0.25);
}

.plan-card h3 {
  margin: 0;
  font-size: 1.6rem;
}

.plan-gallery h3 {
  color: var(--gold);
}

.plan-price {
  margin: 0.6rem 0 1.4rem;
  font: 400 2.6rem/1 var(--serif);
  color: var(--text);
}

.plan-price small {
  font: 400 1rem var(--sans);
  color: var(--text-muted);
}

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

.checks li {
  position: relative;
  padding: 0.6rem 0 0.6rem 1.9rem;
  border-top: 1px solid var(--line);
  color: var(--text-soft);
  text-wrap: pretty;
}

/* a check mark drawn in CSS */
.checks li::before {
  content: "";
  position: absolute;
  left: 0.2rem;
  top: 0.95rem;
  width: 0.7rem;
  height: 0.38rem;
  border-left: 1.5px solid var(--text-muted);
  border-bottom: 1.5px solid var(--text-muted);
  transform: rotate(-45deg);
}

.checks li.extra {
  color: var(--text);
  font-weight: 500;
}

.checks li.extra::before {
  border-color: var(--gold);
}

/* App Store button under the two plans */
.plans-cta {
  justify-content: center;
  margin-top: 2rem;
}

.plans-fine {
  max-width: 50rem;
  margin: 1.75rem auto 0;
  text-align: center;
}

@media (max-width: 47.99rem) {
  .plan-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .plan-gallery {
    order: -1;
  }
}

/* ---------- Paintings page: the seven museums ---------- */

.museums-section .section-head {
  max-width: 40rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.museums-section .section-head p {
  margin: 1rem auto 0;
  text-wrap: pretty;
}

.museum-grid {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 62rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.museum-grid li {
  flex: 0 1 calc((100% - 3rem) / 4);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 6.5rem;
  padding: 1.25rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, var(--wall-lit), var(--wall));
  text-align: center;
}

.museum-name {
  font: 400 1.2rem/1.25 var(--serif);
  color: var(--text);
  text-wrap: balance;
}

.museum-city {
  margin-top: 0.55rem;
  font: 600 0.68rem/1 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.museums-fine {
  max-width: none;
  margin: 1.75rem 0 0;
  text-align: center;
}

@media (max-width: 56rem) {
  .museum-grid li {
    flex-basis: calc((100% - 2rem) / 3);
  }
}

@media (max-width: 40rem) {
  .museum-grid {
    gap: 0.75rem;
  }

  .museum-grid li {
    flex-basis: calc((100% - 0.75rem) / 2);
    min-height: 5.75rem;
    padding: 1rem 0.75rem;
  }

  .museum-name {
    font-size: 1.05rem;
  }
}

/* ---------- App Store bar (phones, Paintings page) ---------- */

.get-bar {
  display: none;
}

@media (max-width: 47.99rem) {
  .get-bar {
    position: fixed;
    left: 0.75rem;
    right: 0.75rem;
    bottom: max(0.75rem, env(safe-area-inset-bottom));
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.55rem 0.55rem 0.55rem 0.6rem;
    border: 1px solid rgba(201, 169, 106, 0.35);
    border-radius: 16px;
    background: rgba(24, 22, 19, 0.92);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(calc(100% + 1.5rem));
    transition: transform 0.3s ease;
  }

  .get-bar[hidden] {
    display: none;
  }

  .get-bar.is-shown {
    transform: none;
  }

  .get-bar-icon {
    flex: none;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 22.5%;
  }

  .get-bar-text {
    flex: 1;
    min-width: 0;
    line-height: 1.2;
  }

  .get-bar-text strong {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--text);
    text-wrap: balance;
  }

  .get-bar-button {
    flex: none;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    background: var(--gold);
    color: #17140f;
    font: 600 0.8rem/1 var(--sans);
    text-decoration: none;
    white-space: nowrap;
  }

  .get-bar-close {
    flex: none;
    width: 2.75rem;
    height: 2.75rem;
    margin: -0.4rem -0.3rem -0.4rem -0.45rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--text-muted);
    font: 400 1.3rem/1 var(--sans);
    cursor: pointer;
  }
}

@media (max-width: 22.5rem) {
  .get-bar-text {
    visibility: hidden;
  }
}

@media (prefers-reduced-motion: reduce) {
  .get-bar {
    transition: none;
  }
}

@media (max-width: 56rem) {
  .p-hero .hung {
    left: calc(50% + (var(--x) - 59.5%) * 1.2);
  }
}

@media (max-width: 56rem) and (min-width: 40.01rem) {
  .museum-grid li {
    flex-basis: calc((100% - 3rem) / 4);
    padding: 1rem 0.75rem;
  }

  .museum-name {
    font-size: 1.05rem;
  }
}

/* Under each plan's price: the Gallery Pass highlights (as in the app), and
   one line on Free. Both take the same height so the two lists stay level. */
.plan-highlights,
.plan-note {
  box-sizing: border-box;
  min-height: 8.4rem;
  margin: -0.3rem 0 1.4rem;
}

.plan-highlights {
  list-style: none;
  display: grid;
  align-content: center;
  gap: 0.55rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(201, 169, 106, 0.45);
  border-radius: 10px;
  background: rgba(201, 169, 106, 0.09);
}

.plan-highlights li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 600;
  color: var(--text);
}

.plan-highlights svg {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.plan-note {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  text-align: center;
  color: var(--text-soft);
}

@media (max-width: 47.99rem) {
  .plan-note {
    min-height: 0;
  }
}