/* =============================================================================
   Home (public landing page)
   Page-specific styles — layers on top of design-system.css.
   Headlines use a Japanese-style serif; body text stays in the system sans.
   ============================================================================= */

:root {
  --font-display: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", Georgia, serif;
}

body {
  margin: 0;
}

/* ======================= Nav ======================= */

.home-nav {
  position: sticky;
  top: 0;
  z-index: 600;
  background-color: rgba(249, 249, 246, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-border);
}

.home-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
}

.home-nav__brand {
  font-weight: 700;
  color: var(--color-forest);
  text-decoration: none;
}

/* ======================= Hero ======================= */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: var(--space-xl);
  padding-block: 88px 72px;
}

.hero__title {
  margin: 0 0 var(--space-md);
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.4vw, 4rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--color-forest);
}

.hero__lead {
  margin: 0 0 var(--space-lg);
  max-width: 34rem;
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--color-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* ---- Stack of real app fragments ---- */

.hero__stack {
  position: relative;
  padding-bottom: 56px;
}

.hero__photo {
  display: block;
  width: 78%;
  margin-left: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 40%;
  border-radius: 200px 200px var(--radius-lg) var(--radius-lg);
  background-color: var(--color-primary-light);
}

.stack-card {
  position: absolute;
  width: min(86%, 320px);
  padding: var(--space-lg);
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 40px rgba(44, 74, 52, 0.18);
}

.stack-card--order {
  left: 0;
  bottom: 0;
  animation: ticket-in 650ms 250ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.stack-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.stack-card__name {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-charcoal);
}

.stack-card__desc {
  margin: 0 0 var(--space-md);
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--color-muted);
}

.stack-card__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.stack-card__price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-forest);
}

.stack-card__stock {
  font-size: 0.78rem;
  color: var(--color-muted);
}

.stack-card__line {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  margin: 0;
  padding: 7px 0;
  border-bottom: 1px dashed var(--color-border-strong);
  font-size: 0.85rem;
  color: var(--color-charcoal);
}

.stack-card__line--total {
  border-bottom: none;
  font-weight: 700;
  color: var(--color-forest);
}

@keyframes ticket-in {
  from {
    opacity: 0;
    transform: translateY(24px) rotate(1.5deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ======================= Features ======================= */

.features {
  padding-block: 56px 80px;
}

.section-title {
  margin: 0 0 var(--space-xl);
  max-width: 30rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-forest);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-xl);
}

.feature__proof {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 142px;
  margin-bottom: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  background-color: var(--color-primary-light);
}

.proof-line {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-forest);
}

.proof-line--soft {
  margin-top: auto;
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--color-muted);
}

.stepper--static {
  pointer-events: none;
}

.feature__title {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-forest);
}

.feature__text {
  margin: 0;
  max-width: 24rem;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--color-muted);
}

/* ======================= Hosts band ======================= */

.hosts {
  background-color: var(--color-forest);
  color: var(--color-cream);
  padding-block: 64px;
}

.hosts__title {
  margin: 0 0 var(--space-lg);
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  font-weight: 700;
  line-height: 1.25;
}

.hosts__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-xl);
}

.hosts__cols p {
  margin: 0;
  max-width: 26rem;
  line-height: 1.65;
  color: rgba(249, 249, 246, 0.82);
}

.hosts__role {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-white);
}

/* ======================= Closing + footer ======================= */

.closing {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-lg);
  padding-block: 80px;
}

.closing__title {
  margin: 0;
  max-width: 24rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-forest);
}

.home-footer {
  padding-block: var(--space-lg);
  border-top: 1px solid var(--color-border);
  font-size: 0.8rem;
  color: var(--color-muted);
}

/* ======================= Responsive ======================= */

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    padding-block: 48px;
  }

  .hero__stack {
    padding-bottom: 0;
  }

  .hero__photo {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
  }

  .stack-card {
    position: relative;
    width: calc(100% - 2 * var(--space-md));
    margin: calc(-1 * var(--space-xl)) auto 0;
  }

  .features__grid,
  .hosts__cols {
    grid-template-columns: 1fr;
  }

  .feature__proof {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stack-card--order {
    animation: none;
  }
}
