/* ============================================
   yaricata.com - Responsive Styles
   Mobile-First: base → tablet → desktop
   ============================================ */

/* --- Mobile (base → 767px) --- */

.header__logo-text {
  font-size: clamp(0.875rem, 2vw, 1.125rem);
}

.header__nav {
  display: none;
}

.hamburger {
  display: flex;
}

.hero__catch {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 700;
  padding: 0.75rem 1rem;
}

.hero__inner {
  justify-content: center;
  text-align: left;
  padding-top: var(--space-2xl);
  flex-direction: column;
  gap: var(--space-2xl);
}

.hero__content {
  flex: 1;
  max-width: 100%;
}

.hero__smartphone {
  flex: 0 0 100%;
  margin-top: var(--space-2xl);
}

.hero__actions {
  justify-content: center;
}

/* Mobile: hide decorative illustrations */
.about__inner {
  flex-direction: column;
  text-align: left;
}

.about__content {
  text-align: left;
}

.about__content .section-title {
  text-align: left;
}

.about__visual {
  max-width: 100%;
}

.about__icon {
  width: clamp(80px, 12vw, 120px);
  height: clamp(80px, 12vw, 120px);
}

.counter-section__illust,
.features__illust {
  display: none;
}

.helper-feature__inner {
  flex-direction: column;
  text-align: left;
  align-items: flex-start;
}

.helper-feature__visual {
  display: none;
}

.helper-feature__smartphone {
  display: flex;
  margin-bottom: var(--space-xl);
}

.cta__illust {
  opacity: 0.15;
  width: 80px !important;
}

.how-to__grid::before {
  display: none;
}

.how-to-step::after {
  display: block;
}


.concept__grid {
  grid-template-columns: 1fr;
}

.concept-card {
  display: grid;
  grid-template-columns: 60px 1fr;
  grid-template-rows: auto auto;
  column-gap: var(--space-lg);
  row-gap: 0.25rem;
  text-align: left;
  align-items: start;
}

.concept-card__icon {
  grid-column: 1;
  grid-row: 1 / 3;
  width: 60px;
  height: 60px;
  margin: 0;
}

.concept-card__title {
  grid-column: 2;
  grid-row: 1;
  margin-bottom: 0;
}

.concept-card__text {
  grid-column: 2;
  grid-row: 2;
}

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

.episode-card {
  flex: 0 0 85%;
}

.catalog__grid {
  grid-template-columns: repeat(2, 1fr);
}

.footer__inner {
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

/* --- Tablet (768px+) --- */
@media (min-width: 768px) {
  .hero__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    gap: var(--space-sm);
  }

  .hero__content {
    flex: 0 0 45%;
    max-width: none;
  }

  .hero__smartphone {
    display: flex;
    flex: 0 0 45%;
  }

  .hero__visual {
    width: 320px;
  }

  .about__inner {
    flex-direction: row;
  }

  .about__content {
    text-align: left;
  }

  .about__content .section-title {
    text-align: left;
  }

  .counter-section__illust,
  .features__illust {
    display: block;
  }

  .helper-feature__inner {
    flex-direction: row;
    text-align: left;
    align-items: center;
  }

  .helper-feature__visual {
    display: block;
  }

  .helper-feature__smartphone {
    display: none;
  }

  .cta__illust {
    opacity: 0.3;
    width: unset !important;
  }

  .how-to__grid::before {
    display: none;
  }

  .how-to-step::after {
    display: none;
  }

  .concept__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .concept-card {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 0;
    align-items: center;
    padding: var(--space-2xl) var(--space-lg);
  }

  .concept-card__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-md);
  }

  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .episode-card {
    flex: 0 0 45%;
  }

  .catalog__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer__inner {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

/* --- Desktop (1025px+) --- */

@media (min-width: 1025px) {
  .hamburger {
    display: none;
  }

  .header__nav {
    display: flex;
  }

  .hero__inner {
    flex-direction: row;
    text-align: left;
    gap: var(--space-sm);
  }

  .hero__visual {
    width: 420px;
  }

  .hero__actions {
    justify-content: flex-start;
  }

  .how-to__grid::before {
    display: block;
  }

  .how-to-step::after {
    display: none;
  }

  .concept__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .features__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .episode-card {
    flex: 0 0 calc(33.333% - var(--space-lg) * 2 / 3);
  }

  .catalog__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* --- Large Desktop (1400px+) --- */
@media (min-width: 1400px) {
  :root {
    --container-max: 1320px;
  }
}
