/* ==========================================================
   Landing pages (one per commission type).
   Builds on portfolio.css: same tokens, same cards, same accent.
   ========================================================== */

.lp-hero {
  position: relative;
  padding: clamp(18px, 3vw, 36px) 0 clamp(36px, 5vw, 64px);
}

.lp-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 clamp(24px, 4vw, 44px);
  padding: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  list-style: none;
  text-transform: uppercase;
}

.lp-breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--line);
}

.lp-breadcrumb a {
  color: var(--accent-deep);
  text-decoration: none;
}

.lp-breadcrumb a:hover {
  color: var(--pf-ink-strong);
}

.lp-breadcrumb [aria-current] {
  color: var(--pf-ink-strong);
}

.lp-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.lp-hero-title {
  margin: clamp(18px, 3vw, 28px) 0 0;
  color: var(--pf-ink-strong);
  font-size: clamp(34px, 4.6vw, 66px);
  font-weight: 780;
  letter-spacing: -0.045em;
  line-height: 1.02;
  text-wrap: balance;
}

.lp-hero-title em {
  position: relative;
  color: var(--pf-accent-deep);
  font-style: normal;
}

.lp-hero-title em::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0.04em;
  left: 0;
  height: 0.09em;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--pf-accent), transparent);
  transform: scaleX(0);
  transform-origin: left;
  animation: pf-underline 1.2s var(--ease-emphasized) 0.4s forwards;
}

.lp-hero-lead {
  max-width: 620px;
  margin: clamp(20px, 3vw, 30px) 0 0;
  color: var(--ink);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.6;
}

.lp-hero-lead strong {
  color: var(--pf-ink-strong);
}

.lp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(24px, 3vw, 34px);
}

.lp-hero-media {
  position: relative;
  margin: 0;
  overflow: visible;
}

.lp-hero-media > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--pf-radius);
  box-shadow: 0 30px 70px rgba(48, 56, 64, 0.22);
  transform: rotate(1.2deg);
  transition: transform 700ms var(--ease-emphasized);
}

.lp-hero-media:hover > img {
  transform: rotate(0deg) scale(1.01);
}

.lp-hero-claw {
  position: absolute;
  right: -4%;
  bottom: -10%;
  width: 38%;
  opacity: 0.5;
  pointer-events: none;
  mix-blend-mode: multiply;
}

.lp-hero-claw img {
  width: 100%;
  height: auto;
}

.lp-facts {
  margin-top: clamp(36px, 5vw, 64px);
}

.lp-facts dd {
  font-size: clamp(24px, 3vw, 40px);
}

.lp-langs {
  margin-top: 26px;
}

/* Summary — the "answer capsule" read by people and AI assistants */
.lp-summary {
  padding-top: clamp(40px, 6vw, 80px);
}

.lp-summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(28px, 4vw, 52px);
  border: 1px solid rgba(148, 150, 154, 0.28);
  border-radius: var(--pf-radius);
  background:
    radial-gradient(circle at 100% 0, rgba(18, 179, 163, 0.12), transparent 45%),
    linear-gradient(150deg, #fff, #f3f5f6);
  box-shadow: 0 14px 40px rgba(48, 56, 64, 0.08);
}

.lp-summary h2 {
  margin: 16px 0 0;
  color: var(--pf-ink-strong);
  font-size: clamp(24px, 2.6vw, 36px);
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.lp-summary-answer {
  margin: 18px 0 0;
  color: var(--pf-ink-strong);
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.65;
}

.lp-updated {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.lp-summary-points {
  display: grid;
  align-content: start;
  gap: 0;
  margin: 0;
}

.lp-summary-points > div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.lp-summary-points > div:first-child {
  border-top: 1px solid var(--line);
}

.lp-summary-points dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lp-summary-points dd {
  margin: 0;
  color: var(--pf-ink-strong);
  font-size: 15px;
  line-height: 1.4;
}

/* Offers */
.lp-offer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lp-offer-grid .lp-offer {
  grid-column: auto;
}

/* Author pillars */
.lp-author-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
  gap: clamp(30px, 6vw, 90px);
  align-items: center;
}

.lp-author h2 {
  margin: 16px 0 0;
  color: var(--pf-ink-strong);
  font-size: clamp(28px, 3.4vw, 48px);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.lp-pillars {
  display: grid;
  gap: 0;
  margin: clamp(22px, 3vw, 34px) 0 0;
  padding: 0;
  list-style: none;
}

.lp-pillars li {
  display: grid;
  grid-template-columns: minmax(140px, 0.4fr) minmax(0, 1fr);
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.lp-pillars h3 {
  margin: 0;
  color: var(--pf-accent-deep);
  font-size: 17px;
  letter-spacing: -0.01em;
}

.lp-pillars p {
  margin: 0;
  color: var(--ink);
  line-height: 1.55;
}

/* Games & tools, presented like store pages */
.lp-game-list {
  display: grid;
  gap: clamp(22px, 3vw, 34px);
}

.lp-game {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(148, 150, 154, 0.26);
  border-radius: var(--pf-radius);
  background: var(--surface);
  box-shadow: 0 16px 44px rgba(48, 56, 64, 0.1);
}

.lp-game:nth-child(even) {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
}

.lp-game:nth-child(even) .lp-game-media {
  order: 2;
}

.lp-game-media {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  background: #1f2328;
}

.lp-game-media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 6s linear;
}

.lp-game:hover .lp-game-media > img {
  transform: scale(1.04);
}

.lp-tool-media {
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, #eef1f3, #dfe4e8);
}

.lp-tool-media > img.lp-tool-icon-large {
  position: static;
  width: min(220px, 60%);
  height: auto;
  border-radius: 22%;
  box-shadow: 0 24px 50px rgba(48, 56, 64, 0.2);
}

.lp-game-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(24px, 3vw, 38px);
}

.lp-game-head {
  display: flex;
  gap: 16px;
  align-items: center;
}

.lp-game-icon {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(48, 56, 64, 0.18);
}

.lp-game-head h3 {
  margin: 4px 0 0;
  color: var(--pf-ink-strong);
  font-size: clamp(22px, 2.2vw, 30px);
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.lp-game-hook {
  margin: 0;
  color: var(--pf-accent-deep);
  font-size: clamp(17px, 1.6vw, 20px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.lp-game-body .pf-work-text {
  margin: 0;
}

.lp-game-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lp-game-features li {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--pf-ink-strong);
  font-size: 13px;
}

.lp-game-like {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}

.lp-game-like span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lp-game-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  margin: 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
}

.lp-game-platforms .game-platform {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-size: 12px;
  line-height: 1.5;
}

.lp-game-platforms .game-platform-icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lp-game-body .pf-work-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: auto;
}

.lp-store {
  min-height: 46px;
  padding: 10px 18px;
}

/* Works */
.lp-work-grid .pf-work-card {
  grid-column: span 3;
}

.lp-videos-title {
  margin: clamp(36px, 5vw, 56px) 0 18px;
  color: var(--pf-ink-strong);
  font-size: 20px;
  letter-spacing: -0.02em;
}

.lp-video-list {
  margin: 0;
}

/* Comparison table */
.lp-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(148, 150, 154, 0.28);
  border-radius: var(--pf-radius);
  background: var(--surface);
  box-shadow: 0 14px 40px rgba(48, 56, 64, 0.08);
}

