/* Homepage design proposal (2026-11-03). Linked by src/app/page.tsx and, since D-160, by /deals/
   (src/app/[slug]/page.tsx), through RouteStyles.
   Colours, fonts and images are the site's own: the theme red, the homepage's WhatsApp green and
   Telegram blue, the ink and tone tokens, Montserrat 400 and Open Sans 600, the wolf photo. */

.pj-home {
  --h-ink: #222222;
  --h-soft: #555555;
  --h-red: #c33333;
  --h-tone: #f4f4f4;
  --h-line: #e3e3e3;
  /* Motion: a strong ease-out for state changes. */
  --h-ease: cubic-bezier(.23, 1, .32, 1);
  color: var(--h-ink);
  font-family: 'Montserrat', sans-serif;
  overflow-x: clip;
}
.pj-home ::selection { background: var(--h-red); color: #ffffff; }

body .pj-home h1,
body .pj-home h2,
body .pj-home h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  color: var(--h-ink);
  text-wrap: balance;
  margin: 0;
}
body .pj-home p { margin: 0; padding: 0; }

.pj-home-wrap { width: min(100% - 40px, 1180px); margin-inline: auto; }

/* The channel button pair (`.pj-home-join`, `a.pj-home-btn`) and the phone bar (`.pj-home-bar`) are
   site-wide since D-159; their rules live in src/app/globals.css. Only the homepage's own spacing
   around them stays here. */

body .pj-home .pj-home-note { margin-top: 14px; font-size: 14px; line-height: 1.5; color: var(--h-soft); }

/* Hero: the wolf photo, finally visible. Its snow is white, so the copy sits on the photo's own
   ground and the image fades into it instead of hiding behind a 95% white layer. */
