/* Home page framed like a spoken walk-through. */

.pm-hero {
  background: linear-gradient(135deg, #2e1842 0%, #6b3d96 100%);
  color: #fff;
  padding: 4.5rem 0 4.75rem;
  position: relative;
  overflow: hidden;
}

.pm-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 1000'><polygon fill='rgba(255,255,255,0.06)' points='0,1000 1000,0 1000,1000'/></svg>");
  pointer-events: none;
}

.pm-wrap {
  width: min(1120px, calc(100% - 2.4rem));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.pm-split {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 2.5rem;
  align-items: center;
}

.pm-hero h1 {
  font-family: var(--w-font-disp);
  font-size: clamp(2.2rem, 4.4vw, 3.35rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 1.1rem;
}

.pm-hero .pm-lead {
  font-size: 1.12rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 1.6rem;
  max-width: 38rem;
}

.pm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pm-btn,
.pm-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pm-btn {
  background: #fff;
  color: #2e1842;
}

.pm-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
  color: #2e1842;
}

.pm-btn-ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.75);
}

.pm-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.pm-hero-art {
  display: flex;
  justify-content: center;
}

.pm-hero-art svg {
  width: min(100%, 420px);
  height: auto;
}

.pm-story {
  background: #f4f7fb;
  padding: 4.25rem 0 3.5rem;
}

.pm-story-inner {
  max-width: 740px;
  margin: 0 auto;
}

.pm-kicker {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
  color: #6b3d96;
  margin: 0 0 0.85rem;
}

.pm-story h2,
.pm-section h2 {
  font-family: var(--w-font-disp);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: #2e1842;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 2rem;
}

.pm-beat {
  font-size: 1.22rem;
  line-height: 1.7;
  color: #243140;
  margin: 0 0 1.15rem;
}

.pm-beat.quiet {
  color: #5d6d7e;
  font-size: 1.05rem;
}

.pm-mark {
  width: 42px;
  height: 3px;
  border: 0;
  background: #6b3d96;
  opacity: 0.75;
  margin: 1.8rem 0 1.9rem;
}

.pm-section {
  padding: 4.25rem 0 2rem;
  background: #fff;
}

.pm-section.alt {
  background: #f7f5f8;
}

.pm-section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.4rem;
}

.pm-section-head p {
  color: #5d6d7e;
  font-size: 1.08rem;
  margin: 0;
}

.pm-section-head h2 {
  margin-bottom: 0.7rem;
}

.pm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.pm-card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 1.6rem 1.35rem 1.45rem;
  text-align: center;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pm-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.pm-ico {
  width: 76px;
  height: 76px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #6b3d96, #2e1842);
}

.pm-ico svg {
  width: 30px;
  height: 30px;
}

.pm-card h3 {
  font-family: var(--w-font-disp);
  font-size: 1.15rem;
  color: #2e1842;
  margin: 0 0 0.55rem;
}

.pm-card p {
  color: #5d6d7e;
  margin: 0;
  line-height: 1.55;
  font-size: 0.98rem;
}

.pm-roles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.pm-android {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  align-items: center;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 1.6rem 1.5rem;
}

.pm-android h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 0.7rem;
}

.pm-android p {
  color: #5d6d7e;
  margin: 0 0 1rem;
  font-size: 1.05rem;
  line-height: 1.6;
}

.pm-apk {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 52px;
  padding: 0.45rem 1rem 0.45rem 0.7rem;
  border-radius: 999px;
  background: #16111c;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.pm-apk:hover {
  color: #fff;
  transform: translateY(-2px);
}

.pm-apk small {
  display: block;
  font-weight: 500;
  font-size: 0.75rem;
  opacity: 0.7;
}

.pm-apk svg {
  width: 26px;
  height: 26px;
  color: #3ddc84;
}

.pm-faq-wrap {
  max-width: 820px;
  margin: 0 auto;
}

html[data-theme="dark"] .pm-story,
html[data-theme="dark"] .pm-section.alt {
  background: #12111a;
}

html[data-theme="dark"] .pm-section,
html[data-theme="dark"] .pm-card,
html[data-theme="dark"] .pm-android {
  background: #18161f;
}

html[data-theme="dark"] .pm-story h2,
html[data-theme="dark"] .pm-section h2,
html[data-theme="dark"] .pm-card h3,
html[data-theme="dark"] .pm-beat {
  color: #f6f3fa;
}

html[data-theme="dark"] .pm-beat.quiet,
html[data-theme="dark"] .pm-section-head p,
html[data-theme="dark"] .pm-card p,
html[data-theme="dark"] .pm-android p {
  color: #cdc6d8;
}

html[data-theme="dark"] .pm-kicker {
  color: #d4b04a;
}

@media (max-width: 980px) {
  .pm-grid { grid-template-columns: 1fr 1fr; }
  .pm-roles { grid-template-columns: 1fr 1fr; }
  .pm-android { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .pm-split,
  .pm-grid,
  .pm-roles { grid-template-columns: 1fr; }
  .pm-hero-art { display: none; }
  .pm-hero { padding: 3rem 0 3.2rem; }
}