.lp-table-wrap:focus-visible {
  outline: 3px solid var(--accent-deep);
  outline-offset: 3px;
}

.lp-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 15px;
}

.lp-table th,
.lp-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  line-height: 1.45;
}

.lp-table tbody tr:last-child th,
.lp-table tbody tr:last-child td {
  border-bottom: 0;
}

.lp-table thead th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lp-table tbody th {
  width: 18%;
  color: var(--pf-ink-strong);
  font-weight: 700;
}

.lp-table td {
  color: var(--ink);
}

.lp-table .is-griffure {
  background: rgba(18, 179, 163, 0.07);
  color: var(--pf-ink-strong);
}

.lp-table thead .is-griffure {
  color: var(--pf-accent-deep);
}

.lp-references {
  max-width: 820px;
  margin-top: clamp(28px, 4vw, 44px);
}

.lp-references h3 {
  margin: 0 0 10px;
  color: var(--pf-ink-strong);
  font-size: 20px;
  letter-spacing: -0.02em;
}

.lp-references p {
  margin: 0;
  color: var(--ink);
  line-height: 1.65;
}

.lp-references .lp-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

/* FAQ: questions are real headings for search engines and assistants */
.lp-faq-q {
  display: inline;
  margin: 0;
  font: inherit;
  letter-spacing: inherit;
}

/* Related commissions */
.lp-related-title {
  margin: 0 0 22px;
  color: var(--pf-ink-strong);
  font-size: clamp(24px, 2.6vw, 34px);
  letter-spacing: -0.035em;
}

.lp-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lp-related-card {
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(148, 150, 154, 0.26);
  border-radius: var(--pf-radius);
  background: var(--surface);
  box-shadow: 0 14px 36px rgba(48, 56, 64, 0.08);
  color: inherit;
  text-decoration: none;
  transition: transform 420ms var(--ease-emphasized), box-shadow 420ms var(--ease-out);
}

.lp-related-card:hover {
  box-shadow: 0 26px 60px rgba(48, 56, 64, 0.15);
  transform: translateY(-6px);
}

.lp-related-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.lp-related-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
}

.lp-related-copy strong {
  color: var(--pf-ink-strong);
  font-size: 18px;
  letter-spacing: -0.02em;
}

.lp-related-copy > span:not(.pf-link) {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}

.lp-related-copy .pf-link {
  margin-top: auto;
}

@media (max-width: 1000px) {
  .lp-offer-grid,
  .lp-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .lp-hero-grid,
  .lp-summary-grid,
  .lp-author-grid,
  .lp-game,
  .lp-game:nth-child(even) {
    grid-template-columns: minmax(0, 1fr);
  }

  .lp-game:nth-child(even) .lp-game-media {
    order: 0;
  }

  .lp-game-media {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .lp-hero-media {
    order: -1;
  }

  .lp-hero-media > img {
    aspect-ratio: 16 / 10;
    transform: none;
  }

  .lp-work-grid .pf-work-card {
    grid-column: 1 / -1;
  }

  .lp-author-grid .lp-portrait {
    max-width: 320px;
  }
}

@media (max-width: 640px) {
  .lp-offer-grid,
  .lp-related-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .lp-pillars li,
  .lp-summary-points > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lp-hero-title em::after {
    animation: none;
    transform: scaleX(1);
  }

  .lp-hero-media > img,
  .lp-game-media > img,
  .lp-related-card {
    transition: none;
    transform: none;
  }
}