.pj-home-hero { position: relative; display: grid; background: #ffffff; }
.pj-home-hero__copy { position: relative; padding: 32px 20px 8px; }
body .pj-home .pj-home-hero__title {
  font-size: clamp(2.05rem, 1.4rem + 3.2vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  max-width: 12em;
}
body .pj-home .pj-home-hero__lead {
  margin-top: 16px;
  max-width: 32em;
  font-size: 17px;
  line-height: 1.6;
  color: var(--h-soft);
}
body .pj-home .pj-home-hero__lead strong { color: var(--h-ink); font-weight: 400; }
.pj-home-hero .pj-home-join { margin-top: 26px; }
.pj-home-hero__media {
  order: 2;
  height: 260px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 78% 72%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 34%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 34%);
}

/* Section rhythm */
.pj-home-steps,
.pj-home-catches,
.pj-home-faq,
.pj-home-final { padding-block: 64px; }
body .pj-home .pj-home-h2 {
  font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 18em;
}
body .pj-home .pj-home-intro { margin-top: 12px; font-size: 17px; line-height: 1.6; color: var(--h-soft); max-width: 36em; }

/* Three steps. The numbers carry the order a visitor follows, so they stay. */
.pj-home-steps { background: var(--h-tone); }
.pj-home-steps__list {
  list-style: none;
  margin: 36px 0 36px;
  padding: 0;
  display: grid;
  gap: 28px;
  counter-reset: pj-step;
}
.pj-home-steps__list li {
  counter-increment: pj-step;
  display: grid;
  grid-template-columns: 52px 1fr;
  column-gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pj-home-steps__list li::before {
  content: counter(pj-step);
  grid-row: span 2;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--h-red);
  font-variant-numeric: tabular-nums;
}
body .pj-home .pj-home-steps__list h3 { font-size: 20px; line-height: 1.3; }
body .pj-home .pj-home-steps__list p { margin-top: 6px; font-size: 16px; line-height: 1.6; color: var(--h-soft); max-width: 30em; }

/* Past catches: a feed, not a carousel. All eight are visible without swiping. */
.pj-home-catches__list {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  column-gap: 48px;
  border-top: 1px solid var(--h-line);
}
.pj-home-catch {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 14px 0;
  list-style: none;
  border-bottom: 1px solid var(--h-line);
}
.pj-home-catch__tile {
  width: 64px;
  height: 64px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--h-tone);
}
.pj-home-catch__tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pj-home-catch__tile--drop {
  display: grid;
  place-items: center;
  background: var(--h-red);
  color: #ffffff;
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
body .pj-home .pj-home-catch h3 { font-size: 16px; line-height: 1.35; }
.pj-home-catch__meta { display: block; margin-top: 4px; font-size: 13px; line-height: 1.4; color: var(--h-soft); }
body .pj-home .pj-home-catch__price { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pj-home-catch__price strong { display: block; font-weight: 400; font-size: 20px; line-height: 1.2; letter-spacing: -0.01em; color: var(--h-ink); }
.pj-home-catch__price s { display: block; margin-top: 2px; font-size: 13px; color: var(--h-soft); text-decoration-thickness: 1px; }

body .pj-home .pj-home-more { margin-top: 28px; font-size: 16px; }
body .pj-home .pj-home-more a,
body .pj-home .pj-home-q a {
  color: var(--h-red);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
body .pj-home .pj-home-more a:hover,
body .pj-home .pj-home-q a:hover { color: #a82a2a; }

/* FAQ: native details, so it opens without script. */
.pj-home-faq { padding-top: 24px; }
.pj-home-faq .pj-home-h2 { margin-bottom: 24px; }
.pj-home-faq__list { max-width: 760px; }
.pj-home-q { border-bottom: 1px solid var(--h-line); }
.pj-home-q:first-child { border-top: 1px solid var(--h-line); }
.pj-home-q summary {
  position: relative;
  display: block;
  list-style: none;
  cursor: pointer;
  padding: 20px 40px 20px 0;
  font-size: 19px;
  line-height: 1.4;
  color: var(--h-ink);
}
.pj-home-q summary::-webkit-details-marker { display: none; }
.pj-home-q summary::after {
  content: '';
  position: absolute;
  right: 4px;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  background:
    linear-gradient(var(--h-red), var(--h-red)) center / 16px 2px no-repeat,
    linear-gradient(var(--h-red), var(--h-red)) center / 2px 16px no-repeat;
  transition: transform 200ms var(--h-ease);
}
.pj-home-q[open] summary::after { transform: rotate(45deg); }
body .pj-home .pj-home-q p { padding: 0 0 18px; font-size: 16px; line-height: 1.7; color: var(--h-soft); max-width: 62ch; }
body .pj-home .pj-home-q p + p { margin-top: -8px; }

/* Final ask, on the tone surface so it reads apart from the dark footer below. */
.pj-home-final { background: var(--h-tone); text-align: left; }
body .pj-home .pj-home-final__title {
  font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  max-width: 14em;
}
body .pj-home .pj-home-final__text { margin-top: 12px; font-size: 17px; line-height: 1.6; color: var(--h-soft); }
.pj-home-final .pj-home-join { margin-top: 26px; }

/* Small phones: a step down on the price so long product names keep two lines. */
@media (max-width: 599px) {
  .pj-home-catch { gap: 14px; }
  .pj-home-catch__price strong { font-size: 18px; }
}

@media (min-width: 1000px) {
  .pj-home-hero {
    grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
    align-items: center;
    min-height: min(640px, calc(100vh - 90px));
  }
  .pj-home-hero__copy {
    padding: 64px 0 64px max(20px, calc((100vw - 1180px) / 2));
    z-index: 1;
  }
  .pj-home-hero__media {
    order: 0;
    grid-column: 2;
    grid-row: 1;
    height: 100%;
    min-height: 520px;
    margin-left: -12%;
    background-position: 74% 70%;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 30%);
    mask-image: linear-gradient(to right, transparent 0, #000 30%);
  }
  .pj-home-steps,
  .pj-home-catches,
  .pj-home-final { padding-block: 96px; }
  .pj-home-faq { padding-top: 16px; padding-bottom: 96px; }
  .pj-home-steps__list { grid-template-columns: repeat(3, 1fr); gap: 40px; margin: 48px 0; }
  .pj-home-catches__list { grid-template-columns: 1fr 1fr; border-top: 0; }
  .pj-home-catch:nth-child(-n + 2) { border-top: 1px solid var(--h-line); }
  .pj-home-catch { grid-template-columns: 76px minmax(0, 1fr) auto; }
  .pj-home-catch__tile { width: 76px; height: 76px; }
  .pj-home-final .pj-home-wrap { display: grid; grid-template-columns: 1fr 34rem; align-items: end; column-gap: 48px; }
  .pj-home-final .pj-home-join { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; align-self: center; }
}

/* /deals/ (D-160) is built from the homepage parts above. Its own rules: a hero without the photo,
   because its H1 is a full sentence, and the twelve parcel photos as a plain grid (no carousel). */
.pj-deals-hero { padding-block: 40px 56px; }
body .pj-home .pj-deals-hero__title {
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  max-width: 19em;
}
.pj-deals-hero .pj-home-join { margin-top: 26px; }
.pj-deals-catches { padding-top: 0; }
.pj-deals-photos {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.pj-deals-photos li { margin: 0; padding: 0; list-style: none; }
.pj-deals-photos img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 4px;
  background: var(--h-tone);
}
.pj-deals-faq { padding-top: 64px; }
@media (min-width: 600px) {
  .pj-deals-photos { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
}
@media (min-width: 1000px) {
  .pj-deals-hero { padding-block: 72px 80px; }
  .pj-deals-catches { padding-top: 0; }
  .pj-deals-photos { grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: 48px; }
  .pj-deals-faq { padding-top: 96px; }
}

/* Reduced motion: nothing moves. */
@media (prefers-reduced-motion: reduce) {
  .pj-home-q summary::after { transition: none; }
}
