/* Public page layouts (PL-03): hero, pieces, how it works, promises, closing band, prose pages.
   Tokens only. No literal colors (a test checks). */

/* ---------- Hero ---------- */

.hero {
  padding-block: var(--space-1) var(--space-6);
}

.hero__inner {
  display: grid;
  gap: var(--space-4);
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.hero__lead {
  max-width: 46ch;
}

.hero__action {
  margin-top: var(--space-1);
}

.hero__figure {
  order: -1;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.hero__note {
  text-align: center;
}

/* Owner's hero photo (D-29): a circle, with the Soft look's mint pill and coral dot around it. */
.hero-photo {
  position: relative;
  width: min(100%, 380px);
  margin-inline: auto;
  padding: 6% 4%;
}

.hero-photo__img {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
}

.hero-photo__pill,
.hero-photo__dot {
  position: absolute;
  display: none;
}

[data-look='c'] .hero-photo__pill {
  display: block;
  left: -2%;
  top: 8%;
  width: 23%;
  height: 9%;
  border-radius: var(--radius-pill);
  background: var(--color-mint);
  transform: rotate(-14deg);
}

[data-look='c'] .hero-photo__dot {
  display: block;
  right: -1%;
  top: 17%;
  width: 11%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--color-coral);
}

/* Night sets the words first, then the statue under its spotlight. */
[data-look='b'] .hero__figure {
  order: 0;
}

/* Soft: the round figure with its butter circle, words centered below. */
[data-look='c'] .hero__text {
  align-items: center;
  text-align: center;
}

[data-look='c'] .hero__text .season-line {
  display: block;
}

[data-look='c'] .hero__text .season-line__dot {
  display: inline-block;
  margin: 0 8px 1px 0;
  vertical-align: middle;
}

.order-blocked {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-tile);
  background: var(--color-surface-alt);
  font-weight: 600;
}

.order-blocked--band {
  background: none;
  color: var(--color-band-ink);
  padding: 0;
}

.btn--on-band {
  background: var(--color-band-ink);
  color: var(--color-band-bg);
  box-shadow: none;
}

.btn--on-band:hover {
  background: var(--color-surface-alt);
  color: var(--color-band-bg);
}

@media (min-width: 1080px) {
  .hero {
    padding-block: var(--space-6) var(--space-8);
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: var(--space-7);
  }

  .hero__figure {
    order: 0;
  }

  .stage--hero {
    height: 520px;
  }

  .stage--hero .statue {
    width: 380px;
  }

  [data-look='c'] .hero__text {
    align-items: flex-start;
    text-align: left;
  }

  [data-look='c'] .hero__text .season-line {
    display: flex;
  }

  [data-look='c'] .hero__text .season-line__dot {
    margin: 6px 0 0;
  }

  [data-look='c'] .stage--hero .statue--soft {
    max-width: 520px;
  }

  .hero-photo {
    width: min(100%, 460px);
  }
}

/* ---------- Pieces ---------- */

/* Pick a piece sits right under the hero, as in the approved home screen. */
.section--pieces {
  padding-top: 0;
}

.pieces {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--space-2);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr));
}

@media (min-width: 720px) {
  .pieces {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-3);
  }

  .piece__tile {
    height: 172px;
  }
}

.piece {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 14px 14px var(--space-2);
  border-radius: var(--radius-card);
  background: var(--color-surface);
}

.piece__tile {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 128px;
  border-radius: var(--radius-tile);
  background: var(--color-tile);
  overflow: hidden;
}

/* An owner photo fills the frame edge to edge (Pick a piece). */
.piece__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.piece__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 0 4px;
}

.piece__name {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 26px;
  color: var(--color-ink);
}

.piece__link {
  text-decoration: none;
}

.piece__link::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.piece--link:hover {
  box-shadow: 0 0 0 1px var(--color-control-border);
}

.piece--link:has(.piece__link:focus-visible) {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}

.piece__link:focus-visible {
  outline: none;
}

.piece__detail {
  font-size: var(--type-body-size);
  line-height: var(--type-body-lh);
  color: var(--color-ink);
}

.piece__meta {
  font-size: var(--type-small-size);
  line-height: var(--type-small-lh);
  color: var(--color-ink-muted);
}

.piece__price {
  margin-top: 6px;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 26px;
}

/* Spots left, as a quiet pill under the price. */
.piece__spots {
  margin-top: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--color-tile);
  font-size: var(--type-small-size);
  line-height: var(--type-small-lh);
  color: var(--color-ink-muted);
}

/* ---------- How it works ---------- */

.how {
  background: var(--color-surface);
}

.how__steps {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 18px;
}

@media (min-width: 1080px) {
  .how__steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-5);
  }
}

.how__step {
  display: flex;
  gap: 14px;
}

@media (min-width: 1080px) {
  .how__step {
    flex-direction: column;
  }
}

.how__num {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-accent-soft);
  color: var(--color-accent-strong);
  font-weight: 700;
  font-size: 15px;
}

[data-look='c'] .how__num {
  color: var(--color-ink);
}

.how__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.how__title {
  font-weight: 600;
  line-height: 22px;
}

.how__detail {
  font-size: var(--type-small-size);
  line-height: var(--type-small-lh);
  color: var(--color-ink-muted);
}

/* ---------- Promises ---------- */

.promises {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--space-2);
}

@media (min-width: 1080px) {
  .promises {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-3);
  }
}

.promise {
  display: flex;
  gap: 14px;
}

.promise__icon {
  flex: none;
  color: var(--color-accent);
}

[data-look='c'] .promise__icon {
  color: var(--color-ink);
}

.promise__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.promise__title {
  font-weight: 600;
  line-height: 22px;
}

.promise__detail {
  font-size: var(--type-small-size);
  line-height: var(--type-small-lh);
  color: var(--color-ink-muted);
}

/* ---------- Closing band ---------- */

.band {
  background: var(--color-band-bg);
  color: var(--color-band-ink);
}

.band__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  padding-block: var(--space-7);
  text-align: center;
}

.band h2 {
  font-size: var(--type-h1-size);
  line-height: var(--type-h1-lh);
}

/* ---------- Prose pages ---------- */

.page-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-width: 680px;
}

.prose {
  max-width: calc(680px + 2 * var(--gutter));
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.prose h2 {
  margin-top: var(--space-4);
}

.prose ul {
  padding-left: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.prose a {
  font-weight: 600;
}

[data-look='c'] .prose a,
[data-look='b'] .prose a {
  color: var(--color-ink);
}

/* ---------- Finishes ---------- */

.finish-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.finish {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.stage--finish {
  height: 260px;
}

.stage--finish .statue {
  width: 200px;
}

.finish__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.finish__name {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.finish__chip {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: inset 0 0 0 1px var(--color-control-border);
}

/* ---------- Error page ---------- */

.error-page {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
  max-width: calc(680px + 2 * var(--gutter));
}
